AI Slop Code RIsk Monitor

TheAlgorithms/Rust

All Algorithms implemented in Rust

7.6 Moderate pattern signal View on GitHub

Maintenance and Governance Review

This report summarizes scanner evidence for TheAlgorithms/Rust, a Rust project with 26,080 GitHub stars. SynthScan examined 62,960 lines of code across 441 source files, recording 384 pattern matches distributed across 5 syntactic categories. The legacy adjusted pattern signal is 7.6 (Moderate pattern signal); it is not an authorship estimate.

Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.

7.6
Adjusted Signal
7.6
Raw Pattern Score
100%
Time Factor
2026-10-08
Last Push
26.1K
Stars
Rust
Language
63.0K
Lines of Code
441
Files
384
Pattern Hits
2026-10-12
Scan Date
0.00
HC Hit Rate

Risk Review · v3

Use each vector to guide manual verification of the underlying findings.

Cognitive Ownership Risk 23.5/100 · LOW

Can maintainers explain intent, assumptions, and trade-offs? 332 finding(s).

Hallucinated Dependency & Supply Chain Risk 1.6/100 · LOW

Are imports declared and package/API names verified? 14 finding(s).

Agent Over-Engineering Ratio 9.2/100 · LOW

Are wrappers, guards, and repeated structures necessary? 38 finding(s).

PR Review Velocity Impact 31.1/100 · MEDIUM

Which changes need focused human review? 384 finding(s).

What These Metrics Mean

Adjusted Signal
Legacy pattern score normalized per 1,000 scanned lines and multiplied by the repository-level time factor. It is not an estimate of AI authorship.
Raw Pattern Score
Sum of severity- and context-weighted pattern findings before applying the time factor.
Time Factor
A coarse multiplier based on repository last-push metadata. It does not identify when individual code was written.
Pattern Hits
Count of configured pattern findings. Review each location and surrounding code before acting.
HC Hit Rate
High- and critical-severity findings per scanned file. Severity is a configured detector weight, not proof of a vulnerability or authorship.
Lines / Files
Scan coverage denominators used by the legacy normalized score.

Pattern-Signal History

This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.

Severity Breakdown

Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.

CRITICAL 0HIGH 0MEDIUM 43LOW 341

Directory Score Breakdown

This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.

Pattern Findings

The scanner identified 384 distinct pattern matches across 5 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. 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 configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.

Over-Commented Block326 hits · 320 pts
SeverityFileLineSnippetContext
LOWsrc/data_structures/segment_tree_recursive.rs81 ///COMMENT
LOWsrc/data_structures/segment_tree_recursive.rs121 match (left_res, right_res) {COMMENT
LOWsrc/data_structures/fenwick_tree.rs21 IndexOutOfBounds,COMMENT
LOWsrc/data_structures/fenwick_tree.rs41 /// A new `FenwickTree` instance.COMMENT
LOWsrc/data_structures/fenwick_tree.rs101COMMENT
LOWsrc/data_structures/fenwick_tree.rs121 let left_query = if left == 0 {COMMENT
LOWsrc/data_structures/fenwick_tree.rs161 /// desired value and the current value, then applying that difference using `update`.COMMENT
LOWsrc/data_structures/fenwick_tree.rs181///COMMENT
LOWsrc/data_structures/heap.rs1//! A generic heap data structure.COMMENT
LOWsrc/data_structures/heap.rs21COMMENT
LOWsrc/data_structures/heap.rs161 } else {COMMENT
LOWsrc/data_structures/heap.rs221 ///COMMENT
LOWsrc/data_structures/stack_using_singly_linked_list.rs101/// With the help of the ownership mechanism, the type `List` will be cleaned up automatically (dropped) after it goes oCOMMENT
LOWsrc/data_structures/trie.rs1//! This module provides a generic implementation of a Trie (prefix tree).COMMENT
LOWsrc/data_structures/segment_tree.rs61 }COMMENT
LOWsrc/data_structures/segment_tree.rs101 left /= 2;COMMENT
LOWsrc/data_structures/range_minimum_query.rs1//! Range Minimum Query (RMQ) ImplementationCOMMENT
LOWsrc/data_structures/range_minimum_query.rs21}COMMENT
LOWsrc/data_structures/range_minimum_query.rs41 /// A `RangeMinimumQuery` instance that can be used to perform range minimum queries.COMMENT
LOWsrc/data_structures/probabilistic/count_min_sketch.rs1use std::collections::hash_map::RandomState;COMMENT
LOWsrc/data_structures/probabilistic/count_min_sketch.rs21 fn increment_by(&mut self, item: Self::Item, count: usize);COMMENT
LOWsrc/data_structures/probabilistic/count_min_sketch.rs41/// <- WIDTH = 5 ->COMMENT
LOWsrc/data_structures/probabilistic/count_min_sketch.rs61/// E hash2: [0, 1, 0, 0, 0]COMMENT
LOWsrc/data_structures/probabilistic/bloom_filter.rs1use std::collections::hash_map::{DefaultHasher, RandomState};COMMENT
LOWsrc/data_structures/probabilistic/bloom_filter.rs81 }COMMENT
LOWsrc/bit_manipulation/swap_odd_even_bits.rs1/// Swaps odd and even bits in an integer.COMMENT
LOWsrc/bit_manipulation/swap_odd_even_bits.rs21/// assert_eq!(swap_odd_even_bits(2), 1);COMMENT
LOWsrc/bit_manipulation/find_unique_number.rs1/// Finds the unique number in a slice where every other element appears twice.COMMENT
LOWsrc/bit_manipulation/n_bits_gray_code.rs1/// Custom error type for Gray code generation.COMMENT
LOWsrc/bit_manipulation/reverse_bits.rs1//! This module provides a function to reverse the bits of a 32-bit unsigned integer.COMMENT
LOWsrc/bit_manipulation/reverse_bits.rs21//! O(1) - Uses a constant amount of extra spaceCOMMENT
LOWsrc/bit_manipulation/reverse_bits.rs41/// A 32-bit unsigned integer with bits in reverse orderCOMMENT
LOWsrc/bit_manipulation/binary_coded_decimal.rs1//! Binary Coded Decimal (BCD) conversionCOMMENT
LOWsrc/bit_manipulation/binary_coded_decimal.rs21///COMMENT
LOWsrc/bit_manipulation/binary_coded_decimal.rs41///COMMENT
LOWsrc/bit_manipulation/find_previous_power_of_two.rs1//! Previous Power of TwoCOMMENT
LOWsrc/bit_manipulation/find_previous_power_of_two.rs21///COMMENT
LOWsrc/bit_manipulation/find_previous_power_of_two.rs41/// assert_eq!(find_previous_power_of_two(8).unwrap(), 8);COMMENT
LOWsrc/bit_manipulation/rightmost_set_bit.rs1/// Finds the index (position) of the rightmost set bit in a number.COMMENT
LOWsrc/bit_manipulation/rightmost_set_bit.rs21///COMMENT
LOWsrc/bit_manipulation/sum_of_two_integers.rs1//! This module provides a function to add two integers without using the `+` operator.COMMENT
LOWsrc/bit_manipulation/find_missing_number.rs1/// Finds the missing number in a slice of consecutive integers.COMMENT
LOWsrc/bit_manipulation/highest_set_bit.rs1//! This module provides a function to find the position of the most significant bit (MSB)COMMENT
LOWsrc/bit_manipulation/counting_bits.rs1//! This module implements a function to count the number of set bits (1s)COMMENT
LOWsrc/bit_manipulation/twos_complement.rs1//! Two's Complement RepresentationCOMMENT
LOWsrc/bit_manipulation/twos_complement.rs21/// A `Result` containing:COMMENT
LOWsrc/bit_manipulation/binary_count_trailing_zeros.rs1/// Counts the number of trailing zeros in the binary representation of a numberCOMMENT
LOWsrc/bit_manipulation/binary_count_trailing_zeros.rs21pub fn binary_count_trailing_zeros(num: u64) -> u32 {COMMENT
LOWsrc/bit_manipulation/hamming_distance.rs1//! Hamming DistanceCOMMENT
LOWsrc/bit_manipulation/hamming_distance.rs41///COMMENT
LOWsrc/bit_manipulation/hamming_distance.rs61}COMMENT
LOWsrc/bit_manipulation/binary_shifts.rs1//! Binary Shift OperationsCOMMENT
LOWsrc/bit_manipulation/binary_shifts.rs21//!COMMENT
LOWsrc/bit_manipulation/binary_shifts.rs41///COMMENT
LOWsrc/bit_manipulation/binary_shifts.rs61 let zeros = "0".repeat(shift_amount as usize);COMMENT
LOWsrc/bit_manipulation/binary_shifts.rs81///COMMENT
LOWsrc/bit_manipulation/binary_shifts.rs101}COMMENT
LOWsrc/bit_manipulation/binary_shifts.rs121/// ```COMMENT
LOWsrc/bit_manipulation/binary_shifts.rs201/// # ArgumentsCOMMENT
LOWsrc/bit_manipulation/is_power_of_two.rs1//! Power of Two CheckCOMMENT
266 more matches not shown…
Decorative Section Separators38 hits · 122 pts
SeverityFileLineSnippetContext
MEDIUM⚡src/financial/depreciation.rs427// ─────────────────────────────────────────────────────────────COMMENT
MEDIUM⚡src/financial/depreciation.rs429// ─────────────────────────────────────────────────────────────COMMENT
MEDIUM⚡src/financial/depreciation.rs435 // ── Straight-line ────────────────────────────────────────COMMENT
MEDIUMsrc/financial/depreciation.rs23// ─────────────────────────────────────────────────────────────COMMENT
MEDIUMsrc/financial/depreciation.rs25// ─────────────────────────────────────────────────────────────COMMENT
MEDIUMsrc/financial/depreciation.rs63// ─────────────────────────────────────────────────────────────COMMENT
MEDIUMsrc/financial/depreciation.rs65// ─────────────────────────────────────────────────────────────COMMENT
MEDIUMsrc/financial/depreciation.rs84// ─────────────────────────────────────────────────────────────COMMENT
MEDIUMsrc/financial/depreciation.rs86// ─────────────────────────────────────────────────────────────COMMENT
MEDIUMsrc/financial/depreciation.rs137// ─────────────────────────────────────────────────────────────COMMENT
MEDIUMsrc/financial/depreciation.rs139// ─────────────────────────────────────────────────────────────COMMENT
MEDIUMsrc/financial/depreciation.rs205// ─────────────────────────────────────────────────────────────COMMENT
MEDIUMsrc/financial/depreciation.rs207// ─────────────────────────────────────────────────────────────COMMENT
MEDIUMsrc/financial/depreciation.rs282// ─────────────────────────────────────────────────────────────COMMENT
MEDIUMsrc/financial/depreciation.rs284// ─────────────────────────────────────────────────────────────COMMENT
MEDIUMsrc/financial/depreciation.rs348// ─────────────────────────────────────────────────────────────COMMENT
MEDIUMsrc/financial/depreciation.rs350// ─────────────────────────────────────────────────────────────COMMENT
MEDIUMsrc/financial/depreciation.rs496 // ── Diminishing balance ──────────────────────────────────COMMENT
MEDIUMsrc/financial/depreciation.rs537 // ── Units-of-production ──────────────────────────────────COMMENT
MEDIUMsrc/financial/depreciation.rs577 // ── Sum-of-years' digits ─────────────────────────────────COMMENT
MEDIUMsrc/financial/depreciation.rs637 // ── Double-declining balance ─────────────────────────────COMMENT
MEDIUMsrc/machine_learning/optimization/adam.rs126 // ── Initialisation ────────────────────────────────────────────────────────COMMENT
MEDIUMsrc/machine_learning/optimization/adam.rs206 // ── Step: standard Adam (weight_decay = 0.0) ──────────────────────────────COMMENT
MEDIUMsrc/machine_learning/optimization/adam.rs266 // ── Step: AdamW (weight_decay > 0.0) ─────────────────────────────────────COMMENT
MEDIUM⚡src/machine_learning/optimization/adam.rs323 // ── Step: shared edge cases ───────────────────────────────────────────────COMMENT
MEDIUM⚡src/machine_learning/optimization/adam.rs332 // ── Convergence (slow; marked #[ignore]) ─────────────────────────────────COMMENT
MEDIUM⚡src/machine_learning/optimization/adam.rs332 // ── Convergence (slow; marked #[ignore]) ─────────────────────────────────COMMENT
MEDIUMsrc/hashing/sha1.rs156 // ── NIST FIPS 180-4 / RFC 3174 test vectors ──────────────────────────────COMMENT
MEDIUMsrc/hashing/sha2.rs25// ── SHA-256 / SHA-224 ────────────────────────────────────────────────────────COMMENT
MEDIUMsrc/hashing/sha2.rs153// ── SHA-512 / SHA-384 / SHA-512/224 / SHA-512/256 ───────────────────────────COMMENT
MEDIUMsrc/hashing/sha2.rs305// ── Tests ────────────────────────────────────────────────────────────────────COMMENT
MEDIUMsrc/hashing/sha2.rs323 // ── Constant correctness ─────────────────────────────────────────────────COMMENT
MEDIUMsrc/hashing/sha2.rs356 // ── SHA-256 (FIPS 180-4) ─────────────────────────────────────────────────COMMENT
MEDIUMsrc/hashing/sha2.rs394 // ── SHA-224 (FIPS 180-4) ─────────────────────────────────────────────────COMMENT
MEDIUMsrc/hashing/sha2.rs429 // ── SHA-512 (FIPS 180-4) ─────────────────────────────────────────────────COMMENT
MEDIUMsrc/hashing/sha2.rs468 // ── SHA-384 (FIPS 180-4) ─────────────────────────────────────────────────COMMENT
MEDIUMsrc/hashing/sha2.rs504 // ── SHA-512/256 (FIPS 180-4) ─────────────────────────────────────────────COMMENT
MEDIUMsrc/hashing/sha2.rs530 // ── SHA-512/224 (FIPS 180-4) ─────────────────────────────────────────────COMMENT
Fake / Example Data14 hits · 20 pts
SeverityFileLineSnippetContext
LOW⚡src/general/huffman_encoding.rs351 "Lorem ipsum dolor sit amet, consectetur ",CODE
LOW⚡src/general/huffman_encoding.rs351 "Lorem ipsum dolor sit amet, consectetur ",CODE
LOW⚡src/general/huffman_encoding.rs355 "nullam vehicula. Interdum posuere lorem ipsum dolor. Elit eget ",CODE
LOWsrc/ciphers/base64.rs250 test_e_d!(b"Lorem Ipsum sit dolor amet.");CODE
LOW⚡src/ciphers/vigenere.rs59 "Lorem ipsum dolor sit amet, consectetur adipiscing elit.",CODE
LOW⚡src/ciphers/vigenere.rs59 "Lorem ipsum dolor sit amet, consectetur adipiscing elit.",CODE
LOW⚡src/ciphers/vigenere.rs69 vigenere("1 Lorem ⏳ ipsum dolor sit amet Ѡ", "unicode"),CODE
LOW⚡src/ciphers/vigenere.rs77 vigenere("Lorem ipsum dolor sit amet", "😉 key!"),CODE
LOW⚡src/ciphers/vigenere.rs77 vigenere("Lorem ipsum dolor sit amet", "😉 key!"),CODE
LOW⚡src/ciphers/vigenere.rs84 assert_eq!(vigenere("Lorem ipsum", ""), "Lorem ipsum");CODE
LOW⚡src/string/z_algorithm.rs185 "lorem ipsum dolor sit amet, consectetur ",CODE
LOW⚡src/string/z_algorithm.rs185 "lorem ipsum dolor sit amet, consectetur ",CODE
LOW⚡src/string/z_algorithm.rs194 "lorem ipsum dolor sit amet, consectetur ",CODE
LOW⚡src/string/z_algorithm.rs194 "lorem ipsum dolor sit amet, consectetur ",CODE
AI Slop Vocabulary5 hits · 15 pts
SeverityFileLineSnippetContext
MEDIUMsrc/data_structures/probabilistic/bloom_filter.rs54/// Can we improve it? Certainly, in different ways.COMMENT
MEDIUM…hine_learning/loss_function/mean_squared_error_loss.rs4//! robust loss function used in machine learning.COMMENT
MEDIUM…ine_learning/loss_function/mean_absolute_error_loss.rs4//! robust loss function used in machine learning.COMMENT
MEDIUMsrc/math/huber_loss.rs3//! The `huber_loss` function calculates the Huber loss, which is a robust loss function used in machine learning, partiCOMMENT
MEDIUMsrc/math/huber_loss.rs18//! This implementation takes two references to vectors of f64 values, `actual` and `predicted`, and a `delta` value. ItCOMMENT
TODO Padding1 hit · 2 pts
SeverityFileLineSnippetContext
LOWsrc/math/elliptic_curve.rs110 // TODO: implement counting for big PCOMMENT