Repository Analysis

oven-sh/bun

Incredibly fast JavaScript runtime, bundler, test runner, and package manager – all in one

6.6 Low AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of oven-sh/bun, a Rust project with 94,675 GitHub stars. SynthScan v2.0 examined 2,885,833 lines of code across 14225 source files, recording 11468 pattern matches distributed across 23 syntactic categories. The overall adjusted score of 6.6 places this repository in the Low AI signal band.

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

6.6
Adjusted Score
6.6
Raw Score
100%
Time Factor
2026-07-14
Last Push
94.7K
Stars
Rust
Language
2.9M
Lines of Code
14.2K
Files
11.5K
Pattern Hits
2026-07-14
Scan Date
0.00
HC Hit Rate

What These Metrics Mean

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

Score History

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

Severity Breakdown

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

CRITICAL 15HIGH 36MEDIUM 4151LOW 7266

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 11468 distinct pattern matches across 23 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.

Decorative Section Separators4109 hits · 11821 pts
SeverityFileLineSnippetContext
MEDIUMCargo.toml114# ─── Release optimization ───────────────────────────────────────────────────COMMENT
MEDIUMtest/js/web/fetch/fetch-http3-client.test.ts483 // ───── streaming uploads (pull-driven request bodies) ─────COMMENT
MEDIUMtest/js/web/fetch/fetch-http3-client.test.ts527 // ───── bidirectional ─────COMMENT
MEDIUMtest/js/web/fetch/fetch-http2-adversarial.test.ts32// ─── raw server with full preface control ────────────────────────────────────COMMENT
MEDIUMtest/js/web/fetch/fetch-http2-adversarial.test.ts106// ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMtest/js/web/fetch/fetch-http2-adversarial.test.ts328 // ───────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMtest/js/web/fetch/fetch-http2-adversarial.test.ts330 // ───────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMtest/js/web/fetch/fetch-http2-adversarial.test.ts441// ─── session-key regressions ─────────────────────────────────────────────────COMMENT
MEDIUMtest/js/bun/terminal/terminal-platform-gaps.test.ts71 // ──────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMtest/js/bun/terminal/terminal-platform-gaps.test.ts73 // ──────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMtest/js/bun/terminal/terminal-platform-gaps.test.ts123 // ──────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMtest/js/bun/terminal/terminal-platform-gaps.test.ts125 // ──────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMtest/js/bun/terminal/terminal-platform-gaps.test.ts149 // ──────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMtest/js/bun/terminal/terminal-platform-gaps.test.ts151 // ──────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMtest/js/bun/terminal/terminal-platform-gaps.test.ts198 // ──────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMtest/js/bun/terminal/terminal-platform-gaps.test.ts200 // ──────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMtest/js/bun/terminal/terminal-platform-gaps.test.ts250 // ──────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMtest/js/bun/terminal/terminal-platform-gaps.test.ts252 // ──────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMtest/js/bun/terminal/terminal-platform-gaps.test.ts300 // ──────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMtest/js/bun/terminal/terminal-platform-gaps.test.ts302 // ──────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMtest/js/bun/image/image-adversarial.test.ts27// this file should be runnable standalone) ────────────────────────────────COMMENT
MEDIUMtest/js/bun/image/image-adversarial.test.ts146// ─── 1. format confusion / lying magic bytes ─────────────────────────────────COMMENT
MEDIUMtest/js/bun/image/image-adversarial.test.ts181// ─── 2. truncation at every boundary ─────────────────────────────────────────COMMENT
MEDIUMtest/js/bun/image/image-adversarial.test.ts310// ─── 3. lying / overflowing header fields ────────────────────────────────────COMMENT
MEDIUMtest/js/bun/image/image-adversarial.test.ts389// ─── 4. malformed PNG chunk structure ────────────────────────────────────────COMMENT
MEDIUMtest/js/bun/image/image-adversarial.test.ts435// ─── 5. malformed JPEG / EXIF ────────────────────────────────────────────────COMMENT
MEDIUMtest/js/bun/image/image-adversarial.test.ts471// ─── 6. lossless roundtrip parity ────────────────────────────────────────────COMMENT
MEDIUMtest/js/bun/image/image-adversarial.test.ts535// ─── 7. memory hygiene under repetition ──────────────────────────────────────COMMENT
MEDIUMtest/js/bun/image/image-adversarial.test.ts590// ─── 8. hostile JS option objects ────────────────────────────────────────────COMMENT
MEDIUMtest/js/bun/image/image-adversarial.test.ts709// ─── 9. concurrency / re-use ─────────────────────────────────────────────────COMMENT
MEDIUMtest/js/bun/image/image-adversarial.test.ts744// ─── 10. random-byte fuzz (cheap, bounded) ───────────────────────────────────COMMENT
MEDIUMtest/js/bun/image/image-kernels.test.ts10// ─── plumbing (PNG build/read; same shape as image.test.ts) ─────────────────COMMENT
MEDIUMtest/js/bun/image/image-kernels.test.ts110// ─── resize filters ─────────────────────────────────────────────────────────COMMENT
MEDIUMtest/js/bun/image/image-kernels.test.ts233// ─── Floyd–Steinberg dither ─────────────────────────────────────────────────COMMENT
MEDIUMtest/js/bun/image/image-vs-sharp.test.ts34// failure modes; small so the fixture stays a few-hundred KB) ────────────COMMENT
MEDIUMtest/js/bun/image/image-vs-sharp.test.ts73// ─── PNG plumbing (same hand-roller as the other suites) ────────────────────COMMENT
MEDIUMtest/js/bun/image/image-vs-sharp.test.ts165// back, in the same iteration order the test uses. ─────────────────────────COMMENT
MEDIUMtest/js/bun/image/image.test.ts6// ─── Fixture builders ───────────────────────────────────────────────────────COMMENT
MEDIUMtest/js/bun/image/image.test.ts142// ─── Tests ──────────────────────────────────────────────────────────────────COMMENT
MEDIUMtest/js/bun/image/image.test.ts1218 // ── LZW pack ──────────────────────────────────────────────────────────COMMENT
MEDIUMtest/js/bun/image/image.test.ts1266 // ── container ─────────────────────────────────────────────────────────COMMENT
MEDIUMtest/js/bun/http/proxy-stress-headers.test.ts46// ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMtest/js/bun/http/proxy-stress-headers.test.ts48// ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMtest/js/bun/http/proxy-stress-headers.test.ts74// ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMtest/js/bun/http/proxy-stress-headers.test.ts76// ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMtest/js/bun/http/proxy-stress-headers.test.ts121// ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMtest/js/bun/http/proxy-stress-headers.test.ts123// ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMtest/js/bun/http/proxy-stress-headers.test.ts157// ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMtest/js/bun/http/proxy-stress-headers.test.ts159// ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMtest/js/bun/http/proxy-stress-headers.test.ts191// ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMtest/js/bun/http/proxy-stress-headers.test.ts194// ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMtest/js/bun/http/proxy-stress-headers.test.ts230// ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMtest/js/bun/http/proxy-stress-headers.test.ts233// ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMtest/js/bun/http/proxy-stress-headers.test.ts250// ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMtest/js/bun/http/proxy-stress-headers.test.ts252// ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMtest/js/bun/http/proxy-stress-headers.test.ts274// ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMtest/js/bun/http/proxy-stress-headers.test.ts277// ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMtest/js/bun/http/proxy-stress-headers.test.ts298// ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMtest/js/bun/http/proxy-stress-headers.test.ts301// ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMtest/js/bun/http/proxy-stress-lifecycle.test.ts65// ─────────────────────────────────────────────────────────────────────────────COMMENT
4049 more matches not shown…
Over-Commented Block6121 hits · 5466 pts
SeverityFileLineSnippetContext
LOWCargo.toml101 "src/bunfig",COMMENT
LOWCargo.toml181# back to "warn" (their priority 0 beats the group's -1) where a warning levelCOMMENT
LOWrustfmt.toml1# rustfmt config for the Cargo workspace. Formatting is the toolchain defaultCOMMENT
LOWbunfig.toml1[test]COMMENT
LOWrust-toolchain.toml1[toolchain]COMMENT
LOWbench/snippets/buffer.js21// time("DataView.getBigInt64 (BE)", () => view.getBigInt64(0, false));COMMENT
LOWbench/snippets/buffer.js41time("Buffer.readFloatLE ", () => buf.readFloatLE(0));COMMENT
LOWbench/snippets/buffer.js61// console.log("");COMMENT
LOWbench/snippets/buffer.js81time("Buffer.writeBigUInt64BE", () => buf.writeBigUInt64BE(BigInt(0), 0));COMMENT
LOWbench/snippets/buffer.js101// console.log("");COMMENT
LOWbench/snippets/deep-equals.js341 // get foo() {COMMENT
LOWbench/install/next-env.d.ts1/// <reference types="next" />COMMENT
LOWtest/expectations.txt1# Format: [modifier] test-name [[ expectations ]] [# comment]COMMENT
LOWtest/expectations.txt21[ WINDOWS-AARCH64 ] test/js/node/test/parallel/test-repl-close.js [ FAIL ] # EPIPE on stdin.write to closed child procesCOMMENT
LOWtest/expectations.txt41# alpine 3.23 x64 + x64-baseline only).COMMENT
LOWtest/expectations.txt101# Windows-only gaps in named-pipe / socket teardown for ported Node net testsCOMMENT
LOWtest/expectations.txt121# AddressSanitizer and exceeds the per-test timeout; it passes on regular builds.COMMENT
LOWtest/expectations.txt141[ WINDOWS ] test/js/web/fetch/fetch-http2-client.test.ts [ FAIL ] # pooled-h2 teardown surfaces WSAECONNRESET between teCOMMENT
LOWtest/v8/v8-module/main.cpp1#include <node.h>COMMENT
LOWtest/v8/v8-module/main.cpp461COMMENT
LOWtest/snippets/lodash-regexp.js21// export function test() {COMMENT
LOWtest/docker/coordinator.ts41COMMENT
LOWtest/js/workerd/html-rewriter-leak.test.ts1import { heapStats } from "bun:jsc";COMMENT
LOWtest/js/workerd/html-rewriter-leak.test.ts41 // still protected here.COMMENT
LOWtest/js/web/structured-clone-blob-file.test.ts361 });COMMENT
LOW…/js/web/abort/abort-signal-event-listener-leak.test.ts1import { estimateShallowMemoryUsageOf } from "bun:jsc";COMMENT
LOW…bsocket/websocket-proxy-tunnel-upgrade-leak-fixture.ts1// Repro for HTTPUpgradeClient leak on wss:// through an HTTP CONNECT proxyCOMMENT
LOW…b/websocket/websocket-proxy-tunnel-client-leak.test.ts1import { expect, test } from "bun:test";COMMENT
LOWtest/js/web/websocket/websocket-utf16-headers.test.ts1// Regression test for WebSocket upgrade request crash on non-ASCII inputs.COMMENT
LOW…ebsocket/websocket-proxy-tunnel-client-leak-fixture.ts1// Repro for NewWebSocketClient(false) leak on wss:// through an HTTP CONNECTCOMMENT
LOWtest/js/web/websocket/websocket-close-code.test.ts1// WebSocket#close() argument validation and the close-code handling thatCOMMENT
LOWtest/js/web/intl/intl.test.ts1// ECMA-402 Intl coverage. Doubles as the regression net for the per-item zstdCOMMENT
LOWtest/js/web/intl/intl.test.ts241// ---------------------------------------------------------------------------COMMENT
LOWtest/js/web/timers/timers-fixture-unref.js81// See https://github.com/nodejs/node/issues/9561COMMENT
LOWtest/js/web/streams/streams-leak.test.ts1import { expect, test } from "bun:test";COMMENT
LOWtest/js/web/streams/native-source-onclose-leak.test.ts1import { heapStats } from "bun:jsc";COMMENT
LOWtest/js/web/encoding/text-decoder-cjk.test.ts181 // 8F A1 starts a JIS X 0212 sequence; 0x61 aborts it. A1 A1 is then aCOMMENT
LOW…t/js/web/html/FormData-multipart-serialization.test.ts161 // Serializing an in-memory blob entry borrows its bytes; the only blob-sizedCOMMENT
LOWtest/js/web/html/FormData-file-error-leak.test.ts1import { expect, test } from "bun:test";COMMENT
LOWtest/js/web/html/FormData-file-error-leak-fixture.ts1// Fixture for FormData → multipart body memory leak on readFile failure.COMMENT
LOW…/js/web/broadcastchannel/message-event-init-gc.test.ts1import { expect, test } from "bun:test";COMMENT
LOW…b/broadcastchannel/broadcast-channel-worker-gc.test.ts101);COMMENT
LOW…b/broadcastchannel/broadcast-channel-worker-gc.test.ts181 expect(filterStderr(stderr)).toBe("");COMMENT
LOWtest/js/web/fetch/http-chunked-server.c1// Simple HTTP server that reproduces a streaming response body bug.COMMENT
LOWtest/js/web/fetch/fetch-tcp-keepalive.test.ts1// Verifies that fetch() enables TCP keepalive (SO_KEEPALIVE + TCP_KEEPIDLE)COMMENT
LOWtest/js/web/fetch/fetch-tcp-keepalive.test.ts41 // Parse /proc/self/net/tcp: find ESTABLISHED (state 01) socket withCOMMENT
LOW…st/js/web/fetch/fetch-proxy-tls-intern-race-fixture.ts1// Subprocess fixture for fetch-proxy-tls-intern-race.test.ts.COMMENT
LOWtest/js/web/fetch/fetch-abort-queued.test.ts1// When `active_requests_count >= max_simultaneous_requests`, new fetch()COMMENT
LOWtest/js/web/fetch/headers.test.ts601COMMENT
LOWtest/js/web/fetch/body-clone.test.ts901 // Each body type hits a different internal representation at clone() time:COMMENT
LOWtest/js/web/fetch/blob-file-name-ownership.test.ts1import { expect, test } from "bun:test";COMMENT
LOWtest/js/web/fetch/fetch-http3-adversarial.test.ts221 }COMMENT
LOWtest/js/web/fetch/wasm-streaming.test.ts21// (moduleCOMMENT
LOWtest/js/web/fetch/fetch-stream-cancel-leak.test.ts1import { heapStats } from "bun:jsc";COMMENT
LOW…st/js/web/fetch/fetch-response-finalizer-sweep.test.ts1// fetch(): the JSResponse Weak finalizer (WeakBlock::sweep) reachesCOMMENT
LOWtest/js/web/fetch/fetch-leak.test.ts421COMMENT
LOWtest/js/web/fetch/fetch-leak.test.ts501// fetch.rs url_type != Remote: url_string carries a +1 WTFStringImpl refCOMMENT
LOWtest/js/web/fetch/fetch-leak.test.ts641// Regression: src/collections/hive_array.zig:65-76 (HiveArray.put) + src/bun.zig HiveRef.unref.COMMENT
LOWtest/js/web/fetch/fetch-proxy-tls-intern-race.test.ts1// Regression test: SSLConfig intern/deref race (UAF) — see PR #27838, #27863COMMENT
LOW…etch/fetch-proxy-connect-tunnel-split-envelope.test.ts1// Regression test for https://github.com/oven-sh/bun/issues/30381COMMENT
6061 more matches not shown…
Hyper-Verbose Identifiers846 hits · 875 pts
SeverityFileLineSnippetContext
LOWtest/harness.ts144async function findOrDownloadAbiMatchingNode(): Promise<string> {CODE
LOWtest/harness.ts373export function makeTreeSyncFromDirectoryTree(base: string, tree: DirectoryTree) {CODE
LOWtest/harness.ts527export function randomInvalidSurrogatePair() {CODE
LOWtest/harness.ts1216function failTestsOnBlockingWriteCall() {CODE
LOWtest/harness.ts1690export function fileDescriptorLeakChecker() {CODE
LOWtest/_util/numeric.ts93 export function computePearsonCorrelation(xs: number[], ys: number[]): number {CODE
LOWtest/_util/numeric.ts160 export function computeAverageAbsoluteDeviation(xs: number[]): number {CODE
LOWtest/js/deno/crypto/random.test.ts51test(function getRandomValuesReturnValue() {CODE
LOWtest/js/deno/crypto/webcrypto.test.ts506test(async function subtleCryptoHmacImportExport() {CODE
LOWtest/js/deno/crypto/webcrypto.test.ts755test(async function testHkdfDeriveBitsWithLargeKeySize() {CODE
LOWtest/js/deno/crypto/webcrypto.test.ts768test(async function testEcdhDeriveBitsWithShorterLength() {CODE
LOWtest/js/deno/crypto/webcrypto.test.ts782test(async function testEcdhDeriveBitsWithLongerLength() {CODE
LOWtest/js/deno/crypto/webcrypto.test.ts795test(async function testEcdhDeriveBitsWithNullLength() {CODE
LOWtest/js/deno/crypto/webcrypto.test.ts1063test(async function testDecryptWithInvalidIntializationVector() {CODE
LOWtest/js/deno/crypto/webcrypto.test.ts2559test(async function ecPrivateKeyMaterialExportSpki() {CODE
LOWtest/js/deno/crypto/webcrypto.test.ts2603test(async function testImportLeadingZeroesKey() {CODE
LOWtest/js/deno/abort/abort-controller.test.ts52test(function controllerHasProperToString() {CODE
LOWtest/js/deno/encoding/encoding.test.ts285test(function toStringShouldBeWebCompatibility() {CODE
LOWtest/js/deno/encoding/encoding.test.ts291test(function textEncoderShouldCoerceToString() {CODE
LOWtest/js/deno/url/urlsearchparams.test.ts6test(function urlSearchParamsWithMultipleSpaces() {CODE
LOWtest/js/deno/url/urlsearchparams.test.ts13test(function urlSearchParamsWithExclamation() {CODE
LOWtest/js/deno/url/urlsearchparams.test.ts23test(function urlSearchParamsWithQuotes() {CODE
LOWtest/js/deno/url/urlsearchparams.test.ts33test(function urlSearchParamsWithBraket() {CODE
LOWtest/js/deno/url/urlsearchparams.test.ts53test(function urlSearchParamsInitString() {CODE
LOWtest/js/deno/url/urlsearchparams.test.ts58test(function urlSearchParamsInitStringWithPlusCharacter() {CODE
LOWtest/js/deno/url/urlsearchparams.test.ts66test(function urlSearchParamsInitStringWithMalformedParams() {CODE
LOWtest/js/deno/url/urlsearchparams.test.ts114test(function urlSearchParamsAppendSuccess() {CODE
LOWtest/js/deno/url/urlsearchparams.test.ts119test(function urlSearchParamsDeleteSuccess() {CODE
LOWtest/js/deno/url/urlsearchparams.test.ts125test(function urlSearchParamsGetAllSuccess() {CODE
LOWtest/js/deno/url/urlsearchparams.test.ts137test(function urlSearchParamsGetSuccess() {CODE
LOWtest/js/deno/url/urlsearchparams.test.ts144test(function urlSearchParamsHasSuccess() {CODE
LOWtest/js/deno/url/urlsearchparams.test.ts151test(function urlSearchParamsSetReplaceFirstAndRemoveOthers() {CODE
LOWtest/js/deno/url/urlsearchparams.test.ts157test(function urlSearchParamsSetAppendNew() {CODE
LOWtest/js/deno/url/urlsearchparams.test.ts163test(function urlSearchParamsSortSuccess() {CODE
LOWtest/js/deno/url/urlsearchparams.test.ts169test(function urlSearchParamsForEachSuccess() {CODE
LOWtest/js/deno/url/urlsearchparams.test.ts190test(function urlSearchParamsMissingName() {CODE
LOWtest/js/deno/url/urlsearchparams.test.ts196test(function urlSearchParamsMissingValue() {CODE
LOWtest/js/deno/url/urlsearchparams.test.ts202test(function urlSearchParamsMissingEqualSign() {CODE
LOWtest/js/deno/url/urlsearchparams.test.ts208test(function urlSearchParamsMissingPair() {CODE
LOWtest/js/deno/url/urlsearchparams.test.ts213test(function urlSearchParamsForShortEncodedChar() {CODE
LOWtest/js/deno/url/urlsearchparams.test.ts221test(function urlSearchParamsShouldThrowTypeError() {CODE
LOWtest/js/deno/url/urlsearchparams.test.ts86test(function urlSearchParamsInitIterable() {CODE
LOWtest/js/deno/url/urlsearchparams.test.ts100test(function urlSearchParamsInitRecord() {CODE
LOWtest/js/deno/url/urlsearchparams.test.ts256test(function urlSearchParamsAppendArgumentsCheck() {CODE
LOWtest/js/deno/url/urlsearchparams.test.ts299test(function urlSearchParamsDeletingAppendedMultiple() {CODE
LOWtest/js/deno/url/urlsearchparams.test.ts311test(function urlSearchParamsCustomSymbolIterator() {CODE
LOWtest/js/deno/url/urlsearchparams.test.ts322test(function urlSearchParamsCustomSymbolIteratorWithNonStringParams() {CODE
LOWtest/js/deno/url/urlsearchparams.test.ts333test(function urlSearchParamsOverridingAppendNotChangeConstructorAndSet() {CODE
LOWtest/js/deno/url/urlsearchparams.test.ts354test(function urlSearchParamsOverridingEntriesNotChangeForEach() {CODE
LOWtest/js/deno/url/url.test.ts267test(function deletingAllParamsRemovesQuestionMarkFromURL() {CODE
LOWtest/js/deno/url/url.test.ts274test(function removingNonExistentParamRemovesQuestionMarkFromURL() {CODE
LOWtest/js/deno/url/url.test.ts281test(function sortingNonExistentParamRemovesQuestionMarkFromURL() {CODE
LOWtest/js/deno/url/url.test.ts294test(function throwForInvalidPortConstructor() {CODE
LOWtest/js/deno/url/url.test.ts308test(function doNotOverridePortIfInvalid() {CODE
LOWtest/js/deno/url/url.test.ts314test(function emptyPortForSchemeDefaultPort() {CODE
LOWtest/js/deno/url/url.test.ts333test(function assigningPortPropertyAffectsReceiverOnly() {CODE
LOWtest/js/deno/url/url.test.ts340test(function urlSearchParamsIdentityPreserved() {CODE
LOWtest/js/deno/url/url.test.ts347test(function urlTakeURLObjectAsParameter() {CODE
LOWtest/js/deno/fetch/blob.test.ts111test(function blobConstructorNameIsBlob() {CODE
LOWtest/js/deno/fetch/blob.test.ts115test.ignore(function blobCustomInspectFunction() {CODE
786 more matches not shown…
Cross-Language Confusion (JS/TS)31 hits · 190 pts
SeverityFileLineSnippetContext
HIGHtest/js/bun/test/printing/diffexample.fixture.ts228 print("Hello, world!");CODE
HIGHtest/js/bun/test/printing/diffexample.fixture.ts229 print("Goodbye, world!");CODE
HIGHtest/js/bun/test/printing/diffexample.fixture.ts233 print("Hello, world!");CODE
HIGHtest/js/bun/test/printing/diffexample.fixture.ts234 print("Goodbye, world!");CODE
HIGHtest/js/bun/shell/bunshell.test.ts2128elif echo baz;then echo qux;fi`CODE
HIGHtest/bundler/bundler_jsx.test.ts151 print(<div>Hello World</div>)CODE
HIGHtest/bundler/bundler_jsx.test.ts152 print(<div className="container"><Component prop={2}><h1 onClick={() => 1}>hello</h1></Component></div>)CODE
HIGHtest/bundler/bundler_jsx.test.ts173 print(<div>Hello World</div>)CODE
HIGHtest/bundler/bundler_jsx.test.ts174 print(<div className="container"><Component prop={2}><h1 onClick={() => 1}>hello</h1></Component></div>)CODE
HIGHtest/bundler/bundler_jsx.test.ts175 print(<>Fragment</>)CODE
HIGHtest/bundler/bundler_jsx.test.ts196 print([typeof F, typeof el])CODE
HIGHtest/bundler/bundler_jsx.test.ts219 print([el, a, b, c])CODE
HIGHtest/bundler/bundler_jsx.test.ts304 print([<div props={123}>Hello World</div>, <>Fragment</>])CODE
HIGHtest/bundler/bundler_jsx.test.ts325 print([<div props={123}>Hello World</div>, <>Fragment</>])CODE
HIGHtest/bundler/bundler_jsx.test.ts347 print([<div props={123}>Hello World</div>, <>Fragment</>])CODE
HIGHtest/bundler/bundler_jsx.test.ts376 print(['classic.jsx',<div props={123}>Hello World</div>, <>Fragment</>])CODE
HIGHtest/bundler/bundler_jsx.test.ts384 print(['classic-renamed.jsx',<div props={123}>Hello World</div>, <>Fragment</>])CODE
HIGHtest/bundler/bundler_jsx.test.ts388 print(['automatic.jsx',<div props={123}>Hello World</div>, process.env.NODE_ENV === 'production' ? '' : <>FragmeCODE
HIGHtest/bundler/bundler_jsx.test.ts393 print(['automatic-source2.jsx',<div props={123}>Hello World</div>, <>Fragment</>])CODE
HIGHtest/bundler/bundler_jsx.test.ts419 print([<div props={123}>Hello World</div>, <>Fragment</>])CODE
HIGHtest/bundler/bundler_jsx.test.ts441 print([<div props={123}>Hello World</div>, <>Fragment</>])CODE
HIGHtest/bundler/bundler_jsx.test.ts469 print([<div props={123}>Hello World</div>, <>Fragment</>])CODE
HIGHtest/bundler/bundler_jsx.test.ts489 print([<div props={123}>Hello World</div>, <>Fragment</>])CODE
HIGH…-compiler-fixtures/hoisting-nested-block-statements.js6 print(x);CODE
HIGH…-compiler-fixtures/hoisting-nested-block-statements.js10 print(x);CODE
HIGH…eact-compiler-fixtures/flag-enable-emit-hook-guards.ts13 print(identity(CONST_STRING0));CODE
HIGH…eact-compiler-fixtures/flag-enable-emit-hook-guards.ts15 print(value, state);CODE
HIGH…eact-compiler-fixtures/flag-enable-emit-hook-guards.ts21 print(identity(value + state));CODE
HIGH…nspiler/react-compiler-fixtures/codegen-inline-iife.ts5 print(1),CODE
HIGH…nspiler/react-compiler-fixtures/codegen-inline-iife.ts7 print(2);CODE
HIGHscripts/glob-sources.ts186 print(sources[arg as keyof Sources]);CODE
Fake / Example Data137 hits · 163 pts
SeverityFileLineSnippetContext
LOWbench/snippets/buffer-includes.js2 "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aCODE
LOWbench/snippets/buffer-includes.js2 "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aCODE
LOWbench/snippets/_fixture.txt1191 <td id="LC98" class="blob-code blob-code-inner js-file-line"><span class="pl-s"> Lorem ipsum dolor sit amet, CODE
LOWbench/snippets/_fixture.txt1191 <td id="LC98" class="blob-code blob-code-inner js-file-line"><span class="pl-s"> Lorem ipsum dolor sit amet, CODE
LOWbench/snippets/_fixture.txt1339 <td id="LC135" class="blob-code blob-code-inner js-file-line"> let string_long_escaped = &quot;\n Lorem ipCODE
LOWbench/snippets/_fixture.txt1339 <td id="LC135" class="blob-code blob-code-inner js-file-line"> let string_long_escaped = &quot;\n Lorem ipCODE
LOWbench/snippets/_fixture.txt1343 <td id="LC136" class="blob-code blob-code-inner js-file-line"> <span class="pl-k">let</span> string_short <spCODE
LOWbench/snippets/_fixture.txt1343 <td id="LC136" class="blob-code blob-code-inner js-file-line"> <span class="pl-k">let</span> string_short <spCODE
LOWbench/snippets/_fixture.txt1351 <td id="LC138" class="blob-code blob-code-inner js-file-line"> <span class="pl-s">&quot;Lorem ipsum dolorCODE
LOWbench/snippets/_fixture.txt1351 <td id="LC138" class="blob-code blob-code-inner js-file-line"> <span class="pl-s">&quot;Lorem ipsum dolorCODE
LOWbench/snippets/_fixture.txt1355 <td id="LC139" class="blob-code blob-code-inner js-file-line"> <span class="pl-k">let</span> no_escape <span CODE
LOWbench/snippets/_fixture.txt1355 <td id="LC139" class="blob-code blob-code-inner js-file-line"> <span class="pl-k">let</span> no_escape <span CODE
LOWbench/snippets/_fixture.txt1363 <td id="LC141" class="blob-code blob-code-inner js-file-line"><span class="pl-s">Lorem ipsum dolor sit amet, conCODE
LOWbench/snippets/_fixture.txt1363 <td id="LC141" class="blob-code blob-code-inner js-file-line"><span class="pl-s">Lorem ipsum dolor sit amet, conCODE
LOWtest/js/workerd/html-rewriter.test.js723 .transform(new Response("<p>Lorem ipsum!</p>"))CODE
LOWtest/js/workerd/html-rewriter.test.js738 .transform(new Response("<p>Lorem ipsum!<br></p><div />"))CODE
LOWtest/js/workerd/html-rewriter.test.js756 .transform(new Response("<p>Lorem ipsum!<br></p><div /><svg><circle /></svg>"))CODE
LOWtest/js/valkey/integration/complex-operations.test.ts191 await ctx.redis.set(`${baseKey}:name`, "John Doe");CODE
LOWtest/js/valkey/integration/complex-operations.test.ts219 expect(nameValue).toBe("John Doe");CODE
LOWtest/js/bun/test/expect.test.js3957 expect(`Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec nec posuere felis. Aliquam tincidunt elit a nCODE
LOWtest/js/bun/test/expect.test.js3957 expect(`Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec nec posuere felis. Aliquam tincidunt elit a nCODE
LOWtest/js/bun/test/expect.test.js3959 `Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec nec posuere felis. Aliquam tincidunt elit a nunc hCODE
LOWtest/js/bun/test/expect.test.js3959 `Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec nec posuere felis. Aliquam tincidunt elit a nunc hCODE
LOWtest/js/bun/test/jest-extended.test.js650 expect(`Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec nec posuere felis. Aliquam tincidunt elit a nCODE
LOWtest/js/bun/test/jest-extended.test.js650 expect(`Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec nec posuere felis. Aliquam tincidunt elit a nCODE
LOWtest/js/bun/test/jest-extended.test.js652 `Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec nec posuere felis. Aliquam tincidunt elit a nunc hCODE
LOWtest/js/bun/test/jest-extended.test.js652 `Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec nec posuere felis. Aliquam tincidunt elit a nunc hCODE
LOWtest/js/bun/test/fake-timers/sinonjs/issue-437.test.ts17 return "Lorem ipsum";CODE
LOWtest/js/bun/test/fake-timers/sinonjs/issue-437.test.ts24 assert.equals(dateTime.foo(), "Lorem ipsum");CODE
LOWtest/js/bun/http/bun-serve-routes.test.ts59 id: "user@example.com",CODE
LOWtest/js/bun/http/decodeURIComponentSIMD.test.ts21 "user@example.com",CODE
LOWtest/js/bun/http/request-smuggling.test.ts1427 ["user@example.com"],CODE
LOWtest/js/bun/md/spec-tables.txt142Lorem ipsum dolor sit amet.CODE
LOWtest/js/bun/md/spec-tables.txt142Lorem ipsum dolor sit amet.CODE
LOWtest/js/bun/md/spec-tables.txt149<p>Lorem ipsum dolor sit amet.</p>CODE
LOWtest/js/bun/md/spec-tables.txt149<p>Lorem ipsum dolor sit amet.</p>CODE
LOWtest/js/bun/md/spec-tables.txt170Lorem ipsum dolor sit amet.CODE
LOWtest/js/bun/md/spec-tables.txt170Lorem ipsum dolor sit amet.CODE
LOWtest/js/bun/md/spec-tables.txt180<tr><td>Lorem ipsum dolor sit amet.</td><td></td></tr>CODE
LOWtest/js/bun/md/spec-tables.txt180<tr><td>Lorem ipsum dolor sit amet.</td><td></td></tr>CODE
LOWtest/js/bun/md/spec.txt9453 "Lorem ipsum dolor\nsit amet."CODE
LOWtest/js/bun/md/spec.txt9512> Lorem ipsum dolorCODE
LOWtest/js/bun/md/spec.txt9527> Lorem ipsum dolorCODE
LOWtest/js/bun/md/spec.txt9539 "Lorem ipsum dolor"CODE
LOWtest/js/bun/md/spec.txt9555 "Lorem ipsum dolor\nsit amet."CODE
LOWtest/js/bun/md/spec.txt9573 "Lorem ipsum dolor\nsit amet."CODE
LOWtest/js/bun/md/spec.txt9595 "Lorem ipsum dolor\nsit amet."CODE
LOWtest/js/bun/md/spec.txt9618 str "Lorem ipsum dolor"CODE
LOWtest/js/third_party/next-auth/fixture/src/auth.ts44 if (credentials?.email === "user@example.com" && credentials?.password === "password") {CODE
LOWtest/js/third_party/next-auth/fixture/src/auth.ts47 email: "user@example.com",CODE
LOW…ird_party/body-parser/express-body-parser-test.test.ts82 expect(req.body).toEqual({ "name": "John Doe", "email": "john.doe@example.com" });CODE
LOW…ird_party/body-parser/express-body-parser-test.test.ts89 const payload = Buffer.from(JSON.stringify({ "name": "John Doe", "email": "john.doe@example.com" }));CODE
LOWtest/js/third_party/astro/astro-post.test.js74 formData.append("name", "John Doe");CODE
LOWtest/js/third_party/astro/astro-post.test.js87 name: "John Doe",CODE
LOW…/js/node/test/parallel/test-zlib-brotli-from-string.js8const inputString = 'ΩΩLorem ipsum dolor sit amet, consectetur adipiscing eli' +CODE
LOW…/js/node/test/parallel/test-zlib-brotli-from-string.js8const inputString = 'ΩΩLorem ipsum dolor sit amet, consectetur adipiscing eli' +CODE
LOWtest/js/node/test/parallel/test-zlib-truncated.js8const inputString = 'ΩΩLorem ipsum dolor sit amet, consectetur adipiscing eli' +CODE
LOWtest/js/node/test/parallel/test-zlib-truncated.js8const inputString = 'ΩΩLorem ipsum dolor sit amet, consectetur adipiscing eli' +CODE
LOWtest/js/node/test/parallel/test-zlib-from-string.js29const inputString = 'ΩΩLorem ipsum dolor sit amet, consectetur adipiscing eli' +CODE
LOWtest/js/node/test/parallel/test-zlib-from-string.js29const inputString = 'ΩΩLorem ipsum dolor sit amet, consectetur adipiscing eli' +CODE
77 more matches not shown…
Hallucination Indicators15 hits · 150 pts
SeverityFileLineSnippetContext
CRITICAL…mpiler-fixtures/readonly-object-method-calls.expect.md16 const posts = user.timeline.posts.edges.nodes.map(node => (CODE
CRITICAL…mpiler-fixtures/readonly-object-method-calls.expect.md45 posts = user.timeline.posts.edges.nodes.map(_temp);CODE
CRITICAL…/readonly-object-method-calls-mutable-lambda.expect.md17 const posts = user.timeline.posts.edges.nodes.map(node => {CODE
CRITICAL…/readonly-object-method-calls-mutable-lambda.expect.md46 const posts = user.timeline.posts.edges.nodes.map((node) => {CODE
CRITICAL…ixtures/readonly-object-method-calls-mutable-lambda.js13 const posts = user.timeline.posts.edges.nodes.map(node => {CODE
CRITICAL…eact-compiler-fixtures/readonly-object-method-calls.js12 const posts = user.timeline.posts.edges.nodes.map(node => (CODE
CRITICALsrc/install/PackageManager/runTasks.rs1098 task.request.local_tarball.tarball.url.slice()CODE
CRITICALsrc/install/PackageManager/security_scanner.rs176 let string_buf = self.manager.lockfile.buffers.string_bytes.as_slice();CODE
CRITICALsrc/install/PackageManager/security_scanner.rs207 let string_buf = self.manager.lockfile.buffers.string_bytes.as_slice();CODE
CRITICALsrc/install/PackageManager/security_scanner.rs707 let string_buf = self.manager.lockfile.buffers.string_bytes.as_slice();CODE
CRITICALsrc/runtime/cli/publish_command.rs910 bstr::BStr::new(if !ctx.manager.options.publish_config.tag.is_empty() {CODE
CRITICALsrc/runtime/cli/publish_command.rs942 if !ctx.manager.options.publish_config.otp.is_empty() {CODE
CRITICALsrc/runtime/cli/publish_command.rs2023 let tag: &[u8] = if !ctx.manager.options.publish_config.tag.is_empty() {CODE
CRITICALsrc/runtime/api/JSTranspiler.rs377 let Ok(Some(json)) = vm.transpiler.resolver.caches.json.parse_json(CODE
CRITICALsrc/js_parser/visit/visit_stmt.rs1138 let new_len = if !(data.is_export && p.options.features.replace_exports.entries.len() > 0) {CODE
Verbosity Indicators56 hits · 102 pts
SeverityFileLineSnippetContext
LOWtest/js/sql/sql.test.ts667 // Step 1: Insert a row (succeeds)COMMENT
LOWtest/js/sql/sql.test.ts673 // Step 2: Try to insert conflicting row (throws expected error)COMMENT
LOWtest/js/sql/sql.test.ts682 // Step 3: Try another query - THIS WILL HANGCOMMENT
LOWtest/regression/issue/tui-app-tty-pattern.test.ts25 // Step 1: Check if stdin is pipedCOMMENT
LOWtest/regression/issue/tui-app-tty-pattern.test.ts34 // Step 2: After stdin EOF, try to reopen /dev/ttyCOMMENT
LOWtest/bundler/bundler_compile.test.ts1018 // Step 2: Run bun build with compile, minify, sourcemap, and bytecodeCOMMENT
LOWscripts/packer/windows-x64.pkr.hcl98 // Step 1: Run bootstrap — installs all build dependenciesCOMMENT
LOWscripts/packer/windows-x64.pkr.hcl105 // Step 2: Upload agent.mjsCOMMENT
LOWscripts/packer/windows-x64.pkr.hcl111 // Step 3: Install agent service via nssmCOMMENT
LOWscripts/packer/windows-x64.pkr.hcl119 // Step 4: Reboot to clear pending updates (VS Build Tools, Windows Updates)COMMENT
LOWscripts/packer/windows-x64.pkr.hcl124 // Step 5: Sysprep — MUST be last provisionerCOMMENT
LOWscripts/packer/windows-arm64.pkr.hcl93 // Step 1: Run bootstrap — installs all build dependenciesCOMMENT
LOWscripts/packer/windows-arm64.pkr.hcl100 // Step 2: Upload agent.mjsCOMMENT
LOWscripts/packer/windows-arm64.pkr.hcl106 // Step 3: Install agent service via nssmCOMMENT
LOWscripts/packer/windows-arm64.pkr.hcl114 // Step 4: Reboot to clear pending updates (VS Build Tools, Windows Updates)COMMENT
LOWscripts/packer/windows-arm64.pkr.hcl119 // Step 5: Sysprep — MUST be last provisionerCOMMENT
LOWpackages/bun-uws/src/HttpContext.h335 /* First of all we need to check if this socket was deleted due to upgrade */COMMENT
LOWpackages/bun-uws/src/HttpContext.h440 /* We need to check if we should close this socket here now */COMMENT
LOWpackages/bun-uws/src/HttpResponse.h156 /* We need to check if we should close this socket here now */COMMENT
LOWpackages/bun-uws/src/HttpResponse.h222 /* We need to check if we should close this socket here now */COMMENT
LOWsrc/install/npm.rs1596 // stability check - if the previous package is blocked from age, we need to check if the current packagCOMMENT
LOWsrc/install/npm.rs1763 // stability check - if the previous package is blocked from age, we need to check if the current package waCOMMENT
LOWsrc/js/internal/streams/readable.ts1076 // We need to check if there is someone still listening toCOMMENT
LOWsrc/js/internal/streams/readable.ts1095 // We need to check if there is someone still listening toCOMMENT
LOWsrc/js/internal/sql/shared.ts1609 // Step 1: Determine the options object and initial URLCOMMENT
LOWsrc/js/internal/sql/shared.ts1662 // Step 3: Parse protocol and ensure URL format for non-SQLite databasesCOMMENT
LOWsrc/js/internal/sql/shared.ts1693 // Step 4: Set adapter from environment if not already set, but ONLY if notCOMMENT
LOWsrc/js/internal/sql/shared.ts1699 // Step 5: Return early if adapter is explicitly specifiedCOMMENT
LOWsrc/js/internal/sql/shared.ts1712 // Step 6: Infer adapter from protocolCOMMENT
LOW…react_compiler/inference/align_object_method_scopes.rs101 // Step 1: Merge affected scopes to their canonical root.COMMENT
LOW…react_compiler/inference/align_object_method_scopes.rs148 // Step 2: Repoint identifiers whose scopes were mergedCOMMENT
LOW…mpiler/inference/build_reactive_scope_terminals_hir.rs266 // Step 1: Collect rewritesCOMMENT
LOW…mpiler/inference/build_reactive_scope_terminals_hir.rs269 // Step 2: Apply rewrites by splitting blocksCOMMENT
LOW…mpiler/inference/build_reactive_scope_terminals_hir.rs333 // Step 3: Repoint phis when they refer to a rewritten blockCOMMENT
LOW…mpiler/inference/build_reactive_scope_terminals_hir.rs353 // Step 4: Fixup HIR to restore RPO, correct predecessors, renumber instructionsCOMMENT
LOW…mpiler/inference/build_reactive_scope_terminals_hir.rs358 // Step 5: Fix scope and identifier ranges to account for renumbered instructionsCOMMENT
LOW…compiler/inference/propagate_scope_dependencies_hir.rs92 // Step 2: Calculate hoistable dependencies using the tree.COMMENT
LOW…compiler/inference/propagate_scope_dependencies_hir.rs98 // Step 3: Reduce dependencies to a minimal set.COMMENT
LOW…compiler/inference/propagate_scope_dependencies_hir.rs1028 // Step 1: Collect identifier to function expression mappingsCOMMENT
LOW…compiler/inference/propagate_scope_dependencies_hir.rs1056 // Step 2: Forward pass to analyze assumed function callsCOMMENT
LOW…compiler/inference/propagate_scope_dependencies_hir.rs1129 // Step 3: Propagate assumed-invoked status through mayInvoke chainsCOMMENT
LOWsrc/runtime/api/bun/js_bun_spawn_bindings.rs355 // Since the event loop is recursively called, we need to check if it's safe to recurse.COMMENT
LOWsrc/runtime/valkey_jsc/js_valkey.rs1830 // If we're disconnected, we need to check if we have any pending activity.COMMENT
LOWsrc/threading/channel.rs196 // we need to check if the buffer is empty before trying to read an item.COMMENT
LOWsrc/jsc/bindings/NodeVM.cpp1473 // Step 1: Argument validationCOMMENT
LOWsrc/jsc/bindings/NodeVM.cpp1514 // Step 3: Create a new functionCOMMENT
LOWsrc/jsc/bindings/BunHeapProfiler.cpp281 // Step 1: Build post-order indexes via DFS from root (node 0)COMMENT
LOWsrc/jsc/bindings/BunHeapProfiler.cpp363 // Step 2: Build dominator tree using Cooper-Harvey-Kennedy algorithmCOMMENT
LOWsrc/jsc/bindings/BunHeapProfiler.cpp481 // Step 3: Calculate retained sizes by attributing size up the dominator treeCOMMENT
LOWsrc/bundler/linker_context/scanImportsAndExports.rs131 // Step 1: Figure out what modules must be CommonJSCOMMENT
LOWsrc/bundler/linker_context/scanImportsAndExports.rs291 // Step 2: Propagate dynamic export status for export star statements thatCOMMENT
LOWsrc/bundler/linker_context/scanImportsAndExports.rs351 // Step 3: Resolve "export * from" statements. This must be done after weCOMMENT
LOWsrc/bundler/linker_context/scanImportsAndExports.rs405 // Step 4: Match imports with exports. This must be done after we process allCOMMENT
LOWsrc/bundler/linker_context/scanImportsAndExports.rs477 // Step 5: Create namespace exports for every file. This is always necessaryCOMMENT
LOWsrc/bundler/linker_context/scanImportsAndExports.rs527 // Step 6: Bind imports to exports. This adds non-local dependencies on theCOMMENT
LOWsrc/bundler/linker_context/doStep5.rs30 /// Step 5: Create namespace exports for every file. This is always necessaryCOMMENT
Structural Annotation Overuse48 hits · 90 pts
SeverityFileLineSnippetContext
LOWtest/js/sql/sql.test.ts667 // Step 1: Insert a row (succeeds)COMMENT
LOWtest/js/sql/sql.test.ts673 // Step 2: Try to insert conflicting row (throws expected error)COMMENT
LOWtest/js/sql/sql.test.ts682 // Step 3: Try another query - THIS WILL HANGCOMMENT
LOWtest/regression/issue/tui-app-tty-pattern.test.ts25 // Step 1: Check if stdin is pipedCOMMENT
LOWtest/regression/issue/tui-app-tty-pattern.test.ts34 // Step 2: After stdin EOF, try to reopen /dev/ttyCOMMENT
LOWtest/bundler/bundler_compile.test.ts1018 // Step 2: Run bun build with compile, minify, sourcemap, and bytecodeCOMMENT
LOWscripts/packer/windows-x64.pkr.hcl98 // Step 1: Run bootstrap — installs all build dependenciesCOMMENT
LOWscripts/packer/windows-x64.pkr.hcl105 // Step 2: Upload agent.mjsCOMMENT
LOWscripts/packer/windows-x64.pkr.hcl111 // Step 3: Install agent service via nssmCOMMENT
LOWscripts/packer/windows-x64.pkr.hcl119 // Step 4: Reboot to clear pending updates (VS Build Tools, Windows Updates)COMMENT
LOWscripts/packer/windows-x64.pkr.hcl124 // Step 5: Sysprep — MUST be last provisionerCOMMENT
LOWscripts/packer/windows-arm64.pkr.hcl93 // Step 1: Run bootstrap — installs all build dependenciesCOMMENT
LOWscripts/packer/windows-arm64.pkr.hcl100 // Step 2: Upload agent.mjsCOMMENT
LOWscripts/packer/windows-arm64.pkr.hcl106 // Step 3: Install agent service via nssmCOMMENT
LOWscripts/packer/windows-arm64.pkr.hcl114 // Step 4: Reboot to clear pending updates (VS Build Tools, Windows Updates)COMMENT
LOWscripts/packer/windows-arm64.pkr.hcl119 // Step 5: Sysprep — MUST be last provisionerCOMMENT
LOWpackages/bun-lambda/README.md21### Step 1: Create a Bun Lambda handler functionCOMMENT
LOWpackages/bun-lambda/README.md58### Step 2: Build the Bun handlerCOMMENT
LOWpackages/bun-lambda/README.md65### Step 3: Create the Lambda function on AWSCOMMENT
LOWsrc/js/internal/sql/shared.ts1609 // Step 1: Determine the options object and initial URLCOMMENT
LOWsrc/js/internal/sql/shared.ts1662 // Step 3: Parse protocol and ensure URL format for non-SQLite databasesCOMMENT
LOWsrc/js/internal/sql/shared.ts1693 // Step 4: Set adapter from environment if not already set, but ONLY if notCOMMENT
LOWsrc/js/internal/sql/shared.ts1699 // Step 5: Return early if adapter is explicitly specifiedCOMMENT
LOWsrc/js/internal/sql/shared.ts1712 // Step 6: Infer adapter from protocolCOMMENT
LOW…react_compiler/inference/align_object_method_scopes.rs101 // Step 1: Merge affected scopes to their canonical root.COMMENT
LOW…react_compiler/inference/align_object_method_scopes.rs148 // Step 2: Repoint identifiers whose scopes were mergedCOMMENT
LOW…mpiler/inference/build_reactive_scope_terminals_hir.rs266 // Step 1: Collect rewritesCOMMENT
LOW…mpiler/inference/build_reactive_scope_terminals_hir.rs269 // Step 2: Apply rewrites by splitting blocksCOMMENT
LOW…mpiler/inference/build_reactive_scope_terminals_hir.rs333 // Step 3: Repoint phis when they refer to a rewritten blockCOMMENT
LOW…mpiler/inference/build_reactive_scope_terminals_hir.rs353 // Step 4: Fixup HIR to restore RPO, correct predecessors, renumber instructionsCOMMENT
LOW…mpiler/inference/build_reactive_scope_terminals_hir.rs358 // Step 5: Fix scope and identifier ranges to account for renumbered instructionsCOMMENT
LOW…compiler/inference/propagate_scope_dependencies_hir.rs92 // Step 2: Calculate hoistable dependencies using the tree.COMMENT
LOW…compiler/inference/propagate_scope_dependencies_hir.rs98 // Step 3: Reduce dependencies to a minimal set.COMMENT
LOW…compiler/inference/propagate_scope_dependencies_hir.rs1028 // Step 1: Collect identifier to function expression mappingsCOMMENT
LOW…compiler/inference/propagate_scope_dependencies_hir.rs1056 // Step 2: Forward pass to analyze assumed function callsCOMMENT
LOW…compiler/inference/propagate_scope_dependencies_hir.rs1129 // Step 3: Propagate assumed-invoked status through mayInvoke chainsCOMMENT
LOWsrc/jsc/bindings/NodeVM.cpp1473 // Step 1: Argument validationCOMMENT
LOWsrc/jsc/bindings/NodeVM.cpp1514 // Step 3: Create a new functionCOMMENT
LOWsrc/jsc/bindings/BunHeapProfiler.cpp281 // Step 1: Build post-order indexes via DFS from root (node 0)COMMENT
LOWsrc/jsc/bindings/BunHeapProfiler.cpp363 // Step 2: Build dominator tree using Cooper-Harvey-Kennedy algorithmCOMMENT
LOWsrc/jsc/bindings/BunHeapProfiler.cpp481 // Step 3: Calculate retained sizes by attributing size up the dominator treeCOMMENT
LOWsrc/bundler/linker_context/scanImportsAndExports.rs131 // Step 1: Figure out what modules must be CommonJSCOMMENT
LOWsrc/bundler/linker_context/scanImportsAndExports.rs291 // Step 2: Propagate dynamic export status for export star statements thatCOMMENT
LOWsrc/bundler/linker_context/scanImportsAndExports.rs351 // Step 3: Resolve "export * from" statements. This must be done after weCOMMENT
LOWsrc/bundler/linker_context/scanImportsAndExports.rs405 // Step 4: Match imports with exports. This must be done after we process allCOMMENT
LOWsrc/bundler/linker_context/scanImportsAndExports.rs477 // Step 5: Create namespace exports for every file. This is always necessaryCOMMENT
LOWsrc/bundler/linker_context/scanImportsAndExports.rs527 // Step 6: Bind imports to exports. This adds non-local dependencies on theCOMMENT
LOWsrc/bundler/linker_context/doStep5.rs30 /// Step 5: Create namespace exports for every file. This is always necessaryCOMMENT
AI Slop Vocabulary31 hits · 86 pts
SeverityFileLineSnippetContext
MEDIUMbench/react-hello-world/react-hello-world.workerd.js16var iC=Object.create;var{getPrototypeOf:tC,defineProperty:XE,getOwnPropertyNames:JC}=Object;var VC=Object.prototype.hasOCODE
MEDIUMbench/react-hello-world/react-hello-world.workerd.js16var iC=Object.create;var{getPrototypeOf:tC,defineProperty:XE,getOwnPropertyNames:JC}=Object;var VC=Object.prototype.hasOCODE
MEDIUMbench/react-hello-world/react-hello-world.workerd.js42$RC=function(a,b){if(b=document.getElementById(b))(a=document.getElementById(a))?(a.previousSibling.data="$~",$RB.push(aCODE
MEDIUMbench/react-hello-world/react-hello-world.workerd.js42$RC=function(a,b){if(b=document.getElementById(b))(a=document.getElementById(a))?(a.previousSibling.data="$~",$RB.push(aCODE
MEDIUMtest/js/web/structured-clone-blob-file.test.ts379 // payload; keeps the test robust against wire-format header changes.COMMENT
MEDIUMtest/js/web/structured-clone-blob-file.test.ts663 // test stays robust against outer serializer framing changes.COMMENT
MEDIUM…/node/test/parallel/test-timers-unrefed-in-callback.js14// robust is that:COMMENT
MEDIUM…st/js/node/test/parallel/test-http2-session-timeout.js50 // connection as the timeout should be robust. Double it anyway for goodCOMMENT
MEDIUMtest/cli/install/registry/verdaccio.yaml3# please read carefully the documentation and best practices toCOMMENT
MEDIUMtest/cli/install/registry/verdaccio.yaml9# Read about the best practicesCOMMENT
MEDIUMscripts/bootstrap.sh1791 # test/harness.ts getPuppeteerInstallEnv).COMMENT
MEDIUMpackages/h3blast/src/h3blast.c790 // Rewind and erase the previous frame in one shot — robust to wrapped lines.COMMENT
MEDIUMsrc/js/internal/http.ts149// TODO: make this more robust.COMMENT
MEDIUMsrc/js/node/http2.ts2375 // seamless compatibility with http1COMMENT
MEDIUMsrc/bun_core/env_var.rs13//! but environment variables are not meant to be a robust configuration mechanism. If you do thinkCOMMENT
MEDIUMsrc/bun_core/env_var.rs460 /// Note that deserialization errors cannot panic. If you need more robust means ofCOMMENT
MEDIUMsrc/react_compiler/Cargo.toml10# Fixture-harness support: test-only `// @pragma` parsing, the pragma-gatedCOMMENT
MEDIUM…c/react_compiler/optimization/dead_code_elimination.rs404 // Definitely safe to prune since they are read-onlyCOMMENT
MEDIUMsrc/runtime/shell/interpreter.rs7//! performance reasons and also to leverage Bun's existing IO/FS codeCOMMENT
MEDIUMsrc/runtime/allocators/LinuxMemFdAllocator.rs2//! leverage copy-on-write memory to avoid actually copying the data. To do thatCOMMENT
MEDIUMsrc/runtime/bake/FrameworkRouter.rs1273 /// Fast enough for development to be seamless, but avoids building aCOMMENT
MEDIUMsrc/runtime/bake/dev_server/source_map_store.rs381 /// utilize the bottom 32 bits of their keys. This is because the bottomCOMMENT
MEDIUMsrc/runtime/bake/bun-framework-react/server.tsx194 // The RSC payload is provided so client-side can use this file for seamlessCOMMENT
MEDIUMsrc/runtime/socket/WindowsNamedPipe.rs6//! and Windows Named Pipe operations, enabling seamless cross-platformCOMMENT
MEDIUMsrc/sys/windows/mod.rs1969 /// The Kerberos protocol encountered an error while attempting to utilize the smartcard subsystem.COMMENT
MEDIUMsrc/ast/expr.rs3032 break 'brk left; // Definitely not null or undefinedCODE
MEDIUMsrc/ast/expr.rs3036 break 'brk PrimitiveType::Mixed; // Definitely some kind of primitiveCODE
MEDIUMsrc/crash_handler/lib.rs2052 // https://github.com/go-delve/delve/pull/1384COMMENT
MEDIUMsrc/jsc/bindings/js_classes.ts3 // tests if a value is an instanceof a native class in a robust cross-realm mannerCOMMENT
MEDIUMsrc/jsc/bindings/ScriptExecutionContext.h86 // used for things that utilize the same structure clone algorithm, for example, message passing betweenCOMMENT
MEDIUMsrc/router/Cargo.toml40# Test harness (Test::make / Test::make_routes) needs the AST stores.COMMENT
Modern AI Meta-Vocabulary7 hits · 28 pts
SeverityFileLineSnippetContext
MEDIUMsrc/runtime/api.rs212// ─── shared scaffold for Bun.{TOML,JSONC,JSON5,YAML}.parse ───────────────────COMMENT
MEDIUMsrc/runtime/api.rs217// (c) parse-error class + Expr→JS tail — so this helper owns ONLY the scaffoldCOMMENT
MEDIUMsrc/runtime/test_runner/expect.rs1728 /// the matcher-scaffold family alongside [`Self::run_unary_predicate`] andCOMMENT
MEDIUMsrc/runtime/test_runner/expect.rs1997// ─── unary-predicate matcher scaffold ────────────────────────────────────COMMENT
MEDIUMsrc/runtime/test_runner/expect.rs2002 /// Shared scaffold for zero-arg `expect(v).toBeX()` matchers whose pass/failCOMMENT
MEDIUMsrc/runtime/test_runner/expect.rs2030 /// Shared scaffold for one-arg `expect(v).toStartWith/toEndWith/toInclude(expected)`COMMENT
MEDIUMsrc/runtime/timer/mod.rs34// Shared scaffold for `TimeoutObject` / `ImmediateObject`: both are aCOMMENT
Redundant / Tautological Comments14 hits · 16 pts
SeverityFileLineSnippetContext
LOWtest/js/bun/shell/bunshell.test.ts1740 # Check if we got a non-empty, non-null version stringCOMMENT
LOWtest/js/bun/yaml/translate_yaml_test_suite_to_bun.py83 # Check if this is a stringified collection from yaml packageCOMMENT
LOWtest/js/bun/yaml/translate_yaml_test_suite_to_bun.py168 # Check if this is a simple objectCOMMENT
LOWtest/js/bun/yaml/translate_yaml_test_suite_to_bun.py837 # Check if it's in an array contextCOMMENT
LOWtest/js/bun/yaml/translate_yaml_test_suite_to_bun.py841 # Check if it's in mapping values (not keys)COMMENT
LOWtest/js/bun/yaml/translate_yaml_test_suite_to_bun.py465 # Check if this is an error test (has 'error' file)STRING
LOWtest/js/bun/yaml/translate_yaml_test_suite_to_bun.py699 # Check if YAML has anchors/aliasesSTRING
LOWtest/js/bun/yaml/translate_yaml_test_suite_to_bun.py914 # Check if yaml package is installed (for getting expected values)STRING
LOWtest/js/bun/yaml/translate_yaml_test_suite_to_bun.py939 # Check if this is a test directory (has in.yaml)STRING
LOWscripts/lldb-inline.sh11# Check if we need to rebuildCOMMENT
LOWpackages/bun-types/test.d.ts72 * ## Set Date to a specific timeCOMMENT
LOWmisctools/lldb/bun_pretty_printer.py75 # Check if it's a pointer type and dereference if neededCOMMENT
LOWmisctools/lldb/bun_pretty_printer.py85 # Check if it's 8-bit (latin1) or 16-bit (utf16) stringCOMMENT
LOW.buildkite/Dockerfile-bootstrap.sh4# Check if running as rootCOMMENT
Cross-Language Confusion2 hits · 15 pts
SeverityFileLineSnippetContext
HIGHtest/js/bun/yaml/translate_yaml_test_suite_to_bun.py87 # Extract the content and convert to JS array.toString() formatCOMMENT
HIGHtest/js/bun/yaml/translate_yaml_test_suite_to_bun.py104 # JavaScript Object.toString() returns "[object Object]"COMMENT
Synthetic Comment Markers2 hits · 15 pts
SeverityFileLineSnippetContext
HIGHtest/js/node/test/sequential/test-init.js52 // test-init-index is in fixtures dir as requested by ry, so go thereCOMMENT
HIGHsrc/jsc/bindings/DecodeEscapeSequences.h172 // Strings are encoded as requested.COMMENT
TODO Padding11 hits · 14 pts
SeverityFileLineSnippetContext
LOWtest/js/node/url/url-null-char.test.js6 // TODO: Fix error propertiesCOMMENT
LOWtest/bake/dev/esm.test.ts260 const esmImport = await import('./esm'); // TODO: implement sync ESMCODE
LOWsrc/js/thirdparty/ws.js1115 // TODO: implement this more properCOMMENT
LOWsrc/runtime/cli/run_command.rs380 let ipc_fd: Option<bun_sys::Fd> = None; // TODO: implement on WindowsCODE
LOWsrc/runtime/bake/DevServer.rs2099 // TODO: implement a proper solution hereCOMMENT
LOWsrc/runtime/bake/dev_server/mod.rs1403 // TODO: implement that. for now it ignores (BUN-10968)COMMENT
LOWsrc/runtime/webcore/Blob.rs5191 // TODO: implement a writev() fast pathCOMMENT
LOWsrc/codegen/replacements.ts111// TODO: implement this check.COMMENT
LOWsrc/ast/fold_string_addition.rs155 // TODO: implement foldAdditionPreProcess to fold some more things :)COMMENT
LOWsrc/js_parser/lexer.rs2667 // TODO: implement thisCOMMENT
LOWsrc/js_parser/parse/mod.rs929 // TODO: implement saveExprCommentsHere and use using_loc hereCOMMENT
Deep Nesting10 hits · 10 pts
SeverityFileLineSnippetContext
LOWtest/js/bun/yaml/translate_yaml_test_suite_to_bun.py12CODE
LOWtest/js/bun/yaml/translate_yaml_test_suite_to_bun.py59CODE
LOWtest/js/bun/yaml/translate_yaml_test_suite_to_bun.py124CODE
LOWtest/js/bun/yaml/translate_yaml_test_suite_to_bun.py197CODE
LOWtest/js/bun/yaml/translate_yaml_test_suite_to_bun.py437CODE
LOWtest/js/bun/yaml/translate_yaml_test_suite_to_bun.py899CODE
LOWmisctools/lldb/lldb_webkit.py1179CODE
LOWmisctools/lldb/bun_pretty_printer.py70CODE
LOWmisctools/lldb/bun_pretty_printer.py167CODE
LOWmisctools/lldb/bun_pretty_printer.py247CODE
Slop Phrases6 hits · 9 pts
SeverityFileLineSnippetContext
MEDIUMtest/js/web/fetch/fixture.html1115 bun implements Node.js&#x27; module resolution algorithm, so you can use npm packages in Bun. ESM andCODE
LOWtest/js/bun/css/files/tachyons.css692 2. Don't forget to clearfix your floats with .cfCODE
LOWpackages/bun-usockets/src/internal/internal.h101#define POLL_TYPE_BITSIZE 5 // make sure to update epoll_kqueue.h if you change thisCOMMENT
LOWpackages/bun-usockets/src/internal/loop_data.h35// IMPORTANT: When changing this, don't forget to update the Rust mirror in src/uws_sys/InternalLoopData.rs as well!COMMENT
LOWsrc/sql_jsc/postgres/PostgresSQLConnection.rs2408 // explicit use switch without else so if new modes are added, we don't forget to check for duplicate fiCOMMENT
LOWsrc/jsc/bindings/sqlite/JSSQLStatement.cpp2357 // Don't forget to reset before releasing the exception.COMMENT
AI Response Leakage1 hit · 8 pts
SeverityFileLineSnippetContext
HIGHsrc/zlib/lib.rs130 /// In this implementation, inflate() always flushes as much output as possible to the output buffer, and always useCOMMENT
Overly Generic Function Names6 hits · 6 pts
SeverityFileLineSnippetContext
LOWtest/js/third_party/remix/remix-build/server/index.js8function handleRequest(request, responseStatusCode, responseHeaders, remixContext, loadContext) {CODE
LOW…st/js/node/test/parallel/test-http2-ip-address-host.js34 function handleRequest(url) {CODE
LOWtest/bake/dev/hot.test.ts70 export function doSomething() {CODE
LOWtest/bake/dev/server-sourcemap.test.ts125 "lib/utils.ts": `export function doSomething() {CODE
LOWtest/regression/issue/25648.test.ts15export function doSomething(fn: () => number) {CODE
LOWtest/bundler/bundler_edgecase.test.ts2648 export function getData() {CODE
Excessive Try-Catch Wrapping7 hits · 5 pts
SeverityFileLineSnippetContext
MEDIUMtest/js/bun/yaml/translate_yaml_test_suite_to_bun.py929 print("Error: yaml package is not installed. Please run: npm install yaml")STRING
LOWtest/js/bun/yaml/translate_yaml_test_suite_to_bun.py431 except Exception as e:STRING
LOWtest/js/bun/yaml/translate_yaml_test_suite_to_bun.py1025 except Exception as e:STRING
LOWtest/js/bun/yaml/translate_yaml_test_suite_to_bun.py1072 except Exception as e:STRING
LOWtest/js/bun/yaml/translate_yaml_test_suite_to_bun.py1117 except Exception as e:STRING
LOWmisctools/lldb/bun_pretty_printer.py302 except Exception as e:CODE
MEDIUMmisctools/lldb/bun_pretty_printer.py43def bun_BabyList_SummaryProvider(value, _=None):CODE
Example Usage Blocks3 hits · 4 pts
SeverityFileLineSnippetContext
LOWscripts/sync-react-compiler.sh14# Usage:COMMENT
LOWscripts/update-sqlite-amalgamation.sh8# Usage:COMMENT
LOWmisctools/unicode-generator.ts119// Example usage:COMMENT
Self-Referential Comments1 hit · 3 pts
SeverityFileLineSnippetContext
MEDIUMtest/js/bun/yaml/translate_yaml_test_suite_to_bun.py384 # Create a temporary JavaScript file to parse the YAMLCOMMENT
Unused Imports3 hits · 3 pts
SeverityFileLineSnippetContext
LOWtest/js/bun/yaml/translate_yaml_test_suite_to_bun.py6CODE
LOWtest/js/node/readline/run-with-pty.py5CODE
LOWmisctools/lldb/bun_pretty_printer.py3CODE
AI Structural Patterns1 hit · 1 pts
SeverityFileLineSnippetContext
LOWmisctools/lldb/lldb_webkit.py648CODE