Repository Analysis

microsoft/garnet

Garnet is a remote cache-store from Microsoft Research that offers strong performance (throughput and latency), scalability, storage, recovery, cluster sharding, key migration, and replication features. Garnet can work with existing Redis clients.

4.1 Likely human-written View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of microsoft/garnet, a C# project with 11,897 GitHub stars. SynthScan v2.0 examined 433,588 lines of code across 1511 source files, recording 1590 pattern matches distributed across 13 syntactic categories. The overall adjusted score of 4.1 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.1
Adjusted Score
4.1
Raw Score
100%
Time Factor
2026-07-14
Last Push
11.9K
Stars
C#
Language
433.6K
Lines of Code
1.5K
Files
1.6K
Pattern Hits
2026-07-14
Scan Date
0.01
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 8HIGH 0MEDIUM 46LOW 1536

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 1590 distinct pattern matches across 13 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 Block1385 hits · 1327 pts
SeverityFileLineSnippetContext
LOWbenchmark/BDN.benchmark/NamespaceTypeOrderer.cs1// Copyright (c) Microsoft Corporation.COMMENT
LOW…nchmark/Cluster/ConsistentRead/ConsistentReadParams.cs1// Copyright (c) Microsoft Corporation.COMMENT
LOWbenchmark/BDN.benchmark/Operations/ScriptOperations.cs181 /// Batch size per method invocationCOMMENT
LOWbenchmark/BDN.benchmark/Operations/OperationParams.cs1// Copyright (c) Microsoft Corporation.COMMENT
LOWbenchmark/BDN.benchmark/Operations/OperationsBase.cs61COMMENT
LOWbenchmark/BDN.benchmark/Operations/OperationsBase.cs101 {COMMENT
LOW…chmark/BDN.benchmark/Embedded/EmbeddedNetworkSender.cs21 /// <summary>COMMENT
LOWbenchmark/Resp.benchmark/OfflineBench/RespPerfBench.cs261 swatch.Stop();COMMENT
LOW…k/Resp.benchmark/OfflineBench/AOFBench/AofBenchType.cs1// Copyright (c) Microsoft Corporation.COMMENT
LOW…k/Resp.benchmark/OfflineBench/AOFBench/AofBenchType.cs21 /// Simulate AOF replay (skipping resp parsing)COMMENT
LOW….benchmark/OfflineBench/AOFBench/TsavoriteExtension.cs21 HeaderSizeField = type.GetField("headerSize", flags);COMMENT
LOWmetrics/HdrHistogram/HistogramExtensions.cs61 /// <summary>COMMENT
LOWmetrics/HdrHistogram/HistogramExtensions.cs81 targetHistogram.Reset();COMMENT
LOWmetrics/HdrHistogram/HistogramExtensions.cs101 public static IEnumerable<HistogramIterationValue> Percentiles(this HistogramBase histogram, int percentileTicksCOMMENT
LOWmetrics/HdrHistogram/HistogramExtensions.cs121 /// seconds or other appropriate unit.COMMENT
LOWmetrics/HdrHistogram/HistogramExtensions.cs141 /// {COMMENT
LOWmetrics/HdrHistogram/HistogramExtensions.cs161 /// Records the elapsed time till the returned token is disposed.COMMENT
LOWmetrics/HdrHistogram/HistogramBase.cs21 /// Base class for High Dynamic Range (HDR) HistogramsCOMMENT
LOWmetrics/HdrHistogram/HistogramBase.cs61 public long HighestTrackableValue { get; }COMMENT
LOWmetrics/HdrHistogram/HistogramBase.cs101COMMENT
LOWmetrics/HdrHistogram/HistogramBase.cs121 /// </summary>COMMENT
LOWmetrics/HdrHistogram/HistogramBase.cs141 /// </param>COMMENT
LOWmetrics/HdrHistogram/HistogramBase.cs161 /// Construct a histogram given the lowest and highest values to be tracked and a number of significant decimal COMMENT
LOWmetrics/HdrHistogram/HistogramBase.cs221 /// <summary>COMMENT
LOWmetrics/HdrHistogram/HistogramBase.cs241 var subBucketIndex = GetSubBucketIndex(value, bucketIndex);COMMENT
LOWmetrics/HdrHistogram/HistogramBase.cs341 /// Get a value that lies in the middle (rounded up) of the range of values equivalent the given value.COMMENT
LOWmetrics/HdrHistogram/HistogramBase.cs481COMMENT
LOWmetrics/HdrHistogram/HistogramBase.cs501COMMENT
LOWmetrics/HdrHistogram/IRecorder.cs1namespace HdrHistogramCOMMENT
LOWmetrics/HdrHistogram/IRecorder.cs21 void RecordValueWithCount(long value, long count);COMMENT
LOWmetrics/HdrHistogram/LongHistogram.cs21 /// over value quantization behavior across the value range and the subsequent value resolution at any given level.COMMENT
LOWmetrics/HdrHistogram/LongHistogram.cs41 /// The histogram will be constructed to implicitly track(distinguish from 0) values as low as 1.COMMENT
LOWmetrics/HdrHistogram/LongHistogram.cs61 /// </param>COMMENT
LOWmetrics/HdrHistogram/LongHistogram.cs81 /// </param>COMMENT
LOWmetrics/HdrHistogram/LongHistogram.cs101 }COMMENT
LOWmetrics/HdrHistogram/LongConcurrentHistogram.cs1using System;COMMENT
LOWmetrics/HdrHistogram/LongConcurrentHistogram.cs21 {COMMENT
LOWmetrics/HdrHistogram/LongConcurrentHistogram.cs41 : base(lowestTrackableValue, highestTrackableValue, numberOfSignificantValueDigits)COMMENT
LOWmetrics/HdrHistogram/LongConcurrentHistogram.cs121 }COMMENT
LOWmetrics/HdrHistogram/LongConcurrentHistogram.cs141 // Debug.Assert(CountsArrayLength == _inactiveCounts.Length);COMMENT
LOWmetrics/HdrHistogram/Utilities/AtomicLongArray.cs61 // The guarantee that the lazySet provides is that the data will be made visible in the correct order. I.e. COMMENT
LOWmetrics/HdrHistogram/Utilities/AtomicLongArray.cs81 // From http://msdn.microsoft.com/en-us/magazine/jj863136.aspxCOMMENT
LOWmetrics/HdrHistogram/Utilities/WriterReaderPhaser.cs21 /// While a<see cref="WriterReaderPhaser"/> can be useful in multiple scenarios, a specific and common use case is tCOMMENT
LOWmetrics/HdrHistogram/Utilities/WriterReaderPhaser.cs61 }COMMENT
LOWmetrics/HdrHistogram/Utilities/WriterReaderPhaser.cs81 /// </para>COMMENT
LOWmetrics/HdrHistogram/Utilities/WriterReaderPhaser.cs121 /// Exit from a critical section containing a read operation(relinquishes mutual exclusion against other <see crCOMMENT
LOWmetrics/HdrHistogram/Utilities/WriterReaderPhaser.cs201 /// <para>COMMENT
LOW…rics/HdrHistogram/Iteration/HistogramIterationValue.cs21 public long ValueIteratedTo { get; private set; }COMMENT
LOW…rics/HdrHistogram/Iteration/HistogramIterationValue.cs41 public long TotalCountToThisValue { get; private set; }COMMENT
LOW…er.migrate.rangeindex/ClusterRangeIndexMigrateTests.cs661COMMENT
LOW…er.migrate.rangeindex/ClusterRangeIndexMigrateTests.cs1341 primary1, "RI.SET", [riKey, field, value], flags: CommandFlags.NoRedirect);COMMENT
LOW…eplicationTests/ClusterReplicationDisklessSyncTests.cs181 // Re-attach sync sessionCOMMENT
LOW…rnet.test.cluster.migrate/RedirectTests/BaseCommand.cs41 public abstract bool ArrayResponse { get; }COMMENT
LOW…rnet.test.cluster.migrate/RedirectTests/BaseCommand.cs81 /// <summary>COMMENT
LOW…rnet.test.cluster.migrate/RedirectTests/BaseCommand.cs101 /// <summary>COMMENT
LOW…/cluster/Garnet.test.cluster/ClusterManagementTests.cs641 // * connected to node 3 (master <-> replica)COMMENT
LOW…/cluster/Garnet.test.cluster/ClusterManagementTests.cs1221 public async Task PrimaryUnavailableRecoveryAsync(ExceptionInjectionType faultType, bool replicaFailoverBeforeShCOMMENT
LOWtest/cluster/Garnet.test.cluster/ClientClusterConfig.cs161 /// Gets the endpoint of the current node.COMMENT
LOWtest/cluster/Garnet.test.cluster/ClientClusterConfig.cs181 /// <summary>COMMENT
LOWtest/cluster/Garnet.test.cluster/ClientClusterConfig.cs301 // 3. <flags> //TODO: hostnameCOMMENT
1325 more matches not shown…
Decorative Section Separators42 hits · 132 pts
SeverityFileLineSnippetContext
MEDIUM…standalone/Garnet.test.vectorset/RespVectorSetTests.cs1032 // ── Section A: compile-time errors ─────────────────────────────────COMMENT
MEDIUM…standalone/Garnet.test.vectorset/RespVectorSetTests.cs1066 // ── Section B: documented "skip silently" behavior ─────────────────COMMENT
MEDIUM…standalone/Garnet.test.vectorset/RespVectorSetTests.cs1169 // ── Case 9 specifically: nested .year=2020 must be invisible ──────COMMENT
MEDIUM…standalone/Garnet.test.vectorset/RespVectorSetTests.cs1186 // ── Case 3: top-level booleans coerce to 1 / 0 ────────────────────COMMENT
MEDIUM…standalone/Garnet.test.vectorset/RespVectorSetTests.cs1213 // ── Case 10: top-level string array still works with `in` ─────────COMMENT
MEDIUMtest/docker-tests/validate_docker_images.py38# ---------------------------------------------------------------------------COMMENT
MEDIUMtest/docker-tests/validate_docker_images.py40# ---------------------------------------------------------------------------COMMENT
MEDIUMtest/docker-tests/validate_docker_images.py63# ---------------------------------------------------------------------------COMMENT
MEDIUMtest/docker-tests/validate_docker_images.py65# ---------------------------------------------------------------------------COMMENT
MEDIUMtest/docker-tests/validate_docker_images.py176# ---------------------------------------------------------------------------COMMENT
MEDIUMtest/docker-tests/validate_docker_images.py178# ---------------------------------------------------------------------------COMMENT
MEDIUMtest/docker-tests/validate_docker_images.py506# ---------------------------------------------------------------------------COMMENT
MEDIUMtest/docker-tests/validate_docker_images.py508# ---------------------------------------------------------------------------COMMENT
MEDIUMlibs/server/Resp/Vector/VectorManager.cs766 // ── Inline filtered search path ─────────COMMENT
MEDIUMlibs/server/Resp/Vector/VectorManager.cs941 // ── Inline-filtered search path ──────────────────────────COMMENT
MEDIUMlibs/server/Resp/Vector/VectorFilterExpression.cs116 /// └────┴────┴────┴────────────────────────────┴───────────────────────────────────┘COMMENT
MEDIUMlibs/server/Resp/Vector/VectorFilterExpression.cs117 /// ◄─── header (8 bytes) ──────────────────────►◄─── payload (8 bytes) ───────────►COMMENT
MEDIUMlibs/server/Resp/Vector/VectorFilterExpression.cs177 // ── Union payload at offset 8 (8 bytes) ─────────────────────────COMMENT
MEDIUMlibs/server/Resp/Vector/VectorFilterExpression.cs194 // ── Flags helpers ────────────────────────────────────────────────COMMENT
MEDIUMlibs/server/Resp/Vector/VectorFilterExpression.cs209 // ── Discriminator helpers ────────────────────────────────────────COMMENT
MEDIUMlibs/server/Resp/Vector/VectorFilterExpression.cs214 // ── Factory methods ──────────────────────────────────────────────COMMENT
MEDIUMlibs/server/Resp/Vector/VectorManager.Filter.cs20 // ── Buffer size constants ────────────────────────────────────────COMMENT
MEDIUMlibs/server/Resp/Vector/VectorManager.Filter.cs41 // ──────────────── ─────── ────── ─────────────────────────────────COMMENT
MEDIUMlibs/server/Resp/Vector/VectorManager.Filter.cs134 // ── Compile ────────────────────────────────────────────────COMMENT
MEDIUMlibs/server/Resp/Vector/VectorManager.Filter.cs151 // ── Collect unique selectors ──────────────────────────────COMMENT
MEDIUMlibs/server/Resp/Vector/VectorManager.Filter.cs222 // ── Inline filter callback infrastructure ─────COMMENT
MEDIUM…/storage/Tsavorite/cs/test/test.hlog/LogRecordTests.cs276 // ── Max inline key/value size limit tests ─────────────────────────────────────COMMENT
MEDIUM…ge/Tsavorite/cs/src/core/Allocator/RecordDataHeader.cs86 // ── KeyLength field (low kKeyLengthBits bits after FillerWords) ─────────────COMMENT
MEDIUM…ge/Tsavorite/cs/src/core/Allocator/RecordDataHeader.cs92 // ── ValueLength field (low kValueLengthBits bits after KeyLength) ───────────COMMENT
MEDIUM…ge/Tsavorite/cs/src/core/Allocator/RecordDataHeader.cs102 // ── Namespace byte (byte 7 of word) ────────────────────────────────────────COMMENT
MEDIUM…ge/Tsavorite/cs/src/core/Allocator/RecordDataHeader.cs519 // ── Key and Value field info ───────────────────────────────────────────────COMMENT
MEDIUM…ge/Tsavorite/cs/src/core/Allocator/RecordDataHeader.cs53 // ── Indicator bits (bits 0-5) ──────────────────────────────────────────────COMMENT
MEDIUM…ge/Tsavorite/cs/src/core/Allocator/RecordDataHeader.cs68 // ── FillerWords field (bits 6-13, 8 bits) ──────────────────────────────────COMMENT
MEDIUM…ge/Tsavorite/cs/src/core/Allocator/RecordDataHeader.cs136 // ── Indicator-bit accessors ────────────────────────────────────────────────COMMENT
MEDIUM…ge/Tsavorite/cs/src/core/Allocator/RecordDataHeader.cs198 // ── FillerWords accessor ───────────────────────────────────────────────────COMMENT
MEDIUM…ge/Tsavorite/cs/src/core/Allocator/RecordDataHeader.cs218 // ── Optional/object size helper ────────────────────────────────────────────COMMENT
MEDIUM…ge/Tsavorite/cs/src/core/Allocator/RecordDataHeader.cs242 // ── Field accessors via ulong word bit manipulation ────────────────────────COMMENT
MEDIUM…ge/Tsavorite/cs/src/core/Allocator/RecordDataHeader.cs333 // ── RecordLength derivation (no longer stored) ─────────────────────────────COMMENT
MEDIUM…ge/Tsavorite/cs/src/core/Allocator/RecordDataHeader.cs397 // ── Filler helpers ─────────────────────────────────────────────────────────COMMENT
MEDIUM…ge/Tsavorite/cs/src/core/Allocator/RecordDataHeader.cs556 // ── Initialize ─────────────────────────────────────────────────────────────COMMENT
MEDIUM…ge/Tsavorite/cs/src/core/Allocator/RecordDataHeader.cs658 // ── ToString ───────────────────────────────────────────────────────────────COMMENT
MEDIUM…cator/ObjectSerialization/ObjectLogFilePositionInfo.cs24 // ── Flag bits in the top 4 bits of word (bits 60-63) ─────────────────────────COMMENT
Structural Annotation Overuse79 hits · 117 pts
SeverityFileLineSnippetContext
LOW…andalone/Garnet.test.complexstring/HyperLogLogTests.cs1046 // Step 1: Clean up and create source HLLCOMMENT
LOW…andalone/Garnet.test.complexstring/HyperLogLogTests.cs1053 // Step 2: Dump the HLLCOMMENT
LOW…andalone/Garnet.test.complexstring/HyperLogLogTests.cs1057 // Step 3: Corrupt the dump by flipping a bit (avoiding the last 8 bytes which are CRC)COMMENT
LOW…andalone/Garnet.test.complexstring/HyperLogLogTests.cs1065 // Step 6: Verify key was not createdCOMMENT
LOW…andalone/Garnet.test.complexstring/HyperLogLogTests.cs1081 // Step 1: Clean up and create source HLLCOMMENT
LOW…andalone/Garnet.test.complexstring/HyperLogLogTests.cs1088 // Step 2: Dump the HLLCOMMENT
LOW…andalone/Garnet.test.complexstring/HyperLogLogTests.cs1092 // Step 3: Zero out the last 8 bytes (CRC64 checksum)COMMENT
LOW…andalone/Garnet.test.complexstring/HyperLogLogTests.cs1099 // Step 6: Verify key was not createdCOMMENT
LOW…andalone/Garnet.test.complexstring/HyperLogLogTests.cs1115 // Step 1: Clean up and create sparse HLLCOMMENT
LOW…andalone/Garnet.test.complexstring/HyperLogLogTests.cs1122 // Step 2: Dump and parse the structureCOMMENT
LOW…andalone/Garnet.test.complexstring/HyperLogLogTests.cs1126 // Step 3: Extract and corrupt the HLL valueCOMMENT
LOW…andalone/Garnet.test.complexstring/HyperLogLogTests.cs1133 // Step 4: Reconstruct the dump with RDB encodingCOMMENT
LOW…andalone/Garnet.test.complexstring/HyperLogLogTests.cs1167 // Step 1: Clean up and create sparse HLLCOMMENT
LOW…andalone/Garnet.test.complexstring/HyperLogLogTests.cs1173 // Step 2: Dump and parse the structureCOMMENT
LOW…andalone/Garnet.test.complexstring/HyperLogLogTests.cs1177 // Step 3: Extract the HLL value and verify it's sparseCOMMENT
LOW…andalone/Garnet.test.complexstring/HyperLogLogTests.cs1181 // Step 4: Corrupt the sparse stream length (bytes 16-17) to exceed actual sizeCOMMENT
LOW…andalone/Garnet.test.complexstring/HyperLogLogTests.cs1204 // Step 1: Clean up and create minimal sparse HLLCOMMENT
LOW…andalone/Garnet.test.complexstring/HyperLogLogTests.cs1210 // Step 2: Dump and parse the structureCOMMENT
LOW…andalone/Garnet.test.complexstring/HyperLogLogTests.cs1214 // Step 3: Extract the HLL value and verify it's sparseCOMMENT
LOW…andalone/Garnet.test.complexstring/HyperLogLogTests.cs1218 // Step 4: Corrupt the first RLE opcode (offset 18) to create coverage gapCOMMENT
LOW…andalone/Garnet.test.complexstring/HyperLogLogTests.cs1250 // Step 2: Clean up and create sparse HLLCOMMENT
LOW…andalone/Garnet.test.complexstring/HyperLogLogTests.cs1258 // Step 3: Dump and parse the structureCOMMENT
LOW…andalone/Garnet.test.complexstring/HyperLogLogTests.cs1262 // Step 4: Extract and corrupt the sparse stream lengthCOMMENT
LOW…andalone/Garnet.test.complexstring/HyperLogLogTests.cs1267 // Step 5: Reconstruct the dump with RDB encoding (CRC will be zeros)COMMENT
LOW…andalone/Garnet.test.complexstring/HyperLogLogTests.cs1300 // Step 1: Create sparse HLL with minimal elementsCOMMENT
LOW…andalone/Garnet.test.complexstring/HyperLogLogTests.cs1307 // Step 2: Dump and verify sparse encoding (type byte = 0 at offset 3)COMMENT
LOW…andalone/Garnet.test.complexstring/HyperLogLogTests.cs1312 // Step 3: Create dense HLL by adding elements until sparse->dense conversionCOMMENT
LOW…andalone/Garnet.test.complexstring/HyperLogLogTests.cs1328 // Step 4: Verify dense encoding (type byte = 1 at offset 3)COMMENT
LOW…andalone/Garnet.test.complexstring/HyperLogLogTests.cs1332 // Step 5: Verify dense representation is largerCOMMENT
LOW…andalone/Garnet.test.complexstring/HyperLogLogTests.cs1353 // Step 1: Test 6-bit encodingCOMMENT
LOW…andalone/Garnet.test.complexstring/HyperLogLogTests.cs1360 // Step 2: Test 14-bit encodingCOMMENT
LOW…andalone/Garnet.test.complexstring/HyperLogLogTests.cs1368 // Step 3: Test 32-bit encodingCOMMENT
LOW…andalone/Garnet.test.complexstring/HyperLogLogTests.cs1402 // Step 1: Create valid sparse HLL and test dataCOMMENT
LOW…andalone/Garnet.test.complexstring/HyperLogLogTests.cs1412 // Step 2: Dump and corrupt the SparseRLESize fieldCOMMENT
LOW…andalone/Garnet.test.complexstring/HyperLogLogTests.cs1451 // Step 4: RESTORE should succeed (CRC is valid, basic validation passes)COMMENT
LOW…andalone/Garnet.test.complexstring/HyperLogLogTests.cs1455 // Step 5: Verify operations fail due to structural validationCOMMENT
LOW…andalone/Garnet.test.complexstring/HyperLogLogTests.cs1152 // Step 7: Verify key was not createdCOMMENT
LOW…andalone/Garnet.test.complexstring/HyperLogLogTests.cs1427 // Step 3: Reconstruct dump with valid CRC using Garnet.common.Crc64COMMENT
LOWwebsite/docs/azure/quickstart.md19## Step 1: Create an Azure Cosmos DB Garnet CacheCOMMENT
LOWwebsite/docs/azure/quickstart.md43## Step 2: Configure Data Access with RBACCOMMENT
LOWwebsite/docs/azure/quickstart.md106## Step 3: Set Up Network AccessCOMMENT
LOWwebsite/docs/azure/quickstart.md120## Step 4: Connect and TestCOMMENT
LOWwebsite/docs/dev/range-index-resp-api.md719### Step 1: Type discrimination for RangeIndex recordsCOMMENT
LOWwebsite/docs/dev/range-index-resp-api.md766### Step 2: Add RESP commands to the parserCOMMENT
LOWwebsite/docs/dev/range-index-resp-api.md836### Step 3: Add command dispatch in `RespServerSession`COMMENT
LOWwebsite/docs/dev/range-index-resp-api.md864### Step 4: Implement RESP command handlersCOMMENT
LOWwebsite/docs/dev/range-index-resp-api.md1050### Step 5: Add `IGarnetApi` and `GarnetApi` interface methodsCOMMENT
LOWwebsite/docs/dev/range-index-resp-api.md1121### Step 6: Implement Storage Session layer (`RangeIndexOps.cs`)COMMENT
LOWwebsite/docs/dev/range-index-resp-api.md1242### Step 7: Implement `RangeIndexManager` (partial class)COMMENT
LOWwebsite/docs/dev/range-index-resp-api.md1504### Step 8: Wire into Main Store RMW callbacksCOMMENT
LOWwebsite/docs/dev/range-index-resp-api.md1662### Step 9: Wire into Main Store Read MethodsCOMMENT
LOWwebsite/docs/dev/range-index-resp-api.md1694### Step 10: Delete handling via `DisposeRecord`COMMENT
LOWwebsite/docs/dev/range-index-resp-api.md1727### Step 11: Build and integrate the native Bf-Tree libraryCOMMENT
LOWwebsite/docs/dev/range-index-resp-api.md2212### Step 12: Add `RangeIndexManager` to `FunctionsState`COMMENT
LOWwebsite/docs/dev/range-index-resp-api.md2243### Step 13: Checkpoint & RecoveryCOMMENT
LOWlibs/server/AOF/AofProcessor.cs224 /// NOTE: This method is shared between recover replay and replication replayCOMMENT
LOW…ge/Tsavorite/cs/test/test.recovery/LargeObjectTests.cs39 // Step 1: Create and populate store.COMMENT
LOW…ge/Tsavorite/cs/test/test.recovery/LargeObjectTests.cs64 // Step 1: Create and recover store.COMMENT
LOW…ge/Tsavorite/cs/test/test.recovery/LargeObjectTests.cs127 // Step 1: Create and populate store.COMMENT
LOW…ge/Tsavorite/cs/test/test.recovery/LargeObjectTests.cs153 // Step 1: Create and recover store.COMMENT
19 more matches not shown…
Hallucination Indicators8 hits · 80 pts
SeverityFileLineSnippetContext
CRITICAL…standalone/Garnet.test.vectorset/RespVectorSetTests.cs46 server.Provider.StoreWrapper.DefaultDatabase.VectorManager.AllocateTestContexts(preAllocatedContexts);CODE
CRITICAL…ication/PrimaryOps/AofOperations/AofSyncDriverStore.cs28 var truncateUntilAddress = store.clusterProvider.storeWrapper.appendOnlyFile.Log.UnsafeGetReadOnlyAddresCODE
CRITICALlibs/server/Resp/Parser/RespCommandHashLookup.cs315 var crc = (uint)System.Runtime.Intrinsics.Arm.Crc32.Arm64.ComputeCrc32C(0U, word0);CODE
CRITICALlibs/server/Resp/Parser/RespCommandHashLookup.cs316 return System.Runtime.Intrinsics.Arm.Crc32.ComputeCrc32C(crc, (uint)length);CODE
CRITICALlibs/server/Resp/Parser/RespCommandHashLookup.cs338 var crc = (uint)System.Runtime.Intrinsics.Arm.Crc32.Arm64.ComputeCrc32C(0U, word0);CODE
CRITICALlibs/server/Resp/Parser/RespCommandHashLookup.cs339 return System.Runtime.Intrinsics.Arm.Crc32.ComputeCrc32C(crc, (uint)name.Length);CODE
CRITICALlibs/server/Servers/MetricsApi.cs87 return provider.StoreWrapper.monitor.GlobalMetrics.globalLatencyMetrics.GetLatencyMetrics(latencyMetricsTypeCODE
CRITICALlibs/storage/Tsavorite/cs/test/test.hlog/LogTests.cs152 ClassicAssert.IsTrue(asyncMemoryOwnerIter.Current.entry.Memory.Span.ToArray().Take(expectedData.LengCODE
Verbosity Indicators45 hits · 66 pts
SeverityFileLineSnippetContext
LOW…andalone/Garnet.test.complexstring/HyperLogLogTests.cs1046 // Step 1: Clean up and create source HLLCOMMENT
LOW…andalone/Garnet.test.complexstring/HyperLogLogTests.cs1053 // Step 2: Dump the HLLCOMMENT
LOW…andalone/Garnet.test.complexstring/HyperLogLogTests.cs1057 // Step 3: Corrupt the dump by flipping a bit (avoiding the last 8 bytes which are CRC)COMMENT
LOW…andalone/Garnet.test.complexstring/HyperLogLogTests.cs1065 // Step 6: Verify key was not createdCOMMENT
LOW…andalone/Garnet.test.complexstring/HyperLogLogTests.cs1081 // Step 1: Clean up and create source HLLCOMMENT
LOW…andalone/Garnet.test.complexstring/HyperLogLogTests.cs1088 // Step 2: Dump the HLLCOMMENT
LOW…andalone/Garnet.test.complexstring/HyperLogLogTests.cs1092 // Step 3: Zero out the last 8 bytes (CRC64 checksum)COMMENT
LOW…andalone/Garnet.test.complexstring/HyperLogLogTests.cs1099 // Step 6: Verify key was not createdCOMMENT
LOW…andalone/Garnet.test.complexstring/HyperLogLogTests.cs1115 // Step 1: Clean up and create sparse HLLCOMMENT
LOW…andalone/Garnet.test.complexstring/HyperLogLogTests.cs1122 // Step 2: Dump and parse the structureCOMMENT
LOW…andalone/Garnet.test.complexstring/HyperLogLogTests.cs1126 // Step 3: Extract and corrupt the HLL valueCOMMENT
LOW…andalone/Garnet.test.complexstring/HyperLogLogTests.cs1133 // Step 4: Reconstruct the dump with RDB encodingCOMMENT
LOW…andalone/Garnet.test.complexstring/HyperLogLogTests.cs1167 // Step 1: Clean up and create sparse HLLCOMMENT
LOW…andalone/Garnet.test.complexstring/HyperLogLogTests.cs1173 // Step 2: Dump and parse the structureCOMMENT
LOW…andalone/Garnet.test.complexstring/HyperLogLogTests.cs1177 // Step 3: Extract the HLL value and verify it's sparseCOMMENT
LOW…andalone/Garnet.test.complexstring/HyperLogLogTests.cs1181 // Step 4: Corrupt the sparse stream length (bytes 16-17) to exceed actual sizeCOMMENT
LOW…andalone/Garnet.test.complexstring/HyperLogLogTests.cs1204 // Step 1: Clean up and create minimal sparse HLLCOMMENT
LOW…andalone/Garnet.test.complexstring/HyperLogLogTests.cs1210 // Step 2: Dump and parse the structureCOMMENT
LOW…andalone/Garnet.test.complexstring/HyperLogLogTests.cs1214 // Step 3: Extract the HLL value and verify it's sparseCOMMENT
LOW…andalone/Garnet.test.complexstring/HyperLogLogTests.cs1218 // Step 4: Corrupt the first RLE opcode (offset 18) to create coverage gapCOMMENT
LOW…andalone/Garnet.test.complexstring/HyperLogLogTests.cs1250 // Step 2: Clean up and create sparse HLLCOMMENT
LOW…andalone/Garnet.test.complexstring/HyperLogLogTests.cs1258 // Step 3: Dump and parse the structureCOMMENT
LOW…andalone/Garnet.test.complexstring/HyperLogLogTests.cs1262 // Step 4: Extract and corrupt the sparse stream lengthCOMMENT
LOW…andalone/Garnet.test.complexstring/HyperLogLogTests.cs1267 // Step 5: Reconstruct the dump with RDB encoding (CRC will be zeros)COMMENT
LOW…andalone/Garnet.test.complexstring/HyperLogLogTests.cs1300 // Step 1: Create sparse HLL with minimal elementsCOMMENT
LOW…andalone/Garnet.test.complexstring/HyperLogLogTests.cs1307 // Step 2: Dump and verify sparse encoding (type byte = 0 at offset 3)COMMENT
LOW…andalone/Garnet.test.complexstring/HyperLogLogTests.cs1312 // Step 3: Create dense HLL by adding elements until sparse->dense conversionCOMMENT
LOW…andalone/Garnet.test.complexstring/HyperLogLogTests.cs1328 // Step 4: Verify dense encoding (type byte = 1 at offset 3)COMMENT
LOW…andalone/Garnet.test.complexstring/HyperLogLogTests.cs1332 // Step 5: Verify dense representation is largerCOMMENT
LOW…andalone/Garnet.test.complexstring/HyperLogLogTests.cs1353 // Step 1: Test 6-bit encodingCOMMENT
LOW…andalone/Garnet.test.complexstring/HyperLogLogTests.cs1360 // Step 2: Test 14-bit encodingCOMMENT
LOW…andalone/Garnet.test.complexstring/HyperLogLogTests.cs1368 // Step 3: Test 32-bit encodingCOMMENT
LOW…andalone/Garnet.test.complexstring/HyperLogLogTests.cs1402 // Step 1: Create valid sparse HLL and test dataCOMMENT
LOW…andalone/Garnet.test.complexstring/HyperLogLogTests.cs1412 // Step 2: Dump and corrupt the SparseRLESize fieldCOMMENT
LOW…andalone/Garnet.test.complexstring/HyperLogLogTests.cs1451 // Step 4: RESTORE should succeed (CRC is valid, basic validation passes)COMMENT
LOW…andalone/Garnet.test.complexstring/HyperLogLogTests.cs1455 // Step 5: Verify operations fail due to structural validationCOMMENT
LOW…andalone/Garnet.test.complexstring/HyperLogLogTests.cs1152 // Step 7: Verify key was not createdCOMMENT
LOW…andalone/Garnet.test.complexstring/HyperLogLogTests.cs1427 // Step 3: Reconstruct dump with valid CRC using Garnet.common.Crc64COMMENT
LOW…ge/Tsavorite/cs/test/test.recovery/LargeObjectTests.cs39 // Step 1: Create and populate store.COMMENT
LOW…ge/Tsavorite/cs/test/test.recovery/LargeObjectTests.cs64 // Step 1: Create and recover store.COMMENT
LOW…ge/Tsavorite/cs/test/test.recovery/LargeObjectTests.cs127 // Step 1: Create and populate store.COMMENT
LOW…ge/Tsavorite/cs/test/test.recovery/LargeObjectTests.cs153 // Step 1: Create and recover store.COMMENT
LOW…ge/Tsavorite/cs/src/core/Allocator/RecordDataHeader.cs494 // Step 1: Write the new record's RecordInfo (Invalid set) FIRST.COMMENT
LOW…ge/Tsavorite/cs/src/core/Allocator/RecordDataHeader.cs499 // Step 2: Build and write the new record's RDH (inline keys/values, no optionals, KeyLength=0, ValueLength COMMENT
LOW…ge/Tsavorite/cs/src/core/Allocator/RecordDataHeader.cs515 // Step 3: Caller writes RecordSplitRetainFillerWords into this record's FillerWords (atomic update of the oCOMMENT
Fake / Example Data9 hits · 9 pts
SeverityFileLineSnippetContext
LOWtest/cluster/Garnet.test.cluster/ClusterTestUtils.cs899 public const string certPassword = "placeholder";CODE
LOWtest/standalone/Garnet.test/TestUtils.cs146 public const string certPassword = "placeholder";CODE
LOWtest/standalone/Garnet.test/GarnetServerConfigTests.cs266 ClassicAssert.AreEqual("placeholder", options.CertPassword);CODE
LOWtest/standalone/Garnet.test/GarnetServerConfigTests.cs285 ClassicAssert.AreEqual("placeholder", options.CertPassword);CODE
LOW…/Garnet.test.acl/Resp/ACL/AclConfigurationFileTests.cs342 var updatePass = "placeholder";CODE
LOWplayground/GarnetClientStress/StressTestUtil.cs41 ClientCertificates = [GetClientCertificate("testcert.pfx", "placeholder")],CODE
LOWsamples/GarnetClientSample/GarnetClientSamples.cs265 ClientCertificates = [GetClientCertificate("testcert.pfx", "placeholder")],CODE
LOWsamples/ETag/Caching.cs182 const string loremIpsum = "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incidiCODE
LOWsamples/ETag/Caching.cs182 const string loremIpsum = "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incidiCODE
TODO Padding6 hits · 9 pts
SeverityFileLineSnippetContext
LOWlibs/cluster/Server/Failover/ReplicaFailoverSession.cs338 //TODO: implement votingCOMMENT
LOWlibs/server/Resp/Vector/RespServerSessionVectors.cs1442 // TODO: implement!COMMENT
LOWlibs/server/Resp/Vector/RespServerSessionVectors.cs1609 // TODO: implement!COMMENT
LOWlibs/server/Resp/Vector/RespServerSessionVectors.cs1625 // TODO: implement!COMMENT
LOWlibs/server/Resp/Vector/RespServerSessionVectors.cs1641 // TODO: implement!COMMENT
LOWlibs/server/Resp/Vector/RespServerSessionVectors.cs1688 // TODO: implement!COMMENT
Slop Phrases3 hits · 8 pts
SeverityFileLineSnippetContext
MEDIUMmetrics/HdrHistogram/Utilities/AtomicLongArray.cs15 /// This is a basic implementation/port, of just the methods that are required internally.COMMENT
MEDIUM.github/workflows/codeql.yml51 # If you are analyzing a compiled language, you can modify the 'build-mode' for that language to customize howCOMMENT
LOW.azure/pipelines/azure-pipelines-mirror.yml43 # Push the updated main branch to Azure DevOps - make sure to get the config files each push so compliant with secCOMMENT
AI Slop Vocabulary2 hits · 5 pts
SeverityFileLineSnippetContext
MEDIUMtest/standalone/Garnet.test/RespGetLowMemoryTests.cs139 [TestCase(3_000)] // Definitely completes asyncCODE
MEDIUMlibs/server/Objects/SortedSetGeo/GeoHash.cs185 // check we can (as of .NET 8) to allow largest possible set of CPUs to utilize accelerated PDEP and PEXT coCOMMENT
Deep Nesting5 hits · 5 pts
SeverityFileLineSnippetContext
LOWtest/docker-tests/validate_docker_images.py124CODE
LOWtest/docker-tests/validate_docker_images.py201CODE
LOWtest/docker-tests/validate_docker_images.py237CODE
LOWtest/docker-tests/validate_docker_images.py286CODE
LOWtest/docker-tests/validate_docker_images.py351CODE
Excessive Try-Catch Wrapping4 hits · 4 pts
SeverityFileLineSnippetContext
LOWtest/docker-tests/validate_docker_images.py233 except Exception as e:CODE
LOWtest/docker-tests/validate_docker_images.py282 except Exception as e:CODE
LOWtest/docker-tests/validate_docker_images.py345 except Exception as e:CODE
LOWtest/docker-tests/validate_docker_images.py411 except Exception as e:CODE
Example Usage Blocks1 hit · 2 pts
SeverityFileLineSnippetContext
LOW…age/Tsavorite/cs/benchmark/Device.benchmark/Program.cs14 /// Example usage:COMMENT
Unused Imports1 hit · 1 pts
SeverityFileLineSnippetContext
LOWtest/docker-tests/validate_docker_images.py34CODE