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,375 GitHub stars. SynthScan v2.0 examined 173,942 lines of code across 837 source files, recording 2239 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-08-28
Last Push
21.4K
Stars
Python
Language
173.9K
Lines of Code
837
Files
2.2K
Pattern Hits
2026-08-29
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 52MEDIUM 43LOW 2144

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

Hyper-Verbose Identifiers1008 hits · 749 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.py112def _validate_external_data_file_bounds(CODE
LOWonnx/external_data_helper.py147def load_external_data_for_tensor(tensor: TensorProto, base_dir: str) -> None:CODE
LOWonnx/external_data_helper.py163def load_external_data_for_model(model: ModelProto, base_dir: str) -> None:CODE
LOWonnx/external_data_helper.py207def convert_model_to_external_data(CODE
LOWonnx/external_data_helper.py265def convert_model_from_external_data(model: ModelProto) -> None:CODE
LOWonnx/external_data_helper.py331def _recursive_attribute_processor(CODE
LOWonnx/external_data_helper.py342def _get_initializer_tensors_from_graph(graph: GraphProto, /) -> Iterable[TensorProto]:CODE
LOWonnx/external_data_helper.py357def _get_attribute_tensors_from_graph(CODE
LOWonnx/external_data_helper.py393def remove_external_data_field(tensor: TensorProto, field_key: str) -> None:CODE
LOWonnx/external_data_helper.py407def 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/backend/test/stat_coverage.py256def gen_overall_test_coverage(CODE
LOWonnx/backend/test/case/model/gradient.py16 def export_gradient_scalar_add() -> None:CODE
LOWonnx/backend/test/case/model/gradient.py61 def export_gradient_scalar_add_and_mul() -> None:CODE
LOWonnx/backend/test/case/node/globalmaxpool.py26 def export_globalmaxpool_precomputed() -> None:CODE
LOW…x/backend/test/case/node/softmax_cross_entropy_loss.py101 def export_softmaxcrossentropy_none() -> None:CODE
LOW…x/backend/test/case/node/softmax_cross_entropy_loss.py125 def export_softmaxcrossentropy_none_log_prob() -> None:CODE
LOW…x/backend/test/case/node/softmax_cross_entropy_loss.py156 def export_softmaxcrossentropy_none_weights() -> None:CODE
LOW…x/backend/test/case/node/softmax_cross_entropy_loss.py186 def export_softmaxcrossentropy_none_weights_log_prob() -> None:CODE
LOW…x/backend/test/case/node/softmax_cross_entropy_loss.py218 def export_softmaxcrossentropy_sum() -> None:CODE
LOW…x/backend/test/case/node/softmax_cross_entropy_loss.py242 def export_softmaxcrossentropy_sum_log_prob() -> None:CODE
LOW…x/backend/test/case/node/softmax_cross_entropy_loss.py273 def export_softmaxcrossentropy_mean() -> None:CODE
LOW…x/backend/test/case/node/softmax_cross_entropy_loss.py297 def export_softmaxcrossentropy_mean_log_prob() -> None:CODE
LOW…x/backend/test/case/node/softmax_cross_entropy_loss.py379 def export_softmaxcrossentropy_mean_weights() -> None:CODE
LOW…x/backend/test/case/node/softmax_cross_entropy_loss.py409 def export_softmaxcrossentropy_mean_weights_log_prob() -> None:CODE
LOW…x/backend/test/case/node/softmax_cross_entropy_loss.py441 def export_softmaxcrossentropy_mean_weights_ii() -> None:CODE
LOW…x/backend/test/case/node/softmax_cross_entropy_loss.py474 def export_softmaxcrossentropy_mean_weights_ii_log_prob() -> None:CODE
LOW…x/backend/test/case/node/softmax_cross_entropy_loss.py509 def export_softmaxcrossentropy_mean_no_weights_ii() -> None:CODE
LOW…x/backend/test/case/node/softmax_cross_entropy_loss.py538 def export_softmaxcrossentropy_mean_no_weights_ii_log_prob() -> None:CODE
LOWonnx/backend/test/case/node/max.py51 def export_max_all_numeric_types() -> None:CODE
LOWonnx/backend/test/case/node/reducesum.py89 def export_default_axes_keepdims() -> None:CODE
LOWonnx/backend/test/case/node/reducesum.py124 def export_negative_axes_keepdims() -> None:CODE
LOWonnx/backend/test/case/node/reducesum.py161 def export_empty_axes_input_noop() -> None:CODE
LOWonnx/backend/test/case/node/reducesum.py225 def export_non_reduced_axis_zero() -> None:CODE
LOWonnx/backend/test/case/node/sequence_map.py263 def export_sequence_map_extract_shapes(): # type: () -> NoneCODE
LOWonnx/backend/test/case/node/gather.py72 def export_gather_negative_indices() -> None:CODE
LOWonnx/backend/test/case/node/attention.py70 def export_attention_diff_head_sizes() -> None:CODE
LOWonnx/backend/test/case/node/attention.py112 def export_attention_gqa_scaled() -> None:CODE
LOWonnx/backend/test/case/node/attention.py136 def export_attention_diff_head_sizes_scaled() -> None:CODE
LOWonnx/backend/test/case/node/attention.py183 def export_attention_gqa_causal() -> None:CODE
LOWonnx/backend/test/case/node/attention.py206 def export_attention_diff_head_sizes_causal() -> None:CODE
LOWonnx/backend/test/case/node/attention.py234 def export_attention_attn_mask() -> None:CODE
LOWonnx/backend/test/case/node/attention.py378 def export_attention_attn_mask_bool() -> None:CODE
948 more matches not shown…
Unused Imports868 hits · 734 pts
SeverityFileLineSnippetContext
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
LOWonnx/numpy_helper.py4CODE
808 more matches not shown…
Cross-File Repetition46 hits · 230 pts
SeverityFileLineSnippetContext
HIGHonnx/backend/test/case/node/flexattention.py0test flexattention with different head sizes for q/k vs v.STRING
HIGHdocs/TestCoverage.md0test flexattention with different head sizes for q/k vs v.STRING
HIGHtests/python/shape_inference_test.py0test flexattention 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/backend/test/case/node/gru.py0run a forward pass of the rnn. assumes that the num_directions axis has been squeezed out of the inputs. (and returns y,STRING
HIGHonnx/reference/ops/op_gru.py0run a forward pass of the rnn. assumes that the num_directions axis has been squeezed out of the inputs. (and returns y,STRING
HIGHonnx/backend/test/case/node/rnn.py0run a forward pass of the rnn. assumes that the num_directions axis has been squeezed out of the inputs. (and returns y,STRING
HIGHonnx/reference/ops/op_rnn.py0run a forward pass of the rnn. assumes that the num_directions axis has been squeezed out of the inputs. (and returns y,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
HIGHtests/python/checker_test.py0<ir_version: 8, opset_import: [ "" : 17, "local" : 1 ]> agraph (float[n] x) => (float[n] y) { y = local.foo (x) } <opsetSTRING
HIGHtests/python/inliner_test.py0<ir_version: 8, opset_import: [ "" : 17, "local" : 1 ]> agraph (float[n] x) => (float[n] y) { y = local.foo (x) } <opsetSTRING
HIGHtests/python/shape_inference_test.py0<ir_version: 8, opset_import: [ "" : 17, "local" : 1 ]> agraph (float[n] x) => (float[n] y) { y = local.foo (x) } <opsetSTRING
Deep Nesting99 hits · 98 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.py207CODE
LOWonnx/external_data_helper.py61CODE
LOWonnx/tools/replace_constants.py199CODE
LOWonnx/backend/test/stat_coverage.py40CODE
LOWonnx/backend/test/stat_coverage.py152CODE
LOWonnx/backend/test/cmd_tools.py18CODE
LOWonnx/backend/test/runner/__init__.py123CODE
LOWonnx/backend/test/runner/__init__.py254CODE
LOWonnx/backend/test/runner/__init__.py341CODE
LOWonnx/backend/test/runner/__init__.py517CODE
LOWonnx/backend/test/runner/__init__.py367CODE
LOWonnx/backend/test/loader/__init__.py25CODE
LOWonnx/backend/test/case/node/cast.py27CODE
LOWonnx/backend/test/case/node/cast.py321CODE
LOWonnx/backend/test/case/node/__init__.py34CODE
LOWonnx/backend/test/case/node/__init__.py261CODE
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.py240CODE
LOWonnx/reference/op_run.py395CODE
LOWonnx/reference/shape_annotation_checker.py59CODE
LOWonnx/reference/reference_evaluator.py209CODE
LOWonnx/reference/reference_evaluator.py411CODE
LOWonnx/reference/reference_evaluator.py579CODE
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
LOWonnx/reference/ops/_op_common_pool.py119CODE
LOWonnx/reference/ops/op_affine_grid.py11CODE
LOWonnx/reference/ops/op_non_max_suppression.py176CODE
LOWonnx/reference/ops/op_pool_common.py163CODE
LOWonnx/reference/ops/op_deform_conv.py12CODE
LOWonnx/reference/ops/op_prelu.py12CODE
39 more matches not shown…
Over-Commented Block92 hits · 90 pts
SeverityFileLineSnippetContext
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/Attention_25_24.h"COMMENT
LOWonnx/version_converter/convert.h41#include "onnx/version_converter/adapters/q_dq_21_20.h"COMMENT
LOWonnx/version_converter/BaseConverter.h1// Copyright (c) ONNX Project ContributorsCOMMENT
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/bin/__init__.py1# Copyright (c) ONNX Project ContributorsCOMMENT
LOWonnx/shape_inference/implementation.h1// Copyright (c) ONNX Project ContributorsCOMMENT
LOWonnx/shape_inference/implementation.h541 const std::unordered_map<std::string, int>& func_opset_imports,COMMENT
LOWonnx/backend/__init__.py1# Copyright (c) ONNX Project ContributorsCOMMENT
LOWonnx/backend/test/case/node/unique.py161 # print(y)COMMENT
LOWonnx/backend/test/case/node/__init__.py241 in {"ai.onnx.training version", "ai.onnx.preview.training"}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.h641 // with an input which is topologically before the current node.COMMENT
LOWonnx/common/ir.h661 // Replace the input of 'this' at position 'i' withCOMMENT
LOWonnx/common/ir.h701 // and unattached: %5 = h(%1)COMMENT
LOWonnx/common/ir.h741 removeFromList();COMMENT
LOWonnx/common/ir.h761 //COMMENT
LOWonnx/common/ir.h961 // having corner cases where the list is empty.COMMENT
LOWonnx/common/ir.h1001 // (called from Attributes<Node> after set/removeAttribute/copyAttributes)COMMENT
LOWonnx/common/scoped_resource.h1// Copyright (c) ONNX Project ContributorsCOMMENT
LOWonnx/common/scoped_resource.h21COMMENT
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
32 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.md12405# ============================================================================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/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
MEDIUMtests/python/version_converter_test.py2580 # Create a model with external dataCOMMENT
MEDIUMtests/python/external_data_test.py950 # Create a target file and replace external data with a symlink to itCOMMENT
MEDIUMtests/python/external_data_test.py1000 # Create a model directory with a real subdir for savingCOMMENT
MEDIUMtests/python/external_data_test.py1046 # Create a hardlink to the external data fileCOMMENT
MEDIUMtests/python/shape_inference_test.py6406 # Create a simple If node where the 'then' subgraph adds to the current value, and the 'else' subgraphSTRING
MEDIUMtests/python/shape_inference_test.py6428 # Create a simple If node where the 'then' subgraph adds to the current value, and the 'else' subgraphSTRING
MEDIUMtests/python/shape_inference_test.py6448 # Create a simple If node where the 'then' subgraph adds to the current value, and the 'else' subgraphSTRING
MEDIUMtests/python/shape_inference_test.py8326 # Create a TensorProto with incorrect data type for `delta`.STRING
MEDIUMtests/python/shape_inference_test.py8352 # Create a TensorProto with empty raw data for `delta`.STRING
MEDIUMtests/python/training_tool_test.py69 # Create a model with both inference and training information.COMMENT
AI Slop Vocabulary10 hits · 30 pts
SeverityFileLineSnippetContext
MEDIUMpyproject.toml286 "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/reference/ops/op_attention.py120CODE
LOWonnx/reference/ops/op_attention.py394CODE
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.py136CODE
LOWonnx/reference/ops/op_lstm.py147CODE
LOWonnx/reference/ops/op_lp_pool.py12CODE
LOWonnx/reference/ops/op_conv_integer.py13CODE
LOWonnx/reference/ops/op_rnn.py104CODE
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
LOWtests/python/compose_test.py740CODE
LOW…on/version_converter/automatic_conversion_test_base.py44CODE
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.py396Calls method ``_run``, catches exceptions, displays a longer error message. Args: *args: inSTRING
HIGHonnx/reference/reference_evaluator.py588Executes 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/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
LOWtests/python/reference_evaluator_test.py260 except Exception as e:STRING
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.md113### Step 3: PR Review by Operators SIGCOMMENT
LOWdocs/AddNewOp.md121### 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/reference/ops/op_string_split.py30 # Add padding to lists that are shorter than the maximum lengthCOMMENT
LOWtests/python/training_tool_test.py71 # Check if the inference-only part is correct.COMMENT
LOWtests/python/basic_test.py208 # Check if the version is correct.COMMENT
LOWtests/python/basic_test.py212 # Check if the __repr__ methods work without errorCOMMENT
LOWtests/python/compose_test.py482 # Check if all inputs are prefixed even if input is not connected to node. e.g., 'unused_input'.STRING
Cross-Language Confusion1 hit · 8 pts
SeverityFileLineSnippetContext
HIGHonnx/reference/op_run.py277 # 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.toml284 "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
LOWtests/python/external_data_test.py828 def test_function(self) -> None:CODE