Repository Analysis

jupyterlab/jupyter-ai

An open source extension that connects AI agents to computational notebooks in JupyterLab.

7.2 Low AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of jupyterlab/jupyter-ai, a Python project with 4,384 GitHub stars. SynthScan v2.0 examined 11,347 lines of code across 69 source files, recording 75 pattern matches distributed across 8 syntactic categories. The overall adjusted score of 7.2 places this repository in the Low 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).

7.2
Adjusted Score
7.2
Raw Score
100%
Time Factor
2026-08-29
Last Push
4.4K
Stars
Python
Language
11.3K
Lines of Code
69
Files
75
Pattern Hits
2026-08-29
Scan Date
0.00
HC Hit Rate

What These Metrics Mean

Adjusted Score
Primary synthetic code indicator. Raw score normalised per 1,000 lines of code and multiplied by the temporal discount factor. This is the definitive comparative metric — use it to rank repositories by AI authorship density.
Raw Score
The unmodified sum of all severity-weighted, context-multiplied pattern match scores before temporal discounting. Reflects the absolute signal strength independent of when the repository was last active.
Time Factor
The temporal discount multiplier (0–100%) applied to the raw score. Repositories last updated before ChatGPT's launch (Nov 2022) receive a 5% factor. Full signal is only assigned to repositories active in the post-adoption era (Jan 2024+).
Pattern Hits
Total count of individual pattern matches across all files and categories. A high hit count with a low score may indicate a very large codebase with isolated AI snippets; a low count with a high score indicates dense, concentrated AI signatures.
HC Hit Rate
High+Critical pattern hits per file, averaged across the repository. This orthogonal signal catches repositories where a few files are densely packed with high-severity AI tells — a strong indicator even when the normalised score appears moderate due to codebase size.
Lines of Code / Files
Total lines and files analysed. The scanner examines 94 file extensions. These denominators are used to normalise the score, enabling fair comparison between repositories of vastly different sizes.

Score History

Longitudinal tracking requires multiple scan runs. Once this repository is re-scanned after new commits land, this chart will visualise how the synthetic code signal evolves over time — enabling you to detect whether AI authorship is growing, stabilising, or being actively corrected by human engineers.

No multi-scan history yet — run the scanner again to build trend data.

Severity Breakdown

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.

CRITICAL 0HIGH 0MEDIUM 9LOW 66

Directory Score Breakdown

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.

Pattern Findings

The scanner identified 75 distinct pattern matches across 8 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.

Hyper-Verbose Identifiers37 hits · 26 pts
SeverityFileLineSnippetContext
LOWdocs/source/_ext/subpackage_docs.py109def _inject_subpackage_toctrees(app: Sphinx, docname: str, source: list[str]) -> None:CODE
LOW…e/developers/entry_points_api/model_providers_group.md175 async def generate_inline_completions(self, request: InlineCompletionRequest):CODE
LOW…e/developers/entry_points_api/model_providers_group.md184 async def stream_inline_completions(self, request: InlineCompletionRequest):CODE
LOW…e/developers/entry_points_api/model_providers_group.md302 async def generate_inline_completions(self, request: InlineCompletionRequest):CODE
LOWdocs/tests/test_release_notes.py165def test_demote_headings_shifts_all_levels():CODE
LOWdocs/tests/test_release_notes.py179def test_strip_to_pr_groups_drops_heading_link_and_contributors():CODE
LOWdocs/tests/test_release_notes.py193def test_strip_to_pr_groups_keeps_subsection_headings():CODE
LOWdocs/tests/test_release_notes.py199def test_submodule_section_format(monkeypatch):CODE
LOWdocs/tests/test_release_notes.py222def test_submodule_section_added_when_no_prev_floor(monkeypatch):CODE
LOWdocs/tests/test_release_notes.py238def test_submodule_section_optional_note(monkeypatch):CODE
LOWdocs/tests/test_release_notes.py258def test_submodule_section_no_optional_note_by_default(monkeypatch):CODE
LOWdocs/tests/test_release_notes.py273def test_optional_only_names_excludes_core_deps():CODE
LOWdocs/tests/test_release_notes.py44def test_norm_unifies_separators_and_case():STRING
LOWdocs/tests/test_release_notes.py48def test_spec_floor_reads_lower_bound():STRING
LOWdocs/tests/test_release_notes.py54def test_spec_floor_none_without_lower_bound():STRING
LOWdocs/tests/test_release_notes.py59def test_load_floors_covers_deps_and_extras():STRING
LOWdocs/tests/test_release_notes.py68def test_load_ranges_normalizes_names():STRING
LOWdocs/tests/test_release_notes.py74def test_resolve_tag_picks_max_matching():STRING
LOWdocs/tests/test_release_notes.py80def test_resolve_tag_none_when_no_match():STRING
LOWdocs/tests/test_release_notes.py84def test_resolve_floor_tag_exact_and_spelling_tolerant():STRING
LOWdocs/tests/test_release_notes.py91def test_resolve_floor_tag_none_when_absent():STRING
LOWdocs/tests/test_release_notes.py109def test_window_start_inline_returns_tag(monkeypatch):STRING
LOWdocs/tests/test_release_notes.py119def test_window_start_diverged_returns_merge_base(monkeypatch):STRING
LOWdocs/tests/test_release_notes.py129def test_window_start_missing_merge_base_falls_back(monkeypatch):STRING
LOWdocs/tests/test_release_notes.py135def test_normalize_version_adds_v_prefix():STRING
LOWdocs/tests/test_release_notes.py292def test_submodule_section_omits_empty_pr_body(monkeypatch):STRING
LOWdocs/tests/test_release_notes.py368def test_build_page_covers_extra_changelog_repos(monkeypatch, tmp_path):STRING
LOWdocs/tests/test_release_notes.py421def test_extra_changelog_repos_disjoint_from_manifest():STRING
LOWdocs/tests/test_release_notes.py437def test_default_summary_omits_window_line_without_prev_tag():STRING
LOWdocs/tests/test_release_notes.py470def test_regenerate_auto_regions_preserves_summary_and_out_of_band_edits():STRING
LOWdocs/tests/test_release_notes.py495def test_regenerate_auto_regions_aborts_on_region_count_mismatch():STRING
LOWdocs/tests/test_release_notes.py503def test_update_index_toctree_inserts_sorted_descending(tmp_path):STRING
LOWdocs/tests/test_release_notes.py518def test_update_index_toctree_is_idempotent(tmp_path):STRING
LOWdocs/tests/test_release_notes.py529def test_update_index_toctree_preserves_options(tmp_path):STRING
LOWdocs/tests/test_subpackage_docs.py89def test_neither_and_missing_index_skipped(make_site):CODE
LOWdocs/tests/test_subpackage_docs.py111def test_full_subtree_with_nested_page_and_image(make_site):CODE
LOWdocs/tests/test_subpackage_docs.py153def test_baseline_no_submodules(make_site):CODE
Decorative Section Separators5 hits · 15 pts
SeverityFileLineSnippetContext
MEDIUMdocs/source/roadmap/new-persona-api.md103 # ─── Lifecycle methods ────────────────────────────────COMMENT
MEDIUMdocs/source/roadmap/new-persona-api.md117 # ─── Process message (delegates to self.engine) ───────COMMENT
MEDIUMdocs/source/roadmap/new-persona-api.md120 # ─── Runtime update APIs ────────────────────────────────COMMENT
MEDIUMdocs/source/roadmap/new-persona-api.md132 # ─── Lifecycle methods ────────────────────────────────COMMENT
MEDIUMdocs/source/roadmap/new-persona-api.md141 # ─── Process message ────────────────────────────────COMMENT
Modern AI Meta-Vocabulary4 hits · 11 pts
SeverityFileLineSnippetContext
MEDIUMREADME.md11Agents in Jupyter AI can read and write files, run terminal commands, and interact with notebooks through a built-in [JuCODE
MEDIUMdocs/source/roadmap/new-persona-api.md232### Example 1: Defining agentic AI personas powered by local modelsCOMMENT
MEDIUMdocs/source/users/magic_commands/index.md206### Configuring context windowCOMMENT
MEDIUM…elopers/entry_points_api/embeddings_providers_group.md21## How-to: Define a custom embedding model providerCOMMENT
Over-Commented Block8 hits · 8 pts
SeverityFileLineSnippetContext
LOWpyproject.toml81# submodules track each subpackage's `main` (freshest docs on the `latest`COMMENT
LOWscripts/update-doc-submodules.sh1#!/usr/bin/env bashCOMMENT
LOWscripts/rtd-post-checkout.sh1#!/usr/bin/env bashCOMMENT
LOWscripts/generate_release_notes.py81# a contributor added outside the auto regions — is preserved verbatim. This letsCOMMENT
LOWscripts/freeze-doc-submodules.sh1#!/usr/bin/env bashCOMMENT
LOW.github/workflows/prep-release-docs.yml1name: "Step 0: Prep release documentation"COMMENT
LOW.github/workflows/update-submodule-docs.yml1name: Update submodule documentationCOMMENT
LOWui-tests/jupyter_server_test_config.py41# playwright.config.js); persona-manager reads the MCP port to build itsCOMMENT
Excessive Try-Catch Wrapping8 hits · 8 pts
SeverityFileLineSnippetContext
LOWdocs/source/_ext/autodoc_subpackages.py119 except Exception:CODE
LOWdocs/source/_ext/autodoc_subpackages.py125 except Exception:CODE
LOWdocs/source/_ext/autodoc_subpackages.py143 except Exception:CODE
LOWdocs/source/_ext/autodoc_subpackages.py250 except Exception as exc: # pragma: no cover - defensiveCODE
LOWdocs/source/_ext/autodoc_subpackages.py324 except Exception:CODE
LOWscripts/_submodule_versions.py72 except Exception: # pragma: no cover - defensiveCODE
LOWscripts/_submodule_versions.py129 except Exception: # pragma: no cover - defensiveCODE
LOWscripts/_submodule_versions.py137 except Exception: # pragma: no cover - defensiveCODE
Unused Imports8 hits · 8 pts
SeverityFileLineSnippetContext
LOWdocs/source/_ext/autodoc_subpackages.py35CODE
LOWdocs/source/_ext/subpackage_docs.py38CODE
LOWdocs/tests/conftest.py19CODE
LOWdocs/tests/test_release_notes.py12CODE
LOWdocs/tests/test_subpackage_docs.py18CODE
LOWscripts/_resolve_doc_submodules.py42CODE
LOWscripts/generate_release_notes.py48CODE
LOWscripts/_submodule_versions.py25CODE
Modern Structural Boilerplate3 hits · 3 pts
SeverityFileLineSnippetContext
LOWdocs/source/_ext/autodoc_subpackages.py51logger = logging.getLogger(__name__)CODE
LOWdocs/source/_ext/subpackage_docs.py47logger = logging.getLogger(__name__)CODE
LOWscripts/generate_release_notes.py553def update_index_toctree(index_path: str, stem: str) -> None:CODE
Deep Nesting2 hits · 2 pts
SeverityFileLineSnippetContext
LOWdocs/tests/conftest.py107CODE
LOWdocs/tests/conftest.py122CODE