Repository Analysis

cloudflare/workerd

The JavaScript / Wasm runtime that powers Cloudflare Workers

3.8 Likely human-written View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of cloudflare/workerd, a C++ project with 8,649 GitHub stars. SynthScan v2.0 examined 490,093 lines of code across 1640 source files, recording 1658 pattern matches distributed across 21 syntactic categories. The overall adjusted score of 3.8 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).

3.8
Adjusted Score
3.8
Raw Score
100%
Time Factor
2026-08-28
Last Push
8.6K
Stars
C++
Language
490.1K
Lines of Code
1.6K
Files
1.7K
Pattern Hits
2026-08-29
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 4HIGH 10MEDIUM 45LOW 1599

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 1658 distinct pattern matches across 21 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 Block1265 hits · 1222 pts
SeverityFileLineSnippetContext
LOWtools/clang-tidy/unsafe-continuation-capture.h1#pragma onceCOMMENT
LOWtools/clang-tidy/unsafe-continuation-capture.h21// - `kj::WeakRef<T>` / `jsg::WeakRef<T>` -- if the continuation shouldCOMMENT
LOWtools/clang-tidy/promise-ignore-result.h1#pragma onceCOMMENT
LOWtools/clang-tidy/visit-for-gc.h1// Copyright (c) 2017-2022 Cloudflare, Inc.COMMENT
LOWtools/clang-tidy/visit-for-gc.h21//COMMENT
LOWtools/unix/apply-big-move.sh1#! /bin/bashCOMMENT
LOWtypes/test/types/rpc.ts941 expectTypeOf(error).toEqualTypeOf<Error>();COMMENT
LOWtypes/generated-snapshot/index.ts15481 // Type for method return or property on an RPC interface.COMMENT
LOWtypes/generated-snapshot/index.ts15521 // Type of `env`.COMMENT
LOWtypes/generated-snapshot/index.ts15541 // // thus should behave as Durable Object namsepace bindings.COMMENT
LOWtypes/generated-snapshot/index.d.ts15341// https://developers.cloudflare.com/pub-sub/COMMENT
LOWtypes/generated-snapshot/index.d.ts15561 //COMMENT
LOWtypes/generated-snapshot/index.d.ts16901 // for Onset and SpanOpen events this would be the parent span idCOMMENT
LOWtypes/generated-snapshot/experimental/index.ts15581// PubSubMessage represents an incoming PubSub message.COMMENT
LOWtypes/generated-snapshot/experimental/index.ts15801 // You can use `wrangler types` to generate the `Env` type automatically.COMMENT
LOWtypes/generated-snapshot/experimental/index.ts17121 | ExceptionCOMMENT
LOWtypes/generated-snapshot/experimental/index.d.ts15621 readonly broker: string;COMMENT
LOWtypes/generated-snapshot/experimental/index.d.ts15821 {COMMENT
LOWtypes/generated-snapshot/experimental/index.d.ts15841 //COMMENT
LOWtypes/generated-snapshot/experimental/index.d.ts17161 | SpanCloseCOMMENT
LOWtypes/defines/trace.d.ts201 | ExceptionCOMMENT
LOWtypes/defines/pubsub.d.ts1// PubSubMessage represents an incoming PubSub message.COMMENT
LOWtypes/defines/rpc.d.ts121 // Everything else can't be passed over PRC.COMMENT
LOWtypes/defines/rpc.d.ts161COMMENT
LOWtypes/defines/rpc.d.ts181 // mainModule: typeof import("my-main-module");COMMENT
LOWtypes/defines/disposable.d.ts1// `Disposable` was added to TypeScript's standard lib types in version 5.2.COMMENT
LOWtypes/src/transforms/import-resolve.ts1// Copyright (c) 2022-2023 Cloudflare, Inc.COMMENT
LOWtypes/src/transforms/import-resolve.ts21//COMMENT
LOWtypes/src/transforms/import-resolve.ts41// const _default: {COMMENT
LOWtypes/src/transforms/iterators.ts1// Copyright (c) 2022-2023 Cloudflare, Inc.COMMENT
LOWtypes/src/transforms/iterators.ts21// export interface ThingIteratorNext {COMMENT
LOWtypes/src/transforms/importable.ts1// Copyright (c) 2022-2023 Cloudflare, Inc.COMMENT
LOWtypes/src/transforms/ambient.ts1// Copyright (c) 2022-2023 Cloudflare, Inc.COMMENT
LOWtypes/src/transforms/globals.ts1// Copyright (c) 2022-2023 Cloudflare, Inc.COMMENT
LOWtypes/src/transforms/globals.ts21// btoa(value: string): string;COMMENT
LOWtypes/src/transforms/internal-namespace.ts1// Copyright (c) 2022-2023 Cloudflare, Inc.COMMENT
LOWtypes/src/transforms/internal-namespace.ts21// readonly property: boolean;COMMENT
LOWtypes/src/transforms/internal-namespace.ts41// function bindStore(store: AsyncLocalStorage, ...): void;COMMENT
LOWtypes/src/transforms/overrides/index.ts21// `compileOverridesDefines()` must be used to compile overrides and definesCOMMENT
LOWtypes/src/transforms/overrides/index.ts41// get(key: string, type: "text"): Promise<string | null>;COMMENT
LOWtypes/src/transforms/overrides/compiler.ts21): [compiled: string, isReplacement: boolean] {COMMENT
LOWsamples/tcp/gopher.js1// Copyright (c) 2022-2023 Cloudflare, Inc.COMMENT
LOW…les/nodejs-compat-fs-graceful/graceful-fs/polyfills.js321 if (stats.uid < 0) stats.uid += 0x100000000COMMENT
LOWsamples/durable-objects-chat/chat.js1// Copyright (c) 2022-2023 Cloudflare, Inc.COMMENT
LOWsamples/durable-objects-chat/chat.js21// exporting a new handler that call into the other Workers as appropriate.COMMENT
LOWsamples/durable-objects-chat/chat.js41//COMMENT
LOWsamples/durable-objects-chat/chat.js61// in .html should be uploaded as "Data", equivalent to content-type `application/octet-stream`.COMMENT
LOWsamples/durable-objects-chat/chat.js141 // "anyone with the link can access" sharing. Additionally, IDs generated this way haveCOMMENT
LOWsamples/durable-objects-chat/chat.js181 }COMMENT
LOWsamples/durable-objects-chat/chat.js441// =======================================================================================COMMENT
LOWsamples/durable-objects-chat/chat.js521 // we have to provide a dummy URL that will be ignored at the other end anyway.COMMENT
LOWnpm/lib/node-platform.ts141 //COMMENT
LOWnpm/lib/node-install.ts181 else fs.unlinkSync(entryPath);COMMENT
LOWnpm/lib/node-install.ts201 // Docker. Avoid idempotency issues by just not optimizing when using Yarn.COMMENT
LOWnpm/lib/node-shim.ts1#!/usr/bin/env nodeCOMMENT
LOWsrc/workerd/util/sqlite-metadata.h1// Copyright (c) 2024 Cloudflare, Inc.COMMENT
LOWsrc/workerd/util/string-buffer.h1// Copyright (c) 2023 Cloudflare, Inc.COMMENT
LOWsrc/workerd/util/batch-queue.h1// Copyright (c) 2017-2022 Cloudflare, Inc.COMMENT
LOWsrc/workerd/util/batch-queue.h21// When the RAII object is destroyed, it resets the size and capacity of the pop buffer.COMMENT
LOWsrc/workerd/util/batch-queue.h61 }COMMENT
1205 more matches not shown…
Hyper-Verbose Identifiers178 hits · 192 pts
SeverityFileLineSnippetContext
LOWtypes/test/generator/index.spec.ts20function initAsReferencableTypesGroup(CODE
LOWtypes/test/transforms/overrides/index.spec.ts19function printDefinitionsWithOverrides(root: StructureGroups): string {CODE
LOWtypes/src/generator/structure.ts49function createIteratorMethodPartial(CODE
LOWtypes/src/generator/structure.ts66function createInstancePropertyPartial(CODE
LOWtypes/src/generator/structure.ts148function createInterfaceMemberNode(CODE
LOWtypes/src/generator/structure.ts220function createIteratorInterfaceMemberNode(CODE
LOWtypes/src/generator/structure.ts326function createIteratorClassMemberNode(CODE
LOWtypes/src/generator/type.ts139export function createParamDeclarationNodes(CODE
LOWtypes/src/transforms/comments.ts15export function createCommentsTransformer(CODE
LOWtypes/src/transforms/helpers.ts52function ensureModifierRequirements(CODE
LOWtypes/src/transforms/onmessage-declaration.ts7export function createAddOnMessageDeclarationTransformer(): ts.TransformerFactory<ts.SourceFile> {CODE
LOWtypes/src/transforms/import-resolve.ts53export function createImportResolveTransformer(): ts.TransformerFactory<ts.SourceFile> {CODE
LOWtypes/src/transforms/import-resolve.ts81function createImportResolveVisitor(ctx: ts.TransformationContext): ts.Visitor {CODE
LOWtypes/src/transforms/import-resolve.ts102function createModuleImportResolveVisitor(CODE
LOWtypes/src/transforms/iterators.ts45export function createIteratorTransformer(CODE
LOWtypes/src/transforms/iterators.ts71function createIteratorDeclarationsVisitor(CODE
LOWtypes/src/transforms/iterators.ts183function createIteratorUsagesVisitor(CODE
LOWtypes/src/transforms/importable.ts23export function createImportableTransformer(): ts.TransformerFactory<ts.SourceFile> {CODE
LOWtypes/src/transforms/class-to-interface.ts36export function createClassToInterfaceTransformer(CODE
LOWtypes/src/transforms/class-to-interface.ts64function transformClassToInterface(CODE
LOWtypes/src/transforms/class-to-interface.ts78function createInterfaceDeclaration(CODE
LOWtypes/src/transforms/class-to-interface.ts126function transformClassMemberToInterface(CODE
LOWtypes/src/transforms/class-to-interface.ts236function createGetAccessorSignature(CODE
LOWtypes/src/transforms/class-to-interface.ts269function createVariableDeclaration(CODE
LOWtypes/src/transforms/globals.ts38export function createGlobalScopeTransformer(CODE
LOWtypes/src/transforms/internal-namespace.ts68export function createInternalNamespaceTransformer(CODE
LOWtypes/src/transforms/internal-namespace.ts84function collectInternalModuleStructures(CODE
LOWtypes/src/transforms/internal-namespace.ts99function createInternalNamespaceVisitor(CODE
LOWtypes/src/transforms/overrides/index.ts61export function createOverrideDefineTransformer(CODE
LOWtypes/src/transforms/overrides/index.ts300function createOverrideDefineVisitor(CODE
LOWci/v8_update.py87def _update_aligned_dependencies():CODE
LOWci/jsonc.py319 def test_comments_trailing_the_document_move_inside(self):CODE
LOWci/jsonc.py327 def test_comment_in_empty_container(self):CODE
LOWci/jsonc.py331 def test_blank_lines_are_dropped(self):CODE
LOWci/jsonc.py356 def test_comments_are_not_found_in_strings(self):CODE
LOWci/jsonc.py362 def test_scalar_and_empty_documents(self):CODE
LOWci/jsonc.py370 def test_plain_data_matches_json(self):CODE
LOWci/jsonc.py395 def test_non_ascii_is_literal(self):CODE
LOWci/jsonc.py398 def test_comments_on_absent_members_are_ignored(self):CODE
LOWci/jsonc.py402 def test_dump_appends_newline(self):CODE
LOWci/jsonc.py409 def test_position_ignores_comments(self):CODE
LOWci/jsonc.py414 def test_block_comments_are_rejected(self):CODE
LOWci/jsonc.py417 def test_trailing_commas_are_rejected(self):CODE
LOWfuzzilli/analytics-mock.js5function getChaoticAnalyticsResponse() {CODE
LOWsamples/web-streams/streams-util.js69export function createSyncLoremByteStream(numChunks) {CODE
LOWsamples/web-streams/streams-util.js86export function createAsyncLoremByteStream(numChunks) {CODE
LOWsamples/web-streams/streams-util.js104export function createSyncUppercaseTransform() {CODE
LOWsamples/web-streams/streams-util.js123export function createAsyncUppercaseTransform() {CODE
LOWnpm/lib/node-platform.ts26export function pkgAndSubpathForCurrentPlatform(): {CODE
LOWsrc/workerd/server/tests/python/asgi/worker.py158async def test_error_after_response_is_logged(env):CODE
LOWsrc/workerd/server/tests/python/asgi/worker.py189async def test_background_task_error_is_logged():CODE
LOWsrc/workerd/server/tests/python/asgi/worker.py235async def test_app_exception_before_response_is_logged():CODE
LOWsrc/workerd/server/tests/python/sockets/worker.py189 def test_double_close_after_eof(self):CODE
LOWsrc/workerd/server/tests/python/sockets/worker.py196 def test_recv_after_remote_close(self):CODE
LOWsrc/workerd/server/tests/python/sockets/worker.py232 def test_settimeout_nonblocking_and_restore(self):CODE
LOWsrc/workerd/server/tests/python/sockets/worker.py257 async def test_asyncio_sock_connect_recv_sendall(self):CODE
LOWsrc/workerd/server/tests/python/sockets/worker.py272 async def test_asyncio_sock_recv_into(self):CODE
LOWsrc/workerd/server/tests/python/sockets/worker.py289 async def test_asyncio_open_connection(self):CODE
LOWsrc/workerd/server/tests/python/sockets/worker.py300 async def test_asyncio_open_connection_hostname(self):CODE
LOWsrc/workerd/server/tests/python/sockets/worker.py313 async def test_asyncio_concurrent_connections(self):CODE
118 more matches not shown…
Decorative Section Separators24 hits · 72 pts
SeverityFileLineSnippetContext
MEDIUMtypes/generated-snapshot/index.ts12180// ── Error types ──────────────────────────────────────────────────────────────COMMENT
MEDIUMtypes/generated-snapshot/index.ts12213// ── Binding ──────────────────────────────────────────────────────────────────COMMENT
MEDIUMtypes/generated-snapshot/index.d.ts12166// ── Error types ──────────────────────────────────────────────────────────────COMMENT
MEDIUMtypes/generated-snapshot/index.d.ts12199// ── Binding ──────────────────────────────────────────────────────────────────COMMENT
MEDIUMtypes/generated-snapshot/experimental/index.ts12455// ── Error types ──────────────────────────────────────────────────────────────COMMENT
MEDIUMtypes/generated-snapshot/experimental/index.ts12488// ── Binding ──────────────────────────────────────────────────────────────────COMMENT
MEDIUMtypes/generated-snapshot/experimental/index.d.ts12441// ── Error types ──────────────────────────────────────────────────────────────COMMENT
MEDIUMtypes/generated-snapshot/experimental/index.d.ts12474// ── Binding ──────────────────────────────────────────────────────────────────COMMENT
MEDIUMtypes/defines/artifacts.d.ts146// ── Error types ──────────────────────────────────────────────────────────────COMMENT
MEDIUMtypes/defines/artifacts.d.ts182// ── Binding ──────────────────────────────────────────────────────────────────COMMENT
MEDIUM.github/scripts/check-compat-flag-docs.py22# ---------------------------------------------------------------------------COMMENT
MEDIUM.github/scripts/check-compat-flag-docs.py24# ---------------------------------------------------------------------------COMMENT
MEDIUM.github/scripts/check-compat-flag-docs.py68# ---------------------------------------------------------------------------COMMENT
MEDIUM.github/scripts/check-compat-flag-docs.py70# ---------------------------------------------------------------------------COMMENT
MEDIUM.github/scripts/check-compat-flag-docs.py114# ---------------------------------------------------------------------------COMMENT
MEDIUM.github/scripts/check-compat-flag-docs.py116# ---------------------------------------------------------------------------COMMENT
MEDIUM.github/scripts/check-compat-flag-docs.py182# ---------------------------------------------------------------------------COMMENT
MEDIUM.github/scripts/check-compat-flag-docs.py184# ---------------------------------------------------------------------------COMMENT
MEDIUM.github/scripts/check-compat-flag-docs.py220 # ------------------------------------------------------------------COMMENT
MEDIUM.github/scripts/check-compat-flag-docs.py222 # ------------------------------------------------------------------COMMENT
MEDIUM.github/scripts/check-compat-flag-docs.py258 # ------------------------------------------------------------------COMMENT
MEDIUM.github/scripts/check-compat-flag-docs.py260 # ------------------------------------------------------------------COMMENT
MEDIUMsrc/workerd/server/tests/python/asgi/worker.py96# ---------------------------------------------------------------------------COMMENT
MEDIUMsrc/workerd/server/tests/python/asgi/worker.py98# ---------------------------------------------------------------------------COMMENT
Synthetic Comment Markers8 hits · 60 pts
SeverityFileLineSnippetContext
HIGHsrc/workerd/api/node/tests/tty-nodejs-test.js9 // Note: test was generated by claude with manual tweaksCOMMENT
HIGHsrc/workerd/api/node/tests/v8-nodejs-test.js9 // Note: test was generated by claude with manual tweaksCOMMENT
HIGHsrc/workerd/api/node/tests/trace-events-nodejs-test.js9 // Note: test was generated by claude with manual tweaksCOMMENT
HIGHsrc/workerd/api/node/tests/domain-nodejs-test.js10 // Note: test was generated by claude with manual tweaksCOMMENT
HIGHsrc/workerd/api/node/tests/vm-test.js9 // Note: test was generated by claude with manual tweaksCOMMENT
HIGHsrc/workerd/api/node/tests/dgram-nodejs-test.js9 // Note: test was generated by claude with manual tweaksCOMMENT
HIGHsrc/workerd/api/node/tests/wasi-nodejs-test.js9 // Note: test was generated by claude with manual tweaksCOMMENT
HIGHsrc/rust/cxx/kj-rs/tests/test_own.rs258 // This is one test generated by Claude. I am unsure it sufficiently tests multithreading.COMMENT
Structural Annotation Overuse29 hits · 55 pts
SeverityFileLineSnippetContext
LOW.opencode/skills/update-v8/SKILL.md27### Step 1: Identify the target versionCOMMENT
LOW.opencode/skills/update-v8/SKILL.md39### Step 2: Sync local V8 to the current workerd versionCOMMENT
LOW.opencode/skills/update-v8/SKILL.md47### Step 3: Apply workerd's patches onto a branchCOMMENT
LOW.opencode/skills/update-v8/SKILL.md65### Step 4: Rebase patches onto the new V8 versionCOMMENT
LOW.opencode/skills/update-v8/SKILL.md79### Step 5: Regenerate patchesCOMMENT
LOW.opencode/skills/update-v8/SKILL.md87### Step 6: Replace patches in workerdCOMMENT
LOW.opencode/skills/update-v8/SKILL.md97### Step 7: Update `build/deps/v8.MODULE.bazel`COMMENT
LOW.opencode/skills/update-v8/SKILL.md114### Step 8: Update V8's dependenciesCOMMENT
LOW.opencode/skills/update-v8/SKILL.md139### Step 9: Build and testCOMMENT
LOW.opencode/skills/update-v8/SKILL.md164### Step 10: Commit and submitCOMMENT
LOWdocs/reference/adding-a-compatibility-flag.md5## Step 1: Choose flag namesCOMMENT
LOWdocs/reference/adding-a-compatibility-flag.md15## Step 2: Add to `compatibility-date.capnp`COMMENT
LOWdocs/reference/adding-a-compatibility-flag.md45## Step 3: Use the flag in C++ codeCOMMENT
LOWdocs/reference/adding-a-compatibility-flag.md70## Step 4: Add testsCOMMENT
LOWdocs/reference/adding-a-compatibility-flag.md95## Step 5: Document the flagCOMMENT
LOWdocs/reference/adding-a-compatibility-flag.md108## Step 6: Build and verifyCOMMENT
LOWsrc/workerd/api/tests/worker-loader-test.js1138 // Step 1: sub-request sets up the pending promise via a separate entrypoint.COMMENT
LOWsrc/workerd/api/tests/worker-loader-test.js1143 // Step 2: IoContext B has drained. Give the runtime a moment to clean up.COMMENT
LOWsrc/workerd/api/tests/worker-loader-test.js1146 // Step 3: resolve the saved promise from IoContext A. The inner .then() continuation throwsCOMMENT
LOW…/workerd/api/tests/stdio-writesync-reentry-uaf-test.js50 // Step 1: Prime lineBuffer with non-newline data (buffered, noCOMMENT
LOW…/workerd/api/tests/stdio-writesync-reentry-uaf-test.js54 // Step 2: Arm the getter and trigger the newline path.COMMENT
LOWsrc/workerd/api/node/tests/zlib-nodejs-test.js2850 // Step 1: writeSync with Z_NO_FLUSH — data is buffered internally.COMMENT
LOWsrc/workerd/api/node/tests/zlib-nodejs-test.js2857 // Step 2: params() directly on native handle — no preceding flush.COMMENT
LOWsrc/workerd/api/node/tests/zlib-nodejs-test.js2865 // Step 3: finish the stream — must still produce a valid deflate stream.COMMENT
LOWsrc/workerd/api/node/tests/zlib-nodejs-test.js2878 // Step 4: concatenate both output chunks and decompress.COMMENT
LOWsrc/per_isolate/webstreams/writable.ts1181 // Step 4: GetChunkSize — runs size() which may re-entrantly mutateCOMMENT
LOWsrc/per_isolate/webstreams/writable.ts1188 // Step 5: Re-check writer.[[stream]] — size() may have calledCOMMENT
LOWsrc/per_isolate/webstreams/writable.ts1214 // Step 11: Add write request.COMMENT
LOWsrc/per_isolate/webstreams/writable.ts1217 // Step 12: ControllerWrite (with pre-computed chunkSize, no size()COMMENT
Hallucination Indicators4 hits · 40 pts
SeverityFileLineSnippetContext
CRITICALsrc/workerd/api/tests/js-rpc-test.js875 await assert.rejects(() => env.MyService.objectProperty.nonRpc.bar.baz(), {CODE
CRITICALsrc/workerd/api/tests/js-rpc-test.js887 () => env.MyService.objectProperty.env.MyService.noArgsMethod(),CODE
CRITICALsrc/pyodide/python-entrypoint-helper.ts149 return await pyodide._module.API.pyodide_base.pyimport_impl.callPromising(CODE
CRITICALsrc/pyodide/internal/pool/builtin_wrappers.ts102 return API.config.jsglobals.Function.prototype.apply.apply(func, [CODE
Excessive Try-Catch Wrapping24 hits · 34 pts
SeverityFileLineSnippetContext
LOWtools/update_opencode_version.py38 except Exception as e:CODE
MEDIUMtools/update_opencode_version.py39 print(f"Error fetching latest opencode-ai version: {e}", file=sys.stderr)CODE
LOWtools/update_node_version.py39 except Exception as e:CODE
MEDIUMtools/update_node_version.py40 print(f"Error fetching tags: {e}", file=sys.stderr)CODE
LOWtools/cross/internal_build.py46 except Exception as err:CODE
LOWtools/cross/internal_build.py82 except Exception as err:CODE
LOWtools/cross/format.py324 except Exception:CODE
LOWsamples/python-benchmark/worker.py33 except Exception:CODE
LOW…d/server/tests/python/metadata-read-overflow/worker.py21 except Exception:CODE
LOWsrc/workerd/server/tests/python/sdk/worker.py385 except Exception as exc:CODE
LOWsrc/workerd/server/tests/python/sdk/worker.py510 except Exception as err:CODE
LOWsrc/workerd/server/tests/python/sdk/worker.py517 except Exception as err:CODE
LOWsrc/workerd/server/tests/python/sdk/worker.py524 except Exception as err:CODE
LOW…/workerd/server/tests/python/top-level-tests/worker.py54 except Exception as e:CODE
MEDIUMsrc/pyodide/create_vendor_zip.py97 print(f"Error: site-packages not found at {site_packages}")CODE
LOWsrc/pyodide/create_vendor_zip.py141 except Exception as e:CODE
MEDIUMsrc/pyodide/create_vendor_zip.py142 print(f"Error vendoring packages {package_names!r}: {e}")CODE
MEDIUMsrc/pyodide/create_vendor_zip.py170 print("Error: Package name is required")CODE
MEDIUMsrc/pyodide/make_snapshots.py223 print(f"Error: Directory {outdir} exists and is not empty", file=sys.stderr)CODE
LOWsrc/pyodide/internal/workers-api/src/asgi.py212 except Exception as e:CODE
LOWsrc/pyodide/internal/workers-api/src/asgi.py300 except Exception:CODE
MEDIUMsrc/pyodide/internal/workers-api/src/asgi.py205def run_app():CODE
LOW…c/pyodide/internal/workers-api/src/workers/_workers.py1300 except Exception as exc:CODE
MEDIUM…c/pyodide/internal/workers-api/src/workers/_workers.py1290def _closure():CODE
Fake / Example Data25 hits · 32 pts
SeverityFileLineSnippetContext
LOWsamples/web-streams/streams-util.js12// Sample words for generating lorem ipsum-style textCOMMENT
LOWsamples/web-streams/streams-util.js35// Creates a ReadableStream that generates random lorem ipsum-style text synchronouslyCOMMENT
LOWsamples/web-streams/streams-util.js51// Creates a ReadableStream that generates random lorem ipsum-style text asynchronouslyCOMMENT
LOWsamples/web-streams/streams-util.js68// Creates a byte ReadableStream that generates random lorem ipsum-style text synchronouslyCOMMENT
LOWsamples/web-streams/streams-util.js85// Creates a byte ReadableStream that generates random lorem ipsum-style text asynchronouslyCOMMENT
LOWsrc/workerd/server/tests/python/sdk/worker.py265 js_data.append("key", "lorem ipsum")CODE
LOWsrc/workerd/server/tests/python/sdk/worker.py266 js_data.append("key", "dolor sit amet")CODE
LOWsrc/workerd/server/tests/python/sdk/worker.py269 assert data["key"] == "lorem ipsum"CODE
LOWsrc/workerd/server/tests/python/sdk/worker.py270 assert data.get_all("key") == ["lorem ipsum", "dolor sit amet"]CODE
LOWsrc/workerd/server/tests/python/sdk/worker.py270 assert data.get_all("key") == ["lorem ipsum", "dolor sit amet"]CODE
LOWsrc/workerd/api/tests/http-test.js133 hostname: 'placeholder',CODE
LOWsrc/workerd/api/node/tests/legacy_url-nodejs-test.js673 'm2@example.ord/c2@example.org',CODE
LOWsrc/workerd/api/node/tests/legacy_url-nodejs-test.js674 'mid:m@example.ord/c@example.org',CODE
LOWsrc/workerd/api/node/tests/legacy_url-nodejs-test.js675 'mid:m@example.ord/m2@example.ord/c2@example.org',CODE
LOWsrc/workerd/api/node/tests/legacy_url-nodejs-test.js716 'mailto:user@example.org',CODE
LOWsrc/workerd/api/node/tests/util-nodejs-test.js1845 'Lorem ipsum dolor\nsit amet,\tconsectetur adipiscing elit, sed do ' +CODE
LOWsrc/workerd/api/node/tests/util-nodejs-test.js1864 " [ [ 'Lorem ipsum dolor\\nsit amet,\\tconsectetur adipiscing elit, " +CODE
LOWsrc/workerd/api/node/tests/util-nodejs-test.js1881 " 'Lorem ipsum dolor\\n' +",CODE
LOWsrc/workerd/api/node/tests/util-nodejs-test.js1900 "'Lorem ipsum dolor\\n' +",CODE
LOWsrc/workerd/api/node/tests/zlib-nodejs-test.js1166 'ΩΩLorem ipsum dolor sit amet, consectetur adipiscing eli' +CODE
LOWsrc/workerd/api/node/tests/zlib-nodejs-test.js1166 'ΩΩLorem ipsum dolor sit amet, consectetur adipiscing eli' +CODE
LOWsrc/workerd/api/node/tests/zlib-nodejs-test.js1485 'ΩΩLorem ipsum dolor sit amet, consectetur adipiscing eli' +CODE
LOWsrc/workerd/api/node/tests/zlib-nodejs-test.js1485 'ΩΩLorem ipsum dolor sit amet, consectetur adipiscing eli' +CODE
LOWsrc/workerd/api/node/tests/zlib-nodejs-test.js2161 'ΩΩLorem ipsum dolor sit amet, consectetur adipiscing eli' +CODE
LOWsrc/workerd/api/node/tests/zlib-nodejs-test.js2161 'ΩΩLorem ipsum dolor sit amet, consectetur adipiscing eli' +CODE
Verbosity Indicators15 hits · 32 pts
SeverityFileLineSnippetContext
LOWsrc/workerd/api/tests/worker-loader-test.js1138 // Step 1: sub-request sets up the pending promise via a separate entrypoint.COMMENT
LOWsrc/workerd/api/tests/worker-loader-test.js1143 // Step 2: IoContext B has drained. Give the runtime a moment to clean up.COMMENT
LOWsrc/workerd/api/tests/worker-loader-test.js1146 // Step 3: resolve the saved promise from IoContext A. The inner .then() continuation throwsCOMMENT
LOW…/workerd/api/tests/stdio-writesync-reentry-uaf-test.js50 // Step 1: Prime lineBuffer with non-newline data (buffered, noCOMMENT
LOW…/workerd/api/tests/stdio-writesync-reentry-uaf-test.js54 // Step 2: Arm the getter and trigger the newline path.COMMENT
LOWsrc/workerd/api/node/tests/zlib-nodejs-test.js2850 // Step 1: writeSync with Z_NO_FLUSH — data is buffered internally.COMMENT
LOWsrc/workerd/api/node/tests/zlib-nodejs-test.js2857 // Step 2: params() directly on native handle — no preceding flush.COMMENT
LOWsrc/workerd/api/node/tests/zlib-nodejs-test.js2865 // Step 3: finish the stream — must still produce a valid deflate stream.COMMENT
LOWsrc/workerd/api/node/tests/zlib-nodejs-test.js2878 // Step 4: concatenate both output chunks and decompress.COMMENT
LOWsrc/node/internal/streams_readable.js1167 // We need to check if there is someone still listening toCOMMENT
LOWsrc/node/internal/streams_readable.js1186 // We need to check if there is someone still listening toCOMMENT
LOWsrc/per_isolate/webstreams/writable.ts1181 // Step 4: GetChunkSize — runs size() which may re-entrantly mutateCOMMENT
LOWsrc/per_isolate/webstreams/writable.ts1188 // Step 5: Re-check writer.[[stream]] — size() may have calledCOMMENT
LOWsrc/per_isolate/webstreams/writable.ts1214 // Step 11: Add write request.COMMENT
LOWsrc/per_isolate/webstreams/writable.ts1217 // Step 12: ControllerWrite (with pre-computed chunkSize, no size()COMMENT
AI Slop Vocabulary10 hits · 28 pts
SeverityFileLineSnippetContext
MEDIUMsamples/durable-objects-chat/chat.js448// We utilize this in ChatRoom, above, to apply a per-IP-address rate limit. These limits areCOMMENT
MEDIUMsrc/workerd/io/worker-fs.h130// instances are kj::Refcounted objects. We utilize the Isolate lock to safelyCOMMENT
MEDIUMsrc/workerd/io/trace.h1176// Interface for writing a span. Essentially, this is a mutable interface to a `Span` object,COMMENT
MEDIUMsrc/workerd/api/basics.h979 // Essentially an awaitable alternative to setTimeout(). The waitCOMMENT
MEDIUMsrc/workerd/api/tests/actor-alarms-name-test.js59 // sleep well past the 1000ms alarm delay to stay robust under CI load.COMMENT
MEDIUMsrc/rust/cxx/kj-rs/convert.h5// This header provides seamless integration between Rust types and KJ (Cap'n Proto's C++ library)COMMENT
MEDIUMsrc/rust/cxx/kj-rs/convert.h90// - kj::str(rust::String) - uses KJ_STRINGIFY for seamless string conversionCOMMENT
MEDIUMsrc/rust/jsg/lib.rs629 /// This is more robust than the global `isNaN()` because it doesn't coerceCOMMENT
LOW…c/pyodide/internal/workers-api/src/workers/_workers.py913 # entrypoint is being used, it makes sense to be less loud about it and just pass through theCOMMENT
LOW…c/pyodide/internal/workers-api/src/workers/_workers.py935 # implement a Python wrapper for it, but for now we'll just pass in None.COMMENT
Unused Imports29 hits · 28 pts
SeverityFileLineSnippetContext
LOWtools/cross/format.py2CODE
LOW…d/server/tests/python/vendor_dir_compat_flag/worker.py6CODE
LOW…c/pyodide/internal/workers-api/src/workers/__init__.py4CODE
LOW…c/pyodide/internal/workers-api/src/workers/__init__.py4CODE
LOW…c/pyodide/internal/workers-api/src/workers/__init__.py4CODE
LOW…c/pyodide/internal/workers-api/src/workers/__init__.py4CODE
LOW…c/pyodide/internal/workers-api/src/workers/__init__.py4CODE
LOW…c/pyodide/internal/workers-api/src/workers/__init__.py4CODE
LOW…c/pyodide/internal/workers-api/src/workers/__init__.py4CODE
LOW…c/pyodide/internal/workers-api/src/workers/__init__.py4CODE
LOW…c/pyodide/internal/workers-api/src/workers/__init__.py4CODE
LOW…c/pyodide/internal/workers-api/src/workers/__init__.py4CODE
LOW…c/pyodide/internal/workers-api/src/workers/__init__.py4CODE
LOW…c/pyodide/internal/workers-api/src/workers/__init__.py4CODE
LOW…c/pyodide/internal/workers-api/src/workers/__init__.py4CODE
LOW…c/pyodide/internal/workers-api/src/workers/__init__.py4CODE
LOW…c/pyodide/internal/workers-api/src/workers/__init__.py4CODE
LOW…c/pyodide/internal/workers-api/src/workers/__init__.py4CODE
LOW…c/pyodide/internal/workers-api/src/workers/__init__.py4CODE
LOW…c/pyodide/internal/workers-api/src/workers/__init__.py4CODE
LOW…c/pyodide/internal/workers-api/src/workers/__init__.py4CODE
LOW…c/pyodide/internal/workers-api/src/workers/__init__.py4CODE
LOW…c/pyodide/internal/workers-api/src/workers/__init__.py4CODE
LOW…c/pyodide/internal/workers-api/src/workers/__init__.py4CODE
LOW…c/pyodide/internal/workers-api/src/workers/_workers.py9CODE
LOW…c/pyodide/internal/workers-api/src/workers/_workers.py30CODE
LOWsrc/pyodide/internal/topLevelEntropy/entropy_patches.py29CODE
LOW…ide/internal/topLevelEntropy/entropy_import_context.py27CODE
LOW…ide/internal/topLevelEntropy/entropy_import_context.py20CODE
Redundant / Tautological Comments10 hits · 15 pts
SeverityFileLineSnippetContext
LOWtools/unix/apply-big-move.sh64 # Check if there's a new "Big Move" in the future and, if so, prompt the user to apply it too.COMMENT
LOWtools/unix/apply-big-move.sh110 # Check if we already applied The Big Move in this branch, as indicated by $AFTER_MOVE_TAG beingCOMMENT
LOWtools/unix/apply-big-move.sh124 # Check if $BEFORE_MOVE_TAG is in this branch's history. If not, we need to rebase first.COMMENT
LOWtools/unix/apply-big-move.sh167 # Check if there's another move upcoming that we should apply next.COMMENT
LOW.github/workflows/release-python-runtime.yml59 # Check if there are changes to python_metadata.bzlCOMMENT
LOW.github/workflows/release-python-runtime.yml67 # Check if there's an open PR for this branchCOMMENT
LOW.github/workflows/internal-build.yml19 # Check if this is a fork and if the author is a Cloudflare org memberCOMMENT
LOW.github/workflows/release-python-snapshots.yml78 # Check if there are changes to python_metadata.bzlCOMMENT
LOW.github/workflows/release-python-snapshots.yml86 # Check if there's an open PR for this branchCOMMENT
LOWsrc/pyodide/internal/workers-api/src/asgi.py166 # Check if this is a server-sent events responseCOMMENT
Deep Nesting14 hits · 14 pts
SeverityFileLineSnippetContext
LOWtools/update_node_version.py19CODE
LOWtools/cross/format.py267CODE
LOWci/jsonc.py155CODE
LOW.github/scripts/check-compat-flag-docs.py187CODE
LOWsrc/workerd/server/tests/python/sdk/worker.py19CODE
LOWsrc/workerd/server/tests/python/sdk/server.py5CODE
LOWsrc/pyodide/pack_python_packages.py30CODE
LOWsrc/pyodide/create_vendor_zip.py102CODE
LOWsrc/pyodide/internal/workers-api/src/asgi.py117CODE
LOWsrc/pyodide/internal/workers-api/src/asgi.py157CODE
LOW…c/pyodide/internal/workers-api/src/workers/_workers.py889CODE
LOW…c/pyodide/internal/workers-api/src/workers/_workers.py207CODE
LOW…c/pyodide/internal/workers-api/src/workers/_workers.py665CODE
LOW…c/pyodide/internal/workers-api/src/workers/_workers.py1197CODE
Cross-Language Confusion2 hits · 12 pts
SeverityFileLineSnippetContext
HIGHsrc/workerd/server/tests/python/python-rpc/worker.py196 js_undefined = await env.PythonRpc.identity(js.undefined)CODE
HIGH…c/pyodide/internal/workers-api/src/workers/_workers.py908 return Exception(value.toString())CODE
Self-Referential Comments4 hits · 12 pts
SeverityFileLineSnippetContext
MEDIUMtools/cross/format.py15# This file is symlinked into the internal repo as tools/format.py, so the root may be two levels upCOMMENT
MEDIUMtools/unix/create-external.sh3# Create a symlink to Bazel's external/ directory. This simplifies theCOMMENT
MEDIUMsrc/pyodide/internal/workers-api/src/asgi.py151 # Create a transform stream for handling streaming responsesCOMMENT
MEDIUM…c/pyodide/internal/workers-api/src/workers/_workers.py1# This module defines a Workers API for Python. It is similar to the API provided byCOMMENT
Slop Phrases4 hits · 7 pts
SeverityFileLineSnippetContext
LOWsrc/workerd/jsg/promise.h77// your own first. (Don't forget to implement `visitForGc()`.)COMMENT
LOWsrc/workerd/server/tests/container-client/test.js21// When writing a test, don't forget to call waitUntilContainerIsHealthyCOMMENT
LOWsrc/workerd/api/http.h608// When adding new properties to this struct, don't forget to update Request::serialize().COMMENT
LOW…c/pyodide/internal/workers-api/src/workers/_workers.py917 # types here, so if you're doing this make sure to do so behind a compat flag.COMMENT
Example Usage Blocks4 hits · 6 pts
SeverityFileLineSnippetContext
LOWsrc/workerd/jsg/setup.h680// Example usage:COMMENT
LOWsrc/workerd/jsg/jsg.h95// Example usage:COMMENT
LOWsrc/workerd/jsg/iterator.h996// Example usage:COMMENT
LOWsrc/workerd/jsg/iterator.h1090// Example usage:COMMENT
Overly Generic Function Names3 hits · 3 pts
SeverityFileLineSnippetContext
LOWsamples/nodejs-compat-diagnosticschannel/library.js5export function doSomething() {CODE
LOWsamples/nodejs-compat/worker.js28function doSomething(a, cb) {CODE
LOWsrc/workerd/server/tests/python/python-rpc/worker.py48 async def handle_request(self, req):CODE
Modern AI Meta-Vocabulary1 hit · 3 pts
SeverityFileLineSnippetContext
MEDIUMsrc/workerd/api/js-writable-stream.h213 // guardrails in the design doc).COMMENT
Modern Structural Boilerplate3 hits · 3 pts
SeverityFileLineSnippetContext
LOWsrc/pyodide/upload_bundles.py98def update_python_metadata_bzl(bundles: list[BundleInfo]) -> None:CODE
LOW…c/pyodide/internal/workers-api/src/workers/__init__.py30__all__ = [CODE
LOW…ide/internal/topLevelEntropy/entropy_import_context.py40__all__ = ["get_bad_entropy_flag"]CODE
AI Structural Patterns2 hits · 2 pts
SeverityFileLineSnippetContext
LOW…c/pyodide/internal/workers-api/src/workers/_workers.py940CODE
LOW…c/pyodide/internal/workers-api/src/workers/_workers.py1000CODE