[ { "language": ".ts", "conventions": [ { "label": "", "method_count": 1, "imports": [ "import { z } from \"zod\";" ], "arg_patterns": {} }, { "label": "packages/bench", "method_count": 170, "algorithm": "CRX", "grammar": "root ::= (\"DATA\" | \"Math\" | \"Object\" | \"ZOD_FAILURE\" | \"_\" | \"as\" | \"d\" | \"for\" | \"if\" | \"new\" | \"of\" | \"parse\" | \"random\" | \"randomString\" | \"return\" | \"string\" | \"test\" | \"typeof\" | \"value\" | \"x\" | \"z\" | \"zod3\" | \"zod4\")+", "mdl_score": 1000000000000, "imports": [ "import { makeData, makeSchema, randomString } from \"./benchUtil.js\";", "import { metabench } from \"./metabench.js\";", "import * as zod3 from \"zod3\";", "import * as zod4 from \"zod4\";", "import * as zodNext from \"../zod/src/index.js\";", "import { makeData, makeSchema } from \"./benchUtil.js\";", "import { makeData, randomPick, randomString } from \"./benchUtil.js\";", "import * as z3 from \"zod/v3\";", "import * as z4 from \"zod/v4\";", "import * as z4lib from \"zod4/v4\";", "import { makeData } from \"./benchUtil.js\";", "import * as z from \"zod/v3\";", "import { execa } from \"execa\";", "import * as z4 from \"zod\";", "import * as z3 from \"zod3\";", "import * as z4lib from \"zod4\";", "import * as z4 from \"zod/mini\";", "import { randomString } from \"./benchUtil.js\";", "import { makeData, randomString } from \"./benchUtil.js\";", "import { type } from \"arktype\";", "import * as v from \"valibot\";", "import * as z from \"zod/v4\";", "import Benchmark from \"benchmark\";", "import chalk from \"chalk\";", "import { Table } from \"console-table-printer\";", "import * as mitata from \"mitata\";", "import { Bench } from \"tinybench\";", "import { formatNumber } from \"./benchUtil.js\";", "import { DATA, zod3, zod4 } from \"./object-setup.js\";", "import { benchWithData } from \"./metabench.js\";", "import { zod4, zodNext } from \"./benchUtil.js\";", "import { randomString, zod4, zodNext } from \"./benchUtil.js\";", "import { makeSchema } from \"./benchUtil.js\";" ], "arg_patterns": { "makeData": { "occurrences": 22, "arg_count": { "min": 2, "max": 2, "common": 2 }, "patterns": [ { "count": 22, "args": 2, "types": [ "lit", "other" ] } ] }, "makeSchema": { "occurrences": 18, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 16, "args": 1, "types": [ "other" ] }, { "count": 2, "args": 1, "types": [ "var" ] } ] }, "metabench": { "occurrences": 58, "arg_count": { "min": 1, "max": 2, "common": 2 }, "patterns": [ { "count": 46, "args": 2, "types": [ "lit", "other" ] }, { "count": 10, "args": 1, "types": [ "lit" ] }, { "count": 2, "args": 1, "types": [ "other" ] } ] }, "ZodFailure": { "occurrences": 2, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 2, "args": 1, "types": [ "lit" ] } ] }, "typeofThenCheckSymbol": { "occurrences": 2, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 2, "args": 1, "types": [ "var" ] } ] }, "nullChainCheckSymbol": { "occurrences": 2, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 2, "args": 1, "types": [ "var" ] } ] }, "instanceofObjectThenCheckSymbol": { "occurrences": 2, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 2, "args": 1, "types": [ "var" ] } ] }, "keyin": { "occurrences": 2, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 2, "args": 1, "types": [ "var" ] } ] }, "falsyThenCheckSymbol": { "occurrences": 2, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 2, "args": 1, "types": [ "var" ] } ] }, "instanceofPromise": { "occurrences": 2, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 2, "args": 1, "types": [ "var" ] } ] }, "falsyThenCheckTag": { "occurrences": 2, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 2, "args": 1, "types": [ "var" ] } ] }, "typeofThenCheckTag": { "occurrences": 2, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 2, "args": 1, "types": [ "var" ] } ] }, "nullChainCheckTag": { "occurrences": 2, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 2, "args": 1, "types": [ "var" ] } ] }, "instanceofClass": { "occurrences": 2, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 2, "args": 1, "types": [ "var" ] } ] }, "instanceofObjectThenCheckTag": { "occurrences": 2, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 2, "args": 1, "types": [ "var" ] } ] }, "new": { "occurrences": 23, "arg_count": { "min": 0, "max": 2, "common": 1 }, "patterns": [ { "count": 8, "args": 1, "types": [ "lit" ] }, { "count": 5, "args": 1, "types": [ "other" ] }, { "count": 3, "args": 2, "types": [ "var", "expr" ] }, { "count": 3, "args": 2, "types": [ "other", "other" ] }, { "count": 2, "args": 0, "types": [] } ] }, "randomString": { "occurrences": 54, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 54, "args": 1, "types": [ "lit" ] } ] }, "randomPick": { "occurrences": 4, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 4, "args": 1, "types": [ "other" ] } ] }, "Mitata": { "occurrences": 2, "arg_count": { "min": 2, "max": 2, "common": 2 }, "patterns": [ { "count": 2, "args": 2, "types": [ "var", "expr" ] } ] }, "Error": { "occurrences": 18, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 15, "args": 1, "types": [ "lit" ] }, { "count": 3, "args": 1, "types": [ "template" ] } ] }, "Bench": { "occurrences": 2, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 2, "args": 1, "types": [ "other" ] } ] }, "Table": { "occurrences": 4, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 4, "args": 1, "types": [ "other" ] } ] }, "formatNumber": { "occurrences": 10, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 6, "args": 1, "types": [ "other" ] }, { "count": 4, "args": 1, "types": [ "expr" ] } ] }, "String": { "occurrences": 3, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 3, "args": 1, "types": [ "other" ] } ] }, "BenchmarkJS": { "occurrences": 2, "arg_count": { "min": 2, "max": 2, "common": 2 }, "patterns": [ { "count": 2, "args": 2, "types": [ "var", "expr" ] } ] }, "Tinybench": { "occurrences": 2, "arg_count": { "min": 2, "max": 2, "common": 2 }, "patterns": [ { "count": 2, "args": 2, "types": [ "var", "expr" ] } ] }, "_bench": { "occurrences": 2, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 2, "args": 1, "types": [ "var" ] } ] }, "toFixed": { "occurrences": 16, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 16, "args": 1, "types": [ "expr" ] } ] }, "factory": { "occurrences": 6, "arg_count": { "min": 0, "max": 1, "common": 1 }, "patterns": [ { "count": 4, "args": 1, "types": [ "other" ] }, { "count": 2, "args": 0, "types": [] } ] }, "Date": { "occurrences": 6, "arg_count": { "min": 0, "max": 1, "common": 0 }, "patterns": [ { "count": 3, "args": 0, "types": [] }, { "count": 3, "args": 1, "types": [ "var" ] } ] }, "lazyWithGetterOverride": { "occurrences": 2, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 2, "args": 1, "types": [ "other" ] } ] }, "lazyWithScopeProp": { "occurrences": 2, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 2, "args": 1, "types": [ "other" ] } ] }, "getter": { "occurrences": 6, "arg_count": { "min": 0, "max": 0, "common": 0 }, "patterns": [ { "count": 6, "args": 0, "types": [] } ] }, "lazyWithInternalProp": { "occurrences": 2, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 2, "args": 1, "types": [ "other" ] } ] }, "benchWithData": { "occurrences": 2, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 2, "args": 1, "types": [ "other" ] } ] }, "makeSuccess": { "occurrences": 2, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 2, "args": 1, "types": [ "var" ] } ] }, "makeFail": { "occurrences": 2, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 2, "args": 1, "types": [ "var" ] } ] }, "ZodFail": { "occurrences": 4, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 4, "args": 1, "types": [ "lit" ] } ] }, "atschema": { "occurrences": 4, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 2, "args": 1, "types": [ "subscript" ] }, { "count": 2, "args": 1, "types": [ "var" ] } ] }, "type": { "occurrences": 2, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 2, "args": 1, "types": [ "other" ] } ] }, "Set": { "occurrences": 6, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 6, "args": 1, "types": [ "other" ] } ] }, "execa": { "occurrences": 2, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 2, "args": 1, "types": [ "other" ] } ] }, "$": { "occurrences": 2, "arg_count": { "min": 2, "max": 2, "common": 2 }, "patterns": [ { "count": 2, "args": 2, "types": [ "other", "other" ] } ] }, "run": { "occurrences": 2, "arg_count": { "min": 0, "max": 0, "common": 0 }, "patterns": [ { "count": 2, "args": 0, "types": [] } ] }, "Proxy": { "occurrences": 6, "arg_count": { "min": 2, "max": 2, "common": 2 }, "patterns": [ { "count": 6, "args": 2, "types": [ "other", "other" ] } ] } } }, { "label": "packages/docs/app/llms-full.txt", "method_count": 3, "imports": [ "import * as fs from \"node:fs/promises\";", "import { join } from \"node:path\";", "import { getLLMText } from \"@/loaders/get-llm-text\";", "import { source } from \"@/loaders/source\";" ], "arg_patterns": { "join": { "occurrences": 2, "arg_count": { "min": 3, "max": 3, "common": 3 }, "patterns": [ { "count": 2, "args": 3, "types": [ "call", "lit", "lit" ] } ] }, "Response": { "occurrences": 2, "arg_count": { "min": 2, "max": 2, "common": 2 }, "patterns": [ { "count": 2, "args": 2, "types": [ "var", "other" ] } ] }, "Map": { "occurrences": 3, "arg_count": { "min": 0, "max": 0, "common": 0 }, "patterns": [ { "count": 3, "args": 0, "types": [] } ] }, "getLLMText": { "occurrences": 2, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 2, "args": 1, "types": [ "var" ] } ] }, "new": { "occurrences": 2, "arg_count": { "min": 0, "max": 2, "common": 0 }, "patterns": [ { "count": 1, "args": 0, "types": [] }, { "count": 1, "args": 2, "types": [ "var", "other" ] } ] } } }, { "label": "packages/docs/app/llms.txt", "method_count": 3, "imports": [ "import { source } from \"@/loaders/source\";" ], "arg_patterns": { "String": { "occurrences": 6, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 3, "args": 1, "types": [ "other" ] }, { "count": 3, "args": 1, "types": [ "var" ] } ] }, "stringifyTitle": { "occurrences": 6, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 6, "args": 1, "types": [ "other" ] } ] }, "Response": { "occurrences": 2, "arg_count": { "min": 2, "max": 2, "common": 2 }, "patterns": [ { "count": 2, "args": 2, "types": [ "var", "other" ] } ] }, "new": { "occurrences": 1, "arg_count": { "min": 2, "max": 2, "common": 2 }, "patterns": [ { "count": 1, "args": 2, "types": [ "var", "other" ] } ] } } }, { "label": "packages/docs/content", "method_count": 16, "algorithm": "CRX", "grammar": "root ::= (\":\" | \"?\" | \"Array\" | \"Math\" | \"SourceLine\" | \"TabBlock\" | \"TabsBlock\" | \"_\" | \"actual\" | \"apiDocsPath\" | \"assertExpectedTabLabels\" | \"await\" | \"block\" | \"blockLine\" | \"blocks\" | \"codeFence\" | \"commentEnd\" | \"commentStart\" | \"compareCodeFences\" | \"comparedBlocks\" | \"continue\" | \"currentRow\" | \"currentTab\" | \"expect\" | \"expected\" | \"expectedValue\" | \"expressionValue\" | \"extractTabsBlocks\" | \"failures\" | \"fenceStartIndex\" | \"find\" | \"for\" | \"from\" | \"getEditDistance\" | \"getTabValue\" | \"hasZodMiniishTab\" | \"hasZodishTab\" | \"if\" | \"inCodeFence\" | \"index\" | \"indexOf\" | \"isFenceBoundary\" | \"isLikelyTabValue\" | \"left\" | \"leftIndex\" | \"line\" | \"lineCount\" | \"lines\" | \"match\" | \"mdxCommentState\" | \"min\" | \"normalizeTabValue\" | \"normalizedActual\" | \"normalizedExpected\" | \"of\" | \"previousRow\" | \"push\" | \"quotedValue\" | \"readCodeFence\" | \"readFile\" | \"result\" | \"return\" | \"right\" | \"rightIndex\" | \"slice\" | \"some\" | \"source\" | \"sourceLines\" | \"split\" | \"startsWith\" | \"state\" | \"string\" | \"stripMdxCommentSegments\" | \"stripMdxComments\" | \"substitutionCost\" | \"tab\" | \"tabValue\" | \"tabs\" | \"tabsBlocks\" | \"test\" | \"toBeGreaterThan\" | \"trimStart\" | \"while\" | \"zodFence\" | \"zodMiniFence\" | \"zodMiniTab\" | \"zodTab\")+ \"toEqual\"? \"value\"? \"toLowerCase\"? \"replaceAll\"?", "mdl_score": 1000000000000, "imports": [ "import { readFile } from \"node:fs/promises\";", "import { dirname, resolve } from \"node:path\";", "import { fileURLToPath } from \"node:url\";", "import { expect, test } from \"vitest\";" ], "arg_patterns": { "normalizeTabValue": { "occurrences": 4, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 4, "args": 1, "types": [ "var" ] } ] }, "readFile": { "occurrences": 2, "arg_count": { "min": 2, "max": 2, "common": 2 }, "patterns": [ { "count": 2, "args": 2, "types": [ "var", "lit" ] } ] }, "getTabValue": { "occurrences": 2, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 2, "args": 1, "types": [ "other" ] } ] }, "expect": { "occurrences": 4, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 4, "args": 1, "types": [ "var" ] } ] }, "stripMdxCommentSegments": { "occurrences": 2, "arg_count": { "min": 2, "max": 2, "common": 2 }, "patterns": [ { "count": 2, "args": 2, "types": [ "var", "var" ] } ] }, "readCodeFence": { "occurrences": 2, "arg_count": { "min": 3, "max": 3, "common": 3 }, "patterns": [ { "count": 2, "args": 3, "types": [ "var", "var", "other" ] } ] }, "compareCodeFences": { "occurrences": 2, "arg_count": { "min": 4, "max": 4, "common": 4 }, "patterns": [ { "count": 2, "args": 4, "types": [ "var", "var", "var", "var" ] } ] }, "assertExpectedTabLabels": { "occurrences": 2, "arg_count": { "min": 2, "max": 2, "common": 2 }, "patterns": [ { "count": 2, "args": 2, "types": [ "var", "var" ] } ] }, "isLikelyTabValue": { "occurrences": 6, "arg_count": { "min": 2, "max": 2, "common": 2 }, "patterns": [ { "count": 4, "args": 2, "types": [ "other", "lit" ] }, { "count": 2, "args": 2, "types": [ "other", "var" ] } ] }, "resolve": { "occurrences": 2, "arg_count": { "min": 2, "max": 2, "common": 2 }, "patterns": [ { "count": 2, "args": 2, "types": [ "call", "lit" ] } ] }, "dirname": { "occurrences": 2, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 2, "args": 1, "types": [ "call" ] } ] }, "getEditDistance": { "occurrences": 2, "arg_count": { "min": 2, "max": 2, "common": 2 }, "patterns": [ { "count": 2, "args": 2, "types": [ "var", "var" ] } ] }, "fileURLToPath": { "occurrences": 2, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 2, "args": 1, "types": [ "other" ] } ] }, "test": { "occurrences": 2, "arg_count": { "min": 2, "max": 2, "common": 2 }, "patterns": [ { "count": 2, "args": 2, "types": [ "lit", "other" ] } ] }, "extractTabsBlocks": { "occurrences": 2, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 2, "args": 1, "types": [ "var" ] } ] }, "stripMdxComments": { "occurrences": 2, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 2, "args": 1, "types": [ "var" ] } ] } } }, { "label": "packages/docs/loaders", "method_count": 7, "algorithm": "CRX", "grammar": "root ::= (\"API_URL\" | \"Array\" | \"Buffer\" | \"Error\" | \"GITHUB_TOKEN\" | \"JSON\" | \"Map\" | \"Set\" | \"_\" | \"a\" | \"as\" | \"await\" | \"b\" | \"catch\" | \"console\" | \"content\" | \"count\" | \"createElement\" | \"cwd\" | \"dir\" | \"error\" | \"fetch\" | \"fileContent\" | \"filePath\" | \"filter\" | \"for\" | \"from\" | \"fs\" | \"get\" | \"icon\" | \"icons\" | \"id\" | \"if\" | \"in\" | \"join\" | \"json\" | \"keyof\" | \"log\" | \"map\" | \"matter\" | \"name\" | \"new\" | \"number\" | \"of\" | \"owner\" | \"page\" | \"path\" | \"process\" | \"processed\" | \"processor\" | \"query\" | \"queryParts\" | \"r\" | \"readFile\" | \"relativePath\" | \"res\" | \"resolvedPath\" | \"resources\" | \"return\" | \"set\" | \"slug\" | \"sort\" | \"split\" | \"starsMap\" | \"string\" | \"stringify\" | \"throw\" | \"toString\" | \"try\" | \"typeof\" | \"uniqueSlugs\")+", "mdl_score": 1000000000000, "imports": [ "import * as fs from \"node:fs/promises\";", "import * as path from \"node:path\";", "import type { source } from \"@/loaders/source\";", "import type { InferPageType } from \"fumadocs-core/source\";", "import { remarkInclude } from \"fumadocs-mdx/config\";", "import matter from \"gray-matter\";", "import { remark } from \"remark\";", "import remarkGfm from \"remark-gfm\";", "import remarkMdx from \"remark-mdx\";", "import remarkStringify from \"remark-stringify\";", "import { blogPosts, docs } from \"@/.source\";", "import { loader } from \"fumadocs-core/source\";", "import { createMDXSource } from \"fumadocs-mdx\";", "import { icons } from \"lucide-react\";", "import { createElement } from \"react\";" ], "arg_patterns": { "matter": { "occurrences": 2, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 2, "args": 1, "types": [ "call" ] } ] }, "remark": { "occurrences": 2, "arg_count": { "min": 0, "max": 0, "common": 0 }, "patterns": [ { "count": 2, "args": 0, "types": [] } ] }, "Map": { "occurrences": 3, "arg_count": { "min": 0, "max": 0, "common": 0 }, "patterns": [ { "count": 3, "args": 0, "types": [] } ] }, "Set": { "occurrences": 3, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 3, "args": 1, "types": [ "call" ] } ] }, "fetch": { "occurrences": 2, "arg_count": { "min": 2, "max": 2, "common": 2 }, "patterns": [ { "count": 2, "args": 2, "types": [ "var", "other" ] } ] }, "Error": { "occurrences": 9, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 9, "args": 1, "types": [ "lit" ] } ] }, "new": { "occurrences": 5, "arg_count": { "min": 0, "max": 1, "common": 1 }, "patterns": [ { "count": 3, "args": 1, "types": [ "lit" ] }, { "count": 1, "args": 0, "types": [] }, { "count": 1, "args": 1, "types": [ "call" ] } ] }, "loader": { "occurrences": 4, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 4, "args": 1, "types": [ "other" ] } ] }, "createElement": { "occurrences": 2, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 2, "args": 1, "types": [ "subscript" ] } ] }, "createMDXSource": { "occurrences": 2, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 2, "args": 1, "types": [ "var" ] } ] } } }, { "label": "packages/resolution", "method_count": 8, "algorithm": "CRX", "grammar": "root ::= \"it\"?+ \"async\"? (\":\" | \"?\" | \"_\" | \"__dirname\" | \"any\" | \"await\" | \"buildTsc\" | \"buildZshy\" | \"catch\" | \"console\" | \"error\" | \"execa\" | \"existsSync\" | \"expect\" | \"if\" | \"join\" | \"log\" | \"output\" | \"outputWithoutFirstLine\" | \"path\" | \"result\" | \"return\" | \"slice\" | \"split\" | \"testCjs\" | \"testJs\" | \"testMjs\" | \"trim\" | \"try\" | \"warn\" | \"zodIndexPath\" | \"zodPackagePath\")+ \"toMatchInlineSnapshot\"? \"process\"? \"exit\"?", "mdl_score": 1000000000000, "imports": [ "import { existsSync } from \"node:fs\";", "import path from \"node:path\";", "import { fileURLToPath } from \"node:url\";", "import { execa } from \"execa\";", "import { describe, expect, it } from \"vitest\";" ], "arg_patterns": { "fileURLToPath": { "occurrences": 4, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 4, "args": 1, "types": [ "other" ] } ] }, "buildZshy": { "occurrences": 2, "arg_count": { "min": 0, "max": 0, "common": 0 }, "patterns": [ { "count": 2, "args": 0, "types": [] } ] }, "testJs": { "occurrences": 2, "arg_count": { "min": 0, "max": 0, "common": 0 }, "patterns": [ { "count": 2, "args": 0, "types": [] } ] }, "runAllTests": { "occurrences": 2, "arg_count": { "min": 0, "max": 0, "common": 0 }, "patterns": [ { "count": 2, "args": 0, "types": [] } ] }, "execa": { "occurrences": 14, "arg_count": { "min": 3, "max": 3, "common": 3 }, "patterns": [ { "count": 14, "args": 3, "types": [ "lit", "other", "other" ] } ] }, "testCjs": { "occurrences": 4, "arg_count": { "min": 0, "max": 0, "common": 0 }, "patterns": [ { "count": 4, "args": 0, "types": [] } ] }, "buildTsc": { "occurrences": 2, "arg_count": { "min": 0, "max": 0, "common": 0 }, "patterns": [ { "count": 2, "args": 0, "types": [] } ] }, "testMjs": { "occurrences": 2, "arg_count": { "min": 0, "max": 0, "common": 0 }, "patterns": [ { "count": 2, "args": 0, "types": [] } ] }, "describe": { "occurrences": 2, "arg_count": { "min": 2, "max": 2, "common": 2 }, "patterns": [ { "count": 2, "args": 2, "types": [ "lit", "other" ] } ] }, "expect": { "occurrences": 2, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 2, "args": 1, "types": [ "var" ] } ] }, "it": { "occurrences": 2, "arg_count": { "min": 3, "max": 3, "common": 3 }, "patterns": [ { "count": 2, "args": 3, "types": [ "lit", "other", "lit" ] } ] }, "existsSync": { "occurrences": 2, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 2, "args": 1, "types": [ "var" ] } ] } } }, { "label": "packages/tsc", "method_count": 12, "algorithm": "CRX", "grammar": "root ::= \"_proc\"? (\"Array\" | \"Error\" | \"Math\" | \"charset\" | \"concat\" | \"console\" | \"continue\" | \"counter\" | \"custom\" | \"dirname\" | \"else\" | \"field\" | \"fields\" | \"file\" | \"filter\" | \"floor\" | \"for\" | \"from\" | \"generateFields\" | \"generated\" | \"i\" | \"if\" | \"imports\" | \"initialName\" | \"join\" | \"key\" | \"keys\" | \"kill\" | \"length\" | \"linked\" | \"log\" | \"map\" | \"methods\" | \"mkdirSync\" | \"mode\" | \"names\" | \"new\" | \"newFields\" | \"newName\" | \"numExtends\" | \"numOmits\" | \"numPicks\" | \"numRefs\" | \"numSchemas\" | \"of\" | \"omitFields\" | \"omitKeys\" | \"params\" | \"path\" | \"pickKeys\" | \"prevName\" | \"proc\" | \"procs\" | \"push\" | \"random\" | \"randomChainMethodIndex\" | \"randomIndex\" | \"randomStr\" | \"randomType\" | \"randomTypeIndex\" | \"result\" | \"return\" | \"schema\" | \"schemaType\" | \"slice\" | \"string\" | \"throw\" | \"type\" | \"variableName\" | \"varname\" | \"writeFileSync\")+", "mdl_score": 1000000000000, "imports": [ "import { $ } from \"execa\";", "import * as gen from \"./generate.js\";", "import { mkdirSync, writeFileSync } from \"node:fs\";", "import { dirname } from \"node:path\";" ], "arg_patterns": { "randomStr": { "occurrences": 14, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 14, "args": 1, "types": [ "lit" ] } ] }, "dirname": { "occurrences": 4, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 4, "args": 1, "types": [ "var" ] } ] }, "mkdirSync": { "occurrences": 4, "arg_count": { "min": 2, "max": 2, "common": 2 }, "patterns": [ { "count": 4, "args": 2, "types": [ "call", "other" ] } ] }, "generateFields": { "occurrences": 8, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 4, "args": 1, "types": [ "var" ] }, { "count": 4, "args": 1, "types": [ "other" ] } ] }, "generateExtendChain": { "occurrences": 2, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 2, "args": 1, "types": [ "other" ] } ] }, "writeFileSync": { "occurrences": 4, "arg_count": { "min": 3, "max": 3, "common": 3 }, "patterns": [ { "count": 4, "args": 3, "types": [ "var", "call", "other" ] } ] }, "Error": { "occurrences": 6, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 6, "args": 1, "types": [ "lit" ] } ] }, "new": { "occurrences": 2, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 2, "args": 1, "types": [ "lit" ] } ] }, "$": { "occurrences": 2, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 2, "args": 1, "types": [ "other" ] } ] } } }, { "label": "packages/tsc/bench", "method_count": 3, "imports": [ "import { execa } from \"execa\";" ], "arg_patterns": { "$": { "occurrences": 2, "arg_count": { "min": 2, "max": 2, "common": 2 }, "patterns": [ { "count": 2, "args": 2, "types": [ "other", "other" ] } ] }, "execa": { "occurrences": 2, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 2, "args": 1, "types": [ "other" ] } ] }, "run": { "occurrences": 2, "arg_count": { "min": 0, "max": 0, "common": 0 }, "patterns": [ { "count": 2, "args": 0, "types": [] } ] } } }, { "label": "packages/zod/src/v3", "method_count": 383, "algorithm": "CRX", "grammar": "root ::= (\":\" | \"?\" | \"INVALID\" | \"ZodFirstPartyTypeKind\" | \"ZodIssueCode\" | \"ZodParsedType\" | \"_addCheck\" | \"addIssueToContext\" | \"any\" | \"as\" | \"ch\" | \"create\" | \"ctx\" | \"data\" | \"dirty\" | \"else\" | \"errToObj\" | \"errorUtil\" | \"for\" | \"if\" | \"input\" | \"message\" | \"new\" | \"of\" | \"params\" | \"processCreateParams\" | \"result\" | \"return\" | \"status\" | \"toString\" | \"util\" | \"value\")+", "mdl_score": 1000000000000, "imports": [ "import type { Primitive } from \"./helpers/typeAliases.js\";", "import { util, type ZodParsedType } from \"./helpers/util.js\";", "import type { TypeOf, ZodType } from \"./index.js\";", "import type { ZodErrorMap } from \"./ZodError.js\";", "import defaultErrorMap from \"./locales/en.js\";", "import { type ZodErrorMap, ZodIssueCode } from \"../ZodError.js\";", "import { util, ZodParsedType } from \"../helpers/util.js\";", "import {", "import { defaultErrorMap, getErrorMap } from \"./errors.js\";", "import type { enumUtil } from \"./helpers/enumUtil.js\";", "import { errorUtil } from \"./helpers/errorUtil.js\";", "import type { partialUtil } from \"./helpers/partialUtil.js\";", "import { util, ZodParsedType, getParsedType, type objectUtil } from \"./helpers/util.js\";", "import type { StandardSchemaV1 } from \"./standard-schema.js\";" ], "arg_patterns": { "mapper": { "occurrences": 8, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 8, "args": 1, "types": [ "var" ] } ] }, "ZodError": { "occurrences": 18, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 14, "args": 1, "types": [ "other" ] }, { "count": 4, "args": 1, "types": [ "var" ] } ] }, "Error": { "occurrences": 30, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 18, "args": 1, "types": [ "template" ] }, { "count": 12, "args": 1, "types": [ "lit" ] } ] }, "processError": { "occurrences": 6, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 6, "args": 1, "types": [ "other" ] } ] }, "new": { "occurrences": 125, "arg_count": { "min": 0, "max": 4, "common": 1 }, "patterns": [ { "count": 84, "args": 1, "types": [ "other" ] }, { "count": 9, "args": 1, "types": [ "template" ] }, { "count": 9, "args": 0, "types": [] }, { "count": 7, "args": 4, "types": [ "var", "var", "other", "var" ] }, { "count": 4, "args": 1, "types": [ "var" ] } ] }, "ZodNever": { "occurrences": 2, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 2, "args": 1, "types": [ "other" ] } ] }, "ZodBranded": { "occurrences": 2, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 2, "args": 1, "types": [ "other" ] } ] }, "OK": { "occurrences": 28, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 24, "args": 1, "types": [ "other" ] }, { "count": 2, "args": 1, "types": [ "call" ] }, { "count": 2, "args": 1, "types": [ "lit" ] } ] }, "timeRegexSource": { "occurrences": 4, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 4, "args": 1, "types": [ "var" ] } ] }, "deepPartialify": { "occurrences": 12, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 4, "args": 1, "types": [ "var" ] }, { "count": 4, "args": 1, "types": [ "other" ] }, { "count": 4, "args": 1, "types": [ "call" ] } ] }, "ParseStatus": { "occurrences": 10, "arg_count": { "min": 0, "max": 0, "common": 0 }, "patterns": [ { "count": 10, "args": 0, "types": [] } ] }, "processCreateParams": { "occurrences": 84, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 76, "args": 1, "types": [ "var" ] }, { "count": 8, "args": 1, "types": [ "other" ] } ] }, "addIssueToContext": { "occurrences": 148, "arg_count": { "min": 2, "max": 2, "common": 2 }, "patterns": [ { "count": 146, "args": 2, "types": [ "var", "other" ] }, { "count": 2, "args": 2, "types": [ "var", "var" ] } ] }, "mergeValues": { "occurrences": 6, "arg_count": { "min": 2, "max": 2, "common": 2 }, "patterns": [ { "count": 2, "args": 2, "types": [ "var", "var" ] }, { "count": 2, "args": 2, "types": [ "subscript", "subscript" ] }, { "count": 2, "args": 2, "types": [ "other", "other" ] } ] }, "setError": { "occurrences": 4, "arg_count": { "min": 0, "max": 0, "common": 0 }, "patterns": [ { "count": 4, "args": 0, "types": [] } ] }, "handleAsync": { "occurrences": 2, "arg_count": { "min": 0, "max": 0, "common": 0 }, "patterns": [ { "count": 2, "args": 0, "types": [] } ] }, "createZodEnum": { "occurrences": 2, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 2, "args": 1, "types": [ "other" ] } ] }, "ZodObject": { "occurrences": 28, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 28, "args": 1, "types": [ "other" ] } ] }, "ZodEnum": { "occurrences": 2, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 2, "args": 1, "types": [ "other" ] } ] }, "ZodLiteral": { "occurrences": 2, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 2, "args": 1, "types": [ "other" ] } ] }, "getDiscriminator": { "occurrences": 18, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 10, "args": 1, "types": [ "call" ] }, { "count": 6, "args": 1, "types": [ "other" ] }, { "count": 2, "args": 1, "types": [ "subscript" ] } ] }, "makeIssue": { "occurrences": 4, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 4, "args": 1, "types": [ "other" ] } ] }, "ParseInputLazyPath": { "occurrences": 20, "arg_count": { "min": 4, "max": 4, "common": 4 }, "patterns": [ { "count": 14, "args": 4, "types": [ "var", "var", "other", "var" ] }, { "count": 4, "args": 4, "types": [ "var", "var", "other", "other" ] }, { "count": 2, "args": 4, "types": [ "var", "subscript", "other", "var" ] } ] }, "ZodArray": { "occurrences": 10, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 10, "args": 1, "types": [ "other" ] } ] }, "message": { "occurrences": 2, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 2, "args": 1, "types": [ "var" ] } ] }, "String": { "occurrences": 9, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 6, "args": 1, "types": [ "var" ] }, { "count": 3, "args": 1, "types": [ "other" ] } ] }, "ZodNullable": { "occurrences": 2, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 2, "args": 1, "types": [ "other" ] } ] }, "isValid": { "occurrences": 12, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 12, "args": 1, "types": [ "var" ] } ] }, "makeReturnsIssue": { "occurrences": 4, "arg_count": { "min": 2, "max": 2, "common": 2 }, "patterns": [ { "count": 2, "args": 2, "types": [ "var", "var" ] }, { "count": 2, "args": 2, "types": [ "var", "other" ] } ] }, "Map": { "occurrences": 9, "arg_count": { "min": 0, "max": 0, "common": 0 }, "patterns": [ { "count": 9, "args": 0, "types": [] } ] }, "check": { "occurrences": 6, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 6, "args": 1, "types": [ "var" ] } ] }, "ZodMap": { "occurrences": 2, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 2, "args": 1, "types": [ "other" ] } ] }, "getErrorMap": { "occurrences": 4, "arg_count": { "min": 0, "max": 0, "common": 0 }, "patterns": [ { "count": 4, "args": 0, "types": [] } ] }, "ZodOptional": { "occurrences": 2, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 2, "args": 1, "types": [ "other" ] } ] }, "getParsedType": { "occurrences": 16, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 10, "args": 1, "types": [ "var" ] }, { "count": 6, "args": 1, "types": [ "other" ] } ] }, "ZodNull": { "occurrences": 2, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 2, "args": 1, "types": [ "other" ] } ] }, "ZodRecord": { "occurrences": 4, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 4, "args": 1, "types": [ "other" ] } ] }, "ZodFunction": { "occurrences": 6, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 6, "args": 1, "types": [ "other" ] } ] }, "ZodSymbol": { "occurrences": 2, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 2, "args": 1, "types": [ "other" ] } ] }, "ZodBoolean": { "occurrences": 2, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 2, "args": 1, "types": [ "other" ] } ] }, "ZodPromise": { "occurrences": 2, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 2, "args": 1, "types": [ "other" ] } ] }, "BigInt": { "occurrences": 12, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 10, "args": 1, "types": [ "lit" ] }, { "count": 2, "args": 1, "types": [ "other" ] } ] }, "timeRegex": { "occurrences": 2, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 2, "args": 1, "types": [ "var" ] } ] }, "ZodUndefined": { "occurrences": 2, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 2, "args": 1, "types": [ "other" ] } ] }, "custom": { "occurrences": 2, "arg_count": { "min": 2, "max": 2, "common": 2 }, "patterns": [ { "count": 2, "args": 2, "types": [ "other", "var" ] } ] }, "isAborted": { "occurrences": 4, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 4, "args": 1, "types": [ "var" ] } ] }, "ZodString": { "occurrences": 10, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 10, "args": 1, "types": [ "other" ] } ] }, "getIssueProperties": { "occurrences": 2, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 2, "args": 1, "types": [ "var" ] } ] }, "isAsync": { "occurrences": 8, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 8, "args": 1, "types": [ "var" ] } ] }, "ZodBigInt": { "occurrences": 6, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 6, "args": 1, "types": [ "other" ] } ] }, "RegExp": { "occurrences": 12, "arg_count": { "min": 1, "max": 2, "common": 1 }, "patterns": [ { "count": 9, "args": 1, "types": [ "template" ] }, { "count": 3, "args": 2, "types": [ "var", "lit" ] } ] }, "params": { "occurrences": 2, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 2, "args": 1, "types": [ "var" ] } ] }, "makeArgsIssue": { "occurrences": 4, "arg_count": { "min": 2, "max": 2, "common": 2 }, "patterns": [ { "count": 2, "args": 2, "types": [ "var", "var" ] }, { "count": 2, "args": 2, "types": [ "var", "other" ] } ] }, "ZodNaN": { "occurrences": 2, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 2, "args": 1, "types": [ "other" ] } ] }, "handleParsed": { "occurrences": 4, "arg_count": { "min": 2, "max": 2, "common": 2 }, "patterns": [ { "count": 2, "args": 2, "types": [ "call", "call" ] }, { "count": 2, "args": 2, "types": [ "var", "var" ] } ] }, "Date": { "occurrences": 18, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 9, "args": 1, "types": [ "call" ] }, { "count": 6, "args": 1, "types": [ "var" ] }, { "count": 3, "args": 1, "types": [ "other" ] } ] }, "ZodUnknown": { "occurrences": 2, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 2, "args": 1, "types": [ "other" ] } ] }, "ZodDiscriminatedUnion": { "occurrences": 2, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 2, "args": 1, "types": [ "other" ] } ] }, "ZodEffects": { "occurrences": 8, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 8, "args": 1, "types": [ "other" ] } ] }, "Set": { "occurrences": 9, "arg_count": { "min": 0, "max": 1, "common": 1 }, "patterns": [ { "count": 3, "args": 0, "types": [] }, { "count": 3, "args": 1, "types": [ "other" ] }, { "count": 3, "args": 1, "types": [ "call" ] } ] }, "ZodDate": { "occurrences": 4, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 4, "args": 1, "types": [ "other" ] } ] }, "ZodSet": { "occurrences": 6, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 6, "args": 1, "types": [ "other" ] } ] }, "numberType": { "occurrences": 2, "arg_count": { "min": 0, "max": 0, "common": 0 }, "patterns": [ { "count": 2, "args": 0, "types": [] } ] }, "freeze": { "occurrences": 4, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 4, "args": 1, "types": [ "var" ] } ] }, "isDirty": { "occurrences": 4, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 4, "args": 1, "types": [ "var" ] } ] }, "Number": { "occurrences": 9, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 9, "args": 1, "types": [ "other" ] } ] }, "cleanParams": { "occurrences": 4, "arg_count": { "min": 2, "max": 2, "common": 2 }, "patterns": [ { "count": 4, "args": 2, "types": [ "var", "var" ] } ] }, "ZodDefault": { "occurrences": 4, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 4, "args": 1, "types": [ "other" ] } ] }, "This": { "occurrences": 2, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 2, "args": 1, "types": [ "other" ] } ] }, "handleResult": { "occurrences": 4, "arg_count": { "min": 2, "max": 2, "common": 2 }, "patterns": [ { "count": 4, "args": 2, "types": [ "var", "var" ] } ] }, "DIRTY": { "occurrences": 10, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 10, "args": 1, "types": [ "other" ] } ] }, "ZodLazy": { "occurrences": 2, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 2, "args": 1, "types": [ "other" ] } ] }, "ZodNumber": { "occurrences": 6, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 6, "args": 1, "types": [ "other" ] } ] }, "ZodPipeline": { "occurrences": 2, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 2, "args": 1, "types": [ "other" ] } ] }, "floatSafeRemainder": { "occurrences": 2, "arg_count": { "min": 2, "max": 2, "common": 2 }, "patterns": [ { "count": 2, "args": 2, "types": [ "other", "other" ] } ] }, "isValidCidr": { "occurrences": 2, "arg_count": { "min": 2, "max": 2, "common": 2 }, "patterns": [ { "count": 2, "args": 2, "types": [ "other", "other" ] } ] }, "ZodReadonly": { "occurrences": 2, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 2, "args": 1, "types": [ "other" ] } ] }, "ZodNativeEnum": { "occurrences": 2, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 2, "args": 1, "types": [ "other" ] } ] }, "ZodTuple": { "occurrences": 4, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 4, "args": 1, "types": [ "other" ] } ] }, "executeRefinement": { "occurrences": 4, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 4, "args": 1, "types": [ "other" ] } ] }, "stringType": { "occurrences": 2, "arg_count": { "min": 0, "max": 0, "common": 0 }, "patterns": [ { "count": 2, "args": 0, "types": [] } ] }, "ZodAny": { "occurrences": 2, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 2, "args": 1, "types": [ "other" ] } ] }, "ZodCatch": { "occurrences": 4, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 4, "args": 1, "types": [ "other" ] } ] }, "datetimeRegex": { "occurrences": 2, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 2, "args": 1, "types": [ "var" ] } ] }, "booleanType": { "occurrences": 2, "arg_count": { "min": 0, "max": 0, "common": 0 }, "patterns": [ { "count": 2, "args": 0, "types": [] } ] }, "Boolean": { "occurrences": 3, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 3, "args": 1, "types": [ "other" ] } ] }, "atob": { "occurrences": 2, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 2, "args": 1, "types": [ "var" ] } ] }, "URL": { "occurrences": 2, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 2, "args": 1, "types": [ "other" ] } ] }, "isValidIP": { "occurrences": 2, "arg_count": { "min": 2, "max": 2, "common": 2 }, "patterns": [ { "count": 2, "args": 2, "types": [ "other", "other" ] } ] }, "finalizeSet": { "occurrences": 4, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 2, "args": 1, "types": [ "var" ] }, { "count": 2, "args": 1, "types": [ "other" ] } ] }, "ZodVoid": { "occurrences": 2, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 2, "args": 1, "types": [ "other" ] } ] }, "isValidJWT": { "occurrences": 2, "arg_count": { "min": 2, "max": 2, "common": 2 }, "patterns": [ { "count": 2, "args": 2, "types": [ "other", "other" ] } ] }, "refinementData": { "occurrences": 2, "arg_count": { "min": 2, "max": 2, "common": 2 }, "patterns": [ { "count": 2, "args": 2, "types": [ "var", "var" ] } ] }, "ZodIntersection": { "occurrences": 2, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 2, "args": 1, "types": [ "other" ] } ] }, "ZodUnion": { "occurrences": 2, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 2, "args": 1, "types": [ "other" ] } ] }, "Symbol": { "occurrences": 3, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 3, "args": 1, "types": [ "lit" ] } ] } } }, { "label": "packages/zod/src/v3/benchmarks", "method_count": 91, "algorithm": "CRX", "grammar": "root ::= \"console\"? \"try\"? \"log\"? (\"double\" | \"many\" | \"stringSchema\")? \"as\"?+ (\"empty\" | \"long\" | \"parse\" | \"short\")?+ \"objC\"? (\"DATA\" | \"Date\" | \"new\" | \"return\" | \"test\")?+ \"objA\"? \"i\"?+ \"catch\"? \"_err\"? \"_e\"? \"any\"? \"e\"?", "mdl_score": 5095520, "imports": [ "import Benchmark from \"benchmark\";", "import { z } from \"zod/v3\";", "import type Benchmark from \"benchmark\";", "import datetimeBenchmarks from \"./datetime.js\";", "import discriminatedUnionBenchmarks from \"./discriminatedUnion.js\";", "import ipv4Benchmarks from \"./ipv4.js\";", "import objectBenchmarks from \"./object.js\";", "import primitiveBenchmarks from \"./primitives.js\";", "import realworld from \"./realworld.js\";", "import stringBenchmarks from \"./string.js\";", "import unionBenchmarks from \"./union.js\";", "import { Mocker } from \"../tests/Mocker.js\";" ], "arg_patterns": { "new": { "occurrences": 29, "arg_count": { "min": 0, "max": 1, "common": 1 }, "patterns": [ { "count": 23, "args": 1, "types": [ "lit" ] }, { "count": 2, "args": 1, "types": [ "var" ] }, { "count": 2, "args": 0, "types": [] }, { "count": 2, "args": 1, "types": [ "other" ] } ] }, "manual": { "occurrences": 2, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 2, "args": 1, "types": [ "var" ] } ] }, "Error": { "occurrences": 3, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 3, "args": 1, "types": [ "lit" ] } ] }, "Date": { "occurrences": 21, "arg_count": { "min": 0, "max": 1, "common": 1 }, "patterns": [ { "count": 15, "args": 1, "types": [ "lit" ] }, { "count": 3, "args": 0, "types": [] }, { "count": 3, "args": 1, "types": [ "var" ] } ] }, "Mocker": { "occurrences": 2, "arg_count": { "min": 0, "max": 0, "common": 0 }, "patterns": [ { "count": 2, "args": 0, "types": [] } ] }, "Set": { "occurrences": 6, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 6, "args": 1, "types": [ "other" ] } ] }, "str": { "occurrences": 8, "arg_count": { "min": 0, "max": 0, "common": 0 }, "patterns": [ { "count": 8, "args": 0, "types": [] } ] }, "num": { "occurrences": 2, "arg_count": { "min": 0, "max": 0, "common": 0 }, "patterns": [ { "count": 2, "args": 0, "types": [] } ] }, "fn": { "occurrences": 2, "arg_count": { "min": 0, "max": 0, "common": 0 }, "patterns": [ { "count": 2, "args": 0, "types": [] } ] }, "array": { "occurrences": 2, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 2, "args": 1, "types": [ "var" ] } ] } } }, { "label": "packages/zod/src/v3/helpers", "method_count": 31, "imports": [ "import type { IssueData, ZodErrorMap, ZodIssue } from \"../ZodError.js\";", "import { getErrorMap } from \"../errors.js\";", "import defaultErrorMap from \"../locales/en.js\";", "import type { ZodParsedType } from \"./util.js\";" ], "arg_patterns": { "map": { "occurrences": 2, "arg_count": { "min": 2, "max": 2, "common": 2 }, "patterns": [ { "count": 2, "args": 2, "types": [ "var", "other" ] } ] }, "getErrorMap": { "occurrences": 2, "arg_count": { "min": 0, "max": 0, "common": 0 }, "patterns": [ { "count": 2, "args": 0, "types": [] } ] }, "makeIssue": { "occurrences": 2, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 2, "args": 1, "types": [ "other" ] } ] }, "objectKeys": { "occurrences": 4, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 4, "args": 1, "types": [ "var" ] } ] }, "checker": { "occurrences": 2, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 2, "args": 1, "types": [ "var" ] } ] }, "objectValues": { "occurrences": 2, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 2, "args": 1, "types": [ "var" ] } ] }, "Error": { "occurrences": 3, "arg_count": { "min": 0, "max": 0, "common": 0 }, "patterns": [ { "count": 3, "args": 0, "types": [] } ] }, "new": { "occurrences": 1, "arg_count": { "min": 0, "max": 0, "common": 0 }, "patterns": [ { "count": 1, "args": 0, "types": [] } ] } } }, { "label": "packages/zod/src/v3/tests", "method_count": 985, "algorithm": "CRX", "grammar": "root ::= (\"any\" | \"as\" | \"assertEqual\" | \"await\" | \"catch\" | \"data\" | \"expect\" | \"f\" | \"if\" | \"new\" | \"number\" | \"object\" | \"parse\" | \"result\" | \"return\" | \"safeParse\" | \"schema\" | \"string\" | \"toBe\" | \"toEqual\" | \"toThrow\" | \"typeof\" | \"util\" | \"val\" | \"z\")+", "mdl_score": 1000000000000, "imports": [ "import { expect, test } from \"vitest\";", "import * as z from \"zod/v3\";", "import { util } from \"../helpers/util.js\";", "import { test } from \"vitest\";", "import { z } from \"zod/v3\";", "import { ZodError, ZodIssueCode } from \"../ZodError.js\";", "import { ZodParsedType } from \"../helpers/util.js\";", "import type { ZodFirstPartySchemaTypes, ZodFirstPartyTypeKind } from \"zod/v3\";", "import { ZodIssueCode } from \"zod/v3\";", "import { Mocker } from \"./Mocker.js\";", "import { type SyncParseReturnType, isAborted, isDirty, isValid } from \"../helpers/parseUtil.js\";", "import { ZodNullable, ZodOptional } from \"zod/v3\";", "import { ZodIssueCode } from \"../ZodError.js\";", "import type { StandardSchemaV1 } from \"../standard-schema.js\";", "import { Buffer } from \"node:buffer\";", "import { ZodError } from \"../ZodError.js\";" ], "arg_patterns": { "expect": { "occurrences": 2458, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 1706, "args": 1, "types": [ "other" ] }, { "count": 458, "args": 1, "types": [ "call" ] }, { "count": 252, "args": 1, "types": [ "var" ] }, { "count": 34, "args": 1, "types": [ "expr" ] }, { "count": 8, "args": 1, "types": [ "subscript" ] } ] }, "test": { "occurrences": 1002, "arg_count": { "min": 2, "max": 2, "common": 2 }, "patterns": [ { "count": 994, "args": 2, "types": [ "lit", "other" ] }, { "count": 8, "args": 2, "types": [ "template", "other" ] } ] }, "isDirty": { "occurrences": 6, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 6, "args": 1, "types": [ "var" ] } ] }, "isValid": { "occurrences": 6, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 6, "args": 1, "types": [ "var" ] } ] }, "isAborted": { "occurrences": 6, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 6, "args": 1, "types": [ "var" ] } ] }, "Array": { "occurrences": 6, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 6, "args": 1, "types": [ "lit" ] } ] }, "new": { "occurrences": 98, "arg_count": { "min": 0, "max": 3, "common": 1 }, "patterns": [ { "count": 35, "args": 1, "types": [ "other" ] }, { "count": 30, "args": 1, "types": [ "lit" ] }, { "count": 26, "args": 0, "types": [] }, { "count": 3, "args": 1, "types": [ "var" ] }, { "count": 3, "args": 3, "types": [ "lit", "lit", "lit" ] } ] }, "BigInt": { "occurrences": 140, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 124, "args": 1, "types": [ "lit" ] }, { "count": 14, "args": 1, "types": [ "expr" ] }, { "count": 2, "args": 1, "types": [ "call" ] } ] }, "ZodError": { "occurrences": 2, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 2, "args": 1, "types": [ "other" ] } ] }, "Map": { "occurrences": 27, "arg_count": { "min": 0, "max": 1, "common": 1 }, "patterns": [ { "count": 24, "args": 1, "types": [ "other" ] }, { "count": 3, "args": 0, "types": [] } ] }, "Symbol": { "occurrences": 24, "arg_count": { "min": 0, "max": 1, "common": 1 }, "patterns": [ { "count": 18, "args": 1, "types": [ "lit" ] }, { "count": 6, "args": 0, "types": [] } ] }, "Set": { "occurrences": 93, "arg_count": { "min": 0, "max": 1, "common": 1 }, "patterns": [ { "count": 78, "args": 1, "types": [ "other" ] }, { "count": 9, "args": 0, "types": [] }, { "count": 6, "args": 1, "types": [ "var" ] } ] }, "Number": { "occurrences": 18, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 15, "args": 1, "types": [ "var" ] }, { "count": 3, "args": 1, "types": [ "lit" ] } ] }, "Error": { "occurrences": 69, "arg_count": { "min": 0, "max": 1, "common": 1 }, "patterns": [ { "count": 36, "args": 1, "types": [ "lit" ] }, { "count": 24, "args": 0, "types": [] }, { "count": 6, "args": 1, "types": [ "template" ] }, { "count": 3, "args": 1, "types": [ "var" ] } ] }, "Date": { "occurrences": 78, "arg_count": { "min": 0, "max": 3, "common": 1 }, "patterns": [ { "count": 42, "args": 1, "types": [ "lit" ] }, { "count": 24, "args": 0, "types": [] }, { "count": 9, "args": 3, "types": [ "lit", "lit", "lit" ] }, { "count": 3, "args": 1, "types": [ "call" ] } ] }, "getRandomInt": { "occurrences": 2, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 2, "args": 1, "types": [ "other" ] } ] }, "String": { "occurrences": 15, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 12, "args": 1, "types": [ "var" ] }, { "count": 3, "args": 1, "types": [ "other" ] } ] }, "doStuff": { "occurrences": 6, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 4, "args": 1, "types": [ "call" ] }, { "count": 2, "args": 1, "types": [ "other" ] } ] }, "makeJwt": { "occurrences": 10, "arg_count": { "min": 2, "max": 2, "common": 2 }, "patterns": [ { "count": 10, "args": 2, "types": [ "other", "other" ] } ] }, "checker": { "occurrences": 8, "arg_count": { "min": 0, "max": 1, "common": 0 }, "patterns": [ { "count": 4, "args": 0, "types": [] }, { "count": 4, "args": 1, "types": [ "other" ] } ] }, "parsed": { "occurrences": 6, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 4, "args": 1, "types": [ "lit" ] }, { "count": 2, "args": 1, "types": [ "other" ] } ] }, "invalidFuncInstance": { "occurrences": 4, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 4, "args": 1, "types": [ "other" ] } ] }, "func": { "occurrences": 6, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 6, "args": 1, "types": [ "lit" ] } ] }, "myFunc": { "occurrences": 2, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 2, "args": 1, "types": [ "lit" ] } ] }, "validFunc2Instance": { "occurrences": 2, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 2, "args": 1, "types": [ "other" ] } ] }, "callback": { "occurrences": 4, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 4, "args": 1, "types": [ "other" ] } ] }, "predicate": { "occurrences": 2, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 2, "args": 1, "types": [ "lit" ] } ] }, "checkErrors": { "occurrences": 32, "arg_count": { "min": 2, "max": 2, "common": 2 }, "patterns": [ { "count": 28, "args": 2, "types": [ "call", "lit" ] }, { "count": 4, "args": 2, "types": [ "call", "other" ] } ] }, "stripOuter": { "occurrences": 2, "arg_count": { "min": 2, "max": 2, "common": 2 }, "patterns": [ { "count": 2, "args": 2, "types": [ "call", "other" ] } ] }, "Mocker": { "occurrences": 4, "arg_count": { "min": 0, "max": 0, "common": 0 }, "patterns": [ { "count": 4, "args": 0, "types": [] } ] }, "Test": { "occurrences": 4, "arg_count": { "min": 0, "max": 0, "common": 0 }, "patterns": [ { "count": 4, "args": 0, "types": [] } ] }, "Subtest": { "occurrences": 4, "arg_count": { "min": 0, "max": 0, "common": 0 }, "patterns": [ { "count": 4, "args": 0, "types": [] } ] }, "Bar": { "occurrences": 4, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 4, "args": 1, "types": [ "lit" ] } ] }, "base": { "occurrences": 4, "arg_count": { "min": 0, "max": 1, "common": 0 }, "patterns": [ { "count": 2, "args": 0, "types": [] }, { "count": 2, "args": 1, "types": [ "lit" ] } ] }, "validatedFunction": { "occurrences": 4, "arg_count": { "min": 0, "max": 0, "common": 0 }, "patterns": [ { "count": 4, "args": 0, "types": [] } ] } } }, { "label": "packages/zod/src/v4/classic", "method_count": 409, "algorithm": "CRX", "grammar": "root ::= (\"$ZodType\" | \"ZodStringFormat\" | \"ZodType\" | \"any\" | \"args\" | \"as\" | \"check\" | \"checks\" | \"core\" | \"ctx\" | \"def\" | \"if\" | \"init\" | \"inst\" | \"json\" | \"new\" | \"normalizeParams\" | \"params\" | \"processJSONSchema\" | \"processors\" | \"return\" | \"util\" | \"value\")+", "mdl_score": 1000000000000, "imports": [ "import * as core from \"../core/index.js\";", "import * as schemas from \"./schemas.js\";", "import type { ZodType } from \"./schemas.js\";", "import { $ZodError } from \"../core/index.js\";", "import * as util from \"../core/util.js\";", "import type * as JSONSchema from \"../core/json-schema.js\";", "import { type $ZodRegistry, globalRegistry } from \"../core/registries.js\";", "import * as _checks from \"./checks.js\";", "import * as _iso from \"./iso.js\";", "import * as _schemas from \"./schemas.js\";", "import type { ZodNumber, ZodString, ZodType } from \"./schemas.js\";", "import { ZodISODate, ZodISODateTime, ZodISODuration, ZodISOTime } from \"./schemas.js\";", "import { util } from \"../core/index.js\";", "import * as processors from \"../core/json-schema-processors.js\";", "import type { StandardSchemaWithJSONProps } from \"../core/standard-schema.js\";", "import { createStandardJSONSchemaMethod, createToJSONSchemaMethod } from \"../core/to-json-schema.js\";", "import * as checks from \"./checks.js\";", "import * as parse from \"./parse.js\";" ], "arg_patterns": { "exactOptional": { "occurrences": 2, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 2, "args": 1, "types": [ "other" ] } ] }, "createStandardJSONSchemaMethod": { "occurrences": 4, "arg_count": { "min": 2, "max": 2, "common": 2 }, "patterns": [ { "count": 4, "args": 2, "types": [ "var", "lit" ] } ] }, "ZodPipe": { "occurrences": 2, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 2, "args": 1, "types": [ "other" ] } ] }, "number": { "occurrences": 2, "arg_count": { "min": 0, "max": 0, "common": 0 }, "patterns": [ { "count": 2, "args": 0, "types": [] } ] }, "optional": { "occurrences": 6, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 4, "args": 1, "types": [ "call" ] }, { "count": 2, "args": 1, "types": [ "other" ] } ] }, "ZodDefault": { "occurrences": 2, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 2, "args": 1, "types": [ "other" ] } ] }, "ZodSuccess": { "occurrences": 2, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 2, "args": 1, "types": [ "other" ] } ] }, "int": { "occurrences": 4, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 4, "args": 1, "types": [ "var" ] } ] }, "ZodOptional": { "occurrences": 2, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 2, "args": 1, "types": [ "other" ] } ] }, "unknown": { "occurrences": 10, "arg_count": { "min": 0, "max": 0, "common": 0 }, "patterns": [ { "count": 10, "args": 0, "types": [] } ] }, "ZodPreprocess": { "occurrences": 2, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 2, "args": 1, "types": [ "other" ] } ] }, "ZodTemplateLiteral": { "occurrences": 2, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 2, "args": 1, "types": [ "other" ] } ] }, "nullable": { "occurrences": 6, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 4, "args": 1, "types": [ "other" ] }, { "count": 2, "args": 1, "types": [ "var" ] } ] }, "nonoptional": { "occurrences": 2, "arg_count": { "min": 2, "max": 2, "common": 2 }, "patterns": [ { "count": 2, "args": 2, "types": [ "other", "var" ] } ] }, "ZodExactOptional": { "occurrences": 2, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 2, "args": 1, "types": [ "other" ] } ] }, "ZodRecord": { "occurrences": 8, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 8, "args": 1, "types": [ "other" ] } ] }, "transform": { "occurrences": 4, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 2, "args": 1, "types": [ "other" ] }, { "count": 2, "args": 1, "types": [ "var" ] } ] }, "Set": { "occurrences": 18, "arg_count": { "min": 0, "max": 1, "common": 1 }, "patterns": [ { "count": 6, "args": 1, "types": [ "other" ] }, { "count": 6, "args": 0, "types": [] }, { "count": 3, "args": 1, "types": [ "call" ] }, { "count": 3, "args": 1, "types": [ "expr" ] } ] }, "never": { "occurrences": 4, "arg_count": { "min": 0, "max": 0, "common": 0 }, "patterns": [ { "count": 4, "args": 0, "types": [] } ] }, "array": { "occurrences": 6, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 2, "args": 1, "types": [ "other" ] }, { "count": 2, "args": 1, "types": [ "var" ] }, { "count": 2, "args": 1, "types": [ "call" ] } ] }, "tuple": { "occurrences": 2, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 2, "args": 1, "types": [ "other" ] } ] }, "ZodPrefault": { "occurrences": 2, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 2, "args": 1, "types": [ "other" ] } ] }, "BigInt": { "occurrences": 8, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 8, "args": 1, "types": [ "lit" ] } ] }, "ZodDiscriminatedUnion": { "occurrences": 2, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 2, "args": 1, "types": [ "other" ] } ] }, "Error": { "occurrences": 45, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 24, "args": 1, "types": [ "lit" ] }, { "count": 21, "args": 1, "types": [ "template" ] } ] }, "Date": { "occurrences": 6, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 6, "args": 1, "types": [ "other" ] } ] }, "ZodSet": { "occurrences": 2, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 2, "args": 1, "types": [ "other" ] } ] }, "createToJSONSchemaMethod": { "occurrences": 2, "arg_count": { "min": 2, "max": 2, "common": 2 }, "patterns": [ { "count": 2, "args": 2, "types": [ "var", "other" ] } ] }, "_installLazyMethods": { "occurrences": 10, "arg_count": { "min": 3, "max": 3, "common": 3 }, "patterns": [ { "count": 10, "args": 3, "types": [ "var", "lit", "other" ] } ] }, "union": { "occurrences": 4, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 4, "args": 1, "types": [ "other" ] } ] }, "_enum": { "occurrences": 4, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 4, "args": 1, "types": [ "call" ] } ] }, "ZodIntersection": { "occurrences": 2, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 2, "args": 1, "types": [ "other" ] } ] }, "intersection": { "occurrences": 2, "arg_count": { "min": 2, "max": 2, "common": 2 }, "patterns": [ { "count": 2, "args": 2, "types": [ "other", "var" ] } ] }, "ZodObject": { "occurrences": 6, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 4, "args": 1, "types": [ "other" ] }, { "count": 2, "args": 1, "types": [ "var" ] } ] }, "pipe": { "occurrences": 4, "arg_count": { "min": 2, "max": 2, "common": 2 }, "patterns": [ { "count": 2, "args": 2, "types": [ "other", "call" ] }, { "count": 2, "args": 2, "types": [ "other", "var" ] } ] }, "ZodUnion": { "occurrences": 2, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 2, "args": 1, "types": [ "other" ] } ] }, "ZodCustom": { "occurrences": 2, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 2, "args": 1, "types": [ "other" ] } ] }, "_catch": { "occurrences": 2, "arg_count": { "min": 2, "max": 2, "common": 2 }, "patterns": [ { "count": 2, "args": 2, "types": [ "other", "var" ] } ] }, "ZodEnum": { "occurrences": 8, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 8, "args": 1, "types": [ "other" ] } ] }, "ZodReadonly": { "occurrences": 2, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 2, "args": 1, "types": [ "other" ] } ] }, "prefault": { "occurrences": 2, "arg_count": { "min": 2, "max": 2, "common": 2 }, "patterns": [ { "count": 2, "args": 2, "types": [ "other", "var" ] } ] }, "ZodLiteral": { "occurrences": 2, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 2, "args": 1, "types": [ "other" ] } ] }, "fn": { "occurrences": 2, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 2, "args": 1, "types": [ "other" ] } ] }, "ZodCodec": { "occurrences": 4, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 4, "args": 1, "types": [ "other" ] } ] }, "ZodTransform": { "occurrences": 2, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 2, "args": 1, "types": [ "other" ] } ] }, "ZodXor": { "occurrences": 2, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 2, "args": 1, "types": [ "other" ] } ] }, "ZodMap": { "occurrences": 2, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 2, "args": 1, "types": [ "other" ] } ] }, "readonly": { "occurrences": 2, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 2, "args": 1, "types": [ "other" ] } ] }, "ZodPromise": { "occurrences": 2, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 2, "args": 1, "types": [ "other" ] } ] }, "ZodTuple": { "occurrences": 2, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 2, "args": 1, "types": [ "other" ] } ] }, "ZodNullable": { "occurrences": 2, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 2, "args": 1, "types": [ "other" ] } ] }, "ZodCatch": { "occurrences": 2, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 2, "args": 1, "types": [ "other" ] } ] }, "ZodLazy": { "occurrences": 2, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 2, "args": 1, "types": [ "other" ] } ] }, "refine": { "occurrences": 2, "arg_count": { "min": 2, "max": 2, "common": 2 }, "patterns": [ { "count": 2, "args": 2, "types": [ "var", "var" ] } ] }, "ZodFunction": { "occurrences": 2, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 2, "args": 1, "types": [ "other" ] } ] }, "record": { "occurrences": 2, "arg_count": { "min": 2, "max": 2, "common": 2 }, "patterns": [ { "count": 2, "args": 2, "types": [ "call", "var" ] } ] }, "lazy": { "occurrences": 2, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 2, "args": 1, "types": [ "other" ] } ] }, "string": { "occurrences": 6, "arg_count": { "min": 0, "max": 1, "common": 0 }, "patterns": [ { "count": 4, "args": 0, "types": [] }, { "count": 2, "args": 1, "types": [ "var" ] } ] }, "_default": { "occurrences": 2, "arg_count": { "min": 2, "max": 2, "common": 2 }, "patterns": [ { "count": 2, "args": 2, "types": [ "other", "var" ] } ] }, "ZodNonOptional": { "occurrences": 2, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 2, "args": 1, "types": [ "other" ] } ] }, "superRefine": { "occurrences": 2, "arg_count": { "min": 2, "max": 2, "common": 2 }, "patterns": [ { "count": 2, "args": 2, "types": [ "var", "var" ] } ] }, "boolean": { "occurrences": 2, "arg_count": { "min": 0, "max": 0, "common": 0 }, "patterns": [ { "count": 2, "args": 0, "types": [] } ] }, "WeakMap": { "occurrences": 3, "arg_count": { "min": 0, "max": 0, "common": 0 }, "patterns": [ { "count": 3, "args": 0, "types": [] } ] }, "_null": { "occurrences": 2, "arg_count": { "min": 0, "max": 0, "common": 0 }, "patterns": [ { "count": 2, "args": 0, "types": [] } ] }, "new": { "occurrences": 67, "arg_count": { "min": 0, "max": 1, "common": 1 }, "patterns": [ { "count": 44, "args": 1, "types": [ "other" ] }, { "count": 8, "args": 1, "types": [ "lit" ] }, { "count": 7, "args": 1, "types": [ "template" ] }, { "count": 4, "args": 0, "types": [] }, { "count": 2, "args": 1, "types": [ "var" ] } ] }, "convertSchema": { "occurrences": 32, "arg_count": { "min": 2, "max": 2, "common": 2 }, "patterns": [ { "count": 24, "args": 2, "types": [ "other", "var" ] }, { "count": 8, "args": 2, "types": [ "var", "var" ] } ] }, "resolveRef": { "occurrences": 2, "arg_count": { "min": 2, "max": 2, "common": 2 }, "patterns": [ { "count": 2, "args": 2, "types": [ "var", "var" ] } ] }, "RegExp": { "occurrences": 6, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 3, "args": 1, "types": [ "other" ] }, { "count": 3, "args": 1, "types": [ "var" ] } ] }, "convertBaseSchema": { "occurrences": 4, "arg_count": { "min": 2, "max": 2, "common": 2 }, "patterns": [ { "count": 4, "args": 2, "types": [ "var", "var" ] } ] }, "Map": { "occurrences": 3, "arg_count": { "min": 0, "max": 0, "common": 0 }, "patterns": [ { "count": 3, "args": 0, "types": [] } ] }, "detectVersion": { "occurrences": 2, "arg_count": { "min": 2, "max": 2, "common": 2 }, "patterns": [ { "count": 2, "args": 2, "types": [ "var", "other" ] } ] } } }, { "label": "packages/zod/src/v4/classic/tests", "method_count": 2342, "algorithm": "CRX", "grammar": "root ::= (\"a\" | \"as\" | \"expect\" | \"expectTypeOf\" | \"if\" | \"new\" | \"number\" | \"object\" | \"optional\" | \"parse\" | \"result\" | \"return\" | \"safeParse\" | \"schema\" | \"string\" | \"toBe\" | \"toEqual\" | \"toEqualTypeOf\" | \"toMatchInlineSnapshot\" | \"toThrow\" | \"typeof\" | \"val\" | \"z\")+", "mdl_score": 1000000000000, "imports": [ "import { expect, expectTypeOf, test } from \"vitest\";", "import * as z from \"zod/v4\";", "import { expectTypeOf, test } from \"vitest\";", "import { expect, test } from \"vitest\";", "import { z } from \"zod/v4\";", "import { describe, expect, expectTypeOf, test } from \"vitest\";", "import { checkSync } from \"recheck\";", "import { describe, expect, it } from \"vitest\";", "import * as z from \"../index.js\";", "import { inspect } from \"node:util\";", "import { File as WebFile } from \"@web-std/file\";", "import { afterEach, beforeEach, expect, expectTypeOf, test } from \"vitest\";", "import type * as core from \"zod/v4/core\";", "import { type infer as _infer, json, nullable, object, pipe, transform } from \"../../mini/index.js\";", "import type { _ZodMiniJSONSchema } from \"../../mini/schemas.js\";", "import { fromJSONSchema } from \"../from-json-schema.js\";", "import { afterEach, expect, test } from \"vitest\";", "import * as core from \"zod/v4/core\";", "import { type ZodCustomStringFormat, hash } from \"zod\"; // adjust path as needed", "import type { util } from \"zod/v4/core\";", "import { randomBytes } from \"node:crypto\";", "import { describe, expect, test } from \"vitest\";", "import { Validator } from \"@seriousme/openapi-schema-validator\";", "import * as z from \"zod\";" ], "arg_patterns": { "expect": { "occurrences": 6432, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 3644, "args": 1, "types": [ "other" ] }, { "count": 2092, "args": 1, "types": [ "call" ] }, { "count": 568, "args": 1, "types": [ "var" ] }, { "count": 100, "args": 1, "types": [ "expr" ] }, { "count": 24, "args": 1, "types": [ "subscript" ] } ] }, "test": { "occurrences": 2178, "arg_count": { "min": 2, "max": 3, "common": 2 }, "patterns": [ { "count": 2174, "args": 2, "types": [ "lit", "other" ] }, { "count": 2, "args": 3, "types": [ "lit", "other", "lit" ] }, { "count": 2, "args": 2, "types": [ "template", "other" ] } ] }, "Error": { "occurrences": 24, "arg_count": { "min": 0, "max": 1, "common": 1 }, "patterns": [ { "count": 9, "args": 1, "types": [ "lit" ] }, { "count": 9, "args": 0, "types": [] }, { "count": 6, "args": 1, "types": [ "template" ] } ] }, "new": { "occurrences": 214, "arg_count": { "min": 0, "max": 3, "common": 1 }, "patterns": [ { "count": 106, "args": 1, "types": [ "other" ] }, { "count": 42, "args": 0, "types": [] }, { "count": 36, "args": 1, "types": [ "lit" ] }, { "count": 14, "args": 1, "types": [ "var" ] }, { "count": 8, "args": 2, "types": [ "other", "lit" ] } ] }, "Date": { "occurrences": 183, "arg_count": { "min": 0, "max": 1, "common": 1 }, "patterns": [ { "count": 84, "args": 1, "types": [ "lit" ] }, { "count": 57, "args": 0, "types": [] }, { "count": 30, "args": 1, "types": [ "var" ] }, { "count": 9, "args": 1, "types": [ "call" ] }, { "count": 3, "args": 1, "types": [ "expr" ] } ] }, "base": { "occurrences": 4, "arg_count": { "min": 0, "max": 1, "common": 0 }, "patterns": [ { "count": 2, "args": 0, "types": [] }, { "count": 2, "args": 1, "types": [ "lit" ] } ] }, "resolve": { "occurrences": 2, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 2, "args": 1, "types": [ "lit" ] } ] }, "setTimeout": { "occurrences": 6, "arg_count": { "min": 2, "max": 2, "common": 2 }, "patterns": [ { "count": 4, "args": 2, "types": [ "var", "lit" ] }, { "count": 2, "args": 2, "types": [ "other", "lit" ] } ] }, "BigInt": { "occurrences": 180, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 162, "args": 1, "types": [ "lit" ] }, { "count": 14, "args": 1, "types": [ "expr" ] }, { "count": 4, "args": 1, "types": [ "var" ] } ] }, "Promise": { "occurrences": 9, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 9, "args": 1, "types": [ "other" ] } ] }, "Set": { "occurrences": 174, "arg_count": { "min": 0, "max": 1, "common": 1 }, "patterns": [ { "count": 153, "args": 1, "types": [ "other" ] }, { "count": 15, "args": 0, "types": [] }, { "count": 6, "args": 1, "types": [ "var" ] } ] }, "expectTypeOf": { "occurrences": 790, "arg_count": { "min": 0, "max": 1, "common": 0 }, "patterns": [ { "count": 728, "args": 0, "types": [] }, { "count": 26, "args": 1, "types": [ "var" ] }, { "count": 20, "args": 1, "types": [ "call" ] }, { "count": 16, "args": 1, "types": [ "other" ] } ] }, "Symbol": { "occurrences": 39, "arg_count": { "min": 0, "max": 1, "common": 0 }, "patterns": [ { "count": 24, "args": 0, "types": [] }, { "count": 15, "args": 1, "types": [ "lit" ] } ] }, "Map": { "occurrences": 120, "arg_count": { "min": 0, "max": 1, "common": 1 }, "patterns": [ { "count": 108, "args": 1, "types": [ "other" ] }, { "count": 12, "args": 0, "types": [] } ] }, "Uint8Array": { "occurrences": 18, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 18, "args": 1, "types": [ "other" ] } ] }, "stringToBoolean": { "occurrences": 4, "arg_count": { "min": 0, "max": 1, "common": 0 }, "patterns": [ { "count": 2, "args": 0, "types": [] }, { "count": 2, "args": 1, "types": [ "other" ] } ] }, "TextDecoder": { "occurrences": 4, "arg_count": { "min": 0, "max": 0, "common": 0 }, "patterns": [ { "count": 4, "args": 0, "types": [] } ] }, "utf8ToBytes": { "occurrences": 2, "arg_count": { "min": 0, "max": 0, "common": 0 }, "patterns": [ { "count": 2, "args": 0, "types": [] } ] }, "Number": { "occurrences": 54, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 42, "args": 1, "types": [ "var" ] }, { "count": 9, "args": 1, "types": [ "other" ] }, { "count": 3, "args": 1, "types": [ "lit" ] } ] }, "stringToBigInt": { "occurrences": 2, "arg_count": { "min": 0, "max": 0, "common": 0 }, "patterns": [ { "count": 2, "args": 0, "types": [] } ] }, "bytesToUtf8": { "occurrences": 2, "arg_count": { "min": 0, "max": 0, "common": 0 }, "patterns": [ { "count": 2, "args": 0, "types": [] } ] }, "decodeURIComponent": { "occurrences": 3, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 3, "args": 1, "types": [ "var" ] } ] }, "epochMillisToDate": { "occurrences": 2, "arg_count": { "min": 0, "max": 0, "common": 0 }, "patterns": [ { "count": 2, "args": 0, "types": [] } ] }, "encodeURIComponent": { "occurrences": 3, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 3, "args": 1, "types": [ "var" ] } ] }, "uriComponent": { "occurrences": 2, "arg_count": { "min": 0, "max": 0, "common": 0 }, "patterns": [ { "count": 2, "args": 0, "types": [] } ] }, "base64": { "occurrences": 4, "arg_count": { "min": 0, "max": 0, "common": 0 }, "patterns": [ { "count": 4, "args": 0, "types": [] } ] }, "stringToHttpURL": { "occurrences": 4, "arg_count": { "min": 0, "max": 0, "common": 0 }, "patterns": [ { "count": 4, "args": 0, "types": [] } ] }, "URL": { "occurrences": 8, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 4, "args": 1, "types": [ "lit" ] }, { "count": 4, "args": 1, "types": [ "var" ] } ] }, "stringToNumber": { "occurrences": 2, "arg_count": { "min": 0, "max": 0, "common": 0 }, "patterns": [ { "count": 2, "args": 0, "types": [] } ] }, "stringToURL": { "occurrences": 4, "arg_count": { "min": 0, "max": 0, "common": 0 }, "patterns": [ { "count": 4, "args": 0, "types": [] } ] }, "numberToBigInt": { "occurrences": 2, "arg_count": { "min": 0, "max": 0, "common": 0 }, "patterns": [ { "count": 2, "args": 0, "types": [] } ] }, "jsonCodec": { "occurrences": 4, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 4, "args": 1, "types": [ "call" ] } ] }, "hexToBytes": { "occurrences": 4, "arg_count": { "min": 0, "max": 0, "common": 0 }, "patterns": [ { "count": 4, "args": 0, "types": [] } ] }, "stringToInt": { "occurrences": 2, "arg_count": { "min": 0, "max": 0, "common": 0 }, "patterns": [ { "count": 2, "args": 0, "types": [] } ] }, "TextEncoder": { "occurrences": 4, "arg_count": { "min": 0, "max": 0, "common": 0 }, "patterns": [ { "count": 4, "args": 0, "types": [] } ] }, "epochSecondsToDate": { "occurrences": 2, "arg_count": { "min": 0, "max": 0, "common": 0 }, "patterns": [ { "count": 2, "args": 0, "types": [] } ] }, "base64urlToBytes": { "occurrences": 2, "arg_count": { "min": 0, "max": 0, "common": 0 }, "patterns": [ { "count": 2, "args": 0, "types": [] } ] }, "isoDatetimeToDate": { "occurrences": 2, "arg_count": { "min": 0, "max": 0, "common": 0 }, "patterns": [ { "count": 2, "args": 0, "types": [] } ] }, "createSortItemSchema": { "occurrences": 2, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 2, "args": 1, "types": [ "var" ] } ] }, "validateOpenAPI30Schema": { "occurrences": 14, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 14, "args": 1, "types": [ "var" ] } ] }, "describe": { "occurrences": 52, "arg_count": { "min": 1, "max": 2, "common": 2 }, "patterns": [ { "count": 50, "args": 2, "types": [ "lit", "other" ] }, { "count": 2, "args": 1, "types": [ "lit" ] } ] }, "Validator": { "occurrences": 2, "arg_count": { "min": 0, "max": 0, "common": 0 }, "patterns": [ { "count": 2, "args": 0, "types": [] } ] }, "String": { "occurrences": 63, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 51, "args": 1, "types": [ "var" ] }, { "count": 12, "args": 1, "types": [ "other" ] } ] }, "it": { "occurrences": 6, "arg_count": { "min": 2, "max": 2, "common": 2 }, "patterns": [ { "count": 6, "args": 2, "types": [ "lit", "other" ] } ] }, "parse": { "occurrences": 10, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 6, "args": 1, "types": [ "lit" ] }, { "count": 2, "args": 1, "types": [ "other" ] }, { "count": 2, "args": 1, "types": [ "var" ] } ] }, "validatedFunction": { "occurrences": 4, "arg_count": { "min": 0, "max": 0, "common": 0 }, "patterns": [ { "count": 4, "args": 0, "types": [] } ] }, "checkSync": { "occurrences": 2, "arg_count": { "min": 2, "max": 2, "common": 2 }, "patterns": [ { "count": 2, "args": 2, "types": [ "other", "lit" ] } ] }, "hash": { "occurrences": 36, "arg_count": { "min": 1, "max": 2, "common": 2 }, "patterns": [ { "count": 24, "args": 2, "types": [ "var", "other" ] }, { "count": 6, "args": 1, "types": [ "lit" ] }, { "count": 4, "args": 2, "types": [ "lit", "other" ] }, { "count": 2, "args": 1, "types": [ "var" ] } ] }, "createHash": { "occurrences": 2, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 2, "args": 1, "types": [ "var" ] } ] }, "toB64Url": { "occurrences": 2, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 2, "args": 1, "types": [ "var" ] } ] }, "makeDigests": { "occurrences": 2, "arg_count": { "min": 2, "max": 2, "common": 2 }, "patterns": [ { "count": 2, "args": 2, "types": [ "var", "var" ] } ] }, "Array": { "occurrences": 6, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 6, "args": 1, "types": [ "lit" ] } ] }, "File": { "occurrences": 24, "arg_count": { "min": 2, "max": 3, "common": 2 }, "patterns": [ { "count": 16, "args": 2, "types": [ "other", "lit" ] }, { "count": 8, "args": 3, "types": [ "other", "lit", "other" ] } ] }, "afterEach": { "occurrences": 4, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 4, "args": 1, "types": [ "other" ] } ] }, "beforeEach": { "occurrences": 2, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 2, "args": 1, "types": [ "other" ] } ] }, "RegExp": { "occurrences": 3, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 3, "args": 1, "types": [ "other" ] } ] }, "makeJwt": { "occurrences": 10, "arg_count": { "min": 2, "max": 2, "common": 2 }, "patterns": [ { "count": 10, "args": 2, "types": [ "other", "other" ] } ] }, "randomBytes": { "occurrences": 4, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 4, "args": 1, "types": [ "expr" ] } ] }, "nest": { "occurrences": 4, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 4, "args": 1, "types": [ "call" ] } ] }, "createV4Schema": { "occurrences": 2, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 2, "args": 1, "types": [ "other" ] } ] }, "stripOuter": { "occurrences": 2, "arg_count": { "min": 2, "max": 2, "common": 2 }, "patterns": [ { "count": 2, "args": 2, "types": [ "call", "other" ] } ] }, "opt": { "occurrences": 4, "arg_count": { "min": 0, "max": 0, "common": 0 }, "patterns": [ { "count": 4, "args": 0, "types": [] } ] }, "refine": { "occurrences": 2, "arg_count": { "min": 2, "max": 2, "common": 2 }, "patterns": [ { "count": 2, "args": 2, "types": [ "other", "lit" ] } ] }, "detached": { "occurrences": 2, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 2, "args": 1, "types": [ "other" ] } ] }, "arr": { "occurrences": 2, "arg_count": { "min": 0, "max": 0, "common": 0 }, "patterns": [ { "count": 2, "args": 0, "types": [] } ] }, "nul": { "occurrences": 2, "arg_count": { "min": 0, "max": 0, "common": 0 }, "patterns": [ { "count": 2, "args": 0, "types": [] } ] }, "max": { "occurrences": 2, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 2, "args": 1, "types": [ "lit" ] } ] }, "pick": { "occurrences": 2, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 2, "args": 1, "types": [ "other" ] } ] }, "omit": { "occurrences": 2, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 2, "args": 1, "types": [ "other" ] } ] }, "min": { "occurrences": 2, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 2, "args": 1, "types": [ "lit" ] } ] }, "safeParse": { "occurrences": 2, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 2, "args": 1, "types": [ "lit" ] } ] }, "partial": { "occurrences": 2, "arg_count": { "min": 0, "max": 0, "common": 0 }, "patterns": [ { "count": 2, "args": 0, "types": [] } ] }, "extend": { "occurrences": 2, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 2, "args": 1, "types": [ "other" ] } ] }, "positive": { "occurrences": 2, "arg_count": { "min": 0, "max": 0, "common": 0 }, "patterns": [ { "count": 2, "args": 0, "types": [] } ] }, "branded": { "occurrences": 2, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 2, "args": 1, "types": [ "lit" ] } ] }, "A": { "occurrences": 2, "arg_count": { "min": 0, "max": 0, "common": 0 }, "patterns": [ { "count": 2, "args": 0, "types": [] } ] }, "Bar": { "occurrences": 4, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 4, "args": 1, "types": [ "lit" ] } ] }, "Subtest": { "occurrences": 4, "arg_count": { "min": 0, "max": 0, "common": 0 }, "patterns": [ { "count": 4, "args": 0, "types": [] } ] }, "Test": { "occurrences": 4, "arg_count": { "min": 0, "max": 0, "common": 0 }, "patterns": [ { "count": 4, "args": 0, "types": [] } ] }, "parsed": { "occurrences": 6, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 4, "args": 1, "types": [ "lit" ] }, { "count": 2, "args": 1, "types": [ "other" ] } ] }, "fn": { "occurrences": 4, "arg_count": { "min": 0, "max": 0, "common": 0 }, "patterns": [ { "count": 4, "args": 0, "types": [] } ] }, "func": { "occurrences": 8, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 6, "args": 1, "types": [ "lit" ] }, { "count": 2, "args": 1, "types": [ "other" ] } ] }, "typeGuard": { "occurrences": 2, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 2, "args": 1, "types": [ "var" ] } ] }, "checker": { "occurrences": 2, "arg_count": { "min": 0, "max": 0, "common": 0 }, "patterns": [ { "count": 2, "args": 0, "types": [] } ] }, "validFunc2Instance": { "occurrences": 2, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 2, "args": 1, "types": [ "other" ] } ] }, "validFunc3Instance": { "occurrences": 2, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 2, "args": 1, "types": [ "other" ] } ] }, "json": { "occurrences": 2, "arg_count": { "min": 0, "max": 0, "common": 0 }, "patterns": [ { "count": 2, "args": 0, "types": [] } ] }, "object": { "occurrences": 4, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 4, "args": 1, "types": [ "other" ] } ] }, "pipe": { "occurrences": 2, "arg_count": { "min": 2, "max": 2, "common": 2 }, "patterns": [ { "count": 2, "args": 2, "types": [ "call", "call" ] } ] }, "nullable": { "occurrences": 2, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 2, "args": 1, "types": [ "var" ] } ] }, "transform": { "occurrences": 2, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 2, "args": 1, "types": [ "other" ] } ] }, "doStuff": { "occurrences": 6, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 4, "args": 1, "types": [ "call" ] }, { "count": 2, "args": 1, "types": [ "other" ] } ] }, "protoInput": { "occurrences": 10, "arg_count": { "min": 0, "max": 0, "common": 0 }, "patterns": [ { "count": 10, "args": 0, "types": [] } ] }, "makeZodObj": { "occurrences": 2, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 2, "args": 1, "types": [ "lit" ] } ] }, "expectMethodMatch": { "occurrences": 176, "arg_count": { "min": 1, "max": 2, "common": 1 }, "patterns": [ { "count": 144, "args": 1, "types": [ "call" ] }, { "count": 22, "args": 2, "types": [ "call", "other" ] }, { "count": 8, "args": 1, "types": [ "var" ] }, { "count": 2, "args": 2, "types": [ "var", "other" ] } ] }, "inspect": { "occurrences": 2, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 2, "args": 1, "types": [ "var" ] } ] }, "fromJSONSchema": { "occurrences": 156, "arg_count": { "min": 1, "max": 2, "common": 1 }, "patterns": [ { "count": 116, "args": 1, "types": [ "other" ] }, { "count": 28, "args": 2, "types": [ "other", "other" ] }, { "count": 8, "args": 1, "types": [ "var" ] }, { "count": 4, "args": 1, "types": [ "lit" ] } ] }, "StringSchema": { "occurrences": 2, "arg_count": { "min": 0, "max": 0, "common": 0 }, "patterns": [ { "count": 2, "args": 0, "types": [] } ] } } }, { "label": "packages/zod/src/v4/core", "method_count": 704, "algorithm": "CRX", "grammar": "root ::= (\"$ZodType\" | \":\" | \"?\" | \"Class\" | \"Error\" | \"Object\" | \"Promise\" | \"Set\" | \"_ctx\" | \"any\" | \"as\" | \"checks\" | \"core\" | \"ctx\" | \"def\" | \"else\" | \"for\" | \"if\" | \"init\" | \"input\" | \"inst\" | \"instanceof\" | \"iss\" | \"key\" | \"map\" | \"new\" | \"normalizeParams\" | \"of\" | \"params\" | \"parse\" | \"payload\" | \"push\" | \"regexes\" | \"result\" | \"return\" | \"run\" | \"schema\" | \"schemas\" | \"then\" | \"throw\" | \"typeof\" | \"util\" | \"value\")+", "mdl_score": 1000000000000, "imports": [ "import * as checks from \"./checks.js\";", "import type * as core from \"./core.js\";", "import type * as errors from \"./errors.js\";", "import * as registries from \"./registries.js\";", "import * as schemas from \"./schemas.js\";", "import * as util from \"./util.js\";", "import * as core from \"./core.js\";", "import * as regexes from \"./regexes.js\";", "import type * as schemas from \"./schemas.js\";", "import type { Class } from \"./util.js\";", "import type { $ZodCheck, $ZodStringFormats } from \"./checks.js\";", "import { $constructor } from \"./core.js\";", "import type { $ZodType } from \"./schemas.js\";", "import type { StandardSchemaV1 } from \"./standard-schema.js\";", "import { allProcessors } from \"./json-schema-processors.js\";", "import type * as JSONSchema from \"./json-schema.js\";", "import type { $ZodRegistry } from \"./registries.js\";", "import {", "import type * as checks from \"./checks.js\";", "import { getEnumValues } from \"./util.js\";", "import * as errors from \"./errors.js\";", "import type { $ZodTypeDiscriminable } from \"./api.js\";", "import { Doc } from \"./doc.js\";", "import { parse, parseAsync, safeParse, safeParseAsync } from \"./parse.js\";", "import type { ProcessParams, ToJSONSchemaContext } from \"./to-json-schema.js\";", "import { version } from \"./versions.js\";", "import type * as core from \"../core/index.js\";", "import { type $ZodRegistry, globalRegistry } from \"./registries.js\";", "import type { StandardJSONSchemaV1, StandardSchemaWithJSONProps } from \"./standard-schema.js\";", "import { globalConfig } from \"./core.js\";", "import type { $ZodConfig } from \"./core.js\";" ], "arg_patterns": { "fn": { "occurrences": 10, "arg_count": { "min": 0, "max": 3, "common": 1 }, "patterns": [ { "count": 2, "args": 0, "types": [] }, { "count": 2, "args": 2, "types": [ "other", "other" ] }, { "count": 2, "args": 1, "types": [ "var" ] }, { "count": 2, "args": 3, "types": [ "var", "var", "var" ] }, { "count": 2, "args": 1, "types": [ "other" ] } ] }, "Definition": { "occurrences": 2, "arg_count": { "min": 0, "max": 0, "common": 0 }, "patterns": [ { "count": 2, "args": 0, "types": [] } ] }, "init": { "occurrences": 2, "arg_count": { "min": 2, "max": 2, "common": 2 }, "patterns": [ { "count": 2, "args": 2, "types": [ "var", "var" ] } ] }, "Set": { "occurrences": 84, "arg_count": { "min": 0, "max": 1, "common": 1 }, "patterns": [ { "count": 30, "args": 0, "types": [] }, { "count": 24, "args": 1, "types": [ "other" ] }, { "count": 18, "args": 1, "types": [ "var" ] }, { "count": 12, "args": 1, "types": [ "call" ] } ] }, "Symbol": { "occurrences": 12, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 12, "args": 1, "types": [ "lit" ] } ] }, "initializer": { "occurrences": 2, "arg_count": { "min": 2, "max": 2, "common": 2 }, "patterns": [ { "count": 2, "args": 2, "types": [ "var", "var" ] } ] }, "new": { "occurrences": 254, "arg_count": { "min": 0, "max": 2, "common": 1 }, "patterns": [ { "count": 126, "args": 1, "types": [ "other" ] }, { "count": 39, "args": 1, "types": [ "lit" ] }, { "count": 33, "args": 1, "types": [ "template" ] }, { "count": 31, "args": 0, "types": [] }, { "count": 9, "args": 1, "types": [ "var" ] } ] }, "mapper": { "occurrences": 12, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 12, "args": 1, "types": [ "var" ] } ] }, "toDotPath": { "occurrences": 2, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 2, "args": 1, "types": [ "other" ] } ] }, "$constructor": { "occurrences": 4, "arg_count": { "min": 2, "max": 3, "common": 2 }, "patterns": [ { "count": 2, "args": 3, "types": [ "lit", "var", "other" ] }, { "count": 2, "args": 2, "types": [ "lit", "var" ] } ] }, "processError": { "occurrences": 16, "arg_count": { "min": 1, "max": 2, "common": 2 }, "patterns": [ { "count": 12, "args": 2, "types": [ "other", "other" ] }, { "count": 4, "args": 1, "types": [ "var" ] } ] }, "String": { "occurrences": 12, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 9, "args": 1, "types": [ "var" ] }, { "count": 3, "args": 1, "types": [ "other" ] } ] }, "Class": { "occurrences": 168, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 166, "args": 1, "types": [ "other" ] }, { "count": 2, "args": 1, "types": [ "var" ] } ] }, "_lt": { "occurrences": 2, "arg_count": { "min": 2, "max": 2, "common": 2 }, "patterns": [ { "count": 2, "args": 2, "types": [ "lit", "var" ] } ] }, "_overwrite": { "occurrences": 10, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 10, "args": 1, "types": [ "other" ] } ] }, "_Codec": { "occurrences": 2, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 2, "args": 1, "types": [ "other" ] } ] }, "_String": { "occurrences": 2, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 2, "args": 1, "types": [ "other" ] } ] }, "_gt": { "occurrences": 2, "arg_count": { "min": 2, "max": 2, "common": 2 }, "patterns": [ { "count": 2, "args": 2, "types": [ "lit", "var" ] } ] }, "_gte": { "occurrences": 2, "arg_count": { "min": 2, "max": 2, "common": 2 }, "patterns": [ { "count": 2, "args": 2, "types": [ "lit", "var" ] } ] }, "_check": { "occurrences": 2, "arg_count": { "min": 2, "max": 2, "common": 2 }, "patterns": [ { "count": 2, "args": 2, "types": [ "other", "var" ] } ] }, "_lte": { "occurrences": 2, "arg_count": { "min": 2, "max": 2, "common": 2 }, "patterns": [ { "count": 2, "args": 2, "types": [ "lit", "var" ] } ] }, "_Boolean": { "occurrences": 2, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 2, "args": 1, "types": [ "other" ] } ] }, "RegExp": { "occurrences": 54, "arg_count": { "min": 1, "max": 2, "common": 1 }, "patterns": [ { "count": 48, "args": 1, "types": [ "template" ] }, { "count": 3, "args": 1, "types": [ "expr" ] }, { "count": 3, "args": 2, "types": [ "var", "lit" ] } ] }, "BigInt": { "occurrences": 12, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 10, "args": 1, "types": [ "lit" ] }, { "count": 2, "args": 1, "types": [ "other" ] } ] }, "handleCheckPropertyResult": { "occurrences": 4, "arg_count": { "min": 3, "max": 3, "common": 3 }, "patterns": [ { "count": 4, "args": 3, "types": [ "var", "var", "other" ] } ] }, "Error": { "occurrences": 174, "arg_count": { "min": 0, "max": 1, "common": 1 }, "patterns": [ { "count": 111, "args": 1, "types": [ "lit" ] }, { "count": 45, "args": 1, "types": [ "template" ] }, { "count": 12, "args": 0, "types": [] }, { "count": 6, "args": 1, "types": [ "expr" ] } ] }, "_safeEncodeAsync": { "occurrences": 2, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 2, "args": 1, "types": [ "other" ] } ] }, "_safeDecode": { "occurrences": 2, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 2, "args": 1, "types": [ "other" ] } ] }, "_parseAsync": { "occurrences": 6, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 4, "args": 1, "types": [ "var" ] }, { "count": 2, "args": 1, "types": [ "other" ] } ] }, "_safeParseAsync": { "occurrences": 6, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 4, "args": 1, "types": [ "var" ] }, { "count": 2, "args": 1, "types": [ "other" ] } ] }, "_safeDecodeAsync": { "occurrences": 2, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 2, "args": 1, "types": [ "other" ] } ] }, "_encodeAsync": { "occurrences": 2, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 2, "args": 1, "types": [ "other" ] } ] }, "_safeEncode": { "occurrences": 2, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 2, "args": 1, "types": [ "other" ] } ] }, "_safeParse": { "occurrences": 6, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 4, "args": 1, "types": [ "var" ] }, { "count": 2, "args": 1, "types": [ "other" ] } ] }, "_Err": { "occurrences": 2, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 2, "args": 1, "types": [ "call" ] } ] }, "_decodeAsync": { "occurrences": 2, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 2, "args": 1, "types": [ "other" ] } ] }, "_parse": { "occurrences": 6, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 4, "args": 1, "types": [ "var" ] }, { "count": 2, "args": 1, "types": [ "other" ] } ] }, "_encode": { "occurrences": 2, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 2, "args": 1, "types": [ "other" ] } ] }, "_decode": { "occurrences": 2, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 2, "args": 1, "types": [ "other" ] } ] }, "WeakMap": { "occurrences": 6, "arg_count": { "min": 0, "max": 0, "common": 0 }, "patterns": [ { "count": 6, "args": 0, "types": [] } ] }, "Map": { "occurrences": 24, "arg_count": { "min": 0, "max": 1, "common": 0 }, "patterns": [ { "count": 21, "args": 0, "types": [] }, { "count": 3, "args": 1, "types": [ "var" ] } ] }, "$ZodRegistry": { "occurrences": 2, "arg_count": { "min": 0, "max": 0, "common": 0 }, "patterns": [ { "count": 2, "args": 0, "types": [] } ] }, "registry": { "occurrences": 2, "arg_count": { "min": 0, "max": 0, "common": 0 }, "patterns": [ { "count": 2, "args": 0, "types": [] } ] }, "finalize": { "occurrences": 10, "arg_count": { "min": 2, "max": 2, "common": 2 }, "patterns": [ { "count": 6, "args": 2, "types": [ "other", "var" ] }, { "count": 4, "args": 2, "types": [ "var", "var" ] } ] }, "initializeContext": { "occurrences": 10, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 10, "args": 1, "types": [ "other" ] } ] }, "extractDefs": { "occurrences": 10, "arg_count": { "min": 2, "max": 2, "common": 2 }, "patterns": [ { "count": 6, "args": 2, "types": [ "other", "var" ] }, { "count": 4, "args": 2, "types": [ "var", "var" ] } ] }, "process": { "occurrences": 54, "arg_count": { "min": 2, "max": 3, "common": 3 }, "patterns": [ { "count": 18, "args": 3, "types": [ "other", "other", "other" ] }, { "count": 16, "args": 3, "types": [ "other", "other", "var" ] }, { "count": 6, "args": 3, "types": [ "var", "other", "var" ] }, { "count": 4, "args": 2, "types": [ "var", "var" ] }, { "count": 4, "args": 3, "types": [ "var", "other", "other" ] } ] }, "parse": { "occurrences": 4, "arg_count": { "min": 2, "max": 2, "common": 2 }, "patterns": [ { "count": 4, "args": 2, "types": [ "other", "var" ] } ] }, "Number": { "occurrences": 12, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 9, "args": 1, "types": [ "var" ] }, { "count": 3, "args": 1, "types": [ "other" ] } ] }, "handleReadonlyResult": { "occurrences": 2, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 2, "args": 1, "types": [ "var" ] } ] }, "handlePipeResult": { "occurrences": 8, "arg_count": { "min": 3, "max": 3, "common": 3 }, "patterns": [ { "count": 8, "args": 3, "types": [ "var", "other", "var" ] } ] }, "runChecks": { "occurrences": 6, "arg_count": { "min": 3, "max": 3, "common": 3 }, "patterns": [ { "count": 6, "args": 3, "types": [ "var", "var", "var" ] } ] }, "parseAsync": { "occurrences": 4, "arg_count": { "min": 2, "max": 2, "common": 2 }, "patterns": [ { "count": 4, "args": 2, "types": [ "other", "var" ] } ] }, "handleArrayResult": { "occurrences": 4, "arg_count": { "min": 3, "max": 3, "common": 3 }, "patterns": [ { "count": 4, "args": 3, "types": [ "var", "var", "var" ] } ] }, "handleSetResult": { "occurrences": 4, "arg_count": { "min": 2, "max": 2, "common": 2 }, "patterns": [ { "count": 4, "args": 2, "types": [ "var", "var" ] } ] }, "isObject": { "occurrences": 8, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 8, "args": 1, "types": [ "var" ] } ] }, "isValidBase64URL": { "occurrences": 2, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 2, "args": 1, "types": [ "other" ] } ] }, "getTupleOptStart": { "occurrences": 4, "arg_count": { "min": 2, "max": 2, "common": 2 }, "patterns": [ { "count": 4, "args": 2, "types": [ "var", "lit" ] } ] }, "handleCodecAResult": { "occurrences": 8, "arg_count": { "min": 3, "max": 3, "common": 3 }, "patterns": [ { "count": 8, "args": 3, "types": [ "var", "var", "var" ] } ] }, "handleCodecTxResult": { "occurrences": 8, "arg_count": { "min": 4, "max": 4, "common": 4 }, "patterns": [ { "count": 8, "args": 4, "types": [ "var", "var", "other", "var" ] } ] }, "handleRefineResult": { "occurrences": 4, "arg_count": { "min": 4, "max": 4, "common": 4 }, "patterns": [ { "count": 4, "args": 4, "types": [ "var", "var", "var", "var" ] } ] }, "Boolean": { "occurrences": 3, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 3, "args": 1, "types": [ "other" ] } ] }, "Array": { "occurrences": 6, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 6, "args": 1, "types": [ "other" ] } ] }, "mergeValues": { "occurrences": 6, "arg_count": { "min": 2, "max": 2, "common": 2 }, "patterns": [ { "count": 2, "args": 2, "types": [ "subscript", "subscript" ] }, { "count": 2, "args": 2, "types": [ "var", "var" ] }, { "count": 2, "args": 2, "types": [ "other", "other" ] } ] }, "handleUnionResults": { "occurrences": 4, "arg_count": { "min": 4, "max": 4, "common": 4 }, "patterns": [ { "count": 4, "args": 4, "types": [ "other", "var", "var", "var" ] } ] }, "isValidJWT": { "occurrences": 2, "arg_count": { "min": 2, "max": 2, "common": 2 }, "patterns": [ { "count": 2, "args": 2, "types": [ "other", "other" ] } ] }, "handleDefaultResult": { "occurrences": 4, "arg_count": { "min": 2, "max": 2, "common": 2 }, "patterns": [ { "count": 4, "args": 2, "types": [ "var", "var" ] } ] }, "F": { "occurrences": 10, "arg_count": { "min": 1, "max": 2, "common": 1 }, "patterns": [ { "count": 6, "args": 1, "types": [ "other" ] }, { "count": 2, "args": 1, "types": [ "lit" ] }, { "count": 2, "args": 2, "types": [ "other", "call" ] } ] }, "normalizeDef": { "occurrences": 4, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 4, "args": 1, "types": [ "var" ] } ] }, "handleTupleResults": { "occurrences": 4, "arg_count": { "min": 5, "max": 5, "common": 5 }, "patterns": [ { "count": 4, "args": 5, "types": [ "var", "var", "var", "var", "var" ] } ] }, "handleExclusiveUnionResults": { "occurrences": 4, "arg_count": { "min": 4, "max": 4, "common": 4 }, "patterns": [ { "count": 4, "args": 4, "types": [ "other", "var", "var", "var" ] } ] }, "Doc": { "occurrences": 2, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 2, "args": 1, "types": [ "other" ] } ] }, "isValidBase64": { "occurrences": 4, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 2, "args": 1, "types": [ "var" ] }, { "count": 2, "args": 1, "types": [ "other" ] } ] }, "handleOptionalResult": { "occurrences": 4, "arg_count": { "min": 2, "max": 2, "common": 2 }, "patterns": [ { "count": 4, "args": 2, "types": [ "var", "var" ] } ] }, "first": { "occurrences": 4, "arg_count": { "min": 2, "max": 2, "common": 2 }, "patterns": [ { "count": 4, "args": 2, "types": [ "var", "var" ] } ] }, "handleMapResult": { "occurrences": 4, "arg_count": { "min": 7, "max": 7, "common": 7 }, "patterns": [ { "count": 2, "args": 7, "types": [ "other", "other", "var", "var", "var", "var", "var" ] }, { "count": 2, "args": 7, "types": [ "var", "var", "var", "var", "var", "var", "var" ] } ] }, "$ZodTuple": { "occurrences": 2, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 2, "args": 1, "types": [ "other" ] } ] }, "parseStr": { "occurrences": 2, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 2, "args": 1, "types": [ "var" ] } ] }, "handleCanaryResult": { "occurrences": 4, "arg_count": { "min": 3, "max": 3, "common": 3 }, "patterns": [ { "count": 4, "args": 3, "types": [ "var", "var", "var" ] } ] }, "atob": { "occurrences": 6, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 6, "args": 1, "types": [ "var" ] } ] }, "handleCatchall": { "occurrences": 4, "arg_count": { "min": 6, "max": 6, "common": 6 }, "patterns": [ { "count": 2, "args": 6, "types": [ "var", "var", "var", "var", "other", "var" ] }, { "count": 2, "args": 6, "types": [ "other", "var", "var", "var", "var", "var" ] } ] }, "handleIntersectionResults": { "occurrences": 4, "arg_count": { "min": 3, "max": 3, "common": 3 }, "patterns": [ { "count": 4, "args": 3, "types": [ "var", "var", "var" ] } ] }, "handleTupleResult": { "occurrences": 4, "arg_count": { "min": 3, "max": 3, "common": 3 }, "patterns": [ { "count": 4, "args": 3, "types": [ "var", "var", "var" ] } ] }, "handlePropertyResult": { "occurrences": 8, "arg_count": { "min": 6, "max": 6, "common": 6 }, "patterns": [ { "count": 8, "args": 6, "types": [ "var", "var", "var", "var", "var", "var" ] } ] }, "handleNonOptionalResult": { "occurrences": 4, "arg_count": { "min": 2, "max": 2, "common": 2 }, "patterns": [ { "count": 4, "args": 2, "types": [ "var", "var" ] } ] }, "safeParseAsync": { "occurrences": 2, "arg_count": { "min": 2, "max": 2, "common": 2 }, "patterns": [ { "count": 2, "args": 2, "types": [ "var", "var" ] } ] }, "fastpass": { "occurrences": 2, "arg_count": { "min": 2, "max": 2, "common": 2 }, "patterns": [ { "count": 2, "args": 2, "types": [ "var", "var" ] } ] }, "URL": { "occurrences": 6, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 4, "args": 1, "types": [ "template" ] }, { "count": 2, "args": 1, "types": [ "var" ] } ] }, "_super": { "occurrences": 2, "arg_count": { "min": 2, "max": 2, "common": 2 }, "patterns": [ { "count": 2, "args": 2, "types": [ "var", "var" ] } ] }, "generateFastpass": { "occurrences": 2, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 2, "args": 1, "types": [ "other" ] } ] }, "Date": { "occurrences": 3, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 3, "args": 1, "types": [ "other" ] } ] }, "safeParse": { "occurrences": 2, "arg_count": { "min": 2, "max": 2, "common": 2 }, "patterns": [ { "count": 2, "args": 2, "types": [ "var", "var" ] } ] }, "superParse": { "occurrences": 2, "arg_count": { "min": 2, "max": 2, "common": 2 }, "patterns": [ { "count": 2, "args": 2, "types": [ "var", "var" ] } ] }, "mergeDefs": { "occurrences": 16, "arg_count": { "min": 1, "max": 2, "common": 2 }, "patterns": [ { "count": 14, "args": 2, "types": [ "other", "other" ] }, { "count": 2, "args": 1, "types": [ "other" ] } ] }, "btoa": { "occurrences": 2, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 2, "args": 1, "types": [ "var" ] } ] }, "getter": { "occurrences": 18, "arg_count": { "min": 0, "max": 0, "common": 0 }, "patterns": [ { "count": 18, "args": 0, "types": [] } ] }, "isPlainObject": { "occurrences": 6, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 6, "args": 1, "types": [ "var" ] } ] }, "clone": { "occurrences": 14, "arg_count": { "min": 2, "max": 2, "common": 2 }, "patterns": [ { "count": 14, "args": 2, "types": [ "var", "var" ] } ] }, "unwrapMessage": { "occurrences": 8, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 8, "args": 1, "types": [ "call" ] } ] }, "assignProp": { "occurrences": 14, "arg_count": { "min": 3, "max": 3, "common": 3 }, "patterns": [ { "count": 14, "args": 3, "types": [ "other", "lit", "var" ] } ] }, "Uint8Array": { "occurrences": 6, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 3, "args": 1, "types": [ "other" ] }, { "count": 3, "args": 1, "types": [ "expr" ] } ] }, "stringifyPrimitive": { "occurrences": 2, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 2, "args": 1, "types": [ "var" ] } ] }, "Proxy": { "occurrences": 2, "arg_count": { "min": 2, "max": 2, "common": 2 }, "patterns": [ { "count": 2, "args": 2, "types": [ "other", "other" ] } ] }, "uint8ArrayToBase64": { "occurrences": 2, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 2, "args": 1, "types": [ "var" ] } ] }, "cached": { "occurrences": 2, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 2, "args": 1, "types": [ "other" ] } ] }, "base64ToUint8Array": { "occurrences": 2, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 2, "args": 1, "types": [ "expr" ] } ] }, "flattenRef": { "occurrences": 6, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 4, "args": 1, "types": [ "var" ] }, { "count": 2, "args": 1, "types": [ "subscript" ] } ] }, "isTransforming": { "occurrences": 30, "arg_count": { "min": 1, "max": 2, "common": 2 }, "patterns": [ { "count": 22, "args": 2, "types": [ "other", "var" ] }, { "count": 4, "args": 2, "types": [ "var", "var" ] }, { "count": 2, "args": 1, "types": [ "var" ] }, { "count": 2, "args": 2, "types": [ "call", "var" ] } ] }, "processor": { "occurrences": 2, "arg_count": { "min": 4, "max": 4, "common": 4 }, "patterns": [ { "count": 2, "args": 4, "types": [ "var", "var", "var", "var" ] } ] }, "extractToDef": { "occurrences": 10, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 10, "args": 1, "types": [ "var" ] } ] }, "uriGenerator": { "occurrences": 4, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 2, "args": 1, "types": [ "var" ] }, { "count": 2, "args": 1, "types": [ "lit" ] } ] }, "createStandardJSONSchemaMethod": { "occurrences": 4, "arg_count": { "min": 3, "max": 3, "common": 3 }, "patterns": [ { "count": 4, "args": 3, "types": [ "var", "lit", "other" ] } ] }, "makeURI": { "occurrences": 2, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 2, "args": 1, "types": [ "var" ] } ] }, "getEnumValues": { "occurrences": 2, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 2, "args": 1, "types": [ "other" ] } ] }, "isSimpleIntersection": { "occurrences": 4, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 4, "args": 1, "types": [ "var" ] } ] }, "fixedBase64url": { "occurrences": 10, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 10, "args": 1, "types": [ "lit" ] } ] }, "uuid": { "occurrences": 6, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 6, "args": 1, "types": [ "lit" ] } ] }, "fixedBase64": { "occurrences": 10, "arg_count": { "min": 2, "max": 2, "common": 2 }, "patterns": [ { "count": 10, "args": 2, "types": [ "lit", "lit" ] } ] }, "timeSource": { "occurrences": 4, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 2, "args": 1, "types": [ "var" ] }, { "count": 2, "args": 1, "types": [ "other" ] } ] } } }, { "label": "packages/zod/src/v4/core/tests", "method_count": 43, "algorithm": "CRX", "grammar": "root ::= (\"Object\" | \"any\" | \"anyConstructorSchema\" | \"array\" | \"defineProperty\" | \"enumSchema\" | \"expect\" | \"for\" | \"if\" | \"input\" | \"lazy\" | \"number\" | \"object\" | \"or\" | \"parse\" | \"record\" | \"result\" | \"result1\" | \"result2\" | \"safeParse\" | \"schema\" | \"string\" | \"stringSchema\" | \"testCase\" | \"toBe\" | \"toEqual\" | \"toThrow\" | \"tuple\" | \"y\" | \"z\")+", "mdl_score": 1000000000000, "imports": [ "import { expect, test } from \"vitest\";", "import * as z from \"zod/v4\";", "import { expect, expectTypeOf, test } from \"vitest\";", "import * as z from \"zod/v3\";", "import { describe, expect, it } from \"vitest\";" ], "arg_patterns": { "expect": { "occurrences": 90, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 50, "args": 1, "types": [ "other" ] }, { "count": 24, "args": 1, "types": [ "var" ] }, { "count": 10, "args": 1, "types": [ "call" ] }, { "count": 2, "args": 1, "types": [ "lit" ] }, { "count": 2, "args": 1, "types": [ "expr" ] } ] }, "it": { "occurrences": 10, "arg_count": { "min": 2, "max": 2, "common": 2 }, "patterns": [ { "count": 10, "args": 2, "types": [ "lit", "other" ] } ] }, "describe": { "occurrences": 2, "arg_count": { "min": 2, "max": 2, "common": 2 }, "patterns": [ { "count": 2, "args": 2, "types": [ "lit", "other" ] } ] }, "test": { "occurrences": 26, "arg_count": { "min": 2, "max": 2, "common": 2 }, "patterns": [ { "count": 26, "args": 2, "types": [ "lit", "other" ] } ] }, "expectTypeOf": { "occurrences": 2, "arg_count": { "min": 0, "max": 0, "common": 0 }, "patterns": [ { "count": 2, "args": 0, "types": [] } ] } } }, { "label": "packages/zod/src/v4/core/tests/locales", "method_count": 85, "algorithm": "CRX", "grammar": "root ::= (\"BigInt\" | \"Date\" | \"Map\" | \"Set\" | \"TEST_CASES\" | \"array\" | \"arrayResult\" | \"arraySchema\" | \"bigint\" | \"boolean\" | \"cases\" | \"config\" | \"count\" | \"date\" | \"describe\" | \"el\" | \"email\" | \"endsWith\" | \"enum\" | \"error\" | \"es\" | \"expect\" | \"expected\" | \"for\" | \"function\" | \"hr\" | \"if\" | \"includes\" | \"input\" | \"it\" | \"localeError\" | \"max\" | \"min\" | \"multipleOf\" | \"new\" | \"number\" | \"numberResult\" | \"numberSchema\" | \"object\" | \"of\" | \"record\" | \"regex\" | \"result\" | \"safeParse\" | \"schema\" | \"set\" | \"setResult\" | \"startsWith\" | \"strict\" | \"string\" | \"stringResult\" | \"stringSchema\" | \"test\" | \"toBe\" | \"toContain\" | \"tuple\" | \"type\" | \"union\" | \"url\" | \"z\")+", "mdl_score": 1000000000000, "imports": [ "import { describe, expect, it } from \"vitest\";", "import be from \"../../../locales/be.js\";", "import { expect, test } from \"vitest\";", "import { z } from \"../../../../index.js\";", "import el from \"../../../locales/el.js\";", "import { parsedType } from \"../../util.js\";", "import es from \"../../../locales/es.js\";", "import fr from \"../../../locales/fr.js\";", "import { beforeEach, describe, expect, test } from \"vitest\";", "import he from \"../../../locales/he.js\";", "import hr from \"../../../locales/hr.js\";", "import nl from \"../../../locales/nl.js\";", "import ru from \"../../../locales/ru.js\";", "import * as z from \"zod/v4\";" ], "arg_patterns": { "fr": { "occurrences": 6, "arg_count": { "min": 0, "max": 0, "common": 0 }, "patterns": [ { "count": 6, "args": 0, "types": [] } ] }, "expect": { "occurrences": 630, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 552, "args": 1, "types": [ "other" ] }, { "count": 62, "args": 1, "types": [ "call" ] }, { "count": 16, "args": 1, "types": [ "var" ] } ] }, "test": { "occurrences": 116, "arg_count": { "min": 2, "max": 2, "common": 2 }, "patterns": [ { "count": 116, "args": 2, "types": [ "lit", "other" ] } ] }, "Set": { "occurrences": 24, "arg_count": { "min": 0, "max": 1, "common": 1 }, "patterns": [ { "count": 18, "args": 1, "types": [ "other" ] }, { "count": 6, "args": 0, "types": [] } ] }, "new": { "occurrences": 19, "arg_count": { "min": 0, "max": 1, "common": 1 }, "patterns": [ { "count": 9, "args": 1, "types": [ "other" ] }, { "count": 8, "args": 0, "types": [] }, { "count": 2, "args": 1, "types": [ "lit" ] } ] }, "Map": { "occurrences": 15, "arg_count": { "min": 0, "max": 1, "common": 1 }, "patterns": [ { "count": 9, "args": 1, "types": [ "other" ] }, { "count": 6, "args": 0, "types": [] } ] }, "describe": { "occurrences": 36, "arg_count": { "min": 2, "max": 2, "common": 2 }, "patterns": [ { "count": 32, "args": 2, "types": [ "lit", "other" ] }, { "count": 4, "args": 2, "types": [ "template", "other" ] } ] }, "localeError": { "occurrences": 24, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 24, "args": 1, "types": [ "other" ] } ] }, "it": { "occurrences": 16, "arg_count": { "min": 2, "max": 2, "common": 2 }, "patterns": [ { "count": 12, "args": 2, "types": [ "lit", "other" ] }, { "count": 4, "args": 2, "types": [ "template", "other" ] } ] }, "BigInt": { "occurrences": 12, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 12, "args": 1, "types": [ "lit" ] } ] }, "ru": { "occurrences": 2, "arg_count": { "min": 0, "max": 0, "common": 0 }, "patterns": [ { "count": 2, "args": 0, "types": [] } ] }, "hr": { "occurrences": 8, "arg_count": { "min": 0, "max": 0, "common": 0 }, "patterns": [ { "count": 8, "args": 0, "types": [] } ] }, "parsedType": { "occurrences": 54, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 30, "args": 1, "types": [ "other" ] }, { "count": 16, "args": 1, "types": [ "lit" ] }, { "count": 8, "args": 1, "types": [ "var" ] } ] }, "Date": { "occurrences": 12, "arg_count": { "min": 0, "max": 1, "common": 0 }, "patterns": [ { "count": 6, "args": 0, "types": [] }, { "count": 6, "args": 1, "types": [ "lit" ] } ] }, "Error": { "occurrences": 6, "arg_count": { "min": 0, "max": 0, "common": 0 }, "patterns": [ { "count": 6, "args": 0, "types": [] } ] }, "beforeEach": { "occurrences": 2, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 2, "args": 1, "types": [ "other" ] } ] }, "he": { "occurrences": 2, "arg_count": { "min": 0, "max": 0, "common": 0 }, "patterns": [ { "count": 2, "args": 0, "types": [] } ] }, "be": { "occurrences": 2, "arg_count": { "min": 0, "max": 0, "common": 0 }, "patterns": [ { "count": 2, "args": 0, "types": [] } ] }, "el": { "occurrences": 10, "arg_count": { "min": 0, "max": 0, "common": 0 }, "patterns": [ { "count": 10, "args": 0, "types": [] } ] }, "es": { "occurrences": 10, "arg_count": { "min": 0, "max": 0, "common": 0 }, "patterns": [ { "count": 10, "args": 0, "types": [] } ] }, "nl": { "occurrences": 2, "arg_count": { "min": 0, "max": 0, "common": 0 }, "patterns": [ { "count": 2, "args": 0, "types": [] } ] } } }, { "label": "packages/zod/src/v4/locales", "method_count": 214, "algorithm": "CRX", "grammar": "root ::= (\"$ZodInvalidTypeExpected\" | \"$ZodStringFormatIssues\" | \"$ZodStringFormats\" | \":\" | \"?\" | \"FormatDictionary\" | \"Record\" | \"Sizable\" | \"TypeDictionary\" | \"_issue\" | \"adj\" | \"as\" | \"case\" | \"default\" | \"errors\" | \"expected\" | \"function\" | \"getSizing\" | \"if\" | \"in\" | \"issue\" | \"joinValues\" | \"k\" | \"origin\" | \"parsedType\" | \"received\" | \"receivedType\" | \"return\" | \"sizing\" | \"string\" | \"stringifyPrimitive\" | \"switch\" | \"test\" | \"toString\" | \"util\")+ \"error\"?+", "mdl_score": 1000000000000, "imports": [ "import type { $ZodStringFormats } from \"../core/checks.js\";", "import type * as errors from \"../core/errors.js\";", "import * as util from \"../core/util.js\";", "import km from \"./km.js\";", "import uk from \"./uk.js\";" ], "arg_patterns": { "verbFor": { "occurrences": 4, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 4, "args": 1, "types": [ "expr" ] } ] }, "getSizing": { "occurrences": 200, "arg_count": { "min": 1, "max": 4, "common": 1 }, "patterns": [ { "count": 196, "args": 1, "types": [ "other" ] }, { "count": 4, "args": 4, "types": [ "other", "call", "expr", "lit" ] } ] }, "typeLabel": { "occurrences": 4, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 4, "args": 1, "types": [ "var" ] } ] }, "error": { "occurrences": 100, "arg_count": { "min": 0, "max": 0, "common": 0 }, "patterns": [ { "count": 100, "args": 0, "types": [] } ] }, "withDefinite": { "occurrences": 6, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 6, "args": 1, "types": [ "expr" ] } ] }, "typeEntry": { "occurrences": 4, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 4, "args": 1, "types": [ "var" ] } ] }, "getArmenianPlural": { "occurrences": 4, "arg_count": { "min": 3, "max": 3, "common": 3 }, "patterns": [ { "count": 4, "args": 3, "types": [ "var", "other", "other" ] } ] }, "withDefiniteArticle": { "occurrences": 12, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 8, "args": 1, "types": [ "other" ] }, { "count": 4, "args": 1, "types": [ "expr" ] } ] }, "Number": { "occurrences": 24, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 24, "args": 1, "types": [ "other" ] } ] }, "getUnitTypeFromNumber": { "occurrences": 4, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 4, "args": 1, "types": [ "call" ] } ] }, "capitalizeFirstCharacter": { "occurrences": 10, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 10, "args": 1, "types": [ "expr" ] } ] }, "km": { "occurrences": 2, "arg_count": { "min": 0, "max": 0, "common": 0 }, "patterns": [ { "count": 2, "args": 0, "types": [] } ] }, "uk": { "occurrences": 2, "arg_count": { "min": 0, "max": 0, "common": 0 }, "patterns": [ { "count": 2, "args": 0, "types": [] } ] }, "getBelarusianPlural": { "occurrences": 4, "arg_count": { "min": 4, "max": 4, "common": 4 }, "patterns": [ { "count": 4, "args": 4, "types": [ "var", "other", "other", "other" ] } ] }, "getRussianPlural": { "occurrences": 4, "arg_count": { "min": 4, "max": 4, "common": 4 }, "patterns": [ { "count": 4, "args": 4, "types": [ "var", "other", "other", "other" ] } ] } } }, { "label": "packages/zod/src/v4/mini", "method_count": 199, "algorithm": "CRX", "grammar": "root ::= (\"$ZodType\" | \":\" | \"?\" | \"ZodMiniStringFormat\" | \"ZodMiniType\" | \"any\" | \"as\" | \"core\" | \"def\" | \"init\" | \"innerType\" | \"inst\" | \"new\" | \"normalizeParams\" | \"params\" | \"return\" | \"schemas\" | \"typeof\" | \"util\")+", "mdl_score": 1000000000000, "imports": [ "import * as core from \"../core/index.js\";", "import * as schemas from \"./schemas.js\";", "import * as util from \"../core/util.js\";", "import * as parse from \"./parse.js\";" ], "arg_patterns": { "ZodMiniMap": { "occurrences": 2, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 2, "args": 1, "types": [ "other" ] } ] }, "Error": { "occurrences": 6, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 3, "args": 1, "types": [ "lit" ] }, { "count": 3, "args": 1, "types": [ "template" ] } ] }, "string": { "occurrences": 6, "arg_count": { "min": 0, "max": 0, "common": 0 }, "patterns": [ { "count": 6, "args": 0, "types": [] } ] }, "array": { "occurrences": 4, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 2, "args": 1, "types": [ "call" ] }, { "count": 2, "args": 1, "types": [ "var" ] } ] }, "ZodMiniRecord": { "occurrences": 8, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 8, "args": 1, "types": [ "other" ] } ] }, "ZodMiniReadonly": { "occurrences": 2, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 2, "args": 1, "types": [ "other" ] } ] }, "ZodMiniDiscriminatedUnion": { "occurrences": 2, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 2, "args": 1, "types": [ "other" ] } ] }, "ZodMiniArray": { "occurrences": 2, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 2, "args": 1, "types": [ "other" ] } ] }, "ZodMiniUnion": { "occurrences": 2, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 2, "args": 1, "types": [ "other" ] } ] }, "ZodMiniLiteral": { "occurrences": 2, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 2, "args": 1, "types": [ "other" ] } ] }, "unknown": { "occurrences": 6, "arg_count": { "min": 0, "max": 0, "common": 0 }, "patterns": [ { "count": 6, "args": 0, "types": [] } ] }, "ZodMiniEnum": { "occurrences": 4, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 4, "args": 1, "types": [ "other" ] } ] }, "ZodMiniObject": { "occurrences": 6, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 4, "args": 1, "types": [ "other" ] }, { "count": 2, "args": 1, "types": [ "var" ] } ] }, "ZodMiniTransform": { "occurrences": 2, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 2, "args": 1, "types": [ "other" ] } ] }, "tuple": { "occurrences": 2, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 2, "args": 1, "types": [ "other" ] } ] }, "ZodMiniDefault": { "occurrences": 2, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 2, "args": 1, "types": [ "other" ] } ] }, "ZodMiniCodec": { "occurrences": 4, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 4, "args": 1, "types": [ "other" ] } ] }, "_lazy": { "occurrences": 2, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 2, "args": 1, "types": [ "other" ] } ] }, "record": { "occurrences": 2, "arg_count": { "min": 2, "max": 2, "common": 2 }, "patterns": [ { "count": 2, "args": 2, "types": [ "call", "var" ] } ] }, "ZodMiniOptional": { "occurrences": 2, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 2, "args": 1, "types": [ "other" ] } ] }, "union": { "occurrences": 2, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 2, "args": 1, "types": [ "other" ] } ] }, "ZodMiniNullable": { "occurrences": 2, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 2, "args": 1, "types": [ "other" ] } ] }, "ZodMiniSuccess": { "occurrences": 2, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 2, "args": 1, "types": [ "other" ] } ] }, "_null": { "occurrences": 2, "arg_count": { "min": 0, "max": 0, "common": 0 }, "patterns": [ { "count": 2, "args": 0, "types": [] } ] }, "optional": { "occurrences": 2, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 2, "args": 1, "types": [ "call" ] } ] }, "custom": { "occurrences": 2, "arg_count": { "min": 2, "max": 2, "common": 2 }, "patterns": [ { "count": 2, "args": 2, "types": [ "other", "var" ] } ] }, "ZodMiniFunction": { "occurrences": 2, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 2, "args": 1, "types": [ "other" ] } ] }, "number": { "occurrences": 2, "arg_count": { "min": 0, "max": 0, "common": 0 }, "patterns": [ { "count": 2, "args": 0, "types": [] } ] }, "fn": { "occurrences": 2, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 2, "args": 1, "types": [ "var" ] } ] }, "ZodMiniPromise": { "occurrences": 2, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 2, "args": 1, "types": [ "other" ] } ] }, "boolean": { "occurrences": 2, "arg_count": { "min": 0, "max": 0, "common": 0 }, "patterns": [ { "count": 2, "args": 0, "types": [] } ] }, "ZodMiniIntersection": { "occurrences": 2, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 2, "args": 1, "types": [ "other" ] } ] }, "ZodMiniTuple": { "occurrences": 2, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 2, "args": 1, "types": [ "other" ] } ] }, "ZodMiniSet": { "occurrences": 2, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 2, "args": 1, "types": [ "other" ] } ] }, "never": { "occurrences": 2, "arg_count": { "min": 0, "max": 0, "common": 0 }, "patterns": [ { "count": 2, "args": 0, "types": [] } ] }, "ZodMiniPipe": { "occurrences": 2, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 2, "args": 1, "types": [ "other" ] } ] }, "ZodMiniExactOptional": { "occurrences": 2, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 2, "args": 1, "types": [ "other" ] } ] }, "ZodMiniLazy": { "occurrences": 2, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 2, "args": 1, "types": [ "other" ] } ] }, "ZodMiniXor": { "occurrences": 2, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 2, "args": 1, "types": [ "other" ] } ] }, "ZodMiniTemplateLiteral": { "occurrences": 2, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 2, "args": 1, "types": [ "other" ] } ] }, "ZodMiniPrefault": { "occurrences": 2, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 2, "args": 1, "types": [ "other" ] } ] }, "nullable": { "occurrences": 2, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 2, "args": 1, "types": [ "var" ] } ] }, "ZodMiniCatch": { "occurrences": 2, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 2, "args": 1, "types": [ "other" ] } ] }, "ZodMiniNonOptional": { "occurrences": 2, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 2, "args": 1, "types": [ "other" ] } ] }, "_enum": { "occurrences": 2, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 2, "args": 1, "types": [ "call" ] } ] }, "new": { "occurrences": 38, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 35, "args": 1, "types": [ "other" ] }, { "count": 1, "args": 1, "types": [ "var" ] }, { "count": 1, "args": 1, "types": [ "lit" ] }, { "count": 1, "args": 1, "types": [ "template" ] } ] } } }, { "label": "packages/zod/src/v4/mini/tests", "method_count": 484, "algorithm": "CRX", "grammar": "root ::= (\"a\" | \"b\" | \"check\" | \"expect\" | \"expectTypeOf\" | \"new\" | \"number\" | \"output\" | \"parse\" | \"return\" | \"safeParse\" | \"schema\" | \"string\" | \"toBe\" | \"toEqual\" | \"toEqualTypeOf\" | \"toThrow\" | \"typeof\" | \"val\" | \"z\")+", "mdl_score": 1000000000000, "imports": [ "import { expect, expectTypeOf, test } from \"vitest\";", "import * as z from \"../index.js\";", "import { test } from \"vitest\";", "import * as z from \"zod/mini\";", "import { expectTypeOf, test } from \"vitest\";", "import { expect, test } from \"vitest\";", "import { en } from \"zod/locales\";", "import { util as zc } from \"zod/v4/core\";", "import type { util } from \"zod/v4/core\";", "import { z } from \"zod/mini\";", "import type { StandardSchemaWithJSON } from \"../../core/standard-schema.js\";" ], "arg_patterns": { "test": { "occurrences": 340, "arg_count": { "min": 2, "max": 2, "common": 2 }, "patterns": [ { "count": 340, "args": 2, "types": [ "lit", "other" ] } ] }, "expect": { "occurrences": 1256, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 712, "args": 1, "types": [ "other" ] }, { "count": 460, "args": 1, "types": [ "call" ] }, { "count": 62, "args": 1, "types": [ "var" ] }, { "count": 20, "args": 1, "types": [ "expr" ] }, { "count": 2, "args": 1, "types": [ "lit" ] } ] }, "acceptSchema": { "occurrences": 2, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 2, "args": 1, "types": [ "var" ] } ] }, "setTimeout": { "occurrences": 4, "arg_count": { "min": 2, "max": 2, "common": 2 }, "patterns": [ { "count": 4, "args": 2, "types": [ "var", "lit" ] } ] }, "String": { "occurrences": 30, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 21, "args": 1, "types": [ "var" ] }, { "count": 9, "args": 1, "types": [ "other" ] } ] }, "Promise": { "occurrences": 6, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 6, "args": 1, "types": [ "other" ] } ] }, "Number": { "occurrences": 27, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 18, "args": 1, "types": [ "var" ] }, { "count": 9, "args": 1, "types": [ "other" ] } ] }, "Date": { "occurrences": 54, "arg_count": { "min": 0, "max": 1, "common": 1 }, "patterns": [ { "count": 21, "args": 0, "types": [] }, { "count": 18, "args": 1, "types": [ "var" ] }, { "count": 15, "args": 1, "types": [ "lit" ] } ] }, "expectTypeOf": { "occurrences": 186, "arg_count": { "min": 0, "max": 1, "common": 0 }, "patterns": [ { "count": 158, "args": 0, "types": [] }, { "count": 12, "args": 1, "types": [ "other" ] }, { "count": 8, "args": 1, "types": [ "var" ] }, { "count": 8, "args": 1, "types": [ "call" ] } ] }, "en": { "occurrences": 2, "arg_count": { "min": 0, "max": 0, "common": 0 }, "patterns": [ { "count": 2, "args": 0, "types": [] } ] }, "new": { "occurrences": 41, "arg_count": { "min": 0, "max": 3, "common": 1 }, "patterns": [ { "count": 21, "args": 1, "types": [ "other" ] }, { "count": 8, "args": 0, "types": [] }, { "count": 6, "args": 1, "types": [ "var" ] }, { "count": 5, "args": 1, "types": [ "lit" ] }, { "count": 1, "args": 3, "types": [ "other", "lit", "other" ] } ] }, "doStuff": { "occurrences": 6, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 4, "args": 1, "types": [ "call" ] }, { "count": 2, "args": 1, "types": [ "other" ] } ] }, "Symbol": { "occurrences": 18, "arg_count": { "min": 0, "max": 1, "common": 0 }, "patterns": [ { "count": 15, "args": 0, "types": [] }, { "count": 3, "args": 1, "types": [ "lit" ] } ] }, "BigInt": { "occurrences": 32, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 32, "args": 1, "types": [ "lit" ] } ] }, "A": { "occurrences": 2, "arg_count": { "min": 0, "max": 0, "common": 0 }, "patterns": [ { "count": 2, "args": 0, "types": [] } ] }, "Map": { "occurrences": 39, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 39, "args": 1, "types": [ "other" ] } ] }, "Set": { "occurrences": 18, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 18, "args": 1, "types": [ "other" ] } ] }, "branded": { "occurrences": 2, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 2, "args": 1, "types": [ "lit" ] } ] }, "File": { "occurrences": 2, "arg_count": { "min": 3, "max": 3, "common": 3 }, "patterns": [ { "count": 2, "args": 3, "types": [ "other", "lit", "other" ] } ] } } }, { "label": "scripts", "method_count": 6, "imports": [ "import { afterAll, beforeAll } from \"vitest\";", "import { readdirSync, statSync, writeFileSync } from \"node:fs\";", "import { join } from \"node:path\";" ], "arg_patterns": { "statSync": { "occurrences": 2, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 2, "args": 1, "types": [ "var" ] } ] }, "Set": { "occurrences": 3, "arg_count": { "min": 0, "max": 0, "common": 0 }, "patterns": [ { "count": 3, "args": 0, "types": [] } ] }, "readdirSync": { "occurrences": 2, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 2, "args": 1, "types": [ "var" ] } ] }, "writeStubPackageJsons": { "occurrences": 2, "arg_count": { "min": 0, "max": 0, "common": 0 }, "patterns": [ { "count": 2, "args": 0, "types": [] } ] }, "join": { "occurrences": 8, "arg_count": { "min": 2, "max": 3, "common": 2 }, "patterns": [ { "count": 4, "args": 2, "types": [ "var", "var" ] }, { "count": 2, "args": 2, "types": [ "other", "lit" ] }, { "count": 2, "args": 3, "types": [ "var", "var", "lit" ] } ] }, "findIndexJsFiles": { "occurrences": 4, "arg_count": { "min": 1, "max": 2, "common": 1 }, "patterns": [ { "count": 2, "args": 2, "types": [ "var", "var" ] }, { "count": 2, "args": 1, "types": [ "var" ] } ] }, "writeFileSync": { "occurrences": 2, "arg_count": { "min": 3, "max": 3, "common": 3 }, "patterns": [ { "count": 2, "args": 3, "types": [ "var", "var", "lit" ] } ] }, "new": { "occurrences": 2, "arg_count": { "min": 0, "max": 1, "common": 0 }, "patterns": [ { "count": 1, "args": 0, "types": [] }, { "count": 1, "args": 1, "types": [ "template" ] } ] }, "Error": { "occurrences": 3, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 3, "args": 1, "types": [ "template" ] } ] }, "thrower": { "occurrences": 2, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 2, "args": 1, "types": [ "var" ] } ] }, "afterAll": { "occurrences": 2, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 2, "args": 1, "types": [ "other" ] } ] }, "beforeAll": { "occurrences": 2, "arg_count": { "min": 1, "max": 1, "common": 1 }, "patterns": [ { "count": 2, "args": 1, "types": [ "other" ] } ] } } }, { "label": "(other)", "method_count": 4, "imports": [], "arg_patterns": {} } ], "total_methods": 6203 }, { "language": ".js", "conventions": [], "total_methods": 0 } ]