Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/CodeGraphContext/CodeGraphContext
/ functions
Functions
5,033 in github.com/CodeGraphContext/CodeGraphContext
⨍
Functions
5,033
◇
Types & classes
912
↳
Endpoints
28
↓ 13 callers
Method
is_language_available
Check if a language is available without raising exceptions. Args: lang: Language name Retu
src/codegraphcontext/utils/tree_sitter_manager.py:262
↓ 13 callers
Method
run
(self, query, **params)
tests/unit/cli/test_offline_visualization.py:16
↓ 13 callers
Function
sum
(...numbers: number[])
tests/fixtures/sample_projects/sample_project_typescript/src/functions-generics.ts:23
↓ 12 callers
Function
_config_map
Return a get_config_value side_effect that serves fixed values.
tests/unit/tools/test_prompt_truncation_safety.py:89
↓ 12 callers
Method
_get_node_text
(self, node: Any)
src/codegraphcontext/tools/languages/lua.py:27
↓ 12 callers
Method
_get_node_text
(self, node)
src/codegraphcontext/tools/languages/python.py:75
↓ 12 callers
Method
_get_node_text
(self, node)
src/codegraphcontext/tools/languages/go.py:107
↓ 12 callers
Method
_is_file_path
Mirror the logic in analyze_complexity.
tests/unit/cli/test_analyze_complexity_file_path.py:66
↓ 12 callers
Method
_named_children
(self, node: Any)
src/codegraphcontext/tools/languages/elisp.py:136
↓ 12 callers
Function
client_factory
Build a TestClient whose get_server dependency is stubbed out. Callers pass the desired CGC_API_KEY (or None to leave it unset) so each test
tests/unit/api/test_api_auth.py:33
↓ 12 callers
Method
insert
(value: T)
tests/fixtures/sample_projects/sample_project_typescript/src/modules-namespaces.ts:126
↓ 12 callers
Method
on
(type: CgcEventType, listener: Listener)
extensions/vscode/src/mcp/eventBus.ts:12
↓ 12 callers
Method
query
(sql: string)
tests/fixtures/sample_projects/sample_project_typescript/src/modules-namespaces.ts:257
↓ 12 callers
Method
setValue
(e,t,r="i8")
website/public/wasm/tree-sitter-core.js:1
↓ 11 callers
Method
_get_node_text
(self, node)
src/codegraphcontext/tools/languages/dart.py:94
↓ 11 callers
Method
_get_node_text
(self, node)
src/codegraphcontext/tools/languages/typescript.py:105
↓ 11 callers
Method
_get_node_text
(self, node: Any)
src/codegraphcontext/tools/languages/c.py:157
↓ 11 callers
Function
_write_and_parse
(parser, src: str)
tests/unit/parsers/test_java_package_qualified_names.py:37
↓ 11 callers
Method
close
Proxy method to close the underlying driver.
src/codegraphcontext/core/database.py:46
↓ 11 callers
Function
get_unique_test_dir
Generate unique test directory
tests/unit/core/test_cgcignore_patterns.py:36
↓ 11 callers
Function
index_repo
Index the test repository
tests/unit/core/test_cgcignore_patterns.py:76
↓ 11 callers
Function
query_files_for_repo
Query files ONLY from specific test repository
tests/unit/core/test_cgcignore_patterns.py:95
↓ 11 callers
Function
render_html
Render a self-contained HTML string for the given graph data. The generated page uses an inline force-directed layout via vanilla JS so
src/codegraphcontext/utils/visualize_graph.py:125
↓ 11 callers
Method
session
(self, **kwargs)
tests/unit/tools/test_cypher_query_readonly.py:54
↓ 11 callers
Function
setup_test_dir
Create clean test directory
tests/unit/core/test_cgcignore_patterns.py:55
↓ 10 callers
Method
_get_node_text
(self, node: Any)
src/codegraphcontext/tools/languages/ruby.py:69
↓ 10 callers
Method
_get_node_text
(self, node)
src/codegraphcontext/tools/languages/javascript.py:128
↓ 10 callers
Function
_get_server_block
(mcp_config: dict)
tests/unit/test_pipx_runner_support.py:26
↓ 10 callers
Function
abort
(what)
website/public/wasm/web-tree-sitter.js:1696
↓ 10 callers
Function
check_visual_flag
Return whether visualization was requested (does not launch UI).
src/codegraphcontext/cli/visualizer.py:18
↓ 10 callers
Function
get_database_manager
Factory function to get the appropriate database manager based on configuration. Selection logic: 1. Runtime override: ``CGC_RUNTIME_DB_
src/codegraphcontext/core/__init__.py:152
↓ 10 callers
Function
marshalPoint
(address, point)
website/public/wasm/web-tree-sitter.js:1230
↓ 10 callers
Method
remove
(item: T)
tests/fixtures/sample_projects/sample_project_typescript/src/classes-inheritance.ts:238
↓ 10 callers
Method
send
(&self, message: &str)
tests/fixtures/sample_projects/sample_project_rust/src/smart_pointers.rs:141
↓ 10 callers
Function
setValue
(ptr, value, type = "i8")
website/public/wasm/web-tree-sitter.js:2570
↓ 10 callers
Function
simple_type_key
(type_name: Optional[str])
src/codegraphcontext/tools/indexing/resolution/calls.py:249
↓ 10 callers
Method
start
(self)
src/codegraphcontext/core/watcher.py:446
↓ 9 callers
Method
_form_head
(self, node: Any)
src/codegraphcontext/tools/languages/elisp.py:145
↓ 9 callers
Method
_get_node_text
(self, node: Any)
src/codegraphcontext/tools/languages/haskell.py:54
↓ 9 callers
Method
_get_node_text
(self, node: Any)
src/codegraphcontext/tools/languages/csharp.py:459
↓ 9 callers
Function
_make_session
Return a KuzuSessionWrapper with a fresh Lock/RLock and optional mock conn.
tests/unit/core/test_kuzu_connection_lock.py:30
↓ 9 callers
Function
_make_writer
Return a GraphWriter with a fully mocked driver and db_manager.
tests/unit/tools/test_writer_path_normalization.py:160
↓ 9 callers
Function
_normalize_prefix
Return a normalized path prefix ending with '/' for STARTS WITH queries.
src/codegraphcontext/tools/indexing/persistence/writer.py:53
↓ 9 callers
Method
_normalize_receiver_expression
(self, expression: str)
src/codegraphcontext/tools/languages/kotlin.py:609
↓ 9 callers
Function
_run_generate_mcp_json
Helper: run _generate_mcp_json() with mocked shutil.which.
tests/unit/test_pipx_runner_support.py:30
↓ 9 callers
Function
add_code_to_graph
Tool implementation to index a directory of code. Runs indexing asynchronously via a background job.
src/codegraphcontext/tools/handlers/indexing_handlers.py:12
↓ 9 callers
Function
assertInternal
(x)
website/public/wasm/web-tree-sitter.js:115
↓ 9 callers
Function
build_ignore_spec
Build CGCIgnoreMatcher using merged default + user .cgcignore patterns. Returns the compiled spec and the discovered/created .cgcignore path.
src/codegraphcontext/core/cgcignore.py:228
↓ 9 callers
Function
ensure_config_dir
Ensure that the configuration directory exists. Creates the directory and a logs subdirectory if they do not already exist.
src/codegraphcontext/cli/config_manager.py:318
↓ 9 callers
Method
find_module_dependencies
Find all dependencies and dependents of a module
src/codegraphcontext/tools/code_finder.py:1080
↓ 9 callers
Function
load_config
Load configuration with priority support. Priority order (highest to lowest): 1. Environment variables (always highest priority) 2. L
src/codegraphcontext/cli/config_manager.py:340
↓ 9 callers
Function
load_context_config
Load ~/.codegraphcontext/config.yaml. Returns a ContextConfig with defaults if the file does not exist.
src/codegraphcontext/cli/config_manager.py:882
↓ 9 callers
Function
unmarshalPoint
(address)
website/public/wasm/web-tree-sitter.js:1235
↓ 8 callers
Function
_big_json
Return a JSON string of at least *size* characters.
tests/unit/tools/test_prompt_truncation_safety.py:98
↓ 8 callers
Method
_call
(self, gb, call_dict, caller_path="/repo/a.py", local_names=None, local_imports=None, imports_ma
tests/unit/tools/test_graph_builder_perf_fixes.py:108
↓ 8 callers
Method
_get_node_text
(self, node: Any)
src/codegraphcontext/tools/languages/java.py:293
↓ 8 callers
Method
_get_node_text
(self, node: Optional[Any])
src/codegraphcontext/tools/languages/elisp.py:125
↓ 8 callers
Method
_get_node_text
(self, node: Any)
src/codegraphcontext/tools/languages/swift.py:194
↓ 8 callers
Method
_get_node_text
(self, node: Any)
src/codegraphcontext/tools/languages/elixir.py:88
↓ 8 callers
Function
_h2
(title: str)
src/codegraphcontext/tools/report_generator.py:90
↓ 8 callers
Method
_handle_modification
Incremental update: re-parse and re-link only the changed file and its neighbours.
src/codegraphcontext/core/watcher.py:240
↓ 8 callers
Function
_make_mocks
Create mock dependencies for add_code_to_graph.
tests/unit/tools/test_cwe22_path_traversal.py:22
↓ 8 callers
Method
_make_repo_exists_session
Session that reports the repo exists (cnt=1), then zero-counts to stop loops.
tests/unit/tools/test_graph_builder_perf_fixes.py:769
↓ 8 callers
Function
_ts_cmd
(project_path: Path)
tests/unit/tools/test_scip_indexer_ts_workspaces.py:9
↓ 8 callers
Function
is_path_allowed
True when *path* resolves under an allowed root.
src/codegraphcontext/utils/path_sandbox.py:36
↓ 8 callers
Method
len
(&self)
tests/fixtures/sample_projects/sample_project_rust/src/generics.rs:136
↓ 8 callers
Method
list_indexed_repositories
(self, graph_name: str = None)
src/codegraphcontext/tools/code_finder.py:1442
↓ 8 callers
Method
parse
Parse *pom_path* and return a dict compatible with GraphWriter.write_maven_build_graph(). Keys returned: modules List[dic
src/codegraphcontext/tools/languages/maven.py:30
↓ 8 callers
Function
resolve_model_name
Get the model it should use for an LLM provider. If the user configured a model, it uses that. Otherwise, it falls back to the default model
src/codegraphcontext/cli/config_manager.py:284
↓ 8 callers
Function
strip_type_modifiers
Return the resolvable base type, e.g. 'List<T>?' -> 'List'.
src/codegraphcontext/tools/type_utils.py:5
↓ 8 callers
Method
walk
* Create a new {@link TreeCursor} starting from this node. * * Note that the given node is considered the root of the cursor, * and the curso
website/public/wasm/web-tree-sitter.js:1119
↓ 7 callers
Function
_effective_char_limit
Return the effective character budget from both config knobs. Picks the stricter (smallest) non-zero value. Returns 0 when both are zero, me
src/codegraphcontext/server.py:96
↓ 7 callers
Method
_get_node_text
(self, node: Any)
src/codegraphcontext/tools/languages/scala.py:162
↓ 7 callers
Method
_get_node_text
(self, node: Any)
src/codegraphcontext/tools/languages/rust.py:45
↓ 7 callers
Method
_get_node_text
(self, node: Any)
src/codegraphcontext/tools/languages/php.py:175
↓ 7 callers
Method
_get_parent_context
(self, node, types=('function_definition', 'class_definition'))
src/codegraphcontext/tools/languages/python.py:80
↓ 7 callers
Function
_handler
(tmp_path)
tests/unit/core/test_watcher_rename_and_concurrency.py:13
↓ 7 callers
Function
_launch_visualizer
( cypher_query: str, *, repo_path: Optional[str] = None, context: Optional[str] = None, )
src/codegraphcontext/cli/visualizer.py:56
↓ 7 callers
Method
_make_resolver
(self, session, threshold=0.75)
tests/unit/tools/test_embeddings_and_vector_resolver.py:244
↓ 7 callers
Method
_parse
(self, parser, tmp_path, code)
tests/unit/parsers/test_ruby_parser.py:24
↓ 7 callers
Function
_run_cypher
Execute a read-only Cypher query and return a list of record dicts.
src/codegraphcontext/tools/report_generator.py:80
↓ 7 callers
Function
_table
Render a simple markdown table.
src/codegraphcontext/tools/report_generator.py:98
↓ 7 callers
Method
add_file_to_graph
Adds a file and its contents using batched UNWIND queries (one round-trip per node type).
src/codegraphcontext/tools/graph_builder.py:203
↓ 7 callers
Method
add_repository_to_graph
(self, repo_path: Path, is_dependency: bool = False)
src/codegraphcontext/tools/indexing/persistence/writer.py:171
↓ 7 callers
Function
canonical_type_for_maps
( type_name: Optional[str], local_imports: Optional[dict] = None, package_name: Option
src/codegraphcontext/tools/indexing/resolution/calls.py:1711
↓ 7 callers
Method
emit
(type: CgcEventType, payload?: unknown)
extensions/vscode/src/mcp/eventBus.ts:24
↓ 7 callers
Function
encode_response
Encode a tool result as GCF (if enabled and available) or JSON. Args: result: The tool result dictionary to encode. Returns:
src/codegraphcontext/utils/gcf_encoder.py:47
↓ 7 callers
Method
ensureStarted
()
extensions/vscode/src/mcp/client.ts:25
↓ 7 callers
Method
execute
(self, query, params)
tests/unit/core/test_database_kuzu_compat.py:18
↓ 7 callers
Function
execute_read_operation
Execute a database read operation utilizing managed read transactions where supported.
src/codegraphcontext/tools/indexing/persistence/utils.py:34
↓ 7 callers
Method
get_job
Retrieves the information for a single job.
src/codegraphcontext/core/jobs.py:97
↓ 7 callers
Function
get_repo_commit_hash
Return the full HEAD commit SHA for *repo_path*, or ``None`` if the path is not inside a git working tree or the ``git`` binary is unavailable.
src/codegraphcontext/utils/git_utils.py:11
↓ 7 callers
Method
greet
()
tests/fixtures/sample_projects/sample_project_swift/User.swift:5
↓ 7 callers
Method
is_empty
(&self)
tests/fixtures/sample_projects/sample_project_rust/src/generics.rs:132
↓ 7 callers
Function
pre_scan_java
(files: list[Path], parser_wrapper)
src/codegraphcontext/tools/languages/java.py:1114
↓ 7 callers
Method
run
(self, query, **kwargs)
tests/integration/cli/test_cli_commands.py:102
↓ 7 callers
Method
run
(self, query, **params)
tests/unit/tools/test_query_correctness_batch.py:82
↓ 7 callers
Method
update_file_in_graph
Update a file node in the graph (delete and re-index). Parameters ---------- path : Path Path to the file to upda
src/codegraphcontext/tools/graph_builder.py:993
↓ 7 callers
Method
update_job
Updates the information for a specific job in a thread-safe manner.
src/codegraphcontext/core/jobs.py:88
↓ 7 callers
Method
validate_config
Validates Neo4j configuration parameters. Returns: Tuple[bool, Optional[str]]: (is_valid, error_message)
src/codegraphcontext/core/database.py:257
← previous
next →
101–200 of 5,033, ranked by callers