Repository Analysis

onnx/onnx

Open standard for machine learning interoperability

12.3 Low AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of onnx/onnx, a Python project with 21,143 GitHub stars. SynthScan v2.0 examined 168,587 lines of code across 826 source files, recording 2140 pattern matches distributed across 20 syntactic categories. The overall adjusted score of 12.3 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).

12.3
Adjusted Score
12.3
Raw Score
100%
Time Factor
2026-07-13
Last Push
21.1K
Stars
Python
Language
168.6K
Lines of Code
826
Files
2.1K
Pattern Hits
2026-07-14
Scan Date
0.06
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 48MEDIUM 43LOW 2049

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 2140 distinct pattern matches across 20 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 Imports858 hits · 726 pts
SeverityFileLineSnippetContext
LOWtools/pixi-shim.py15CODE
LOWtools/gen_coverage_report.py6CODE
LOWtools/pretty_clang_tidy.py5CODE
LOWtools/check_namespace.py10CODE
LOWonnx/model_container.py8CODE
LOWonnx/gen_proto.py6CODE
LOWonnx/version.py10CODE
LOWonnx/version.py14CODE
LOWonnx/compose.py4CODE
LOWonnx/__init__.py5CODE
LOWonnx/__init__.py82CODE
LOWonnx/__init__.py88CODE
LOWonnx/__init__.py88CODE
LOWonnx/__init__.py88CODE
LOWonnx/__init__.py88CODE
LOWonnx/__init__.py88CODE
LOWonnx/__init__.py88CODE
LOWonnx/__init__.py88CODE
LOWonnx/__init__.py88CODE
LOWonnx/__init__.py88CODE
LOWonnx/__init__.py88CODE
LOWonnx/__init__.py88CODE
LOWonnx/__init__.py88CODE
LOWonnx/__init__.py88CODE
LOWonnx/__init__.py88CODE
LOWonnx/__init__.py88CODE
LOWonnx/__init__.py88CODE
LOWonnx/__init__.py88CODE
LOWonnx/__init__.py88CODE
LOWonnx/__init__.py88CODE
LOWonnx/__init__.py88CODE
LOWonnx/__init__.py88CODE
LOWonnx/__init__.py88CODE
LOWonnx/__init__.py88CODE
LOWonnx/__init__.py88CODE
LOWonnx/__init__.py88CODE
LOWonnx/__init__.py88CODE
LOWonnx/__init__.py88CODE
LOWonnx/__init__.py88CODE
LOWonnx/__init__.py88CODE
LOWonnx/__init__.py88CODE
LOWonnx/__init__.py125CODE
LOWonnx/__init__.py125CODE
LOWonnx/__init__.py126CODE
LOWonnx/__init__.py126CODE
LOWonnx/__init__.py126CODE
LOWonnx/__init__.py130CODE
LOWonnx/__init__.py130CODE
LOWonnx/__init__.py130CODE
LOWonnx/__init__.py130CODE
LOWonnx/__init__.py130CODE
LOWonnx/__init__.py130CODE
LOWonnx/__init__.py130CODE
LOWonnx/__init__.py130CODE
LOWonnx/__init__.py130CODE
LOWonnx/__init__.py130CODE
LOWonnx/__init__.py130CODE
LOWonnx/parser.py4CODE
LOWonnx/shape_inference.py10CODE
LOWonnx/utils.py4CODE
798 more matches not shown…
Hyper-Verbose Identifiers930 hits · 715 pts
SeverityFileLineSnippetContext
LOWonnx/model_container.py120 def is_in_memory_external_initializer(self, name: str) -> bool:CODE
LOWonnx/__init__.py462def _operator_set_protos_repr(protos: Sequence[OperatorSetIdProto]) -> str:CODE
LOWonnx/shape_inference.py159def infer_function_output_types(CODE
LOWonnx/utils.py66 def _dfs_search_reachable_nodes(CODE
LOWonnx/utils.py109 def _collect_referred_local_functions(CODE
LOWonnx/utils.py132 def _collect_reachable_tensors(CODE
LOWonnx/helper.py86def _create_op_set_id_version_map(table: VersionTableType) -> VersionMapType:CODE
LOWonnx/helper.py781def make_empty_tensor_value_info(name: str) -> ValueInfoProto:CODE
LOWonnx/helper.py850def make_sparse_tensor_type_proto(CODE
LOWonnx/helper.py895def make_sparse_tensor_value_info(CODE
LOWonnx/helper.py973def make_tensor_sequence_value_info(CODE
LOWonnx/helper.py1285def tensor_dtype_to_storage_tensor_dtype(tensor_dtype: int) -> int:CODE
LOWonnx/inliner.py30def inline_selected_functions(CODE
LOWonnx/external_data_helper.py109def _validate_external_data_file_bounds(CODE
LOWonnx/external_data_helper.py144def load_external_data_for_tensor(tensor: TensorProto, base_dir: str) -> None:CODE
LOWonnx/external_data_helper.py160def load_external_data_for_model(model: ModelProto, base_dir: str) -> None:CODE
LOWonnx/external_data_helper.py204def convert_model_to_external_data(CODE
LOWonnx/external_data_helper.py262def convert_model_from_external_data(model: ModelProto) -> None:CODE
LOWonnx/external_data_helper.py317def _recursive_attribute_processor(CODE
LOWonnx/external_data_helper.py328def _get_initializer_tensors_from_graph(graph: GraphProto, /) -> Iterable[TensorProto]:CODE
LOWonnx/external_data_helper.py343def _get_attribute_tensors_from_graph(CODE
LOWonnx/external_data_helper.py379def remove_external_data_field(tensor: TensorProto, field_key: str) -> None:CODE
LOWonnx/external_data_helper.py393def write_external_data_tensors(model: ModelProto, filepath: str) -> ModelProto:CODE
LOWonnx/serialization.py82 def get_format_from_file_extension(self, file_extension: str) -> str | None:CODE
LOWonnx/tools/replace_constants.py71def _replace_constant_of_shape_with_range(CODE
LOWonnx/tools/replace_constants.py153def _replace_constant_of_shape_value(CODE
LOWonnx/tools/replace_constants.py199def replace_initializer_by_constant_of_shape( # noqa: PLR0911CODE
LOWonnx/tools/update_model_dims.py12def update_inputs_outputs_dims(CODE
LOWonnx/test/checker_test.py451 def test_check_tensor_zero_elem(self) -> None:CODE
LOWonnx/test/checker_test.py455 def test_check_removed_experimental_op(self) -> None:CODE
LOWonnx/test/checker_test.py459 def test_skip_schema_check_on_non_standard_domain(self) -> None:CODE
LOWonnx/test/checker_test.py477 def test_check_sparse_tensor_invalid_index(self) -> None:CODE
LOWonnx/test/checker_test.py483 def test_check_sparse_tensor_unordered(self) -> None:CODE
LOWonnx/test/checker_test.py489 def test_check_sparse_tensor_coo_format(self) -> None:CODE
LOWonnx/test/checker_test.py493 def test_check_sparse_tensor_coo_format_invalid_index(self) -> None:CODE
LOWonnx/test/checker_test.py498 def test_check_sparse_tensor_coo_format_invalid_shape(self) -> None:CODE
LOWonnx/test/checker_test.py65 def test_check_node_input_marked_optional(self) -> None:CODE
LOWonnx/test/checker_test.py79 def test_check_function_nested(self) -> None:CODE
LOWonnx/test/checker_test.py195 def test_check_graph_empty_initializer_name(self) -> None:CODE
LOWonnx/test/checker_test.py211 def test_check_graph_empty_sparse_initializer_name(self) -> None:CODE
LOWonnx/test/checker_test.py227 def test_check_graph_duplicate_init_names(self) -> None:CODE
LOWonnx/test/checker_test.py246 def test_check_graph_optional_input(self) -> None:CODE
LOWonnx/test/checker_test.py273 def test_check_graph_topologically_sorted(self) -> None:CODE
LOWonnx/test/checker_test.py298 def test_check_serialized_model(self) -> None:CODE
LOWonnx/test/checker_test.py310 def test_check_model_protobuf_size_boundary(CODE
LOWonnx/test/checker_test.py326 def test_check_model_protobuf_size_over_limit_raises(CODE
LOWonnx/test/checker_test.py379 def test_check_tensor_mismatched_field(self) -> None:CODE
LOWonnx/test/checker_test.py412 def test_nested_graph_without_subgraph_input_shape(self) -> None:CODE
LOWonnx/test/checker_test.py525 def test_check_model_unsupported_input_type(self) -> None:CODE
LOWonnx/test/checker_test.py537 def test_check_model_inconsistent_type(self) -> None:CODE
LOWonnx/test/checker_test.py549 def test_check_model_unsupported_output_type(self) -> None:CODE
LOWonnx/test/checker_test.py1081 def test_empty_list_attribute(self):CODE
LOWonnx/test/checker_test.py1111 def test_check_model_supports_unicode_path(self):CODE
LOWonnx/test/checker_test.py1127 def test_graph_output_is_defined(self):CODE
LOWonnx/test/checker_test.py1141 def test_graph_output_is_defined_within_sub_graph(self):CODE
LOWonnx/test/checker_test.py1162 def test_check_model_rejects_self_recursive_function(self) -> None:CODE
LOWonnx/test/checker_test.py1176 def test_check_model_rejects_indirect_cycle(self) -> None:CODE
LOWonnx/test/checker_test.py1192 def test_check_model_rejects_self_recursion_in_subgraph(self) -> None:CODE
LOWonnx/test/checker_test.py1216 def test_check_model_rejects_mutual_recursion_in_subgraph(self) -> None:CODE
LOWonnx/test/checker_test.py1248 def test_check_model_rejects_indirect_cycle_through_subgraph(self) -> None:CODE
870 more matches not shown…
Cross-File Repetition42 hits · 210 pts
SeverityFileLineSnippetContext
HIGHonnx/test/checker_test.py0<ir_version: 8, opset_import: [ "" : 17, "local" : 1 ]> agraph (float[n] x) => (float[n] y) { y = local.foo (x) } <opsetSTRING
HIGHonnx/test/inliner_test.py0<ir_version: 8, opset_import: [ "" : 17, "local" : 1 ]> agraph (float[n] x) => (float[n] y) { y = local.foo (x) } <opsetSTRING
HIGHonnx/test/shape_inference_test.py0<ir_version: 8, opset_import: [ "" : 17, "local" : 1 ]> agraph (float[n] x) => (float[n] y) { y = local.foo (x) } <opsetSTRING
HIGHonnx/test/shape_inference_test.py0flexattention with different head sizes for q/k vs v.STRING
HIGHonnx/backend/test/case/node/flexattention.py0flexattention with different head sizes for q/k vs v.STRING
HIGHdocs/TestCoverage.md0flexattention with different head sizes for q/k vs v.STRING
HIGHonnx/backend/test/case/node/averagepool.py0input_shape: [1, 1, 5, 5] output_shape: [1, 1, 5, 5] pad_shape: [4, 4] -> [2, 2, 2, 2] by axisSTRING
HIGHonnx/backend/test/case/node/maxpool.py0input_shape: [1, 1, 5, 5] output_shape: [1, 1, 5, 5] pad_shape: [4, 4] -> [2, 2, 2, 2] by axisSTRING
HIGHdocs/TestCoverage.md0input_shape: [1, 1, 5, 5] output_shape: [1, 1, 5, 5] pad_shape: [4, 4] -> [2, 2, 2, 2] by axisSTRING
HIGHonnx/backend/test/case/node/averagepool.py0input_shape: [1, 1, 5, 5] output_shape: [1, 1, 2, 2]STRING
HIGHonnx/backend/test/case/node/maxpool.py0input_shape: [1, 1, 5, 5] output_shape: [1, 1, 2, 2]STRING
HIGHdocs/TestCoverage.md0input_shape: [1, 1, 5, 5] output_shape: [1, 1, 2, 2]STRING
HIGHonnx/backend/test/case/node/averagepool.py0input_shape: [1, 1, 5, 5] output_shape: [1, 1, 3, 3] pad_shape: [2, 2] -> [1, 1, 1, 1] by axisSTRING
HIGHonnx/backend/test/case/node/maxpool.py0input_shape: [1, 1, 5, 5] output_shape: [1, 1, 3, 3] pad_shape: [2, 2] -> [1, 1, 1, 1] by axisSTRING
HIGHdocs/TestCoverage.md0input_shape: [1, 1, 5, 5] output_shape: [1, 1, 3, 3] pad_shape: [2, 2] -> [1, 1, 1, 1] by axisSTRING
HIGHonnx/backend/test/case/node/averagepool.py0input_shape: [1, 3, 32, 32, 32] output_shape: [1, 3, 31, 31, 31]STRING
HIGHonnx/backend/test/case/node/maxpool.py0input_shape: [1, 3, 32, 32, 32] output_shape: [1, 3, 31, 31, 31]STRING
HIGHonnx/backend/test/case/node/lppool.py0input_shape: [1, 3, 32, 32, 32] output_shape: [1, 3, 31, 31, 31]STRING
HIGHdocs/TestCoverage.md0input_shape: [1, 3, 32, 32, 32] output_shape: [1, 3, 31, 31, 31]STRING
HIGHonnx/backend/test/case/node/averagepool.py0input_shape: [1, 3, 32, 32] output_shape: [1, 3, 32, 32] pad_shape: [1, 1] -> [1, 0, 1, 0] by axisSTRING
HIGHonnx/backend/test/case/node/maxpool.py0input_shape: [1, 3, 32, 32] output_shape: [1, 3, 32, 32] pad_shape: [1, 1] -> [1, 0, 1, 0] by axisSTRING
HIGHonnx/backend/test/case/node/lppool.py0input_shape: [1, 3, 32, 32] output_shape: [1, 3, 32, 32] pad_shape: [1, 1] -> [1, 0, 1, 0] by axisSTRING
HIGHdocs/TestCoverage.md0input_shape: [1, 3, 32, 32] output_shape: [1, 3, 32, 32] pad_shape: [1, 1] -> [1, 0, 1, 0] by axisSTRING
HIGHonnx/backend/test/case/node/averagepool.py0input_shape: [1, 3, 28, 28] output_shape: [1, 3, 30, 30] pad_shape: [4, 4] -> [2, 2, 2, 2] by axisSTRING
HIGHonnx/backend/test/case/node/maxpool.py0input_shape: [1, 3, 28, 28] output_shape: [1, 3, 30, 30] pad_shape: [4, 4] -> [2, 2, 2, 2] by axisSTRING
HIGHonnx/backend/test/case/node/lppool.py0input_shape: [1, 3, 28, 28] output_shape: [1, 3, 30, 30] pad_shape: [4, 4] -> [2, 2, 2, 2] by axisSTRING
HIGHdocs/TestCoverage.md0input_shape: [1, 3, 28, 28] output_shape: [1, 3, 30, 30] pad_shape: [4, 4] -> [2, 2, 2, 2] by axisSTRING
HIGHonnx/backend/test/case/node/averagepool.py0input_shape: [1, 3, 32, 32] output_shape: [1, 3, 10, 10]STRING
HIGHonnx/backend/test/case/node/maxpool.py0input_shape: [1, 3, 32, 32] output_shape: [1, 3, 10, 10]STRING
HIGHonnx/backend/test/case/node/lppool.py0input_shape: [1, 3, 32, 32] output_shape: [1, 3, 10, 10]STRING
HIGHdocs/TestCoverage.md0input_shape: [1, 3, 32, 32] output_shape: [1, 3, 10, 10]STRING
HIGHonnx/backend/test/case/node/averagepool.py0input_shape: [1, 1, 4, 4, 4] output_shape: [1, 1, 2, 2, 2]STRING
HIGHonnx/backend/test/case/node/maxpool.py0input_shape: [1, 1, 4, 4, 4] output_shape: [1, 1, 2, 2, 2]STRING
HIGHonnx/backend/test/case/node/lppool.py0input_shape: [1, 1, 4, 4, 4] output_shape: [1, 1, 2, 2, 2]STRING
HIGHdocs/TestCoverage.md0input_shape: [1, 1, 4, 4, 4] output_shape: [1, 1, 2, 2, 2]STRING
HIGHonnx/backend/test/case/node/averagepool.py0input_shape: [1, 1, 2, 2] output_shape: [1, 1, 1, 1]STRING
HIGHdocs/TestCoverage.md0input_shape: [1, 1, 2, 2] output_shape: [1, 1, 1, 1]STRING
HIGHonnx/backend/test/case/node/maxpool.py0input_shape: [1, 1, 2, 2] output_shape: [1, 1, 1, 1]STRING
HIGHonnx/reference/ops/experimental/_op_list.py0loads the implemented for a specified operator. args: domain: domain op_type: operator type version: requested version cSTRING
HIGHonnx/reference/ops/aionnx_preview_training/_op_list.py0loads the implemented for a specified operator. args: domain: domain op_type: operator type version: requested version cSTRING
HIGHonnx/reference/ops/aionnx_preview/_op_list.py0loads the implemented for a specified operator. args: domain: domain op_type: operator type version: requested version cSTRING
HIGHonnx/reference/ops/aionnxml/_op_list.py0loads the implemented for a specified operator. args: domain: domain op_type: operator type version: requested version cSTRING
Deep Nesting97 hits · 96 pts
SeverityFileLineSnippetContext
LOWtools/check_namespace.py15CODE
LOWonnx/gen_proto.py41CODE
LOWonnx/compose.py91CODE
LOWonnx/compose.py446CODE
LOWonnx/compose.py569CODE
LOWonnx/compose.py221CODE
LOWonnx/numpy_helper.py321CODE
LOWonnx/numpy_helper.py400CODE
LOWonnx/numpy_helper.py562CODE
LOWonnx/helper.py86CODE
LOWonnx/helper.py365CODE
LOWonnx/helper.py508CODE
LOWonnx/helper.py570CODE
LOWonnx/helper.py608CODE
LOWonnx/helper.py787CODE
LOWonnx/helper.py850CODE
LOWonnx/helper.py993CODE
LOWonnx/helper.py1231CODE
LOWonnx/external_data_helper.py204CODE
LOWonnx/external_data_helper.py58CODE
LOWonnx/tools/replace_constants.py199CODE
LOWonnx/test/reference_evaluator_test.py214CODE
LOWonnx/test/backend_test.py37CODE
LOWonnx/test/shape_inference_test.py201CODE
LOWonnx/test/backend_reference_test.py28CODE
LOWonnx/test/compose_test.py489CODE
LOWonnx/test/compose_test.py621CODE
LOWonnx/test/model_container_test.py115CODE
LOW…st/version_converter/automatic_conversion_test_base.py44CODE
LOWonnx/backend/test/stat_coverage.py40CODE
LOWonnx/backend/test/stat_coverage.py152CODE
LOWonnx/backend/test/cmd_tools.py20CODE
LOWonnx/backend/test/runner/__init__.py123CODE
LOWonnx/backend/test/runner/__init__.py254CODE
LOWonnx/backend/test/runner/__init__.py341CODE
LOWonnx/backend/test/runner/__init__.py504CODE
LOWonnx/backend/test/runner/__init__.py346CODE
LOWonnx/backend/test/loader/__init__.py16CODE
LOWonnx/backend/test/case/node/cast.py27CODE
LOWonnx/backend/test/case/node/cast.py321CODE
LOWonnx/backend/test/case/node/__init__.py37CODE
LOWonnx/backend/test/case/node/__init__.py264CODE
LOWonnx/backend/test/case/node/scatternd.py13CODE
LOWonnx/backend/test/case/node/scatterelements.py19CODE
LOWonnx/backend/test/case/node/castlike.py23CODE
LOWonnx/backend/test/report/coverage.py147CODE
LOWonnx/reference/op_run.py157CODE
LOWonnx/reference/op_run.py232CODE
LOWonnx/reference/op_run.py387CODE
LOWonnx/reference/reference_evaluator.py195CODE
LOWonnx/reference/reference_evaluator.py395CODE
LOWonnx/reference/ops_optimized/op_conv_optimized.py50CODE
LOWonnx/reference/ops/op_scatter_elements.py11CODE
LOWonnx/reference/ops/op_constant.py71CODE
LOWonnx/reference/ops/op_roi_align.py28CODE
LOWonnx/reference/ops/op_roi_align.py117CODE
LOWonnx/reference/ops/op_grid_sample.py286CODE
LOWonnx/reference/ops/op_sequence_insert.py41CODE
LOWonnx/reference/ops/op_conv.py11CODE
LOWonnx/reference/ops/_op_common_pool.py64CODE
37 more matches not shown…
Over-Commented Block87 hits · 84 pts
SeverityFileLineSnippetContext
LOW.pre-commit-config.yaml1# Copyright (c) ONNX Project ContributorsCOMMENT
LOW.lintrunner.toml1# Configuration for lintrunner https://github.com/suo/lintrunnerCOMMENT
LOW.lintrunner.toml21#COMMENT
LOWonnx/onnx_pb.h1// Copyright (c) ONNX Project ContributorsCOMMENT
LOWonnx/onnx_pb.h21#define ONNX_EXPORT __attribute__((__visibility__("default")))COMMENT
LOWonnx/onnx_pb.h41//COMMENT
LOWonnx/checker.h1// Copyright (c) ONNX Project ContributorsCOMMENT
LOWonnx/onnx-operators_pb.h1// Copyright (c) ONNX Project ContributorsCOMMENT
LOWonnx/proto_utils.h1// Copyright (c) ONNX Project ContributorsCOMMENT
LOWonnx/version_converter/convert.h1// Copyright (c) ONNX Project ContributorsCOMMENT
LOWonnx/version_converter/convert.h21#include "onnx/version_converter/adapters/axes_attribute_to_input.h"COMMENT
LOWonnx/version_converter/convert.h41#include "onnx/version_converter/adapters/range_27_26.h"COMMENT
LOWonnx/version_converter/BaseConverter.h1// Copyright (c) ONNX Project ContributorsCOMMENT
LOWonnx/version_converter/BaseConverter.h41 // adapter_lookup should be called in convert_version when the user wouldCOMMENT
LOWonnx/version_converter/adapters/q_dq_21_20.h1// Copyright (c) ONNX Project ContributorsCOMMENT
LOWonnx/version_converter/adapters/type_restriction.h1// Copyright (c) ONNX Project ContributorsCOMMENT
LOWonnx/version_converter/adapters/adapter.h1// Copyright (c) ONNX Project ContributorsCOMMENT
LOW…_converter/adapters/broadcast_backward_compatibility.h1// Copyright (c) ONNX Project ContributorsCOMMENT
LOWonnx/version_converter/adapters/range_27_26.h1// Copyright (c) ONNX Project ContributorsCOMMENT
LOWonnx/version_converter/adapters/upsample_9_8.h1// Copyright (c) ONNX Project ContributorsCOMMENT
LOWonnx/version_converter/adapters/scatter_16_15.h1// Copyright (c) ONNX Project ContributorsCOMMENT
LOW…nx/version_converter/adapters/extend_supported_types.h1// Copyright (c) ONNX Project ContributorsCOMMENT
LOWonnx/version_converter/adapters/transformers.h1// Copyright (c) ONNX Project ContributorsCOMMENT
LOWonnx/tools/__init__.py1# Copyright (c) ONNX Project ContributorsCOMMENT
LOWonnx/frontend/__init__.py1# Copyright (c) ONNX Project ContributorsCOMMENT
LOWonnx/test/function_test.py21 ),COMMENT
LOWonnx/test/function_test.py41 # | | | |COMMENT
LOWonnx/test/shape_inference_test.py6681 )COMMENT
LOWonnx/bin/__init__.py1# Copyright (c) ONNX Project ContributorsCOMMENT
LOWonnx/shape_inference/implementation.h1// Copyright (c) ONNX Project ContributorsCOMMENT
LOWonnx/backend/__init__.py1# Copyright (c) ONNX Project ContributorsCOMMENT
LOWonnx/backend/test/case/node/unique.py141 )COMMENT
LOWonnx/backend/test/case/node/resize.py401 )COMMENT
LOWonnx/backend/test/case/node/resize.py541COMMENT
LOWonnx/backend/test/case/node/resize.py641 # 3.96160918 4.50364964 4.75976814]COMMENT
LOWonnx/backend/test/case/node/resize.py741 # [ 2.625 3.03125 3.625 4.125 4.625 5.21875 5.625COMMENT
LOWonnx/backend/test/case/node/trilu.py141 outputs=["y"],COMMENT
LOWonnx/backend/test/case/node/trilu.py201 x = np.random.randint(10, size=(3, 1, 5)).astype(np.int64)COMMENT
LOWonnx/backend/test/case/node/trilu.py361COMMENT
LOWonnx/backend/test/case/node/trilu.py421 x = np.random.randint(10, size=(3, 1, 5)).astype(np.int64)COMMENT
LOWonnx/common/file_utils.h1// Copyright (c) ONNX Project ContributorsCOMMENT
LOWonnx/common/path.h1// Copyright (c) ONNX Project ContributorsCOMMENT
LOWonnx/common/ir.h1// Copyright (c) ONNX Project ContributorsCOMMENT
LOWonnx/common/ir.h21#include <unordered_map>COMMENT
LOWonnx/common/ir.h561COMMENT
LOWonnx/common/ir.h621COMMENT
LOWonnx/common/ir.h661 //COMMENT
LOWonnx/common/ir.h721 graph_node_list_iterator reverseIterator();COMMENT
LOWonnx/common/scoped_resource.h1// Copyright (c) ONNX Project ContributorsCOMMENT
LOWonnx/common/graph_node_list.h1// Copyright (c) ONNX Project ContributorsCOMMENT
LOWonnx/common/graph_node_list.h21// things, you will have to do some refactoring.COMMENT
LOWonnx/common/common.h21COMMENT
LOWonnx/common/safe_math.h1// Copyright (c) ONNX Project ContributorsCOMMENT
LOWonnx/common/proto_util.h1// Copyright (c) ONNX Project ContributorsCOMMENT
LOWonnx/common/tensor.h1// Copyright (c) ONNX Project ContributorsCOMMENT
LOWonnx/common/array_ref.h1// Copyright (c) ONNX Project ContributorsCOMMENT
LOWonnx/common/array_ref.h21// removed a bunch of slice variants for simplicity...COMMENT
LOWonnx/common/model_helpers.h1// Copyright (c) ONNX Project ContributorsCOMMENT
LOWonnx/inliner/inliner.h1// Copyright (c) ONNX Project ContributorsCOMMENT
LOWonnx/reference/ops/op_attention.py161 )COMMENT
27 more matches not shown…
Decorative Section Separators12 hits · 36 pts
SeverityFileLineSnippetContext
MEDIUMonnx/backend/test/case/node/gridsample.py303 # ============================================================================COMMENT
MEDIUMonnx/backend/test/case/node/linear_attention.py59 # ------------------------------------------------------------------COMMENT
MEDIUMonnx/backend/test/case/node/linear_attention.py61 # ------------------------------------------------------------------COMMENT
MEDIUMonnx/backend/test/case/node/linear_attention.py260 # ------------------------------------------------------------------COMMENT
MEDIUMonnx/backend/test/case/node/linear_attention.py262 # ------------------------------------------------------------------COMMENT
MEDIUMonnx/backend/test/case/node/linear_attention.py329 # ------------------------------------------------------------------COMMENT
MEDIUMonnx/backend/test/case/node/linear_attention.py331 # ------------------------------------------------------------------COMMENT
MEDIUMonnx/backend/test/case/node/linear_attention.py437 # ------------------------------------------------------------------COMMENT
MEDIUMonnx/backend/test/case/node/linear_attention.py439 # ------------------------------------------------------------------COMMENT
MEDIUMonnx/backend/test/case/node/linear_attention.py509 # ------------------------------------------------------------------COMMENT
MEDIUMonnx/backend/test/case/node/linear_attention.py511 # ------------------------------------------------------------------COMMENT
MEDIUMdocs/TestCoverage.md11881# ============================================================================COMMENT
Self-Referential Comments16 hits · 34 pts
SeverityFileLineSnippetContext
MEDIUMonnx/gen_proto.py214 # This file is generated by 'gen_proto.py'. DO NOT EDIT!COMMENT
MEDIUMonnx/numpy_helper.py130 # Create a 1D copyCOMMENT
MEDIUMonnx/numpy_helper.py174 # Create a 1D copyCOMMENT
MEDIUMonnx/test/version_converter_test.py2518 # Create a model with external dataCOMMENT
MEDIUMonnx/test/external_data_test.py949 # Create a target file and replace external data with a symlink to itCOMMENT
MEDIUMonnx/test/external_data_test.py999 # Create a model directory with a real subdir for savingCOMMENT
MEDIUMonnx/test/external_data_test.py1045 # Create a hardlink to the external data fileCOMMENT
MEDIUMonnx/test/shape_inference_test.py6300 # Create a simple If node where the 'then' subgraph adds to the current value, and the 'else' subgraphSTRING
MEDIUMonnx/test/shape_inference_test.py6322 # Create a simple If node where the 'then' subgraph adds to the current value, and the 'else' subgraphSTRING
MEDIUMonnx/test/shape_inference_test.py6342 # Create a simple If node where the 'then' subgraph adds to the current value, and the 'else' subgraphSTRING
MEDIUMonnx/test/shape_inference_test.py8155 # Create a TensorProto with incorrect data type for `delta`.STRING
MEDIUMonnx/test/shape_inference_test.py8181 # Create a TensorProto with empty raw data for `delta`.STRING
MEDIUMonnx/test/training_tool_test.py69 # Create a model with both inference and training information.COMMENT
MEDIUMonnx/backend/test/case/node/image_decoder.py16 # Create an empty RGB imageCOMMENT
MEDIUMonnx/backend/test/case/node/_image_decoder_data.py5# This file contains freeze NumPy array for ImageDecoder backend test's input/outputCOMMENT
MEDIUMonnx/reference/ops/op_pool_common.py176 """This function is used to calculate the pooling result of a padded tensorSTRING
AI Slop Vocabulary10 hits · 30 pts
SeverityFileLineSnippetContext
MEDIUMpyproject.toml275 "PERF203", # try-except in loop is unavoidable in the version-converter harnessCODE
MEDIUMonnx/fuzz/make_seed_corpus.py187# ModelProto with no trailing bytes: the harness's raw path passes the fullSTRING
MEDIUMonnx/fuzz/make_seed_corpus.py334# harness's raw path: a 4-byte big-endian length prefix for m1's serializedCOMMENT
MEDIUMonnx/fuzz/make_seed_corpus.py337# The harness derives the io_map from m1's output names and m2's input names,COMMENT
MEDIUMonnx/fuzz/make_seed_corpus.py518 # serialized ModelProto with no trailing bytes, so the harness's raw pathCOMMENT
MEDIUMonnx/reference/ops/op_lp_pool.py24 # utilize AvgPool the same fashion Pytorch does. Note that there is a difference in computation.COMMENT
MEDIUM.github/workflows/fuzz.yml8# (see google/oss-fuzz#15382) — it exists to catch harness regressionsCOMMENT
MEDIUM.github/workflows/fuzz.yml9# (import errors, API drift, a harness file going missing) at PR timeCOMMENT
MEDIUM.github/workflows/fuzz.yml14# for the harness/toggle-byte details.COMMENT
MEDIUM.github/workflows/fuzz.yml32 - cron: '0 6 * * *' # nightly: run each harness for longer than the PR smoke testCODE
AI Structural Patterns26 hits · 26 pts
SeverityFileLineSnippetContext
LOWonnx/compose.py300CODE
LOWonnx/compose.py446CODE
LOWonnx/compose.py569CODE
LOWonnx/test/compose_test.py740CODE
LOW…st/version_converter/automatic_conversion_test_base.py44CODE
LOWonnx/reference/ops/op_attention.py79CODE
LOWonnx/reference/ops/op_attention.py304CODE
LOWonnx/reference/ops/op_roi_align.py12CODE
LOWonnx/reference/ops/op_linear_attention.py23CODE
LOWonnx/reference/ops/op_scan.py114CODE
LOWonnx/reference/ops/op_gru.py72CODE
LOWonnx/reference/ops/op_lstm.py76CODE
LOWonnx/reference/ops/op_lp_pool.py12CODE
LOWonnx/reference/ops/op_conv_integer.py13CODE
LOWonnx/reference/ops/op_rnn.py94CODE
LOWonnx/reference/ops/op_deform_conv.py149CODE
LOWonnx/reference/ops/op_attribute_has_value.py12CODE
LOWonnx/reference/ops/op_resize.py580CODE
LOWonnx/reference/ops/op_tfidf_vectorizer.py237CODE
LOWonnx/reference/ops/op_tfidf_vectorizer.py300CODE
LOWonnx/reference/ops/op_conv_transpose.py13CODE
LOW…/reference/ops/aionnxml/op_tree_ensemble_classifier.py19CODE
LOWonnx/reference/ops/aionnxml/op_svm_classifier.py223CODE
LOW…x/reference/ops/aionnxml/op_tree_ensemble_regressor.py15CODE
LOWonnx/reference/ops/aionnxml/op_svm_regressor.py13CODE
LOWonnx/reference/ops/aionnxml/op_label_encoder.py12CODE
Docstring Block Structure4 hits · 20 pts
SeverityFileLineSnippetContext
HIGHonnx/serialization.py64Get a serializer for a format. Args: fmt: The format to get a serializer for. Returns: STRING
HIGHonnx/reference/op_run.py388Calls method ``_run``, catches exceptions, displays a longer error message. Args: *args: inSTRING
HIGHonnx/reference/reference_evaluator.py557Executes the onnx model. Args: output_names: requested outputs by names, None for all fSTRING
HIGHonnx/reference/ops/op_resize.py135Return the n nearest indexes to x among `[0, limit)`, prefer the indexes smaller than x. As a result, the ratio STRING
Excessive Try-Catch Wrapping17 hits · 19 pts
SeverityFileLineSnippetContext
LOWonnx/test/reference_evaluator_test.py266 except Exception as e:STRING
LOWonnx/backend/test/runner/__init__.py49 except Exception: # noqa: PERF203CODE
LOWonnx/backend/test/runner/__init__.py249 except Exception as e:CODE
LOWonnx/fuzz/fuzz_version_converter.py40 except Exception:CODE
LOWonnx/fuzz/fuzz_version_converter.py46 except Exception:CODE
MEDIUMonnx/fuzz/fuzz_version_converter.py37def TestOneInput(data):CODE
LOWonnx/fuzz/fuzz_compose.py133 except Exception:CODE
LOWonnx/fuzz/fuzz_parser.py17 except Exception:CODE
MEDIUMonnx/fuzz/fuzz_parser.py13def TestOneInput(data):CODE
LOWonnx/fuzz/fuzz_model_loader.py20 except Exception:CODE
MEDIUMonnx/fuzz/fuzz_model_loader.py13def TestOneInput(data):CODE
LOWonnx/fuzz/fuzz_shape_inference.py175 except Exception:CODE
LOWonnx/fuzz/fuzz_checker.py16 except Exception:CODE
MEDIUMonnx/fuzz/fuzz_checker.py13def TestOneInput(data):CODE
LOWdocs/docsgen/source/intro/python.md1168 except Exception as e:STRING
LOWdocs/docsgen/source/intro/python.md1585 except Exception as e:STRING
LOWdocs/docsgen/source/intro/python.md1592 except Exception as e:STRING
Modern Structural Boilerplate19 hits · 19 pts
SeverityFileLineSnippetContext
LOWonnx/version.py24__all__ = ["version", "git_version"]CODE
LOWonnx/__init__.py7__all__ = [CODE
LOWonnx/helper.py361def set_model_props(model: ModelProto, dict_value: dict[str, str]) -> None:CODE
LOWonnx/serialization.py9__all__ = [CODE
LOWonnx/checker.py8__all__ = [CODE
LOWonnx/tools/update_model_dims.py62 def update_dim(tensor: ValueInfoProto, dim: Any, j: int, name: str) -> None:CODE
LOWonnx/backend/test/__init__.py6__all__ = ["BackendTest"]CODE
LOWonnx/reference/__init__.py6__all__ = ["ReferenceEvaluator"]CODE
LOWonnx/reference/ops_optimized/__init__.py10__all__ = ["Conv", "optimized_operators"]CODE
LOWonnx/reference/ops/__init__.py6__all__ = ["load_op"]CODE
LOWonnx/reference/ops/_op_list.py15__all__ = [CODE
LOWonnx/reference/ops/experimental/__init__.py6__all__ = ["load_op"]CODE
LOWonnx/reference/ops/aionnx_preview_training/__init__.py6__all__ = ["load_op", "OpRunTraining"]CODE
LOWonnx/reference/ops/aionnx_preview_training/_op_list.py6__all__ = [CODE
LOWonnx/reference/ops/aionnx_preview/__init__.py6__all__ = ["load_op"]CODE
LOWonnx/reference/ops/aionnx_preview/_op_list.py6__all__ = [CODE
LOWonnx/reference/ops/aionnxml/__init__.py4__all__ = ["load_op"]CODE
LOWonnx/reference/ops/aionnxml/_op_list.py8__all__ = [CODE
LOWonnx/defs/__init__.py6__all__ = [CODE
Structural Annotation Overuse8 hits · 15 pts
SeverityFileLineSnippetContext
LOWonnx/reference/ops/op_causal_conv_with_state.py41 # Step 1: build the left-padded input (B, C, L + k - 1).COMMENT
LOWonnx/reference/ops/op_causal_conv_with_state.py48 # Step 2: depthwise Conv1d (group = channels, valid padding).COMMENT
LOWonnx/reference/ops/op_causal_conv_with_state.py61 # Step 3: optional fused SiLU/Swish activation.COMMENT
LOWonnx/reference/ops/op_causal_conv_with_state.py68 # Step 4: present_state = last (k - 1) positions of the padded input.COMMENT
LOWdocs/AddNewOp.md43### Step 1: Proposing a new operator/functionCOMMENT
LOWdocs/AddNewOp.md61### Step 2: Submit PRCOMMENT
LOWdocs/AddNewOp.md114### Step 3: PR Review by Operators SIGCOMMENT
LOWdocs/AddNewOp.md122### Step 4: ONNX releaseCOMMENT
Verbosity Indicators4 hits · 9 pts
SeverityFileLineSnippetContext
LOWonnx/reference/ops/op_causal_conv_with_state.py41 # Step 1: build the left-padded input (B, C, L + k - 1).COMMENT
LOWonnx/reference/ops/op_causal_conv_with_state.py48 # Step 2: depthwise Conv1d (group = channels, valid padding).COMMENT
LOWonnx/reference/ops/op_causal_conv_with_state.py61 # Step 3: optional fused SiLU/Swish activation.COMMENT
LOWonnx/reference/ops/op_causal_conv_with_state.py68 # Step 4: present_state = last (k - 1) positions of the padded input.COMMENT
Redundant / Tautological Comments5 hits · 8 pts
SeverityFileLineSnippetContext
LOWonnx/test/training_tool_test.py71 # Check if the inference-only part is correct.COMMENT
LOWonnx/test/basic_test.py208 # Check if the version is correct.COMMENT
LOWonnx/test/basic_test.py212 # Check if the __repr__ methods work without errorCOMMENT
LOWonnx/test/compose_test.py482 # Check if all inputs are prefixed even if input is not connected to node. e.g., 'unused_input'.STRING
LOWonnx/reference/ops/op_string_split.py30 # Add padding to lists that are shorter than the maximum lengthCOMMENT
Cross-Language Confusion1 hit · 8 pts
SeverityFileLineSnippetContext
HIGHonnx/reference/op_run.py269 # default value is undefined, it depends on the inputsCOMMENT
AI Response Leakage1 hit · 8 pts
SeverityFileLineSnippetContext
HIGHonnx/reference/ops/op_grid_sample.py311 # In this implementation, we took the latter approach.COMMENT
Modern AI Meta-Vocabulary1 hit · 2 pts
SeverityFileLineSnippetContext
MEDIUMpyproject.toml273 "PLR2004", # Magic numbers are fine in low-level fuzz scaffoldingCODE
Fake / Example Data1 hit · 1 pts
SeverityFileLineSnippetContext
LOWdocs/docsgen/source/_static/diff2html-ui-slim.min.js1!function(e,n){if("object"==typeof exports&&"object"==typeof module)module.exports=n();else if("function"==typeof defineCODE
Overly Generic Function Names1 hit · 0 pts
SeverityFileLineSnippetContext
LOWonnx/test/external_data_test.py827 def test_function(self) -> None:CODE