Repository Analysis

HIPS/autograd

Efficiently computes derivatives of NumPy code.

15.4 Moderate AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of HIPS/autograd, a Python project with 7,512 GitHub stars. SynthScan v2.0 examined 15,429 lines of code across 120 source files, recording 205 pattern matches distributed across 11 syntactic categories. The overall adjusted score of 15.4 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).

15.4
Adjusted Score
15.4
Raw Score
100%
Time Factor
2026-07-13
Last Push
7.5K
Stars
Python
Language
15.4K
Lines of Code
120
Files
205
Pattern Hits
2026-07-14
Scan Date
0.03
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

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.

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 3MEDIUM 4LOW 198

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 205 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.

Hyper-Verbose Identifiers108 hits · 118 pts
SeverityFileLineSnippetContext
LOWautograd/builtins.py121def grad_sequence_extend_right(argnum, ans, args, kwargs):CODE
LOWautograd/builtins.py134def grad_sequence_extend_left(argnum, ans, args, kwargs):CODE
LOWautograd/core.py379def deprecated_defvjp_is_zero(primitive_fun):CODE
LOWautograd/core.py408def primitive_with_deprecation_warnings(f_raw):CODE
LOWautograd/numpy/numpy_wrapper.py101def _array_from_scalar_or_array(array_args, array_kwargs, scalar):CODE
LOWautograd/numpy/numpy_vjps.py922def array_from_args_gradmaker(argnum, ans, args, kwargs):CODE
LOWautograd/numpy/numpy_vjps.py929def array_from_scalar_or_array_gradmaker(ans, array_args, array_kwargs, scarray):CODE
LOWautograd/numpy/numpy_jvps.py243def fwd_grad_concatenate_args(argnum, g, ans, axis_args, kwargs):CODE
LOWautograd/scipy/stats/multivariate_normal.py19def generalized_outer_product(x):CODE
LOWtests/test_linalg.py17def check_symmetric_matrix_grads(fun, **grad_check_kwargs):CODE
LOWtests/test_linalg.py204def test_frobenius_norm_complex():CODE
LOWtests/test_linalg.py222def test_frobenius_norm_axis_complex():CODE
LOWtests/test_linalg.py243def test_vector_norm_ord_complex(size, ord):CODE
LOWtests/test_linalg.py281def test_norm_nuclear_complex():CODE
LOWtests/test_linalg.py300def test_norm_nuclear_axis_complex():CODE
LOWtests/test_linalg.py332def test_eigvalh_lower_broadcasting():CODE
LOWtests/test_linalg.py343def test_eigvalh_upper_broadcasting():CODE
LOWtests/test_linalg.py357def test_eigvalh_lower_complex():CODE
LOWtests/test_linalg.py367def test_eigvalh_upper_complex():CODE
LOWtests/test_linalg.py420def test_cholesky_reparameterization_trick():CODE
LOWtests/test_misc.py96def test_flatten_nodes_in_containers():CODE
LOWtests/test_scipy.py104 def test_norm_logpdf_broadcast():CODE
LOWtests/test_scipy.py107 def test_norm_logcdf_broadcast():CODE
LOWtests/test_scipy.py110 def test_norm_logsf_broadcast():CODE
LOWtests/test_scipy.py122 def test_poisson_cdf_broadcast():CODE
LOWtests/test_scipy.py125 def test_poisson_logpmf_broadcast():CODE
LOWtests/test_scipy.py128 def test_poisson_pmf_broadcast():CODE
LOWtests/test_scipy.py200 def test_mvn_logpdf_broadcast():CODE
LOWtests/test_scipy.py213 def normalized_dirichlet_logpdf(x, alpha):CODE
LOWtests/test_scipy.py225 def test_dirichlet_logpdf_alpha():CODE
LOWtests/test_scipy.py269 def test_convolve_generalization():CODE
LOWtests/test_vspaces.py49 def compatibility_of_scalar_mul_with_field_mul(x, a, b):CODE
LOWtests/test_vspaces.py52 def identity_element_of_scalar_mul(x):CODE
LOWtests/test_vspaces.py55 def distributivity_of_scalar_mul_wrt_vector_add(x, y, a):CODE
LOWtests/test_vspaces.py58 def distributivity_of_scalar_mul_wrt_scalar_add(x, a, b):CODE
LOWtests/test_vspaces.py65 def scalar_mul_preserves_vspace(x, a):CODE
LOWtests/test_vspaces.py144def test_array_vspace_complex():CODE
LOWtests/test_graphs.py83def test_mutating_outgrad_from_indexing():CODE
LOWtests/test_graphs.py95def test_complex_mutating_outgrad_from_indexing():CODE
LOWtests/test_graphs.py109def test_complex_separate_real_and_imaginary():CODE
LOWtests/test_graphs.py132def test_third_derivative_other_args():CODE
LOWtests/test_graphs.py154def test_singleton_array_output():CODE
LOWtests/test_graphs.py184def test_assignment_raises_error():CODE
LOWtests/numpy_utils.py54def binary_ufunc_check_no_same_args(fun, lims_A=[-2, 2], lims_B=[-2, 2], test_complex=True, **kwargs):CODE
LOWtests/test_jacobian.py9def test_jacobian_against_grad():CODE
LOWtests/test_jacobian.py15def test_jacobian_scalar_to_vector():CODE
LOWtests/test_jacobian.py21def test_jacobian_against_stacked_grads():CODE
LOWtests/test_jacobian.py37def test_jacobian_higher_order():CODE
LOWtests/test_fft.py270def test_rfftn_odd_not_implemented():CODE
LOWtests/test_ufunc_dispatch.py22def test_grad_through_dataarray_binary_ufunc():CODE
LOWtests/test_ufunc_dispatch.py35def test_grad_through_dataarray_reversed_operand():CODE
LOWtests/test_ufunc_dispatch.py48def test_grad_through_dataarray_unary_ufunc():CODE
LOWtests/test_ufunc_dispatch.py62def test_grad_through_dataarray_transcendental_ufunc():CODE
LOWtests/test_ufunc_dispatch.py76def test_grad_through_two_dataarrays_holding_boxes():CODE
LOWtests/test_ufunc_dispatch.py92def test_grad_through_dataarray_box_plus_plain_dataarray():CODE
LOWtests/test_ufunc_dispatch.py106def test_grad_through_dataarray_box_times_plain_ndarray():CODE
LOWtests/test_ufunc_dispatch.py120def test_grad_through_dataarray_box_times_python_scalar():CODE
LOWtests/test_ufunc_dispatch.py134def test_grad_through_dataarray_division():CODE
LOWtests/test_ufunc_dispatch.py147def test_grad_through_dataarray_exp():CODE
LOWtests/test_ufunc_dispatch.py161def test_grad_through_dataarray_maximum():CODE
48 more matches not shown…
Unused Imports65 hits · 62 pts
SeverityFileLineSnippetContext
LOWautograd/extend.py2CODE
LOWautograd/extend.py2CODE
LOWautograd/extend.py2CODE
LOWautograd/extend.py2CODE
LOWautograd/extend.py2CODE
LOWautograd/extend.py2CODE
LOWautograd/extend.py2CODE
LOWautograd/extend.py2CODE
LOWautograd/extend.py2CODE
LOWautograd/extend.py2CODE
LOWautograd/extend.py2CODE
LOWautograd/extend.py2CODE
LOWautograd/extend.py16CODE
LOWautograd/extend.py16CODE
LOWautograd/extend.py16CODE
LOWautograd/extend.py16CODE
LOWautograd/__init__.py1CODE
LOWautograd/__init__.py3CODE
LOWautograd/__init__.py3CODE
LOWautograd/__init__.py3CODE
LOWautograd/__init__.py3CODE
LOWautograd/__init__.py3CODE
LOWautograd/__init__.py4CODE
LOWautograd/__init__.py4CODE
LOWautograd/__init__.py4CODE
LOWautograd/__init__.py4CODE
LOWautograd/__init__.py4CODE
LOWautograd/__init__.py4CODE
LOWautograd/__init__.py4CODE
LOWautograd/__init__.py4CODE
LOWautograd/__init__.py4CODE
LOWautograd/__init__.py4CODE
LOWautograd/__init__.py4CODE
LOWautograd/__init__.py4CODE
LOWautograd/__init__.py4CODE
LOWautograd/__init__.py4CODE
LOWautograd/__init__.py4CODE
LOWautograd/__init__.py4CODE
LOWautograd/__init__.py4CODE
LOWautograd/__init__.py4CODE
LOWautograd/__init__.py4CODE
LOWautograd/tracer.py9CODE
LOWautograd/misc/__init__.py1CODE
LOWautograd/misc/__init__.py2CODE
LOWautograd/numpy/__init__.py6CODE
LOWautograd/numpy/__init__.py6CODE
LOWautograd/numpy/__init__.py6CODE
LOWautograd/numpy/__init__.py6CODE
LOWautograd/numpy/__init__.py6CODE
LOWautograd/numpy/__init__.py6CODE
LOWautograd/numpy/__init__.py6CODE
LOWautograd/numpy/__init__.py7CODE
LOWautograd/numpy/__init__.py8CODE
LOWautograd/scipy/__init__.py1CODE
LOWautograd/scipy/__init__.py1CODE
LOWautograd/scipy/__init__.py1CODE
LOWautograd/scipy/__init__.py1CODE
LOWautograd/scipy/stats/__init__.py1CODE
LOWautograd/scipy/stats/__init__.py1CODE
LOWautograd/scipy/stats/__init__.py1CODE
5 more matches not shown…
Cross-Language Confusion2 hits · 10 pts
SeverityFileLineSnippetContext
HIGHautograd/scipy/signal.py13 f"Mode {mode} undefined, it can be one of 'valid', 'full', and 'same'"CODE
HIGHautograd/scipy/signal.py153 f"Mode {mode} undefined, it can be one of 'valid', 'full', and 'same'"CODE
Self-Referential Comments3 hits · 9 pts
SeverityFileLineSnippetContext
MEDIUMtests/test_truediv.py1# This file is to check that future division works.COMMENT
MEDIUMexamples/gaussian_process.py41# Define an example covariance function.COMMENT
MEDIUMexamples/natural_gradient_black_box_svi.py28 # Define the natural gradientCOMMENT
Fake / Example Data7 hits · 8 pts
SeverityFileLineSnippetContext
LOWexamples/variational_autoencoder.py152 fake_data = generate_from_prior(gen_params, 20, latent_dim, seed)CODE
LOWexamples/variational_autoencoder.py153 save_images(fake_data, "vae_samples.png", vmin=0, vmax=1)CODE
LOWexamples/generative_adversarial_net.py65 fake_data = generate_from_noise(gen_params, num_samples, noise_dim, rs)CODE
LOWexamples/generative_adversarial_net.py66 logprobs_fake = logsigmoid(neural_net_predict(dsc_params, fake_data))CODE
LOWexamples/generative_adversarial_net.py162 fake_data = generate_from_noise(gen_params, 20, noise_dim, seed)CODE
LOWexamples/generative_adversarial_net.py164 probs_fake = np.mean(sigmoid(neural_net_predict(dsc_params, fake_data)))CODE
LOWexamples/generative_adversarial_net.py167 save_images(fake_data, "gan_samples.png", vmin=0, vmax=1)CODE
Over-Commented Block8 hits · 8 pts
SeverityFileLineSnippetContext
LOWautograd/tracer.py61 # order is determined by the dispatch mechanism. Also, if no other array-likeCOMMENT
LOWtests/test_graphs.py201COMMENT
LOWtests/test_performance.py1# TODO:COMMENT
LOWtests/test_numpy.py901COMMENT
LOWexamples/define_gradient.py21COMMENT
LOWexamples/natural_gradient_black_box_svi.py21 mu_density = np.sum(norm.logpdf(Y, mu, np.exp(log_sigma)), axis=1)COMMENT
LOWexamples/gplvm.py1# Implements a Gaussian process latent-variable model.COMMENT
LOW.github/workflows/test.yml41 allow-prereleases: trueCOMMENT
AI Response Leakage1 hit · 8 pts
SeverityFileLineSnippetContext
HIGHexamples/gplvm.py6# In this example, we optimize X and the hyperparameters of the GP, butCOMMENT
Deep Nesting6 hits · 6 pts
SeverityFileLineSnippetContext
LOWautograd/tracer.py118CODE
LOWautograd/numpy/numpy_wrapper.py25CODE
LOWautograd/numpy/linalg.py284CODE
LOWautograd/numpy/linalg.py285CODE
LOWautograd/numpy/numpy_jvps.py208CODE
LOWautograd/scipy/special.py137CODE
AI Slop Vocabulary3 hits · 6 pts
SeverityFileLineSnippetContext
LOWautograd/numpy/linalg.py263 # dimensions, so we just call a generic LU solve instead of directly usingCOMMENT
LOWautograd/numpy/numpy_boxes.py20 # Basic array attributes just pass throughCOMMENT
MEDIUMexamples/natural_gradient_black_box_svi.py46 # is small (which leads to more robust/less chaotic ascent).COMMENT
Excessive Try-Catch Wrapping1 hit · 1 pts
SeverityFileLineSnippetContext
LOWautograd/tracer.py88 except Exception as e:CODE
Overly Generic Function Names1 hit · 1 pts
SeverityFileLineSnippetContext
LOWautograd/numpy/numpy_vjps.py286 def helper(g, n):CODE