Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/adithya-s-k/GitVizz
/ functions
Functions
903 in github.com/adithya-s-k/GitVizz
⨍
Functions
903
◇
Types & classes
267
↳
Endpoints
33
↓ 146 callers
Function
cn
(...inputs)
frontend/lib/utils.js:4
↓ 42 callers
Function
setError
(error: string | null)
frontend/context/ResultDataContext.tsx:110
↓ 22 callers
Method
_create_subgraph_generator
Create a new GraphGenerator instance from subgraph data.
gitvizz/gitvizz/graph_search_tool.py:56
↓ 20 callers
Function
handleApiError
* Handle API errors with proper error types
frontend/utils/api.ts:501
↓ 19 callers
Function
useApiWithAuth
(apiFn: T)
frontend/hooks/useApiWithAuth.ts:5
↓ 18 callers
Method
_extract_subgraph_data
Extract subgraph data around specified nodes.
gitvizz/gitvizz/graph_search_tool.py:76
↓ 18 callers
Method
generate
Main LLM generation method Args: messages: List of message dicts with 'role' and 'content' model: Mo
backend/utils/llm_utils.py:551
↓ 16 callers
Method
search
(options: SearchOptions)
frontend/lib/search-utils.tsx:165
↓ 16 callers
Function
setLoading
(loading: boolean)
frontend/context/ResultDataContext.tsx:109
↓ 14 callers
Method
_node_text
Helper to get text from a tree-sitter node.
gitvizz/gitvizz/custom_ast_parser.py:46
↓ 13 callers
Method
count_tokens_approximately
Count tokens in content using LangChain's approximate token counting Args: content: Content to count (can be str
backend/utils/langchain_llm_service.py:280
↓ 13 callers
Function
extractErrorMessage
* Extract error message from API response
frontend/utils/api.ts:463
↓ 12 callers
Method
build_llm_context
Build LLM context from one or more subgraphs. Args: subgraphs: Single GraphGenerator or list of GraphGenerators
gitvizz/gitvizz/graph_search_tool.py:472
↓ 11 callers
Method
fuzzy_search
Perform fuzzy search and return a subgraph. Args: query: Search query string categories: Optional li
gitvizz/gitvizz/graph_search_tool.py:159
↓ 11 callers
Function
useResultData
()
frontend/context/ResultDataContext.tsx:93
↓ 10 callers
Method
get_model_config
Get configuration for a specific model
backend/utils/llm_utils.py:785
↓ 10 callers
Function
is_valid_access_token
Check if the access token is valid and not a placeholder.
backend/controllers/repo_controller.py:184
↓ 10 callers
Method
parse
( self, files_data: List[Dict[str, Any]], all_files_content: Dict[str, str] )
gitvizz/gitvizz/graph_generator.py:796
↓ 9 callers
Method
_get_line_number
Returns the 1-based start line number of a node. Returns -1 if line number cannot be determined.
gitvizz/gitvizz/custom_ast_parser.py:54
↓ 9 callers
Function
cleanup_temp_files
Clean up temporary directories.
backend/utils/repo_utils.py:446
↓ 8 callers
Method
detect_provider_from_model
Automatically detect provider from model name
backend/utils/llm_utils.py:526
↓ 8 callers
Function
executeOperation
* Generic function to handle all API operations (text, graph, structure) * for both GitHub repos and ZIP files
frontend/utils/api.ts:408
↓ 8 callers
Function
getLighterColor
(color: string)
frontend/components/SigmaGraphInner.tsx:72
↓ 8 callers
Method
print_subheader
Print formatted subheader
backend/tests/llm_utils/test_advanced_llm_features.py:151
↓ 7 callers
Method
create_dummy_user
Create a dummy user for testing
backend/tests/llm_utils/test_user_api_keys.py:53
↓ 7 callers
Function
find_user_repository
Find repository by ID using ObjectId or repository identifier Args: repo_id: Repository ObjectId, identifier (format: owner/repo
backend/utils/repo_utils.py:26
↓ 7 callers
Function
parse_repo_url
Parse GitHub repository URL into owner, repo, and optional branch/path.
backend/utils/repo_utils.py:154
↓ 7 callers
Method
print_header
Print formatted header
backend/tests/llm_utils/test_user_api_keys.py:42
↓ 6 callers
Method
_get_end_line_number
Returns the 1-based end line number of a node. Returns -1 if line number cannot be determined.
gitvizz/gitvizz/custom_ast_parser.py:70
↓ 6 callers
Method
file_exists
Check if file exists.
backend/utils/file_utils.py:107
↓ 6 callers
Function
findFileInTree
( nodes: FileNode[], predicate: (node: FileNode) => boolean, )
frontend/components/documentation.tsx:135
↓ 6 callers
Method
get_chat_model
Get a LangChain chat model instance - this is the main method you'll use Args: model: Model name (e.g., "gpt-4o-
backend/utils/langchain_llm_service.py:148
↓ 6 callers
Method
get_or_create_graph
Get or create a GitVizz graph for the repository
backend/utils/gitvizz_tools.py:30
↓ 6 callers
Method
print_header
Print formatted header
backend/tests/llm_utils/test_advanced_llm_features.py:145
↓ 6 callers
Method
print_header
Print formatted header
backend/tests/llm_utils/test_llm_providers.py:39
↓ 6 callers
Method
print_subheader
Print formatted subheader
backend/tests/llm_utils/test_user_api_keys.py:48
↓ 6 callers
Function
setOutput
(output: string | null)
frontend/context/ResultDataContext.tsx:104
↓ 6 callers
Function
setOutputMessage
(message: string | null)
frontend/context/ResultDataContext.tsx:105
↓ 6 callers
Function
setSourceData
(data: SourceData)
frontend/context/ResultDataContext.tsx:108
↓ 6 callers
Function
setSourceType
(type: SourceType)
frontend/context/ResultDataContext.tsx:107
↓ 5 callers
Method
_get_node_full_code
Extracts the full code snippet for a given AST node.
gitvizz/gitvizz/custom_ast_parser.py:50
↓ 5 callers
Method
find_anti_patterns
Find common anti-patterns in the code. Args: pattern_type: Type of anti-pattern ('god_class', 'long_method', 'de
gitvizz/gitvizz/graph_search_tool.py:702
↓ 5 callers
Method
generate
(self)
gitvizz/gitvizz/graph_generator.py:1476
↓ 5 callers
Method
get_api_key
Get API key for request (user's or system)
backend/utils/llm_utils.py:504
↓ 5 callers
Method
get_available_models
Get available models per provider
backend/utils/llm_utils.py:778
↓ 5 callers
Method
get_dependency_layers
Analyze architectural layers and dependencies. Returns: GraphGenerator subgraph showing layered architecture
gitvizz/gitvizz/graph_search_tool.py:801
↓ 5 callers
Method
get_user_storage_path
Get the storage path for a specific user.
backend/utils/file_utils.py:23
↓ 5 callers
Function
resolve_branch
Resolve the branch to use for a repository. Priority: 1. If requested_branch is provided and exists, use it 2. If requested_branch i
backend/controllers/repo_controller.py:107
↓ 5 callers
Function
smart_filter_files
Filter files to include only source code and exclude images, binaries, etc. For .ipynb files, content is extracted from cells.
backend/utils/repo_utils.py:269
↓ 5 callers
Method
test_source
Test a single source with given configuration.
gitvizz/test/graph_generator_test.py:119
↓ 4 callers
Function
_decode_jwt_token
Internal function to decode JWT token and return user
backend/utils/jwt_utils.py:113
↓ 4 callers
Method
_generate_content_async
Generate content using llm_service with robust error handling.
backend/documentation_generator/ai_client.py:66
↓ 4 callers
Method
_generate_graph_elements
(self)
gitvizz/gitvizz/graph_generator.py:1252
↓ 4 callers
Method
_run_async
Helper to run async functions in sync context
backend/documentation_generator/ai_client.py:56
↓ 4 callers
Method
add_message
Add a message to the conversation
backend/models/chat.py:41
↓ 4 callers
Function
check_existing_repository
Check if repository already exists for user and if it's up to date.
backend/controllers/repo_controller.py:194
↓ 4 callers
Method
combine_subgraphs
Combine multiple subgraphs into one. Args: *subgraphs: Variable number of GraphGenerator subgraphs
gitvizz/gitvizz/graph_search_tool.py:1045
↓ 4 callers
Method
decrypt_api_key
Decrypt API key for usage
backend/utils/llm_utils.py:451
↓ 4 callers
Method
encrypt_api_key
Encrypt API key for secure storage
backend/utils/llm_utils.py:447
↓ 4 callers
Function
extract_zip_contents
Extract files from a ZIP archive and return file list with paths.
backend/utils/repo_utils.py:247
↓ 4 callers
Function
formatTokenCount
(tokens: number)
frontend/utils/model-config.ts:86
↓ 4 callers
Function
format_repo_contents
Format repository contents into LLM-friendly text with directory structure.
backend/utils/repo_utils.py:435
↓ 4 callers
Method
from_source
Create a GraphGenerator directly from a ZIP file or folder. Args: source_path: Path to ZIP file or directory
gitvizz/gitvizz/graph_generator.py:1732
↓ 4 callers
Method
fuzzyScore
(query: string, target: string)
frontend/lib/search-utils.tsx:54
↓ 4 callers
Method
fuzzy_search
Fuzzy search using sequence matching
backend/utils/graph_utils.py:307
↓ 4 callers
Function
generate_repo_identifier
Generate a unique identifier for the repository using owner/repo/branch format.
backend/utils/file_utils.py:378
↓ 4 callers
Function
getApiBaseUrl
()
frontend/utils/client-config.ts:20
↓ 4 callers
Function
getAvailableModels
(token: string)
frontend/utils/api.ts:926
↓ 4 callers
Function
getDisplayName
()
frontend/app/results/page.tsx:180
↓ 4 callers
Function
getDisplayName
()
frontend/app/results/zip/[zipname]/page.tsx:180
↓ 4 callers
Function
get_latest_commit_sha
Get the latest commit SHA for a GitHub repository branch.
backend/controllers/repo_controller.py:145
↓ 4 callers
Method
get_max_context_length
Get maximum context length for a model
backend/utils/llm_utils.py:789
↓ 4 callers
Method
get_repository_context
Get repository context for LLM processing by processing the locally stored ZIP file Args: repository: Repository
backend/controllers/chat_controller.py:87
↓ 4 callers
Function
parseGitHubUrl
* Helper function to extract owner and repo from GitHub URL
frontend/utils/api.ts:103
↓ 4 callers
Method
parse_file_content
Parses the given file content using tree-sitter. Args: relative_file_path: The path to the file, relative to the project
gitvizz/gitvizz/custom_ast_parser.py:93
↓ 4 callers
Method
search_by_code_content
Search nodes by code content
backend/utils/graph_utils.py:249
↓ 4 callers
Method
search_by_name
Search nodes by name (exact and partial matches) - optimized with index
backend/utils/graph_utils.py:180
↓ 4 callers
Function
setCurrentRepoId
(repo_id: string | null)
frontend/context/ResultDataContext.tsx:118
↓ 4 callers
Method
stopStreaming
* Stop streaming and close the connection
frontend/lib/sse-client.ts:83
↓ 4 callers
Method
supports_function_calling
Check if model supports function calling
backend/utils/llm_utils.py:799
↓ 4 callers
Method
test_advanced_features
Test advanced features like NetworkX, I/O, visualization.
gitvizz/test/graph_generator_test.py:169
↓ 4 callers
Method
to_networkx
Convert the graph to a NetworkX DiGraph.
gitvizz/gitvizz/graph_generator.py:1490
↓ 4 callers
Function
useChatSidebar
( repositoryIdentifier: string, userKeyPreferences: Record<string, boolean>, options?: { autoLoad?: bool
frontend/hooks/use-chat-sidebar.ts:62
↓ 3 callers
Function
Header
()
frontend/components/header.tsx:20
↓ 3 callers
Method
_calculate_similarity
Calculate similarity between query and text using SequenceMatcher.
gitvizz/gitvizz/graph_search_tool.py:127
↓ 3 callers
Function
_get_node_end_line
Safely get end_lineno for an AST node.
gitvizz/gitvizz/graph_generator.py:53
↓ 3 callers
Function
_process_input
( repo_url: Optional[str], branch: Optional[str], zip_file: Optional[UploadFile], access_token
backend/utils/repo_utils.py:166
↓ 3 callers
Function
create_sample_codebase
Create a realistic codebase for testing.
gitvizz/test/graph_search_tool_test.py:15
↓ 3 callers
Method
download_test_source
Download a test source ZIP file.
gitvizz/test/graph_generator_test.py:106
↓ 3 callers
Method
filter_by_category
Filter nodes by category and return subgraph. Args: categories: List of categories to include depth:
gitvizz/gitvizz/graph_search_tool.py:230
↓ 3 callers
Function
findFunctionUsages
(code: string, functionName: string)
frontend/utils/code-analyzer.ts:12
↓ 3 callers
Method
findMatchRanges
(query: string, target: string)
frontend/lib/search-utils.tsx:85
↓ 3 callers
Method
find_circular_dependencies
Find circular dependencies in the code. Returns: GraphGenerator subgraph containing nodes involved in cycles
gitvizz/gitvizz/graph_search_tool.py:678
↓ 3 callers
Method
find_interface_violations
Find potential interface/abstraction violations. Returns: GraphGenerator subgraph containing violation instances
gitvizz/gitvizz/graph_search_tool.py:754
↓ 3 callers
Method
find_test_coverage_gaps
Find code that appears to lack test coverage. Returns: GraphGenerator subgraph containing untested code
gitvizz/gitvizz/graph_search_tool.py:836
↓ 3 callers
Method
find_unused_code
Find potentially unused code (nodes with no incoming connections). Args: min_depth: Minimum depth from entry poi
gitvizz/gitvizz/graph_search_tool.py:632
↓ 3 callers
Function
getAllDescendantFilePaths
(node: FileNode)
frontend/components/structure-tab.tsx:166
↓ 3 callers
Function
getDetailedAvailableModels
( token: string, provider?: string, )
frontend/utils/api.ts:1029
↓ 3 callers
Function
getRepoName
()
frontend/app/results/[owner]/[repo]/[branch]/page.tsx:216
↓ 3 callers
Function
getSelectedCount
()
frontend/components/structure-tab.tsx:466
next →
1–100 of 903, ranked by callers