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.
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).
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 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.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | notebooks/aten.py | 18 | CODE | |
| LOW | notebooks/aten.py | 19 | CODE | |
| LOW | src/aioway/__init__.py | 5 | CODE | |
| LOW | src/aioway/__init__.py | 5 | CODE | |
| LOW | src/aioway/__init__.py | 5 | CODE | |
| LOW | src/aioway/__init__.py | 5 | CODE | |
| LOW | src/aioway/__init__.py | 5 | CODE | |
| LOW | src/aioway/__init__.py | 5 | CODE | |
| LOW | src/aioway/__init__.py | 5 | CODE | |
| LOW | src/aioway/__init__.py | 5 | CODE | |
| LOW | src/aioway/__init__.py | 5 | CODE | |
| LOW | src/aioway/__init__.py | 5 | CODE | |
| LOW | src/aioway/__init__.py | 5 | CODE | |
| LOW | src/aioway/__init__.py | 5 | CODE | |
| LOW | src/aioway/__init__.py | 5 | CODE | |
| LOW | src/aioway/__init__.py | 5 | CODE | |
| LOW | src/aioway/__init__.py | 5 | CODE | |
| LOW | src/aioway/__init__.py | 5 | CODE | |
| LOW | src/aioway/__init__.py | 5 | CODE | |
| LOW | src/aioway/__init__.py | 5 | CODE | |
| LOW | src/aioway/_utils/__init__.py | 5 | CODE | |
| LOW | src/aioway/_utils/__init__.py | 6 | CODE | |
| LOW | src/aioway/_utils/__init__.py | 7 | CODE | |
| LOW | src/aioway/_utils/__init__.py | 8 | CODE | |
| LOW | src/aioway/_utils/__init__.py | 9 | CODE | |
| LOW | src/aioway/_utils/__init__.py | 10 | CODE | |
| LOW | src/aioway/_utils/__init__.py | 11 | CODE | |
| LOW | src/aioway/_utils/__init__.py | 12 | CODE | |
| LOW | src/aioway/_utils/__init__.py | 13 | CODE | |
| LOW | src/aioway/_utils/__init__.py | 14 | CODE | |
| LOW | src/aioway/_utils/tensors/__init__.py | 5 | CODE | |
| LOW | src/aioway/_utils/tensors/__init__.py | 6 | CODE | |
| LOW | src/aioway/_utils/tensors/__init__.py | 7 | CODE | |
| LOW | src/aioway/_utils/tensors/__init__.py | 8 | CODE | |
| LOW | src/aioway/codecs/__init__.py | 5 | CODE | |
| LOW | src/aioway/codecs/__init__.py | 6 | CODE | |
| LOW | src/aioway/codecs/__init__.py | 7 | CODE | |
| LOW | src/aioway/codecs/__init__.py | 8 | CODE | |
| LOW | src/aioway/codecs/__init__.py | 9 | CODE | |
| LOW | src/aioway/attrs/__init__.py | 3 | CODE | |
| LOW | src/aioway/attrs/__init__.py | 4 | CODE | |
| LOW | src/aioway/attrs/__init__.py | 5 | CODE | |
| LOW | src/aioway/attrs/__init__.py | 6 | CODE | |
| LOW | src/aioway/attrs/__init__.py | 7 | CODE | |
| LOW | src/aioway/modes/__init__.py | 3 | CODE | |
| LOW | src/aioway/modes/__init__.py | 4 | CODE | |
| LOW | src/aioway/modes/__init__.py | 5 | CODE | |
| LOW | src/aioway/modes/__init__.py | 6 | CODE | |
| LOW | src/aioway/modes/__init__.py | 7 | CODE | |
| LOW | src/aioway/modes/__init__.py | 8 | CODE | |
| LOW | src/aioway/modes/aten/__init__.py | 3 | CODE | |
| LOW | src/aioway/modes/aten/__init__.py | 4 | CODE | |
| LOW | src/aioway/modes/aten/__init__.py | 5 | CODE | |
| LOW | src/aioway/modes/aten/__init__.py | 6 | CODE | |
| LOW | src/aioway/modes/tracking/__init__.py | 5 | CODE | |
| LOW | src/aioway/modes/tracking/__init__.py | 6 | CODE | |
| LOW | src/aioway/emits/__init__.py | 3 | CODE | |
| LOW | src/aioway/emits/__init__.py | 4 | CODE | |
| LOW | src/aioway/io/__init__.py | 3 | CODE | |
| LOW | src/aioway/io/__init__.py | 4 | CODE | |
| 33 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | src/aioway/_sess.py | 12 | __all__ = ["Session"] | CODE |
| LOW | src/aioway/_api.py | 10 | __all__ = ["public_api", "public_items", "AiowayApi"] | CODE |
| LOW | src/aioway/_thunks.py | 12 | __all__ = ["Thunk", "AnyThunk"] | CODE |
| LOW | src/aioway/trainers.py | 12 | __all__ = ["Trainer"] | CODE |
| LOW | src/aioway/indices.py | 15 | __all__ = ["AnnIndex", "AnnResult", "AnnIndexIter", "AnnIndexTrainerIter", "FaissIndex"] | CODE |
| LOW | src/aioway/_costs.py | 14 | __all__ = ["Cost", "CostSession"] | CODE |
| LOW | src/aioway/sklearn.py | 12 | __all__ = ["SklearnModel", "HasFit", "HasPredict", "HasFitPredict"] | CODE |
| LOW | src/aioway/_utils/tdicts.py | 7 | __all__ = ["tdict_rename", "tdict_all_equal"] | CODE |
| LOW | src/aioway/_utils/logging.py | 11 | __all__ = ["enable_log", "enable_rich_log"] | CODE |
| LOW | src/aioway/_utils/signs.py | 10 | __all__ = ["Sign"] | CODE |
| LOW | src/aioway/_utils/platforms.py | 8 | __all__ = ["num_threads"] | CODE |
| LOW | src/aioway/_utils/types.py | 8 | __all__ = ["track_call_count", "Stack", "AnySet", "AnyDict"] | CODE |
| LOW | src/aioway/_utils/dags.py | 9 | __all__ = ["DagNodeKey", "dag_node_key", "topo_sort"] | CODE |
| LOW | src/aioway/_utils/renders.py | 16 | __all__ = [ | CODE |
| LOW | src/aioway/_utils/decomps.py | 16 | __all__ = [ | CODE |
| LOW | src/aioway/_utils/typing.py | 10 | __all__ = [ | CODE |
| LOW | src/aioway/_utils/tensors/hooks.py | 11 | __all__ = [ | CODE |
| LOW | src/aioway/_utils/tensors/guards.py | 11 | __all__ = [ | CODE |
| LOW | src/aioway/_utils/tensors/fake.py | 14 | __all__ = [ | CODE |
| LOW | src/aioway/_utils/tensors/renders.py | 9 | __all__ = [ | CODE |
| LOW | src/aioway/codecs/_bases.py | 9 | __all__ = ["TorchCompatible"] | CODE |
| LOW | src/aioway/codecs/texts.py | 12 | __all__ = ["TokenizerLoader", "TokenizeResult"] | CODE |
| LOW | src/aioway/codecs/collates.py | 7 | __all__ = ["chunk_collate", "chunk_collate_decompose_dim"] | CODE |
| LOW | src/aioway/codecs/images.py | 18 | __all__ = [ | CODE |
| LOW | src/aioway/codecs/_av.py | 14 | __all__ = ["AudioStream"] | CODE |
| LOW | src/aioway/codecs/audios.py | 19 | __all__ = [ | CODE |
| LOW | src/aioway/codecs/videos.py | 17 | __all__ = ["VideoLoader", "AvVideoLoader", "TorchCodecVideoLoader", "VideoData"] | CODE |
| LOW | src/aioway/attrs/shapes.py | 14 | __all__ = ["ShapeLike", "Shape"] | CODE |
| LOW | src/aioway/attrs/dtypes.py | 13 | __all__ = ["DType", "DTypeLike", "DTypeFamily"] | CODE |
| LOW | src/aioway/attrs/_bases.py | 8 | __all__ = ["TorchAttrBase"] | CODE |
| LOW | src/aioway/attrs/attrs.py | 22 | __all__ = ["Attr", "AttrLike", "AttrDict"] | CODE |
| LOW | src/aioway/attrs/layouts.py | 11 | __all__ = ["Layout", "LayoutLike"] | CODE |
| LOW | src/aioway/attrs/devices.py | 10 | __all__ = ["Device", "DeviceLike"] | CODE |
| LOW | src/aioway/modes/tensors.py | 21 | __all__ = ["TorchFuncMode", "TorchDispMode", "TorchFuncThunk", "TorchDispThunk"] | CODE |
| LOW | src/aioway/modes/modes.py | 14 | __all__ = ["Mode", "ModeStack", "ModeThunk"] | CODE |
| LOW | src/aioway/modes/toggles.py | 10 | __all__ = ["active_mode", "set_mode", "mode_off"] | CODE |
| LOW | src/aioway/modes/modules.py | 18 | __all__ = ["NnFwdThunk", "NnInitThunk", "NnFwdMode", "NnInitMode"] | CODE |
| LOW | src/aioway/modes/aten/binary.py | 16 | __all__ = [ | CODE |
| LOW | src/aioway/modes/aten/getitem.py | 13 | __all__ = ["BooleanMasking", "IntSelect"] | CODE |
| LOW | src/aioway/modes/aten/fn.py | 14 | __all__ = ["AtenThunk"] | CODE |
| LOW | src/aioway/modes/aten/aten.py | 19 | __all__ = ["Aten", "aten_dcls", "find_aten", "all_aten_overrides"] | CODE |
| LOW | src/aioway/modes/tracking/hists.py | 27 | __all__ = ["Hist", "HistTensorGraph"] | CODE |
| LOW | src/aioway/modes/tracking/hists.py | 132 | def _update_ref(self, thunk: T, output: object) -> None: | STRING |
| LOW | src/aioway/modes/tracking/modes.py | 27 | __all__ = [ | CODE |
| LOW | src/aioway/emits/linear.py | 16 | __all__ = ["linear_shape", "linear_from_attr", "MlpEmitter"] | CODE |
| LOW | src/aioway/emits/emitters.py | 13 | __all__ = [ | CODE |
| LOW | src/aioway/io/envs.py | 17 | __all__ = ["Env", "EnvGen"] | CODE |
| LOW | src/aioway/io/sinks.py | 12 | __all__ = ["Sink", "sink_dcls"] | CODE |
| LOW | src/aioway/io/volatile.py | 15 | __all__ = ["TensorDictFrame", "TensorListIter", "TdictListIter"] | CODE |
| LOW | src/aioway/io/volatile.py | 31 | def _setup(self) -> None: | CODE |
| LOW | src/aioway/io/dsets.py | 17 | __all__ = [ | CODE |
| LOW | src/aioway/io/dsets.py | 67 | def _setup(self) -> None: | CODE |
| LOW | src/aioway/io/sess.py | 13 | __all__ = ["DsetSession"] | CODE |
| LOW | src/aioway/spaces/gym.py | 12 | __all__ = ["DiscreteSpace", "BoxSpace", "MultiDiscreteSpace", "MultiBinarySpace"] | CODE |
| LOW | src/aioway/spaces/media.py | 15 | __all__ = ["ImageSpace", "ByteImageSpace", "FloatImageSpace"] | CODE |
| LOW | src/aioway/spaces/spaces.py | 16 | __all__ = ["Space", "AnySpace", "TensorSpace", "TdictSpace", "space_dcls"] | CODE |
| LOW | src/aioway/spaces/exact.py | 16 | __all__ = ["AttrSpace", "ShapeSpace", "DTypeSpace"] | CODE |
| LOW | src/aioway/spaces/dims.py | 16 | __all__ = ["DimSpace", "DimInfo"] | CODE |
| LOW | src/aioway/spaces/coercions.py | 12 | __all__ = ["register_coercsion", "coerce_space", "Coercion", "CoercionOutput"] | CODE |
| LOW | src/aioway/torch/optim.py | 11 | __all__ = ["OptimizerUFunc"] | CODE |
| 23 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/test_sess.py | 57 | def test_no_abstract_session_current(): | CODE |
| LOW | tests/_utils/test_types.py | 19 | def test_invoke_count_recursive(): | CODE |
| LOW | tests/modes/test_history.py | 103 | def test_boolean_masking_should_fail(fake_a: torch.Tensor): | CODE |
| LOW | tests/modes/test_history.py | 110 | def test_boolean_masking_patched(fake_a: torch.Tensor): | CODE |
| LOW | tests/spaces/test_gym.py | 42 | def test_discrete_valid_sample(discrete: Space): | CODE |
| LOW | tests/spaces/test_gym.py | 51 | def test_discrete_invalid_init(): | CODE |
| LOW⚡ | tests/spaces/test_gym.py | 78 | def test_multi_discrete_valid(multi_discrete: Space): | CODE |
| LOW⚡ | tests/spaces/test_gym.py | 82 | def test_multi_discrete_valid_sample(multi_discrete: Space): | CODE |
| LOW⚡ | tests/spaces/test_gym.py | 86 | def test_multi_discrete_invalid(multi_discrete: Space): | CODE |
| LOW⚡ | tests/spaces/test_gym.py | 93 | def test_multi_discrete_invalid_init(): | CODE |
| LOW⚡ | tests/spaces/test_gym.py | 102 | def test_multi_binary_valid_sample(multi_binary: Space): | CODE |
| LOW⚡ | tests/spaces/test_gym.py | 106 | def test_multi_binary_invalid(multi_binary: Space): | CODE |
| LOW⚡ | tests/spaces/test_gym.py | 111 | def test_multi_binary_invalid_init(): | CODE |
| LOW | tests/torch/nn/test_nn_init.py | 14 | def test_layer_nn_init_module(layer_nn_init: NnInit): | CODE |
| LOW | tests/torch/nn/test_iters.py | 55 | def test_iter_replace_with_function(tensor_init: TensorListIter): | CODE |
| LOW | tests/torch/nn/test_iters.py | 74 | def test_iter_no_replace_with_function(tensor_init: TensorIter): | CODE |
| LOW | tests/relalg/test_maps.py | 130 | def test_map_stream_one_to_one(map_stream: MapIter, save_last: SaveLastMapStream): | CODE |
| LOW | tests/relalg/test_binary.py | 120 | def test_simple_nested_loop_join( | CODE |
| LOW | tests/relalg/test_binary.py | 160 | def test_join_equal_as_original( | CODE |
| LOW | tests/relalg/test_binary.py | 222 | def test_binary_stream_in_list( | CODE |
| LOW | src/aioway/_utils/tensors/hooks.py | 34 | def register_module_forward_pre_hook(hook: ModulePreHook): | CODE |
| LOW | src/aioway/_utils/tensors/hooks.py | 49 | def register_module_forward_hook(hook: ModuleHook, *, always_call: bool = False): | CODE |
| LOW | src/aioway/_utils/tensors/hooks.py | 64 | def register_module_full_backward_pre_hook(hook: ModulePreHook): | CODE |
| LOW | src/aioway/_utils/tensors/hooks.py | 79 | def register_module_full_backward_hook(hook: ModuleHook): | CODE |
| LOW | src/aioway/_utils/tensors/hooks.py | 94 | def nn_module_register_forward_pre_hook(module: nn.Module, hook: ModulePreHook): | CODE |
| LOW | src/aioway/_utils/tensors/hooks.py | 109 | def nn_module_register_forward_hook( | CODE |
| LOW | src/aioway/_utils/tensors/hooks.py | 126 | def nn_module_register_full_backward_pre_hook(module: nn.Module, hook: ModulePreHook): | CODE |
| LOW | src/aioway/_utils/tensors/hooks.py | 141 | def nn_module_register_full_backward_hook(module: nn.Module, hook: ModuleHook): | CODE |
| LOW | src/aioway/_utils/tensors/renders.py | 32 | def render_function_body_prefix( | CODE |
| LOW | src/aioway/codecs/collates.py | 12 | def chunk_collate_decompose_dim(max_len: int, dim: int) -> CollateFunc: | CODE |
| LOW | src/aioway/attrs/attrs.py | 210 | def _try_parse_attr_like_dict(cls, item: AttrLikeDict) -> typing.Self | None: | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | src/aioway/_utils/renders.py | 59 | CODE | |
| MEDIUM | src/aioway/_utils/renders.py | 62 | CODE | |
| MEDIUM | src/aioway/_utils/renders.py | 66 | CODE | |
| MEDIUM | src/aioway/_utils/renders.py | 69 | CODE | |
| MEDIUM | src/aioway/_utils/renders.py | 70 | CODE | |
| MEDIUM | src/aioway/_ufuncs/compound.py | 147 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | notebooks/hello.py | 1 | # --- | COMMENT |
| LOW | notebooks/nn_init.py | 1 | # --- | COMMENT |
| LOW | notebooks/attributes.py | 1 | # --- | COMMENT |
| LOW | notebooks/disable_ops.py | 1 | # --- | COMMENT |
| LOW | notebooks/print_torch_ops.py | 1 | # --- | COMMENT |
| LOW | notebooks/grads.py | 1 | # --- | COMMENT |
| LOW | notebooks/modules.py | 1 | # --- | COMMENT |
| LOW | notebooks/aten.py | 1 | # --- | COMMENT |
| LOW | notebooks/state_dicts.py | 1 | # --- | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | src/aioway/codecs/audios.py | 137 | # Create a fake tensor of float32 in fake mode. | COMMENT |
| MEDIUM | src/aioway/codecs/videos.py | 55 | # Create a fake tensor of float32 in fake mode. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | src/aioway/io/dsets.py | 80 | sess.push(self) | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | src/aioway/attrs/_bases.py | 40 | except Exception: | CODE |
| LOW | src/aioway/attrs/attrs.py | 223 | except Exception: | CODE |
| LOW | src/aioway/modes/tracking/hists.py | 91 | except Exception as e: | STRING |
| LOW | src/aioway/errors/exceptions.py | 34 | except Exception as e: | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | src/aioway/_utils/dags.py | 95 | # Check if data all have unique ids. | COMMENT |
| LOW | src/aioway/_utils/decomps.py | 81 | # Check if it's those primitives. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | src/aioway/codecs/audios.py | 103 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | src/aioway/attrs/dtypes.py | 68 | CODE |