Replace 'hub' with 'ingest' in any GitHub URL to get a prompt-friendly extract of a codebase
This report presents the forensic synthetic code analysis of coderamp-labs/gitingest, a Python project with 15,051 GitHub stars. SynthScan v2.0 examined 11,101 lines of code across 95 source files, recording 149 pattern matches distributed across 11 syntactic categories. The overall adjusted score of 15.7 places this repository in the Moderate AI signal band.
The scanner applied 160+ deterministic lexical heuristics, multi-line block detectors, abstract syntax tree depth profilers, and a cross-file Jaccard similarity matrix to construct a statistically normalised synthetic code estimate. All matches are individually weighted by severity coefficient and contextual multiplier before summation, and the resulting headline score is temporally discounted to account for the repository's development history relative to the commercial emergence of large language model coding tooling (November 2022 onward).
This chart maps the temporal evolution of the adjusted synthetic code score across successive scan runs. An upward trajectory indicates ongoing incorporation of AI-generated code or expanding LLM-assisted scaffolding; a stable or declining trajectory may reflect active human refactoring, code removal, or the adoption of stricter authorship policies. The dashed secondary line (right axis) independently tracks total raw pattern hit count, which can diverge from the normalised score when codebase size changes significantly between scans.
Classifies detected patterns by their diagnostic confidence and structural impact. CRITICAL patterns (coefficient 10) represent definitive synthetic signatures — hallucinated imports, explicit LLM attribution metadata — virtually never produced by human authors. HIGH (5) indicates strong structural tells such as cross-file repetition or cross-linguistic idioms. MEDIUM (2) covers recognisable conversational padding and AI-specific vocabulary. LOW (1) captures subtle indicators like tautological comments and generic boilerplate that require density to carry independent signal.
This horizontal bar chart decomposes the repository's raw synthetic code score by top-level directory, allowing you to pinpoint precisely which modules or components carry the highest AI authorship density. Directories with disproportionately high scores relative to their size warrant targeted manual review: concentrated AI signatures often trace back to mass-generated configuration layers, auto-ported test suites, LLM-scaffolded boilerplate classes, or entire subsystems authored under heavy copilot assistance. Use this view to prioritise your human code-review effort.
The scanner identified 149 distinct pattern matches across 11 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a statistically significant AI authorship indicator. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.
Reading the findings table: The Severity column indicates the diagnostic confidence level (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — comment-context matches receive a ×1.5 weight because LLMs systematically over-annotate. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier as dense clusters constitute far stronger evidence of synthetic authorship than isolated hits.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/conftest.py | 30 | def get_ensure_git_installed_call_count() -> int: | CODE |
| LOW | tests/test_notebook_utils.py | 14 | def test_process_notebook_all_cells(write_notebook: WriteNotebookFunc) -> None: | CODE |
| LOW | tests/test_notebook_utils.py | 48 | def test_process_notebook_with_worksheets(write_notebook: WriteNotebookFunc) -> None: | CODE |
| LOW | tests/test_notebook_utils.py | 80 | def test_process_notebook_multiple_worksheets(write_notebook: WriteNotebookFunc) -> None: | CODE |
| LOW | tests/test_notebook_utils.py | 118 | def test_process_notebook_code_only(write_notebook: WriteNotebookFunc) -> None: | CODE |
| LOW | tests/test_notebook_utils.py | 139 | def test_process_notebook_markdown_only(write_notebook: WriteNotebookFunc) -> None: | CODE |
| LOW | tests/test_notebook_utils.py | 161 | def test_process_notebook_raw_only(write_notebook: WriteNotebookFunc) -> None: | CODE |
| LOW | tests/test_notebook_utils.py | 183 | def test_process_notebook_empty_cells(write_notebook: WriteNotebookFunc) -> None: | CODE |
| LOW | tests/test_notebook_utils.py | 206 | def test_process_notebook_invalid_cell_type(write_notebook: WriteNotebookFunc) -> None: | CODE |
| LOW | tests/test_notebook_utils.py | 225 | def test_process_notebook_with_output(write_notebook: WriteNotebookFunc) -> None: | CODE |
| LOW | tests/test_git_utils.py | 35 | def test_validate_github_token_valid(token: str) -> None: | CODE |
| LOW | tests/test_git_utils.py | 52 | def test_validate_github_token_invalid(token: str) -> None: | CODE |
| LOW | tests/test_git_utils.py | 113 | def test_create_git_auth_header(token: str) -> None: | CODE |
| LOW | tests/test_git_utils.py | 129 | def test_create_git_repo_helper_calls( | CODE |
| LOW | tests/test_git_utils.py | 195 | def test_create_git_auth_header_with_ghe_url(token: str, url: str, expected_hostname: str) -> None: | CODE |
| LOW | tests/test_git_utils.py | 234 | def test_create_git_repo_with_ghe_urls( | CODE |
| LOW | tests/test_git_utils.py | 264 | def test_create_git_repo_ignores_non_github_urls( | CODE |
| LOW⚡ | tests/test_gitignore_feature.py | 35 | def test_load_gitignore_patterns(tmp_path: Path) -> None: | CODE |
| LOW | tests/test_gitignore_feature.py | 52 | async def test_ingest_with_gitignore(repo_path: Path) -> None: | CODE |
| LOW | tests/test_clone.py | 70 | async def test_clone_nonexistent_repository(repo_exists_true: AsyncMock) -> None: | CODE |
| LOW | tests/test_clone.py | 121 | async def test_clone_without_commit(repo_exists_true: AsyncMock, gitpython_mocks: dict) -> None: | CODE |
| LOW | tests/test_clone.py | 149 | async def test_clone_creates_parent_directory(tmp_path: Path, gitpython_mocks: dict) -> None: | CODE |
| LOW | tests/test_clone.py | 170 | async def test_clone_with_specific_subpath(gitpython_mocks: dict) -> None: | CODE |
| LOW | tests/test_clone.py | 192 | async def test_clone_with_include_submodules(gitpython_mocks: dict) -> None: | CODE |
| LOW | tests/test_clone.py | 209 | async def test_check_repo_exists_with_auth_token(mocker: MockerFixture) -> None: | CODE |
| LOW | tests/test_pattern_utils.py | 7 | def test_process_patterns_empty_patterns() -> None: | CODE |
| LOW | tests/test_pattern_utils.py | 20 | def test_parse_patterns_valid() -> None: | CODE |
| LOW | tests/test_pattern_utils.py | 33 | def test_process_patterns_include_and_ignore_overlap() -> None: | CODE |
| LOW | tests/test_ingestion.py | 201 | def test_include_ignore_patterns( | CODE |
| LOW | tests/test_summary.py | 86 | def _calculate_expected_lines(ref_type: str, *, is_main_branch: bool) -> int: | CODE |
| LOW | tests/test_cli.py | 62 | def test_cli_with_stdout_output() -> None: | CODE |
| LOW | tests/test_cli.py | 93 | def _invoke_isolated_cli_runner(args: list[str]) -> Result: | CODE |
| LOW | tests/query_parser/test_query_parser.py | 42 | async def test_parse_url_valid_https(url: str, stub_resolve_sha: dict[str, AsyncMock]) -> None: | CODE |
| LOW | tests/query_parser/test_query_parser.py | 51 | async def test_parse_url_valid_http(url: str, stub_resolve_sha: dict[str, AsyncMock]) -> None: | CODE |
| LOW | tests/query_parser/test_query_parser.py | 90 | async def test_parse_query_mixed_case(stub_resolve_sha: dict[str, AsyncMock]) -> None: | CODE |
| LOW | tests/query_parser/test_query_parser.py | 106 | async def test_parse_url_with_subpaths( | CODE |
| LOW | tests/query_parser/test_query_parser.py | 129 | async def test_parse_url_invalid_repo_structure(stub_resolve_sha: dict[str, AsyncMock]) -> None: | CODE |
| LOW | tests/query_parser/test_query_parser.py | 144 | async def test_parse_local_dir_path_local_path() -> None: | CODE |
| LOW | tests/query_parser/test_query_parser.py | 160 | async def test_parse_local_dir_path_relative_path() -> None: | CODE |
| LOW | tests/query_parser/test_query_parser.py | 176 | async def test_parse_remote_repo_empty_source(stub_resolve_sha: dict[str, AsyncMock]) -> None: | CODE |
| LOW | tests/query_parser/test_query_parser.py | 199 | async def test_parse_url_branch_and_commit_distinction( | CODE |
| LOW | tests/query_parser/test_query_parser.py | 222 | async def test_parse_local_dir_path_uuid_uniqueness() -> None: | CODE |
| LOW | tests/query_parser/test_query_parser.py | 237 | async def test_parse_url_with_query_and_fragment(stub_resolve_sha: dict[str, AsyncMock]) -> None: | CODE |
| LOW | tests/query_parser/test_query_parser.py | 254 | async def test_parse_url_unsupported_host(stub_resolve_sha: dict[str, AsyncMock]) -> None: | CODE |
| LOW | tests/query_parser/test_query_parser.py | 270 | async def test_parse_query_with_branch() -> None: | CODE |
| LOW | tests/query_parser/test_query_parser.py | 304 | async def test_parse_repo_source_with_various_url_patterns( | CODE |
| LOW | tests/query_parser/test_query_parser.py | 330 | async def _assert_basic_repo_fields(url: str, sha_mock: AsyncMock) -> IngestionQuery: | CODE |
| LOW | tests/query_parser/test_git_host_agnostic.py | 31 | async def test_parse_query_without_host( | CODE |
| LOW | tests/server/test_flow_integration.py | 49 | async def test_remote_repository_analysis(request: pytest.FixtureRequest) -> None: | CODE |
| LOW | tests/server/test_flow_integration.py | 74 | async def test_invalid_repository_url(request: pytest.FixtureRequest) -> None: | CODE |
| LOW | tests/server/test_flow_integration.py | 171 | async def test_repository_with_patterns(request: pytest.FixtureRequest) -> None: | CODE |
| LOW | src/server/server_utils.py | 18 | async def rate_limit_exception_handler(request: Request, exc: Exception) -> Response: | CODE |
| LOW | src/static/llms.txt | 334 | def ingest_with_token_rotation(repo_url: str, token_manager): | CODE |
| LOW | src/gitingest/clone.py | 130 | async def _perform_post_clone_operations( | CODE |
| LOW | src/gitingest/utils/query_parser_utils.py | 101 | async def _try_domains_for_user_and_repo(user_name: str, repo_name: str, token: str | None = None) -> str: | CODE |
| LOW | src/gitingest/utils/query_parser_utils.py | 133 | def _is_valid_git_commit_hash(commit: str) -> bool: | CODE |
| LOW | src/gitingest/utils/query_parser_utils.py | 219 | def _get_user_and_repo_from_path(path: str) -> tuple[str, str]: | CODE |
| LOW | src/gitingest/utils/os_utils.py | 6 | async def ensure_directory_exists_or_create(path: Path) -> None: | CODE |
| LOW | src/gitingest/utils/git_utils.py | 187 | async def fetch_remote_branches_or_tags(url: str, *, ref_type: str, token: str | None = None) -> list[str]: | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/conftest.py | 7 | CODE | |
| LOW | tests/test_git_utils.py | 7 | CODE | |
| LOW | tests/test_clone.py | 7 | CODE | |
| LOW | tests/test_ingestion.py | 7 | CODE | |
| LOW | tests/test_cli.py | 3 | CODE | |
| LOW | tests/query_parser/test_query_parser.py | 8 | CODE | |
| LOW | tests/query_parser/test_git_host_agnostic.py | 7 | CODE | |
| LOW | src/server/form_types.py | 3 | CODE | |
| LOW | src/server/routers_utils.py | 3 | CODE | |
| LOW | src/server/models.py | 3 | CODE | |
| LOW | src/server/server_config.py | 3 | CODE | |
| LOW | src/server/s3_utils.py | 3 | CODE | |
| LOW | src/server/query_processor.py | 3 | CODE | |
| LOW | src/server/main.py | 3 | CODE | |
| LOW | src/server/routers/__init__.py | 3 | CODE | |
| LOW | src/server/routers/__init__.py | 4 | CODE | |
| LOW | src/server/routers/__init__.py | 5 | CODE | |
| LOW | src/gitingest/query_parser.py | 3 | CODE | |
| LOW | src/gitingest/ingestion.py | 3 | CODE | |
| LOW | src/gitingest/output_formatter.py | 3 | CODE | |
| LOW | src/gitingest/__init__.py | 3 | CODE | |
| LOW | src/gitingest/__init__.py | 3 | CODE | |
| LOW | src/gitingest/entrypoint.py | 3 | CODE | |
| LOW | src/gitingest/__main__.py | 4 | CODE | |
| LOW | src/gitingest/clone.py | 3 | CODE | |
| LOW | src/gitingest/utils/query_parser_utils.py | 3 | CODE | |
| LOW | src/gitingest/utils/auth.py | 3 | CODE | |
| LOW | src/gitingest/utils/logging_config.py | 7 | CODE | |
| LOW | src/gitingest/utils/ignore_patterns.py | 3 | CODE | |
| LOW | src/gitingest/utils/ingestion_utils.py | 3 | CODE | |
| LOW | src/gitingest/utils/compat_typing.py | 4 | CODE | |
| LOW | src/gitingest/utils/compat_typing.py | 9 | CODE | |
| LOW | src/gitingest/utils/compat_typing.py | 9 | CODE | |
| LOW | src/gitingest/utils/compat_typing.py | 14 | CODE | |
| LOW | src/gitingest/utils/compat_typing.py | 6 | CODE | |
| LOW | src/gitingest/utils/compat_typing.py | 11 | CODE | |
| LOW | src/gitingest/utils/compat_typing.py | 11 | CODE | |
| LOW | src/gitingest/utils/compat_typing.py | 16 | CODE | |
| LOW | src/gitingest/utils/pattern_utils.py | 3 | CODE | |
| LOW | src/gitingest/utils/file_utils.py | 3 | CODE | |
| LOW | src/gitingest/utils/notebook.py | 3 | CODE | |
| LOW | src/gitingest/utils/git_utils.py | 3 | CODE | |
| LOW | src/gitingest/schemas/ingestion.py | 3 | CODE | |
| LOW | src/gitingest/schemas/filesystem.py | 3 | CODE | |
| LOW | src/gitingest/schemas/cloning.py | 3 | CODE | |
| LOW | src/gitingest/schemas/__init__.py | 3 | CODE | |
| LOW | src/gitingest/schemas/__init__.py | 4 | CODE | |
| LOW | src/gitingest/schemas/__init__.py | 4 | CODE | |
| LOW | src/gitingest/schemas/__init__.py | 4 | CODE | |
| LOW | src/gitingest/schemas/__init__.py | 5 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM⚡ | tests/test_gitignore_feature.py | 24 | # Create a file that should be included | COMMENT |
| MEDIUM⚡ | tests/test_gitignore_feature.py | 28 | # Create a file that should be excluded | COMMENT |
| MEDIUM | src/server/main.py | 87 | # Define the default allowed hosts for the application | COMMENT |
| MEDIUM | src/server/metrics_server.py | 10 | # Create a logger for this module | COMMENT |
| MEDIUM | src/server/metrics_server.py | 13 | # Create a separate FastAPI app for metrics | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | src/server/query_processor.py | 98 | # Check if file exists on S3 | COMMENT |
| LOW | src/server/query_processor.py | 281 | # Check if digest already exists on S3 before cloning | COMMENT |
| LOW⚡ | src/server/main.py | 48 | # Set traces_sample_rate to capture transactions for tracing | COMMENT |
| LOW⚡ | src/server/main.py | 50 | # Set profile_session_sample_rate to profile sessions | COMMENT |
| LOW⚡ | src/server/main.py | 52 | # Set profile_lifecycle to automatically run the profiler | COMMENT |
| LOW | src/gitingest/utils/logging_config.py | 138 | # Check if we're in Kubernetes or production environment | COMMENT |
| LOW | src/gitingest/utils/notebook.py | 47 | # Check if the notebook contains worksheets | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | src/server/routers_utils.py | 54 | except Exception as exc: | CODE |
| LOW | src/server/s3_utils.py | 383 | except Exception as exc: | CODE |
| LOW | src/server/s3_utils.py | 462 | except Exception as exc: | CODE |
| LOW | src/server/query_processor.py | 131 | except Exception as exc: | CODE |
| LOW | src/server/query_processor.py | 187 | except Exception as metadata_exc: | CODE |
| LOW | src/server/query_processor.py | 270 | except Exception as exc: | CODE |
| LOW | src/server/query_processor.py | 307 | except Exception as exc: | CODE |
| LOW | src/gitingest/__main__.py | 187 | except Exception as exc: | CODE |
| LOW | src/gitingest/utils/git_utils.py | 104 | except Exception as exc: | CODE |
| LOW | src/gitingest/schemas/filesystem.py | 134 | except Exception as exc: | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | tests/test_cli.py | 72 | # ─── core expectations (stdout) ────────────────────────────────────- | COMMENT |
| MEDIUM | src/static/llms.txt | 136 | # ================================================ | COMMENT |
| MEDIUM | src/static/llms.txt | 138 | # ================================================ | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | src/server/routers/__init__.py | 7 | __all__ = ["dynamic", "index", "ingest"] | CODE |
| LOW | src/gitingest/__init__.py | 5 | __all__ = ["ingest", "ingest_async"] | CODE |
| LOW | src/gitingest/utils/compat_typing.py | 18 | __all__ = ["Annotated", "ParamSpec", "StrEnum", "TypeAlias"] | CODE |
| LOW | src/gitingest/schemas/__init__.py | 7 | __all__ = ["CloneConfig", "FileSystemNode", "FileSystemNodeType", "FileSystemStats", "IngestionQuery"] | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | tests/conftest.py | 228 | """Provide comprehensive GitPython mocks for testing.""" | STRING |
| MEDIUM | tests/conftest.py | 233 | """Set up comprehensive GitPython mocks.""" | STRING |
| LOW | src/gitingest/query_parser.py | 79 | # If no extra path parts, just return | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | src/server/s3_utils.py | 486 | CODE | |
| LOW | src/gitingest/ingestion.py | 123 | CODE | |
| LOW | src/gitingest/clone.py | 32 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | src/gitingest/entrypoint.py | 35 | CODE | |
| LOW | src/gitingest/entrypoint.py | 151 | CODE | |
| LOW | src/gitingest/__main__.py | 117 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | .github/workflows/codeql.yml | 1 | # For most projects, this workflow file will not need changing; you simply need | COMMENT |
| LOW | src/static/llms.txt | 121 | ``` | COMMENT |