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
{
"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,
"is_application_main": 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": [],
"alias_of": null
},
{
"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": [],
"alias_of": null
},
{
"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": [],
"alias_of": null
}
],
"imports": [],
"exports": [
"ThreeOps",
"SixOps",
"TwoOps"
],
"export_aliases": {},
"calls": [],
"heritage": [],
"docstring": null,
"parse_errors": [],
"content_hash": "3b748dafeab770c2b7a9c5416d3e6524841d5d8881076775796834b6b8985ace",
"type_refs": [],
"local_refs": [],
"registrars": [],
"references": [],
"schema_refs": [],
"grammar_missing": false
},
"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,
"is_application_main": 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": [],
"alias_of": null
},
{
"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": [],
"alias_of": null
}
],
"imports": [],
"exports": [
"DeeplyNested",
"Shallow"
],
"export_aliases": {},
"calls": [],
"heritage": [],
"docstring": null,
"parse_errors": [],
"content_hash": "c05f68bd02c97a5d38cb52fa529c517bbd583f7f755ff7532685b6ce2640ce84",
"type_refs": [],
"local_refs": [],
"registrars": [],
"references": [],
"schema_refs": [],
"grammar_missing": false
},
"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,
"is_application_main": 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": [],
"alias_of": null
},
{
"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": [],
"alias_of": null
},
{
"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": [],
"alias_of": null
},
{
"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": [],
"alias_of": null
},
{
"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": [],
"alias_of": null
},
{
"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": [],
"alias_of": null
},
{
"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": [],
"alias_of": null
},
{
"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": [],
"alias_of": null
},
{
"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": [],
"alias_of": null
}
],
"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,
"program_call": 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,
"program_call": 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,
"program_call": 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,
"program_call": 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,
"program_call": 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,
"program_call": 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,
"program_call": 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,
"program_call": 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,
"program_call": 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": [],
"schema_refs": [],
"grammar_missing": false
}
}