Repository Analysis

paradigmxyz/reth

Modular, contributor-friendly and blazing-fast implementation of the Ethereum protocol, in Rust

4.7 Likely human-written View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of paradigmxyz/reth, a Rust project with 5,694 GitHub stars. SynthScan v2.0 examined 523,299 lines of code across 1585 source files, recording 2058 pattern matches distributed across 14 syntactic categories. The overall adjusted score of 4.7 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).

4.7
Adjusted Score
4.7
Raw Score
100%
Time Factor
2026-07-14
Last Push
5.7K
Stars
Rust
Language
523.3K
Lines of Code
1.6K
Files
2.1K
Pattern Hits
2026-07-14
Scan Date
0.03
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 45HIGH 2MEDIUM 45LOW 1966

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 2058 distinct pattern matches across 14 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 Block1791 hits · 1582 pts
SeverityFileLineSnippetContext
LOWAGENTS.md361```rustCOMMENT
LOWCLAUDE.md361```rustCOMMENT
LOWcrates/metrics/src/lib.rs1//! Collection of metrics utilities.COMMENT
LOWcrates/metrics/src/common/mpsc.rs441/// so the budget tracks bytes *currently in the channel queue*, not bytes in flightCOMMENT
LOWcrates/consensus/consensus/src/lib.rs1//! Consensus protocol functionsCOMMENT
LOWcrates/consensus/consensus/src/lib.rs61 SealedHeader,COMMENT
LOWcrates/consensus/consensus/src/lib.rs101 ) -> Result<(), ConsensusError>;COMMENT
LOWcrates/consensus/consensus/src/lib.rs141 }COMMENT
LOWcrates/consensus/consensus/src/lib.rs241COMMENT
LOWcrates/consensus/consensus/src/lib.rs481 /// The block's timestamp.COMMENT
LOWcrates/consensus/consensus/src/noop.rs1//! A consensus implementation that does nothing.COMMENT
LOWcrates/tracing/src/log_handle.rs61 LOG_HANDLE.lock().expect("log handle poisoned").is_available()COMMENT
LOWcrates/tracing/src/lib.rs1//! The `tracing` module provides functionalities for setting up and configuring logging.COMMENT
LOWcrates/tracing/src/lib.rs21//! LogFormat::Json,COMMENT
LOWcrates/tracing/src/lib.rs201}COMMENT
LOWcrates/tracing/src/lib.rs241/// Trait defining a general interface for logging configuration.COMMENT
LOWcrates/tracing/src/lib.rs261 ///COMMENT
LOWcrates/tracing/src/formatter.rs1use crate::layers::BoxedLayer;COMMENT
LOWcrates/tracing/src/formatter.rs21 LogFmt,COMMENT
LOWcrates/tracing/src/layers.rs101COMMENT
LOWcrates/tasks/src/runtime.rs101 pub reserved_cpu_cores: usize,COMMENT
LOWcrates/tasks/src/runtime.rs261 /// Handle to the tokio runtime.COMMENT
LOWcrates/tasks/src/runtime.rs281 #[cfg(feature = "rayon")]COMMENT
LOWcrates/tasks/src/runtime.rs301 /// Handle to the spawned [`TaskManager`] background task.COMMENT
LOWcrates/tasks/src/runtime.rs521 {COMMENT
LOWcrates/tasks/src/runtime.rs721 ///COMMENT
LOWcrates/tasks/src/runtime.rs761 /// This spawns a regular task onto the runtime.COMMENT
LOWcrates/tasks/src/lib.rs101 .unwrap_or_else(|e| panic!("failed to spawn scoped thread {name:?}: {e}"))COMMENT
LOWcrates/tasks/src/pool.rs21///COMMENT
LOWcrates/tasks/src/pool.rs41 }COMMENT
LOWcrates/tasks/src/pool.rs161thread_local! {COMMENT
LOWcrates/tasks/src/lazy.rs1//! A lazily-resolved handle to a value computed on a background thread.COMMENT
LOWcrates/tasks/src/for_each_ordered.rs1use crossbeam_utils::CachePadded;COMMENT
LOWcrates/tasks/src/utils.rs41/// This is a hack: these threads are spawned by libraries that do not expose a way to hook intoCOMMENT
LOWcrates/net/network-types/src/backoff.rs1/// Describes the type of backoff should be applied.COMMENT
LOWcrates/net/network-types/src/peers/reputation.rs21/// The reputation change to apply to a peer that sent a bad message.COMMENT
LOWcrates/net/network-types/src/peers/reputation.rs61/// Various kinds of reputation changes.COMMENT
LOWcrates/net/network-types/src/peers/config.rs21/// A temporary timeout for ips on incoming connection attempts.COMMENT
LOWcrates/net/network-types/src/peers/config.rs121/// Minimum connection uptime before a peer is eligible for rotation eviction.COMMENT
LOWcrates/net/network-types/src/peers/config.rs141 ///COMMENT
LOWcrates/net/network-types/src/peers/config.rs161 pub ban_list: BanList,COMMENT
LOWcrates/net/network-types/src/peers/mod.rs21#[derive(Debug, Clone)]COMMENT
LOWcrates/net/network-types/src/peers/mod.rs161 matches!(self.kind, PeerKind::Static)COMMENT
LOWcrates/net/network-types/src/session/config.rs21 DEFAULT_MAX_COUNT_PEERS_OUTBOUND as usize + DEFAULT_MAX_COUNT_PEERS_INBOUND as usize;COMMENT
LOWcrates/net/network-types/src/session/config.rs81 /// buffer size provides backpressure on the network I/O.COMMENT
LOWcrates/net/ecies/src/error.rs41 /// Error when checking the HMAC tag against the tag on the bodyCOMMENT
LOWcrates/net/ecies/src/error.rs81 /// Error when handshaking with a peer (ack / auth)COMMENT
LOWcrates/net/ecies/src/algorithm.rs101 return Err(ECIESErrorImpl::OutOfBounds { idx, len: arr.len() }.into())COMMENT
LOWcrates/net/ecies/src/algorithm.rs181 let x = ecdh_x(&self.public_key, secret_key);COMMENT
LOWcrates/net/ecies/src/algorithm.rs201 // Because the hash of kM is ultimately used as the mac key, we perform that hashing here.COMMENT
LOWcrates/net/ecies/src/mac.rs1//! # Ethereum MAC ModuleCOMMENT
LOWcrates/net/ecies/src/codec.rs21#[derive(Clone, Copy, Debug, PartialEq, Eq)]COMMENT
LOWcrates/net/discv5/src/error.rs1//! Errors interfacing with [`discv5::Discv5`].COMMENT
LOWcrates/net/discv5/src/error.rs21 /// Peer is unreachable over discovery.COMMENT
LOWcrates/net/discv5/src/config.rs21/// The default address for discv5 via UDP is IPv4.COMMENT
LOWcrates/net/discv5/src/config.rs41COMMENT
LOWcrates/net/discv5/src/config.rs61 /// Config used by [`discv5::Discv5`]. Contains the discovery listen socket.COMMENT
LOWcrates/net/discv5/src/config.rs81 /// IPv6 address to advertise in the local ENR instead of the listen socket address. SeeCOMMENT
LOWcrates/net/discv5/src/config.rs301pub struct Config {COMMENT
LOWcrates/net/discv5/src/lib.rs61/// Default is 0th index.COMMENT
1731 more matches not shown…
Hallucination Indicators45 hits · 460 pts
SeverityFileLineSnippetContext
CRITICALcrates/node/builder/src/launch/common.rs308 if !self.attachment.config.network.trusted_peers.is_empty() {CODE
CRITICALcrates/node/builder/src/launch/common.rs315 .extend(self.attachment.config.network.trusted_peers.clone());CODE
CRITICALcrates/rpc/rpc-engine-api/src/engine_api.rs985 self.inner.metrics.latency.get_blobs_v1.record(start.elapsed());CODE
CRITICALcrates/rpc/rpc-engine-api/src/engine_api.rs991 self.inner.metrics.blob_metrics.blob_count.increment(blobs_found as u64);CODE
CRITICALcrates/rpc/rpc-engine-api/src/engine_api.rs992 self.inner.metrics.blob_metrics.blob_misses.increment(blobs_missed as u64);CODE
CRITICALcrates/rpc/rpc-engine-api/src/engine_api.rs1104 self.inner.metrics.blob_metrics.get_blobs_requests_success_total.increment(1);CODE
CRITICALcrates/rpc/rpc-engine-api/src/engine_api.rs1106 self.inner.metrics.blob_metrics.get_blobs_requests_failure_total.increment(1);CODE
CRITICALcrates/rpc/rpc-engine-api/src/engine_api.rs1109 self.inner.metrics.blob_metrics.get_blobs_requests_failure_total.increment(1);CODE
CRITICALcrates/rpc/rpc-engine-api/src/engine_api.rs1123 self.inner.metrics.latency.get_blobs_v3.record(start.elapsed());CODE
CRITICALcrates/rpc/rpc-engine-api/src/engine_api.rs1129 self.inner.metrics.blob_metrics.blob_count.increment(blobs_found as u64);CODE
CRITICALcrates/rpc/rpc-engine-api/src/engine_api.rs1130 self.inner.metrics.blob_metrics.blob_misses.increment(blobs_missed as u64);CODE
CRITICALcrates/rpc/rpc-engine-api/src/engine_api.rs1145 self.inner.metrics.latency.get_blobs_v4.record(start.elapsed());CODE
CRITICALcrates/rpc/rpc-engine-api/src/engine_api.rs1151 self.inner.metrics.blob_metrics.blob_count.increment(blobs_found as u64);CODE
CRITICALcrates/rpc/rpc-engine-api/src/engine_api.rs1152 self.inner.metrics.blob_metrics.blob_misses.increment(blobs_missed as u64);CODE
CRITICALcrates/rpc/rpc-engine-api/src/engine_api.rs171 self.inner.metrics.latency.new_payload_v1.record(elapsed);CODE
CRITICALcrates/rpc/rpc-engine-api/src/engine_api.rs199 self.inner.metrics.latency.new_payload_v2.record(elapsed);CODE
CRITICALcrates/rpc/rpc-engine-api/src/engine_api.rs229 self.inner.metrics.latency.new_payload_v3.record(elapsed);CODE
CRITICALcrates/rpc/rpc-engine-api/src/engine_api.rs259 self.inner.metrics.latency.new_payload_v4.record(elapsed);CODE
CRITICALcrates/rpc/rpc-engine-api/src/engine_api.rs291 self.inner.metrics.latency.new_payload_v5.record(elapsed);CODE
CRITICALcrates/rpc/rpc-engine-api/src/engine_api.rs333 self.inner.metrics.latency.fork_choice_updated_v1.record(start.elapsed());CODE
CRITICALcrates/rpc/rpc-engine-api/src/engine_api.rs358 self.inner.metrics.latency.fork_choice_updated_v2.record(start.elapsed());CODE
CRITICALcrates/rpc/rpc-engine-api/src/engine_api.rs383 self.inner.metrics.latency.fork_choice_updated_v3.record(start.elapsed());CODE
CRITICALcrates/rpc/rpc-engine-api/src/engine_api.rs413 self.inner.metrics.latency.fork_choice_updated_v4.record(start.elapsed());CODE
CRITICALcrates/rpc/rpc-engine-api/src/engine_api.rs483 self.inner.metrics.latency.get_payload_v1.record(start.elapsed());CODE
CRITICALcrates/rpc/rpc-engine-api/src/engine_api.rs508 self.inner.metrics.latency.get_payload_v2.record(start.elapsed());CODE
CRITICALcrates/rpc/rpc-engine-api/src/engine_api.rs533 self.inner.metrics.latency.get_payload_v3.record(start.elapsed());CODE
CRITICALcrates/rpc/rpc-engine-api/src/engine_api.rs558 self.inner.metrics.latency.get_payload_v4.record(start.elapsed());CODE
CRITICALcrates/rpc/rpc-engine-api/src/engine_api.rs585 self.inner.metrics.latency.get_payload_v5.record(start.elapsed());CODE
CRITICALcrates/rpc/rpc-engine-api/src/engine_api.rs608 self.inner.metrics.latency.get_payload_v6.record(start.elapsed());CODE
CRITICALcrates/rpc/rpc-engine-api/src/engine_api.rs704 self.inner.metrics.latency.get_payload_bodies_by_range_v1.record(start_time.elapsed());CODE
CRITICALcrates/rpc/rpc-engine-api/src/engine_api.rs760 self.inner.metrics.latency.get_payload_bodies_by_range_v2.record(start_time.elapsed());CODE
CRITICALcrates/rpc/rpc-engine-api/src/engine_api.rs845 self.inner.metrics.latency.get_payload_bodies_by_hash_v1.record(start.elapsed());CODE
CRITICALcrates/rpc/rpc-engine-api/src/engine_api.rs882 self.inner.metrics.latency.get_payload_bodies_by_hash_v2.record(start.elapsed());CODE
CRITICALcrates/rpc/rpc-engine-api/src/engine_api.rs950 self.inner.metrics.latency.has_blobs.record(start.elapsed());CODE
CRITICALcrates/rpc/rpc-engine-api/src/engine_api.rs1087 self.inner.metrics.latency.get_blobs_v2.record(start.elapsed());CODE
CRITICALcrates/rpc/rpc-builder/src/metrics.rs116 self.metrics.inner.connection_metrics.requests_started_total.increment(1);CODE
CRITICALcrates/rpc/rpc-builder/src/metrics.rs130 self.metrics.inner.connection_metrics.batches_started_total.increment(1);CODE
CRITICALcrates/rpc/rpc-builder/src/metrics.rs157 self.metrics.inner.connection_metrics.connections_closed_total.increment(1);CODE
CRITICALcrates/rpc/rpc-builder/src/metrics.rs191 this.metrics.inner.connection_metrics.requests_finished_total.increment(1);CODE
CRITICALcrates/rpc/rpc-builder/src/metrics.rs192 this.metrics.inner.connection_metrics.request_time_seconds.record(elapsed);CODE
CRITICALcrates/rpc/rpc-builder/src/metrics.rs239 this.metrics.inner.connection_metrics.batches_finished_total.increment(1);CODE
CRITICALcrates/rpc/rpc-builder/src/metrics.rs240 this.metrics.inner.connection_metrics.batch_response_time_seconds.record(elapsed);CODE
CRITICALcrates/engine/tree/src/tree/mod.rs2742 self.metrics.tree.reorgs.finalized.increment(1);CODE
CRITICALcrates/engine/tree/src/tree/mod.rs2746 self.metrics.tree.reorgs.safe.increment(1);CODE
CRITICALcrates/engine/tree/src/tree/mod.rs2748 self.metrics.tree.reorgs.head.increment(1);CODE
Verbosity Indicators65 hits · 124 pts
SeverityFileLineSnippetContext
LOWcrates/transaction-pool/src/pool/txpool.rs396 // First we need to check if the given base fee is different than what's currently beingCOMMENT
LOWcrates/cli/commands/src/db/diff.rs216 // if the keys are different, we need to check if the key is in the other tableCOMMENT
LOWcrates/storage/provider/src/providers/database/mod.rs522 // Step 1: heal file-level inconsistencies (no pruning)COMMENT
LOWcrates/storage/provider/src/providers/database/mod.rs525 // Step 2: RocksDB consistency check (needs static files tx data)COMMENT
LOWcrates/storage/provider/src/providers/database/mod.rs528 // Step 3: Static file checkpoint consistency (may prune)COMMENT
LOWcrates/storage/provider/src/providers/database/mod.rs536 // Step 4: Heal finalized/safe block numbers that may be ahead of theCOMMENT
LOW…tes/storage/provider/src/providers/state/historical.rs816/// the target block number. In this case, we need to check if there's a previous shard.COMMENT
LOW…s/storage/provider/src/providers/static_file/writer.rs394 // Step 1: Read all three sources of truthCOMMENT
LOW…s/storage/provider/src/providers/static_file/writer.rs415 // Step 2: Validate sidecar offsets against actual NippyJar stateCOMMENT
LOW…s/storage/provider/src/providers/static_file/writer.rs438 // Step 3: Determine correct state from synced files (source of truth)COMMENT
LOW…s/storage/provider/src/providers/static_file/writer.rs442 // Step 4: Heal if header doesn't match validated truthCOMMENT
LOW…age/provider/src/providers/static_file/writer_tests.rs459 // Step 1: Write 5 blocks (0-4), commitCOMMENT
LOW…age/provider/src/providers/static_file/writer_tests.rs466 // Step 2: Append 5 more blocks (5-9) WITHOUT committingCOMMENT
LOW…age/provider/src/providers/static_file/writer_tests.rs473 // Step 3: Prune to block 7 (should keep blocks 0-7, including uncommitted 5-7)COMMENT
LOW…age/provider/src/providers/static_file/writer_tests.rs478 // Step 4: CommitCOMMENT
LOW…age/provider/src/providers/static_file/writer_tests.rs482 // Step 5: Verify sidecar has 8 blocks, header has 8 blocks, rows are correctCOMMENT
LOW…age/provider/src/providers/static_file/writer_tests.rs772 // Step 1: Write 10 blocks with 5 changes each, commitCOMMENT
LOW…age/provider/src/providers/static_file/writer_tests.rs778 // Step 2: Corrupt sidecar by adding 3 fake blocks that point to valid butCOMMENT
LOW…age/provider/src/providers/static_file/writer_tests.rs784 // Step 3: Reopen provider - healing runs and clamps sidecar to header's 10COMMENT
LOW…age/provider/src/providers/static_file/writer_tests.rs793 // Step 4: Prune to block 6 (keep blocks 0-6, remove 7-9)COMMENT
LOW…age/provider/src/providers/static_file/writer_tests.rs800 // Step 5: Verify sidecar has 7 blocks, header has 7 blocks, rows are correctCOMMENT
LOWcrates/trie/trie/src/proof_v2/mod.rs933 // Having just seeked forward we need to check if the cursor is now exhausted,COMMENT
LOWcrates/trie/db/src/changesets.rs159 // Step 2: collect the state revert from the database tip to just after the range.COMMENT
LOWcrates/trie/db/src/changesets.rs166 // Step 3: compute trie reverts from the database tip to just after the range.COMMENT
LOWcrates/trie/db/src/changesets.rs269 // Step 1: Get the trie changesets for the target block from cacheCOMMENT
LOWcrates/trie/db/src/changesets.rs272 // Step 2: Get the trie reverts for the state after the target block using the cacheCOMMENT
LOWcrates/trie/db/src/changesets.rs275 // Step 3: Create an InMemoryTrieCursorFactory with the revertsCOMMENT
LOWcrates/trie/db/src/changesets.rs280 // Step 4: Collect all account trie nodes that changed in the target blockCOMMENT
LOWcrates/trie/db/src/changesets.rs139 // Step 1: collect the state revert for the requested range.COMMENT
LOWcrates/trie/db/src/changesets.rs180 // Step 4: overlay the post-range trie and compute the trie revert to the pre-range state.COMMENT
LOWcrates/trie/db/src/changesets.rs292 // Step 5: Collect all storage trie nodes that changed in the target blockCOMMENT
LOWcrates/trie/sparse/tests/suite/take_updates.rs298 // Step 1: Remove key_c — with only 3 keys under the root branch, removing one causesCOMMENT
LOWcrates/trie/sparse/tests/suite/take_updates.rs305 // Step 2: Insert a new key at 0x03 — re-creates/modifies the branch structure at theCOMMENT
LOWcrates/trie/sparse/tests/suite/update_leaves.rs1151 // Step 1: Remove key_c to collapse the branch at 0x10..COMMENT
LOWcrates/trie/sparse/tests/suite/update_leaves.rs1159 // Step 2: Re-insert key_c with a new value — this re-creates the branch.COMMENT
LOWcrates/trie/sparse/tests/suite/update_leaves.rs1167 // Step 3: Update key_a — previously could be orphaned if branch collapseCOMMENT
LOWcrates/trie/sparse/tests/suite/update_leaves.rs1215 // Step 1: Remove key_a → branch collapses, key_b becomes the sole child.COMMENT
LOWcrates/trie/sparse/tests/suite/update_leaves.rs1236 // Step 2: Modify the remaining leaf's value — this must succeed after the collapseCOMMENT
LOWcrates/trie/sparse/tests/suite/lifecycle.rs434 // Step 2: Now send Changed for 2 of the touched keys + 1 new key.COMMENT
LOWcrates/trie/sparse/tests/suite/lifecycle.rs444 // Step 3: Compute root and verify against reference.COMMENT
LOWcrates/trie/sparse/tests/suite/lifecycle.rs501 // Step 2: Reveal the proof for the requested targets.COMMENT
LOWcrates/trie/sparse/tests/suite/lifecycle.rs505 // Step 3: Replace Touched with Changed(new_value) in the map.COMMENT
LOWcrates/trie/sparse/tests/suite/lifecycle.rs509 // Step 4: update_leaves again — key should now be drained.COMMENT
LOWcrates/trie/sparse/tests/suite/lifecycle.rs515 // Step 5: Compute root and verify against reference.COMMENT
LOWcrates/trie/sparse/tests/suite/lifecycle.rs546 // Step 1: Read existing leaf value via get_leaf_value.COMMENT
LOWcrates/trie/sparse/tests/suite/lifecycle.rs553 // Step 2: Decode the value and verify it matches expected.COMMENT
LOWcrates/trie/sparse/tests/suite/lifecycle.rs558 // Step 3: Modify the value (simulates changing balance while keeping storage root).COMMENT
LOWcrates/trie/sparse/tests/suite/lifecycle.rs562 // Step 4: Update the leaf with the re-encoded value.COMMENT
LOWcrates/trie/sparse/tests/suite/lifecycle.rs567 // Step 5: Compute root and verify against reference.COMMENT
LOWcrates/trie/sparse/tests/suite/lifecycle.rs597 // Step 1: find_leaf(existing_key, None) → ExistsCOMMENT
LOWcrates/trie/sparse/tests/suite/lifecycle.rs604 // Step 2: find_leaf(nonexistent_key, None) → NonExistentCOMMENT
LOWcrates/trie/sparse/tests/suite/lifecycle.rs611 // Step 3: Modify existing key2 and insert nonexistent_key.COMMENT
LOWcrates/trie/sparse/tests/suite/lifecycle.rs622 // Step 4: Compute root and verify against reference.COMMENT
LOWcrates/trie/sparse/tests/suite/lifecycle.rs631 // Step 5: find_leaf(nonexistent_key, None) → now ExistsCOMMENT
LOWcrates/trie/sparse/tests/suite/lifecycle.rs419 // Step 1: Prewarm 3 keys with Touched — all should be drained (paths are revealed).COMMENT
LOWcrates/trie/sparse/tests/suite/lifecycle.rs488 // Step 1: Touched on a key in group B's blinded subtrie → callback fires.COMMENT
LOWcrates/trie/sparse/src/arena/mod.rs1256 // Step 1: Handle trivial roots that don't need the stack-based walk.COMMENT
LOWcrates/trie/sparse/src/arena/mod.rs1283 // Step 2: Walk dirty branches depth-first using `cursor.next`. Only dirty branchesCOMMENT
LOWcrates/exex/exex/src/notifications.rs280 /// If true, then we need to check if the ExEx head is on the canonical chain and if not,COMMENT
LOWcrates/exex/exex/src/notifications.rs283 /// If true, then we need to check if the ExEx head is behind the node head and if so, backfillCOMMENT
5 more matches not shown…
Structural Annotation Overuse62 hits · 120 pts
SeverityFileLineSnippetContext
LOWcrates/storage/provider/src/providers/database/mod.rs522 // Step 1: heal file-level inconsistencies (no pruning)COMMENT
LOWcrates/storage/provider/src/providers/database/mod.rs525 // Step 2: RocksDB consistency check (needs static files tx data)COMMENT
LOWcrates/storage/provider/src/providers/database/mod.rs528 // Step 3: Static file checkpoint consistency (may prune)COMMENT
LOWcrates/storage/provider/src/providers/database/mod.rs536 // Step 4: Heal finalized/safe block numbers that may be ahead of theCOMMENT
LOW…s/storage/provider/src/providers/static_file/writer.rs394 // Step 1: Read all three sources of truthCOMMENT
LOW…s/storage/provider/src/providers/static_file/writer.rs415 // Step 2: Validate sidecar offsets against actual NippyJar stateCOMMENT
LOW…s/storage/provider/src/providers/static_file/writer.rs438 // Step 3: Determine correct state from synced files (source of truth)COMMENT
LOW…s/storage/provider/src/providers/static_file/writer.rs442 // Step 4: Heal if header doesn't match validated truthCOMMENT
LOW…age/provider/src/providers/static_file/writer_tests.rs459 // Step 1: Write 5 blocks (0-4), commitCOMMENT
LOW…age/provider/src/providers/static_file/writer_tests.rs466 // Step 2: Append 5 more blocks (5-9) WITHOUT committingCOMMENT
LOW…age/provider/src/providers/static_file/writer_tests.rs473 // Step 3: Prune to block 7 (should keep blocks 0-7, including uncommitted 5-7)COMMENT
LOW…age/provider/src/providers/static_file/writer_tests.rs478 // Step 4: CommitCOMMENT
LOW…age/provider/src/providers/static_file/writer_tests.rs482 // Step 5: Verify sidecar has 8 blocks, header has 8 blocks, rows are correctCOMMENT
LOW…age/provider/src/providers/static_file/writer_tests.rs772 // Step 1: Write 10 blocks with 5 changes each, commitCOMMENT
LOW…age/provider/src/providers/static_file/writer_tests.rs778 // Step 2: Corrupt sidecar by adding 3 fake blocks that point to valid butCOMMENT
LOW…age/provider/src/providers/static_file/writer_tests.rs784 // Step 3: Reopen provider - healing runs and clamps sidecar to header's 10COMMENT
LOW…age/provider/src/providers/static_file/writer_tests.rs793 // Step 4: Prune to block 6 (keep blocks 0-6, remove 7-9)COMMENT
LOW…age/provider/src/providers/static_file/writer_tests.rs800 // Step 5: Verify sidecar has 7 blocks, header has 7 blocks, rows are correctCOMMENT
LOWcrates/storage/db-common/src/init.rs684/// NOTE: This function is not idempotent. If the process crashes mid-import, the databaseCOMMENT
LOWcrates/trie/trie/src/hashed_cursor/post_state.rs354 /// NOTE: This function will not return any entry unless [`HashedCursor::seek`] has been called.COMMENT
LOWcrates/trie/db/src/changesets.rs159 // Step 2: collect the state revert from the database tip to just after the range.COMMENT
LOWcrates/trie/db/src/changesets.rs166 // Step 3: compute trie reverts from the database tip to just after the range.COMMENT
LOWcrates/trie/db/src/changesets.rs269 // Step 1: Get the trie changesets for the target block from cacheCOMMENT
LOWcrates/trie/db/src/changesets.rs272 // Step 2: Get the trie reverts for the state after the target block using the cacheCOMMENT
LOWcrates/trie/db/src/changesets.rs275 // Step 3: Create an InMemoryTrieCursorFactory with the revertsCOMMENT
LOWcrates/trie/db/src/changesets.rs280 // Step 4: Collect all account trie nodes that changed in the target blockCOMMENT
LOWcrates/trie/db/src/changesets.rs139 // Step 1: collect the state revert for the requested range.COMMENT
LOWcrates/trie/db/src/changesets.rs180 // Step 4: overlay the post-range trie and compute the trie revert to the pre-range state.COMMENT
LOWcrates/trie/db/src/changesets.rs292 // Step 5: Collect all storage trie nodes that changed in the target blockCOMMENT
LOWcrates/trie/sparse/tests/suite/take_updates.rs298 // Step 1: Remove key_c — with only 3 keys under the root branch, removing one causesCOMMENT
LOWcrates/trie/sparse/tests/suite/take_updates.rs305 // Step 2: Insert a new key at 0x03 — re-creates/modifies the branch structure at theCOMMENT
LOWcrates/trie/sparse/tests/suite/update_leaves.rs1151 // Step 1: Remove key_c to collapse the branch at 0x10..COMMENT
LOWcrates/trie/sparse/tests/suite/update_leaves.rs1159 // Step 2: Re-insert key_c with a new value — this re-creates the branch.COMMENT
LOWcrates/trie/sparse/tests/suite/update_leaves.rs1167 // Step 3: Update key_a — previously could be orphaned if branch collapseCOMMENT
LOWcrates/trie/sparse/tests/suite/update_leaves.rs1215 // Step 1: Remove key_a → branch collapses, key_b becomes the sole child.COMMENT
LOWcrates/trie/sparse/tests/suite/update_leaves.rs1236 // Step 2: Modify the remaining leaf's value — this must succeed after the collapseCOMMENT
LOWcrates/trie/sparse/tests/suite/lifecycle.rs434 // Step 2: Now send Changed for 2 of the touched keys + 1 new key.COMMENT
LOWcrates/trie/sparse/tests/suite/lifecycle.rs444 // Step 3: Compute root and verify against reference.COMMENT
LOWcrates/trie/sparse/tests/suite/lifecycle.rs501 // Step 2: Reveal the proof for the requested targets.COMMENT
LOWcrates/trie/sparse/tests/suite/lifecycle.rs505 // Step 3: Replace Touched with Changed(new_value) in the map.COMMENT
LOWcrates/trie/sparse/tests/suite/lifecycle.rs509 // Step 4: update_leaves again — key should now be drained.COMMENT
LOWcrates/trie/sparse/tests/suite/lifecycle.rs515 // Step 5: Compute root and verify against reference.COMMENT
LOWcrates/trie/sparse/tests/suite/lifecycle.rs546 // Step 1: Read existing leaf value via get_leaf_value.COMMENT
LOWcrates/trie/sparse/tests/suite/lifecycle.rs553 // Step 2: Decode the value and verify it matches expected.COMMENT
LOWcrates/trie/sparse/tests/suite/lifecycle.rs558 // Step 3: Modify the value (simulates changing balance while keeping storage root).COMMENT
LOWcrates/trie/sparse/tests/suite/lifecycle.rs562 // Step 4: Update the leaf with the re-encoded value.COMMENT
LOWcrates/trie/sparse/tests/suite/lifecycle.rs567 // Step 5: Compute root and verify against reference.COMMENT
LOWcrates/trie/sparse/tests/suite/lifecycle.rs597 // Step 1: find_leaf(existing_key, None) → ExistsCOMMENT
LOWcrates/trie/sparse/tests/suite/lifecycle.rs604 // Step 2: find_leaf(nonexistent_key, None) → NonExistentCOMMENT
LOWcrates/trie/sparse/tests/suite/lifecycle.rs611 // Step 3: Modify existing key2 and insert nonexistent_key.COMMENT
LOWcrates/trie/sparse/tests/suite/lifecycle.rs622 // Step 4: Compute root and verify against reference.COMMENT
LOWcrates/trie/sparse/tests/suite/lifecycle.rs631 // Step 5: find_leaf(nonexistent_key, None) → now ExistsCOMMENT
LOWcrates/trie/sparse/tests/suite/lifecycle.rs419 // Step 1: Prewarm 3 keys with Touched — all should be drained (paths are revealed).COMMENT
LOWcrates/trie/sparse/tests/suite/lifecycle.rs488 // Step 1: Touched on a key in group B's blinded subtrie → callback fires.COMMENT
LOWcrates/trie/sparse/src/state.rs317 /// NOTE: This method does not extensively validate the proof.COMMENT
LOWcrates/trie/sparse/src/state.rs327 /// NOTE: This method does not extensively validate the proof.COMMENT
LOWcrates/trie/sparse/src/arena/mod.rs1256 // Step 1: Handle trivial roots that don't need the stack-based walk.COMMENT
LOWcrates/trie/sparse/src/arena/mod.rs1283 // Step 2: Walk dirty branches depth-first using `cursor.next`. Only dirty branchesCOMMENT
LOW…ngine/tree/tests/e2e-testsuite/fcu_finalized_blocks.rs59 // Step 1: Finalize block 7 with head at block 10COMMENT
LOW…ngine/tree/tests/e2e-testsuite/fcu_finalized_blocks.rs64 // Step 2: Attempt to reorg to a fork that doesn't contain the finalized blockCOMMENT
2 more matches not shown…
Decorative Section Separators36 hits · 108 pts
SeverityFileLineSnippetContext
MEDIUMcrates/tasks/src/runtime.rs256// ── RuntimeInner ──────────────────────────────────────────────────────COMMENT
MEDIUMcrates/tasks/src/runtime.rs307// ── Runtime ───────────────────────────────────────────────────────────COMMENT
MEDIUMcrates/tasks/src/runtime.rs324// ── Pool accessors ────────────────────────────────────────────────────COMMENT
MEDIUMcrates/tasks/src/runtime.rs396// ── Test helpers ──────────────────────────────────────────────────────COMMENT
MEDIUMcrates/tasks/src/runtime.rs435// ── Spawn methods ─────────────────────────────────────────────────────COMMENT
MEDIUMcrates/tasks/src/runtime.rs841// ── RuntimeBuilder ────────────────────────────────────────────────────COMMENT
MEDIUMcrates/transaction-pool/src/lib.rs120//! Queued ─────────→ BaseFee/Blob ────────→ PendingCOMMENT
MEDIUMcrates/transaction-pool/src/lib.rs123//! └────────────────────┴─────────────────────┘COMMENT
MEDIUMcrates/transaction-pool/src/traits.rs30//! └──────────┐ ┌────────────────┘COMMENT
MEDIUMcrates/trie/trie/src/proof_v2/mod.rs2537 // ── Construct cached branch at [6] ─────────────────────────────────────COMMENT
MEDIUMcrates/trie/trie/src/proof_v2/mod.rs2554 // ── Construct cached branch at [6,a,3] ────────────────────────────────COMMENT
MEDIUMcrates/trie/trie/src/proof_v2/mod.rs2586 // ── Verify root hash ───────────────────────────────────────────────────COMMENT
MEDIUMcrates/trie/trie/src/proof_v2/mod.rs2611 // ── Verify proof for key_c contains nodes on its path ──────────────────COMMENT
MEDIUMcrates/trie/trie/src/proof_v2/mod.rs2652 // ── Construct cached branch at [6] ─────────────────────────────────────COMMENT
MEDIUMcrates/trie/trie/src/proof_v2/mod.rs2669 // ── Construct cached branch at [6,a,8] ────────────────────────────────COMMENT
MEDIUMcrates/trie/trie/src/proof_v2/mod.rs2697 // ── Verify root hash ───────────────────────────────────────────────────COMMENT
MEDIUMcrates/trie/trie/src/proof_v2/mod.rs2722 // ── Verify proof for key_c contains nodes on its path ──────────────────COMMENT
MEDIUMbin/reth/tests/it/main.rs7// ── Helpers ──────────────────────────────────────────────────────────────────COMMENT
MEDIUMbin/reth/tests/it/main.rs60// ── Original tests (from PR #22069) ──────────────────────────────────────────COMMENT
MEDIUMbin/reth/tests/it/main.rs60// ── Original tests (from PR #22069) ──────────────────────────────────────────COMMENT
MEDIUMbin/reth/tests/it/main.rs108// ── Subcommand --help coverage ───────────────────────────────────────────────COMMENT
MEDIUMbin/reth/tests/it/main.rs244// ── `config --default` outputs valid TOML ────────────────────────────────────COMMENT
MEDIUMbin/reth/tests/it/main.rs259// ── `dump-genesis` outputs valid JSON ────────────────────────────────────────COMMENT
MEDIUMbin/reth/tests/it/main.rs282// ── Dev node: send transaction round-trip ────────────────────────────────────COMMENT
MEDIUM.github/workflows/bench-scheduled.yml70 # ---------------------------------------------------------------------------COMMENT
MEDIUM.github/workflows/bench-scheduled.yml72 # ---------------------------------------------------------------------------COMMENT
MEDIUM.github/workflows/bench-scheduled.yml278 # ---------------------------------------------------------------------------COMMENT
MEDIUM.github/workflows/bench-scheduled.yml280 # ---------------------------------------------------------------------------COMMENT
MEDIUM.github/workflows/bench-scheduled.yml1087 # ---------------------------------------------------------------------------COMMENT
MEDIUM.github/workflows/bench-scheduled.yml1089 # ---------------------------------------------------------------------------COMMENT
MEDIUM.github/scripts/bench-scheduled-refs.sh43# ==========================================================================COMMENT
MEDIUM.github/scripts/bench-scheduled-refs.sh45# ==========================================================================COMMENT
MEDIUM.github/scripts/bench-scheduled-refs.sh129# ==========================================================================COMMENT
MEDIUM.github/scripts/bench-scheduled-refs.sh131# ==========================================================================COMMENT
MEDIUM.github/scripts/bench-scheduled-refs.sh229# ==========================================================================COMMENT
MEDIUM.github/scripts/bench-scheduled-refs.sh231# ==========================================================================COMMENT
Hyper-Verbose Identifiers37 hits · 32 pts
SeverityFileLineSnippetContext
LOW.github/scripts/bench-reth-charts.py54def plot_latency_and_throughput(CODE
LOW.github/scripts/bench-target-metric-sample-filter.py34def target_metric_sample_names(config: dict) -> list[str]:CODE
LOW.github/scripts/bench-reth-summary.py174def target_metric_query_encodes_seconds(query: str) -> bool:CODE
LOW.github/scripts/bench-reth-summary.py179def target_metric_counter_encodes_seconds(query: str) -> bool:CODE
LOW.github/scripts/bench-reth-summary.py183def target_metric_min_value_pct_total_latency(config: dict) -> float | None:CODE
LOW.github/scripts/bench-reth-summary.py140def parse_target_metric_query(query: str) -> tuple[str, str, dict[str, str]]:CODE
LOW.github/scripts/bench-reth-summary.py158def format_target_metric_query(metric_name: str, labels: dict[str, str]) -> str:CODE
LOW.github/scripts/bench-reth-summary.py653def target_metric_identity_key(labels: dict[str, str]) -> tuple[tuple[str, str], ...]:CODE
LOW.github/scripts/bench-reth-summary.py657def target_metric_candidate_identity_labels(CODE
LOW.github/scripts/bench-reth-summary.py669def target_metric_variable_identity_label_keys(CODE
LOW.github/scripts/bench-reth-summary.py693def target_metric_identity_labels(CODE
LOW.github/scripts/bench-reth-summary.py706def target_metric_display_query(query: str, identity_labels: dict[str, str] | None = None) -> str:CODE
LOW.github/scripts/bench-reth-summary.py714def group_query_samples_by_identity(CODE
LOW.github/scripts/bench-reth-summary.py750def collect_metric_identities(grouped_scrapes: list[dict]) -> dict[tuple[tuple[str, str], ...], dict[str, str]]:CODE
LOW.github/scripts/bench-reth-summary.py758def format_target_metric_identity(query: str, identity_labels: dict[str, str]) -> str:CODE
LOW.github/scripts/bench-reth-summary.py774def load_target_metric_scrapes(path: str) -> list[dict]:CODE
LOW.github/scripts/bench-reth-summary.py816def compute_target_metric_series_stats(values: list[float]) -> dict[str, float]:CODE
LOW.github/scripts/bench-reth-summary.py828def counter_target_metric_stat_value(values: list[float], stat_name: str) -> float:CODE
LOW.github/scripts/bench-reth-summary.py840def paired_target_metric_observations(CODE
LOW.github/scripts/bench-reth-summary.py866def target_metric_run_stat_value(run: dict, stat_name: str) -> float:CODE
LOW.github/scripts/bench-reth-summary.py879def _target_metric_cluster_ci(CODE
LOW.github/scripts/bench-reth-summary.py904def _target_metric_single_run_ci(CODE
LOW.github/scripts/bench-reth-summary.py922def compute_target_metric_change(CODE
LOW.github/scripts/bench-reth-summary.py1033def query_counter_target_metric_run(CODE
LOW.github/scripts/bench-reth-summary.py1121def query_histogram_target_metric_run(CODE
LOW.github/scripts/bench-reth-summary.py1215def load_target_metric_run_context(path: str) -> dict:CODE
LOW.github/scripts/bench-reth-summary.py1239def collect_target_metric_identity_label_keys(CODE
LOW.github/scripts/bench-reth-summary.py1310def summarize_target_metric_runs(run_items: list[dict], fields: tuple[str, ...]) -> dict:CODE
LOW.github/scripts/bench-reth-summary.py1316def summarize_target_metric_change(changes: dict[str, dict], display_stats: tuple[str, ...]) -> dict:CODE
LOW.github/scripts/bench-reth-summary.py1330def collect_query_metric_identities(CODE
LOW.github/scripts/bench-reth-summary.py1370def build_target_metric_entry(CODE
LOW.github/scripts/bench-reth-summary.py1434def compute_target_metric_summary(CODE
LOW.github/scripts/bench-reth-summary.py1650def generate_comparison_table(CODE
LOW.github/scripts/bench-reth-summary.py1754def generate_target_metric_table(target_metrics: dict | None) -> str:CODE
LOW.github/scripts/bench-reth-summary.py1875def resolve_observability_range(CODE
LOW.github/scripts/bench-reth-summary.py1893def generate_observability_section(summary: dict) -> list[str]:CODE
LOW.github/scripts/fetch-grafana-dashboard.py85def has_expression_datasource(dashboard: dict) -> bool:CODE
Synthetic Comment Markers2 hits · 15 pts
SeverityFileLineSnippetContext
HIGHcrates/trie/common/src/proofs.rs721 /// Array of storage proofs as requested.COMMENT
HIGHcrates/trie/common/src/proofs.rs894 /// Array of storage proofs as requested.COMMENT
AI Slop Vocabulary4 hits · 12 pts
SeverityFileLineSnippetContext
MEDIUMcrates/stages/stages/src/stages/sender_recovery.rs345 // However, using `std::thread::spawn` allows us to utilize the timeout graceCOMMENT
MEDIUMcrates/storage/storage-api/src/receipts.rs49 /// because it can leverage the underlying `receipts_by_tx_range` for the entire transactionCOMMENT
MEDIUMcrates/storage/libmdbx-rs/src/flags.rs9 /// Default robust and durable sync mode.COMMENT
MEDIUM…ne/tree/src/tree/payload_processor/bal_prewarm_pool.rs113/// In order to utilize the parallelism of `NVMe` we have to give it enough work, or equally,COMMENT
Self-Referential Comments4 hits · 12 pts
SeverityFileLineSnippetContext
MEDIUMcrates/rpc/rpc/src/eth/core.rs100 /// # Create an instance with noop ethereum implementationsCOMMENT
MEDIUMcrates/rpc/rpc/src/eth/filter.rs121 /// # Create a new instance with [`EthApi`](crate::EthApi)COMMENT
MEDIUM.github/scripts/hive/ignored_tests.yaml3# This file contains tests that should be ignored for various reasons (flaky, known issues, etc).COMMENT
MEDIUM.github/scripts/hive/build_simulators.sh21# Create the hive_assets directoryCOMMENT
Example Usage Blocks3 hits · 4 pts
SeverityFileLineSnippetContext
LOWscripts/patch-alloy.sh4# Usage:COMMENT
LOW.github/scripts/bench-benchmarkoor-run.sh5# Usage:COMMENT
LOW.github/scripts/verify_image_arch.sh4# Usage:COMMENT
Redundant / Tautological Comments3 hits · 4 pts
SeverityFileLineSnippetContext
LOW.github/scripts/hive/run_simulator.sh41 # Check if no tests were run. sed removes ansi colorsCOMMENT
LOW.github/scripts/hive/parse.py36 # Check if this is an ignored testCOMMENT
LOW.github/scripts/hive/parse.py66# Check if there are any unexpected failures or passes and exit with errorCOMMENT
Unused Imports3 hits · 2 pts
SeverityFileLineSnippetContext
LOW.github/scripts/bench-benchmarkoor-summary.py4CODE
LOW.github/scripts/bench-target-metric-sample-filter.py4CODE
LOW.github/scripts/bench-reth-summary.py20CODE
Excessive Try-Catch Wrapping1 hit · 2 pts
SeverityFileLineSnippetContext
MEDIUM.github/workflows/grafana.yml35 print(f'Error: {e}', file=sys.stderr)CODE
Deep Nesting2 hits · 2 pts
SeverityFileLineSnippetContext
LOW.github/scripts/bench-reth-summary.py1434CODE
LOW.github/scripts/fetch-grafana-dashboard.py89CODE