Repository Analysis

cloudflare/workerd

The JavaScript / Wasm runtime that powers Cloudflare Workers

4.1 Likely human-written View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of cloudflare/workerd, a C++ project with 8,392 GitHub stars. SynthScan v2.0 examined 424,774 lines of code across 1376 source files, recording 1420 pattern matches distributed across 20 syntactic categories. The overall adjusted score of 4.1 places this repository in the Likely human-written band.

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

4.1
Adjusted Score
4.1
Raw Score
100%
Time Factor
2026-07-14
Last Push
8.4K
Stars
C++
Language
424.8K
Lines of Code
1.4K
Files
1.4K
Pattern Hits
2026-07-14
Scan Date
0.01
HC Hit Rate

What These Metrics Mean

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

Score History

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

Severity Breakdown

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

CRITICAL 4HIGH 9MEDIUM 91LOW 1316

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 1420 distinct pattern matches across 20 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 Block1014 hits · 950 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/visit-for-gc.h1// Copyright (c) 2017-2022 Cloudflare, Inc.COMMENT
LOWtools/unix/apply-big-move.sh1#! /bin/bashCOMMENT
LOWtypes/generated-snapshot/index.ts14401 // MQTT broker FQDN in the form mqtts://BROKER.NAMESPACE.cloudflarepubsub.com:PORTCOMMENT
LOWtypes/generated-snapshot/index.ts14621 // declaration will be merged with this one.COMMENT
LOWtypes/generated-snapshot/index.ts15881 // This should be a new traceId for the first worker stage invoked in the eyeball request and thenCOMMENT
LOWtypes/generated-snapshot/index.d.ts14421 // Message IDCOMMENT
LOWtypes/generated-snapshot/index.d.ts14641 //COMMENT
LOWtypes/generated-snapshot/experimental/index.ts15041) => Response | Promise<Response>;COMMENT
LOWtypes/generated-snapshot/experimental/index.ts15221 // - Serializable types are passed by value, with stubable types replaced by stubsCOMMENT
LOWtypes/generated-snapshot/experimental/index.ts15261 // The specific project can extend `Env` by redeclaring it in project-specific files. TypescriptCOMMENT
LOWtypes/generated-snapshot/experimental/index.ts16521 | ExceptionCOMMENT
LOWtypes/generated-snapshot/experimental/index.d.ts15061 send(records: T[]): Promise<void>;COMMENT
LOWtypes/generated-snapshot/experimental/index.d.ts15241 // Type for method return or property on an RPC interface.COMMENT
LOWtypes/generated-snapshot/experimental/index.d.ts15281 // Type of `env`.COMMENT
LOWtypes/generated-snapshot/experimental/index.d.ts15301 // // thus should behave as Durable Object namsepace bindings.COMMENT
LOWtypes/generated-snapshot/experimental/index.d.ts16561 // This should be a new traceId for the first worker stage invoked in the eyeball request and thenCOMMENT
LOWtypes/defines/trace.d.ts201 // This should be a new traceId for the first worker stage invoked in the eyeball request and thenCOMMENT
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
LOW.github/workflows/bonk.yml41 opencode_version: "1.14.33"COMMENT
LOWnpm/lib/node-platform.ts141 // * Really early versions of Yarn don't support "preferUnplugged", so packageCOMMENT
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
LOWsrc/workerd/util/strong-bool.h1// Copyright (c) 2025 Cloudflare, Inc.COMMENT
954 more matches not shown…
Decorative Section Separators73 hits · 272 pts
SeverityFileLineSnippetContext
MEDIUMtypes/generated-snapshot/index.ts11563// ── Error types ──────────────────────────────────────────────────────────────COMMENT
MEDIUMtypes/generated-snapshot/index.ts11596// ── Binding ──────────────────────────────────────────────────────────────────COMMENT
MEDIUMtypes/generated-snapshot/index.d.ts11547// ── Error types ──────────────────────────────────────────────────────────────COMMENT
MEDIUMtypes/generated-snapshot/index.d.ts11580// ── Binding ──────────────────────────────────────────────────────────────────COMMENT
MEDIUMtypes/generated-snapshot/experimental/index.ts12211// ── Error types ──────────────────────────────────────────────────────────────COMMENT
MEDIUMtypes/generated-snapshot/experimental/index.ts12244// ── Binding ──────────────────────────────────────────────────────────────────COMMENT
MEDIUMtypes/generated-snapshot/experimental/index.d.ts12195// ── Error types ──────────────────────────────────────────────────────────────COMMENT
MEDIUMtypes/generated-snapshot/experimental/index.d.ts12228// ── 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
MEDIUMsrc/workerd/api/streams/writable-sink-adapter.h41// ┌───────────────────────────────────────────┐COMMENT
MEDIUMsrc/workerd/api/streams/writable-sink-adapter.h49// └───────────────────────────────────────────┘COMMENT
MEDIUMsrc/workerd/api/streams/writable-sink-adapter.h52// ┌───────────────────────────────────────────┐COMMENT
MEDIUMsrc/workerd/api/streams/writable-sink-adapter.h55// │ ┌─────────────────────────────────────┐ │COMMENT
MEDIUMsrc/workerd/api/streams/writable-sink-adapter.h64// │ └─────────────────────────────────────┘ │COMMENT
MEDIUMsrc/workerd/api/streams/writable-sink-adapter.h67// │ ┌─────────────────────────────────────┐ │COMMENT
MEDIUMsrc/workerd/api/streams/writable-sink-adapter.h74// │ └─────────────────────────────────────┘ │COMMENT
MEDIUMsrc/workerd/api/streams/writable-sink-adapter.h77// │ ┌─────────────────────────────────────┐ │COMMENT
MEDIUMsrc/workerd/api/streams/writable-sink-adapter.h84// │ └─────────────────────────────────────┘ │COMMENT
MEDIUMsrc/workerd/api/streams/writable-sink-adapter.h87// │ ┌─────────────────────────────────────┐ │COMMENT
MEDIUMsrc/workerd/api/streams/writable-sink-adapter.h93// │ └─────────────────────────────────────┘ │COMMENT
MEDIUMsrc/workerd/api/streams/writable-sink-adapter.h94// └───────────────────────────────────────────┘COMMENT
MEDIUMsrc/workerd/api/streams/writable-sink-adapter.h97// ┌───────────────────────────────────────────┐COMMENT
MEDIUMsrc/workerd/api/streams/writable-sink-adapter.h104// └───────────────────────────────────────────┘COMMENT
MEDIUMsrc/workerd/api/streams/writable-sink-adapter.h352// ┌───────────────────────────────────────────┐COMMENT
MEDIUMsrc/workerd/api/streams/writable-sink-adapter.h359// └───────────────────────────────────────────┘COMMENT
MEDIUMsrc/workerd/api/streams/writable-sink-adapter.h362// ┌───────────────────────────────────────────┐COMMENT
MEDIUMsrc/workerd/api/streams/writable-sink-adapter.h365// │ ┌─────────────────────────────────────┐ │COMMENT
MEDIUMsrc/workerd/api/streams/writable-sink-adapter.h372// │ └─────────────────────────────────────┘ │COMMENT
MEDIUMsrc/workerd/api/streams/writable-sink-adapter.h375// │ ┌─────────────────────────────────────┐ │COMMENT
MEDIUMsrc/workerd/api/streams/writable-sink-adapter.h381// │ │ └─────► Errored │ │COMMENT
MEDIUMsrc/workerd/api/streams/writable-sink-adapter.h382// │ └─────────────────────────────────────┘ │COMMENT
MEDIUMsrc/workerd/api/streams/writable-sink-adapter.h385// │ ┌─────────────────────────────────────┐ │COMMENT
MEDIUMsrc/workerd/api/streams/writable-sink-adapter.h392// │ └─────────────────────────────────────┘ │COMMENT
MEDIUMsrc/workerd/api/streams/writable-sink-adapter.h393// └───────────────────────────────────────────┘COMMENT
MEDIUMsrc/workerd/api/streams/writable-sink-adapter.h396// ┌───────────────────────────────────────────┐COMMENT
MEDIUMsrc/workerd/api/streams/writable-sink-adapter.h404// └───────────────────────────────────────────┘COMMENT
MEDIUMsrc/workerd/api/streams/readable-source-adapter.h19// ┌───────────────────────────────────────────┐COMMENT
MEDIUMsrc/workerd/api/streams/readable-source-adapter.h22// │ ┌─────────────────────────────────────┐ │COMMENT
MEDIUMsrc/workerd/api/streams/readable-source-adapter.h31// │ └─────────────────────────────────────┘ │COMMENT
MEDIUMsrc/workerd/api/streams/readable-source-adapter.h34// │ ┌─────────────────────────────────────┐ │COMMENT
MEDIUMsrc/workerd/api/streams/readable-source-adapter.h40// │ │ └─────► Canceled/Errored │ │COMMENT
MEDIUMsrc/workerd/api/streams/readable-source-adapter.h41// │ └─────────────────────────────────────┘ │COMMENT
MEDIUMsrc/workerd/api/streams/readable-source-adapter.h44// │ ┌─────────────────────────────────────┐ │COMMENT
MEDIUMsrc/workerd/api/streams/readable-source-adapter.h50// │ └─────────────────────────────────────┘ │COMMENT
MEDIUMsrc/workerd/api/streams/readable-source-adapter.h51// └───────────────────────────────────────────┘COMMENT
13 more matches not shown…
Hyper-Verbose Identifiers142 hits · 146 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
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.ts25export 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
LOW…sts/python/pytest/tests/test_import_from_javascript.py9def test_import_from_javascript():CODE
LOW…c/workerd/server/tests/python/durable-object/worker.py65 async def test_block_concurrency_while(self):CODE
LOWsrc/workerd/server/tests/python/python-rpc/worker.py66 async def test_wait_until_coroutine_lifetime(self):CODE
LOWsrc/workerd/server/tests/python/sdk/worker.py168async def can_return_custom_fetch_response(env):CODE
LOWsrc/workerd/server/tests/python/sdk/worker.py189async def can_use_duplicate_headers(env):CODE
LOWsrc/workerd/server/tests/python/sdk/worker.py218async def can_use_undefined_options_and_redirect(env):CODE
LOWsrc/workerd/server/tests/python/sdk/worker.py229async def can_use_inherited_response_methods(env):CODE
LOWsrc/workerd/server/tests/python/sdk/worker.py237async def errors_on_invalid_input_to_redirect(env):CODE
LOWsrc/workerd/server/tests/python/sdk/worker.py336async def can_request_form_data_blob(env):CODE
LOWsrc/workerd/server/tests/python/sdk/worker.py534async def response_buffer_source_unit_tests(env):CODE
LOWsrc/workerd/server/tests/python/sdk/worker.py574async def can_support_scheduled_cron_trigger(env):CODE
LOWsrc/workerd/server/tests/container-client/test.js15function getRandomDurableObjectName(name) {CODE
LOWsrc/workerd/api/tests/http-socket-server.js14function upgradeToWebSocketConnection(req, socket, head) {CODE
LOWsrc/workerd/api/tests/http-socket-server.js174function handleWebSocketConnection(socket) {CODE
LOWsrc/workerd/api/tests/websocket-client-error-sidecar.js9function upgradeToWebSocketConnection(req, socket, head) {CODE
LOWsrc/workerd/api/tests/websocket-client-error-sidecar.js87function handleWebSocketConnection(socket) {CODE
LOWsrc/workerd/api/tests/worker-loader-test.js164 async def modules_in_main_directory(self):CODE
LOWsrc/workerd/api/tests/cross-context-promise-test.js510async function resolveViaSubrequestHelper(req, env, ctx) {CODE
LOWsrc/workerd/api/tests/http-test.js284async function assertRequestCacheThrowsError(CODE
LOWsrc/workerd/api/tests/http-test.js300async function assertFetchCacheRejectsError(CODE
LOWsrc/workerd/api/tests/http-test-ts.ts14async function assertRequestCacheThrowsError(CODE
82 more matches not shown…
Structural Annotation Overuse36 hits · 62 pts
SeverityFileLineSnippetContext
LOW.opencode/tools/jsg-interface.ts22 // Step 1: Find the file containing JSG_RESOURCE_TYPE(cls) or JSG_STRUCT for this classCOMMENT
LOW.opencode/tools/jsg-interface.ts105 // Step 2: Read the fileCOMMENT
LOW.opencode/commands/dep-impact.md16## Step 1: Identify dependency changesCOMMENT
LOW.opencode/commands/dep-impact.md38## Step 2: Map impact using bazel-depsCOMMENT
LOW.opencode/commands/dep-impact.md48## Step 3: Assess risk and summarizeCOMMENT
LOW.opencode/skills/add-autogate/SKILL.md20### Step 1: Add the enum valueCOMMENT
LOW.opencode/skills/add-autogate/SKILL.md36### Step 2: Add the string mappingCOMMENT
LOW.opencode/skills/add-autogate/SKILL.md54### Step 3: Guard your codeCOMMENT
LOW.opencode/skills/add-autogate/SKILL.md69### Step 4: TestCOMMENT
LOW.opencode/skills/add-autogate/SKILL.md99### Step 5: Build and verifyCOMMENT
LOW.opencode/skills/add-autogate/SKILL.md107### Step 6: Remove the gate (after rollout)COMMENT
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
LOW.opencode/skills/add-compat-flag/SKILL.md10### Step 1: Choose flag namesCOMMENT
LOW.opencode/skills/add-compat-flag/SKILL.md23### Step 2: Add to `compatibility-date.capnp`COMMENT
LOW.opencode/skills/add-compat-flag/SKILL.md57### Step 3: Use the flag in C++ codeCOMMENT
LOW.opencode/skills/add-compat-flag/SKILL.md82### Step 4: Add testsCOMMENT
LOW.opencode/skills/add-compat-flag/SKILL.md107### Step 5: Document the flagCOMMENT
LOW.opencode/skills/add-compat-flag/SKILL.md120### Step 6: Build and verifyCOMMENT
LOWsrc/workerd/api/tests/worker-loader-test.js1134 // Step 1: sub-request sets up the pending promise via a separate entrypoint.COMMENT
LOWsrc/workerd/api/tests/worker-loader-test.js1139 // Step 2: IoContext B has drained. Give the runtime a moment to clean up.COMMENT
LOWsrc/workerd/api/tests/worker-loader-test.js1142 // Step 3: resolve the saved promise from IoContext A. Post-patch, the innerCOMMENT
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
Synthetic Comment Markers7 hits · 52 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
Hallucination Indicators4 hits · 40 pts
SeverityFileLineSnippetContext
CRITICALsrc/workerd/api/tests/js-rpc-test.js845 await assert.rejects(() => env.MyService.objectProperty.nonRpc.bar.baz(), {CODE
CRITICALsrc/workerd/api/tests/js-rpc-test.js857 () => 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.py323 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.js123 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
Unused Imports28 hits · 26 pts
SeverityFileLineSnippetContext
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
Verbosity Indicators13 hits · 26 pts
SeverityFileLineSnippetContext
LOW.opencode/tools/jsg-interface.ts22 // Step 1: Find the file containing JSG_RESOURCE_TYPE(cls) or JSG_STRUCT for this classCOMMENT
LOW.opencode/tools/jsg-interface.ts105 // Step 2: Read the fileCOMMENT
LOWsrc/workerd/api/tests/worker-loader-test.js1134 // Step 1: sub-request sets up the pending promise via a separate entrypoint.COMMENT
LOWsrc/workerd/api/tests/worker-loader-test.js1139 // Step 2: IoContext B has drained. Give the runtime a moment to clean up.COMMENT
LOWsrc/workerd/api/tests/worker-loader-test.js1142 // Step 3: resolve the saved promise from IoContext A. Post-patch, the innerCOMMENT
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
AI Slop Vocabulary8 hits · 22 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.h1117// Interface for writing a span. Essentially, this is a mutable interface to a `Span` object,COMMENT
MEDIUMsrc/workerd/api/basics.h789 // 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/jsg/lib.rs352 /// 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
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 Nesting13 hits · 13 pts
SeverityFileLineSnippetContext
LOWtools/update_node_version.py19CODE
LOWtools/cross/format.py266CODE
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.py14# 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 Phrases5 hits · 10 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/server/tests/container-client/test.js24// Don't forget to call monitor() after calling start(), as thereCOMMENT
LOWsrc/workerd/api/http.h536// 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.h614// Example usage:COMMENT
LOWsrc/workerd/jsg/jsg.h93// 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 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