AI Slop Code RIsk Monitor

apple/foundationdb

FoundationDB - the open source, distributed, transactional key-value store

4.2 Low pattern signal View on GitHub

Maintenance and Governance Review

This report summarizes scanner evidence for apple/foundationdb, a C++ project with 16,769 GitHub stars. SynthScan examined 719,478 lines of code across 2267 source files, recording 2289 pattern matches distributed across 25 syntactic categories. The legacy adjusted pattern signal is 4.2 (Low pattern signal); it is not an authorship estimate.

Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.

4.2
Adjusted Signal
4.2
Raw Pattern Score
100%
Time Factor
2026-10-10
Last Push
16.8K
Stars
C++
Language
719.5K
Lines of Code
2.3K
Files
2.3K
Pattern Hits
2026-10-12
Scan Date
0.05
HC Hit Rate

Risk Review · v3

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

Cognitive Ownership Risk 13.5/100 · LOW

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

Hallucinated Dependency & Supply Chain Risk 3.7/100 · LOW

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

Agent Over-Engineering Ratio 3.9/100 · LOW

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

PR Review Velocity Impact 19.4/100 · LOW

Which changes need focused human review? 2289 finding(s).

What These Metrics Mean

Adjusted Signal
Legacy pattern score normalized per 1,000 scanned lines and multiplied by the repository-level time factor. It is not an estimate of AI authorship.
Raw Pattern Score
Sum of severity- and context-weighted pattern findings before applying the time factor.
Time Factor
A coarse multiplier based on repository last-push metadata. It does not identify when individual code was written.
Pattern Hits
Count of configured pattern findings. Review each location and surrounding code before acting.
HC Hit Rate
High- and critical-severity findings per scanned file. Severity is a configured detector weight, not proof of a vulnerability or authorship.
Lines / Files
Scan coverage denominators used by the legacy normalized score.

Pattern-Signal History

This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.

Severity Breakdown

Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.

CRITICAL 15HIGH 101MEDIUM 91LOW 2082

Directory Score Breakdown

This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.

Pattern Findings

The scanner identified 2289 distinct pattern matches across 25 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.

Reading the findings table: The Severity column indicates the configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.

Over-Commented Block1339 hits · 1274 pts
SeverityFileLineSnippetContext
LOWCMakeLists.txt1#COMMENT
LOWpackaging/make_public.py1#!/usr/bin/env python3COMMENT
LOWpackaging/docker/sidecar.py1#!/usr/bin/env python3COMMENT
LOWpackaging/docker/fdb_single.bash1#!/usr/bin/env bashCOMMENT
LOWpackaging/docker/sidecar_test.py1#!/usr/bin/env python3COMMENT
LOWpackaging/docker/fdb.bash1#!/bin/bashCOMMENT
LOWpackaging/docker/entrypoint.bash1#!/bin/bashCOMMENT
LOW…-credentials-fetcher/fdb-aws-s3-credentials-fetcher.go1// fdb-aws-s3-credentials-fetcher.goCOMMENT
LOWpackaging/docker/samples/python/docker-compose.yml1# docker-compose.yamlCOMMENT
LOWpackaging/docker/samples/python/app/server.py1# server.pyCOMMENT
LOWpackaging/docker/samples/python/app/requirements.txt1# requirements.txtCOMMENT
LOWpackaging/docker/samples/python/app/start.bash1#! /bin/bashCOMMENT
LOWpackaging/docker/samples/golang/docker-compose.yml1# docker-compose.yamlCOMMENT
LOWpackaging/docker/samples/golang/app/start.bash1#!/bin/bashCOMMENT
LOWpackaging/docker/samples/golang/app/main.go1// main.goCOMMENT
LOWpackaging/docker/samples/local/stop.bash1#! /bin/bashCOMMENT
LOWpackaging/docker/samples/local/start.bash1#! /bin/bashCOMMENT
LOWpackaging/docker/samples/local/docker-compose.yml1# docker-compose.yamlCOMMENT
LOWpackaging/docker/kubernetes/test_config.yaml1# statefulset.yamlCOMMENT
LOWdesign/fdb-coroutines-internals.md461 // ^^^^^^^^^COMMENT
LOWdocumentation/sphinx/conf.py1# -*- coding: utf-8 -*-COMMENT
LOWdocumentation/sphinx/conf.py61language = "en"COMMENT
LOWdocumentation/sphinx/conf.py81# add_module_names = TrueCOMMENT
LOWdocumentation/sphinx/conf.py121# The name of an image file (relative to this directory) to place at the topCOMMENT
LOWdocumentation/sphinx/conf.py201]COMMENT
LOWdocumentation/sphinx/extensions/brokenrole.py1#COMMENT
LOWdocumentation/sphinx/extensions/relativelink.py1#COMMENT
LOWdocumentation/coro_tutorial/tutorial.cpp21#include "fmt/format.h"COMMENT
LOWlayers/taskbucket/__init__.py1#COMMENT
LOWlayers/taskbucket/test.py1#!/usr/bin/pythonCOMMENT
LOWlayers/bulkload/bulk.py1#COMMENT
LOWlayers/compressedColumn/compressedColumn.py1#COMMENT
LOWlayers/pubsub/pubsub_orig.py1#COMMENT
LOWlayers/pubsub/pubsub_simpledoc.py1#COMMENT
LOWlayers/pubsub/pubsub_example.py1#COMMENT
LOWlayers/pubsub/remotesend.py1#!/usr/bin/python -uCOMMENT
LOWlayers/pubsub/ps_tutorial.py1#!/usr/bin/python -iCOMMENT
LOWlayers/pubsub/ps_test.py1#!/usr/bin/python -iCOMMENT
LOWlayers/pubsub/ps_prompt.py1#!/usr/bin/python -iCOMMENT
LOWlayers/pubsub/remotesubscribe.py1#!/usr/bin/python -uCOMMENT
LOWlayers/pubsub/remotesubscribe.py61#COMMENT
LOWlayers/pubsub/pubsub.py1#COMMENT
LOWlayers/pubsub/remoteload.py1#!/usr/bin/python -uCOMMENT
LOWlayers/containers/vector.py1#COMMENT
LOWlayers/containers/vector.py61COMMENT
LOWlayers/containers/treap.py1#COMMENT
LOWlayers/containers/set.py1#COMMENT
LOWlayers/containers/highcontention/queue.py1#COMMENT
LOWfdbrpc/Base64Decode.cpp21#include <string_view>COMMENT
LOWfdbrpc/Base64Decode.h21#ifndef BASE64_DECODE_HCOMMENT
LOWfdbrpc/sim2.cpp21#include <string>COMMENT
LOWfdbrpc/sim2.cpp41#include "flow/ProtocolVersion.h"COMMENT
LOWfdbrpc/sim2.cpp821int sf_open(const char* filename, int flags, int convFlags, int mode);COMMENT
LOWfdbrpc/Base64Encode.h21#ifndef BASE64_ENCODE_HCOMMENT
LOWfdbrpc/FlowTransport.cpp21#include "fdbrpc/FlowTransport.h"COMMENT
LOWfdbrpc/FlowTransport.cpp41#include "fdbrpc/FailureMonitor.h"COMMENT
LOWfdbrpc/FlowTransport.cpp721 ISerializeSource const& what,COMMENT
LOWfdbrpc/FlowTransport.cpp741 // upgrades when clients will not reconnect unlessCOMMENT
LOWfdbrpc/SimExternalConnection.cpp21#ifndef BOOST_DATE_TIME_NO_LIBCOMMENT
LOWfdbrpc/FileTransfer.cpp121 if (status.ok()) {COMMENT
1279 more matches not shown…
Cross-Language Confusion67 hits · 386 pts
SeverityFileLineSnippetContext
HIGHlayers/containers/vector.py72# vector.push(1)COMMENT
HIGHlayers/containers/vector.py129 vector.push(1)STRING
HIGHlayers/containers/vector.py408 vector.push(3)CODE
HIGHlayers/containers/vector.py425 vector.push('Foo')CODE
HIGHlayers/containers/vector.py534 vector.push(i)CODE
HIGH⚡layers/containers/highcontention/queue.py299 queue.push(db, 10)CODE
HIGH⚡layers/containers/highcontention/queue.py300 queue.push(db, 8)CODE
HIGH⚡layers/containers/highcontention/queue.py301 queue.push(db, 6)CODE
HIGH⚡layers/containers/highcontention/queue.py309 queue.push(db, 5)CODE
HIGH⚡layers/containers/highcontention/queue.py326 queue.push(db, i)CODE
HIGH⚡layers/containers/highcontention/queue.py334 queue.push(db, '%d.%d' % (id, i))CODE
HIGH⚡bindings/python/tests/tester.py203 inst.push(op_tuple[1])CODE
HIGH⚡bindings/python/tests/tester.py205 inst.stack.push(*self.stack[0])CODE
HIGH⚡bindings/python/tests/tester.py215 inst.push(a - b)CODE
HIGH⚡bindings/python/tests/tester.py218 inst.push(a + b)CODE
HIGH⚡bindings/python/tests/tester.py221 inst.stack.push(old_idx, item)CODE
HIGH⚡bindings/python/tests/tester.py227 inst.push(inst.tr.on_error(inst.pop()))CODE
HIGH⚡bindings/python/tests/tester.py239 inst.push(b"RESULT_NOT_PRESENT")CODE
HIGH⚡bindings/python/tests/tester.py241 inst.push(f)CODE
HIGH⚡bindings/python/tests/tester.py245 inst.push(b"GOT_ESTIMATED_RANGE_SIZE")CODE
HIGH⚡bindings/python/tests/tester.py249 inst.push(b"GOT_RANGE_SPLIT_POINTS")CODE
HIGH⚡bindings/python/tests/tester.py254 inst.push(result)CODE
HIGH⚡bindings/python/tests/tester.py256 inst.push(prefix)CODE
HIGH⚡bindings/python/tests/tester.py258 inst.push(strinc(prefix))CODE
HIGH⚡bindings/python/tests/tester.py350 inst.push(b"RESULT_NOT_PRESENT")CODE
HIGH⚡bindings/python/tests/tester.py354 inst.push(b"RESULT_NOT_PRESENT")CODE
HIGH⚡bindings/python/tests/tester.py357 inst.push(b"SET_CONFLICT_RANGE")CODE
HIGH⚡bindings/python/tests/tester.py360 inst.push(b"SET_CONFLICT_RANGE")CODE
HIGH⚡bindings/python/tests/tester.py363 inst.push(b"SET_CONFLICT_KEY")CODE
HIGH⚡bindings/python/tests/tester.py366 inst.push(b"SET_CONFLICT_KEY")CODE
HIGH⚡bindings/python/tests/tester.py370 inst.push(inst.tr.commit())CODE
HIGH⚡bindings/python/tests/tester.py377 inst.push(b"GOT_COMMITTED_VERSION")CODE
HIGH⚡bindings/python/tests/tester.py380 inst.push(b"GOT_APPROXIMATE_SIZE")CODE
HIGH⚡bindings/python/tests/tester.py382 inst.push(inst.tr.get_versionstamp())CODE
HIGH⚡bindings/python/tests/tester.py386 inst.push(fdb.tuple.pack(tuple(items)))CODE
HIGH⚡bindings/python/tests/tester.py395 inst.push(b"ERROR: NONE")CODE
HIGH⚡bindings/python/tests/tester.py401 inst.push(b"OK")CODE
HIGH⚡bindings/python/tests/tester.py402 inst.push(packed)CODE
HIGH⚡bindings/python/tests/tester.py405 inst.push(b"ERROR: NONE")CODE
HIGH⚡bindings/python/tests/tester.py407 inst.push(b"ERROR: MULTIPLE")CODE
HIGH⚡bindings/python/tests/tester.py410 inst.push(fdb.tuple.pack((i,)))CODE
HIGH⚡bindings/python/tests/tester.py417 inst.push(fdb.tuple.pack(item))CODE
HIGH⚡bindings/python/tests/tester.py422 inst.push(r.start)CODE
HIGH⚡bindings/python/tests/tester.py423 inst.push(r.stop)CODE
HIGH⚡bindings/python/tests/tester.py434 inst.push(fdb.tuple.SingleFloat(f))CODE
HIGH⚡bindings/python/tests/tester.py438 inst.push(d)CODE
HIGH⚡bindings/python/tests/tester.py442 inst.push(f_bytes)CODE
HIGH⚡bindings/python/tests/tester.py446 inst.push(d_bytes)CODE
HIGH⚡bindings/python/tests/tester.py455 inst.push(b"WAITED_FOR_EMPTY")CODE
HIGH⚡bindings/python/tests/tester.py464 inst.stack.push(CODE
HIGHbindings/python/tests/tester.py118 self.stack.push(self.index, val)CODE
HIGHbindings/python/tests/tester.py144 inst.push(fdb.tuple.pack(tuple(kvs)))CODE
HIGHbindings/python/tests/tester.py302 inst.push(b"GOT_READ_VERSION")CODE
HIGHbindings/python/tests/tester.py311 inst.push(b"RESULT_NOT_PRESENT")CODE
HIGHbindings/python/tests/tester.py328 inst.push(b"RESULT_NOT_PRESENT")CODE
HIGHbindings/python/tests/tester.py338 inst.push(b"RESULT_NOT_PRESENT")CODE
HIGHbindings/python/tests/directory_extension.py188 inst.push(fdb.tuple.pack(tuple(result)))CODE
HIGH⚡bindings/python/tests/directory_extension.py200 inst.push(1)CODE
HIGH⚡bindings/python/tests/directory_extension.py202 inst.push(0)CODE
HIGH⚡bindings/python/tests/directory_extension.py205 inst.push(directory.pack(key_tuple))CODE
7 more matches not shown…
Hyper-Verbose Identifiers199 hits · 167 pts
SeverityFileLineSnippetContext
LOWpackaging/make_public.py38def getOrValidateAddress(address):CODE
LOWpackaging/docker/sidecar_test.py89 def test_get_check_hash_no_found(self):CODE
LOWpackaging/docker/sidecar_test.py103 def test_get_check_hash_nested(self):CODE
LOWpackaging/docker/sidecar_test.py114 def test_get_check_hash_outside(self):CODE
LOWpackaging/docker/sidecar_test.py121 def test_get_is_present_no_found(self):CODE
LOWpackaging/docker/sidecar_test.py133 def test_get_is_present_nested(self):CODE
LOWpackaging/docker/sidecar_test.py142 def test_get_check_is_present(self):CODE
LOW⚡layers/pubsub/pubsub_orig.py72def key_for_feed_subscriber_count(feed):CODE
LOW⚡layers/pubsub/pubsub_orig.py76def key_for_feed_message_count(feed):CODE
LOW⚡layers/pubsub/pubsub_orig.py84def prefix_for_feed_subscribers(feed):CODE
LOW⚡layers/pubsub/pubsub_orig.py104def key_for_inbox_subscription_count(inbox):CODE
LOW⚡layers/pubsub/pubsub_orig.py108def key_for_inbox_subscription(inbox, feed):CODE
LOW⚡layers/pubsub/pubsub_orig.py112def prefix_for_inbox_subscriptions(inbox):CODE
LOWlayers/pubsub/pubsub_orig.py151def _create_subscription_internal(tr, feed, inbox):CODE
LOWlayers/pubsub/pubsub_simpledoc.py50def _create_feed_and_inbox_internal(metadata):CODE
LOWlayers/pubsub/pubsub_simpledoc.py57def _create_subscription_internal(feed, inbox):CODE
LOWlayers/pubsub/pubsub_simpledoc.py85def _get_feed_messages_internal(feed, limit):CODE
LOWlayers/pubsub/pubsub_simpledoc.py119def _get_inbox_subscriptions_internal(inbox, limit):CODE
LOWlayers/pubsub/pubsub_simpledoc.py129def _get_inbox_messages_internal(inbox, limit):CODE
LOWlayers/pubsub/pubsub_example.py66def get_and_print_inbox_messages(inbox, limit=10):CODE
LOWlayers/pubsub/pubsub.py259def get_and_print_inbox_messages(inbox, limit=10):CODE
LOWlayers/containers/set.py160 def symmetric_difference_update(self, tr, t): # s ^ tCODE
LOW⚡layers/containers/highcontention/queue.py321def queue_single_client_example(db):CODE
LOWlayers/containers/highcontention/queue.py347def queue_multi_client_example(db):CODE
LOWcmake/tests/test_unit_test_registration.py79 def test_modes_metadata_and_default_build(self):STRING
LOWcmake/tests/test_unit_test_registration.py103 def test_opt_out_preserves_explicit_aggregate(self):STRING
LOWcmake/tests/test_unit_test_registration.py128 def test_invalid_configuration(self):STRING
LOWtests/TestRunner/fdb_test_runner/binary_download.py140 def copy_clientlib_from_local_repo(self, version):CODE
LOWtests/TestRunner/fdb_test_runner/local_cluster.py461 def authz_public_key_conf_string(self):STRING
LOWtests/TestRunner/fdb_test_runner/local_cluster.py494 def get_all_servers_from_status(self):STRING
LOWtests/TestRunner/fdb_test_runner/local_cluster.py498 def get_coordinators_from_status(self):STRING
LOWtests/TestRunner/fdb_test_runner/local_cluster.py566 def wait_for_coordinator_update(self, timeout=CLUSTER_UPDATE_TIMEOUT_SEC):STRING
LOWtests/python_tests/__init__.py57 def multi_version_description(self):CODE
LOWtests/python_tests/python_correctness.py500 def compare_database_to_memory(self, db, store):CODE
LOWtests/python_tests/python_correctness.py668 def correctness_set_transactional(self, tr, data):CODE
LOWtests/python_tests/python_correctness.py694 def correctness_get_transactional(self, tr, keys):CODE
LOWtests/python_tests/python_correctness.py720 def correctness_get_range_transactional(self, tr, key1, key2, data=None):CODE
LOWtests/python_tests/python_correctness.py738 def correctness_get_prefix_transactional(self, tr, prefix):CODE
LOWtests/python_tests/python_correctness.py773 def correctness_get_key_transactional(self, tr, key_selectors):CODE
LOWtests/python_tests/python_correctness.py807 def correctness_clear_transactional(self, tr, cleared_keys):CODE
LOWtests/python_tests/python_correctness.py824 def correctness_clear_range_transactional(self, tr, key1, key2):CODE
LOWtests/python_tests/python_correctness.py841 def correctness_clear_prefix_transactional(self, tr, prefixes):CODE
LOW⚡tests/python_tests/ryw_benchmark.py140 def run_single_clear_get_range(self, tr, count=100):CODE
LOW⚡tests/python_tests/ryw_benchmark.py150 def run_clear_range_get_range(self, tr, count=100):CODE
LOW⚡tests/python_tests/ryw_benchmark.py160 def run_interleaved_sets_gets(self, tr, count=10000):CODE
LOWcontrib/mako_ab_memtracker.py71def _assert_safe_scratch_mount(mount):CODE
LOWcontrib/convert.py12def find_version_for_timestamp(tr, timestamp, start):CODE
LOWcontrib/convert.py39def find_timestamp_for_version(tr, version):CODE
LOWcontrib/ddsketch_compare.py37def relative_entropy_symmetric(dd1, dd2):CODE
LOWcontrib/prx.py118 def get_commits_from_merge_hash(merge: str) -> List[str]:CODE
LOWcontrib/pkg_tester/test_fdb_pkgs.py92def ubuntu_image_with_fdb_helper(versioned: bool) -> Iterator[Optional[Image]]:CODE
LOWcontrib/pkg_tester/test_fdb_pkgs.py142def ubuntu_image_with_fdb_versioned() -> Iterator[Optional[Image]]:CODE
LOWcontrib/pkg_tester/test_fdb_pkgs.py146def centos_image_with_fdb_helper(versioned: bool) -> Iterator[Optional[Image]]:CODE
LOWcontrib/pkg_tester/test_fdb_pkgs.py191def centos_image_with_fdb_versioned() -> Iterator[Optional[Image]]:CODE
LOWcontrib/pkg_tester/test_fdb_pkgs.py323def test_execstack_permissions_libfdb_c(linux_container: Container, snapshot):STRING
LOWcontrib/joshua_stats/stats.py63def get_speedup_long_simulation_time(filepath, threshold):CODE
LOWcontrib/joshua_stats/stats.py179def draw_speedup_long_physical_time(speedups, do_y_log_scale, threshold, label):CODE
LOW…n_profiling_analyzer/transaction_profiling_analyzer.py443 def _check_and_adjust_chunk_cache_size(self):CODE
LOW…n_profiling_analyzer/transaction_profiling_analyzer.py462 def get_key_prefix_for_version_stamp(self, version_stamp):CODE
LOW…n_profiling_analyzer/transaction_profiling_analyzer.py468 def find_version_for_timestamp(self, tr, timestamp, start):CODE
139 more matches not shown…
Structural Annotation Overuse95 hits · 155 pts
SeverityFileLineSnippetContext
LOW⚡fdbclient/StorageCheckpoint.cpp92 // Step 1: Calculate target size and required paddingCOMMENT
LOW⚡fdbclient/StorageCheckpoint.cpp100 // Step 2: Build the footerCOMMENT
LOW⚡fdbclient/StorageCheckpoint.cpp108 // Step 3: Assemble the final serialized checkpointCOMMENT
LOWfdbclient/StorageCheckpoint.cpp134 // Step 1: Extract footer and parse padding sizeCOMMENT
LOW⚡fdbclient/StorageCheckpoint.cpp145 // Step 2: Calculate original payload sizeCOMMENT
LOW⚡fdbclient/StorageCheckpoint.cpp150 // Step 3: Extract and return the original payloadCOMMENT
LOWtests/TestRunner/fdb_test_runner/local_cluster.py605 # Step 1: add new serversSTRING
LOWtests/TestRunner/fdb_test_runner/local_cluster.py622 # Step 2: change coordinatorsSTRING
LOW⚡tests/TestRunner/fdb_test_runner/local_cluster.py635 # Step 3: exclude old servers from the cluster, i.e. move out their dataSTRING
LOW⚡tests/TestRunner/fdb_test_runner/local_cluster.py644 # Step 4: remove the old serversSTRING
LOW⚡fdbbackup/tests/s3_backup_bulkdump_bulkload.sh286 # Step 1: Restore with prefix using traditional rangefile mode (keep the data)COMMENT
LOW⚡fdbbackup/tests/s3_backup_bulkdump_bulkload.sh294 # Step 2: Clear normalKeys (original data)COMMENT
LOW⚡fdbbackup/tests/s3_backup_bulkdump_bulkload.sh301 # Step 3: Restore to normalKeysCOMMENT
LOW⚡fdbbackup/tests/s3_backup_bulkdump_bulkload.sh319 # Step 4: Run audit to compare BulkLoad-restored (normalKeys) vs traditional-restored (prefix)COMMENT
LOW⚡fdbbackup/tests/s3_backup_bulkdump_bulkload.sh328 # Step 5: Clean up the prefixed validation dataCOMMENT
LOWcontrib/joshua_logtool.py123 # Step 1: Find log filesCOMMENT
LOW⚡contrib/joshua_logtool.py224 # Step 2: Determine ensemble IDCOMMENT
LOWcontrib/joshua_logtool.py236 # Step 3: Create tar archiveCOMMENT
LOWcontrib/joshua_logtool.py253 # Step 4: Upload to FDBCOMMENT
LOWcontrib/joshua_stats/readme.md6### Step 1: Download Joshua test detailed outputCOMMENT
LOWcontrib/joshua_stats/readme.md9### Step 2: Run stats scriptCOMMENT
LOW⚡contrib/metadata_audit/check_krm_corruption.py947 # Step 1: Get serverList entries from FDBCOMMENT
LOW⚡contrib/metadata_audit/check_krm_corruption.py1034 # Step 3: CompareCOMMENT
LOW⚡contrib/metadata_audit/check_krm_corruption.py1273 # Step 4: Try to match by first 8 bytes (fdbcli only shows first half of UID)COMMENT
LOWcontrib/metadata_audit/check_krm_corruption.py1015 # Step 2: Get running storage servers from fdbcli statusCOMMENT
LOWcontrib/metadata_audit/check_krm_corruption.py1312 # Step 5: Try to match by address (only if prefix match failed)COMMENT
LOWcontrib/metadata_audit/check_krm_corruption.py1360 # Step 6: Scan serverKeys to find full UIDsCOMMENT
LOWcontrib/metadata_audit/check_krm_corruption.py2561 # Step 1: Build map from keyServers - what ranges are assigned to which serversCOMMENT
LOWcontrib/metadata_audit/check_krm_corruption.py2586 # Step 2: Build map from serverKeys - what ranges each server claimsCOMMENT
LOWcontrib/metadata_audit/check_krm_corruption.py2622 # Step 3: Compare - for each keyServers range, check serverKeys agreesCOMMENT
LOWcontrib/metadata_audit/check_krm_corruption.py2704 # Step 1: Build complete map of what each server claims to own from serverKeysCOMMENT
LOWcontrib/metadata_audit/check_krm_corruption.py2742 # Step 2: For each keyServers range, check that all listed servers claim itCOMMENT
LOWcontrib/metadata_audit/check_krm_corruption.py2807 # Step 3: Find orphan serverKeys - servers that claim ranges but aren't in keyServersCOMMENT
LOWcontrib/mtlsbenchmark/readme.md13### Step 1: Generate TLS CertificatesCOMMENT
LOWcontrib/mtlsbenchmark/readme.md24### Step 2: Configure Test in ScriptsCOMMENT
LOWcontrib/mtlsbenchmark/readme.md50### Step 3: Start the Server and Client(s)COMMENT
LOWfdbserver/storageserver/storageserver.cpp8428 // Step 1: Download files to localRootCOMMENT
LOWfdbserver/storageserver/storageserver.cpp8468 // Step 2: Do byte sampling locally if the remote byte sampling file is not valid nor existingCOMMENT
LOWfdbserver/storageserver/storageserver.cpp8491 // Step 3: Build LocalRecord used by ShardedRocksDB KVStore when injecting dataCOMMENT
LOWfdbserver/storageserver/storageserver.cpp8533 // Step 4: Update the moveInShard phaseCOMMENT
LOW⚡fdbserver/checkpoint/BulkSstFiles.cpp72 // Step 1: Clean up local folderCOMMENT
LOW⚡fdbserver/checkpoint/BulkSstFiles.cpp75 // Step 2: Dump data to fileCOMMENT
LOW⚡fdbserver/checkpoint/BulkSstFiles.cpp85 // Step 3: Dump sample to fileCOMMENT
LOW⚡fdbserver/checkpoint/BulkSstFiles.cpp94 // Step 4: Generate manifest fileCOMMENT
LOWfdbserver/core/BackupPartitionMap.cpp50 // Step 1: Collect shard sizesCOMMENT
LOWfdbserver/core/BackupPartitionMap.cpp76 // Step 2: Partition the shardsCOMMENT
LOW⚡fdbserver/core/BulkLoadUtil.cpp302 // Step 1: Generate local file set based on remote file set by replacing the remote root to the local root.COMMENT
LOW⚡fdbserver/core/BulkLoadUtil.cpp310 // Step 2: Download remote file set to local folderCOMMENT
LOW⚡fdbserver/datadistributor/DDTeamCollection.cpp5396 // Step 1: Create machineLocalityMap which will be used in building machine teamCOMMENT
LOW⚡fdbserver/datadistributor/DDTeamCollection.cpp5401 // Step 2: Get least used machines from which we choose machines as a machine teamCOMMENT
LOWfdbserver/datadistributor/DDTeamCollection.cpp245 // Step 1: find all valid teams from team collectionCOMMENT
LOWfdbserver/datadistributor/DDTeamCollection.cpp288 // Step 2: Conduct Power-of-D-Choice to select a teamCOMMENT
LOWfdbserver/datadistributor/DDTeamCollection.cpp5436 // Step 3: Create a representative process for each machine.COMMENT
LOWfdbserver/datadistributor/DDTeamCollection.cpp5460 // Step 4: Reuse Policy's selectReplicas() to create team for the representative process.COMMENT
LOWfdbserver/datadistributor/DDTeamCollection.cpp5507 // Step 5: Restore machine from its representative process team and get the machine teamCOMMENT
LOWfdbserver/datadistributor/DDTeamCollection.cpp5857 // Step 1: Choose 1 least used server and then choose 1 least used machine team from the serverCOMMENT
LOWfdbserver/datadistributor/DDTeamCollection.cpp5879 // Step 2: Randomly pick 1 server from each machine in the chosen machine team to form a server teamCOMMENT
LOWfdbserver/datadistributor/DDTeamCollection.cpp5943 // Step 4: Add the server teamCOMMENT
LOW⚡fdbserver/datadistributor/DataDistribution.cpp1393 // Step 2: submit the task to in-memory task map, which (1) turns off shard boundary change;COMMENT
LOW⚡fdbserver/datadistributor/DataDistribution.cpp1399 // Step 3: create bulk load shard and trigger data move and wait for task completionCOMMENT
35 more matches not shown…
Hallucination Indicators15 hits · 150 pts
SeverityFileLineSnippetContext
CRITICALfdbserver/clustercontroller/ClusterController.cpp2575 it.second.details.interf.locality.dcId(), self->changingDcIds.get().second.get());CODE
CRITICALfdbserver/clustercontroller/ClusterController.cpp2640 it.second.details.interf.locality.dcId(), self->changedDcIds.get().second.get());CODE
CRITICALfdbserver/clustercontroller/ClusterController.cpp3256 req.broadcastInfo.push_back(it.second.details.interf.updateServerDBInfo.getEndpoint());CODE
CRITICALfdbserver/clustercontroller/ClusterController.cpp3538 it.second.details.interf.coordinationPing.send(message);CODE
CRITICALfdbserver/clustercontroller/ClusterController.h323 .detail("NotExcludedMachine", !excludedMachines.contains(it.second.details.interf.locality.zoneId()))CODE
CRITICALfdbserver/clustercontroller/ClusterController.h325 (includeDCs.empty() || includeDCs.contains(it.second.details.interf.locality.dcId())))CODE
CRITICALfdbserver/clustercontroller/ClusterController.h336 !excludedMachines.contains(it.second.details.interf.locality.zoneId()) &&CODE
CRITICALfdbserver/clustercontroller/ClusterController.h337 (includeDCs.empty() || includeDCs.contains(it.second.details.interf.locality.dcId())) &&CODE
CRITICALfdbserver/clustercontroller/ClusterController.h354 !excludedMachines.contains(it.second.details.interf.locality.zoneId()) &&CODE
CRITICALfdbserver/clustercontroller/ClusterController.h355 (includeDCs.empty() || includeDCs.contains(it.second.details.interf.locality.dcId())) &&CODE
CRITICALfdbserver/clustercontroller/ClusterController.h386 (!dcId.present() || it.second.details.interf.locality.dcId() == dcId.get())) {CODE
CRITICALfdbserver/clustercontroller/ClusterController.h1488 it.second.details.interf.locality.dcId() != clusterControllerDcId) {CODE
CRITICALfdbserver/clustercontroller/ClusterController.h1512 it.second.details.interf.locality.dcId() == dcId) {CODE
CRITICALfdbserver/clustercontroller/ClusterController.h1572 it.second.details.interf.locality.dcId() == dcId &&CODE
CRITICALfdbserver/clustercontroller/ClusterController.h1709 result.insert(it.second.details.interf.locality.dcId());CODE
Verbosity Indicators92 hits · 150 pts
SeverityFileLineSnippetContext
LOW⚡fdbclient/StorageCheckpoint.cpp92 // Step 1: Calculate target size and required paddingCOMMENT
LOW⚡fdbclient/StorageCheckpoint.cpp100 // Step 2: Build the footerCOMMENT
LOW⚡fdbclient/StorageCheckpoint.cpp108 // Step 3: Assemble the final serialized checkpointCOMMENT
LOWfdbclient/StorageCheckpoint.cpp134 // Step 1: Extract footer and parse padding sizeCOMMENT
LOW⚡fdbclient/StorageCheckpoint.cpp145 // Step 2: Calculate original payload sizeCOMMENT
LOW⚡fdbclient/StorageCheckpoint.cpp150 // Step 3: Extract and return the original payloadCOMMENT
LOWtests/TestRunner/fdb_test_runner/local_cluster.py605 # Step 1: add new serversSTRING
LOWtests/TestRunner/fdb_test_runner/local_cluster.py622 # Step 2: change coordinatorsSTRING
LOW⚡tests/TestRunner/fdb_test_runner/local_cluster.py635 # Step 3: exclude old servers from the cluster, i.e. move out their dataSTRING
LOW⚡tests/TestRunner/fdb_test_runner/local_cluster.py644 # Step 4: remove the old serversSTRING
LOW⚡fdbbackup/tests/s3_backup_bulkdump_bulkload.sh286 # Step 1: Restore with prefix using traditional rangefile mode (keep the data)COMMENT
LOW⚡fdbbackup/tests/s3_backup_bulkdump_bulkload.sh294 # Step 2: Clear normalKeys (original data)COMMENT
LOW⚡fdbbackup/tests/s3_backup_bulkdump_bulkload.sh301 # Step 3: Restore to normalKeysCOMMENT
LOW⚡fdbbackup/tests/s3_backup_bulkdump_bulkload.sh319 # Step 4: Run audit to compare BulkLoad-restored (normalKeys) vs traditional-restored (prefix)COMMENT
LOW⚡fdbbackup/tests/s3_backup_bulkdump_bulkload.sh328 # Step 5: Clean up the prefixed validation dataCOMMENT
LOWcontrib/joshua_logtool.py123 # Step 1: Find log filesCOMMENT
LOW⚡contrib/joshua_logtool.py224 # Step 2: Determine ensemble IDCOMMENT
LOWcontrib/joshua_logtool.py236 # Step 3: Create tar archiveCOMMENT
LOWcontrib/joshua_logtool.py253 # Step 4: Upload to FDBCOMMENT
LOW⚡contrib/metadata_audit/check_krm_corruption.py947 # Step 1: Get serverList entries from FDBCOMMENT
LOW⚡contrib/metadata_audit/check_krm_corruption.py1034 # Step 3: CompareCOMMENT
LOW⚡contrib/metadata_audit/check_krm_corruption.py1273 # Step 4: Try to match by first 8 bytes (fdbcli only shows first half of UID)COMMENT
LOWcontrib/metadata_audit/check_krm_corruption.py1015 # Step 2: Get running storage servers from fdbcli statusCOMMENT
LOWcontrib/metadata_audit/check_krm_corruption.py1312 # Step 5: Try to match by address (only if prefix match failed)COMMENT
LOWcontrib/metadata_audit/check_krm_corruption.py1360 # Step 6: Scan serverKeys to find full UIDsCOMMENT
LOWcontrib/metadata_audit/check_krm_corruption.py2561 # Step 1: Build map from keyServers - what ranges are assigned to which serversCOMMENT
LOWcontrib/metadata_audit/check_krm_corruption.py2586 # Step 2: Build map from serverKeys - what ranges each server claimsCOMMENT
LOWcontrib/metadata_audit/check_krm_corruption.py2622 # Step 3: Compare - for each keyServers range, check serverKeys agreesCOMMENT
LOWcontrib/metadata_audit/check_krm_corruption.py2704 # Step 1: Build complete map of what each server claims to own from serverKeysCOMMENT
LOWcontrib/metadata_audit/check_krm_corruption.py2742 # Step 2: For each keyServers range, check that all listed servers claim itCOMMENT
LOWcontrib/metadata_audit/check_krm_corruption.py2807 # Step 3: Find orphan serverKeys - servers that claim ranges but aren't in keyServersCOMMENT
LOWcontrib/metadata_audit/check_krm_corruption.py4569 2. We need to check if ANY server has the shard before removingSTRING
LOWfdbserver/storageserver/storageserver.cpp8428 // Step 1: Download files to localRootCOMMENT
LOWfdbserver/storageserver/storageserver.cpp8468 // Step 2: Do byte sampling locally if the remote byte sampling file is not valid nor existingCOMMENT
LOWfdbserver/storageserver/storageserver.cpp8491 // Step 3: Build LocalRecord used by ShardedRocksDB KVStore when injecting dataCOMMENT
LOWfdbserver/storageserver/storageserver.cpp8533 // Step 4: Update the moveInShard phaseCOMMENT
LOW⚡fdbserver/checkpoint/BulkSstFiles.cpp72 // Step 1: Clean up local folderCOMMENT
LOW⚡fdbserver/checkpoint/BulkSstFiles.cpp75 // Step 2: Dump data to fileCOMMENT
LOW⚡fdbserver/checkpoint/BulkSstFiles.cpp85 // Step 3: Dump sample to fileCOMMENT
LOW⚡fdbserver/checkpoint/BulkSstFiles.cpp94 // Step 4: Generate manifest fileCOMMENT
LOWfdbserver/core/BackupPartitionMap.cpp50 // Step 1: Collect shard sizesCOMMENT
LOWfdbserver/core/BackupPartitionMap.cpp76 // Step 2: Partition the shardsCOMMENT
LOW⚡fdbserver/core/BulkLoadUtil.cpp302 // Step 1: Generate local file set based on remote file set by replacing the remote root to the local root.COMMENT
LOW⚡fdbserver/core/BulkLoadUtil.cpp310 // Step 2: Download remote file set to local folderCOMMENT
LOW⚡fdbserver/datadistributor/DDTeamCollection.cpp5396 // Step 1: Create machineLocalityMap which will be used in building machine teamCOMMENT
LOW⚡fdbserver/datadistributor/DDTeamCollection.cpp5401 // Step 2: Get least used machines from which we choose machines as a machine teamCOMMENT
LOWfdbserver/datadistributor/DDTeamCollection.cpp245 // Step 1: find all valid teams from team collectionCOMMENT
LOWfdbserver/datadistributor/DDTeamCollection.cpp288 // Step 2: Conduct Power-of-D-Choice to select a teamCOMMENT
LOWfdbserver/datadistributor/DDTeamCollection.cpp5436 // Step 3: Create a representative process for each machine.COMMENT
LOWfdbserver/datadistributor/DDTeamCollection.cpp5460 // Step 4: Reuse Policy's selectReplicas() to create team for the representative process.COMMENT
LOWfdbserver/datadistributor/DDTeamCollection.cpp5507 // Step 5: Restore machine from its representative process team and get the machine teamCOMMENT
LOWfdbserver/datadistributor/DDTeamCollection.cpp5857 // Step 1: Choose 1 least used server and then choose 1 least used machine team from the serverCOMMENT
LOWfdbserver/datadistributor/DDTeamCollection.cpp5879 // Step 2: Randomly pick 1 server from each machine in the chosen machine team to form a server teamCOMMENT
LOWfdbserver/datadistributor/DDTeamCollection.cpp5943 // Step 4: Add the server teamCOMMENT
LOW⚡fdbserver/datadistributor/DataDistribution.cpp1393 // Step 2: submit the task to in-memory task map, which (1) turns off shard boundary change;COMMENT
LOW⚡fdbserver/datadistributor/DataDistribution.cpp1399 // Step 3: create bulk load shard and trigger data move and wait for task completionCOMMENT
LOW⚡fdbserver/datadistributor/DataDistribution.cpp1954 // Step 1: Get manifest metadata by downloading the manifest fileCOMMENT
LOW⚡fdbserver/datadistributor/DataDistribution.cpp1959 // Step 2: Check if the task has been createdCOMMENT
LOW⚡fdbserver/datadistributor/DataDistribution.cpp1969 // Step 3: Trigger bulkload task which is handled by bulkload task engineCOMMENT
LOWfdbserver/datadistributor/DataDistribution.cpp1379 // Step 1: persist bulk load task phase as triggeredCOMMENT
32 more matches not shown…
Excessive Try-Catch Wrapping143 hits · 150 pts
SeverityFileLineSnippetContext
LOWpackaging/make_public.py44 except Exception as e:CODE
LOWpackaging/docker/sidecar.py505 except Exception as ex:CODE
LOWpackaging/docker/sidecar.py538 except Exception as ex:CODE
LOWtests/TestRunner/fdb_test_runner/binary_download.py115 except Exception as e:CODE
LOWtests/TestRunner/fdb_test_runner/upgrade_test.py254 except Exception:CODE
LOWtests/TestRunner/fdb_test_runner/upgrade_test.py290 except Exception as e:CODE
MEDIUMtests/TestRunner/fdb_test_runner/upgrade_test.py291 print("Error while reading output pipe", e)CODE
LOWtests/TestRunner/fdb_test_runner/upgrade_test.py328 except Exception:CODE
LOWtests/TestRunner/fdb_test_runner/upgrade_test.py347 except Exception:CODE
MEDIUMtests/TestRunner/fdb_test_runner/upgrade_test.py280def output_pipe_reader(self):CODE
LOWtests/TestRunner/fdb_test_runner/local_cluster.py72 except Exception:CODE
LOWtests/TestRunner/fdb_test_runner/TestRunner.py181 except Exception as e:CODE
MEDIUMtests/TestRunner/fdb_test_runner/TestRunner.py178def process_line(self, line, linenr):CODE
LOWtests/python_tests/__init__.py123 except Exception:CODE
MEDIUMtests/python_tests/python_correctness.py137def run_test(self):CODE
MEDIUMtests/python_tests/python_correctness.py197def test_callback(self, future):CODE
LOW⚡tests/python_tests/python_correctness.py229 except Exception:CODE
LOW⚡tests/python_tests/python_correctness.py239 except Exception:CODE
LOW⚡tests/python_tests/python_correctness.py246 except Exception:CODE
LOW⚡tests/python_tests/python_correctness.py256 except Exception:CODE
LOW⚡tests/python_tests/python_correctness.py264 except Exception:CODE
LOW⚡tests/python_tests/python_correctness.py271 except Exception:CODE
LOW⚡tests/python_tests/python_correctness.py278 except Exception:CODE
LOW⚡tests/python_tests/python_correctness.py287 except Exception:CODE
LOW⚡tests/python_tests/python_correctness.py294 except Exception:CODE
LOW⚡tests/python_tests/python_correctness.py303 except Exception:CODE
LOW⚡tests/python_tests/python_correctness.py310 except Exception:CODE
LOW⚡tests/python_tests/python_correctness.py317 except Exception:CODE
LOW⚡tests/python_tests/python_correctness.py326 except Exception:CODE
LOW⚡tests/python_tests/python_correctness.py333 except Exception:CODE
LOW⚡tests/python_tests/python_correctness.py362 except Exception:CODE
LOW⚡tests/python_tests/python_correctness.py369 except Exception:CODE
LOW⚡tests/python_tests/python_correctness.py376 except Exception:CODE
LOW⚡tests/python_tests/python_correctness.py436 except Exception:CODE
LOW⚡tests/python_tests/python_correctness.py443 except Exception:CODE
LOW⚡tests/python_tests/python_correctness.py451 except Exception:CODE
LOWtests/python_tests/python_correctness.py142 except Exception:CODE
LOWtests/python_tests/python_correctness.py155 except Exception:CODE
LOWtests/python_tests/python_correctness.py202 except Exception:CODE
LOWtests/python_tests/python_correctness.py216 except Exception:CODE
LOWtests/python_tests/python_correctness.py351 except Exception:CODE
LOWtests/python_tests/python_correctness.py388 except Exception:CODE
LOWtests/python_tests/python_correctness.py402 except Exception:CODE
LOWtests/python_tests/python_correctness.py419 except Exception:CODE
LOWtests/python_tests/python_correctness.py463 except Exception:CODE
LOWtests/python_tests/python_correctness.py476 except Exception:CODE
LOWtests/python_tests/python_correctness.py486 except Exception:CODE
LOWtests/python_tests/python_correctness.py651 except Exception:CODE
LOWtests/python_tests/ryw_benchmark.py57 except Exception:CODE
LOWtests/python_tests/ryw_benchmark.py65 except Exception:CODE
LOWtests/python_tests/ryw_benchmark.py105 except Exception:CODE
MEDIUMtests/python_tests/ryw_benchmark.py52def run_test(self):CODE
LOWtests/python_tests/python_performance.py69 except Exception:CODE
LOWtests/python_tests/python_performance.py77 except Exception:CODE
LOWtests/python_tests/python_performance.py151 except Exception:CODE
MEDIUMtests/python_tests/python_performance.py64def run_test(self):CODE
MEDIUMcontrib/prx.py26 print(f"Error running subprocess [{' '.join(command)}]:\n{output}", file=sys.stderr)CODE
LOWcontrib/joshua_logtool.py161 except Exception as e:CODE
LOW⚡contrib/joshua_logtool.py217 except Exception as e:CODE
LOWcontrib/joshua_logtool.py269 except Exception as e:CODE
83 more matches not shown…
Empty Error Handlers28 hits · 140 pts
SeverityFileLineSnippetContext
HIGHtests/TestRunner/fdb_test_runner/tmp_cluster.py58except FileNotFoundError:CODE
HIGHtests/TestRunner/fdb_test_runner/tmp_cluster.py66except FileNotFoundError:CODE
HIGHtests/TestRunner/fdb_test_runner/local_cluster.py72except Exception:CODE
HIGHtests/TestRunner/fdb_test_runner/local_cluster.py723except ET.ParseError:CODE
HIGHtests/TestRunner/fdb_test_runner/TestRunner.py30except OSError:CODE
HIGHtests/TestRunner/fdb_test_runner/TestRunner.py493except FileNotFoundError:CODE
HIGHtests/TestRunner/fdb_test_runner/fake_cluster.py30except FileNotFoundError:CODE
HIGHtests/TestRunner/fdb_test_runner/fake_cluster.py36except FileNotFoundError:CODE
HIGHcontrib/mako_ab_memtracker.py179except OSError:CODE
HIGHcontrib/mako_ab_memtracker.py224except OSError:CODE
HIGHcontrib/prx.py177except subprocess.CalledProcessError:CODE
HIGH…n_profiling_analyzer/transaction_profiling_analyzer.py826except fdb.FDBError:CODE
HIGHcontrib/metadata_audit/check_krm_corruption.py995except:CODE
HIGHcontrib/metadata_audit/check_krm_corruption.py1012except:CODE
HIGHcontrib/metadata_audit/check_krm_corruption.py3801except:CODE
HIGHcontrib/metadata_audit/check_krm_corruption.py2911except:CODE
HIGHcontrib/metadata_audit/check_krm_corruption.py3657except:CODE
HIGHcontrib/metadata_audit/check_krm_corruption.py4602except:CODE
HIGHcontrib/metadata_audit/fdb/__init__.py138except TypeError:CODE
HIGHcontrib/metadata_audit/fdb/impl.py1065except Exception:CODE
HIGHcontrib/metadata_audit/fdb/impl.py753except Exception:CODE
HIGHcontrib/TestHarness2/analyze_determinism_failure.py101except (ValueError, TypeError):CODE
HIGHcontrib/TestHarness2/test_harness/summarize.py84except OSError:CODE
HIGHcontrib/TestHarness2/test_harness/summarize.py642except ValueError:CODE
HIGHcontrib/Implib.so/implib-gen.py44except KeyError:CODE
HIGHbindings/python/fdb/__init__.py145except TypeError:CODE
HIGHbindings/python/fdb/impl.py1158except Exception:CODE
HIGHbindings/python/fdb/impl.py770except Exception:CODE
Deep Nesting140 hits · 122 pts
SeverityFileLineSnippetContext
LOWpackaging/docker/sidecar.py419CODE
LOWpackaging/docker/sidecar.py480CODE
LOWpackaging/docker/sidecar.py509CODE
LOWdocumentation/sphinx/extensions/rubydomain.py114CODE
LOWdocumentation/sphinx/extensions/rubydomain.py355CODE
LOWdocumentation/sphinx/extensions/rubydomain.py499CODE
LOWdocumentation/sphinx/extensions/rubydomain.py619CODE
LOWlayers/compressedColumn/compressedColumn.py58CODE
LOWlayers/compressedColumn/compressedColumn.py103CODE
LOWlayers/compressedColumn/compressedColumn.py195CODE
LOWlayers/containers/treap.py81CODE
LOWfdbrpc/tests/networktest_smoke.py35CODE
LOWfdbclient/vexillographer/vexillographer.py176CODE
LOWtests/TestRunner/fdb_test_runner/tmp_cluster.py70CODE
LOWtests/TestRunner/fdb_test_runner/local_cluster.py707CODE
LOWcontrib/ctest_to_joshua.py32CODE
LOWcontrib/commit_debug.py103CODE
LOWcontrib/commit_debug.py62CODE
LOWcontrib/mako_ab_memtracker.py161CODE
LOWcontrib/mako_ab_memtracker.py184CODE
LOWcontrib/mako_ab_memtracker.py258CODE
LOWcontrib/convert.py39CODE
LOWcontrib/inline_fdb_backtraces.py11CODE
LOWcontrib/apiversioner.py125CODE
LOWcontrib/apiversioner.py198CODE
LOWcontrib/apiversioner.py286CODE
LOWcontrib/joshua_logtool.py107CODE
LOWcontrib/joshua_logtool.py367CODE
LOWcontrib/lint.py187CODE
LOWcontrib/pkg_tester/test_fdb_pkgs.py205CODE
LOWcontrib/grv_proxy_model/grv_test.py66CODE
LOW…n_profiling_analyzer/transaction_profiling_analyzer.py940CODE
LOW…n_profiling_analyzer/transaction_profiling_analyzer.py321CODE
LOW…n_profiling_analyzer/transaction_profiling_analyzer.py501CODE
LOW…n_profiling_analyzer/transaction_profiling_analyzer.py808CODE
LOW…n_profiling_analyzer/transaction_profiling_analyzer.py838CODE
LOW…n_profiling_analyzer/transaction_profiling_analyzer.py1150CODE
LOW…iling_analyzer/transaction_profiling_analyzer_tests.py113CODE
LOWcontrib/local_cluster/binding_test.py279CODE
LOWcontrib/local_cluster/lib/fdb_process.py163CODE
LOWcontrib/metadata_audit/repair_coalesce.py247CODE
LOWcontrib/metadata_audit/restore_metadata.py173CODE
LOWcontrib/metadata_audit/restore_metadata.py279CODE
LOWcontrib/metadata_audit/check_krm_corruption.py133CODE
LOWcontrib/metadata_audit/check_krm_corruption.py355CODE
LOWcontrib/metadata_audit/check_krm_corruption.py553CODE
LOWcontrib/metadata_audit/check_krm_corruption.py614CODE
LOWcontrib/metadata_audit/check_krm_corruption.py823CODE
LOWcontrib/metadata_audit/check_krm_corruption.py917CODE
LOWcontrib/metadata_audit/check_krm_corruption.py1469CODE
LOWcontrib/metadata_audit/check_krm_corruption.py1721CODE
LOWcontrib/metadata_audit/check_krm_corruption.py1913CODE
LOWcontrib/metadata_audit/check_krm_corruption.py2317CODE
LOWcontrib/metadata_audit/check_krm_corruption.py2431CODE
LOWcontrib/metadata_audit/check_krm_corruption.py2550CODE
LOWcontrib/metadata_audit/check_krm_corruption.py2683CODE
LOWcontrib/metadata_audit/check_krm_corruption.py2856CODE
LOWcontrib/metadata_audit/check_krm_corruption.py2959CODE
LOWcontrib/metadata_audit/check_krm_corruption.py3127CODE
LOWcontrib/metadata_audit/check_krm_corruption.py3221CODE
80 more matches not shown…
Redundant / Tautological Comments57 hits · 72 pts
SeverityFileLineSnippetContext
LOWlayers/containers/vector.py364 # Check if the new end of the vector was being sparsely representedCOMMENT
LOWlayers/containers/highcontention/queue.py231 # Check if there are other people waiting to be popped. If so, weCOMMENT
LOWfdbclient/tests/mocks3_fixture.sh109 # Check if the process is still runningCOMMENT
LOWfdbclient/tests/mocks3_fixture.sh174 # Check if process exists before trying to killCOMMENT
LOWfdbclient/tests/mocks3_fixture.sh195 # Check if it survived kill -9 (should be impossible)COMMENT
LOWfdbclient/tests/tests_common.sh137# Check if test data should be preserved (PRESERVE_TEST_DATA=1)COMMENT
LOWfdbclient/tests/fdb_cluster_fixture.sh24 # Check if we're taking too longCOMMENT
LOWfdbclient/tests/s3client_test.sh18 # Check if test data should be preserved (common function from tests_common.sh)COMMENT
LOWfdbclient/tests/s3client_test.sh247 # Check if command succeeded and output matches expected patternsCOMMENT
LOWfdbclient/tests/bulkload_test.sh27 # Check if test data should be preserved (common function from tests_common.sh)COMMENT
LOW⚡fdbclient/tests/aws_fixture.sh153# Check if curl is installedCOMMENT
LOW⚡fdbclient/tests/aws_fixture.sh158# Check if curl is installedCOMMENT
LOW⚡fdbclient/tests/aws_fixture.sh163# Check if jq is installed.COMMENT
LOWtests/TestRunner/fdb_test_runner/binary_download.py60 # Check if the binaries for the given version are available in the local old binaries repositoryCOMMENT
LOWtests/TestRunner/fdb_test_runner/local_cluster.py573 # Check if the cluster file was successfully updated tooSTRING
LOWfdbbackup/tests/backup_tests_common.sh194 # Check if backup is restorable (differential state) or completedCOMMENT
LOWfdbbackup/tests/backup_tests_common.sh250 # Check if BulkDump snapshot exists (look for bulkDumpJobId in describe output)COMMENT
LOWfdbbackup/tests/backup_tests_common.sh267 # Check if backup already completed (no need to discontinue)COMMENT
LOWfdbbackup/tests/backup_tests_common.sh344 # Check if restore completedCOMMENT
LOWfdbbackup/tests/backup_tests_common.sh352 # Check if restore failed (be specific - "LastError: None" contains "Error" so avoid false positives)COMMENT
LOWfdbbackup/tests/blob_backup_restore_test.sh32 # Check if test data should be preserved (common function from tests_common.sh)COMMENT
LOWfdbbackup/tests/s3_backup_bulkdump_bulkload.sh52 # Check if test data should be preserved (common function from tests_common.sh)COMMENT
LOWcontrib/joshua_logtool.py151 # Check if we should include app logs from the log directory itselfCOMMENT
LOW⚡contrib/metadata_audit/check_krm_corruption.py1042 # Check if mismatch is due to UID length difference (8 vs 16 bytes)COMMENT
LOW⚡contrib/metadata_audit/check_krm_corruption.py1047 # Print resultsCOMMENT
LOW⚡contrib/metadata_audit/check_krm_corruption.py1283 # Check if running UIDs (8 bytes) match the first 8 bytes of serverList UIDsCOMMENT
LOWcontrib/metadata_audit/check_krm_corruption.py157 # Check if this looks like a versioned value (starts with 0x0FDB...)COMMENT
LOWcontrib/metadata_audit/check_krm_corruption.py162 # Check if it's a valid FDB protocol version (starts with 0x0FDB00...)COMMENT
LOWcontrib/metadata_audit/check_krm_corruption.py299 # Check if this version supports shard metadataCOMMENT
LOWcontrib/metadata_audit/check_krm_corruption.py1154 # Check if 4 bytes before could be an IPCOMMENT
LOWcontrib/metadata_audit/check_krm_corruption.py1156 # Check if it looks like a valid private/CGNAT IPCOMMENT
LOWcontrib/metadata_audit/check_krm_corruption.py1400 # Check if any serverKeys UIDs match running servers (by 8-byte prefix)COMMENT
LOWcontrib/metadata_audit/check_krm_corruption.py1444 # Check if serverKeys UIDs match serverList UIDsCOMMENT
LOWcontrib/metadata_audit/check_krm_corruption.py1580 # Check if expected server is in the listCOMMENT
LOWcontrib/metadata_audit/check_krm_corruption.py2376 # Check if this is a blog shardCOMMENT
LOWcontrib/metadata_audit/check_krm_corruption.py2425 # Check if keyServers is completely emptyCOMMENT
LOWcontrib/metadata_audit/check_krm_corruption.py2475 # Check if server existsCOMMENT
LOWcontrib/metadata_audit/check_krm_corruption.py2496 # Check if it's a blog rangeCOMMENT
LOWcontrib/metadata_audit/check_krm_corruption.py2502 # Check if this spans the full keyspace (very wrong!)COMMENT
LOWcontrib/metadata_audit/check_krm_corruption.py2544 # Check if same as previousCOMMENT
LOWcontrib/metadata_audit/check_krm_corruption.py2646 # Check if any of this server's ranges overlap with [start_key, end_key)COMMENT
LOWcontrib/metadata_audit/check_krm_corruption.py2773 # Check if this server claims to own this range in serverKeysCOMMENT
LOWcontrib/metadata_audit/check_krm_corruption.py2784 # Check if any of the server's ranges overlap with [prev_key, user_key)COMMENT
LOWcontrib/metadata_audit/check_krm_corruption.py3013 # Check if it's a blog shard (\xff\x02)COMMENT
LOWcontrib/metadata_audit/check_krm_corruption.py4060 # Check if this server is in the keyServers entryCOMMENT
LOWcontrib/metadata_audit/check_krm_corruption.py4077 # Check if this server is missing THIS specific rangeCOMMENT
LOWcontrib/metadata_audit/check_krm_corruption.py5344 # Check if orphan ranges cover the keyspaceCOMMENT
LOWcontrib/metadata_audit/check_krm_corruption.py5466 # Check if stale serverKeys entries will cause wrong_shard_serverCOMMENT
LOWcontrib/metadata_audit/check_krm_corruption.py5479 # Check if stale serverKeys entries will cause wrong_shard_serverCOMMENT
LOWcontrib/TestHarness2/analyze_determinism_failure.py327 # Check if Run 2 has roughly 2x the eventsCOMMENT
LOWcontrib/TestHarness2/test_harness/run.py657 # Check if we're running with an old binary (restarting test with non-current binary)COMMENT
LOWcontrib/TestHarness2/test_harness/run.py802 # Check if we need to look for config in trace filesCOMMENT
LOWcontrib/TestHarness2/test_harness/run.py1127 # Check if we should preserve logs on failureCOMMENT
LOWcontrib/Joshua/scripts/correctnessTest.sh156 # Check if test failed by parsing XML outputCOMMENT
LOWcontrib/Joshua/scripts/correctnessTest.sh280# Check if stdout file is empty and generate fallback if neededCOMMENT
LOWcontrib/Joshua/scripts/correctnessTest.sh299 # Check if test actually failedCOMMENT
LOWcontrib/Joshua/scripts/localClusterStart.sh106 # Display messageCOMMENT
Self-Referential Comments19 hits · 55 pts
SeverityFileLineSnippetContext
MEDIUMpackaging/docker/kubernetes/test_config.yaml20# This file provides an example of using a statefulset to launch FDB processesCOMMENT
MEDIUMdocumentation/sphinx/conf.py5# This file is execfile()d with the current directory set to its containing dir.COMMENT
MEDIUMlayers/compressedColumn/compressedColumn.py194 # This function is not fully transactional. Each compressed block will be created in a transactionCOMMENT
MEDIUMlayers/pubsub/pubsub_example.py46# Create the specified numbers of feeds and inboxes. Subscribe each inbox to aCOMMENT
MEDIUMlayers/pubsub/ps_tutorial.py53# Create a single feed (for Alice)COMMENT
MEDIUMlayers/pubsub/ps_tutorial.py56# Create an inbox for BobCOMMENT
MEDIUMlayers/pubsub/pubsub.py239# Create the specified numbers of feeds and inboxes. Subscribe each inbox to aCOMMENT
MEDIUMfdbclient/ClusterConnectionFile.cpp155 "# DO NOT EDIT!\n# This file is auto-generated, it is not to be edited by hand\n" +CODE
MEDIUMfdbclient/include/fdbclient/SimpleIni.h50 -# Define the appropriate symbol for the converter you wish to use andCODE
MEDIUMfdbclient/tests/tests_common.sh28 # Create a more robust watchdog that tries multiple kill strategiesCOMMENT
MEDIUMfdbclient/tests/s3client_test.sh40# This function handles the case where TLS_CA_FILE might be emptyCOMMENT
MEDIUMfdbclient/tests/s3client_test.sh850 # Create an empty blob credentials file (MockS3Server uses simple auth)COMMENT
MEDIUMtests/TestRunner/fdb_test_runner/upgrade_test.py109 # Create a directory for external client libraries for MVC and fill itCOMMENT
MEDIUMcontrib/Joshua/scripts/localClusterStart.sh17# Initialize the variablesCOMMENT
MEDIUMcontrib/Joshua/scripts/localClusterStart.sh28 # Define a random ip address and port on localhostCOMMENT
MEDIUMcontrib/Joshua/scripts/localClusterStart.sh118# Create the directories used by the server.COMMENT
MEDIUMcontrib/Joshua/scripts/localClusterStart.sh166# Create a cluster file for the local cluster.COMMENT
MEDIUMbindings/bindingtester/run_binding_tester.sh92 # Create the file, if not presentCOMMENT
MEDIUMbindings/bindingtester/run_binding_tester.sh242# Initialize the variablesCOMMENT
Decorative Section Separators16 hits · 51 pts
SeverityFileLineSnippetContext
MEDIUMcontrib/mako_ab_memtracker.py311# --------------------------------------------------------------------------COMMENT
MEDIUMcontrib/mako_ab_memtracker.py313# --------------------------------------------------------------------------COMMENT
MEDIUMcontrib/mako_ab_binaries.py104# --------------------------------------------------------------------------COMMENT
MEDIUMcontrib/metadata_audit/check_krm_corruption.py2821# =============================================================================COMMENT
MEDIUMcontrib/metadata_audit/check_krm_corruption.py2823# =============================================================================COMMENT
MEDIUMcontrib/metadata_audit/check_krm_corruption.py2843# =============================================================================COMMENT
MEDIUMcontrib/metadata_audit/check_krm_corruption.py5490 # ================================================================COMMENT
MEDIUMcontrib/metadata_audit/check_krm_corruption.py5492 # ================================================================COMMENT
MEDIUM⚡bindings/c/test/fdb_c_client_config_tests.py180 # ----------------------------COMMENT
MEDIUM⚡bindings/c/test/fdb_c_client_config_tests.py182 # ----------------------------COMMENT
MEDIUMbindings/c/test/fdb_c_client_config_tests.py131 # ----------------------------COMMENT
MEDIUMbindings/c/test/fdb_c_client_config_tests.py133 # ----------------------------COMMENT
MEDIUMbindings/c/test/fdb_c_client_config_tests.py265 # ----------------------------COMMENT
MEDIUMbindings/c/test/fdb_c_client_config_tests.py267 # ----------------------------COMMENT
MEDIUMbindings/c/test/fdb_c_client_config_tests.py819 # ---------------COMMENT
MEDIUMbindings/c/test/fdb_c_client_config_tests.py821 # ---------------COMMENT
AI Slop Vocabulary19 hits · 51 pts
SeverityFileLineSnippetContext
MEDIUMfdbrpc/FlowTransport.cpp84// Certainly this applies to FDB messages. So we should refer to FDBCOMMENT
MEDIUMfdbclient/RESTClient.h67 // RESTConnectionPool is used to leverage cached connection if any for 'host:service' pair. API then leverageCOMMENT
MEDIUMfdbclient/StorageServerInterface.cpp24// Fundamentally it is just about comparing replies. Where they came from is incidental.COMMENT
MEDIUMfdbclient/tests/tests_common.sh28 # Create a more robust watchdog that tries multiple kill strategiesCOMMENT
MEDIUMcontrib/mako_ab_memtracker.py147 # this harness runs its data dir) does not support direct I/O, so theCOMMENT
LOWcontrib/metadata_audit/check_krm_corruption.py1566 # Simple midpoint - just use start key + a byteCOMMENT
LOWcontrib/metadata_audit/fdb/tuple.py615 # Booleans, UUIDs, integers, and Versionstamps can just use standard comparison.COMMENT
MEDIUMcontrib/stacktrace/stacktrace.amalgamation.cpp412// are not defined as such in any file). To utilize the followingCOMMENT
MEDIUM⚡contrib/rapidxml/manual.html90 Note that RapidXml performs no decoding - strings returned by name() and value() functions will contain text encoded usCODE
MEDIUM⚡contrib/rapidxml/manual.html90 Note that RapidXml performs no decoding - strings returned by name() and value() functions will contain text encoded usCODE
MEDIUM⚡contrib/rapidxml/manual.html90 Note that RapidXml performs no decoding - strings returned by name() and value() functions will contain text encoded usCODE
MEDIUMcontrib/Joshua/scripts/correctnessTest.sh267# Execute Python test harnessCOMMENT
LOWbindings/python/fdb/tuple.py615 # Booleans, UUIDs, integers, and Versionstamps can just use standard comparison.COMMENT
MEDIUMfdbserver/core/QuietDatabase.cpp200// This is not robust in the face of a TLog failureCOMMENT
MEDIUM…core/include/fdbserver/core/AccumulativeChecksumUtil.h82 uint16_t acsIndex; // Essentially, this is the ID of commit proxyCODE
MEDIUMfdbserver/datadistributor/DDTeamCollection.cpp2474 // utilize the disk of other active SSCOMMENT
MEDIUMfdbserver/workloads/S3ClientWorkload.cpp112 // Uses S3BlobStoreEndpoint::fromString() for robust URL parsing (similar toCOMMENT
MEDIUMflow/include/flow/ThreadHelper.h923// implementation for memory management error handling though. Essentially a future that's returned from a synchronousCOMMENT
MEDIUMflow/include/flow/WipedString.h83// NOTE: This class intentionally diverged from Standalone<StringRef> for more robust preservation ofCOMMENT
Dead Code18 hits · 36 pts
SeverityFileLineSnippetContext
MEDIUMcontrib/metadata_audit/fdb/impl.py1199CODE
MEDIUMcontrib/metadata_audit/fdb/impl.py1206CODE
MEDIUMcontrib/metadata_audit/fdb/impl.py1240CODE
MEDIUMcontrib/metadata_audit/fdb/impl.py1248CODE
MEDIUMcontrib/metadata_audit/fdb/impl.py1256CODE
MEDIUMcontrib/metadata_audit/fdb/impl.py1264CODE
MEDIUMcontrib/metadata_audit/fdb/impl.py1272CODE
MEDIUMcontrib/metadata_audit/fdb/impl.py1280CODE
MEDIUMcontrib/metadata_audit/fdb/impl.py1288CODE
MEDIUMbindings/python/fdb/impl.py1292CODE
MEDIUMbindings/python/fdb/impl.py1299CODE
MEDIUMbindings/python/fdb/impl.py1333CODE
MEDIUMbindings/python/fdb/impl.py1341CODE
MEDIUMbindings/python/fdb/impl.py1349CODE
MEDIUMbindings/python/fdb/impl.py1357CODE
MEDIUMbindings/python/fdb/impl.py1365CODE
MEDIUMbindings/python/fdb/impl.py1373CODE
MEDIUMbindings/python/fdb/impl.py1381CODE
Cross-File Repetition4 hits · 20 pts
SeverityFileLineSnippetContext
HIGHcontrib/metadata_audit/fdb/locality.py0documentation for this api can be found at https://apple.github.io/foundationdb/api-python.htmlSTRING
HIGHcontrib/metadata_audit/fdb/__init__.py0documentation for this api can be found at https://apple.github.io/foundationdb/api-python.htmlSTRING
HIGHbindings/python/fdb/locality.py0documentation for this api can be found at https://apple.github.io/foundationdb/api-python.htmlSTRING
HIGHbindings/python/fdb/__init__.py0documentation for this api can be found at https://apple.github.io/foundationdb/api-python.htmlSTRING
Synthetic Comment Markers2 hits · 15 pts
SeverityFileLineSnippetContext
HIGHdesign/data-distributor-internals.md191# Alternative View -- AI-generated for FDB 7.3COMMENT
HIGHdesign/AI-generated/README.md1# AI-generated FDB code overviewCOMMENT
Unused Imports9 hits · 9 pts
SeverityFileLineSnippetContext
LOWlayers/taskbucket/__init__.py26CODE
LOWcontrib/mako_ab_memtracker.py52CODE
LOW…n_profiling_analyzer/transaction_profiling_analyzer.py632CODE
LOWcontrib/TestHarness2/test_harness/run.py1CODE
LOWcontrib/TestHarness2/test_harness/config.py1CODE
LOWcontrib/TestHarness2/test_harness/results.py13CODE
LOWcontrib/TestHarness2/test_harness/summarize.py1CODE
LOWcontrib/TestHarness2/test_harness/fdb.py1CODE
LOWcontrib/TestHarness2/test_harness/joshua.py1CODE
Example Usage Blocks6 hits · 9 pts
SeverityFileLineSnippetContext
LOWfdbrpc/include/fdbrpc/FlowGrpc.h92// ## Usage:COMMENT
LOWfdbclient/tests/mocks3_fixture.sh6# Usage:COMMENT
LOWfdbbackup/tests/blob_backup_restore_test.sh16# Usage:COMMENT
LOWfdbbackup/tests/s3_backup_bulkdump_bulkload.sh42# Usage:COMMENT
LOWcontrib/metadata_audit/metadata-audit.sh8# Usage:COMMENT
LOWcontrib/stacktrace/stacktrace.amalgamation.cpp246// Example usage:COMMENT
Modern AI Meta-Vocabulary3 hits · 7 pts
SeverityFileLineSnippetContext
MEDIUMdesign/data-distributor-internals.md869coordinated phases. The [`moveKeys()`](https://github.com/apple/foundationdb/blob/release-7.3/fdbserver/MoveKeys.actor.cCODE
MEDIUMdesign/data-distributor-internals.md1045Wrapping the protocol above, [`moveKeys()`](https://github.com/apple/foundationdb/blob/release-7.3/fdbserver/MoveKeys.acCODE
MEDIUMcontrib/Joshua/scripts/correctnessTest.sh26# It handles test orchestration, cleanup, and environment setup for runningCOMMENT
Modern Structural Boilerplate7 hits · 7 pts
SeverityFileLineSnippetContext
LOWcontrib/joshua_logtool.py31logger = logging.getLogger(__name__)CODE
LOWcontrib/local_cluster/local_cluster.py16logger = logging.getLogger(__name__)CODE
LOWcontrib/local_cluster/lib/work_directory.py12logger = logging.getLogger(__name__)CODE
LOWcontrib/local_cluster/lib/fdb_process.py14logger = logging.getLogger(__name__)CODE
LOWcontrib/local_cluster/lib/local_cluster.py12logger = logging.getLogger(__name__)CODE
LOWcontrib/local_cluster/lib/process.py8logger = logging.getLogger(__name__)CODE
LOWcontrib/local_cluster/lib/cluster_file.py9logger = logging.getLogger(__name__)CODE
TODO Padding4 hits · 6 pts
SeverityFileLineSnippetContext
LOWfdbclient/include/fdbclient/SpecialKeySpace.h42 // TODO: implement the range reading in a loop so that the underlying implementationCOMMENT
LOWfdbmonitor/fdbmonitor_lib.cpp423 // TODO: implement for non-linuxCOMMENT
LOWfdbserver/storageserver/storageserver.cpp2835 // TODO: Handle errors more gracefully.COMMENT
LOWflow/flow.cpp355 // TODO: implement ifdef branch for 3.x using provider APICOMMENT
Fake / Example Data3 hits · 3 pts
SeverityFileLineSnippetContext
LOWdocumentation/CMakeLists.txt93 set(username "dummy_user")CODE
LOWdocumentation/CMakeLists.txt99 set(username "dummy_user")CODE
LOWbindings/go/godoc-resources/godocs.js48 search.val(search.attr('placeholder'));CODE
AI Structural Patterns2 hits · 2 pts
SeverityFileLineSnippetContext
LOWtests/TestRunner/fdb_test_runner/local_cluster.py139CODE
LOWcontrib/TestHarness2/test_harness/summarize.py315CODE
Slop Phrases1 hit · 2 pts
SeverityFileLineSnippetContext
LOWfdbrpc/FlowTransport.cpp2657 // with a few reliable ones. Don't forget to delref the new PacketBuffers since they are unsent.COMMENT
Overly Generic Function Names1 hit · 1 pts
SeverityFileLineSnippetContext
LOWlayers/taskbucket/__init__.py419 def perform_action(self, tr, taskDict):CODE