Repository Analysis

malisper/pgrust

Postgres rewritten in Rust, now passing 100% of the Postgres regression tests

4.6 Likely human-written View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of malisper/pgrust, a Rust project with 2,915 GitHub stars. SynthScan v2.0 examined 2,043,677 lines of code across 5026 source files, recording 9471 pattern matches distributed across 10 syntactic categories. The overall adjusted score of 4.6 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.6
Adjusted Score
4.6
Raw Score
100%
Time Factor
2026-07-10
Last Push
2.9K
Stars
Rust
Language
2.0M
Lines of Code
5.0K
Files
9.5K
Pattern Hits
2026-07-14
Scan Date
0.00
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 3HIGH 3MEDIUM 61LOW 9404

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 9471 distinct pattern matches across 10 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 Block9349 hits · 9124 pts
SeverityFileLineSnippetContext
LOWCargo.toml1501# ~278 MB wasm module (no opt; huge code) whose wasmtime cold-compile takes ~10COMMENT
LOWCargo.toml1521# that the tcop loop's catch_unwind is meant to recover;COMMENT
LOWCargo.toml1541# fundamentally large, and module size dominates first-loadCOMMENT
LOWcrates/pl/plpgsql/src/comp_seams/src/lib.rs1//! Seam declarations for the PL/pgSQL compiler unit (`pl_comp.c`)'sCOMMENT
LOWcrates/pl/plpgsql/src/comp_seams/src/lib.rs21//! simple case, `*cword` [`PLcword`] for the compound cases) is filled withCOMMENT
LOWcrates/pl/plpgsql/src/comp_seams/src/lib.rs81 word1: &str,COMMENT
LOWcrates/pl/plpgsql/src/handler/Cargo.toml41resowner_seams = { path = "../../../../backend/utils/resowner/resowner_seams" }COMMENT
LOWcrates/pl/plpgsql/src/handler/Cargo.toml61COMMENT
LOWcrates/pl/plpgsql/src/handler/src/lib.rs1//! `backend-pl-plpgsql-handler` — the PL/pgSQL fmgr-facing handlerCOMMENT
LOWcrates/pl/plpgsql/src/handler/src/lib.rs21//! SQL or expression evaluation that reaches the value substrate) runsCOMMENT
LOWcrates/pl/plpgsql/src/handler/src/lib.rs321 register_custom_gucs();COMMENT
LOWcrates/pl/plpgsql/src/handler/src/lib.rs441 Some(extra_checks_guc_check_hook),COMMENT
LOWcrates/pl/plpgsql/src/handler/src/lib.rs481pub fn plpgsql_call_handler(fcinfo: &mut FunctionCallInfoBaseData) -> PgResult<Datum> {COMMENT
LOWcrates/pl/plpgsql/src/handler/src/lib.rs601// ---------------------------------------------------------------------------COMMENT
LOWcrates/pl/plpgsql/src/handler/src/lib.rs661}COMMENT
LOWcrates/pl/plpgsql/src/handler/src/lib.rs781COMMENT
LOWcrates/pl/plpgsql/src/handler/src/lib.rs961 // canonical by-ref Datum so the output function reads the real valueCOMMENT
LOWcrates/pl/plpgsql/src/handler/src/lib.rs1061 // by a plain I/O coercion. The C path builds a FuncExpr over theCOMMENT
LOWcrates/pl/plpgsql/src/handler/src/lib.rs1141 return Ok(out);COMMENT
LOWcrates/pl/plpgsql/src/handler/src/lib.rs1521 // owned in this unit (pl_handler.c); the executor reads it through the seam.COMMENT
LOWcrates/pl/plpgsql/src/handler/src/lib.rs1661 ::plpgsql_exec_seams::set_current_resource_owner::set(|owner| {COMMENT
LOWcrates/pl/plpgsql/src/handler/src/lib.rs1821/// already-evaluated FOREACH array's verbatim varlena byte image, its runtimeCOMMENT
LOWcrates/pl/plpgsql/src/handler/src/seam.rs1//! Outward substrate the PL/pgSQL handler consumes (`pl_handler.c`'s externals).COMMENT
LOWcrates/pl/plpgsql/src/handler/src/seam.rs21/// `T_CallContext` (nodetags.h).COMMENT
LOWcrates/pl/plpgsql/src/handler/src/seam.rs61/// (utils/init/miscinit.c). The rendezvous-variable substrate is not yetCOMMENT
LOWcrates/pl/plpgsql/src/handler/src/seam.rs101/// tag-only fmgr `ContextNode`; instead it lives on the firing path's per-callCOMMENT
LOWcrates/pl/plpgsql/src/handler/src/seam.rs141/// which on a cache miss reads the called function's `pg_proc` row and runsCOMMENT
LOWcrates/pl/plpgsql/src/handler/src/seam.rs161) -> ::plpgsql::PLpgSQL_function {COMMENT
LOWcrates/pl/plpgsql/src/handler/src/seam.rs201/// field-bearing call node is present (the compile body then errors for aCOMMENT
LOWcrates/pl/plpgsql/src/handler/src/seam.rs481/// `context` flag. `plpgsql_compile` resolves the on-disk `pg_proc` row and callsCOMMENT
LOWcrates/pl/plpgsql/src/plpgsql_exec_seams/src/lib.rs1//! Seam declarations for the PL/pgSQL executor unit (`pl_exec.c`).COMMENT
LOWcrates/pl/plpgsql/src/plpgsql_exec_seams/src/lib.rs41 /// `plpgsql_exec_get_datum_type_info(estate, datum, &typeId, &typMod, &collation)`COMMENT
LOWcrates/pl/plpgsql/src/plpgsql_exec_seams/src/lib.rs121 /// The PL/pgSQL error-context line(s) for the live exec stack, supplied forCOMMENT
LOWcrates/pl/plpgsql/src/plpgsql_exec_seams/src/lib.rs141seam_core::seam!(COMMENT
LOWcrates/pl/plpgsql/src/plpgsql_exec_seams/src/lib.rs161 /// `plpgsql_recognize_err_condition(condname, allow_sqlstate)` (`pl_comp.c`):COMMENT
LOWcrates/pl/plpgsql/src/plpgsql_exec_seams/src/lib.rs181 pub reqtypmod: int32,COMMENT
LOWcrates/pl/plpgsql/src/plpgsql_exec_seams/src/lib.rs221COMMENT
LOWcrates/pl/plpgsql/src/plpgsql_exec_seams/src/lib.rs261seam_core::seam!(COMMENT
LOWcrates/pl/plpgsql/src/plpgsql_exec_seams/src/lib.rs281);COMMENT
LOWcrates/pl/plpgsql/src/plpgsql_exec_seams/src/lib.rs301/// row count, whether a tuple table was produced, the first result row's columnsCOMMENT
LOWcrates/pl/plpgsql/src/plpgsql_exec_seams/src/lib.rs341/// varlena / cstring byte image (`datumCopy`'d out of the cast working context),COMMENT
LOWcrates/pl/plpgsql/src/plpgsql_exec_seams/src/lib.rs401//COMMENT
LOWcrates/pl/plpgsql/src/plpgsql_exec_seams/src/lib.rs441COMMENT
LOWcrates/pl/plpgsql/src/plpgsql_exec_seams/src/lib.rs461 /// out-of-band companion, so a later expression evaluation (e.g.COMMENT
LOWcrates/pl/plpgsql/src/plpgsql_exec_seams/src/lib.rs481 pub fn get_namespace_name(nspoid: Oid) -> PgResult<std::string::String>COMMENT
LOWcrates/pl/plpgsql/src/plpgsql_exec_seams/src/lib.rs501/// `text`/`numeric`/… array element, or — in the SLICE case — the freshly builtCOMMENT
LOWcrates/pl/plpgsql/src/plpgsql_exec_seams/src/lib.rs521 pub result_type: Oid,COMMENT
LOWcrates/pl/plpgsql/src/plpgsql_exec_seams/src/lib.rs541 ///COMMENT
LOWcrates/pl/plpgsql/src/plpgsql_exec_seams/src/lib.rs601/// flattens to: the verbatim `HeapTupleHeader` varlena image, plus the row'sCOMMENT
LOWcrates/pl/plpgsql/src/plpgsql_exec_seams/src/lib.rs621 /// installs it.COMMENT
LOWcrates/pl/plpgsql/src/plpgsql_exec_seams/src/lib.rs641// cursor/portal surface, so it reaches it through these seams; the handlerCOMMENT
LOWcrates/pl/plpgsql/src/plpgsql_exec_seams/src/lib.rs661/// no rows (C's `None_Receiver`).COMMENT
LOWcrates/pl/plpgsql/src/plpgsql_scanner/src/lib.rs1//! Lexical scanning for PL/pgSQL — a faithful port of `pl_scanner.c`.COMMENT
LOWcrates/pl/plpgsql/src/plpgsql_scanner/src/lib.rs21//! words directly. The repo's `core_yylex` seam is stateless and takes noCOMMENT
LOWcrates/pl/plpgsql/src/plpgsql_scanner/src/lib.rs41COMMENT
LOWcrates/pl/plpgsql/src/plpgsql_scanner/src/lib.rs361COMMENT
LOWcrates/pl/plpgsql/src/plpgsql_scanner/src/lib.rs421 /// query bytes. The repo's `core_yylex` seam is stateless, so unlike C'sCOMMENT
LOWcrates/pl/plpgsql/src/plpgsql_scanner/src/lib.rs441COMMENT
LOWcrates/pl/plpgsql/src/plpgsql_scanner/src/lib.rs561 // Not a potential plpgsql variable name, just return the data.COMMENT
LOWcrates/pl/plpgsql/src/plpgsql_scanner/src/lib.rs701 }COMMENT
9289 more matches not shown…
Modern AI Meta-Vocabulary41 hits · 123 pts
SeverityFileLineSnippetContext
MEDIUMcrates/backend/access/transam/xlogrecovery/src/lib.rs58//! The **stop / desc / startupxlog families are still scaffold**: honestCOMMENT
MEDIUM…/backend/access/transam/xlogrecovery/src/readrecord.rs18//! the sanctioned seam-and-panic boundary, exactly as the re-scaffold notes.COMMENT
MEDIUM…/backend/access/transam/xlogrecovery/src/readrecord.rs70/// re-scaffold note.COMMENT
MEDIUMcrates/backend/nodes/nodes_core/src/lib.rs29//! `nodeMemoize`, `nbtree`, …). It is ported with full logic in THIS scaffoldCOMMENT
MEDIUMcrates/backend/catalog/aclchk/src/lib.rs22//! kept at `scaffold` until those land (the seam-install guard exempts anCOMMENT
MEDIUMcrates/backend/catalog/aclchk/src/lib.rs1380/// is held at `scaffold` so the seam-install guard exempts them.COMMENT
MEDIUMcrates/backend/catalog/aclchk/src/lib.rs1624 // row is held at `scaffold` so the seam-install guard exempts thatCOMMENT
MEDIUMcrates/backend/catalog/aclchk/src/lib.rs1645 // NOT installed; the CATALOG row is held at `scaffold` so the seam-installCOMMENT
MEDIUMcrates/backend/catalog/objectaddress/src/lib.rs4//! NEEDS_DECOMP scaffold. The crate is split into five families:COMMENT
MEDIUMcrates/backend/utils/adt/misc2/src/lib.rs11//! expanded container embeds; ported in the scaffold phase so the unit (andCOMMENT
MEDIUMcrates/backend/utils/adt/misc2/src/expandeddatum.rs10//! ported in the scaffold phase and its two consumed seamsCOMMENT
MEDIUMcrates/backend/utils/adt/adt_numeric/src/io.rs358 // C sets `dest->sign = sign` here; this scaffold drops the sign parameter,COMMENT
MEDIUMcrates/backend/utils/adt/adt_numeric/src/lib.rs6//! modules declared below. The scaffold lands the keystone + module skeletons;COMMENT
MEDIUM…end/utils/adt/adt_numeric/src/kernel_transcendental.rs885/// numeric.c:11451. C derives the result scale internally; the scaffold liftsCOMMENT
MEDIUMcrates/backend/utils/adt/adt_acl/src/acl_ops.rs685/// `PG_RETURN_BOOL`) is the not-yet-ported fmgr/SRF layer; the argless scaffoldCOMMENT
MEDIUMcrates/backend/utils/adt/adt_acl/src/acl_ops.rs715/// scaffold signature carries none of those inputs, so this panics loudly untilCOMMENT
MEDIUMcrates/backend/utils/adt/adt_acl/src/acl_ops.rs858/// the scaffold signature (the priv table) and is exercised viaCOMMENT
MEDIUMcrates/backend/utils/adt/varlena/src/lib.rs8//! the decomposition scaffold: the [`keystone`] family (the shared carrierCOMMENT
MEDIUMcrates/backend/utils/adt/varlena/src/lib.rs41//! **REAL in this scaffold.**COMMENT
MEDIUMcrates/backend/utils/adt/varlena/src/position_ops.rs353/// owner seam (the scaffold's no-Mcx signature is widened here, the onlyCOMMENT
MEDIUMcrates/backend/utils/adt/varlena/src/keystone.rs25//! ## What lives here (REAL, ported in the scaffold phase)COMMENT
MEDIUMcrates/backend/utils/adt/varlena/src/keystone.rs25//! ## What lives here (REAL, ported in the scaffold phase)COMMENT
MEDIUM…s/backend/utils/adt/multirangetypes/src/typcache_io.rs578// pqformat-style binary cursor helpers (pqformat.c), over the scaffold'sCOMMENT
MEDIUMcrates/backend/utils/cache/relcache/src/lib.rs57//! **Owns + installs the relcache seams.** (REAL — landed in this scaffold.)COMMENT
MEDIUMcrates/backend/storage/lmgr/lmgr_proc/src/seam.rs25//! the scaffold stage panics through them so the control flow inCOMMENT
MEDIUMcrates/backend/storage/file/fd/src/temp_files.rs35/// Map the scaffold's `PgResult<File>` open result onto C's `File` sentinel:COMMENT
MEDIUM…s/backend/storage/ipc/src/ipci_seams_storage_access.rs9//! and type-checked at scaffold time; [`super::ipci_core`] composes them inCOMMENT
MEDIUMcrates/backend/executor/execTuples/src/slot_deform.rs569/// covers both, matching the scaffold signature.COMMENT
MEDIUMcrates/backend/executor/spi/src/lib.rs3//! # Port status: NEEDS_DECOMP (scaffold + grounded backbone + residue)COMMENT
MEDIUMcrates/backend/executor/spi/src/lib.rs3//! # Port status: NEEDS_DECOMP (scaffold + grounded backbone + residue)COMMENT
MEDIUM…s/backend/executor/execExpr/src/execExpr_domain_agg.rs1931// Hashed-subplan combining helpers (nodeSubplan.c) — unchanged from scaffold.COMMENT
MEDIUMcrates/backend/executor/nodeAgg/src/lib.rs5//! still-unported plan-node / nodeFuncs expression vocabulary, not scaffoldCOMMENT
MEDIUMcrates/backend/executor/nodeAgg/src/sorted_grouping.rs425// The scaffold carries `phase` as an index into `aggstate.phases` and theCOMMENT
MEDIUM…backend/executor/execProcnode/src/execProcnode_init.rs30/// `ExecInit*` routines have a seam declared in this scaffold yet, so everyCOMMENT
MEDIUMcrates/backend/executor/nodeHash/src/lib.rs690/// Silence the unused-`Size` import warning in the scaffold.COMMENT
MEDIUMcrates/backend/executor/execExprInterp/src/dispatch.rs26//! build; the scaffold keeps its signature, so its faithful opcode-orderingCOMMENT
MEDIUMcrates/backend/executor/execExprInterp/src/dispatch.rs754 // carried here as the usize the scaffold signature uses):COMMENT
MEDIUMcrates/_support/types/nodes/src/nodehash.rs851/// Silence unused-import lints in the scaffold (the bodies consume `Mcx`).COMMENT
MEDIUMcrates/_support/seam/init/src/lib.rs1903 /// `needs-decomp`, `partial`, `scaffold`) STAY EXEMPT: those ownersCOMMENT
MEDIUMcrates/_support/seam/init/src/lib.rs2143 /// mid-port frontier (`todo`/scaffold owners) legitimately seam-and-panicCOMMENT
MEDIUMcrates/contrib/amcheck/verify_nbtree/src/lib.rs7// During the decomposition scaffold every family body is mirror-and-panic, soCOMMENT
AI Slop Vocabulary16 hits · 52 pts
SeverityFileLineSnippetContext
MEDIUMcrates/backend/access/common/detoast/src/lib.rs606 // more robust as well.COMMENT
MEDIUMcrates/backend/access/heap/heaptoast/src/lib.rs624/// containing no out-of-line toasted fields. Essentially `heap_form_tuple`,COMMENT
MEDIUMcrates/backend/access/gist/gist_core/src/gistutil.rs1096 // function exists, then there's a reason for it. Essentially the same codeCOMMENT
MEDIUMcrates/backend/utils/adt/adt_datetime/Cargo.toml40# The `get_share_path` (`common/path.c`) seam, installed by the test harnessCOMMENT
MEDIUMcrates/backend/utils/adt/adt_datetime/Cargo.toml44# harness installs a faithful local `get_share_path` body (a port ofCOMMENT
MEDIUMcrates/backend/utils/adt/adt_datetime/Cargo.toml49# `backend-storage-file-fd`; the test harness installs a `std::fs::read_dir`COMMENT
MEDIUM…kend/utils/activity/activity_pgstat/src/pgstat_core.rs354/// This is the seamless reconciliation of C's raw `PgStat_TableStatus *` walksCOMMENT
MEDIUMcrates/backend/storage/lmgr/lmgr_proc/src/proc_misc.rs139/// As this uses the generic process latch the caller has to be robust againstCOMMENT
MEDIUMcrates/backend/storage/ipc/procarray/src/membership.rs74 // Keep the procs array sorted by (PGPROC *) so that we can utilizeCOMMENT
MEDIUMcrates/backend/executor/nodeCtescan/src/lib.rs125 // types are not robust about being called again when they've already returnedCOMMENT
MEDIUMcrates/backend/executor/nodeMaterial/src/lib.rs141 // types are not robust about being called again when they've alreadyCOMMENT
MEDIUMcrates/backend/executor/execExpr/src/execExpr_core.rs3079 // Certainly the right type, so needn't check.COMMENT
MEDIUM…backend/commands/indexcmds/src/reindex_concurrently.rs302 // Definitely no indexes, so leave.COMMENT
MEDIUMcrates/backend/commands/dbcommands/src/lib.rs126 // Definitely no database of that name.COMMENT
MEDIUMcrates/_support/mcx/src/tests.rs797 // is awkward; instead we observe the live charge. A simpler, robust proxy:COMMENT
MEDIUMcrates/common/sha2/src/lib.rs40// The crate itself is `#![no_std]`; the unit tests use the std test harness.COMMENT
Verbosity Indicators22 hits · 42 pts
SeverityFileLineSnippetContext
LOWcrates/backend/rewrite/rewritehandler/src/engine.rs3400 // Step 1: non-SELECT rules.COMMENT
LOWcrates/backend/rewrite/rewritehandler/src/engine.rs3404 // Step 2: RIR rules on each query.COMMENT
LOWcrates/backend/rewrite/rewritehandler/src/engine.rs3413 // Step 3: command-tag assignment.COMMENT
LOWcrates/backend/utils/adt/adt_datetime/src/hash.rs32// Step 1: the small integer-hash folds (stand-ins for hashfunc.c + hashutils).COMMENT
LOWcrates/backend/utils/adt/adt_datetime/src/hash.rs81// Step 2: the 12 date/time hash functions.COMMENT
LOWcrates/backend/utils/activity/waitevent/src/lib.rs473 // Step 1: substr($desc, 1, -2). `doc` includes the surrounding quotes andCOMMENT
LOWcrates/backend/utils/activity/waitevent/src/lib.rs483 // Step 3: <quote>X</quote> -> "X".COMMENT
LOWcrates/backend/utils/activity/waitevent/src/lib.rs485 // Step 4: <tag>X</tag> -> X (non-greedy paired markup strip).COMMENT
LOWcrates/backend/utils/activity/waitevent/src/lib.rs487 // Step 5: rewrite GUC xrefs.COMMENT
LOWcrates/backend/utils/activity/waitevent/src/lib.rs489 // Step 6: drop "; see ..." to end of string.COMMENT
LOW…backend/storage/ipc/procarray/src/visibility_lookup.rs123 // Step 1: check the main Xid.COMMENT
LOW…backend/storage/ipc/procarray/src/visibility_lookup.rs134 // Step 2: check the cached child-Xids arrays.COMMENT
LOW…backend/storage/ipc/procarray/src/visibility_lookup.rs154 // Step 3: in hot standby mode, check the known-assigned-xids list.COMMENT
LOW…backend/storage/ipc/procarray/src/visibility_lookup.rs189 // Step 4: have to check pg_subtrans. It's either a subtransaction of one ofCOMMENT
LOWcrates/common/ryu/src/f2s.rs212 // Step 2: Determine the interval of legal decimal representations.COMMENT
LOWcrates/common/ryu/src/f2s.rs218 // Step 3: Convert to a decimal power base using 64-bit arithmetic.COMMENT
LOWcrates/common/ryu/src/f2s.rs281 // Step 4: Find the shortest decimal representation.COMMENT
LOWcrates/common/ryu/src/d2s.rs164 // Step 2: Determine the interval of legal decimal representations.COMMENT
LOWcrates/common/ryu/src/d2s.rs169 // Step 3: Convert to a decimal power base using 128-bit arithmetic.COMMENT
LOWcrates/common/ryu/src/d2s.rs228 // Step 4: Find the shortest decimal representation in the interval.COMMENT
LOWcrates/common/ryu/src/d2s.rs329 // Step 5: Print the decimal representation.COMMENT
LOWcrates/common/ryu/src/d2s.rs576 // Step 1: Decode the floating-point number.COMMENT
Structural Annotation Overuse20 hits · 38 pts
SeverityFileLineSnippetContext
LOWcrates/backend/rewrite/rewritehandler/src/engine.rs3400 // Step 1: non-SELECT rules.COMMENT
LOWcrates/backend/rewrite/rewritehandler/src/engine.rs3404 // Step 2: RIR rules on each query.COMMENT
LOWcrates/backend/rewrite/rewritehandler/src/engine.rs3413 // Step 3: command-tag assignment.COMMENT
LOWcrates/backend/utils/adt/adt_datetime/src/hash.rs32// Step 1: the small integer-hash folds (stand-ins for hashfunc.c + hashutils).COMMENT
LOWcrates/backend/utils/adt/adt_datetime/src/hash.rs81// Step 2: the 12 date/time hash functions.COMMENT
LOWcrates/backend/utils/activity/waitevent/src/lib.rs473 // Step 1: substr($desc, 1, -2). `doc` includes the surrounding quotes andCOMMENT
LOWcrates/backend/utils/activity/waitevent/src/lib.rs487 // Step 5: rewrite GUC xrefs.COMMENT
LOWcrates/backend/utils/activity/waitevent/src/lib.rs489 // Step 6: drop "; see ..." to end of string.COMMENT
LOW…backend/storage/ipc/procarray/src/visibility_lookup.rs123 // Step 1: check the main Xid.COMMENT
LOW…backend/storage/ipc/procarray/src/visibility_lookup.rs134 // Step 2: check the cached child-Xids arrays.COMMENT
LOW…backend/storage/ipc/procarray/src/visibility_lookup.rs154 // Step 3: in hot standby mode, check the known-assigned-xids list.COMMENT
LOW…backend/storage/ipc/procarray/src/visibility_lookup.rs189 // Step 4: have to check pg_subtrans. It's either a subtransaction of one ofCOMMENT
LOWcrates/common/ryu/src/f2s.rs212 // Step 2: Determine the interval of legal decimal representations.COMMENT
LOWcrates/common/ryu/src/f2s.rs218 // Step 3: Convert to a decimal power base using 64-bit arithmetic.COMMENT
LOWcrates/common/ryu/src/f2s.rs281 // Step 4: Find the shortest decimal representation.COMMENT
LOWcrates/common/ryu/src/d2s.rs164 // Step 2: Determine the interval of legal decimal representations.COMMENT
LOWcrates/common/ryu/src/d2s.rs169 // Step 3: Convert to a decimal power base using 128-bit arithmetic.COMMENT
LOWcrates/common/ryu/src/d2s.rs228 // Step 4: Find the shortest decimal representation in the interval.COMMENT
LOWcrates/common/ryu/src/d2s.rs329 // Step 5: Print the decimal representation.COMMENT
LOWcrates/common/ryu/src/d2s.rs576 // Step 1: Decode the floating-point number.COMMENT
Hallucination Indicators3 hits · 30 pts
SeverityFileLineSnippetContext
CRITICALcrates/backend/access/common/indextuple/src/lib.rs243 out[0..2].copy_from_slice(&self.header.t_tid.ip_blkid.bi_hi.to_ne_bytes());CODE
CRITICALcrates/backend/access/common/indextuple/src/lib.rs244 out[2..4].copy_from_slice(&self.header.t_tid.ip_blkid.bi_lo.to_ne_bytes());CODE
CRITICALcrates/backend/commands/copyfrom/src/lib.rs942 let name = state.cstate.rel.rd_rel.relname.as_str();CODE
Synthetic Comment Markers3 hits · 22 pts
SeverityFileLineSnippetContext
HIGHcrates/backend/utils/adt/misc2/src/expandedrecord.rs1193 // Detoast as requested while copying the value.COMMENT
HIGHcrates/backend/utils/cache/cache_typcache/src/lib.rs1035 // Set up fmgr lookup info as requested.COMMENT
HIGHcrates/backend/commands/typecmds/src/lib.rs4679/// label (`AddEnumLabel`), placing it before/after a neighbor as requested.COMMENT
Fake / Example Data13 hits · 20 pts
SeverityFileLineSnippetContext
LOWcrates/backend/optimizer/util/pathnode/src/create.rs557 let dummy_id = root.alloc_path(PathNode::Path(sort_dummy));CODE
LOWcrates/backend/optimizer/util/pathnode/src/create.rs560 root, dummy_id, &pathkeys, sub_disabled, sub_total, sub_rows, width, 0.0, wm,CODE
LOWcrates/backend/optimizer/util/pathnode/src/create.rs563 let d = root.path(dummy_id).base();CODE
LOWcrates/backend/optimizer/util/pathnode/src/create.rs2539 let dummy_id = root.alloc_path(PathNode::Path(dummy));CODE
LOWcrates/backend/optimizer/util/pathnode/src/create.rs2542 root, dummy_id, &[], sp.disabled_nodes, sp.total_cost, rel_rows, sub_width, 0.0, wm,CODE
LOWcrates/backend/optimizer/util/pathnode/src/create.rs2545 let d = root.path(dummy_id).base();CODE
LOWcrates/backend/optimizer/util/pathnode/src/create.rs2564 let dummy_id = root.alloc_path(PathNode::Path(dummy));CODE
LOWcrates/backend/optimizer/util/pathnode/src/create.rs2566 run, root, dummy_id, AGG_HASHED, None, num_cols, path.rows, &[], sp.disabled_nodes,CODE
LOWcrates/backend/optimizer/util/pathnode/src/create.rs2569 let d = root.path(dummy_id).base();CODE
LOWcrates/backend/optimizer/plan/createplan/src/lib.rs3706 let dummy_id = root.alloc_path(PathNode::MaterialPath(MaterialPath {CODE
LOWcrates/backend/optimizer/plan/createplan/src/lib.rs3712 dummy_id,CODE
LOWcrates/backend/optimizer/plan/createplan/src/lib.rs3720 let p = root.path(dummy_id).base();CODE
LOWcrates/backend/optimizer/plan/plan_small/src/lib.rs267 * Examine any "placeholder" expressions generated during subquery pullup.COMMENT
Decorative Section Separators3 hits · 9 pts
SeverityFileLineSnippetContext
MEDIUM…d/access/rmgrdesc/rmgrdesc_small/src/rmgrdesc_utils.rs50// ── seam-compatible entry points ─────────────────────────────────────────────COMMENT
MEDIUMcrates/backend/commands/policy/src/lib.rs31//! ─────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMcrates/backend/commands/policy/src/lib.rs47//! ─────────────────────────────────────────────────────────────────────────COMMENT
Self-Referential Comments1 hit · 3 pts
SeverityFileLineSnippetContext
MEDIUMdocker/entrypoint.sh102 # Create the transaction log directory before initdb is run so the directory is owned by the correct userCOMMENT