Codebase intelligence for AI and humans: code health scores, auto-generated docs, git analytics, dead code detection, and architectural decisions via MCP.
Python aicode-complexitycode-healthcode-intelligencecode-qualitydead-codedeveloper-toolsdocumentationgit-analyticsmcpopen-sourcepythonrefactoringstatic-analysistechnical-debt
test(analysis): golden snapshots for scan_source, dead code, health and parser (#3970)
Raghav Chamadiya798d3d3d6d32
diff --git a/tests/unit/analysis/golden/security_scan_corpus.json b/tests/unit/analysis/golden/security_scan_corpus.jsonnew file mode 100644index 000000000..966c40175--- /dev/null+++ b/tests/unit/analysis/golden/security_scan_corpus.json@@ -0,0 +1,725 @@+{+ "scan_source": {+ "eval_py": {+ "path": "app/run.py",+ "findings": [+ {+ "kind": "eval_call",+ "severity": "high",+ "snippet": "x = eval(user_input)",+ "line": 1+ },+ {+ "kind": "eval_call",+ "severity": "high",+ "snippet": "obj.eval(y)",+ "line": 2+ }+ ]+ },+ "eval_py_comment": {+ "path": "app/run.py",+ "findings": []+ },+ "eval_py_unparsable": {+ "path": "app/run.py",+ "findings": [+ {+ "kind": "eval_call",+ "severity": "high",+ "snippet": "x = eval(data",+ "line": 1+ },+ {+ "kind": "exec_call",+ "severity": "high",+ "snippet": "exec(code) # eval(z)",+ "line": 2+ }+ ]+ },+ "exec_py": {+ "path": "app/run.py",+ "findings": [+ {+ "kind": "exec_call",+ "severity": "high",+ "snippet": "exec(code)",+ "line": 1+ }+ ]+ },+ "eval_js": {+ "path": "web/run.js",+ "findings": [+ {+ "kind": "eval_call",+ "severity": "high",+ "snippet": "const v = eval(input);",+ "line": 1+ }+ ]+ },+ "exec_js_regex": {+ "path": "web/re.js",+ "findings": []+ },+ "exec_js_namespace": {+ "path": "web/sh.js",+ "findings": [+ {+ "kind": "exec_call",+ "severity": "high",+ "snippet": "cp.exec(cmd);",+ "line": 2+ }+ ]+ },+ "exec_js_named_import": {+ "path": "web/sh.ts",+ "findings": [+ {+ "kind": "exec_call",+ "severity": "high",+ "snippet": "run(cmd);",+ "line": 2+ }+ ]+ },+ "exec_js_require_call": {+ "path": "web/sh.js",+ "findings": [+ {+ "kind": "exec_call",+ "severity": "high",+ "snippet": "require(\"child_process\").execSync(\"ls\");",+ "line": 1+ }+ ]+ },+ "pickle_py": {+ "path": "app/store.py",+ "findings": [+ {+ "kind": "pickle_loads",+ "severity": "high",+ "snippet": "data = pickle.loads(blob)",+ "line": 1+ }+ ]+ },+ "subprocess_shell_py": {+ "path": "app/sh.py",+ "findings": [+ {+ "kind": "subprocess_shell_true",+ "severity": "high",+ "snippet": "subprocess.run(cmd, shell=True)",+ "line": 1+ },+ {+ "kind": "subprocess_shell_true",+ "severity": "high",+ "snippet": "subprocess.Popen(",+ "line": 2,+ "end_line": 4+ }+ ]+ },+ "os_system_py": {+ "path": "app/sh.py",+ "findings": [+ {+ "kind": "os_system",+ "severity": "high",+ "snippet": "os.system(cmd)",+ "line": 1+ }+ ]+ },+ "password_py": {+ "path": "app/conf.py",+ "findings": [+ {+ "kind": "hardcoded_password",+ "severity": "high",+ "snippet": "DB_PASSWORD = \"Tr0u****\"",+ "line": 1+ }+ ]+ },+ "password_js": {+ "path": "web/conf.js",+ "findings": [+ {+ "kind": "hardcoded_password",+ "severity": "high",+ "snippet": "const password = \"Tr0u****\";",+ "line": 1+ }+ ]+ },+ "secret_py": {+ "path": "app/conf.py",+ "findings": [+ {+ "kind": "hardcoded_secret",+ "severity": "high",+ "snippet": "API_KEY = \"q8Rk****\"",+ "line": 1+ }+ ]+ },+ "aws_py": {+ "path": "app/aws.py",+ "findings": [+ {+ "kind": "aws_access_key",+ "severity": "high",+ "snippet": "client_id = \"AKIA****\"",+ "line": 1+ },+ {+ "kind": "aws_access_key",+ "severity": "high",+ "snippet": "# AKIA****",+ "line": 2+ }+ ]+ },+ "aws_test_path": {+ "path": "tests/fixtures/keys.py",+ "findings": [+ {+ "kind": "aws_access_key",+ "severity": "low",+ "snippet": "KEY = \"AKIA****\"",+ "line": 1+ }+ ]+ },+ "github_js": {+ "path": "web/gh.js",+ "findings": [+ {+ "kind": "github_token",+ "severity": "high",+ "snippet": "const t = \"ghp_****\";",+ "line": 1+ }+ ]+ },+ "slack_py": {+ "path": "app/slack.py",+ "findings": [+ {+ "kind": "slack_token",+ "severity": "high",+ "snippet": "SLACK = \"xoxb****\"",+ "line": 1+ }+ ]+ },+ "google_js": {+ "path": "web/maps.js",+ "findings": [+ {+ "kind": "google_api_key",+ "severity": "high",+ "snippet": "const k = \"AIza****\";",+ "line": 1+ }+ ]+ },+ "stripe_py": {+ "path": "app/pay.py",+ "findings": [+ {+ "kind": "stripe_key",+ "severity": "high",+ "snippet": "stripe.api_key = \"sk_l****\"",+ "line": 1+ }+ ]+ },+ "gitlab_py": {+ "path": "app/gl.py",+ "findings": [+ {+ "kind": "gitlab_token",+ "severity": "high",+ "snippet": "GL = \"glpa****\"",+ "line": 1+ }+ ]+ },+ "azure_py": {+ "path": "app/az.py",+ "findings": [+ {+ "kind": "azure_devops_pat",+ "severity": "high",+ "snippet": "auth = (\"\", \"0123****\")",+ "line": 1+ }+ ]+ },+ "git_url_py": {+ "path": "app/remote.py",+ "findings": [+ {+ "kind": "git_url_credentials",+ "severity": "high",+ "snippet": "REMOTE = \"https://deploy:Xk9!****@github.com/acme/app.git\"",+ "line": 1+ }+ ]+ },+ "pem_multiline": {+ "path": "deploy/key.py",+ "findings": [+ {+ "kind": "os_system",+ "severity": "high",+ "snippet": "os.system(KEY)",+ "line": 5+ },+ {+ "kind": "private_key_pem",+ "severity": "high",+ "snippet": "KEY = \"\"\"-----BEGIN RSA PRIVATE KEY-----",+ "line": 1,+ "end_line": 4+ }+ ]+ },+ "pem_inline_json": {+ "path": "deploy/creds.json",+ "findings": [+ {+ "kind": "private_key_pem",+ "severity": "high",+ "snippet": "{\"private_key\": \"-----BEGIN RSA PRIVATE KEY-----\\nMIIE****-----END RSA PRIVATE KEY-----\"}",+ "line": 1,+ "end_line": 1+ }+ ]+ },+ "pem_header_only": {+ "path": "app/pem.py",+ "findings": []+ },+ "fstring_sql_py": {+ "path": "app/db.py",+ "findings": [+ {+ "kind": "fstring_sql",+ "severity": "med",+ "snippet": "q = f\"SELECT * FROM users WHERE id = {uid}\"",+ "line": 1+ }+ ]+ },+ "concat_sql_py": {+ "path": "app/db.py",+ "findings": [+ {+ "kind": "concat_sql",+ "severity": "med",+ "snippet": "cur.execute(\"SELECT * FROM t WHERE id=\" + uid)",+ "line": 1+ }+ ]+ },+ "template_sql_js": {+ "path": "web/db.ts",+ "findings": [+ {+ "kind": "template_literal_sql",+ "severity": "med",+ "snippet": "const q = `SELECT * FROM users WHERE id = ${id}`;",+ "line": 1+ },+ {+ "kind": "template_literal_sql",+ "severity": "med",+ "snippet": "const u = `UPDATE t SET a = ${a}`;",+ "line": 3+ }+ ]+ },+ "template_sql_py": {+ "path": "app/db.py",+ "findings": []+ },+ "tls_requests_py": {+ "path": "app/http.py",+ "findings": [+ {+ "kind": "tls_verify_false",+ "severity": "med",+ "snippet": "requests.get(url, verify=False)",+ "line": 3+ },+ {+ "kind": "tls_verify_false",+ "severity": "med",+ "snippet": "s.post(url, verify=False)",+ "line": 4+ },+ {+ "kind": "tls_verify_false",+ "severity": "med",+ "snippet": "s.verify = False",+ "line": 5+ }+ ]+ },+ "tls_no_client_py": {+ "path": "app/check.py",+ "findings": []+ },+ "tls_unparsable_py": {+ "path": "app/check.py",+ "findings": [+ {+ "kind": "tls_verify_false",+ "severity": "med",+ "snippet": "requests.get(url, verify=False",+ "line": 1+ }+ ]+ },+ "tls_js": {+ "path": "web/agent.js",+ "findings": [+ {+ "kind": "reject_unauthorized_false",+ "severity": "med",+ "snippet": "const a = new https.Agent({ rejectUnauthorized: false });",+ "line": 1+ }+ ]+ },+ "weak_hash_py": {+ "path": "app/hash.py",+ "findings": [+ {+ "kind": "weak_hash",+ "severity": "low",+ "snippet": "h = hashlib.md5(data)",+ "line": 1+ },+ {+ "kind": "weak_hash",+ "severity": "low",+ "snippet": "mac = hmac.new(k, m, digestmod='sha1')",+ "line": 5+ }+ ]+ },+ "weak_hash_js": {+ "path": "web/hash.js",+ "findings": [+ {+ "kind": "weak_hash",+ "severity": "low",+ "snippet": "const h = crypto.createHash(\"md5\");",+ "line": 1+ }+ ]+ },+ "inner_html_jsx": {+ "path": "web/View.tsx",+ "findings": [+ {+ "kind": "unsafe_inner_html",+ "severity": "med",+ "snippet": "<div dangerouslySetInnerHTML={{__html: html}} />",+ "line": 1+ }+ ]+ },+ "inner_html_py": {+ "path": "app/view.py",+ "findings": []+ },+ "public_env_js": {+ "path": "web/env.ts",+ "findings": [+ {+ "kind": "public_env_secret",+ "severity": "high",+ "snippet": "const k = process.env.NEXT_PUBLIC_API_KEY;",+ "line": 1+ }+ ]+ },+ "public_env_dotenv": {+ "path": "web/.env.production",+ "findings": [+ {+ "kind": "stripe_key",+ "severity": "high",+ "snippet": "NEXT_PUBLIC_STRIPE_SECRET=sk_l****",+ "line": 1+ },+ {+ "kind": "public_env_secret",+ "severity": "high",+ "snippet": "NEXT_PUBLIC_STRIPE_SECRET=sk_l****",+ "line": 1+ },+ {+ "kind": "public_env_secret",+ "severity": "high",+ "snippet": "VITE_API_TOKEN=",+ "line": 2+ }+ ]+ },+ "new_function_js": {+ "path": "web/fn.js",+ "findings": [+ {+ "kind": "new_function_call",+ "severity": "high",+ "snippet": "const f = new Function(\"a\", body);",+ "line": 1+ }+ ]+ },+ "new_function_py": {+ "path": "app/fn.py",+ "findings": []+ },+ "prose_readme": {+ "path": "README.md",+ "findings": [+ {+ "kind": "aws_access_key",+ "severity": "high",+ "snippet": "Run `os.system(cmd)` then set `KEY=AKIA****`.",+ "line": 1+ }+ ]+ },+ "declaration_dts": {+ "path": "web/types.d.ts",+ "findings": [+ {+ "kind": "google_api_key",+ "severity": "high",+ "snippet": "export const k = \"AIza****\";",+ "line": 2+ }+ ]+ },+ "vendored_js": {+ "path": "vendor/lib.min.js",+ "findings": [+ {+ "kind": "google_api_key",+ "severity": "high",+ "snippet": "eval(x);var k=\"AIza****\";",+ "line": 1+ }+ ]+ },+ "tooling_script": {+ "path": "scripts/release.py",+ "findings": [+ {+ "kind": "os_system",+ "severity": "low",+ "snippet": "os.system(cmd)",+ "line": 1+ },+ {+ "kind": "aws_access_key",+ "severity": "high",+ "snippet": "KEY = \"AKIA****\"",+ "line": 2+ }+ ]+ },+ "test_path_sink": {+ "path": "tests/test_app.py",+ "findings": [+ {+ "kind": "eval_call",+ "severity": "low",+ "snippet": "x = eval(y)",+ "line": 2+ },+ {+ "kind": "os_system",+ "severity": "low",+ "snippet": "os.system(cmd)",+ "line": 1+ }+ ]+ },+ "go_raw_backtick": {+ "path": "svc/main.go",+ "findings": [+ {+ "kind": "weak_hash",+ "severity": "low",+ "snippet": "p := `C:\\`; h := md5.Sum(b)",+ "line": 1+ }+ ]+ },+ "rust_nested_comment": {+ "path": "svc/main.rs",+ "findings": [+ {+ "kind": "weak_hash",+ "severity": "low",+ "snippet": "let s = md5::compute(b);",+ "line": 2+ }+ ]+ },+ "allowlist_markers": {+ "path": "app/keys.py",+ "findings": [+ {+ "kind": "aws_access_key",+ "severity": "high",+ "snippet": "C = \"AKIA**** # nosec\"",+ "line": 4+ },+ {+ "kind": "os_system",+ "severity": "high",+ "snippet": "os.system(cmd) # nosec",+ "line": 7+ }+ ]+ },+ "allowlist_prose": {+ "path": "docs/keys.md",+ "findings": [+ {+ "kind": "aws_access_key",+ "severity": "high",+ "snippet": "key AKIA**** gitleaks:allow",+ "line": 1+ },+ {+ "kind": "github_token",+ "severity": "high",+ "snippet": "key ghp_****",+ "line": 2+ }+ ]+ },+ "symbols": {+ "path": "app/auth.py",+ "findings": [+ {+ "kind": "security_sensitive_symbol",+ "severity": "low",+ "snippet": "Password",+ "line": 8+ },+ {+ "kind": "security_sensitive_symbol",+ "severity": "low",+ "snippet": "jwt.verify",+ "line": 9+ },+ {+ "kind": "security_sensitive_symbol",+ "severity": "low",+ "snippet": "app.auth",+ "line": 0+ }+ ]+ },+ "clean": {+ "path": "app/math.py",+ "findings": []+ },+ "crlf_and_formfeed": {+ "path": "app/run.py",+ "findings": [+ {+ "kind": "os_system",+ "severity": "high",+ "snippet": "os.system(c)",+ "line": 3+ }+ ]+ },+ "long_snippet": {+ "path": "app/long.py",+ "findings": [+ {+ "kind": "hardcoded_password",+ "severity": "high",+ "snippet": "password = 'Zq8R****' xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",+ "line": 1+ }+ ]+ }+ },+ "scan_source_map": {+ "findings": {+ "app/a.py": [+ {+ "kind": "os_system",+ "severity": "high",+ "snippet": "os.system(cmd)",+ "line": 1+ }+ ],+ "app/c.py": [+ {+ "kind": "os_system",+ "severity": "high",+ "snippet": "os.system(c) # repowise-security-ignore:",+ "line": 1+ }+ ]+ },+ "scanned": [+ "app/a.py",+ "app/b.py",+ "app/c.py",+ "app/missing.py"+ ]+ },+ "masked_snippet": [+ "k = \"AKIA****\" and AKIAQZ",+ "MIIE****"+ ],+ "persisted": {+ "inserted": [+ 1,+ 0,+ 1,+ 0+ ],+ "rows": [+ [+ "app/store.py",+ "pickle_loads",+ "high",+ "data = pickle.loads(blob)",+ 1,+ "abc123"+ ],+ [+ "app/x.py",+ "pickle_loads",+ "high",+ "data = pickle.loads(blob)",+ 1,+ ""+ ]+ ]+ }+}diff --git a/tests/unit/analysis/test_security_scan_golden.py b/tests/unit/analysis/test_security_scan_golden.pynew file mode 100644index 000000000..447a2c3b6--- /dev/null+++ b/tests/unit/analysis/test_security_scan_golden.py@@ -0,0 +1,358 @@+"""Golden corpus for ``scan_source``: one small source per pattern kind.++Each kind has Python and JS variants where the language allows it, one where+the match sits in a comment or string, and the low-severity, prose, origin and+allowlist paths. Every finding field and the order they come back in is+pinned, so a refactor of the scanner cannot move a finding unseen. Rewrite with+``REPOWISE_REWRITE_GOLDEN=1`` only for an intended behaviour change.++Vendor-shaped keys are assembled by concatenation so the source never holds a+literal that a push-protection scanner would stop; the golden stores only the+masked snippets.+"""++from __future__ import annotations++import asyncio+import json+import os+from pathlib import Path+from types import SimpleNamespace++from sqlalchemy import text++from repowise.core.analysis.security_scan import (+ SecurityScanner,+ masked_snippet,+ scan_source,+ scan_source_map,+)+from tests.unit.analysis.test_security_scan import _fresh_session_factory++GOLDEN = Path(__file__).parent / "golden" / "security_scan_corpus.json"++_AWS = "AKIA" + "QZXNRTVYWMPKLBHG"+_GH = "ghp_" + "Kq7mZ2xV9pL4rT8wN3bY6cH1jF5dS0gA2eUo"+_SLACK = "xoxb" + "-4721609583-T5Rk9mPz2Qa"+_GOOGLE = "AIza" + "SyD9K2vQ7xR4mZ1pL8tY6wU3nB0cF5hD9aX"+_STRIPE = "sk_" + "live_" + "4eC39HqLyjWDarjtT1zdp7dc"+_GLPAT = "glpat" + "-" + "Zq8RkT2mWx9pL4vN7bY3"+_AZDO = "0123456789ABCDEFGHIJ" * 3 + "Zq8RkT2mWx9pL4vN" + "AZDO" + "0123"+_PEM_BODY = "MIIEvQIBADANBgkqhkiG9w0BAQEFAASCBKcwggSjAgEAAoIBAQC7VJTUt9Us8cKj"+_PEM_HEAD = "-----BEGIN RSA " + "PRIVATE KEY-----"+_PEM_TAIL = "-----END RSA " + "PRIVATE KEY-----"+_GIT_URL = "https://deploy:" + "Xk9!mQ2vLp7z" + "@github.com/acme/app.git"+++def _sym(name: str, line: int) -> SimpleNamespace:+ return SimpleNamespace(name=name, qualified_name=name, start_line=line)+++# name -> (path, source, symbols)+CASES: dict[str, tuple[str, str, list]] = {+ # -- eval / exec ---------------------------------------------------------+ "eval_py": ("app/run.py", "x = eval(user_input)\nobj.eval(y)\n", []),+ "eval_py_comment": ("app/run.py", "# eval(user_input) is unsafe\ns = 'eval(x)'\n", []),+ "eval_py_unparsable": ("app/run.py", "x = eval(data\nexec(code) # eval(z)\n", []),+ "exec_py": ("app/run.py", "exec(code)\n", []),+ "eval_js": ("web/run.js", "const v = eval(input);\n// eval(x)\nconst s = 'eval(y)';\n", []),+ "exec_js_regex": ("web/re.js", "const m = /a/.exec(s);\nre.exec(line);\n", []),+ "exec_js_namespace": (+ "web/sh.js",+ 'const cp = require("child_process");\ncp.exec(cmd);\ncp.execFile("ls");\n',+ [],+ ),+ "exec_js_named_import": (+ "web/sh.ts",+ 'import { exec as run, spawn } from "node:child_process";\nrun(cmd);\nspawn("ls");\n',+ [],+ ),+ "exec_js_require_call": ("web/sh.js", 'require("child_process").execSync("ls");\n', []),+ # -- dangerous calls -----------------------------------------------------+ "pickle_py": (+ "app/store.py",+ "data = pickle.loads(blob)\ncopy = pickle.loads(pickle.dumps(x))\n# pickle.loads(b)\n",+ [],+ ),+ "subprocess_shell_py": (+ "app/sh.py",+ "subprocess.run(cmd, shell=True)\n"+ "subprocess.Popen(\n cmd,\n shell=True,\n)\n"+ "doc = 'subprocess.run(x, shell=True)'\n",+ [],+ ),+ "os_system_py": ("app/sh.py", "os.system(cmd)\n# os.system(cmd)\n", []),+ # -- keyword secrets -----------------------------------------------------+ "password_py": (+ "app/conf.py",+ 'DB_PASSWORD = "Tr0ub4dor&3xyz"\n'+ 'password = "changeme"\n'+ 'password = "<your password>"\n'+ '# password = "Tr0ub4dor&3xyz"\n'+ 'password = "short"\n',+ [],+ ),+ "password_js": ("web/conf.js", 'const password = "Tr0ub4dor&3xyz";\n', []),+ "secret_py": (+ "app/conf.py",+ 'API_KEY = "q8Rk2mWx9pL4vN7b"\n'+ 'secret = "x-api-key-header"\n'+ 'token = "{{ vault_token }}"\n'+ 'api_key = "lmstudio"\n'+ 'SECRET = "SECRET"\n'+ 'access_key = "--flag-value"\n',+ [],+ ),+ # -- vendor key shapes ---------------------------------------------------+ "aws_py": ("app/aws.py", f'client_id = "{_AWS}"\n# {_AWS}\n', []),+ "aws_test_path": ("tests/fixtures/keys.py", f'KEY = "{_AWS}"\n', []),+ "github_js": ("web/gh.js", f'const t = "{_GH}";\n', []),+ "slack_py": ("app/slack.py", f'SLACK = "{_SLACK}"\n', []),+ "google_js": ("web/maps.js", f'const k = "{_GOOGLE}";\n', []),+ "stripe_py": ("app/pay.py", f'stripe.api_key = "{_STRIPE}"\n', []),+ "gitlab_py": ("app/gl.py", f'GL = "{_GLPAT}"\n', []),+ "azure_py": ("app/az.py", f'auth = ("", "{_AZDO}")\n', []),+ "git_url_py": (+ "app/remote.py",+ f'REMOTE = "{_GIT_URL}"\n'+ 'LOCAL = "https://u:Xk9#mQ2vLp7z@localhost/r.git"\n'+ 'TEMPLATE = "https://u:${TOKEN}@github.com/o/r.git"\n',+ [],+ ),+ "pem_multiline": (+ "deploy/key.py",+ f'KEY = """{_PEM_HEAD}\n{_PEM_BODY}\n{_PEM_BODY}\n{_PEM_TAIL}"""\nos.system(KEY)\n',+ [],+ ),+ "pem_inline_json": (+ "deploy/creds.json",+ '{"private_key": "' + _PEM_HEAD + "\\n" + _PEM_BODY + "\\n" + _PEM_TAIL + '"}\n',+ [],+ ),+ "pem_header_only": ("app/pem.py", f'HEADER = "{_PEM_HEAD}"\n', []),+ # -- SQL -----------------------------------------------------------------+ "fstring_sql_py": (+ "app/db.py",+ 'q = f"SELECT * FROM users WHERE id = {uid}"\n'+ 'q = f"SELECT {col} FROM users"\n'+ 'q = f"SELECT * FROM t "\n "WHERE name LIKE \'%{n}%\'"\n'+ 'q = f"""\nSELECT *\nFROM t\nWHERE a = {a}\n"""\n'+ "s = 'f\"SELECT * FROM t WHERE id = {x}\"'\n",+ [],+ ),+ "concat_sql_py": (+ "app/db.py",+ 'cur.execute("SELECT * FROM t WHERE id=" + uid)\n',+ [],+ ),+ "template_sql_js": (+ "web/db.ts",+ "const q = `SELECT * FROM users WHERE id = ${id}`;\n"+ "const msg = `Order update failed: ${status}`;\n"+ "const u = `UPDATE t SET a = ${a}`;\n",+ [],+ ),+ "template_sql_py": ("app/db.py", "q = `SELECT * FROM t WHERE a = ${a}`\n", []),+ # -- TLS -----------------------------------------------------------------+ "tls_requests_py": (+ "app/http.py",+ "import requests\n"+ "s = requests.Session()\n"+ "requests.get(url, verify=False)\n"+ "s.post(url, verify=False)\n"+ "s.verify = False\n"+ "check(x, verify=False)\n",+ [],+ ),+ "tls_no_client_py": ("app/check.py", "run(x, verify=False)\n", []),+ "tls_unparsable_py": ("app/check.py", "requests.get(url, verify=False\n", []),+ "tls_js": (+ "web/agent.js",+ "const a = new https.Agent({ rejectUnauthorized: false });\n"+ "// rejectUnauthorized: false\n",+ [],+ ),+ # -- weak hash -----------------------------------------------------------+ "weak_hash_py": (+ "app/hash.py",+ "h = hashlib.md5(data)\n"+ "c = hashlib.sha1(data, usedforsecurity=False)\n"+ "sha1 = commit.sha1\n"+ "# md5(x)\n"+ "mac = hmac.new(k, m, digestmod='sha1')\n",+ [],+ ),+ "weak_hash_js": (+ "web/hash.js",+ 'const h = crypto.createHash("md5");\nconst s = "md5(x)";\n',+ [],+ ),+ # -- JS only -------------------------------------------------------------+ "inner_html_jsx": (+ "web/View.tsx",+ "<div dangerouslySetInnerHTML={{__html: html}} />\n"+ "type P = { __html: string };\n"+ "const x = {__html: \"<b>static</b>\"};\n",+ [],+ ),+ "inner_html_py": ("app/view.py", "x = {'__html': html}\nd = dict(__html= html)\n", []),+ "public_env_js": (+ "web/env.ts",+ "const k = process.env.NEXT_PUBLIC_API_KEY;\n"+ "// NEXT_PUBLIC_SECRET_TOKEN is read below\n"+ "const anon = process.env.NEXT_PUBLIC_SUPABASE_ANON_KEY;\n",+ [],+ ),+ "public_env_dotenv": (+ "web/.env.production",+ "NEXT_PUBLIC_STRIPE_SECRET=" + _STRIPE + "\nVITE_API_TOKEN=\n",+ [],+ ),+ "new_function_js": (+ "web/fn.js",+ 'const f = new Function("a", body);\n// new Function(x)\n',+ [],+ ),+ "new_function_py": ("app/fn.py", "f = new Function(x)\n", []),+ # -- path, origin and prose ----------------------------------------------+ "prose_readme": (+ "README.md",+ f"Run `os.system(cmd)` then set `KEY={_AWS}`.\neval(x)\n",+ [],+ ),+ "declaration_dts": (+ "web/types.d.ts",+ f'declare const eval: any;\nexport const k = "{_GOOGLE}";\n',+ [_sym("authToken", 1)],+ ),+ "vendored_js": ("vendor/lib.min.js", f'eval(x);var k="{_GOOGLE}";\n', []),+ "tooling_script": ("scripts/release.py", f'os.system(cmd)\nKEY = "{_AWS}"\n', []),+ "test_path_sink": ("tests/test_app.py", "os.system(cmd)\nx = eval(y)\n", []),+ # -- dialects ------------------------------------------------------------+ "go_raw_backtick": (+ "svc/main.go",+ # The raw string ends in a backslash, which escapes nothing in Go.+ "p := `C:\\`; h := md5.Sum(b)\nexec.Command(\"sh\").Run() // md5.Sum(x)\n",+ [],+ ),+ "rust_nested_comment": (+ "svc/main.rs",+ "/* outer /* os.system(x) */ still comment */\nlet s = md5::compute(b);\n",+ [],+ ),+ # -- allowlist markers ---------------------------------------------------+ "allowlist_markers": (+ "app/keys.py",+ f'A = "{_AWS}" # pragma: allowlist secret\n'+ "# pragma: allowlist nextline secret\n"+ f'B = "{_AWS}"\n'+ f'C = "{_AWS} # nosec"\n'+ f'D = "{_AWS}" # noqa: S105\n'+ f'E = "{_AWS}" // gitleaks:allow\n'+ "os.system(cmd) # nosec\n",+ [],+ ),+ "allowlist_prose": ("docs/keys.md", f"key {_AWS} gitleaks:allow\nkey {_GH}\n", []),+ # -- symbols -------------------------------------------------------------+ "symbols": (+ "app/auth.py",+ "def auth_user(): pass\n",+ [+ _sym("auth_user", 1),+ _sym("hash_password", 4),+ _sym("session", 7),+ _sym("Password", 8),+ _sym("jwt.verify", 9),+ # Fallback to the qualified name, and a missing line read as 0.+ SimpleNamespace(name="", qualified_name="app.auth", start_line=None),+ ],+ ),+ "clean": ("app/math.py", "def add(a, b):\n return a + b\n", []),+ "crlf_and_formfeed": ("app/run.py", "x = 1\r\n\fy = 2\r\nos.system(c)\r\n", []),+ "long_snippet": (+ "app/long.py",+ "password = '" + "Zq8RkT2mWx9pL4vN" * 8 + "' " + "x" * 40 + "\n",+ [],+ ),+}+++def _scan_all() -> dict[str, dict]:+ return {+ name: {"path": path, "findings": scan_source(path, source, symbols)}+ for name, (path, source, symbols) in CASES.items()+ }+++def _source_map_result() -> dict:+ """``scan_source_map``: bytes and str sources, a missing path, the ignore marker."""+ files = {+ "app/a.py": b"os.system(cmd)\nx = eval(y) # repowise-security-ignore: eval_call\n",+ "app/b.py": "subprocess.run(c, shell=True) # repowise-security-ignore\n",+ "app/c.py": "os.system(c) # repowise-security-ignore:\n",+ }+ parsed = [+ SimpleNamespace(file_info=SimpleNamespace(path=p), symbols=[])+ for p in [*files, "app/missing.py"]+ ]+ parsed[-1].symbols = [_sym("check_auth", 3)]+ findings, scanned = scan_source_map(parsed, files)+ return {"findings": findings, "scanned": scanned}+++def _persisted_rows(tmp_path: Path) -> dict:+ """``persist`` and ``replace_findings`` against a real SQLite store."""+ from repowise.core.persistence import get_session++ findings = scan_source(*CASES["pickle_py"][:2])++ async def _run() -> dict:+ engine, sf = await _fresh_session_factory(tmp_path)+ async with get_session(sf) as session:+ scanner = SecurityScanner(session, "repo-1")+ first = await scanner.persist("app/store.py", findings, commit_sha="abc123")+ again = await scanner.persist("app/store.py", findings, commit_sha="abc123")+ # A row missing its kind is skipped, not fatal to the batch.+ partial = await scanner.persist("app/x.py", [{"severity": "low"}, *findings])+ empty = await scanner.persist("app/x.py", [])+ await scanner.replace_findings({"app/x.py": findings[:1]}, ["app/x.py"])+ async with get_session(sf) as session:+ res = await session.execute(+ text(+ "SELECT file_path, kind, severity, snippet, line_number, commit_sha "+ "FROM security_findings ORDER BY file_path, commit_sha, line_number, kind"+ )+ )+ rows = [list(r) for r in res.fetchall()]+ await engine.dispose()+ return {+ "inserted": [first, again, partial, empty],+ "rows": rows,+ }++ return asyncio.run(_run())+++def _actual(tmp_path: Path) -> dict:+ return {+ "scan_source": _scan_all(),+ "scan_source_map": _source_map_result(),+ "masked_snippet": [+ masked_snippet(f'k = "{_AWS}" and {_AWS[:6]}', [(5, 9)]),+ masked_snippet(" " + _PEM_BODY),+ ],+ "persisted": _persisted_rows(tmp_path),+ }+++def test_security_scan_matches_golden(tmp_path: Path) -> None:+ actual = _actual(tmp_path)+ if os.environ.get("REPOWISE_REWRITE_GOLDEN") == "1":+ GOLDEN.parent.mkdir(exist_ok=True)+ GOLDEN.write_text(json.dumps(actual, indent=2) + "\n", encoding="utf-8")+ expected = json.loads(GOLDEN.read_text(encoding="utf-8"))+ assert actual == expected+++def test_security_scan_is_stable() -> None:+ assert _scan_all() == _scan_all()diff --git a/tests/unit/dead_code/golden/dead_code_sample_repo.json b/tests/unit/dead_code/golden/dead_code_sample_repo.jsonnew file mode 100644index 000000000..3b4886ccf--- /dev/null+++ b/tests/unit/dead_code/golden/dead_code_sample_repo.json@@ -0,0 +1,1554 @@+{+ "all": {+ "total_findings": 25,+ "deletable_lines": 49,+ "confidence_summary": {+ "high": 3,+ "medium": 21,+ "low": 1+ },+ "hidden_below_threshold": 0,+ "findings": [+ {+ "kind": "unreachable_file",+ "file_path": "csharp_pkg/Calculator.cs",+ "symbol_name": null,+ "symbol_kind": null,+ "confidence": 0.4,+ "reason": "File has no importers (in_degree=0)",+ "last_commit_at": null,+ "commit_count_90d": 0,+ "lines": 21,+ "evidence": [+ "in_degree=0 (no files import this)",+ "No git history recorded for this file",+ "Imported by namespace, not by file, so having no importer is weak evidence"+ ],+ "safe_to_delete": false,+ "primary_owner": null,+ "age_days": null,+ "risk_factors": [],+ "start_line": null,+ "end_line": null,+ "export_only": false+ },+ {+ "kind": "unreachable_file",+ "file_path": "dead/unreachable_module.py",+ "symbol_name": null,+ "symbol_kind": null,+ "confidence": 0.5,+ "reason": "File has no importers (in_degree=0)",+ "last_commit_at": null,+ "commit_count_90d": 0,+ "lines": 12,+ "evidence": [+ "in_degree=0 (no files import this)",+ "No git history recorded for this file"+ ],+ "safe_to_delete": false,+ "primary_owner": null,+ "age_days": null,+ "risk_factors": [],+ "start_line": null,+ "end_line": null,+ "export_only": false+ },+ {+ "kind": "unreachable_file",+ "file_path": "php_pkg/Calculator.php",+ "symbol_name": null,+ "symbol_kind": null,+ "confidence": 0.4,+ "reason": "File has no importers (in_degree=0)",+ "last_commit_at": null,+ "commit_count_90d": 0,+ "lines": 21,+ "evidence": [+ "in_degree=0 (no files import this)",+ "No git history recorded for this file",+ "Its type 'Calculator' is written in api/openapi.yaml, which may use it without an import"+ ],+ "safe_to_delete": false,+ "primary_owner": null,+ "age_days": null,+ "risk_factors": [],+ "start_line": null,+ "end_line": null,+ "export_only": false+ },+ {+ "kind": "unreachable_file",+ "file_path": "php_pkg/Models.php",+ "symbol_name": null,+ "symbol_kind": null,+ "confidence": 0.4,+ "reason": "File has no importers (in_degree=0)",+ "last_commit_at": null,+ "commit_count_90d": 0,+ "lines": 25,+ "evidence": [+ "in_degree=0 (no files import this)",+ "No git history recorded for this file",+ "Its type 'CalculationRecord' is written in cpp_pkg/calculator.cpp, which may use it without an import"+ ],+ "safe_to_delete": false,+ "primary_owner": null,+ "age_days": null,+ "risk_factors": [],+ "start_line": null,+ "end_line": null,+ "export_only": false+ },+ {+ "kind": "unreachable_file",+ "file_path": "ruby_pkg/calculator.rb",+ "symbol_name": null,+ "symbol_kind": null,+ "confidence": 0.4,+ "reason": "File has no importers (in_degree=0)",+ "last_commit_at": null,+ "commit_count_90d": 0,+ "lines": 22,+ "evidence": [+ "in_degree=0 (no files import this)",+ "No git history recorded for this file",+ "Its type 'Calculator' is written in api/openapi.yaml, which may use it without an import"+ ],+ "safe_to_delete": false,+ "primary_owner": null,+ "age_days": null,+ "risk_factors": [],+ "start_line": null,+ "end_line": null,+ "export_only": false+ },+ {+ "kind": "unreachable_file",+ "file_path": "scala_pkg/Calculator.scala",+ "symbol_name": null,+ "symbol_kind": null,+ "confidence": 0.4,+ "reason": "File has no importers (in_degree=0)",+ "last_commit_at": null,+ "commit_count_90d": 0,+ "lines": 19,+ "evidence": [+ "in_degree=0 (no files import this)",+ "No git history recorded for this file",+ "Its type 'Calculator' is written in api/openapi.yaml, which may use it without an import"+ ],+ "safe_to_delete": false,+ "primary_owner": null,+ "age_days": null,+ "risk_factors": [],+ "start_line": null,+ "end_line": null,+ "export_only": false+ },+ {+ "kind": "unreachable_file",+ "file_path": "swift_pkg/Calculator.swift",+ "symbol_name": null,+ "symbol_kind": null,+ "confidence": 0.5,+ "reason": "File has no importers (in_degree=0)",+ "last_commit_at": null,+ "commit_count_90d": 0,+ "lines": 18,+ "evidence": [+ "in_degree=0 (no files import this)",+ "No git history recorded for this file"+ ],+ "safe_to_delete": false,+ "primary_owner": null,+ "age_days": null,+ "risk_factors": [],+ "start_line": null,+ "end_line": null,+ "export_only": false+ },+ {+ "kind": "unreachable_file",+ "file_path": "utils/helpers.py",+ "symbol_name": null,+ "symbol_kind": null,+ "confidence": 0.5,+ "reason": "File has no importers (in_degree=0)",+ "last_commit_at": null,+ "commit_count_90d": 0,+ "lines": 11,+ "evidence": [+ "in_degree=0 (no files import this)",+ "No git history recorded for this file"+ ],+ "safe_to_delete": false,+ "primary_owner": null,+ "age_days": null,+ "risk_factors": [],+ "start_line": null,+ "end_line": null,+ "export_only": false+ },+ {+ "kind": "unused_export",+ "file_path": "csharp_pkg/Calculator.cs",+ "symbol_name": "Calculator",+ "symbol_kind": "class",+ "confidence": 0.3,+ "reason": "'Calculator' is used in its own file; only its export is unused",+ "last_commit_at": null,+ "commit_count_90d": 0,+ "lines": 14,+ "evidence": [+ "No file imports symbol 'Calculator' from Calculator.cs",+ "Used in its own file at csharp_pkg/Calculator.cs:6; at most it need not be public"+ ],+ "safe_to_delete": false,+ "primary_owner": null,+ "age_days": null,+ "risk_factors": [],+ "start_line": 7,+ "end_line": 20,+ "export_only": true+ },+ {+ "kind": "unused_export",+ "file_path": "dead/unreachable_module.py",+ "symbol_name": "orphaned_function",+ "symbol_kind": "function",+ "confidence": 0.6,+ "reason": "Public symbol 'orphaned_function' has no importers",+ "last_commit_at": null,+ "commit_count_90d": 0,+ "lines": 3,+ "evidence": [+ "No file imports symbol 'orphaned_function' from unreachable_module.py"+ ],+ "safe_to_delete": false,+ "primary_owner": null,+ "age_days": null,+ "risk_factors": [],+ "start_line": 4,+ "end_line": 6,+ "export_only": false+ },+ {+ "kind": "unused_export",+ "file_path": "dead/unreachable_module.py",+ "symbol_name": "OrphanedClass",+ "symbol_kind": "class",+ "confidence": 0.6,+ "reason": "Public symbol 'OrphanedClass' has no importers",+ "last_commit_at": null,+ "commit_count_90d": 0,+ "lines": 4,+ "evidence": [+ "No file imports symbol 'OrphanedClass' from unreachable_module.py"+ ],+ "safe_to_delete": false,+ "primary_owner": null,+ "age_days": null,+ "risk_factors": [],+ "start_line": 9,+ "end_line": 12,+ "export_only": false+ },+ {+ "kind": "unused_export",+ "file_path": "java_pkg/Calculator.java",+ "symbol_name": "Calculator",+ "symbol_kind": "class",+ "confidence": 0.4,+ "reason": "'Calculator' is not imported, but is named elsewhere in the repo",+ "last_commit_at": null,+ "commit_count_90d": 0,+ "lines": 65,+ "evidence": [+ "No file imports symbol 'Calculator' from Calculator.java",+ "'Calculator' is written at cpp_pkg/calculator.cpp, so the absence of an import does not establish disuse"+ ],+ "safe_to_delete": false,+ "primary_owner": null,+ "age_days": null,+ "risk_factors": [],+ "start_line": 12,+ "end_line": 76,+ "export_only": false+ },+ {+ "kind": "unused_export",+ "file_path": "kotlin_pkg/Calculator.kt",+ "symbol_name": "Calculator",+ "symbol_kind": "class",+ "confidence": 0.4,+ "reason": "'Calculator' is not imported, but is named elsewhere in the repo",+ "last_commit_at": null,+ "commit_count_90d": 0,+ "lines": 21,+ "evidence": [+ "No file imports symbol 'Calculator' from Calculator.kt",+ "'Calculator' is written at cpp_pkg/calculator.cpp, so the absence of an import does not establish disuse"+ ],+ "safe_to_delete": false,+ "primary_owner": null,+ "age_days": null,+ "risk_factors": [],+ "start_line": 6,+ "end_line": 26,+ "export_only": false+ },+ {+ "kind": "unused_export",+ "file_path": "php_pkg/Calculator.php",+ "symbol_name": "Calculator",+ "symbol_kind": "class",+ "confidence": 0.4,+ "reason": "'Calculator' is not imported, but is named elsewhere in the repo",+ "last_commit_at": null,+ "commit_count_90d": 0,+ "lines": 14,+ "evidence": [+ "No file imports symbol 'Calculator' from Calculator.php",+ "'Calculator' is written at cpp_pkg/calculator.cpp, so the absence of an import does not establish disuse"+ ],+ "safe_to_delete": false,+ "primary_owner": null,+ "age_days": null,+ "risk_factors": [],+ "start_line": 8,+ "end_line": 21,+ "export_only": false+ },+ {+ "kind": "unused_export",+ "file_path": "php_pkg/Models.php",+ "symbol_name": "Operation",+ "symbol_kind": "enum",+ "confidence": 0.4,+ "reason": "'Operation' is not imported, but is named elsewhere in the repo",+ "last_commit_at": null,+ "commit_count_90d": 0,+ "lines": 5,+ "evidence": [+ "No file imports symbol 'Operation' from Models.php",+ "'Operation' is written at cpp_pkg/calculator.cpp, so the absence of an import does not establish disuse"+ ],+ "safe_to_delete": false,+ "primary_owner": null,+ "age_days": null,+ "risk_factors": [],+ "start_line": 5,+ "end_line": 9,+ "export_only": false+ },+ {+ "kind": "unused_export",+ "file_path": "php_pkg/Models.php",+ "symbol_name": "CalculationRecord",+ "symbol_kind": "class",+ "confidence": 0.4,+ "reason": "'CalculationRecord' is not imported, but is named elsewhere in the repo",+ "last_commit_at": null,+ "commit_count_90d": 0,+ "lines": 9,+ "evidence": [+ "No file imports symbol 'CalculationRecord' from Models.php",+ "'CalculationRecord' is written at cpp_pkg/calculator.cpp, so the absence of an import does not establish disuse"+ ],+ "safe_to_delete": false,+ "primary_owner": null,+ "age_days": null,+ "risk_factors": [],+ "start_line": 12,+ "end_line": 20,+ "export_only": false+ },+ {+ "kind": "unused_export",+ "file_path": "php_pkg/Models.php",+ "symbol_name": "Computable",+ "symbol_kind": "interface",+ "confidence": 0.4,+ "reason": "Public symbol 'Computable' has no importers",+ "last_commit_at": null,+ "commit_count_90d": 0,+ "lines": 4,+ "evidence": [+ "No file imports symbol 'Computable' from Models.php"+ ],+ "safe_to_delete": false,+ "primary_owner": null,+ "age_days": null,+ "risk_factors": [],+ "start_line": 22,+ "end_line": 25,+ "export_only": false+ },+ {+ "kind": "unused_export",+ "file_path": "python_pkg/utils.py",+ "symbol_name": "format_number",+ "symbol_kind": "function",+ "confidence": 1.0,+ "reason": "Public symbol 'format_number' has no importers",+ "last_commit_at": null,+ "commit_count_90d": 0,+ "lines": 17,+ "evidence": [+ "No file imports symbol 'format_number' from utils.py"+ ],+ "safe_to_delete": true,+ "primary_owner": null,+ "age_days": null,+ "risk_factors": [],+ "start_line": 41,+ "end_line": 57,+ "export_only": false+ },+ {+ "kind": "unused_export",+ "file_path": "python_pkg/utils.py",+ "symbol_name": "clamp",+ "symbol_kind": "function",+ "confidence": 1.0,+ "reason": "Public symbol 'clamp' has no importers",+ "last_commit_at": null,+ "commit_count_90d": 0,+ "lines": 17,+ "evidence": [+ "No file imports symbol 'clamp' from utils.py"+ ],+ "safe_to_delete": true,+ "primary_owner": null,+ "age_days": null,+ "risk_factors": [],+ "start_line": 60,+ "end_line": 76,+ "export_only": false+ },+ {+ "kind": "unused_export",+ "file_path": "python_pkg/utils.py",+ "symbol_name": "safe_sqrt",+ "symbol_kind": "function",+ "confidence": 1.0,+ "reason": "Public symbol 'safe_sqrt' has no importers",+ "last_commit_at": null,+ "commit_count_90d": 0,+ "lines": 15,+ "evidence": [+ "No file imports symbol 'safe_sqrt' from utils.py"+ ],+ "safe_to_delete": true,+ "primary_owner": null,+ "age_days": null,+ "risk_factors": [],+ "start_line": 79,+ "end_line": 93,+ "export_only": false+ },+ {+ "kind": "unused_export",+ "file_path": "ruby_pkg/calculator.rb",+ "symbol_name": "Calculator",+ "symbol_kind": "class",+ "confidence": 0.4,+ "reason": "'Calculator' is not imported, but is named elsewhere in the repo",+ "last_commit_at": null,+ "commit_count_90d": 0,+ "lines": 19,+ "evidence": [+ "No file imports symbol 'Calculator' from calculator.rb",+ "'Calculator' is written at cpp_pkg/calculator.cpp, so the absence of an import does not establish disuse"+ ],+ "safe_to_delete": false,+ "primary_owner": null,+ "age_days": null,+ "risk_factors": [],+ "start_line": 4,+ "end_line": 22,+ "export_only": false+ },+ {+ "kind": "unused_export",+ "file_path": "typescript_pkg/src/utils.ts",+ "symbol_name": "formatNumber",+ "symbol_kind": "function",+ "confidence": 0.4,+ "reason": "'formatNumber' is not imported, but is named elsewhere in the repo",+ "last_commit_at": null,+ "commit_count_90d": 0,+ "lines": 6,+ "evidence": [+ "No file imports symbol 'formatNumber' from utils.ts",+ "'formatNumber' is written at typescript_pkg/src/utils.ts:109, so the absence of an import does not establish disuse"+ ],+ "safe_to_delete": false,+ "primary_owner": null,+ "age_days": null,+ "risk_factors": [],+ "start_line": 113,+ "end_line": 118,+ "export_only": false+ },+ {+ "kind": "unused_export",+ "file_path": "utils/helpers.py",+ "symbol_name": "used_by_nobody_else",+ "symbol_kind": "function",+ "confidence": 0.6,+ "reason": "Public symbol 'used_by_nobody_else' has no importers",+ "last_commit_at": null,+ "commit_count_90d": 0,+ "lines": 3,+ "evidence": [+ "No file imports symbol 'used_by_nobody_else' from helpers.py"+ ],+ "safe_to_delete": false,+ "primary_owner": null,+ "age_days": null,+ "risk_factors": [],+ "start_line": 9,+ "end_line": 11,+ "export_only": false+ },+ {+ "kind": "zombie_package",+ "file_path": "rust_pkg",+ "symbol_name": null,+ "symbol_kind": null,+ "confidence": 0.5,+ "reason": "Package 'rust_pkg' has no importers from other packages",+ "last_commit_at": null,+ "commit_count_90d": 0,+ "lines": 132,+ "evidence": [+ "No inter-package imports into 'rust_pkg'"+ ],+ "safe_to_delete": false,+ "primary_owner": null,+ "age_days": null,+ "risk_factors": [],+ "start_line": null,+ "end_line": null,+ "export_only": false+ },+ {+ "kind": "zombie_package",+ "file_path": "typescript_pkg",+ "symbol_name": null,+ "symbol_kind": null,+ "confidence": 0.5,+ "reason": "Package 'typescript_pkg' has no importers from other packages",+ "last_commit_at": null,+ "commit_count_90d": 0,+ "lines": 377,+ "evidence": [+ "No inter-package imports into 'typescript_pkg'"+ ],+ "safe_to_delete": false,+ "primary_owner": null,+ "age_days": null,+ "risk_factors": [],+ "start_line": null,+ "end_line": null,+ "export_only": false+ }+ ]+ },+ "steps": [+ "unreachable_files",+ "unused_exports",+ "unused_internals",+ "zombie_packages"+ ],+ "default": {+ "total_findings": 24,+ "deletable_lines": 49,+ "confidence_summary": {+ "high": 3,+ "medium": 21,+ "low": 0+ },+ "hidden_below_threshold": 1,+ "findings": [+ {+ "kind": "unreachable_file",+ "file_path": "csharp_pkg/Calculator.cs",+ "symbol_name": null,+ "symbol_kind": null,+ "confidence": 0.4,+ "reason": "File has no importers (in_degree=0)",+ "last_commit_at": null,+ "commit_count_90d": 0,+ "lines": 21,+ "evidence": [+ "in_degree=0 (no files import this)",+ "No git history recorded for this file",+ "Imported by namespace, not by file, so having no importer is weak evidence"+ ],+ "safe_to_delete": false,+ "primary_owner": null,+ "age_days": null,+ "risk_factors": [],+ "start_line": null,+ "end_line": null,+ "export_only": false+ },+ {+ "kind": "unreachable_file",+ "file_path": "dead/unreachable_module.py",+ "symbol_name": null,+ "symbol_kind": null,+ "confidence": 0.5,+ "reason": "File has no importers (in_degree=0)",+ "last_commit_at": null,+ "commit_count_90d": 0,+ "lines": 12,+ "evidence": [+ "in_degree=0 (no files import this)",+ "No git history recorded for this file"+ ],+ "safe_to_delete": false,+ "primary_owner": null,+ "age_days": null,+ "risk_factors": [],+ "start_line": null,+ "end_line": null,+ "export_only": false+ },+ {+ "kind": "unreachable_file",+ "file_path": "php_pkg/Calculator.php",+ "symbol_name": null,+ "symbol_kind": null,+ "confidence": 0.4,+ "reason": "File has no importers (in_degree=0)",+ "last_commit_at": null,+ "commit_count_90d": 0,+ "lines": 21,+ "evidence": [+ "in_degree=0 (no files import this)",+ "No git history recorded for this file",+ "Its type 'Calculator' is written in api/openapi.yaml, which may use it without an import"+ ],+ "safe_to_delete": false,+ "primary_owner": null,+ "age_days": null,+ "risk_factors": [],+ "start_line": null,+ "end_line": null,+ "export_only": false+ },+ {+ "kind": "unreachable_file",+ "file_path": "php_pkg/Models.php",+ "symbol_name": null,+ "symbol_kind": null,+ "confidence": 0.4,+ "reason": "File has no importers (in_degree=0)",+ "last_commit_at": null,+ "commit_count_90d": 0,+ "lines": 25,+ "evidence": [+ "in_degree=0 (no files import this)",+ "No git history recorded for this file",+ "Its type 'CalculationRecord' is written in cpp_pkg/calculator.cpp, which may use it without an import"+ ],+ "safe_to_delete": false,+ "primary_owner": null,+ "age_days": null,+ "risk_factors": [],+ "start_line": null,+ "end_line": null,+ "export_only": false+ },+ {+ "kind": "unreachable_file",+ "file_path": "ruby_pkg/calculator.rb",+ "symbol_name": null,+ "symbol_kind": null,+ "confidence": 0.4,+ "reason": "File has no importers (in_degree=0)",+ "last_commit_at": null,+ "commit_count_90d": 0,+ "lines": 22,+ "evidence": [+ "in_degree=0 (no files import this)",+ "No git history recorded for this file",+ "Its type 'Calculator' is written in api/openapi.yaml, which may use it without an import"+ ],+ "safe_to_delete": false,+ "primary_owner": null,+ "age_days": null,+ "risk_factors": [],+ "start_line": null,+ "end_line": null,+ "export_only": false+ },+ {+ "kind": "unreachable_file",+ "file_path": "scala_pkg/Calculator.scala",+ "symbol_name": null,+ "symbol_kind": null,+ "confidence": 0.4,+ "reason": "File has no importers (in_degree=0)",+ "last_commit_at": null,+ "commit_count_90d": 0,+ "lines": 19,+ "evidence": [+ "in_degree=0 (no files import this)",+ "No git history recorded for this file",+ "Its type 'Calculator' is written in api/openapi.yaml, which may use it without an import"+ ],+ "safe_to_delete": false,+ "primary_owner": null,+ "age_days": null,+ "risk_factors": [],+ "start_line": null,+ "end_line": null,+ "export_only": false+ },+ {+ "kind": "unreachable_file",+ "file_path": "swift_pkg/Calculator.swift",+ "symbol_name": null,+ "symbol_kind": null,+ "confidence": 0.5,+ "reason": "File has no importers (in_degree=0)",+ "last_commit_at": null,+ "commit_count_90d": 0,+ "lines": 18,+ "evidence": [+ "in_degree=0 (no files import this)",+ "No git history recorded for this file"+ ],+ "safe_to_delete": false,+ "primary_owner": null,+ "age_days": null,+ "risk_factors": [],+ "start_line": null,+ "end_line": null,+ "export_only": false+ },+ {+ "kind": "unreachable_file",+ "file_path": "utils/helpers.py",+ "symbol_name": null,+ "symbol_kind": null,+ "confidence": 0.5,+ "reason": "File has no importers (in_degree=0)",+ "last_commit_at": null,+ "commit_count_90d": 0,+ "lines": 11,+ "evidence": [+ "in_degree=0 (no files import this)",+ "No git history recorded for this file"+ ],+ "safe_to_delete": false,+ "primary_owner": null,+ "age_days": null,+ "risk_factors": [],+ "start_line": null,+ "end_line": null,+ "export_only": false+ },+ {+ "kind": "unused_export",+ "file_path": "dead/unreachable_module.py",+ "symbol_name": "orphaned_function",+ "symbol_kind": "function",+ "confidence": 0.6,+ "reason": "Public symbol 'orphaned_function' has no importers",+ "last_commit_at": null,+ "commit_count_90d": 0,+ "lines": 3,+ "evidence": [+ "No file imports symbol 'orphaned_function' from unreachable_module.py"+ ],+ "safe_to_delete": false,+ "primary_owner": null,+ "age_days": null,+ "risk_factors": [],+ "start_line": 4,+ "end_line": 6,+ "export_only": false+ },+ {+ "kind": "unused_export",+ "file_path": "dead/unreachable_module.py",+ "symbol_name": "OrphanedClass",+ "symbol_kind": "class",+ "confidence": 0.6,+ "reason": "Public symbol 'OrphanedClass' has no importers",+ "last_commit_at": null,+ "commit_count_90d": 0,+ "lines": 4,+ "evidence": [+ "No file imports symbol 'OrphanedClass' from unreachable_module.py"+ ],+ "safe_to_delete": false,+ "primary_owner": null,+ "age_days": null,+ "risk_factors": [],+ "start_line": 9,+ "end_line": 12,+ "export_only": false+ },+ {+ "kind": "unused_export",+ "file_path": "java_pkg/Calculator.java",+ "symbol_name": "Calculator",+ "symbol_kind": "class",+ "confidence": 0.4,+ "reason": "'Calculator' is not imported, but is named elsewhere in the repo",+ "last_commit_at": null,+ "commit_count_90d": 0,+ "lines": 65,+ "evidence": [+ "No file imports symbol 'Calculator' from Calculator.java",+ "'Calculator' is written at cpp_pkg/calculator.cpp, so the absence of an import does not establish disuse"+ ],+ "safe_to_delete": false,+ "primary_owner": null,+ "age_days": null,+ "risk_factors": [],+ "start_line": 12,+ "end_line": 76,+ "export_only": false+ },+ {+ "kind": "unused_export",+ "file_path": "kotlin_pkg/Calculator.kt",+ "symbol_name": "Calculator",+ "symbol_kind": "class",+ "confidence": 0.4,+ "reason": "'Calculator' is not imported, but is named elsewhere in the repo",+ "last_commit_at": null,+ "commit_count_90d": 0,+ "lines": 21,+ "evidence": [+ "No file imports symbol 'Calculator' from Calculator.kt",+ "'Calculator' is written at cpp_pkg/calculator.cpp, so the absence of an import does not establish disuse"+ ],+ "safe_to_delete": false,+ "primary_owner": null,+ "age_days": null,+ "risk_factors": [],+ "start_line": 6,+ "end_line": 26,+ "export_only": false+ },+ {+ "kind": "unused_export",+ "file_path": "php_pkg/Calculator.php",+ "symbol_name": "Calculator",+ "symbol_kind": "class",+ "confidence": 0.4,+ "reason": "'Calculator' is not imported, but is named elsewhere in the repo",+ "last_commit_at": null,+ "commit_count_90d": 0,+ "lines": 14,+ "evidence": [+ "No file imports symbol 'Calculator' from Calculator.php",+ "'Calculator' is written at cpp_pkg/calculator.cpp, so the absence of an import does not establish disuse"+ ],+ "safe_to_delete": false,+ "primary_owner": null,+ "age_days": null,+ "risk_factors": [],+ "start_line": 8,+ "end_line": 21,+ "export_only": false+ },+ {+ "kind": "unused_export",+ "file_path": "php_pkg/Models.php",+ "symbol_name": "Operation",+ "symbol_kind": "enum",+ "confidence": 0.4,+ "reason": "'Operation' is not imported, but is named elsewhere in the repo",+ "last_commit_at": null,+ "commit_count_90d": 0,+ "lines": 5,+ "evidence": [+ "No file imports symbol 'Operation' from Models.php",+ "'Operation' is written at cpp_pkg/calculator.cpp, so the absence of an import does not establish disuse"+ ],+ "safe_to_delete": false,+ "primary_owner": null,+ "age_days": null,+ "risk_factors": [],+ "start_line": 5,+ "end_line": 9,+ "export_only": false+ },+ {+ "kind": "unused_export",+ "file_path": "php_pkg/Models.php",+ "symbol_name": "CalculationRecord",+ "symbol_kind": "class",+ "confidence": 0.4,+ "reason": "'CalculationRecord' is not imported, but is named elsewhere in the repo",+ "last_commit_at": null,+ "commit_count_90d": 0,+ "lines": 9,+ "evidence": [+ "No file imports symbol 'CalculationRecord' from Models.php",+ "'CalculationRecord' is written at cpp_pkg/calculator.cpp, so the absence of an import does not establish disuse"+ ],+ "safe_to_delete": false,+ "primary_owner": null,+ "age_days": null,+ "risk_factors": [],+ "start_line": 12,+ "end_line": 20,+ "export_only": false+ },+ {+ "kind": "unused_export",+ "file_path": "php_pkg/Models.php",+ "symbol_name": "Computable",+ "symbol_kind": "interface",+ "confidence": 0.4,+ "reason": "Public symbol 'Computable' has no importers",+ "last_commit_at": null,+ "commit_count_90d": 0,+ "lines": 4,+ "evidence": [+ "No file imports symbol 'Computable' from Models.php"+ ],+ "safe_to_delete": false,+ "primary_owner": null,+ "age_days": null,+ "risk_factors": [],+ "start_line": 22,+ "end_line": 25,+ "export_only": false+ },+ {+ "kind": "unused_export",+ "file_path": "python_pkg/utils.py",+ "symbol_name": "format_number",+ "symbol_kind": "function",+ "confidence": 1.0,+ "reason": "Public symbol 'format_number' has no importers",+ "last_commit_at": null,+ "commit_count_90d": 0,+ "lines": 17,+ "evidence": [+ "No file imports symbol 'format_number' from utils.py"+ ],+ "safe_to_delete": true,+ "primary_owner": null,+ "age_days": null,+ "risk_factors": [],+ "start_line": 41,+ "end_line": 57,+ "export_only": false+ },+ {+ "kind": "unused_export",+ "file_path": "python_pkg/utils.py",+ "symbol_name": "clamp",+ "symbol_kind": "function",+ "confidence": 1.0,+ "reason": "Public symbol 'clamp' has no importers",+ "last_commit_at": null,+ "commit_count_90d": 0,+ "lines": 17,+ "evidence": [+ "No file imports symbol 'clamp' from utils.py"+ ],+ "safe_to_delete": true,+ "primary_owner": null,+ "age_days": null,+ "risk_factors": [],+ "start_line": 60,+ "end_line": 76,+ "export_only": false+ },+ {+ "kind": "unused_export",+ "file_path": "python_pkg/utils.py",+ "symbol_name": "safe_sqrt",+ "symbol_kind": "function",+ "confidence": 1.0,+ "reason": "Public symbol 'safe_sqrt' has no importers",+ "last_commit_at": null,+ "commit_count_90d": 0,+ "lines": 15,+ "evidence": [+ "No file imports symbol 'safe_sqrt' from utils.py"+ ],+ "safe_to_delete": true,+ "primary_owner": null,+ "age_days": null,+ "risk_factors": [],+ "start_line": 79,+ "end_line": 93,+ "export_only": false+ },+ {+ "kind": "unused_export",+ "file_path": "ruby_pkg/calculator.rb",+ "symbol_name": "Calculator",+ "symbol_kind": "class",+ "confidence": 0.4,+ "reason": "'Calculator' is not imported, but is named elsewhere in the repo",+ "last_commit_at": null,+ "commit_count_90d": 0,+ "lines": 19,+ "evidence": [+ "No file imports symbol 'Calculator' from calculator.rb",+ "'Calculator' is written at cpp_pkg/calculator.cpp, so the absence of an import does not establish disuse"+ ],+ "safe_to_delete": false,+ "primary_owner": null,+ "age_days": null,+ "risk_factors": [],+ "start_line": 4,+ "end_line": 22,+ "export_only": false+ },+ {+ "kind": "unused_export",+ "file_path": "typescript_pkg/src/utils.ts",+ "symbol_name": "formatNumber",+ "symbol_kind": "function",+ "confidence": 0.4,+ "reason": "'formatNumber' is not imported, but is named elsewhere in the repo",+ "last_commit_at": null,+ "commit_count_90d": 0,+ "lines": 6,+ "evidence": [+ "No file imports symbol 'formatNumber' from utils.ts",+ "'formatNumber' is written at typescript_pkg/src/utils.ts:109, so the absence of an import does not establish disuse"+ ],+ "safe_to_delete": false,+ "primary_owner": null,+ "age_days": null,+ "risk_factors": [],+ "start_line": 113,+ "end_line": 118,+ "export_only": false+ },+ {+ "kind": "unused_export",+ "file_path": "utils/helpers.py",+ "symbol_name": "used_by_nobody_else",+ "symbol_kind": "function",+ "confidence": 0.6,+ "reason": "Public symbol 'used_by_nobody_else' has no importers",+ "last_commit_at": null,+ "commit_count_90d": 0,+ "lines": 3,+ "evidence": [+ "No file imports symbol 'used_by_nobody_else' from helpers.py"+ ],+ "safe_to_delete": false,+ "primary_owner": null,+ "age_days": null,+ "risk_factors": [],+ "start_line": 9,+ "end_line": 11,+ "export_only": false+ },+ {+ "kind": "zombie_package",+ "file_path": "rust_pkg",+ "symbol_name": null,+ "symbol_kind": null,+ "confidence": 0.5,+ "reason": "Package 'rust_pkg' has no importers from other packages",+ "last_commit_at": null,+ "commit_count_90d": 0,+ "lines": 132,+ "evidence": [+ "No inter-package imports into 'rust_pkg'"+ ],+ "safe_to_delete": false,+ "primary_owner": null,+ "age_days": null,+ "risk_factors": [],+ "start_line": null,+ "end_line": null,+ "export_only": false+ },+ {+ "kind": "zombie_package",+ "file_path": "typescript_pkg",+ "symbol_name": null,+ "symbol_kind": null,+ "confidence": 0.5,+ "reason": "Package 'typescript_pkg' has no importers from other packages",+ "last_commit_at": null,+ "commit_count_90d": 0,+ "lines": 377,+ "evidence": [+ "No inter-package imports into 'typescript_pkg'"+ ],+ "safe_to_delete": false,+ "primary_owner": null,+ "age_days": null,+ "risk_factors": [],+ "start_line": null,+ "end_line": null,+ "export_only": false+ }+ ]+ },+ "narrowed": {+ "total_findings": 20,+ "deletable_lines": 49,+ "confidence_summary": {+ "high": 3,+ "medium": 16,+ "low": 1+ },+ "hidden_below_threshold": 0,+ "findings": [+ {+ "kind": "unreachable_file",+ "file_path": "csharp_pkg/Calculator.cs",+ "symbol_name": null,+ "symbol_kind": null,+ "confidence": 0.4,+ "reason": "File has no importers (in_degree=0)",+ "last_commit_at": null,+ "commit_count_90d": 0,+ "lines": 21,+ "evidence": [+ "in_degree=0 (no files import this)",+ "No git history recorded for this file",+ "Imported by namespace, not by file, so having no importer is weak evidence"+ ],+ "safe_to_delete": false,+ "primary_owner": null,+ "age_days": null,+ "risk_factors": [],+ "start_line": null,+ "end_line": null,+ "export_only": false+ },+ {+ "kind": "unreachable_file",+ "file_path": "php_pkg/Calculator.php",+ "symbol_name": null,+ "symbol_kind": null,+ "confidence": 0.4,+ "reason": "File has no importers (in_degree=0)",+ "last_commit_at": null,+ "commit_count_90d": 0,+ "lines": 21,+ "evidence": [+ "in_degree=0 (no files import this)",+ "No git history recorded for this file",+ "Its type 'Calculator' is written in api/openapi.yaml, which may use it without an import"+ ],+ "safe_to_delete": false,+ "primary_owner": null,+ "age_days": null,+ "risk_factors": [],+ "start_line": null,+ "end_line": null,+ "export_only": false+ },+ {+ "kind": "unreachable_file",+ "file_path": "php_pkg/Models.php",+ "symbol_name": null,+ "symbol_kind": null,+ "confidence": 0.4,+ "reason": "File has no importers (in_degree=0)",+ "last_commit_at": null,+ "commit_count_90d": 0,+ "lines": 25,+ "evidence": [+ "in_degree=0 (no files import this)",+ "No git history recorded for this file",+ "Its type 'CalculationRecord' is written in cpp_pkg/calculator.cpp, which may use it without an import"+ ],+ "safe_to_delete": false,+ "primary_owner": null,+ "age_days": null,+ "risk_factors": [],+ "start_line": null,+ "end_line": null,+ "export_only": false+ },+ {+ "kind": "unreachable_file",+ "file_path": "ruby_pkg/calculator.rb",+ "symbol_name": null,+ "symbol_kind": null,+ "confidence": 0.4,+ "reason": "File has no importers (in_degree=0)",+ "last_commit_at": null,+ "commit_count_90d": 0,+ "lines": 22,+ "evidence": [+ "in_degree=0 (no files import this)",+ "No git history recorded for this file",+ "Its type 'Calculator' is written in api/openapi.yaml, which may use it without an import"+ ],+ "safe_to_delete": false,+ "primary_owner": null,+ "age_days": null,+ "risk_factors": [],+ "start_line": null,+ "end_line": null,+ "export_only": false+ },+ {+ "kind": "unreachable_file",+ "file_path": "scala_pkg/Calculator.scala",+ "symbol_name": null,+ "symbol_kind": null,+ "confidence": 0.4,+ "reason": "File has no importers (in_degree=0)",+ "last_commit_at": null,+ "commit_count_90d": 0,+ "lines": 19,+ "evidence": [+ "in_degree=0 (no files import this)",+ "No git history recorded for this file",+ "Its type 'Calculator' is written in api/openapi.yaml, which may use it without an import"+ ],+ "safe_to_delete": false,+ "primary_owner": null,+ "age_days": null,+ "risk_factors": [],+ "start_line": null,+ "end_line": null,+ "export_only": false+ },+ {+ "kind": "unreachable_file",+ "file_path": "swift_pkg/Calculator.swift",+ "symbol_name": null,+ "symbol_kind": null,+ "confidence": 0.5,+ "reason": "File has no importers (in_degree=0)",+ "last_commit_at": null,+ "commit_count_90d": 0,+ "lines": 18,+ "evidence": [+ "in_degree=0 (no files import this)",+ "No git history recorded for this file"+ ],+ "safe_to_delete": false,+ "primary_owner": null,+ "age_days": null,+ "risk_factors": [],+ "start_line": null,+ "end_line": null,+ "export_only": false+ },+ {+ "kind": "unreachable_file",+ "file_path": "utils/helpers.py",+ "symbol_name": null,+ "symbol_kind": null,+ "confidence": 0.5,+ "reason": "File has no importers (in_degree=0)",+ "last_commit_at": null,+ "commit_count_90d": 0,+ "lines": 11,+ "evidence": [+ "in_degree=0 (no files import this)",+ "No git history recorded for this file"+ ],+ "safe_to_delete": false,+ "primary_owner": null,+ "age_days": null,+ "risk_factors": [],+ "start_line": null,+ "end_line": null,+ "export_only": false+ },+ {+ "kind": "unused_export",+ "file_path": "csharp_pkg/Calculator.cs",+ "symbol_name": "Calculator",+ "symbol_kind": "class",+ "confidence": 0.3,+ "reason": "'Calculator' is used in its own file; only its export is unused",+ "last_commit_at": null,+ "commit_count_90d": 0,+ "lines": 14,+ "evidence": [+ "No file imports symbol 'Calculator' from Calculator.cs",+ "Used in its own file at csharp_pkg/Calculator.cs:6; at most it need not be public"+ ],+ "safe_to_delete": false,+ "primary_owner": null,+ "age_days": null,+ "risk_factors": [],+ "start_line": 7,+ "end_line": 20,+ "export_only": true+ },+ {+ "kind": "unused_export",+ "file_path": "java_pkg/Calculator.java",+ "symbol_name": "Calculator",+ "symbol_kind": "class",+ "confidence": 0.4,+ "reason": "'Calculator' is not imported, but is named elsewhere in the repo",+ "last_commit_at": null,+ "commit_count_90d": 0,+ "lines": 65,+ "evidence": [+ "No file imports symbol 'Calculator' from Calculator.java",+ "'Calculator' is written at cpp_pkg/calculator.cpp, so the absence of an import does not establish disuse"+ ],+ "safe_to_delete": false,+ "primary_owner": null,+ "age_days": null,+ "risk_factors": [],+ "start_line": 12,+ "end_line": 76,+ "export_only": false+ },+ {+ "kind": "unused_export",+ "file_path": "kotlin_pkg/Calculator.kt",+ "symbol_name": "Calculator",+ "symbol_kind": "class",+ "confidence": 0.4,+ "reason": "'Calculator' is not imported, but is named elsewhere in the repo",+ "last_commit_at": null,+ "commit_count_90d": 0,+ "lines": 21,+ "evidence": [+ "No file imports symbol 'Calculator' from Calculator.kt",+ "'Calculator' is written at cpp_pkg/calculator.cpp, so the absence of an import does not establish disuse"+ ],+ "safe_to_delete": false,+ "primary_owner": null,+ "age_days": null,+ "risk_factors": [],+ "start_line": 6,+ "end_line": 26,+ "export_only": false+ },+ {+ "kind": "unused_export",+ "file_path": "php_pkg/Calculator.php",+ "symbol_name": "Calculator",+ "symbol_kind": "class",+ "confidence": 0.4,+ "reason": "'Calculator' is not imported, but is named elsewhere in the repo",+ "last_commit_at": null,+ "commit_count_90d": 0,+ "lines": 14,+ "evidence": [+ "No file imports symbol 'Calculator' from Calculator.php",+ "'Calculator' is written at cpp_pkg/calculator.cpp, so the absence of an import does not establish disuse"+ ],+ "safe_to_delete": false,+ "primary_owner": null,+ "age_days": null,+ "risk_factors": [],+ "start_line": 8,+ "end_line": 21,+ "export_only": false+ },+ {+ "kind": "unused_export",+ "file_path": "php_pkg/Models.php",+ "symbol_name": "Operation",+ "symbol_kind": "enum",+ "confidence": 0.4,+ "reason": "'Operation' is not imported, but is named elsewhere in the repo",+ "last_commit_at": null,+ "commit_count_90d": 0,+ "lines": 5,+ "evidence": [+ "No file imports symbol 'Operation' from Models.php",+ "'Operation' is written at cpp_pkg/calculator.cpp, so the absence of an import does not establish disuse"+ ],+ "safe_to_delete": false,+ "primary_owner": null,+ "age_days": null,+ "risk_factors": [],+ "start_line": 5,+ "end_line": 9,+ "export_only": false+ },+ {+ "kind": "unused_export",+ "file_path": "php_pkg/Models.php",+ "symbol_name": "CalculationRecord",+ "symbol_kind": "class",+ "confidence": 0.4,+ "reason": "'CalculationRecord' is not imported, but is named elsewhere in the repo",+ "last_commit_at": null,+ "commit_count_90d": 0,+ "lines": 9,+ "evidence": [+ "No file imports symbol 'CalculationRecord' from Models.php",+ "'CalculationRecord' is written at cpp_pkg/calculator.cpp, so the absence of an import does not establish disuse"+ ],+ "safe_to_delete": false,+ "primary_owner": null,+ "age_days": null,+ "risk_factors": [],+ "start_line": 12,+ "end_line": 20,+ "export_only": false+ },+ {+ "kind": "unused_export",+ "file_path": "php_pkg/Models.php",+ "symbol_name": "Computable",+ "symbol_kind": "interface",+ "confidence": 0.4,+ "reason": "Public symbol 'Computable' has no importers",+ "last_commit_at": null,+ "commit_count_90d": 0,+ "lines": 4,+ "evidence": [+ "No file imports symbol 'Computable' from Models.php"+ ],+ "safe_to_delete": false,+ "primary_owner": null,+ "age_days": null,+ "risk_factors": [],+ "start_line": 22,+ "end_line": 25,+ "export_only": false+ },+ {+ "kind": "unused_export",+ "file_path": "python_pkg/utils.py",+ "symbol_name": "format_number",+ "symbol_kind": "function",+ "confidence": 1.0,+ "reason": "Public symbol 'format_number' has no importers",+ "last_commit_at": null,+ "commit_count_90d": 0,+ "lines": 17,+ "evidence": [+ "No file imports symbol 'format_number' from utils.py"+ ],+ "safe_to_delete": true,+ "primary_owner": null,+ "age_days": null,+ "risk_factors": [],+ "start_line": 41,+ "end_line": 57,+ "export_only": false+ },+ {+ "kind": "unused_export",+ "file_path": "python_pkg/utils.py",+ "symbol_name": "clamp",+ "symbol_kind": "function",+ "confidence": 1.0,+ "reason": "Public symbol 'clamp' has no importers",+ "last_commit_at": null,+ "commit_count_90d": 0,+ "lines": 17,+ "evidence": [+ "No file imports symbol 'clamp' from utils.py"+ ],+ "safe_to_delete": true,+ "primary_owner": null,+ "age_days": null,+ "risk_factors": [],+ "start_line": 60,+ "end_line": 76,+ "export_only": false+ },+ {+ "kind": "unused_export",+ "file_path": "python_pkg/utils.py",+ "symbol_name": "safe_sqrt",+ "symbol_kind": "function",+ "confidence": 1.0,+ "reason": "Public symbol 'safe_sqrt' has no importers",+ "last_commit_at": null,+ "commit_count_90d": 0,+ "lines": 15,+ "evidence": [+ "No file imports symbol 'safe_sqrt' from utils.py"+ ],+ "safe_to_delete": true,+ "primary_owner": null,+ "age_days": null,+ "risk_factors": [],+ "start_line": 79,+ "end_line": 93,+ "export_only": false+ },+ {+ "kind": "unused_export",+ "file_path": "ruby_pkg/calculator.rb",+ "symbol_name": "Calculator",+ "symbol_kind": "class",+ "confidence": 0.4,+ "reason": "'Calculator' is not imported, but is named elsewhere in the repo",+ "last_commit_at": null,+ "commit_count_90d": 0,+ "lines": 19,+ "evidence": [+ "No file imports symbol 'Calculator' from calculator.rb",+ "'Calculator' is written at cpp_pkg/calculator.cpp, so the absence of an import does not establish disuse"+ ],+ "safe_to_delete": false,+ "primary_owner": null,+ "age_days": null,+ "risk_factors": [],+ "start_line": 4,+ "end_line": 22,+ "export_only": false+ },+ {+ "kind": "unused_export",+ "file_path": "typescript_pkg/src/utils.ts",+ "symbol_name": "formatNumber",+ "symbol_kind": "function",+ "confidence": 0.4,+ "reason": "'formatNumber' is not imported, but is named elsewhere in the repo",+ "last_commit_at": null,+ "commit_count_90d": 0,+ "lines": 6,+ "evidence": [+ "No file imports symbol 'formatNumber' from utils.ts",+ "'formatNumber' is written at typescript_pkg/src/utils.ts:109, so the absence of an import does not establish disuse"+ ],+ "safe_to_delete": false,+ "primary_owner": null,+ "age_days": null,+ "risk_factors": [],+ "start_line": 113,+ "end_line": 118,+ "export_only": false+ },+ {+ "kind": "unused_export",+ "file_path": "utils/helpers.py",+ "symbol_name": "used_by_nobody_else",+ "symbol_kind": "function",+ "confidence": 0.6,+ "reason": "Public symbol 'used_by_nobody_else' has no importers",+ "last_commit_at": null,+ "commit_count_90d": 0,+ "lines": 3,+ "evidence": [+ "No file imports symbol 'used_by_nobody_else' from helpers.py"+ ],+ "safe_to_delete": false,+ "primary_owner": null,+ "age_days": null,+ "risk_factors": [],+ "start_line": 9,+ "end_line": 11,+ "export_only": false+ }+ ]+ }+}diff --git a/tests/unit/dead_code/test_analyzer_golden.py b/tests/unit/dead_code/test_analyzer_golden.pynew file mode 100644index 000000000..8c6166428--- /dev/null+++ b/tests/unit/dead_code/test_analyzer_golden.py@@ -0,0 +1,94 @@+"""Golden output of ``DeadCodeAnalyzer.analyze`` on the mixed-language sample repo.++Pins every finding field, the order findings come back in, and the report+totals, so a refactor of the analyzer cannot move a verdict unseen. The graph+is the one ``update`` builds (``build_repo_graph``). Rewrite with+``REPOWISE_REWRITE_GOLDEN=1`` only for an intended behaviour change.+"""++from __future__ import annotations++import dataclasses+import json+import os+from pathlib import Path++from repowise.core.analysis.dead_code import DeadCodeAnalyzer+from repowise.core.pipeline.incremental import build_repo_graph++GOLDEN = Path(__file__).parent / "golden" / "dead_code_sample_repo.json"+++def _copy_lf(src: Path, dst: Path) -> None:+ """Copy *src* to *dst* with LF line endings, as a Linux checkout has them."""+ for path in sorted(src.rglob("*")):+ if path.is_file():+ target = dst / path.relative_to(src)+ target.parent.mkdir(parents=True, exist_ok=True)+ target.write_bytes(path.read_bytes().replace(b"\r\n", b"\n"))+++def _report_dict(report, root: Path) -> dict:+ def finding(f) -> dict:+ row = dataclasses.asdict(f)+ row["kind"] = f.kind.value+ row["last_commit_at"] = f.last_commit_at.isoformat() if f.last_commit_at else None+ return row++ # The temp root is the one volatile value; evidence may name it.+ text = json.dumps(+ {+ "total_findings": report.total_findings,+ "deletable_lines": report.deletable_lines,+ "confidence_summary": report.confidence_summary,+ "hidden_below_threshold": report.hidden_below_threshold,+ "findings": [finding(f) for f in report.findings],+ }+ )+ for spelling in {str(root), root.as_posix(), json.dumps(str(root))[1:-1]}:+ text = text.replace(spelling, "<root>")+ return json.loads(text)+++def _analyze(tmp_path: Path, sample_repo_path: Path) -> dict:+ root = tmp_path / "repo"+ _copy_lf(sample_repo_path, root)+ _parsed, source_map, builder, _structure, _count = build_repo_graph(+ root, [], collect_sources=True, read_only=True+ )+ analyzer = DeadCodeAnalyzer(+ builder.graph(),+ {},+ parsed_files=builder._parsed_files,+ source_map=source_map,+ repo_root=root,+ unindexed_source_files=builder.traversal_stats.unindexed_source_files(),+ dotnet_index=getattr(builder, "dotnet_index", None),+ )+ steps: list[str] = []+ return {+ "all": _report_dict(analyzer.analyze({"min_confidence": 0.0}, on_step=steps.append), root),+ "steps": steps,+ # The default floor, and a whitelisted file with detectors switched off.+ "default": _report_dict(analyzer.analyze(), root),+ "narrowed": _report_dict(+ analyzer.analyze(+ {+ "min_confidence": 0.0,+ "whitelist": ["dead/unreachable_module.py"],+ "detect_zombie_packages": False,+ "detect_unused_internals": False,+ }+ ),+ root,+ ),+ }+++def test_dead_code_matches_golden(tmp_path: Path, sample_repo_path: Path) -> None:+ actual = _analyze(tmp_path, sample_repo_path)+ if os.environ.get("REPOWISE_REWRITE_GOLDEN") == "1":+ GOLDEN.parent.mkdir(exist_ok=True)+ GOLDEN.write_text(json.dumps(actual, indent=2) + "\n", encoding="utf-8")+ expected = json.loads(GOLDEN.read_text(encoding="utf-8"))+ assert actual == expecteddiff --git a/tests/unit/health/golden/health_engine.json b/tests/unit/health/golden/health_engine.jsonnew file mode 100644index 000000000..8989540d0--- /dev/null+++ b/tests/unit/health/golden/health_engine.json@@ -0,0 +1,4300 @@+{+ "trees/gopkg": {+ "metrics": [+ {+ "file_path": "inventory.go",+ "score": 10.0,+ "max_ccn": 6,+ "max_nesting": 2,+ "nloc": 319,+ "has_test_file": false,+ "module": null,+ "duplication_pct": null,+ "line_coverage_pct": null,+ "branch_coverage_pct": null,+ "defect_score": 10.0,+ "maintainability_score": 10.0,+ "performance_score": 10.0,+ "structure_deduction": 0.0,+ "history_deduction": 0.0,+ "is_test": false,+ "code_origin": "production"+ }+ ],+ "findings": [],+ "kpis": {+ "hotspot_health": null,+ "average_health": 10.0,+ "worst_performer_path": "inventory.go",+ "worst_performer_score": 10.0,+ "worst_test_path": null,+ "worst_test_score": null,+ "file_count": 1,+ "maintainability_average": 10.0,+ "maintainability_hotspot": null,+ "performance_average": 10.0,+ "performance_hotspot": null,+ "structure_average": 0.0,+ "structure_hotspot": null,+ "history_average": 0.0,+ "history_hotspot": null,+ "production_average": 10.0,+ "production_file_count": 1,+ "unanalysed_file_count": 0,+ "analysed_share": 1.0+ },+ "repo_function_mod_p80": null,+ "suggestions": [+ {+ "refactoring_type": "split_file",+ "file_path": "inventory.go",+ "target_symbol": "inventory.go -> 2 files",+ "line_start": null,+ "line_end": null,+ "impact_delta": 0.0,+ "effort_bucket": "L",+ "confidence": "high",+ "source_biomarker": ""+ }+ ]+ },+ "trees/orm": {+ "metrics": [+ {+ "file_path": "models.py",+ "score": 10.0,+ "max_ccn": 1,+ "max_nesting": 0,+ "nloc": 34,+ "has_test_file": false,+ "module": null,+ "duplication_pct": 80.49,+ "line_coverage_pct": null,+ "branch_coverage_pct": null,+ "defect_score": 10.0,+ "maintainability_score": 10.0,+ "performance_score": 10.0,+ "structure_deduction": 0.0,+ "history_deduction": 0.0,+ "is_test": false,+ "code_origin": "production"+ }+ ],+ "findings": [],+ "kpis": {+ "hotspot_health": null,+ "average_health": 10.0,+ "worst_performer_path": "models.py",+ "worst_performer_score": 10.0,+ "worst_test_path": null,+ "worst_test_score": null,+ "file_count": 1,+ "maintainability_average": 10.0,+ "maintainability_hotspot": null,+ "performance_average": 10.0,+ "performance_hotspot": null,+ "structure_average": 0.0,+ "structure_hotspot": null,+ "history_average": 0.0,+ "history_hotspot": null,+ "production_average": 10.0,+ "production_file_count": 1,+ "unanalysed_file_count": 0,+ "analysed_share": 1.0+ },+ "repo_function_mod_p80": null,+ "suggestions": []+ },+ "trees/tsapp": {+ "metrics": [+ {+ "file_path": "account.ts",+ "score": 8.2,+ "max_ccn": 17,+ "max_nesting": 3,+ "nloc": 66,+ "has_test_file": false,+ "module": null,+ "duplication_pct": 97.14,+ "line_coverage_pct": null,+ "branch_coverage_pct": null,+ "defect_score": 8.2,+ "maintainability_score": 8.1,+ "performance_score": 10.0,+ "structure_deduction": 1.802,+ "history_deduction": 0.0,+ "is_test": false,+ "code_origin": "production"+ },+ {+ "file_path": "index.ts",+ "score": 10.0,+ "max_ccn": 1,+ "max_nesting": 0,+ "nloc": 6,+ "has_test_file": false,+ "module": null,+ "duplication_pct": null,+ "line_coverage_pct": null,+ "branch_coverage_pct": null,+ "defect_score": 10.0,+ "maintainability_score": 10.0,+ "performance_score": 10.0,+ "structure_deduction": 0.0,+ "history_deduction": 0.0,+ "is_test": false,+ "code_origin": "production"+ },+ {+ "file_path": "workspace.ts",+ "score": 8.2,+ "max_ccn": 17,+ "max_nesting": 3,+ "nloc": 66,+ "has_test_file": false,+ "module": null,+ "duplication_pct": 97.14,+ "line_coverage_pct": null,+ "branch_coverage_pct": null,+ "defect_score": 8.2,+ "maintainability_score": 8.1,+ "performance_score": 10.0,+ "structure_deduction": 1.802,+ "history_deduction": 0.0,+ "is_test": false,+ "code_origin": "production"+ }+ ],+ "findings": [+ {+ "biomarker_type": "complex_method",+ "severity": "high",+ "file_path": "account.ts",+ "function_name": "parseAccount",+ "line_start": 15,+ "line_end": 56,+ "details": {+ "ccn": 17,+ "cognitive": 19,+ "nloc": 42,+ "dispatch_share": 0.0,+ "symbol_line": 15,+ "deepest_block": {+ "start": 48,+ "end": 52+ }+ },+ "health_impact": 1.452,+ "reason": "parseAccount has cyclomatic complexity 17",+ "dimension": "defect",+ "id": "finding_f79a5d5e8f306abe7ab7"+ },+ {+ "biomarker_type": "dry_violation",+ "severity": "medium",+ "file_path": "account.ts",+ "function_name": null,+ "line_start": 6,+ "line_end": 73,+ "details": {+ "cross_file_duplication_pct": 97.14,+ "clone_pair_count": 1,+ "worst_clone_lines": 68,+ "worst_clone_partner": "workspace.ts",+ "worst_clone_co_change": 0+ },+ "health_impact": 0.35,+ "reason": "97% of file duplicated in other files; worst clone shares 68 lines with workspace.ts",+ "dimension": "maintainability",+ "id": "finding_adecdf1cea8a1aad2796"+ },+ {+ "biomarker_type": "complex_method",+ "severity": "high",+ "file_path": "workspace.ts",+ "function_name": "parseWorkspace",+ "line_start": 15,+ "line_end": 56,+ "details": {+ "ccn": 17,+ "cognitive": 19,+ "nloc": 42,+ "dispatch_share": 0.0,+ "symbol_line": 15,+ "deepest_block": {+ "start": 48,+ "end": 52+ }+ },+ "health_impact": 1.452,+ "reason": "parseWorkspace has cyclomatic complexity 17",+ "dimension": "defect",+ "id": "finding_d79d97d650bcedab3ec2"+ },+ {+ "biomarker_type": "dry_violation",+ "severity": "medium",+ "file_path": "workspace.ts",+ "function_name": null,+ "line_start": 6,+ "line_end": 73,+ "details": {+ "cross_file_duplication_pct": 97.14,+ "clone_pair_count": 1,+ "worst_clone_lines": 68,+ "worst_clone_partner": "account.ts",+ "worst_clone_co_change": 0+ },+ "health_impact": 0.35,+ "reason": "97% of file duplicated in other files; worst clone shares 68 lines with account.ts",+ "dimension": "maintainability",+ "id": "finding_27bf987f937f7819f307"+ }+ ],+ "kpis": {+ "hotspot_health": null,+ "average_health": 8.28,+ "worst_performer_path": "account.ts",+ "worst_performer_score": 8.2,+ "worst_test_path": null,+ "worst_test_score": null,+ "file_count": 3,+ "maintainability_average": 8.18,+ "maintainability_hotspot": null,+ "performance_average": 10.0,+ "performance_hotspot": null,+ "structure_average": 1.72,+ "structure_hotspot": null,+ "history_average": 0.0,+ "history_hotspot": null,+ "production_average": 8.28,+ "production_file_count": 3,+ "unanalysed_file_count": 0,+ "analysed_share": 1.0+ },+ "repo_function_mod_p80": null,+ "suggestions": [+ {+ "refactoring_type": "extract_method",+ "file_path": "account.ts",+ "target_symbol": "parseAccount",+ "line_start": 15,+ "line_end": 56,+ "impact_delta": 0.256,+ "effort_bucket": "S",+ "confidence": "high",+ "source_biomarker": "complex_method"+ },+ {+ "refactoring_type": "extract_method",+ "file_path": "workspace.ts",+ "target_symbol": "parseWorkspace",+ "line_start": 15,+ "line_end": 56,+ "impact_delta": 0.256,+ "effort_bucket": "S",+ "confidence": "high",+ "source_biomarker": "complex_method"+ }+ ]+ },+ "trees/web": {+ "metrics": [+ {+ "file_path": "handlers.py",+ "score": 8.5,+ "max_ccn": 12,+ "max_nesting": 3,+ "nloc": 182,+ "has_test_file": false,+ "module": null,+ "duplication_pct": 85.42,+ "line_coverage_pct": null,+ "branch_coverage_pct": null,+ "defect_score": 8.5,+ "maintainability_score": 8.0,+ "performance_score": 10.0,+ "structure_deduction": 1.5,+ "history_deduction": 0.0,+ "is_test": false,+ "code_origin": "production"+ }+ ],+ "findings": [+ {+ "biomarker_type": "complex_method",+ "severity": "medium",+ "file_path": "handlers.py",+ "function_name": "read_account",+ "line_start": 22,+ "line_end": 48,+ "details": {+ "ccn": 12,+ "cognitive": 16,+ "nloc": 26,+ "dispatch_share": 0.36,+ "symbol_line": 22,+ "deepest_block": {+ "start": 40,+ "end": 46+ }+ },+ "health_impact": 0.25,+ "reason": "read_account has cyclomatic complexity 12",+ "dimension": "defect",+ "id": "finding_c58a781745af6691c556"+ },+ {+ "biomarker_type": "complex_method",+ "severity": "medium",+ "file_path": "handlers.py",+ "function_name": "close_account",+ "line_start": 52,+ "line_end": 71,+ "details": {+ "ccn": 10,+ "cognitive": 11,+ "nloc": 19,+ "dispatch_share": 0.0,+ "symbol_line": 52,+ "deepest_block": {+ "start": 62,+ "end": 67+ }+ },+ "health_impact": 0.25,+ "reason": "close_account has cyclomatic complexity 10",+ "dimension": "defect",+ "id": "finding_8b967d56d3c522a17535"+ },+ {+ "biomarker_type": "complex_method",+ "severity": "medium",+ "file_path": "handlers.py",+ "function_name": "read_workspace",+ "line_start": 86,+ "line_end": 112,+ "details": {+ "ccn": 12,+ "cognitive": 16,+ "nloc": 26,+ "dispatch_share": 0.36,+ "symbol_line": 86,+ "deepest_block": {+ "start": 104,+ "end": 110+ }+ },+ "health_impact": 0.25,+ "reason": "read_workspace has cyclomatic complexity 12",+ "dimension": "defect",+ "id": "finding_0b6ecfa0a2ac9cd7addc"+ },+ {+ "biomarker_type": "complex_method",+ "severity": "medium",+ "file_path": "handlers.py",+ "function_name": "close_workspace",+ "line_start": 116,+ "line_end": 135,+ "details": {+ "ccn": 10,+ "cognitive": 11,+ "nloc": 19,+ "dispatch_share": 0.0,+ "symbol_line": 116,+ "deepest_block": {+ "start": 126,+ "end": 131+ }+ },+ "health_impact": 0.25,+ "reason": "close_workspace has cyclomatic complexity 10",+ "dimension": "defect",+ "id": "finding_4934d3ca94e412af4fb3"+ },+ {+ "biomarker_type": "complex_method",+ "severity": "medium",+ "file_path": "handlers.py",+ "function_name": "read_project",+ "line_start": 150,+ "line_end": 176,+ "details": {+ "ccn": 12,+ "cognitive": 16,+ "nloc": 26,+ "dispatch_share": 0.36,+ "symbol_line": 150,+ "deepest_block": {+ "start": 168,+ "end": 174+ }+ },+ "health_impact": 0.25,+ "reason": "read_project has cyclomatic complexity 12",+ "dimension": "defect",+ "id": "finding_39991e29869edf38f6d2"+ },+ {+ "biomarker_type": "complex_method",+ "severity": "medium",+ "file_path": "handlers.py",+ "function_name": "close_project",+ "line_start": 180,+ "line_end": 199,+ "details": {+ "ccn": 10,+ "cognitive": 11,+ "nloc": 19,+ "dispatch_share": 0.0,+ "symbol_line": 180,+ "deepest_block": {+ "start": 190,+ "end": 195+ }+ },+ "health_impact": 0.25,+ "reason": "close_project has cyclomatic complexity 10",+ "dimension": "defect",+ "id": "finding_ebd7768c22e919caee2c"+ }+ ],+ "kpis": {+ "hotspot_health": null,+ "average_health": 8.5,+ "worst_performer_path": "handlers.py",+ "worst_performer_score": 8.5,+ "worst_test_path": null,+ "worst_test_score": null,+ "file_count": 1,+ "maintainability_average": 8.0,+ "maintainability_hotspot": null,+ "performance_average": 10.0,+ "performance_hotspot": null,+ "structure_average": 1.5,+ "structure_hotspot": null,+ "history_average": 0.0,+ "history_hotspot": null,+ "production_average": 8.5,+ "production_file_count": 1,+ "unanalysed_file_count": 0,+ "analysed_share": 1.0+ },+ "repo_function_mod_p80": null,+ "suggestions": [+ {+ "refactoring_type": "extract_method",+ "file_path": "handlers.py",+ "target_symbol": "read_account",+ "line_start": 22,+ "line_end": 48,+ "impact_delta": 0.083,+ "effort_bucket": "S",+ "confidence": "high",+ "source_biomarker": "complex_method"+ },+ {+ "refactoring_type": "extract_method",+ "file_path": "handlers.py",+ "target_symbol": "read_project",+ "line_start": 150,+ "line_end": 176,+ "impact_delta": 0.083,+ "effort_bucket": "S",+ "confidence": "high",+ "source_biomarker": "complex_method"+ },+ {+ "refactoring_type": "extract_method",+ "file_path": "handlers.py",+ "target_symbol": "read_workspace",+ "line_start": 86,+ "line_end": 112,+ "impact_delta": 0.083,+ "effort_bucket": "S",+ "confidence": "high",+ "source_biomarker": "complex_method"+ },+ {+ "refactoring_type": "extract_helper",+ "file_path": "handlers.py",+ "target_symbol": "handlers.py:25-47",+ "line_start": 25,+ "line_end": 47,+ "impact_delta": 0.0,+ "effort_bucket": "S",+ "confidence": "medium",+ "source_biomarker": "dry_violation"+ },+ {+ "refactoring_type": "extract_helper",+ "file_path": "handlers.py",+ "target_symbol": "handlers.py:89-111",+ "line_start": 89,+ "line_end": 111,+ "impact_delta": 0.0,+ "effort_bucket": "S",+ "confidence": "medium",+ "source_biomarker": "dry_violation"+ }+ ]+ },+ "lang_samples": {+ "metrics": [+ {+ "file_path": "cpp/assertions.cpp",+ "score": 10.0,+ "max_ccn": 1,+ "max_nesting": 0,+ "nloc": 23,+ "has_test_file": false,+ "module": "cpp",+ "duplication_pct": 64.0,+ "line_coverage_pct": null,+ "branch_coverage_pct": null,+ "defect_score": 10.0,+ "maintainability_score": 10.0,+ "performance_score": 10.0,+ "structure_deduction": 0.0,+ "history_deduction": 0.0,+ "is_test": false,+ "code_origin": "production"+ },+ {+ "file_path": "cpp/classes.cpp",+ "score": 10.0,+ "max_ccn": 2,+ "max_nesting": 1,+ "nloc": 39,+ "has_test_file": false,+ "module": "cpp",+ "duplication_pct": null,+ "line_coverage_pct": null,+ "branch_coverage_pct": null,+ "defect_score": 10.0,+ "maintainability_score": 10.0,+ "performance_score": 10.0,+ "structure_deduction": 0.0,+ "history_deduction": 0.0,+ "is_test": false,+ "code_origin": "production"+ },+ {+ "file_path": "cpp/nested.cpp",+ "score": 9.06,+ "max_ccn": 9,+ "max_nesting": 4,+ "nloc": 24,+ "has_test_file": false,+ "module": "cpp",+ "duplication_pct": null,+ "line_coverage_pct": null,+ "branch_coverage_pct": null,+ "defect_score": 9.06,+ "maintainability_score": 9.3,+ "performance_score": 10.0,+ "structure_deduction": 0.938,+ "history_deduction": 0.0,+ "is_test": false,+ "code_origin": "production"+ },+ {+ "file_path": "csharp/PerfIoInLoop.cs",+ "score": 10.0,+ "max_ccn": 2,+ "max_nesting": 1,+ "nloc": 69,+ "has_test_file": false,+ "module": "csharp",+ "duplication_pct": null,+ "line_coverage_pct": null,+ "branch_coverage_pct": null,+ "defect_score": 10.0,+ "maintainability_score": 10.0,+ "performance_score": 8.0,+ "structure_deduction": 0.0,+ "history_deduction": 0.0,+ "is_test": false,+ "code_origin": "production"+ },+ {+ "file_path": "csharp/assertions.cs",+ "score": 10.0,+ "max_ccn": 1,+ "max_nesting": 0,+ "nloc": 28,+ "has_test_file": false,+ "module": "csharp",+ "duplication_pct": 53.33,+ "line_coverage_pct": null,+ "branch_coverage_pct": null,+ "defect_score": 10.0,+ "maintainability_score": 10.0,+ "performance_score": 10.0,+ "structure_deduction": 0.0,+ "history_deduction": 0.0,+ "is_test": false,+ "code_origin": "production"+ },+ {+ "file_path": "csharp/classes.cs",+ "score": 10.0,+ "max_ccn": 2,+ "max_nesting": 1,+ "nloc": 48,+ "has_test_file": false,+ "module": "csharp",+ "duplication_pct": null,+ "line_coverage_pct": null,+ "branch_coverage_pct": null,+ "defect_score": 10.0,+ "maintainability_score": 10.0,+ "performance_score": 10.0,+ "structure_deduction": 0.0,+ "history_deduction": 0.0,+ "is_test": false,+ "code_origin": "production"+ },+ {+ "file_path": "csharp/nested.cs",+ "score": 9.06,+ "max_ccn": 9,+ "max_nesting": 4,+ "nloc": 34,+ "has_test_file": false,+ "module": "csharp",+ "duplication_pct": null,+ "line_coverage_pct": null,+ "branch_coverage_pct": null,+ "defect_score": 9.06,+ "maintainability_score": 9.3,+ "performance_score": 10.0,+ "structure_deduction": 0.938,+ "history_deduction": 0.0,+ "is_test": false,+ "code_origin": "production"+ },+ {+ "file_path": "dart/assertions.dart",+ "score": 10.0,+ "max_ccn": 1,+ "max_nesting": 0,+ "nloc": 12,+ "has_test_file": false,+ "module": "dart",+ "duplication_pct": null,+ "line_coverage_pct": null,+ "branch_coverage_pct": null,+ "defect_score": 10.0,+ "maintainability_score": 10.0,+ "performance_score": 10.0,+ "structure_deduction": 0.0,+ "history_deduction": 0.0,+ "is_test": false,+ "code_origin": "production"+ },+ {+ "file_path": "dart/classes.dart",+ "score": 10.0,+ "max_ccn": 1,+ "max_nesting": 0,+ "nloc": 34,+ "has_test_file": false,+ "module": "dart",+ "duplication_pct": null,+ "line_coverage_pct": null,+ "branch_coverage_pct": null,+ "defect_score": 10.0,+ "maintainability_score": 10.0,+ "performance_score": 10.0,+ "structure_deduction": 0.0,+ "history_deduction": 0.0,+ "is_test": false,+ "code_origin": "production"+ },+ {+ "file_path": "dart/nested.dart",+ "score": 8.21,+ "max_ccn": 9,+ "max_nesting": 4,+ "nloc": 24,+ "has_test_file": false,+ "module": "dart",+ "duplication_pct": null,+ "line_coverage_pct": null,+ "branch_coverage_pct": null,+ "defect_score": 8.21,+ "maintainability_score": 8.6,+ "performance_score": 10.0,+ "structure_deduction": 1.785,+ "history_deduction": 0.0,+ "is_test": false,+ "code_origin": "production"+ },+ {+ "file_path": "dart/perf_io_in_loop.dart",+ "score": 10.0,+ "max_ccn": 2,+ "max_nesting": 1,+ "nloc": 34,+ "has_test_file": false,+ "module": "dart",+ "duplication_pct": null,+ "line_coverage_pct": null,+ "branch_coverage_pct": null,+ "defect_score": 10.0,+ "maintainability_score": 10.0,+ "performance_score": 8.0,+ "structure_deduction": 0.0,+ "history_deduction": 0.0,+ "is_test": false,+ "code_origin": "production"+ },+ {+ "file_path": "go/conditionals.go",+ "score": 9.2,+ "max_ccn": 8,+ "max_nesting": 1,+ "nloc": 19,+ "has_test_file": false,+ "module": "go",+ "duplication_pct": null,+ "line_coverage_pct": null,+ "branch_coverage_pct": null,+ "defect_score": 9.2,+ "maintainability_score": 9.4,+ "performance_score": 10.0,+ "structure_deduction": 0.798,+ "history_deduction": 0.0,+ "is_test": false,+ "code_origin": "production"+ },+ {+ "file_path": "go/nested.go",+ "score": 8.39,+ "max_ccn": 6,+ "max_nesting": 5,+ "nloc": 19,+ "has_test_file": false,+ "module": "go",+ "duplication_pct": null,+ "line_coverage_pct": null,+ "branch_coverage_pct": null,+ "defect_score": 8.39,+ "maintainability_score": 8.8,+ "performance_score": 10.0,+ "structure_deduction": 1.608,+ "history_deduction": 0.0,+ "is_test": false,+ "code_origin": "production"+ },+ {+ "file_path": "go/perf_io_in_loop.go",+ "score": 9.85,+ "max_ccn": 2,+ "max_nesting": 1,+ "nloc": 56,+ "has_test_file": false,+ "module": "go",+ "duplication_pct": null,+ "line_coverage_pct": null,+ "branch_coverage_pct": null,+ "defect_score": 9.85,+ "maintainability_score": 9.7,+ "performance_score": 8.0,+ "structure_deduction": 0.15,+ "history_deduction": 0.0,+ "is_test": false,+ "code_origin": "production"+ },+ {+ "file_path": "java/Conditionals.java",+ "score": 9.2,+ "max_ccn": 8,+ "max_nesting": 1,+ "nloc": 20,+ "has_test_file": false,+ "module": "java",+ "duplication_pct": null,+ "line_coverage_pct": null,+ "branch_coverage_pct": null,+ "defect_score": 9.2,+ "maintainability_score": 9.4,+ "performance_score": 10.0,+ "structure_deduction": 0.798,+ "history_deduction": 0.0,+ "is_test": false,+ "code_origin": "production"+ },+ {+ "file_path": "java/Nested.java",+ "score": 8.24,+ "max_ccn": 7,+ "max_nesting": 5,+ "nloc": 23,+ "has_test_file": false,+ "module": "java",+ "duplication_pct": null,+ "line_coverage_pct": null,+ "branch_coverage_pct": null,+ "defect_score": 8.24,+ "maintainability_score": 8.5,+ "performance_score": 10.0,+ "structure_deduction": 1.758,+ "history_deduction": 0.0,+ "is_test": false,+ "code_origin": "production"+ },+ {+ "file_path": "java/PerfIoInLoop.java",+ "score": 10.0,+ "max_ccn": 2,+ "max_nesting": 1,+ "nloc": 53,+ "has_test_file": false,+ "module": "java",+ "duplication_pct": null,+ "line_coverage_pct": null,+ "branch_coverage_pct": null,+ "defect_score": 10.0,+ "maintainability_score": 10.0,+ "performance_score": 8.0,+ "structure_deduction": 0.0,+ "history_deduction": 0.0,+ "is_test": false,+ "code_origin": "production"+ },+ {+ "file_path": "javascript/nested.js",+ "score": 8.24,+ "max_ccn": 7,+ "max_nesting": 5,+ "nloc": 20,+ "has_test_file": false,+ "module": "javascript",+ "duplication_pct": null,+ "line_coverage_pct": null,+ "branch_coverage_pct": null,+ "defect_score": 8.24,+ "maintainability_score": 8.5,+ "performance_score": 10.0,+ "structure_deduction": 1.758,+ "history_deduction": 0.0,+ "is_test": false,+ "code_origin": "production"+ },+ {+ "file_path": "javascript/route.js",+ "score": 10.0,+ "max_ccn": 3,+ "max_nesting": 1,+ "nloc": 28,+ "has_test_file": false,+ "module": "javascript",+ "duplication_pct": null,+ "line_coverage_pct": null,+ "branch_coverage_pct": null,+ "defect_score": 10.0,+ "maintainability_score": 10.0,+ "performance_score": 10.0,+ "structure_deduction": 0.0,+ "history_deduction": 0.0,+ "is_test": false,+ "code_origin": "production"+ },+ {+ "file_path": "kotlin/assertions.kt",+ "score": 10.0,+ "max_ccn": 1,+ "max_nesting": 0,+ "nloc": 23,+ "has_test_file": false,+ "module": "kotlin",+ "duplication_pct": 66.67,+ "line_coverage_pct": null,+ "branch_coverage_pct": null,+ "defect_score": 10.0,+ "maintainability_score": 10.0,+ "performance_score": 10.0,+ "structure_deduction": 0.0,+ "history_deduction": 0.0,+ "is_test": false,+ "code_origin": "production"+ },+ {+ "file_path": "kotlin/classes.kt",+ "score": 10.0,+ "max_ccn": 2,+ "max_nesting": 1,+ "nloc": 37,+ "has_test_file": false,+ "module": "kotlin",+ "duplication_pct": null,+ "line_coverage_pct": null,+ "branch_coverage_pct": null,+ "defect_score": 10.0,+ "maintainability_score": 10.0,+ "performance_score": 10.0,+ "structure_deduction": 0.0,+ "history_deduction": 0.0,+ "is_test": false,+ "code_origin": "production"+ },+ {+ "file_path": "kotlin/nested.kt",+ "score": 9.06,+ "max_ccn": 9,+ "max_nesting": 4,+ "nloc": 24,+ "has_test_file": false,+ "module": "kotlin",+ "duplication_pct": null,+ "line_coverage_pct": null,+ "branch_coverage_pct": null,+ "defect_score": 9.06,+ "maintainability_score": 9.3,+ "performance_score": 10.0,+ "structure_deduction": 0.938,+ "history_deduction": 0.0,+ "is_test": false,+ "code_origin": "production"+ },+ {+ "file_path": "lean/BigOperators.lean",+ "score": null,+ "max_ccn": null,+ "max_nesting": null,+ "nloc": 3,+ "has_test_file": false,+ "module": "lean",+ "duplication_pct": null,+ "line_coverage_pct": null,+ "branch_coverage_pct": null,+ "defect_score": null,+ "maintainability_score": null,+ "performance_score": null,+ "structure_deduction": null,+ "history_deduction": null,+ "is_test": false,+ "code_origin": "production"+ },+ {+ "file_path": "lean/Main.lean",+ "score": null,+ "max_ccn": null,+ "max_nesting": null,+ "nloc": 4,+ "has_test_file": false,+ "module": "lean",+ "duplication_pct": null,+ "line_coverage_pct": null,+ "branch_coverage_pct": null,+ "defect_score": null,+ "maintainability_score": null,+ "performance_score": null,+ "structure_deduction": null,+ "history_deduction": null,+ "is_test": false,+ "code_origin": "production"+ },+ {+ "file_path": "lean/Plain/Local.lean",+ "score": null,+ "max_ccn": null,+ "max_nesting": null,+ "nloc": 3,+ "has_test_file": false,+ "module": "lean",+ "duplication_pct": null,+ "line_coverage_pct": null,+ "branch_coverage_pct": null,+ "defect_score": null,+ "maintainability_score": null,+ "performance_score": null,+ "structure_deduction": null,+ "history_deduction": null,+ "is_test": false,+ "code_origin": "production"+ },+ {+ "file_path": "lean/Public/Visible.lean",+ "score": null,+ "max_ccn": null,+ "max_nesting": null,+ "nloc": 3,+ "has_test_file": false,+ "module": "lean",+ "duplication_pct": null,+ "line_coverage_pct": null,+ "branch_coverage_pct": null,+ "defect_score": null,+ "maintainability_score": null,+ "performance_score": null,+ "structure_deduction": null,+ "history_deduction": null,+ "is_test": false,+ "code_origin": "production"+ },+ {+ "file_path": "pascal/complex.pas",+ "score": 9.15,+ "max_ccn": 13,+ "max_nesting": 1,+ "nloc": 40,+ "has_test_file": false,+ "module": "pascal",+ "duplication_pct": null,+ "line_coverage_pct": null,+ "branch_coverage_pct": null,+ "defect_score": 9.15,+ "maintainability_score": 9.3,+ "performance_score": 10.0,+ "structure_deduction": 0.847,+ "history_deduction": 0.0,+ "is_test": false,+ "code_origin": "production"+ },+ {+ "file_path": "pascal/nested.pas",+ "score": 8.39,+ "max_ccn": 6,+ "max_nesting": 5,+ "nloc": 32,+ "has_test_file": false,+ "module": "pascal",+ "duplication_pct": null,+ "line_coverage_pct": null,+ "branch_coverage_pct": null,+ "defect_score": 8.39,+ "maintainability_score": 8.8,+ "performance_score": 10.0,+ "structure_deduction": 1.608,+ "history_deduction": 0.0,+ "is_test": false,+ "code_origin": "production"+ },+ {+ "file_path": "php/assertions.php",+ "score": 10.0,+ "max_ccn": 1,+ "max_nesting": 0,+ "nloc": 18,+ "has_test_file": false,+ "module": "php",+ "duplication_pct": null,+ "line_coverage_pct": null,+ "branch_coverage_pct": null,+ "defect_score": 10.0,+ "maintainability_score": 10.0,+ "performance_score": 10.0,+ "structure_deduction": 0.0,+ "history_deduction": 0.0,+ "is_test": false,+ "code_origin": "production"+ },+ {+ "file_path": "php/classes.php",+ "score": 10.0,+ "max_ccn": 1,+ "max_nesting": 0,+ "nloc": 48,+ "has_test_file": false,+ "module": "php",+ "duplication_pct": null,+ "line_coverage_pct": null,+ "branch_coverage_pct": null,+ "defect_score": 10.0,+ "maintainability_score": 10.0,+ "performance_score": 10.0,+ "structure_deduction": 0.0,+ "history_deduction": 0.0,+ "is_test": false,+ "code_origin": "production"+ },+ {+ "file_path": "php/clean.php",+ "score": 10.0,+ "max_ccn": 1,+ "max_nesting": 0,+ "nloc": 7,+ "has_test_file": false,+ "module": "php",+ "duplication_pct": null,+ "line_coverage_pct": null,+ "branch_coverage_pct": null,+ "defect_score": 10.0,+ "maintainability_score": 10.0,+ "performance_score": 10.0,+ "structure_deduction": 0.0,+ "history_deduction": 0.0,+ "is_test": false,+ "code_origin": "production"+ },+ {+ "file_path": "php/nested.php",+ "score": 9.06,+ "max_ccn": 7,+ "max_nesting": 4,+ "nloc": 89,+ "has_test_file": false,+ "module": "php",+ "duplication_pct": null,+ "line_coverage_pct": null,+ "branch_coverage_pct": null,+ "defect_score": 9.06,+ "maintainability_score": 9.3,+ "performance_score": 10.0,+ "structure_deduction": 0.938,+ "history_deduction": 0.0,+ "is_test": false,+ "code_origin": "production"+ },+ {+ "file_path": "python/assertions.py",+ "score": 10.0,+ "max_ccn": 1,+ "max_nesting": 0,+ "nloc": 36,+ "has_test_file": false,+ "module": "python",+ "duplication_pct": 47.22,+ "line_coverage_pct": null,+ "branch_coverage_pct": null,+ "defect_score": 10.0,+ "maintainability_score": 10.0,+ "performance_score": 10.0,+ "structure_deduction": 0.0,+ "history_deduction": 0.0,+ "is_test": false,+ "code_origin": "production"+ },+ {+ "file_path": "python/classes.py",+ "score": 9.65,+ "max_ccn": 2,+ "max_nesting": 1,+ "nloc": 34,+ "has_test_file": false,+ "module": "python",+ "duplication_pct": null,+ "line_coverage_pct": null,+ "branch_coverage_pct": null,+ "defect_score": 9.65,+ "maintainability_score": 9.3,+ "performance_score": 10.0,+ "structure_deduction": 0.35,+ "history_deduction": 0.0,+ "is_test": false,+ "code_origin": "production"+ },+ {+ "file_path": "python/complex.py",+ "score": 8.55,+ "max_ccn": 15,+ "max_nesting": 2,+ "nloc": 21,+ "has_test_file": false,+ "module": "python",+ "duplication_pct": null,+ "line_coverage_pct": null,+ "branch_coverage_pct": null,+ "defect_score": 8.55,+ "maintainability_score": 8.8,+ "performance_score": 10.0,+ "structure_deduction": 1.452,+ "history_deduction": 0.0,+ "is_test": false,+ "code_origin": "production"+ },+ {+ "file_path": "python/conditionals.py",+ "score": 9.2,+ "max_ccn": 8,+ "max_nesting": 1,+ "nloc": 12,+ "has_test_file": false,+ "module": "python",+ "duplication_pct": null,+ "line_coverage_pct": null,+ "branch_coverage_pct": null,+ "defect_score": 9.2,+ "maintainability_score": 9.4,+ "performance_score": 10.0,+ "structure_deduction": 0.798,+ "history_deduction": 0.0,+ "is_test": false,+ "code_origin": "production"+ },+ {+ "file_path": "python/match.py",+ "score": 10.0,+ "max_ccn": 5,+ "max_nesting": 2,+ "nloc": 19,+ "has_test_file": false,+ "module": "python",+ "duplication_pct": null,+ "line_coverage_pct": null,+ "branch_coverage_pct": null,+ "defect_score": 10.0,+ "maintainability_score": 10.0,+ "performance_score": 10.0,+ "structure_deduction": 0.0,+ "history_deduction": 0.0,+ "is_test": false,+ "code_origin": "production"+ },+ {+ "file_path": "python/nested.py",+ "score": 8.09,+ "max_ccn": 7,+ "max_nesting": 5,+ "nloc": 14,+ "has_test_file": false,+ "module": "python",+ "duplication_pct": null,+ "line_coverage_pct": null,+ "branch_coverage_pct": null,+ "defect_score": 8.09,+ "maintainability_score": 8.2,+ "performance_score": 10.0,+ "structure_deduction": 1.908,+ "history_deduction": 0.0,+ "is_test": false,+ "code_origin": "production"+ },+ {+ "file_path": "python/perf_io_in_loop.py",+ "score": 10.0,+ "max_ccn": 2,+ "max_nesting": 1,+ "nloc": 54,+ "has_test_file": false,+ "module": "python",+ "duplication_pct": null,+ "line_coverage_pct": null,+ "branch_coverage_pct": null,+ "defect_score": 10.0,+ "maintainability_score": 10.0,+ "performance_score": 8.0,+ "structure_deduction": 0.0,+ "history_deduction": 0.0,+ "is_test": false,+ "code_origin": "production"+ },+ {+ "file_path": "python/py_overload_init.py",+ "score": 10.0,+ "max_ccn": 1,+ "max_nesting": 0,+ "nloc": 23,+ "has_test_file": false,+ "module": "python",+ "duplication_pct": null,+ "line_coverage_pct": null,+ "branch_coverage_pct": null,+ "defect_score": 10.0,+ "maintainability_score": 10.0,+ "performance_score": 10.0,+ "structure_deduction": 0.0,+ "history_deduction": 0.0,+ "is_test": false,+ "code_origin": "production"+ },+ {+ "file_path": "ruby/assertions.rb",+ "score": 10.0,+ "max_ccn": 1,+ "max_nesting": 0,+ "nloc": 17,+ "has_test_file": false,+ "module": "ruby",+ "duplication_pct": null,+ "line_coverage_pct": null,+ "branch_coverage_pct": null,+ "defect_score": 10.0,+ "maintainability_score": 10.0,+ "performance_score": 10.0,+ "structure_deduction": 0.0,+ "history_deduction": 0.0,+ "is_test": false,+ "code_origin": "production"+ },+ {+ "file_path": "ruby/classes.rb",+ "score": 10.0,+ "max_ccn": 2,+ "max_nesting": 1,+ "nloc": 40,+ "has_test_file": false,+ "module": "ruby",+ "duplication_pct": null,+ "line_coverage_pct": null,+ "branch_coverage_pct": null,+ "defect_score": 10.0,+ "maintainability_score": 10.0,+ "performance_score": 10.0,+ "structure_deduction": 0.0,+ "history_deduction": 0.0,+ "is_test": false,+ "code_origin": "production"+ },+ {+ "file_path": "ruby/nested.rb",+ "score": 9.06,+ "max_ccn": 7,+ "max_nesting": 4,+ "nloc": 81,+ "has_test_file": false,+ "module": "ruby",+ "duplication_pct": null,+ "line_coverage_pct": null,+ "branch_coverage_pct": null,+ "defect_score": 9.06,+ "maintainability_score": 9.3,+ "performance_score": 10.0,+ "structure_deduction": 0.938,+ "history_deduction": 0.0,+ "is_test": false,+ "code_origin": "production"+ },+ {+ "file_path": "ruby/perf_io_in_loop.rb",+ "score": 10.0,+ "max_ccn": 2,+ "max_nesting": 0,+ "nloc": 73,+ "has_test_file": false,+ "module": "ruby",+ "duplication_pct": null,+ "line_coverage_pct": null,+ "branch_coverage_pct": null,+ "defect_score": 10.0,+ "maintainability_score": 10.0,+ "performance_score": 8.0,+ "structure_deduction": 0.0,+ "history_deduction": 0.0,+ "is_test": false,+ "code_origin": "production"+ },+ {+ "file_path": "rust/conditionals.rs",+ "score": 9.2,+ "max_ccn": 8,+ "max_nesting": 1,+ "nloc": 18,+ "has_test_file": false,+ "module": "rust",+ "duplication_pct": null,+ "line_coverage_pct": null,+ "branch_coverage_pct": null,+ "defect_score": 9.2,+ "maintainability_score": 9.4,+ "performance_score": 10.0,+ "structure_deduction": 0.798,+ "history_deduction": 0.0,+ "is_test": false,+ "code_origin": "production"+ },+ {+ "file_path": "rust/flat_match.rs",+ "score": 10.0,+ "max_ccn": 5,+ "max_nesting": 3,+ "nloc": 31,+ "has_test_file": false,+ "module": "rust",+ "duplication_pct": null,+ "line_coverage_pct": null,+ "branch_coverage_pct": null,+ "defect_score": 10.0,+ "maintainability_score": 10.0,+ "performance_score": 10.0,+ "structure_deduction": 0.0,+ "history_deduction": 0.0,+ "is_test": false,+ "code_origin": "production"+ },+ {+ "file_path": "rust/nested.rs",+ "score": 8.39,+ "max_ccn": 6,+ "max_nesting": 5,+ "nloc": 19,+ "has_test_file": false,+ "module": "rust",+ "duplication_pct": null,+ "line_coverage_pct": null,+ "branch_coverage_pct": null,+ "defect_score": 8.39,+ "maintainability_score": 8.8,+ "performance_score": 10.0,+ "structure_deduction": 1.608,+ "history_deduction": 0.0,+ "is_test": false,+ "code_origin": "production"+ },+ {+ "file_path": "rust/perf_io_in_loop.rs",+ "score": 10.0,+ "max_ccn": 2,+ "max_nesting": 1,+ "nloc": 51,+ "has_test_file": false,+ "module": "rust",+ "duplication_pct": null,+ "line_coverage_pct": null,+ "branch_coverage_pct": null,+ "defect_score": 10.0,+ "maintainability_score": 10.0,+ "performance_score": 8.0,+ "structure_deduction": 0.0,+ "history_deduction": 0.0,+ "is_test": false,+ "code_origin": "production"+ },+ {+ "file_path": "scala/assertions.scala",+ "score": 10.0,+ "max_ccn": 1,+ "max_nesting": 0,+ "nloc": 19,+ "has_test_file": false,+ "module": "scala",+ "duplication_pct": null,+ "line_coverage_pct": null,+ "branch_coverage_pct": null,+ "defect_score": 10.0,+ "maintainability_score": 10.0,+ "performance_score": 10.0,+ "structure_deduction": 0.0,+ "history_deduction": 0.0,+ "is_test": false,+ "code_origin": "production"+ },+ {+ "file_path": "scala/classes.scala",+ "score": 9.65,+ "max_ccn": 2,+ "max_nesting": 1,+ "nloc": 50,+ "has_test_file": false,+ "module": "scala",+ "duplication_pct": null,+ "line_coverage_pct": null,+ "branch_coverage_pct": null,+ "defect_score": 9.65,+ "maintainability_score": 9.3,+ "performance_score": 10.0,+ "structure_deduction": 0.35,+ "history_deduction": 0.0,+ "is_test": false,+ "code_origin": "production"+ },+ {+ "file_path": "scala/nested.scala",+ "score": 7.54,+ "max_ccn": 9,+ "max_nesting": 5,+ "nloc": 49,+ "has_test_file": false,+ "module": "scala",+ "duplication_pct": null,+ "line_coverage_pct": null,+ "branch_coverage_pct": null,+ "defect_score": 7.54,+ "maintainability_score": 8.1,+ "performance_score": 10.0,+ "structure_deduction": 2.455,+ "history_deduction": 0.0,+ "is_test": false,+ "code_origin": "production"+ },+ {+ "file_path": "scala/perf_io_in_loop.scala",+ "score": 10.0,+ "max_ccn": 3,+ "max_nesting": 2,+ "nloc": 79,+ "has_test_file": false,+ "module": "scala",+ "duplication_pct": null,+ "line_coverage_pct": null,+ "branch_coverage_pct": null,+ "defect_score": 10.0,+ "maintainability_score": 10.0,+ "performance_score": 8.0,+ "structure_deduction": 0.0,+ "history_deduction": 0.0,+ "is_test": false,+ "code_origin": "production"+ },+ {+ "file_path": "shell/control_flow.sh",+ "score": 9.15,+ "max_ccn": 10,+ "max_nesting": 1,+ "nloc": 30,+ "has_test_file": false,+ "module": "shell",+ "duplication_pct": null,+ "line_coverage_pct": null,+ "branch_coverage_pct": null,+ "defect_score": 9.15,+ "maintainability_score": 9.3,+ "performance_score": 10.0,+ "structure_deduction": 0.847,+ "history_deduction": 0.0,+ "is_test": false,+ "code_origin": "production"+ },+ {+ "file_path": "shell/functions.sh",+ "score": 10.0,+ "max_ccn": 1,+ "max_nesting": 0,+ "nloc": 11,+ "has_test_file": false,+ "module": "shell",+ "duplication_pct": null,+ "line_coverage_pct": null,+ "branch_coverage_pct": null,+ "defect_score": 10.0,+ "maintainability_score": 10.0,+ "performance_score": 10.0,+ "structure_deduction": 0.0,+ "history_deduction": 0.0,+ "is_test": false,+ "code_origin": "production"+ },+ {+ "file_path": "shell/sourcing.sh",+ "score": 10.0,+ "max_ccn": 1,+ "max_nesting": 0,+ "nloc": 9,+ "has_test_file": false,+ "module": "shell",+ "duplication_pct": null,+ "line_coverage_pct": null,+ "branch_coverage_pct": null,+ "defect_score": 10.0,+ "maintainability_score": 10.0,+ "performance_score": 10.0,+ "structure_deduction": 0.0,+ "history_deduction": 0.0,+ "is_test": false,+ "code_origin": "production"+ },+ {+ "file_path": "shell/zero_functions.sh",+ "score": 10.0,+ "max_ccn": 1,+ "max_nesting": 0,+ "nloc": 5,+ "has_test_file": false,+ "module": "shell",+ "duplication_pct": null,+ "line_coverage_pct": null,+ "branch_coverage_pct": null,+ "defect_score": 10.0,+ "maintainability_score": 10.0,+ "performance_score": 10.0,+ "structure_deduction": 0.0,+ "history_deduction": 0.0,+ "is_test": false,+ "code_origin": "production"+ },+ {+ "file_path": "shell/zshisms.zsh",+ "score": 10.0,+ "max_ccn": 1,+ "max_nesting": 0,+ "nloc": 6,+ "has_test_file": false,+ "module": "shell",+ "duplication_pct": null,+ "line_coverage_pct": null,+ "branch_coverage_pct": null,+ "defect_score": 10.0,+ "maintainability_score": 10.0,+ "performance_score": 10.0,+ "structure_deduction": 0.0,+ "history_deduction": 0.0,+ "is_test": false,+ "code_origin": "production"+ },+ {+ "file_path": "swift/classes.swift",+ "score": 10.0,+ "max_ccn": 2,+ "max_nesting": 1,+ "nloc": 37,+ "has_test_file": false,+ "module": "swift",+ "duplication_pct": null,+ "line_coverage_pct": null,+ "branch_coverage_pct": null,+ "defect_score": 10.0,+ "maintainability_score": 10.0,+ "performance_score": 10.0,+ "structure_deduction": 0.0,+ "history_deduction": 0.0,+ "is_test": false,+ "code_origin": "production"+ },+ {+ "file_path": "swift/nested.swift",+ "score": 9.06,+ "max_ccn": 9,+ "max_nesting": 4,+ "nloc": 24,+ "has_test_file": false,+ "module": "swift",+ "duplication_pct": null,+ "line_coverage_pct": null,+ "branch_coverage_pct": null,+ "defect_score": 9.06,+ "maintainability_score": 9.3,+ "performance_score": 10.0,+ "structure_deduction": 0.938,+ "history_deduction": 0.0,+ "is_test": false,+ "code_origin": "production"+ },+ {+ "file_path": "typescript/assertions.ts",+ "score": 10.0,+ "max_ccn": 1,+ "max_nesting": 0,+ "nloc": 24,+ "has_test_file": false,+ "module": "typescript",+ "duplication_pct": 68.0,+ "line_coverage_pct": null,+ "branch_coverage_pct": null,+ "defect_score": 10.0,+ "maintainability_score": 10.0,+ "performance_score": 10.0,+ "structure_deduction": 0.0,+ "history_deduction": 0.0,+ "is_test": false,+ "code_origin": "production"+ },+ {+ "file_path": "typescript/classes.ts",+ "score": 9.65,+ "max_ccn": 2,+ "max_nesting": 1,+ "nloc": 37,+ "has_test_file": false,+ "module": "typescript",+ "duplication_pct": null,+ "line_coverage_pct": null,+ "branch_coverage_pct": null,+ "defect_score": 9.65,+ "maintainability_score": 9.3,+ "performance_score": 10.0,+ "structure_deduction": 0.35,+ "history_deduction": 0.0,+ "is_test": false,+ "code_origin": "production"+ },+ {+ "file_path": "typescript/conditionals.ts",+ "score": 9.2,+ "max_ccn": 8,+ "max_nesting": 1,+ "nloc": 26,+ "has_test_file": false,+ "module": "typescript",+ "duplication_pct": null,+ "line_coverage_pct": null,+ "branch_coverage_pct": null,+ "defect_score": 9.2,+ "maintainability_score": 9.4,+ "performance_score": 10.0,+ "structure_deduction": 0.798,+ "history_deduction": 0.0,+ "is_test": false,+ "code_origin": "production"+ },+ {+ "file_path": "typescript/nested.ts",+ "score": 8.24,+ "max_ccn": 7,+ "max_nesting": 5,+ "nloc": 21,+ "has_test_file": false,+ "module": "typescript",+ "duplication_pct": null,+ "line_coverage_pct": null,+ "branch_coverage_pct": null,+ "defect_score": 8.24,+ "maintainability_score": 8.5,+ "performance_score": 10.0,+ "structure_deduction": 1.758,+ "history_deduction": 0.0,+ "is_test": false,+ "code_origin": "production"+ },+ {+ "file_path": "typescript/perf_io_in_loop.ts",+ "score": 10.0,+ "max_ccn": 2,+ "max_nesting": 1,+ "nloc": 24,+ "has_test_file": false,+ "module": "typescript",+ "duplication_pct": null,+ "line_coverage_pct": null,+ "branch_coverage_pct": null,+ "defect_score": 10.0,+ "maintainability_score": 10.0,+ "performance_score": 8.0,+ "structure_deduction": 0.0,+ "history_deduction": 0.0,+ "is_test": false,+ "code_origin": "production"+ },+ {+ "file_path": "typescript/ts_class_modifiers.ts",+ "score": 10.0,+ "max_ccn": 1,+ "max_nesting": 0,+ "nloc": 30,+ "has_test_file": false,+ "module": "typescript",+ "duplication_pct": null,+ "line_coverage_pct": null,+ "branch_coverage_pct": null,+ "defect_score": 10.0,+ "maintainability_score": 10.0,+ "performance_score": 10.0,+ "structure_deduction": 0.0,+ "history_deduction": 0.0,+ "is_test": false,+ "code_origin": "production"+ },+ {+ "file_path": "typescript/ts_module_consts.ts",+ "score": 10.0,+ "max_ccn": 3,+ "max_nesting": 1,+ "nloc": 10,+ "has_test_file": false,+ "module": "typescript",+ "duplication_pct": null,+ "line_coverage_pct": null,+ "branch_coverage_pct": null,+ "defect_score": 10.0,+ "maintainability_score": 10.0,+ "performance_score": 10.0,+ "structure_deduction": 0.0,+ "history_deduction": 0.0,+ "is_test": false,+ "code_origin": "production"+ },+ {+ "file_path": "typescript/ts_overload_fn_method.ts",+ "score": 10.0,+ "max_ccn": 1,+ "max_nesting": 0,+ "nloc": 24,+ "has_test_file": false,+ "module": "typescript",+ "duplication_pct": null,+ "line_coverage_pct": null,+ "branch_coverage_pct": null,+ "defect_score": 10.0,+ "maintainability_score": 10.0,+ "performance_score": 10.0,+ "structure_deduction": 0.0,+ "history_deduction": 0.0,+ "is_test": false,+ "code_origin": "production"+ }+ ],+ "findings": [+ {+ "biomarker_type": "nested_complexity",+ "severity": "medium",+ "file_path": "cpp/nested.cpp",+ "function_name": "deeplyNested",+ "line_start": 3,+ "line_end": 14,+ "details": {+ "max_nesting": 4,+ "ccn": 5,+ "cognitive": 10,+ "dispatch_share": 0.0,+ "symbol_line": 3,+ "deepest_block": {+ "start": 6,+ "end": 10+ }+ },+ "health_impact": 0.938,+ "reason": "deeplyNested nests 4 levels deep",+ "dimension": "defect",+ "id": "finding_7336de57febe95c93630"+ },+ {+ "biomarker_type": "io_in_loop",+ "severity": "medium",+ "file_path": "csharp/PerfIoInLoop.cs",+ "function_name": "EfAsyncN1",+ "line_start": 21,+ "line_end": 21,+ "details": {+ "boundary_kind": "db",+ "cross_function": false,+ "loop_key_unused": true,+ "loop_iterates": "parameter",+ "loop_line": 19,+ "sink_call": "ctx.Users.ToListAsync",+ "symbol_line": 17,+ "role_owner": "csharp/PerfIoInLoop.cs::PerfIoInLoop::EfAsyncN1",+ "execution_role": "unknown",+ "opportunity_id": "perf3_95bb8ae957b8b655327e"+ },+ "health_impact": 0.0,+ "reason": "a database call runs once per loop iteration (N+1 query)",+ "dimension": "performance",+ "id": "finding_37f1c46ef1c3369f5928"+ },+ {+ "biomarker_type": "io_in_loop",+ "severity": "medium",+ "file_path": "csharp/PerfIoInLoop.cs",+ "function_name": "HttpInLoop",+ "line_start": 29,+ "line_end": 29,+ "details": {+ "boundary_kind": "network",+ "cross_function": false,+ "loop_iterates": "parameter",+ "loop_line": 27,+ "sink_call": "c.GetAsync",+ "symbol_line": 25,+ "role_owner": "csharp/PerfIoInLoop.cs::PerfIoInLoop::HttpInLoop",+ "execution_role": "unknown",+ "opportunity_id": "perf3_3f08df93f1b3e36c763f"+ },+ "health_impact": 0.0,+ "reason": "a network call runs once per loop iteration (I/O call inside a loop)",+ "dimension": "performance",+ "id": "finding_79a6782b228ae1df5e64"+ },+ {+ "biomarker_type": "io_in_loop",+ "severity": "medium",+ "file_path": "csharp/PerfIoInLoop.cs",+ "function_name": "SaveInLoop",+ "line_start": 37,+ "line_end": 37,+ "details": {+ "boundary_kind": "db",+ "cross_function": false,+ "loop_key_unused": true,+ "loop_iterates": "parameter",+ "loop_line": 35,+ "sink_call": "ctx.SaveChangesAsync",+ "symbol_line": 33,+ "role_owner": "csharp/PerfIoInLoop.cs::PerfIoInLoop::SaveInLoop",+ "execution_role": "unknown",+ "opportunity_id": "perf3_db17d793aaa4beb033a1"+ },+ "health_impact": 0.0,+ "reason": "a database call runs once per loop iteration (N+1 query)",+ "dimension": "performance",+ "id": "finding_b24af172454058c5f258"+ },+ {+ "biomarker_type": "io_in_loop",+ "severity": "medium",+ "file_path": "csharp/PerfIoInLoop.cs",+ "function_name": "FileReadInLoop",+ "line_start": 45,+ "line_end": 45,+ "details": {+ "boundary_kind": "filesystem",+ "cross_function": false,+ "loop_iterates": "parameter",+ "loop_line": 43,+ "sink_call": "File.ReadAllText",+ "symbol_line": 41,+ "role_owner": "csharp/PerfIoInLoop.cs::PerfIoInLoop::FileReadInLoop",+ "execution_role": "unknown",+ "opportunity_id": "perf3_c429bf008236dca10f03"+ },+ "health_impact": 0.0,+ "reason": "a filesystem call runs once per loop iteration (I/O call inside a loop)",+ "dimension": "performance",+ "id": "finding_2d0e879b59cd722c4851"+ },+ {+ "biomarker_type": "io_in_loop",+ "severity": "medium",+ "file_path": "csharp/PerfIoInLoop.cs",+ "function_name": "SyncLinqInLoop",+ "line_start": 53,+ "line_end": 53,+ "details": {+ "boundary_kind": "db",+ "cross_function": false,+ "loop_key_unused": true,+ "loop_iterates": "parameter",+ "loop_line": 51,+ "sink_call": "ctx.Users.ToList",+ "symbol_line": 49,+ "role_owner": "csharp/PerfIoInLoop.cs::PerfIoInLoop::SyncLinqInLoop",+ "execution_role": "unknown",+ "opportunity_id": "perf3_87ea71b2c97643e64f9e"+ },+ "health_impact": 0.0,+ "reason": "a database call runs once per loop iteration (N+1 query)",+ "dimension": "performance",+ "id": "finding_8f989e1c3a3478830025"+ },+ {+ "biomarker_type": "string_concat_in_loop",+ "severity": "low",+ "file_path": "csharp/PerfIoInLoop.cs",+ "function_name": "StringConcatInLoop",+ "line_start": 62,+ "line_end": 62,+ "details": {+ "loop_iterates": "parameter",+ "loop_line": 60,+ "subject": "s",+ "symbol_line": 57,+ "role_owner": "csharp/PerfIoInLoop.cs::PerfIoInLoop::StringConcatInLoop",+ "execution_role": "unknown",+ "opportunity_id": "perf3_8b234729806b1ff9613d"+ },+ "health_impact": 0.0,+ "reason": "string built by += in a loop; use a buffer / join for linear cost",+ "dimension": "performance",+ "id": "finding_c1413f661c3eb3f724dc"+ },+ {+ "biomarker_type": "blocking_sync_in_async",+ "severity": "medium",+ "file_path": "csharp/PerfIoInLoop.cs",+ "function_name": "SyncOverAsync",+ "line_start": 69,+ "line_end": 69,+ "details": {+ "api": ".Result",+ "symbol_line": 67,+ "role_owner": "csharp/PerfIoInLoop.cs::PerfIoInLoop::SyncOverAsync",+ "execution_role": "unknown",+ "opportunity_id": "perf3_669d5b763f11aa6fb225"+ },+ "health_impact": 0.0,+ "reason": ".Result blocks the event loop inside an async function",+ "dimension": "performance",+ "id": "finding_4909fc27059890b6d216"+ },+ {+ "biomarker_type": "blocking_sync_in_async",+ "severity": "medium",+ "file_path": "csharp/PerfIoInLoop.cs",+ "function_name": "SyncOverAsync",+ "line_start": 70,+ "line_end": 70,+ "details": {+ "api": ".Wait()",+ "symbol_line": 67,+ "role_owner": "csharp/PerfIoInLoop.cs::PerfIoInLoop::SyncOverAsync",+ "execution_role": "unknown",+ "opportunity_id": "perf3_669d5b763f11aa6fb225"+ },+ "health_impact": 0.0,+ "reason": ".Wait() blocks the event loop inside an async function",+ "dimension": "performance",+ "id": "finding_88a4690b20950d94467b"+ },+ {+ "biomarker_type": "nested_complexity",+ "severity": "medium",+ "file_path": "csharp/nested.cs",+ "function_name": "DeeplyNested",+ "line_start": 5,+ "line_end": 21,+ "details": {+ "max_nesting": 4,+ "ccn": 5,+ "cognitive": 10,+ "dispatch_share": 0.0,+ "symbol_line": 5,+ "deepest_block": {+ "start": 13,+ "end": 16+ }+ },+ "health_impact": 0.938,+ "reason": "DeeplyNested nests 4 levels deep",+ "dimension": "defect",+ "id": "finding_525e8162089608e8a869"+ },+ {+ "biomarker_type": "nested_complexity",+ "severity": "medium",+ "file_path": "dart/nested.dart",+ "function_name": "deeplyNested",+ "line_start": 3,+ "line_end": 14,+ "details": {+ "max_nesting": 4,+ "ccn": 5,+ "cognitive": 10,+ "dispatch_share": 0.0,+ "symbol_line": 3,+ "deepest_block": {+ "start": 6,+ "end": 10+ }+ },+ "health_impact": 0.938,+ "reason": "deeplyNested nests 4 levels deep",+ "dimension": "defect",+ "id": "finding_14da5768ef44be629cdb"+ },+ {+ "biomarker_type": "complex_method",+ "severity": "medium",+ "file_path": "dart/nested.dart",+ "function_name": "manyBranches",+ "line_start": 20,+ "line_end": 28,+ "details": {+ "ccn": 9,+ "cognitive": 8,+ "nloc": 9,+ "dispatch_share": 0.0,+ "symbol_line": 20,+ "deepest_block": {+ "start": 21,+ "end": 21+ }+ },+ "health_impact": 0.847,+ "reason": "manyBranches has cyclomatic complexity 9",+ "dimension": "defect",+ "id": "finding_75e1face476206b793af"+ },+ {+ "biomarker_type": "io_in_loop",+ "severity": "medium",+ "file_path": "dart/perf_io_in_loop.dart",+ "function_name": "serialFetch",+ "line_start": 10,+ "line_end": 10,+ "details": {+ "boundary_kind": "network",+ "cross_function": false,+ "loop_key_unused": true,+ "loop_line": 9,+ "sink_call": "get",+ "symbol_line": 8,+ "role_owner": "dart/perf_io_in_loop.dart::serialFetch",+ "execution_role": "unknown",+ "opportunity_id": "perf3_33de3d67ada57c94f63e"+ },+ "health_impact": 0.0,+ "reason": "a network call runs once per loop iteration (I/O call inside a loop)",+ "dimension": "performance",+ "id": "finding_e7f42a3afa6c80538d2e"+ },+ {+ "biomarker_type": "io_in_loop",+ "severity": "medium",+ "file_path": "dart/perf_io_in_loop.dart",+ "function_name": "readFiles",+ "line_start": 16,+ "line_end": 16,+ "details": {+ "boundary_kind": "filesystem",+ "cross_function": false,+ "loop_key_unused": true,+ "loop_line": 15,+ "sink_call": "readAsString",+ "symbol_line": 14,+ "role_owner": "dart/perf_io_in_loop.dart::readFiles",+ "execution_role": "unknown",+ "opportunity_id": "perf3_a76757394590890d677d"+ },+ "health_impact": 0.0,+ "reason": "a filesystem call runs once per loop iteration (I/O call inside a loop)",+ "dimension": "performance",+ "id": "finding_ef21c9ecebbc5985d9b8"+ },+ {+ "biomarker_type": "io_in_loop",+ "severity": "medium",+ "file_path": "dart/perf_io_in_loop.dart",+ "function_name": "queryRows",+ "line_start": 22,+ "line_end": 22,+ "details": {+ "boundary_kind": "db",+ "cross_function": false,+ "loop_key_unused": true,+ "loop_line": 21,+ "sink_call": "rawQuery",+ "symbol_line": 20,+ "role_owner": "dart/perf_io_in_loop.dart::queryRows",+ "execution_role": "unknown",+ "opportunity_id": "perf3_f16b2a14051afa858b30"+ },+ "health_impact": 0.0,+ "reason": "a database call runs once per loop iteration (N+1 query)",+ "dimension": "performance",+ "id": "finding_69d60cef44db2d3c9406"+ },+ {+ "biomarker_type": "string_concat_in_loop",+ "severity": "low",+ "file_path": "dart/perf_io_in_loop.dart",+ "function_name": "concat",+ "line_start": 29,+ "line_end": 29,+ "details": {+ "loop_line": 28,+ "subject": "s",+ "symbol_line": 26,+ "role_owner": "dart/perf_io_in_loop.dart::concat",+ "execution_role": "unknown",+ "opportunity_id": "perf3_1b24c911f6c8a4b52508"+ },+ "health_impact": 0.0,+ "reason": "string built by += in a loop; use a buffer / join for linear cost",+ "dimension": "performance",+ "id": "finding_10c2203cb74d8793190d"+ },+ {+ "biomarker_type": "resource_construction_in_loop",+ "severity": "medium",+ "file_path": "dart/perf_io_in_loop.dart",+ "function_name": "makeClients",+ "line_start": 36,+ "line_end": 36,+ "details": {+ "loop_line": 35,+ "symbol_line": 34,+ "role_owner": "dart/perf_io_in_loop.dart::makeClients",+ "execution_role": "unknown",+ "opportunity_id": "perf3_c0a715a42fe48ca40678"+ },+ "health_impact": 0.0,+ "reason": "a heavy client / connection is constructed each loop iteration; hoist and reuse a single instance",+ "dimension": "performance",+ "id": "finding_fc2bd6cbf299ac72583b"+ },+ {+ "biomarker_type": "complex_conditional",+ "severity": "low",+ "file_path": "go/conditionals.go",+ "function_name": "ThreeOps",+ "line_start": 4,+ "line_end": 4,+ "details": {+ "operator_count": 3,+ "enclosing_construct": "if",+ "flat_chain": true,+ "dispatch_share": 0.0,+ "symbol_line": 3+ },+ "health_impact": 0.399,+ "reason": "if condition combines 3 boolean operators",+ "dimension": "defect",+ "id": "finding_b4706faf8eea57f3c000"+ },+ {+ "biomarker_type": "complex_conditional",+ "severity": "low",+ "file_path": "go/conditionals.go",+ "function_name": "SixOps",+ "line_start": 11,+ "line_end": 11,+ "details": {+ "operator_count": 6,+ "enclosing_construct": "for",+ "flat_chain": true,+ "dispatch_share": 0.0,+ "symbol_line": 10+ },+ "health_impact": 0.399,+ "reason": "for condition combines 6 boolean operators",+ "dimension": "defect",+ "id": "finding_ed03ae737c057c537559"+ },+ {+ "biomarker_type": "nested_complexity",+ "severity": "high",+ "file_path": "go/nested.go",+ "function_name": "DeeplyNested",+ "line_start": 3,+ "line_end": 17,+ "details": {+ "max_nesting": 5,+ "ccn": 6,+ "cognitive": 15,+ "dispatch_share": 0.0,+ "symbol_line": 3,+ "deepest_block": {+ "start": 7,+ "end": 12+ }+ },+ "health_impact": 1.608,+ "reason": "DeeplyNested nests 5 levels deep",+ "dimension": "defect",+ "id": "finding_8a94b5551a568cc7522f"+ },+ {+ "biomarker_type": "error_handling",+ "severity": "low",+ "file_path": "go/perf_io_in_loop.go",+ "function_name": null,+ "line_start": 38,+ "line_end": 38,+ "details": {+ "kind": "go_swallow",+ "symbol_line": 36,+ "symbol": "deferInLoop"+ },+ "health_impact": 0.15,+ "reason": "error value is checked then ignored, or discarded via the blank identifier",+ "dimension": "maintainability",+ "id": "finding_ae2ad6b7dd45e467cae7"+ },+ {+ "biomarker_type": "io_in_loop",+ "severity": "medium",+ "file_path": "go/perf_io_in_loop.go",+ "function_name": "dbQueryInRange",+ "line_start": 20,+ "line_end": 20,+ "details": {+ "boundary_kind": "db",+ "cross_function": false,+ "loop_iterates": "parameter",+ "loop_line": 19,+ "sink_call": "db.Query",+ "symbol_line": 18,+ "role_owner": "go/perf_io_in_loop.go::dbQueryInRange",+ "execution_role": "unknown",+ "opportunity_id": "perf3_35b661ae09ee25af0697"+ },+ "health_impact": 0.0,+ "reason": "a database call runs once per loop iteration (N+1 query)",+ "dimension": "performance",+ "id": "finding_79b94d784f0dcda6d7f7"+ },+ {+ "biomarker_type": "io_in_loop",+ "severity": "medium",+ "file_path": "go/perf_io_in_loop.go",+ "function_name": "httpGetInRange",+ "line_start": 26,+ "line_end": 26,+ "details": {+ "boundary_kind": "network",+ "cross_function": false,+ "loop_iterates": "parameter",+ "loop_line": 25,+ "sink_call": "http.Get",+ "symbol_line": 24,+ "role_owner": "go/perf_io_in_loop.go::httpGetInRange",+ "execution_role": "unknown",+ "opportunity_id": "perf3_91dadbe5903aff9695f8"+ },+ "health_impact": 0.0,+ "reason": "a network call runs once per loop iteration (I/O call inside a loop)",+ "dimension": "performance",+ "id": "finding_0680dd53f3aeca174d5d"+ },+ {+ "biomarker_type": "io_in_loop",+ "severity": "medium",+ "file_path": "go/perf_io_in_loop.go",+ "function_name": "osOpenInRange",+ "line_start": 32,+ "line_end": 32,+ "details": {+ "boundary_kind": "filesystem",+ "cross_function": false,+ "loop_iterates": "parameter",+ "loop_line": 31,+ "sink_call": "os.Open",+ "symbol_line": 30,+ "role_owner": "go/perf_io_in_loop.go::osOpenInRange",+ "execution_role": "unknown",+ "opportunity_id": "perf3_ba93597be8695e77aef8"+ },+ "health_impact": 0.0,+ "reason": "a filesystem call runs once per loop iteration (I/O call inside a loop)",+ "dimension": "performance",+ "id": "finding_feb19e538673532f6ca2"+ },+ {+ "biomarker_type": "io_in_loop",+ "severity": "medium",+ "file_path": "go/perf_io_in_loop.go",+ "function_name": "deferInLoop",+ "line_start": 38,+ "line_end": 38,+ "details": {+ "boundary_kind": "filesystem",+ "cross_function": false,+ "loop_iterates": "parameter",+ "loop_line": 37,+ "sink_call": "os.Open",+ "symbol_line": 36,+ "role_owner": "go/perf_io_in_loop.go::deferInLoop",+ "execution_role": "unknown",+ "opportunity_id": "perf3_d743e5cb03ad33337138"+ },+ "health_impact": 0.0,+ "reason": "a filesystem call runs once per loop iteration (I/O call inside a loop)",+ "dimension": "performance",+ "id": "finding_468386184e72dabc1328"+ },+ {+ "biomarker_type": "string_concat_in_loop",+ "severity": "low",+ "file_path": "go/perf_io_in_loop.go",+ "function_name": "stringConcatInRange",+ "line_start": 53,+ "line_end": 53,+ "details": {+ "loop_iterates": "parameter",+ "loop_line": 52,+ "subject": "s",+ "symbol_line": 50,+ "role_owner": "go/perf_io_in_loop.go::stringConcatInRange",+ "execution_role": "unknown",+ "opportunity_id": "perf3_a5c52085fe28e577fb7f"+ },+ "health_impact": 0.0,+ "reason": "string built by += in a loop; use a buffer / join for linear cost",+ "dimension": "performance",+ "id": "finding_91657a5dfc554dd6a9b7"+ },+ {+ "biomarker_type": "regex_compile_in_loop",+ "severity": "medium",+ "file_path": "go/perf_io_in_loop.go",+ "function_name": "regexpCompileInRange",+ "line_start": 45,+ "line_end": 45,+ "details": {+ "loop_iterates": "parameter",+ "loop_line": 44,+ "symbol_line": 43,+ "role_owner": "go/perf_io_in_loop.go::regexpCompileInRange",+ "execution_role": "unknown",+ "opportunity_id": "perf3_e3ebce657d83f671209d"+ },+ "health_impact": 0.0,+ "reason": "a regex with a static pattern is recompiled every loop iteration; compile it once outside the loop and reuse it",+ "dimension": "performance",+ "id": "finding_c2b93004c3458ad340a2"+ },+ {+ "biomarker_type": "defer_in_loop",+ "severity": "medium",+ "file_path": "go/perf_io_in_loop.go",+ "function_name": "deferInLoop",+ "line_start": 39,+ "line_end": 39,+ "details": {+ "loop_iterates": "parameter",+ "loop_line": 37,+ "symbol_line": 36,+ "role_owner": "go/perf_io_in_loop.go::deferInLoop",+ "execution_role": "unknown",+ "opportunity_id": "perf3_62acaef3397d76cbe2f5"+ },+ "health_impact": 0.0,+ "reason": "a deferred call inside a loop runs only when the enclosing function returns, so the resource stays held across every iteration; close it in the loop body (or wrap the body in a function) instead",+ "dimension": "performance",+ "id": "finding_7f34c7947a7498cc922c"+ },+ {+ "biomarker_type": "complex_conditional",+ "severity": "low",+ "file_path": "java/Conditionals.java",+ "function_name": "threeOps",+ "line_start": 3,+ "line_end": 3,+ "details": {+ "operator_count": 3,+ "enclosing_construct": "if",+ "flat_chain": true,+ "dispatch_share": 0.0,+ "symbol_line": 2+ },+ "health_impact": 0.399,+ "reason": "if condition combines 3 boolean operators",+ "dimension": "defect",+ "id": "finding_92b0b6c1f3be5fe497d3"+ },+ {+ "biomarker_type": "complex_conditional",+ "severity": "low",+ "file_path": "java/Conditionals.java",+ "function_name": "sixOps",+ "line_start": 10,+ "line_end": 10,+ "details": {+ "operator_count": 6,+ "enclosing_construct": "while",+ "flat_chain": true,+ "dispatch_share": 0.0,+ "symbol_line": 9+ },+ "health_impact": 0.399,+ "reason": "while condition combines 6 boolean operators",+ "dimension": "defect",+ "id": "finding_13a165fcb9f91a97a666"+ },+ {+ "biomarker_type": "nested_complexity",+ "severity": "high",+ "file_path": "java/Nested.java",+ "function_name": "deeplyNested",+ "line_start": 2,+ "line_end": 19,+ "details": {+ "max_nesting": 5,+ "ccn": 7,+ "cognitive": 20,+ "dispatch_share": 0.0,+ "symbol_line": 2,+ "deepest_block": {+ "start": 7,+ "end": 12+ }+ },+ "health_impact": 1.608,+ "reason": "deeplyNested nests 5 levels deep",+ "dimension": "defect",+ "id": "finding_716ef8994749727b5d74"+ },+ {+ "biomarker_type": "error_handling",+ "severity": "low",+ "file_path": "java/Nested.java",+ "function_name": null,+ "line_start": 11,+ "line_end": 11,+ "details": {+ "kind": "swallowed_catch",+ "symbol_line": 2,+ "symbol": "deeplyNested"+ },+ "health_impact": 0.15,+ "reason": "caught exception is swallowed without any handling",+ "dimension": "maintainability",+ "id": "finding_45419b3eb06537a00ce0"+ },+ {+ "biomarker_type": "io_in_loop",+ "severity": "medium",+ "file_path": "java/PerfIoInLoop.java",+ "function_name": "springDataN1",+ "line_start": 18,+ "line_end": 18,+ "details": {+ "boundary_kind": "db",+ "cross_function": false,+ "loop_iterates": "parameter",+ "loop_line": 17,+ "sink_call": "repo.findByName",+ "symbol_line": 16,+ "role_owner": "java/PerfIoInLoop.java::PerfIoInLoop::springDataN1",+ "execution_role": "unknown",+ "opportunity_id": "perf3_911dde4f6806cc6b75b7"+ },+ "health_impact": 0.0,+ "reason": "a database call runs once per loop iteration (N+1 query)",+ "dimension": "performance",+ "id": "finding_3f8c18adf3878320b72a"+ },+ {+ "biomarker_type": "io_in_loop",+ "severity": "medium",+ "file_path": "java/PerfIoInLoop.java",+ "function_name": "jdbcInLoop",+ "line_start": 24,+ "line_end": 24,+ "details": {+ "boundary_kind": "db",+ "cross_function": false,+ "loop_iterates": "parameter",+ "loop_line": 23,+ "sink_call": "st.executeQuery",+ "symbol_line": 22,+ "role_owner": "java/PerfIoInLoop.java::PerfIoInLoop::jdbcInLoop",+ "execution_role": "unknown",+ "opportunity_id": "perf3_eb7be3ffffcf819dbfc9"+ },+ "health_impact": 0.0,+ "reason": "a database call runs once per loop iteration (N+1 query)",+ "dimension": "performance",+ "id": "finding_05e1d832a9783b608985"+ },+ {+ "biomarker_type": "io_in_loop",+ "severity": "medium",+ "file_path": "java/PerfIoInLoop.java",+ "function_name": "filesInLoop",+ "line_start": 30,+ "line_end": 30,+ "details": {+ "boundary_kind": "filesystem",+ "cross_function": false,+ "loop_iterates": "parameter",+ "loop_line": 29,+ "sink_call": "Files.readString",+ "symbol_line": 28,+ "role_owner": "java/PerfIoInLoop.java::PerfIoInLoop::filesInLoop",+ "execution_role": "unknown",+ "opportunity_id": "perf3_e156dff3c84c5779634b"+ },+ "health_impact": 0.0,+ "reason": "a filesystem call runs once per loop iteration (I/O call inside a loop)",+ "dimension": "performance",+ "id": "finding_54a795fc4d8ddc01bdbb"+ },+ {+ "biomarker_type": "io_in_loop",+ "severity": "medium",+ "file_path": "java/PerfIoInLoop.java",+ "function_name": "newStreamInLoop",+ "line_start": 36,+ "line_end": 36,+ "details": {+ "boundary_kind": "filesystem",+ "cross_function": false,+ "loop_iterates": "parameter",+ "loop_line": 35,+ "sink_call": "FileInputStream",+ "symbol_line": 34,+ "role_owner": "java/PerfIoInLoop.java::PerfIoInLoop::newStreamInLoop",+ "execution_role": "unknown",+ "opportunity_id": "perf3_22acf8c6252402350330"+ },+ "health_impact": 0.0,+ "reason": "a filesystem call runs once per loop iteration (I/O call inside a loop)",+ "dimension": "performance",+ "id": "finding_fd42ffeaa7b0fec3b4ae"+ },+ {+ "biomarker_type": "string_concat_in_loop",+ "severity": "low",+ "file_path": "java/PerfIoInLoop.java",+ "function_name": "stringConcatInLoop",+ "line_start": 49,+ "line_end": 49,+ "details": {+ "loop_iterates": "parameter",+ "loop_line": 48,+ "subject": "out",+ "symbol_line": 46,+ "role_owner": "java/PerfIoInLoop.java::PerfIoInLoop::stringConcatInLoop",+ "execution_role": "unknown",+ "opportunity_id": "perf3_ceaed73c82949f778dae"+ },+ "health_impact": 0.0,+ "reason": "string built by += in a loop; use a buffer / join for linear cost",+ "dimension": "performance",+ "id": "finding_1662953efdf4289f38e4"+ },+ {+ "biomarker_type": "regex_compile_in_loop",+ "severity": "medium",+ "file_path": "java/PerfIoInLoop.java",+ "function_name": "regexCompileInLoop",+ "line_start": 42,+ "line_end": 42,+ "details": {+ "loop_iterates": "parameter",+ "loop_line": 41,+ "symbol_line": 40,+ "role_owner": "java/PerfIoInLoop.java::PerfIoInLoop::regexCompileInLoop",+ "execution_role": "unknown",+ "opportunity_id": "perf3_e63d99176047a0f3cd49"+ },+ "health_impact": 0.0,+ "reason": "a regex with a static pattern is recompiled every loop iteration; compile it once outside the loop and reuse it",+ "dimension": "performance",+ "id": "finding_aa2725855ca6670e7047"+ },+ {+ "biomarker_type": "nested_complexity",+ "severity": "high",+ "file_path": "javascript/nested.js",+ "function_name": "deeplyNested",+ "line_start": 1,+ "line_end": 17,+ "details": {+ "max_nesting": 5,+ "ccn": 7,+ "cognitive": 20,+ "dispatch_share": 0.0,+ "symbol_line": 1,+ "deepest_block": {+ "start": 6,+ "end": 10+ }+ },+ "health_impact": 1.608,+ "reason": "deeplyNested nests 5 levels deep",+ "dimension": "defect",+ "id": "finding_bd08c69b932b606b18c9"+ },+ {+ "biomarker_type": "error_handling",+ "severity": "low",+ "file_path": "javascript/nested.js",+ "function_name": null,+ "line_start": 10,+ "line_end": 10,+ "details": {+ "kind": "swallowed_catch",+ "symbol_line": 1,+ "symbol": "deeplyNested"+ },+ "health_impact": 0.15,+ "reason": "caught exception is swallowed without any handling",+ "dimension": "maintainability",+ "id": "finding_4614b0ce342fb6f1e7f8"+ },+ {+ "biomarker_type": "nested_complexity",+ "severity": "medium",+ "file_path": "kotlin/nested.kt",+ "function_name": "deeplyNested",+ "line_start": 3,+ "line_end": 14,+ "details": {+ "max_nesting": 4,+ "ccn": 5,+ "cognitive": 10,+ "dispatch_share": 0.0,+ "symbol_line": 3,+ "deepest_block": {+ "start": 6,+ "end": 10+ }+ },+ "health_impact": 0.938,+ "reason": "deeplyNested nests 4 levels deep",+ "dimension": "defect",+ "id": "finding_341db9359cf919b9c51c"+ },+ {+ "biomarker_type": "complex_method",+ "severity": "medium",+ "file_path": "pascal/complex.pas",+ "function_name": "ManyBranches",+ "line_start": 7,+ "line_end": 46,+ "details": {+ "ccn": 13,+ "cognitive": 12,+ "nloc": 35,+ "dispatch_share": 0.0,+ "symbol_line": 7,+ "deepest_block": {+ "start": 9,+ "end": 28+ }+ },+ "health_impact": 0.847,+ "reason": "ManyBranches has cyclomatic complexity 13",+ "dimension": "defect",+ "id": "finding_cdb1bfd5e7f5961c0f48"+ },+ {+ "biomarker_type": "nested_complexity",+ "severity": "high",+ "file_path": "pascal/nested.pas",+ "function_name": "DeeplyNested",+ "line_start": 7,+ "line_end": 30,+ "details": {+ "max_nesting": 5,+ "ccn": 6,+ "cognitive": 15,+ "dispatch_share": 0.0,+ "symbol_line": 7,+ "deepest_block": {+ "start": 19,+ "end": 23+ }+ },+ "health_impact": 1.608,+ "reason": "DeeplyNested nests 5 levels deep",+ "dimension": "defect",+ "id": "finding_472f3545d0b4e4e51dcb"+ },+ {+ "biomarker_type": "nested_complexity",+ "severity": "medium",+ "file_path": "php/nested.php",+ "function_name": "deeply_nested",+ "line_start": 4,+ "line_end": 15,+ "details": {+ "max_nesting": 4,+ "ccn": 5,+ "cognitive": 10,+ "dispatch_share": 0.0,+ "symbol_line": 4,+ "deepest_block": {+ "start": 7,+ "end": 11+ }+ },+ "health_impact": 0.938,+ "reason": "deeply_nested nests 4 levels deep",+ "dimension": "defect",+ "id": "finding_08fb66e3bd4471dcc116"+ },+ {+ "biomarker_type": "low_cohesion",+ "severity": "medium",+ "file_path": "python/classes.py",+ "function_name": "Splintered",+ "line_start": 26,+ "line_end": 50,+ "details": {+ "class_name": "Splintered",+ "lcom4": 2,+ "method_count": 5,+ "field_count": 2,+ "symbol_line": 26+ },+ "health_impact": 0.35,+ "reason": "Splintered has low cohesion (LCOM4=2): its 5 methods split into 2 groups that share no fields or calls",+ "dimension": "maintainability",+ "id": "finding_2c342a6d7294a6f43a48"+ },+ {+ "biomarker_type": "complex_method",+ "severity": "high",+ "file_path": "python/complex.py",+ "function_name": "many_branches",+ "line_start": 1,+ "line_end": 21,+ "details": {+ "ccn": 15,+ "cognitive": 15,+ "nloc": 20,+ "dispatch_share": 0.0,+ "symbol_line": 1,+ "deepest_block": {+ "start": 19,+ "end": 20+ }+ },+ "health_impact": 1.452,+ "reason": "many_branches has cyclomatic complexity 15",+ "dimension": "defect",+ "id": "finding_0218dfee9ddbbc3acb0c"+ },+ {+ "biomarker_type": "complex_conditional",+ "severity": "low",+ "file_path": "python/conditionals.py",+ "function_name": "three_ops",+ "line_start": 2,+ "line_end": 2,+ "details": {+ "operator_count": 3,+ "enclosing_construct": "if",+ "flat_chain": true,+ "dispatch_share": 0.0,+ "symbol_line": 1+ },+ "health_impact": 0.399,+ "reason": "if condition combines 3 boolean operators",+ "dimension": "defect",+ "id": "finding_c86a6881aaec275e9ff1"+ },+ {+ "biomarker_type": "complex_conditional",+ "severity": "low",+ "file_path": "python/conditionals.py",+ "function_name": "six_ops",+ "line_start": 8,+ "line_end": 8,+ "details": {+ "operator_count": 6,+ "enclosing_construct": "while",+ "flat_chain": true,+ "dispatch_share": 0.0,+ "symbol_line": 7+ },+ "health_impact": 0.399,+ "reason": "while condition combines 6 boolean operators",+ "dimension": "defect",+ "id": "finding_3ce2bf004e5ad8e70bed"+ },+ {+ "biomarker_type": "nested_complexity",+ "severity": "high",+ "file_path": "python/nested.py",+ "function_name": "deeply_nested",+ "line_start": 1,+ "line_end": 12,+ "details": {+ "max_nesting": 5,+ "ccn": 7,+ "cognitive": 20,+ "dispatch_share": 0.0,+ "symbol_line": 1,+ "deepest_block": {+ "start": 6,+ "end": 10+ }+ },+ "health_impact": 1.608,+ "reason": "deeply_nested nests 5 levels deep",+ "dimension": "defect",+ "id": "finding_d4ee38f48a43bc6c92fd"+ },+ {+ "biomarker_type": "error_handling",+ "severity": "low",+ "file_path": "python/nested.py",+ "function_name": null,+ "line_start": 9,+ "line_end": 9,+ "details": {+ "kind": "swallowed_catch",+ "symbol_line": 1,+ "symbol": "deeply_nested"+ },+ "health_impact": 0.15,+ "reason": "caught exception is swallowed without any handling",+ "dimension": "maintainability",+ "id": "finding_a2c98dd353bdd9aa22b3"+ },+ {+ "biomarker_type": "error_handling",+ "severity": "low",+ "file_path": "python/nested.py",+ "function_name": null,+ "line_start": 9,+ "line_end": 9,+ "details": {+ "kind": "broad_except",+ "symbol_line": 1,+ "symbol": "deeply_nested"+ },+ "health_impact": 0.15,+ "reason": "broad `except Exception` catches unrelated errors and can hide bugs",+ "dimension": "maintainability",+ "id": "finding_61df1a80f37292b7b485"+ },+ {+ "biomarker_type": "io_in_loop",+ "severity": "medium",+ "file_path": "python/perf_io_in_loop.py",+ "function_name": "db_execute_in_loop",+ "line_start": 20,+ "line_end": 20,+ "details": {+ "boundary_kind": "db",+ "cross_function": false,+ "loop_iterates": "config_table",+ "loop_line": 19,+ "sink_call": "session.execute",+ "symbol_line": 18,+ "role_owner": "python/perf_io_in_loop.py::db_execute_in_loop",+ "execution_role": "unknown",+ "opportunity_id": "perf3_3dc56d1298758cec0e7d"+ },+ "health_impact": 0.0,+ "reason": "a database call runs once per loop iteration (N+1 query)",+ "dimension": "performance",+ "id": "finding_2cd080f4fd509a8aa07b"+ },+ {+ "biomarker_type": "io_in_loop",+ "severity": "medium",+ "file_path": "python/perf_io_in_loop.py",+ "function_name": "subprocess_in_loop",+ "line_start": 25,+ "line_end": 25,+ "details": {+ "boundary_kind": "subprocess",+ "cross_function": false,+ "loop_iterates": "parameter",+ "loop_line": 24,+ "sink_call": "subprocess.run",+ "symbol_line": 23,+ "role_owner": "python/perf_io_in_loop.py::subprocess_in_loop",+ "execution_role": "unknown",+ "opportunity_id": "perf3_069d54d9219b684b8852"+ },+ "health_impact": 0.0,+ "reason": "a subprocess spawn runs once per loop iteration (I/O call inside a loop)",+ "dimension": "performance",+ "id": "finding_d63e7311ad29f0308829"+ },+ {+ "biomarker_type": "io_in_loop",+ "severity": "medium",+ "file_path": "python/perf_io_in_loop.py",+ "function_name": "http_in_loop",+ "line_start": 30,+ "line_end": 30,+ "details": {+ "boundary_kind": "network",+ "cross_function": false,+ "loop_iterates": "parameter",+ "loop_line": 29,+ "sink_call": "requests.get",+ "symbol_line": 28,+ "role_owner": "python/perf_io_in_loop.py::http_in_loop",+ "execution_role": "unknown",+ "opportunity_id": "perf3_cd8a40bdf6f8657389c1"+ },+ "health_impact": 0.0,+ "reason": "a network call runs once per loop iteration (I/O call inside a loop)",+ "dimension": "performance",+ "id": "finding_ac736fdb805e6c6a6ffe"+ },+ {+ "biomarker_type": "io_in_loop",+ "severity": "medium",+ "file_path": "python/perf_io_in_loop.py",+ "function_name": "open_in_loop",+ "line_start": 85,+ "line_end": 85,+ "details": {+ "boundary_kind": "filesystem",+ "cross_function": false,+ "loop_iterates": "parameter",+ "loop_line": 84,+ "sink_call": "open",+ "symbol_line": 83,+ "role_owner": "python/perf_io_in_loop.py::open_in_loop",+ "execution_role": "unknown",+ "opportunity_id": "perf3_177a2b674a1483bdb31a"+ },+ "health_impact": 0.0,+ "reason": "a filesystem call runs once per loop iteration (I/O call inside a loop)",+ "dimension": "performance",+ "id": "finding_25a074abb1c11f9d1e11"+ },+ {+ "biomarker_type": "string_concat_in_loop",+ "severity": "low",+ "file_path": "python/perf_io_in_loop.py",+ "function_name": "string_concat_in_loop",+ "line_start": 41,+ "line_end": 41,+ "details": {+ "loop_iterates": "parameter",+ "loop_line": 40,+ "subject": "out",+ "symbol_line": 38,+ "role_owner": "python/perf_io_in_loop.py::string_concat_in_loop",+ "execution_role": "unknown",+ "opportunity_id": "perf3_02a9e6ff6fb58543432e"+ },+ "health_impact": 0.0,+ "reason": "string built by += in a loop; use a buffer / join for linear cost",+ "dimension": "performance",+ "id": "finding_363e651843e2f9852610"+ },+ {+ "biomarker_type": "blocking_sync_in_async",+ "severity": "medium",+ "file_path": "python/perf_io_in_loop.py",+ "function_name": "blocking_in_async",+ "line_start": 46,+ "line_end": 46,+ "details": {+ "api": "time.sleep",+ "symbol_line": 45,+ "role_owner": "python/perf_io_in_loop.py::blocking_in_async",+ "execution_role": "unknown",+ "opportunity_id": "perf3_07c417d2125a398652e2"+ },+ "health_impact": 0.0,+ "reason": "time.sleep blocks the event loop inside an async function",+ "dimension": "performance",+ "id": "finding_5cc0e20e883c6e0d96e4"+ },+ {+ "biomarker_type": "blocking_sync_in_async",+ "severity": "medium",+ "file_path": "python/perf_io_in_loop.py",+ "function_name": "blocking_in_async",+ "line_start": 47,+ "line_end": 47,+ "details": {+ "api": "requests.get",+ "symbol_line": 45,+ "role_owner": "python/perf_io_in_loop.py::blocking_in_async",+ "execution_role": "unknown",+ "opportunity_id": "perf3_07c417d2125a398652e2"+ },+ "health_impact": 0.0,+ "reason": "requests.get blocks the event loop inside an async function",+ "dimension": "performance",+ "id": "finding_52b1f6c101cb9dbd9bdf"+ },+ {+ "biomarker_type": "nested_complexity",+ "severity": "medium",+ "file_path": "ruby/nested.rb",+ "function_name": "deeply_nested",+ "line_start": 3,+ "line_end": 14,+ "details": {+ "max_nesting": 4,+ "ccn": 5,+ "cognitive": 10,+ "dispatch_share": 0.0,+ "symbol_line": 3,+ "deepest_block": {+ "start": 6,+ "end": 10+ }+ },+ "health_impact": 0.938,+ "reason": "deeply_nested nests 4 levels deep",+ "dimension": "defect",+ "id": "finding_980163708d497ecefb31"+ },+ {+ "biomarker_type": "io_in_loop",+ "severity": "medium",+ "file_path": "ruby/perf_io_in_loop.rb",+ "function_name": "sync_fetch_each",+ "line_start": 8,+ "line_end": 8,+ "details": {+ "boundary_kind": "network",+ "cross_function": false,+ "loop_iterates": "parameter",+ "loop_line": 7,+ "sink_call": "get",+ "symbol_line": 6,+ "role_owner": "ruby/perf_io_in_loop.rb::sync_fetch_each",+ "execution_role": "unknown",+ "opportunity_id": "perf3_72ff99e9bea8942e1d56"+ },+ "health_impact": 0.0,+ "reason": "a network call runs once per loop iteration (I/O call inside a loop)",+ "dimension": "performance",+ "id": "finding_6c8f283ef84d047bc1c2"+ },+ {+ "biomarker_type": "io_in_loop",+ "severity": "medium",+ "file_path": "ruby/perf_io_in_loop.rb",+ "function_name": "read_files",+ "line_start": 13,+ "line_end": 13,+ "details": {+ "boundary_kind": "filesystem",+ "cross_function": false,+ "loop_iterates": "parameter",+ "loop_line": 13,+ "sink_call": "read",+ "symbol_line": 12,+ "role_owner": "ruby/perf_io_in_loop.rb::read_files",+ "execution_role": "unknown",+ "opportunity_id": "perf3_2fdb693e277e138e8f8f"+ },+ "health_impact": 0.0,+ "reason": "a filesystem call runs once per loop iteration (I/O call inside a loop)",+ "dimension": "performance",+ "id": "finding_c9282d178ddb4b3ebf14"+ },+ {+ "biomarker_type": "io_in_loop",+ "severity": "medium",+ "file_path": "ruby/perf_io_in_loop.rb",+ "function_name": "nested_read",+ "line_start": 18,+ "line_end": 18,+ "details": {+ "boundary_kind": "filesystem",+ "cross_function": false,+ "loop_iterates": "parameter",+ "loop_line": 17,+ "sink_call": "glob",+ "symbol_line": 16,+ "role_owner": "ruby/perf_io_in_loop.rb::nested_read",+ "execution_role": "unknown",+ "opportunity_id": "perf3_d1c54153bab1417f5dd4"+ },+ "health_impact": 0.0,+ "reason": "a filesystem call runs once per loop iteration (I/O call inside a loop)",+ "dimension": "performance",+ "id": "finding_feb2693a994d353f4562"+ },+ {+ "biomarker_type": "io_in_loop",+ "severity": "medium",+ "file_path": "ruby/perf_io_in_loop.rb",+ "function_name": "nested_read",+ "line_start": 19,+ "line_end": 19,+ "details": {+ "boundary_kind": "filesystem",+ "cross_function": false,+ "loop_iterates": "listing",+ "loop_line": 18,+ "sink_call": "read",+ "symbol_line": 16,+ "role_owner": "ruby/perf_io_in_loop.rb::nested_read",+ "execution_role": "unknown",+ "opportunity_id": "perf3_d1c54153bab1417f5dd4"+ },+ "health_impact": 0.0,+ "reason": "a filesystem call runs once per loop iteration (I/O call inside a loop)",+ "dimension": "performance",+ "id": "finding_bca37a3054851b49b8f6"+ },+ {+ "biomarker_type": "io_in_loop",+ "severity": "medium",+ "file_path": "ruby/perf_io_in_loop.rb",+ "function_name": "orders_report",+ "line_start": 26,+ "line_end": 26,+ "details": {+ "boundary_kind": "db",+ "cross_function": false,+ "loop_iterates": "parameter",+ "loop_line": 25,+ "sink_call": "where",+ "symbol_line": 24,+ "role_owner": "ruby/perf_io_in_loop.rb::orders_report",+ "execution_role": "unknown",+ "opportunity_id": "perf3_b52d9dad50af33698879"+ },+ "health_impact": 0.0,+ "reason": "a database call runs once per loop iteration (N+1 query)",+ "dimension": "performance",+ "id": "finding_2051d96b317a5b4c9e9e"+ },+ {+ "biomarker_type": "io_in_loop",+ "severity": "medium",+ "file_path": "ruby/perf_io_in_loop.rb",+ "function_name": "fresh_clients",+ "line_start": 68,+ "line_end": 68,+ "details": {+ "boundary_kind": "network",+ "cross_function": false,+ "loop_iterates": "parameter",+ "loop_line": 66,+ "sink_call": "get",+ "symbol_line": 65,+ "role_owner": "ruby/perf_io_in_loop.rb::fresh_clients",+ "execution_role": "unknown",+ "opportunity_id": "perf3_4c9a8d9d71f9abc2a65c"+ },+ "health_impact": 0.0,+ "reason": "a network call runs once per loop iteration (I/O call inside a loop)",+ "dimension": "performance",+ "id": "finding_57cdf43d682f3e4622de"+ },+ {+ "biomarker_type": "io_in_loop",+ "severity": "medium",+ "file_path": "ruby/perf_io_in_loop.rb",+ "function_name": "shell_out",+ "line_start": 74,+ "line_end": 74,+ "details": {+ "boundary_kind": "subprocess",+ "cross_function": false,+ "loop_iterates": "parameter",+ "loop_line": 73,+ "sink_call": "__subshell__",+ "symbol_line": 72,+ "role_owner": "ruby/perf_io_in_loop.rb::shell_out",+ "execution_role": "unknown",+ "opportunity_id": "perf3_ec0090b8a2683a637225"+ },+ "health_impact": 0.0,+ "reason": "a subprocess spawn runs once per loop iteration (I/O call inside a loop)",+ "dimension": "performance",+ "id": "finding_df121e1fc0f6d522dd44"+ },+ {+ "biomarker_type": "io_in_loop",+ "severity": "medium",+ "file_path": "ruby/perf_io_in_loop.rb",+ "function_name": "locked_write",+ "line_start": 81,+ "line_end": 81,+ "details": {+ "boundary_kind": "filesystem",+ "cross_function": false,+ "loop_iterates": "parameter",+ "loop_line": 79,+ "sink_call": "write",+ "symbol_line": 78,+ "role_owner": "ruby/perf_io_in_loop.rb::locked_write",+ "execution_role": "unknown",+ "opportunity_id": "perf3_604ed2f876f904e76aee"+ },+ "health_impact": 0.0,+ "reason": "a filesystem call runs once per loop iteration (I/O call inside a loop)",+ "dimension": "performance",+ "id": "finding_742b0aef52f4122e7827"+ },+ {+ "biomarker_type": "string_concat_in_loop",+ "severity": "low",+ "file_path": "ruby/perf_io_in_loop.rb",+ "function_name": "build_report",+ "line_start": 42,+ "line_end": 42,+ "details": {+ "loop_iterates": "parameter",+ "loop_line": 41,+ "subject": "out",+ "symbol_line": 39,+ "role_owner": "ruby/perf_io_in_loop.rb::build_report",+ "execution_role": "unknown",+ "opportunity_id": "perf3_f8009e55994b59b42b1b"+ },+ "health_impact": 0.0,+ "reason": "string built by += in a loop; use a buffer / join for linear cost",+ "dimension": "performance",+ "id": "finding_fa874ee36bc9f8ffc3fa"+ },+ {+ "biomarker_type": "regex_compile_in_loop",+ "severity": "medium",+ "file_path": "ruby/perf_io_in_loop.rb",+ "function_name": "regex_scan",+ "line_start": 60,+ "line_end": 60,+ "details": {+ "loop_iterates": "parameter",+ "loop_line": 59,+ "symbol_line": 57,+ "role_owner": "ruby/perf_io_in_loop.rb::regex_scan",+ "execution_role": "unknown",+ "opportunity_id": "perf3_ec9fdd1aece3d2edc916"+ },+ "health_impact": 0.0,+ "reason": "a regex with a static pattern is recompiled every loop iteration; compile it once outside the loop and reuse it",+ "dimension": "performance",+ "id": "finding_0ca85673b505b29cd95b"+ },+ {+ "biomarker_type": "resource_construction_in_loop",+ "severity": "medium",+ "file_path": "ruby/perf_io_in_loop.rb",+ "function_name": "fresh_clients",+ "line_start": 67,+ "line_end": 67,+ "details": {+ "loop_iterates": "parameter",+ "loop_line": 66,+ "symbol_line": 65,+ "role_owner": "ruby/perf_io_in_loop.rb::fresh_clients",+ "execution_role": "unknown",+ "opportunity_id": "perf3_dca67c3bd9d21c04b3d9"+ },+ "health_impact": 0.0,+ "reason": "a heavy client / connection is constructed each loop iteration; hoist and reuse a single instance",+ "dimension": "performance",+ "id": "finding_f9ccf05a58539ab7b1ec"+ },+ {+ "biomarker_type": "lock_in_loop",+ "severity": "low",+ "file_path": "ruby/perf_io_in_loop.rb",+ "function_name": "locked_write",+ "line_start": 80,+ "line_end": 80,+ "details": {+ "loop_iterates": "parameter",+ "loop_line": 79,+ "symbol_line": 78,+ "role_owner": "ruby/perf_io_in_loop.rb::locked_write",+ "execution_role": "unknown",+ "opportunity_id": "perf3_89c5ae4309ebf07ea162"+ },+ "health_impact": 0.0,+ "reason": "a lock is acquired every loop iteration; hoist the lock outside the loop or batch the critical section",+ "dimension": "performance",+ "id": "finding_11769c1714b9c718f589"+ },+ {+ "biomarker_type": "nested_loop_with_io",+ "severity": "medium",+ "file_path": "ruby/perf_io_in_loop.rb",+ "function_name": "nested_read",+ "line_start": 19,+ "line_end": 19,+ "details": {+ "boundary_kind": "filesystem",+ "loop_iterates": "listing",+ "loop_line": 18,+ "sink_call": "read",+ "symbol_line": 16,+ "role_owner": "ruby/perf_io_in_loop.rb::nested_read",+ "execution_role": "unknown",+ "opportunity_id": "perf3_d1c54153bab1417f5dd4"+ },+ "health_impact": 0.0,+ "reason": "a filesystem call runs inside a nested loop (O(n\u00b7m) round-trips); batch the inner query or restructure the loops",+ "dimension": "performance",+ "id": "finding_ad5d50e73ce1aa4826be"+ },+ {+ "biomarker_type": "blocking_io_under_lock",+ "severity": "medium",+ "file_path": "ruby/perf_io_in_loop.rb",+ "function_name": "locked_write",+ "line_start": 81,+ "line_end": 81,+ "details": {+ "boundary_kind": "filesystem",+ "cross_function": false,+ "symbol_line": 78,+ "role_owner": "ruby/perf_io_in_loop.rb::locked_write",+ "execution_role": "unknown",+ "opportunity_id": "perf3_e9b2aa6f45b6556776a7"+ },+ "health_impact": 0.0,+ "reason": "a filesystem call runs while a lock is held; every thread that needs the lock waits for it",+ "dimension": "performance",+ "id": "finding_8ef9939b9fdcbcf63e88"+ },+ {+ "biomarker_type": "complex_conditional",+ "severity": "low",+ "file_path": "rust/conditionals.rs",+ "function_name": "three_ops",+ "line_start": 2,+ "line_end": 2,+ "details": {+ "operator_count": 3,+ "enclosing_construct": "if",+ "flat_chain": true,+ "dispatch_share": 0.0,+ "symbol_line": 1+ },+ "health_impact": 0.399,+ "reason": "if condition combines 3 boolean operators",+ "dimension": "defect",+ "id": "finding_5e2e7ed7cf94318d223b"+ },+ {+ "biomarker_type": "complex_conditional",+ "severity": "low",+ "file_path": "rust/conditionals.rs",+ "function_name": "six_ops",+ "line_start": 9,+ "line_end": 9,+ "details": {+ "operator_count": 6,+ "enclosing_construct": "while",+ "flat_chain": true,+ "dispatch_share": 0.0,+ "symbol_line": 8+ },+ "health_impact": 0.399,+ "reason": "while condition combines 6 boolean operators",+ "dimension": "defect",+ "id": "finding_a4bb8ffa6c328be7035f"+ },+ {+ "biomarker_type": "nested_complexity",+ "severity": "high",+ "file_path": "rust/nested.rs",+ "function_name": "deeply_nested",+ "line_start": 1,+ "line_end": 16,+ "details": {+ "max_nesting": 5,+ "ccn": 6,+ "cognitive": 15,+ "dispatch_share": 0.0,+ "symbol_line": 1,+ "deepest_block": {+ "start": 6,+ "end": 11+ }+ },+ "health_impact": 1.608,+ "reason": "deeply_nested nests 5 levels deep",+ "dimension": "defect",+ "id": "finding_51c3d3fb3a7baa49f5d1"+ },+ {+ "biomarker_type": "io_in_loop",+ "severity": "medium",+ "file_path": "rust/perf_io_in_loop.rs",+ "function_name": "sqlx_fetch_in_loop",+ "line_start": 18,+ "line_end": 18,+ "details": {+ "boundary_kind": "db",+ "cross_function": false,+ "loop_key_unused": true,+ "loop_iterates": "parameter",+ "loop_line": 15,+ "sink_call": "fetch_all",+ "symbol_line": 14,+ "role_owner": "rust/perf_io_in_loop.rs::sqlx_fetch_in_loop",+ "execution_role": "unknown",+ "opportunity_id": "perf3_939b75f0ac56803ff533"+ },+ "health_impact": 0.0,+ "reason": "a database call runs once per loop iteration (N+1 query)",+ "dimension": "performance",+ "id": "finding_c73bac52db274d1f987a"+ },+ {+ "biomarker_type": "io_in_loop",+ "severity": "medium",+ "file_path": "rust/perf_io_in_loop.rs",+ "function_name": "fs_read_in_loop",+ "line_start": 24,+ "line_end": 24,+ "details": {+ "boundary_kind": "filesystem",+ "cross_function": false,+ "loop_iterates": "parameter",+ "loop_line": 23,+ "sink_call": "std::fs::read",+ "symbol_line": 22,+ "role_owner": "rust/perf_io_in_loop.rs::fs_read_in_loop",+ "execution_role": "unknown",+ "opportunity_id": "perf3_adad65cebc5f1c75f474"+ },+ "health_impact": 0.0,+ "reason": "a filesystem call runs once per loop iteration (I/O call inside a loop)",+ "dimension": "performance",+ "id": "finding_8842088848a6ae8d097a"+ },+ {+ "biomarker_type": "io_in_loop",+ "severity": "medium",+ "file_path": "rust/perf_io_in_loop.rs",+ "function_name": "fs_read_to_string_in_loop",+ "line_start": 30,+ "line_end": 30,+ "details": {+ "boundary_kind": "filesystem",+ "cross_function": false,+ "loop_iterates": "parameter",+ "loop_line": 29,+ "sink_call": "fs::read_to_string",+ "symbol_line": 28,+ "role_owner": "rust/perf_io_in_loop.rs::fs_read_to_string_in_loop",+ "execution_role": "unknown",+ "opportunity_id": "perf3_f4f30f0e3cd8255db043"+ },+ "health_impact": 0.0,+ "reason": "a filesystem call runs once per loop iteration (I/O call inside a loop)",+ "dimension": "performance",+ "id": "finding_bf4474fe008e69454f1e"+ },+ {+ "biomarker_type": "io_in_loop",+ "severity": "medium",+ "file_path": "rust/perf_io_in_loop.rs",+ "function_name": "reqwest_get_in_loop",+ "line_start": 37,+ "line_end": 37,+ "details": {+ "boundary_kind": "network",+ "cross_function": false,+ "loop_iterates": "parameter",+ "loop_line": 35,+ "sink_call": "reqwest::get",+ "symbol_line": 34,+ "role_owner": "rust/perf_io_in_loop.rs::reqwest_get_in_loop",+ "execution_role": "unknown",+ "opportunity_id": "perf3_0b5f442a6246aab14c0f"+ },+ "health_impact": 0.0,+ "reason": "a network call runs once per loop iteration (I/O call inside a loop)",+ "dimension": "performance",+ "id": "finding_aa2a0136e84962f12204"+ },+ {+ "biomarker_type": "blocking_sync_in_async",+ "severity": "medium",+ "file_path": "rust/perf_io_in_loop.rs",+ "function_name": "thread_sleep_in_async",+ "line_start": 57,+ "line_end": 57,+ "details": {+ "api": "thread::sleep",+ "symbol_line": 56,+ "role_owner": "rust/perf_io_in_loop.rs::thread_sleep_in_async",+ "execution_role": "unknown",+ "opportunity_id": "perf3_b1c2a1cc1e7062adeb82"+ },+ "health_impact": 0.0,+ "reason": "thread::sleep blocks the event loop inside an async function",+ "dimension": "performance",+ "id": "finding_558eacd05afa1ccef799"+ },+ {+ "biomarker_type": "regex_compile_in_loop",+ "severity": "medium",+ "file_path": "rust/perf_io_in_loop.rs",+ "function_name": "regex_new_in_loop",+ "line_start": 43,+ "line_end": 43,+ "details": {+ "loop_iterates": "parameter",+ "loop_line": 42,+ "symbol_line": 41,+ "role_owner": "rust/perf_io_in_loop.rs::regex_new_in_loop",+ "execution_role": "unknown",+ "opportunity_id": "perf3_f658722384a884802dd9"+ },+ "health_impact": 0.0,+ "reason": "a regex with a static pattern is recompiled every loop iteration; compile it once outside the loop and reuse it",+ "dimension": "performance",+ "id": "finding_7b180d0d1453d1a4ca20"+ },+ {+ "biomarker_type": "resource_construction_in_loop",+ "severity": "medium",+ "file_path": "rust/perf_io_in_loop.rs",+ "function_name": "pgpool_connect_in_loop",+ "line_start": 52,+ "line_end": 52,+ "details": {+ "loop_iterates": "parameter",+ "loop_line": 50,+ "symbol_line": 49,+ "role_owner": "rust/perf_io_in_loop.rs::pgpool_connect_in_loop",+ "execution_role": "unknown",+ "opportunity_id": "perf3_e0d343e0f04b46173da9"+ },+ "health_impact": 0.0,+ "reason": "a heavy client / connection is constructed each loop iteration; hoist and reuse a single instance",+ "dimension": "performance",+ "id": "finding_c970865a01cffe095c3a"+ },+ {+ "biomarker_type": "low_cohesion",+ "severity": "medium",+ "file_path": "scala/classes.scala",+ "function_name": "Splintered",+ "line_start": 30,+ "line_end": 53,+ "details": {+ "class_name": "Splintered",+ "lcom4": 2,+ "method_count": 5,+ "field_count": 2,+ "symbol_line": 30+ },+ "health_impact": 0.35,+ "reason": "Splintered has low cohesion (LCOM4=2): its 5 methods split into 2 groups that share no fields or calls",+ "dimension": "maintainability",+ "id": "finding_37149d90e97e94d08056"+ },+ {+ "biomarker_type": "nested_complexity",+ "severity": "high",+ "file_path": "scala/nested.scala",+ "function_name": "deeplyNested",+ "line_start": 4,+ "line_end": 18,+ "details": {+ "max_nesting": 5,+ "ccn": 6,+ "cognitive": 15,+ "dispatch_share": 0.0,+ "symbol_line": 4,+ "deepest_block": {+ "start": 9,+ "end": 13+ }+ },+ "health_impact": 1.608,+ "reason": "deeplyNested nests 5 levels deep",+ "dimension": "defect",+ "id": "finding_8444c612b6ad7c705ffd"+ },+ {+ "biomarker_type": "complex_method",+ "severity": "medium",+ "file_path": "scala/nested.scala",+ "function_name": "manyBranches",+ "line_start": 20,+ "line_end": 28,+ "details": {+ "ccn": 9,+ "cognitive": 8,+ "nloc": 9,+ "dispatch_share": 0.0,+ "symbol_line": 20,+ "deepest_block": {+ "start": 21,+ "end": 25+ }+ },+ "health_impact": 0.847,+ "reason": "manyBranches has cyclomatic complexity 9",+ "dimension": "defect",+ "id": "finding_35278d63e4c3bf59be37"+ },+ {+ "biomarker_type": "io_in_loop",+ "severity": "medium",+ "file_path": "scala/perf_io_in_loop.scala",+ "function_name": "readAll",+ "line_start": 17,+ "line_end": 17,+ "details": {+ "boundary_kind": "filesystem",+ "cross_function": false,+ "loop_key_unused": true,+ "loop_line": 16,+ "sink_call": "Source.fromFile",+ "symbol_line": 14,+ "role_owner": "scala/perf_io_in_loop.scala::PerfIoInLoop::readAll",+ "execution_role": "unknown",+ "opportunity_id": "perf3_b7ae0ae40ee161bbb6a5"+ },+ "health_impact": 0.0,+ "reason": "a filesystem call runs once per loop iteration (I/O call inside a loop)",+ "dimension": "performance",+ "id": "finding_96ddb544d93db789950e"+ },+ {+ "biomarker_type": "io_in_loop",+ "severity": "medium",+ "file_path": "scala/perf_io_in_loop.scala",+ "function_name": "matrix",+ "line_start": 26,+ "line_end": 26,+ "details": {+ "boundary_kind": "filesystem",+ "cross_function": false,+ "loop_key_unused": true,+ "loop_line": 25,+ "sink_call": "Source.fromFile",+ "symbol_line": 23,+ "role_owner": "scala/perf_io_in_loop.scala::PerfIoInLoop::matrix",+ "execution_role": "unknown",+ "opportunity_id": "perf3_e976af66936a82c966c7"+ },+ "health_impact": 0.0,+ "reason": "a filesystem call runs once per loop iteration (I/O call inside a loop)",+ "dimension": "performance",+ "id": "finding_7dcb4e1ec1c1ce6098d6"+ },+ {+ "biomarker_type": "string_concat_in_loop",+ "severity": "low",+ "file_path": "scala/perf_io_in_loop.scala",+ "function_name": "concat",+ "line_start": 54,+ "line_end": 54,+ "details": {+ "loop_line": 53,+ "subject": "acc",+ "symbol_line": 50,+ "role_owner": "scala/perf_io_in_loop.scala::PerfIoInLoop::concat",+ "execution_role": "unknown",+ "opportunity_id": "perf3_c5af9958214b7571ad9a"+ },+ "health_impact": 0.0,+ "reason": "string built by += in a loop; use a buffer / join for linear cost",+ "dimension": "performance",+ "id": "finding_b249435fa880cb550f1f"+ },+ {+ "biomarker_type": "blocking_sync_in_async",+ "severity": "medium",+ "file_path": "scala/perf_io_in_loop.scala",+ "function_name": "slow",+ "line_start": 68,+ "line_end": 68,+ "details": {+ "api": "Await.result",+ "symbol_line": 67,+ "role_owner": "scala/perf_io_in_loop.scala::PerfIoInLoop::slow",+ "execution_role": "unknown",+ "opportunity_id": "perf3_06c429b28b60dda16af1"+ },+ "health_impact": 0.0,+ "reason": "Await.result blocks the event loop inside an async function",+ "dimension": "performance",+ "id": "finding_80673f50e6affb13ae4d"+ },+ {+ "biomarker_type": "regex_compile_in_loop",+ "severity": "medium",+ "file_path": "scala/perf_io_in_loop.scala",+ "function_name": "regexInLoop",+ "line_start": 34,+ "line_end": 34,+ "details": {+ "loop_line": 33,+ "symbol_line": 31,+ "role_owner": "scala/perf_io_in_loop.scala::PerfIoInLoop::regexInLoop",+ "execution_role": "unknown",+ "opportunity_id": "perf3_daad2514fb5c14b02486"+ },+ "health_impact": 0.0,+ "reason": "a regex with a static pattern is recompiled every loop iteration; compile it once outside the loop and reuse it",+ "dimension": "performance",+ "id": "finding_bd857a2ca7c7b74ddcd6"+ },+ {+ "biomarker_type": "regex_compile_in_loop",+ "severity": "medium",+ "file_path": "scala/perf_io_in_loop.scala",+ "function_name": "regexInLoop",+ "line_start": 35,+ "line_end": 35,+ "details": {+ "loop_line": 33,+ "symbol_line": 31,+ "role_owner": "scala/perf_io_in_loop.scala::PerfIoInLoop::regexInLoop",+ "execution_role": "unknown",+ "opportunity_id": "perf3_daad2514fb5c14b02486"+ },+ "health_impact": 0.0,+ "reason": "a regex with a static pattern is recompiled every loop iteration; compile it once outside the loop and reuse it",+ "dimension": "performance",+ "id": "finding_f72b7134b6eace67b9e9"+ },+ {+ "biomarker_type": "lock_in_loop",+ "severity": "low",+ "file_path": "scala/perf_io_in_loop.scala",+ "function_name": "locked",+ "line_start": 83,+ "line_end": 83,+ "details": {+ "loop_line": 82,+ "symbol_line": 81,+ "role_owner": "scala/perf_io_in_loop.scala::PerfIoInLoop::locked",+ "execution_role": "unknown",+ "opportunity_id": "perf3_446e8e6461f803f5222e"+ },+ "health_impact": 0.0,+ "reason": "a lock is acquired every loop iteration; hoist the lock outside the loop or batch the critical section",+ "dimension": "performance",+ "id": "finding_6a72355d530dd9e502ed"+ },+ {+ "biomarker_type": "nested_loop_with_io",+ "severity": "medium",+ "file_path": "scala/perf_io_in_loop.scala",+ "function_name": "matrix",+ "line_start": 26,+ "line_end": 26,+ "details": {+ "boundary_kind": "filesystem",+ "loop_key_unused": true,+ "loop_line": 25,+ "sink_call": "Source.fromFile",+ "symbol_line": 23,+ "role_owner": "scala/perf_io_in_loop.scala::PerfIoInLoop::matrix",+ "execution_role": "unknown",+ "opportunity_id": "perf3_e976af66936a82c966c7"+ },+ "health_impact": 0.0,+ "reason": "a filesystem call runs inside a nested loop (O(n\u00b7m) round-trips); batch the inner query or restructure the loops",+ "dimension": "performance",+ "id": "finding_d89c535ab83693192f71"+ },+ {+ "biomarker_type": "complex_method",+ "severity": "medium",+ "file_path": "shell/control_flow.sh",+ "function_name": "process",+ "line_start": 5,+ "line_end": 36,+ "details": {+ "ccn": 10,+ "cognitive": 9,+ "nloc": 27,+ "dispatch_share": 0.11,+ "symbol_line": 5,+ "deepest_block": {+ "start": 7,+ "end": 13+ }+ },+ "health_impact": 0.847,+ "reason": "process has cyclomatic complexity 10",+ "dimension": "defect",+ "id": "finding_d2fe951005c971f897c1"+ },+ {+ "biomarker_type": "nested_complexity",+ "severity": "medium",+ "file_path": "swift/nested.swift",+ "function_name": "deeplyNested",+ "line_start": 3,+ "line_end": 14,+ "details": {+ "max_nesting": 4,+ "ccn": 5,+ "cognitive": 10,+ "dispatch_share": 0.0,+ "symbol_line": 3,+ "deepest_block": {+ "start": 6,+ "end": 10+ }+ },+ "health_impact": 0.938,+ "reason": "deeplyNested nests 4 levels deep",+ "dimension": "defect",+ "id": "finding_d407fd3ab687e2789f32"+ },+ {+ "biomarker_type": "low_cohesion",+ "severity": "medium",+ "file_path": "typescript/classes.ts",+ "function_name": "Splintered",+ "line_start": 28,+ "line_end": 51,+ "details": {+ "class_name": "Splintered",+ "lcom4": 2,+ "method_count": 5,+ "field_count": 2,+ "symbol_line": 28+ },+ "health_impact": 0.35,+ "reason": "Splintered has low cohesion (LCOM4=2): its 5 methods split into 2 groups that share no fields or calls",+ "dimension": "maintainability",+ "id": "finding_71eaf8ee511ffe4dce0d"+ },+ {+ "biomarker_type": "complex_conditional",+ "severity": "low",+ "file_path": "typescript/conditionals.ts",+ "function_name": "threeOps",+ "line_start": 2,+ "line_end": 2,+ "details": {+ "operator_count": 3,+ "enclosing_construct": "if",+ "flat_chain": true,+ "dispatch_share": 0.0,+ "symbol_line": 1+ },+ "health_impact": 0.399,+ "reason": "if condition combines 3 boolean operators",+ "dimension": "defect",+ "id": "finding_5da1fdb1c287eae427a0"+ },+ {+ "biomarker_type": "complex_conditional",+ "severity": "low",+ "file_path": "typescript/conditionals.ts",+ "function_name": "sixOps",+ "line_start": 17,+ "line_end": 17,+ "details": {+ "operator_count": 6,+ "enclosing_construct": "while",+ "flat_chain": true,+ "dispatch_share": 0.0,+ "symbol_line": 8+ },+ "health_impact": 0.399,+ "reason": "while condition combines 6 boolean operators",+ "dimension": "defect",+ "id": "finding_35d87c20e1ce38c81d46"+ },+ {+ "biomarker_type": "nested_complexity",+ "severity": "high",+ "file_path": "typescript/nested.ts",+ "function_name": "deeplyNested",+ "line_start": 1,+ "line_end": 19,+ "details": {+ "max_nesting": 5,+ "ccn": 7,+ "cognitive": 20,+ "dispatch_share": 0.0,+ "symbol_line": 1,+ "deepest_block": {+ "start": 6,+ "end": 12+ }+ },+ "health_impact": 1.608,+ "reason": "deeplyNested nests 5 levels deep",+ "dimension": "defect",+ "id": "finding_28aa3ceec6692a33ea1e"+ },+ {+ "biomarker_type": "error_handling",+ "severity": "low",+ "file_path": "typescript/nested.ts",+ "function_name": null,+ "line_start": 10,+ "line_end": 10,+ "details": {+ "kind": "swallowed_catch",+ "symbol_line": 1,+ "symbol": "deeplyNested"+ },+ "health_impact": 0.15,+ "reason": "caught exception is swallowed without any handling",+ "dimension": "maintainability",+ "id": "finding_a35ce27fd3a48728b788"+ },+ {+ "biomarker_type": "io_in_loop",+ "severity": "medium",+ "file_path": "typescript/perf_io_in_loop.ts",+ "function_name": "fetchInLoop",+ "line_start": 9,+ "line_end": 9,+ "details": {+ "boundary_kind": "network",+ "cross_function": false,+ "loop_iterates": "parameter",+ "loop_line": 8,+ "sink_call": "fetch",+ "symbol_line": 7,+ "role_owner": "typescript/perf_io_in_loop.ts::fetchInLoop",+ "execution_role": "unknown",+ "opportunity_id": "perf3_f670b296bb8c129b3c74"+ },+ "health_impact": 0.0,+ "reason": "a network call runs once per loop iteration (I/O call inside a loop)",+ "dimension": "performance",+ "id": "finding_c61c4278e0d31a0eed04"+ },+ {+ "biomarker_type": "io_in_loop",+ "severity": "medium",+ "file_path": "typescript/perf_io_in_loop.ts",+ "function_name": "axiosInLoop",+ "line_start": 15,+ "line_end": 15,+ "details": {+ "boundary_kind": "network",+ "cross_function": false,+ "loop_iterates": "parameter",+ "loop_line": 14,+ "sink_call": "axios.get",+ "symbol_line": 13,+ "role_owner": "typescript/perf_io_in_loop.ts::axiosInLoop",+ "execution_role": "unknown",+ "opportunity_id": "perf3_1acf767e3212f9ff02a9"+ },+ "health_impact": 0.0,+ "reason": "a network call runs once per loop iteration (I/O call inside a loop)",+ "dimension": "performance",+ "id": "finding_872d7ae5e8a2ed127e3f"+ },+ {+ "biomarker_type": "io_in_loop",+ "severity": "medium",+ "file_path": "typescript/perf_io_in_loop.ts",+ "function_name": "prismaInLoop",+ "line_start": 21,+ "line_end": 21,+ "details": {+ "boundary_kind": "db",+ "cross_function": false,+ "loop_iterates": "parameter",+ "loop_line": 20,+ "sink_call": "prisma.user.findMany",+ "symbol_line": 19,+ "role_owner": "typescript/perf_io_in_loop.ts::prismaInLoop",+ "execution_role": "unknown",+ "opportunity_id": "perf3_43357842949e4aa0d990"+ },+ "health_impact": 0.0,+ "reason": "a database call runs once per loop iteration (N+1 query)",+ "dimension": "performance",+ "id": "finding_08c2c3b4ad9d1823a0b4"+ }+ ],+ "kpis": {+ "hotspot_health": null,+ "average_health": 9.55,+ "worst_performer_path": "scala/nested.scala",+ "worst_performer_score": 7.54,+ "worst_test_path": null,+ "worst_test_score": null,+ "file_count": 63,+ "maintainability_average": 9.62,+ "maintainability_hotspot": null,+ "performance_average": 9.5,+ "performance_hotspot": null,+ "structure_average": 0.45,+ "structure_hotspot": null,+ "history_average": 0.0,+ "history_hotspot": null,+ "production_average": 9.55,+ "production_file_count": 63,+ "unanalysed_file_count": 4,+ "analysed_share": 0.9403+ },+ "repo_function_mod_p80": null,+ "suggestions": [+ {+ "refactoring_type": "performance_fix",+ "file_path": "csharp/PerfIoInLoop.cs",+ "target_symbol": "csharp/PerfIoInLoop.cs::HttpInLoop",+ "line_start": 29,+ "line_end": 29,+ "impact_delta": 0.0,+ "effort_bucket": "S",+ "confidence": "medium",+ "source_biomarker": "io_in_loop"+ },+ {+ "refactoring_type": "performance_fix",+ "file_path": "go/perf_io_in_loop.go",+ "target_symbol": "go/perf_io_in_loop.go::dbQueryInRange",+ "line_start": 20,+ "line_end": 20,+ "impact_delta": 0.0,+ "effort_bucket": "S",+ "confidence": "medium",+ "source_biomarker": "io_in_loop"+ },+ {+ "refactoring_type": "performance_fix",+ "file_path": "go/perf_io_in_loop.go",+ "target_symbol": "go/perf_io_in_loop.go::httpGetInRange",+ "line_start": 26,+ "line_end": 26,+ "impact_delta": 0.0,+ "effort_bucket": "S",+ "confidence": "medium",+ "source_biomarker": "io_in_loop"+ },+ {+ "refactoring_type": "performance_fix",+ "file_path": "java/PerfIoInLoop.java",+ "target_symbol": "java/PerfIoInLoop.java::jdbcInLoop",+ "line_start": 24,+ "line_end": 24,+ "impact_delta": 0.0,+ "effort_bucket": "S",+ "confidence": "medium",+ "source_biomarker": "io_in_loop"+ },+ {+ "refactoring_type": "performance_fix",+ "file_path": "java/PerfIoInLoop.java",+ "target_symbol": "java/PerfIoInLoop.java::springDataN1",+ "line_start": 18,+ "line_end": 18,+ "impact_delta": 0.0,+ "effort_bucket": "S",+ "confidence": "medium",+ "source_biomarker": "io_in_loop"+ },+ {+ "refactoring_type": "performance_fix",+ "file_path": "python/perf_io_in_loop.py",+ "target_symbol": "python/perf_io_in_loop.py::db_execute_in_loop",+ "line_start": 20,+ "line_end": 20,+ "impact_delta": 0.0,+ "effort_bucket": "S",+ "confidence": "medium",+ "source_biomarker": "io_in_loop"+ },+ {+ "refactoring_type": "performance_fix",+ "file_path": "python/perf_io_in_loop.py",+ "target_symbol": "python/perf_io_in_loop.py::http_in_loop",+ "line_start": 30,+ "line_end": 30,+ "impact_delta": 0.0,+ "effort_bucket": "S",+ "confidence": "medium",+ "source_biomarker": "io_in_loop"+ },+ {+ "refactoring_type": "performance_fix",+ "file_path": "ruby/perf_io_in_loop.rb",+ "target_symbol": "ruby/perf_io_in_loop.rb::fresh_clients",+ "line_start": 68,+ "line_end": 68,+ "impact_delta": 0.0,+ "effort_bucket": "S",+ "confidence": "medium",+ "source_biomarker": "io_in_loop"+ },+ {+ "refactoring_type": "performance_fix",+ "file_path": "ruby/perf_io_in_loop.rb",+ "target_symbol": "ruby/perf_io_in_loop.rb::orders_report",+ "line_start": 26,+ "line_end": 26,+ "impact_delta": 0.0,+ "effort_bucket": "S",+ "confidence": "medium",+ "source_biomarker": "io_in_loop"+ },+ {+ "refactoring_type": "performance_fix",+ "file_path": "ruby/perf_io_in_loop.rb",+ "target_symbol": "ruby/perf_io_in_loop.rb::sync_fetch_each",+ "line_start": 8,+ "line_end": 8,+ "impact_delta": 0.0,+ "effort_bucket": "S",+ "confidence": "medium",+ "source_biomarker": "io_in_loop"+ },+ {+ "refactoring_type": "performance_fix",+ "file_path": "rust/perf_io_in_loop.rs",+ "target_symbol": "rust/perf_io_in_loop.rs::reqwest_get_in_loop",+ "line_start": 37,+ "line_end": 37,+ "impact_delta": 0.0,+ "effort_bucket": "S",+ "confidence": "medium",+ "source_biomarker": "io_in_loop"+ },+ {+ "refactoring_type": "performance_fix",+ "file_path": "typescript/perf_io_in_loop.ts",+ "target_symbol": "typescript/perf_io_in_loop.ts::axiosInLoop",+ "line_start": 15,+ "line_end": 15,+ "impact_delta": 0.0,+ "effort_bucket": "S",+ "confidence": "medium",+ "source_biomarker": "io_in_loop"+ },+ {+ "refactoring_type": "performance_fix",+ "file_path": "typescript/perf_io_in_loop.ts",+ "target_symbol": "typescript/perf_io_in_loop.ts::fetchInLoop",+ "line_start": 9,+ "line_end": 9,+ "impact_delta": 0.0,+ "effort_bucket": "S",+ "confidence": "medium",+ "source_biomarker": "io_in_loop"+ },+ {+ "refactoring_type": "performance_fix",+ "file_path": "typescript/perf_io_in_loop.ts",+ "target_symbol": "typescript/perf_io_in_loop.ts::prismaInLoop",+ "line_start": 21,+ "line_end": 21,+ "impact_delta": 0.0,+ "effort_bucket": "S",+ "confidence": "medium",+ "source_biomarker": "io_in_loop"+ },+ {+ "refactoring_type": "performance_fix",+ "file_path": "csharp/PerfIoInLoop.cs",+ "target_symbol": "csharp/PerfIoInLoop.cs::StringConcatInLoop",+ "line_start": 62,+ "line_end": 62,+ "impact_delta": 0.0,+ "effort_bucket": "S",+ "confidence": "medium",+ "source_biomarker": "string_concat_in_loop"+ },+ {+ "refactoring_type": "performance_fix",+ "file_path": "dart/perf_io_in_loop.dart",+ "target_symbol": "dart/perf_io_in_loop.dart::concat",+ "line_start": 29,+ "line_end": 29,+ "impact_delta": 0.0,+ "effort_bucket": "S",+ "confidence": "medium",+ "source_biomarker": "string_concat_in_loop"+ },+ {+ "refactoring_type": "performance_fix",+ "file_path": "go/perf_io_in_loop.go",+ "target_symbol": "go/perf_io_in_loop.go::stringConcatInRange",+ "line_start": 53,+ "line_end": 53,+ "impact_delta": 0.0,+ "effort_bucket": "S",+ "confidence": "medium",+ "source_biomarker": "string_concat_in_loop"+ },+ {+ "refactoring_type": "performance_fix",+ "file_path": "java/PerfIoInLoop.java",+ "target_symbol": "java/PerfIoInLoop.java::stringConcatInLoop",+ "line_start": 49,+ "line_end": 49,+ "impact_delta": 0.0,+ "effort_bucket": "S",+ "confidence": "medium",+ "source_biomarker": "string_concat_in_loop"+ },+ {+ "refactoring_type": "performance_fix",+ "file_path": "python/perf_io_in_loop.py",+ "target_symbol": "python/perf_io_in_loop.py::string_concat_in_loop",+ "line_start": 41,+ "line_end": 41,+ "impact_delta": 0.0,+ "effort_bucket": "S",+ "confidence": "medium",+ "source_biomarker": "string_concat_in_loop"+ },+ {+ "refactoring_type": "performance_fix",+ "file_path": "ruby/perf_io_in_loop.rb",+ "target_symbol": "ruby/perf_io_in_loop.rb::build_report",+ "line_start": 42,+ "line_end": 42,+ "impact_delta": 0.0,+ "effort_bucket": "S",+ "confidence": "medium",+ "source_biomarker": "string_concat_in_loop"+ },+ {+ "refactoring_type": "performance_fix",+ "file_path": "scala/perf_io_in_loop.scala",+ "target_symbol": "scala/perf_io_in_loop.scala::concat",+ "line_start": 54,+ "line_end": 54,+ "impact_delta": 0.0,+ "effort_bucket": "S",+ "confidence": "medium",+ "source_biomarker": "string_concat_in_loop"+ }+ ]+ }+}diff --git a/tests/unit/health/test_engine_golden.py b/tests/unit/health/test_engine_golden.pynew file mode 100644index 000000000..9bcfd4ad2--- /dev/null+++ b/tests/unit/health/test_engine_golden.py@@ -0,0 +1,103 @@+"""Golden output of ``HealthAnalyzer.analyze`` on the checked-in sample corpora.++Pins per-file metrics and scores, every finding (biomarker type, severity,+lines, impact, details) with its public id, the repo KPIs, and which+refactoring suggestions came out, in the order the engine returns them. Two+corpora: the refactoring archetype trees and the per-language samples. Rewrite+with ``REPOWISE_REWRITE_GOLDEN=1`` only for an intended behaviour change.+"""++from __future__ import annotations++import dataclasses+import json+import os+from pathlib import Path++from repowise.core.analysis.health import HealthAnalyzer+from repowise.core.analysis.health.finding_identity import finding_public_id+from repowise.core.ingestion import ASTParser, FileTraverser, GraphBuilder++FIXTURES = Path(__file__).resolve().parents[2] / "fixtures"+GOLDEN = Path(__file__).parent / "golden" / "health_engine.json"+CORPORA = {+ "trees/gopkg": FIXTURES / "refactoring_corpus" / "trees" / "gopkg",+ "trees/orm": FIXTURES / "refactoring_corpus" / "trees" / "orm",+ "trees/tsapp": FIXTURES / "refactoring_corpus" / "trees" / "tsapp",+ "trees/web": FIXTURES / "refactoring_corpus" / "trees" / "web",+ "lang_samples": FIXTURES / "lang_samples",+}+++def _copy_lf(src: Path, dst: Path) -> None:+ """Copy *src* to *dst* with LF line endings, as a Linux checkout has them."""+ for path in sorted(src.rglob("*")):+ if path.is_file():+ target = dst / path.relative_to(src)+ target.parent.mkdir(parents=True, exist_ok=True)+ target.write_bytes(path.read_bytes().replace(b"\r\n", b"\n"))+++def _analyze(root: Path) -> dict:+ # Unlike the refactoring loader, a parse failure fails the run: a file+ # skipped on one machine only would make the golden platform-dependent.+ parser = ASTParser()+ builder = GraphBuilder(root)+ parsed = []+ for info in FileTraverser(root).traverse():+ pf = parser.parse_file(info, Path(info.abs_path).read_bytes())+ builder.add_file(pf)+ parsed.append(pf)+ builder.build()+ report = HealthAnalyzer(+ builder.graph(), git_meta_map={}, parsed_files=parsed, repo_root=root+ ).analyze(None)+ findings = []+ for f in report.findings:+ row = dataclasses.asdict(f)+ row["severity"] = str(f.severity)+ row["id"] = finding_public_id(f)+ findings.append(row)+ payload = {+ "metrics": [dataclasses.asdict(m) for m in report.metrics],+ "findings": findings,+ "kpis": report.kpis,+ "repo_function_mod_p80": report.repo_function_mod_p80,+ "suggestions": [+ {+ key: getattr(s, key)+ for key in (+ "refactoring_type",+ "file_path",+ "target_symbol",+ "line_start",+ "line_end",+ "impact_delta",+ "effort_bucket",+ "confidence",+ "source_biomarker",+ )+ }+ for s in report.refactoring_suggestions+ ],+ }+ # The temp root is the one volatile value; details may name it.+ text = json.dumps(payload, default=str)+ for spelling in {str(root), root.as_posix(), json.dumps(str(root))[1:-1]}:+ text = text.replace(spelling, "<root>")+ return json.loads(text)+++def test_health_engine_matches_golden(tmp_path: Path) -> None:+ actual = {}+ for name, src in CORPORA.items():+ root = tmp_path / name.replace("/", "_")+ _copy_lf(src, root)+ actual[name] = _analyze(root)+ if os.environ.get("REPOWISE_REWRITE_GOLDEN") == "1":+ GOLDEN.parent.mkdir(exist_ok=True)+ GOLDEN.write_text(json.dumps(actual, indent=2) + "\n", encoding="utf-8")+ expected = json.loads(GOLDEN.read_text(encoding="utf-8"))+ for name in CORPORA:+ assert actual[name] == expected[name], name+ assert actual.keys() == expected.keys()diff --git a/tests/unit/ingestion/parser/golden/cpp.json b/tests/unit/ingestion/parser/golden/cpp.jsonnew file mode 100644index 000000000..03fa519ad--- /dev/null+++ b/tests/unit/ingestion/parser/golden/cpp.json@@ -0,0 +1,762 @@+{+ "cpp/assertions.cpp": {+ "file_info": {+ "path": "lang_samples/cpp/assertions.cpp",+ "language": "cpp",+ "size_bytes": 588,+ "is_test": false,+ "is_config": false,+ "is_api_contract": false,+ "is_entry_point": false,+ "is_manifest_entry": false,+ "is_reachability_root": false+ },+ "symbols": [+ {+ "id": "lang_samples/cpp/assertions.cpp::testManyAsserts",+ "name": "testManyAsserts",+ "qualified_name": "lang_samples.cpp.assertions.testManyAsserts",+ "kind": "function",+ "signature": "testManyAsserts() -> void",+ "start_line": 4,+ "end_line": 21,+ "docstring": null,+ "decorators": [],+ "visibility": "public",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "cpp",+ "parent_name": null,+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/cpp/assertions.cpp::testFewAsserts",+ "name": "testFewAsserts",+ "qualified_name": "lang_samples.cpp.assertions.testFewAsserts",+ "kind": "function",+ "signature": "testFewAsserts() -> void",+ "start_line": 23,+ "end_line": 27,+ "docstring": null,+ "decorators": [],+ "visibility": "public",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "cpp",+ "parent_name": null,+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ }+ ],+ "imports": [],+ "exports": [+ "testManyAsserts",+ "testFewAsserts"+ ],+ "export_aliases": {},+ "calls": [+ {+ "target_name": "EXPECT_EQ",+ "receiver_name": null,+ "caller_symbol_id": "lang_samples/cpp/assertions.cpp::testManyAsserts",+ "line": 5,+ "argument_count": 2,+ "receiver_call": null,+ "scope_name": null,+ "edge_type": "calls",+ "supplied_props": null,+ "bare_name_fallback": false,+ "spawned": false,+ "argument_types": null,+ "argument_names": null+ },+ {+ "target_name": "EXPECT_EQ",+ "receiver_name": null,+ "caller_symbol_id": "lang_samples/cpp/assertions.cpp::testManyAsserts",+ "line": 6,+ "argument_count": 2,+ "receiver_call": null,+ "scope_name": null,+ "edge_type": "calls",+ "supplied_props": null,+ "bare_name_fallback": false,+ "spawned": false,+ "argument_types": null,+ "argument_names": null+ },+ {+ "target_name": "EXPECT_EQ",+ "receiver_name": null,+ "caller_symbol_id": "lang_samples/cpp/assertions.cpp::testManyAsserts",+ "line": 7,+ "argument_count": 2,+ "receiver_call": null,+ "scope_name": null,+ "edge_type": "calls",+ "supplied_props": null,+ "bare_name_fallback": false,+ "spawned": false,+ "argument_types": null,+ "argument_names": null+ },+ {+ "target_name": "EXPECT_EQ",+ "receiver_name": null,+ "caller_symbol_id": "lang_samples/cpp/assertions.cpp::testManyAsserts",+ "line": 8,+ "argument_count": 2,+ "receiver_call": null,+ "scope_name": null,+ "edge_type": "calls",+ "supplied_props": null,+ "bare_name_fallback": false,+ "spawned": false,+ "argument_types": null,+ "argument_names": null+ },+ {+ "target_name": "EXPECT_EQ",+ "receiver_name": null,+ "caller_symbol_id": "lang_samples/cpp/assertions.cpp::testManyAsserts",+ "line": 9,+ "argument_count": 2,+ "receiver_call": null,+ "scope_name": null,+ "edge_type": "calls",+ "supplied_props": null,+ "bare_name_fallback": false,+ "spawned": false,+ "argument_types": null,+ "argument_names": null+ },+ {+ "target_name": "EXPECT_EQ",+ "receiver_name": null,+ "caller_symbol_id": "lang_samples/cpp/assertions.cpp::testManyAsserts",+ "line": 10,+ "argument_count": 2,+ "receiver_call": null,+ "scope_name": null,+ "edge_type": "calls",+ "supplied_props": null,+ "bare_name_fallback": false,+ "spawned": false,+ "argument_types": null,+ "argument_names": null+ },+ {+ "target_name": "EXPECT_EQ",+ "receiver_name": null,+ "caller_symbol_id": "lang_samples/cpp/assertions.cpp::testManyAsserts",+ "line": 11,+ "argument_count": 2,+ "receiver_call": null,+ "scope_name": null,+ "edge_type": "calls",+ "supplied_props": null,+ "bare_name_fallback": false,+ "spawned": false,+ "argument_types": null,+ "argument_names": null+ },+ {+ "target_name": "EXPECT_EQ",+ "receiver_name": null,+ "caller_symbol_id": "lang_samples/cpp/assertions.cpp::testManyAsserts",+ "line": 12,+ "argument_count": 2,+ "receiver_call": null,+ "scope_name": null,+ "edge_type": "calls",+ "supplied_props": null,+ "bare_name_fallback": false,+ "spawned": false,+ "argument_types": null,+ "argument_names": null+ },+ {+ "target_name": "EXPECT_EQ",+ "receiver_name": null,+ "caller_symbol_id": "lang_samples/cpp/assertions.cpp::testManyAsserts",+ "line": 13,+ "argument_count": 2,+ "receiver_call": null,+ "scope_name": null,+ "edge_type": "calls",+ "supplied_props": null,+ "bare_name_fallback": false,+ "spawned": false,+ "argument_types": null,+ "argument_names": null+ },+ {+ "target_name": "EXPECT_EQ",+ "receiver_name": null,+ "caller_symbol_id": "lang_samples/cpp/assertions.cpp::testManyAsserts",+ "line": 14,+ "argument_count": 2,+ "receiver_call": null,+ "scope_name": null,+ "edge_type": "calls",+ "supplied_props": null,+ "bare_name_fallback": false,+ "spawned": false,+ "argument_types": null,+ "argument_names": null+ },+ {+ "target_name": "EXPECT_EQ",+ "receiver_name": null,+ "caller_symbol_id": "lang_samples/cpp/assertions.cpp::testManyAsserts",+ "line": 15,+ "argument_count": 2,+ "receiver_call": null,+ "scope_name": null,+ "edge_type": "calls",+ "supplied_props": null,+ "bare_name_fallback": false,+ "spawned": false,+ "argument_types": null,+ "argument_names": null+ },+ {+ "target_name": "EXPECT_EQ",+ "receiver_name": null,+ "caller_symbol_id": "lang_samples/cpp/assertions.cpp::testManyAsserts",+ "line": 16,+ "argument_count": 2,+ "receiver_call": null,+ "scope_name": null,+ "edge_type": "calls",+ "supplied_props": null,+ "bare_name_fallback": false,+ "spawned": false,+ "argument_types": null,+ "argument_names": null+ },+ {+ "target_name": "EXPECT_EQ",+ "receiver_name": null,+ "caller_symbol_id": "lang_samples/cpp/assertions.cpp::testManyAsserts",+ "line": 17,+ "argument_count": 2,+ "receiver_call": null,+ "scope_name": null,+ "edge_type": "calls",+ "supplied_props": null,+ "bare_name_fallback": false,+ "spawned": false,+ "argument_types": null,+ "argument_names": null+ },+ {+ "target_name": "EXPECT_EQ",+ "receiver_name": null,+ "caller_symbol_id": "lang_samples/cpp/assertions.cpp::testManyAsserts",+ "line": 18,+ "argument_count": 2,+ "receiver_call": null,+ "scope_name": null,+ "edge_type": "calls",+ "supplied_props": null,+ "bare_name_fallback": false,+ "spawned": false,+ "argument_types": null,+ "argument_names": null+ },+ {+ "target_name": "EXPECT_EQ",+ "receiver_name": null,+ "caller_symbol_id": "lang_samples/cpp/assertions.cpp::testManyAsserts",+ "line": 19,+ "argument_count": 2,+ "receiver_call": null,+ "scope_name": null,+ "edge_type": "calls",+ "supplied_props": null,+ "bare_name_fallback": false,+ "spawned": false,+ "argument_types": null,+ "argument_names": null+ },+ {+ "target_name": "EXPECT_EQ",+ "receiver_name": null,+ "caller_symbol_id": "lang_samples/cpp/assertions.cpp::testManyAsserts",+ "line": 20,+ "argument_count": 2,+ "receiver_call": null,+ "scope_name": null,+ "edge_type": "calls",+ "supplied_props": null,+ "bare_name_fallback": false,+ "spawned": false,+ "argument_types": null,+ "argument_names": null+ },+ {+ "target_name": "EXPECT_EQ",+ "receiver_name": null,+ "caller_symbol_id": "lang_samples/cpp/assertions.cpp::testFewAsserts",+ "line": 24,+ "argument_count": 2,+ "receiver_call": null,+ "scope_name": null,+ "edge_type": "calls",+ "supplied_props": null,+ "bare_name_fallback": false,+ "spawned": false,+ "argument_types": null,+ "argument_names": null+ },+ {+ "target_name": "EXPECT_EQ",+ "receiver_name": null,+ "caller_symbol_id": "lang_samples/cpp/assertions.cpp::testFewAsserts",+ "line": 26,+ "argument_count": 2,+ "receiver_call": null,+ "scope_name": null,+ "edge_type": "calls",+ "supplied_props": null,+ "bare_name_fallback": false,+ "spawned": false,+ "argument_types": null,+ "argument_names": null+ }+ ],+ "heritage": [],+ "docstring": null,+ "parse_errors": [],+ "content_hash": "30f50c7712c5d3ada83872c2d4e7dd93884409e059076a24ee788d8df8b00f3e",+ "type_refs": [],+ "local_refs": [],+ "registrars": [],+ "references": []+ },+ "cpp/classes.cpp": {+ "file_info": {+ "path": "lang_samples/cpp/classes.cpp",+ "language": "cpp",+ "size_bytes": 878,+ "is_test": false,+ "is_config": false,+ "is_api_contract": false,+ "is_entry_point": false,+ "is_manifest_entry": false,+ "is_reachability_root": false+ },+ "symbols": [+ {+ "id": "lang_samples/cpp/classes.cpp::Cohesive",+ "name": "Cohesive",+ "qualified_name": "lang_samples.cpp.classes.Cohesive",+ "kind": "class",+ "signature": "class Cohesive",+ "start_line": 6,+ "end_line": 28,+ "docstring": null,+ "decorators": [],+ "visibility": "public",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "cpp",+ "parent_name": null,+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/cpp/classes.cpp::Cohesive::add",+ "name": "add",+ "qualified_name": "lang_samples.cpp.classes.Cohesive.add",+ "kind": "method",+ "signature": "add(int n) -> void",+ "start_line": 11,+ "end_line": 14,+ "docstring": null,+ "decorators": [],+ "visibility": "public",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "cpp",+ "parent_name": "Cohesive",+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/cpp/classes.cpp::Cohesive::average",+ "name": "average",+ "qualified_name": "lang_samples.cpp.classes.Cohesive.average",+ "kind": "method",+ "signature": "average() -> int",+ "start_line": 16,+ "end_line": 18,+ "docstring": null,+ "decorators": [],+ "visibility": "public",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "cpp",+ "parent_name": "Cohesive",+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/cpp/classes.cpp::Cohesive::reset",+ "name": "reset",+ "qualified_name": "lang_samples.cpp.classes.Cohesive.reset",+ "kind": "method",+ "signature": "reset() -> void",+ "start_line": 20,+ "end_line": 23,+ "docstring": null,+ "decorators": [],+ "visibility": "public",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "cpp",+ "parent_name": "Cohesive",+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/cpp/classes.cpp::Cohesive::describe",+ "name": "describe",+ "qualified_name": "lang_samples.cpp.classes.Cohesive.describe",+ "kind": "method",+ "signature": "describe() -> int",+ "start_line": 25,+ "end_line": 27,+ "docstring": null,+ "decorators": [],+ "visibility": "public",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "cpp",+ "parent_name": "Cohesive",+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/cpp/classes.cpp::Splintered",+ "name": "Splintered",+ "qualified_name": "lang_samples.cpp.classes.Splintered",+ "kind": "class",+ "signature": "class Splintered",+ "start_line": 30,+ "end_line": 54,+ "docstring": null,+ "decorators": [],+ "visibility": "public",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "cpp",+ "parent_name": null,+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/cpp/classes.cpp::Splintered::setA",+ "name": "setA",+ "qualified_name": "lang_samples.cpp.classes.Splintered.setA",+ "kind": "method",+ "signature": "setA(int v) -> void",+ "start_line": 35,+ "end_line": 37,+ "docstring": null,+ "decorators": [],+ "visibility": "public",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "cpp",+ "parent_name": "Splintered",+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/cpp/classes.cpp::Splintered::getA",+ "name": "getA",+ "qualified_name": "lang_samples.cpp.classes.Splintered.getA",+ "kind": "method",+ "signature": "getA() -> int",+ "start_line": 39,+ "end_line": 41,+ "docstring": null,+ "decorators": [],+ "visibility": "public",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "cpp",+ "parent_name": "Splintered",+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/cpp/classes.cpp::Splintered::setB",+ "name": "setB",+ "qualified_name": "lang_samples.cpp.classes.Splintered.setB",+ "kind": "method",+ "signature": "setB(int v) -> void",+ "start_line": 43,+ "end_line": 45,+ "docstring": null,+ "decorators": [],+ "visibility": "public",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "cpp",+ "parent_name": "Splintered",+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/cpp/classes.cpp::Splintered::getB",+ "name": "getB",+ "qualified_name": "lang_samples.cpp.classes.Splintered.getB",+ "kind": "method",+ "signature": "getB() -> int",+ "start_line": 47,+ "end_line": 49,+ "docstring": null,+ "decorators": [],+ "visibility": "public",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "cpp",+ "parent_name": "Splintered",+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/cpp/classes.cpp::Splintered::loner",+ "name": "loner",+ "qualified_name": "lang_samples.cpp.classes.Splintered.loner",+ "kind": "method",+ "signature": "loner() -> int",+ "start_line": 51,+ "end_line": 53,+ "docstring": null,+ "decorators": [],+ "visibility": "public",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "cpp",+ "parent_name": "Splintered",+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ }+ ],+ "imports": [],+ "exports": [+ "Cohesive",+ "Splintered"+ ],+ "export_aliases": {},+ "calls": [],+ "heritage": [],+ "docstring": null,+ "parse_errors": [],+ "content_hash": "52d03c3025acc32ccf640fc48dc72a7c7a7278b9940ec45d9a366a5aaf2138e9",+ "type_refs": [],+ "local_refs": [],+ "registrars": [],+ "references": [+ {+ "target_name": "n",+ "receiver_name": null,+ "caller_symbol_id": "lang_samples/cpp/classes.cpp::Cohesive::add",+ "line": 12,+ "argument_count": null,+ "receiver_call": null,+ "scope_name": null,+ "edge_type": "calls",+ "supplied_props": null,+ "bare_name_fallback": false,+ "spawned": false,+ "argument_types": null,+ "argument_names": null+ },+ {+ "target_name": "v",+ "receiver_name": null,+ "caller_symbol_id": "lang_samples/cpp/classes.cpp::Splintered::setA",+ "line": 36,+ "argument_count": null,+ "receiver_call": null,+ "scope_name": null,+ "edge_type": "calls",+ "supplied_props": null,+ "bare_name_fallback": false,+ "spawned": false,+ "argument_types": null,+ "argument_names": null+ },+ {+ "target_name": "v",+ "receiver_name": null,+ "caller_symbol_id": "lang_samples/cpp/classes.cpp::Splintered::setB",+ "line": 44,+ "argument_count": null,+ "receiver_call": null,+ "scope_name": null,+ "edge_type": "calls",+ "supplied_props": null,+ "bare_name_fallback": false,+ "spawned": false,+ "argument_types": null,+ "argument_names": null+ }+ ]+ },+ "cpp/nested.cpp": {+ "file_info": {+ "path": "lang_samples/cpp/nested.cpp",+ "language": "cpp",+ "size_bytes": 555,+ "is_test": false,+ "is_config": false,+ "is_api_contract": false,+ "is_entry_point": false,+ "is_manifest_entry": false,+ "is_reachability_root": false+ },+ "symbols": [+ {+ "id": "lang_samples/cpp/nested.cpp::deeplyNested",+ "name": "deeplyNested",+ "qualified_name": "lang_samples.cpp.nested.deeplyNested",+ "kind": "function",+ "signature": "deeplyNested(int x) -> int",+ "start_line": 3,+ "end_line": 14,+ "docstring": null,+ "decorators": [],+ "visibility": "public",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "cpp",+ "parent_name": null,+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/cpp/nested.cpp::shallow",+ "name": "shallow",+ "qualified_name": "lang_samples.cpp.nested.shallow",+ "kind": "function",+ "signature": "shallow(int x) -> int",+ "start_line": 16,+ "end_line": 18,+ "docstring": null,+ "decorators": [],+ "visibility": "public",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "cpp",+ "parent_name": null,+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/cpp/nested.cpp::manyBranches",+ "name": "manyBranches",+ "qualified_name": "lang_samples.cpp.nested.manyBranches",+ "kind": "function",+ "signature": "manyBranches(int x) -> int",+ "start_line": 20,+ "end_line": 28,+ "docstring": null,+ "decorators": [],+ "visibility": "public",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "cpp",+ "parent_name": null,+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ }+ ],+ "imports": [],+ "exports": [+ "deeplyNested",+ "shallow",+ "manyBranches"+ ],+ "export_aliases": {},+ "calls": [],+ "heritage": [],+ "docstring": null,+ "parse_errors": [],+ "content_hash": "abbd7180e690a3f4d535f05fc5861911917f40918e121f7fef69694b33f09600",+ "type_refs": [],+ "local_refs": [],+ "registrars": [],+ "references": []+ }+}diff --git a/tests/unit/ingestion/parser/golden/csharp.json b/tests/unit/ingestion/parser/golden/csharp.jsonnew file mode 100644index 000000000..e0e91b228--- /dev/null+++ b/tests/unit/ingestion/parser/golden/csharp.json@@ -0,0 +1,1356 @@+{+ "csharp/assertions.cs": {+ "file_info": {+ "path": "lang_samples/csharp/assertions.cs",+ "language": "csharp",+ "size_bytes": 719,+ "is_test": false,+ "is_config": false,+ "is_api_contract": false,+ "is_entry_point": false,+ "is_manifest_entry": false,+ "is_reachability_root": false+ },+ "symbols": [+ {+ "id": "lang_samples/csharp/assertions.cs::Tests",+ "name": "Tests",+ "qualified_name": "lang_samples.csharp.assertions.Tests",+ "kind": "class",+ "signature": "class Tests",+ "start_line": 4,+ "end_line": 32,+ "docstring": null,+ "decorators": [],+ "visibility": "internal",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "csharp",+ "parent_name": null,+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": 0,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/csharp/assertions.cs::Tests::TestManyAsserts",+ "name": "TestManyAsserts",+ "qualified_name": "lang_samples.csharp.assertions.Tests.TestManyAsserts",+ "kind": "method",+ "signature": "TestManyAsserts() -> void",+ "start_line": 6,+ "end_line": 24,+ "docstring": null,+ "decorators": [],+ "visibility": "private",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "csharp",+ "parent_name": "Tests",+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/csharp/assertions.cs::Tests::TestFewAsserts",+ "name": "TestFewAsserts",+ "qualified_name": "lang_samples.csharp.assertions.Tests.TestFewAsserts",+ "kind": "method",+ "signature": "TestFewAsserts() -> void",+ "start_line": 26,+ "end_line": 31,+ "docstring": null,+ "decorators": [],+ "visibility": "private",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "csharp",+ "parent_name": "Tests",+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ }+ ],+ "imports": [],+ "exports": [],+ "export_aliases": {},+ "calls": [+ {+ "target_name": "Equal",+ "receiver_name": "Assert",+ "caller_symbol_id": "lang_samples/csharp/assertions.cs::Tests::TestManyAsserts",+ "line": 8,+ "argument_count": 2,+ "receiver_call": null,+ "scope_name": null,+ "edge_type": "calls",+ "supplied_props": null,+ "bare_name_fallback": false,+ "spawned": false,+ "argument_types": null,+ "argument_names": null+ },+ {+ "target_name": "Equal",+ "receiver_name": "Assert",+ "caller_symbol_id": "lang_samples/csharp/assertions.cs::Tests::TestManyAsserts",+ "line": 9,+ "argument_count": 2,+ "receiver_call": null,+ "scope_name": null,+ "edge_type": "calls",+ "supplied_props": null,+ "bare_name_fallback": false,+ "spawned": false,+ "argument_types": null,+ "argument_names": null+ },+ {+ "target_name": "Equal",+ "receiver_name": "Assert",+ "caller_symbol_id": "lang_samples/csharp/assertions.cs::Tests::TestManyAsserts",+ "line": 10,+ "argument_count": 2,+ "receiver_call": null,+ "scope_name": null,+ "edge_type": "calls",+ "supplied_props": null,+ "bare_name_fallback": false,+ "spawned": false,+ "argument_types": null,+ "argument_names": null+ },+ {+ "target_name": "Equal",+ "receiver_name": "Assert",+ "caller_symbol_id": "lang_samples/csharp/assertions.cs::Tests::TestManyAsserts",+ "line": 11,+ "argument_count": 2,+ "receiver_call": null,+ "scope_name": null,+ "edge_type": "calls",+ "supplied_props": null,+ "bare_name_fallback": false,+ "spawned": false,+ "argument_types": null,+ "argument_names": null+ },+ {+ "target_name": "Equal",+ "receiver_name": "Assert",+ "caller_symbol_id": "lang_samples/csharp/assertions.cs::Tests::TestManyAsserts",+ "line": 12,+ "argument_count": 2,+ "receiver_call": null,+ "scope_name": null,+ "edge_type": "calls",+ "supplied_props": null,+ "bare_name_fallback": false,+ "spawned": false,+ "argument_types": null,+ "argument_names": null+ },+ {+ "target_name": "Equal",+ "receiver_name": "Assert",+ "caller_symbol_id": "lang_samples/csharp/assertions.cs::Tests::TestManyAsserts",+ "line": 13,+ "argument_count": 2,+ "receiver_call": null,+ "scope_name": null,+ "edge_type": "calls",+ "supplied_props": null,+ "bare_name_fallback": false,+ "spawned": false,+ "argument_types": null,+ "argument_names": null+ },+ {+ "target_name": "Equal",+ "receiver_name": "Assert",+ "caller_symbol_id": "lang_samples/csharp/assertions.cs::Tests::TestManyAsserts",+ "line": 14,+ "argument_count": 2,+ "receiver_call": null,+ "scope_name": null,+ "edge_type": "calls",+ "supplied_props": null,+ "bare_name_fallback": false,+ "spawned": false,+ "argument_types": null,+ "argument_names": null+ },+ {+ "target_name": "Equal",+ "receiver_name": "Assert",+ "caller_symbol_id": "lang_samples/csharp/assertions.cs::Tests::TestManyAsserts",+ "line": 15,+ "argument_count": 2,+ "receiver_call": null,+ "scope_name": null,+ "edge_type": "calls",+ "supplied_props": null,+ "bare_name_fallback": false,+ "spawned": false,+ "argument_types": null,+ "argument_names": null+ },+ {+ "target_name": "Equal",+ "receiver_name": "Assert",+ "caller_symbol_id": "lang_samples/csharp/assertions.cs::Tests::TestManyAsserts",+ "line": 16,+ "argument_count": 2,+ "receiver_call": null,+ "scope_name": null,+ "edge_type": "calls",+ "supplied_props": null,+ "bare_name_fallback": false,+ "spawned": false,+ "argument_types": null,+ "argument_names": null+ },+ {+ "target_name": "Equal",+ "receiver_name": "Assert",+ "caller_symbol_id": "lang_samples/csharp/assertions.cs::Tests::TestManyAsserts",+ "line": 17,+ "argument_count": 2,+ "receiver_call": null,+ "scope_name": null,+ "edge_type": "calls",+ "supplied_props": null,+ "bare_name_fallback": false,+ "spawned": false,+ "argument_types": null,+ "argument_names": null+ },+ {+ "target_name": "Equal",+ "receiver_name": "Assert",+ "caller_symbol_id": "lang_samples/csharp/assertions.cs::Tests::TestManyAsserts",+ "line": 18,+ "argument_count": 2,+ "receiver_call": null,+ "scope_name": null,+ "edge_type": "calls",+ "supplied_props": null,+ "bare_name_fallback": false,+ "spawned": false,+ "argument_types": null,+ "argument_names": null+ },+ {+ "target_name": "Equal",+ "receiver_name": "Assert",+ "caller_symbol_id": "lang_samples/csharp/assertions.cs::Tests::TestManyAsserts",+ "line": 19,+ "argument_count": 2,+ "receiver_call": null,+ "scope_name": null,+ "edge_type": "calls",+ "supplied_props": null,+ "bare_name_fallback": false,+ "spawned": false,+ "argument_types": null,+ "argument_names": null+ },+ {+ "target_name": "Equal",+ "receiver_name": "Assert",+ "caller_symbol_id": "lang_samples/csharp/assertions.cs::Tests::TestManyAsserts",+ "line": 20,+ "argument_count": 2,+ "receiver_call": null,+ "scope_name": null,+ "edge_type": "calls",+ "supplied_props": null,+ "bare_name_fallback": false,+ "spawned": false,+ "argument_types": null,+ "argument_names": null+ },+ {+ "target_name": "Equal",+ "receiver_name": "Assert",+ "caller_symbol_id": "lang_samples/csharp/assertions.cs::Tests::TestManyAsserts",+ "line": 21,+ "argument_count": 2,+ "receiver_call": null,+ "scope_name": null,+ "edge_type": "calls",+ "supplied_props": null,+ "bare_name_fallback": false,+ "spawned": false,+ "argument_types": null,+ "argument_names": null+ },+ {+ "target_name": "Equal",+ "receiver_name": "Assert",+ "caller_symbol_id": "lang_samples/csharp/assertions.cs::Tests::TestManyAsserts",+ "line": 22,+ "argument_count": 2,+ "receiver_call": null,+ "scope_name": null,+ "edge_type": "calls",+ "supplied_props": null,+ "bare_name_fallback": false,+ "spawned": false,+ "argument_types": null,+ "argument_names": null+ },+ {+ "target_name": "Equal",+ "receiver_name": "Assert",+ "caller_symbol_id": "lang_samples/csharp/assertions.cs::Tests::TestManyAsserts",+ "line": 23,+ "argument_count": 2,+ "receiver_call": null,+ "scope_name": null,+ "edge_type": "calls",+ "supplied_props": null,+ "bare_name_fallback": false,+ "spawned": false,+ "argument_types": null,+ "argument_names": null+ },+ {+ "target_name": "Equal",+ "receiver_name": "Assert",+ "caller_symbol_id": "lang_samples/csharp/assertions.cs::Tests::TestFewAsserts",+ "line": 28,+ "argument_count": 2,+ "receiver_call": null,+ "scope_name": null,+ "edge_type": "calls",+ "supplied_props": null,+ "bare_name_fallback": false,+ "spawned": false,+ "argument_types": null,+ "argument_names": null+ },+ {+ "target_name": "Equal",+ "receiver_name": "Assert",+ "caller_symbol_id": "lang_samples/csharp/assertions.cs::Tests::TestFewAsserts",+ "line": 30,+ "argument_count": 2,+ "receiver_call": null,+ "scope_name": null,+ "edge_type": "calls",+ "supplied_props": null,+ "bare_name_fallback": false,+ "spawned": false,+ "argument_types": null,+ "argument_names": null+ }+ ],+ "heritage": [],+ "docstring": null,+ "parse_errors": [],+ "content_hash": "7f2ffc31a658836b62dd2121ba223635e344785b3395e064dca78d501c2984b8",+ "type_refs": [],+ "local_refs": [],+ "registrars": [],+ "references": []+ },+ "csharp/classes.cs": {+ "file_info": {+ "path": "lang_samples/csharp/classes.cs",+ "language": "csharp",+ "size_bytes": 849,+ "is_test": false,+ "is_config": false,+ "is_api_contract": false,+ "is_entry_point": false,+ "is_manifest_entry": false,+ "is_reachability_root": false+ },+ "symbols": [+ {+ "id": "lang_samples/csharp/classes.cs::Cohesive",+ "name": "Cohesive",+ "qualified_name": "lang_samples.csharp.classes.Cohesive",+ "kind": "class",+ "signature": "class Cohesive",+ "start_line": 4,+ "end_line": 30,+ "docstring": null,+ "decorators": [],+ "visibility": "internal",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "csharp",+ "parent_name": null,+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": 0,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/csharp/classes.cs::Cohesive::total",+ "name": "total",+ "qualified_name": "lang_samples.csharp.classes.Cohesive.total",+ "kind": "variable",+ "signature": "total",+ "start_line": 6,+ "end_line": 6,+ "docstring": null,+ "decorators": [],+ "visibility": "private",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "csharp",+ "parent_name": "Cohesive",+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/csharp/classes.cs::Cohesive::count",+ "name": "count",+ "qualified_name": "lang_samples.csharp.classes.Cohesive.count",+ "kind": "variable",+ "signature": "count",+ "start_line": 7,+ "end_line": 7,+ "docstring": null,+ "decorators": [],+ "visibility": "private",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "csharp",+ "parent_name": "Cohesive",+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/csharp/classes.cs::Cohesive::Add",+ "name": "Add",+ "qualified_name": "lang_samples.csharp.classes.Cohesive.Add",+ "kind": "method",+ "signature": "Add(int n) -> void",+ "start_line": 9,+ "end_line": 13,+ "docstring": null,+ "decorators": [],+ "visibility": "public",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "csharp",+ "parent_name": "Cohesive",+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": [+ "public"+ ]+ },+ {+ "id": "lang_samples/csharp/classes.cs::Cohesive::Average",+ "name": "Average",+ "qualified_name": "lang_samples.csharp.classes.Cohesive.Average",+ "kind": "method",+ "signature": "Average() -> int",+ "start_line": 15,+ "end_line": 18,+ "docstring": null,+ "decorators": [],+ "visibility": "public",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "csharp",+ "parent_name": "Cohesive",+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": [+ "public"+ ]+ },+ {+ "id": "lang_samples/csharp/classes.cs::Cohesive::Reset",+ "name": "Reset",+ "qualified_name": "lang_samples.csharp.classes.Cohesive.Reset",+ "kind": "method",+ "signature": "Reset() -> void",+ "start_line": 20,+ "end_line": 24,+ "docstring": null,+ "decorators": [],+ "visibility": "public",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "csharp",+ "parent_name": "Cohesive",+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": [+ "public"+ ]+ },+ {+ "id": "lang_samples/csharp/classes.cs::Cohesive::Describe",+ "name": "Describe",+ "qualified_name": "lang_samples.csharp.classes.Cohesive.Describe",+ "kind": "method",+ "signature": "Describe() -> int",+ "start_line": 26,+ "end_line": 29,+ "docstring": null,+ "decorators": [],+ "visibility": "public",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "csharp",+ "parent_name": "Cohesive",+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": [+ "public"+ ]+ },+ {+ "id": "lang_samples/csharp/classes.cs::Splintered",+ "name": "Splintered",+ "qualified_name": "lang_samples.csharp.classes.Splintered",+ "kind": "class",+ "signature": "class Splintered",+ "start_line": 32,+ "end_line": 61,+ "docstring": null,+ "decorators": [],+ "visibility": "internal",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "csharp",+ "parent_name": null,+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": 0,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/csharp/classes.cs::Splintered::a",+ "name": "a",+ "qualified_name": "lang_samples.csharp.classes.Splintered.a",+ "kind": "variable",+ "signature": "a",+ "start_line": 34,+ "end_line": 34,+ "docstring": null,+ "decorators": [],+ "visibility": "private",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "csharp",+ "parent_name": "Splintered",+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/csharp/classes.cs::Splintered::b",+ "name": "b",+ "qualified_name": "lang_samples.csharp.classes.Splintered.b",+ "kind": "variable",+ "signature": "b",+ "start_line": 35,+ "end_line": 35,+ "docstring": null,+ "decorators": [],+ "visibility": "private",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "csharp",+ "parent_name": "Splintered",+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/csharp/classes.cs::Splintered::SetA",+ "name": "SetA",+ "qualified_name": "lang_samples.csharp.classes.Splintered.SetA",+ "kind": "method",+ "signature": "SetA(int v) -> void",+ "start_line": 37,+ "end_line": 40,+ "docstring": null,+ "decorators": [],+ "visibility": "public",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "csharp",+ "parent_name": "Splintered",+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": [+ "public"+ ]+ },+ {+ "id": "lang_samples/csharp/classes.cs::Splintered::GetA",+ "name": "GetA",+ "qualified_name": "lang_samples.csharp.classes.Splintered.GetA",+ "kind": "method",+ "signature": "GetA() -> int",+ "start_line": 42,+ "end_line": 45,+ "docstring": null,+ "decorators": [],+ "visibility": "public",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "csharp",+ "parent_name": "Splintered",+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": [+ "public"+ ]+ },+ {+ "id": "lang_samples/csharp/classes.cs::Splintered::SetB",+ "name": "SetB",+ "qualified_name": "lang_samples.csharp.classes.Splintered.SetB",+ "kind": "method",+ "signature": "SetB(int v) -> void",+ "start_line": 47,+ "end_line": 50,+ "docstring": null,+ "decorators": [],+ "visibility": "public",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "csharp",+ "parent_name": "Splintered",+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": [+ "public"+ ]+ },+ {+ "id": "lang_samples/csharp/classes.cs::Splintered::GetB",+ "name": "GetB",+ "qualified_name": "lang_samples.csharp.classes.Splintered.GetB",+ "kind": "method",+ "signature": "GetB() -> int",+ "start_line": 52,+ "end_line": 55,+ "docstring": null,+ "decorators": [],+ "visibility": "public",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "csharp",+ "parent_name": "Splintered",+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": [+ "public"+ ]+ },+ {+ "id": "lang_samples/csharp/classes.cs::Splintered::Loner",+ "name": "Loner",+ "qualified_name": "lang_samples.csharp.classes.Splintered.Loner",+ "kind": "method",+ "signature": "Loner() -> int",+ "start_line": 57,+ "end_line": 60,+ "docstring": null,+ "decorators": [],+ "visibility": "public",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "csharp",+ "parent_name": "Splintered",+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": [+ "public"+ ]+ }+ ],+ "imports": [],+ "exports": [],+ "export_aliases": {},+ "calls": [],+ "heritage": [],+ "docstring": null,+ "parse_errors": [],+ "content_hash": "c682dfc3d4e80d6a43c9502e14005bc59b6c44369067e2c749f9d9c5aa1cfa27",+ "type_refs": [],+ "local_refs": [],+ "registrars": [],+ "references": []+ },+ "csharp/nested.cs": {+ "file_info": {+ "path": "lang_samples/csharp/nested.cs",+ "language": "csharp",+ "size_bytes": 736,+ "is_test": false,+ "is_config": false,+ "is_api_contract": false,+ "is_entry_point": false,+ "is_manifest_entry": false,+ "is_reachability_root": false+ },+ "symbols": [+ {+ "id": "lang_samples/csharp/nested.cs::Sample",+ "name": "Sample",+ "qualified_name": "lang_samples.csharp.nested.Sample",+ "kind": "class",+ "signature": "class Sample",+ "start_line": 3,+ "end_line": 38,+ "docstring": null,+ "decorators": [],+ "visibility": "internal",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "csharp",+ "parent_name": null,+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": 0,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/csharp/nested.cs::Sample::DeeplyNested",+ "name": "DeeplyNested",+ "qualified_name": "lang_samples.csharp.nested.Sample.DeeplyNested",+ "kind": "method",+ "signature": "DeeplyNested(int x) -> int",+ "start_line": 5,+ "end_line": 21,+ "docstring": null,+ "decorators": [],+ "visibility": "private",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "csharp",+ "parent_name": "Sample",+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/csharp/nested.cs::Sample::Shallow",+ "name": "Shallow",+ "qualified_name": "lang_samples.csharp.nested.Sample.Shallow",+ "kind": "method",+ "signature": "Shallow(int x) -> int",+ "start_line": 23,+ "end_line": 26,+ "docstring": null,+ "decorators": [],+ "visibility": "private",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "csharp",+ "parent_name": "Sample",+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/csharp/nested.cs::Sample::ManyBranches",+ "name": "ManyBranches",+ "qualified_name": "lang_samples.csharp.nested.Sample.ManyBranches",+ "kind": "method",+ "signature": "ManyBranches(int x) -> int",+ "start_line": 28,+ "end_line": 37,+ "docstring": null,+ "decorators": [],+ "visibility": "private",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "csharp",+ "parent_name": "Sample",+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ }+ ],+ "imports": [],+ "exports": [],+ "export_aliases": {},+ "calls": [],+ "heritage": [],+ "docstring": null,+ "parse_errors": [],+ "content_hash": "bbb679ab71454ae077c451b23854fcf1de2e04d48543bc608bde83a20b1d63bc",+ "type_refs": [],+ "local_refs": [],+ "registrars": [],+ "references": []+ },+ "csharp/PerfIoInLoop.cs": {+ "file_info": {+ "path": "lang_samples/csharp/PerfIoInLoop.cs",+ "language": "csharp",+ "size_bytes": 2546,+ "is_test": false,+ "is_config": false,+ "is_api_contract": false,+ "is_entry_point": false,+ "is_manifest_entry": false,+ "is_reachability_root": false+ },+ "symbols": [+ {+ "id": "lang_samples/csharp/PerfIoInLoop.cs::PerfIoInLoop",+ "name": "PerfIoInLoop",+ "qualified_name": "lang_samples.csharp.PerfIoInLoop.PerfIoInLoop",+ "kind": "class",+ "signature": "class PerfIoInLoop",+ "start_line": 13,+ "end_line": 88,+ "docstring": null,+ "decorators": [],+ "visibility": "internal",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "csharp",+ "parent_name": null,+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": 0,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/csharp/PerfIoInLoop.cs::PerfIoInLoop::EfAsyncN1",+ "name": "EfAsyncN1",+ "qualified_name": "lang_samples.csharp.PerfIoInLoop.PerfIoInLoop.EfAsyncN1",+ "kind": "method",+ "signature": "EfAsyncN1(DbContext ctx, List<int> ids) -> Task",+ "start_line": 17,+ "end_line": 23,+ "docstring": null,+ "decorators": [],+ "visibility": "private",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "csharp",+ "parent_name": "PerfIoInLoop",+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": [+ "async"+ ]+ },+ {+ "id": "lang_samples/csharp/PerfIoInLoop.cs::PerfIoInLoop::HttpInLoop",+ "name": "HttpInLoop",+ "qualified_name": "lang_samples.csharp.PerfIoInLoop.PerfIoInLoop.HttpInLoop",+ "kind": "method",+ "signature": "HttpInLoop(HttpClient c, List<string> urls) -> Task",+ "start_line": 25,+ "end_line": 31,+ "docstring": null,+ "decorators": [],+ "visibility": "private",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "csharp",+ "parent_name": "PerfIoInLoop",+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": [+ "async"+ ]+ },+ {+ "id": "lang_samples/csharp/PerfIoInLoop.cs::PerfIoInLoop::SaveInLoop",+ "name": "SaveInLoop",+ "qualified_name": "lang_samples.csharp.PerfIoInLoop.PerfIoInLoop.SaveInLoop",+ "kind": "method",+ "signature": "SaveInLoop(DbContext ctx, List<int> ids) -> Task",+ "start_line": 33,+ "end_line": 39,+ "docstring": null,+ "decorators": [],+ "visibility": "private",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "csharp",+ "parent_name": "PerfIoInLoop",+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": [+ "async"+ ]+ },+ {+ "id": "lang_samples/csharp/PerfIoInLoop.cs::PerfIoInLoop::FileReadInLoop",+ "name": "FileReadInLoop",+ "qualified_name": "lang_samples.csharp.PerfIoInLoop.PerfIoInLoop.FileReadInLoop",+ "kind": "method",+ "signature": "FileReadInLoop(List<string> paths) -> void",+ "start_line": 41,+ "end_line": 47,+ "docstring": null,+ "decorators": [],+ "visibility": "private",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "csharp",+ "parent_name": "PerfIoInLoop",+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/csharp/PerfIoInLoop.cs::PerfIoInLoop::SyncLinqInLoop",+ "name": "SyncLinqInLoop",+ "qualified_name": "lang_samples.csharp.PerfIoInLoop.PerfIoInLoop.SyncLinqInLoop",+ "kind": "method",+ "signature": "SyncLinqInLoop(DbContext ctx, List<int> ids) -> void",+ "start_line": 49,+ "end_line": 55,+ "docstring": null,+ "decorators": [],+ "visibility": "private",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "csharp",+ "parent_name": "PerfIoInLoop",+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/csharp/PerfIoInLoop.cs::PerfIoInLoop::StringConcatInLoop",+ "name": "StringConcatInLoop",+ "qualified_name": "lang_samples.csharp.PerfIoInLoop.PerfIoInLoop.StringConcatInLoop",+ "kind": "method",+ "signature": "StringConcatInLoop(List<string> rows) -> string",+ "start_line": 57,+ "end_line": 65,+ "docstring": null,+ "decorators": [],+ "visibility": "private",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "csharp",+ "parent_name": "PerfIoInLoop",+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/csharp/PerfIoInLoop.cs::PerfIoInLoop::SyncOverAsync",+ "name": "SyncOverAsync",+ "qualified_name": "lang_samples.csharp.PerfIoInLoop.PerfIoInLoop.SyncOverAsync",+ "kind": "method",+ "signature": "SyncOverAsync(Task<int> task) -> Task",+ "start_line": 67,+ "end_line": 71,+ "docstring": null,+ "decorators": [],+ "visibility": "private",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "csharp",+ "parent_name": "PerfIoInLoop",+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": [+ "async"+ ]+ },+ {+ "id": "lang_samples/csharp/PerfIoInLoop.cs::PerfIoInLoop::PureCallInLoop",+ "name": "PureCallInLoop",+ "qualified_name": "lang_samples.csharp.PerfIoInLoop.PerfIoInLoop.PureCallInLoop",+ "kind": "method",+ "signature": "PureCallInLoop(List<int> items) -> void",+ "start_line": 75,+ "end_line": 82,+ "docstring": null,+ "decorators": [],+ "visibility": "private",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "csharp",+ "parent_name": "PerfIoInLoop",+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/csharp/PerfIoInLoop.cs::PerfIoInLoop::AwaitedAsyncResult",+ "name": "AwaitedAsyncResult",+ "qualified_name": "lang_samples.csharp.PerfIoInLoop.PerfIoInLoop.AwaitedAsyncResult",+ "kind": "method",+ "signature": "AwaitedAsyncResult(Task<int> task) -> Task",+ "start_line": 84,+ "end_line": 87,+ "docstring": null,+ "decorators": [],+ "visibility": "private",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "csharp",+ "parent_name": "PerfIoInLoop",+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": [+ "async"+ ]+ }+ ],+ "imports": [+ {+ "raw_statement": "using System.Collections.Generic;",+ "module_path": "System.Collections.Generic",+ "imported_names": [+ "Generic"+ ],+ "is_relative": false,+ "resolved_file": null,+ "bindings": [+ {+ "local_name": "Generic",+ "exported_name": "System.Collections.Generic",+ "source_file": null,+ "is_module_alias": false,+ "is_global": false,+ "is_static_import": false,+ "line": null,+ "column": null+ }+ ],+ "is_reexport": false,+ "is_module_declaration": false,+ "type_only": false,+ "deferred": false+ },+ {+ "raw_statement": "using System.IO;",+ "module_path": "System.IO",+ "imported_names": [+ "IO"+ ],+ "is_relative": false,+ "resolved_file": null,+ "bindings": [+ {+ "local_name": "IO",+ "exported_name": "System.IO",+ "source_file": null,+ "is_module_alias": false,+ "is_global": false,+ "is_static_import": false,+ "line": null,+ "column": null+ }+ ],+ "is_reexport": false,+ "is_module_declaration": false,+ "type_only": false,+ "deferred": false+ },+ {+ "raw_statement": "using System.Net.Http;",+ "module_path": "System.Net.Http",+ "imported_names": [+ "Http"+ ],+ "is_relative": false,+ "resolved_file": null,+ "bindings": [+ {+ "local_name": "Http",+ "exported_name": "System.Net.Http",+ "source_file": null,+ "is_module_alias": false,+ "is_global": false,+ "is_static_import": false,+ "line": null,+ "column": null+ }+ ],+ "is_reexport": false,+ "is_module_declaration": false,+ "type_only": false,+ "deferred": false+ },+ {+ "raw_statement": "using System.Threading.Tasks;",+ "module_path": "System.Threading.Tasks",+ "imported_names": [+ "Tasks"+ ],+ "is_relative": false,+ "resolved_file": null,+ "bindings": [+ {+ "local_name": "Tasks",+ "exported_name": "System.Threading.Tasks",+ "source_file": null,+ "is_module_alias": false,+ "is_global": false,+ "is_static_import": false,+ "line": null,+ "column": null+ }+ ],+ "is_reexport": false,+ "is_module_declaration": false,+ "type_only": false,+ "deferred": false+ },+ {+ "raw_statement": "using Microsoft.EntityFrameworkCore;",+ "module_path": "Microsoft.EntityFrameworkCore",+ "imported_names": [+ "EntityFrameworkCore"+ ],+ "is_relative": false,+ "resolved_file": null,+ "bindings": [+ {+ "local_name": "EntityFrameworkCore",+ "exported_name": "Microsoft.EntityFrameworkCore",+ "source_file": null,+ "is_module_alias": false,+ "is_global": false,+ "is_static_import": false,+ "line": null,+ "column": null+ }+ ],+ "is_reexport": false,+ "is_module_declaration": false,+ "type_only": false,+ "deferred": false+ }+ ],+ "exports": [],+ "export_aliases": {},+ "calls": [+ {+ "target_name": "GetAsync",+ "receiver_name": "c",+ "caller_symbol_id": "lang_samples/csharp/PerfIoInLoop.cs::PerfIoInLoop::HttpInLoop",+ "line": 29,+ "argument_count": 1,+ "receiver_call": null,+ "scope_name": null,+ "edge_type": "calls",+ "supplied_props": null,+ "bare_name_fallback": false,+ "spawned": false,+ "argument_types": null,+ "argument_names": null+ },+ {+ "target_name": "SaveChangesAsync",+ "receiver_name": "ctx",+ "caller_symbol_id": "lang_samples/csharp/PerfIoInLoop.cs::PerfIoInLoop::SaveInLoop",+ "line": 37,+ "argument_count": 0,+ "receiver_call": null,+ "scope_name": null,+ "edge_type": "calls",+ "supplied_props": null,+ "bare_name_fallback": false,+ "spawned": false,+ "argument_types": null,+ "argument_names": null+ },+ {+ "target_name": "ReadAllText",+ "receiver_name": "File",+ "caller_symbol_id": "lang_samples/csharp/PerfIoInLoop.cs::PerfIoInLoop::FileReadInLoop",+ "line": 45,+ "argument_count": 1,+ "receiver_call": null,+ "scope_name": null,+ "edge_type": "calls",+ "supplied_props": null,+ "bare_name_fallback": false,+ "spawned": false,+ "argument_types": null,+ "argument_names": null+ },+ {+ "target_name": "Wait",+ "receiver_name": "task",+ "caller_symbol_id": "lang_samples/csharp/PerfIoInLoop.cs::PerfIoInLoop::SyncOverAsync",+ "line": 70,+ "argument_count": 0,+ "receiver_call": null,+ "scope_name": null,+ "edge_type": "calls",+ "supplied_props": null,+ "bare_name_fallback": false,+ "spawned": false,+ "argument_types": null,+ "argument_names": null+ }+ ],+ "heritage": [],+ "docstring": null,+ "parse_errors": [],+ "content_hash": "cab5cdfc3cc871eb0989d7c78e3e049a2764103471b8ecf11d06cba740d156ff",+ "type_refs": [+ {+ "type_name": "DbContext",+ "line": 17,+ "origin": "method_param"+ },+ {+ "type_name": "List",+ "line": 17,+ "origin": "method_param"+ },+ {+ "type_name": "HttpClient",+ "line": 25,+ "origin": "method_param"+ },+ {+ "type_name": "List",+ "line": 25,+ "origin": "method_param"+ },+ {+ "type_name": "DbContext",+ "line": 33,+ "origin": "method_param"+ },+ {+ "type_name": "List",+ "line": 33,+ "origin": "method_param"+ },+ {+ "type_name": "List",+ "line": 41,+ "origin": "method_param"+ },+ {+ "type_name": "DbContext",+ "line": 49,+ "origin": "method_param"+ },+ {+ "type_name": "List",+ "line": 49,+ "origin": "method_param"+ },+ {+ "type_name": "List",+ "line": 57,+ "origin": "method_param"+ },+ {+ "type_name": "List",+ "line": 75,+ "origin": "method_param"+ }+ ],+ "local_refs": [],+ "registrars": [],+ "references": []+ }+}diff --git a/tests/unit/ingestion/parser/golden/dart.json b/tests/unit/ingestion/parser/golden/dart.jsonnew file mode 100644index 000000000..4c8cf562a--- /dev/null+++ b/tests/unit/ingestion/parser/golden/dart.json@@ -0,0 +1,720 @@+{+ "dart/assertions.dart": {+ "file_info": {+ "path": "lang_samples/dart/assertions.dart",+ "language": "dart",+ "size_bytes": 428,+ "is_test": false,+ "is_config": false,+ "is_api_contract": false,+ "is_entry_point": false,+ "is_manifest_entry": false,+ "is_reachability_root": false+ },+ "symbols": [+ {+ "id": "lang_samples/dart/assertions.dart::testManyAsserts",+ "name": "testManyAsserts",+ "qualified_name": "lang_samples.dart.assertions.testManyAsserts",+ "kind": "function",+ "signature": "testManyAsserts(int x) -> void",+ "start_line": 5,+ "end_line": 11,+ "docstring": null,+ "decorators": [],+ "visibility": "public",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "dart",+ "parent_name": null,+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/dart/assertions.dart::testFewAsserts",+ "name": "testFewAsserts",+ "qualified_name": "lang_samples.dart.assertions.testFewAsserts",+ "kind": "function",+ "signature": "testFewAsserts(int x) -> void",+ "start_line": 13,+ "end_line": 17,+ "docstring": null,+ "decorators": [],+ "visibility": "public",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "dart",+ "parent_name": null,+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ }+ ],+ "imports": [],+ "exports": [+ "testManyAsserts",+ "testFewAsserts"+ ],+ "export_aliases": {},+ "calls": [],+ "heritage": [],+ "docstring": null,+ "parse_errors": [],+ "content_hash": "78459fd8be799c40b2d58fff38f9b33f78285c5acaeb7a74e7819a9be32b3288",+ "type_refs": [],+ "local_refs": [],+ "registrars": [],+ "references": []+ },+ "dart/classes.dart": {+ "file_info": {+ "path": "lang_samples/dart/classes.dart",+ "language": "dart",+ "size_bytes": 698,+ "is_test": false,+ "is_config": false,+ "is_api_contract": false,+ "is_entry_point": false,+ "is_manifest_entry": false,+ "is_reachability_root": false+ },+ "symbols": [+ {+ "id": "lang_samples/dart/classes.dart::Cohesive",+ "name": "Cohesive",+ "qualified_name": "lang_samples.dart.classes.Cohesive",+ "kind": "class",+ "signature": "class Cohesive",+ "start_line": 6,+ "end_line": 23,+ "docstring": null,+ "decorators": [],+ "visibility": "public",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "dart",+ "parent_name": null,+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/dart/classes.dart::Cohesive::add",+ "name": "add",+ "qualified_name": "lang_samples.dart.classes.Cohesive.add",+ "kind": "method",+ "signature": "add(int v) -> void",+ "start_line": 10,+ "end_line": 13,+ "docstring": null,+ "decorators": [],+ "visibility": "public",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "dart",+ "parent_name": "Cohesive",+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/dart/classes.dart::Cohesive::mean",+ "name": "mean",+ "qualified_name": "lang_samples.dart.classes.Cohesive.mean",+ "kind": "method",+ "signature": "mean() -> double",+ "start_line": 15,+ "end_line": 17,+ "docstring": null,+ "decorators": [],+ "visibility": "public",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "dart",+ "parent_name": "Cohesive",+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/dart/classes.dart::Cohesive::reset",+ "name": "reset",+ "qualified_name": "lang_samples.dart.classes.Cohesive.reset",+ "kind": "method",+ "signature": "reset() -> void",+ "start_line": 19,+ "end_line": 22,+ "docstring": null,+ "decorators": [],+ "visibility": "public",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "dart",+ "parent_name": "Cohesive",+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/dart/classes.dart::Wide",+ "name": "Wide",+ "qualified_name": "lang_samples.dart.classes.Wide",+ "kind": "class",+ "signature": "class Wide",+ "start_line": 25,+ "end_line": 48,+ "docstring": null,+ "decorators": [],+ "visibility": "public",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "dart",+ "parent_name": null,+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/dart/classes.dart::Wide::one",+ "name": "one",+ "qualified_name": "lang_samples.dart.classes.Wide.one",+ "kind": "method",+ "signature": "one() -> void",+ "start_line": 29,+ "end_line": 31,+ "docstring": null,+ "decorators": [],+ "visibility": "public",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "dart",+ "parent_name": "Wide",+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/dart/classes.dart::Wide::two",+ "name": "two",+ "qualified_name": "lang_samples.dart.classes.Wide.two",+ "kind": "method",+ "signature": "two() -> void",+ "start_line": 33,+ "end_line": 35,+ "docstring": null,+ "decorators": [],+ "visibility": "public",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "dart",+ "parent_name": "Wide",+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/dart/classes.dart::Wide::three",+ "name": "three",+ "qualified_name": "lang_samples.dart.classes.Wide.three",+ "kind": "method",+ "signature": "three() -> void",+ "start_line": 37,+ "end_line": 39,+ "docstring": null,+ "decorators": [],+ "visibility": "public",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "dart",+ "parent_name": "Wide",+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/dart/classes.dart::Wide::four",+ "name": "four",+ "qualified_name": "lang_samples.dart.classes.Wide.four",+ "kind": "method",+ "signature": "four() -> void",+ "start_line": 41,+ "end_line": 43,+ "docstring": null,+ "decorators": [],+ "visibility": "public",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "dart",+ "parent_name": "Wide",+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/dart/classes.dart::Wide::loner",+ "name": "loner",+ "qualified_name": "lang_samples.dart.classes.Wide.loner",+ "kind": "method",+ "signature": "loner() -> int",+ "start_line": 45,+ "end_line": 47,+ "docstring": null,+ "decorators": [],+ "visibility": "public",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "dart",+ "parent_name": "Wide",+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ }+ ],+ "imports": [],+ "exports": [+ "Cohesive",+ "Wide"+ ],+ "export_aliases": {},+ "calls": [],+ "heritage": [],+ "docstring": null,+ "parse_errors": [],+ "content_hash": "a10087df3215c49295598965080423f8fee791a1a027b3b39ade5039ceddba06",+ "type_refs": [],+ "local_refs": [],+ "registrars": [],+ "references": []+ },+ "dart/nested.dart": {+ "file_info": {+ "path": "lang_samples/dart/nested.dart",+ "language": "dart",+ "size_bytes": 487,+ "is_test": false,+ "is_config": false,+ "is_api_contract": false,+ "is_entry_point": false,+ "is_manifest_entry": false,+ "is_reachability_root": false+ },+ "symbols": [+ {+ "id": "lang_samples/dart/nested.dart::deeplyNested",+ "name": "deeplyNested",+ "qualified_name": "lang_samples.dart.nested.deeplyNested",+ "kind": "function",+ "signature": "deeplyNested(int x) -> int",+ "start_line": 3,+ "end_line": 14,+ "docstring": null,+ "decorators": [],+ "visibility": "public",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "dart",+ "parent_name": null,+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/dart/nested.dart::shallow",+ "name": "shallow",+ "qualified_name": "lang_samples.dart.nested.shallow",+ "kind": "function",+ "signature": "shallow(int x) -> int",+ "start_line": 16,+ "end_line": 18,+ "docstring": null,+ "decorators": [],+ "visibility": "public",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "dart",+ "parent_name": null,+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/dart/nested.dart::manyBranches",+ "name": "manyBranches",+ "qualified_name": "lang_samples.dart.nested.manyBranches",+ "kind": "function",+ "signature": "manyBranches(int x) -> int",+ "start_line": 20,+ "end_line": 28,+ "docstring": null,+ "decorators": [],+ "visibility": "public",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "dart",+ "parent_name": null,+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ }+ ],+ "imports": [],+ "exports": [+ "deeplyNested",+ "shallow",+ "manyBranches"+ ],+ "export_aliases": {},+ "calls": [],+ "heritage": [],+ "docstring": null,+ "parse_errors": [],+ "content_hash": "25a01a346ba05324a4888630f0b2ab7fecb95d38e97932b32048e4b6a27fd420",+ "type_refs": [],+ "local_refs": [],+ "registrars": [],+ "references": []+ },+ "dart/perf_io_in_loop.dart": {+ "file_info": {+ "path": "lang_samples/dart/perf_io_in_loop.dart",+ "language": "dart",+ "size_bytes": 1045,+ "is_test": false,+ "is_config": false,+ "is_api_contract": false,+ "is_entry_point": false,+ "is_manifest_entry": false,+ "is_reachability_root": false+ },+ "symbols": [+ {+ "id": "lang_samples/dart/perf_io_in_loop.dart::serialFetch",+ "name": "serialFetch",+ "qualified_name": "lang_samples.dart.perf_io_in_loop.serialFetch",+ "kind": "function",+ "signature": "serialFetch(List<Uri> urls) -> Future<void>",+ "start_line": 8,+ "end_line": 12,+ "docstring": null,+ "decorators": [],+ "visibility": "public",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "dart",+ "parent_name": null,+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/dart/perf_io_in_loop.dart::readFiles",+ "name": "readFiles",+ "qualified_name": "lang_samples.dart.perf_io_in_loop.readFiles",+ "kind": "function",+ "signature": "readFiles(List<File> files) -> Future<void>",+ "start_line": 14,+ "end_line": 18,+ "docstring": null,+ "decorators": [],+ "visibility": "public",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "dart",+ "parent_name": null,+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/dart/perf_io_in_loop.dart::queryRows",+ "name": "queryRows",+ "qualified_name": "lang_samples.dart.perf_io_in_loop.queryRows",+ "kind": "function",+ "signature": "queryRows(dynamic db, List<int> ids) -> Future<void>",+ "start_line": 20,+ "end_line": 24,+ "docstring": null,+ "decorators": [],+ "visibility": "public",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "dart",+ "parent_name": null,+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/dart/perf_io_in_loop.dart::concat",+ "name": "concat",+ "qualified_name": "lang_samples.dart.perf_io_in_loop.concat",+ "kind": "function",+ "signature": "concat(List<String> parts) -> String",+ "start_line": 26,+ "end_line": 32,+ "docstring": null,+ "decorators": [],+ "visibility": "public",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "dart",+ "parent_name": null,+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/dart/perf_io_in_loop.dart::makeClients",+ "name": "makeClients",+ "qualified_name": "lang_samples.dart.perf_io_in_loop.makeClients",+ "kind": "function",+ "signature": "makeClients(List<int> xs) -> void",+ "start_line": 34,+ "end_line": 38,+ "docstring": null,+ "decorators": [],+ "visibility": "public",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "dart",+ "parent_name": null,+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/dart/perf_io_in_loop.dart::constantBound",+ "name": "constantBound",+ "qualified_name": "lang_samples.dart.perf_io_in_loop.constantBound",+ "kind": "function",+ "signature": "constantBound() -> void",+ "start_line": 40,+ "end_line": 44,+ "docstring": null,+ "decorators": [],+ "visibility": "public",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "dart",+ "parent_name": null,+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ }+ ],+ "imports": [+ {+ "raw_statement": "import 'dart:io';",+ "module_path": "dart:io",+ "imported_names": [+ "*"+ ],+ "is_relative": false,+ "resolved_file": null,+ "bindings": [],+ "is_reexport": false,+ "is_module_declaration": false,+ "type_only": false,+ "deferred": false+ },+ {+ "raw_statement": "import 'package:http/http.dart' as http;",+ "module_path": "package:http/http.dart",+ "imported_names": [+ "*"+ ],+ "is_relative": false,+ "resolved_file": null,+ "bindings": [+ {+ "local_name": "http",+ "exported_name": null,+ "source_file": null,+ "is_module_alias": true,+ "is_global": false,+ "is_static_import": false,+ "line": null,+ "column": null+ }+ ],+ "is_reexport": false,+ "is_module_declaration": false,+ "type_only": false,+ "deferred": false+ }+ ],+ "exports": [+ "serialFetch",+ "readFiles",+ "queryRows",+ "concat",+ "makeClients",+ "constantBound"+ ],+ "export_aliases": {},+ "calls": [+ {+ "target_name": "get",+ "receiver_name": "http",+ "caller_symbol_id": "lang_samples/dart/perf_io_in_loop.dart::serialFetch",+ "line": 10,+ "argument_count": 1,+ "receiver_call": null,+ "scope_name": null,+ "edge_type": "calls",+ "supplied_props": null,+ "bare_name_fallback": false,+ "spawned": false,+ "argument_types": null,+ "argument_names": null+ },+ {+ "target_name": "readAsString",+ "receiver_name": "f",+ "caller_symbol_id": "lang_samples/dart/perf_io_in_loop.dart::readFiles",+ "line": 16,+ "argument_count": 0,+ "receiver_call": null,+ "scope_name": null,+ "edge_type": "calls",+ "supplied_props": null,+ "bare_name_fallback": false,+ "spawned": false,+ "argument_types": null,+ "argument_names": null+ },+ {+ "target_name": "rawQuery",+ "receiver_name": "db",+ "caller_symbol_id": "lang_samples/dart/perf_io_in_loop.dart::queryRows",+ "line": 22,+ "argument_count": 1,+ "receiver_call": null,+ "scope_name": null,+ "edge_type": "calls",+ "supplied_props": null,+ "bare_name_fallback": false,+ "spawned": false,+ "argument_types": null,+ "argument_names": null+ },+ {+ "target_name": "HttpClient",+ "receiver_name": null,+ "caller_symbol_id": "lang_samples/dart/perf_io_in_loop.dart::makeClients",+ "line": 36,+ "argument_count": 0,+ "receiver_call": null,+ "scope_name": null,+ "edge_type": "calls",+ "supplied_props": null,+ "bare_name_fallback": false,+ "spawned": false,+ "argument_types": null,+ "argument_names": null+ },+ {+ "target_name": "get",+ "receiver_name": "http",+ "caller_symbol_id": "lang_samples/dart/perf_io_in_loop.dart::constantBound",+ "line": 42,+ "argument_count": 1,+ "receiver_call": null,+ "scope_name": null,+ "edge_type": "calls",+ "supplied_props": null,+ "bare_name_fallback": false,+ "spawned": false,+ "argument_types": null,+ "argument_names": null+ },+ {+ "target_name": "parse",+ "receiver_name": "Uri",+ "caller_symbol_id": "lang_samples/dart/perf_io_in_loop.dart::constantBound",+ "line": 42,+ "argument_count": 1,+ "receiver_call": null,+ "scope_name": null,+ "edge_type": "calls",+ "supplied_props": null,+ "bare_name_fallback": false,+ "spawned": false,+ "argument_types": null,+ "argument_names": null+ }+ ],+ "heritage": [],+ "docstring": null,+ "parse_errors": [],+ "content_hash": "1d59d3503eaee6c2957e60c52b008357d7ca6d1d6d0b6be84535b223eac5b9f5",+ "type_refs": [],+ "local_refs": [],+ "registrars": [],+ "references": []+ }+}diff --git a/tests/unit/ingestion/parser/golden/go.json b/tests/unit/ingestion/parser/golden/go.jsonnew file mode 100644index 000000000..65a1a2ccb--- /dev/null+++ b/tests/unit/ingestion/parser/golden/go.json@@ -0,0 +1,651 @@+{+ "go/conditionals.go": {+ "file_info": {+ "path": "lang_samples/go/conditionals.go",+ "language": "go",+ "size_bytes": 295,+ "is_test": false,+ "is_config": false,+ "is_api_contract": false,+ "is_entry_point": false,+ "is_manifest_entry": false,+ "is_reachability_root": false+ },+ "symbols": [+ {+ "id": "lang_samples/go/conditionals.go::ThreeOps",+ "name": "ThreeOps",+ "qualified_name": "lang_samples.go.conditionals.ThreeOps",+ "kind": "function",+ "signature": "function ThreeOps(a, b, c, d bool) -> int",+ "start_line": 3,+ "end_line": 8,+ "docstring": null,+ "decorators": [],+ "visibility": "public",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "go",+ "parent_name": null,+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/go/conditionals.go::SixOps",+ "name": "SixOps",+ "qualified_name": "lang_samples.go.conditionals.SixOps",+ "kind": "function",+ "signature": "function SixOps(a, b, c, d, e, f, g bool) -> int",+ "start_line": 10,+ "end_line": 15,+ "docstring": null,+ "decorators": [],+ "visibility": "public",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "go",+ "parent_name": null,+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/go/conditionals.go::TwoOps",+ "name": "TwoOps",+ "qualified_name": "lang_samples.go.conditionals.TwoOps",+ "kind": "function",+ "signature": "function TwoOps(a, b, c bool) -> int",+ "start_line": 17,+ "end_line": 22,+ "docstring": null,+ "decorators": [],+ "visibility": "public",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "go",+ "parent_name": null,+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ }+ ],+ "imports": [],+ "exports": [+ "ThreeOps",+ "SixOps",+ "TwoOps"+ ],+ "export_aliases": {},+ "calls": [],+ "heritage": [],+ "docstring": null,+ "parse_errors": [],+ "content_hash": "3b748dafeab770c2b7a9c5416d3e6524841d5d8881076775796834b6b8985ace",+ "type_refs": [],+ "local_refs": [],+ "registrars": [],+ "references": []+ },+ "go/nested.go": {+ "file_info": {+ "path": "lang_samples/go/nested.go",+ "language": "go",+ "size_bytes": 240,+ "is_test": false,+ "is_config": false,+ "is_api_contract": false,+ "is_entry_point": false,+ "is_manifest_entry": false,+ "is_reachability_root": false+ },+ "symbols": [+ {+ "id": "lang_samples/go/nested.go::DeeplyNested",+ "name": "DeeplyNested",+ "qualified_name": "lang_samples.go.nested.DeeplyNested",+ "kind": "function",+ "signature": "function DeeplyNested(x int) -> int",+ "start_line": 3,+ "end_line": 17,+ "docstring": null,+ "decorators": [],+ "visibility": "public",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "go",+ "parent_name": null,+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/go/nested.go::Shallow",+ "name": "Shallow",+ "qualified_name": "lang_samples.go.nested.Shallow",+ "kind": "function",+ "signature": "function Shallow(x int) -> int",+ "start_line": 19,+ "end_line": 21,+ "docstring": null,+ "decorators": [],+ "visibility": "public",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "go",+ "parent_name": null,+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ }+ ],+ "imports": [],+ "exports": [+ "DeeplyNested",+ "Shallow"+ ],+ "export_aliases": {},+ "calls": [],+ "heritage": [],+ "docstring": null,+ "parse_errors": [],+ "content_hash": "c05f68bd02c97a5d38cb52fa529c517bbd583f7f755ff7532685b6ce2640ce84",+ "type_refs": [],+ "local_refs": [],+ "registrars": [],+ "references": []+ },+ "go/perf_io_in_loop.go": {+ "file_info": {+ "path": "lang_samples/go/perf_io_in_loop.go",+ "language": "go",+ "size_bytes": 2026,+ "is_test": false,+ "is_config": false,+ "is_api_contract": false,+ "is_entry_point": false,+ "is_manifest_entry": false,+ "is_reachability_root": false+ },+ "symbols": [+ {+ "id": "lang_samples/go/perf_io_in_loop.go::dbQueryInRange",+ "name": "dbQueryInRange",+ "qualified_name": "lang_samples.go.perf_io_in_loop.dbQueryInRange",+ "kind": "function",+ "signature": "function dbQueryInRange(db *sql.DB, ids []int)",+ "start_line": 18,+ "end_line": 22,+ "docstring": "--- POSITIVES -------------------------------------------------------------",+ "decorators": [],+ "visibility": "private",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "go",+ "parent_name": null,+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/go/perf_io_in_loop.go::httpGetInRange",+ "name": "httpGetInRange",+ "qualified_name": "lang_samples.go.perf_io_in_loop.httpGetInRange",+ "kind": "function",+ "signature": "function httpGetInRange(urls []string)",+ "start_line": 24,+ "end_line": 28,+ "docstring": null,+ "decorators": [],+ "visibility": "private",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "go",+ "parent_name": null,+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/go/perf_io_in_loop.go::osOpenInRange",+ "name": "osOpenInRange",+ "qualified_name": "lang_samples.go.perf_io_in_loop.osOpenInRange",+ "kind": "function",+ "signature": "function osOpenInRange(paths []string)",+ "start_line": 30,+ "end_line": 34,+ "docstring": null,+ "decorators": [],+ "visibility": "private",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "go",+ "parent_name": null,+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/go/perf_io_in_loop.go::deferInLoop",+ "name": "deferInLoop",+ "qualified_name": "lang_samples.go.perf_io_in_loop.deferInLoop",+ "kind": "function",+ "signature": "function deferInLoop(paths []string)",+ "start_line": 36,+ "end_line": 41,+ "docstring": null,+ "decorators": [],+ "visibility": "private",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "go",+ "parent_name": null,+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/go/perf_io_in_loop.go::regexpCompileInRange",+ "name": "regexpCompileInRange",+ "qualified_name": "lang_samples.go.perf_io_in_loop.regexpCompileInRange",+ "kind": "function",+ "signature": "function regexpCompileInRange(ids []string)",+ "start_line": 43,+ "end_line": 48,+ "docstring": null,+ "decorators": [],+ "visibility": "private",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "go",+ "parent_name": null,+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/go/perf_io_in_loop.go::stringConcatInRange",+ "name": "stringConcatInRange",+ "qualified_name": "lang_samples.go.perf_io_in_loop.stringConcatInRange",+ "kind": "function",+ "signature": "function stringConcatInRange(rows []string) -> string",+ "start_line": 50,+ "end_line": 56,+ "docstring": null,+ "decorators": [],+ "visibility": "private",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "go",+ "parent_name": null,+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/go/perf_io_in_loop.go::dbQueryConstantLoop",+ "name": "dbQueryConstantLoop",+ "qualified_name": "lang_samples.go.perf_io_in_loop.dbQueryConstantLoop",+ "kind": "function",+ "signature": "function dbQueryConstantLoop(db *sql.DB)",+ "start_line": 60,+ "end_line": 64,+ "docstring": "--- NEGATIVES -------------------------------------------------------------",+ "decorators": [],+ "visibility": "private",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "go",+ "parent_name": null,+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/go/perf_io_in_loop.go::pureCallInRange",+ "name": "pureCallInRange",+ "qualified_name": "lang_samples.go.perf_io_in_loop.pureCallInRange",+ "kind": "function",+ "signature": "function pureCallInRange(items []int)",+ "start_line": 66,+ "end_line": 72,+ "docstring": null,+ "decorators": [],+ "visibility": "private",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "go",+ "parent_name": null,+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/go/perf_io_in_loop.go::queryOutsideLoop",+ "name": "queryOutsideLoop",+ "qualified_name": "lang_samples.go.perf_io_in_loop.queryOutsideLoop",+ "kind": "function",+ "signature": "function queryOutsideLoop(db *sql.DB)",+ "start_line": 74,+ "end_line": 76,+ "docstring": null,+ "decorators": [],+ "visibility": "private",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "go",+ "parent_name": null,+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ }+ ],+ "imports": [+ {+ "raw_statement": "\"database/sql\"",+ "module_path": "database/sql",+ "imported_names": [+ "sql"+ ],+ "is_relative": false,+ "resolved_file": null,+ "bindings": [+ {+ "local_name": "sql",+ "exported_name": null,+ "source_file": null,+ "is_module_alias": true,+ "is_global": false,+ "is_static_import": false,+ "line": null,+ "column": null+ }+ ],+ "is_reexport": false,+ "is_module_declaration": false,+ "type_only": false,+ "deferred": false+ },+ {+ "raw_statement": "\"net/http\"",+ "module_path": "net/http",+ "imported_names": [+ "http"+ ],+ "is_relative": false,+ "resolved_file": null,+ "bindings": [+ {+ "local_name": "http",+ "exported_name": null,+ "source_file": null,+ "is_module_alias": true,+ "is_global": false,+ "is_static_import": false,+ "line": null,+ "column": null+ }+ ],+ "is_reexport": false,+ "is_module_declaration": false,+ "type_only": false,+ "deferred": false+ },+ {+ "raw_statement": "\"os\"",+ "module_path": "os",+ "imported_names": [+ "os"+ ],+ "is_relative": false,+ "resolved_file": null,+ "bindings": [+ {+ "local_name": "os",+ "exported_name": null,+ "source_file": null,+ "is_module_alias": true,+ "is_global": false,+ "is_static_import": false,+ "line": null,+ "column": null+ }+ ],+ "is_reexport": false,+ "is_module_declaration": false,+ "type_only": false,+ "deferred": false+ },+ {+ "raw_statement": "\"regexp\"",+ "module_path": "regexp",+ "imported_names": [+ "regexp"+ ],+ "is_relative": false,+ "resolved_file": null,+ "bindings": [+ {+ "local_name": "regexp",+ "exported_name": null,+ "source_file": null,+ "is_module_alias": true,+ "is_global": false,+ "is_static_import": false,+ "line": null,+ "column": null+ }+ ],+ "is_reexport": false,+ "is_module_declaration": false,+ "type_only": false,+ "deferred": false+ }+ ],+ "exports": [],+ "export_aliases": {},+ "calls": [+ {+ "target_name": "Query",+ "receiver_name": "db",+ "caller_symbol_id": "lang_samples/go/perf_io_in_loop.go::dbQueryInRange",+ "line": 20,+ "argument_count": 2,+ "receiver_call": null,+ "scope_name": null,+ "edge_type": "calls",+ "supplied_props": null,+ "bare_name_fallback": false,+ "spawned": false,+ "argument_types": null,+ "argument_names": null+ },+ {+ "target_name": "Get",+ "receiver_name": "http",+ "caller_symbol_id": "lang_samples/go/perf_io_in_loop.go::httpGetInRange",+ "line": 26,+ "argument_count": 1,+ "receiver_call": null,+ "scope_name": null,+ "edge_type": "calls",+ "supplied_props": null,+ "bare_name_fallback": false,+ "spawned": false,+ "argument_types": null,+ "argument_names": null+ },+ {+ "target_name": "Open",+ "receiver_name": "os",+ "caller_symbol_id": "lang_samples/go/perf_io_in_loop.go::osOpenInRange",+ "line": 32,+ "argument_count": 1,+ "receiver_call": null,+ "scope_name": null,+ "edge_type": "calls",+ "supplied_props": null,+ "bare_name_fallback": false,+ "spawned": false,+ "argument_types": null,+ "argument_names": null+ },+ {+ "target_name": "Open",+ "receiver_name": "os",+ "caller_symbol_id": "lang_samples/go/perf_io_in_loop.go::deferInLoop",+ "line": 38,+ "argument_count": 1,+ "receiver_call": null,+ "scope_name": null,+ "edge_type": "calls",+ "supplied_props": null,+ "bare_name_fallback": false,+ "spawned": false,+ "argument_types": null,+ "argument_names": null+ },+ {+ "target_name": "Close",+ "receiver_name": "f",+ "caller_symbol_id": "lang_samples/go/perf_io_in_loop.go::deferInLoop",+ "line": 39,+ "argument_count": 0,+ "receiver_call": null,+ "scope_name": null,+ "edge_type": "calls",+ "supplied_props": null,+ "bare_name_fallback": false,+ "spawned": false,+ "argument_types": null,+ "argument_names": null+ },+ {+ "target_name": "MustCompile",+ "receiver_name": "regexp",+ "caller_symbol_id": "lang_samples/go/perf_io_in_loop.go::regexpCompileInRange",+ "line": 45,+ "argument_count": 1,+ "receiver_call": null,+ "scope_name": null,+ "edge_type": "calls",+ "supplied_props": null,+ "bare_name_fallback": false,+ "spawned": false,+ "argument_types": null,+ "argument_names": null+ },+ {+ "target_name": "MustCompile",+ "receiver_name": "regexp",+ "caller_symbol_id": "lang_samples/go/perf_io_in_loop.go::regexpCompileInRange",+ "line": 46,+ "argument_count": 1,+ "receiver_call": null,+ "scope_name": null,+ "edge_type": "calls",+ "supplied_props": null,+ "bare_name_fallback": false,+ "spawned": false,+ "argument_types": null,+ "argument_names": null+ },+ {+ "target_name": "Query",+ "receiver_name": "db",+ "caller_symbol_id": "lang_samples/go/perf_io_in_loop.go::dbQueryConstantLoop",+ "line": 62,+ "argument_count": 1,+ "receiver_call": null,+ "scope_name": null,+ "edge_type": "calls",+ "supplied_props": null,+ "bare_name_fallback": false,+ "spawned": false,+ "argument_types": null,+ "argument_names": null+ },+ {+ "target_name": "Query",+ "receiver_name": "db",+ "caller_symbol_id": "lang_samples/go/perf_io_in_loop.go::queryOutsideLoop",+ "line": 75,+ "argument_count": 1,+ "receiver_call": null,+ "scope_name": null,+ "edge_type": "calls",+ "supplied_props": null,+ "bare_name_fallback": false,+ "spawned": false,+ "argument_types": null,+ "argument_names": null+ }+ ],+ "heritage": [],+ "docstring": "Fixture for the Go performance dialect (io_in_loop / string_concat /\ndefer_in_loop / regex_compile_in_loop). Every POSITIVE is a genuine\nper-iteration cost; every NEGATIVE is a shape the dialect must NOT flag.\nHand-counted expectations live in test_perf_go.py. NOTE: this file imports\ndatabase/sql, so file-level db evidence is present; ambiguous-verb gating\n(GORM Find without a db import) is tested inline instead.",+ "parse_errors": [],+ "content_hash": "b2fb4d6260115049a1aa258031256af8a80ea2989ef79c0c21d24ee84b372d8d",+ "type_refs": [+ {+ "type_name": "DB",+ "line": 18,+ "origin": "param_type"+ },+ {+ "type_name": "DB",+ "line": 60,+ "origin": "param_type"+ },+ {+ "type_name": "DB",+ "line": 74,+ "origin": "param_type"+ }+ ],+ "local_refs": [],+ "registrars": [],+ "references": []+ }+}diff --git a/tests/unit/ingestion/parser/golden/java.json b/tests/unit/ingestion/parser/golden/java.jsonnew file mode 100644index 000000000..5408d42f9--- /dev/null+++ b/tests/unit/ingestion/parser/golden/java.json@@ -0,0 +1,750 @@+{+ "java/Conditionals.java": {+ "file_info": {+ "path": "lang_samples/java/Conditionals.java",+ "language": "java",+ "size_bytes": 537,+ "is_test": false,+ "is_config": false,+ "is_api_contract": false,+ "is_entry_point": false,+ "is_manifest_entry": false,+ "is_reachability_root": false+ },+ "symbols": [+ {+ "id": "lang_samples/java/Conditionals.java::Conditionals",+ "name": "Conditionals",+ "qualified_name": "lang_samples.java.Conditionals.Conditionals",+ "kind": "class",+ "signature": "class Conditionals",+ "start_line": 1,+ "end_line": 22,+ "docstring": null,+ "decorators": [],+ "visibility": "public",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "java",+ "parent_name": null,+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/java/Conditionals.java::Conditionals::threeOps",+ "name": "threeOps",+ "qualified_name": "lang_samples.java.Conditionals.Conditionals.threeOps",+ "kind": "method",+ "signature": "threeOps(boolean a, boolean b, boolean c, boolean d) -> int",+ "start_line": 2,+ "end_line": 7,+ "docstring": null,+ "decorators": [],+ "visibility": "public",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "java",+ "parent_name": "Conditionals",+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/java/Conditionals.java::Conditionals::sixOps",+ "name": "sixOps",+ "qualified_name": "lang_samples.java.Conditionals.Conditionals.sixOps",+ "kind": "method",+ "signature": "sixOps(boolean a, boolean b, boolean c, boolean d, boolean e, boolean f, boolean g) -> int",+ "start_line": 9,+ "end_line": 14,+ "docstring": null,+ "decorators": [],+ "visibility": "public",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "java",+ "parent_name": "Conditionals",+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/java/Conditionals.java::Conditionals::twoOps",+ "name": "twoOps",+ "qualified_name": "lang_samples.java.Conditionals.Conditionals.twoOps",+ "kind": "method",+ "signature": "twoOps(boolean a, boolean b, boolean c) -> int",+ "start_line": 16,+ "end_line": 21,+ "docstring": null,+ "decorators": [],+ "visibility": "public",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "java",+ "parent_name": "Conditionals",+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ }+ ],+ "imports": [],+ "exports": [+ "Conditionals"+ ],+ "export_aliases": {},+ "calls": [],+ "heritage": [],+ "docstring": null,+ "parse_errors": [],+ "content_hash": "21989f12c405009c50be95e88413ebabdd3232a3f34406c94ebb58150ddadb7c",+ "type_refs": [],+ "local_refs": [],+ "registrars": [],+ "references": []+ },+ "java/Nested.java": {+ "file_info": {+ "path": "lang_samples/java/Nested.java",+ "language": "java",+ "size_bytes": 569,+ "is_test": false,+ "is_config": false,+ "is_api_contract": false,+ "is_entry_point": false,+ "is_manifest_entry": false,+ "is_reachability_root": false+ },+ "symbols": [+ {+ "id": "lang_samples/java/Nested.java::Nested",+ "name": "Nested",+ "qualified_name": "lang_samples.java.Nested.Nested",+ "kind": "class",+ "signature": "class Nested",+ "start_line": 1,+ "end_line": 24,+ "docstring": null,+ "decorators": [],+ "visibility": "internal",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "java",+ "parent_name": null,+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/java/Nested.java::Nested::deeplyNested",+ "name": "deeplyNested",+ "qualified_name": "lang_samples.java.Nested.Nested.deeplyNested",+ "kind": "method",+ "signature": "deeplyNested(int x) -> int",+ "start_line": 2,+ "end_line": 19,+ "docstring": null,+ "decorators": [],+ "visibility": "internal",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "java",+ "parent_name": "Nested",+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/java/Nested.java::Nested::shallow",+ "name": "shallow",+ "qualified_name": "lang_samples.java.Nested.Nested.shallow",+ "kind": "method",+ "signature": "shallow(int x) -> int",+ "start_line": 21,+ "end_line": 23,+ "docstring": null,+ "decorators": [],+ "visibility": "internal",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "java",+ "parent_name": "Nested",+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ }+ ],+ "imports": [],+ "exports": [],+ "export_aliases": {},+ "calls": [],+ "heritage": [],+ "docstring": null,+ "parse_errors": [],+ "content_hash": "1e49a56330aee24458ed326e8a9838d4e193f42584202407ffc9907b7bb4c419",+ "type_refs": [],+ "local_refs": [],+ "registrars": [],+ "references": []+ },+ "java/PerfIoInLoop.java": {+ "file_info": {+ "path": "lang_samples/java/PerfIoInLoop.java",+ "language": "java",+ "size_bytes": 2497,+ "is_test": false,+ "is_config": false,+ "is_api_contract": false,+ "is_entry_point": false,+ "is_manifest_entry": false,+ "is_reachability_root": false+ },+ "symbols": [+ {+ "id": "lang_samples/java/PerfIoInLoop.java::PerfIoInLoop",+ "name": "PerfIoInLoop",+ "qualified_name": "lang_samples.java.PerfIoInLoop.PerfIoInLoop",+ "kind": "class",+ "signature": "class PerfIoInLoop",+ "start_line": 12,+ "end_line": 73,+ "docstring": null,+ "decorators": [],+ "visibility": "internal",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "java",+ "parent_name": null,+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/java/PerfIoInLoop.java::PerfIoInLoop::springDataN1",+ "name": "springDataN1",+ "qualified_name": "lang_samples.java.PerfIoInLoop.PerfIoInLoop.springDataN1",+ "kind": "method",+ "signature": "springDataN1(List<String> ids) -> void",+ "start_line": 16,+ "end_line": 20,+ "docstring": null,+ "decorators": [],+ "visibility": "internal",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "java",+ "parent_name": "PerfIoInLoop",+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/java/PerfIoInLoop.java::PerfIoInLoop::jdbcInLoop",+ "name": "jdbcInLoop",+ "qualified_name": "lang_samples.java.PerfIoInLoop.PerfIoInLoop.jdbcInLoop",+ "kind": "method",+ "signature": "jdbcInLoop(List<String> ids, java.sql.Statement st) -> void",+ "start_line": 22,+ "end_line": 26,+ "docstring": null,+ "decorators": [],+ "visibility": "internal",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "java",+ "parent_name": "PerfIoInLoop",+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/java/PerfIoInLoop.java::PerfIoInLoop::filesInLoop",+ "name": "filesInLoop",+ "qualified_name": "lang_samples.java.PerfIoInLoop.PerfIoInLoop.filesInLoop",+ "kind": "method",+ "signature": "filesInLoop(List<String> paths) -> void",+ "start_line": 28,+ "end_line": 32,+ "docstring": null,+ "decorators": [],+ "visibility": "internal",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "java",+ "parent_name": "PerfIoInLoop",+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/java/PerfIoInLoop.java::PerfIoInLoop::newStreamInLoop",+ "name": "newStreamInLoop",+ "qualified_name": "lang_samples.java.PerfIoInLoop.PerfIoInLoop.newStreamInLoop",+ "kind": "method",+ "signature": "newStreamInLoop(List<String> paths) -> void",+ "start_line": 34,+ "end_line": 38,+ "docstring": null,+ "decorators": [],+ "visibility": "internal",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "java",+ "parent_name": "PerfIoInLoop",+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/java/PerfIoInLoop.java::PerfIoInLoop::regexCompileInLoop",+ "name": "regexCompileInLoop",+ "qualified_name": "lang_samples.java.PerfIoInLoop.PerfIoInLoop.regexCompileInLoop",+ "kind": "method",+ "signature": "regexCompileInLoop(List<String> ids) -> void",+ "start_line": 40,+ "end_line": 44,+ "docstring": null,+ "decorators": [],+ "visibility": "internal",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "java",+ "parent_name": "PerfIoInLoop",+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/java/PerfIoInLoop.java::PerfIoInLoop::stringConcatInLoop",+ "name": "stringConcatInLoop",+ "qualified_name": "lang_samples.java.PerfIoInLoop.PerfIoInLoop.stringConcatInLoop",+ "kind": "method",+ "signature": "stringConcatInLoop(List<String> rows) -> String",+ "start_line": 46,+ "end_line": 52,+ "docstring": null,+ "decorators": [],+ "visibility": "internal",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "java",+ "parent_name": "PerfIoInLoop",+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/java/PerfIoInLoop.java::PerfIoInLoop::pureCallInLoop",+ "name": "pureCallInLoop",+ "qualified_name": "lang_samples.java.PerfIoInLoop.PerfIoInLoop.pureCallInLoop",+ "kind": "method",+ "signature": "pureCallInLoop(List<String> items) -> void",+ "start_line": 56,+ "end_line": 61,+ "docstring": null,+ "decorators": [],+ "visibility": "internal",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "java",+ "parent_name": "PerfIoInLoop",+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/java/PerfIoInLoop.java::PerfIoInLoop::sinkOutsideLoop",+ "name": "sinkOutsideLoop",+ "qualified_name": "lang_samples.java.PerfIoInLoop.PerfIoInLoop.sinkOutsideLoop",+ "kind": "method",+ "signature": "sinkOutsideLoop(java.sql.Statement st) -> void",+ "start_line": 63,+ "end_line": 65,+ "docstring": null,+ "decorators": [],+ "visibility": "internal",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "java",+ "parent_name": "PerfIoInLoop",+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/java/PerfIoInLoop.java::PerfIoInLoop::regexCompileOnce",+ "name": "regexCompileOnce",+ "qualified_name": "lang_samples.java.PerfIoInLoop.PerfIoInLoop.regexCompileOnce",+ "kind": "method",+ "signature": "regexCompileOnce(List<String> ids) -> void",+ "start_line": 67,+ "end_line": 72,+ "docstring": null,+ "decorators": [],+ "visibility": "internal",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "java",+ "parent_name": "PerfIoInLoop",+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ }+ ],+ "imports": [+ {+ "raw_statement": "import java.nio.file.Files;",+ "module_path": "java.nio.file.Files",+ "imported_names": [+ "Files"+ ],+ "is_relative": false,+ "resolved_file": null,+ "bindings": [+ {+ "local_name": "Files",+ "exported_name": "Files",+ "source_file": null,+ "is_module_alias": false,+ "is_global": false,+ "is_static_import": false,+ "line": null,+ "column": null+ }+ ],+ "is_reexport": false,+ "is_module_declaration": false,+ "type_only": false,+ "deferred": false+ },+ {+ "raw_statement": "import java.util.List;",+ "module_path": "java.util.List",+ "imported_names": [+ "List"+ ],+ "is_relative": false,+ "resolved_file": null,+ "bindings": [+ {+ "local_name": "List",+ "exported_name": "List",+ "source_file": null,+ "is_module_alias": false,+ "is_global": false,+ "is_static_import": false,+ "line": null,+ "column": null+ }+ ],+ "is_reexport": false,+ "is_module_declaration": false,+ "type_only": false,+ "deferred": false+ },+ {+ "raw_statement": "import java.util.regex.Pattern;",+ "module_path": "java.util.regex.Pattern",+ "imported_names": [+ "Pattern"+ ],+ "is_relative": false,+ "resolved_file": null,+ "bindings": [+ {+ "local_name": "Pattern",+ "exported_name": "Pattern",+ "source_file": null,+ "is_module_alias": false,+ "is_global": false,+ "is_static_import": false,+ "line": null,+ "column": null+ }+ ],+ "is_reexport": false,+ "is_module_declaration": false,+ "type_only": false,+ "deferred": false+ },+ {+ "raw_statement": "import org.springframework.data.jpa.repository.JpaRepository;",+ "module_path": "org.springframework.data.jpa.repository.JpaRepository",+ "imported_names": [+ "JpaRepository"+ ],+ "is_relative": false,+ "resolved_file": null,+ "bindings": [+ {+ "local_name": "JpaRepository",+ "exported_name": "JpaRepository",+ "source_file": null,+ "is_module_alias": false,+ "is_global": false,+ "is_static_import": false,+ "line": null,+ "column": null+ }+ ],+ "is_reexport": false,+ "is_module_declaration": false,+ "type_only": false,+ "deferred": false+ }+ ],+ "exports": [],+ "export_aliases": {},+ "calls": [+ {+ "target_name": "findByName",+ "receiver_name": "repo",+ "caller_symbol_id": "lang_samples/java/PerfIoInLoop.java::PerfIoInLoop::springDataN1",+ "line": 18,+ "argument_count": 1,+ "receiver_call": null,+ "scope_name": null,+ "edge_type": "calls",+ "supplied_props": null,+ "bare_name_fallback": true,+ "spawned": false,+ "argument_types": null,+ "argument_names": [+ "id"+ ]+ },+ {+ "target_name": "executeQuery",+ "receiver_name": "st",+ "caller_symbol_id": "lang_samples/java/PerfIoInLoop.java::PerfIoInLoop::jdbcInLoop",+ "line": 24,+ "argument_count": 1,+ "receiver_call": null,+ "scope_name": null,+ "edge_type": "calls",+ "supplied_props": null,+ "bare_name_fallback": true,+ "spawned": false,+ "argument_types": null,+ "argument_names": [+ "id"+ ]+ },+ {+ "target_name": "readString",+ "receiver_name": "Files",+ "caller_symbol_id": "lang_samples/java/PerfIoInLoop.java::PerfIoInLoop::filesInLoop",+ "line": 30,+ "argument_count": 1,+ "receiver_call": null,+ "scope_name": null,+ "edge_type": "calls",+ "supplied_props": null,+ "bare_name_fallback": true,+ "spawned": false,+ "argument_types": null,+ "argument_names": null+ },+ {+ "target_name": "of",+ "receiver_name": null,+ "caller_symbol_id": "lang_samples/java/PerfIoInLoop.java::PerfIoInLoop::filesInLoop",+ "line": 30,+ "argument_count": 1,+ "receiver_call": null,+ "scope_name": null,+ "edge_type": "calls",+ "supplied_props": null,+ "bare_name_fallback": false,+ "spawned": false,+ "argument_types": null,+ "argument_names": [+ "p"+ ]+ },+ {+ "target_name": "compile",+ "receiver_name": "Pattern",+ "caller_symbol_id": "lang_samples/java/PerfIoInLoop.java::PerfIoInLoop::regexCompileInLoop",+ "line": 42,+ "argument_count": 1,+ "receiver_call": null,+ "scope_name": null,+ "edge_type": "calls",+ "supplied_props": null,+ "bare_name_fallback": true,+ "spawned": false,+ "argument_types": null,+ "argument_names": [+ "id"+ ]+ },+ {+ "target_name": "length",+ "receiver_name": "x",+ "caller_symbol_id": "lang_samples/java/PerfIoInLoop.java::PerfIoInLoop::pureCallInLoop",+ "line": 59,+ "argument_count": 0,+ "receiver_call": null,+ "scope_name": null,+ "edge_type": "calls",+ "supplied_props": null,+ "bare_name_fallback": true,+ "spawned": false,+ "argument_types": null,+ "argument_names": null+ },+ {+ "target_name": "executeQuery",+ "receiver_name": "st",+ "caller_symbol_id": "lang_samples/java/PerfIoInLoop.java::PerfIoInLoop::sinkOutsideLoop",+ "line": 64,+ "argument_count": 1,+ "receiver_call": null,+ "scope_name": null,+ "edge_type": "calls",+ "supplied_props": null,+ "bare_name_fallback": true,+ "spawned": false,+ "argument_types": [+ "String"+ ],+ "argument_names": null+ },+ {+ "target_name": "compile",+ "receiver_name": "Pattern",+ "caller_symbol_id": "lang_samples/java/PerfIoInLoop.java::PerfIoInLoop::regexCompileOnce",+ "line": 68,+ "argument_count": 1,+ "receiver_call": null,+ "scope_name": null,+ "edge_type": "calls",+ "supplied_props": null,+ "bare_name_fallback": true,+ "spawned": false,+ "argument_types": [+ "String"+ ],+ "argument_names": null+ },+ {+ "target_name": "matcher",+ "receiver_name": "p",+ "caller_symbol_id": "lang_samples/java/PerfIoInLoop.java::PerfIoInLoop::regexCompileOnce",+ "line": 70,+ "argument_count": 1,+ "receiver_call": null,+ "scope_name": null,+ "edge_type": "calls",+ "supplied_props": null,+ "bare_name_fallback": true,+ "spawned": false,+ "argument_types": null,+ "argument_names": [+ "id"+ ]+ },+ {+ "target_name": "matches",+ "receiver_name": null,+ "caller_symbol_id": "lang_samples/java/PerfIoInLoop.java::PerfIoInLoop::regexCompileOnce",+ "line": 70,+ "argument_count": 0,+ "receiver_call": {+ "target_name": "matcher",+ "receiver_name": "p",+ "argument_count": 1+ },+ "scope_name": null,+ "edge_type": "calls",+ "supplied_props": null,+ "bare_name_fallback": false,+ "spawned": false,+ "argument_types": null,+ "argument_names": null+ }+ ],+ "heritage": [],+ "docstring": null,+ "parse_errors": [],+ "content_hash": "7c3f23e1f9c6afef003cff602050859386af7353d9e6d364140ac7c1eb4db44c",+ "type_refs": [+ {+ "type_name": "Statement",+ "line": 22,+ "origin": "param_type"+ },+ {+ "type_name": "FileInputStream",+ "line": 36,+ "origin": "composite_literal"+ },+ {+ "type_name": "Statement",+ "line": 63,+ "origin": "param_type"+ },+ {+ "type_name": "Pattern",+ "line": 68,+ "origin": "field_type"+ }+ ],+ "local_refs": [],+ "registrars": [],+ "references": []+ }+}diff --git a/tests/unit/ingestion/parser/golden/javascript.json b/tests/unit/ingestion/parser/golden/javascript.jsonnew file mode 100644index 000000000..03a223f6f--- /dev/null+++ b/tests/unit/ingestion/parser/golden/javascript.json@@ -0,0 +1,479 @@+{+ "javascript/nested.js": {+ "file_info": {+ "path": "lang_samples/javascript/nested.js",+ "language": "javascript",+ "size_bytes": 329,+ "is_test": false,+ "is_config": false,+ "is_api_contract": false,+ "is_entry_point": false,+ "is_manifest_entry": false,+ "is_reachability_root": false+ },+ "symbols": [+ {+ "id": "lang_samples/javascript/nested.js::deeplyNested",+ "name": "deeplyNested",+ "qualified_name": "lang_samples.javascript.nested.deeplyNested",+ "kind": "function",+ "signature": "function deeplyNested(x)",+ "start_line": 1,+ "end_line": 17,+ "docstring": null,+ "decorators": [],+ "visibility": "private",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "javascript",+ "parent_name": null,+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/javascript/nested.js::shallow",+ "name": "shallow",+ "qualified_name": "lang_samples.javascript.nested.shallow",+ "kind": "function",+ "signature": "function shallow(x)",+ "start_line": 19,+ "end_line": 21,+ "docstring": null,+ "decorators": [],+ "visibility": "private",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "javascript",+ "parent_name": null,+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ }+ ],+ "imports": [],+ "exports": [],+ "export_aliases": {},+ "calls": [],+ "heritage": [],+ "docstring": null,+ "parse_errors": [],+ "content_hash": "ff81b31f1543f66233b59100860f79944d1df2d6afdb7ef98fb46da289e86094",+ "type_refs": [],+ "local_refs": [],+ "registrars": [],+ "references": []+ },+ "javascript/route.js": {+ "file_info": {+ "path": "lang_samples/javascript/route.js",+ "language": "javascript",+ "size_bytes": 687,+ "is_test": false,+ "is_config": false,+ "is_api_contract": false,+ "is_entry_point": false,+ "is_manifest_entry": false,+ "is_reachability_root": false+ },+ "symbols": [+ {+ "id": "lang_samples/javascript/route.js::router",+ "name": "router",+ "qualified_name": "lang_samples.javascript.route.router",+ "kind": "variable",+ "signature": "router = express.Router()",+ "start_line": 2,+ "end_line": 2,+ "docstring": null,+ "decorators": [],+ "visibility": "private",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "javascript",+ "parent_name": null,+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/javascript/route.js::logRequest",+ "name": "logRequest",+ "qualified_name": "lang_samples.javascript.route.logRequest",+ "kind": "function",+ "signature": "function logRequest(req, res, next)",+ "start_line": 22,+ "end_line": 25,+ "docstring": null,+ "decorators": [],+ "visibility": "private",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "javascript",+ "parent_name": null,+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/javascript/route.js::validateRequest",+ "name": "validateRequest",+ "qualified_name": "lang_samples.javascript.route.validateRequest",+ "kind": "function",+ "signature": "function validateRequest(req, res, next)",+ "start_line": 27,+ "end_line": 32,+ "docstring": null,+ "decorators": [],+ "visibility": "private",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "javascript",+ "parent_name": null,+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ }+ ],+ "imports": [+ {+ "raw_statement": "express = require(\"express\")",+ "module_path": "express",+ "imported_names": [+ "express"+ ],+ "is_relative": false,+ "resolved_file": null,+ "bindings": [+ {+ "local_name": "express",+ "exported_name": null,+ "source_file": null,+ "is_module_alias": true,+ "is_global": false,+ "is_static_import": false,+ "line": 1,+ "column": 6+ }+ ],+ "is_reexport": false,+ "is_module_declaration": false,+ "type_only": false,+ "deferred": false+ }+ ],+ "exports": [],+ "export_aliases": {},+ "calls": [+ {+ "target_name": "Router",+ "receiver_name": "express",+ "caller_symbol_id": "lang_samples/javascript/route.js::router",+ "line": 2,+ "argument_count": 0,+ "receiver_call": null,+ "scope_name": null,+ "edge_type": "calls",+ "supplied_props": null,+ "bare_name_fallback": false,+ "spawned": false,+ "argument_types": null,+ "argument_names": null+ },+ {+ "target_name": "post",+ "receiver_name": "router",+ "caller_symbol_id": null,+ "line": 5,+ "argument_count": 4,+ "receiver_call": null,+ "scope_name": null,+ "edge_type": "calls",+ "supplied_props": null,+ "bare_name_fallback": false,+ "spawned": false,+ "argument_types": null,+ "argument_names": null+ },+ {+ "target_name": "status",+ "receiver_name": "res",+ "caller_symbol_id": null,+ "line": 11,+ "argument_count": 1,+ "receiver_call": null,+ "scope_name": null,+ "edge_type": "calls",+ "supplied_props": null,+ "bare_name_fallback": false,+ "spawned": false,+ "argument_types": null,+ "argument_names": null+ },+ {+ "target_name": "json",+ "receiver_name": null,+ "caller_symbol_id": null,+ "line": 11,+ "argument_count": 1,+ "receiver_call": null,+ "scope_name": null,+ "edge_type": "calls",+ "supplied_props": null,+ "bare_name_fallback": false,+ "spawned": false,+ "argument_types": null,+ "argument_names": null+ },+ {+ "target_name": "doWork",+ "receiver_name": null,+ "caller_symbol_id": null,+ "line": 13,+ "argument_count": 1,+ "receiver_call": null,+ "scope_name": null,+ "edge_type": "calls",+ "supplied_props": null,+ "bare_name_fallback": false,+ "spawned": false,+ "argument_types": null,+ "argument_names": null+ },+ {+ "target_name": "json",+ "receiver_name": "res",+ "caller_symbol_id": null,+ "line": 15,+ "argument_count": 1,+ "receiver_call": null,+ "scope_name": null,+ "edge_type": "calls",+ "supplied_props": null,+ "bare_name_fallback": false,+ "spawned": false,+ "argument_types": null,+ "argument_names": null+ },+ {+ "target_name": "status",+ "receiver_name": "res",+ "caller_symbol_id": null,+ "line": 17,+ "argument_count": 1,+ "receiver_call": null,+ "scope_name": null,+ "edge_type": "calls",+ "supplied_props": null,+ "bare_name_fallback": false,+ "spawned": false,+ "argument_types": null,+ "argument_names": null+ },+ {+ "target_name": "json",+ "receiver_name": null,+ "caller_symbol_id": null,+ "line": 17,+ "argument_count": 1,+ "receiver_call": null,+ "scope_name": null,+ "edge_type": "calls",+ "supplied_props": null,+ "bare_name_fallback": false,+ "spawned": false,+ "argument_types": null,+ "argument_names": null+ },+ {+ "target_name": "log",+ "receiver_name": "console",+ "caller_symbol_id": "lang_samples/javascript/route.js::logRequest",+ "line": 23,+ "argument_count": 2,+ "receiver_call": null,+ "scope_name": null,+ "edge_type": "calls",+ "supplied_props": null,+ "bare_name_fallback": false,+ "spawned": false,+ "argument_types": null,+ "argument_names": null+ },+ {+ "target_name": "next",+ "receiver_name": null,+ "caller_symbol_id": "lang_samples/javascript/route.js::logRequest",+ "line": 24,+ "argument_count": 0,+ "receiver_call": null,+ "scope_name": null,+ "edge_type": "calls",+ "supplied_props": null,+ "bare_name_fallback": false,+ "spawned": false,+ "argument_types": null,+ "argument_names": null+ },+ {+ "target_name": "status",+ "receiver_name": "res",+ "caller_symbol_id": "lang_samples/javascript/route.js::validateRequest",+ "line": 29,+ "argument_count": 1,+ "receiver_call": null,+ "scope_name": null,+ "edge_type": "calls",+ "supplied_props": null,+ "bare_name_fallback": false,+ "spawned": false,+ "argument_types": null,+ "argument_names": null+ },+ {+ "target_name": "json",+ "receiver_name": null,+ "caller_symbol_id": "lang_samples/javascript/route.js::validateRequest",+ "line": 29,+ "argument_count": 1,+ "receiver_call": null,+ "scope_name": null,+ "edge_type": "calls",+ "supplied_props": null,+ "bare_name_fallback": false,+ "spawned": false,+ "argument_types": null,+ "argument_names": null+ },+ {+ "target_name": "next",+ "receiver_name": null,+ "caller_symbol_id": "lang_samples/javascript/route.js::validateRequest",+ "line": 31,+ "argument_count": 0,+ "receiver_call": null,+ "scope_name": null,+ "edge_type": "calls",+ "supplied_props": null,+ "bare_name_fallback": false,+ "spawned": false,+ "argument_types": null,+ "argument_names": null+ }+ ],+ "heritage": [],+ "docstring": null,+ "parse_errors": [],+ "content_hash": "7d8866e84333a7fcb45d5da48ecc033e587c41522c02a38ccd1a0f857c9b17b5",+ "type_refs": [],+ "local_refs": [],+ "registrars": [],+ "references": [+ {+ "target_name": "logRequest",+ "receiver_name": null,+ "caller_symbol_id": null,+ "line": 6,+ "argument_count": null,+ "receiver_call": null,+ "scope_name": null,+ "edge_type": "calls",+ "supplied_props": null,+ "bare_name_fallback": false,+ "spawned": false,+ "argument_types": null,+ "argument_names": null+ },+ {+ "target_name": "validateRequest",+ "receiver_name": null,+ "caller_symbol_id": null,+ "line": 7,+ "argument_count": null,+ "receiver_call": null,+ "scope_name": null,+ "edge_type": "calls",+ "supplied_props": null,+ "bare_name_fallback": false,+ "spawned": false,+ "argument_types": null,+ "argument_names": null+ },+ {+ "target_name": "data",+ "receiver_name": "result",+ "caller_symbol_id": null,+ "line": 15,+ "argument_count": null,+ "receiver_call": null,+ "scope_name": null,+ "edge_type": "calls",+ "supplied_props": null,+ "bare_name_fallback": false,+ "spawned": false,+ "argument_types": null,+ "argument_names": null+ },+ {+ "target_name": "message",+ "receiver_name": "result",+ "caller_symbol_id": null,+ "line": 17,+ "argument_count": null,+ "receiver_call": null,+ "scope_name": null,+ "edge_type": "calls",+ "supplied_props": null,+ "bare_name_fallback": false,+ "spawned": false,+ "argument_types": null,+ "argument_names": null+ },+ {+ "target_name": "method",+ "receiver_name": "req",+ "caller_symbol_id": "lang_samples/javascript/route.js::logRequest",+ "line": 23,+ "argument_count": null,+ "receiver_call": null,+ "scope_name": null,+ "edge_type": "calls",+ "supplied_props": null,+ "bare_name_fallback": false,+ "spawned": false,+ "argument_types": null,+ "argument_names": null+ },+ {+ "target_name": "path",+ "receiver_name": "req",+ "caller_symbol_id": "lang_samples/javascript/route.js::logRequest",+ "line": 23,+ "argument_count": null,+ "receiver_call": null,+ "scope_name": null,+ "edge_type": "calls",+ "supplied_props": null,+ "bare_name_fallback": false,+ "spawned": false,+ "argument_types": null,+ "argument_names": null+ }+ ]+ }+}diff --git a/tests/unit/ingestion/parser/golden/kotlin.json b/tests/unit/ingestion/parser/golden/kotlin.jsonnew file mode 100644index 000000000..49cc2a483--- /dev/null+++ b/tests/unit/ingestion/parser/golden/kotlin.json@@ -0,0 +1,804 @@+{+ "kotlin/assertions.kt": {+ "file_info": {+ "path": "lang_samples/kotlin/assertions.kt",+ "language": "kotlin",+ "size_bytes": 545,+ "is_test": false,+ "is_config": false,+ "is_api_contract": false,+ "is_entry_point": false,+ "is_manifest_entry": false,+ "is_reachability_root": false+ },+ "symbols": [+ {+ "id": "lang_samples/kotlin/assertions.kt::testManyAsserts",+ "name": "testManyAsserts",+ "qualified_name": "lang_samples.kotlin.assertions.testManyAsserts",+ "kind": "function",+ "signature": "function testManyAsserts()",+ "start_line": 3,+ "end_line": 20,+ "docstring": null,+ "decorators": [],+ "visibility": "public",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "kotlin",+ "parent_name": null,+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/kotlin/assertions.kt::testFewAsserts",+ "name": "testFewAsserts",+ "qualified_name": "lang_samples.kotlin.assertions.testFewAsserts",+ "kind": "function",+ "signature": "function testFewAsserts()",+ "start_line": 22,+ "end_line": 26,+ "docstring": null,+ "decorators": [],+ "visibility": "public",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "kotlin",+ "parent_name": null,+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ }+ ],+ "imports": [],+ "exports": [+ "testManyAsserts",+ "testFewAsserts"+ ],+ "export_aliases": {},+ "calls": [+ {+ "target_name": "assertEquals",+ "receiver_name": null,+ "caller_symbol_id": "lang_samples/kotlin/assertions.kt::testManyAsserts",+ "line": 4,+ "argument_count": 2,+ "receiver_call": null,+ "scope_name": null,+ "edge_type": "calls",+ "supplied_props": null,+ "bare_name_fallback": false,+ "spawned": false,+ "argument_types": null,+ "argument_names": null+ },+ {+ "target_name": "assertEquals",+ "receiver_name": null,+ "caller_symbol_id": "lang_samples/kotlin/assertions.kt::testManyAsserts",+ "line": 5,+ "argument_count": 2,+ "receiver_call": null,+ "scope_name": null,+ "edge_type": "calls",+ "supplied_props": null,+ "bare_name_fallback": false,+ "spawned": false,+ "argument_types": null,+ "argument_names": null+ },+ {+ "target_name": "assertEquals",+ "receiver_name": null,+ "caller_symbol_id": "lang_samples/kotlin/assertions.kt::testManyAsserts",+ "line": 6,+ "argument_count": 2,+ "receiver_call": null,+ "scope_name": null,+ "edge_type": "calls",+ "supplied_props": null,+ "bare_name_fallback": false,+ "spawned": false,+ "argument_types": null,+ "argument_names": null+ },+ {+ "target_name": "assertEquals",+ "receiver_name": null,+ "caller_symbol_id": "lang_samples/kotlin/assertions.kt::testManyAsserts",+ "line": 7,+ "argument_count": 2,+ "receiver_call": null,+ "scope_name": null,+ "edge_type": "calls",+ "supplied_props": null,+ "bare_name_fallback": false,+ "spawned": false,+ "argument_types": null,+ "argument_names": null+ },+ {+ "target_name": "assertEquals",+ "receiver_name": null,+ "caller_symbol_id": "lang_samples/kotlin/assertions.kt::testManyAsserts",+ "line": 8,+ "argument_count": 2,+ "receiver_call": null,+ "scope_name": null,+ "edge_type": "calls",+ "supplied_props": null,+ "bare_name_fallback": false,+ "spawned": false,+ "argument_types": null,+ "argument_names": null+ },+ {+ "target_name": "assertEquals",+ "receiver_name": null,+ "caller_symbol_id": "lang_samples/kotlin/assertions.kt::testManyAsserts",+ "line": 9,+ "argument_count": 2,+ "receiver_call": null,+ "scope_name": null,+ "edge_type": "calls",+ "supplied_props": null,+ "bare_name_fallback": false,+ "spawned": false,+ "argument_types": null,+ "argument_names": null+ },+ {+ "target_name": "assertEquals",+ "receiver_name": null,+ "caller_symbol_id": "lang_samples/kotlin/assertions.kt::testManyAsserts",+ "line": 10,+ "argument_count": 2,+ "receiver_call": null,+ "scope_name": null,+ "edge_type": "calls",+ "supplied_props": null,+ "bare_name_fallback": false,+ "spawned": false,+ "argument_types": null,+ "argument_names": null+ },+ {+ "target_name": "assertEquals",+ "receiver_name": null,+ "caller_symbol_id": "lang_samples/kotlin/assertions.kt::testManyAsserts",+ "line": 11,+ "argument_count": 2,+ "receiver_call": null,+ "scope_name": null,+ "edge_type": "calls",+ "supplied_props": null,+ "bare_name_fallback": false,+ "spawned": false,+ "argument_types": null,+ "argument_names": null+ },+ {+ "target_name": "assertEquals",+ "receiver_name": null,+ "caller_symbol_id": "lang_samples/kotlin/assertions.kt::testManyAsserts",+ "line": 12,+ "argument_count": 2,+ "receiver_call": null,+ "scope_name": null,+ "edge_type": "calls",+ "supplied_props": null,+ "bare_name_fallback": false,+ "spawned": false,+ "argument_types": null,+ "argument_names": null+ },+ {+ "target_name": "assertEquals",+ "receiver_name": null,+ "caller_symbol_id": "lang_samples/kotlin/assertions.kt::testManyAsserts",+ "line": 13,+ "argument_count": 2,+ "receiver_call": null,+ "scope_name": null,+ "edge_type": "calls",+ "supplied_props": null,+ "bare_name_fallback": false,+ "spawned": false,+ "argument_types": null,+ "argument_names": null+ },+ {+ "target_name": "assertEquals",+ "receiver_name": null,+ "caller_symbol_id": "lang_samples/kotlin/assertions.kt::testManyAsserts",+ "line": 14,+ "argument_count": 2,+ "receiver_call": null,+ "scope_name": null,+ "edge_type": "calls",+ "supplied_props": null,+ "bare_name_fallback": false,+ "spawned": false,+ "argument_types": null,+ "argument_names": null+ },+ {+ "target_name": "assertEquals",+ "receiver_name": null,+ "caller_symbol_id": "lang_samples/kotlin/assertions.kt::testManyAsserts",+ "line": 15,+ "argument_count": 2,+ "receiver_call": null,+ "scope_name": null,+ "edge_type": "calls",+ "supplied_props": null,+ "bare_name_fallback": false,+ "spawned": false,+ "argument_types": null,+ "argument_names": null+ },+ {+ "target_name": "assertEquals",+ "receiver_name": null,+ "caller_symbol_id": "lang_samples/kotlin/assertions.kt::testManyAsserts",+ "line": 16,+ "argument_count": 2,+ "receiver_call": null,+ "scope_name": null,+ "edge_type": "calls",+ "supplied_props": null,+ "bare_name_fallback": false,+ "spawned": false,+ "argument_types": null,+ "argument_names": null+ },+ {+ "target_name": "assertEquals",+ "receiver_name": null,+ "caller_symbol_id": "lang_samples/kotlin/assertions.kt::testManyAsserts",+ "line": 17,+ "argument_count": 2,+ "receiver_call": null,+ "scope_name": null,+ "edge_type": "calls",+ "supplied_props": null,+ "bare_name_fallback": false,+ "spawned": false,+ "argument_types": null,+ "argument_names": null+ },+ {+ "target_name": "assertEquals",+ "receiver_name": null,+ "caller_symbol_id": "lang_samples/kotlin/assertions.kt::testManyAsserts",+ "line": 18,+ "argument_count": 2,+ "receiver_call": null,+ "scope_name": null,+ "edge_type": "calls",+ "supplied_props": null,+ "bare_name_fallback": false,+ "spawned": false,+ "argument_types": null,+ "argument_names": null+ },+ {+ "target_name": "assertEquals",+ "receiver_name": null,+ "caller_symbol_id": "lang_samples/kotlin/assertions.kt::testManyAsserts",+ "line": 19,+ "argument_count": 2,+ "receiver_call": null,+ "scope_name": null,+ "edge_type": "calls",+ "supplied_props": null,+ "bare_name_fallback": false,+ "spawned": false,+ "argument_types": null,+ "argument_names": null+ },+ {+ "target_name": "assertEquals",+ "receiver_name": null,+ "caller_symbol_id": "lang_samples/kotlin/assertions.kt::testFewAsserts",+ "line": 23,+ "argument_count": 2,+ "receiver_call": null,+ "scope_name": null,+ "edge_type": "calls",+ "supplied_props": null,+ "bare_name_fallback": false,+ "spawned": false,+ "argument_types": null,+ "argument_names": null+ },+ {+ "target_name": "assertEquals",+ "receiver_name": null,+ "caller_symbol_id": "lang_samples/kotlin/assertions.kt::testFewAsserts",+ "line": 25,+ "argument_count": 2,+ "receiver_call": null,+ "scope_name": null,+ "edge_type": "calls",+ "supplied_props": null,+ "bare_name_fallback": false,+ "spawned": false,+ "argument_types": null,+ "argument_names": null+ }+ ],+ "heritage": [],+ "docstring": null,+ "parse_errors": [],+ "content_hash": "6fd9c6b2f64866c9b0d313a968f4ec1aa7bfc785c0747d08c2f38136a8a39c24",+ "type_refs": [],+ "local_refs": [],+ "registrars": [],+ "references": []+ },+ "kotlin/classes.kt": {+ "file_info": {+ "path": "lang_samples/kotlin/classes.kt",+ "language": "kotlin",+ "size_bytes": 981,+ "is_test": false,+ "is_config": false,+ "is_api_contract": false,+ "is_entry_point": false,+ "is_manifest_entry": false,+ "is_reachability_root": false+ },+ "symbols": [+ {+ "id": "lang_samples/kotlin/classes.kt::Cohesive",+ "name": "Cohesive",+ "qualified_name": "lang_samples.kotlin.classes.Cohesive",+ "kind": "class",+ "signature": "class Cohesive",+ "start_line": 8,+ "end_line": 29,+ "docstring": null,+ "decorators": [],+ "visibility": "public",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "kotlin",+ "parent_name": null,+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/kotlin/classes.kt::Cohesive::total",+ "name": "total",+ "qualified_name": "lang_samples.kotlin.classes.Cohesive.total",+ "kind": "variable",+ "signature": "total",+ "start_line": 9,+ "end_line": 9,+ "docstring": null,+ "decorators": [],+ "visibility": "public",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "kotlin",+ "parent_name": "Cohesive",+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/kotlin/classes.kt::Cohesive::count",+ "name": "count",+ "qualified_name": "lang_samples.kotlin.classes.Cohesive.count",+ "kind": "variable",+ "signature": "count",+ "start_line": 10,+ "end_line": 10,+ "docstring": null,+ "decorators": [],+ "visibility": "public",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "kotlin",+ "parent_name": "Cohesive",+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/kotlin/classes.kt::Cohesive::add",+ "name": "add",+ "qualified_name": "lang_samples.kotlin.classes.Cohesive.add",+ "kind": "method",+ "signature": "function add(n: Int)",+ "start_line": 12,+ "end_line": 15,+ "docstring": null,+ "decorators": [],+ "visibility": "public",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "kotlin",+ "parent_name": "Cohesive",+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/kotlin/classes.kt::Cohesive::average",+ "name": "average",+ "qualified_name": "lang_samples.kotlin.classes.Cohesive.average",+ "kind": "method",+ "signature": "function average() -> Int",+ "start_line": 17,+ "end_line": 19,+ "docstring": null,+ "decorators": [],+ "visibility": "public",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "kotlin",+ "parent_name": "Cohesive",+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/kotlin/classes.kt::Cohesive::reset",+ "name": "reset",+ "qualified_name": "lang_samples.kotlin.classes.Cohesive.reset",+ "kind": "method",+ "signature": "function reset()",+ "start_line": 21,+ "end_line": 24,+ "docstring": null,+ "decorators": [],+ "visibility": "public",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "kotlin",+ "parent_name": "Cohesive",+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/kotlin/classes.kt::Cohesive::describe",+ "name": "describe",+ "qualified_name": "lang_samples.kotlin.classes.Cohesive.describe",+ "kind": "method",+ "signature": "function describe() -> Int",+ "start_line": 26,+ "end_line": 28,+ "docstring": null,+ "decorators": [],+ "visibility": "public",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "kotlin",+ "parent_name": "Cohesive",+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/kotlin/classes.kt::Splintered",+ "name": "Splintered",+ "qualified_name": "lang_samples.kotlin.classes.Splintered",+ "kind": "class",+ "signature": "class Splintered",+ "start_line": 31,+ "end_line": 54,+ "docstring": null,+ "decorators": [],+ "visibility": "public",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "kotlin",+ "parent_name": null,+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/kotlin/classes.kt::Splintered::a",+ "name": "a",+ "qualified_name": "lang_samples.kotlin.classes.Splintered.a",+ "kind": "variable",+ "signature": "a",+ "start_line": 32,+ "end_line": 32,+ "docstring": null,+ "decorators": [],+ "visibility": "public",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "kotlin",+ "parent_name": "Splintered",+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/kotlin/classes.kt::Splintered::b",+ "name": "b",+ "qualified_name": "lang_samples.kotlin.classes.Splintered.b",+ "kind": "variable",+ "signature": "b",+ "start_line": 33,+ "end_line": 33,+ "docstring": null,+ "decorators": [],+ "visibility": "public",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "kotlin",+ "parent_name": "Splintered",+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/kotlin/classes.kt::Splintered::setA",+ "name": "setA",+ "qualified_name": "lang_samples.kotlin.classes.Splintered.setA",+ "kind": "method",+ "signature": "function setA(v: Int)",+ "start_line": 35,+ "end_line": 37,+ "docstring": null,+ "decorators": [],+ "visibility": "public",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "kotlin",+ "parent_name": "Splintered",+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/kotlin/classes.kt::Splintered::getA",+ "name": "getA",+ "qualified_name": "lang_samples.kotlin.classes.Splintered.getA",+ "kind": "method",+ "signature": "function getA() -> Int",+ "start_line": 39,+ "end_line": 41,+ "docstring": null,+ "decorators": [],+ "visibility": "public",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "kotlin",+ "parent_name": "Splintered",+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/kotlin/classes.kt::Splintered::setB",+ "name": "setB",+ "qualified_name": "lang_samples.kotlin.classes.Splintered.setB",+ "kind": "method",+ "signature": "function setB(v: Int)",+ "start_line": 43,+ "end_line": 45,+ "docstring": null,+ "decorators": [],+ "visibility": "public",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "kotlin",+ "parent_name": "Splintered",+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/kotlin/classes.kt::Splintered::getB",+ "name": "getB",+ "qualified_name": "lang_samples.kotlin.classes.Splintered.getB",+ "kind": "method",+ "signature": "function getB() -> Int",+ "start_line": 47,+ "end_line": 49,+ "docstring": null,+ "decorators": [],+ "visibility": "public",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "kotlin",+ "parent_name": "Splintered",+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/kotlin/classes.kt::Splintered::loner",+ "name": "loner",+ "qualified_name": "lang_samples.kotlin.classes.Splintered.loner",+ "kind": "method",+ "signature": "function loner() -> Int",+ "start_line": 51,+ "end_line": 53,+ "docstring": null,+ "decorators": [],+ "visibility": "public",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "kotlin",+ "parent_name": "Splintered",+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ }+ ],+ "imports": [],+ "exports": [+ "Cohesive",+ "Splintered"+ ],+ "export_aliases": {},+ "calls": [],+ "heritage": [],+ "docstring": null,+ "parse_errors": [],+ "content_hash": "f5b8dc95d44d79479fcd937c1ca83fa15379b2186287e9c988da8340cfc6cdb2",+ "type_refs": [],+ "local_refs": [],+ "registrars": [],+ "references": []+ },+ "kotlin/nested.kt": {+ "file_info": {+ "path": "lang_samples/kotlin/nested.kt",+ "language": "kotlin",+ "size_bytes": 551,+ "is_test": false,+ "is_config": false,+ "is_api_contract": false,+ "is_entry_point": false,+ "is_manifest_entry": false,+ "is_reachability_root": false+ },+ "symbols": [+ {+ "id": "lang_samples/kotlin/nested.kt::deeplyNested",+ "name": "deeplyNested",+ "qualified_name": "lang_samples.kotlin.nested.deeplyNested",+ "kind": "function",+ "signature": "function deeplyNested(x: Int) -> Int",+ "start_line": 3,+ "end_line": 14,+ "docstring": null,+ "decorators": [],+ "visibility": "public",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "kotlin",+ "parent_name": null,+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/kotlin/nested.kt::shallow",+ "name": "shallow",+ "qualified_name": "lang_samples.kotlin.nested.shallow",+ "kind": "function",+ "signature": "function shallow(x: Int) -> Int",+ "start_line": 16,+ "end_line": 18,+ "docstring": null,+ "decorators": [],+ "visibility": "public",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "kotlin",+ "parent_name": null,+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/kotlin/nested.kt::manyBranches",+ "name": "manyBranches",+ "qualified_name": "lang_samples.kotlin.nested.manyBranches",+ "kind": "function",+ "signature": "function manyBranches(x: Int) -> Int",+ "start_line": 20,+ "end_line": 28,+ "docstring": null,+ "decorators": [],+ "visibility": "public",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "kotlin",+ "parent_name": null,+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ }+ ],+ "imports": [],+ "exports": [+ "deeplyNested",+ "shallow",+ "manyBranches"+ ],+ "export_aliases": {},+ "calls": [],+ "heritage": [],+ "docstring": null,+ "parse_errors": [],+ "content_hash": "2e83ad198d58c3bd478e4fdddcb511c6adcf5441506017a3b20b031001e22507",+ "type_refs": [],+ "local_refs": [],+ "registrars": [],+ "references": []+ }+}diff --git a/tests/unit/ingestion/parser/golden/lean.json b/tests/unit/ingestion/parser/golden/lean.jsonnew file mode 100644index 000000000..03801217e--- /dev/null+++ b/tests/unit/ingestion/parser/golden/lean.json@@ -0,0 +1,143 @@+{+ "lean/BigOperators.lean": {+ "file_info": {+ "path": "lang_samples/lean/BigOperators.lean",+ "language": "lean",+ "size_bytes": 64,+ "is_test": false,+ "is_config": false,+ "is_api_contract": false,+ "is_entry_point": false,+ "is_manifest_entry": false,+ "is_reachability_root": false+ },+ "symbols": [],+ "imports": [],+ "exports": [],+ "export_aliases": {},+ "calls": [],+ "heritage": [],+ "docstring": null,+ "parse_errors": [],+ "content_hash": "acf145977c34b0da1fd8fdd93a15d17daeaa8e828e72a1d119490cefe29ded96",+ "type_refs": [],+ "local_refs": [],+ "registrars": [],+ "references": []+ },+ "lean/Main.lean": {+ "file_info": {+ "path": "lang_samples/lean/Main.lean",+ "language": "lean",+ "size_bytes": 111,+ "is_test": false,+ "is_config": false,+ "is_api_contract": false,+ "is_entry_point": false,+ "is_manifest_entry": false,+ "is_reachability_root": false+ },+ "symbols": [],+ "imports": [+ {+ "raw_statement": "public import Public.Visible",+ "module_path": "Public.Visible",+ "imported_names": [],+ "is_relative": false,+ "resolved_file": null,+ "bindings": [],+ "is_reexport": false,+ "is_module_declaration": false,+ "type_only": false,+ "deferred": false+ },+ {+ "raw_statement": "import Plain.Local",+ "module_path": "Plain.Local",+ "imported_names": [],+ "is_relative": false,+ "resolved_file": null,+ "bindings": [],+ "is_reexport": false,+ "is_module_declaration": false,+ "type_only": false,+ "deferred": false+ },+ {+ "raw_statement": "open scoped BigOperators",+ "module_path": "BigOperators",+ "imported_names": [],+ "is_relative": false,+ "resolved_file": null,+ "bindings": [],+ "is_reexport": false,+ "is_module_declaration": false,+ "type_only": false,+ "deferred": false+ }+ ],+ "exports": [],+ "export_aliases": {},+ "calls": [],+ "heritage": [],+ "docstring": null,+ "parse_errors": [],+ "content_hash": "a1c9e442f12803e132e1065071b1b84eab553812a8069faf225bcae6debd778e",+ "type_refs": [],+ "local_refs": [],+ "registrars": [],+ "references": []+ },+ "lean/Plain/Local.lean": {+ "file_info": {+ "path": "lang_samples/lean/Plain/Local.lean",+ "language": "lean",+ "size_bytes": 63,+ "is_test": false,+ "is_config": false,+ "is_api_contract": false,+ "is_entry_point": false,+ "is_manifest_entry": false,+ "is_reachability_root": false+ },+ "symbols": [],+ "imports": [],+ "exports": [],+ "export_aliases": {},+ "calls": [],+ "heritage": [],+ "docstring": null,+ "parse_errors": [],+ "content_hash": "4e9a7a7a8a0c2e3a7971d98e76bd60dce0a9a298c772843edd7c6397828308c4",+ "type_refs": [],+ "local_refs": [],+ "registrars": [],+ "references": []+ },+ "lean/Public/Visible.lean": {+ "file_info": {+ "path": "lang_samples/lean/Public/Visible.lean",+ "language": "lean",+ "size_bytes": 69,+ "is_test": false,+ "is_config": false,+ "is_api_contract": false,+ "is_entry_point": false,+ "is_manifest_entry": false,+ "is_reachability_root": false+ },+ "symbols": [],+ "imports": [],+ "exports": [],+ "export_aliases": {},+ "calls": [],+ "heritage": [],+ "docstring": null,+ "parse_errors": [],+ "content_hash": "40118dd44999a665bd2fa076ea0799d45d88b84a7efc05052ac97d9ede1f8cdf",+ "type_refs": [],+ "local_refs": [],+ "registrars": [],+ "references": []+ }+}diff --git a/tests/unit/ingestion/parser/golden/pascal.json b/tests/unit/ingestion/parser/golden/pascal.jsonnew file mode 100644index 000000000..8d2202662--- /dev/null+++ b/tests/unit/ingestion/parser/golden/pascal.json@@ -0,0 +1,143 @@+{+ "pascal/complex.pas": {+ "file_info": {+ "path": "lang_samples/pascal/complex.pas",+ "language": "pascal",+ "size_bytes": 525,+ "is_test": false,+ "is_config": false,+ "is_api_contract": false,+ "is_entry_point": false,+ "is_manifest_entry": false,+ "is_reachability_root": false+ },+ "symbols": [+ {+ "id": "lang_samples/pascal/complex.pas::ManyBranches",+ "name": "ManyBranches",+ "qualified_name": "lang_samples.pascal.complex.ManyBranches",+ "kind": "function",+ "signature": "ManyBranches(A, B, C, D, E: Boolean)",+ "start_line": 7,+ "end_line": 46,+ "docstring": null,+ "decorators": [],+ "visibility": "public",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "pascal",+ "parent_name": null,+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ }+ ],+ "imports": [],+ "exports": [+ "ManyBranches"+ ],+ "export_aliases": {},+ "calls": [],+ "heritage": [],+ "docstring": null,+ "parse_errors": [],+ "content_hash": "524d77a44a2789a26571ca7fd1c35b21688f8c62c9d88127efd378fb5ce86f08",+ "type_refs": [],+ "local_refs": [],+ "registrars": [],+ "references": []+ },+ "pascal/nested.pas": {+ "file_info": {+ "path": "lang_samples/pascal/nested.pas",+ "language": "pascal",+ "size_bytes": 493,+ "is_test": false,+ "is_config": false,+ "is_api_contract": false,+ "is_entry_point": false,+ "is_manifest_entry": false,+ "is_reachability_root": false+ },+ "symbols": [+ {+ "id": "lang_samples/pascal/nested.pas::DeeplyNested",+ "name": "DeeplyNested",+ "qualified_name": "lang_samples.pascal.nested.DeeplyNested",+ "kind": "function",+ "signature": "DeeplyNested(X: Integer)",+ "start_line": 7,+ "end_line": 30,+ "docstring": null,+ "decorators": [],+ "visibility": "public",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "pascal",+ "parent_name": null,+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/pascal/nested.pas::Shallow",+ "name": "Shallow",+ "qualified_name": "lang_samples.pascal.nested.Shallow",+ "kind": "function",+ "signature": "Shallow(X: Integer)",+ "start_line": 32,+ "end_line": 35,+ "docstring": null,+ "decorators": [],+ "visibility": "public",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "pascal",+ "parent_name": null,+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ }+ ],+ "imports": [],+ "exports": [+ "DeeplyNested",+ "Shallow"+ ],+ "export_aliases": {},+ "calls": [+ {+ "target_name": "I",+ "receiver_name": null,+ "caller_symbol_id": "lang_samples/pascal/nested.pas::DeeplyNested",+ "line": 21,+ "argument_count": null,+ "receiver_call": null,+ "scope_name": null,+ "edge_type": "calls",+ "supplied_props": null,+ "bare_name_fallback": false,+ "spawned": false,+ "argument_types": null,+ "argument_names": null+ }+ ],+ "heritage": [],+ "docstring": null,+ "parse_errors": [],+ "content_hash": "1bea972ee6120b3c63d8a1ca5d678904ad2e58812fbcf49392e43cc5858b170d",+ "type_refs": [],+ "local_refs": [],+ "registrars": [],+ "references": []+ }+}diff --git a/tests/unit/ingestion/parser/golden/php.json b/tests/unit/ingestion/parser/golden/php.jsonnew file mode 100644index 000000000..074df0b5b--- /dev/null+++ b/tests/unit/ingestion/parser/golden/php.json@@ -0,0 +1,1087 @@+{+ "php/assertions.php": {+ "file_info": {+ "path": "lang_samples/php/assertions.php",+ "language": "php",+ "size_bytes": 555,+ "is_test": false,+ "is_config": false,+ "is_api_contract": false,+ "is_entry_point": false,+ "is_manifest_entry": false,+ "is_reachability_root": false+ },+ "symbols": [+ {+ "id": "lang_samples/php/assertions.php::AssertionsTest",+ "name": "AssertionsTest",+ "qualified_name": "lang_samples.php.assertions.AssertionsTest",+ "kind": "class",+ "signature": "class AssertionsTest",+ "start_line": 4,+ "end_line": 20,+ "docstring": null,+ "decorators": [],+ "visibility": "public",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "php",+ "parent_name": null,+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/php/assertions.php::AssertionsTest::testManyAsserts",+ "name": "testManyAsserts",+ "qualified_name": "lang_samples.php.assertions.AssertionsTest.testManyAsserts",+ "kind": "method",+ "signature": "func testManyAsserts()",+ "start_line": 5,+ "end_line": 12,+ "docstring": null,+ "decorators": [],+ "visibility": "public",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "php",+ "parent_name": "AssertionsTest",+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/php/assertions.php::AssertionsTest::testFewAsserts",+ "name": "testFewAsserts",+ "qualified_name": "lang_samples.php.assertions.AssertionsTest.testFewAsserts",+ "kind": "method",+ "signature": "func testFewAsserts()",+ "start_line": 14,+ "end_line": 19,+ "docstring": null,+ "decorators": [],+ "visibility": "public",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "php",+ "parent_name": "AssertionsTest",+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ }+ ],+ "imports": [+ {+ "raw_statement": "use PHPUnit\\Framework\\TestCase;",+ "module_path": "PHPUnit\\Framework\\TestCase",+ "imported_names": [+ "TestCase"+ ],+ "is_relative": false,+ "resolved_file": null,+ "bindings": [+ {+ "local_name": "TestCase",+ "exported_name": "PHPUnit\\Framework\\TestCase",+ "source_file": null,+ "is_module_alias": false,+ "is_global": false,+ "is_static_import": false,+ "line": null,+ "column": null+ }+ ],+ "is_reexport": false,+ "is_module_declaration": false,+ "type_only": false,+ "deferred": false+ }+ ],+ "exports": [+ "AssertionsTest"+ ],+ "export_aliases": {},+ "calls": [+ {+ "target_name": "assertEquals",+ "receiver_name": "this",+ "caller_symbol_id": "lang_samples/php/assertions.php::AssertionsTest::testManyAsserts",+ "line": 7,+ "argument_count": 2,+ "receiver_call": null,+ "scope_name": null,+ "edge_type": "calls",+ "supplied_props": null,+ "bare_name_fallback": false,+ "spawned": false,+ "argument_types": null,+ "argument_names": null+ },+ {+ "target_name": "assertTrue",+ "receiver_name": "this",+ "caller_symbol_id": "lang_samples/php/assertions.php::AssertionsTest::testManyAsserts",+ "line": 8,+ "argument_count": 1,+ "receiver_call": null,+ "scope_name": null,+ "edge_type": "calls",+ "supplied_props": null,+ "bare_name_fallback": false,+ "spawned": false,+ "argument_types": null,+ "argument_names": null+ },+ {+ "target_name": "assertFalse",+ "receiver_name": "this",+ "caller_symbol_id": "lang_samples/php/assertions.php::AssertionsTest::testManyAsserts",+ "line": 9,+ "argument_count": 1,+ "receiver_call": null,+ "scope_name": null,+ "edge_type": "calls",+ "supplied_props": null,+ "bare_name_fallback": false,+ "spawned": false,+ "argument_types": null,+ "argument_names": null+ },+ {+ "target_name": "assertNotNull",+ "receiver_name": "this",+ "caller_symbol_id": "lang_samples/php/assertions.php::AssertionsTest::testManyAsserts",+ "line": 10,+ "argument_count": 1,+ "receiver_call": null,+ "scope_name": null,+ "edge_type": "calls",+ "supplied_props": null,+ "bare_name_fallback": false,+ "spawned": false,+ "argument_types": null,+ "argument_names": null+ },+ {+ "target_name": "assertGreaterThan",+ "receiver_name": "this",+ "caller_symbol_id": "lang_samples/php/assertions.php::AssertionsTest::testManyAsserts",+ "line": 11,+ "argument_count": 2,+ "receiver_call": null,+ "scope_name": null,+ "edge_type": "calls",+ "supplied_props": null,+ "bare_name_fallback": false,+ "spawned": false,+ "argument_types": null,+ "argument_names": null+ },+ {+ "target_name": "assertEquals",+ "receiver_name": "this",+ "caller_symbol_id": "lang_samples/php/assertions.php::AssertionsTest::testFewAsserts",+ "line": 16,+ "argument_count": 2,+ "receiver_call": null,+ "scope_name": null,+ "edge_type": "calls",+ "supplied_props": null,+ "bare_name_fallback": false,+ "spawned": false,+ "argument_types": null,+ "argument_names": null+ },+ {+ "target_name": "assertNotNull",+ "receiver_name": "this",+ "caller_symbol_id": "lang_samples/php/assertions.php::AssertionsTest::testFewAsserts",+ "line": 18,+ "argument_count": 1,+ "receiver_call": null,+ "scope_name": null,+ "edge_type": "calls",+ "supplied_props": null,+ "bare_name_fallback": false,+ "spawned": false,+ "argument_types": null,+ "argument_names": null+ }+ ],+ "heritage": [+ {+ "child_name": "AssertionsTest",+ "parent_name": "TestCase",+ "kind": "extends",+ "line": 4+ }+ ],+ "docstring": null,+ "parse_errors": [],+ "content_hash": "73822ad29cad25e5d798439b08bf95434bfe1f462ee07dd6223d5e438fdb0a84",+ "type_refs": [],+ "local_refs": [],+ "registrars": [],+ "references": []+ },+ "php/classes.php": {+ "file_info": {+ "path": "lang_samples/php/classes.php",+ "language": "php",+ "size_bytes": 1172,+ "is_test": false,+ "is_config": false,+ "is_api_contract": false,+ "is_entry_point": false,+ "is_manifest_entry": false,+ "is_reachability_root": false+ },+ "symbols": [+ {+ "id": "lang_samples/php/classes.php::CohesiveClass",+ "name": "CohesiveClass",+ "qualified_name": "lang_samples.php.classes.CohesiveClass",+ "kind": "class",+ "signature": "class CohesiveClass",+ "start_line": 4,+ "end_line": 23,+ "docstring": null,+ "decorators": [],+ "visibility": "public",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "php",+ "parent_name": null,+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/php/classes.php::CohesiveClass::total",+ "name": "total",+ "qualified_name": "lang_samples.php.classes.CohesiveClass.total",+ "kind": "variable",+ "signature": "total",+ "start_line": 5,+ "end_line": 5,+ "docstring": null,+ "decorators": [],+ "visibility": "public",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "php",+ "parent_name": "CohesiveClass",+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/php/classes.php::CohesiveClass::add",+ "name": "add",+ "qualified_name": "lang_samples.php.classes.CohesiveClass.add",+ "kind": "method",+ "signature": "func add(int $x)",+ "start_line": 7,+ "end_line": 9,+ "docstring": null,+ "decorators": [],+ "visibility": "public",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "php",+ "parent_name": "CohesiveClass",+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/php/classes.php::CohesiveClass::getTotal",+ "name": "getTotal",+ "qualified_name": "lang_samples.php.classes.CohesiveClass.getTotal",+ "kind": "method",+ "signature": "func getTotal()",+ "start_line": 11,+ "end_line": 13,+ "docstring": null,+ "decorators": [],+ "visibility": "public",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "php",+ "parent_name": "CohesiveClass",+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/php/classes.php::CohesiveClass::reset",+ "name": "reset",+ "qualified_name": "lang_samples.php.classes.CohesiveClass.reset",+ "kind": "method",+ "signature": "func reset()",+ "start_line": 15,+ "end_line": 18,+ "docstring": null,+ "decorators": [],+ "visibility": "public",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "php",+ "parent_name": "CohesiveClass",+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/php/classes.php::CohesiveClass::helper",+ "name": "helper",+ "qualified_name": "lang_samples.php.classes.CohesiveClass.helper",+ "kind": "method",+ "signature": "func helper()",+ "start_line": 20,+ "end_line": 22,+ "docstring": null,+ "decorators": [],+ "visibility": "private",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "php",+ "parent_name": "CohesiveClass",+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/php/classes.php::SplitClass",+ "name": "SplitClass",+ "qualified_name": "lang_samples.php.classes.SplitClass",+ "kind": "class",+ "signature": "class SplitClass",+ "start_line": 25,+ "end_line": 44,+ "docstring": null,+ "decorators": [],+ "visibility": "public",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "php",+ "parent_name": null,+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/php/classes.php::SplitClass::alpha",+ "name": "alpha",+ "qualified_name": "lang_samples.php.classes.SplitClass.alpha",+ "kind": "variable",+ "signature": "alpha",+ "start_line": 26,+ "end_line": 26,+ "docstring": null,+ "decorators": [],+ "visibility": "public",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "php",+ "parent_name": "SplitClass",+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/php/classes.php::SplitClass::beta",+ "name": "beta",+ "qualified_name": "lang_samples.php.classes.SplitClass.beta",+ "kind": "variable",+ "signature": "beta",+ "start_line": 27,+ "end_line": 27,+ "docstring": null,+ "decorators": [],+ "visibility": "public",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "php",+ "parent_name": "SplitClass",+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/php/classes.php::SplitClass::stepAlpha",+ "name": "stepAlpha",+ "qualified_name": "lang_samples.php.classes.SplitClass.stepAlpha",+ "kind": "method",+ "signature": "func stepAlpha()",+ "start_line": 29,+ "end_line": 31,+ "docstring": null,+ "decorators": [],+ "visibility": "public",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "php",+ "parent_name": "SplitClass",+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/php/classes.php::SplitClass::getAlpha",+ "name": "getAlpha",+ "qualified_name": "lang_samples.php.classes.SplitClass.getAlpha",+ "kind": "method",+ "signature": "func getAlpha()",+ "start_line": 33,+ "end_line": 35,+ "docstring": null,+ "decorators": [],+ "visibility": "public",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "php",+ "parent_name": "SplitClass",+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/php/classes.php::SplitClass::stepBeta",+ "name": "stepBeta",+ "qualified_name": "lang_samples.php.classes.SplitClass.stepBeta",+ "kind": "method",+ "signature": "func stepBeta()",+ "start_line": 37,+ "end_line": 39,+ "docstring": null,+ "decorators": [],+ "visibility": "public",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "php",+ "parent_name": "SplitClass",+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/php/classes.php::SplitClass::getBeta",+ "name": "getBeta",+ "qualified_name": "lang_samples.php.classes.SplitClass.getBeta",+ "kind": "method",+ "signature": "func getBeta()",+ "start_line": 41,+ "end_line": 43,+ "docstring": null,+ "decorators": [],+ "visibility": "public",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "php",+ "parent_name": "SplitClass",+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/php/classes.php::LoggableTrait",+ "name": "LoggableTrait",+ "qualified_name": "lang_samples.php.classes.LoggableTrait",+ "kind": "trait",+ "signature": "LoggableTrait",+ "start_line": 46,+ "end_line": 56,+ "docstring": null,+ "decorators": [],+ "visibility": "public",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "php",+ "parent_name": null,+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/php/classes.php::LoggableTrait::prefix",+ "name": "prefix",+ "qualified_name": "lang_samples.php.classes.LoggableTrait.prefix",+ "kind": "variable",+ "signature": "prefix",+ "start_line": 47,+ "end_line": 47,+ "docstring": null,+ "decorators": [],+ "visibility": "public",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "php",+ "parent_name": "LoggableTrait",+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/php/classes.php::LoggableTrait::log",+ "name": "log",+ "qualified_name": "lang_samples.php.classes.LoggableTrait.log",+ "kind": "method",+ "signature": "func log(string $msg)",+ "start_line": 49,+ "end_line": 51,+ "docstring": null,+ "decorators": [],+ "visibility": "public",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "php",+ "parent_name": "LoggableTrait",+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/php/classes.php::LoggableTrait::setPrefix",+ "name": "setPrefix",+ "qualified_name": "lang_samples.php.classes.LoggableTrait.setPrefix",+ "kind": "method",+ "signature": "func setPrefix(string $p)",+ "start_line": 53,+ "end_line": 55,+ "docstring": null,+ "decorators": [],+ "visibility": "public",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "php",+ "parent_name": "LoggableTrait",+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/php/classes.php::WorkerInterface",+ "name": "WorkerInterface",+ "qualified_name": "lang_samples.php.classes.WorkerInterface",+ "kind": "interface",+ "signature": "interface WorkerInterface",+ "start_line": 58,+ "end_line": 60,+ "docstring": null,+ "decorators": [],+ "visibility": "public",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "php",+ "parent_name": null,+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/php/classes.php::WorkerInterface::performWork",+ "name": "performWork",+ "qualified_name": "lang_samples.php.classes.WorkerInterface.performWork",+ "kind": "method",+ "signature": "func performWork()",+ "start_line": 59,+ "end_line": 59,+ "docstring": null,+ "decorators": [],+ "visibility": "public",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "php",+ "parent_name": "WorkerInterface",+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/php/classes.php::Priority",+ "name": "Priority",+ "qualified_name": "lang_samples.php.classes.Priority",+ "kind": "enum",+ "signature": "enum Priority",+ "start_line": 62,+ "end_line": 65,+ "docstring": null,+ "decorators": [],+ "visibility": "public",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "php",+ "parent_name": null,+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ }+ ],+ "imports": [],+ "exports": [+ "CohesiveClass",+ "SplitClass",+ "LoggableTrait",+ "WorkerInterface",+ "Priority"+ ],+ "export_aliases": {},+ "calls": [+ {+ "target_name": "helper",+ "receiver_name": "this",+ "caller_symbol_id": "lang_samples/php/classes.php::CohesiveClass::reset",+ "line": 17,+ "argument_count": 0,+ "receiver_call": null,+ "scope_name": null,+ "edge_type": "calls",+ "supplied_props": null,+ "bare_name_fallback": false,+ "spawned": false,+ "argument_types": null,+ "argument_names": null+ }+ ],+ "heritage": [],+ "docstring": null,+ "parse_errors": [],+ "content_hash": "9f4f58ffa114036136ece41c380150d09ee48bd0288e2b27b580056bda9702f9",+ "type_refs": [],+ "local_refs": [],+ "registrars": [],+ "references": []+ },+ "php/clean.php": {+ "file_info": {+ "path": "lang_samples/php/clean.php",+ "language": "php",+ "size_bytes": 137,+ "is_test": false,+ "is_config": false,+ "is_api_contract": false,+ "is_entry_point": false,+ "is_manifest_entry": false,+ "is_reachability_root": false+ },+ "symbols": [+ {+ "id": "lang_samples/php/clean.php::greet",+ "name": "greet",+ "qualified_name": "lang_samples.php.clean.greet",+ "kind": "function",+ "signature": "def greet(string $name) -> string",+ "start_line": 3,+ "end_line": 5,+ "docstring": null,+ "decorators": [],+ "visibility": "public",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "php",+ "parent_name": null,+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/php/clean.php::sum",+ "name": "sum",+ "qualified_name": "lang_samples.php.clean.sum",+ "kind": "function",+ "signature": "def sum(int $a, int $b) -> int",+ "start_line": 7,+ "end_line": 9,+ "docstring": null,+ "decorators": [],+ "visibility": "public",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "php",+ "parent_name": null,+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ }+ ],+ "imports": [],+ "exports": [+ "greet",+ "sum"+ ],+ "export_aliases": {},+ "calls": [],+ "heritage": [],+ "docstring": null,+ "parse_errors": [],+ "content_hash": "e3031a16d3389e2e47bd9884b7eea663339a22598be91c01b75d35eb811cde39",+ "type_refs": [],+ "local_refs": [],+ "registrars": [],+ "references": []+ },+ "php/nested.php": {+ "file_info": {+ "path": "lang_samples/php/nested.php",+ "language": "php",+ "size_bytes": 1945,+ "is_test": false,+ "is_config": false,+ "is_api_contract": false,+ "is_entry_point": false,+ "is_manifest_entry": false,+ "is_reachability_root": false+ },+ "symbols": [+ {+ "id": "lang_samples/php/nested.php::deeply_nested",+ "name": "deeply_nested",+ "qualified_name": "lang_samples.php.nested.deeply_nested",+ "kind": "function",+ "signature": "def deeply_nested($x)",+ "start_line": 4,+ "end_line": 15,+ "docstring": null,+ "decorators": [],+ "visibility": "public",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "php",+ "parent_name": null,+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/php/nested.php::many_branches",+ "name": "many_branches",+ "qualified_name": "lang_samples.php.nested.many_branches",+ "kind": "function",+ "signature": "def many_branches($a, $b)",+ "start_line": 17,+ "end_line": 30,+ "docstring": null,+ "decorators": [],+ "visibility": "public",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "php",+ "parent_name": null,+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/php/nested.php::wordy",+ "name": "wordy",+ "qualified_name": "lang_samples.php.nested.wordy",+ "kind": "function",+ "signature": "def wordy($a, $b)",+ "start_line": 32,+ "end_line": 34,+ "docstring": null,+ "decorators": [],+ "visibility": "public",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "php",+ "parent_name": null,+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/php/nested.php::shallow",+ "name": "shallow",+ "qualified_name": "lang_samples.php.nested.shallow",+ "kind": "function",+ "signature": "def shallow($x)",+ "start_line": 36,+ "end_line": 38,+ "docstring": null,+ "decorators": [],+ "visibility": "public",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "php",+ "parent_name": null,+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/php/nested.php::lambda_and_arrow",+ "name": "lambda_and_arrow",+ "qualified_name": "lang_samples.php.nested.lambda_and_arrow",+ "kind": "function",+ "signature": "def lambda_and_arrow($items)",+ "start_line": 40,+ "end_line": 49,+ "docstring": null,+ "decorators": [],+ "visibility": "public",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "php",+ "parent_name": null,+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/php/nested.php::match_and_switch",+ "name": "match_and_switch",+ "qualified_name": "lang_samples.php.nested.match_and_switch",+ "kind": "function",+ "signature": "def match_and_switch($x)",+ "start_line": 51,+ "end_line": 71,+ "docstring": null,+ "decorators": [],+ "visibility": "public",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "php",+ "parent_name": null,+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/php/nested.php::try_catch_finally",+ "name": "try_catch_finally",+ "qualified_name": "lang_samples.php.nested.try_catch_finally",+ "kind": "function",+ "signature": "def try_catch_finally($path)",+ "start_line": 73,+ "end_line": 86,+ "docstring": null,+ "decorators": [],+ "visibility": "public",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "php",+ "parent_name": null,+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/php/nested.php::loops_galore",+ "name": "loops_galore",+ "qualified_name": "lang_samples.php.nested.loops_galore",+ "kind": "function",+ "signature": "def loops_galore($items)",+ "start_line": 88,+ "end_line": 100,+ "docstring": null,+ "decorators": [],+ "visibility": "public",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "php",+ "parent_name": null,+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ }+ ],+ "imports": [],+ "exports": [+ "deeply_nested",+ "many_branches",+ "wordy",+ "shallow",+ "lambda_and_arrow",+ "match_and_switch",+ "try_catch_finally",+ "loops_galore"+ ],+ "export_aliases": {},+ "calls": [+ {+ "target_name": "array_map",+ "receiver_name": null,+ "caller_symbol_id": "lang_samples/php/nested.php::lambda_and_arrow",+ "line": 48,+ "argument_count": 2,+ "receiver_call": null,+ "scope_name": null,+ "edge_type": "calls",+ "supplied_props": null,+ "bare_name_fallback": false,+ "spawned": false,+ "argument_types": null,+ "argument_names": null+ },+ {+ "target_name": "file_get_contents",+ "receiver_name": null,+ "caller_symbol_id": "lang_samples/php/nested.php::try_catch_finally",+ "line": 75,+ "argument_count": 1,+ "receiver_call": null,+ "scope_name": null,+ "edge_type": "calls",+ "supplied_props": null,+ "bare_name_fallback": false,+ "spawned": false,+ "argument_types": null,+ "argument_names": null+ },+ {+ "target_name": "Exception",+ "receiver_name": null,+ "caller_symbol_id": "lang_samples/php/nested.php::try_catch_finally",+ "line": 77,+ "argument_count": 1,+ "receiver_call": null,+ "scope_name": null,+ "edge_type": "calls",+ "supplied_props": null,+ "bare_name_fallback": false,+ "spawned": false,+ "argument_types": null,+ "argument_names": null+ },+ {+ "target_name": "getMessage",+ "receiver_name": "e",+ "caller_symbol_id": "lang_samples/php/nested.php::try_catch_finally",+ "line": 80,+ "argument_count": 0,+ "receiver_call": null,+ "scope_name": null,+ "edge_type": "calls",+ "supplied_props": null,+ "bare_name_fallback": false,+ "spawned": false,+ "argument_types": null,+ "argument_names": null+ },+ {+ "target_name": "getMessage",+ "receiver_name": "e",+ "caller_symbol_id": "lang_samples/php/nested.php::try_catch_finally",+ "line": 82,+ "argument_count": 0,+ "receiver_call": null,+ "scope_name": null,+ "edge_type": "calls",+ "supplied_props": null,+ "bare_name_fallback": false,+ "spawned": false,+ "argument_types": null,+ "argument_names": null+ }+ ],+ "heritage": [],+ "docstring": null,+ "parse_errors": [],+ "content_hash": "6c1d5c730ed848fd74c74932108d20603c404150bb4a93aa0760a4025649c68a",+ "type_refs": [],+ "local_refs": [],+ "registrars": [],+ "references": []+ }+}diff --git a/tests/unit/ingestion/parser/golden/python.json b/tests/unit/ingestion/parser/golden/python.jsonnew file mode 100644index 000000000..cf950ae51--- /dev/null+++ b/tests/unit/ingestion/parser/golden/python.json@@ -0,0 +1,1927 @@+{+ "python/assertions.py": {+ "file_info": {+ "path": "lang_samples/python/assertions.py",+ "language": "python",+ "size_bytes": 774,+ "is_test": false,+ "is_config": false,+ "is_api_contract": false,+ "is_entry_point": false,+ "is_manifest_entry": false,+ "is_reachability_root": false+ },+ "symbols": [+ {+ "id": "lang_samples/python/assertions.py::test_many_bare_asserts",+ "name": "test_many_bare_asserts",+ "qualified_name": "lang_samples.python.assertions.test_many_bare_asserts",+ "kind": "function",+ "signature": "def test_many_bare_asserts()",+ "start_line": 4,+ "end_line": 21,+ "docstring": null,+ "decorators": [],+ "visibility": "public",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "python",+ "parent_name": null,+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/python/assertions.py::_Case",+ "name": "_Case",+ "qualified_name": "lang_samples.python.assertions._Case",+ "kind": "class",+ "signature": "class _Case",+ "start_line": 24,+ "end_line": 33,+ "docstring": null,+ "decorators": [],+ "visibility": "private",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "python",+ "parent_name": null,+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/python/assertions.py::_Case::test_unittest_calls",+ "name": "test_unittest_calls",+ "qualified_name": "lang_samples.python.assertions._Case.test_unittest_calls",+ "kind": "method",+ "signature": "def test_unittest_calls(self)",+ "start_line": 25,+ "end_line": 28,+ "docstring": null,+ "decorators": [],+ "visibility": "public",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "python",+ "parent_name": "_Case",+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/python/assertions.py::_Case::test_few_asserts",+ "name": "test_few_asserts",+ "qualified_name": "lang_samples.python.assertions._Case.test_few_asserts",+ "kind": "method",+ "signature": "def test_few_asserts(self)",+ "start_line": 30,+ "end_line": 33,+ "docstring": null,+ "decorators": [],+ "visibility": "public",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "python",+ "parent_name": "_Case",+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/python/assertions.py::test_split_runs",+ "name": "test_split_runs",+ "qualified_name": "lang_samples.python.assertions.test_split_runs",+ "kind": "function",+ "signature": "def test_split_runs()",+ "start_line": 36,+ "end_line": 41,+ "docstring": null,+ "decorators": [],+ "visibility": "public",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "python",+ "parent_name": null,+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/python/assertions.py::do_work",+ "name": "do_work",+ "qualified_name": "lang_samples.python.assertions.do_work",+ "kind": "function",+ "signature": "def do_work()",+ "start_line": 44,+ "end_line": 45,+ "docstring": null,+ "decorators": [],+ "visibility": "public",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "python",+ "parent_name": null,+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ }+ ],+ "imports": [],+ "exports": [+ "test_many_bare_asserts",+ "test_split_runs",+ "do_work"+ ],+ "export_aliases": {},+ "calls": [+ {+ "target_name": "assertEqual",+ "receiver_name": "self",+ "caller_symbol_id": "lang_samples/python/assertions.py::_Case::test_unittest_calls",+ "line": 26,+ "argument_count": 2,+ "receiver_call": null,+ "scope_name": null,+ "edge_type": "calls",+ "supplied_props": null,+ "bare_name_fallback": false,+ "spawned": false,+ "argument_types": null,+ "argument_names": null+ },+ {+ "target_name": "assertEqual",+ "receiver_name": "self",+ "caller_symbol_id": "lang_samples/python/assertions.py::_Case::test_unittest_calls",+ "line": 27,+ "argument_count": 2,+ "receiver_call": null,+ "scope_name": null,+ "edge_type": "calls",+ "supplied_props": null,+ "bare_name_fallback": false,+ "spawned": false,+ "argument_types": null,+ "argument_names": null+ },+ {+ "target_name": "assertTrue",+ "receiver_name": "self",+ "caller_symbol_id": "lang_samples/python/assertions.py::_Case::test_unittest_calls",+ "line": 28,+ "argument_count": 1,+ "receiver_call": null,+ "scope_name": null,+ "edge_type": "calls",+ "supplied_props": null,+ "bare_name_fallback": false,+ "spawned": false,+ "argument_types": null,+ "argument_names": null+ },+ {+ "target_name": "do_work",+ "receiver_name": null,+ "caller_symbol_id": "lang_samples/python/assertions.py::test_split_runs",+ "line": 39,+ "argument_count": 0,+ "receiver_call": null,+ "scope_name": null,+ "edge_type": "calls",+ "supplied_props": null,+ "bare_name_fallback": false,+ "spawned": false,+ "argument_types": null,+ "argument_names": null+ }+ ],+ "heritage": [],+ "docstring": "Fixture for assertion-block detection (test-quality smells).",+ "parse_errors": [],+ "content_hash": "24df9be729e25423dba34f10398921ba3734e870fe126e167998008b8914eb24",+ "type_refs": [],+ "local_refs": [+ "do_work"+ ],+ "registrars": [],+ "references": []+ },+ "python/classes.py": {+ "file_info": {+ "path": "lang_samples/python/classes.py",+ "language": "python",+ "size_bytes": 1060,+ "is_test": false,+ "is_config": false,+ "is_api_contract": false,+ "is_entry_point": false,+ "is_manifest_entry": false,+ "is_reachability_root": false+ },+ "symbols": [+ {+ "id": "lang_samples/python/classes.py::Cohesive",+ "name": "Cohesive",+ "qualified_name": "lang_samples.python.classes.Cohesive",+ "kind": "class",+ "signature": "class Cohesive",+ "start_line": 4,+ "end_line": 23,+ "docstring": "All methods collaborate around shared state \u2192 LCOM4 == 1.",+ "decorators": [],+ "visibility": "public",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "python",+ "parent_name": null,+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/python/classes.py::Cohesive::__init__",+ "name": "__init__",+ "qualified_name": "lang_samples.python.classes.Cohesive.__init__",+ "kind": "method",+ "signature": "def __init__(self)",+ "start_line": 7,+ "end_line": 9,+ "docstring": null,+ "decorators": [],+ "visibility": "public",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "python",+ "parent_name": "Cohesive",+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/python/classes.py::Cohesive::add",+ "name": "add",+ "qualified_name": "lang_samples.python.classes.Cohesive.add",+ "kind": "method",+ "signature": "def add(self, n)",+ "start_line": 11,+ "end_line": 13,+ "docstring": null,+ "decorators": [],+ "visibility": "public",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "python",+ "parent_name": "Cohesive",+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/python/classes.py::Cohesive::average",+ "name": "average",+ "qualified_name": "lang_samples.python.classes.Cohesive.average",+ "kind": "method",+ "signature": "def average(self)",+ "start_line": 15,+ "end_line": 16,+ "docstring": null,+ "decorators": [],+ "visibility": "public",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "python",+ "parent_name": "Cohesive",+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/python/classes.py::Cohesive::reset",+ "name": "reset",+ "qualified_name": "lang_samples.python.classes.Cohesive.reset",+ "kind": "method",+ "signature": "def reset(self)",+ "start_line": 18,+ "end_line": 20,+ "docstring": null,+ "decorators": [],+ "visibility": "public",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "python",+ "parent_name": "Cohesive",+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/python/classes.py::Cohesive::describe",+ "name": "describe",+ "qualified_name": "lang_samples.python.classes.Cohesive.describe",+ "kind": "method",+ "signature": "def describe(self)",+ "start_line": 22,+ "end_line": 23,+ "docstring": null,+ "decorators": [],+ "visibility": "public",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "python",+ "parent_name": "Cohesive",+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/python/classes.py::Splintered",+ "name": "Splintered",+ "qualified_name": "lang_samples.python.classes.Splintered",+ "kind": "class",+ "signature": "class Splintered",+ "start_line": 26,+ "end_line": 50,+ "docstring": "Two disjoint method clusters plus a loner \u2192 LCOM4 == 2.\n\n {set_a, get_a} share self.a; {set_b, get_b} share self.b; loner\n touches neither, so it is a component that does not count. Fields are class-level so no constructor bridges the\n clusters.",+ "decorators": [],+ "visibility": "public",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "python",+ "parent_name": null,+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/python/classes.py::Splintered::set_a",+ "name": "set_a",+ "qualified_name": "lang_samples.python.classes.Splintered.set_a",+ "kind": "method",+ "signature": "def set_a(self, v)",+ "start_line": 37,+ "end_line": 38,+ "docstring": null,+ "decorators": [],+ "visibility": "public",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "python",+ "parent_name": "Splintered",+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/python/classes.py::Splintered::get_a",+ "name": "get_a",+ "qualified_name": "lang_samples.python.classes.Splintered.get_a",+ "kind": "method",+ "signature": "def get_a(self)",+ "start_line": 40,+ "end_line": 41,+ "docstring": null,+ "decorators": [],+ "visibility": "public",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "python",+ "parent_name": "Splintered",+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/python/classes.py::Splintered::set_b",+ "name": "set_b",+ "qualified_name": "lang_samples.python.classes.Splintered.set_b",+ "kind": "method",+ "signature": "def set_b(self, v)",+ "start_line": 43,+ "end_line": 44,+ "docstring": null,+ "decorators": [],+ "visibility": "public",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "python",+ "parent_name": "Splintered",+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/python/classes.py::Splintered::get_b",+ "name": "get_b",+ "qualified_name": "lang_samples.python.classes.Splintered.get_b",+ "kind": "method",+ "signature": "def get_b(self)",+ "start_line": 46,+ "end_line": 47,+ "docstring": null,+ "decorators": [],+ "visibility": "public",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "python",+ "parent_name": "Splintered",+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/python/classes.py::Splintered::loner",+ "name": "loner",+ "qualified_name": "lang_samples.python.classes.Splintered.loner",+ "kind": "method",+ "signature": "def loner(self)",+ "start_line": 49,+ "end_line": 50,+ "docstring": null,+ "decorators": [],+ "visibility": "public",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "python",+ "parent_name": "Splintered",+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ }+ ],+ "imports": [],+ "exports": [+ "Cohesive",+ "Splintered"+ ],+ "export_aliases": {},+ "calls": [+ {+ "target_name": "average",+ "receiver_name": "self",+ "caller_symbol_id": "lang_samples/python/classes.py::Cohesive::describe",+ "line": 23,+ "argument_count": 0,+ "receiver_call": null,+ "scope_name": null,+ "edge_type": "calls",+ "supplied_props": null,+ "bare_name_fallback": false,+ "spawned": false,+ "argument_types": null,+ "argument_names": null+ }+ ],+ "heritage": [],+ "docstring": "Fixtures for class-level (LCOM4 / god-class) walker tests.",+ "parse_errors": [],+ "content_hash": "7ddfc761b6efec72fe2685d2eed2c40089226e2f2b092ad97a47368a28083f43",+ "type_refs": [],+ "local_refs": [],+ "registrars": [],+ "references": []+ },+ "python/complex.py": {+ "file_info": {+ "path": "lang_samples/python/complex.py",+ "language": "python",+ "size_bytes": 353,+ "is_test": false,+ "is_config": false,+ "is_api_contract": false,+ "is_entry_point": false,+ "is_manifest_entry": false,+ "is_reachability_root": false+ },+ "symbols": [+ {+ "id": "lang_samples/python/complex.py::many_branches",+ "name": "many_branches",+ "qualified_name": "lang_samples.python.complex.many_branches",+ "kind": "function",+ "signature": "def many_branches(a, b, c, d, e)",+ "start_line": 1,+ "end_line": 21,+ "docstring": null,+ "decorators": [],+ "visibility": "public",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "python",+ "parent_name": null,+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ }+ ],+ "imports": [],+ "exports": [+ "many_branches"+ ],+ "export_aliases": {},+ "calls": [],+ "heritage": [],+ "docstring": null,+ "parse_errors": [],+ "content_hash": "80393c62b7c0ac59aeae1d1a96a96ebcd7c479c8f9754da1edd38efd5aa91940",+ "type_refs": [],+ "local_refs": [],+ "registrars": [],+ "references": []+ },+ "python/conditionals.py": {+ "file_info": {+ "path": "lang_samples/python/conditionals.py",+ "language": "python",+ "size_bytes": 275,+ "is_test": false,+ "is_config": false,+ "is_api_contract": false,+ "is_entry_point": false,+ "is_manifest_entry": false,+ "is_reachability_root": false+ },+ "symbols": [+ {+ "id": "lang_samples/python/conditionals.py::three_ops",+ "name": "three_ops",+ "qualified_name": "lang_samples.python.conditionals.three_ops",+ "kind": "function",+ "signature": "def three_ops(a, b, c, d)",+ "start_line": 1,+ "end_line": 4,+ "docstring": null,+ "decorators": [],+ "visibility": "public",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "python",+ "parent_name": null,+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/python/conditionals.py::six_ops",+ "name": "six_ops",+ "qualified_name": "lang_samples.python.conditionals.six_ops",+ "kind": "function",+ "signature": "def six_ops(a, b, c, d, e, f, g)",+ "start_line": 7,+ "end_line": 10,+ "docstring": null,+ "decorators": [],+ "visibility": "public",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "python",+ "parent_name": null,+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/python/conditionals.py::two_ops",+ "name": "two_ops",+ "qualified_name": "lang_samples.python.conditionals.two_ops",+ "kind": "function",+ "signature": "def two_ops(a, b, c)",+ "start_line": 13,+ "end_line": 16,+ "docstring": null,+ "decorators": [],+ "visibility": "public",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "python",+ "parent_name": null,+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ }+ ],+ "imports": [],+ "exports": [+ "three_ops",+ "six_ops",+ "two_ops"+ ],+ "export_aliases": {},+ "calls": [],+ "heritage": [],+ "docstring": null,+ "parse_errors": [],+ "content_hash": "95e7661f0659fe55984fda87081d6fc32fdecbf4453645b79facf19cc4500af1",+ "type_refs": [],+ "local_refs": [],+ "registrars": [],+ "references": []+ },+ "python/match.py": {+ "file_info": {+ "path": "lang_samples/python/match.py",+ "language": "python",+ "size_bytes": 702,+ "is_test": false,+ "is_config": false,+ "is_api_contract": false,+ "is_entry_point": false,+ "is_manifest_entry": false,+ "is_reachability_root": false+ },+ "symbols": [+ {+ "id": "lang_samples/python/match.py::python_match",+ "name": "python_match",+ "qualified_name": "lang_samples.python.match.python_match",+ "kind": "function",+ "signature": "def python_match(x)",+ "start_line": 6,+ "end_line": 15,+ "docstring": null,+ "decorators": [],+ "visibility": "public",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "python",+ "parent_name": null,+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/python/match.py::python_if_elif",+ "name": "python_if_elif",+ "qualified_name": "lang_samples.python.match.python_if_elif",+ "kind": "function",+ "signature": "def python_if_elif(x)",+ "start_line": 19,+ "end_line": 27,+ "docstring": null,+ "decorators": [],+ "visibility": "public",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "python",+ "parent_name": null,+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ }+ ],+ "imports": [],+ "exports": [+ "python_match",+ "python_if_elif"+ ],+ "export_aliases": {},+ "calls": [],+ "heritage": [],+ "docstring": null,+ "parse_errors": [],+ "content_hash": "b5a708d83a10810b985a5610de23a65db5c6adfed43156da68012aeac22b7cc5",+ "type_refs": [],+ "local_refs": [],+ "registrars": [],+ "references": []+ },+ "python/nested.py": {+ "file_info": {+ "path": "lang_samples/python/nested.py",+ "language": "python",+ "size_bytes": 358,+ "is_test": false,+ "is_config": false,+ "is_api_contract": false,+ "is_entry_point": false,+ "is_manifest_entry": false,+ "is_reachability_root": false+ },+ "symbols": [+ {+ "id": "lang_samples/python/nested.py::deeply_nested",+ "name": "deeply_nested",+ "qualified_name": "lang_samples.python.nested.deeply_nested",+ "kind": "function",+ "signature": "def deeply_nested(x)",+ "start_line": 1,+ "end_line": 12,+ "docstring": null,+ "decorators": [],+ "visibility": "public",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "python",+ "parent_name": null,+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/python/nested.py::shallow",+ "name": "shallow",+ "qualified_name": "lang_samples.python.nested.shallow",+ "kind": "function",+ "signature": "def shallow(x)",+ "start_line": 15,+ "end_line": 16,+ "docstring": null,+ "decorators": [],+ "visibility": "public",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "python",+ "parent_name": null,+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ }+ ],+ "imports": [],+ "exports": [+ "deeply_nested",+ "shallow"+ ],+ "export_aliases": {},+ "calls": [],+ "heritage": [],+ "docstring": null,+ "parse_errors": [],+ "content_hash": "2c1c793df4efc59a9401c8c6232deb507cd726e83165d6d7799c093adf74b508",+ "type_refs": [],+ "local_refs": [],+ "registrars": [],+ "references": []+ },+ "python/perf_io_in_loop.py": {+ "file_info": {+ "path": "lang_samples/python/perf_io_in_loop.py",+ "language": "python",+ "size_bytes": 2271,+ "is_test": false,+ "is_config": false,+ "is_api_contract": false,+ "is_entry_point": false,+ "is_manifest_entry": false,+ "is_reachability_root": false+ },+ "symbols": [+ {+ "id": "lang_samples/python/perf_io_in_loop.py::db_execute_in_loop",+ "name": "db_execute_in_loop",+ "qualified_name": "lang_samples.python.perf_io_in_loop.db_execute_in_loop",+ "kind": "function",+ "signature": "def db_execute_in_loop(session, repos)",+ "start_line": 18,+ "end_line": 20,+ "docstring": null,+ "decorators": [],+ "visibility": "public",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "python",+ "parent_name": null,+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/python/perf_io_in_loop.py::subprocess_in_loop",+ "name": "subprocess_in_loop",+ "qualified_name": "lang_samples.python.perf_io_in_loop.subprocess_in_loop",+ "kind": "function",+ "signature": "def subprocess_in_loop(paths)",+ "start_line": 23,+ "end_line": 25,+ "docstring": null,+ "decorators": [],+ "visibility": "public",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "python",+ "parent_name": null,+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/python/perf_io_in_loop.py::http_in_loop",+ "name": "http_in_loop",+ "qualified_name": "lang_samples.python.perf_io_in_loop.http_in_loop",+ "kind": "function",+ "signature": "def http_in_loop(urls)",+ "start_line": 28,+ "end_line": 30,+ "docstring": null,+ "decorators": [],+ "visibility": "public",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "python",+ "parent_name": null,+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/python/perf_io_in_loop.py::await_http_in_loop",+ "name": "await_http_in_loop",+ "qualified_name": "lang_samples.python.perf_io_in_loop.await_http_in_loop",+ "kind": "function",+ "signature": "async def await_http_in_loop(client, urls)",+ "start_line": 33,+ "end_line": 35,+ "docstring": null,+ "decorators": [],+ "visibility": "public",+ "is_async": true,+ "complexity_estimate": 1,+ "language": "python",+ "parent_name": null,+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/python/perf_io_in_loop.py::string_concat_in_loop",+ "name": "string_concat_in_loop",+ "qualified_name": "lang_samples.python.perf_io_in_loop.string_concat_in_loop",+ "kind": "function",+ "signature": "def string_concat_in_loop(rows)",+ "start_line": 38,+ "end_line": 42,+ "docstring": null,+ "decorators": [],+ "visibility": "public",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "python",+ "parent_name": null,+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/python/perf_io_in_loop.py::blocking_in_async",+ "name": "blocking_in_async",+ "qualified_name": "lang_samples.python.perf_io_in_loop.blocking_in_async",+ "kind": "function",+ "signature": "async def blocking_in_async(urls)",+ "start_line": 45,+ "end_line": 47,+ "docstring": null,+ "decorators": [],+ "visibility": "public",+ "is_async": true,+ "complexity_estimate": 1,+ "language": "python",+ "parent_name": null,+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/python/perf_io_in_loop.py::sink_in_loop_header",+ "name": "sink_in_loop_header",+ "qualified_name": "lang_samples.python.perf_io_in_loop.sink_in_loop_header",+ "kind": "function",+ "signature": "def sink_in_loop_header(session, q)",+ "start_line": 51,+ "end_line": 53,+ "docstring": null,+ "decorators": [],+ "visibility": "public",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "python",+ "parent_name": null,+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/python/perf_io_in_loop.py::constant_range",+ "name": "constant_range",+ "qualified_name": "lang_samples.python.perf_io_in_loop.constant_range",+ "kind": "function",+ "signature": "def constant_range(paths)",+ "start_line": 56,+ "end_line": 58,+ "docstring": null,+ "decorators": [],+ "visibility": "public",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "python",+ "parent_name": null,+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/python/perf_io_in_loop.py::constant_literal",+ "name": "constant_literal",+ "qualified_name": "lang_samples.python.perf_io_in_loop.constant_literal",+ "kind": "function",+ "signature": "def constant_literal(client)",+ "start_line": 61,+ "end_line": 63,+ "docstring": null,+ "decorators": [],+ "visibility": "public",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "python",+ "parent_name": null,+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/python/perf_io_in_loop.py::query_builder_in_loop",+ "name": "query_builder_in_loop",+ "qualified_name": "lang_samples.python.perf_io_in_loop.query_builder_in_loop",+ "kind": "function",+ "signature": "def query_builder_in_loop(repos)",+ "start_line": 66,+ "end_line": 68,+ "docstring": null,+ "decorators": [],+ "visibility": "public",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "python",+ "parent_name": null,+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/python/perf_io_in_loop.py::pure_call_in_loop",+ "name": "pure_call_in_loop",+ "qualified_name": "lang_samples.python.perf_io_in_loop.pure_call_in_loop",+ "kind": "function",+ "signature": "def pure_call_in_loop(items)",+ "start_line": 71,+ "end_line": 75,+ "docstring": null,+ "decorators": [],+ "visibility": "public",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "python",+ "parent_name": null,+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/python/perf_io_in_loop.py::sink_outside_loop",+ "name": "sink_outside_loop",+ "qualified_name": "lang_samples.python.perf_io_in_loop.sink_outside_loop",+ "kind": "function",+ "signature": "def sink_outside_loop(session, q)",+ "start_line": 78,+ "end_line": 80,+ "docstring": null,+ "decorators": [],+ "visibility": "public",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "python",+ "parent_name": null,+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/python/perf_io_in_loop.py::open_in_loop",+ "name": "open_in_loop",+ "qualified_name": "lang_samples.python.perf_io_in_loop.open_in_loop",+ "kind": "function",+ "signature": "def open_in_loop(paths)",+ "start_line": 83,+ "end_line": 85,+ "docstring": null,+ "decorators": [],+ "visibility": "public",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "python",+ "parent_name": null,+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ }+ ],+ "imports": [+ {+ "raw_statement": "import os",+ "module_path": "os",+ "imported_names": [+ "os"+ ],+ "is_relative": false,+ "resolved_file": null,+ "bindings": [+ {+ "local_name": "os",+ "exported_name": null,+ "source_file": null,+ "is_module_alias": true,+ "is_global": false,+ "is_static_import": false,+ "line": null,+ "column": null+ }+ ],+ "is_reexport": false,+ "is_module_declaration": false,+ "type_only": false,+ "deferred": false+ },+ {+ "raw_statement": "import subprocess",+ "module_path": "subprocess",+ "imported_names": [+ "subprocess"+ ],+ "is_relative": false,+ "resolved_file": null,+ "bindings": [+ {+ "local_name": "subprocess",+ "exported_name": null,+ "source_file": null,+ "is_module_alias": true,+ "is_global": false,+ "is_static_import": false,+ "line": null,+ "column": null+ }+ ],+ "is_reexport": false,+ "is_module_declaration": false,+ "type_only": false,+ "deferred": false+ },+ {+ "raw_statement": "import time",+ "module_path": "time",+ "imported_names": [+ "time"+ ],+ "is_relative": false,+ "resolved_file": null,+ "bindings": [+ {+ "local_name": "time",+ "exported_name": null,+ "source_file": null,+ "is_module_alias": true,+ "is_global": false,+ "is_static_import": false,+ "line": null,+ "column": null+ }+ ],+ "is_reexport": false,+ "is_module_declaration": false,+ "type_only": false,+ "deferred": false+ },+ {+ "raw_statement": "import httpx",+ "module_path": "httpx",+ "imported_names": [+ "httpx"+ ],+ "is_relative": false,+ "resolved_file": null,+ "bindings": [+ {+ "local_name": "httpx",+ "exported_name": null,+ "source_file": null,+ "is_module_alias": true,+ "is_global": false,+ "is_static_import": false,+ "line": null,+ "column": null+ }+ ],+ "is_reexport": false,+ "is_module_declaration": false,+ "type_only": false,+ "deferred": false+ },+ {+ "raw_statement": "import requests",+ "module_path": "requests",+ "imported_names": [+ "requests"+ ],+ "is_relative": false,+ "resolved_file": null,+ "bindings": [+ {+ "local_name": "requests",+ "exported_name": null,+ "source_file": null,+ "is_module_alias": true,+ "is_global": false,+ "is_static_import": false,+ "line": null,+ "column": null+ }+ ],+ "is_reexport": false,+ "is_module_declaration": false,+ "type_only": false,+ "deferred": false+ },+ {+ "raw_statement": "from sqlalchemy import select",+ "module_path": "sqlalchemy",+ "imported_names": [+ "select"+ ],+ "is_relative": false,+ "resolved_file": null,+ "bindings": [+ {+ "local_name": "select",+ "exported_name": "select",+ "source_file": null,+ "is_module_alias": false,+ "is_global": false,+ "is_static_import": false,+ "line": null,+ "column": null+ }+ ],+ "is_reexport": false,+ "is_module_declaration": false,+ "type_only": false,+ "deferred": false+ }+ ],+ "exports": [+ "db_execute_in_loop",+ "subprocess_in_loop",+ "http_in_loop",+ "await_http_in_loop",+ "string_concat_in_loop",+ "blocking_in_async",+ "sink_in_loop_header",+ "constant_range",+ "constant_literal",+ "query_builder_in_loop",+ "pure_call_in_loop",+ "sink_outside_loop",+ "open_in_loop"+ ],+ "export_aliases": {},+ "calls": [+ {+ "target_name": "execute",+ "receiver_name": "session",+ "caller_symbol_id": "lang_samples/python/perf_io_in_loop.py::db_execute_in_loop",+ "line": 20,+ "argument_count": 1,+ "receiver_call": null,+ "scope_name": null,+ "edge_type": "calls",+ "supplied_props": null,+ "bare_name_fallback": false,+ "spawned": false,+ "argument_types": null,+ "argument_names": null+ },+ {+ "target_name": "select",+ "receiver_name": null,+ "caller_symbol_id": "lang_samples/python/perf_io_in_loop.py::db_execute_in_loop",+ "line": 20,+ "argument_count": 1,+ "receiver_call": null,+ "scope_name": null,+ "edge_type": "calls",+ "supplied_props": null,+ "bare_name_fallback": false,+ "spawned": false,+ "argument_types": null,+ "argument_names": null+ },+ {+ "target_name": "run",+ "receiver_name": "subprocess",+ "caller_symbol_id": "lang_samples/python/perf_io_in_loop.py::subprocess_in_loop",+ "line": 25,+ "argument_count": 2,+ "receiver_call": null,+ "scope_name": null,+ "edge_type": "calls",+ "supplied_props": null,+ "bare_name_fallback": false,+ "spawned": false,+ "argument_types": null,+ "argument_names": null+ },+ {+ "target_name": "get",+ "receiver_name": "requests",+ "caller_symbol_id": "lang_samples/python/perf_io_in_loop.py::http_in_loop",+ "line": 30,+ "argument_count": 1,+ "receiver_call": null,+ "scope_name": null,+ "edge_type": "calls",+ "supplied_props": null,+ "bare_name_fallback": false,+ "spawned": false,+ "argument_types": null,+ "argument_names": null+ },+ {+ "target_name": "get",+ "receiver_name": "client",+ "caller_symbol_id": "lang_samples/python/perf_io_in_loop.py::await_http_in_loop",+ "line": 35,+ "argument_count": 1,+ "receiver_call": null,+ "scope_name": null,+ "edge_type": "calls",+ "supplied_props": null,+ "bare_name_fallback": false,+ "spawned": false,+ "argument_types": null,+ "argument_names": null+ },+ {+ "target_name": "sleep",+ "receiver_name": "time",+ "caller_symbol_id": "lang_samples/python/perf_io_in_loop.py::blocking_in_async",+ "line": 46,+ "argument_count": 1,+ "receiver_call": null,+ "scope_name": null,+ "edge_type": "calls",+ "supplied_props": null,+ "bare_name_fallback": false,+ "spawned": false,+ "argument_types": null,+ "argument_names": null+ },+ {+ "target_name": "get",+ "receiver_name": "requests",+ "caller_symbol_id": "lang_samples/python/perf_io_in_loop.py::blocking_in_async",+ "line": 47,+ "argument_count": 1,+ "receiver_call": null,+ "scope_name": null,+ "edge_type": "calls",+ "supplied_props": null,+ "bare_name_fallback": false,+ "spawned": false,+ "argument_types": null,+ "argument_names": null+ },+ {+ "target_name": "execute",+ "receiver_name": "session",+ "caller_symbol_id": "lang_samples/python/perf_io_in_loop.py::sink_in_loop_header",+ "line": 52,+ "argument_count": 1,+ "receiver_call": null,+ "scope_name": null,+ "edge_type": "calls",+ "supplied_props": null,+ "bare_name_fallback": false,+ "spawned": false,+ "argument_types": null,+ "argument_names": null+ },+ {+ "target_name": "scalars",+ "receiver_name": null,+ "caller_symbol_id": "lang_samples/python/perf_io_in_loop.py::sink_in_loop_header",+ "line": 52,+ "argument_count": 0,+ "receiver_call": {+ "target_name": "execute",+ "receiver_name": "session",+ "argument_count": 1+ },+ "scope_name": null,+ "edge_type": "calls",+ "supplied_props": null,+ "bare_name_fallback": false,+ "spawned": false,+ "argument_types": null,+ "argument_names": null+ },+ {+ "target_name": "process",+ "receiver_name": null,+ "caller_symbol_id": "lang_samples/python/perf_io_in_loop.py::sink_in_loop_header",+ "line": 53,+ "argument_count": 1,+ "receiver_call": null,+ "scope_name": null,+ "edge_type": "calls",+ "supplied_props": null,+ "bare_name_fallback": false,+ "spawned": false,+ "argument_types": null,+ "argument_names": null+ },+ {+ "target_name": "run",+ "receiver_name": "subprocess",+ "caller_symbol_id": "lang_samples/python/perf_io_in_loop.py::constant_range",+ "line": 58,+ "argument_count": 1,+ "receiver_call": null,+ "scope_name": null,+ "edge_type": "calls",+ "supplied_props": null,+ "bare_name_fallback": false,+ "spawned": false,+ "argument_types": null,+ "argument_names": null+ },+ {+ "target_name": "get",+ "receiver_name": "client",+ "caller_symbol_id": "lang_samples/python/perf_io_in_loop.py::constant_literal",+ "line": 63,+ "argument_count": 1,+ "receiver_call": null,+ "scope_name": null,+ "edge_type": "calls",+ "supplied_props": null,+ "bare_name_fallback": false,+ "spawned": false,+ "argument_types": null,+ "argument_names": null+ },+ {+ "target_name": "select",+ "receiver_name": null,+ "caller_symbol_id": "lang_samples/python/perf_io_in_loop.py::query_builder_in_loop",+ "line": 68,+ "argument_count": 1,+ "receiver_call": null,+ "scope_name": null,+ "edge_type": "calls",+ "supplied_props": null,+ "bare_name_fallback": false,+ "spawned": false,+ "argument_types": null,+ "argument_names": null+ },+ {+ "target_name": "where",+ "receiver_name": null,+ "caller_symbol_id": "lang_samples/python/perf_io_in_loop.py::query_builder_in_loop",+ "line": 68,+ "argument_count": 1,+ "receiver_call": {+ "target_name": "select",+ "receiver_name": null,+ "argument_count": 1+ },+ "scope_name": null,+ "edge_type": "calls",+ "supplied_props": null,+ "bare_name_fallback": false,+ "spawned": false,+ "argument_types": null,+ "argument_names": null+ },+ {+ "target_name": "compute",+ "receiver_name": null,+ "caller_symbol_id": "lang_samples/python/perf_io_in_loop.py::pure_call_in_loop",+ "line": 74,+ "argument_count": 1,+ "receiver_call": null,+ "scope_name": null,+ "edge_type": "calls",+ "supplied_props": null,+ "bare_name_fallback": false,+ "spawned": false,+ "argument_types": null,+ "argument_names": null+ },+ {+ "target_name": "execute",+ "receiver_name": "session",+ "caller_symbol_id": "lang_samples/python/perf_io_in_loop.py::sink_outside_loop",+ "line": 79,+ "argument_count": 1,+ "receiver_call": null,+ "scope_name": null,+ "edge_type": "calls",+ "supplied_props": null,+ "bare_name_fallback": false,+ "spawned": false,+ "argument_types": null,+ "argument_names": null+ },+ {+ "target_name": "read",+ "receiver_name": null,+ "caller_symbol_id": "lang_samples/python/perf_io_in_loop.py::open_in_loop",+ "line": 85,+ "argument_count": 0,+ "receiver_call": {+ "target_name": "open",+ "receiver_name": null,+ "argument_count": 1+ },+ "scope_name": null,+ "edge_type": "calls",+ "supplied_props": null,+ "bare_name_fallback": false,+ "spawned": false,+ "argument_types": null,+ "argument_names": null+ }+ ],+ "heritage": [],+ "docstring": "Fixture for the performance pass (io_in_loop / string_concat / blocking_sync).\n\nHand-counted expectations live in ``test_perf_io_in_loop.py``. Every POSITIVE is\na genuine per-iteration I/O boundary; every NEGATIVE is a shape the loop-body\nscoping / constant-loop skip / execution-sink gate must NOT flag.",+ "parse_errors": [],+ "content_hash": "dc2ec66668f67726c655ec649a182429540dda240fbe75324d33f550fcf297ec",+ "type_refs": [],+ "local_refs": [],+ "registrars": [],+ "references": []+ },+ "python/py_overload_init.py": {+ "file_info": {+ "path": "lang_samples/python/py_overload_init.py",+ "language": "python",+ "size_bytes": 645,+ "is_test": false,+ "is_config": false,+ "is_api_contract": false,+ "is_entry_point": false,+ "is_manifest_entry": false,+ "is_reachability_root": false+ },+ "symbols": [+ {+ "id": "lang_samples/python/py_overload_init.py::Client",+ "name": "Client",+ "qualified_name": "lang_samples.python.py_overload_init.Client",+ "kind": "class",+ "signature": "class Client",+ "start_line": 7,+ "end_line": 24,+ "docstring": null,+ "decorators": [],+ "visibility": "public",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "python",+ "parent_name": null,+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/python/py_overload_init.py::Client::__init__",+ "name": "__init__",+ "qualified_name": "lang_samples.python.py_overload_init.Client.__init__",+ "kind": "method",+ "signature": "def __init__(self, url: str) -> None",+ "start_line": 9,+ "end_line": 9,+ "docstring": null,+ "decorators": [+ "@overload # a comment inside the decorator node"+ ],+ "visibility": "public",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "python",+ "parent_name": "Client",+ "is_exported_symbol": false,+ "is_declaration": true,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/python/py_overload_init.py::Client::__init__",+ "name": "__init__",+ "qualified_name": "lang_samples.python.py_overload_init.Client.__init__",+ "kind": "method",+ "signature": "def __init__(self, url: str, timeout: float) -> None",+ "start_line": 12,+ "end_line": 12,+ "docstring": null,+ "decorators": [+ "@typing.overload"+ ],+ "visibility": "public",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "python",+ "parent_name": "Client",+ "is_exported_symbol": false,+ "is_declaration": true,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/python/py_overload_init.py::Client::__init__",+ "name": "__init__",+ "qualified_name": "lang_samples.python.py_overload_init.Client.__init__",+ "kind": "method",+ "signature": "def __init__(self, url, timeout=None)",+ "start_line": 14,+ "end_line": 17,+ "docstring": null,+ "decorators": [],+ "visibility": "public",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "python",+ "parent_name": "Client",+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/python/py_overload_init.py::Client::connect",+ "name": "connect",+ "qualified_name": "lang_samples.python.py_overload_init.Client.connect",+ "kind": "method",+ "signature": "def connect(self)",+ "start_line": 19,+ "end_line": 20,+ "docstring": null,+ "decorators": [],+ "visibility": "public",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "python",+ "parent_name": "Client",+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/python/py_overload_init.py::Client::build",+ "name": "build",+ "qualified_name": "lang_samples.python.py_overload_init.Client.build",+ "kind": "method",+ "signature": "def build(url)",+ "start_line": 23,+ "end_line": 24,+ "docstring": null,+ "decorators": [+ "@staticmethod"+ ],+ "visibility": "public",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "python",+ "parent_name": "Client",+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/python/py_overload_init.py::parse",+ "name": "parse",+ "qualified_name": "lang_samples.python.py_overload_init.parse",+ "kind": "function",+ "signature": "def parse(raw: str) -> str",+ "start_line": 28,+ "end_line": 28,+ "docstring": null,+ "decorators": [+ "@typing_extensions.overload"+ ],+ "visibility": "public",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "python",+ "parent_name": null,+ "is_exported_symbol": false,+ "is_declaration": true,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/python/py_overload_init.py::parse",+ "name": "parse",+ "qualified_name": "lang_samples.python.py_overload_init.parse",+ "kind": "function",+ "signature": "def parse(raw: bytes) -> bytes",+ "start_line": 32,+ "end_line": 32,+ "docstring": null,+ "decorators": [+ "@overload"+ ],+ "visibility": "public",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "python",+ "parent_name": null,+ "is_exported_symbol": false,+ "is_declaration": true,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/python/py_overload_init.py::parse",+ "name": "parse",+ "qualified_name": "lang_samples.python.py_overload_init.parse",+ "kind": "function",+ "signature": "def parse(raw)",+ "start_line": 35,+ "end_line": 36,+ "docstring": null,+ "decorators": [],+ "visibility": "public",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "python",+ "parent_name": null,+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ }+ ],+ "imports": [+ {+ "raw_statement": "import typing",+ "module_path": "typing",+ "imported_names": [+ "typing"+ ],+ "is_relative": false,+ "resolved_file": null,+ "bindings": [+ {+ "local_name": "typing",+ "exported_name": null,+ "source_file": null,+ "is_module_alias": true,+ "is_global": false,+ "is_static_import": false,+ "line": null,+ "column": null+ }+ ],+ "is_reexport": false,+ "is_module_declaration": false,+ "type_only": false,+ "deferred": false+ },+ {+ "raw_statement": "from typing import overload",+ "module_path": "typing",+ "imported_names": [+ "overload"+ ],+ "is_relative": false,+ "resolved_file": null,+ "bindings": [+ {+ "local_name": "overload",+ "exported_name": "overload",+ "source_file": null,+ "is_module_alias": false,+ "is_global": false,+ "is_static_import": false,+ "line": null,+ "column": null+ }+ ],+ "is_reexport": false,+ "is_module_declaration": false,+ "type_only": false,+ "deferred": false+ },+ {+ "raw_statement": "import typing_extensions",+ "module_path": "typing_extensions",+ "imported_names": [+ "typing_extensions"+ ],+ "is_relative": false,+ "resolved_file": null,+ "bindings": [+ {+ "local_name": "typing_extensions",+ "exported_name": null,+ "source_file": null,+ "is_module_alias": true,+ "is_global": false,+ "is_static_import": false,+ "line": null,+ "column": null+ }+ ],+ "is_reexport": false,+ "is_module_declaration": false,+ "type_only": false,+ "deferred": false+ }+ ],+ "exports": [+ "Client",+ "parse",+ "parse",+ "parse"+ ],+ "export_aliases": {},+ "calls": [+ {+ "target_name": "connect",+ "receiver_name": "self",+ "caller_symbol_id": "lang_samples/python/py_overload_init.py::Client::__init__",+ "line": 17,+ "argument_count": 0,+ "receiver_call": null,+ "scope_name": null,+ "edge_type": "calls",+ "supplied_props": null,+ "bare_name_fallback": false,+ "spawned": false,+ "argument_types": null,+ "argument_names": null+ },+ {+ "target_name": "Client",+ "receiver_name": null,+ "caller_symbol_id": "lang_samples/python/py_overload_init.py::Client::build",+ "line": 24,+ "argument_count": 1,+ "receiver_call": null,+ "scope_name": null,+ "edge_type": "calls",+ "supplied_props": null,+ "bare_name_fallback": false,+ "spawned": false,+ "argument_types": null,+ "argument_names": null+ }+ ],+ "heritage": [],+ "docstring": null,+ "parse_errors": [],+ "content_hash": "0a0238621d8bf168f1854f0e7f3fe991147766e962abb4fda86bda2d9bd85292",+ "type_refs": [],+ "local_refs": [],+ "registrars": [],+ "references": []+ }+}diff --git a/tests/unit/ingestion/parser/golden/ruby.json b/tests/unit/ingestion/parser/golden/ruby.jsonnew file mode 100644index 000000000..094d40028--- /dev/null+++ b/tests/unit/ingestion/parser/golden/ruby.json@@ -0,0 +1,1691 @@+{+ "ruby/assertions.rb": {+ "file_info": {+ "path": "lang_samples/ruby/assertions.rb",+ "language": "ruby",+ "size_bytes": 376,+ "is_test": false,+ "is_config": false,+ "is_api_contract": false,+ "is_entry_point": false,+ "is_manifest_entry": false,+ "is_reachability_root": false+ },+ "symbols": [+ {+ "id": "lang_samples/ruby/assertions.rb::TestFoo",+ "name": "TestFoo",+ "qualified_name": "lang_samples.ruby.assertions.TestFoo",+ "kind": "class",+ "signature": "TestFoo",+ "start_line": 3,+ "end_line": 19,+ "docstring": null,+ "decorators": [],+ "visibility": "public",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "ruby",+ "parent_name": null,+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/ruby/assertions.rb::TestFoo::test_many_asserts",+ "name": "test_many_asserts",+ "qualified_name": "lang_samples.ruby.assertions.TestFoo.test_many_asserts",+ "kind": "method",+ "signature": "test_many_asserts",+ "start_line": 4,+ "end_line": 11,+ "docstring": null,+ "decorators": [],+ "visibility": "public",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "ruby",+ "parent_name": "TestFoo",+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/ruby/assertions.rb::TestFoo::test_few_asserts",+ "name": "test_few_asserts",+ "qualified_name": "lang_samples.ruby.assertions.TestFoo.test_few_asserts",+ "kind": "method",+ "signature": "test_few_asserts",+ "start_line": 13,+ "end_line": 18,+ "docstring": null,+ "decorators": [],+ "visibility": "public",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "ruby",+ "parent_name": "TestFoo",+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ }+ ],+ "imports": [+ {+ "raw_statement": "require \"minitest/autorun\"",+ "module_path": "minitest/autorun",+ "imported_names": [+ "autorun"+ ],+ "is_relative": false,+ "resolved_file": null,+ "bindings": [+ {+ "local_name": "autorun",+ "exported_name": null,+ "source_file": "minitest/autorun",+ "is_module_alias": true,+ "is_global": false,+ "is_static_import": false,+ "line": null,+ "column": null+ }+ ],+ "is_reexport": false,+ "is_module_declaration": false,+ "type_only": false,+ "deferred": false+ }+ ],+ "exports": [+ "TestFoo"+ ],+ "export_aliases": {},+ "calls": [+ {+ "target_name": "assert_equal",+ "receiver_name": null,+ "caller_symbol_id": "lang_samples/ruby/assertions.rb::TestFoo::test_many_asserts",+ "line": 6,+ "argument_count": 2,+ "receiver_call": null,+ "scope_name": null,+ "edge_type": "calls",+ "supplied_props": null,+ "bare_name_fallback": false,+ "spawned": false,+ "argument_types": null,+ "argument_names": null+ },+ {+ "target_name": "assert",+ "receiver_name": null,+ "caller_symbol_id": "lang_samples/ruby/assertions.rb::TestFoo::test_many_asserts",+ "line": 7,+ "argument_count": 1,+ "receiver_call": null,+ "scope_name": null,+ "edge_type": "calls",+ "supplied_props": null,+ "bare_name_fallback": false,+ "spawned": false,+ "argument_types": null,+ "argument_names": null+ },+ {+ "target_name": "assert_includes",+ "receiver_name": null,+ "caller_symbol_id": "lang_samples/ruby/assertions.rb::TestFoo::test_many_asserts",+ "line": 8,+ "argument_count": 2,+ "receiver_call": null,+ "scope_name": null,+ "edge_type": "calls",+ "supplied_props": null,+ "bare_name_fallback": false,+ "spawned": false,+ "argument_types": null,+ "argument_names": null+ },+ {+ "target_name": "assert_equal",+ "receiver_name": null,+ "caller_symbol_id": "lang_samples/ruby/assertions.rb::TestFoo::test_many_asserts",+ "line": 9,+ "argument_count": 2,+ "receiver_call": null,+ "scope_name": null,+ "edge_type": "calls",+ "supplied_props": null,+ "bare_name_fallback": false,+ "spawned": false,+ "argument_types": null,+ "argument_names": null+ },+ {+ "target_name": "assert_operator",+ "receiver_name": null,+ "caller_symbol_id": "lang_samples/ruby/assertions.rb::TestFoo::test_many_asserts",+ "line": 10,+ "argument_count": 3,+ "receiver_call": null,+ "scope_name": null,+ "edge_type": "calls",+ "supplied_props": null,+ "bare_name_fallback": false,+ "spawned": false,+ "argument_types": null,+ "argument_names": null+ },+ {+ "target_name": "assert_equal",+ "receiver_name": null,+ "caller_symbol_id": "lang_samples/ruby/assertions.rb::TestFoo::test_few_asserts",+ "line": 15,+ "argument_count": 2,+ "receiver_call": null,+ "scope_name": null,+ "edge_type": "calls",+ "supplied_props": null,+ "bare_name_fallback": false,+ "spawned": false,+ "argument_types": null,+ "argument_names": null+ },+ {+ "target_name": "refute_nil",+ "receiver_name": null,+ "caller_symbol_id": "lang_samples/ruby/assertions.rb::TestFoo::test_few_asserts",+ "line": 17,+ "argument_count": 1,+ "receiver_call": null,+ "scope_name": null,+ "edge_type": "calls",+ "supplied_props": null,+ "bare_name_fallback": false,+ "spawned": false,+ "argument_types": null,+ "argument_names": null+ }+ ],+ "heritage": [+ {+ "child_name": "TestFoo",+ "parent_name": "Test",+ "kind": "extends",+ "line": 3+ }+ ],+ "docstring": null,+ "parse_errors": [],+ "content_hash": "f1fc1488093ce806dd8e8b6a04c8e92b26d64020a26f9f7ce12b82364b20287d",+ "type_refs": [],+ "local_refs": [],+ "registrars": [],+ "references": []+ },+ "ruby/classes.rb": {+ "file_info": {+ "path": "lang_samples/ruby/classes.rb",+ "language": "ruby",+ "size_bytes": 589,+ "is_test": false,+ "is_config": false,+ "is_api_contract": false,+ "is_entry_point": false,+ "is_manifest_entry": false,+ "is_reachability_root": false+ },+ "symbols": [+ {+ "id": "lang_samples/ruby/classes.rb::Cohesive",+ "name": "Cohesive",+ "qualified_name": "lang_samples.ruby.classes.Cohesive",+ "kind": "class",+ "signature": "Cohesive",+ "start_line": 5,+ "end_line": 17,+ "docstring": "Class-metrics fixture: method counts / god-class facts work off class_kinds;\nLCOM4 deliberately sits at its \"no signal\" valve for Ruby (receiver-less\n@ivar idiom), so even the splintered class must report lcom4 == 1.",+ "decorators": [],+ "visibility": "public",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "ruby",+ "parent_name": null,+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/ruby/classes.rb::Cohesive::initialize",+ "name": "initialize",+ "qualified_name": "lang_samples.ruby.classes.Cohesive.initialize",+ "kind": "method",+ "signature": "initialize",+ "start_line": 6,+ "end_line": 8,+ "docstring": null,+ "decorators": [],+ "visibility": "public",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "ruby",+ "parent_name": "Cohesive",+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/ruby/classes.rb::Cohesive::bump",+ "name": "bump",+ "qualified_name": "lang_samples.ruby.classes.Cohesive.bump",+ "kind": "method",+ "signature": "bump",+ "start_line": 10,+ "end_line": 12,+ "docstring": null,+ "decorators": [],+ "visibility": "public",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "ruby",+ "parent_name": "Cohesive",+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/ruby/classes.rb::Cohesive::read",+ "name": "read",+ "qualified_name": "lang_samples.ruby.classes.Cohesive.read",+ "kind": "method",+ "signature": "read",+ "start_line": 14,+ "end_line": 16,+ "docstring": null,+ "decorators": [],+ "visibility": "public",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "ruby",+ "parent_name": "Cohesive",+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/ruby/classes.rb::Splintered",+ "name": "Splintered",+ "qualified_name": "lang_samples.ruby.classes.Splintered",+ "kind": "class",+ "signature": "Splintered",+ "start_line": 19,+ "end_line": 43,+ "docstring": null,+ "decorators": [],+ "visibility": "public",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "ruby",+ "parent_name": null,+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/ruby/classes.rb::Splintered::a",+ "name": "a",+ "qualified_name": "lang_samples.ruby.classes.Splintered.a",+ "kind": "method",+ "signature": "a",+ "start_line": 20,+ "end_line": 22,+ "docstring": null,+ "decorators": [],+ "visibility": "public",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "ruby",+ "parent_name": "Splintered",+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/ruby/classes.rb::Splintered::b",+ "name": "b",+ "qualified_name": "lang_samples.ruby.classes.Splintered.b",+ "kind": "method",+ "signature": "b",+ "start_line": 24,+ "end_line": 26,+ "docstring": null,+ "decorators": [],+ "visibility": "public",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "ruby",+ "parent_name": "Splintered",+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/ruby/classes.rb::Splintered::c",+ "name": "c",+ "qualified_name": "lang_samples.ruby.classes.Splintered.c",+ "kind": "method",+ "signature": "c",+ "start_line": 28,+ "end_line": 30,+ "docstring": null,+ "decorators": [],+ "visibility": "public",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "ruby",+ "parent_name": "Splintered",+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/ruby/classes.rb::Splintered::d",+ "name": "d",+ "qualified_name": "lang_samples.ruby.classes.Splintered.d",+ "kind": "method",+ "signature": "d",+ "start_line": 32,+ "end_line": 34,+ "docstring": null,+ "decorators": [],+ "visibility": "public",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "ruby",+ "parent_name": "Splintered",+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/ruby/classes.rb::Splintered::e",+ "name": "e",+ "qualified_name": "lang_samples.ruby.classes.Splintered.e",+ "kind": "method",+ "signature": "e",+ "start_line": 36,+ "end_line": 42,+ "docstring": null,+ "decorators": [],+ "visibility": "public",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "ruby",+ "parent_name": "Splintered",+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/ruby/classes.rb::Util",+ "name": "Util",+ "qualified_name": "lang_samples.ruby.classes.Util",+ "kind": "module",+ "signature": "Util",+ "start_line": 45,+ "end_line": 53,+ "docstring": null,+ "decorators": [],+ "visibility": "public",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "ruby",+ "parent_name": null,+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/ruby/classes.rb::Util::helper_one",+ "name": "helper_one",+ "qualified_name": "lang_samples.ruby.classes.Util.helper_one",+ "kind": "method",+ "signature": "helper_one",+ "start_line": 46,+ "end_line": 48,+ "docstring": null,+ "decorators": [],+ "visibility": "public",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "ruby",+ "parent_name": "Util",+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/ruby/classes.rb::Util::helper_two",+ "name": "helper_two",+ "qualified_name": "lang_samples.ruby.classes.Util.helper_two",+ "kind": "method",+ "signature": "helper_two",+ "start_line": 50,+ "end_line": 52,+ "docstring": null,+ "decorators": [],+ "visibility": "public",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "ruby",+ "parent_name": "Util",+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ }+ ],+ "imports": [],+ "exports": [+ "Cohesive",+ "Splintered",+ "Util"+ ],+ "export_aliases": {},+ "calls": [],+ "heritage": [],+ "docstring": "Class-metrics fixture: method counts / god-class facts work off class_kinds;\nLCOM4 deliberately sits at its \"no signal\" valve for Ruby (receiver-less\n@ivar idiom), so even the splintered class must report lcom4 == 1.",+ "parse_errors": [],+ "content_hash": "2459413217a77560c5c4756876d47247eb62cf81f609dfc3c816d1c03233a3fd",+ "type_refs": [],+ "local_refs": [],+ "registrars": [],+ "references": []+ },+ "ruby/nested.rb": {+ "file_info": {+ "path": "lang_samples/ruby/nested.rb",+ "language": "ruby",+ "size_bytes": 1090,+ "is_test": false,+ "is_config": false,+ "is_api_contract": false,+ "is_entry_point": false,+ "is_manifest_entry": false,+ "is_reachability_root": false+ },+ "symbols": [+ {+ "id": "lang_samples/ruby/nested.rb::deeply_nested",+ "name": "deeply_nested",+ "qualified_name": "lang_samples.ruby.nested.deeply_nested",+ "kind": "function",+ "signature": "deeply_nested(x)",+ "start_line": 3,+ "end_line": 14,+ "docstring": "Control-flow fixture for the Ruby complexity walker.",+ "decorators": [],+ "visibility": "public",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "ruby",+ "parent_name": null,+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/ruby/nested.rb::many_branches",+ "name": "many_branches",+ "qualified_name": "lang_samples.ruby.nested.many_branches",+ "kind": "function",+ "signature": "many_branches(a, b)",+ "start_line": 16,+ "end_line": 27,+ "docstring": null,+ "decorators": [],+ "visibility": "public",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "ruby",+ "parent_name": null,+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/ruby/nested.rb::wordy",+ "name": "wordy",+ "qualified_name": "lang_samples.ruby.nested.wordy",+ "kind": "function",+ "signature": "wordy(a, b)",+ "start_line": 29,+ "end_line": 31,+ "docstring": null,+ "decorators": [],+ "visibility": "public",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "ruby",+ "parent_name": null,+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/ruby/nested.rb::shallow",+ "name": "shallow",+ "qualified_name": "lang_samples.ruby.nested.shallow",+ "kind": "function",+ "signature": "shallow(x)",+ "start_line": 33,+ "end_line": 35,+ "docstring": null,+ "decorators": [],+ "visibility": "public",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "ruby",+ "parent_name": null,+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/ruby/nested.rb::block_heavy",+ "name": "block_heavy",+ "qualified_name": "lang_samples.ruby.nested.block_heavy",+ "kind": "function",+ "signature": "block_heavy(items)",+ "start_line": 37,+ "end_line": 41,+ "docstring": null,+ "decorators": [],+ "visibility": "public",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "ruby",+ "parent_name": null,+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/ruby/nested.rb::flat_case",+ "name": "flat_case",+ "qualified_name": "lang_samples.ruby.nested.flat_case",+ "kind": "function",+ "signature": "flat_case(x)",+ "start_line": 43,+ "end_line": 49,+ "docstring": null,+ "decorators": [],+ "visibility": "public",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "ruby",+ "parent_name": null,+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/ruby/nested.rb::heavy_case",+ "name": "heavy_case",+ "qualified_name": "lang_samples.ruby.nested.heavy_case",+ "kind": "function",+ "signature": "heavy_case(x)",+ "start_line": 51,+ "end_line": 60,+ "docstring": null,+ "decorators": [],+ "visibility": "public",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "ruby",+ "parent_name": null,+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/ruby/nested.rb::pattern_match",+ "name": "pattern_match",+ "qualified_name": "lang_samples.ruby.nested.pattern_match",+ "kind": "function",+ "signature": "pattern_match(x)",+ "start_line": 62,+ "end_line": 69,+ "docstring": null,+ "decorators": [],+ "visibility": "public",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "ruby",+ "parent_name": null,+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/ruby/nested.rb::risky_io",+ "name": "risky_io",+ "qualified_name": "lang_samples.ruby.nested.risky_io",+ "kind": "function",+ "signature": "risky_io(path)",+ "start_line": 71,+ "end_line": 81,+ "docstring": null,+ "decorators": [],+ "visibility": "public",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "ruby",+ "parent_name": null,+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/ruby/nested.rb::implicit_rescue",+ "name": "implicit_rescue",+ "qualified_name": "lang_samples.ruby.nested.implicit_rescue",+ "kind": "function",+ "signature": "implicit_rescue",+ "start_line": 83,+ "end_line": 87,+ "docstring": null,+ "decorators": [],+ "visibility": "public",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "ruby",+ "parent_name": null,+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/ruby/nested.rb::modifier_loops",+ "name": "modifier_loops",+ "qualified_name": "lang_samples.ruby.nested.modifier_loops",+ "kind": "function",+ "signature": "modifier_loops(x)",+ "start_line": 89,+ "end_line": 93,+ "docstring": null,+ "decorators": [],+ "visibility": "public",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "ruby",+ "parent_name": null,+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ }+ ],+ "imports": [],+ "exports": [+ "deeply_nested",+ "many_branches",+ "wordy",+ "shallow",+ "block_heavy",+ "flat_case",+ "heavy_case",+ "pattern_match",+ "risky_io",+ "implicit_rescue",+ "modifier_loops"+ ],+ "export_aliases": {},+ "calls": [+ {+ "target_name": "nil?",+ "receiver_name": "a",+ "caller_symbol_id": "lang_samples/ruby/nested.rb::many_branches",+ "line": 17,+ "argument_count": null,+ "receiver_call": null,+ "scope_name": null,+ "edge_type": "calls",+ "supplied_props": null,+ "bare_name_fallback": false,+ "spawned": false,+ "argument_types": null,+ "argument_names": null+ },+ {+ "target_name": "zero?",+ "receiver_name": "a",+ "caller_symbol_id": "lang_samples/ruby/nested.rb::many_branches",+ "line": 22,+ "argument_count": null,+ "receiver_call": null,+ "scope_name": null,+ "edge_type": "calls",+ "supplied_props": null,+ "bare_name_fallback": false,+ "spawned": false,+ "argument_types": null,+ "argument_names": null+ },+ {+ "target_name": "each",+ "receiver_name": "items",+ "caller_symbol_id": "lang_samples/ruby/nested.rb::block_heavy",+ "line": 38,+ "argument_count": null,+ "receiver_call": null,+ "scope_name": null,+ "edge_type": "calls",+ "supplied_props": null,+ "bare_name_fallback": false,+ "spawned": false,+ "argument_types": null,+ "argument_names": null+ },+ {+ "target_name": "map",+ "receiver_name": "group",+ "caller_symbol_id": "lang_samples/ruby/nested.rb::block_heavy",+ "line": 39,+ "argument_count": null,+ "receiver_call": null,+ "scope_name": null,+ "edge_type": "calls",+ "supplied_props": null,+ "bare_name_fallback": false,+ "spawned": false,+ "argument_types": null,+ "argument_names": null+ },+ {+ "target_name": "odd?",+ "receiver_name": "x",+ "caller_symbol_id": "lang_samples/ruby/nested.rb::heavy_case",+ "line": 54,+ "argument_count": null,+ "receiver_call": null,+ "scope_name": null,+ "edge_type": "calls",+ "supplied_props": null,+ "bare_name_fallback": false,+ "spawned": false,+ "argument_types": null,+ "argument_names": null+ },+ {+ "target_name": "read",+ "receiver_name": "File",+ "caller_symbol_id": "lang_samples/ruby/nested.rb::risky_io",+ "line": 73,+ "argument_count": null,+ "receiver_call": null,+ "scope_name": null,+ "edge_type": "calls",+ "supplied_props": null,+ "bare_name_fallback": true,+ "spawned": false,+ "argument_types": null,+ "argument_names": null+ }+ ],+ "heritage": [],+ "docstring": "Control-flow fixture for the Ruby complexity walker.",+ "parse_errors": [],+ "content_hash": "2a38411f2e58f62b77150e98ac997dfd214c2389e0541f2b0ec714b8b0a432af",+ "type_refs": [],+ "local_refs": [],+ "registrars": [],+ "references": []+ },+ "ruby/perf_io_in_loop.rb": {+ "file_info": {+ "path": "lang_samples/ruby/perf_io_in_loop.rb",+ "language": "ruby",+ "size_bytes": 1420,+ "is_test": false,+ "is_config": false,+ "is_api_contract": false,+ "is_entry_point": false,+ "is_manifest_entry": false,+ "is_reachability_root": false+ },+ "symbols": [+ {+ "id": "lang_samples/ruby/perf_io_in_loop.rb::sync_fetch_each",+ "name": "sync_fetch_each",+ "qualified_name": "lang_samples.ruby.perf_io_in_loop.sync_fetch_each",+ "kind": "function",+ "signature": "sync_fetch_each(urls)",+ "start_line": 6,+ "end_line": 10,+ "docstring": null,+ "decorators": [],+ "visibility": "public",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "ruby",+ "parent_name": null,+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/ruby/perf_io_in_loop.rb::read_files",+ "name": "read_files",+ "qualified_name": "lang_samples.ruby.perf_io_in_loop.read_files",+ "kind": "function",+ "signature": "read_files(paths)",+ "start_line": 12,+ "end_line": 14,+ "docstring": null,+ "decorators": [],+ "visibility": "public",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "ruby",+ "parent_name": null,+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/ruby/perf_io_in_loop.rb::nested_read",+ "name": "nested_read",+ "qualified_name": "lang_samples.ruby.perf_io_in_loop.nested_read",+ "kind": "function",+ "signature": "nested_read(dirs)",+ "start_line": 16,+ "end_line": 22,+ "docstring": null,+ "decorators": [],+ "visibility": "public",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "ruby",+ "parent_name": null,+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/ruby/perf_io_in_loop.rb::orders_report",+ "name": "orders_report",+ "qualified_name": "lang_samples.ruby.perf_io_in_loop.orders_report",+ "kind": "function",+ "signature": "orders_report(ids)",+ "start_line": 24,+ "end_line": 28,+ "docstring": null,+ "decorators": [],+ "visibility": "public",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "ruby",+ "parent_name": null,+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/ruby/perf_io_in_loop.rb::constant_bound",+ "name": "constant_bound",+ "qualified_name": "lang_samples.ruby.perf_io_in_loop.constant_bound",+ "kind": "function",+ "signature": "constant_bound",+ "start_line": 30,+ "end_line": 37,+ "docstring": null,+ "decorators": [],+ "visibility": "public",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "ruby",+ "parent_name": null,+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/ruby/perf_io_in_loop.rb::build_report",+ "name": "build_report",+ "qualified_name": "lang_samples.ruby.perf_io_in_loop.build_report",+ "kind": "function",+ "signature": "build_report(lines)",+ "start_line": 39,+ "end_line": 47,+ "docstring": null,+ "decorators": [],+ "visibility": "public",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "ruby",+ "parent_name": null,+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/ruby/perf_io_in_loop.rb::bounded_concat",+ "name": "bounded_concat",+ "qualified_name": "lang_samples.ruby.perf_io_in_loop.bounded_concat",+ "kind": "function",+ "signature": "bounded_concat(lines)",+ "start_line": 49,+ "end_line": 55,+ "docstring": null,+ "decorators": [],+ "visibility": "public",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "ruby",+ "parent_name": null,+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/ruby/perf_io_in_loop.rb::regex_scan",+ "name": "regex_scan",+ "qualified_name": "lang_samples.ruby.perf_io_in_loop.regex_scan",+ "kind": "function",+ "signature": "regex_scan(rows, pattern)",+ "start_line": 57,+ "end_line": 63,+ "docstring": null,+ "decorators": [],+ "visibility": "public",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "ruby",+ "parent_name": null,+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/ruby/perf_io_in_loop.rb::fresh_clients",+ "name": "fresh_clients",+ "qualified_name": "lang_samples.ruby.perf_io_in_loop.fresh_clients",+ "kind": "function",+ "signature": "fresh_clients(hosts)",+ "start_line": 65,+ "end_line": 70,+ "docstring": null,+ "decorators": [],+ "visibility": "public",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "ruby",+ "parent_name": null,+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/ruby/perf_io_in_loop.rb::shell_out",+ "name": "shell_out",+ "qualified_name": "lang_samples.ruby.perf_io_in_loop.shell_out",+ "kind": "function",+ "signature": "shell_out(names)",+ "start_line": 72,+ "end_line": 76,+ "docstring": null,+ "decorators": [],+ "visibility": "public",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "ruby",+ "parent_name": null,+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/ruby/perf_io_in_loop.rb::locked_write",+ "name": "locked_write",+ "qualified_name": "lang_samples.ruby.perf_io_in_loop.locked_write",+ "kind": "function",+ "signature": "locked_write(mutex, items)",+ "start_line": 78,+ "end_line": 84,+ "docstring": null,+ "decorators": [],+ "visibility": "public",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "ruby",+ "parent_name": null,+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/ruby/perf_io_in_loop.rb::helper_calls",+ "name": "helper_calls",+ "qualified_name": "lang_samples.ruby.perf_io_in_loop.helper_calls",+ "kind": "function",+ "signature": "helper_calls(items)",+ "start_line": 86,+ "end_line": 88,+ "docstring": null,+ "decorators": [],+ "visibility": "public",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "ruby",+ "parent_name": null,+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ }+ ],+ "imports": [+ {+ "raw_statement": "require \"net/http\"",+ "module_path": "net/http",+ "imported_names": [+ "http"+ ],+ "is_relative": false,+ "resolved_file": null,+ "bindings": [+ {+ "local_name": "http",+ "exported_name": null,+ "source_file": "net/http",+ "is_module_alias": true,+ "is_global": false,+ "is_static_import": false,+ "line": null,+ "column": null+ }+ ],+ "is_reexport": false,+ "is_module_declaration": false,+ "type_only": false,+ "deferred": false+ }+ ],+ "exports": [+ "sync_fetch_each",+ "read_files",+ "nested_read",+ "orders_report",+ "constant_bound",+ "build_report",+ "bounded_concat",+ "regex_scan",+ "fresh_clients",+ "shell_out",+ "locked_write",+ "helper_calls"+ ],+ "export_aliases": {},+ "calls": [+ {+ "target_name": "each",+ "receiver_name": "urls",+ "caller_symbol_id": "lang_samples/ruby/perf_io_in_loop.rb::sync_fetch_each",+ "line": 7,+ "argument_count": null,+ "receiver_call": null,+ "scope_name": null,+ "edge_type": "calls",+ "supplied_props": null,+ "bare_name_fallback": false,+ "spawned": false,+ "argument_types": null,+ "argument_names": null+ },+ {+ "target_name": "get",+ "receiver_name": "HTTP",+ "caller_symbol_id": "lang_samples/ruby/perf_io_in_loop.rb::sync_fetch_each",+ "line": 8,+ "argument_count": null,+ "receiver_call": null,+ "scope_name": null,+ "edge_type": "calls",+ "supplied_props": null,+ "bare_name_fallback": true,+ "spawned": false,+ "argument_types": null,+ "argument_names": null+ },+ {+ "target_name": "map",+ "receiver_name": "paths",+ "caller_symbol_id": "lang_samples/ruby/perf_io_in_loop.rb::read_files",+ "line": 13,+ "argument_count": null,+ "receiver_call": null,+ "scope_name": null,+ "edge_type": "calls",+ "supplied_props": null,+ "bare_name_fallback": false,+ "spawned": false,+ "argument_types": null,+ "argument_names": null+ },+ {+ "target_name": "read",+ "receiver_name": "File",+ "caller_symbol_id": "lang_samples/ruby/perf_io_in_loop.rb::read_files",+ "line": 13,+ "argument_count": null,+ "receiver_call": null,+ "scope_name": null,+ "edge_type": "calls",+ "supplied_props": null,+ "bare_name_fallback": true,+ "spawned": false,+ "argument_types": null,+ "argument_names": null+ },+ {+ "target_name": "each",+ "receiver_name": "dirs",+ "caller_symbol_id": "lang_samples/ruby/perf_io_in_loop.rb::nested_read",+ "line": 17,+ "argument_count": null,+ "receiver_call": null,+ "scope_name": null,+ "edge_type": "calls",+ "supplied_props": null,+ "bare_name_fallback": false,+ "spawned": false,+ "argument_types": null,+ "argument_names": null+ },+ {+ "target_name": "glob",+ "receiver_name": "Dir",+ "caller_symbol_id": "lang_samples/ruby/perf_io_in_loop.rb::nested_read",+ "line": 18,+ "argument_count": null,+ "receiver_call": null,+ "scope_name": null,+ "edge_type": "calls",+ "supplied_props": null,+ "bare_name_fallback": true,+ "spawned": false,+ "argument_types": null,+ "argument_names": null+ },+ {+ "target_name": "join",+ "receiver_name": "File",+ "caller_symbol_id": "lang_samples/ruby/perf_io_in_loop.rb::nested_read",+ "line": 18,+ "argument_count": null,+ "receiver_call": null,+ "scope_name": null,+ "edge_type": "calls",+ "supplied_props": null,+ "bare_name_fallback": true,+ "spawned": false,+ "argument_types": null,+ "argument_names": null+ },+ {+ "target_name": "read",+ "receiver_name": "File",+ "caller_symbol_id": "lang_samples/ruby/perf_io_in_loop.rb::nested_read",+ "line": 19,+ "argument_count": null,+ "receiver_call": null,+ "scope_name": null,+ "edge_type": "calls",+ "supplied_props": null,+ "bare_name_fallback": true,+ "spawned": false,+ "argument_types": null,+ "argument_names": null+ },+ {+ "target_name": "each",+ "receiver_name": "ids",+ "caller_symbol_id": "lang_samples/ruby/perf_io_in_loop.rb::orders_report",+ "line": 25,+ "argument_count": null,+ "receiver_call": null,+ "scope_name": null,+ "edge_type": "calls",+ "supplied_props": null,+ "bare_name_fallback": false,+ "spawned": false,+ "argument_types": null,+ "argument_names": null+ },+ {+ "target_name": "where",+ "receiver_name": "Order",+ "caller_symbol_id": "lang_samples/ruby/perf_io_in_loop.rb::orders_report",+ "line": 26,+ "argument_count": null,+ "receiver_call": null,+ "scope_name": null,+ "edge_type": "calls",+ "supplied_props": null,+ "bare_name_fallback": true,+ "spawned": false,+ "argument_types": null,+ "argument_names": null+ },+ {+ "target_name": "read",+ "receiver_name": "File",+ "caller_symbol_id": "lang_samples/ruby/perf_io_in_loop.rb::constant_bound",+ "line": 32,+ "argument_count": null,+ "receiver_call": null,+ "scope_name": null,+ "edge_type": "calls",+ "supplied_props": null,+ "bare_name_fallback": true,+ "spawned": false,+ "argument_types": null,+ "argument_names": null+ },+ {+ "target_name": "read",+ "receiver_name": "File",+ "caller_symbol_id": "lang_samples/ruby/perf_io_in_loop.rb::constant_bound",+ "line": 35,+ "argument_count": null,+ "receiver_call": null,+ "scope_name": null,+ "edge_type": "calls",+ "supplied_props": null,+ "bare_name_fallback": true,+ "spawned": false,+ "argument_types": null,+ "argument_names": null+ },+ {+ "target_name": "each",+ "receiver_name": "lines",+ "caller_symbol_id": "lang_samples/ruby/perf_io_in_loop.rb::build_report",+ "line": 41,+ "argument_count": null,+ "receiver_call": null,+ "scope_name": null,+ "edge_type": "calls",+ "supplied_props": null,+ "bare_name_fallback": false,+ "spawned": false,+ "argument_types": null,+ "argument_names": null+ },+ {+ "target_name": "each",+ "receiver_name": "lines",+ "caller_symbol_id": "lang_samples/ruby/perf_io_in_loop.rb::bounded_concat",+ "line": 50,+ "argument_count": null,+ "receiver_call": null,+ "scope_name": null,+ "edge_type": "calls",+ "supplied_props": null,+ "bare_name_fallback": false,+ "spawned": false,+ "argument_types": null,+ "argument_names": null+ },+ {+ "target_name": "emit",+ "receiver_name": null,+ "caller_symbol_id": "lang_samples/ruby/perf_io_in_loop.rb::bounded_concat",+ "line": 53,+ "argument_count": 1,+ "receiver_call": null,+ "scope_name": null,+ "edge_type": "calls",+ "supplied_props": null,+ "bare_name_fallback": false,+ "spawned": false,+ "argument_types": null,+ "argument_names": null+ },+ {+ "target_name": "new",+ "receiver_name": "Regexp",+ "caller_symbol_id": "lang_samples/ruby/perf_io_in_loop.rb::regex_scan",+ "line": 58,+ "argument_count": null,+ "receiver_call": null,+ "scope_name": null,+ "edge_type": "calls",+ "supplied_props": null,+ "bare_name_fallback": true,+ "spawned": false,+ "argument_types": null,+ "argument_names": null+ },+ {+ "target_name": "each",+ "receiver_name": "rows",+ "caller_symbol_id": "lang_samples/ruby/perf_io_in_loop.rb::regex_scan",+ "line": 59,+ "argument_count": null,+ "receiver_call": null,+ "scope_name": null,+ "edge_type": "calls",+ "supplied_props": null,+ "bare_name_fallback": false,+ "spawned": false,+ "argument_types": null,+ "argument_names": null+ },+ {+ "target_name": "new",+ "receiver_name": "Regexp",+ "caller_symbol_id": "lang_samples/ruby/perf_io_in_loop.rb::regex_scan",+ "line": 60,+ "argument_count": null,+ "receiver_call": null,+ "scope_name": null,+ "edge_type": "calls",+ "supplied_props": null,+ "bare_name_fallback": true,+ "spawned": false,+ "argument_types": null,+ "argument_names": null+ },+ {+ "target_name": "match?",+ "receiver_name": "re",+ "caller_symbol_id": "lang_samples/ruby/perf_io_in_loop.rb::regex_scan",+ "line": 61,+ "argument_count": null,+ "receiver_call": null,+ "scope_name": null,+ "edge_type": "calls",+ "supplied_props": null,+ "bare_name_fallback": true,+ "spawned": false,+ "argument_types": null,+ "argument_names": null+ },+ {+ "target_name": "match?",+ "receiver_name": "hoisted",+ "caller_symbol_id": "lang_samples/ruby/perf_io_in_loop.rb::regex_scan",+ "line": 61,+ "argument_count": null,+ "receiver_call": null,+ "scope_name": null,+ "edge_type": "calls",+ "supplied_props": null,+ "bare_name_fallback": true,+ "spawned": false,+ "argument_types": null,+ "argument_names": null+ },+ {+ "target_name": "each",+ "receiver_name": "hosts",+ "caller_symbol_id": "lang_samples/ruby/perf_io_in_loop.rb::fresh_clients",+ "line": 66,+ "argument_count": null,+ "receiver_call": null,+ "scope_name": null,+ "edge_type": "calls",+ "supplied_props": null,+ "bare_name_fallback": false,+ "spawned": false,+ "argument_types": null,+ "argument_names": null+ },+ {+ "target_name": "new",+ "receiver_name": "Faraday",+ "caller_symbol_id": "lang_samples/ruby/perf_io_in_loop.rb::fresh_clients",+ "line": 67,+ "argument_count": null,+ "receiver_call": null,+ "scope_name": null,+ "edge_type": "calls",+ "supplied_props": null,+ "bare_name_fallback": true,+ "spawned": false,+ "argument_types": null,+ "argument_names": null+ },+ {+ "target_name": "get",+ "receiver_name": "conn",+ "caller_symbol_id": "lang_samples/ruby/perf_io_in_loop.rb::fresh_clients",+ "line": 68,+ "argument_count": null,+ "receiver_call": null,+ "scope_name": null,+ "edge_type": "calls",+ "supplied_props": null,+ "bare_name_fallback": true,+ "spawned": false,+ "argument_types": null,+ "argument_names": null+ },+ {+ "target_name": "each",+ "receiver_name": "names",+ "caller_symbol_id": "lang_samples/ruby/perf_io_in_loop.rb::shell_out",+ "line": 73,+ "argument_count": null,+ "receiver_call": null,+ "scope_name": null,+ "edge_type": "calls",+ "supplied_props": null,+ "bare_name_fallback": false,+ "spawned": false,+ "argument_types": null,+ "argument_names": null+ },+ {+ "target_name": "each",+ "receiver_name": "items",+ "caller_symbol_id": "lang_samples/ruby/perf_io_in_loop.rb::locked_write",+ "line": 79,+ "argument_count": null,+ "receiver_call": null,+ "scope_name": null,+ "edge_type": "calls",+ "supplied_props": null,+ "bare_name_fallback": false,+ "spawned": false,+ "argument_types": null,+ "argument_names": null+ },+ {+ "target_name": "synchronize",+ "receiver_name": "mutex",+ "caller_symbol_id": "lang_samples/ruby/perf_io_in_loop.rb::locked_write",+ "line": 80,+ "argument_count": null,+ "receiver_call": null,+ "scope_name": null,+ "edge_type": "calls",+ "supplied_props": null,+ "bare_name_fallback": false,+ "spawned": false,+ "argument_types": null,+ "argument_names": null+ },+ {+ "target_name": "write",+ "receiver_name": "File",+ "caller_symbol_id": "lang_samples/ruby/perf_io_in_loop.rb::locked_write",+ "line": 81,+ "argument_count": null,+ "receiver_call": null,+ "scope_name": null,+ "edge_type": "calls",+ "supplied_props": null,+ "bare_name_fallback": true,+ "spawned": false,+ "argument_types": null,+ "argument_names": null+ },+ {+ "target_name": "each",+ "receiver_name": "items",+ "caller_symbol_id": "lang_samples/ruby/perf_io_in_loop.rb::helper_calls",+ "line": 87,+ "argument_count": null,+ "receiver_call": null,+ "scope_name": null,+ "edge_type": "calls",+ "supplied_props": null,+ "bare_name_fallback": false,+ "spawned": false,+ "argument_types": null,+ "argument_names": null+ },+ {+ "target_name": "transform",+ "receiver_name": null,+ "caller_symbol_id": "lang_samples/ruby/perf_io_in_loop.rb::helper_calls",+ "line": 87,+ "argument_count": 1,+ "receiver_call": null,+ "scope_name": null,+ "edge_type": "calls",+ "supplied_props": null,+ "bare_name_fallback": false,+ "spawned": false,+ "argument_types": null,+ "argument_names": null+ }+ ],+ "heritage": [],+ "docstring": "Perf-dialect fixture: block-iteration loops, the sink lexicon, string\nconcat (+= flagged, << not), regex/resource construction, lock scopes.",+ "parse_errors": [],+ "content_hash": "44d4e6640bcfe0a0a50f76947c4eed318d8712f3a5f247d21efc890af234d0f7",+ "type_refs": [],+ "local_refs": [],+ "registrars": [],+ "references": []+ }+}diff --git a/tests/unit/ingestion/parser/golden/rust.json b/tests/unit/ingestion/parser/golden/rust.jsonnew file mode 100644index 000000000..6f6f12352--- /dev/null+++ b/tests/unit/ingestion/parser/golden/rust.json@@ -0,0 +1,774 @@+{+ "rust/conditionals.rs": {+ "file_info": {+ "path": "lang_samples/rust/conditionals.rs",+ "language": "rust",+ "size_bytes": 389,+ "is_test": false,+ "is_config": false,+ "is_api_contract": false,+ "is_entry_point": false,+ "is_manifest_entry": false,+ "is_reachability_root": false+ },+ "symbols": [+ {+ "id": "lang_samples/rust/conditionals.rs::three_ops",+ "name": "three_ops",+ "qualified_name": "lang_samples.rust.conditionals.three_ops",+ "kind": "function",+ "signature": "fn three_ops(a: bool, b: bool, c: bool, d: bool) -> i32",+ "start_line": 1,+ "end_line": 6,+ "docstring": null,+ "decorators": [],+ "visibility": "public",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "rust",+ "parent_name": null,+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/rust/conditionals.rs::six_ops",+ "name": "six_ops",+ "qualified_name": "lang_samples.rust.conditionals.six_ops",+ "kind": "function",+ "signature": "fn six_ops(a: bool, b: bool, c: bool, d: bool, e: bool, f: bool, g: bool) -> i32",+ "start_line": 8,+ "end_line": 13,+ "docstring": null,+ "decorators": [],+ "visibility": "public",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "rust",+ "parent_name": null,+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/rust/conditionals.rs::two_ops",+ "name": "two_ops",+ "qualified_name": "lang_samples.rust.conditionals.two_ops",+ "kind": "function",+ "signature": "fn two_ops(a: bool, b: bool, c: bool) -> i32",+ "start_line": 15,+ "end_line": 20,+ "docstring": null,+ "decorators": [],+ "visibility": "public",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "rust",+ "parent_name": null,+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ }+ ],+ "imports": [],+ "exports": [+ "three_ops",+ "six_ops",+ "two_ops"+ ],+ "export_aliases": {},+ "calls": [],+ "heritage": [],+ "docstring": null,+ "parse_errors": [],+ "content_hash": "7dbce8d308c5c223f5f47520bb7f5fc4e1fc1ec9610d956db5c7784267157c75",+ "type_refs": [],+ "local_refs": [],+ "registrars": [],+ "references": []+ },+ "rust/flat_match.rs": {+ "file_info": {+ "path": "lang_samples/rust/flat_match.rs",+ "language": "rust",+ "size_bytes": 823,+ "is_test": false,+ "is_config": false,+ "is_api_contract": false,+ "is_entry_point": false,+ "is_manifest_entry": false,+ "is_reachability_root": false+ },+ "symbols": [+ {+ "id": "lang_samples/rust/flat_match.rs::flat_match",+ "name": "flat_match",+ "qualified_name": "lang_samples.rust.flat_match.flat_match",+ "kind": "function",+ "signature": "fn flat_match(x: i32) -> &'static str",+ "start_line": 3,+ "end_line": 10,+ "docstring": null,+ "decorators": [],+ "visibility": "private",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "rust",+ "parent_name": null,+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/rust/flat_match.rs::complex_match",+ "name": "complex_match",+ "qualified_name": "lang_samples.rust.flat_match.complex_match",+ "kind": "function",+ "signature": "fn complex_match(x: i32) -> i32",+ "start_line": 14,+ "end_line": 26,+ "docstring": null,+ "decorators": [],+ "visibility": "private",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "rust",+ "parent_name": null,+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/rust/flat_match.rs::multi_stmt_match",+ "name": "multi_stmt_match",+ "qualified_name": "lang_samples.rust.flat_match.multi_stmt_match",+ "kind": "function",+ "signature": "fn multi_stmt_match(x: i32) -> i32",+ "start_line": 29,+ "end_line": 38,+ "docstring": null,+ "decorators": [],+ "visibility": "private",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "rust",+ "parent_name": null,+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ }+ ],+ "imports": [],+ "exports": [],+ "export_aliases": {},+ "calls": [],+ "heritage": [],+ "docstring": null,+ "parse_errors": [],+ "content_hash": "b83c4127399f7f23e336ebba80bbf6c4ec8a0e61427197c193239da4bae8be7f",+ "type_refs": [],+ "local_refs": [],+ "registrars": [],+ "references": []+ },+ "rust/nested.rs": {+ "file_info": {+ "path": "lang_samples/rust/nested.rs",+ "language": "rust",+ "size_bytes": 375,+ "is_test": false,+ "is_config": false,+ "is_api_contract": false,+ "is_entry_point": false,+ "is_manifest_entry": false,+ "is_reachability_root": false+ },+ "symbols": [+ {+ "id": "lang_samples/rust/nested.rs::deeply_nested",+ "name": "deeply_nested",+ "qualified_name": "lang_samples.rust.nested.deeply_nested",+ "kind": "function",+ "signature": "fn deeply_nested(x: i32) -> i32",+ "start_line": 1,+ "end_line": 16,+ "docstring": null,+ "decorators": [],+ "visibility": "private",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "rust",+ "parent_name": null,+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/rust/nested.rs::shallow",+ "name": "shallow",+ "qualified_name": "lang_samples.rust.nested.shallow",+ "kind": "function",+ "signature": "fn shallow(x: i32) -> i32",+ "start_line": 18,+ "end_line": 20,+ "docstring": null,+ "decorators": [],+ "visibility": "private",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "rust",+ "parent_name": null,+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ }+ ],+ "imports": [],+ "exports": [],+ "export_aliases": {},+ "calls": [],+ "heritage": [],+ "docstring": null,+ "parse_errors": [],+ "content_hash": "51ed1194d6d80798cb70fb15af0134de5e484d0e25dcc809cae9231b5e5b1121",+ "type_refs": [],+ "local_refs": [],+ "registrars": [],+ "references": []+ },+ "rust/perf_io_in_loop.rs": {+ "file_info": {+ "path": "lang_samples/rust/perf_io_in_loop.rs",+ "language": "rust",+ "size_bytes": 2513,+ "is_test": false,+ "is_config": false,+ "is_api_contract": false,+ "is_entry_point": false,+ "is_manifest_entry": false,+ "is_reachability_root": false+ },+ "symbols": [+ {+ "id": "lang_samples/rust/perf_io_in_loop.rs::sqlx_fetch_in_loop",+ "name": "sqlx_fetch_in_loop",+ "qualified_name": "lang_samples.rust.perf_io_in_loop.sqlx_fetch_in_loop",+ "kind": "function",+ "signature": "fn sqlx_fetch_in_loop(pool: &PgPool, ids: Vec<i32>)",+ "start_line": 14,+ "end_line": 20,+ "docstring": null,+ "decorators": [],+ "visibility": "private",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "rust",+ "parent_name": null,+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/rust/perf_io_in_loop.rs::fs_read_in_loop",+ "name": "fs_read_in_loop",+ "qualified_name": "lang_samples.rust.perf_io_in_loop.fs_read_in_loop",+ "kind": "function",+ "signature": "fn fs_read_in_loop(paths: Vec<String>)",+ "start_line": 22,+ "end_line": 26,+ "docstring": null,+ "decorators": [],+ "visibility": "private",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "rust",+ "parent_name": null,+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/rust/perf_io_in_loop.rs::fs_read_to_string_in_loop",+ "name": "fs_read_to_string_in_loop",+ "qualified_name": "lang_samples.rust.perf_io_in_loop.fs_read_to_string_in_loop",+ "kind": "function",+ "signature": "fn fs_read_to_string_in_loop(paths: Vec<String>)",+ "start_line": 28,+ "end_line": 32,+ "docstring": null,+ "decorators": [],+ "visibility": "private",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "rust",+ "parent_name": null,+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/rust/perf_io_in_loop.rs::reqwest_get_in_loop",+ "name": "reqwest_get_in_loop",+ "qualified_name": "lang_samples.rust.perf_io_in_loop.reqwest_get_in_loop",+ "kind": "function",+ "signature": "fn reqwest_get_in_loop(urls: Vec<String>)",+ "start_line": 34,+ "end_line": 39,+ "docstring": null,+ "decorators": [],+ "visibility": "private",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "rust",+ "parent_name": null,+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/rust/perf_io_in_loop.rs::regex_new_in_loop",+ "name": "regex_new_in_loop",+ "qualified_name": "lang_samples.rust.perf_io_in_loop.regex_new_in_loop",+ "kind": "function",+ "signature": "fn regex_new_in_loop(items: Vec<String>)",+ "start_line": 41,+ "end_line": 47,+ "docstring": null,+ "decorators": [],+ "visibility": "private",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "rust",+ "parent_name": null,+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/rust/perf_io_in_loop.rs::pgpool_connect_in_loop",+ "name": "pgpool_connect_in_loop",+ "qualified_name": "lang_samples.rust.perf_io_in_loop.pgpool_connect_in_loop",+ "kind": "function",+ "signature": "fn pgpool_connect_in_loop(urls: Vec<String>)",+ "start_line": 49,+ "end_line": 54,+ "docstring": null,+ "decorators": [],+ "visibility": "private",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "rust",+ "parent_name": null,+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/rust/perf_io_in_loop.rs::thread_sleep_in_async",+ "name": "thread_sleep_in_async",+ "qualified_name": "lang_samples.rust.perf_io_in_loop.thread_sleep_in_async",+ "kind": "function",+ "signature": "fn thread_sleep_in_async(d: std::time::Duration)",+ "start_line": 56,+ "end_line": 58,+ "docstring": null,+ "decorators": [],+ "visibility": "private",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "rust",+ "parent_name": null,+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/rust/perf_io_in_loop.rs::fs_read_constant_loop",+ "name": "fs_read_constant_loop",+ "qualified_name": "lang_samples.rust.perf_io_in_loop.fs_read_constant_loop",+ "kind": "function",+ "signature": "fn fs_read_constant_loop()",+ "start_line": 62,+ "end_line": 66,+ "docstring": null,+ "decorators": [],+ "visibility": "private",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "rust",+ "parent_name": null,+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/rust/perf_io_in_loop.rs::fs_read_outside_loop",+ "name": "fs_read_outside_loop",+ "qualified_name": "lang_samples.rust.perf_io_in_loop.fs_read_outside_loop",+ "kind": "function",+ "signature": "fn fs_read_outside_loop(p: String)",+ "start_line": 68,+ "end_line": 70,+ "docstring": null,+ "decorators": [],+ "visibility": "private",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "rust",+ "parent_name": null,+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/rust/perf_io_in_loop.rs::push_str_in_loop",+ "name": "push_str_in_loop",+ "qualified_name": "lang_samples.rust.perf_io_in_loop.push_str_in_loop",+ "kind": "function",+ "signature": "fn push_str_in_loop(items: Vec<String>) -> String",+ "start_line": 72,+ "end_line": 78,+ "docstring": null,+ "decorators": [],+ "visibility": "private",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "rust",+ "parent_name": null,+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ }+ ],+ "imports": [+ {+ "raw_statement": "use std::fs;",+ "module_path": "std::fs",+ "imported_names": [+ "fs"+ ],+ "is_relative": false,+ "resolved_file": null,+ "bindings": [+ {+ "local_name": "fs",+ "exported_name": "fs",+ "source_file": null,+ "is_module_alias": false,+ "is_global": false,+ "is_static_import": false,+ "line": null,+ "column": null+ }+ ],+ "is_reexport": false,+ "is_module_declaration": false,+ "type_only": false,+ "deferred": false+ }+ ],+ "exports": [],+ "export_aliases": {},+ "calls": [+ {+ "target_name": "query",+ "receiver_name": "sqlx",+ "caller_symbol_id": "lang_samples/rust/perf_io_in_loop.rs::sqlx_fetch_in_loop",+ "line": 18,+ "argument_count": 1,+ "receiver_call": null,+ "scope_name": null,+ "edge_type": "calls",+ "supplied_props": null,+ "bare_name_fallback": false,+ "spawned": false,+ "argument_types": null,+ "argument_names": null+ },+ {+ "target_name": "fetch_all",+ "receiver_name": null,+ "caller_symbol_id": "lang_samples/rust/perf_io_in_loop.rs::sqlx_fetch_in_loop",+ "line": 18,+ "argument_count": 1,+ "receiver_call": null,+ "scope_name": null,+ "edge_type": "calls",+ "supplied_props": null,+ "bare_name_fallback": false,+ "spawned": false,+ "argument_types": null,+ "argument_names": null+ },+ {+ "target_name": "read",+ "receiver_name": "std::fs",+ "caller_symbol_id": "lang_samples/rust/perf_io_in_loop.rs::fs_read_in_loop",+ "line": 24,+ "argument_count": 1,+ "receiver_call": null,+ "scope_name": null,+ "edge_type": "calls",+ "supplied_props": null,+ "bare_name_fallback": false,+ "spawned": false,+ "argument_types": null,+ "argument_names": null+ },+ {+ "target_name": "read_to_string",+ "receiver_name": "fs",+ "caller_symbol_id": "lang_samples/rust/perf_io_in_loop.rs::fs_read_to_string_in_loop",+ "line": 30,+ "argument_count": 1,+ "receiver_call": null,+ "scope_name": null,+ "edge_type": "calls",+ "supplied_props": null,+ "bare_name_fallback": false,+ "spawned": false,+ "argument_types": null,+ "argument_names": null+ },+ {+ "target_name": "get",+ "receiver_name": "reqwest",+ "caller_symbol_id": "lang_samples/rust/perf_io_in_loop.rs::reqwest_get_in_loop",+ "line": 37,+ "argument_count": 1,+ "receiver_call": null,+ "scope_name": null,+ "edge_type": "calls",+ "supplied_props": null,+ "bare_name_fallback": false,+ "spawned": false,+ "argument_types": null,+ "argument_names": null+ },+ {+ "target_name": "new",+ "receiver_name": "Regex",+ "caller_symbol_id": "lang_samples/rust/perf_io_in_loop.rs::regex_new_in_loop",+ "line": 43,+ "argument_count": 1,+ "receiver_call": null,+ "scope_name": null,+ "edge_type": "calls",+ "supplied_props": null,+ "bare_name_fallback": false,+ "spawned": false,+ "argument_types": null,+ "argument_names": null+ },+ {+ "target_name": "new",+ "receiver_name": "Regex",+ "caller_symbol_id": "lang_samples/rust/perf_io_in_loop.rs::regex_new_in_loop",+ "line": 44,+ "argument_count": 1,+ "receiver_call": null,+ "scope_name": null,+ "edge_type": "calls",+ "supplied_props": null,+ "bare_name_fallback": false,+ "spawned": false,+ "argument_types": null,+ "argument_names": null+ },+ {+ "target_name": "connect",+ "receiver_name": "PgPool",+ "caller_symbol_id": "lang_samples/rust/perf_io_in_loop.rs::pgpool_connect_in_loop",+ "line": 52,+ "argument_count": 1,+ "receiver_call": null,+ "scope_name": null,+ "edge_type": "calls",+ "supplied_props": null,+ "bare_name_fallback": false,+ "spawned": false,+ "argument_types": null,+ "argument_names": null+ },+ {+ "target_name": "sleep",+ "receiver_name": "std::thread",+ "caller_symbol_id": "lang_samples/rust/perf_io_in_loop.rs::thread_sleep_in_async",+ "line": 57,+ "argument_count": 1,+ "receiver_call": null,+ "scope_name": null,+ "edge_type": "calls",+ "supplied_props": null,+ "bare_name_fallback": false,+ "spawned": false,+ "argument_types": null,+ "argument_names": null+ },+ {+ "target_name": "read",+ "receiver_name": "std::fs",+ "caller_symbol_id": "lang_samples/rust/perf_io_in_loop.rs::fs_read_constant_loop",+ "line": 64,+ "argument_count": 1,+ "receiver_call": null,+ "scope_name": null,+ "edge_type": "calls",+ "supplied_props": null,+ "bare_name_fallback": false,+ "spawned": false,+ "argument_types": null,+ "argument_names": null+ },+ {+ "target_name": "read",+ "receiver_name": "std::fs",+ "caller_symbol_id": "lang_samples/rust/perf_io_in_loop.rs::fs_read_outside_loop",+ "line": 69,+ "argument_count": 1,+ "receiver_call": null,+ "scope_name": null,+ "edge_type": "calls",+ "supplied_props": null,+ "bare_name_fallback": false,+ "spawned": false,+ "argument_types": null,+ "argument_names": null+ },+ {+ "target_name": "new",+ "receiver_name": "String",+ "caller_symbol_id": "lang_samples/rust/perf_io_in_loop.rs::push_str_in_loop",+ "line": 73,+ "argument_count": 0,+ "receiver_call": null,+ "scope_name": null,+ "edge_type": "calls",+ "supplied_props": null,+ "bare_name_fallback": false,+ "spawned": false,+ "argument_types": null,+ "argument_names": null+ },+ {+ "target_name": "push_str",+ "receiver_name": "s",+ "caller_symbol_id": "lang_samples/rust/perf_io_in_loop.rs::push_str_in_loop",+ "line": 75,+ "argument_count": 1,+ "receiver_call": null,+ "scope_name": null,+ "edge_type": "calls",+ "supplied_props": null,+ "bare_name_fallback": false,+ "spawned": false,+ "argument_types": null,+ "argument_names": null+ }+ ],+ "heritage": [],+ "docstring": null,+ "parse_errors": [],+ "content_hash": "b03c4c31a915ad094d4254270e7576891f606d4e4a2455d39651575ddd14bc04",+ "type_refs": [+ {+ "type_name": "PgPool",+ "line": 14,+ "origin": "method_param"+ },+ {+ "type_name": "Duration",+ "line": 56,+ "origin": "method_param"+ }+ ],+ "local_refs": [],+ "registrars": [],+ "references": [+ {+ "target_name": "pool",+ "receiver_name": null,+ "caller_symbol_id": "lang_samples/rust/perf_io_in_loop.rs::sqlx_fetch_in_loop",+ "line": 18,+ "argument_count": null,+ "receiver_call": null,+ "scope_name": null,+ "edge_type": "calls",+ "supplied_props": null,+ "bare_name_fallback": false,+ "spawned": false,+ "argument_types": null,+ "argument_names": null+ },+ {+ "target_name": "d",+ "receiver_name": null,+ "caller_symbol_id": "lang_samples/rust/perf_io_in_loop.rs::thread_sleep_in_async",+ "line": 57,+ "argument_count": null,+ "receiver_call": null,+ "scope_name": null,+ "edge_type": "calls",+ "supplied_props": null,+ "bare_name_fallback": false,+ "spawned": false,+ "argument_types": null,+ "argument_names": null+ }+ ]+ }+}diff --git a/tests/unit/ingestion/parser/golden/scala.json b/tests/unit/ingestion/parser/golden/scala.jsonnew file mode 100644index 000000000..46173dbc6--- /dev/null+++ b/tests/unit/ingestion/parser/golden/scala.json@@ -0,0 +1,1457 @@+{+ "scala/assertions.scala": {+ "file_info": {+ "path": "lang_samples/scala/assertions.scala",+ "language": "scala",+ "size_bytes": 668,+ "is_test": false,+ "is_config": false,+ "is_api_contract": false,+ "is_entry_point": false,+ "is_manifest_entry": false,+ "is_reachability_root": false+ },+ "symbols": [+ {+ "id": "lang_samples/scala/assertions.scala::AssertionsSpec",+ "name": "AssertionsSpec",+ "qualified_name": "lang_samples.scala.assertions.AssertionsSpec",+ "kind": "class",+ "signature": "class AssertionsSpec",+ "start_line": 6,+ "end_line": 28,+ "docstring": null,+ "decorators": [],+ "visibility": "public",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "scala",+ "parent_name": null,+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/scala/assertions.scala::AssertionsSpec::testManyAsserts",+ "name": "testManyAsserts",+ "qualified_name": "lang_samples.scala.assertions.AssertionsSpec.testManyAsserts",+ "kind": "method",+ "signature": "def testManyAsserts() -> Unit",+ "start_line": 7,+ "end_line": 14,+ "docstring": null,+ "decorators": [],+ "visibility": "public",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "scala",+ "parent_name": "AssertionsSpec",+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/scala/assertions.scala::AssertionsSpec::testFewAsserts",+ "name": "testFewAsserts",+ "qualified_name": "lang_samples.scala.assertions.AssertionsSpec.testFewAsserts",+ "kind": "method",+ "signature": "def testFewAsserts() -> Unit",+ "start_line": 16,+ "end_line": 21,+ "docstring": null,+ "decorators": [],+ "visibility": "public",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "scala",+ "parent_name": "AssertionsSpec",+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/scala/assertions.scala::AssertionsSpec::compute",+ "name": "compute",+ "qualified_name": "lang_samples.scala.assertions.AssertionsSpec.compute",+ "kind": "method",+ "signature": "def compute() -> Int",+ "start_line": 23,+ "end_line": 23,+ "docstring": null,+ "decorators": [],+ "visibility": "public",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "scala",+ "parent_name": "AssertionsSpec",+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": [+ "private"+ ]+ },+ {+ "id": "lang_samples/scala/assertions.scala::AssertionsSpec::assertEquals",+ "name": "assertEquals",+ "qualified_name": "lang_samples.scala.assertions.AssertionsSpec.assertEquals",+ "kind": "method",+ "signature": "def assertEquals(a: Int, b: Int) -> Unit",+ "start_line": 25,+ "end_line": 25,+ "docstring": null,+ "decorators": [],+ "visibility": "public",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "scala",+ "parent_name": "AssertionsSpec",+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": [+ "private"+ ]+ },+ {+ "id": "lang_samples/scala/assertions.scala::AssertionsSpec::assertNotEquals",+ "name": "assertNotEquals",+ "qualified_name": "lang_samples.scala.assertions.AssertionsSpec.assertNotEquals",+ "kind": "method",+ "signature": "def assertNotEquals(a: Int, b: Int) -> Unit",+ "start_line": 27,+ "end_line": 27,+ "docstring": null,+ "decorators": [],+ "visibility": "public",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "scala",+ "parent_name": "AssertionsSpec",+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": [+ "private"+ ]+ }+ ],+ "imports": [],+ "exports": [+ "AssertionsSpec"+ ],+ "export_aliases": {},+ "calls": [+ {+ "target_name": "compute",+ "receiver_name": null,+ "caller_symbol_id": "lang_samples/scala/assertions.scala::AssertionsSpec::testManyAsserts",+ "line": 8,+ "argument_count": 0,+ "receiver_call": null,+ "scope_name": null,+ "edge_type": "calls",+ "supplied_props": null,+ "bare_name_fallback": false,+ "spawned": false,+ "argument_types": null,+ "argument_names": null+ },+ {+ "target_name": "assertEquals",+ "receiver_name": null,+ "caller_symbol_id": "lang_samples/scala/assertions.scala::AssertionsSpec::testManyAsserts",+ "line": 11,+ "argument_count": 2,+ "receiver_call": null,+ "scope_name": null,+ "edge_type": "calls",+ "supplied_props": null,+ "bare_name_fallback": false,+ "spawned": false,+ "argument_types": null,+ "argument_names": null+ },+ {+ "target_name": "assertNotEquals",+ "receiver_name": null,+ "caller_symbol_id": "lang_samples/scala/assertions.scala::AssertionsSpec::testManyAsserts",+ "line": 12,+ "argument_count": 2,+ "receiver_call": null,+ "scope_name": null,+ "edge_type": "calls",+ "supplied_props": null,+ "bare_name_fallback": false,+ "spawned": false,+ "argument_types": null,+ "argument_names": null+ },+ {+ "target_name": "compute",+ "receiver_name": null,+ "caller_symbol_id": "lang_samples/scala/assertions.scala::AssertionsSpec::testFewAsserts",+ "line": 17,+ "argument_count": 0,+ "receiver_call": null,+ "scope_name": null,+ "edge_type": "calls",+ "supplied_props": null,+ "bare_name_fallback": false,+ "spawned": false,+ "argument_types": null,+ "argument_names": null+ }+ ],+ "heritage": [],+ "docstring": null,+ "parse_errors": [],+ "content_hash": "51081da5f3a7a2d2ff61c8969310f97bcab69d21c83ecb73346abbbbfe864096",+ "type_refs": [],+ "local_refs": [],+ "registrars": [],+ "references": []+ },+ "scala/classes.scala": {+ "file_info": {+ "path": "lang_samples/scala/classes.scala",+ "language": "scala",+ "size_bytes": 1053,+ "is_test": false,+ "is_config": false,+ "is_api_contract": false,+ "is_entry_point": false,+ "is_manifest_entry": false,+ "is_reachability_root": false+ },+ "symbols": [+ {+ "id": "lang_samples/scala/classes.scala::Cohesive",+ "name": "Cohesive",+ "qualified_name": "lang_samples.scala.classes.Cohesive",+ "kind": "class",+ "signature": "class Cohesive",+ "start_line": 7,+ "end_line": 28,+ "docstring": null,+ "decorators": [],+ "visibility": "public",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "scala",+ "parent_name": null,+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/scala/classes.scala::Cohesive::total",+ "name": "total",+ "qualified_name": "lang_samples.scala.classes.Cohesive.total",+ "kind": "variable",+ "signature": "total",+ "start_line": 8,+ "end_line": 8,+ "docstring": null,+ "decorators": [],+ "visibility": "public",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "scala",+ "parent_name": "Cohesive",+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/scala/classes.scala::Cohesive::count",+ "name": "count",+ "qualified_name": "lang_samples.scala.classes.Cohesive.count",+ "kind": "variable",+ "signature": "count",+ "start_line": 9,+ "end_line": 9,+ "docstring": null,+ "decorators": [],+ "visibility": "public",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "scala",+ "parent_name": "Cohesive",+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/scala/classes.scala::Cohesive::add",+ "name": "add",+ "qualified_name": "lang_samples.scala.classes.Cohesive.add",+ "kind": "method",+ "signature": "def add(n: Int) -> Unit",+ "start_line": 11,+ "end_line": 14,+ "docstring": null,+ "decorators": [],+ "visibility": "public",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "scala",+ "parent_name": "Cohesive",+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/scala/classes.scala::Cohesive::average",+ "name": "average",+ "qualified_name": "lang_samples.scala.classes.Cohesive.average",+ "kind": "method",+ "signature": "def average() -> Int",+ "start_line": 16,+ "end_line": 18,+ "docstring": null,+ "decorators": [],+ "visibility": "public",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "scala",+ "parent_name": "Cohesive",+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/scala/classes.scala::Cohesive::reset",+ "name": "reset",+ "qualified_name": "lang_samples.scala.classes.Cohesive.reset",+ "kind": "method",+ "signature": "def reset() -> Unit",+ "start_line": 20,+ "end_line": 23,+ "docstring": null,+ "decorators": [],+ "visibility": "public",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "scala",+ "parent_name": "Cohesive",+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/scala/classes.scala::Cohesive::describe",+ "name": "describe",+ "qualified_name": "lang_samples.scala.classes.Cohesive.describe",+ "kind": "method",+ "signature": "def describe() -> Int",+ "start_line": 25,+ "end_line": 27,+ "docstring": null,+ "decorators": [],+ "visibility": "public",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "scala",+ "parent_name": "Cohesive",+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/scala/classes.scala::Splintered",+ "name": "Splintered",+ "qualified_name": "lang_samples.scala.classes.Splintered",+ "kind": "class",+ "signature": "class Splintered",+ "start_line": 30,+ "end_line": 53,+ "docstring": null,+ "decorators": [],+ "visibility": "public",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "scala",+ "parent_name": null,+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/scala/classes.scala::Splintered::a",+ "name": "a",+ "qualified_name": "lang_samples.scala.classes.Splintered.a",+ "kind": "variable",+ "signature": "a",+ "start_line": 31,+ "end_line": 31,+ "docstring": null,+ "decorators": [],+ "visibility": "public",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "scala",+ "parent_name": "Splintered",+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/scala/classes.scala::Splintered::b",+ "name": "b",+ "qualified_name": "lang_samples.scala.classes.Splintered.b",+ "kind": "variable",+ "signature": "b",+ "start_line": 32,+ "end_line": 32,+ "docstring": null,+ "decorators": [],+ "visibility": "public",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "scala",+ "parent_name": "Splintered",+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/scala/classes.scala::Splintered::setA",+ "name": "setA",+ "qualified_name": "lang_samples.scala.classes.Splintered.setA",+ "kind": "method",+ "signature": "def setA(v: Int) -> Unit",+ "start_line": 34,+ "end_line": 36,+ "docstring": null,+ "decorators": [],+ "visibility": "public",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "scala",+ "parent_name": "Splintered",+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/scala/classes.scala::Splintered::getA",+ "name": "getA",+ "qualified_name": "lang_samples.scala.classes.Splintered.getA",+ "kind": "method",+ "signature": "def getA() -> Int",+ "start_line": 38,+ "end_line": 40,+ "docstring": null,+ "decorators": [],+ "visibility": "public",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "scala",+ "parent_name": "Splintered",+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/scala/classes.scala::Splintered::setB",+ "name": "setB",+ "qualified_name": "lang_samples.scala.classes.Splintered.setB",+ "kind": "method",+ "signature": "def setB(v: Int) -> Unit",+ "start_line": 42,+ "end_line": 44,+ "docstring": null,+ "decorators": [],+ "visibility": "public",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "scala",+ "parent_name": "Splintered",+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/scala/classes.scala::Splintered::getB",+ "name": "getB",+ "qualified_name": "lang_samples.scala.classes.Splintered.getB",+ "kind": "method",+ "signature": "def getB() -> Int",+ "start_line": 46,+ "end_line": 48,+ "docstring": null,+ "decorators": [],+ "visibility": "public",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "scala",+ "parent_name": "Splintered",+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/scala/classes.scala::Splintered::loner",+ "name": "loner",+ "qualified_name": "lang_samples.scala.classes.Splintered.loner",+ "kind": "method",+ "signature": "def loner() -> Int",+ "start_line": 50,+ "end_line": 52,+ "docstring": null,+ "decorators": [],+ "visibility": "public",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "scala",+ "parent_name": "Splintered",+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/scala/classes.scala::Registry",+ "name": "Registry",+ "qualified_name": "lang_samples.scala.classes.Registry",+ "kind": "class",+ "signature": "Registry",+ "start_line": 55,+ "end_line": 63,+ "docstring": null,+ "decorators": [],+ "visibility": "public",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "scala",+ "parent_name": null,+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/scala/classes.scala::Registry::lookup",+ "name": "lookup",+ "qualified_name": "lang_samples.scala.classes.Registry.lookup",+ "kind": "method",+ "signature": "def lookup(key: String) -> Int",+ "start_line": 56,+ "end_line": 58,+ "docstring": null,+ "decorators": [],+ "visibility": "public",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "scala",+ "parent_name": "Registry",+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/scala/classes.scala::Registry::register",+ "name": "register",+ "qualified_name": "lang_samples.scala.classes.Registry.register",+ "kind": "method",+ "signature": "def register(key: String) -> String",+ "start_line": 60,+ "end_line": 62,+ "docstring": null,+ "decorators": [],+ "visibility": "public",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "scala",+ "parent_name": "Registry",+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/scala/classes.scala::Shape",+ "name": "Shape",+ "qualified_name": "lang_samples.scala.classes.Shape",+ "kind": "trait",+ "signature": "Shape",+ "start_line": 65,+ "end_line": 69,+ "docstring": null,+ "decorators": [],+ "visibility": "public",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "scala",+ "parent_name": null,+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/scala/classes.scala::Shape::area",+ "name": "area",+ "qualified_name": "lang_samples.scala.classes.Shape.area",+ "kind": "method",+ "signature": "def area() -> Double",+ "start_line": 66,+ "end_line": 68,+ "docstring": null,+ "decorators": [],+ "visibility": "public",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "scala",+ "parent_name": "Shape",+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ }+ ],+ "imports": [],+ "exports": [+ "Cohesive",+ "Splintered",+ "Registry",+ "Shape"+ ],+ "export_aliases": {},+ "calls": [],+ "heritage": [],+ "docstring": null,+ "parse_errors": [],+ "content_hash": "53fc5c47cce65b65f9781c2e454d848e968c61b3672cca3110a5e04d7ac5fe23",+ "type_refs": [],+ "local_refs": [],+ "registrars": [],+ "references": []+ },+ "scala/nested.scala": {+ "file_info": {+ "path": "lang_samples/scala/nested.scala",+ "language": "scala",+ "size_bytes": 1099,+ "is_test": false,+ "is_config": false,+ "is_api_contract": false,+ "is_entry_point": false,+ "is_manifest_entry": false,+ "is_reachability_root": false+ },+ "symbols": [+ {+ "id": "lang_samples/scala/nested.scala::Nested",+ "name": "Nested",+ "qualified_name": "lang_samples.scala.nested.Nested",+ "kind": "class",+ "signature": "Nested",+ "start_line": 3,+ "end_line": 56,+ "docstring": null,+ "decorators": [],+ "visibility": "public",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "scala",+ "parent_name": null,+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/scala/nested.scala::Nested::deeplyNested",+ "name": "deeplyNested",+ "qualified_name": "lang_samples.scala.nested.Nested.deeplyNested",+ "kind": "method",+ "signature": "def deeplyNested(items: List[Int]) -> Int",+ "start_line": 4,+ "end_line": 18,+ "docstring": null,+ "decorators": [],+ "visibility": "public",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "scala",+ "parent_name": "Nested",+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/scala/nested.scala::Nested::manyBranches",+ "name": "manyBranches",+ "qualified_name": "lang_samples.scala.nested.Nested.manyBranches",+ "kind": "method",+ "signature": "def manyBranches(a: Int, b: Int) -> Int",+ "start_line": 20,+ "end_line": 28,+ "docstring": null,+ "decorators": [],+ "visibility": "public",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "scala",+ "parent_name": "Nested",+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/scala/nested.scala::Nested::matchGuards",+ "name": "matchGuards",+ "qualified_name": "lang_samples.scala.nested.Nested.matchGuards",+ "kind": "method",+ "signature": "def matchGuards(n: Int) -> String",+ "start_line": 30,+ "end_line": 37,+ "docstring": null,+ "decorators": [],+ "visibility": "public",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "scala",+ "parent_name": "Nested",+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/scala/nested.scala::Nested::flatMatch",+ "name": "flatMatch",+ "qualified_name": "lang_samples.scala.nested.Nested.flatMatch",+ "kind": "method",+ "signature": "def flatMatch(n: Int) -> String",+ "start_line": 39,+ "end_line": 45,+ "docstring": null,+ "decorators": [],+ "visibility": "public",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "scala",+ "parent_name": "Nested",+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/scala/nested.scala::Nested::forGuard",+ "name": "forGuard",+ "qualified_name": "lang_samples.scala.nested.Nested.forGuard",+ "kind": "method",+ "signature": "def forGuard(items: List[Int]) -> Int",+ "start_line": 47,+ "end_line": 53,+ "docstring": null,+ "decorators": [],+ "visibility": "public",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "scala",+ "parent_name": "Nested",+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/scala/nested.scala::Nested::shallow",+ "name": "shallow",+ "qualified_name": "lang_samples.scala.nested.Nested.shallow",+ "kind": "method",+ "signature": "def shallow(x: Int) -> Int",+ "start_line": 55,+ "end_line": 55,+ "docstring": null,+ "decorators": [],+ "visibility": "public",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "scala",+ "parent_name": "Nested",+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ }+ ],+ "imports": [],+ "exports": [+ "Nested"+ ],+ "export_aliases": {},+ "calls": [],+ "heritage": [],+ "docstring": null,+ "parse_errors": [],+ "content_hash": "0da452ad16b137f9736ca61fb9da000f57a7d868cc425df1ce83508bbdc0f034",+ "type_refs": [],+ "local_refs": [],+ "registrars": [],+ "references": []+ },+ "scala/perf_io_in_loop.scala": {+ "file_info": {+ "path": "lang_samples/scala/perf_io_in_loop.scala",+ "language": "scala",+ "size_bytes": 2421,+ "is_test": false,+ "is_config": false,+ "is_api_contract": false,+ "is_entry_point": false,+ "is_manifest_entry": false,+ "is_reachability_root": false+ },+ "symbols": [+ {+ "id": "lang_samples/scala/perf_io_in_loop.scala::PerfIoInLoop",+ "name": "PerfIoInLoop",+ "qualified_name": "lang_samples.scala.perf_io_in_loop.PerfIoInLoop",+ "kind": "class",+ "signature": "PerfIoInLoop",+ "start_line": 13,+ "end_line": 96,+ "docstring": null,+ "decorators": [],+ "visibility": "public",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "scala",+ "parent_name": null,+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/scala/perf_io_in_loop.scala::PerfIoInLoop::readAll",+ "name": "readAll",+ "qualified_name": "lang_samples.scala.perf_io_in_loop.PerfIoInLoop.readAll",+ "kind": "method",+ "signature": "def readAll(paths: List[String]) -> List[String]",+ "start_line": 14,+ "end_line": 21,+ "docstring": null,+ "decorators": [],+ "visibility": "public",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "scala",+ "parent_name": "PerfIoInLoop",+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/scala/perf_io_in_loop.scala::PerfIoInLoop::matrix",+ "name": "matrix",+ "qualified_name": "lang_samples.scala.perf_io_in_loop.PerfIoInLoop.matrix",+ "kind": "method",+ "signature": "def matrix(rows: List[List[String]]) -> Unit",+ "start_line": 23,+ "end_line": 29,+ "docstring": null,+ "decorators": [],+ "visibility": "public",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "scala",+ "parent_name": "PerfIoInLoop",+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/scala/perf_io_in_loop.scala::PerfIoInLoop::regexInLoop",+ "name": "regexInLoop",+ "qualified_name": "lang_samples.scala.perf_io_in_loop.PerfIoInLoop.regexInLoop",+ "kind": "method",+ "signature": "def regexInLoop(lines: List[String]) -> Int",+ "start_line": 31,+ "end_line": 39,+ "docstring": null,+ "decorators": [],+ "visibility": "public",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "scala",+ "parent_name": "PerfIoInLoop",+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/scala/perf_io_in_loop.scala::PerfIoInLoop::hoistedRegex",+ "name": "hoistedRegex",+ "qualified_name": "lang_samples.scala.perf_io_in_loop.PerfIoInLoop.hoistedRegex",+ "kind": "method",+ "signature": "def hoistedRegex(lines: List[String]) -> Int",+ "start_line": 41,+ "end_line": 48,+ "docstring": null,+ "decorators": [],+ "visibility": "public",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "scala",+ "parent_name": "PerfIoInLoop",+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/scala/perf_io_in_loop.scala::PerfIoInLoop::concat",+ "name": "concat",+ "qualified_name": "lang_samples.scala.perf_io_in_loop.PerfIoInLoop.concat",+ "kind": "method",+ "signature": "def concat(items: List[String]) -> String",+ "start_line": 50,+ "end_line": 58,+ "docstring": null,+ "decorators": [],+ "visibility": "public",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "scala",+ "parent_name": "PerfIoInLoop",+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/scala/perf_io_in_loop.scala::PerfIoInLoop::bufferAppend",+ "name": "bufferAppend",+ "qualified_name": "lang_samples.scala.perf_io_in_loop.PerfIoInLoop.bufferAppend",+ "kind": "method",+ "signature": "def bufferAppend(items: List[String]) -> Unit",+ "start_line": 60,+ "end_line": 65,+ "docstring": null,+ "decorators": [],+ "visibility": "public",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "scala",+ "parent_name": "PerfIoInLoop",+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/scala/perf_io_in_loop.scala::PerfIoInLoop::slow",+ "name": "slow",+ "qualified_name": "lang_samples.scala.perf_io_in_loop.PerfIoInLoop.slow",+ "kind": "method",+ "signature": "def slow(fut: Future[Int]) -> Future[Int]",+ "start_line": 67,+ "end_line": 70,+ "docstring": null,+ "decorators": [],+ "visibility": "public",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "scala",+ "parent_name": "PerfIoInLoop",+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/scala/perf_io_in_loop.scala::PerfIoInLoop::constantBound",+ "name": "constantBound",+ "qualified_name": "lang_samples.scala.perf_io_in_loop.PerfIoInLoop.constantBound",+ "kind": "method",+ "signature": "def constantBound() -> Int",+ "start_line": 72,+ "end_line": 79,+ "docstring": null,+ "decorators": [],+ "visibility": "public",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "scala",+ "parent_name": "PerfIoInLoop",+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/scala/perf_io_in_loop.scala::PerfIoInLoop::locked",+ "name": "locked",+ "qualified_name": "lang_samples.scala.perf_io_in_loop.PerfIoInLoop.locked",+ "kind": "method",+ "signature": "def locked(items: List[String], lock: AnyRef) -> Unit",+ "start_line": 81,+ "end_line": 87,+ "docstring": null,+ "decorators": [],+ "visibility": "public",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "scala",+ "parent_name": "PerfIoInLoop",+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/scala/perf_io_in_loop.scala::PerfIoInLoop::helperInLoop",+ "name": "helperInLoop",+ "qualified_name": "lang_samples.scala.perf_io_in_loop.PerfIoInLoop.helperInLoop",+ "kind": "method",+ "signature": "def helperInLoop(items: List[String]) -> Unit",+ "start_line": 89,+ "end_line": 93,+ "docstring": null,+ "decorators": [],+ "visibility": "public",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "scala",+ "parent_name": "PerfIoInLoop",+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/scala/perf_io_in_loop.scala::PerfIoInLoop::process",+ "name": "process",+ "qualified_name": "lang_samples.scala.perf_io_in_loop.PerfIoInLoop.process",+ "kind": "method",+ "signature": "def process(s: String) -> Unit",+ "start_line": 95,+ "end_line": 95,+ "docstring": null,+ "decorators": [],+ "visibility": "public",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "scala",+ "parent_name": "PerfIoInLoop",+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": [+ "private"+ ]+ }+ ],+ "imports": [+ {+ "raw_statement": "import java.util.regex.Pattern",+ "module_path": "java.util.regex.Pattern",+ "imported_names": [+ "Pattern"+ ],+ "is_relative": false,+ "resolved_file": null,+ "bindings": [+ {+ "local_name": "Pattern",+ "exported_name": "Pattern",+ "source_file": null,+ "is_module_alias": false,+ "is_global": false,+ "is_static_import": false,+ "line": null,+ "column": null+ }+ ],+ "is_reexport": false,+ "is_module_declaration": false,+ "type_only": false,+ "deferred": false+ },+ {+ "raw_statement": "import scala.concurrent.{Await, Future}",+ "module_path": "scala.concurrent.Await",+ "imported_names": [+ "Await"+ ],+ "is_relative": false,+ "resolved_file": null,+ "bindings": [+ {+ "local_name": "Await",+ "exported_name": "Await",+ "source_file": null,+ "is_module_alias": false,+ "is_global": false,+ "is_static_import": false,+ "line": null,+ "column": null+ }+ ],+ "is_reexport": false,+ "is_module_declaration": false,+ "type_only": false,+ "deferred": false+ },+ {+ "raw_statement": "import scala.concurrent.{Await, Future}",+ "module_path": "scala.concurrent.Future",+ "imported_names": [+ "Future"+ ],+ "is_relative": false,+ "resolved_file": null,+ "bindings": [+ {+ "local_name": "Future",+ "exported_name": "Future",+ "source_file": null,+ "is_module_alias": false,+ "is_global": false,+ "is_static_import": false,+ "line": null,+ "column": null+ }+ ],+ "is_reexport": false,+ "is_module_declaration": false,+ "type_only": false,+ "deferred": false+ },+ {+ "raw_statement": "import scala.concurrent.duration.Duration",+ "module_path": "scala.concurrent.duration.Duration",+ "imported_names": [+ "Duration"+ ],+ "is_relative": false,+ "resolved_file": null,+ "bindings": [+ {+ "local_name": "Duration",+ "exported_name": "Duration",+ "source_file": null,+ "is_module_alias": false,+ "is_global": false,+ "is_static_import": false,+ "line": null,+ "column": null+ }+ ],+ "is_reexport": false,+ "is_module_declaration": false,+ "type_only": false,+ "deferred": false+ },+ {+ "raw_statement": "import scala.io.Source",+ "module_path": "scala.io.Source",+ "imported_names": [+ "Source"+ ],+ "is_relative": false,+ "resolved_file": null,+ "bindings": [+ {+ "local_name": "Source",+ "exported_name": "Source",+ "source_file": null,+ "is_module_alias": false,+ "is_global": false,+ "is_static_import": false,+ "line": null,+ "column": null+ }+ ],+ "is_reexport": false,+ "is_module_declaration": false,+ "type_only": false,+ "deferred": false+ }+ ],+ "exports": [+ "PerfIoInLoop"+ ],+ "export_aliases": {},+ "calls": [+ {+ "target_name": "fromFile",+ "receiver_name": "Source",+ "caller_symbol_id": "lang_samples/scala/perf_io_in_loop.scala::PerfIoInLoop::readAll",+ "line": 17,+ "argument_count": 1,+ "receiver_call": null,+ "scope_name": null,+ "edge_type": "calls",+ "supplied_props": null,+ "bare_name_fallback": false,+ "spawned": false,+ "argument_types": null,+ "argument_names": null+ },+ {+ "target_name": "fromFile",+ "receiver_name": "Source",+ "caller_symbol_id": "lang_samples/scala/perf_io_in_loop.scala::PerfIoInLoop::matrix",+ "line": 26,+ "argument_count": 1,+ "receiver_call": null,+ "scope_name": null,+ "edge_type": "calls",+ "supplied_props": null,+ "bare_name_fallback": false,+ "spawned": false,+ "argument_types": null,+ "argument_names": null+ },+ {+ "target_name": "compile",+ "receiver_name": "Pattern",+ "caller_symbol_id": "lang_samples/scala/perf_io_in_loop.scala::PerfIoInLoop::regexInLoop",+ "line": 35,+ "argument_count": 1,+ "receiver_call": null,+ "scope_name": null,+ "edge_type": "calls",+ "supplied_props": null,+ "bare_name_fallback": false,+ "spawned": false,+ "argument_types": null,+ "argument_names": null+ },+ {+ "target_name": "findFirstIn",+ "receiver_name": "re",+ "caller_symbol_id": "lang_samples/scala/perf_io_in_loop.scala::PerfIoInLoop::regexInLoop",+ "line": 36,+ "argument_count": 1,+ "receiver_call": null,+ "scope_name": null,+ "edge_type": "calls",+ "supplied_props": null,+ "bare_name_fallback": false,+ "spawned": false,+ "argument_types": null,+ "argument_names": null+ },+ {+ "target_name": "findFirstIn",+ "receiver_name": "re",+ "caller_symbol_id": "lang_samples/scala/perf_io_in_loop.scala::PerfIoInLoop::hoistedRegex",+ "line": 45,+ "argument_count": 1,+ "receiver_call": null,+ "scope_name": null,+ "edge_type": "calls",+ "supplied_props": null,+ "bare_name_fallback": false,+ "spawned": false,+ "argument_types": null,+ "argument_names": null+ },+ {+ "target_name": "result",+ "receiver_name": "Await",+ "caller_symbol_id": "lang_samples/scala/perf_io_in_loop.scala::PerfIoInLoop::slow",+ "line": 68,+ "argument_count": 2,+ "receiver_call": null,+ "scope_name": null,+ "edge_type": "calls",+ "supplied_props": null,+ "bare_name_fallback": false,+ "spawned": false,+ "argument_types": null,+ "argument_names": null+ },+ {+ "target_name": "successful",+ "receiver_name": "Future",+ "caller_symbol_id": "lang_samples/scala/perf_io_in_loop.scala::PerfIoInLoop::slow",+ "line": 69,+ "argument_count": 1,+ "receiver_call": null,+ "scope_name": null,+ "edge_type": "calls",+ "supplied_props": null,+ "bare_name_fallback": false,+ "spawned": false,+ "argument_types": null,+ "argument_names": null+ },+ {+ "target_name": "fromFile",+ "receiver_name": "Source",+ "caller_symbol_id": "lang_samples/scala/perf_io_in_loop.scala::PerfIoInLoop::constantBound",+ "line": 75,+ "argument_count": 1,+ "receiver_call": null,+ "scope_name": null,+ "edge_type": "calls",+ "supplied_props": null,+ "bare_name_fallback": false,+ "spawned": false,+ "argument_types": null,+ "argument_names": null+ },+ {+ "target_name": "process",+ "receiver_name": null,+ "caller_symbol_id": "lang_samples/scala/perf_io_in_loop.scala::PerfIoInLoop::locked",+ "line": 84,+ "argument_count": 1,+ "receiver_call": null,+ "scope_name": null,+ "edge_type": "calls",+ "supplied_props": null,+ "bare_name_fallback": false,+ "spawned": false,+ "argument_types": null,+ "argument_names": null+ },+ {+ "target_name": "process",+ "receiver_name": null,+ "caller_symbol_id": "lang_samples/scala/perf_io_in_loop.scala::PerfIoInLoop::helperInLoop",+ "line": 91,+ "argument_count": 1,+ "receiver_call": null,+ "scope_name": null,+ "edge_type": "calls",+ "supplied_props": null,+ "bare_name_fallback": false,+ "spawned": false,+ "argument_types": null,+ "argument_names": null+ }+ ],+ "heritage": [],+ "docstring": null,+ "parse_errors": [],+ "content_hash": "607c54ffdc83c55f1e7207955babd071786d0141ff28d2a3ca3ed0a94943bfb0",+ "type_refs": [],+ "local_refs": [],+ "registrars": [],+ "references": []+ }+}diff --git a/tests/unit/ingestion/parser/golden/shell.json b/tests/unit/ingestion/parser/golden/shell.jsonnew file mode 100644index 000000000..2573de855--- /dev/null+++ b/tests/unit/ingestion/parser/golden/shell.json@@ -0,0 +1,508 @@+{+ "shell/control_flow.sh": {+ "file_info": {+ "path": "lang_samples/shell/control_flow.sh",+ "language": "shell",+ "size_bytes": 734,+ "is_test": false,+ "is_config": false,+ "is_api_contract": false,+ "is_entry_point": false,+ "is_manifest_entry": false,+ "is_reachability_root": false+ },+ "symbols": [+ {+ "id": "lang_samples/shell/control_flow.sh::process",+ "name": "process",+ "qualified_name": "lang_samples.shell.control_flow.process",+ "kind": "function",+ "signature": "def process",+ "start_line": 5,+ "end_line": 36,+ "docstring": null,+ "decorators": [],+ "visibility": "public",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "shell",+ "parent_name": null,+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/shell/control_flow.sh::trivial",+ "name": "trivial",+ "qualified_name": "lang_samples.shell.control_flow.trivial",+ "kind": "function",+ "signature": "def trivial",+ "start_line": 38,+ "end_line": 40,+ "docstring": null,+ "decorators": [],+ "visibility": "public",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "shell",+ "parent_name": null,+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ }+ ],+ "imports": [],+ "exports": [+ "process",+ "trivial"+ ],+ "export_aliases": {},+ "calls": [+ {+ "target_name": "cat",+ "receiver_name": null,+ "caller_symbol_id": "lang_samples/shell/control_flow.sh::process",+ "line": 16,+ "argument_count": null,+ "receiver_call": null,+ "scope_name": null,+ "edge_type": "calls",+ "supplied_props": null,+ "bare_name_fallback": false,+ "spawned": false,+ "argument_types": null,+ "argument_names": null+ },+ {+ "target_name": "check_done",+ "receiver_name": null,+ "caller_symbol_id": "lang_samples/shell/control_flow.sh::process",+ "line": 27,+ "argument_count": null,+ "receiver_call": null,+ "scope_name": null,+ "edge_type": "calls",+ "supplied_props": null,+ "bare_name_fallback": false,+ "spawned": false,+ "argument_types": null,+ "argument_names": null+ },+ {+ "target_name": "step",+ "receiver_name": null,+ "caller_symbol_id": "lang_samples/shell/control_flow.sh::process",+ "line": 28,+ "argument_count": null,+ "receiver_call": null,+ "scope_name": null,+ "edge_type": "calls",+ "supplied_props": null,+ "bare_name_fallback": false,+ "spawned": false,+ "argument_types": null,+ "argument_names": null+ }+ ],+ "heritage": [],+ "docstring": null,+ "parse_errors": [],+ "content_hash": "befe439c081cb9c86a614d5994a89150937346a39a9686e4832dd2032cdc3423",+ "type_refs": [],+ "local_refs": [],+ "registrars": [],+ "references": []+ },+ "shell/functions.sh": {+ "file_info": {+ "path": "lang_samples/shell/functions.sh",+ "language": "shell",+ "size_bytes": 221,+ "is_test": false,+ "is_config": false,+ "is_api_contract": false,+ "is_entry_point": false,+ "is_manifest_entry": false,+ "is_reachability_root": false+ },+ "symbols": [+ {+ "id": "lang_samples/shell/functions.sh::greet",+ "name": "greet",+ "qualified_name": "lang_samples.shell.functions.greet",+ "kind": "function",+ "signature": "def greet",+ "start_line": 4,+ "end_line": 7,+ "docstring": null,+ "decorators": [],+ "visibility": "public",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "shell",+ "parent_name": null,+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/shell/functions.sh::deploy",+ "name": "deploy",+ "qualified_name": "lang_samples.shell.functions.deploy",+ "kind": "function",+ "signature": "def deploy",+ "start_line": 9,+ "end_line": 12,+ "docstring": null,+ "decorators": [],+ "visibility": "public",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "shell",+ "parent_name": null,+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/shell/functions.sh::build_step",+ "name": "build_step",+ "qualified_name": "lang_samples.shell.functions.build_step",+ "kind": "function",+ "signature": "def build_step",+ "start_line": 14,+ "end_line": 16,+ "docstring": null,+ "decorators": [],+ "visibility": "public",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "shell",+ "parent_name": null,+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ }+ ],+ "imports": [],+ "exports": [+ "greet",+ "deploy",+ "build_step"+ ],+ "export_aliases": {},+ "calls": [+ {+ "target_name": "greet",+ "receiver_name": null,+ "caller_symbol_id": "lang_samples/shell/functions.sh::deploy",+ "line": 10,+ "argument_count": null,+ "receiver_call": null,+ "scope_name": null,+ "edge_type": "calls",+ "supplied_props": null,+ "bare_name_fallback": false,+ "spawned": false,+ "argument_types": null,+ "argument_names": null+ },+ {+ "target_name": "build_step",+ "receiver_name": null,+ "caller_symbol_id": "lang_samples/shell/functions.sh::deploy",+ "line": 11,+ "argument_count": null,+ "receiver_call": null,+ "scope_name": null,+ "edge_type": "calls",+ "supplied_props": null,+ "bare_name_fallback": false,+ "spawned": false,+ "argument_types": null,+ "argument_names": null+ }+ ],+ "heritage": [],+ "docstring": null,+ "parse_errors": [],+ "content_hash": "6b448e7c5c76eeb1f706e2fc7a72aaedeed0c2f352a158dd3390c7bc02b1947e",+ "type_refs": [],+ "local_refs": [],+ "registrars": [],+ "references": []+ },+ "shell/sourcing.sh": {+ "file_info": {+ "path": "lang_samples/shell/sourcing.sh",+ "language": "shell",+ "size_bytes": 259,+ "is_test": false,+ "is_config": false,+ "is_api_contract": false,+ "is_entry_point": false,+ "is_manifest_entry": false,+ "is_reachability_root": false+ },+ "symbols": [+ {+ "id": "lang_samples/shell/sourcing.sh::main",+ "name": "main",+ "qualified_name": "lang_samples.shell.sourcing.main",+ "kind": "function",+ "signature": "def main",+ "start_line": 10,+ "end_line": 13,+ "docstring": null,+ "decorators": [],+ "visibility": "public",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "shell",+ "parent_name": null,+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ }+ ],+ "imports": [+ {+ "raw_statement": "source \"$SCRIPT_DIR/lib/util.sh\"",+ "module_path": "$SCRIPT_DIR/lib/util.sh",+ "imported_names": [],+ "is_relative": false,+ "resolved_file": null,+ "bindings": [],+ "is_reexport": false,+ "is_module_declaration": false,+ "type_only": false,+ "deferred": false+ },+ {+ "raw_statement": ". ./helpers.sh",+ "module_path": "./helpers.sh",+ "imported_names": [],+ "is_relative": true,+ "resolved_file": null,+ "bindings": [],+ "is_reexport": false,+ "is_module_declaration": false,+ "type_only": false,+ "deferred": false+ },+ {+ "raw_statement": "source \"${BASH_SOURCE%/*}/lib/log.sh\"",+ "module_path": "${BASH_SOURCE%/*}/lib/log.sh",+ "imported_names": [],+ "is_relative": false,+ "resolved_file": null,+ "bindings": [],+ "is_reexport": false,+ "is_module_declaration": false,+ "type_only": false,+ "deferred": false+ }+ ],+ "exports": [+ "main"+ ],+ "export_aliases": {},+ "calls": [+ {+ "target_name": "dirname",+ "receiver_name": null,+ "caller_symbol_id": null,+ "line": 4,+ "argument_count": null,+ "receiver_call": null,+ "scope_name": null,+ "edge_type": "calls",+ "supplied_props": null,+ "bare_name_fallback": false,+ "spawned": false,+ "argument_types": null,+ "argument_names": null+ },+ {+ "target_name": "util_init",+ "receiver_name": null,+ "caller_symbol_id": "lang_samples/shell/sourcing.sh::main",+ "line": 11,+ "argument_count": null,+ "receiver_call": null,+ "scope_name": null,+ "edge_type": "calls",+ "supplied_props": null,+ "bare_name_fallback": false,+ "spawned": false,+ "argument_types": null,+ "argument_names": null+ },+ {+ "target_name": "helper_run",+ "receiver_name": null,+ "caller_symbol_id": "lang_samples/shell/sourcing.sh::main",+ "line": 12,+ "argument_count": null,+ "receiver_call": null,+ "scope_name": null,+ "edge_type": "calls",+ "supplied_props": null,+ "bare_name_fallback": false,+ "spawned": false,+ "argument_types": null,+ "argument_names": null+ },+ {+ "target_name": "main",+ "receiver_name": null,+ "caller_symbol_id": null,+ "line": 15,+ "argument_count": null,+ "receiver_call": null,+ "scope_name": null,+ "edge_type": "calls",+ "supplied_props": null,+ "bare_name_fallback": false,+ "spawned": false,+ "argument_types": null,+ "argument_names": null+ }+ ],+ "heritage": [],+ "docstring": null,+ "parse_errors": [],+ "content_hash": "c225e165b2145597b5fc6f907d51168ec8d1886126ca893481bc43c385551f57",+ "type_refs": [],+ "local_refs": [],+ "registrars": [],+ "references": []+ },+ "shell/zero_functions.sh": {+ "file_info": {+ "path": "lang_samples/shell/zero_functions.sh",+ "language": "shell",+ "size_bytes": 149,+ "is_test": false,+ "is_config": false,+ "is_api_contract": false,+ "is_entry_point": false,+ "is_manifest_entry": false,+ "is_reachability_root": false+ },+ "symbols": [],+ "imports": [],+ "exports": [],+ "export_aliases": {},+ "calls": [+ {+ "target_name": "rm",+ "receiver_name": null,+ "caller_symbol_id": null,+ "line": 6,+ "argument_count": null,+ "receiver_call": null,+ "scope_name": null,+ "edge_type": "calls",+ "supplied_props": null,+ "bare_name_fallback": false,+ "spawned": false,+ "argument_types": null,+ "argument_names": null+ }+ ],+ "heritage": [],+ "docstring": null,+ "parse_errors": [],+ "content_hash": "f783d82380d06790643f7bf9debfc1efe4949221e04a164f5c527fe866779734",+ "type_refs": [],+ "local_refs": [],+ "registrars": [],+ "references": []+ },+ "shell/zshisms.zsh": {+ "file_info": {+ "path": "lang_samples/shell/zshisms.zsh",+ "language": "shell",+ "size_bytes": 308,+ "is_test": false,+ "is_config": false,+ "is_api_contract": false,+ "is_entry_point": false,+ "is_manifest_entry": false,+ "is_reachability_root": false+ },+ "symbols": [+ {+ "id": "lang_samples/shell/zshisms.zsh::setup",+ "name": "setup",+ "qualified_name": "lang_samples.shell.zshisms.setup",+ "kind": "function",+ "signature": "def setup",+ "start_line": 11,+ "end_line": 13,+ "docstring": null,+ "decorators": [],+ "visibility": "public",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "shell",+ "parent_name": null,+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ }+ ],+ "imports": [],+ "exports": [+ "setup"+ ],+ "export_aliases": {},+ "calls": [+ {+ "target_name": "autoload",+ "receiver_name": null,+ "caller_symbol_id": null,+ "line": 6,+ "argument_count": null,+ "receiver_call": null,+ "scope_name": null,+ "edge_type": "calls",+ "supplied_props": null,+ "bare_name_fallback": false,+ "spawned": false,+ "argument_types": null,+ "argument_names": null+ }+ ],+ "heritage": [],+ "docstring": null,+ "parse_errors": [],+ "content_hash": "f02cc421a5f37bc0d8def8e44c990da3cda7fdb478b434af5c33e62951268d6a",+ "type_refs": [],+ "local_refs": [],+ "registrars": [],+ "references": []+ }+}diff --git a/tests/unit/ingestion/parser/golden/swift.json b/tests/unit/ingestion/parser/golden/swift.jsonnew file mode 100644index 000000000..9998f2fc1--- /dev/null+++ b/tests/unit/ingestion/parser/golden/swift.json@@ -0,0 +1,456 @@+{+ "swift/classes.swift": {+ "file_info": {+ "path": "lang_samples/swift/classes.swift",+ "language": "swift",+ "size_bytes": 908,+ "is_test": false,+ "is_config": false,+ "is_api_contract": false,+ "is_entry_point": false,+ "is_manifest_entry": false,+ "is_reachability_root": false+ },+ "symbols": [+ {+ "id": "lang_samples/swift/classes.swift::Cohesive",+ "name": "Cohesive",+ "qualified_name": "lang_samples.swift.classes.Cohesive",+ "kind": "class",+ "signature": "class Cohesive",+ "start_line": 6,+ "end_line": 27,+ "docstring": null,+ "decorators": [],+ "visibility": "internal",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "swift",+ "parent_name": null,+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/swift/classes.swift::Cohesive::total",+ "name": "total",+ "qualified_name": "lang_samples.swift.classes.Cohesive.total",+ "kind": "variable",+ "signature": "total",+ "start_line": 7,+ "end_line": 7,+ "docstring": null,+ "decorators": [],+ "visibility": "internal",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "swift",+ "parent_name": "Cohesive",+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/swift/classes.swift::Cohesive::count",+ "name": "count",+ "qualified_name": "lang_samples.swift.classes.Cohesive.count",+ "kind": "variable",+ "signature": "count",+ "start_line": 8,+ "end_line": 8,+ "docstring": null,+ "decorators": [],+ "visibility": "internal",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "swift",+ "parent_name": "Cohesive",+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/swift/classes.swift::Cohesive::add",+ "name": "add",+ "qualified_name": "lang_samples.swift.classes.Cohesive.add",+ "kind": "method",+ "signature": "function add",+ "start_line": 10,+ "end_line": 13,+ "docstring": null,+ "decorators": [],+ "visibility": "internal",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "swift",+ "parent_name": "Cohesive",+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/swift/classes.swift::Cohesive::average",+ "name": "average",+ "qualified_name": "lang_samples.swift.classes.Cohesive.average",+ "kind": "method",+ "signature": "function average -> Int",+ "start_line": 15,+ "end_line": 17,+ "docstring": null,+ "decorators": [],+ "visibility": "internal",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "swift",+ "parent_name": "Cohesive",+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/swift/classes.swift::Cohesive::reset",+ "name": "reset",+ "qualified_name": "lang_samples.swift.classes.Cohesive.reset",+ "kind": "method",+ "signature": "function reset",+ "start_line": 19,+ "end_line": 22,+ "docstring": null,+ "decorators": [],+ "visibility": "internal",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "swift",+ "parent_name": "Cohesive",+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/swift/classes.swift::Cohesive::describe",+ "name": "describe",+ "qualified_name": "lang_samples.swift.classes.Cohesive.describe",+ "kind": "method",+ "signature": "function describe -> Int",+ "start_line": 24,+ "end_line": 26,+ "docstring": null,+ "decorators": [],+ "visibility": "internal",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "swift",+ "parent_name": "Cohesive",+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/swift/classes.swift::Splintered",+ "name": "Splintered",+ "qualified_name": "lang_samples.swift.classes.Splintered",+ "kind": "class",+ "signature": "class Splintered",+ "start_line": 29,+ "end_line": 52,+ "docstring": null,+ "decorators": [],+ "visibility": "internal",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "swift",+ "parent_name": null,+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/swift/classes.swift::Splintered::a",+ "name": "a",+ "qualified_name": "lang_samples.swift.classes.Splintered.a",+ "kind": "variable",+ "signature": "a",+ "start_line": 30,+ "end_line": 30,+ "docstring": null,+ "decorators": [],+ "visibility": "internal",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "swift",+ "parent_name": "Splintered",+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/swift/classes.swift::Splintered::b",+ "name": "b",+ "qualified_name": "lang_samples.swift.classes.Splintered.b",+ "kind": "variable",+ "signature": "b",+ "start_line": 31,+ "end_line": 31,+ "docstring": null,+ "decorators": [],+ "visibility": "internal",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "swift",+ "parent_name": "Splintered",+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/swift/classes.swift::Splintered::setA",+ "name": "setA",+ "qualified_name": "lang_samples.swift.classes.Splintered.setA",+ "kind": "method",+ "signature": "function setA",+ "start_line": 33,+ "end_line": 35,+ "docstring": null,+ "decorators": [],+ "visibility": "internal",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "swift",+ "parent_name": "Splintered",+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": [+ "mutating"+ ]+ },+ {+ "id": "lang_samples/swift/classes.swift::Splintered::getA",+ "name": "getA",+ "qualified_name": "lang_samples.swift.classes.Splintered.getA",+ "kind": "method",+ "signature": "function getA -> Int",+ "start_line": 37,+ "end_line": 39,+ "docstring": null,+ "decorators": [],+ "visibility": "internal",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "swift",+ "parent_name": "Splintered",+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/swift/classes.swift::Splintered::setB",+ "name": "setB",+ "qualified_name": "lang_samples.swift.classes.Splintered.setB",+ "kind": "method",+ "signature": "function setB",+ "start_line": 41,+ "end_line": 43,+ "docstring": null,+ "decorators": [],+ "visibility": "internal",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "swift",+ "parent_name": "Splintered",+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": [+ "mutating"+ ]+ },+ {+ "id": "lang_samples/swift/classes.swift::Splintered::getB",+ "name": "getB",+ "qualified_name": "lang_samples.swift.classes.Splintered.getB",+ "kind": "method",+ "signature": "function getB -> Int",+ "start_line": 45,+ "end_line": 47,+ "docstring": null,+ "decorators": [],+ "visibility": "internal",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "swift",+ "parent_name": "Splintered",+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/swift/classes.swift::Splintered::loner",+ "name": "loner",+ "qualified_name": "lang_samples.swift.classes.Splintered.loner",+ "kind": "method",+ "signature": "function loner -> Int",+ "start_line": 49,+ "end_line": 51,+ "docstring": null,+ "decorators": [],+ "visibility": "internal",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "swift",+ "parent_name": "Splintered",+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ }+ ],+ "imports": [],+ "exports": [],+ "export_aliases": {},+ "calls": [],+ "heritage": [],+ "docstring": null,+ "parse_errors": [],+ "content_hash": "da2f14022771d1c1825f1ff98aa303b85af62f19732bf14d669111daed7098e8",+ "type_refs": [],+ "local_refs": [],+ "registrars": [],+ "references": []+ },+ "swift/nested.swift": {+ "file_info": {+ "path": "lang_samples/swift/nested.swift",+ "language": "swift",+ "size_bytes": 571,+ "is_test": false,+ "is_config": false,+ "is_api_contract": false,+ "is_entry_point": false,+ "is_manifest_entry": false,+ "is_reachability_root": false+ },+ "symbols": [+ {+ "id": "lang_samples/swift/nested.swift::deeplyNested",+ "name": "deeplyNested",+ "qualified_name": "lang_samples.swift.nested.deeplyNested",+ "kind": "function",+ "signature": "function deeplyNested -> Int",+ "start_line": 3,+ "end_line": 14,+ "docstring": null,+ "decorators": [],+ "visibility": "internal",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "swift",+ "parent_name": null,+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/swift/nested.swift::shallow",+ "name": "shallow",+ "qualified_name": "lang_samples.swift.nested.shallow",+ "kind": "function",+ "signature": "function shallow -> Int",+ "start_line": 16,+ "end_line": 18,+ "docstring": null,+ "decorators": [],+ "visibility": "internal",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "swift",+ "parent_name": null,+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/swift/nested.swift::manyBranches",+ "name": "manyBranches",+ "qualified_name": "lang_samples.swift.nested.manyBranches",+ "kind": "function",+ "signature": "function manyBranches -> Int",+ "start_line": 20,+ "end_line": 28,+ "docstring": null,+ "decorators": [],+ "visibility": "internal",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "swift",+ "parent_name": null,+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ }+ ],+ "imports": [],+ "exports": [],+ "export_aliases": {},+ "calls": [],+ "heritage": [],+ "docstring": null,+ "parse_errors": [],+ "content_hash": "7e05a6bf04be47e0c2a507d9ee367e344cae2e9a69cc0e05544a68eea6f69386",+ "type_refs": [],+ "local_refs": [],+ "registrars": [],+ "references": []+ }+}diff --git a/tests/unit/ingestion/parser/golden/typescript.json b/tests/unit/ingestion/parser/golden/typescript.jsonnew file mode 100644index 000000000..28bf3cec6--- /dev/null+++ b/tests/unit/ingestion/parser/golden/typescript.json@@ -0,0 +1,2248 @@+{+ "typescript/assertions.ts": {+ "file_info": {+ "path": "lang_samples/typescript/assertions.ts",+ "language": "typescript",+ "size_bytes": 547,+ "is_test": false,+ "is_config": false,+ "is_api_contract": false,+ "is_entry_point": false,+ "is_manifest_entry": false,+ "is_reachability_root": false+ },+ "symbols": [+ {+ "id": "lang_samples/typescript/assertions.ts::testManyExpects",+ "name": "testManyExpects",+ "qualified_name": "lang_samples.typescript.assertions.testManyExpects",+ "kind": "function",+ "signature": "function testManyExpects() -> void",+ "start_line": 3,+ "end_line": 21,+ "docstring": null,+ "decorators": [],+ "visibility": "private",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "typescript",+ "parent_name": null,+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/typescript/assertions.ts::testFewExpects",+ "name": "testFewExpects",+ "qualified_name": "lang_samples.typescript.assertions.testFewExpects",+ "kind": "function",+ "signature": "function testFewExpects() -> void",+ "start_line": 23,+ "end_line": 27,+ "docstring": null,+ "decorators": [],+ "visibility": "private",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "typescript",+ "parent_name": null,+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ }+ ],+ "imports": [],+ "exports": [],+ "export_aliases": {},+ "calls": [+ {+ "target_name": "expect",+ "receiver_name": null,+ "caller_symbol_id": "lang_samples/typescript/assertions.ts::testManyExpects",+ "line": 5,+ "argument_count": 1,+ "receiver_call": null,+ "scope_name": null,+ "edge_type": "calls",+ "supplied_props": null,+ "bare_name_fallback": false,+ "spawned": false,+ "argument_types": null,+ "argument_names": null+ },+ {+ "target_name": "toBe",+ "receiver_name": null,+ "caller_symbol_id": "lang_samples/typescript/assertions.ts::testManyExpects",+ "line": 5,+ "argument_count": 1,+ "receiver_call": {+ "target_name": "expect",+ "receiver_name": null,+ "argument_count": 1+ },+ "scope_name": null,+ "edge_type": "calls",+ "supplied_props": null,+ "bare_name_fallback": false,+ "spawned": false,+ "argument_types": null,+ "argument_names": null+ },+ {+ "target_name": "expect",+ "receiver_name": null,+ "caller_symbol_id": "lang_samples/typescript/assertions.ts::testManyExpects",+ "line": 6,+ "argument_count": 1,+ "receiver_call": null,+ "scope_name": null,+ "edge_type": "calls",+ "supplied_props": null,+ "bare_name_fallback": false,+ "spawned": false,+ "argument_types": null,+ "argument_names": null+ },+ {+ "target_name": "toBe",+ "receiver_name": null,+ "caller_symbol_id": "lang_samples/typescript/assertions.ts::testManyExpects",+ "line": 6,+ "argument_count": 1,+ "receiver_call": {+ "target_name": "expect",+ "receiver_name": null,+ "argument_count": 1+ },+ "scope_name": null,+ "edge_type": "calls",+ "supplied_props": null,+ "bare_name_fallback": false,+ "spawned": false,+ "argument_types": null,+ "argument_names": null+ },+ {+ "target_name": "expect",+ "receiver_name": null,+ "caller_symbol_id": "lang_samples/typescript/assertions.ts::testManyExpects",+ "line": 7,+ "argument_count": 1,+ "receiver_call": null,+ "scope_name": null,+ "edge_type": "calls",+ "supplied_props": null,+ "bare_name_fallback": false,+ "spawned": false,+ "argument_types": null,+ "argument_names": null+ },+ {+ "target_name": "toBe",+ "receiver_name": null,+ "caller_symbol_id": "lang_samples/typescript/assertions.ts::testManyExpects",+ "line": 7,+ "argument_count": 1,+ "receiver_call": {+ "target_name": "expect",+ "receiver_name": null,+ "argument_count": 1+ },+ "scope_name": null,+ "edge_type": "calls",+ "supplied_props": null,+ "bare_name_fallback": false,+ "spawned": false,+ "argument_types": null,+ "argument_names": null+ },+ {+ "target_name": "expect",+ "receiver_name": null,+ "caller_symbol_id": "lang_samples/typescript/assertions.ts::testManyExpects",+ "line": 8,+ "argument_count": 1,+ "receiver_call": null,+ "scope_name": null,+ "edge_type": "calls",+ "supplied_props": null,+ "bare_name_fallback": false,+ "spawned": false,+ "argument_types": null,+ "argument_names": null+ },+ {+ "target_name": "toBe",+ "receiver_name": null,+ "caller_symbol_id": "lang_samples/typescript/assertions.ts::testManyExpects",+ "line": 8,+ "argument_count": 1,+ "receiver_call": {+ "target_name": "expect",+ "receiver_name": null,+ "argument_count": 1+ },+ "scope_name": null,+ "edge_type": "calls",+ "supplied_props": null,+ "bare_name_fallback": false,+ "spawned": false,+ "argument_types": null,+ "argument_names": null+ },+ {+ "target_name": "expect",+ "receiver_name": null,+ "caller_symbol_id": "lang_samples/typescript/assertions.ts::testManyExpects",+ "line": 9,+ "argument_count": 1,+ "receiver_call": null,+ "scope_name": null,+ "edge_type": "calls",+ "supplied_props": null,+ "bare_name_fallback": false,+ "spawned": false,+ "argument_types": null,+ "argument_names": null+ },+ {+ "target_name": "toBe",+ "receiver_name": null,+ "caller_symbol_id": "lang_samples/typescript/assertions.ts::testManyExpects",+ "line": 9,+ "argument_count": 1,+ "receiver_call": {+ "target_name": "expect",+ "receiver_name": null,+ "argument_count": 1+ },+ "scope_name": null,+ "edge_type": "calls",+ "supplied_props": null,+ "bare_name_fallback": false,+ "spawned": false,+ "argument_types": null,+ "argument_names": null+ },+ {+ "target_name": "expect",+ "receiver_name": null,+ "caller_symbol_id": "lang_samples/typescript/assertions.ts::testManyExpects",+ "line": 10,+ "argument_count": 1,+ "receiver_call": null,+ "scope_name": null,+ "edge_type": "calls",+ "supplied_props": null,+ "bare_name_fallback": false,+ "spawned": false,+ "argument_types": null,+ "argument_names": null+ },+ {+ "target_name": "toBe",+ "receiver_name": null,+ "caller_symbol_id": "lang_samples/typescript/assertions.ts::testManyExpects",+ "line": 10,+ "argument_count": 1,+ "receiver_call": {+ "target_name": "expect",+ "receiver_name": null,+ "argument_count": 1+ },+ "scope_name": null,+ "edge_type": "calls",+ "supplied_props": null,+ "bare_name_fallback": false,+ "spawned": false,+ "argument_types": null,+ "argument_names": null+ },+ {+ "target_name": "expect",+ "receiver_name": null,+ "caller_symbol_id": "lang_samples/typescript/assertions.ts::testManyExpects",+ "line": 11,+ "argument_count": 1,+ "receiver_call": null,+ "scope_name": null,+ "edge_type": "calls",+ "supplied_props": null,+ "bare_name_fallback": false,+ "spawned": false,+ "argument_types": null,+ "argument_names": null+ },+ {+ "target_name": "toBe",+ "receiver_name": null,+ "caller_symbol_id": "lang_samples/typescript/assertions.ts::testManyExpects",+ "line": 11,+ "argument_count": 1,+ "receiver_call": {+ "target_name": "expect",+ "receiver_name": null,+ "argument_count": 1+ },+ "scope_name": null,+ "edge_type": "calls",+ "supplied_props": null,+ "bare_name_fallback": false,+ "spawned": false,+ "argument_types": null,+ "argument_names": null+ },+ {+ "target_name": "expect",+ "receiver_name": null,+ "caller_symbol_id": "lang_samples/typescript/assertions.ts::testManyExpects",+ "line": 12,+ "argument_count": 1,+ "receiver_call": null,+ "scope_name": null,+ "edge_type": "calls",+ "supplied_props": null,+ "bare_name_fallback": false,+ "spawned": false,+ "argument_types": null,+ "argument_names": null+ },+ {+ "target_name": "toBe",+ "receiver_name": null,+ "caller_symbol_id": "lang_samples/typescript/assertions.ts::testManyExpects",+ "line": 12,+ "argument_count": 1,+ "receiver_call": {+ "target_name": "expect",+ "receiver_name": null,+ "argument_count": 1+ },+ "scope_name": null,+ "edge_type": "calls",+ "supplied_props": null,+ "bare_name_fallback": false,+ "spawned": false,+ "argument_types": null,+ "argument_names": null+ },+ {+ "target_name": "expect",+ "receiver_name": null,+ "caller_symbol_id": "lang_samples/typescript/assertions.ts::testManyExpects",+ "line": 13,+ "argument_count": 1,+ "receiver_call": null,+ "scope_name": null,+ "edge_type": "calls",+ "supplied_props": null,+ "bare_name_fallback": false,+ "spawned": false,+ "argument_types": null,+ "argument_names": null+ },+ {+ "target_name": "toBe",+ "receiver_name": null,+ "caller_symbol_id": "lang_samples/typescript/assertions.ts::testManyExpects",+ "line": 13,+ "argument_count": 1,+ "receiver_call": {+ "target_name": "expect",+ "receiver_name": null,+ "argument_count": 1+ },+ "scope_name": null,+ "edge_type": "calls",+ "supplied_props": null,+ "bare_name_fallback": false,+ "spawned": false,+ "argument_types": null,+ "argument_names": null+ },+ {+ "target_name": "expect",+ "receiver_name": null,+ "caller_symbol_id": "lang_samples/typescript/assertions.ts::testManyExpects",+ "line": 14,+ "argument_count": 1,+ "receiver_call": null,+ "scope_name": null,+ "edge_type": "calls",+ "supplied_props": null,+ "bare_name_fallback": false,+ "spawned": false,+ "argument_types": null,+ "argument_names": null+ },+ {+ "target_name": "toBe",+ "receiver_name": null,+ "caller_symbol_id": "lang_samples/typescript/assertions.ts::testManyExpects",+ "line": 14,+ "argument_count": 1,+ "receiver_call": {+ "target_name": "expect",+ "receiver_name": null,+ "argument_count": 1+ },+ "scope_name": null,+ "edge_type": "calls",+ "supplied_props": null,+ "bare_name_fallback": false,+ "spawned": false,+ "argument_types": null,+ "argument_names": null+ },+ {+ "target_name": "expect",+ "receiver_name": null,+ "caller_symbol_id": "lang_samples/typescript/assertions.ts::testManyExpects",+ "line": 15,+ "argument_count": 1,+ "receiver_call": null,+ "scope_name": null,+ "edge_type": "calls",+ "supplied_props": null,+ "bare_name_fallback": false,+ "spawned": false,+ "argument_types": null,+ "argument_names": null+ },+ {+ "target_name": "toBe",+ "receiver_name": null,+ "caller_symbol_id": "lang_samples/typescript/assertions.ts::testManyExpects",+ "line": 15,+ "argument_count": 1,+ "receiver_call": {+ "target_name": "expect",+ "receiver_name": null,+ "argument_count": 1+ },+ "scope_name": null,+ "edge_type": "calls",+ "supplied_props": null,+ "bare_name_fallback": false,+ "spawned": false,+ "argument_types": null,+ "argument_names": null+ },+ {+ "target_name": "expect",+ "receiver_name": null,+ "caller_symbol_id": "lang_samples/typescript/assertions.ts::testManyExpects",+ "line": 16,+ "argument_count": 1,+ "receiver_call": null,+ "scope_name": null,+ "edge_type": "calls",+ "supplied_props": null,+ "bare_name_fallback": false,+ "spawned": false,+ "argument_types": null,+ "argument_names": null+ },+ {+ "target_name": "toBe",+ "receiver_name": null,+ "caller_symbol_id": "lang_samples/typescript/assertions.ts::testManyExpects",+ "line": 16,+ "argument_count": 1,+ "receiver_call": {+ "target_name": "expect",+ "receiver_name": null,+ "argument_count": 1+ },+ "scope_name": null,+ "edge_type": "calls",+ "supplied_props": null,+ "bare_name_fallback": false,+ "spawned": false,+ "argument_types": null,+ "argument_names": null+ },+ {+ "target_name": "expect",+ "receiver_name": null,+ "caller_symbol_id": "lang_samples/typescript/assertions.ts::testManyExpects",+ "line": 17,+ "argument_count": 1,+ "receiver_call": null,+ "scope_name": null,+ "edge_type": "calls",+ "supplied_props": null,+ "bare_name_fallback": false,+ "spawned": false,+ "argument_types": null,+ "argument_names": null+ },+ {+ "target_name": "toBe",+ "receiver_name": null,+ "caller_symbol_id": "lang_samples/typescript/assertions.ts::testManyExpects",+ "line": 17,+ "argument_count": 1,+ "receiver_call": {+ "target_name": "expect",+ "receiver_name": null,+ "argument_count": 1+ },+ "scope_name": null,+ "edge_type": "calls",+ "supplied_props": null,+ "bare_name_fallback": false,+ "spawned": false,+ "argument_types": null,+ "argument_names": null+ },+ {+ "target_name": "expect",+ "receiver_name": null,+ "caller_symbol_id": "lang_samples/typescript/assertions.ts::testManyExpects",+ "line": 18,+ "argument_count": 1,+ "receiver_call": null,+ "scope_name": null,+ "edge_type": "calls",+ "supplied_props": null,+ "bare_name_fallback": false,+ "spawned": false,+ "argument_types": null,+ "argument_names": null+ },+ {+ "target_name": "toBe",+ "receiver_name": null,+ "caller_symbol_id": "lang_samples/typescript/assertions.ts::testManyExpects",+ "line": 18,+ "argument_count": 1,+ "receiver_call": {+ "target_name": "expect",+ "receiver_name": null,+ "argument_count": 1+ },+ "scope_name": null,+ "edge_type": "calls",+ "supplied_props": null,+ "bare_name_fallback": false,+ "spawned": false,+ "argument_types": null,+ "argument_names": null+ },+ {+ "target_name": "expect",+ "receiver_name": null,+ "caller_symbol_id": "lang_samples/typescript/assertions.ts::testManyExpects",+ "line": 19,+ "argument_count": 1,+ "receiver_call": null,+ "scope_name": null,+ "edge_type": "calls",+ "supplied_props": null,+ "bare_name_fallback": false,+ "spawned": false,+ "argument_types": null,+ "argument_names": null+ },+ {+ "target_name": "toBe",+ "receiver_name": null,+ "caller_symbol_id": "lang_samples/typescript/assertions.ts::testManyExpects",+ "line": 19,+ "argument_count": 1,+ "receiver_call": {+ "target_name": "expect",+ "receiver_name": null,+ "argument_count": 1+ },+ "scope_name": null,+ "edge_type": "calls",+ "supplied_props": null,+ "bare_name_fallback": false,+ "spawned": false,+ "argument_types": null,+ "argument_names": null+ },+ {+ "target_name": "expect",+ "receiver_name": null,+ "caller_symbol_id": "lang_samples/typescript/assertions.ts::testManyExpects",+ "line": 20,+ "argument_count": 1,+ "receiver_call": null,+ "scope_name": null,+ "edge_type": "calls",+ "supplied_props": null,+ "bare_name_fallback": false,+ "spawned": false,+ "argument_types": null,+ "argument_names": null+ },+ {+ "target_name": "toBe",+ "receiver_name": null,+ "caller_symbol_id": "lang_samples/typescript/assertions.ts::testManyExpects",+ "line": 20,+ "argument_count": 1,+ "receiver_call": {+ "target_name": "expect",+ "receiver_name": null,+ "argument_count": 1+ },+ "scope_name": null,+ "edge_type": "calls",+ "supplied_props": null,+ "bare_name_fallback": false,+ "spawned": false,+ "argument_types": null,+ "argument_names": null+ },+ {+ "target_name": "expect",+ "receiver_name": null,+ "caller_symbol_id": "lang_samples/typescript/assertions.ts::testFewExpects",+ "line": 24,+ "argument_count": 1,+ "receiver_call": null,+ "scope_name": null,+ "edge_type": "calls",+ "supplied_props": null,+ "bare_name_fallback": false,+ "spawned": false,+ "argument_types": null,+ "argument_names": null+ },+ {+ "target_name": "toBe",+ "receiver_name": null,+ "caller_symbol_id": "lang_samples/typescript/assertions.ts::testFewExpects",+ "line": 24,+ "argument_count": 1,+ "receiver_call": {+ "target_name": "expect",+ "receiver_name": null,+ "argument_count": 1+ },+ "scope_name": null,+ "edge_type": "calls",+ "supplied_props": null,+ "bare_name_fallback": false,+ "spawned": false,+ "argument_types": null,+ "argument_names": null+ },+ {+ "target_name": "expect",+ "receiver_name": null,+ "caller_symbol_id": "lang_samples/typescript/assertions.ts::testFewExpects",+ "line": 26,+ "argument_count": 1,+ "receiver_call": null,+ "scope_name": null,+ "edge_type": "calls",+ "supplied_props": null,+ "bare_name_fallback": false,+ "spawned": false,+ "argument_types": null,+ "argument_names": null+ },+ {+ "target_name": "toBe",+ "receiver_name": null,+ "caller_symbol_id": "lang_samples/typescript/assertions.ts::testFewExpects",+ "line": 26,+ "argument_count": 1,+ "receiver_call": {+ "target_name": "expect",+ "receiver_name": null,+ "argument_count": 1+ },+ "scope_name": null,+ "edge_type": "calls",+ "supplied_props": null,+ "bare_name_fallback": false,+ "spawned": false,+ "argument_types": null,+ "argument_names": null+ }+ ],+ "heritage": [],+ "docstring": null,+ "parse_errors": [],+ "content_hash": "bc02e2c300629897d8f10026b11b70c16330bd51bec994001715b5dee92d4e27",+ "type_refs": [],+ "local_refs": [],+ "registrars": [],+ "references": []+ },+ "typescript/classes.ts": {+ "file_info": {+ "path": "lang_samples/typescript/classes.ts",+ "language": "typescript",+ "size_bytes": 813,+ "is_test": false,+ "is_config": false,+ "is_api_contract": false,+ "is_entry_point": false,+ "is_manifest_entry": false,+ "is_reachability_root": false+ },+ "symbols": [+ {+ "id": "lang_samples/typescript/classes.ts::Cohesive",+ "name": "Cohesive",+ "qualified_name": "lang_samples.typescript.classes.Cohesive",+ "kind": "class",+ "signature": "class Cohesive",+ "start_line": 3,+ "end_line": 24,+ "docstring": null,+ "decorators": [],+ "visibility": "private",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "typescript",+ "parent_name": null,+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/typescript/classes.ts::Cohesive::add",+ "name": "add",+ "qualified_name": "lang_samples.typescript.classes.Cohesive.add",+ "kind": "method",+ "signature": "add(n: number) -> void",+ "start_line": 7,+ "end_line": 10,+ "docstring": null,+ "decorators": [],+ "visibility": "public",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "typescript",+ "parent_name": "Cohesive",+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/typescript/classes.ts::Cohesive::average",+ "name": "average",+ "qualified_name": "lang_samples.typescript.classes.Cohesive.average",+ "kind": "method",+ "signature": "average() -> number",+ "start_line": 12,+ "end_line": 14,+ "docstring": null,+ "decorators": [],+ "visibility": "public",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "typescript",+ "parent_name": "Cohesive",+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/typescript/classes.ts::Cohesive::reset",+ "name": "reset",+ "qualified_name": "lang_samples.typescript.classes.Cohesive.reset",+ "kind": "method",+ "signature": "reset() -> void",+ "start_line": 16,+ "end_line": 19,+ "docstring": null,+ "decorators": [],+ "visibility": "public",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "typescript",+ "parent_name": "Cohesive",+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/typescript/classes.ts::Cohesive::describe",+ "name": "describe",+ "qualified_name": "lang_samples.typescript.classes.Cohesive.describe",+ "kind": "method",+ "signature": "describe() -> string",+ "start_line": 21,+ "end_line": 23,+ "docstring": null,+ "decorators": [],+ "visibility": "public",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "typescript",+ "parent_name": "Cohesive",+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/typescript/classes.ts::Splintered",+ "name": "Splintered",+ "qualified_name": "lang_samples.typescript.classes.Splintered",+ "kind": "class",+ "signature": "class Splintered",+ "start_line": 28,+ "end_line": 51,+ "docstring": null,+ "decorators": [],+ "visibility": "private",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "typescript",+ "parent_name": null,+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/typescript/classes.ts::Splintered::setA",+ "name": "setA",+ "qualified_name": "lang_samples.typescript.classes.Splintered.setA",+ "kind": "method",+ "signature": "setA(v: number) -> void",+ "start_line": 32,+ "end_line": 34,+ "docstring": null,+ "decorators": [],+ "visibility": "public",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "typescript",+ "parent_name": "Splintered",+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/typescript/classes.ts::Splintered::getA",+ "name": "getA",+ "qualified_name": "lang_samples.typescript.classes.Splintered.getA",+ "kind": "method",+ "signature": "getA() -> number",+ "start_line": 36,+ "end_line": 38,+ "docstring": null,+ "decorators": [],+ "visibility": "public",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "typescript",+ "parent_name": "Splintered",+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/typescript/classes.ts::Splintered::setB",+ "name": "setB",+ "qualified_name": "lang_samples.typescript.classes.Splintered.setB",+ "kind": "method",+ "signature": "setB(v: number) -> void",+ "start_line": 40,+ "end_line": 42,+ "docstring": null,+ "decorators": [],+ "visibility": "public",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "typescript",+ "parent_name": "Splintered",+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/typescript/classes.ts::Splintered::getB",+ "name": "getB",+ "qualified_name": "lang_samples.typescript.classes.Splintered.getB",+ "kind": "method",+ "signature": "getB() -> number",+ "start_line": 44,+ "end_line": 46,+ "docstring": null,+ "decorators": [],+ "visibility": "public",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "typescript",+ "parent_name": "Splintered",+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/typescript/classes.ts::Splintered::loner",+ "name": "loner",+ "qualified_name": "lang_samples.typescript.classes.Splintered.loner",+ "kind": "method",+ "signature": "loner() -> number",+ "start_line": 48,+ "end_line": 50,+ "docstring": null,+ "decorators": [],+ "visibility": "public",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "typescript",+ "parent_name": "Splintered",+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ }+ ],+ "imports": [],+ "exports": [],+ "export_aliases": {},+ "calls": [+ {+ "target_name": "average",+ "receiver_name": "this",+ "caller_symbol_id": "lang_samples/typescript/classes.ts::Cohesive::describe",+ "line": 22,+ "argument_count": 0,+ "receiver_call": null,+ "scope_name": null,+ "edge_type": "calls",+ "supplied_props": null,+ "bare_name_fallback": false,+ "spawned": false,+ "argument_types": null,+ "argument_names": null+ }+ ],+ "heritage": [],+ "docstring": null,+ "parse_errors": [],+ "content_hash": "a52f01dd1eaf8c62badb7c512a80cf7339f247153e0ae2853c88791e92e754e0",+ "type_refs": [],+ "local_refs": [],+ "registrars": [],+ "references": []+ },+ "typescript/conditionals.ts": {+ "file_info": {+ "path": "lang_samples/typescript/conditionals.ts",+ "language": "typescript",+ "size_bytes": 475,+ "is_test": false,+ "is_config": false,+ "is_api_contract": false,+ "is_entry_point": false,+ "is_manifest_entry": false,+ "is_reachability_root": false+ },+ "symbols": [+ {+ "id": "lang_samples/typescript/conditionals.ts::threeOps",+ "name": "threeOps",+ "qualified_name": "lang_samples.typescript.conditionals.threeOps",+ "kind": "function",+ "signature": "function threeOps(a: boolean, b: boolean, c: boolean, d: boolean) -> number",+ "start_line": 1,+ "end_line": 6,+ "docstring": null,+ "decorators": [],+ "visibility": "public",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "typescript",+ "parent_name": null,+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/typescript/conditionals.ts::sixOps",+ "name": "sixOps",+ "qualified_name": "lang_samples.typescript.conditionals.sixOps",+ "kind": "function",+ "signature": "function sixOps(\n a: boolean,\n b: boolean,\n c: boolean,\n d: boolean,\n e: boolean,\n f: boolean,\n g: boolean,\n) -> number",+ "start_line": 8,+ "end_line": 21,+ "docstring": null,+ "decorators": [],+ "visibility": "public",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "typescript",+ "parent_name": null,+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/typescript/conditionals.ts::twoOps",+ "name": "twoOps",+ "qualified_name": "lang_samples.typescript.conditionals.twoOps",+ "kind": "function",+ "signature": "function twoOps(a: boolean, b: boolean, c: boolean) -> number",+ "start_line": 23,+ "end_line": 28,+ "docstring": null,+ "decorators": [],+ "visibility": "public",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "typescript",+ "parent_name": null,+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ }+ ],+ "imports": [],+ "exports": [+ "threeOps",+ "sixOps",+ "twoOps"+ ],+ "export_aliases": {},+ "calls": [],+ "heritage": [],+ "docstring": null,+ "parse_errors": [],+ "content_hash": "af04b2ba761f684f829aec8613aab1178807a40e9b30da92e67604dd8e0ecbf3",+ "type_refs": [],+ "local_refs": [],+ "registrars": [],+ "references": []+ },+ "typescript/nested.ts": {+ "file_info": {+ "path": "lang_samples/typescript/nested.ts",+ "language": "typescript",+ "size_bytes": 406,+ "is_test": false,+ "is_config": false,+ "is_api_contract": false,+ "is_entry_point": false,+ "is_manifest_entry": false,+ "is_reachability_root": false+ },+ "symbols": [+ {+ "id": "lang_samples/typescript/nested.ts::deeplyNested",+ "name": "deeplyNested",+ "qualified_name": "lang_samples.typescript.nested.deeplyNested",+ "kind": "function",+ "signature": "function deeplyNested(x: number) -> number",+ "start_line": 1,+ "end_line": 19,+ "docstring": null,+ "decorators": [],+ "visibility": "public",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "typescript",+ "parent_name": null,+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/typescript/nested.ts::shallow",+ "name": "shallow",+ "qualified_name": "lang_samples.typescript.nested.shallow",+ "kind": "function",+ "signature": "function shallow(x: number) -> number",+ "start_line": 21,+ "end_line": 23,+ "docstring": null,+ "decorators": [],+ "visibility": "public",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "typescript",+ "parent_name": null,+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ }+ ],+ "imports": [],+ "exports": [+ "deeplyNested",+ "shallow"+ ],+ "export_aliases": {},+ "calls": [],+ "heritage": [],+ "docstring": null,+ "parse_errors": [],+ "content_hash": "aa5a1814f7370c1e10e4a8952e586b7fdfc09486f17649f209f538e6292a7c55",+ "type_refs": [],+ "local_refs": [],+ "registrars": [],+ "references": []+ },+ "typescript/perf_io_in_loop.ts": {+ "file_info": {+ "path": "lang_samples/typescript/perf_io_in_loop.ts",+ "language": "typescript",+ "size_bytes": 880,+ "is_test": false,+ "is_config": false,+ "is_api_contract": false,+ "is_entry_point": false,+ "is_manifest_entry": false,+ "is_reachability_root": false+ },+ "symbols": [+ {+ "id": "lang_samples/typescript/perf_io_in_loop.ts::fetchInLoop",+ "name": "fetchInLoop",+ "qualified_name": "lang_samples.typescript.perf_io_in_loop.fetchInLoop",+ "kind": "function",+ "signature": "function fetchInLoop(urls: string[])",+ "start_line": 7,+ "end_line": 11,+ "docstring": null,+ "decorators": [],+ "visibility": "private",+ "is_async": true,+ "complexity_estimate": 1,+ "language": "typescript",+ "parent_name": null,+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/typescript/perf_io_in_loop.ts::axiosInLoop",+ "name": "axiosInLoop",+ "qualified_name": "lang_samples.typescript.perf_io_in_loop.axiosInLoop",+ "kind": "function",+ "signature": "function axiosInLoop(urls: string[])",+ "start_line": 13,+ "end_line": 17,+ "docstring": null,+ "decorators": [],+ "visibility": "private",+ "is_async": true,+ "complexity_estimate": 1,+ "language": "typescript",+ "parent_name": null,+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/typescript/perf_io_in_loop.ts::prismaInLoop",+ "name": "prismaInLoop",+ "qualified_name": "lang_samples.typescript.perf_io_in_loop.prismaInLoop",+ "kind": "function",+ "signature": "function prismaInLoop(ids: number[])",+ "start_line": 19,+ "end_line": 23,+ "docstring": null,+ "decorators": [],+ "visibility": "private",+ "is_async": true,+ "complexity_estimate": 1,+ "language": "typescript",+ "parent_name": null,+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/typescript/perf_io_in_loop.ts::fetchOutsideLoop",+ "name": "fetchOutsideLoop",+ "qualified_name": "lang_samples.typescript.perf_io_in_loop.fetchOutsideLoop",+ "kind": "function",+ "signature": "function fetchOutsideLoop(u: string)",+ "start_line": 26,+ "end_line": 28,+ "docstring": null,+ "decorators": [],+ "visibility": "private",+ "is_async": true,+ "complexity_estimate": 1,+ "language": "typescript",+ "parent_name": null,+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/typescript/perf_io_in_loop.ts::mapDeleteInLoop",+ "name": "mapDeleteInLoop",+ "qualified_name": "lang_samples.typescript.perf_io_in_loop.mapDeleteInLoop",+ "kind": "function",+ "signature": "function mapDeleteInLoop(m: Map<string, number>, keys: string[])",+ "start_line": 30,+ "end_line": 34,+ "docstring": null,+ "decorators": [],+ "visibility": "private",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "typescript",+ "parent_name": null,+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ }+ ],+ "imports": [+ {+ "raw_statement": "import axios from \"axios\";",+ "module_path": "axios",+ "imported_names": [+ "axios"+ ],+ "is_relative": false,+ "resolved_file": null,+ "bindings": [+ {+ "local_name": "axios",+ "exported_name": "default",+ "source_file": null,+ "is_module_alias": false,+ "is_global": false,+ "is_static_import": false,+ "line": null,+ "column": null+ }+ ],+ "is_reexport": false,+ "is_module_declaration": false,+ "type_only": false,+ "deferred": false+ }+ ],+ "exports": [],+ "export_aliases": {},+ "calls": [+ {+ "target_name": "get",+ "receiver_name": "axios",+ "caller_symbol_id": "lang_samples/typescript/perf_io_in_loop.ts::axiosInLoop",+ "line": 15,+ "argument_count": 1,+ "receiver_call": null,+ "scope_name": null,+ "edge_type": "calls",+ "supplied_props": null,+ "bare_name_fallback": false,+ "spawned": false,+ "argument_types": null,+ "argument_names": null+ },+ {+ "target_name": "findMany",+ "receiver_name": "prisma.user",+ "caller_symbol_id": "lang_samples/typescript/perf_io_in_loop.ts::prismaInLoop",+ "line": 21,+ "argument_count": 1,+ "receiver_call": null,+ "scope_name": null,+ "edge_type": "calls",+ "supplied_props": null,+ "bare_name_fallback": false,+ "spawned": false,+ "argument_types": null,+ "argument_names": null+ },+ {+ "target_name": "delete",+ "receiver_name": "m",+ "caller_symbol_id": "lang_samples/typescript/perf_io_in_loop.ts::mapDeleteInLoop",+ "line": 32,+ "argument_count": 1,+ "receiver_call": null,+ "scope_name": null,+ "edge_type": "calls",+ "supplied_props": null,+ "bare_name_fallback": false,+ "spawned": false,+ "argument_types": null,+ "argument_names": null+ }+ ],+ "heritage": [],+ "docstring": null,+ "parse_errors": [],+ "content_hash": "cdc832a0479c25b531b6252a15d95512479138a21a4c151669430b724f326bf5",+ "type_refs": [+ {+ "type_name": "Map",+ "line": 30,+ "origin": "param_type"+ }+ ],+ "local_refs": [],+ "registrars": [],+ "references": []+ },+ "typescript/ts_class_modifiers.ts": {+ "file_info": {+ "path": "lang_samples/typescript/ts_class_modifiers.ts",+ "language": "typescript",+ "size_bytes": 868,+ "is_test": false,+ "is_config": false,+ "is_api_contract": false,+ "is_entry_point": false,+ "is_manifest_entry": false,+ "is_reachability_root": false+ },+ "symbols": [+ {+ "id": "lang_samples/typescript/ts_class_modifiers.ts::Service",+ "name": "Service",+ "qualified_name": "lang_samples.typescript.ts_class_modifiers.Service",+ "kind": "class",+ "signature": "class Service",+ "start_line": 1,+ "end_line": 35,+ "docstring": null,+ "decorators": [],+ "visibility": "public",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "typescript",+ "parent_name": null,+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/typescript/ts_class_modifiers.ts::Service::open",+ "name": "open",+ "qualified_name": "lang_samples.typescript.ts_class_modifiers.Service.open",+ "kind": "method",+ "signature": "open(path: string, mode = \"r\") -> number",+ "start_line": 2,+ "end_line": 4,+ "docstring": null,+ "decorators": [],+ "visibility": "public",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "typescript",+ "parent_name": "Service",+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/typescript/ts_class_modifiers.ts::Service::close",+ "name": "close",+ "qualified_name": "lang_samples.typescript.ts_class_modifiers.Service.close",+ "kind": "method",+ "signature": "close(fd: number) -> void",+ "start_line": 6,+ "end_line": 6,+ "docstring": null,+ "decorators": [],+ "visibility": "private",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "typescript",+ "parent_name": "Service",+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/typescript/ts_class_modifiers.ts::Service::flush",+ "name": "flush",+ "qualified_name": "lang_samples.typescript.ts_class_modifiers.Service.flush",+ "kind": "method",+ "signature": "flush(fd: number, ...chunks: Uint8Array[]) -> void",+ "start_line": 8,+ "end_line": 8,+ "docstring": null,+ "decorators": [],+ "visibility": "protected",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "typescript",+ "parent_name": "Service",+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/typescript/ts_class_modifiers.ts::Service::#reset",+ "name": "#reset",+ "qualified_name": "lang_samples.typescript.ts_class_modifiers.Service.#reset",+ "kind": "method",+ "signature": "#reset(hard?: boolean)",+ "start_line": 10,+ "end_line": 10,+ "docstring": null,+ "decorators": [],+ "visibility": "private",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "typescript",+ "parent_name": "Service",+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/typescript/ts_class_modifiers.ts::Service::create",+ "name": "create",+ "qualified_name": "lang_samples.typescript.ts_class_modifiers.Service.create",+ "kind": "method",+ "signature": "create(options: object) -> Service",+ "start_line": 12,+ "end_line": 14,+ "docstring": null,+ "decorators": [],+ "visibility": "public",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "typescript",+ "parent_name": "Service",+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/typescript/ts_class_modifiers.ts::Service::fetch",+ "name": "fetch",+ "qualified_name": "lang_samples.typescript.ts_class_modifiers.Service.fetch",+ "kind": "method",+ "signature": "fetch(url: string) -> Promise<string>",+ "start_line": 16,+ "end_line": 18,+ "docstring": null,+ "decorators": [],+ "visibility": "public",+ "is_async": true,+ "complexity_estimate": 1,+ "language": "typescript",+ "parent_name": "Service",+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/typescript/ts_class_modifiers.ts::Service::retry",+ "name": "retry",+ "qualified_name": "lang_samples.typescript.ts_class_modifiers.Service.retry",+ "kind": "method",+ "signature": "retry(fn: () => Promise<T>, attempts: number) -> Promise<T>",+ "start_line": 20,+ "end_line": 22,+ "docstring": null,+ "decorators": [],+ "visibility": "private",+ "is_async": true,+ "complexity_estimate": 1,+ "language": "typescript",+ "parent_name": "Service",+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/typescript/ts_class_modifiers.ts::Service::toString",+ "name": "toString",+ "qualified_name": "lang_samples.typescript.ts_class_modifiers.Service.toString",+ "kind": "method",+ "signature": "toString() -> string",+ "start_line": 24,+ "end_line": 26,+ "docstring": null,+ "decorators": [],+ "visibility": "public",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "typescript",+ "parent_name": "Service",+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": [+ "override"+ ]+ },+ {+ "id": "lang_samples/typescript/ts_class_modifiers.ts::Service::convert",+ "name": "convert",+ "qualified_name": "lang_samples.typescript.ts_class_modifiers.Service.convert",+ "kind": "method",+ "signature": "convert(value: string) -> number",+ "start_line": 28,+ "end_line": 28,+ "docstring": null,+ "decorators": [],+ "visibility": "public",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "typescript",+ "parent_name": "Service",+ "is_exported_symbol": false,+ "is_declaration": true,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/typescript/ts_class_modifiers.ts::Service::convert",+ "name": "convert",+ "qualified_name": "lang_samples.typescript.ts_class_modifiers.Service.convert",+ "kind": "method",+ "signature": "convert(value: number) -> string",+ "start_line": 29,+ "end_line": 29,+ "docstring": null,+ "decorators": [],+ "visibility": "public",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "typescript",+ "parent_name": "Service",+ "is_exported_symbol": false,+ "is_declaration": true,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/typescript/ts_class_modifiers.ts::Service::convert",+ "name": "convert",+ "qualified_name": "lang_samples.typescript.ts_class_modifiers.Service.convert",+ "kind": "method",+ "signature": "convert(value: string | number) -> string | number",+ "start_line": 30,+ "end_line": 32,+ "docstring": null,+ "decorators": [],+ "visibility": "public",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "typescript",+ "parent_name": "Service",+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/typescript/ts_class_modifiers.ts::Service::constructor",+ "name": "constructor",+ "qualified_name": "lang_samples.typescript.ts_class_modifiers.Service.constructor",+ "kind": "method",+ "signature": "constructor(private readonly root: string)",+ "start_line": 34,+ "end_line": 34,+ "docstring": null,+ "decorators": [],+ "visibility": "public",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "typescript",+ "parent_name": "Service",+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/typescript/ts_class_modifiers.ts::Repository",+ "name": "Repository",+ "qualified_name": "lang_samples.typescript.ts_class_modifiers.Repository",+ "kind": "class",+ "signature": "class Repository",+ "start_line": 37,+ "end_line": 41,+ "docstring": null,+ "decorators": [],+ "visibility": "public",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "typescript",+ "parent_name": null,+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/typescript/ts_class_modifiers.ts::Repository::cache",+ "name": "cache",+ "qualified_name": "lang_samples.typescript.ts_class_modifiers.Repository.cache",+ "kind": "method",+ "signature": "cache(id: string, entity: T) -> void",+ "start_line": 40,+ "end_line": 40,+ "docstring": null,+ "decorators": [],+ "visibility": "protected",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "typescript",+ "parent_name": "Repository",+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ }+ ],+ "imports": [],+ "exports": [+ "Service",+ "Repository"+ ],+ "export_aliases": {},+ "calls": [+ {+ "target_name": "Service",+ "receiver_name": null,+ "caller_symbol_id": "lang_samples/typescript/ts_class_modifiers.ts::Service::create",+ "line": 13,+ "argument_count": 0,+ "receiver_call": null,+ "scope_name": null,+ "edge_type": "calls",+ "supplied_props": null,+ "bare_name_fallback": false,+ "spawned": false,+ "argument_types": null,+ "argument_names": null+ },+ {+ "target_name": "fn",+ "receiver_name": null,+ "caller_symbol_id": "lang_samples/typescript/ts_class_modifiers.ts::Service::retry",+ "line": 21,+ "argument_count": 0,+ "receiver_call": null,+ "scope_name": null,+ "edge_type": "calls",+ "supplied_props": null,+ "bare_name_fallback": false,+ "spawned": false,+ "argument_types": null,+ "argument_names": null+ }+ ],+ "heritage": [],+ "docstring": null,+ "parse_errors": [],+ "content_hash": "091738b7f80e29e4d42e2ae5eb2a17c2fbb3e02f212f4f0394571c55dee89230",+ "type_refs": [+ {+ "type_name": "Service",+ "line": 12,+ "origin": "return_type"+ }+ ],+ "local_refs": [],+ "registrars": [],+ "references": []+ },+ "typescript/ts_module_consts.ts": {+ "file_info": {+ "path": "lang_samples/typescript/ts_module_consts.ts",+ "language": "typescript",+ "size_bytes": 329,+ "is_test": false,+ "is_config": false,+ "is_api_contract": false,+ "is_entry_point": false,+ "is_manifest_entry": false,+ "is_reachability_root": false+ },+ "symbols": [+ {+ "id": "lang_samples/typescript/ts_module_consts.ts::SLUG_PATTERN",+ "name": "SLUG_PATTERN",+ "qualified_name": "lang_samples.typescript.ts_module_consts.SLUG_PATTERN",+ "kind": "constant",+ "signature": "SLUG_PATTERN = /^[a-z0-9-]+$/i",+ "start_line": 1,+ "end_line": 1,+ "docstring": null,+ "decorators": [],+ "visibility": "public",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "typescript",+ "parent_name": null,+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/typescript/ts_module_consts.ts::whitespace",+ "name": "whitespace",+ "qualified_name": "lang_samples.typescript.ts_module_consts.whitespace",+ "kind": "variable",+ "signature": "whitespace = /\\s+/g",+ "start_line": 2,+ "end_line": 2,+ "docstring": null,+ "decorators": [],+ "visibility": "private",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "typescript",+ "parent_name": null,+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/typescript/ts_module_consts.ts::mode",+ "name": "mode",+ "qualified_name": "lang_samples.typescript.ts_module_consts.mode",+ "kind": "variable",+ "signature": "mode = process.env.NODE_ENV === \"production\" ? \"prod\" : \"dev\"",+ "start_line": 3,+ "end_line": 3,+ "docstring": null,+ "decorators": [],+ "visibility": "public",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "typescript",+ "parent_name": null,+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/typescript/ts_module_consts.ts::retries",+ "name": "retries",+ "qualified_name": "lang_samples.typescript.ts_module_consts.retries",+ "kind": "variable",+ "signature": "retries = isCi ? 5 : 1",+ "start_line": 4,+ "end_line": 4,+ "docstring": null,+ "decorators": [],+ "visibility": "private",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "typescript",+ "parent_name": null,+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/typescript/ts_module_consts.ts::limit",+ "name": "limit",+ "qualified_name": "lang_samples.typescript.ts_module_consts.limit",+ "kind": "variable",+ "signature": "limit = 10",+ "start_line": 5,+ "end_line": 5,+ "docstring": null,+ "decorators": [],+ "visibility": "public",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "typescript",+ "parent_name": null,+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/typescript/ts_module_consts.ts::helper",+ "name": "helper",+ "qualified_name": "lang_samples.typescript.ts_module_consts.helper",+ "kind": "function",+ "signature": "function helper(input: string)",+ "start_line": 7,+ "end_line": 11,+ "docstring": null,+ "decorators": [],+ "visibility": "private",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "typescript",+ "parent_name": null,+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ }+ ],+ "imports": [],+ "exports": [+ "SLUG_PATTERN",+ "mode",+ "limit"+ ],+ "export_aliases": {},+ "calls": [+ {+ "target_name": "test",+ "receiver_name": "inner",+ "caller_symbol_id": "lang_samples/typescript/ts_module_consts.ts::helper",+ "line": 10,+ "argument_count": 1,+ "receiver_call": null,+ "scope_name": null,+ "edge_type": "calls",+ "supplied_props": null,+ "bare_name_fallback": false,+ "spawned": false,+ "argument_types": null,+ "argument_names": null+ }+ ],+ "heritage": [],+ "docstring": null,+ "parse_errors": [],+ "content_hash": "38227a2bd5fb2f9961feabc5197b53702451349abd8855319ba0102f34b022f1",+ "type_refs": [],+ "local_refs": [],+ "registrars": [],+ "references": []+ },+ "typescript/ts_overload_fn_method.ts": {+ "file_info": {+ "path": "lang_samples/typescript/ts_overload_fn_method.ts",+ "language": "typescript",+ "size_bytes": 615,+ "is_test": false,+ "is_config": false,+ "is_api_contract": false,+ "is_entry_point": false,+ "is_manifest_entry": false,+ "is_reachability_root": false+ },+ "symbols": [+ {+ "id": "lang_samples/typescript/ts_overload_fn_method.ts::parse",+ "name": "parse",+ "qualified_name": "lang_samples.typescript.ts_overload_fn_method.parse",+ "kind": "function",+ "signature": "function parse(raw: string) -> string",+ "start_line": 1,+ "end_line": 1,+ "docstring": null,+ "decorators": [],+ "visibility": "public",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "typescript",+ "parent_name": null,+ "is_exported_symbol": false,+ "is_declaration": true,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/typescript/ts_overload_fn_method.ts::parse",+ "name": "parse",+ "qualified_name": "lang_samples.typescript.ts_overload_fn_method.parse",+ "kind": "function",+ "signature": "function parse(raw: Uint8Array) -> Uint8Array",+ "start_line": 2,+ "end_line": 2,+ "docstring": null,+ "decorators": [],+ "visibility": "public",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "typescript",+ "parent_name": null,+ "is_exported_symbol": false,+ "is_declaration": true,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/typescript/ts_overload_fn_method.ts::parse",+ "name": "parse",+ "qualified_name": "lang_samples.typescript.ts_overload_fn_method.parse",+ "kind": "function",+ "signature": "function parse(raw: string | Uint8Array) -> string | Uint8Array",+ "start_line": 3,+ "end_line": 5,+ "docstring": null,+ "decorators": [],+ "visibility": "public",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "typescript",+ "parent_name": null,+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/typescript/ts_overload_fn_method.ts::Client",+ "name": "Client",+ "qualified_name": "lang_samples.typescript.ts_overload_fn_method.Client",+ "kind": "class",+ "signature": "class Client",+ "start_line": 7,+ "end_line": 19,+ "docstring": null,+ "decorators": [],+ "visibility": "public",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "typescript",+ "parent_name": null,+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/typescript/ts_overload_fn_method.ts::Client::send",+ "name": "send",+ "qualified_name": "lang_samples.typescript.ts_overload_fn_method.Client.send",+ "kind": "method",+ "signature": "send(body: string) -> void",+ "start_line": 8,+ "end_line": 8,+ "docstring": null,+ "decorators": [],+ "visibility": "public",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "typescript",+ "parent_name": "Client",+ "is_exported_symbol": false,+ "is_declaration": true,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/typescript/ts_overload_fn_method.ts::Client::send",+ "name": "send",+ "qualified_name": "lang_samples.typescript.ts_overload_fn_method.Client.send",+ "kind": "method",+ "signature": "send(body: Uint8Array) -> void",+ "start_line": 9,+ "end_line": 9,+ "docstring": null,+ "decorators": [],+ "visibility": "public",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "typescript",+ "parent_name": "Client",+ "is_exported_symbol": false,+ "is_declaration": true,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/typescript/ts_overload_fn_method.ts::Client::send",+ "name": "send",+ "qualified_name": "lang_samples.typescript.ts_overload_fn_method.Client.send",+ "kind": "method",+ "signature": "send(body: string | Uint8Array) -> void",+ "start_line": 10,+ "end_line": 12,+ "docstring": null,+ "decorators": [],+ "visibility": "public",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "typescript",+ "parent_name": "Client",+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/typescript/ts_overload_fn_method.ts::Client::connect",+ "name": "connect",+ "qualified_name": "lang_samples.typescript.ts_overload_fn_method.Client.connect",+ "kind": "method",+ "signature": "connect() -> void",+ "start_line": 14,+ "end_line": 14,+ "docstring": null,+ "decorators": [],+ "visibility": "private",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "typescript",+ "parent_name": "Client",+ "is_exported_symbol": false,+ "is_declaration": true,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/typescript/ts_overload_fn_method.ts::Client::connect",+ "name": "connect",+ "qualified_name": "lang_samples.typescript.ts_overload_fn_method.Client.connect",+ "kind": "method",+ "signature": "connect(retries: number) -> void",+ "start_line": 15,+ "end_line": 15,+ "docstring": null,+ "decorators": [],+ "visibility": "private",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "typescript",+ "parent_name": "Client",+ "is_exported_symbol": false,+ "is_declaration": true,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/typescript/ts_overload_fn_method.ts::Client::connect",+ "name": "connect",+ "qualified_name": "lang_samples.typescript.ts_overload_fn_method.Client.connect",+ "kind": "method",+ "signature": "connect(retries?: number) -> void",+ "start_line": 16,+ "end_line": 18,+ "docstring": null,+ "decorators": [],+ "visibility": "private",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "typescript",+ "parent_name": "Client",+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/typescript/ts_overload_fn_method.ts::Transport",+ "name": "Transport",+ "qualified_name": "lang_samples.typescript.ts_overload_fn_method.Transport",+ "kind": "interface",+ "signature": "interface Transport",+ "start_line": 21,+ "end_line": 23,+ "docstring": null,+ "decorators": [],+ "visibility": "public",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "typescript",+ "parent_name": null,+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ },+ {+ "id": "lang_samples/typescript/ts_overload_fn_method.ts::Shim",+ "name": "Shim",+ "qualified_name": "lang_samples.typescript.ts_overload_fn_method.Shim",+ "kind": "class",+ "signature": "class Shim",+ "start_line": 27,+ "end_line": 29,+ "docstring": null,+ "decorators": [],+ "visibility": "private",+ "is_async": false,+ "complexity_estimate": 1,+ "language": "typescript",+ "parent_name": null,+ "is_exported_symbol": false,+ "is_declaration": false,+ "type_parameter_count": null,+ "extension_receiver": null,+ "written_receiver": null,+ "modifiers": []+ }+ ],+ "imports": [],+ "exports": [+ "parse",+ "parse",+ "parse",+ "Client",+ "Transport"+ ],+ "export_aliases": {},+ "calls": [+ {+ "target_name": "connect",+ "receiver_name": "this",+ "caller_symbol_id": "lang_samples/typescript/ts_overload_fn_method.ts::Client::send",+ "line": 11,+ "argument_count": 0,+ "receiver_call": null,+ "scope_name": null,+ "edge_type": "calls",+ "supplied_props": null,+ "bare_name_fallback": false,+ "spawned": false,+ "argument_types": null,+ "argument_names": null+ }+ ],+ "heritage": [],+ "docstring": null,+ "parse_errors": [],+ "content_hash": "6c083bebb556e46c1b73f5ad9f9ed1d1ebe8cc008e6ba50bd58372a062f1d48b",+ "type_refs": [],+ "local_refs": [],+ "registrars": [],+ "references": []+ }+}diff --git a/tests/unit/ingestion/parser/test_lang_samples_golden.py b/tests/unit/ingestion/parser/test_lang_samples_golden.pynew file mode 100644index 000000000..d7cc0e956--- /dev/null+++ b/tests/unit/ingestion/parser/test_lang_samples_golden.py@@ -0,0 +1,64 @@+"""Golden ``ASTParser.parse_file`` output for every file under ``tests/fixtures/lang_samples``.++One golden per language directory pins the whole ``ParsedFile`` (symbols,+imports, calls, heritage, type refs, exports, references and the rest) except+``file_info``'s machine-local fields, so a parser refactor cannot change what a+language extracts unseen. Sources are read with LF endings, as on a Linux+checkout. Rewrite with ``REPOWISE_REWRITE_GOLDEN=1`` only for an intended+behaviour change.+"""++from __future__ import annotations++import dataclasses+import json+import os+from pathlib import Path++import pytest++from repowise.core.ingestion.parser import ASTParser+from repowise.core.ingestion.traverser import _detect_language+from tests.unit.ingestion.parser._helpers import _make_file_info++SAMPLES = Path(__file__).resolve().parents[3] / "fixtures" / "lang_samples"+GOLDEN_DIR = Path(__file__).parent / "golden"+LANGUAGES = sorted(p.name for p in SAMPLES.iterdir() if p.is_dir())++# ``file_info`` fields that describe the machine, not the parse.+_VOLATILE_INFO = ("abs_path", "last_modified", "git_hash")+++def _plain(value):+ """JSON-ready, with sets in a fixed order."""+ if isinstance(value, (set, frozenset)):+ return sorted(_plain(v) for v in value)+ if isinstance(value, dict):+ return {str(k): _plain(v) for k, v in value.items()}+ if isinstance(value, (list, tuple)):+ return [_plain(v) for v in value]+ return value+++def _parse_language(parser: ASTParser, language: str) -> dict:+ out = {}+ for path in sorted(p for p in (SAMPLES / language).rglob("*") if p.is_file()):+ rel = path.relative_to(SAMPLES).as_posix()+ source = path.read_bytes().replace(b"\r\n", b"\n")+ info = _make_file_info(f"lang_samples/{rel}", _detect_language(path))+ info.size_bytes = len(source)+ row = dataclasses.asdict(parser.parse_file(info, source))+ for key in _VOLATILE_INFO:+ row["file_info"].pop(key)+ out[rel] = _plain(row)+ return out++[email protected]("language", LANGUAGES)+def test_parse_matches_golden(parser: ASTParser, language: str) -> None:+ actual = _parse_language(parser, language)+ golden = GOLDEN_DIR / f"{language}.json"+ if os.environ.get("REPOWISE_REWRITE_GOLDEN") == "1":+ GOLDEN_DIR.mkdir(exist_ok=True)+ golden.write_text(json.dumps(actual, indent=2) + "\n", encoding="utf-8")+ assert actual == json.loads(golden.read_text(encoding="utf-8"))