AI Slop Code RIsk Monitor

surrealdb/surrealdb

A scalable, distributed, collaborative, document-graph database, for the realtime web

4.4 Low pattern signal View on GitHub

Maintenance and Governance Review

This report summarizes scanner evidence for surrealdb/surrealdb, a Rust project with 33,113 GitHub stars. SynthScan examined 572,712 lines of code across 1915 source files, recording 1973 pattern matches distributed across 18 syntactic categories. The legacy adjusted pattern signal is 4.4 (Low 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.

4.4
Adjusted Signal
4.4
Raw Pattern Score
100%
Time Factor
2026-10-08
Last Push
33.1K
Stars
Rust
Language
572.7K
Lines of Code
1.9K
Files
2.0K
Pattern Hits
2026-10-12
Scan Date
0.01
HC Hit Rate

Risk Review · v3

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

Cognitive Ownership Risk 14.7/100 · LOW

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

Hallucinated Dependency & Supply Chain Risk 2.0/100 · LOW

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

Agent Over-Engineering Ratio 4.0/100 · LOW

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

PR Review Velocity Impact 19.7/100 · LOW

Which changes need focused human review? 1973 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 16HIGH 7MEDIUM 181LOW 1769

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 1973 distinct pattern matches across 18 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 Block1659 hits · 1627 pts
SeverityFileLineSnippetContext
LOWCargo.toml361COMMENT
LOWCargo.toml381bool_assert_comparison = "allow"COMMENT
LOWCargo.toml401# https://rust-lang.github.io/rust-clippy/master/#disallowed_methodsCOMMENT
LOWCargo.toml421implicit_clone = "warn"COMMENT
LOWCargo.toml441# https://rust-lang.github.io/rust-clippy/master/#mutex_atomicCOMMENT
LOWCargo.toml461redundant_clone = "warn"COMMENT
LOWCargo.toml481# SurrealDB relies on async functions in the AST parser and executor to avoid stack overflows.COMMENT
LOWdeny.toml1# See all available configuration options at:COMMENT
LOWdeny.toml21# The lint level for when a crate version requirement is set to `*`.COMMENT
LOWdeny.toml41allow-registry = ["https://github.com/rust-lang/crates.io-index"]COMMENT
LOWdeny.toml61# - for RUSTSEC-2024-0436, paste is now unmaintained and archived, but we only use paste in testsCOMMENT
LOWMakefile.ci.toml21# Adjacent-pair upgrade chain for language upgrade tests. Each consecutiveCOMMENT
LOWMakefile.ci.toml641COMMENT
LOWlanguage-tests/src/cmd/bench/run.rs61}COMMENT
LOWlanguage-tests/src/cmd/bench/run.rs901}COMMENT
LOWlanguage-tests/src/cmd/bench/run.rs961 }COMMENT
LOWlanguage-tests/src/cmd/bench/stats/univariate/sample.rs1use std::{mem, ops};COMMENT
LOWlanguage-tests/src/cmd/bench/stats/univariate/sample.rs161 /// Returns the variance of the sampleCOMMENT
LOW…tests/src/cmd/bench/stats/univariate/outliers/tukey.rs1//! Tukey's methodCOMMENT
LOW…tests/src/cmd/bench/stats/univariate/outliers/tukey.rs21//!COMMENT
LOW…e-tests/src/cmd/bench/stats/univariate/outliers/mod.rs1//! Classification of outliersCOMMENT
LOWlanguage-tests/src/cmd/upgrade/mod.rs21/// only when the requirement itself has no prerelease.COMMENT
LOWlanguage-tests/src/cmd/run/provisioner.rs61 // Enable a temporary directory so TEMPFILES queries route to theCOMMENT
LOWlanguage-tests/src/cmd/run/provisioner.rs141 ds.bootstrap().await?;COMMENT
LOWlanguage-tests/src/cmd/run/provisioner.rs161 /// the `delr` key cap and the tombstone build-up of wiping on every test.COMMENT
LOWlanguage-tests/src/tests/schema/mod.rs81#[serde(rename_all = "kebab-case")]COMMENT
LOWlanguage-tests/src/tests/schema/mod.rs121 pub timeout: BoolOr<TestDuration>,COMMENT
LOWlanguage-tests/src/tests/schema/mod.rs381 {COMMENT
LOWlanguage-tests/src/tests/schema/mod.rs881#[serde(rename_all = "kebab-case")]COMMENT
LOWlanguage-tests/src/tests/schema/mod.rs901 /// single file. The key is a short variant name (shown in the run label andCOMMENT
LOWlanguage-tests/src/tests/schema/mod.rs921 #[serde(default = "default_duration::<100000>")]COMMENT
LOWsurrealdb/token/src/lib.rs1//! SurrealQL token lexer definitionsCOMMENT
LOWsurrealdb/token/src/base.rs21pub enum BaseTokenKind {COMMENT
LOWsurrealdb/token/src/base.rs161 #[regex(r#"r'([^'\\]|\\.)*'"#)]COMMENT
LOWsurrealdb/token/src/base.rs181 #[regex(r"(?&bracket_ident)")]COMMENT
LOWsurrealdb/token/src/base.rs201 Decimal,COMMENT
LOWsurrealdb/token/src/base.rs301 #[regex(r"(?i)CREATE")]COMMENT
LOWsurrealdb/token/src/base.rs321 #[regex(r"(?i)DIMENSION")]COMMENT
LOWsurrealdb/token/src/base.rs361 KwExpunge,COMMENT
LOWsurrealdb/token/src/base.rs461 #[regex(r"(?i)ML")]COMMENT
LOWsurrealdb/token/src/base.rs541 KwRefresh,COMMENT
LOWsurrealdb/token/src/base.rs601 #[regex(r"(?i)TABLE")]COMMENT
LOWsurrealdb/token/src/datetime.rs1use logos::Logos;COMMENT
LOWsurrealdb/token/src/record_id_key.rs21 OpenBracket,COMMENT
LOWsurrealdb/token/src/js_function.rs21 TemplateOpen,COMMENT
LOWsurrealdb/types/tests/error_types.rs921 // Round-tripCOMMENT
LOWsurrealdb/types/tests/error_types.rs1081fn test_error_wire_not_allowed_auth_not_allowed_iam() {COMMENT
LOWsurrealdb/types/tests/error_types.rs1621 // "message": "Already connected",COMMENT
LOWsurrealdb/types/derive/src/lib.rs21mod kind;COMMENT
LOWsurrealdb/types/derive/src/lib.rs41/// - `#[surreal(crate = "path")]` - Specify a custom path to the types crate (e.g.,COMMENT
LOWsurrealdb/types/derive/src/lib.rs61///COMMENT
LOWsurrealdb/types/derive/src/lib.rs81/// #[derive(SurrealValue)]COMMENT
LOWsurrealdb/types/derive/src/lib.rs101///COMMENT
LOWsurrealdb/types/derive/src/lib.rs121/// types. For example, if type `A` contains `B` and `B` contains `A`, eachCOMMENT
LOWsurrealdb/types/derive/src/lib.rs161/// - Escape hatches: `(expr)` for arbitrary Rust expressionsCOMMENT
LOWsurrealdb/types/derive/src/lib.rs181/// });COMMENT
LOWsurrealdb/types/derive/src/lib.rs201/// write_sql!(f, fmt, "format string", arg1, arg2, ...)COMMENT
LOWsurrealdb/types/derive/src/lib.rs221/// let fmt = SqlFormat::SingleLine;COMMENT
LOWsurrealdb/types/derive/src/kind.rs281/// - Literals: `true`, `false`, `42`, `"hello"`COMMENT
LOWsurrealdb/types/src/error.rs41// -----------------------------------------------------------------------------COMMENT
1599 more matches not shown…
Decorative Section Separators142 hits · 412 pts
SeverityFileLineSnippetContext
MEDIUM⚡deny.toml4# --------------------------------------------------COMMENT
MEDIUM⚡deny.toml6# --------------------------------------------------COMMENT
MEDIUM⚡deny.toml14# --------------------------------------------------COMMENT
MEDIUM⚡deny.toml16# --------------------------------------------------COMMENT
MEDIUMdeny.toml30# --------------------------------------------------COMMENT
MEDIUMdeny.toml32# --------------------------------------------------COMMENT
MEDIUMdeny.toml43# --------------------------------------------------COMMENT
MEDIUMdeny.toml45# --------------------------------------------------COMMENT
MEDIUMdeny.toml82# --------------------------------------------------COMMENT
MEDIUMdeny.toml84# --------------------------------------------------COMMENT
MEDIUMMakefile.ci.toml33# --------------------------------------------------COMMENT
MEDIUMMakefile.ci.toml35# --------------------------------------------------COMMENT
MEDIUM⚡Makefile.ci.toml817# --------------------------------------------------STRING
MEDIUM⚡Makefile.ci.toml819# --------------------------------------------------STRING
MEDIUMMakefile.ci.toml267# --------------------------------------------------STRING
MEDIUMMakefile.ci.toml269# --------------------------------------------------STRING
MEDIUMMakefile.ci.toml415# --------------------------------------------------STRING
MEDIUMMakefile.ci.toml417# --------------------------------------------------STRING
MEDIUMMakefile.ci.toml519# --------------------------------------------------STRING
MEDIUMMakefile.ci.toml521# --------------------------------------------------STRING
MEDIUMMakefile.ci.toml575# --------------------------------------------------STRING
MEDIUMMakefile.ci.toml577# --------------------------------------------------STRING
MEDIUMMakefile.ci.toml642# --------------------------------------------------STRING
MEDIUMMakefile.ci.toml644# --------------------------------------------------STRING
MEDIUMMakefile.ci.toml696# --------------------------------------------------STRING
MEDIUMMakefile.ci.toml698# --------------------------------------------------STRING
MEDIUMMakefile.ci.toml725# --------------------------------------------------STRING
MEDIUMMakefile.ci.toml727# --------------------------------------------------STRING
MEDIUMMakefile.ci.toml753# --------------------------------------------------STRING
MEDIUMMakefile.ci.toml755# --------------------------------------------------STRING
MEDIUMMakefile.ci.toml932# --------------------------------------------------STRING
MEDIUMMakefile.ci.toml934# --------------------------------------------------STRING
MEDIUMMakefile.ci.toml1009# --------------------------------------------------STRING
MEDIUMMakefile.ci.toml1011# --------------------------------------------------STRING
MEDIUM.rustfmt.toml9# -----------------------------------COMMENT
MEDIUM.rustfmt.toml11# -----------------------------------COMMENT
MEDIUMsurrealdb/types/tests/surreal_value/collections.rs5// ──────────────────────────────────────────────────────────────COMMENT
MEDIUMsurrealdb/types/tests/surreal_value/collections.rs7// ──────────────────────────────────────────────────────────────COMMENT
MEDIUMsurrealdb/types/tests/surreal_value/collections.rs111// ──────────────────────────────────────────────────────────────COMMENT
MEDIUMsurrealdb/types/tests/surreal_value/collections.rs113// ──────────────────────────────────────────────────────────────COMMENT
MEDIUMsurrealdb/types/tests/surreal_value/collections.rs221// ──────────────────────────────────────────────────────────────COMMENT
MEDIUMsurrealdb/types/tests/surreal_value/collections.rs223// ──────────────────────────────────────────────────────────────COMMENT
MEDIUMsurrealdb/types/tests/surreal_value/collections.rs317// ──────────────────────────────────────────────────────────────COMMENT
MEDIUMsurrealdb/types/tests/surreal_value/collections.rs319// ──────────────────────────────────────────────────────────────COMMENT
MEDIUMsurrealdb/types/tests/surreal_value/collections.rs449// ──────────────────────────────────────────────────────────────COMMENT
MEDIUMsurrealdb/types/tests/surreal_value/collections.rs453// ──────────────────────────────────────────────────────────────COMMENT
MEDIUMsurrealdb/types/tests/surreal_value/collections.rs548// ──────────────────────────────────────────────────────────────COMMENT
MEDIUMsurrealdb/types/tests/surreal_value/collections.rs552// ──────────────────────────────────────────────────────────────COMMENT
MEDIUMsurrealdb/types/tests/surreal_value/collections.rs658// ──────────────────────────────────────────────────────────────COMMENT
MEDIUMsurrealdb/types/tests/surreal_value/collections.rs661// ──────────────────────────────────────────────────────────────COMMENT
MEDIUMsurrealdb/core/src/catalog/record.rs306 // ─────────COMMENT
MEDIUM⚡surrealdb/core/src/key/graph/mod.rs9//! ┌─────────────────────┬─ ─ ─ ─ ─ ─ ─ ─ ─ ┐COMMENT
MEDIUM⚡surrealdb/core/src/key/graph/mod.rs11//! ┌────┴─────┐ etl ┌────────────┐ etr ┌──────────┐COMMENT
MEDIUM⚡surrealdb/core/src/key/graph/mod.rs12//! │ left │───────▶│ rid (edge) │───────▶│ right │COMMENT
MEDIUM⚡surrealdb/core/src/key/graph/mod.rs13//! └──────────┘ in └────────────┘ out └────┬─────┘COMMENT
MEDIUM⚡surrealdb/core/src/key/graph/mod.rs15//! └ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─┴───────────────────┘COMMENT
MEDIUM⚡surrealdb/core/src/exec/index.rs14//! ┌─────────────────────────────────────────────────────────────────┐COMMENT
MEDIUM⚡surrealdb/core/src/exec/index.rs16//! ├─────────────────────────────────────────────────────────────────┤COMMENT
MEDIUM⚡surrealdb/core/src/exec/index.rs19//! └─────────────────────────────────────────────────────────────────┘COMMENT
MEDIUM⚡surrealdb/core/src/exec/index.rs22//! ┌─────────────────────────────────────────────────────────────────┐COMMENT
82 more matches not shown…
Hallucination Indicators16 hits · 175 pts
SeverityFileLineSnippetContext
CRITICALlanguage-tests/src/cmd/graphql.rs50 let Some(variables) = case.config.parsed.graphql.variables.as_ref() else {CODE
CRITICALlanguage-tests/src/cmd/graphql.rs72 if let Some(operation) = case.config.parsed.graphql.operation.as_ref() {CODE
CRITICALlanguage-tests/src/cmd/bench/run.rs338 let datasets = run.case.test.config.parsed.bench.datasets.clone();CODE
CRITICALlanguage-tests/src/cmd/bench/run.rs842 operation: run.case.test.config.parsed.graphql.operation.clone(),CODE
CRITICAL⚡language-tests/src/cmd/upgrade/mod.rs180 .with_filter(|x| no_results || x.test.config.parsed.test.results.is_some())CODE
CRITICAL⚡language-tests/src/cmd/upgrade/mod.rs189 if let Some(ver_req) = x.test.config.parsed.test.version.as_ref()CODE
CRITICAL⚡language-tests/src/cmd/upgrade/mod.rs195 if let Some(ver_req) = x.test.config.parsed.test.importing_version.as_ref()CODE
CRITICALlanguage-tests/src/cmd/run/mod.rs109 set_builder.with_filter(|x| x.test.config.parsed.test.results.is_none())CODE
CRITICALlanguage-tests/src/tests/report/update.rs21 let mut doc = self.case.test.config.toml.clone().unwrap_or_default();CODE
CRITICALlanguage-tests/src/tests/report/update.rs33 if let Some(slice) = self.case.test.config.range.clone() {CODE
CRITICALsurrealdb/src/lib.rs186 self.surreal.inner.waiter.0.send(Some(WaitFor::Connection)).ok();CODE
CRITICALsurrealdb/src/method/use_db.rs53 self.client.inner.waiter.0.send(Some(WaitFor::Database)).ok();CODE
CRITICALsurrealml/core/src/execution/compute.rs100 let mut buffer = Vec::with_capacity(self.surml_file.header.keys.store.len());CODE
CRITICALsurrealml/core/src/execution/compute.rs211 if self.surml_file.header.output.normaliser.is_none() {CODE
CRITICALsurrealml/core/src/execution/compute.rs216 let output_normaliser = match self.surml_file.header.output.normaliser.as_ref() {CODE
CRITICAL.github/workflows/community-pr-label.yml52 const author = context.payload.pull_request.user.login.toLowerCase();CODE
AI Slop Vocabulary22 hits · 68 pts
SeverityFileLineSnippetContext
MEDIUM⚡Makefile.ci.toml810 # Generate coverage report, excluding the harness codeSTRING
MEDIUMsurrealdb/core/src/kvs/rocksdb/tests.rs604 // divisible by 64), but pairing them keeps the test robustCOMMENT
MEDIUMsurrealdb/core/src/iam/jwks.rs209 // default, we could allow users to leverage this. This will most likelyCOMMENT
MEDIUMsurrealdb/core/src/iam/verify.rs76 // Now that the audience claim is validated by default, we could allow users to leverage this.COMMENT
MEDIUMsurrealdb/core/src/graphql/cache.rs211 // today, but pinning it here keeps the fingerprint robust against futureCOMMENT
MEDIUM…realdb/core/src/exec/pre_decode_filter/wire_literal.rs174 // `full_wire.len() - utf8.len()` is robust against futureCOMMENT
MEDIUMsurrealdb/core/src/doc/alter.rs175 // Rebuild the record id from the coerced value using the robustCOMMENT
MEDIUMsurrealdb/mcp/src/tools/mod.rs394 /// formatted SQL so the test stays robust against display tweaks.COMMENT
MEDIUMsurrealdb/parser/src/parse/special.rs783 // The last is the least robust and relies on the fact the `()` `{}` and `[]` are also partCOMMENT
MEDIUMsurrealdb/ast/examples/working_with_ast.rs47 // Essentially creating a linked list of nodes.COMMENT
MEDIUMsurrealdb/src/opt/auth.rs209 /// seamless long-term sessions while maintaining security.COMMENT
MEDIUMsurrealdb/src/opt/auth.rs282/// tokens when the current access token expires. This enables seamless userCOMMENT
MEDIUM⚡scripts/bench/measure.sh4# and print a machine-readable summary of the harness's statistics (time, median,COMMENT
MEDIUM⚡scripts/bench/measure.sh21# The comparison block is produced by the harness itselfCOMMENT
MEDIUMscripts/bench/measure.sh71# Pull the verdict + the time/median/change lines straight from the harness output.COMMENT
MEDIUMscripts/bench/measure.sh85# since the harness prints Rust Duration debug formatting, e.g. "1.2ms"/"850µs").COMMENT
MEDIUMscripts/bench/profile.sh6# How: the bench harness prints `__BENCH_MEASURE_START__` on stderr (whenCOMMENT
MEDIUMscripts/bench/profile.sh83# BENCH_MARKERS makes the harness emit the measured-region sentinels on stderr.COMMENT
MEDIUM.github/workflows/release.yml4# For comprehensive documentation, see doc/RELEASING.mdCOMMENT
MEDIUM.github/workflows/language-bench-quick.yml10# job runs read-only against that store: the harness `fetch_latest`es the `main`COMMENT
MEDIUM.github/workflows/language-bench-quick.yml108 # Read-only against the shared store (NO --save): the harness fetches theCOMMENT
MEDIUM.github/workflows/ci.yml545 # Both workspaces are cached: `language-tests` for the test harness,COMMENT
Fake / Example Data47 hits · 59 pts
SeverityFileLineSnippetContext
LOWsurrealdb/core/tests/function.rs1082 "Lehem ipsum dolor sit amet, dicta latine an eam."CODE
LOWsurrealdb/core/tests/function.rs1185 "Lorem ipsum dolor sit amet, dicta latine an eam."CODE
LOWsurrealdb/core/tests/function.rs1185 "Lorem ipsum dolor sit amet, dicta latine an eam."CODE
LOWsurrealdb/core/tests/function.rs1271 "Lehem ipsum dolor sit amet, dicta latine an eam."CODE
LOW⚡surrealdb/core/benches/statements.rs56 "CREATE person SET name = 'Test', age = 30, email = 'test@example.com', scores = [90, 80, 70], address = {{ street: '1CODE
LOW⚡surrealdb/core/benches/statements.rs65 "Lorem ipsum dolor sit amet, consectetur adipiscing elit.".repeat(10_000)CODE
LOW⚡surrealdb/core/benches/statements.rs65 "Lorem ipsum dolor sit amet, consectetur adipiscing elit.".repeat(10_000)CODE
LOWsurrealdb/core/src/idx/ft/fulltext.rs1292 "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque elementum dignissim ultricies. Fusce rhoncus CODE
LOWsurrealdb/core/src/idx/ft/fulltext.rs1292 "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque elementum dignissim ultricies. Fusce rhoncus CODE
LOWsurrealdb/core/src/expr/statements/insert.rs275 // INSERT INTO person (id, name) VALUES (1, 'John Doe')COMMENT
LOWsurrealdb/core/src/expr/statements/insert.rs278 // v: { name: 'John Doe' }COMMENT
LOWsurrealdb/core/src/iam/signup.rs64/// ("email".to_string(), "user@example.com".into()),COMMENT
LOWsurrealdb/core/src/iam/signup.rs145/// ("email".to_string(), "user@example.com".into()),COMMENT
LOWsurrealdb/core/src/iam/signin.rs223/// ("email".to_string(), "user@example.com".into()),COMMENT
LOWsurrealdb/core/src/graphql/auth.rs35/// authentication variables (e.g., `{ email: "user@example.com", pass: "secret" }`).COMMENT
LOWsurrealdb/tests/api_integration/basic.rs370 SET name = 'John Doe'CODE
LOW⚡surrealdb/tests/api_integration/basic.rs381 assert_eq!(name, "John Doe");CODE
LOW⚡surrealdb/tests/api_integration/basic.rs389 let _ = db.query("CREATE user:john SET name = 'John Doe'").await.unwrap().check().unwrap();CODE
LOW⚡surrealdb/tests/api_integration/basic.rs394 assert_eq!(name, "John Doe");CODE
LOW⚡surrealdb/tests/api_integration/basic.rs417 .bind(("name", "John Doe".to_string()))CODE
LOW⚡surrealdb/tests/api_integration/basic.rs423 assert_eq!(record.name, "John Doe");CODE
LOW⚡surrealdb/tests/api_integration/basic.rs432 assert_eq!(record.name, "John Doe");CODE
LOW⚡surrealdb/tests/api_integration/basic.rs436 name: "John Doe".to_owned(),CODE
LOW⚡surrealdb/tests/api_integration/basic.rs443 assert_eq!(record.name, "John Doe");CODE
LOWsurrealdb/tests/api_integration/basic.rs522 name: "John Doe".to_owned(),CODE
LOWsurrealdb/tests/api_integration/basic.rs529 name: "John Doe".to_owned(),CODE
LOWsurrealdb/tests/api_integration/basic.rs543 name: "John Doe".to_owned(),CODE
LOWsurrealdb/tests/api_integration/basic.rs551 name: "Jane Doe".to_owned(),CODE
LOWsurrealdb/tests/api_integration/basic.rs581 name: "John Doe".to_owned(),CODE
LOWsurrealdb/tests/api_integration/basic.rs591 name: "John Doe".to_owned(),CODE
LOW⚡surrealdb/tests/api_integration/basic.rs1112 name: "Jane Doe".to_owned(),CODE
LOW⚡surrealdb/tests/api_integration/basic.rs1116 assert_eq!(user.unwrap().name, "Jane Doe");CODE
LOW⚡surrealdb/tests/api_integration/basic.rs1120 name: "John Doe".to_owned(),CODE
LOW⚡surrealdb/tests/api_integration/basic.rs1124 assert_eq!(user.unwrap().name, "John Doe");CODE
LOW⚡surrealdb/tests/api_integration/basic.rs1126 assert_eq!(user.unwrap().name, "John Doe");CODE
LOWsurrealdb/src/method/query.rs231 /// .bind(("name", "John Doe"))COMMENT
LOWsurrealdb/src/method/query.rs252 /// name: "John Doe",COMMENT
LOWsurrealdb/src/method/query.rs854 title: "Lorem Ipsum".to_owned(),CODE
LOWsurrealdb/src/method/query.rs882 title: "Lorem Ipsum".to_owned(),CODE
LOWsurrealdb/src/method/query.rs883 body: "Lorem Ipsum Lorem Ipsum".to_owned(),CODE
LOWsurrealdb/src/method/query.rs918 title: "Lorem Ipsum".to_owned(),CODE
LOWsurrealdb/src/method/query.rs919 body: "Lorem Ipsum Lorem Ipsum".to_owned(),CODE
LOWsurrealdb/src/method/tests/mod.rs88 DB.query("CREATE user:john SET name = $name").bind(("name", "John Doe")).await.unwrap();CODE
LOWsurrealdb/src/method/tests/mod.rs93 name: "John Doe".to_owned(),CODE
LOWtests/graphql_integration.rs2311 CREATE author:a1 SET name = "Jane Doe";CODE
LOWtests/graphql_integration.rs2348 assert_eq!(author["name"], "Jane Doe");CODE
LOWtests/graphql_integration.rs2387 assert_eq!(wrote_in[0]["in"]["name"], "Jane Doe");CODE
Structural Annotation Overuse23 hits · 45 pts
SeverityFileLineSnippetContext
LOWsurrealdb/core/tests/index.rs494 // Step 1: Create a shared datastore and set up 3 namespaces × 3 databases = 9 isolatedCOMMENT
LOW⚡surrealdb/core/tests/index.rs506 // Step 2: Start a background index compaction loop that continuously triggers compactionCOMMENT
LOW⚡surrealdb/core/tests/index.rs511 // Step 3: For each session (namespace/database pair), define multiple indexes of differentCOMMENT
LOWsurrealdb/core/tests/index.rs543 // Step 4: For each of the 9 sessions, spawn 6 concurrent write tasks (3 for `user` recordsCOMMENT
LOW⚡surrealdb/core/tests/index.rs590 // Step 5: Let the concurrent writes and index compaction run together for 10 seconds,COMMENT
LOW⚡surrealdb/core/tests/index.rs595 // Step 6: Await all write tasks and the compaction loop, propagating any errors.COMMENT
LOW⚡surrealdb/core/tests/index.rs601 // Step 7: Verify that the background compaction loop exited cleanly. This stress testCOMMENT
LOW⚡surrealdb/core/src/kvs/tests/tx_cache_test.rs85 // Step 1: Populate the cache with an empty index listCOMMENT
LOW⚡surrealdb/core/src/kvs/tests/tx_cache_test.rs89 // Step 2: Add an index via put_tb_indexCOMMENT
LOWsurrealdb/core/src/kvs/tests/tx_cache_test.rs101 // Step 3: Query all indexes again — this must see the new indexCOMMENT
LOW⚡surrealdb/core/src/kvs/tests/tx_cache_test.rs168 // Step 1: Populate the cache with an empty field listCOMMENT
LOW⚡surrealdb/core/src/kvs/tests/tx_cache_test.rs172 // Step 2: Add a field via put_tb_fieldCOMMENT
LOW⚡surrealdb/core/src/kvs/tests/tx_cache_test.rs180 // Step 3: Query all fields again — this must see the new fieldCOMMENT
LOWsurrealdb/core/src/catalog/compat/README.md69### Step 1: Run the generatorCOMMENT
LOWsurrealdb/core/src/catalog/compat/README.md77### Step 2: Copy the outputCOMMENT
LOWsurrealdb/core/src/catalog/compat/README.md91### Step 3: Update the hash checkCOMMENT
LOWsurrealdb/core/src/catalog/compat/README.md102### Step 4: Verify tests passCOMMENT
LOWsurrealdb/core/src/catalog/compat/README.md114### Step 1: Update the fixtures used in the generator (if needed)COMMENT
LOW⚡surrealdb/core/src/catalog/compat/README.md128### Step 2: Generate and save the bytesCOMMENT
LOW⚡surrealdb/core/src/catalog/compat/README.md136### Step 3: Add the moduleCOMMENT
LOW⚡surrealdb/core/src/catalog/compat/README.md143### Step 4: Add testsCOMMENT
LOW⚡surrealdb/core/src/catalog/compat/README.md152### Step 5: Add hash protectionCOMMENT
LOWsurrealdb/core/src/val/record_id.rs237 // NOTE: This method dictates how coversion between values and record id keysCOMMENT
Verbosity Indicators15 hits · 30 pts
SeverityFileLineSnippetContext
LOWsurrealdb/core/tests/index.rs494 // Step 1: Create a shared datastore and set up 3 namespaces × 3 databases = 9 isolatedCOMMENT
LOW⚡surrealdb/core/tests/index.rs506 // Step 2: Start a background index compaction loop that continuously triggers compactionCOMMENT
LOW⚡surrealdb/core/tests/index.rs511 // Step 3: For each session (namespace/database pair), define multiple indexes of differentCOMMENT
LOWsurrealdb/core/tests/index.rs543 // Step 4: For each of the 9 sessions, spawn 6 concurrent write tasks (3 for `user` recordsCOMMENT
LOW⚡surrealdb/core/tests/index.rs590 // Step 5: Let the concurrent writes and index compaction run together for 10 seconds,COMMENT
LOW⚡surrealdb/core/tests/index.rs595 // Step 6: Await all write tasks and the compaction loop, propagating any errors.COMMENT
LOW⚡surrealdb/core/tests/index.rs601 // Step 7: Verify that the background compaction loop exited cleanly. This stress testCOMMENT
LOWsurrealdb/core/src/idx/trees/hnsw/index.rs729 // If there is a filter, we need to check if the record is truthyCOMMENT
LOW⚡surrealdb/core/src/kvs/tests/tx_cache_test.rs85 // Step 1: Populate the cache with an empty index listCOMMENT
LOW⚡surrealdb/core/src/kvs/tests/tx_cache_test.rs89 // Step 2: Add an index via put_tb_indexCOMMENT
LOWsurrealdb/core/src/kvs/tests/tx_cache_test.rs101 // Step 3: Query all indexes again — this must see the new indexCOMMENT
LOW⚡surrealdb/core/src/kvs/tests/tx_cache_test.rs168 // Step 1: Populate the cache with an empty field listCOMMENT
LOW⚡surrealdb/core/src/kvs/tests/tx_cache_test.rs172 // Step 2: Add a field via put_tb_fieldCOMMENT
LOW⚡surrealdb/core/src/kvs/tests/tx_cache_test.rs180 // Step 3: Query all fields again — this must see the new fieldCOMMENT
LOWsurrealdb/core/src/syn/parser/stmt/mod.rs306 // ANALYZE is not a reserved keyword, so we need to check if it's an identifierCOMMENT
Cross-File Repetition6 hits · 30 pts
SeverityFileLineSnippetContext
HIGHsurrealml/tests/scripts/build_assets.py0checks to see if a directory exists and deletes it if it does. :param dir_path: the path to the directory.STRING
HIGHsurrealml/tests/scripts/local_build.py0checks to see if a directory exists and deletes it if it does. :param dir_path: the path to the directory.STRING
HIGHsurrealml/tests/model_builder/utils.py0checks to see if a directory exists and deletes it if it does. :param dir_path: the path to the directory.STRING
HIGHsurrealml/tests/scripts/build_assets.py0checks to see if a file exists and deletes it if it does. :param file_path: the path to the file.STRING
HIGHsurrealml/tests/scripts/local_build.py0checks to see if a file exists and deletes it if it does. :param file_path: the path to the file.STRING
HIGHsurrealml/tests/model_builder/utils.py0checks to see if a file exists and deletes it if it does. :param file_path: the path to the file.STRING
Self-Referential Comments7 hits · 21 pts
SeverityFileLineSnippetContext
MEDIUM.github/workflows/crud-bench.yml388 # Create a fallback report if analysis failedCOMMENT
MEDIUM.github/workflows/bench.yml77 # # Create a summary of the comparisonCOMMENT
MEDIUM.github/workflows/bench.yml201 # Create a summary of the comparisonCOMMENT
MEDIUM.github/scripts/bump-nightly-version.sh73# Create a branch for the PRCOMMENT
MEDIUM.github/scripts/bump-release-version.sh94# Create a branch for the PRCOMMENT
MEDIUM.github/actions/publish-crate/action.yml53 # Create a temporary branch in case the git ref is not a branchCOMMENT
MEDIUM.github/actions/publish-crate/action.yml71 # Create a temporary branch in case the git ref is not a branchCOMMENT
Excessive Try-Catch Wrapping11 hits · 16 pts
SeverityFileLineSnippetContext
MEDIUMsurrealml/tests/unit_tests/test_surml_file.py25 print(f"Error: surmlcache : {e.strerror}")CODE
MEDIUMsurrealml/tests/unit_tests/engine/test_torch.py24 print(f"Error: surmlcache : {e.strerror}")CODE
MEDIUMsurrealml/tests/unit_tests/engine/test_sklearn.py25 print(f"Error: surmlcache : {e.strerror}")CODE
LOW.github/scripts/quiet_system.py34 except Exception as e:CODE
LOW.github/scripts/quiet_system.py53 except Exception as e:CODE
LOW.github/scripts/quiet_system.py76 except Exception as e:CODE
MEDIUM.github/scripts/analyze_benchmark.py20 print("Error: Python 3.9 or higher is required for secure path validation", file=sys.stderr)CODE
LOW.github/scripts/analyze_benchmark.py114 except Exception:CODE
LOW.github/scripts/analyze_benchmark.py135 except Exception as e:CODE
LOW.github/scripts/analyze_benchmark.py569 except Exception as e:CODE
MEDIUM.github/scripts/analyze_benchmark.py570 print(f"Error during analysis: {e}", file=sys.stderr)CODE
Modern AI Meta-Vocabulary5 hits · 12 pts
SeverityFileLineSnippetContext
MEDIUMdocker/DOCKER.md135The same behavior can be acomplished without Docker Compose by providing the `-u` or `--user` argument to [`docker run`]CODE
MEDIUMsurrealdb/server/src/cli/module/init_cmd.rs157// Rust scaffoldCOMMENT
MEDIUM.github/workflows/release.yml141 # This orchestration job runs against a different branch than the code itCOMMENT
MEDIUM.github/workflows/release.yml636 # This orchestration job runs against a different branch than the code itCOMMENT
MEDIUMsurrealism/runtime/src/config.rs10/// which scaffold to generate) and `build` (to choose which toolchain toCOMMENT
Redundant / Tautological Comments6 hits · 8 pts
SeverityFileLineSnippetContext
LOWsurrealml/tests/model_builder/utils.py19 # Check if the package is installedCOMMENT
LOW.github/workflows/ci.yml674 # Check if any job failed (skipped is ok for conditional jobs)COMMENT
LOW.github/scripts/bump-nightly-version.sh102 # Check if PR already existsCOMMENT
LOW.github/scripts/bump-release-version.sh123 # Check if PR already existsCOMMENT
LOW.github/scripts/analyze_benchmark.py472 # Check if this key_type has any operationsCOMMENT
LOW.github/actions/publish-crate/action.yml78 # Check if the failure was because everything is already publishedCOMMENT
Example Usage Blocks3 hits · 5 pts
SeverityFileLineSnippetContext
LOWsurrealdb/types/src/sql.rs21/// Example usage:COMMENT
LOW⚡scripts/bench/measure.sh11# Usage:COMMENT
LOWscripts/bench/profile.sh15# Usage:COMMENT
Empty Error Handlers1 hit · 5 pts
SeverityFileLineSnippetContext
HIGH.github/scripts/analyze_benchmark.py114except Exception:CODE
Deep Nesting4 hits · 4 pts
SeverityFileLineSnippetContext
LOW.github/scripts/quiet_system.py80CODE
LOW.github/scripts/analyze_benchmark.py92CODE
LOW.github/scripts/analyze_benchmark.py143CODE
LOW.github/scripts/analyze_benchmark.py304CODE
Slop Phrases2 hits · 3 pts
SeverityFileLineSnippetContext
LOWsurrealdb/parser/src/parse/stmt/define.rs755 // Don't forget to update the expectation strings inside the macro if you everCOMMENT
LOWsurrealdb/parser/src/parse/stmt/alter.rs1354 // Don't forget to update the expectation strings inside the macro ifCOMMENT
Hyper-Verbose Identifiers3 hits · 3 pts
SeverityFileLineSnippetContext
LOWsurrealml/tests/scripts/local_build.py36def find_and_move_rust_surrealml_file(start_path: os.path, destination_path: os.path, new_name: str) -> None:CODE
LOWsurrealml/tests/scripts/ci_local_build.py11def find_and_move_rust_surrealml_file(start_path: os.path, destination_path: os.path, new_name: str) -> None:CODE
LOW.github/scripts/analyze_benchmark.py62 def _validate_and_resolve_input_path(file_path: Path, base_dir: Path) -> Optional[Path]:CODE
Unused Imports1 hit · 1 pts
SeverityFileLineSnippetContext
LOWsurrealml/tests/unit_tests/test_rust_adapter.py3CODE