Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/CodeGraphContext/CodeGraphContext
/ functions
Functions
4,532 in github.com/CodeGraphContext/CodeGraphContext
⨍
Functions
4,532
◇
Types & classes
871
↳
Endpoints
23
↓ 12 callers
Method
load
* Load a language from a WebAssembly module. * The module can be provided as a path to a file or as a buffer.
website/public/wasm/web-tree-sitter.js:1482
↓ 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:140
↓ 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
Method
data
(self)
tests/unit/tools/test_cypher_query_readonly.py:23
↓ 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
setup_test_dir
Create clean test directory
tests/unit/core/test_cgcignore_patterns.py:55
↓ 11 callers
Function
sum
(...numbers: number[])
tests/fixtures/sample_projects/sample_project_typescript/src/functions-generics.ts:23
↓ 10 callers
Method
__new__
(mcls, name, bases, dct)
tests/fixtures/sample_projects/sample_project/advanced_classes.py:20
↓ 10 callers
Method
_get_node_text
(self, node: Any)
src/codegraphcontext/tools/languages/ruby.py:69
↓ 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
Method
close_driver
(self)
tests/unit/cli/test_analyze_complexity_file_path.py:20
↓ 10 callers
Method
getLogger
Get the parser's current logger.
website/public/wasm/web-tree-sitter.js:3338
↓ 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:248
↓ 10 callers
Method
start
(self)
src/codegraphcontext/core/watcher.py:383
↓ 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)
src/codegraphcontext/tools/languages/javascript.py:128
↓ 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
assertInternal
(x)
website/public/wasm/web-tree-sitter.js:115
↓ 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:304
↓ 9 callers
Method
find_module_dependencies
Find all dependencies and dependents of a module
src/codegraphcontext/tools/code_finder.py:1055
↓ 9 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:109
↓ 9 callers
Function
is_read_only_cypher
Return True when *query* has no write keywords outside string literals.
src/codegraphcontext/utils/cypher_readonly.py:45
↓ 9 callers
Function
load_config
Load configuration with priority support. Priority order (highest to lowest): 1. Environment variables 2. Local .env file (in current
src/codegraphcontext/cli/config_manager.py:326
↓ 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:845
↓ 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:103
↓ 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/csharp.py:377
↓ 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:212
↓ 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:727
↓ 8 callers
Function
_ts_cmd
(project_path: Path)
tests/unit/tools/test_scip_indexer_ts_workspaces.py:9
↓ 8 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
↓ 8 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:214
↓ 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
List all indexed repositories.
src/codegraphcontext/tools/code_finder.py:1396
↓ 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:270
↓ 8 callers
Function
strip_type_modifiers
Return the resolvable base type, e.g. 'List<T>?' -> 'List'.
src/codegraphcontext/tools/type_utils.py:5
↓ 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:167
↓ 7 callers
Method
_get_parent_context
(self, node, types=('function_definition', 'class_definition'))
src/codegraphcontext/tools/languages/python.py:80
↓ 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
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:188
↓ 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:1708
↓ 7 callers
Method
emit
(type: CgcEventType, payload?: unknown)
extensions/vscode/src/mcp/eventBus.ts:24
↓ 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
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
session
(self, **kwargs)
tests/unit/tools/test_cypher_query_readonly.py:54
↓ 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:976
↓ 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:253
↓ 7 callers
Function
validate_config_value
Validate a configuration value. Returns (is_valid, error_message)
src/codegraphcontext/cli/config_manager.py:503
↓ 6 callers
Function
_build_text
Construct the text to embed for a Function node.
src/codegraphcontext/tools/indexing/embeddings.py:67
↓ 6 callers
Method
_call_target_without_value_args
(self, expression: str)
src/codegraphcontext/tools/languages/kotlin.py:650
↓ 6 callers
Method
_get_node_text
(self, node)
src/codegraphcontext/tools/languages/perl.py:57
↓ 6 callers
Method
_get_parent_context
Get parent context for nested constructs.
src/codegraphcontext/tools/languages/c.py:174
↓ 6 callers
Function
_init_repo
(path)
tests/unit/cli/test_hook_manager.py:17
↓ 6 callers
Method
_patch_embedder
Inject a mock embedder that returns a fixed vector.
tests/unit/tools/test_embeddings_and_vector_resolver.py:250
↓ 6 callers
Method
_run
(self, query: str, **params)
src/codegraphcontext/tools/query_tool_languages/java_toolkit.py:27
↓ 6 callers
Method
_run
(self, all_file_data, imports_map=None, file_class_lookup=None, skip_external_env="false")
tests/unit/tools/test_graph_builder_perf_fixes.py:231
↓ 6 callers
Function
_save_neo4j_credentials
Save Neo4j credentials to .env file (database setup only). Does NOT generate MCP config or configure IDE.
src/codegraphcontext/cli/setup_wizard.py:32
↓ 6 callers
Method
add_repository_to_graph
(self, repo_path: Path, is_dependency: bool = False)
src/codegraphcontext/tools/indexing/persistence/writer.py:166
↓ 6 callers
Method
child
* Get the node's child at the given index, where zero represents the first child. * * This method is fairly fast, but its cost is technically lo
website/public/wasm/web-tree-sitter.js:773
↓ 6 callers
Method
create_job
Creates a new job, assigns it a unique ID, and stores it.
src/codegraphcontext/core/jobs.py:75
↓ 6 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:44
← previous
next →
101–200 of 4,532, ranked by callers