A library that provides an embeddable, persistent key-value store for fast storage.
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).
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.
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.
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.
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.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | CMakeLists.txt | 1 | # Prerequisites for Windows: | COMMENT |
| LOW | CMakeLists.txt | 21 | # | COMMENT |
| LOW | options/options_helper.h | 1 | // Copyright (c) 2011-present, Facebook, Inc. All rights reserved. | COMMENT |
| LOW | options/configurable_test.h | 1 | // Copyright (c) 2011-present, Facebook, Inc. All rights reserved. | COMMENT |
| LOW | options/cf_options.h | 1 | // Copyright (c) 2011-present, Facebook, Inc. All rights reserved. | COMMENT |
| LOW | options/cf_options.h | 301 | bool strict_max_successive_merges; | COMMENT |
| LOW | options/configurable_helper.h | 1 | // Copyright (c) 2011-present, Facebook, Inc. All rights reserved. | COMMENT |
| LOW | options/configurable_helper.h | 21 | class ConfigurableHelper { | COMMENT |
| LOW | options/configurable_helper.h | 41 | // @return InvalidArgument If any of the values cannot be successfully | COMMENT |
| LOW | options/configurable_helper.h | 61 | // @return NotSupported If the option was found but no rule for converting | COMMENT |
| LOW | options/configurable_helper.h | 81 | // equivalent. | COMMENT |
| LOW | options/configurable_helper.h | 101 | // equivalent. | COMMENT |
| LOW | options/configurable_helper.h | 121 | // @param InvalidArgument If the name is valid for this object but | COMMENT |
| LOW | options/configurable_helper.h | 141 | // Internal method to list the option names for this object. | COMMENT |
| LOW | options/configurable_helper.h | 161 | COMMENT | |
| LOW | tools/trace_analyzer_tool.h | 1 | // Copyright (c) 2011-present, Facebook, Inc. All rights reserved. | COMMENT |
| LOW | tools/regression_test.sh | 1 | #!/usr/bin/env bash | COMMENT |
| LOW | tools/regression_test.sh | 21 | # TEST_PATH=/my/output/dir COMMIT_ID=abcdef ./tools/regression_test.sh | COMMENT |
| LOW | tools/regression_test.sh | 41 | # exists | COMMENT |
| LOW | tools/regression_test.sh | 61 | # this feature only work for commits after 88acd93 or rocksdb version | COMMENT |
| LOW | tools/regression_test.sh | 81 | # HISTOGRAM: If 1, then the histogram feature on performance feature is on. | COMMENT |
| LOW | tools/tsan_suppressions.txt | 1 | # ThreadSanitizer suppressions for known third-party false positives. | COMMENT |
| LOW | tools/check_format_compatible.sh | 1 | #!/usr/bin/env bash | COMMENT |
| LOW | tools/check_format_compatible.sh | 161 | COMMENT | |
| LOW | tools/check_format_compatible.sh | 381 | # General structure from here: | COMMENT |
| LOW | tools/run_leveldb.sh | 1 | #!/usr/bin/env bash | COMMENT |
| LOW | tools/run_leveldb.sh | 21 | # Were list-of-threads specified as "1 2 4" then the tests in steps 2, 3 and | COMMENT |
| LOW | tools/run_blob_bench.sh | 1 | #!/usr/bin/env bash | COMMENT |
| LOW | tools/analyze_txn_stress_test.sh | 1 | #!/bin/bash | COMMENT |
| LOW | tools/db_crashtest.py | 121 | # params overwrite priority: | COMMENT |
| LOW | tools/db_crashtest.py | 621 | # total time for this script to test db_stress | COMMENT |
| LOW | tools/db_crashtest.py | 981 | # | COMMENT |
| LOW | tools/db_crashtest.py | 1121 | # deletion ingestion is off in the current run, because such files | COMMENT |
| LOW | tools/db_crashtest.py | 1141 | # UDI now supports all operation types and all iteration directions. | COMMENT |
| LOW | tools/db_crashtest.py | 1201 | or dest_params.get("manual_wal_flush_one_in", 0) > 0 | COMMENT |
| LOW | tools/db_crashtest.py | 1441 | # we have a fix that allows auto recovery. | COMMENT |
| LOW | tools/run_flash_bench.sh | 1 | #!/usr/bin/env bash | COMMENT |
| LOW | tools/run_flash_bench.sh | 21 | # Test output is written to $OUTPUT_DIR, currently /tmp/output. The performance | COMMENT |
| LOW | tools/run_flash_bench.sh | 41 | # do range queries. | COMMENT |
| LOW | tools/simulated_hybrid_file_system.h | 1 | // Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. | COMMENT |
| LOW | tools/advisor/advisor/db_timeseries_parser.py | 61 | return | COMMENT |
| LOW | tools/advisor/advisor/db_stats_fetcher.py | 61 | else: | COMMENT |
| LOW | tools/advisor/advisor/db_options_parser.py | 341 | # Trigger for an OptionCondition object is of the form: | COMMENT |
| LOW | tools/advisor/advisor/rules.ini | 1 | # Copyright (c) 2011-present, Facebook, Inc. All rights reserved. | COMMENT |
| LOW | tools/c_api_gen/c_base.h | 41 | */ | COMMENT |
| LOW | tools/c_api_gen/c_base.h | 561 | // partitioned indexes will still work, but will not get any performance | COMMENT |
| LOW | tools/cpu_corruption_injector/injector_telemetry.py | 1 | #!/usr/bin/env python3 | COMMENT |
| LOW | tools/cpu_corruption_injector/injector_navigate.py | 21 | # THROUGH rocksdb's own code by default; these are the EXTRA, non-rocksdb libraries | COMMENT |
| LOW | tools/cpu_corruption_injector/injector_navigate.py | 61 | # By default gdb hands that signal to db_stress, whose own handler forks a SECOND gdb | COMMENT |
| LOW | tools/cpu_corruption_injector/injector_navigate.py | 121 | # runner_execute's per-run timeout killpg's the whole gdb+db_stress process | COMMENT |
| LOW | …u_corruption_injector/injector_critical_instruction.py | 21 | # | COMMENT |
| LOW | …u_corruption_injector/injector_critical_instruction.py | 41 | _CMP_TEST_RE = re.compile(r"^(cmp|test)[bwlq]?\b") | COMMENT |
| LOW | tools/block_cache_analyzer/block_cache_trace_analyzer.h | 1 | // Copyright (c) 2011-present, Facebook, Inc. All rights reserved. | COMMENT |
| LOW | tools/block_cache_analyzer/block_cache_trace_analyzer.h | 161 | // a block, and aggregates the information by block type, sst file, and column | COMMENT |
| LOW | tools/block_cache_analyzer/block_cache_trace_analyzer.h | 181 | // Block Type UncompressionDict: Number of accesses: 2 | COMMENT |
| LOW | tools/block_cache_analyzer/block_cache_trace_analyzer.h | 201 | // Write the percentage of accesses break down by column family into a csv | COMMENT |
| LOW | tools/block_cache_analyzer/block_cache_trace_analyzer.h | 221 | // | COMMENT |
| LOW | tools/block_cache_analyzer/block_cache_trace_analyzer.h | 241 | // "time,label_1_access_per_second,label_2_access_per_second,...,label_N_access_per_second" | COMMENT |
| LOW | tools/block_cache_analyzer/block_cache_trace_analyzer.h | 261 | bool user_access_only) const; | COMMENT |
| LOW | tools/block_cache_analyzer/block_cache_trace_analyzer.h | 281 | // Write the reuse lifetime into a csv file saved in 'output_dir'. Reuse | COMMENT |
| 2274 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tools/db_crashtest_test.py | 40 | def load_fault_injection_log_parser_module(): | CODE |
| LOW | tools/db_crashtest_test.py | 82 | def load_fault_injection_log_parser(self): | CODE |
| LOW | tools/db_crashtest_test.py | 92 | def test_stress_cmd_env_defaults_tsan_suppressions(self): | CODE |
| LOW | tools/db_crashtest_test.py | 106 | def test_stress_cmd_env_preserves_tsan_options(self): | CODE |
| LOW | tools/db_crashtest_test.py | 114 | def test_get_ev_parent_dir_preserves_existing_contents(self): | CODE |
| LOW | tools/db_crashtest_test.py | 127 | def test_finalize_disables_test_batches_snapshots_when_disable_wal(self): | CODE |
| LOW | tools/db_crashtest_test.py | 145 | def test_finalize_disables_test_batches_snapshots_for_blob_direct_write(self): | CODE |
| LOW | tools/db_crashtest_test.py | 163 | def test_finalize_disables_sqfc_range_queries_with_range_conversion(self): | CODE |
| LOW | tools/db_crashtest_test.py | 180 | def test_strip_expected_sigterm_stderr_suppresses_only_known_lines(self): | CODE |
| LOW | tools/db_crashtest_test.py | 202 | def test_strip_expected_sigterm_stderr_suppresses_retryable_wait_cqe(self): | CODE |
| LOW | tools/db_crashtest_test.py | 223 | def test_strip_expected_sigterm_stderr_preserves_terminal_wait_cqe(self): | CODE |
| LOW | tools/db_crashtest_test.py | 237 | def test_strip_expected_sigterm_stderr_preserves_other_stderr(self): | CODE |
| LOW | tools/db_crashtest_test.py | 259 | def test_strip_expected_sigterm_stderr_requires_timeout_and_sigterm_marker(self): | CODE |
| LOW | tools/db_crashtest_test.py | 278 | def test_output_matches_no_space_catches_known_failure_strings(self): | CODE |
| LOW | tools/db_crashtest_test.py | 303 | def test_file_type_suffix_preserves_compound_suffixes(self): | CODE |
| LOW | tools/db_crashtest_test.py | 311 | def test_finalize_sanitizes_incompatible_flags_for_multi_db(self): | CODE |
| LOW | tools/db_crashtest_test.py | 327 | def test_finalize_preserves_flags_for_single_db(self): | CODE |
| LOW | tools/db_crashtest_test.py | 341 | def test_build_out_of_space_diagnostics_summarizes_directory_suffixes(self): | CODE |
| LOW | tools/db_crashtest_test.py | 382 | def test_print_fault_injection_log_decodes_streaming_raw_trace(self): | CODE |
| LOW | tools/db_crashtest_test.py | 456 | def test_fault_injection_log_dir_uses_local_tmp_for_remote_db(self): | CODE |
| LOW | tools/run_clang_tidy.py | 128 | def parse_diff_for_changed_lines(diff_text): | CODE |
| LOW | tools/run_clang_tidy.py | 303 | def _format_diagnostic_counts(diagnostic_lines): | CODE |
| LOW | tools/run_clang_tidy.py | 369 | def write_github_step_summary(warning_lines, by_check, wall_time, repo_root): | CODE |
| LOW | tools/db_crashtest.py | 75 | def early_argument_parsing_before_main(): | CODE |
| LOW | tools/db_crashtest.py | 110 | def apply_random_seed_per_iteration(): | CODE |
| LOW | tools/db_crashtest.py | 582 | def setup_multiops_txn_key_spaces_file(): | CODE |
| LOW | tools/db_crashtest.py | 1923 | def build_out_of_space_diagnostics( | CODE |
| LOW | tools/db_crashtest.py | 1988 | def print_output_and_exit_on_error( | CODE |
| LOW | tools/db_crashtest.py | 2009 | def print_run_output_and_exit_on_error(args, finalized_params, stdout, stderr): | CODE |
| LOW | tools/db_crashtest.py | 2018 | def strip_expected_sigterm_stderr(stdout, stderr, hit_timeout): | CODE |
| LOW | tools/db_crashtest.py | 2080 | def print_fault_injection_log(pid): | CODE |
| LOW | tools/fault_injection_log_parser.py | 154 | def decode_fault_injection_log(raw_path, output_path=None): | CODE |
| LOW | tools/gtest_parallel_repro.py | 223 | def launch_iteration_processes( | STRING |
| LOW | tools/gtest_parallel_repro.py | 302 | def collect_iteration_results( | STRING |
| LOW | tools/advisor/advisor/db_timeseries_parser.py | 123 | def check_and_trigger_conditions(self, conditions): | CODE |
| LOW | tools/advisor/advisor/db_timeseries_parser.py | 167 | def handle_evaluate_expression(self, condition, statistics, entities): | CODE |
| LOW | tools/advisor/advisor/db_bench_runner.py | 140 | def _get_options_command_line_args_str(self, curr_options): | CODE |
| LOW⚡ | tools/advisor/advisor/db_bench_runner.py | 155 | def _setup_db_before_experiment(self, curr_options, db_path): | CODE |
| LOW⚡ | tools/advisor/advisor/db_bench_runner.py | 170 | def _build_experiment_command(self, curr_options, db_path): | CODE |
| LOW | tools/advisor/advisor/db_options_parser.py | 284 | def check_and_trigger_conditions(self, conditions): | CODE |
| LOW | tools/advisor/advisor/rule_parser.py | 117 | def get_trigger_column_families(self): | CODE |
| LOW | tools/advisor/advisor/db_log_parser.py | 27 | def check_and_trigger_conditions(self, conditions): | CODE |
| LOW | tools/advisor/advisor/db_log_parser.py | 99 | def trigger_conditions_for_log(self, conditions, log): | CODE |
| LOW | tools/advisor/advisor/db_log_parser.py | 113 | def check_and_trigger_conditions(self, conditions): | CODE |
| LOW | tools/advisor/test/test_rule_parser.py | 56 | def test_triggered_conditions(self): | CODE |
| LOW | tools/advisor/test/test_rule_parser.py | 112 | def test_condition_conjunctions(self): | CODE |
| LOW⚡ | tools/advisor/test/test_rule_parser.py | 162 | def test_rule_missing_suggestions(self): | CODE |
| LOW⚡ | tools/advisor/test/test_rule_parser.py | 167 | def test_rule_missing_conditions(self): | CODE |
| LOW⚡ | tools/advisor/test/test_rule_parser.py | 172 | def test_condition_missing_regex(self): | CODE |
| LOW⚡ | tools/advisor/test/test_rule_parser.py | 177 | def test_condition_missing_options(self): | CODE |
| LOW⚡ | tools/advisor/test/test_rule_parser.py | 182 | def test_condition_missing_expression(self): | CODE |
| LOW⚡ | tools/advisor/test/test_rule_parser.py | 187 | def test_suggestion_missing_option(self): | CODE |
| LOW⚡ | tools/advisor/test/test_rule_parser.py | 192 | def test_suggestion_missing_description(self): | CODE |
| LOW⚡ | tools/advisor/test/test_rule_parser.py | 202 | def test_condition_missing_source(self): | CODE |
| LOW⚡ | tools/advisor/test/test_rule_parser.py | 209 | def test_suggestion_missing_action(self): | CODE |
| LOW | tools/advisor/test/test_db_bench_runner.py | 34 | def test_get_info_log_file_name(self): | CODE |
| LOW | tools/advisor/test/test_db_bench_runner.py | 73 | def test_build_experiment_command(self): | CODE |
| LOW | tools/advisor/test/test_db_stats_fetcher.py | 34 | def test_check_and_trigger_conditions_bursty(self): | CODE |
| LOW | tools/advisor/test/test_db_stats_fetcher.py | 50 | def test_check_and_trigger_conditions_eval_agg(self): | CODE |
| LOW | tools/advisor/test/test_db_stats_fetcher.py | 74 | def test_check_and_trigger_conditions_eval(self): | CODE |
| 29 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tools/benchmark.sh | 749 | # doesn't output regular statistics then we'll just use the time command to | COMMENT |
| MEDIUM | tools/advisor/advisor/ini_parser.py | 27 | # A section header looks like: [Rule "my-new-rule"]. Essentially, | COMMENT |
| MEDIUM | tools/cpu_corruption_injector/runner_report.py | 37 | # ERROR is a per-run harness failure, not a db_stress data outcome, and separate | COMMENT |
| MEDIUM | tools/cpu_corruption_injector/injector_navigate.py | 146 | # (diagnostic only; runner_execute scans gdb.log for harness deaths). | COMMENT |
| MEDIUM | util/ribbon_alg.h | 95 | // By contrast Bloom filters utilize an "AND" construction: a query only | COMMENT |
| MEDIUM | util/ribbon_alg.h | 889 | // effectively utilize any size space (multiple of CoeffRow) for minimizing | COMMENT |
| MEDIUM | include/rocksdb/merge_operator.h | 26 | // Essentially, a MergeOperator specifies the SEMANTICS of a merge, which only | COMMENT |
| MEDIUM | include/rocksdb/memory_allocator.h | 65 | // Generate memory allocator which allocates through Jemalloc and utilize | COMMENT |
| MEDIUM | include/rocksdb/options.h | 1783 | // competing with read and write operations during peak hours. Essentially, we | COMMENT |
| MEDIUM | include/rocksdb/compression_type.h | 307 | // Essentially specifies a minimum acceptable compression ratio. A block is | COMMENT |
| MEDIUM | include/rocksdb/experimental.h | 250 | // * Point queries can utilize essentially any kind of filter by extracting | COMMENT |
| MEDIUM | utilities/persistent_cache/persistent_cache_tier.h | 23 | // is a generic design and can leverage any storage medium -- disk/SSD/NVM/RAM. | COMMENT |
| MEDIUM | table/block_based/filter_policy_internal.h | 200 | // Essentially for testing only: configured millibits/key | COMMENT |
| MEDIUM | table/block_based/filter_policy_internal.h | 202 | // Essentially for testing only: legacy whole bits/key | COMMENT |
| MEDIUM | table/block_based/filter_policy_internal.h | 246 | // State for implementing optimize_filters_for_memory. Essentially, this | COMMENT |
| LOW | build_tools/gtest_parallel.py | 56 | # Before a SIGINT is seen, wait(p) will simply call p.wait() and | COMMENT |
| MEDIUM | db/c_test.c | 2522 | // Essentially a fingerprint of full Bloom schema, format_version=5 | COMMENT |
| MEDIUM | db/c_test.c | 2525 | // Essentially a fingerprint of Ribbon schema | COMMENT |
| MEDIUM | third-party/gtest-1.8.1/fused-src/gtest/gtest.h | 9648 | // This implementation is *not* meant to be as highly tuned or robust | COMMENT |
| MEDIUM | third-party/gtest-1.8.1/fused-src/gtest/gtest.h | 9721 | // In practice, this can be used to test functions that utilize the | COMMENT |
| MEDIUM | port/win/io_win.h | 304 | // we utilize the original buffer as an alignment buffer to write directly to | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tools/benchmark_ci.py | 55 | CODE | |
| LOW | tools/run_clang_tidy.py | 156 | CODE | |
| LOW | tools/run_clang_tidy.py | 315 | CODE | |
| LOW | tools/run_clang_tidy.py | 435 | CODE | |
| LOW | tools/write_stress_runner.py | 25 | CODE | |
| LOW | tools/db_crashtest.py | 931 | CODE | |
| LOW | tools/db_crashtest.py | 2177 | CODE | |
| LOW | tools/fault_injection_log_parser.py | 154 | CODE | |
| LOW | tools/gtest_parallel_repro.py | 558 | CODE | |
| LOW | tools/advisor/advisor/db_timeseries_parser.py | 47 | CODE | |
| LOW | tools/advisor/advisor/db_timeseries_parser.py | 98 | CODE | |
| LOW | tools/advisor/advisor/db_timeseries_parser.py | 123 | CODE | |
| LOW | tools/advisor/advisor/db_timeseries_parser.py | 167 | CODE | |
| LOW | tools/advisor/advisor/db_bench_runner.py | 57 | CODE | |
| LOW | tools/advisor/advisor/db_config_optimizer.py | 19 | CODE | |
| LOW | tools/advisor/advisor/db_config_optimizer.py | 54 | CODE | |
| LOW | tools/advisor/advisor/db_stats_fetcher.py | 65 | CODE | |
| LOW | tools/advisor/advisor/db_stats_fetcher.py | 92 | CODE | |
| LOW | tools/advisor/advisor/db_stats_fetcher.py | 282 | CODE | |
| LOW | tools/advisor/advisor/db_options_parser.py | 83 | CODE | |
| LOW | tools/advisor/advisor/db_options_parser.py | 144 | CODE | |
| LOW | tools/advisor/advisor/db_options_parser.py | 197 | CODE | |
| LOW | tools/advisor/advisor/db_options_parser.py | 228 | CODE | |
| LOW | tools/advisor/advisor/db_options_parser.py | 266 | CODE | |
| LOW | tools/advisor/advisor/db_options_parser.py | 284 | CODE | |
| LOW | tools/advisor/advisor/rule_parser.py | 58 | CODE | |
| LOW | tools/advisor/advisor/rule_parser.py | 120 | CODE | |
| LOW | tools/advisor/advisor/rule_parser.py | 222 | CODE | |
| LOW | tools/advisor/advisor/rule_parser.py | 361 | CODE | |
| LOW | tools/advisor/advisor/rule_parser.py | 429 | CODE | |
| LOW | tools/advisor/advisor/db_log_parser.py | 113 | CODE | |
| LOW | tools/c_api_gen/validate_generated_equivalence.py | 98 | CODE | |
| LOW | tools/c_api_gen/validate_generated_equivalence.py | 147 | CODE | |
| LOW | tools/c_api_gen/gen_roundtrip_tests.py | 82 | CODE | |
| LOW | tools/c_api_gen/gen_roundtrip_tests.py | 128 | CODE | |
| LOW | tools/c_api_gen/auto_simple_bindings.py | 779 | CODE | |
| LOW | tools/c_api_gen/auto_simple_bindings.py | 1187 | CODE | |
| LOW | tools/block_cache_analyzer/block_cache_pysim.py | 1537 | CODE | |
| LOW | tools/block_cache_analyzer/block_cache_pysim.py | 1666 | CODE | |
| LOW | tools/block_cache_analyzer/block_cache_pysim.py | 121 | CODE | |
| LOW | tools/block_cache_analyzer/block_cache_pysim.py | 163 | CODE | |
| LOW | tools/block_cache_analyzer/block_cache_pysim.py | 460 | CODE | |
| LOW | …lock_cache_analyzer/block_cache_trace_analyzer_plot.py | 51 | CODE | |
| LOW | …lock_cache_analyzer/block_cache_trace_analyzer_plot.py | 93 | CODE | |
| LOW | …lock_cache_analyzer/block_cache_trace_analyzer_plot.py | 210 | CODE | |
| LOW | …lock_cache_analyzer/block_cache_trace_analyzer_plot.py | 261 | CODE | |
| LOW | buckifier/buckify_rocksdb.py | 74 | CODE | |
| LOW | buckifier/buckify_rocksdb.py | 118 | CODE | |
| LOW | build_tools/benchmark_log_tool.py | 117 | CODE | |
| LOW | build_tools/amalgamate.py | 71 | CODE | |
| LOW | build_tools/gtest_parallel.py | 640 | CODE | |
| LOW | build_tools/gtest_parallel.py | 705 | CODE | |
| LOW | build_tools/gtest_parallel.py | 384 | CODE | |
| LOW | build_tools/gtest_parallel.py | 714 | CODE | |
| LOW | build_tools/getdeps_fallback_mirror.py | 87 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | tools/regression_test.sh | 99 | #============================================================================== | COMMENT |
| MEDIUM | tools/regression_test.sh | 101 | #============================================================================== | COMMENT |
| MEDIUM | tools/regression_test.sh | 120 | #============================================================================== | COMMENT |
| MEDIUM | tools/run_clang_tidy.py | 515 | # ------------------------------------------------------------------ | COMMENT |
| MEDIUM | tools/run_clang_tidy.py | 517 | # ------------------------------------------------------------------ | COMMENT |
| MEDIUM | tools/run_clang_tidy.py | 534 | # ------------------------------------------------------------------ | COMMENT |
| MEDIUM | tools/run_clang_tidy.py | 536 | # ------------------------------------------------------------------ | COMMENT |
| MEDIUM | tools/run_clang_tidy.py | 554 | # ------------------------------------------------------------------ | COMMENT |
| MEDIUM | tools/run_clang_tidy.py | 556 | # ------------------------------------------------------------------ | COMMENT |
| MEDIUM⚡ | tools/run_clang_tidy.py | 600 | # ------------------------------------------------------------------ | COMMENT |
| MEDIUM⚡ | tools/run_clang_tidy.py | 602 | # ------------------------------------------------------------------ | COMMENT |
| MEDIUM⚡ | tools/run_clang_tidy.py | 608 | # ------------------------------------------------------------------ | COMMENT |
| MEDIUM⚡ | tools/run_clang_tidy.py | 610 | # ------------------------------------------------------------------ | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | util/compression.h | 627 | // NOTE: This class is not thread safe. | COMMENT |
| LOW | util/compression.h | 669 | // NOTE: This class is not thread safe. | COMMENT |
| LOW | include/rocksdb/utilities/object_registry.h | 248 | // NOTE: This function replaces the old ObjectLibrary::Register() | COMMENT |
| LOW | claude_md/add_public_api.md | 28 | ### Step 1: Define the C++ Public Interface | COMMENT |
| LOW | claude_md/add_public_api.md | 53 | ### Step 2: Define Options Struct (If Needed) | COMMENT |
| LOW | claude_md/add_public_api.md | 81 | ### Step 3: Implement in DBImpl | COMMENT |
| LOW | claude_md/add_public_api.md | 131 | ### Step 4: Handle Special DB Types | COMMENT |
| LOW | claude_md/add_public_api.md | 169 | ### Step 5: Add C API Bindings | COMMENT |
| LOW | claude_md/add_public_api.md | 283 | ### Step 6: Add Java Bindings | COMMENT |
| LOW | claude_md/add_public_api.md | 444 | ### Step 7: Update Build Files | COMMENT |
| LOW | claude_md/add_public_api.md | 454 | ### Step 8: Add Release Notes | COMMENT |
| LOW | claude_md/add_public_api.md | 476 | ### Step 9: Add Tests | COMMENT |
| LOW | claude_md/add_option.md | 51 | ### Step 1: Define the Option in Public Header | COMMENT |
| LOW | claude_md/add_option.md | 69 | ### Step 2: Add to Internal Options Structs | COMMENT |
| LOW | claude_md/add_option.md | 87 | ### Step 3: Register for Serialization/Deserialization | COMMENT |
| LOW | claude_md/add_option.md | 108 | ### Step 4: Update Options Helper | COMMENT |
| LOW | claude_md/add_option.md | 119 | ### Step 5: Add to Options Settable Test | COMMENT |
| LOW | claude_md/add_option.md | 129 | ### Step 6: Add db_stress Support | COMMENT |
| LOW | claude_md/add_option.md | 153 | ### Step 7: Add db_bench Support | COMMENT |
| LOW | claude_md/add_option.md | 167 | ### Step 8: Add Crash Test Support | COMMENT |
| LOW | claude_md/add_option.md | 183 | ### Step 9: Add Release Note | COMMENT |
| LOW | claude_md/add_option.md | 197 | ### Step 1: Define the Option in Public Header | COMMENT |
| LOW | claude_md/add_option.md | 225 | ### Step 2: Register for Serialization in Table Factory | COMMENT |
| LOW | claude_md/add_option.md | 266 | ### Step 3: Add to Options Settable Test | COMMENT |
| LOW | claude_md/add_option.md | 277 | ### Step 4: Add to Options Test | COMMENT |
| LOW | claude_md/add_option.md | 291 | ### Step 5: Add db_stress Support | COMMENT |
| LOW | claude_md/add_option.md | 324 | ### Step 6: Add db_bench Support | COMMENT |
| LOW | claude_md/add_option.md | 346 | ### Step 7: Add Crash Test Support | COMMENT |
| LOW | claude_md/add_option.md | 357 | ### Step 8: Add Java API Support | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | tools/benchmark_ci.py | 94 | # Create a symlink to the db_bench executable | COMMENT |
| MEDIUM | tools/benchmark.sh | 784 | # Define a set of benchmarks. | COMMENT |
| MEDIUM | tools/advisor/advisor/rule_parser_example.py | 23 | # Create the Log STATS object | COMMENT |
| MEDIUM⚡ | tools/advisor/advisor/db_bench_runner.py | 212 | # Create the Log STATS object | COMMENT |
| MEDIUM⚡ | tools/advisor/advisor/db_bench_runner.py | 214 | # Create the PerfContext STATS object | COMMENT |
| MEDIUM⚡ | tools/advisor/advisor/db_bench_runner.py | 222 | # Create the ODS STATS object | COMMENT |
| MEDIUM | tools/advisor/advisor/db_config_optimizer.py | 70 | # Create the updated configuration from the rule's suggestions | COMMENT |
| MEDIUM | tools/cpu_corruption_injector/injector_telemetry.py | 9 | # This module is the injector's OBSERVABILITY layer: it captures where a corruption | COMMENT |
| MEDIUM | buckifier/targets_cfg.py | 8 | # This file is a Meta-specific integration for buck builds, so can | COMMENT |
| MEDIUM | buckifier/rocks_test_runner.sh | 3 | # Create a tmp directory for the test to use | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tools/db_crashtest_test.py | 10 | CODE | |
| LOW | tools/ldb_test.py | 11 | CODE | |
| LOW | tools/advisor/advisor/db_timeseries_parser.py | 9 | CODE | |
| LOW | tools/advisor/advisor/db_stats_fetcher.py | 11 | CODE | |
| LOW | tools/c_api_gen/validate_generated_equivalence.py | 20 | CODE | |
| LOW | tools/c_api_gen/regen_all.py | 8 | CODE | |
| LOW | tools/c_api_gen/check_api_compatibility.py | 29 | CODE | |
| LOW | tools/c_api_gen/gen_roundtrip_tests.py | 33 | CODE | |
| LOW | tools/c_api_gen/gen_roundtrip_tests.py | 36 | CODE | |
| LOW | tools/c_api_gen/verify_generated_up_to_date.py | 8 | CODE | |
| LOW | tools/c_api_gen/check_api_completeness.py | 26 | CODE | |
| LOW | tools/c_api_gen/generate_c_api.py | 18 | CODE | |
| LOW | tools/c_api_gen/auto_simple_bindings.py | 19 | CODE | |
| LOW | tools/cpu_corruption_injector/runner.py | 8 | CODE | |
| LOW | tools/cpu_corruption_injector/injector_telemetry.py | 27 | CODE | |
| LOW | …u_corruption_injector/runner_randomize_stress_flags.py | 10 | CODE | |
| LOW | tools/cpu_corruption_injector/runner_report.py | 8 | CODE | |
| LOW | tools/cpu_corruption_injector/injector.py | 10 | CODE | |
| LOW | …pu_corruption_injector/injector_register_corruption.py | 9 | CODE | |
| LOW | tools/cpu_corruption_injector/injector_navigate.py | 9 | CODE | |
| LOW | tools/cpu_corruption_injector/runner_execute.py | 8 | CODE | |
| LOW | tools/cpu_corruption_injector/runner_build.py | 8 | CODE | |
| LOW | …u_corruption_injector/injector_critical_instruction.py | 9 | CODE | |
| LOW | …n_injector/tests/test_injector_critical_instruction.py | 17 | CODE | |
| LOW | tools/block_cache_analyzer/block_cache_pysim_test.py | 8 | CODE | |
| LOW | tools/block_cache_analyzer/block_cache_pysim_test.py | 8 | CODE | |
| LOW | tools/block_cache_analyzer/block_cache_pysim_test.py | 8 | CODE | |
| LOW | tools/block_cache_analyzer/block_cache_pysim_test.py | 8 | CODE | |
| LOW | buckifier/util.py | 7 | CODE | |
| LOW | buckifier/util.py | 9 | CODE | |
| LOW | buckifier/targets_builder.py | 4 | CODE | |
| LOW | buckifier/targets_builder.py | 6 | CODE | |
| LOW | buckifier/buckify_rocksdb.py | 5 | CODE | |
| LOW | buckifier/buckify_rocksdb.py | 7 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tools/ldb_test.py | 90 | except Exception: | CODE |
| LOW | tools/advisor/advisor/db_timeseries_parser.py | 184 | except Exception as e: | CODE |
| LOW | tools/advisor/advisor/db_timeseries_parser.py | 200 | except Exception as e: | CODE |
| MEDIUM⚡ | tools/advisor/advisor/db_bench_runner.py | 160 | print("Error: rmdir " + e.filename + " " + e.strerror) | CODE |
| LOW | tools/advisor/advisor/db_options_parser.py | 320 | except Exception as e: | CODE |
| LOW | tools/advisor/advisor/db_options_parser.py | 339 | except Exception as e: | CODE |
| LOW | tools/cpu_corruption_injector/runner.py | 229 | except Exception: # noqa: BLE001 -- one run's crash is its own ERROR, never aborts the rest | CODE |
| LOW | tools/cpu_corruption_injector/injector.py | 182 | except Exception as exc: # noqa: BLE001 | CODE |
| LOW | buckifier/buckify_rocksdb.py | 310 | except Exception: | CODE |
| LOW | build_tools/gtest_parallel.py | 632 | except Exception: | CODE |
| MEDIUM | build_tools/gtest_parallel.py | 628 | def __read_test_times_file(fd): | CODE |
| LOW | build_tools/getdeps_fallback_mirror.py | 46 | except Exception: | CODE |
| LOW | build_tools/getdeps_fallback_mirror.py | 57 | except Exception as ex: | CODE |
| LOW | build_tools/getdeps_fallback_mirror.py | 72 | except Exception: | CODE |
| LOW | build_tools/getdeps_fallback_mirror.py | 165 | except Exception as ex: | CODE |
| LOW | build_tools/getdeps_fallback_mirror.py | 222 | except Exception as ex: | CODE |
| MEDIUM | build_tools/getdeps_fallback_mirror.py | 69 | def file_size(path): | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | tools/run_clang_tidy.py | 234 | " mkdir build && cd build && cmake -DCMAKE_EXPORT_COMPILE_COMMANDS=ON ..\n" | CODE |
| HIGH | tools/c_api_gen/gen_roundtrip_tests.py | 172 | " CheckCondition(rt_len == 4 && rt_v != NULL && " | CODE |
| HIGH | buckifier/util.py | 98 | running `cmd1 && cmd2 && cmd3` | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tools/generate_random_db.sh | 33 | # Check if deleterange command is supported by grepping ldb --help | COMMENT |
| LOW | tools/ldb_test.py | 855 | # Check if null characters doesn't infer with output format. | COMMENT |
| LOW | build_tools/format-diff.sh | 109 | # Check if this script has already been added to pre-commit hook. | COMMENT |
| LOW | build_tools/format-diff.sh | 172 | # Check if file is missing copyright | COMMENT |
| LOW | build_tools/check_progress.sh | 67 | # Check if failed (exitval != 0 or signal != 0) | COMMENT |
| LOW | build_tools/check_progress.sh | 102 | # Check if tests are running (LOG file exists) | COMMENT |
| LOW | build_tools/getdeps_fallback_mirror.py | 134 | # Check if already valid. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tools/analyze_txn_stress_test.sh | 3 | # Usage: | COMMENT |
| LOW | util/defer.h | 17 | // Usage example: | COMMENT |
| LOW | buckifier/buckify_rocksdb.py | 21 | # Usage: | COMMENT |
| LOW | build_tools/rockstest.sh | 20 | # Example usage: | COMMENT |
| LOW | build_tools/rocksptest.sh | 26 | # Example usage: | COMMENT |
| LOW | .github/scripts/ccache-trim.sh | 4 | # Usage: | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | include/rocksdb/advanced_cache.h | 135 | // "placeholder" cache entries with nullptr object. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tools/cpu_corruption_injector/runner.py | 127 | def _setup_logging(report_dir: str) -> None: | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | buckifier/targets_builder.py | 33 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | build_tools/gtest_parallel.py | 311 | def run_task(self, task, timeout_per_test): | CODE |