Repository Analysis

immunant/c2rust

Migrate C code to Rust

3.5 Likely human-written View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of immunant/c2rust, a Rust project with 4,753 GitHub stars. SynthScan v2.0 examined 263,965 lines of code across 1289 source files, recording 682 pattern matches distributed across 17 syntactic categories. The overall adjusted score of 3.5 places this repository in the Likely human-written 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).

3.5
Adjusted Score
3.5
Raw Score
100%
Time Factor
2026-07-14
Last Push
4.8K
Stars
Rust
Language
264.0K
Lines of Code
1.3K
Files
682
Pattern Hits
2026-07-14
Scan Date
0.04
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

Longitudinal tracking requires multiple scan runs. Once this repository is re-scanned after new commits land, this chart will visualise how the synthetic code signal evolves over time — enabling you to detect whether AI authorship is growing, stabilising, or being actively corrected by human engineers.

No multi-scan history yet — run the scanner again to build trend data.

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 1HIGH 45MEDIUM 28LOW 608

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 682 distinct pattern matches across 17 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.

Over-Commented Block368 hits · 358 pts
SeverityFileLineSnippetContext
LOWanalysis/runtime/src/handlers.rs61}COMMENT
LOWanalysis/runtime/src/runtime/global_runtime.rs21 /// as it depends on [`super::FINISHED`], which is also a global.COMMENT
LOWanalysis/runtime/src/runtime/scoped_runtime.rs161COMMENT
LOWanalysis/tests/misc/src/pointers.rs21 fn free(__ptr: *mut libc::c_void);COMMENT
LOWanalysis/tests/lighttpd-minimal/src/main.rs1141 // );COMMENT
LOWc2rust-analyze/tests/filecheck/fixed.rs1use std::ptr;COMMENT
LOWc2rust-analyze/tests/filecheck/test_attrs.rs1#![feature(register_tool)]COMMENT
LOWc2rust-analyze/tests/filecheck/call1.rs1// With a naive iteration order, reaching a fixpoint used to take 3 iterations. By following aCOMMENT
LOWc2rust-analyze/tests/filecheck/non_null_rewrites.rs161 //COMMENT
LOWc2rust-analyze/tests/filecheck/non_null_rewrites.rs181 //COMMENT
LOWc2rust-analyze/tests/filecheck/fields.rs1// CHECK-LABEL: === ADT Metadata ===COMMENT
LOWc2rust-analyze/tests/filecheck/fields.rs41COMMENT
LOWc2rust-analyze/tests/filecheck/fields.rs81// CHECK-DAG: pub struct Data<'d,'h0,'h1,'h2> {COMMENT
LOWc2rust-analyze/tests/filecheck/trivial.rs1use std::cell::{Cell, RefCell};COMMENT
LOWc2rust-analyze/tests/filecheck/call_cast.rs1#![feature(register_tool)]COMMENT
LOWc2rust-analyze/tests/filecheck/alias3.rs1use std::ptr;COMMENT
LOWc2rust-analyze/tests/filecheck/alloc.rs1#![feature(extern_types)]COMMENT
LOWc2rust-analyze/tests/filecheck/unrewritten_calls.rs21// CHECK-LABEL: fn good2<'h0,'h1>(x: &'h0 mut (i32)) -> &'h1 (i32)COMMENT
LOWc2rust-analyze/tests/common/mod.rs41}COMMENT
LOWc2rust-analyze/tests/common/mod.rs61COMMENT
LOWc2rust-analyze/tests/analyze/rust_intrinsic.rs1/// Check that `extern "rust-intrinsic"` (which can be generic) foreign `fn`sCOMMENT
LOWc2rust-analyze/src/util.rs21 /// A pointer projection, such as `&(*x.y).z`. The rvalue is split into a base pointerCOMMENT
LOWc2rust-analyze/src/util.rs121 /// A [`Trivial`] library function is one that has no effect on pointer permissions in its caller.COMMENT
LOWc2rust-analyze/src/util.rs141 ///COMMENT
LOWc2rust-analyze/src/util.rs461/// which is defined as `*(from as *const To)` being a safe operation,COMMENT
LOWc2rust-analyze/src/util.rs481/// which we cannot check unlike for arrays, which we need for translated string literals.COMMENT
LOWc2rust-analyze/src/util.rs541 Some(is_transmutable_to(from, to))COMMENT
LOWc2rust-analyze/src/labeled_ty.rs1//! Provides a wrapper around `rustc::ty::Ty` with a label attached to each type constructor. WeCOMMENT
LOWc2rust-analyze/src/log.rs21/// Initialize an [`env_logger::Logger`].COMMENT
LOWc2rust-analyze/src/analyze.rs141 Some(s) => s,COMMENT
LOWc2rust-analyze/src/analyze.rs561 _ => panic!("bad value {:?} for C2RUST_ANALYZE_REWRITE_MODE", val),COMMENT
LOWc2rust-analyze/src/analyze.rs641 // Compute hypothetical region data for all ADTs and functions. This can only be done afterCOMMENT
LOWc2rust-analyze/src/main.rs61 /// Set `$RUSTFLAGS` for the wrapped `cargo`.COMMENT
LOWc2rust-analyze/src/main.rs81 rewrite_paths: Vec<OsString>,COMMENT
LOWc2rust-analyze/src/main.rs101 /// Add "start/end of def" annotations as comments around each definition. These annotationsCOMMENT
LOWc2rust-analyze/src/main.rs161fn exit_with_status(status: ExitStatus) {COMMENT
LOWc2rust-analyze/src/main.rs281/// Note that despite setting `--crate-type bin` and [`is_bin_crate`] being true,COMMENT
LOWc2rust-analyze/src/main.rs301///COMMENT
LOWc2rust-analyze/src/last_use.rs1//! Analysis to find the last use of a MIR local. For non-`Copy` types, the last use can be madeCOMMENT
LOWc2rust-analyze/src/last_use.rs41 ///COMMENT
LOWc2rust-analyze/src/known_fn.rs101 /// We skip non-ptr [`PointerId`]s in such iteration,COMMENT
LOWc2rust-analyze/src/known_fn.rs201 /// Determine the [`PermissionSet`]s that should constrain [`PointerId`]sCOMMENT
LOWc2rust-analyze/src/known_fn.rs241 matchingCOMMENT
LOWc2rust-analyze/src/context.rs41bitflags! {COMMENT
LOWc2rust-analyze/src/context.rs61 const WRITE = 0x0002;COMMENT
LOWc2rust-analyze/src/context.rs81COMMENT
LOWc2rust-analyze/src/context.rs101 /// Non-zero but invalid pointers, such as those produced by:COMMENT
LOWc2rust-analyze/src/context.rs121 /// * [`core::ptr::null`]COMMENT
LOWc2rust-analyze/src/context.rs181 pub const STRING_LITERAL: Self = Self::union_all([Self::READ, Self::OFFSET_ADD, Self::STACK]);COMMENT
LOWc2rust-analyze/src/context.rs1141 /// ```ignoreCOMMENT
LOWc2rust-analyze/src/dataflow/mod.rs21 /// must also contain `OFFSET`. This is sufficient because all assignments andCOMMENT
LOWc2rust-analyze/src/dataflow/type_check.rs21COMMENT
LOWc2rust-analyze/src/dataflow/type_check.rs41/// different modes, one for computing equivalence constraints and the other for computing allCOMMENT
LOWc2rust-analyze/src/dataflow/type_check.rs161 // We support only one case here, which is the case of null pointersCOMMENT
LOWc2rust-analyze/src/dataflow/type_check.rs401 /// Unify corresponding [`PointerId`]s in `lty1` and `lty2`.COMMENT
LOWc2rust-analyze/src/rewrite/mod.rs1//! The overall implementation strategy for rewriting is:COMMENT
LOWc2rust-analyze/src/rewrite/mod.rs61 /// Emit some fixed text.COMMENT
LOWc2rust-analyze/src/rewrite/mod.rs81 RemovedCast(Box<Rewrite>),COMMENT
LOWc2rust-analyze/src/rewrite/mod.rs101 Let1(String, Box<Rewrite>),COMMENT
LOWc2rust-analyze/src/rewrite/apply.rs101COMMENT
308 more matches not shown…
Cross-File Repetition40 hits · 200 pts
SeverityFileLineSnippetContext
HIGHexamples/libxml2/common.py0reflect changes to all configuration variables that depend on llvm_verSTRING
HIGHexamples/tinycc/common.py0reflect changes to all configuration variables that depend on llvm_verSTRING
HIGHexamples/snudown/common.py0reflect changes to all configuration variables that depend on llvm_verSTRING
HIGHexamples/tmux/common.py0reflect changes to all configuration variables that depend on llvm_verSTRING
HIGHscripts/common.py0reflect changes to all configuration variables that depend on llvm_verSTRING
HIGHexamples/libxml2/common.py0add common command-line arguments that commonglobals understands to construct necessary paths.STRING
HIGHexamples/tinycc/common.py0add common command-line arguments that commonglobals understands to construct necessary paths.STRING
HIGHexamples/snudown/common.py0add common command-line arguments that commonglobals understands to construct necessary paths.STRING
HIGHexamples/tmux/common.py0add common command-line arguments that commonglobals understands to construct necessary paths.STRING
HIGHscripts/common.py0add common command-line arguments that commonglobals understands to construct necessary paths.STRING
HIGHexamples/libxml2/common.py0ask rustc for the correct path to its {lib,bin} directory.STRING
HIGHexamples/tinycc/common.py0ask rustc for the correct path to its {lib,bin} directory.STRING
HIGHexamples/snudown/common.py0ask rustc for the correct path to its {lib,bin} directory.STRING
HIGHexamples/tmux/common.py0ask rustc for the correct path to its {lib,bin} directory.STRING
HIGHscripts/common.py0ask rustc for the correct path to its {lib,bin} directory.STRING
HIGHexamples/libxml2/common.py0log fatal error and exit with specified error code.STRING
HIGHexamples/tinycc/common.py0log fatal error and exit with specified error code.STRING
HIGHexamples/snudown/common.py0log fatal error and exit with specified error code.STRING
HIGHexamples/tmux/common.py0log fatal error and exit with specified error code.STRING
HIGHscripts/common.py0log fatal error and exit with specified error code.STRING
HIGHexamples/libxml2/common.py0estimate the highest number of parallel link jobs we can run without causing the machine to swap. we conservatively estiSTRING
HIGHexamples/tinycc/common.py0estimate the highest number of parallel link jobs we can run without causing the machine to swap. we conservatively estiSTRING
HIGHexamples/snudown/common.py0estimate the highest number of parallel link jobs we can run without causing the machine to swap. we conservatively estiSTRING
HIGHexamples/tmux/common.py0estimate the highest number of parallel link jobs we can run without causing the machine to swap. we conservatively estiSTRING
HIGHscripts/common.py0estimate the highest number of parallel link jobs we can run without causing the machine to swap. we conservatively estiSTRING
HIGHexamples/libxml2/common.py0make sure directory has a `.gitignore` file with a wildcard pattern in it.STRING
HIGHexamples/tinycc/common.py0make sure directory has a `.gitignore` file with a wildcard pattern in it.STRING
HIGHexamples/snudown/common.py0make sure directory has a `.gitignore` file with a wildcard pattern in it.STRING
HIGHexamples/tmux/common.py0make sure directory has a `.gitignore` file with a wildcard pattern in it.STRING
HIGHscripts/common.py0make sure directory has a `.gitignore` file with a wildcard pattern in it.STRING
HIGHexamples/libxml2/common.py0run c2rust-ast-exporter for a single compiler invocation. :param ast_expo: command object representing c2rust-ast-exportSTRING
HIGHexamples/tinycc/common.py0run c2rust-ast-exporter for a single compiler invocation. :param ast_expo: command object representing c2rust-ast-exportSTRING
HIGHexamples/snudown/common.py0run c2rust-ast-exporter for a single compiler invocation. :param ast_expo: command object representing c2rust-ast-exportSTRING
HIGHexamples/tmux/common.py0run c2rust-ast-exporter for a single compiler invocation. :param ast_expo: command object representing c2rust-ast-exportSTRING
HIGHscripts/common.py0run c2rust-ast-exporter for a single compiler invocation. :param ast_expo: command object representing c2rust-ast-exportSTRING
HIGHexamples/libxml2/common.py0run the transpiler on all c files in a compile commands database.STRING
HIGHexamples/tinycc/common.py0run the transpiler on all c files in a compile commands database.STRING
HIGHexamples/snudown/common.py0run the transpiler on all c files in a compile commands database.STRING
HIGHexamples/tmux/common.py0run the transpiler on all c files in a compile commands database.STRING
HIGHscripts/common.py0run the transpiler on all c files in a compile commands database.STRING
Hyper-Verbose Identifiers89 hits · 92 pts
SeverityFileLineSnippetContext
LOWc2rust-analyze/rename_nll_facts.py70def match_path_assigned_at_base():CODE
LOWc2rust-analyze/rename_nll_facts.py95def match_use_of_var_derefs_origin():CODE
LOWtests/integration/tests/__init__.py172 def ensure_submodule_checkout(self):CODE
LOWtests/integration/tests/requirements.py102 def collect_packages_for_host(yaml: Dict):CODE
LOWc2rust-refactor/gen/rewrite.py238def type_needs_generated_impl(d, trait):CODE
LOWc2rust-refactor/gen/rewrite.py445def do_recover_children_match(d):CODE
LOWc2rust-refactor/gen/rewrite.py512def generate_recover_children_impls(decls):CODE
LOWc2rust-refactor/gen/rewrite.py543def do_maybe_rewrite_seq_impl(d):CODE
LOWc2rust-refactor/gen/rewrite.py560def generate_maybe_rewrite_seq_impls(decls):CODE
LOWc2rust-refactor/doc/literate/refactor.py706def run_refactor_for_playground(args: argparse.Namespace,CODE
LOWc2rust-refactor/doc/literate/marks.py213def init_file_keep_mark_lines(f: File):CODE
LOWc2rust-refactor/doc/literate/file.py245 def set_drop_irrelevant_lines(self, drop_irrelevant_lines: Annot[None]):CODE
LOWexamples/libxml2/common.py216def get_rust_toolchain_libpath() -> str:CODE
LOWexamples/libxml2/common.py220def get_rust_toolchain_binpath() -> str:CODE
LOWexamples/tinycc/common.py216def get_rust_toolchain_libpath() -> str:CODE
LOWexamples/tinycc/common.py220def get_rust_toolchain_binpath() -> str:CODE
LOWexamples/snudown/translate.py34def generate_html_entries_header(snudown: str):CODE
LOWexamples/snudown/common.py216def get_rust_toolchain_libpath() -> str:CODE
LOWexamples/snudown/common.py220def get_rust_toolchain_binpath() -> str:CODE
LOWexamples/tmux/common.py216def get_rust_toolchain_libpath() -> str:CODE
LOWexamples/tmux/common.py220def get_rust_toolchain_binpath() -> str:CODE
LOWscripts/common.py216def get_rust_toolchain_libpath() -> str:CODE
LOWscripts/common.py220def get_rust_toolchain_binpath() -> str:CODE
LOWscripts/test_cross_checks.py18def checkout_and_build_libclevrbuf():CODE
LOWc2rust-postprocess/tests/test_utils.py10def test_existing_file_returns_path(tmp_path: Path) -> None:CODE
LOWc2rust-postprocess/tests/test_utils.py20def test_existing_file_rejects_missing_file(tmp_path: Path) -> None:CODE
LOWc2rust-postprocess/tests/test_utils.py29def test_existing_file_rejects_directory(tmp_path: Path) -> None:CODE
LOWc2rust-postprocess/tests/test_utils.py34def test_get_rust_files_raises_on_missing_path():CODE
LOWc2rust-postprocess/tests/test_utils.py45def test_get_rust_files_happy_path(tmp_path):CODE
LOWc2rust-postprocess/tests/test_utils.py55def test_test_rust_files_finds_qsort_rs(transpile_qsort):CODE
LOWc2rust-postprocess/tests/conftest.py20def generate_compile_commands_for_qsort(ensure_bear):CODE
LOWc2rust-postprocess/tests/test_apply_file.py115def test_accepted_batch_is_applied(patched_io, rust_file: Path) -> None:CODE
LOWc2rust-postprocess/tests/test_apply_file.py130def test_rejection_counts_failure_and_invalidates_final_response(CODE
LOWc2rust-postprocess/tests/test_apply_file.py149def test_rejection_raises_without_keep_going(patched_io, rust_file: Path) -> None:CODE
LOWc2rust-postprocess/tests/test_apply_file.py164def test_no_update_rust_is_purely_generative(patched_io, rust_file: Path) -> None:CODE
LOWc2rust-postprocess/tests/test_apply_file.py182def test_without_validator_candidates_are_applied(patched_io, rust_file: Path) -> None:CODE
LOWc2rust-postprocess/tests/test_apply_file.py196def test_format_exclude_entries_groups_by_file(tmp_path: Path) -> None:CODE
LOWc2rust-postprocess/tests/test_apply_file.py228def split_merge_tools_available() -> bool:CODE
LOWc2rust-postprocess/tests/test_apply_file.py238def test_end_to_end_type_invalid_rewrite_is_isolated(tmp_path: Path) -> None:CODE
LOWc2rust-postprocess/tests/test_definitions.py18def test_get_c_sourcefile_qsort(generate_compile_commands_for_qsort, transpile_qsort):CODE
LOWc2rust-postprocess/tests/test_definitions.py31def test_get_rust_function_spans(transpile_qsort, pytestconfig):CODE
LOWc2rust-postprocess/tests/test_definitions.py68def test_c_function_splitting(generate_compile_commands_for_qsort, transpile_qsort):CODE
LOWc2rust-postprocess/tests/test_definitions.py89def test_demote_misplaced_doc_comments():CODE
LOWc2rust-postprocess/tests/test_definitions.py123def test_demote_misplaced_doc_comments_inner_doc():STRING
LOWc2rust-postprocess/tests/test_definitions.py128def test_rust_parse_has_errors():STRING
LOWc2rust-postprocess/tests/test_definitions.py133def test_comment_insertion_qsort():STRING
LOWc2rust-postprocess/tests/test_validate.py46def test_valid_batch_is_retained_with_one_check(source: Path) -> None:CODE
LOWc2rust-postprocess/tests/test_validate.py58def test_mixed_batch_retains_only_valid_candidates(source: Path) -> None:CODE
LOWc2rust-postprocess/tests/test_validate.py74def test_single_rejected_candidate_restores_baseline_exactly(source: Path) -> None:CODE
LOWc2rust-postprocess/tests/test_validate.py84def test_interacting_candidates_reject_only_one(source: Path) -> None:CODE
LOWc2rust-postprocess/tests/test_validate.py102def test_check_exception_restores_file(source: Path) -> None:CODE
LOWc2rust-postprocess/tests/test_validate.py111def test_apply_exception_restores_file(source: Path) -> None:CODE
LOWc2rust-postprocess/tests/test_validate.py124def test_empty_batch_runs_no_check(source: Path) -> None:CODE
LOWc2rust-postprocess/tests/test_validate.py130def test_find_manifest_returns_nearest(tmp_path: Path) -> None:CODE
LOWc2rust-postprocess/tests/test_validate.py161def test_cargo_checker_passes_valid_crate(tmp_path: Path) -> None:STRING
LOWc2rust-postprocess/tests/test_validate.py167def test_cargo_checker_reports_type_error(tmp_path: Path) -> None:STRING
LOWc2rust-postprocess/tests/test_validate.py175def test_main_aborts_on_broken_baseline(tmp_path: Path) -> None:STRING
LOWc2rust-postprocess/tests/test_comments_transform.py50def test_directive_line_comment_survives_preprocessed_check() -> None:CODE
LOWc2rust-postprocess/tests/test_comments_transform.py113def test_body_doc_comments_are_demoted(monkeypatch) -> None:STRING
LOWc2rust-postprocess/tests/test_comments_transform.py142def test_syntactically_invalid_response_is_rejected() -> None:STRING
29 more matches not shown…
Unused Imports89 hits · 89 pts
SeverityFileLineSnippetContext
LOWc2rust-analyze/scripts/auto_fix_errors.py7CODE
LOWc2rust-analyze/scripts/pointwise_metrics.py25CODE
LOWc2rust-analyze/scripts/extract_working_defs.py13CODE
LOWtests/integration/tests/__init__.py10CODE
LOWtests/integration/tests/__init__.py11CODE
LOWtests/integration/tests/requirements.py5CODE
LOWc2rust-refactor/gen/ast_equiv.py21CODE
LOWc2rust-refactor/gen/ast_equiv.py23CODE
LOWc2rust-refactor/gen/ast_equiv.py24CODE
LOWc2rust-refactor/gen/process_ast.py7CODE
LOWc2rust-refactor/gen/matcher.py21CODE
LOWc2rust-refactor/gen/matcher.py23CODE
LOWc2rust-refactor/gen/matcher.py24CODE
LOWc2rust-refactor/gen/ast_deref.py3CODE
LOWc2rust-refactor/gen/nt_match.py18CODE
LOWc2rust-refactor/gen/nt_match.py19CODE
LOWc2rust-refactor/gen/get_span.py22CODE
LOWc2rust-refactor/gen/get_span.py22CODE
LOWc2rust-refactor/gen/get_span.py24CODE
LOWc2rust-refactor/gen/get_span.py25CODE
LOWc2rust-refactor/gen/get_node_id.py19CODE
LOWc2rust-refactor/gen/get_node_id.py19CODE
LOWc2rust-refactor/gen/get_node_id.py21CODE
LOWc2rust-refactor/gen/get_node_id.py22CODE
LOWc2rust-refactor/gen/mac_match.py18CODE
LOWc2rust-refactor/gen/mac_match.py19CODE
LOWc2rust-refactor/gen/lr_expr.py17CODE
LOWc2rust-refactor/gen/lr_expr.py19CODE
LOWc2rust-refactor/gen/lr_expr.py20CODE
LOWc2rust-refactor/gen/mac_table.py36CODE
LOWc2rust-refactor/gen/mac_table.py37CODE
LOWc2rust-refactor/gen/ast_names.py3CODE
LOWc2rust-refactor/gen/ast_names.py4CODE
LOWc2rust-refactor/gen/list_node_ids.py10CODE
LOWc2rust-refactor/gen/list_node_ids.py12CODE
LOWc2rust-refactor/gen/list_node_ids.py13CODE
LOWc2rust-refactor/gen/rewrite.py148CODE
LOWc2rust-refactor/gen/rewrite.py150CODE
LOWc2rust-refactor/gen/rewrite.py153CODE
LOWc2rust-refactor/doc/literate/refactor.py7CODE
LOWc2rust-refactor/doc/literate/refactor.py13CODE
LOWc2rust-refactor/doc/literate/refactor.py14CODE
LOWc2rust-refactor/doc/literate/render.py1CODE
LOWc2rust-refactor/doc/literate/render.py8CODE
LOWc2rust-refactor/doc/literate/render.py8CODE
LOWc2rust-refactor/doc/literate/render.py10CODE
LOWc2rust-refactor/doc/literate/annot.py12CODE
LOWc2rust-refactor/doc/literate/marks.py3CODE
LOWc2rust-refactor/doc/literate/diff.py1CODE
LOWc2rust-refactor/doc/literate/highlight.py5CODE
LOWexamples/json-c/translate.py6CODE
LOWexamples/json-c/translate.py6CODE
LOWexamples/json-c/translate.py13CODE
LOWexamples/libxml2/translate.py4CODE
LOWexamples/libxml2/translate.py4CODE
LOWexamples/libxml2/translate.py13CODE
LOWexamples/libxml2/translate.py16CODE
LOWexamples/libxml2/common.py15CODE
LOWexamples/libxml2/patch_translated_code.py5CODE
LOWexamples/libxml2/patch_translated_code.py6CODE
29 more matches not shown…
Self-Referential Comments15 hits · 43 pts
SeverityFileLineSnippetContext
MEDIUMexamples/json-c/repo/ltmain.sh1229# This function is only a basic sanity check; it will hardly flush outCOMMENT
MEDIUMexamples/json-c/repo/ltmain.sh1240# This function implements the same check as func_lalib_p withoutCOMMENT
MEDIUMexamples/json-c/repo/ltmain.sh1263# This function is only a basic sanity check; it will hardly flush outCOMMENT
MEDIUMexamples/json-c/repo/ltmain.sh1272# This function is only a basic sanity check; it will hardly flush outCOMMENT
MEDIUMexamples/json-c/repo/ltmain.sh1297# This function is only a basic sanity check; it will hardly flush outCOMMENT
MEDIUMexamples/json-c/repo/ltmain.sh1433# Create a libtool object file (analogous to a ".la" file),COMMENT
MEDIUMexamples/json-c/repo/ltmain.sh6028 # Create the object directory.COMMENT
MEDIUMexamples/json-c/repo/ltmain.sh8656 # Create the old-style object.COMMENT
MEDIUMexamples/json-c/repo/ltmain.sh8676 # Create an invalid libtool object if no PIC, so that we don'tCOMMENT
MEDIUMexamples/tinycc/translate.py88 # Create the src dir if it doesn't already existSTRING
MEDIUMexamples/robotfindskitten/repo/ltmain.sh888 # Create a libtool object file (analogous to a ".la" file),COMMENT
MEDIUMexamples/robotfindskitten/repo/ltmain.sh1982 # Create the object directory.COMMENT
MEDIUMexamples/robotfindskitten/repo/ltmain.sh4265 # Create the old-style object.COMMENT
MEDIUMexamples/robotfindskitten/repo/ltmain.sh4295 # Create an invalid libtool object if no PIC, so that we don'tCOMMENT
MEDIUMscripts/test_examples.py152 # Create a link to the example data filesCOMMENT
Cross-Language Confusion5 hits · 38 pts
SeverityFileLineSnippetContext
HIGHexamples/json-c/translate.py39 mk_select('crate; desc(fn && pub);') + [';', 'wrap_api'],CODE
HIGHexamples/json-c/translate.py43 mk_select('crate; desc(foreign_item && fn && !name(".*locale.*"));') +CODE
HIGHexamples/json-c/translate.py46 mk_select(r'crate; desc(foreign_item && fn && name("__isnan(l|f)?"));') +CODE
HIGHexamples/json-c/translate.py49 mk_select(r'crate; desc(foreign_item && fn && name("__isinf(l|f)?"));') +CODE
HIGHc2rust-postprocess/tests/conftest.py24 # compile to /dev/null, we just want compile_commands.jsonCOMMENT
AI Slop Vocabulary12 hits · 35 pts
SeverityFileLineSnippetContext
MEDIUMc2rust-analyze/src/analyze.rs133/// but I'll soon replace it with a more robust (but complex) versionCOMMENT
MEDIUMc2rust-analyze/src/borrowck/type_check.rs371 // Here we relabel `expect_ty` to utilize the permissions it carriesCOMMENT
MEDIUMc2rust-analyze/src/borrowck/type_check.rs383 // Here we relabel `expect_ty` to utilize the permissions it carriesCOMMENT
MEDIUMc2rust-refactor/src/driver.rs52/// robust against broken code. (For example, phase 3 provides typechecking results, but can't beCOMMENT
MEDIUMexamples/json-c/repo/ltmain.sh397# Sed substitution that helps us do robust quoting. It backslashifiesCOMMENT
MEDIUMexamples/json-c/repo/ltmain.sh3852# Sed substitution that helps us do robust quoting. It backslashifiesCOMMENT
MEDIUMexamples/json-c/repo/ltmain.sh7681 # This code stresses the "libraries are programs" paradigm to itsCOMMENT
MEDIUMexamples/json-c/repo/doc/html/printbuf_8h.html194<p>This is an optimization wrapper around <a class="el" href="printbuf_8h.html#a22f09779a19db59a83e7cb8c2ce4c75f">printbCODE
MEDIUMexamples/robotfindskitten/repo/ltmain.sh86# Sed substitution that helps us do robust quoting. It backslashifiesCOMMENT
MEDIUMexamples/robotfindskitten/repo/ltmain.sh3517 # This code stresses the "libraries are programs" paradigm to itsCOMMENT
MEDIUMexamples/robotfindskitten/repo/ltmain.sh5259# Sed substitution that helps us do robust quoting. It backslashifiesCOMMENT
MEDIUMscripts/test_examples.py87 # Should be used on projects that utilize GNU Build SystemsCOMMENT
Deep Nesting29 hits · 29 pts
SeverityFileLineSnippetContext
LOWc2rust-analyze/scripts/auto_fix_errors.py64CODE
LOWc2rust-analyze/scripts/extract_working_defs.py52CODE
LOWtests/integration/tests/__init__.py47CODE
LOWtests/integration/tests/__init__.py204CODE
LOWc2rust-refactor/gen/ast_equiv.py90CODE
LOWc2rust-refactor/gen/process_ast.py29CODE
LOWc2rust-refactor/gen/matcher.py82CODE
LOWc2rust-refactor/gen/lr_expr.py23CODE
LOWc2rust-refactor/gen/rewrite.py344CODE
LOWc2rust-refactor/gen/rewrite.py445CODE
LOWc2rust-refactor/doc/literate/refactor.py356CODE
LOWc2rust-refactor/doc/literate/refactor.py209CODE
LOWc2rust-refactor/doc/literate/render.py62CODE
LOWc2rust-refactor/doc/literate/render.py243CODE
LOWc2rust-refactor/doc/literate/__init__.py99CODE
LOWc2rust-refactor/doc/literate/__init__.py146CODE
LOWc2rust-refactor/doc/literate/__init__.py237CODE
LOWc2rust-refactor/doc/literate/marks.py84CODE
LOWc2rust-refactor/doc/literate/diff.py38CODE
LOWc2rust-refactor/doc/literate/diff.py124CODE
LOWc2rust-refactor/doc/literate/highlight.py98CODE
LOWscripts/package.py144CODE
LOWscripts/test_translator.py229CODE
LOWscripts/convert_build_commands.py27CODE
LOWscripts/build_cross_checks.py29CODE
LOWscripts/test_rust_refactor.py39CODE
LOWc2rust-postprocess/postprocess/cache.py83CODE
LOWc2rust-postprocess/postprocess/cache.py91CODE
LOWc2rust-postprocess/postprocess/definitions/__init__.py151CODE
Modern Structural Boilerplate11 hits · 14 pts
SeverityFileLineSnippetContext
LOWexamples/libxml2/common.py159 def update_args(self, args: Optional[Any] = None) -> None:CODE
LOWexamples/libxml2/common.py210def update_or_init_submodule(submodule_path: str) -> None:CODE
LOWexamples/tinycc/common.py159 def update_args(self, args: Optional[Any] = None) -> None:CODE
LOWexamples/tinycc/common.py210def update_or_init_submodule(submodule_path: str) -> None:CODE
LOWexamples/snudown/common.py159 def update_args(self, args: Optional[Any] = None) -> None:CODE
LOWexamples/snudown/common.py210def update_or_init_submodule(submodule_path: str) -> None:CODE
LOWexamples/tmux/common.py159 def update_args(self, args: Optional[Any] = None) -> None:CODE
LOWexamples/tmux/common.py210def update_or_init_submodule(submodule_path: str) -> None:CODE
LOWscripts/common.py159 def update_args(self, args: Optional[Any] = None) -> None:CODE
LOWscripts/common.py210def update_or_init_submodule(submodule_path: str) -> None:CODE
LOWc2rust-postprocess/tests/test_cache.py32def set_age_days(entry_dir: Path, days: int) -> None:CODE
Hallucination Indicators1 hit · 10 pts
SeverityFileLineSnippetContext
CRITICALc2rust-analyze/src/borrowck/type_check.rs113 let field_adt_metadata = if let Some(field_adt_metadata) = self.acx.gacx.adt_metadata.table.get(CODE
TODO Padding4 hits · 6 pts
SeverityFileLineSnippetContext
LOWcross-checks/c-checks/clang-plugin/runtime/hash.c52// TODO: implement more types, e.g., bool, char, double, floatCOMMENT
LOWc2rust-refactor/src/analysis/ownership/intra.rs439 // TODO: implement these; we shouldn't see them in transpiledCOMMENT
LOWscripts/test_rust_refactor.py90 # TODO: implement rustfmt and diff actions from `run-test.sh`COMMENT
LOWc2rust-postprocess/postprocess/models/gpt.py25 # TODO: implement tool calling supportCOMMENT
Redundant / Tautological Comments4 hits · 6 pts
SeverityFileLineSnippetContext
LOWexamples/json-c/repo/ltmain.sh2593 # Check if any of the arguments is a wrapper script.COMMENT
LOWexamples/json-c/repo/ltmain.sh8382 # Loop over the list of objects to be linked.COMMENT
LOWexamples/robotfindskitten/repo/ltmain.sh4062 # Loop over the list of objects to be linked.COMMENT
LOWexamples/robotfindskitten/repo/ltmain.sh6392 # Check if any of the arguments is a wrapper script.COMMENT
AI Structural Patterns5 hits · 5 pts
SeverityFileLineSnippetContext
LOWexamples/libxml2/common.py467CODE
LOWexamples/tinycc/common.py467CODE
LOWexamples/snudown/common.py467CODE
LOWexamples/tmux/common.py467CODE
LOWscripts/common.py467CODE
Fake / Example Data4 hits · 4 pts
SeverityFileLineSnippetContext
LOWtests/unit/example/src/test_file_xfail.rs6 Lorem ipsum dolor sit amet, consectetur adipiscing elit. Etiam non maurisCODE
LOWtests/unit/example/src/test_file_xfail.rs6 Lorem ipsum dolor sit amet, consectetur adipiscing elit. Etiam non maurisCODE
LOWtests/unit/example/src/skip_me.c5Lorem ipsum dolor sit amet, consectetur adipiscing elit. Etiam non maurisCODE
LOWtests/unit/example/src/skip_me.c5Lorem ipsum dolor sit amet, consectetur adipiscing elit. Etiam non maurisCODE
Slop Phrases3 hits · 4 pts
SeverityFileLineSnippetContext
LOWc2rust-refactor/src/driver.rs45// TODO: don't forget to call span_fix after parsingCOMMENT
LOWexamples/json-c/repo/json_object.h460 * ownership through json_object_get (& don't forget to do a json_object_putCOMMENT
LOWexamples/json-c/repo/doc/html/json__object_8h.html1851<p><em>No</em> reference counts will be changed. There is no need to manually adjust reference counts through the json_oCODE
Excessive Try-Catch Wrapping2 hits · 3 pts
SeverityFileLineSnippetContext
LOWtests/integration/tests/__init__.py163 except Exception: # noqaCODE
MEDIUMc2rust-postprocess/postprocess/definitions/clang.py52 print(f"Error running clang on {source_file}: {e.stderr}")CODE
Verbosity Indicators1 hit · 2 pts
SeverityFileLineSnippetContext
LOWc2rust-transpile/src/translator/mod.rs1820 /// The purpose of this function is to decide on whether or not a static initializer'sCOMMENT