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
{
"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,
"is_application_main": 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": [],
"alias_of": null
},
{
"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": [],
"alias_of": null
},
{
"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": [],
"alias_of": null
},
{
"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": [],
"alias_of": null
}
],
"imports": [],
"exports": [
"Conditionals"
],
"export_aliases": {},
"calls": [],
"heritage": [],
"docstring": null,
"parse_errors": [],
"content_hash": "21989f12c405009c50be95e88413ebabdd3232a3f34406c94ebb58150ddadb7c",
"type_refs": [],
"local_refs": [],
"registrars": [],
"references": [],
"schema_refs": [],
"grammar_missing": false
},
"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,
"is_application_main": 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": [],
"alias_of": null
},
{
"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": [],
"alias_of": null
},
{
"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": [],
"alias_of": null
}
],
"imports": [],
"exports": [],
"export_aliases": {},
"calls": [],
"heritage": [],
"docstring": null,
"parse_errors": [],
"content_hash": "1e49a56330aee24458ed326e8a9838d4e193f42584202407ffc9907b7bb4c419",
"type_refs": [],
"local_refs": [],
"registrars": [],
"references": [],
"schema_refs": [],
"grammar_missing": false
},
"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,
"is_application_main": 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": [],
"alias_of": null
},
{
"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": [],
"alias_of": null
},
{
"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": [],
"alias_of": null
},
{
"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": [],
"alias_of": null
},
{
"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": [],
"alias_of": null
},
{
"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": [],
"alias_of": null
},
{
"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": [],
"alias_of": null
},
{
"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": [],
"alias_of": null
},
{
"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": [],
"alias_of": null
},
{
"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": [],
"alias_of": null
}
],
"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,
"program_call": 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,
"program_call": 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,
"program_call": 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": true,
"spawned": false,
"program_call": 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,
"program_call": 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,
"program_call": 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,
"program_call": 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,
"program_call": 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,
"program_call": 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,
"program_call": 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": [],
"schema_refs": [],
"grammar_missing": false
}
}