Repository Analysis

apple/foundationdb

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

4.0 Likely human-written View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of apple/foundationdb, a C++ project with 16,505 GitHub stars. SynthScan v2.0 examined 696,831 lines of code across 2235 source files, recording 2162 pattern matches distributed across 24 syntactic categories. The overall adjusted score of 4.0 places this repository in the Likely human-written band.

The scanner applied 160+ deterministic lexical heuristics, multi-line block detectors, abstract syntax tree depth profilers, and a cross-file Jaccard similarity matrix to construct a statistically normalised synthetic code estimate. All matches are individually weighted by severity coefficient and contextual multiplier before summation, and the resulting headline score is temporally discounted to account for the repository's development history relative to the commercial emergence of large language model coding tooling (November 2022 onward).

4.0
Adjusted Score
4.0
Raw Score
100%
Time Factor
2026-07-14
Last Push
16.5K
Stars
C++
Language
696.8K
Lines of Code
2.2K
Files
2.2K
Pattern Hits
2026-07-14
Scan Date
0.04
HC Hit Rate

What These Metrics Mean

Adjusted Score
Primary synthetic code indicator. Raw score normalised per 1,000 lines of code and multiplied by the temporal discount factor. This is the definitive comparative metric — use it to rank repositories by AI authorship density.
Raw Score
The unmodified sum of all severity-weighted, context-multiplied pattern match scores before temporal discounting. Reflects the absolute signal strength independent of when the repository was last active.
Time Factor
The temporal discount multiplier (0–100%) applied to the raw score. Repositories last updated before ChatGPT's launch (Nov 2022) receive a 5% factor. Full signal is only assigned to repositories active in the post-adoption era (Jan 2024+).
Pattern Hits
Total count of individual pattern matches across all files and categories. A high hit count with a low score may indicate a very large codebase with isolated AI snippets; a low count with a high score indicates dense, concentrated AI signatures.
HC Hit Rate
High+Critical pattern hits per file, averaged across the repository. This orthogonal signal catches repositories where a few files are densely packed with high-severity AI tells — a strong indicator even when the normalised score appears moderate due to codebase size.
Lines of Code / Files
Total lines and files analysed. The scanner examines 94 file extensions. These denominators are used to normalise the score, enabling fair comparison between repositories of vastly different sizes.

Score History

This chart maps the temporal evolution of the adjusted synthetic code score across successive scan runs. An upward trajectory indicates ongoing incorporation of AI-generated code or expanding LLM-assisted scaffolding; a stable or declining trajectory may reflect active human refactoring, code removal, or the adoption of stricter authorship policies. The dashed secondary line (right axis) independently tracks total raw pattern hit count, which can diverge from the normalised score when codebase size changes significantly between scans.

Severity Breakdown

Classifies detected patterns by their diagnostic confidence and structural impact. CRITICAL patterns (coefficient 10) represent definitive synthetic signatures — hallucinated imports, explicit LLM attribution metadata — virtually never produced by human authors. HIGH (5) indicates strong structural tells such as cross-file repetition or cross-linguistic idioms. MEDIUM (2) covers recognisable conversational padding and AI-specific vocabulary. LOW (1) captures subtle indicators like tautological comments and generic boilerplate that require density to carry independent signal.

CRITICAL 15HIGH 75MEDIUM 88LOW 1984

Directory Score Breakdown

This horizontal bar chart decomposes the repository's raw synthetic code score by top-level directory, allowing you to pinpoint precisely which modules or components carry the highest AI authorship density. Directories with disproportionately high scores relative to their size warrant targeted manual review: concentrated AI signatures often trace back to mass-generated configuration layers, auto-ported test suites, LLM-scaffolded boilerplate classes, or entire subsystems authored under heavy copilot assistance. Use this view to prioritise your human code-review effort.

Pattern Findings

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

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

Over-Commented Block1249 hits · 1188 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 // ... elsewhere, someone will call p.send(42)COMMENT
LOWdesign/fdb-coroutines-internals.md481 // The send fires callbacks synchronously on that call stack.)COMMENT
LOWdocumentation/tutorial/play.actor.cpp21#include "fdbclient/NativeAPI.actor.h"COMMENT
LOWdocumentation/tutorial/play_network.actor.cpp21#include "fdbclient/NativeAPI.actor.h"COMMENT
LOWdocumentation/tutorial/play_network.actor.cpp41/// Usage belowCOMMENT
LOWdocumentation/tutorial/print_in_order.actor.cpp21#include "fmt/format.h"COMMENT
LOWdocumentation/tutorial/make_h2o.actor.cpp21#include "fmt/format.h"COMMENT
LOWdocumentation/tutorial/make_h2o.actor.cpp41// this file other than main(), read the problem description above,COMMENT
LOWdocumentation/tutorial/dining_philosophers.actor.cpp21#include "fmt/format.h"COMMENT
LOWdocumentation/tutorial/tutorial.actor.cpp21COMMENT
LOWdocumentation/sphinx/conf.py1# -*- coding: utf-8 -*-COMMENT
LOWdocumentation/sphinx/conf.py81COMMENT
LOWdocumentation/sphinx/conf.py101# add_function_parentheses = TrueCOMMENT
LOWdocumentation/sphinx/conf.py141# The name of an image file (relative to this directory) to place at the topCOMMENT
LOWdocumentation/sphinx/conf.py221]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/actorFuzz.py1#COMMENT
LOWfdbrpc/Base64Decode.h21#ifndef BASE64_DECODE_HCOMMENT
1189 more matches not shown…
Cross-Language Confusion69 hits · 396 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
HIGHlayers/containers/highcontention/queue.py299 queue.push(db, 10)CODE
HIGHlayers/containers/highcontention/queue.py300 queue.push(db, 8)CODE
HIGHlayers/containers/highcontention/queue.py301 queue.push(db, 6)CODE
HIGHlayers/containers/highcontention/queue.py309 queue.push(db, 5)CODE
HIGHlayers/containers/highcontention/queue.py326 queue.push(db, i)CODE
HIGHlayers/containers/highcontention/queue.py334 queue.push(db, '%d.%d' % (id, i))CODE
HIGHbindings/python/tests/tester.py203 inst.push(op_tuple[1])CODE
HIGHbindings/python/tests/tester.py205 inst.stack.push(*self.stack[0])CODE
HIGHbindings/python/tests/tester.py215 inst.push(a - b)CODE
HIGHbindings/python/tests/tester.py218 inst.push(a + b)CODE
HIGHbindings/python/tests/tester.py221 inst.stack.push(old_idx, item)CODE
HIGHbindings/python/tests/tester.py227 inst.push(inst.tr.on_error(inst.pop()))CODE
HIGHbindings/python/tests/tester.py239 inst.push(b"RESULT_NOT_PRESENT")CODE
HIGHbindings/python/tests/tester.py241 inst.push(f)CODE
HIGHbindings/python/tests/tester.py245 inst.push(b"GOT_ESTIMATED_RANGE_SIZE")CODE
HIGHbindings/python/tests/tester.py249 inst.push(b"GOT_RANGE_SPLIT_POINTS")CODE
HIGHbindings/python/tests/tester.py254 inst.push(result)CODE
HIGHbindings/python/tests/tester.py256 inst.push(prefix)CODE
HIGHbindings/python/tests/tester.py258 inst.push(strinc(prefix))CODE
HIGHbindings/python/tests/tester.py350 inst.push(b"RESULT_NOT_PRESENT")CODE
HIGHbindings/python/tests/tester.py354 inst.push(b"RESULT_NOT_PRESENT")CODE
HIGHbindings/python/tests/tester.py357 inst.push(b"SET_CONFLICT_RANGE")CODE
HIGHbindings/python/tests/tester.py360 inst.push(b"SET_CONFLICT_RANGE")CODE
HIGHbindings/python/tests/tester.py363 inst.push(b"SET_CONFLICT_KEY")CODE
HIGHbindings/python/tests/tester.py366 inst.push(b"SET_CONFLICT_KEY")CODE
HIGHbindings/python/tests/tester.py370 inst.push(inst.tr.commit())CODE
HIGHbindings/python/tests/tester.py377 inst.push(b"GOT_COMMITTED_VERSION")CODE
HIGHbindings/python/tests/tester.py380 inst.push(b"GOT_APPROXIMATE_SIZE")CODE
HIGHbindings/python/tests/tester.py382 inst.push(inst.tr.get_versionstamp())CODE
HIGHbindings/python/tests/tester.py386 inst.push(fdb.tuple.pack(tuple(items)))CODE
HIGHbindings/python/tests/tester.py395 inst.push(b"ERROR: NONE")CODE
HIGHbindings/python/tests/tester.py401 inst.push(b"OK")CODE
HIGHbindings/python/tests/tester.py402 inst.push(packed)CODE
HIGHbindings/python/tests/tester.py405 inst.push(b"ERROR: NONE")CODE
HIGHbindings/python/tests/tester.py407 inst.push(b"ERROR: MULTIPLE")CODE
HIGHbindings/python/tests/tester.py410 inst.push(fdb.tuple.pack((i,)))CODE
HIGHbindings/python/tests/tester.py417 inst.push(fdb.tuple.pack(item))CODE
HIGHbindings/python/tests/tester.py422 inst.push(r.start)CODE
HIGHbindings/python/tests/tester.py423 inst.push(r.stop)CODE
HIGHbindings/python/tests/tester.py434 inst.push(fdb.tuple.SingleFloat(f))CODE
HIGHbindings/python/tests/tester.py438 inst.push(d)CODE
HIGHbindings/python/tests/tester.py442 inst.push(f_bytes)CODE
HIGHbindings/python/tests/tester.py446 inst.push(d_bytes)CODE
HIGHbindings/python/tests/tester.py455 inst.push(b"WAITED_FOR_EMPTY")CODE
HIGHbindings/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
HIGHbindings/python/tests/directory_extension.py200 inst.push(1)CODE
HIGHbindings/python/tests/directory_extension.py202 inst.push(0)CODE
HIGHbindings/python/tests/directory_extension.py205 inst.push(directory.pack(key_tuple))CODE
9 more matches not shown…
Structural Annotation Overuse95 hits · 155 pts
SeverityFileLineSnippetContext
LOWfdbclient/StorageCheckpoint.cpp92 // Step 1: Calculate target size and required paddingCOMMENT
LOWfdbclient/StorageCheckpoint.cpp100 // Step 2: Build the footerCOMMENT
LOWfdbclient/StorageCheckpoint.cpp108 // Step 3: Assemble the final serialized checkpointCOMMENT
LOWfdbclient/StorageCheckpoint.cpp134 // Step 1: Extract footer and parse padding sizeCOMMENT
LOWfdbclient/StorageCheckpoint.cpp145 // Step 2: Calculate original payload sizeCOMMENT
LOWfdbclient/StorageCheckpoint.cpp150 // Step 3: Extract and return the original payloadCOMMENT
LOWtests/TestRunner/fdb_test_runner/local_cluster.py599 # Step 1: add new serversSTRING
LOWtests/TestRunner/fdb_test_runner/local_cluster.py616 # Step 2: change coordinatorsSTRING
LOWtests/TestRunner/fdb_test_runner/local_cluster.py629 # Step 3: exclude old servers from the cluster, i.e. move out their dataSTRING
LOWtests/TestRunner/fdb_test_runner/local_cluster.py638 # Step 4: remove the old serversSTRING
LOWfdbbackup/tests/s3_backup_bulkdump_bulkload.sh268 # Step 1: Restore with prefix using traditional rangefile mode (keep the data)COMMENT
LOWfdbbackup/tests/s3_backup_bulkdump_bulkload.sh276 # Step 2: Clear normalKeys (original data)COMMENT
LOWfdbbackup/tests/s3_backup_bulkdump_bulkload.sh283 # Step 3: Restore to normalKeysCOMMENT
LOWfdbbackup/tests/s3_backup_bulkdump_bulkload.sh301 # Step 4: Run audit to compare BulkLoad-restored (normalKeys) vs traditional-restored (prefix)COMMENT
LOWfdbbackup/tests/s3_backup_bulkdump_bulkload.sh310 # Step 5: Clean up the prefixed validation dataCOMMENT
LOWcontrib/joshua_logtool.py123 # Step 1: Find log filesCOMMENT
LOWcontrib/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
LOWcontrib/metadata_audit/check_krm_corruption.py947 # Step 1: Get serverList entries from FDBCOMMENT
LOWcontrib/metadata_audit/check_krm_corruption.py1034 # Step 3: CompareCOMMENT
LOWcontrib/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.md12### Step 1: Generate TLS CertificatesCOMMENT
LOWcontrib/mtlsbenchmark/readme.md23### Step 2: Configure Test in ScriptsCOMMENT
LOWcontrib/mtlsbenchmark/readme.md46### Step 3: Start the Server and Client(s)COMMENT
LOWfdbserver/storageserver/storageserver.actor.cpp7688 // Step 1: Download files to localRootCOMMENT
LOWfdbserver/storageserver/storageserver.actor.cpp7728 // Step 2: Do byte sampling locally if the remote byte sampling file is not valid nor existingCOMMENT
LOWfdbserver/storageserver/storageserver.actor.cpp7751 // Step 3: Build LocalRecord used by ShardedRocksDB KVStore when injecting dataCOMMENT
LOWfdbserver/storageserver/storageserver.actor.cpp7793 // Step 4: Update the moveInShard phaseCOMMENT
LOWfdbserver/core/BulkDumpUtil.cpp122 // Step 1: Clean up local folderCOMMENT
LOWfdbserver/core/BulkDumpUtil.cpp125 // Step 2: Dump data to fileCOMMENT
LOWfdbserver/core/BulkDumpUtil.cpp135 // Step 3: Dump sample to fileCOMMENT
LOWfdbserver/core/BulkDumpUtil.cpp144 // Step 4: Generate manifest fileCOMMENT
LOWfdbserver/core/BackupPartitionMap.cpp50 // Step 1: Collect shard sizesCOMMENT
LOWfdbserver/core/BackupPartitionMap.cpp76 // Step 2: Partition the shardsCOMMENT
LOWfdbserver/core/BulkLoadUtil.cpp369 // Step 1: Generate local file set based on remote file set by replacing the remote root to the local root.COMMENT
LOWfdbserver/core/BulkLoadUtil.cpp377 // Step 2: Download remote file set to local folderCOMMENT
LOWfdbserver/datadistributor/DDTeamCollection.actor.cpp5184 // Step 1: Create machineLocalityMap which will be used in building machine teamCOMMENT
LOWfdbserver/datadistributor/DDTeamCollection.actor.cpp5189 // Step 2: Get least used machines from which we choose machines as a machine teamCOMMENT
LOWfdbserver/datadistributor/DDTeamCollection.actor.cpp245 // Step 1: find all valid teams from team collectionCOMMENT
LOWfdbserver/datadistributor/DDTeamCollection.actor.cpp288 // Step 2: Conduct Power-of-D-Choice to select a teamCOMMENT
LOWfdbserver/datadistributor/DDTeamCollection.actor.cpp5224 // Step 3: Create a representative process for each machine.COMMENT
LOWfdbserver/datadistributor/DDTeamCollection.actor.cpp5248 // Step 4: Reuse Policy's selectReplicas() to create team for the representative process.COMMENT
LOWfdbserver/datadistributor/DDTeamCollection.actor.cpp5295 // Step 5: Restore machine from its representative process team and get the machine teamCOMMENT
LOWfdbserver/datadistributor/DDTeamCollection.actor.cpp5645 // Step 1: Choose 1 least used server and then choose 1 least used machine team from the serverCOMMENT
LOWfdbserver/datadistributor/DDTeamCollection.actor.cpp5667 // Step 2: Randomly pick 1 server from each machine in the chosen machine team to form a server teamCOMMENT
LOWfdbserver/datadistributor/DDTeamCollection.actor.cpp5731 // Step 4: Add the server teamCOMMENT
LOWfdbserver/datadistributor/DataDistribution.cpp1355 // Step 2: submit the task to in-memory task map, which (1) turns off shard boundary change;COMMENT
LOWfdbserver/datadistributor/DataDistribution.cpp1361 // Step 3: create bulk load shard and trigger data move and wait for task completionCOMMENT
35 more matches not shown…
Excessive Try-Catch Wrapping146 hits · 154 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
LOWtests/python_tests/python_correctness.py229 except Exception:CODE
LOWtests/python_tests/python_correctness.py239 except Exception:CODE
LOWtests/python_tests/python_correctness.py246 except Exception:CODE
LOWtests/python_tests/python_correctness.py256 except Exception:CODE
LOWtests/python_tests/python_correctness.py264 except Exception:CODE
LOWtests/python_tests/python_correctness.py271 except Exception:CODE
LOWtests/python_tests/python_correctness.py278 except Exception:CODE
LOWtests/python_tests/python_correctness.py287 except Exception:CODE
LOWtests/python_tests/python_correctness.py294 except Exception:CODE
LOWtests/python_tests/python_correctness.py303 except Exception:CODE
LOWtests/python_tests/python_correctness.py310 except Exception:CODE
LOWtests/python_tests/python_correctness.py317 except Exception:CODE
LOWtests/python_tests/python_correctness.py326 except Exception:CODE
LOWtests/python_tests/python_correctness.py333 except Exception:CODE
LOWtests/python_tests/python_correctness.py362 except Exception:CODE
LOWtests/python_tests/python_correctness.py369 except Exception:CODE
LOWtests/python_tests/python_correctness.py376 except Exception:CODE
LOWtests/python_tests/python_correctness.py436 except Exception:CODE
LOWtests/python_tests/python_correctness.py443 except Exception:CODE
LOWtests/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
LOWcontrib/joshua_logtool.py217 except Exception as e:CODE
LOWcontrib/joshua_logtool.py269 except Exception as e:CODE
86 more matches not shown…
Hyper-Verbose Identifiers182 hits · 154 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
LOWlayers/pubsub/pubsub_orig.py72def key_for_feed_subscriber_count(feed):CODE
LOWlayers/pubsub/pubsub_orig.py76def key_for_feed_message_count(feed):CODE
LOWlayers/pubsub/pubsub_orig.py84def prefix_for_feed_subscribers(feed):CODE
LOWlayers/pubsub/pubsub_orig.py104def key_for_inbox_subscription_count(inbox):CODE
LOWlayers/pubsub/pubsub_orig.py108def key_for_inbox_subscription(inbox, feed):CODE
LOWlayers/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
LOWlayers/containers/highcontention/queue.py321def queue_single_client_example(db):CODE
LOWlayers/containers/highcontention/queue.py347def queue_multi_client_example(db):CODE
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.py556 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
LOWtests/python_tests/ryw_benchmark.py140 def run_single_clear_get_range(self, tr, count=100):CODE
LOWtests/python_tests/ryw_benchmark.py150 def run_clear_range_get_range(self, tr, count=100):CODE
LOWtests/python_tests/ryw_benchmark.py160 def run_interleaved_sets_gets(self, tr, count=10000):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
LOW…n_profiling_analyzer/transaction_profiling_analyzer.py523 def build_client_transaction_info(v):CODE
LOW…iling_analyzer/transaction_profiling_analyzer_tests.py36 def test_two_non_overlapping_desc(self):CODE
LOW…iling_analyzer/transaction_profiling_analyzer_tests.py42 def test_two_non_overlapping_asc(self):CODE
LOWcontrib/local_cluster/binding_test.py279def _log_cluster_lines_with_severity(CODE
122 more matches not shown…
Verbosity Indicators92 hits · 150 pts
SeverityFileLineSnippetContext
LOWfdbclient/StorageCheckpoint.cpp92 // Step 1: Calculate target size and required paddingCOMMENT
LOWfdbclient/StorageCheckpoint.cpp100 // Step 2: Build the footerCOMMENT
LOWfdbclient/StorageCheckpoint.cpp108 // Step 3: Assemble the final serialized checkpointCOMMENT
LOWfdbclient/StorageCheckpoint.cpp134 // Step 1: Extract footer and parse padding sizeCOMMENT
LOWfdbclient/StorageCheckpoint.cpp145 // Step 2: Calculate original payload sizeCOMMENT
LOWfdbclient/StorageCheckpoint.cpp150 // Step 3: Extract and return the original payloadCOMMENT
LOWtests/TestRunner/fdb_test_runner/local_cluster.py599 # Step 1: add new serversSTRING
LOWtests/TestRunner/fdb_test_runner/local_cluster.py616 # Step 2: change coordinatorsSTRING
LOWtests/TestRunner/fdb_test_runner/local_cluster.py629 # Step 3: exclude old servers from the cluster, i.e. move out their dataSTRING
LOWtests/TestRunner/fdb_test_runner/local_cluster.py638 # Step 4: remove the old serversSTRING
LOWfdbbackup/tests/s3_backup_bulkdump_bulkload.sh268 # Step 1: Restore with prefix using traditional rangefile mode (keep the data)COMMENT
LOWfdbbackup/tests/s3_backup_bulkdump_bulkload.sh276 # Step 2: Clear normalKeys (original data)COMMENT
LOWfdbbackup/tests/s3_backup_bulkdump_bulkload.sh283 # Step 3: Restore to normalKeysCOMMENT
LOWfdbbackup/tests/s3_backup_bulkdump_bulkload.sh301 # Step 4: Run audit to compare BulkLoad-restored (normalKeys) vs traditional-restored (prefix)COMMENT
LOWfdbbackup/tests/s3_backup_bulkdump_bulkload.sh310 # Step 5: Clean up the prefixed validation dataCOMMENT
LOWcontrib/joshua_logtool.py123 # Step 1: Find log filesCOMMENT
LOWcontrib/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/metadata_audit/check_krm_corruption.py947 # Step 1: Get serverList entries from FDBCOMMENT
LOWcontrib/metadata_audit/check_krm_corruption.py1034 # Step 3: CompareCOMMENT
LOWcontrib/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.actor.cpp7688 // Step 1: Download files to localRootCOMMENT
LOWfdbserver/storageserver/storageserver.actor.cpp7728 // Step 2: Do byte sampling locally if the remote byte sampling file is not valid nor existingCOMMENT
LOWfdbserver/storageserver/storageserver.actor.cpp7751 // Step 3: Build LocalRecord used by ShardedRocksDB KVStore when injecting dataCOMMENT
LOWfdbserver/storageserver/storageserver.actor.cpp7793 // Step 4: Update the moveInShard phaseCOMMENT
LOWfdbserver/core/BulkDumpUtil.cpp122 // Step 1: Clean up local folderCOMMENT
LOWfdbserver/core/BulkDumpUtil.cpp125 // Step 2: Dump data to fileCOMMENT
LOWfdbserver/core/BulkDumpUtil.cpp135 // Step 3: Dump sample to fileCOMMENT
LOWfdbserver/core/BulkDumpUtil.cpp144 // Step 4: Generate manifest fileCOMMENT
LOWfdbserver/core/BackupPartitionMap.cpp50 // Step 1: Collect shard sizesCOMMENT
LOWfdbserver/core/BackupPartitionMap.cpp76 // Step 2: Partition the shardsCOMMENT
LOWfdbserver/core/BulkLoadUtil.cpp369 // Step 1: Generate local file set based on remote file set by replacing the remote root to the local root.COMMENT
LOWfdbserver/core/BulkLoadUtil.cpp377 // Step 2: Download remote file set to local folderCOMMENT
LOWfdbserver/datadistributor/DDTeamCollection.actor.cpp5184 // Step 1: Create machineLocalityMap which will be used in building machine teamCOMMENT
LOWfdbserver/datadistributor/DDTeamCollection.actor.cpp5189 // Step 2: Get least used machines from which we choose machines as a machine teamCOMMENT
LOWfdbserver/datadistributor/DDTeamCollection.actor.cpp245 // Step 1: find all valid teams from team collectionCOMMENT
LOWfdbserver/datadistributor/DDTeamCollection.actor.cpp288 // Step 2: Conduct Power-of-D-Choice to select a teamCOMMENT
LOWfdbserver/datadistributor/DDTeamCollection.actor.cpp5224 // Step 3: Create a representative process for each machine.COMMENT
LOWfdbserver/datadistributor/DDTeamCollection.actor.cpp5248 // Step 4: Reuse Policy's selectReplicas() to create team for the representative process.COMMENT
LOWfdbserver/datadistributor/DDTeamCollection.actor.cpp5295 // Step 5: Restore machine from its representative process team and get the machine teamCOMMENT
LOWfdbserver/datadistributor/DDTeamCollection.actor.cpp5645 // Step 1: Choose 1 least used server and then choose 1 least used machine team from the serverCOMMENT
LOWfdbserver/datadistributor/DDTeamCollection.actor.cpp5667 // Step 2: Randomly pick 1 server from each machine in the chosen machine team to form a server teamCOMMENT
LOWfdbserver/datadistributor/DDTeamCollection.actor.cpp5731 // Step 4: Add the server teamCOMMENT
LOWfdbserver/datadistributor/DataDistribution.cpp1355 // Step 2: submit the task to in-memory task map, which (1) turns off shard boundary change;COMMENT
LOWfdbserver/datadistributor/DataDistribution.cpp1361 // Step 3: create bulk load shard and trigger data move and wait for task completionCOMMENT
LOWfdbserver/datadistributor/DataDistribution.cpp1806 // Step 1: Get manifest metadata by downloading the manifest fileCOMMENT
LOWfdbserver/datadistributor/DataDistribution.cpp1811 // Step 2: Check if the task has been createdCOMMENT
LOWfdbserver/datadistributor/DataDistribution.cpp1820 // Step 3: Trigger bulkload task which is handled by bulkload task engineCOMMENT
LOWfdbserver/datadistributor/DataDistribution.cpp1341 // Step 1: persist bulk load task phase as triggeredCOMMENT
32 more matches not shown…
Hallucination Indicators15 hits · 150 pts
SeverityFileLineSnippetContext
CRITICALfdbserver/clustercontroller/ClusterController.h303 .detail("NotExcludedMachine", !excludedMachines.contains(it.second.details.interf.locality.zoneId()))CODE
CRITICALfdbserver/clustercontroller/ClusterController.h305 (includeDCs.empty() || includeDCs.contains(it.second.details.interf.locality.dcId())))CODE
CRITICALfdbserver/clustercontroller/ClusterController.h316 !excludedMachines.contains(it.second.details.interf.locality.zoneId()) &&CODE
CRITICALfdbserver/clustercontroller/ClusterController.h317 (includeDCs.empty() || includeDCs.contains(it.second.details.interf.locality.dcId())) &&CODE
CRITICALfdbserver/clustercontroller/ClusterController.h334 !excludedMachines.contains(it.second.details.interf.locality.zoneId()) &&CODE
CRITICALfdbserver/clustercontroller/ClusterController.h335 (includeDCs.empty() || includeDCs.contains(it.second.details.interf.locality.dcId())) &&CODE
CRITICALfdbserver/clustercontroller/ClusterController.h366 (!dcId.present() || it.second.details.interf.locality.dcId() == dcId.get())) {CODE
CRITICALfdbserver/clustercontroller/ClusterController.h1455 it.second.details.interf.locality.dcId() != clusterControllerDcId) {CODE
CRITICALfdbserver/clustercontroller/ClusterController.h1479 it.second.details.interf.locality.dcId() == dcId) {CODE
CRITICALfdbserver/clustercontroller/ClusterController.h1523 it.second.details.interf.locality.dcId() == dcId &&CODE
CRITICALfdbserver/clustercontroller/ClusterController.h1659 result.insert(it.second.details.interf.locality.dcId());CODE
CRITICALfdbserver/clustercontroller/ClusterController.actor.cpp2360 it.second.details.interf.locality.dcId(), self->changingDcIds.get().second.get());CODE
CRITICALfdbserver/clustercontroller/ClusterController.actor.cpp2420 it.second.details.interf.locality.dcId(),CODE
CRITICALfdbserver/clustercontroller/ClusterController.actor.cpp3037 req.broadcastInfo.push_back(it.second.details.interf.updateServerDBInfo.getEndpoint());CODE
CRITICALfdbserver/clustercontroller/ClusterController.actor.cpp3363 it.second.details.interf.coordinationPing.send(message);CODE
Deep Nesting141 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/actorFuzz.py144CODE
LOWfdbclient/vexillographer/vexillographer.py176CODE
LOWtests/TestRunner/fdb_test_runner/tmp_cluster.py70CODE
LOWtests/TestRunner/fdb_test_runner/local_cluster.py701CODE
LOWcontrib/ctest_to_joshua.py32CODE
LOWcontrib/commit_debug.py103CODE
LOWcontrib/commit_debug.py62CODE
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
LOWcontrib/metadata_audit/check_krm_corruption.py3614CODE
LOWcontrib/metadata_audit/check_krm_corruption.py3894CODE
LOWcontrib/metadata_audit/check_krm_corruption.py4231CODE
81 more matches not shown…
Redundant / Tautological Comments57 hits · 74 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
LOWfdbclient/tests/aws_fixture.sh153# Check if curl is installedCOMMENT
LOWfdbclient/tests/aws_fixture.sh158# Check if curl is installedCOMMENT
LOWfdbclient/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.py567 # 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
LOWcontrib/metadata_audit/check_krm_corruption.py1042 # Check if mismatch is due to UID length difference (8 vs 16 bytes)COMMENT
LOWcontrib/metadata_audit/check_krm_corruption.py1047 # Print resultsCOMMENT
LOWcontrib/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.sh276# Check if stdout file is empty and generate fallback if neededCOMMENT
LOWcontrib/Joshua/scripts/correctnessTest.sh295 # 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
AI Slop Vocabulary18 hits · 48 pts
SeverityFileLineSnippetContext
MEDIUMfdbrpc/FlowTransport.cpp77// 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
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
MEDIUMcontrib/rapidxml/manual.html90 Note that RapidXml performs no decoding - strings returned by name() and value() functions will contain text encoded usCODE
MEDIUMcontrib/rapidxml/manual.html90 Note that RapidXml performs no decoding - strings returned by name() and value() functions will contain text encoded usCODE
MEDIUMcontrib/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.actor.cpp2424 // utilize the disk of other active SSCOMMENT
MEDIUMfdbserver/workloads/S3ClientWorkload.cpp112 // Uses S3BlobStoreEndpoint::fromString() for robust URL parsing (similar toCOMMENT
MEDIUMflow/include/flow/ThreadHelper.h921// 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
Decorative Section Separators13 hits · 42 pts
SeverityFileLineSnippetContext
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
MEDIUMbindings/c/test/fdb_c_client_config_tests.py180 # ----------------------------COMMENT
MEDIUMbindings/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.py817 # ---------------COMMENT
MEDIUMbindings/c/test/fdb_c_client_config_tests.py819 # ---------------COMMENT
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.py1199CODE
MEDIUMbindings/python/fdb/impl.py1206CODE
MEDIUMbindings/python/fdb/impl.py1240CODE
MEDIUMbindings/python/fdb/impl.py1248CODE
MEDIUMbindings/python/fdb/impl.py1256CODE
MEDIUMbindings/python/fdb/impl.py1264CODE
MEDIUMbindings/python/fdb/impl.py1272CODE
MEDIUMbindings/python/fdb/impl.py1280CODE
MEDIUMbindings/python/fdb/impl.py1288CODE
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 Imports13 hits · 13 pts
SeverityFileLineSnippetContext
LOWlayers/taskbucket/__init__.py26CODE
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
LOWflow/actorcompiler_py/parse_tree.py1CODE
LOWflow/actorcompiler_py/actor_compiler.py1CODE
LOWflow/actorcompiler_py/actor_parser.py1CODE
LOWflow/actorcompiler_py/errors.py1CODE
LOWflow/actorcompiler_py/__main__.py5CODE
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 Structural Boilerplate9 hits · 9 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
LOWflow/actorcompiler_py/parse_tree.py220 def set_uncancellable(self) -> None:CODE
LOWflow/actorcompiler_py/actor_compiler.py51 def set_overload(self, overload: "Function") -> None:CODE
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.md1043Wrapping 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
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.actor.cpp2505 // 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.txt83 set(username "dummy_user")CODE
LOWdocumentation/CMakeLists.txt89 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.cpp2122 // 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