Repository Analysis

rentruewang/aioway

AI on the way. An auto deep learning pipe dream. An RDBMS approach to deep learning. Declarative, explainable, scalable, optimizable, easy to deploy, all that good stuff.

17.6 Moderate AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of rentruewang/aioway, a Python project with 1,825 GitHub stars. SynthScan v2.0 examined 14,261 lines of code across 170 source files, recording 233 pattern matches distributed across 11 syntactic categories. The overall adjusted score of 17.6 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).

17.6
Adjusted Score
17.6
Raw Score
100%
Time Factor
2026-07-09
Last Push
1.8K
Stars
Python
Language
14.3K
Lines of Code
170
Files
233
Pattern Hits
2026-07-14
Scan Date
0.01
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 1MEDIUM 8LOW 224

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

Unused Imports93 hits · 93 pts
SeverityFileLineSnippetContext
LOWnotebooks/aten.py18CODE
LOWnotebooks/aten.py19CODE
LOWsrc/aioway/__init__.py5CODE
LOWsrc/aioway/__init__.py5CODE
LOWsrc/aioway/__init__.py5CODE
LOWsrc/aioway/__init__.py5CODE
LOWsrc/aioway/__init__.py5CODE
LOWsrc/aioway/__init__.py5CODE
LOWsrc/aioway/__init__.py5CODE
LOWsrc/aioway/__init__.py5CODE
LOWsrc/aioway/__init__.py5CODE
LOWsrc/aioway/__init__.py5CODE
LOWsrc/aioway/__init__.py5CODE
LOWsrc/aioway/__init__.py5CODE
LOWsrc/aioway/__init__.py5CODE
LOWsrc/aioway/__init__.py5CODE
LOWsrc/aioway/__init__.py5CODE
LOWsrc/aioway/__init__.py5CODE
LOWsrc/aioway/__init__.py5CODE
LOWsrc/aioway/__init__.py5CODE
LOWsrc/aioway/_utils/__init__.py5CODE
LOWsrc/aioway/_utils/__init__.py6CODE
LOWsrc/aioway/_utils/__init__.py7CODE
LOWsrc/aioway/_utils/__init__.py8CODE
LOWsrc/aioway/_utils/__init__.py9CODE
LOWsrc/aioway/_utils/__init__.py10CODE
LOWsrc/aioway/_utils/__init__.py11CODE
LOWsrc/aioway/_utils/__init__.py12CODE
LOWsrc/aioway/_utils/__init__.py13CODE
LOWsrc/aioway/_utils/__init__.py14CODE
LOWsrc/aioway/_utils/tensors/__init__.py5CODE
LOWsrc/aioway/_utils/tensors/__init__.py6CODE
LOWsrc/aioway/_utils/tensors/__init__.py7CODE
LOWsrc/aioway/_utils/tensors/__init__.py8CODE
LOWsrc/aioway/codecs/__init__.py5CODE
LOWsrc/aioway/codecs/__init__.py6CODE
LOWsrc/aioway/codecs/__init__.py7CODE
LOWsrc/aioway/codecs/__init__.py8CODE
LOWsrc/aioway/codecs/__init__.py9CODE
LOWsrc/aioway/attrs/__init__.py3CODE
LOWsrc/aioway/attrs/__init__.py4CODE
LOWsrc/aioway/attrs/__init__.py5CODE
LOWsrc/aioway/attrs/__init__.py6CODE
LOWsrc/aioway/attrs/__init__.py7CODE
LOWsrc/aioway/modes/__init__.py3CODE
LOWsrc/aioway/modes/__init__.py4CODE
LOWsrc/aioway/modes/__init__.py5CODE
LOWsrc/aioway/modes/__init__.py6CODE
LOWsrc/aioway/modes/__init__.py7CODE
LOWsrc/aioway/modes/__init__.py8CODE
LOWsrc/aioway/modes/aten/__init__.py3CODE
LOWsrc/aioway/modes/aten/__init__.py4CODE
LOWsrc/aioway/modes/aten/__init__.py5CODE
LOWsrc/aioway/modes/aten/__init__.py6CODE
LOWsrc/aioway/modes/tracking/__init__.py5CODE
LOWsrc/aioway/modes/tracking/__init__.py6CODE
LOWsrc/aioway/emits/__init__.py3CODE
LOWsrc/aioway/emits/__init__.py4CODE
LOWsrc/aioway/io/__init__.py3CODE
LOWsrc/aioway/io/__init__.py4CODE
33 more matches not shown…
Modern Structural Boilerplate83 hits · 82 pts
SeverityFileLineSnippetContext
LOWsrc/aioway/_sess.py12__all__ = ["Session"]CODE
LOWsrc/aioway/_api.py10__all__ = ["public_api", "public_items", "AiowayApi"]CODE
LOWsrc/aioway/_thunks.py12__all__ = ["Thunk", "AnyThunk"]CODE
LOWsrc/aioway/trainers.py12__all__ = ["Trainer"]CODE
LOWsrc/aioway/indices.py15__all__ = ["AnnIndex", "AnnResult", "AnnIndexIter", "AnnIndexTrainerIter", "FaissIndex"]CODE
LOWsrc/aioway/_costs.py14__all__ = ["Cost", "CostSession"]CODE
LOWsrc/aioway/sklearn.py12__all__ = ["SklearnModel", "HasFit", "HasPredict", "HasFitPredict"]CODE
LOWsrc/aioway/_utils/tdicts.py7__all__ = ["tdict_rename", "tdict_all_equal"]CODE
LOWsrc/aioway/_utils/logging.py11__all__ = ["enable_log", "enable_rich_log"]CODE
LOWsrc/aioway/_utils/signs.py10__all__ = ["Sign"]CODE
LOWsrc/aioway/_utils/platforms.py8__all__ = ["num_threads"]CODE
LOWsrc/aioway/_utils/types.py8__all__ = ["track_call_count", "Stack", "AnySet", "AnyDict"]CODE
LOWsrc/aioway/_utils/dags.py9__all__ = ["DagNodeKey", "dag_node_key", "topo_sort"]CODE
LOWsrc/aioway/_utils/renders.py16__all__ = [CODE
LOWsrc/aioway/_utils/decomps.py16__all__ = [CODE
LOWsrc/aioway/_utils/typing.py10__all__ = [CODE
LOWsrc/aioway/_utils/tensors/hooks.py11__all__ = [CODE
LOWsrc/aioway/_utils/tensors/guards.py11__all__ = [CODE
LOWsrc/aioway/_utils/tensors/fake.py14__all__ = [CODE
LOWsrc/aioway/_utils/tensors/renders.py9__all__ = [CODE
LOWsrc/aioway/codecs/_bases.py9__all__ = ["TorchCompatible"]CODE
LOWsrc/aioway/codecs/texts.py12__all__ = ["TokenizerLoader", "TokenizeResult"]CODE
LOWsrc/aioway/codecs/collates.py7__all__ = ["chunk_collate", "chunk_collate_decompose_dim"]CODE
LOWsrc/aioway/codecs/images.py18__all__ = [CODE
LOWsrc/aioway/codecs/_av.py14__all__ = ["AudioStream"]CODE
LOWsrc/aioway/codecs/audios.py19__all__ = [CODE
LOWsrc/aioway/codecs/videos.py17__all__ = ["VideoLoader", "AvVideoLoader", "TorchCodecVideoLoader", "VideoData"]CODE
LOWsrc/aioway/attrs/shapes.py14__all__ = ["ShapeLike", "Shape"]CODE
LOWsrc/aioway/attrs/dtypes.py13__all__ = ["DType", "DTypeLike", "DTypeFamily"]CODE
LOWsrc/aioway/attrs/_bases.py8__all__ = ["TorchAttrBase"]CODE
LOWsrc/aioway/attrs/attrs.py22__all__ = ["Attr", "AttrLike", "AttrDict"]CODE
LOWsrc/aioway/attrs/layouts.py11__all__ = ["Layout", "LayoutLike"]CODE
LOWsrc/aioway/attrs/devices.py10__all__ = ["Device", "DeviceLike"]CODE
LOWsrc/aioway/modes/tensors.py21__all__ = ["TorchFuncMode", "TorchDispMode", "TorchFuncThunk", "TorchDispThunk"]CODE
LOWsrc/aioway/modes/modes.py14__all__ = ["Mode", "ModeStack", "ModeThunk"]CODE
LOWsrc/aioway/modes/toggles.py10__all__ = ["active_mode", "set_mode", "mode_off"]CODE
LOWsrc/aioway/modes/modules.py18__all__ = ["NnFwdThunk", "NnInitThunk", "NnFwdMode", "NnInitMode"]CODE
LOWsrc/aioway/modes/aten/binary.py16__all__ = [CODE
LOWsrc/aioway/modes/aten/getitem.py13__all__ = ["BooleanMasking", "IntSelect"]CODE
LOWsrc/aioway/modes/aten/fn.py14__all__ = ["AtenThunk"]CODE
LOWsrc/aioway/modes/aten/aten.py19__all__ = ["Aten", "aten_dcls", "find_aten", "all_aten_overrides"]CODE
LOWsrc/aioway/modes/tracking/hists.py27__all__ = ["Hist", "HistTensorGraph"]CODE
LOWsrc/aioway/modes/tracking/hists.py132 def _update_ref(self, thunk: T, output: object) -> None:STRING
LOWsrc/aioway/modes/tracking/modes.py27__all__ = [CODE
LOWsrc/aioway/emits/linear.py16__all__ = ["linear_shape", "linear_from_attr", "MlpEmitter"]CODE
LOWsrc/aioway/emits/emitters.py13__all__ = [CODE
LOWsrc/aioway/io/envs.py17__all__ = ["Env", "EnvGen"]CODE
LOWsrc/aioway/io/sinks.py12__all__ = ["Sink", "sink_dcls"]CODE
LOWsrc/aioway/io/volatile.py15__all__ = ["TensorDictFrame", "TensorListIter", "TdictListIter"]CODE
LOWsrc/aioway/io/volatile.py31 def _setup(self) -> None:CODE
LOWsrc/aioway/io/dsets.py17__all__ = [CODE
LOWsrc/aioway/io/dsets.py67 def _setup(self) -> None:CODE
LOWsrc/aioway/io/sess.py13__all__ = ["DsetSession"]CODE
LOWsrc/aioway/spaces/gym.py12__all__ = ["DiscreteSpace", "BoxSpace", "MultiDiscreteSpace", "MultiBinarySpace"]CODE
LOWsrc/aioway/spaces/media.py15__all__ = ["ImageSpace", "ByteImageSpace", "FloatImageSpace"]CODE
LOWsrc/aioway/spaces/spaces.py16__all__ = ["Space", "AnySpace", "TensorSpace", "TdictSpace", "space_dcls"]CODE
LOWsrc/aioway/spaces/exact.py16__all__ = ["AttrSpace", "ShapeSpace", "DTypeSpace"]CODE
LOWsrc/aioway/spaces/dims.py16__all__ = ["DimSpace", "DimInfo"]CODE
LOWsrc/aioway/spaces/coercions.py12__all__ = ["register_coercsion", "coerce_space", "Coercion", "CoercionOutput"]CODE
LOWsrc/aioway/torch/optim.py11__all__ = ["OptimizerUFunc"]CODE
23 more matches not shown…
Hyper-Verbose Identifiers31 hits · 34 pts
SeverityFileLineSnippetContext
LOWtests/test_sess.py57def test_no_abstract_session_current():CODE
LOWtests/_utils/test_types.py19def test_invoke_count_recursive():CODE
LOWtests/modes/test_history.py103def test_boolean_masking_should_fail(fake_a: torch.Tensor):CODE
LOWtests/modes/test_history.py110def test_boolean_masking_patched(fake_a: torch.Tensor):CODE
LOWtests/spaces/test_gym.py42def test_discrete_valid_sample(discrete: Space):CODE
LOWtests/spaces/test_gym.py51def test_discrete_invalid_init():CODE
LOWtests/spaces/test_gym.py78def test_multi_discrete_valid(multi_discrete: Space):CODE
LOWtests/spaces/test_gym.py82def test_multi_discrete_valid_sample(multi_discrete: Space):CODE
LOWtests/spaces/test_gym.py86def test_multi_discrete_invalid(multi_discrete: Space):CODE
LOWtests/spaces/test_gym.py93def test_multi_discrete_invalid_init():CODE
LOWtests/spaces/test_gym.py102def test_multi_binary_valid_sample(multi_binary: Space):CODE
LOWtests/spaces/test_gym.py106def test_multi_binary_invalid(multi_binary: Space):CODE
LOWtests/spaces/test_gym.py111def test_multi_binary_invalid_init():CODE
LOWtests/torch/nn/test_nn_init.py14def test_layer_nn_init_module(layer_nn_init: NnInit):CODE
LOWtests/torch/nn/test_iters.py55def test_iter_replace_with_function(tensor_init: TensorListIter):CODE
LOWtests/torch/nn/test_iters.py74def test_iter_no_replace_with_function(tensor_init: TensorIter):CODE
LOWtests/relalg/test_maps.py130def test_map_stream_one_to_one(map_stream: MapIter, save_last: SaveLastMapStream):CODE
LOWtests/relalg/test_binary.py120def test_simple_nested_loop_join(CODE
LOWtests/relalg/test_binary.py160def test_join_equal_as_original(CODE
LOWtests/relalg/test_binary.py222def test_binary_stream_in_list(CODE
LOWsrc/aioway/_utils/tensors/hooks.py34def register_module_forward_pre_hook(hook: ModulePreHook):CODE
LOWsrc/aioway/_utils/tensors/hooks.py49def register_module_forward_hook(hook: ModuleHook, *, always_call: bool = False):CODE
LOWsrc/aioway/_utils/tensors/hooks.py64def register_module_full_backward_pre_hook(hook: ModulePreHook):CODE
LOWsrc/aioway/_utils/tensors/hooks.py79def register_module_full_backward_hook(hook: ModuleHook):CODE
LOWsrc/aioway/_utils/tensors/hooks.py94def nn_module_register_forward_pre_hook(module: nn.Module, hook: ModulePreHook):CODE
LOWsrc/aioway/_utils/tensors/hooks.py109def nn_module_register_forward_hook(CODE
LOWsrc/aioway/_utils/tensors/hooks.py126def nn_module_register_full_backward_pre_hook(module: nn.Module, hook: ModulePreHook):CODE
LOWsrc/aioway/_utils/tensors/hooks.py141def nn_module_register_full_backward_hook(module: nn.Module, hook: ModuleHook):CODE
LOWsrc/aioway/_utils/tensors/renders.py32def render_function_body_prefix(CODE
LOWsrc/aioway/codecs/collates.py12def chunk_collate_decompose_dim(max_len: int, dim: int) -> CollateFunc:CODE
LOWsrc/aioway/attrs/attrs.py210 def _try_parse_attr_like_dict(cls, item: AttrLikeDict) -> typing.Self | None:CODE
Dead Code6 hits · 12 pts
SeverityFileLineSnippetContext
MEDIUMsrc/aioway/_utils/renders.py59CODE
MEDIUMsrc/aioway/_utils/renders.py62CODE
MEDIUMsrc/aioway/_utils/renders.py66CODE
MEDIUMsrc/aioway/_utils/renders.py69CODE
MEDIUMsrc/aioway/_utils/renders.py70CODE
MEDIUMsrc/aioway/_ufuncs/compound.py147CODE
Over-Commented Block9 hits · 9 pts
SeverityFileLineSnippetContext
LOWnotebooks/hello.py1# ---COMMENT
LOWnotebooks/nn_init.py1# ---COMMENT
LOWnotebooks/attributes.py1# ---COMMENT
LOWnotebooks/disable_ops.py1# ---COMMENT
LOWnotebooks/print_torch_ops.py1# ---COMMENT
LOWnotebooks/grads.py1# ---COMMENT
LOWnotebooks/modules.py1# ---COMMENT
LOWnotebooks/aten.py1# ---COMMENT
LOWnotebooks/state_dicts.py1# ---COMMENT
Self-Referential Comments2 hits · 6 pts
SeverityFileLineSnippetContext
MEDIUMsrc/aioway/codecs/audios.py137 # Create a fake tensor of float32 in fake mode.COMMENT
MEDIUMsrc/aioway/codecs/videos.py55 # Create a fake tensor of float32 in fake mode.COMMENT
Cross-Language Confusion1 hit · 5 pts
SeverityFileLineSnippetContext
HIGHsrc/aioway/io/dsets.py80 sess.push(self)CODE
Excessive Try-Catch Wrapping4 hits · 4 pts
SeverityFileLineSnippetContext
LOWsrc/aioway/attrs/_bases.py40 except Exception:CODE
LOWsrc/aioway/attrs/attrs.py223 except Exception:CODE
LOWsrc/aioway/modes/tracking/hists.py91 except Exception as e:STRING
LOWsrc/aioway/errors/exceptions.py34 except Exception as e:CODE
Redundant / Tautological Comments2 hits · 3 pts
SeverityFileLineSnippetContext
LOWsrc/aioway/_utils/dags.py95 # Check if data all have unique ids.COMMENT
LOWsrc/aioway/_utils/decomps.py81 # Check if it's those primitives.COMMENT
AI Structural Patterns1 hit · 1 pts
SeverityFileLineSnippetContext
LOWsrc/aioway/codecs/audios.py103CODE
Deep Nesting1 hit · 1 pts
SeverityFileLineSnippetContext
LOWsrc/aioway/attrs/dtypes.py68CODE