Repository Analysis

facebook/rocksdb

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

7.3 Low AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of facebook/rocksdb, a C++ project with 31,862 GitHub stars. SynthScan v2.0 examined 337,288 lines of code across 1260 source files, recording 2622 pattern matches distributed across 16 syntactic categories. The overall adjusted score of 7.3 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.3
Adjusted Score
7.3
Raw Score
100%
Time Factor
2026-07-13
Last Push
31.9K
Stars
C++
Language
337.3K
Lines of Code
1.3K
Files
2.6K
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 0HIGH 3MEDIUM 45LOW 2574

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 2622 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 Block2334 hits · 2042 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 strict_max_successive_merges;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.py121# params overwrite priority:COMMENT
LOWtools/db_crashtest.py621 # total time for this script to test db_stressCOMMENT
LOWtools/db_crashtest.py981 #COMMENT
LOWtools/db_crashtest.py1121 # deletion ingestion is off in the current run, because such filesCOMMENT
LOWtools/db_crashtest.py1141 # UDI now supports all operation types and all iteration directions.COMMENT
LOWtools/db_crashtest.py1201 or dest_params.get("manual_wal_flush_one_in", 0) > 0COMMENT
LOWtools/db_crashtest.py1441 # we have a fix that allows auto recovery.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.h561// partitioned indexes will still work, but will not get any performanceCOMMENT
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
LOWtools/block_cache_analyzer/block_cache_trace_analyzer.h241 // "time,label_1_access_per_second,label_2_access_per_second,...,label_N_access_per_second"COMMENT
LOWtools/block_cache_analyzer/block_cache_trace_analyzer.h261 bool user_access_only) const;COMMENT
LOWtools/block_cache_analyzer/block_cache_trace_analyzer.h281 // Write the reuse lifetime into a csv file saved in 'output_dir'. ReuseCOMMENT
2274 more matches not shown…
Hyper-Verbose Identifiers89 hits · 94 pts
SeverityFileLineSnippetContext
LOWtools/db_crashtest_test.py40def load_fault_injection_log_parser_module():CODE
LOWtools/db_crashtest_test.py82 def load_fault_injection_log_parser(self):CODE
LOWtools/db_crashtest_test.py92 def test_stress_cmd_env_defaults_tsan_suppressions(self):CODE
LOWtools/db_crashtest_test.py106 def test_stress_cmd_env_preserves_tsan_options(self):CODE
LOWtools/db_crashtest_test.py114 def test_get_ev_parent_dir_preserves_existing_contents(self):CODE
LOWtools/db_crashtest_test.py127 def test_finalize_disables_test_batches_snapshots_when_disable_wal(self):CODE
LOWtools/db_crashtest_test.py145 def test_finalize_disables_test_batches_snapshots_for_blob_direct_write(self):CODE
LOWtools/db_crashtest_test.py163 def test_finalize_disables_sqfc_range_queries_with_range_conversion(self):CODE
LOWtools/db_crashtest_test.py180 def test_strip_expected_sigterm_stderr_suppresses_only_known_lines(self):CODE
LOWtools/db_crashtest_test.py202 def test_strip_expected_sigterm_stderr_suppresses_retryable_wait_cqe(self):CODE
LOWtools/db_crashtest_test.py223 def test_strip_expected_sigterm_stderr_preserves_terminal_wait_cqe(self):CODE
LOWtools/db_crashtest_test.py237 def test_strip_expected_sigterm_stderr_preserves_other_stderr(self):CODE
LOWtools/db_crashtest_test.py259 def test_strip_expected_sigterm_stderr_requires_timeout_and_sigterm_marker(self):CODE
LOWtools/db_crashtest_test.py278 def test_output_matches_no_space_catches_known_failure_strings(self):CODE
LOWtools/db_crashtest_test.py303 def test_file_type_suffix_preserves_compound_suffixes(self):CODE
LOWtools/db_crashtest_test.py311 def test_finalize_sanitizes_incompatible_flags_for_multi_db(self):CODE
LOWtools/db_crashtest_test.py327 def test_finalize_preserves_flags_for_single_db(self):CODE
LOWtools/db_crashtest_test.py341 def test_build_out_of_space_diagnostics_summarizes_directory_suffixes(self):CODE
LOWtools/db_crashtest_test.py382 def test_print_fault_injection_log_decodes_streaming_raw_trace(self):CODE
LOWtools/db_crashtest_test.py456 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.py75def early_argument_parsing_before_main():CODE
LOWtools/db_crashtest.py110def apply_random_seed_per_iteration():CODE
LOWtools/db_crashtest.py582def setup_multiops_txn_key_spaces_file():CODE
LOWtools/db_crashtest.py1923def build_out_of_space_diagnostics(CODE
LOWtools/db_crashtest.py1988def print_output_and_exit_on_error(CODE
LOWtools/db_crashtest.py2009def print_run_output_and_exit_on_error(args, finalized_params, stdout, stderr):CODE
LOWtools/db_crashtest.py2018def strip_expected_sigterm_stderr(stdout, stderr, hit_timeout):CODE
LOWtools/db_crashtest.py2080def 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.py223def launch_iteration_processes(STRING
LOWtools/gtest_parallel_repro.py302def 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
LOWtools/advisor/advisor/db_bench_runner.py170 def _build_experiment_command(self, curr_options, db_path):CODE
LOWtools/advisor/advisor/db_options_parser.py284 def check_and_trigger_conditions(self, conditions):CODE
LOWtools/advisor/advisor/rule_parser.py117 def get_trigger_column_families(self):CODE
LOWtools/advisor/advisor/db_log_parser.py27 def check_and_trigger_conditions(self, conditions):CODE
LOWtools/advisor/advisor/db_log_parser.py99 def trigger_conditions_for_log(self, conditions, log):CODE
LOWtools/advisor/advisor/db_log_parser.py113 def check_and_trigger_conditions(self, conditions):CODE
LOWtools/advisor/test/test_rule_parser.py56 def test_triggered_conditions(self):CODE
LOWtools/advisor/test/test_rule_parser.py112 def test_condition_conjunctions(self):CODE
LOWtools/advisor/test/test_rule_parser.py162 def test_rule_missing_suggestions(self):CODE
LOWtools/advisor/test/test_rule_parser.py167 def test_rule_missing_conditions(self):CODE
LOWtools/advisor/test/test_rule_parser.py172 def test_condition_missing_regex(self):CODE
LOWtools/advisor/test/test_rule_parser.py177 def test_condition_missing_options(self):CODE
LOWtools/advisor/test/test_rule_parser.py182 def test_condition_missing_expression(self):CODE
LOWtools/advisor/test/test_rule_parser.py187 def test_suggestion_missing_option(self):CODE
LOWtools/advisor/test/test_rule_parser.py192 def test_suggestion_missing_description(self):CODE
LOWtools/advisor/test/test_rule_parser.py202 def test_condition_missing_source(self):CODE
LOWtools/advisor/test/test_rule_parser.py209 def test_suggestion_missing_action(self):CODE
LOWtools/advisor/test/test_db_bench_runner.py34 def test_get_info_log_file_name(self):CODE
LOWtools/advisor/test/test_db_bench_runner.py73 def test_build_experiment_command(self):CODE
LOWtools/advisor/test/test_db_stats_fetcher.py34 def test_check_and_trigger_conditions_bursty(self):CODE
LOWtools/advisor/test/test_db_stats_fetcher.py50 def test_check_and_trigger_conditions_eval_agg(self):CODE
LOWtools/advisor/test/test_db_stats_fetcher.py74 def test_check_and_trigger_conditions_eval(self):CODE
29 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.h1783 // 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.c2522 // Essentially a fingerprint of full Bloom schema, format_version=5COMMENT
MEDIUMdb/c_test.c2525 // 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 Nesting55 hits · 55 pts
SeverityFileLineSnippetContext
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.py931CODE
LOWtools/db_crashtest.py2177CODE
LOWtools/fault_injection_log_parser.py154CODE
LOWtools/gtest_parallel_repro.py558CODE
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.py779CODE
LOWtools/c_api_gen/auto_simple_bindings.py1187CODE
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.py229 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.py310 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.py172 " 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.py127def _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