Repository Analysis

GreptimeTeam/greptimedb

The open-source Observability 2.0 database. One engine for metrics, logs, and traces — replacing Prometheus, Loki & ES.

3.7 Likely human-written View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of GreptimeTeam/greptimedb, a Rust project with 6,468 GitHub stars. SynthScan v2.0 examined 879,673 lines of code across 2861 source files, recording 2865 pattern matches distributed across 17 syntactic categories. The overall adjusted score of 3.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).

3.7
Adjusted Score
3.7
Raw Score
100%
Time Factor
2026-07-14
Last Push
6.5K
Stars
Rust
Language
879.7K
Lines of Code
2.9K
Files
2.9K
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

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 9HIGH 2MEDIUM 68LOW 2786

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 2865 distinct pattern matches across 17 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a statistically significant AI authorship indicator. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.

Reading the findings table: The Severity column indicates the diagnostic confidence level (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — comment-context matches receive a ×1.5 weight because LLMs systematically over-annotate. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier as dense clusters constitute far stronger evidence of synthetic authorship than isolated hits.

Over-Commented Block2613 hits · 2598 pts
SeverityFileLineSnippetContext
LOWcliff.toml121# skip_tags = ""COMMENT
LOWlicenserc.toml1# Copyright 2023 Greptime TeamCOMMENT
LOWlicenserc-enterprise.toml1# License-header config for GreptimeDB Enterprise Edition source files.COMMENT
LOWconfig/frontend.example.toml1## The default timezone of the server.COMMENT
LOWconfig/frontend.example.toml21## Maximum total memory for all concurrent write request bodies and messages (HTTP, gRPC, Flight).COMMENT
LOWconfig/frontend.example.toml41addr = "127.0.0.1:4000"COMMENT
LOWconfig/frontend.example.toml61experimental_enable_prometheus_native_histogram = falseCOMMENT
LOWconfig/frontend.example.toml81flight_compression = "arrow_ipc"COMMENT
LOWconfig/frontend.example.toml101## Watch for Certificate and key file change and auto reload.COMMENT
LOWconfig/frontend.example.toml141[mysql]COMMENT
LOWconfig/frontend.example.toml221COMMENT
LOWconfig/frontend.example.toml321## Default to false.COMMENT
LOWconfig/frontend.example.toml361## The tokio console address.COMMENT
LOWconfig/flownode.example.toml1## The flownode identifier and should be unique in the cluster.COMMENT
LOWconfig/flownode.example.toml21## Flow wait for available frontend timeout,COMMENT
LOWconfig/flownode.example.toml41## Client Certificate file path.COMMENT
LOWconfig/flownode.example.toml121max_log_files = 720COMMENT
LOWconfig/flownode.example.toml141## The tokio console address.COMMENT
LOWconfig/standalone.example.toml1## The default timezone of the server.COMMENT
LOWconfig/standalone.example.toml21## Maximum total memory for all concurrent write request bodies and messages (HTTP, gRPC, Flight).COMMENT
LOWconfig/standalone.example.toml41## Enable telemetry to collect anonymous usage data. Enabled by default.COMMENT
LOWconfig/standalone.example.toml61## HTTP CORS support, it's turned on by defaultCOMMENT
LOWconfig/standalone.example.toml81## The address to bind the gRPC server.COMMENT
LOWconfig/standalone.example.toml121# MySQL server TLS options.COMMENT
LOWconfig/standalone.example.toml201with_metric_engine = trueCOMMENT
LOWconfig/standalone.example.toml221## The directory to store the WAL files.COMMENT
LOWconfig/standalone.example.toml261## The Kafka broker endpoints.COMMENT
LOWconfig/standalone.example.toml281COMMENT
LOWconfig/standalone.example.toml301## The max size of a single producer batch.COMMENT
LOWconfig/standalone.example.toml321# The Kafka SASL configuration.COMMENT
LOWconfig/standalone.example.toml361## The number of flow worker in flownode.COMMENT
LOWconfig/standalone.example.toml381# root = "data"COMMENT
LOWconfig/standalone.example.toml401# scope = "test"COMMENT
LOWconfig/standalone.example.toml421## The working home directory.COMMENT
LOWconfig/standalone.example.toml441COMMENT
LOWconfig/standalone.example.toml461## @toml2docs:none-defaultCOMMENT
LOWconfig/standalone.example.toml481## @toml2docs:none-defaultCOMMENT
LOWconfig/standalone.example.toml521## To skip the ssl verificationCOMMENT
LOWconfig/standalone.example.toml561manifest_checkpoint_distance = 10COMMENT
LOWconfig/standalone.example.toml581## @toml2docs:none-default="0"COMMENT
LOWconfig/standalone.example.toml601## If not set, it's default to 1/8 of OS memory with a max limitation of 512MB.COMMENT
LOWconfig/standalone.example.toml621## If not set, it's default to 1/16 of OS memory with a max limitation of 512MB.COMMENT
LOWconfig/standalone.example.toml661## Buffer size for SST writing.COMMENT
LOWconfig/standalone.example.toml681COMMENT
LOWconfig/standalone.example.toml701## The default name for this directory is `index_intermediate` for backward compatibility.COMMENT
LOWconfig/standalone.example.toml741## Whether to apply the index on queryCOMMENT
LOWconfig/standalone.example.toml761create_on_flush = "auto"COMMENT
LOWconfig/standalone.example.toml781COMMENT
LOWconfig/standalone.example.toml841## The OTLP tracing export protocol. Can be `grpc`/`http`.COMMENT
LOWconfig/standalone.example.toml861COMMENT
LOWconfig/standalone.example.toml881[memory]COMMENT
LOWconfig/datanode.example.toml41[grpc]COMMENT
LOWconfig/datanode.example.toml81## The number of threads to execute the runtime for global read operations.COMMENT
LOWconfig/datanode.example.toml121## - `kafka`: it's remote wal that data is stored in Kafka.COMMENT
LOWconfig/datanode.example.toml161COMMENT
LOWconfig/datanode.example.toml181COMMENT
LOWconfig/datanode.example.toml201## as the system will skip over missing entries instead of treatingCOMMENT
LOWconfig/datanode.example.toml221# client_key_path = "/path/to/key"COMMENT
LOWconfig/datanode.example.toml241# access_key_secret = "123456"COMMENT
LOWconfig/datanode.example.toml261# credential = "base64-credential"COMMENT
2553 more matches not shown…
Decorative Section Separators48 hits · 206 pts
SeverityFileLineSnippetContext
MEDIUMsrc/meta-srv/src/selector/weighted_choose.rs57/// ─────────────────────────────────▶COMMENT
MEDIUMsrc/meta-srv/src/selector/weighted_choose.rs60/// ┌─────────────────┬─────────┬──────────────────────┬─────┬─────────────────┐COMMENT
MEDIUMsrc/meta-srv/src/selector/weighted_choose.rs62/// └─────────────────┴─────────┴──────────────────────┴─────┴─────────────────┘COMMENT
MEDIUMsrc/metric-engine/src/lib.rs29//! ┌───────────────┐ ┌───────────────┐ ┌───────────────┐COMMENT
MEDIUMsrc/metric-engine/src/lib.rs32//! └───────────────┘ └───────────────┘ └───────────────┘COMMENT
MEDIUMsrc/metric-engine/src/lib.rs35//! └───────────────┼───────────────────┘COMMENT
MEDIUMsrc/metric-engine/src/lib.rs37//! ┌─────────┴────────┐COMMENT
MEDIUMsrc/metric-engine/src/lib.rs40//! │ ┌─────────────┤COMMENT
MEDIUMsrc/metric-engine/src/lib.rs43//! └────▲─────────────┘COMMENT
MEDIUMsrc/metric-engine/src/lib.rs46//! ┌─────┴───────────────┐COMMENT
MEDIUMsrc/metric-engine/src/lib.rs50//! └─────────────────────┘COMMENT
MEDIUMsrc/store-api/src/storage/descriptors.rs45/// ┌────────────────────────────────────┬──────────┬──────────────────┐COMMENT
MEDIUMsrc/store-api/src/storage/descriptors.rs47/// └────────────────────────────────────┴──────────┴──────────────────┘COMMENT
MEDIUMsrc/mito2/src/read/pruner.rs970 // ── Corner case: fast-skip across multiple row groups ─────────────COMMENT
MEDIUMsrc/mito2/src/sst/index/inverted_index/creator.rs377 /// ┌──────┐COMMENT
MEDIUMsrc/mito2/src/sst/index/inverted_index/creator.rs378 /// ┌─────────────┐ │ PIPE │COMMENT
MEDIUMsrc/mito2/src/sst/index/inverted_index/creator.rs380 /// │ IndexWriter ├──────────────────►│ tx │COMMENT
MEDIUMsrc/mito2/src/sst/index/inverted_index/creator.rs382 /// └─────────────┘ │ │COMMENT
MEDIUMsrc/mito2/src/sst/index/inverted_index/creator.rs383 /// ┌─────────────────┤ rx │COMMENT
MEDIUMsrc/mito2/src/sst/index/inverted_index/creator.rs384 /// ┌─────────────┐ │ read as blob └──────┘COMMENT
MEDIUMsrc/mito2/src/sst/index/inverted_index/creator.rs387 /// │ │ │ copy to file ┌──────┐COMMENT
MEDIUMsrc/mito2/src/sst/index/inverted_index/creator.rs388 /// └─────────────┘ └────────────────►│ File │COMMENT
MEDIUMsrc/mito2/src/sst/index/inverted_index/creator.rs389 /// └──────┘COMMENT
MEDIUMsrc/mito2/src/sst/index/bloom_filter/creator.rs398 /// ┌──────┐COMMENT
MEDIUMsrc/mito2/src/sst/index/bloom_filter/creator.rs399 /// ┌─────────────┐ │ PIPE │COMMENT
MEDIUMsrc/mito2/src/sst/index/bloom_filter/creator.rs401 /// │ IndexWriter ├──────────────────►│ tx │COMMENT
MEDIUMsrc/mito2/src/sst/index/bloom_filter/creator.rs403 /// └─────────────┘ │ │COMMENT
MEDIUMsrc/mito2/src/sst/index/bloom_filter/creator.rs404 /// ┌─────────────────┤ rx │COMMENT
MEDIUMsrc/mito2/src/sst/index/bloom_filter/creator.rs405 /// ┌─────────────┐ │ read as blob └──────┘COMMENT
MEDIUMsrc/mito2/src/sst/index/bloom_filter/creator.rs408 /// │ │ │ copy to file ┌──────┐COMMENT
MEDIUMsrc/mito2/src/sst/index/bloom_filter/creator.rs409 /// └─────────────┘ └────────────────►│ File │COMMENT
MEDIUMsrc/mito2/src/sst/index/bloom_filter/creator.rs410 /// └──────┘COMMENT
MEDIUMsrc/partition/src/multi_dim.rs478 /// ─────────┼──────────┼────────────► bCOMMENT
MEDIUMsrc/partition/src/multi_dim.rs516 /// 200 │ ┌─────────┤COMMENT
MEDIUMsrc/partition/src/multi_dim.rs520 /// 100 │ ======┴─────────┘COMMENT
MEDIUMsrc/partition/src/multi_dim.rs522 /// └──────────────────────────►bCOMMENT
MEDIUMsrc/partition/src/multi_dim.rs723 /// ────────────────────────────────┼──► hostCOMMENT
MEDIUMsrc/servers/src/http/result/table_result.rs168 let expected_payload = r#"┌─host────────┬─ts────────────┬─cpu─┬─memory─┐CODE
MEDIUMsrc/promql/src/range_array.rs34/// │ ┌─────┬─────┬─────┬─────┐COMMENT
MEDIUMsrc/promql/src/range_array.rs36/// Arrays │ └─────┴─────┴─────┴─────┘ (Fixed to i64)COMMENT
MEDIUMsrc/promql/src/range_array.rs38/// Arrow's │ ┌────────────────────────────┐COMMENT
MEDIUMsrc/promql/src/range_array.rs40/// Array │ └────────────────────────────┘(Any Type)COMMENT
MEDIUMsrc/promql/src/range_array.rs48/// ┌───────────────┼───────────────┐COMMENT
MEDIUMsrc/promql/src/range_array.rs50/// └───────────────┼───────────────┘COMMENT
MEDIUMsrc/promql/src/range_array.rs57/// ┌───────┬───────┬───────┐ ┌───────┐COMMENT
MEDIUMsrc/promql/src/range_array.rs59/// └───────┴───────┴───────┘ │ ├───────┤COMMENT
MEDIUMsrc/promql/src/range_array.rs61/// ┌───┬───┬───┬───┬───┐ │ ├───────┤COMMENT
MEDIUMsrc/promql/src/range_array.rs63/// └───┴───┴───┴───┴───┘ └───────┘COMMENT
Verbosity Indicators52 hits · 97 pts
SeverityFileLineSnippetContext
LOWtests-integration/src/tests/gc.rs135 // Step 1: Create table with append_mode to easily generate multiple filesCOMMENT
LOWtests-integration/src/tests/gc.rs145 // Step 2: Generate SST files by inserting data and flushing multiple timesCOMMENT
LOWtests-integration/src/tests/gc.rs171 // Step 3: Get table informationCOMMENT
LOWtests-integration/src/tests/gc.rs188 // Step 4: Trigger compaction to create garbage SST filesCOMMENT
LOWtests-integration/src/tests/gc.rs203 // Step 5: Get table route information for GC procedureCOMMENT
LOWtests-integration/src/tests/gc.rs207 // Step 6: Create and execute BatchGcProcedureCOMMENT
LOWtests-integration/src/tests/gc.rs231 // Step 7: Verify GC resultsCOMMENT
LOWtests-integration/src/tests/gc/admin.rs46 // Step 1: Create table with append_mode to easily generate multiple filesCOMMENT
LOWtests-integration/src/tests/gc/admin.rs56 // Step 2: Generate SST files by inserting data and flushing multiple timesCOMMENT
LOWtests-integration/src/tests/gc/admin.rs102 // Step 4: Use ADMIN GC_TABLE to clean up garbage filesCOMMENT
LOWtests-integration/src/tests/gc/admin.rs107 // Step 5: Verify GC resultsCOMMENT
LOWtests-integration/src/tests/gc/admin.rs166 // Step 1: Create table with append_mode to easily generate multiple filesCOMMENT
LOWtests-integration/src/tests/gc/admin.rs176 // Step 2: Generate SST files by inserting data and flushing multiple timesCOMMENT
LOWtests-integration/src/tests/gc/admin.rs240 // Step 5: Use ADMIN GC_REGIONS to clean up garbage files for the specific regionCOMMENT
LOWtests-integration/src/tests/gc/admin.rs245 // Step 6: Verify GC resultsCOMMENT
LOWtests-integration/src/tests/gc/admin.rs90 // Step 3: Trigger compaction to create garbage SST filesCOMMENT
LOWtests-integration/src/tests/gc/admin.rs210 // Step 3: Trigger compaction to create garbage SST filesCOMMENT
LOWtests-integration/src/tests/gc/admin.rs222 // Step 4: Get region id from information_schemaCOMMENT
LOWsrc/meta-srv/src/gc/handler.rs294 // Step 2: Run GC for all regions on this datanode in a single batchCOMMENT
LOWsrc/meta-srv/src/gc/handler.rs393 // Step 3: Process the combined GC report and update table reportsCOMMENT
LOWsrc/metric-engine/benches/bench_tsid_generator.rs231 // Step 1: Compute label name hash for non-null labelsCOMMENT
LOWsrc/metric-engine/benches/bench_tsid_generator.rs240 // Step 2: Use label name hash and hash valuesCOMMENT
LOWsrc/common/meta/src/sequence.rs636 // Step 1: Establish a low value in storageCOMMENT
LOWsrc/common/meta/src/sequence.rs643 // Step 2: Create sequence with much larger initialCOMMENT
LOWsrc/common/meta/src/sequence.rs653 // Step 3: Verify subsequent sequences continue from updated storageCOMMENT
LOWsrc/common/meta/src/ddl/utils.rs240/// For partial success, we need to check if the errors are retryable.COMMENT
LOWsrc/common/meta/src/election/rds/mysql.rs1516 // Step 2: As a leader, renew the lease.COMMENT
LOWsrc/common/meta/src/election/rds/mysql.rs1525 // Step 3: Something wrong, the leader lease expired.COMMENT
LOWsrc/common/meta/src/election/rds/mysql.rs1737 // Step 1: As a follower, the leader exists and the lease is not expired. Do nothing.COMMENT
LOWsrc/common/meta/src/election/rds/mysql.rs1740 // Step 2: As a follower, the leader exists but the lease expired. Re-elect itself.COMMENT
LOWsrc/common/meta/src/election/rds/mysql.rs1496 // Step 1: No leader exists, campaign and elected.COMMENT
LOWsrc/common/meta/src/election/rds/mysql.rs1546 // Step 4: Re-elect itself.COMMENT
LOWsrc/common/meta/src/election/rds/mysql.rs1566 // Step 5: Something wrong, the leader key is deleted by other followers.COMMENT
LOWsrc/common/meta/src/election/rds/mysql.rs1593 // Step 6: Re-elect itself.COMMENT
LOWsrc/common/meta/src/election/rds/mysql.rs1613 // Step 7: Something wrong, the leader key changed by others.COMMENT
LOWsrc/common/meta/src/election/rds/postgres.rs1547 // Step 1: As a follower, the leader exists and the lease is not expired.COMMENT
LOWsrc/common/meta/src/election/rds/postgres.rs1550 // Step 2: As a follower, the leader exists but the lease expired.COMMENT
LOWsrc/common/meta/src/election/rds/postgres.rs1554 // Step 3: As a follower, the leader does not exist.COMMENT
LOWsrc/common/meta/src/election/rds/postgres.rs1561 // Step 4: Follower thinks it's the leader but failed to acquire the lock.COMMENT
LOWsrc/common/meta/src/election/rds/postgres.rs1250 // Step 1: No leader exists, campaign and elected.COMMENT
LOWsrc/common/meta/src/election/rds/postgres.rs1283 // Step 2: As a leader, renew the lease.COMMENT
LOWsrc/common/meta/src/election/rds/postgres.rs1305 // Step 3: Something wrong, the leader lease expired.COMMENT
LOWsrc/common/meta/src/election/rds/postgres.rs1337 // Step 4: Re-campaign and elected.COMMENT
LOWsrc/common/meta/src/election/rds/postgres.rs1370 // Step 5: Something wrong, the leader key is deleted by other followers.COMMENT
LOWsrc/common/meta/src/election/rds/postgres.rs1396 // Step 6: Re-campaign and elected.COMMENT
LOWsrc/common/meta/src/election/rds/postgres.rs1429 // Step 7: Something wrong, the leader key changed by others.COMMENT
LOWsrc/mito2/src/gc.rs701 // Step 2: Concurrently list all parquet files in the region root directoryCOMMENT
LOWsrc/mito2/src/gc.rs1048 // Step 3: Filter files to determine which ones can be deletedCOMMENT
LOWsrc/mito2/src/sst/parquet/row_selection.rs163 // Step 1: Convert segment IDs to row ranges within row groupsCOMMENT
LOWsrc/mito2/src/sst/parquet/row_selection.rs179 // Step 2: Group ranges by row group ID and create row selectionsCOMMENT
LOWsrc/mito2/src/sst/parquet/row_selection.rs234 // Step 1: Group row IDs by their row groupCOMMENT
LOWsrc/mito2/src/sst/parquet/row_selection.rs238 // Step 2: Create row selections for each row groupCOMMENT
Structural Annotation Overuse51 hits · 95 pts
SeverityFileLineSnippetContext
LOWtests-integration/src/tests/gc.rs135 // Step 1: Create table with append_mode to easily generate multiple filesCOMMENT
LOWtests-integration/src/tests/gc.rs145 // Step 2: Generate SST files by inserting data and flushing multiple timesCOMMENT
LOWtests-integration/src/tests/gc.rs171 // Step 3: Get table informationCOMMENT
LOWtests-integration/src/tests/gc.rs188 // Step 4: Trigger compaction to create garbage SST filesCOMMENT
LOWtests-integration/src/tests/gc.rs203 // Step 5: Get table route information for GC procedureCOMMENT
LOWtests-integration/src/tests/gc.rs207 // Step 6: Create and execute BatchGcProcedureCOMMENT
LOWtests-integration/src/tests/gc.rs231 // Step 7: Verify GC resultsCOMMENT
LOWtests-integration/src/tests/gc/admin.rs46 // Step 1: Create table with append_mode to easily generate multiple filesCOMMENT
LOWtests-integration/src/tests/gc/admin.rs56 // Step 2: Generate SST files by inserting data and flushing multiple timesCOMMENT
LOWtests-integration/src/tests/gc/admin.rs102 // Step 4: Use ADMIN GC_TABLE to clean up garbage filesCOMMENT
LOWtests-integration/src/tests/gc/admin.rs107 // Step 5: Verify GC resultsCOMMENT
LOWtests-integration/src/tests/gc/admin.rs166 // Step 1: Create table with append_mode to easily generate multiple filesCOMMENT
LOWtests-integration/src/tests/gc/admin.rs176 // Step 2: Generate SST files by inserting data and flushing multiple timesCOMMENT
LOWtests-integration/src/tests/gc/admin.rs240 // Step 5: Use ADMIN GC_REGIONS to clean up garbage files for the specific regionCOMMENT
LOWtests-integration/src/tests/gc/admin.rs245 // Step 6: Verify GC resultsCOMMENT
LOWtests-integration/src/tests/gc/admin.rs90 // Step 3: Trigger compaction to create garbage SST filesCOMMENT
LOWtests-integration/src/tests/gc/admin.rs210 // Step 3: Trigger compaction to create garbage SST filesCOMMENT
LOWtests-integration/src/tests/gc/admin.rs222 // Step 4: Get region id from information_schemaCOMMENT
LOWsrc/meta-srv/src/gc/handler.rs294 // Step 2: Run GC for all regions on this datanode in a single batchCOMMENT
LOWsrc/meta-srv/src/gc/handler.rs393 // Step 3: Process the combined GC report and update table reportsCOMMENT
LOWsrc/metric-engine/benches/bench_tsid_generator.rs231 // Step 1: Compute label name hash for non-null labelsCOMMENT
LOWsrc/metric-engine/benches/bench_tsid_generator.rs240 // Step 2: Use label name hash and hash valuesCOMMENT
LOWsrc/common/meta/src/sequence.rs636 // Step 1: Establish a low value in storageCOMMENT
LOWsrc/common/meta/src/sequence.rs643 // Step 2: Create sequence with much larger initialCOMMENT
LOWsrc/common/meta/src/sequence.rs653 // Step 3: Verify subsequent sequences continue from updated storageCOMMENT
LOWsrc/common/meta/src/election/rds/mysql.rs1516 // Step 2: As a leader, renew the lease.COMMENT
LOWsrc/common/meta/src/election/rds/mysql.rs1525 // Step 3: Something wrong, the leader lease expired.COMMENT
LOWsrc/common/meta/src/election/rds/mysql.rs1737 // Step 1: As a follower, the leader exists and the lease is not expired. Do nothing.COMMENT
LOWsrc/common/meta/src/election/rds/mysql.rs1740 // Step 2: As a follower, the leader exists but the lease expired. Re-elect itself.COMMENT
LOWsrc/common/meta/src/election/rds/mysql.rs1496 // Step 1: No leader exists, campaign and elected.COMMENT
LOWsrc/common/meta/src/election/rds/mysql.rs1546 // Step 4: Re-elect itself.COMMENT
LOWsrc/common/meta/src/election/rds/mysql.rs1566 // Step 5: Something wrong, the leader key is deleted by other followers.COMMENT
LOWsrc/common/meta/src/election/rds/mysql.rs1593 // Step 6: Re-elect itself.COMMENT
LOWsrc/common/meta/src/election/rds/mysql.rs1613 // Step 7: Something wrong, the leader key changed by others.COMMENT
LOWsrc/common/meta/src/election/rds/postgres.rs1547 // Step 1: As a follower, the leader exists and the lease is not expired.COMMENT
LOWsrc/common/meta/src/election/rds/postgres.rs1550 // Step 2: As a follower, the leader exists but the lease expired.COMMENT
LOWsrc/common/meta/src/election/rds/postgres.rs1554 // Step 3: As a follower, the leader does not exist.COMMENT
LOWsrc/common/meta/src/election/rds/postgres.rs1561 // Step 4: Follower thinks it's the leader but failed to acquire the lock.COMMENT
LOWsrc/common/meta/src/election/rds/postgres.rs1250 // Step 1: No leader exists, campaign and elected.COMMENT
LOWsrc/common/meta/src/election/rds/postgres.rs1283 // Step 2: As a leader, renew the lease.COMMENT
LOWsrc/common/meta/src/election/rds/postgres.rs1305 // Step 3: Something wrong, the leader lease expired.COMMENT
LOWsrc/common/meta/src/election/rds/postgres.rs1337 // Step 4: Re-campaign and elected.COMMENT
LOWsrc/common/meta/src/election/rds/postgres.rs1370 // Step 5: Something wrong, the leader key is deleted by other followers.COMMENT
LOWsrc/common/meta/src/election/rds/postgres.rs1396 // Step 6: Re-campaign and elected.COMMENT
LOWsrc/common/meta/src/election/rds/postgres.rs1429 // Step 7: Something wrong, the leader key changed by others.COMMENT
LOWsrc/mito2/src/gc.rs701 // Step 2: Concurrently list all parquet files in the region root directoryCOMMENT
LOWsrc/mito2/src/gc.rs1048 // Step 3: Filter files to determine which ones can be deletedCOMMENT
LOWsrc/mito2/src/sst/parquet/row_selection.rs163 // Step 1: Convert segment IDs to row ranges within row groupsCOMMENT
LOWsrc/mito2/src/sst/parquet/row_selection.rs179 // Step 2: Group ranges by row group ID and create row selectionsCOMMENT
LOWsrc/mito2/src/sst/parquet/row_selection.rs234 // Step 1: Group row IDs by their row groupCOMMENT
LOWsrc/mito2/src/sst/parquet/row_selection.rs238 // Step 2: Create row selections for each row groupCOMMENT
Hallucination Indicators9 hits · 90 pts
SeverityFileLineSnippetContext
CRITICALtests/cases/standalone/common/function/matches_term.sql165 (1, '[2026/04/09/ 13:56:11.031]2026-04-09 13:56:11.031 - [ trace_id=340a6a44b0bd8e37bb7697ss7da61ff0 span_id=085ff5tCODE
CRITICALsrc/common/meta/src/ddl/alter_table.rs129 let alter_kind = self.data.task.alter_table.kind.as_ref().unwrap();CODE
CRITICALsrc/common/meta/src/ddl/alter_table.rs271 let alter_kind = self.data.task.alter_table.kind.as_ref().unwrap();CODE
CRITICALsrc/common/meta/src/ddl/alter_table.rs323 let alter_kind = self.data.task.alter_table.kind.as_ref().unwrap();CODE
CRITICALsrc/common/meta/src/ddl/alter_table/region_request.rs32 let alter_kind = self.data.task.alter_table.kind.as_ref().unwrap();CODE
CRITICALsrc/index/src/fulltext_index/tokenizer.rs215 let text = "[2026/04/09/ 13:56:11.031]2026-04-09 13:56:11.031 - [ trace_id=340a6a44b0bd8e37bb7697ss7da61ff0 spanCODE
CRITICALsrc/mito2/src/read/pruner.rs100 let file_index = index.index - self.pruner.inner.stream_ctx.input.num_memtables();CODE
CRITICALsrc/mito2/src/read/pruner.rs177 .then(|| index.index - self.pruner.inner.stream_ctx.input.num_memtables())CODE
CRITICALsrc/flow/src/server.rs309 self.flownode_server.inner.flow_service.dual_engine.clone()CODE
Self-Referential Comments9 hits · 33 pts
SeverityFileLineSnippetContext
MEDIUM.github/workflows/check-git-deps.yml40 # Create a temporary directory for cloningCOMMENT
MEDIUM.github/scripts/deploy-greptimedb.sh15# Create a cluster with 1 control-plane node and 5 workers.COMMENT
MEDIUM.github/scripts/update-homebrew-greptme-version.sh32 # Create a Pull Request.COMMENT
MEDIUM.github/scripts/update-helm-charts-version.sh36 # Create a Pull Request.COMMENT
MEDIUM.github/scripts/update-dev-builder-version.sh27 # Create a Pull Request.COMMENT
MEDIUMsrc/servers/tests/ssl/gen-certs.sh3# Create the self-signed CA certificate.COMMENT
MEDIUMsrc/servers/tests/ssl/gen-certs.sh11# Create the server private key.COMMENT
MEDIUMsrc/servers/tests/ssl/gen-certs.sh14# Create the server certificate signing request.COMMENT
MEDIUMsrc/servers/tests/ssl/gen-certs.sh17# Create the server certificate.COMMENT
Hyper-Verbose Identifiers28 hits · 32 pts
SeverityFileLineSnippetContext
LOW…perf/test_query_regression_runner_compaction_toctou.py36 def test_quiesces_each_target_before_storage_inspection_and_read_bench(self) -> None:CODE
LOWtests/perf/query_regression_runner.py477def discover_region_via_frontend(target: RunTarget, table: dict[str, Any], http_timeout: float) -> dict[str, Any]:CODE
LOWtests/perf/query_regression_runner.py837def enforce_storage_thresholds(storage: dict[str, Any] | None, base: dict[str, Any] | None, candidate: dict[str, Any] | CODE
LOWtests/perf/query_regression_runner.py892def planned_storage_thresholds(storage: dict[str, Any] | None) -> list[dict[str, Any]]:CODE
LOWtests/perf/query_regression_runner.py1039def write_frontend_prom_config(target: RunTarget, remote: dict[str, Any]) -> Path:CODE
LOWtests/perf/query_regression_runner.py1104def summarize_remote_write_chunks(chunks: list[dict[str, Any]]) -> dict[str, Any]:CODE
LOWtests/perf/query_regression_runner.py1115def flush_remote_physical_table(target: RunTarget, db: str, physical_table: str, args: argparse.Namespace, *, dry_run: bCODE
LOWtests/perf/query_regression_runner.py1125def run_remote_write_ingestion(generator: Path | None, target: RunTarget, remote: dict[str, Any], args: argparse.NamespaCODE
LOWtests/perf/query_regression_runner.py1182def expected_remote_write_rows(remote: dict[str, Any]) -> int:CODE
LOWtests/perf/query_regression_runner.py1231def run_remote_write_scenario(args: argparse.Namespace, case: dict[str, Any], case_path: Path, targets: list[RunTarget],CODE
LOW…development-docker-image/tests/test_binary_platform.py54 def test_matching_architectures(self):CODE
LOW…development-docker-image/tests/test_binary_platform.py58 def test_rejects_bad_executable_elf_and_platform(self):CODE
LOW…development-docker-image/tests/test_binary_platform.py78 def test_rejects_wrong_architecture_and_symlink(self):CODE
LOW…development-docker-image/tests/test_binary_platform.py87 def test_cli_success_and_failures(self):CODE
LOW…db-development-docker-image/tests/test_image_config.py34 def test_parse_supported_bounded_dotenv(self):CODE
LOW…db-development-docker-image/tests/test_image_config.py38 def test_parser_does_not_validate_values(self):CODE
LOW…db-development-docker-image/tests/test_image_config.py41 def test_parser_rejects_unmatched_and_unsupported_syntax(self):CODE
LOW…db-development-docker-image/tests/test_image_config.py47 def test_validation_and_reference(self):CODE
LOW…db-development-docker-image/tests/test_image_config.py57 def test_atomic_update_preserves_mode_and_canonicalizes_duplicates(self):CODE
LOW…db-development-docker-image/tests/test_image_config.py67 def test_update_rejects_symlink(self):CODE
LOW…db-development-docker-image/tests/test_image_config.py77 def test_update_clears_omitted_registry_and_uses_private_new_file_mode(self):CODE
LOW…db-development-docker-image/tests/test_image_config.py88 def test_failed_replace_keeps_original_and_removes_temporary_file(self):CODE
LOWscripts/check-super-imports.py41def check_file_for_super_import(file_path):CODE
LOWscripts/fix-udeps.py33def extract_unused_dependencies(report):CODE
LOWscripts/fix-udeps.py161def remove_dependency_from_toml(file_path, dep_name, dep_type):CODE
LOWscripts/fix-udeps.py207def process_unused_dependencies(unused_deps):CODE
LOWcyborg/bin/follow-up-docs-issue.ts107function checkPullRequestOpenedEvent(event: PullRequestOpenedEvent): boolean {CODE
LOWcyborg/bin/follow-up-docs-issue.ts112function checkPullRequestEditedEvent(event: PullRequestEditedEvent): boolean {CODE
Redundant / Tautological Comments13 hits · 22 pts
SeverityFileLineSnippetContext
LOWgrafana/scripts/check.sh14 # Check if any invalid panels were foundCOMMENT
LOWdocs/how-to/memory-profile-scripts/scripts/dump.sh21 # Check if PID is provided as an argumentCOMMENT
LOWdocs/how-to/memory-profile-scripts/scripts/dump.sh38 # Check if ps command was successful and returned a numberCOMMENT
LOW…to/memory-profile-scripts/scripts/gen_from_collapse.sh7# Check if flamegraph.pl existsCOMMENT
LOW…to/memory-profile-scripts/scripts/gen_from_collapse.sh13# Check if directory argument is providedCOMMENT
LOW…to/memory-profile-scripts/scripts/gen_from_collapse.sh21# Check if the provided argument is a directoryCOMMENT
LOWscripts/install.sh127 # Check if files already exist and prompt for overrideCOMMENT
LOW.github/workflows/check-git-deps.yml60 # Check if commit existsCOMMENT
LOW.github/workflows/check-git-deps.yml62 # Check if commit is on main branchCOMMENT
LOW.github/scripts/copy-image.sh10# Check if necessary variables are set.COMMENT
LOW.github/scripts/copy-image.sh23 # Check if docker is installed.COMMENT
LOW.github/scripts/upload-artifacts-to-s3.sh11# Check if necessary variables are set.COMMENT
LOW.github/scripts/upload-artifacts-to-s3.sh92 # Check if jq is installed.COMMENT
AI Slop Vocabulary7 hits · 21 pts
SeverityFileLineSnippetContext
MEDIUMsrc/frontend/src/instance/jaeger.rs492// to utilize them through DataFrame APIs. To address this limitation, we create a new sessionCOMMENT
MEDIUMsrc/index/src/inverted_index/create/sort_create.rs52 /// Caller may leverage this behavior to create indexes with no data.COMMENT
MEDIUMsrc/mito2/src/compaction/run.rs589/// 3. Size efficiency - prefers merges that utilize available space effectivelyCOMMENT
MEDIUMsrc/query/src/dist_plan/analyzer/fallback.rs17//! This is a temporary solution, and will be removed once we have a more robust plan rewriterCOMMENT
MEDIUMsrc/query/src/dist_plan/analyzer/fallback.rs35/// This is a temporary solution, and will be removed once we have a more robust plan rewriterCOMMENT
MEDIUMsrc/servers/src/repeated_field.rs23// This code is to leverage the pooling mechanism to avoid frequent heap allocation/de-allocation when decoding deeply nCOMMENT
MEDIUMsrc/flow/src/adapter.rs594 // burst mode, so that if we miss a tick, we will run immediately to fully utilize the cpuCOMMENT
Excessive Try-Catch Wrapping9 hits · 16 pts
SeverityFileLineSnippetContext
LOWtests/perf/query_regression_runner.py264 except Exception as e: # noqa: BLE001 - report HTTP/query failures as JSONCODE
LOWtests/perf/query_regression_runner.py293 except Exception as e: # noqa: BLE001 - diagnostic loopCODE
LOWtests/perf/query_regression_runner.py1320 except Exception as e: # noqa: BLE001 - write machine-readable failure reportCODE
LOWtests/perf/query_regression_runner.py1400 except Exception as e: # noqa: BLE001 - write machine-readable failure reportCODE
MEDIUMscripts/fix-udeps.py26 print(f"Error: Report file '{report_path}' not found.")CODE
MEDIUMscripts/fix-udeps.py29 print(f"Error: Invalid JSON in report file: {e}")CODE
LOWscripts/fix-udeps.py202 except Exception as e:CODE
MEDIUMscripts/fix-udeps.py203 print(f"Error processing {file_path}: {e}")CODE
MEDIUMscripts/fix-udeps.py21def load_udeps_report(report_path):CODE
Fake / Example Data6 hits · 8 pts
SeverityFileLineSnippetContext
LOW…ts/cases/standalone/common/join/using_clause_joins.sql14(101, 'John Doe', 'NYC', 1000), (102, 'Jane Smith', 'LA', 2000), (103, 'Bob Wilson', 'Chicago', 3000);CODE
LOW…ses/standalone/common/function/string/like_pattern.sql30 ('John Doe', 'john@example.com', 1000),CODE
LOWsrc/index/benches/tokenizer_bench.rs96 "The quick brown fox jumps over the lazy dog. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed dCODE
LOWsrc/index/benches/tokenizer_bench.rs96 "The quick brown fox jumps over the lazy dog. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed dCODE
LOWsrc/index/benches/tokenizer_bench.rs100 "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et doloCODE
LOWsrc/index/benches/tokenizer_bench.rs100 "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et doloCODE
Deep Nesting8 hits · 8 pts
SeverityFileLineSnippetContext
LOWtests/perf/query_regression_runner.py285CODE
LOWtests/perf/query_regression_runner.py446CODE
LOWtests/perf/query_regression_runner.py703CODE
LOWtests/perf/query_regression_runner.py766CODE
LOWtests/perf/query_regression_runner.py1295CODE
LOWscripts/check-snafu.py20CODE
LOWscripts/fix-udeps.py161CODE
LOWsrc/common/datasource/tests/orc/write.py55CODE
Synthetic Comment Markers1 hit · 8 pts
SeverityFileLineSnippetContext
HIGHCONTRIBUTING.md112### Why fully AI-generated PRs without understanding are not helpfulCOMMENT
AI Response Leakage1 hit · 8 pts
SeverityFileLineSnippetContext
HIGHsrc/meta-srv/src/handler.rs498 // In this implementation, we pre-occupy the message_id of 0,COMMENT
Unused Imports7 hits · 7 pts
SeverityFileLineSnippetContext
LOWtests/perf/query_regression_runner.py18CODE
LOW.github/scripts/query-regression-summary.py18CODE
LOW.github/scripts/query-regression-run.py18CODE
LOW.github/scripts/query-regression-pr-metadata.py18CODE
LOW.github/scripts/run-compat.py27CODE
LOW.github/scripts/run-compat.py35CODE
LOWsrc/common/datasource/tests/orc/write.py15CODE
Example Usage Blocks2 hits · 3 pts
SeverityFileLineSnippetContext
LOW.github/scripts/copy-image.sh44# Usage example:COMMENT
LOW.github/scripts/upload-artifacts-to-s3.sh122# Usage example:COMMENT
TODO Padding1 hit · 1 pts
SeverityFileLineSnippetContext
LOWsrc/datanode/src/datanode.rs530 object_store_manager.default_object_store().clone(), // TODO: implement custom storage for file engineCODE