Repository Analysis

facebook/rocksdb

A library that provides an embeddable, persistent key-value store for fast storage.

7.4 Low AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of facebook/rocksdb, a C++ project with 32,024 GitHub stars. SynthScan v2.0 examined 346,799 lines of code across 1292 source files, recording 2760 pattern matches distributed across 16 syntactic categories. The overall adjusted score of 7.4 places this repository in the Low AI signal 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).

7.4
Adjusted Score
7.4
Raw Score
100%
Time Factor
2026-08-28
Last Push
32.0K
Stars
C++
Language
346.8K
Lines of Code
1.3K
Files
2.8K
Pattern Hits
2026-08-29
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 0HIGH 3MEDIUM 45LOW 2712

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 2760 distinct pattern matches across 16 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 Block2451 hits · 2146 pts
SeverityFileLineSnippetContext
LOWCMakeLists.txt1# Prerequisites for Windows:COMMENT
LOWCMakeLists.txt21#COMMENT
LOWoptions/options_helper.h1// Copyright (c) 2011-present, Facebook, Inc. All rights reserved.COMMENT
LOWoptions/configurable_test.h1// Copyright (c) 2011-present, Facebook, Inc. All rights reserved.COMMENT
LOWoptions/cf_options.h1// Copyright (c) 2011-present, Facebook, Inc. All rights reserved.COMMENT
LOWoptions/cf_options.h301 bool memtable_whole_key_filtering;COMMENT
LOWoptions/configurable_helper.h1// Copyright (c) 2011-present, Facebook, Inc. All rights reserved.COMMENT
LOWoptions/configurable_helper.h21class ConfigurableHelper {COMMENT
LOWoptions/configurable_helper.h41 // @return InvalidArgument If any of the values cannot be successfullyCOMMENT
LOWoptions/configurable_helper.h61 // @return NotSupported If the option was found but no rule for convertingCOMMENT
LOWoptions/configurable_helper.h81 // equivalent.COMMENT
LOWoptions/configurable_helper.h101 // equivalent.COMMENT
LOWoptions/configurable_helper.h121 // @param InvalidArgument If the name is valid for this object butCOMMENT
LOWoptions/configurable_helper.h141 // Internal method to list the option names for this object.COMMENT
LOWoptions/configurable_helper.h161COMMENT
LOWtools/trace_analyzer_tool.h1// Copyright (c) 2011-present, Facebook, Inc. All rights reserved.COMMENT
LOWtools/regression_test.sh1#!/usr/bin/env bashCOMMENT
LOWtools/regression_test.sh21# TEST_PATH=/my/output/dir COMMIT_ID=abcdef ./tools/regression_test.shCOMMENT
LOWtools/regression_test.sh41# existsCOMMENT
LOWtools/regression_test.sh61# this feature only work for commits after 88acd93 or rocksdb versionCOMMENT
LOWtools/regression_test.sh81# HISTOGRAM: If 1, then the histogram feature on performance feature is on.COMMENT
LOWtools/tsan_suppressions.txt1# ThreadSanitizer suppressions for known third-party false positives.COMMENT
LOWtools/check_format_compatible.sh1#!/usr/bin/env bashCOMMENT
LOWtools/check_format_compatible.sh161COMMENT
LOWtools/check_format_compatible.sh381# General structure from here:COMMENT
LOWtools/run_leveldb.sh1#!/usr/bin/env bashCOMMENT
LOWtools/run_leveldb.sh21# Were list-of-threads specified as "1 2 4" then the tests in steps 2, 3 andCOMMENT
LOWtools/run_blob_bench.sh1#!/usr/bin/env bashCOMMENT
LOWtools/analyze_txn_stress_test.sh1#!/bin/bashCOMMENT
LOWtools/db_crashtest.py181# for default:COMMENT
LOWtools/db_crashtest.py261 "enable_compaction_on_deletion_trigger": lambda: random.choice([0, 0, 0, 1]),COMMENT
LOWtools/db_crashtest.py721 # currently assume killpoints in write functions are reached frequently.COMMENT
LOWtools/db_crashtest.py1121 # for writing (BlobFileReader calls GetFileSize() on active partition files).COMMENT
LOWtools/db_crashtest.py1141 #COMMENT
LOWtools/db_crashtest.py1281 # Disable database open fault injection to prevent test inefficiency described below.COMMENT
LOWtools/db_crashtest.py1301 dest_params["mmap_read"] = 0COMMENT
LOWtools/db_crashtest.py1361 #COMMENT
LOWtools/db_crashtest.py1581 )COMMENT
LOWtools/run_flash_bench.sh1#!/usr/bin/env bashCOMMENT
LOWtools/run_flash_bench.sh21# Test output is written to $OUTPUT_DIR, currently /tmp/output. The performanceCOMMENT
LOWtools/run_flash_bench.sh41# do range queries.COMMENT
LOWtools/simulated_hybrid_file_system.h1// Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.COMMENT
LOWtools/advisor/advisor/db_timeseries_parser.py61 returnCOMMENT
LOWtools/advisor/advisor/db_stats_fetcher.py61 else:COMMENT
LOWtools/advisor/advisor/db_options_parser.py341 # Trigger for an OptionCondition object is of the form:COMMENT
LOWtools/advisor/advisor/rules.ini1# Copyright (c) 2011-present, Facebook, Inc. All rights reserved.COMMENT
LOWtools/c_api_gen/c_base.h41*/COMMENT
LOWtools/c_api_gen/c_base.h521// if values_list[i] == NULL and errs[i] == NULL,COMMENT
LOWtools/c_api_gen/c_base.h561// as plain table, block based table with block based filters andCOMMENT
LOWtools/cpu_corruption_injector/injector_telemetry.py1#!/usr/bin/env python3COMMENT
LOWtools/cpu_corruption_injector/injector_navigate.py21# THROUGH rocksdb's own code by default; these are the EXTRA, non-rocksdb librariesCOMMENT
LOWtools/cpu_corruption_injector/injector_navigate.py61# By default gdb hands that signal to db_stress, whose own handler forks a SECOND gdbCOMMENT
LOWtools/cpu_corruption_injector/injector_navigate.py121 # runner_execute's per-run timeout killpg's the whole gdb+db_stress processCOMMENT
LOW…u_corruption_injector/injector_critical_instruction.py21#COMMENT
LOW…u_corruption_injector/injector_critical_instruction.py41_CMP_TEST_RE = re.compile(r"^(cmp|test)[bwlq]?\b")COMMENT
LOWtools/block_cache_analyzer/block_cache_trace_analyzer.h1// Copyright (c) 2011-present, Facebook, Inc. All rights reserved.COMMENT
LOWtools/block_cache_analyzer/block_cache_trace_analyzer.h161 // a block, and aggregates the information by block type, sst file, and columnCOMMENT
LOWtools/block_cache_analyzer/block_cache_trace_analyzer.h181 // Block Type UncompressionDict: Number of accesses: 2COMMENT
LOWtools/block_cache_analyzer/block_cache_trace_analyzer.h201 // Write the percentage of accesses break down by column family into a csvCOMMENT
LOWtools/block_cache_analyzer/block_cache_trace_analyzer.h221 //COMMENT
2391 more matches not shown…
Hyper-Verbose Identifiers111 hits · 108 pts
SeverityFileLineSnippetContext
LOWtools/db_crashtest_test.py84 def register_expected_values_dir_cleanup(self, db_crashtest):CODE
LOWtools/db_crashtest_test.py85 def cleanup_expected_values_dir():CODE
LOWtools/db_crashtest_test.py94 def load_fault_injection_log_parser(self):CODE
LOWtools/db_crashtest_test.py42def load_fault_injection_log_parser_module():CODE
LOWtools/db_crashtest_test.py120 def test_stress_cmd_env_defaults_tsan_suppressions(self):CODE
LOWtools/db_crashtest_test.py134 def test_stress_cmd_env_preserves_tsan_options(self):CODE
LOWtools/db_crashtest_test.py142 def test_generated_command_uses_async_db_api(self):CODE
LOWtools/db_crashtest_test.py156 def test_cache_and_write_buffer_size_multiplier_preserves_randomization(self):CODE
LOWtools/db_crashtest_test.py182 def test_cache_and_write_buffer_size_multiplier_respects_write_buffer_minimum(CODE
LOWtools/db_crashtest_test.py199 def test_get_ev_parent_dir_preserves_existing_contents(self):CODE
LOWtools/db_crashtest_test.py212 def test_finalize_disables_test_batches_snapshots_when_disable_wal(self):CODE
LOWtools/db_crashtest_test.py230 def test_finalize_disables_test_batches_snapshots_for_blob_direct_write(self):CODE
LOWtools/db_crashtest_test.py248 def test_finalize_disables_sqfc_range_queries_with_range_conversion(self):CODE
LOWtools/db_crashtest_test.py265 def test_finalize_enables_atomic_replace_ingestion_for_universal(self):CODE
LOWtools/db_crashtest_test.py290 def test_finalize_disables_atomic_replace_ingestion_when_incompatible(self):CODE
LOWtools/db_crashtest_test.py327 def test_strip_expected_sigterm_stderr_suppresses_only_known_lines(self):CODE
LOWtools/db_crashtest_test.py349 def test_strip_expected_sigterm_stderr_suppresses_retryable_wait_cqe(self):CODE
LOWtools/db_crashtest_test.py370 def test_strip_expected_sigterm_stderr_preserves_terminal_wait_cqe(self):CODE
LOWtools/db_crashtest_test.py384 def test_strip_expected_sigterm_stderr_preserves_other_stderr(self):CODE
LOWtools/db_crashtest_test.py406 def test_strip_expected_sigterm_stderr_requires_timeout_and_sigterm_marker(self):CODE
LOWtools/db_crashtest_test.py425 def test_output_matches_no_space_catches_known_failure_strings(self):CODE
LOWtools/db_crashtest_test.py450 def test_file_type_suffix_preserves_compound_suffixes(self):CODE
LOWtools/db_crashtest_test.py458 def test_finalize_sanitizes_incompatible_flags_for_multi_db(self):CODE
LOWtools/db_crashtest_test.py474 def test_finalize_preserves_flags_for_single_db(self):CODE
LOWtools/db_crashtest_test.py490 def test_finalize_tolerates_non_injected_io_errors_for_remote_db(self):CODE
LOWtools/db_crashtest_test.py507 def test_finalize_disables_tolerate_non_injected_io_errors_for_local_db(self):CODE
LOWtools/db_crashtest_test.py523 def test_build_out_of_space_diagnostics_summarizes_directory_suffixes(self):CODE
LOWtools/db_crashtest_test.py559 def test_liveness_params_keep_mixed_workload_and_enable_watchdog(self):CODE
LOWtools/db_crashtest_test.py614 def test_liveness_command_passes_watchdog_flags_not_wrapper_duration(self):CODE
LOWtools/db_crashtest_test.py645 def test_liveness_timeout_zero_uses_default_duration(self):CODE
LOWtools/db_crashtest_test.py659 def test_liveness_remote_db_uses_longer_timeouts(self):CODE
LOWtools/db_crashtest_test.py686 def test_liveness_wrapper_timeout_is_successful_end_of_run(self):CODE
LOWtools/db_crashtest_test.py716 def test_remote_liveness_uses_local_expected_values_dir(self):CODE
LOWtools/db_crashtest_test.py771 def test_remote_uri_forms_are_normalized_for_workload_and_cleanup(self):CODE
LOWtools/db_crashtest_test.py843 def test_remote_uri_missing_value_does_not_consume_following_option(self):CODE
LOWtools/db_crashtest_test.py856 def test_remote_uri_last_value_wins_and_cleanup_preserves_order(self):CODE
LOWtools/db_crashtest_test.py881 def test_liveness_can_target_transaction_lock_manager(self):CODE
LOWtools/db_crashtest_test.py899 def test_print_fault_injection_log_decodes_streaming_raw_trace(self):CODE
LOWtools/db_crashtest_test.py973 def test_fault_injection_log_dir_uses_local_tmp_for_remote_db(self):CODE
LOWtools/run_clang_tidy.py128def parse_diff_for_changed_lines(diff_text):CODE
LOWtools/run_clang_tidy.py303def _format_diagnostic_counts(diagnostic_lines):CODE
LOWtools/run_clang_tidy.py369def write_github_step_summary(warning_lines, by_check, wall_time, repo_root):CODE
LOWtools/db_crashtest.py80def apply_cache_and_write_buffer_size_multiplier(params):CODE
LOWtools/db_crashtest.py136def early_argument_parsing_before_main():CODE
LOWtools/db_crashtest.py169def apply_random_seed_per_iteration():CODE
LOWtools/db_crashtest.py664def setup_multiops_txn_key_spaces_file():CODE
LOWtools/db_crashtest.py772def liveness_default_timeout_sec():CODE
LOWtools/db_crashtest.py777def apply_liveness_remote_defaults(params, args):CODE
LOWtools/db_crashtest.py2106def build_out_of_space_diagnostics(CODE
LOWtools/db_crashtest.py2180def print_output_and_exit_on_error(CODE
LOWtools/db_crashtest.py2201def print_run_output_and_exit_on_error(args, finalized_params, stdout, stderr):CODE
LOWtools/db_crashtest.py2210def strip_expected_sigterm_stderr(stdout, stderr, hit_timeout):CODE
LOWtools/db_crashtest.py2271def print_fault_injection_log(pid):CODE
LOWtools/fault_injection_log_parser.py154def decode_fault_injection_log(raw_path, output_path=None):CODE
LOWtools/gtest_parallel_repro.py228def launch_iteration_processes(STRING
LOWtools/gtest_parallel_repro.py307def collect_iteration_results(STRING
LOWtools/advisor/advisor/db_timeseries_parser.py123 def check_and_trigger_conditions(self, conditions):CODE
LOWtools/advisor/advisor/db_timeseries_parser.py167 def handle_evaluate_expression(self, condition, statistics, entities):CODE
LOWtools/advisor/advisor/db_bench_runner.py140 def _get_options_command_line_args_str(self, curr_options):CODE
LOWtools/advisor/advisor/db_bench_runner.py155 def _setup_db_before_experiment(self, curr_options, db_path):CODE
51 more matches not shown…
AI Slop Vocabulary21 hits · 60 pts
SeverityFileLineSnippetContext
LOWtools/benchmark.sh749 # doesn't output regular statistics then we'll just use the time command toCOMMENT
MEDIUMtools/advisor/advisor/ini_parser.py27 # A section header looks like: [Rule "my-new-rule"]. Essentially,COMMENT
MEDIUMtools/cpu_corruption_injector/runner_report.py37 # ERROR is a per-run harness failure, not a db_stress data outcome, and separateCOMMENT
MEDIUMtools/cpu_corruption_injector/injector_navigate.py146 # (diagnostic only; runner_execute scans gdb.log for harness deaths).COMMENT
MEDIUMutil/ribbon_alg.h95// By contrast Bloom filters utilize an "AND" construction: a query onlyCOMMENT
MEDIUMutil/ribbon_alg.h889// effectively utilize any size space (multiple of CoeffRow) for minimizingCOMMENT
MEDIUMinclude/rocksdb/merge_operator.h26// Essentially, a MergeOperator specifies the SEMANTICS of a merge, which onlyCOMMENT
MEDIUMinclude/rocksdb/memory_allocator.h65// Generate memory allocator which allocates through Jemalloc and utilizeCOMMENT
MEDIUMinclude/rocksdb/options.h1821 // competing with read and write operations during peak hours. Essentially, weCOMMENT
MEDIUMinclude/rocksdb/compression_type.h307 // Essentially specifies a minimum acceptable compression ratio. A block isCOMMENT
MEDIUMinclude/rocksdb/experimental.h250// * Point queries can utilize essentially any kind of filter by extractingCOMMENT
MEDIUMutilities/persistent_cache/persistent_cache_tier.h23// is a generic design and can leverage any storage medium -- disk/SSD/NVM/RAM.COMMENT
MEDIUMtable/block_based/filter_policy_internal.h200 // Essentially for testing only: configured millibits/keyCOMMENT
MEDIUMtable/block_based/filter_policy_internal.h202 // Essentially for testing only: legacy whole bits/keyCOMMENT
MEDIUMtable/block_based/filter_policy_internal.h246 // State for implementing optimize_filters_for_memory. Essentially, thisCOMMENT
LOWbuild_tools/gtest_parallel.py56# Before a SIGINT is seen, wait(p) will simply call p.wait() andCOMMENT
MEDIUMdb/c_test.c2606 // Essentially a fingerprint of full Bloom schema, format_version=5COMMENT
MEDIUMdb/c_test.c2609 // Essentially a fingerprint of Ribbon schemaCOMMENT
MEDIUMthird-party/gtest-1.8.1/fused-src/gtest/gtest.h9648// This implementation is *not* meant to be as highly tuned or robustCOMMENT
MEDIUMthird-party/gtest-1.8.1/fused-src/gtest/gtest.h9721// In practice, this can be used to test functions that utilize theCOMMENT
MEDIUMport/win/io_win.h304// we utilize the original buffer as an alignment buffer to write directly toCOMMENT
Deep Nesting54 hits · 53 pts
SeverityFileLineSnippetContext
LOWtools/db_crashtest_test.py771CODE
LOWtools/benchmark_ci.py55CODE
LOWtools/run_clang_tidy.py156CODE
LOWtools/run_clang_tidy.py315CODE
LOWtools/run_clang_tidy.py435CODE
LOWtools/write_stress_runner.py25CODE
LOWtools/db_crashtest.py2424CODE
LOWtools/fault_injection_log_parser.py154CODE
LOWtools/gtest_parallel_repro.py563CODE
LOWtools/advisor/advisor/db_timeseries_parser.py47CODE
LOWtools/advisor/advisor/db_timeseries_parser.py98CODE
LOWtools/advisor/advisor/db_timeseries_parser.py123CODE
LOWtools/advisor/advisor/db_timeseries_parser.py167CODE
LOWtools/advisor/advisor/db_bench_runner.py57CODE
LOWtools/advisor/advisor/db_config_optimizer.py19CODE
LOWtools/advisor/advisor/db_config_optimizer.py54CODE
LOWtools/advisor/advisor/db_stats_fetcher.py65CODE
LOWtools/advisor/advisor/db_stats_fetcher.py92CODE
LOWtools/advisor/advisor/db_stats_fetcher.py282CODE
LOWtools/advisor/advisor/db_options_parser.py83CODE
LOWtools/advisor/advisor/db_options_parser.py144CODE
LOWtools/advisor/advisor/db_options_parser.py197CODE
LOWtools/advisor/advisor/db_options_parser.py228CODE
LOWtools/advisor/advisor/db_options_parser.py266CODE
LOWtools/advisor/advisor/db_options_parser.py284CODE
LOWtools/advisor/advisor/rule_parser.py58CODE
LOWtools/advisor/advisor/rule_parser.py120CODE
LOWtools/advisor/advisor/rule_parser.py222CODE
LOWtools/advisor/advisor/rule_parser.py361CODE
LOWtools/advisor/advisor/rule_parser.py429CODE
LOWtools/advisor/advisor/db_log_parser.py113CODE
LOWtools/c_api_gen/validate_generated_equivalence.py98CODE
LOWtools/c_api_gen/validate_generated_equivalence.py147CODE
LOWtools/c_api_gen/gen_roundtrip_tests.py82CODE
LOWtools/c_api_gen/gen_roundtrip_tests.py128CODE
LOWtools/c_api_gen/auto_simple_bindings.py1211CODE
LOWtools/block_cache_analyzer/block_cache_pysim.py1537CODE
LOWtools/block_cache_analyzer/block_cache_pysim.py1666CODE
LOWtools/block_cache_analyzer/block_cache_pysim.py121CODE
LOWtools/block_cache_analyzer/block_cache_pysim.py163CODE
LOWtools/block_cache_analyzer/block_cache_pysim.py460CODE
LOW…lock_cache_analyzer/block_cache_trace_analyzer_plot.py51CODE
LOW…lock_cache_analyzer/block_cache_trace_analyzer_plot.py93CODE
LOW…lock_cache_analyzer/block_cache_trace_analyzer_plot.py210CODE
LOW…lock_cache_analyzer/block_cache_trace_analyzer_plot.py261CODE
LOWbuckifier/buckify_rocksdb.py74CODE
LOWbuckifier/buckify_rocksdb.py118CODE
LOWbuild_tools/benchmark_log_tool.py117CODE
LOWbuild_tools/amalgamate.py71CODE
LOWbuild_tools/gtest_parallel.py640CODE
LOWbuild_tools/gtest_parallel.py705CODE
LOWbuild_tools/gtest_parallel.py384CODE
LOWbuild_tools/gtest_parallel.py714CODE
LOWbuild_tools/getdeps_fallback_mirror.py87CODE
Decorative Section Separators13 hits · 45 pts
SeverityFileLineSnippetContext
MEDIUMtools/regression_test.sh99#==============================================================================COMMENT
MEDIUMtools/regression_test.sh101#==============================================================================COMMENT
MEDIUMtools/regression_test.sh120#==============================================================================COMMENT
MEDIUMtools/run_clang_tidy.py515 # ------------------------------------------------------------------COMMENT
MEDIUMtools/run_clang_tidy.py517 # ------------------------------------------------------------------COMMENT
MEDIUMtools/run_clang_tidy.py534 # ------------------------------------------------------------------COMMENT
MEDIUMtools/run_clang_tidy.py536 # ------------------------------------------------------------------COMMENT
MEDIUMtools/run_clang_tidy.py554 # ------------------------------------------------------------------COMMENT
MEDIUMtools/run_clang_tidy.py556 # ------------------------------------------------------------------COMMENT
MEDIUMtools/run_clang_tidy.py600 # ------------------------------------------------------------------COMMENT
MEDIUMtools/run_clang_tidy.py602 # ------------------------------------------------------------------COMMENT
MEDIUMtools/run_clang_tidy.py608 # ------------------------------------------------------------------COMMENT
MEDIUMtools/run_clang_tidy.py610 # ------------------------------------------------------------------COMMENT
Structural Annotation Overuse29 hits · 44 pts
SeverityFileLineSnippetContext
LOWutil/compression.h627// NOTE: This class is not thread safe.COMMENT
LOWutil/compression.h669// NOTE: This class is not thread safe.COMMENT
LOWinclude/rocksdb/utilities/object_registry.h248 // NOTE: This function replaces the old ObjectLibrary::Register()COMMENT
LOWclaude_md/add_public_api.md28### Step 1: Define the C++ Public InterfaceCOMMENT
LOWclaude_md/add_public_api.md53### Step 2: Define Options Struct (If Needed)COMMENT
LOWclaude_md/add_public_api.md81### Step 3: Implement in DBImplCOMMENT
LOWclaude_md/add_public_api.md131### Step 4: Handle Special DB TypesCOMMENT
LOWclaude_md/add_public_api.md169### Step 5: Add C API BindingsCOMMENT
LOWclaude_md/add_public_api.md283### Step 6: Add Java BindingsCOMMENT
LOWclaude_md/add_public_api.md444### Step 7: Update Build FilesCOMMENT
LOWclaude_md/add_public_api.md454### Step 8: Add Release NotesCOMMENT
LOWclaude_md/add_public_api.md476### Step 9: Add TestsCOMMENT
LOWclaude_md/add_option.md51### Step 1: Define the Option in Public HeaderCOMMENT
LOWclaude_md/add_option.md69### Step 2: Add to Internal Options StructsCOMMENT
LOWclaude_md/add_option.md87### Step 3: Register for Serialization/DeserializationCOMMENT
LOWclaude_md/add_option.md108### Step 4: Update Options HelperCOMMENT
LOWclaude_md/add_option.md119### Step 5: Add to Options Settable TestCOMMENT
LOWclaude_md/add_option.md129### Step 6: Add db_stress SupportCOMMENT
LOWclaude_md/add_option.md153### Step 7: Add db_bench SupportCOMMENT
LOWclaude_md/add_option.md167### Step 8: Add Crash Test SupportCOMMENT
LOWclaude_md/add_option.md183### Step 9: Add Release NoteCOMMENT
LOWclaude_md/add_option.md197### Step 1: Define the Option in Public HeaderCOMMENT
LOWclaude_md/add_option.md225### Step 2: Register for Serialization in Table FactoryCOMMENT
LOWclaude_md/add_option.md266### Step 3: Add to Options Settable TestCOMMENT
LOWclaude_md/add_option.md277### Step 4: Add to Options TestCOMMENT
LOWclaude_md/add_option.md291### Step 5: Add db_stress SupportCOMMENT
LOWclaude_md/add_option.md324### Step 6: Add db_bench SupportCOMMENT
LOWclaude_md/add_option.md346### Step 7: Add Crash Test SupportCOMMENT
LOWclaude_md/add_option.md357### Step 8: Add Java API SupportCOMMENT
Self-Referential Comments10 hits · 34 pts
SeverityFileLineSnippetContext
MEDIUMtools/benchmark_ci.py94 # Create a symlink to the db_bench executableCOMMENT
MEDIUMtools/benchmark.sh784 # Define a set of benchmarks.COMMENT
MEDIUMtools/advisor/advisor/rule_parser_example.py23 # Create the Log STATS objectCOMMENT
MEDIUMtools/advisor/advisor/db_bench_runner.py212 # Create the Log STATS objectCOMMENT
MEDIUMtools/advisor/advisor/db_bench_runner.py214 # Create the PerfContext STATS objectCOMMENT
MEDIUMtools/advisor/advisor/db_bench_runner.py222 # Create the ODS STATS objectCOMMENT
MEDIUMtools/advisor/advisor/db_config_optimizer.py70 # Create the updated configuration from the rule's suggestionsCOMMENT
MEDIUMtools/cpu_corruption_injector/injector_telemetry.py9# This module is the injector's OBSERVABILITY layer: it captures where a corruptionCOMMENT
MEDIUMbuckifier/targets_cfg.py8# This file is a Meta-specific integration for buck builds, so canCOMMENT
MEDIUMbuckifier/rocks_test_runner.sh3# Create a tmp directory for the test to useCOMMENT
Unused Imports34 hits · 34 pts
SeverityFileLineSnippetContext
LOWtools/db_crashtest_test.py10CODE
LOWtools/ldb_test.py11CODE
LOWtools/advisor/advisor/db_timeseries_parser.py9CODE
LOWtools/advisor/advisor/db_stats_fetcher.py11CODE
LOWtools/c_api_gen/validate_generated_equivalence.py20CODE
LOWtools/c_api_gen/regen_all.py8CODE
LOWtools/c_api_gen/check_api_compatibility.py29CODE
LOWtools/c_api_gen/gen_roundtrip_tests.py33CODE
LOWtools/c_api_gen/gen_roundtrip_tests.py36CODE
LOWtools/c_api_gen/verify_generated_up_to_date.py8CODE
LOWtools/c_api_gen/check_api_completeness.py26CODE
LOWtools/c_api_gen/generate_c_api.py18CODE
LOWtools/c_api_gen/auto_simple_bindings.py19CODE
LOWtools/cpu_corruption_injector/runner.py8CODE
LOWtools/cpu_corruption_injector/injector_telemetry.py27CODE
LOW…u_corruption_injector/runner_randomize_stress_flags.py10CODE
LOWtools/cpu_corruption_injector/runner_report.py8CODE
LOWtools/cpu_corruption_injector/injector.py10CODE
LOW…pu_corruption_injector/injector_register_corruption.py9CODE
LOWtools/cpu_corruption_injector/injector_navigate.py9CODE
LOWtools/cpu_corruption_injector/runner_execute.py8CODE
LOWtools/cpu_corruption_injector/runner_build.py8CODE
LOW…u_corruption_injector/injector_critical_instruction.py9CODE
LOW…n_injector/tests/test_injector_critical_instruction.py17CODE
LOWtools/block_cache_analyzer/block_cache_pysim_test.py8CODE
LOWtools/block_cache_analyzer/block_cache_pysim_test.py8CODE
LOWtools/block_cache_analyzer/block_cache_pysim_test.py8CODE
LOWtools/block_cache_analyzer/block_cache_pysim_test.py8CODE
LOWbuckifier/util.py7CODE
LOWbuckifier/util.py9CODE
LOWbuckifier/targets_builder.py4CODE
LOWbuckifier/targets_builder.py6CODE
LOWbuckifier/buckify_rocksdb.py5CODE
LOWbuckifier/buckify_rocksdb.py7CODE
Excessive Try-Catch Wrapping17 hits · 21 pts
SeverityFileLineSnippetContext
LOWtools/ldb_test.py90 except Exception:CODE
LOWtools/advisor/advisor/db_timeseries_parser.py184 except Exception as e:CODE
LOWtools/advisor/advisor/db_timeseries_parser.py200 except Exception as e:CODE
MEDIUMtools/advisor/advisor/db_bench_runner.py160 print("Error: rmdir " + e.filename + " " + e.strerror)CODE
LOWtools/advisor/advisor/db_options_parser.py320 except Exception as e:CODE
LOWtools/advisor/advisor/db_options_parser.py339 except Exception as e:CODE
LOWtools/cpu_corruption_injector/runner.py234 except Exception: # noqa: BLE001 -- one run's crash is its own ERROR, never aborts the restCODE
LOWtools/cpu_corruption_injector/injector.py182 except Exception as exc: # noqa: BLE001CODE
LOWbuckifier/buckify_rocksdb.py320 except Exception:CODE
LOWbuild_tools/gtest_parallel.py632 except Exception:CODE
MEDIUMbuild_tools/gtest_parallel.py628def __read_test_times_file(fd):CODE
LOWbuild_tools/getdeps_fallback_mirror.py46 except Exception:CODE
LOWbuild_tools/getdeps_fallback_mirror.py57 except Exception as ex:CODE
LOWbuild_tools/getdeps_fallback_mirror.py72 except Exception:CODE
LOWbuild_tools/getdeps_fallback_mirror.py165 except Exception as ex:CODE
LOWbuild_tools/getdeps_fallback_mirror.py222 except Exception as ex:CODE
MEDIUMbuild_tools/getdeps_fallback_mirror.py69def file_size(path):CODE
Cross-Language Confusion3 hits · 12 pts
SeverityFileLineSnippetContext
HIGHtools/run_clang_tidy.py234 " mkdir build && cd build && cmake -DCMAKE_EXPORT_COMPILE_COMMANDS=ON ..\n"CODE
HIGHtools/c_api_gen/gen_roundtrip_tests.py177 " CheckCondition(rt_len == 4 && rt_v != NULL && "CODE
HIGHbuckifier/util.py98 running `cmd1 && cmd2 && cmd3`STRING
Redundant / Tautological Comments7 hits · 10 pts
SeverityFileLineSnippetContext
LOWtools/generate_random_db.sh33# Check if deleterange command is supported by grepping ldb --helpCOMMENT
LOWtools/ldb_test.py855 # Check if null characters doesn't infer with output format.COMMENT
LOWbuild_tools/format-diff.sh109# Check if this script has already been added to pre-commit hook.COMMENT
LOWbuild_tools/format-diff.sh172 # Check if file is missing copyrightCOMMENT
LOWbuild_tools/check_progress.sh67 # Check if failed (exitval != 0 or signal != 0)COMMENT
LOWbuild_tools/check_progress.sh102# Check if tests are running (LOG file exists)COMMENT
LOWbuild_tools/getdeps_fallback_mirror.py134 # Check if already valid.COMMENT
Example Usage Blocks6 hits · 9 pts
SeverityFileLineSnippetContext
LOWtools/analyze_txn_stress_test.sh3# Usage:COMMENT
LOWutil/defer.h17// Usage example:COMMENT
LOWbuckifier/buckify_rocksdb.py21# Usage:COMMENT
LOWbuild_tools/rockstest.sh20# Example usage:COMMENT
LOWbuild_tools/rocksptest.sh26# Example usage:COMMENT
LOW.github/scripts/ccache-trim.sh4# Usage:COMMENT
Fake / Example Data1 hit · 2 pts
SeverityFileLineSnippetContext
LOWinclude/rocksdb/advanced_cache.h135 // "placeholder" cache entries with nullptr object.COMMENT
Modern Structural Boilerplate1 hit · 1 pts
SeverityFileLineSnippetContext
LOWtools/cpu_corruption_injector/runner.py132def _setup_logging(report_dir: str) -> None:CODE
AI Structural Patterns1 hit · 1 pts
SeverityFileLineSnippetContext
LOWbuckifier/targets_builder.py33CODE
Overly Generic Function Names1 hit · 1 pts
SeverityFileLineSnippetContext
LOWbuild_tools/gtest_parallel.py311 def run_task(self, task, timeout_per_test):CODE