grammar-inference-engine/experiments/results/round20_ast_verify/zod_v3.json
tobjend 8460c3c862 experiments: round 20 v3 results (decompose default + cap fix)
v3 runs for RAGSAK/fastapi/zod with decompose default-on and _COUNT_CAP
raised. Updated SUMMARY.md with before/after quality table.
2026-07-13 01:13:48 +02:00

13330 lines
305 KiB
JSON

[
{
"language": ".ts",
"conventions": [
{
"label": "",
"method_count": 1,
"imports": [
"import { z } from \"zod\";"
],
"arg_patterns": {}
},
{
"label": "packages/bench",
"method_count": 170,
"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": {
"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"
]
}
]
},
"randomString": {
"occurrences": 54,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 54,
"args": 1,
"types": [
"lit"
]
}
]
},
"makeData": {
"occurrences": 22,
"arg_count": {
"min": 2,
"max": 2,
"common": 2
},
"patterns": [
{
"count": 22,
"args": 2,
"types": [
"lit",
"other"
]
}
]
},
"randomPick": {
"occurrences": 4,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 4,
"args": 1,
"types": [
"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"
]
}
]
},
"Proxy": {
"occurrences": 6,
"arg_count": {
"min": 2,
"max": 2,
"common": 2
},
"patterns": [
{
"count": 6,
"args": 2,
"types": [
"other",
"other"
]
}
]
},
"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": [
"other",
"other"
]
},
{
"count": 3,
"args": 2,
"types": [
"var",
"expr"
]
},
{
"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"
]
}
]
},
"Set": {
"occurrences": 6,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 6,
"args": 1,
"types": [
"other"
]
}
]
},
"ZodFail": {
"occurrences": 4,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 4,
"args": 1,
"types": [
"lit"
]
}
]
},
"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": []
}
]
},
"Error": {
"occurrences": 18,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 15,
"args": 1,
"types": [
"lit"
]
},
{
"count": 3,
"args": 1,
"types": [
"template"
]
}
]
},
"formatNumber": {
"occurrences": 10,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 6,
"args": 1,
"types": [
"other"
]
},
{
"count": 4,
"args": 1,
"types": [
"expr"
]
}
]
},
"Mitata": {
"occurrences": 2,
"arg_count": {
"min": 2,
"max": 2,
"common": 2
},
"patterns": [
{
"count": 2,
"args": 2,
"types": [
"var",
"expr"
]
}
]
},
"String": {
"occurrences": 3,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 3,
"args": 1,
"types": [
"other"
]
}
]
},
"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"
]
}
]
},
"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"
]
}
]
},
"instanceofObjectThenCheckSymbol": {
"occurrences": 2,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 2,
"args": 1,
"types": [
"var"
]
}
]
},
"ZodFailure": {
"occurrences": 2,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 2,
"args": 1,
"types": [
"lit"
]
}
]
},
"falsyThenCheckSymbol": {
"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"
]
}
]
},
"instanceofClass": {
"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"
]
}
]
},
"instanceofObjectThenCheckTag": {
"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"
]
}
]
},
"nullChainCheckTag": {
"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"
]
}
]
},
"instanceofPromise": {
"occurrences": 2,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 2,
"args": 1,
"types": [
"var"
]
}
]
},
"typeofThenCheckSymbol": {
"occurrences": 2,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 2,
"args": 1,
"types": [
"var"
]
}
]
},
"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"
]
}
]
},
"benchWithData": {
"occurrences": 2,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 2,
"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": []
}
]
},
"atschema": {
"occurrences": 4,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 2,
"args": 1,
"types": [
"var"
]
},
{
"count": 2,
"args": 1,
"types": [
"subscript"
]
}
]
},
"type": {
"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"
]
}
]
},
"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"
]
}
]
}
}
},
{
"label": "packages/docs/app/llms-full.txt",
"method_count": 3,
"algorithm": "CRX",
"grammar": "root ::= (\"JSON\" | \"Map\" | \"Number\" | \"Response\" | \"a\" | \"aOrder\" | \"await\" | \"b\" | \"bOrder\" | \"cwd\" | \"for\" | \"forEach\" | \"fs\" | \"get\" | \"getLLMText\" | \"getPages\" | \"index\" | \"join\" | \"meta\" | \"metaPath\" | \"new\" | \"number\" | \"of\" | \"page\" | \"pageOrder\" | \"pages\" | \"parse\" | \"process\" | \"readFile\" | \"return\" | \"set\" | \"sort\" | \"sortedPages\" | \"source\" | \"string\" | \"txt\")+",
"mdl_score": 109366992,
"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"
]
}
]
},
"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"
]
}
]
},
"Response": {
"occurrences": 2,
"arg_count": {
"min": 2,
"max": 2,
"common": 2
},
"patterns": [
{
"count": 2,
"args": 2,
"types": [
"var",
"other"
]
}
]
},
"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,
"algorithm": "CRX",
"grammar": "root ::= (\"Array\" | \"Response\" | \"String\" | \"anchor\" | \"any\" | \"continue\" | \"description\" | \"filter\" | \"for\" | \"fullUrl\" | \"getPages\" | \"if\" | \"isArray\" | \"item\" | \"join\" | \"map\" | \"new\" | \"of\" | \"page\" | \"pageUrl\" | \"pages\" | \"replace\" | \"return\" | \"section\" | \"sectionTitle\" | \"sections\" | \"source\" | \"startsWith\" | \"stringifyTitle\" | \"title\" | \"txt\" | \"typeof\")+",
"mdl_score": 111285376,
"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,
"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": {
"stripMdxComments": {
"occurrences": 2,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 2,
"args": 1,
"types": [
"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"
]
}
]
},
"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"
]
}
]
},
"fileURLToPath": {
"occurrences": 2,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 2,
"args": 1,
"types": [
"other"
]
}
]
},
"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"
]
}
]
},
"resolve": {
"occurrences": 2,
"arg_count": {
"min": 2,
"max": 2,
"common": 2
},
"patterns": [
{
"count": 2,
"args": 2,
"types": [
"call",
"lit"
]
}
]
},
"assertExpectedTabLabels": {
"occurrences": 2,
"arg_count": {
"min": 2,
"max": 2,
"common": 2
},
"patterns": [
{
"count": 2,
"args": 2,
"types": [
"var",
"var"
]
}
]
},
"normalizeTabValue": {
"occurrences": 4,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 4,
"args": 1,
"types": [
"var"
]
}
]
},
"expect": {
"occurrences": 4,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 4,
"args": 1,
"types": [
"var"
]
}
]
},
"readCodeFence": {
"occurrences": 2,
"arg_count": {
"min": 3,
"max": 3,
"common": 3
},
"patterns": [
{
"count": 2,
"args": 3,
"types": [
"var",
"var",
"other"
]
}
]
},
"stripMdxCommentSegments": {
"occurrences": 2,
"arg_count": {
"min": 2,
"max": 2,
"common": 2
},
"patterns": [
{
"count": 2,
"args": 2,
"types": [
"var",
"var"
]
}
]
},
"compareCodeFences": {
"occurrences": 2,
"arg_count": {
"min": 4,
"max": 4,
"common": 4
},
"patterns": [
{
"count": 2,
"args": 4,
"types": [
"var",
"var",
"var",
"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"
]
}
]
}
}
},
{
"label": "packages/docs/loaders",
"method_count": 7,
"algorithm": "CRX",
"grammar": "root ::= (\"id\" | \"name\" | \"owner\" | \"return\" | \"slug\" | \"split\")?+ \"r\"?",
"mdl_score": 7566,
"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": {
"remark": {
"occurrences": 2,
"arg_count": {
"min": 0,
"max": 0,
"common": 0
},
"patterns": [
{
"count": 2,
"args": 0,
"types": []
}
]
},
"matter": {
"occurrences": 2,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 2,
"args": 1,
"types": [
"call"
]
}
]
},
"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"
]
}
]
},
"loader": {
"occurrences": 4,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 4,
"args": 1,
"types": [
"other"
]
}
]
},
"fetch": {
"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": []
}
]
},
"Error": {
"occurrences": 9,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 9,
"args": 1,
"types": [
"lit"
]
}
]
},
"Set": {
"occurrences": 3,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 3,
"args": 1,
"types": [
"call"
]
}
]
},
"new": {
"occurrences": 5,
"arg_count": {
"min": 0,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 3,
"args": 1,
"types": [
"lit"
]
},
{
"count": 1,
"args": 1,
"types": [
"call"
]
},
{
"count": 1,
"args": 0,
"types": []
}
]
}
}
},
{
"label": "packages/resolution",
"method_count": 8,
"algorithm": "CRX",
"grammar": "root ::= (\":\" | \"?\" | \"_\" | \"__dirname\" | \"any\" | \"await\" | \"catch\" | \"console\" | \"error\" | \"execa\" | \"existsSync\" | \"expect\" | \"if\" | \"join\" | \"log\" | \"output\" | \"outputWithoutFirstLine\" | \"path\" | \"result\" | \"return\" | \"slice\" | \"split\" | \"trim\" | \"try\" | \"warn\" | \"zodIndexPath\" | \"zodPackagePath\")?+ \"toMatchInlineSnapshot\"? \"process\"? \"exit\"?",
"mdl_score": 33259788,
"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": []
}
]
},
"execa": {
"occurrences": 14,
"arg_count": {
"min": 3,
"max": 3,
"common": 3
},
"patterns": [
{
"count": 14,
"args": 3,
"types": [
"lit",
"other",
"other"
]
}
]
},
"testMjs": {
"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": []
}
]
},
"testCjs": {
"occurrences": 4,
"arg_count": {
"min": 0,
"max": 0,
"common": 0
},
"patterns": [
{
"count": 4,
"args": 0,
"types": []
}
]
},
"runAllTests": {
"occurrences": 2,
"arg_count": {
"min": 0,
"max": 0,
"common": 0
},
"patterns": [
{
"count": 2,
"args": 0,
"types": []
}
]
},
"buildTsc": {
"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"
]
}
]
},
"existsSync": {
"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"
]
}
]
}
}
},
{
"label": "packages/tsc",
"method_count": 12,
"algorithm": "CRX",
"grammar": "root ::= (\"Math\" | \"floor\")?+ (\"field\" | \"params\")? \"random\"?",
"mdl_score": 148,
"imports": [
"import { $ } from \"execa\";",
"import * as gen from \"./generate.js\";",
"import { mkdirSync, writeFileSync } from \"node:fs\";",
"import { dirname } from \"node:path\";"
],
"arg_patterns": {
"$": {
"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": 6,
"args": 1,
"types": [
"lit"
]
}
]
},
"new": {
"occurrences": 2,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 2,
"args": 1,
"types": [
"lit"
]
}
]
},
"dirname": {
"occurrences": 4,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 4,
"args": 1,
"types": [
"var"
]
}
]
},
"randomStr": {
"occurrences": 14,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 14,
"args": 1,
"types": [
"lit"
]
}
]
},
"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"
]
}
]
}
}
},
{
"label": "packages/tsc/bench",
"method_count": 3,
"algorithm": "CRX",
"grammar": "root ::= (\"$\" | \"await\" | \"console\" | \"error\" | \"exit\" | \"file\" | \"fileNames\" | \"files\" | \"for\" | \"if\" | \"import\" | \"log\" | \"map\" | \"of\" | \"process\" | \"replace\" | \"resolve\" | \"split\")+",
"mdl_score": 2426796,
"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,
"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"
]
}
]
},
"processError": {
"occurrences": 6,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 6,
"args": 1,
"types": [
"other"
]
}
]
},
"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"
]
}
]
},
"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"
]
}
]
},
"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"
]
}
]
},
"stringType": {
"occurrences": 2,
"arg_count": {
"min": 0,
"max": 0,
"common": 0
},
"patterns": [
{
"count": 2,
"args": 0,
"types": []
}
]
},
"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"
]
}
]
},
"processCreateParams": {
"occurrences": 84,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 76,
"args": 1,
"types": [
"var"
]
},
{
"count": 8,
"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"
]
}
]
},
"ZodObject": {
"occurrences": 28,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 28,
"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"
]
}
]
},
"ZodEffects": {
"occurrences": 8,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 8,
"args": 1,
"types": [
"other"
]
}
]
},
"booleanType": {
"occurrences": 2,
"arg_count": {
"min": 0,
"max": 0,
"common": 0
},
"patterns": [
{
"count": 2,
"args": 0,
"types": []
}
]
},
"Set": {
"occurrences": 9,
"arg_count": {
"min": 0,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 3,
"args": 1,
"types": [
"other"
]
},
{
"count": 3,
"args": 0,
"types": []
},
{
"count": 3,
"args": 1,
"types": [
"call"
]
}
]
},
"ZodLiteral": {
"occurrences": 2,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 2,
"args": 1,
"types": [
"other"
]
}
]
},
"makeReturnsIssue": {
"occurrences": 4,
"arg_count": {
"min": 2,
"max": 2,
"common": 2
},
"patterns": [
{
"count": 2,
"args": 2,
"types": [
"var",
"other"
]
},
{
"count": 2,
"args": 2,
"types": [
"var",
"var"
]
}
]
},
"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"
]
}
]
},
"BigInt": {
"occurrences": 12,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 10,
"args": 1,
"types": [
"lit"
]
},
{
"count": 2,
"args": 1,
"types": [
"other"
]
}
]
},
"ZodPromise": {
"occurrences": 2,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 2,
"args": 1,
"types": [
"other"
]
}
]
},
"ZodString": {
"occurrences": 10,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 10,
"args": 1,
"types": [
"other"
]
}
]
},
"refinementData": {
"occurrences": 2,
"arg_count": {
"min": 2,
"max": 2,
"common": 2
},
"patterns": [
{
"count": 2,
"args": 2,
"types": [
"var",
"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"
]
}
]
},
"deepPartialify": {
"occurrences": 12,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 4,
"args": 1,
"types": [
"other"
]
},
{
"count": 4,
"args": 1,
"types": [
"call"
]
},
{
"count": 4,
"args": 1,
"types": [
"var"
]
}
]
},
"message": {
"occurrences": 2,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 2,
"args": 1,
"types": [
"var"
]
}
]
},
"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"
]
}
]
},
"ZodIntersection": {
"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"
]
}
]
},
"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"
]
}
]
},
"isValidCidr": {
"occurrences": 2,
"arg_count": {
"min": 2,
"max": 2,
"common": 2
},
"patterns": [
{
"count": 2,
"args": 2,
"types": [
"other",
"other"
]
}
]
},
"ZodRecord": {
"occurrences": 4,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 4,
"args": 1,
"types": [
"other"
]
}
]
},
"getErrorMap": {
"occurrences": 4,
"arg_count": {
"min": 0,
"max": 0,
"common": 0
},
"patterns": [
{
"count": 4,
"args": 0,
"types": []
}
]
},
"Symbol": {
"occurrences": 3,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 3,
"args": 1,
"types": [
"lit"
]
}
]
},
"ZodNull": {
"occurrences": 2,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 2,
"args": 1,
"types": [
"other"
]
}
]
},
"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"
]
}
]
},
"ZodFunction": {
"occurrences": 6,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 6,
"args": 1,
"types": [
"other"
]
}
]
},
"custom": {
"occurrences": 2,
"arg_count": {
"min": 2,
"max": 2,
"common": 2
},
"patterns": [
{
"count": 2,
"args": 2,
"types": [
"other",
"var"
]
}
]
},
"ZodDefault": {
"occurrences": 4,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 4,
"args": 1,
"types": [
"other"
]
}
]
},
"ZodDate": {
"occurrences": 4,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 4,
"args": 1,
"types": [
"other"
]
}
]
},
"DIRTY": {
"occurrences": 10,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 10,
"args": 1,
"types": [
"other"
]
}
]
},
"freeze": {
"occurrences": 4,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 4,
"args": 1,
"types": [
"var"
]
}
]
},
"createZodEnum": {
"occurrences": 2,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 2,
"args": 1,
"types": [
"other"
]
}
]
},
"datetimeRegex": {
"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"
]
}
]
},
"getParsedType": {
"occurrences": 16,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 10,
"args": 1,
"types": [
"var"
]
},
{
"count": 6,
"args": 1,
"types": [
"other"
]
}
]
},
"isValidJWT": {
"occurrences": 2,
"arg_count": {
"min": 2,
"max": 2,
"common": 2
},
"patterns": [
{
"count": 2,
"args": 2,
"types": [
"other",
"other"
]
}
]
},
"ZodBigInt": {
"occurrences": 6,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 6,
"args": 1,
"types": [
"other"
]
}
]
},
"ZodTuple": {
"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"
]
}
]
},
"cleanParams": {
"occurrences": 4,
"arg_count": {
"min": 2,
"max": 2,
"common": 2
},
"patterns": [
{
"count": 4,
"args": 2,
"types": [
"var",
"var"
]
}
]
},
"ParseStatus": {
"occurrences": 10,
"arg_count": {
"min": 0,
"max": 0,
"common": 0
},
"patterns": [
{
"count": 10,
"args": 0,
"types": []
}
]
},
"isAsync": {
"occurrences": 8,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 8,
"args": 1,
"types": [
"var"
]
}
]
},
"ZodCatch": {
"occurrences": 4,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 4,
"args": 1,
"types": [
"other"
]
}
]
},
"ZodArray": {
"occurrences": 10,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 10,
"args": 1,
"types": [
"other"
]
}
]
},
"ZodUnion": {
"occurrences": 2,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 2,
"args": 1,
"types": [
"other"
]
}
]
},
"ZodAny": {
"occurrences": 2,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 2,
"args": 1,
"types": [
"other"
]
}
]
},
"atob": {
"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",
"other"
]
},
{
"count": 2,
"args": 2,
"types": [
"var",
"var"
]
}
]
},
"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"
]
}
]
},
"ZodVoid": {
"occurrences": 2,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 2,
"args": 1,
"types": [
"other"
]
}
]
},
"ZodEnum": {
"occurrences": 2,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 2,
"args": 1,
"types": [
"other"
]
}
]
},
"makeIssue": {
"occurrences": 4,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 4,
"args": 1,
"types": [
"other"
]
}
]
},
"ZodDiscriminatedUnion": {
"occurrences": 2,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 2,
"args": 1,
"types": [
"other"
]
}
]
},
"executeRefinement": {
"occurrences": 4,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 4,
"args": 1,
"types": [
"other"
]
}
]
},
"ZodNumber": {
"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": [
"var",
"var"
]
},
{
"count": 2,
"args": 2,
"types": [
"subscript",
"subscript"
]
},
{
"count": 2,
"args": 2,
"types": [
"other",
"other"
]
}
]
},
"ZodSet": {
"occurrences": 6,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 6,
"args": 1,
"types": [
"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"
]
}
]
},
"isDirty": {
"occurrences": 4,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 4,
"args": 1,
"types": [
"var"
]
}
]
},
"timeRegexSource": {
"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"
]
}
]
},
"ZodLazy": {
"occurrences": 2,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 2,
"args": 1,
"types": [
"other"
]
}
]
},
"setError": {
"occurrences": 4,
"arg_count": {
"min": 0,
"max": 0,
"common": 0
},
"patterns": [
{
"count": 4,
"args": 0,
"types": []
}
]
},
"ZodBranded": {
"occurrences": 2,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 2,
"args": 1,
"types": [
"other"
]
}
]
},
"params": {
"occurrences": 2,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 2,
"args": 1,
"types": [
"var"
]
}
]
},
"ZodUnknown": {
"occurrences": 2,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 2,
"args": 1,
"types": [
"other"
]
}
]
},
"ZodOptional": {
"occurrences": 2,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 2,
"args": 1,
"types": [
"other"
]
}
]
},
"handleAsync": {
"occurrences": 2,
"arg_count": {
"min": 0,
"max": 0,
"common": 0
},
"patterns": [
{
"count": 2,
"args": 0,
"types": []
}
]
},
"isValidIP": {
"occurrences": 2,
"arg_count": {
"min": 2,
"max": 2,
"common": 2
},
"patterns": [
{
"count": 2,
"args": 2,
"types": [
"other",
"other"
]
}
]
},
"ZodNaN": {
"occurrences": 2,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 2,
"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"
]
}
]
},
"timeRegex": {
"occurrences": 2,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 2,
"args": 1,
"types": [
"var"
]
}
]
},
"Boolean": {
"occurrences": 3,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 3,
"args": 1,
"types": [
"other"
]
}
]
},
"numberType": {
"occurrences": 2,
"arg_count": {
"min": 0,
"max": 0,
"common": 0
},
"patterns": [
{
"count": 2,
"args": 0,
"types": []
}
]
},
"isAborted": {
"occurrences": 4,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 4,
"args": 1,
"types": [
"var"
]
}
]
},
"getIssueProperties": {
"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"
]
}
]
},
"floatSafeRemainder": {
"occurrences": 2,
"arg_count": {
"min": 2,
"max": 2,
"common": 2
},
"patterns": [
{
"count": 2,
"args": 2,
"types": [
"other",
"other"
]
}
]
},
"ZodPipeline": {
"occurrences": 2,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 2,
"args": 1,
"types": [
"other"
]
}
]
},
"ZodNever": {
"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"
]
}
]
},
"ZodReadonly": {
"occurrences": 2,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 2,
"args": 1,
"types": [
"other"
]
}
]
}
}
},
{
"label": "packages/zod/src/v3/benchmarks",
"method_count": 91,
"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": {
"Set": {
"occurrences": 6,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 6,
"args": 1,
"types": [
"other"
]
}
]
},
"Date": {
"occurrences": 21,
"arg_count": {
"min": 0,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 15,
"args": 1,
"types": [
"lit"
]
},
{
"count": 3,
"args": 1,
"types": [
"var"
]
},
{
"count": 3,
"args": 0,
"types": []
}
]
},
"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": 1,
"types": [
"other"
]
},
{
"count": 2,
"args": 0,
"types": []
}
]
},
"Mocker": {
"occurrences": 2,
"arg_count": {
"min": 0,
"max": 0,
"common": 0
},
"patterns": [
{
"count": 2,
"args": 0,
"types": []
}
]
},
"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": []
}
]
},
"array": {
"occurrences": 2,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 2,
"args": 1,
"types": [
"var"
]
}
]
},
"fn": {
"occurrences": 2,
"arg_count": {
"min": 0,
"max": 0,
"common": 0
},
"patterns": [
{
"count": 2,
"args": 0,
"types": []
}
]
},
"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"
]
}
]
}
}
},
{
"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": {
"objectKeys": {
"occurrences": 4,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 4,
"args": 1,
"types": [
"var"
]
}
]
},
"Error": {
"occurrences": 3,
"arg_count": {
"min": 0,
"max": 0,
"common": 0
},
"patterns": [
{
"count": 3,
"args": 0,
"types": []
}
]
},
"objectValues": {
"occurrences": 2,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 2,
"args": 1,
"types": [
"var"
]
}
]
},
"checker": {
"occurrences": 2,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 2,
"args": 1,
"types": [
"var"
]
}
]
},
"new": {
"occurrences": 1,
"arg_count": {
"min": 0,
"max": 0,
"common": 0
},
"patterns": [
{
"count": 1,
"args": 0,
"types": []
}
]
},
"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"
]
}
]
}
}
},
{
"label": "packages/zod/src/v3/tests",
"method_count": 985,
"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": {
"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"
]
}
]
},
"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"
]
}
]
},
"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"
]
}
]
},
"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": 3,
"types": [
"lit",
"lit",
"lit"
]
},
{
"count": 3,
"args": 1,
"types": [
"var"
]
}
]
},
"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"
]
}
]
},
"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"
]
}
]
},
"Map": {
"occurrences": 27,
"arg_count": {
"min": 0,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 24,
"args": 1,
"types": [
"other"
]
},
{
"count": 3,
"args": 0,
"types": []
}
]
},
"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"
]
}
]
},
"getRandomInt": {
"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"
]
}
]
},
"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"
]
}
]
},
"base": {
"occurrences": 4,
"arg_count": {
"min": 0,
"max": 1,
"common": 0
},
"patterns": [
{
"count": 2,
"args": 0,
"types": []
},
{
"count": 2,
"args": 1,
"types": [
"lit"
]
}
]
},
"ZodError": {
"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"
]
}
]
},
"isAborted": {
"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"
]
}
]
},
"isDirty": {
"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"
]
}
]
},
"checker": {
"occurrences": 8,
"arg_count": {
"min": 0,
"max": 1,
"common": 0
},
"patterns": [
{
"count": 4,
"args": 0,
"types": []
},
{
"count": 4,
"args": 1,
"types": [
"other"
]
}
]
},
"Number": {
"occurrences": 18,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 15,
"args": 1,
"types": [
"var"
]
},
{
"count": 3,
"args": 1,
"types": [
"lit"
]
}
]
},
"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"
]
}
]
},
"Mocker": {
"occurrences": 4,
"arg_count": {
"min": 0,
"max": 0,
"common": 0
},
"patterns": [
{
"count": 4,
"args": 0,
"types": []
}
]
},
"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"
]
}
]
},
"func": {
"occurrences": 6,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 6,
"args": 1,
"types": [
"lit"
]
}
]
},
"parsed": {
"occurrences": 6,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 4,
"args": 1,
"types": [
"lit"
]
},
{
"count": 2,
"args": 1,
"types": [
"other"
]
}
]
},
"validFunc2Instance": {
"occurrences": 2,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 2,
"args": 1,
"types": [
"other"
]
}
]
},
"myFunc": {
"occurrences": 2,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 2,
"args": 1,
"types": [
"lit"
]
}
]
},
"invalidFuncInstance": {
"occurrences": 4,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 4,
"args": 1,
"types": [
"other"
]
}
]
},
"Bar": {
"occurrences": 4,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 4,
"args": 1,
"types": [
"lit"
]
}
]
},
"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": []
}
]
},
"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,
"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": {
"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"
]
}
]
},
"convertBaseSchema": {
"occurrences": 4,
"arg_count": {
"min": 2,
"max": 2,
"common": 2
},
"patterns": [
{
"count": 4,
"args": 2,
"types": [
"var",
"var"
]
}
]
},
"Error": {
"occurrences": 45,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 24,
"args": 1,
"types": [
"lit"
]
},
{
"count": 21,
"args": 1,
"types": [
"template"
]
}
]
},
"resolveRef": {
"occurrences": 2,
"arg_count": {
"min": 2,
"max": 2,
"common": 2
},
"patterns": [
{
"count": 2,
"args": 2,
"types": [
"var",
"var"
]
}
]
},
"Map": {
"occurrences": 3,
"arg_count": {
"min": 0,
"max": 0,
"common": 0
},
"patterns": [
{
"count": 3,
"args": 0,
"types": []
}
]
},
"RegExp": {
"occurrences": 6,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 3,
"args": 1,
"types": [
"other"
]
},
{
"count": 3,
"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": [
"expr"
]
},
{
"count": 3,
"args": 1,
"types": [
"call"
]
}
]
},
"detectVersion": {
"occurrences": 2,
"arg_count": {
"min": 2,
"max": 2,
"common": 2
},
"patterns": [
{
"count": 2,
"args": 2,
"types": [
"var",
"other"
]
}
]
},
"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"
]
}
]
},
"ZodRecord": {
"occurrences": 8,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 8,
"args": 1,
"types": [
"other"
]
}
]
},
"ZodTemplateLiteral": {
"occurrences": 2,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 2,
"args": 1,
"types": [
"other"
]
}
]
},
"ZodPreprocess": {
"occurrences": 2,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 2,
"args": 1,
"types": [
"other"
]
}
]
},
"never": {
"occurrences": 4,
"arg_count": {
"min": 0,
"max": 0,
"common": 0
},
"patterns": [
{
"count": 4,
"args": 0,
"types": []
}
]
},
"readonly": {
"occurrences": 2,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 2,
"args": 1,
"types": [
"other"
]
}
]
},
"_installLazyMethods": {
"occurrences": 10,
"arg_count": {
"min": 3,
"max": 3,
"common": 3
},
"patterns": [
{
"count": 10,
"args": 3,
"types": [
"var",
"lit",
"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"
]
}
]
},
"ZodDiscriminatedUnion": {
"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"
]
}
]
},
"nullable": {
"occurrences": 6,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 4,
"args": 1,
"types": [
"other"
]
},
{
"count": 2,
"args": 1,
"types": [
"var"
]
}
]
},
"prefault": {
"occurrences": 2,
"arg_count": {
"min": 2,
"max": 2,
"common": 2
},
"patterns": [
{
"count": 2,
"args": 2,
"types": [
"other",
"var"
]
}
]
},
"int": {
"occurrences": 4,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 4,
"args": 1,
"types": [
"var"
]
}
]
},
"ZodSuccess": {
"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"
]
}
]
},
"ZodEnum": {
"occurrences": 8,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 8,
"args": 1,
"types": [
"other"
]
}
]
},
"_catch": {
"occurrences": 2,
"arg_count": {
"min": 2,
"max": 2,
"common": 2
},
"patterns": [
{
"count": 2,
"args": 2,
"types": [
"other",
"var"
]
}
]
},
"ZodTransform": {
"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": []
}
]
},
"BigInt": {
"occurrences": 8,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 8,
"args": 1,
"types": [
"lit"
]
}
]
},
"ZodLazy": {
"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"
]
}
]
},
"pipe": {
"occurrences": 4,
"arg_count": {
"min": 2,
"max": 2,
"common": 2
},
"patterns": [
{
"count": 2,
"args": 2,
"types": [
"other",
"var"
]
},
{
"count": 2,
"args": 2,
"types": [
"other",
"call"
]
}
]
},
"optional": {
"occurrences": 6,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 4,
"args": 1,
"types": [
"call"
]
},
{
"count": 2,
"args": 1,
"types": [
"other"
]
}
]
},
"boolean": {
"occurrences": 2,
"arg_count": {
"min": 0,
"max": 0,
"common": 0
},
"patterns": [
{
"count": 2,
"args": 0,
"types": []
}
]
},
"superRefine": {
"occurrences": 2,
"arg_count": {
"min": 2,
"max": 2,
"common": 2
},
"patterns": [
{
"count": 2,
"args": 2,
"types": [
"var",
"var"
]
}
]
},
"ZodUnion": {
"occurrences": 2,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 2,
"args": 1,
"types": [
"other"
]
}
]
},
"ZodReadonly": {
"occurrences": 2,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 2,
"args": 1,
"types": [
"other"
]
}
]
},
"ZodExactOptional": {
"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"
]
}
]
},
"lazy": {
"occurrences": 2,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 2,
"args": 1,
"types": [
"other"
]
}
]
},
"ZodSet": {
"occurrences": 2,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 2,
"args": 1,
"types": [
"other"
]
}
]
},
"Date": {
"occurrences": 6,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 6,
"args": 1,
"types": [
"other"
]
}
]
},
"ZodTuple": {
"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"
]
}
]
},
"union": {
"occurrences": 4,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 4,
"args": 1,
"types": [
"other"
]
}
]
},
"ZodIntersection": {
"occurrences": 2,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 2,
"args": 1,
"types": [
"other"
]
}
]
},
"_enum": {
"occurrences": 4,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 4,
"args": 1,
"types": [
"call"
]
}
]
},
"string": {
"occurrences": 6,
"arg_count": {
"min": 0,
"max": 1,
"common": 0
},
"patterns": [
{
"count": 4,
"args": 0,
"types": []
},
{
"count": 2,
"args": 1,
"types": [
"var"
]
}
]
},
"ZodOptional": {
"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": []
}
]
},
"nonoptional": {
"occurrences": 2,
"arg_count": {
"min": 2,
"max": 2,
"common": 2
},
"patterns": [
{
"count": 2,
"args": 2,
"types": [
"other",
"var"
]
}
]
},
"ZodCustom": {
"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": []
}
]
},
"ZodPromise": {
"occurrences": 2,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 2,
"args": 1,
"types": [
"other"
]
}
]
},
"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"
]
}
]
},
"createStandardJSONSchemaMethod": {
"occurrences": 4,
"arg_count": {
"min": 2,
"max": 2,
"common": 2
},
"patterns": [
{
"count": 4,
"args": 2,
"types": [
"var",
"lit"
]
}
]
},
"ZodCatch": {
"occurrences": 2,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 2,
"args": 1,
"types": [
"other"
]
}
]
},
"ZodPipe": {
"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"
]
}
]
},
"ZodXor": {
"occurrences": 2,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 2,
"args": 1,
"types": [
"other"
]
}
]
},
"ZodObject": {
"occurrences": 6,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 4,
"args": 1,
"types": [
"other"
]
},
{
"count": 2,
"args": 1,
"types": [
"var"
]
}
]
},
"fn": {
"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"
]
}
]
},
"ZodNonOptional": {
"occurrences": 2,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 2,
"args": 1,
"types": [
"other"
]
}
]
},
"_default": {
"occurrences": 2,
"arg_count": {
"min": 2,
"max": 2,
"common": 2
},
"patterns": [
{
"count": 2,
"args": 2,
"types": [
"other",
"var"
]
}
]
},
"WeakMap": {
"occurrences": 3,
"arg_count": {
"min": 0,
"max": 0,
"common": 0
},
"patterns": [
{
"count": 3,
"args": 0,
"types": []
}
]
},
"createToJSONSchemaMethod": {
"occurrences": 2,
"arg_count": {
"min": 2,
"max": 2,
"common": 2
},
"patterns": [
{
"count": 2,
"args": 2,
"types": [
"var",
"other"
]
}
]
},
"tuple": {
"occurrences": 2,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 2,
"args": 1,
"types": [
"other"
]
}
]
},
"exactOptional": {
"occurrences": 2,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 2,
"args": 1,
"types": [
"other"
]
}
]
},
"ZodDefault": {
"occurrences": 2,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 2,
"args": 1,
"types": [
"other"
]
}
]
},
"ZodFunction": {
"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"
]
}
]
}
}
},
{
"label": "packages/zod/src/v4/classic/tests",
"method_count": 2342,
"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": {
"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"
]
}
]
},
"test": {
"occurrences": 2178,
"arg_count": {
"min": 2,
"max": 3,
"common": 2
},
"patterns": [
{
"count": 2174,
"args": 2,
"types": [
"lit",
"other"
]
},
{
"count": 2,
"args": 2,
"types": [
"template",
"other"
]
},
{
"count": 2,
"args": 3,
"types": [
"lit",
"other",
"lit"
]
}
]
},
"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"
]
}
]
},
"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"
]
}
]
},
"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"
]
}
]
},
"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"
]
}
]
},
"Error": {
"occurrences": 24,
"arg_count": {
"min": 0,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 9,
"args": 0,
"types": []
},
{
"count": 9,
"args": 1,
"types": [
"lit"
]
},
{
"count": 6,
"args": 1,
"types": [
"template"
]
}
]
},
"String": {
"occurrences": 63,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 51,
"args": 1,
"types": [
"var"
]
},
{
"count": 12,
"args": 1,
"types": [
"other"
]
}
]
},
"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"
]
}
]
},
"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"
]
}
]
},
"Promise": {
"occurrences": 9,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 9,
"args": 1,
"types": [
"other"
]
}
]
},
"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"
]
}
]
},
"Symbol": {
"occurrences": 39,
"arg_count": {
"min": 0,
"max": 1,
"common": 0
},
"patterns": [
{
"count": 24,
"args": 0,
"types": []
},
{
"count": 15,
"args": 1,
"types": [
"lit"
]
}
]
},
"createSortItemSchema": {
"occurrences": 2,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 2,
"args": 1,
"types": [
"var"
]
}
]
},
"Map": {
"occurrences": 120,
"arg_count": {
"min": 0,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 108,
"args": 1,
"types": [
"other"
]
},
{
"count": 12,
"args": 0,
"types": []
}
]
},
"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"
]
}
]
},
"beforeEach": {
"occurrences": 2,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 2,
"args": 1,
"types": [
"other"
]
}
]
},
"afterEach": {
"occurrences": 4,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 4,
"args": 1,
"types": [
"other"
]
}
]
},
"Test": {
"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"
]
}
]
},
"Subtest": {
"occurrences": 4,
"arg_count": {
"min": 0,
"max": 0,
"common": 0
},
"patterns": [
{
"count": 4,
"args": 0,
"types": []
}
]
},
"resolve": {
"occurrences": 2,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 2,
"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"
]
}
]
},
"parse": {
"occurrences": 10,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 6,
"args": 1,
"types": [
"lit"
]
},
{
"count": 2,
"args": 1,
"types": [
"var"
]
},
{
"count": 2,
"args": 1,
"types": [
"other"
]
}
]
},
"positive": {
"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": []
}
]
},
"detached": {
"occurrences": 2,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 2,
"args": 1,
"types": [
"other"
]
}
]
},
"opt": {
"occurrences": 4,
"arg_count": {
"min": 0,
"max": 0,
"common": 0
},
"patterns": [
{
"count": 4,
"args": 0,
"types": []
}
]
},
"extend": {
"occurrences": 2,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 2,
"args": 1,
"types": [
"other"
]
}
]
},
"partial": {
"occurrences": 2,
"arg_count": {
"min": 0,
"max": 0,
"common": 0
},
"patterns": [
{
"count": 2,
"args": 0,
"types": []
}
]
},
"omit": {
"occurrences": 2,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 2,
"args": 1,
"types": [
"other"
]
}
]
},
"pick": {
"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"
]
}
]
},
"max": {
"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"
]
}
]
},
"refine": {
"occurrences": 2,
"arg_count": {
"min": 2,
"max": 2,
"common": 2
},
"patterns": [
{
"count": 2,
"args": 2,
"types": [
"other",
"lit"
]
}
]
},
"arr": {
"occurrences": 2,
"arg_count": {
"min": 0,
"max": 0,
"common": 0
},
"patterns": [
{
"count": 2,
"args": 0,
"types": []
}
]
},
"doStuff": {
"occurrences": 6,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 4,
"args": 1,
"types": [
"call"
]
},
{
"count": 2,
"args": 1,
"types": [
"other"
]
}
]
},
"object": {
"occurrences": 4,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 4,
"args": 1,
"types": [
"other"
]
}
]
},
"transform": {
"occurrences": 2,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 2,
"args": 1,
"types": [
"other"
]
}
]
},
"pipe": {
"occurrences": 2,
"arg_count": {
"min": 2,
"max": 2,
"common": 2
},
"patterns": [
{
"count": 2,
"args": 2,
"types": [
"call",
"call"
]
}
]
},
"json": {
"occurrences": 2,
"arg_count": {
"min": 0,
"max": 0,
"common": 0
},
"patterns": [
{
"count": 2,
"args": 0,
"types": []
}
]
},
"nullable": {
"occurrences": 2,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 2,
"args": 1,
"types": [
"var"
]
}
]
},
"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": []
}
]
},
"Validator": {
"occurrences": 2,
"arg_count": {
"min": 0,
"max": 0,
"common": 0
},
"patterns": [
{
"count": 2,
"args": 0,
"types": []
}
]
},
"validateOpenAPI30Schema": {
"occurrences": 14,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 14,
"args": 1,
"types": [
"var"
]
}
]
},
"inspect": {
"occurrences": 2,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 2,
"args": 1,
"types": [
"var"
]
}
]
},
"validFunc3Instance": {
"occurrences": 2,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 2,
"args": 1,
"types": [
"other"
]
}
]
},
"func": {
"occurrences": 8,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 6,
"args": 1,
"types": [
"lit"
]
},
{
"count": 2,
"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"
]
}
]
},
"validFunc2Instance": {
"occurrences": 2,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 2,
"args": 1,
"types": [
"other"
]
}
]
},
"fn": {
"occurrences": 4,
"arg_count": {
"min": 0,
"max": 0,
"common": 0
},
"patterns": [
{
"count": 4,
"args": 0,
"types": []
}
]
},
"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": []
}
]
},
"it": {
"occurrences": 6,
"arg_count": {
"min": 2,
"max": 2,
"common": 2
},
"patterns": [
{
"count": 6,
"args": 2,
"types": [
"lit",
"other"
]
}
]
},
"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": []
}
]
},
"Array": {
"occurrences": 6,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 6,
"args": 1,
"types": [
"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"
]
}
]
},
"makeDigests": {
"occurrences": 2,
"arg_count": {
"min": 2,
"max": 2,
"common": 2
},
"patterns": [
{
"count": 2,
"args": 2,
"types": [
"var",
"var"
]
}
]
},
"toB64Url": {
"occurrences": 2,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 2,
"args": 1,
"types": [
"var"
]
}
]
},
"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"
]
}
]
},
"RegExp": {
"occurrences": 3,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 3,
"args": 1,
"types": [
"other"
]
}
]
},
"stripOuter": {
"occurrences": 2,
"arg_count": {
"min": 2,
"max": 2,
"common": 2
},
"patterns": [
{
"count": 2,
"args": 2,
"types": [
"call",
"other"
]
}
]
},
"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"
]
}
]
},
"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"
]
}
]
},
"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"
]
}
]
},
"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"
]
}
]
},
"Uint8Array": {
"occurrences": 18,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 18,
"args": 1,
"types": [
"other"
]
}
]
},
"stringToInt": {
"occurrences": 2,
"arg_count": {
"min": 0,
"max": 0,
"common": 0
},
"patterns": [
{
"count": 2,
"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"
]
}
]
},
"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"
]
}
]
},
"encodeURIComponent": {
"occurrences": 3,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 3,
"args": 1,
"types": [
"var"
]
}
]
},
"TextDecoder": {
"occurrences": 4,
"arg_count": {
"min": 0,
"max": 0,
"common": 0
},
"patterns": [
{
"count": 4,
"args": 0,
"types": []
}
]
},
"stringToURL": {
"occurrences": 4,
"arg_count": {
"min": 0,
"max": 0,
"common": 0
},
"patterns": [
{
"count": 4,
"args": 0,
"types": []
}
]
},
"bytesToUtf8": {
"occurrences": 2,
"arg_count": {
"min": 0,
"max": 0,
"common": 0
},
"patterns": [
{
"count": 2,
"args": 0,
"types": []
}
]
},
"stringToBoolean": {
"occurrences": 4,
"arg_count": {
"min": 0,
"max": 1,
"common": 0
},
"patterns": [
{
"count": 2,
"args": 0,
"types": []
},
{
"count": 2,
"args": 1,
"types": [
"other"
]
}
]
},
"base64": {
"occurrences": 4,
"arg_count": {
"min": 0,
"max": 0,
"common": 0
},
"patterns": [
{
"count": 4,
"args": 0,
"types": []
}
]
},
"uriComponent": {
"occurrences": 2,
"arg_count": {
"min": 0,
"max": 0,
"common": 0
},
"patterns": [
{
"count": 2,
"args": 0,
"types": []
}
]
},
"epochMillisToDate": {
"occurrences": 2,
"arg_count": {
"min": 0,
"max": 0,
"common": 0
},
"patterns": [
{
"count": 2,
"args": 0,
"types": []
}
]
},
"hexToBytes": {
"occurrences": 4,
"arg_count": {
"min": 0,
"max": 0,
"common": 0
},
"patterns": [
{
"count": 4,
"args": 0,
"types": []
}
]
},
"isoDatetimeToDate": {
"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": []
}
]
},
"stringToNumber": {
"occurrences": 2,
"arg_count": {
"min": 0,
"max": 0,
"common": 0
},
"patterns": [
{
"count": 2,
"args": 0,
"types": []
}
]
},
"utf8ToBytes": {
"occurrences": 2,
"arg_count": {
"min": 0,
"max": 0,
"common": 0
},
"patterns": [
{
"count": 2,
"args": 0,
"types": []
}
]
},
"stringToBigInt": {
"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"
]
}
]
},
"base64urlToBytes": {
"occurrences": 2,
"arg_count": {
"min": 0,
"max": 0,
"common": 0
},
"patterns": [
{
"count": 2,
"args": 0,
"types": []
}
]
},
"epochSecondsToDate": {
"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,
"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": {
"isPlainObject": {
"occurrences": 6,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 6,
"args": 1,
"types": [
"var"
]
}
]
},
"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"
]
}
]
},
"Class": {
"occurrences": 168,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 166,
"args": 1,
"types": [
"other"
]
},
{
"count": 2,
"args": 1,
"types": [
"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"
]
}
]
},
"clone": {
"occurrences": 14,
"arg_count": {
"min": 2,
"max": 2,
"common": 2
},
"patterns": [
{
"count": 14,
"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"
]
}
]
},
"BigInt": {
"occurrences": 12,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 10,
"args": 1,
"types": [
"lit"
]
},
{
"count": 2,
"args": 1,
"types": [
"other"
]
}
]
},
"isObject": {
"occurrences": 8,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 8,
"args": 1,
"types": [
"var"
]
}
]
},
"cached": {
"occurrences": 2,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 2,
"args": 1,
"types": [
"other"
]
}
]
},
"Uint8Array": {
"occurrences": 6,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 3,
"args": 1,
"types": [
"other"
]
},
{
"count": 3,
"args": 1,
"types": [
"expr"
]
}
]
},
"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"
]
}
]
},
"getter": {
"occurrences": 18,
"arg_count": {
"min": 0,
"max": 0,
"common": 0
},
"patterns": [
{
"count": 18,
"args": 0,
"types": []
}
]
},
"atob": {
"occurrences": 6,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 6,
"args": 1,
"types": [
"var"
]
}
]
},
"base64ToUint8Array": {
"occurrences": 2,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 2,
"args": 1,
"types": [
"expr"
]
}
]
},
"Map": {
"occurrences": 24,
"arg_count": {
"min": 0,
"max": 1,
"common": 0
},
"patterns": [
{
"count": 21,
"args": 0,
"types": []
},
{
"count": 3,
"args": 1,
"types": [
"var"
]
}
]
},
"stringifyPrimitive": {
"occurrences": 2,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 2,
"args": 1,
"types": [
"var"
]
}
]
},
"Symbol": {
"occurrences": 12,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 12,
"args": 1,
"types": [
"lit"
]
}
]
},
"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"
]
}
]
},
"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"
]
}
]
},
"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"
]
}
]
},
"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": 3,
"types": [
"var",
"other",
"other"
]
},
{
"count": 4,
"args": 2,
"types": [
"var",
"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"
]
}
]
},
"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"
]
}
]
},
"isSimpleIntersection": {
"occurrences": 4,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 4,
"args": 1,
"types": [
"var"
]
}
]
},
"initializeContext": {
"occurrences": 10,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 10,
"args": 1,
"types": [
"other"
]
}
]
},
"Number": {
"occurrences": 12,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 9,
"args": 1,
"types": [
"var"
]
},
{
"count": 3,
"args": 1,
"types": [
"other"
]
}
]
},
"getEnumValues": {
"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": []
}
]
},
"registry": {
"occurrences": 2,
"arg_count": {
"min": 0,
"max": 0,
"common": 0
},
"patterns": [
{
"count": 2,
"args": 0,
"types": []
}
]
},
"$ZodRegistry": {
"occurrences": 2,
"arg_count": {
"min": 0,
"max": 0,
"common": 0
},
"patterns": [
{
"count": 2,
"args": 0,
"types": []
}
]
},
"_parse": {
"occurrences": 6,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 4,
"args": 1,
"types": [
"var"
]
},
{
"count": 2,
"args": 1,
"types": [
"other"
]
}
]
},
"_encodeAsync": {
"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"
]
}
]
},
"_decode": {
"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"
]
}
]
},
"_safeDecode": {
"occurrences": 2,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 2,
"args": 1,
"types": [
"other"
]
}
]
},
"_safeDecodeAsync": {
"occurrences": 2,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"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"
]
}
]
},
"_safeParse": {
"occurrences": 6,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 4,
"args": 1,
"types": [
"var"
]
},
{
"count": 2,
"args": 1,
"types": [
"other"
]
}
]
},
"_decodeAsync": {
"occurrences": 2,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 2,
"args": 1,
"types": [
"other"
]
}
]
},
"_safeEncodeAsync": {
"occurrences": 2,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 2,
"args": 1,
"types": [
"other"
]
}
]
},
"_Err": {
"occurrences": 2,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 2,
"args": 1,
"types": [
"call"
]
}
]
},
"_encode": {
"occurrences": 2,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 2,
"args": 1,
"types": [
"other"
]
}
]
},
"safeParseAsync": {
"occurrences": 2,
"arg_count": {
"min": 2,
"max": 2,
"common": 2
},
"patterns": [
{
"count": 2,
"args": 2,
"types": [
"var",
"var"
]
}
]
},
"handleTupleResult": {
"occurrences": 4,
"arg_count": {
"min": 3,
"max": 3,
"common": 3
},
"patterns": [
{
"count": 4,
"args": 3,
"types": [
"var",
"var",
"var"
]
}
]
},
"handleCodecAResult": {
"occurrences": 8,
"arg_count": {
"min": 3,
"max": 3,
"common": 3
},
"patterns": [
{
"count": 8,
"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"
]
}
]
},
"handlePropertyResult": {
"occurrences": 8,
"arg_count": {
"min": 6,
"max": 6,
"common": 6
},
"patterns": [
{
"count": 8,
"args": 6,
"types": [
"var",
"var",
"var",
"var",
"var",
"var"
]
}
]
},
"RegExp": {
"occurrences": 54,
"arg_count": {
"min": 1,
"max": 2,
"common": 1
},
"patterns": [
{
"count": 48,
"args": 1,
"types": [
"template"
]
},
{
"count": 3,
"args": 2,
"types": [
"var",
"lit"
]
},
{
"count": 3,
"args": 1,
"types": [
"expr"
]
}
]
},
"Date": {
"occurrences": 3,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 3,
"args": 1,
"types": [
"other"
]
}
]
},
"Boolean": {
"occurrences": 3,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 3,
"args": 1,
"types": [
"other"
]
}
]
},
"handleDefaultResult": {
"occurrences": 4,
"arg_count": {
"min": 2,
"max": 2,
"common": 2
},
"patterns": [
{
"count": 4,
"args": 2,
"types": [
"var",
"var"
]
}
]
},
"Array": {
"occurrences": 6,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 6,
"args": 1,
"types": [
"other"
]
}
]
},
"handlePipeResult": {
"occurrences": 8,
"arg_count": {
"min": 3,
"max": 3,
"common": 3
},
"patterns": [
{
"count": 8,
"args": 3,
"types": [
"var",
"other",
"var"
]
}
]
},
"handleSetResult": {
"occurrences": 4,
"arg_count": {
"min": 2,
"max": 2,
"common": 2
},
"patterns": [
{
"count": 4,
"args": 2,
"types": [
"var",
"var"
]
}
]
},
"isValidBase64": {
"occurrences": 4,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 2,
"args": 1,
"types": [
"var"
]
},
{
"count": 2,
"args": 1,
"types": [
"other"
]
}
]
},
"handleNonOptionalResult": {
"occurrences": 4,
"arg_count": {
"min": 2,
"max": 2,
"common": 2
},
"patterns": [
{
"count": 4,
"args": 2,
"types": [
"var",
"var"
]
}
]
},
"isValidBase64URL": {
"occurrences": 2,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"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"
]
}
]
},
"String": {
"occurrences": 12,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 9,
"args": 1,
"types": [
"var"
]
},
{
"count": 3,
"args": 1,
"types": [
"other"
]
}
]
},
"first": {
"occurrences": 4,
"arg_count": {
"min": 2,
"max": 2,
"common": 2
},
"patterns": [
{
"count": 4,
"args": 2,
"types": [
"var",
"var"
]
}
]
},
"Doc": {
"occurrences": 2,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 2,
"args": 1,
"types": [
"other"
]
}
]
},
"safeParse": {
"occurrences": 2,
"arg_count": {
"min": 2,
"max": 2,
"common": 2
},
"patterns": [
{
"count": 2,
"args": 2,
"types": [
"var",
"var"
]
}
]
},
"handleRefineResult": {
"occurrences": 4,
"arg_count": {
"min": 4,
"max": 4,
"common": 4
},
"patterns": [
{
"count": 4,
"args": 4,
"types": [
"var",
"var",
"var",
"var"
]
}
]
},
"handleMapResult": {
"occurrences": 4,
"arg_count": {
"min": 7,
"max": 7,
"common": 7
},
"patterns": [
{
"count": 2,
"args": 7,
"types": [
"var",
"var",
"var",
"var",
"var",
"var",
"var"
]
},
{
"count": 2,
"args": 7,
"types": [
"other",
"other",
"var",
"var",
"var",
"var",
"var"
]
}
]
},
"isValidJWT": {
"occurrences": 2,
"arg_count": {
"min": 2,
"max": 2,
"common": 2
},
"patterns": [
{
"count": 2,
"args": 2,
"types": [
"other",
"other"
]
}
]
},
"$ZodTuple": {
"occurrences": 2,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 2,
"args": 1,
"types": [
"other"
]
}
]
},
"normalizeDef": {
"occurrences": 4,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 4,
"args": 1,
"types": [
"var"
]
}
]
},
"handleUnionResults": {
"occurrences": 4,
"arg_count": {
"min": 4,
"max": 4,
"common": 4
},
"patterns": [
{
"count": 4,
"args": 4,
"types": [
"other",
"var",
"var",
"var"
]
}
]
},
"parse": {
"occurrences": 4,
"arg_count": {
"min": 2,
"max": 2,
"common": 2
},
"patterns": [
{
"count": 4,
"args": 2,
"types": [
"other",
"var"
]
}
]
},
"mergeValues": {
"occurrences": 6,
"arg_count": {
"min": 2,
"max": 2,
"common": 2
},
"patterns": [
{
"count": 2,
"args": 2,
"types": [
"other",
"other"
]
},
{
"count": 2,
"args": 2,
"types": [
"var",
"var"
]
},
{
"count": 2,
"args": 2,
"types": [
"subscript",
"subscript"
]
}
]
},
"fn": {
"occurrences": 10,
"arg_count": {
"min": 0,
"max": 3,
"common": 1
},
"patterns": [
{
"count": 2,
"args": 3,
"types": [
"var",
"var",
"var"
]
},
{
"count": 2,
"args": 1,
"types": [
"var"
]
},
{
"count": 2,
"args": 1,
"types": [
"other"
]
},
{
"count": 2,
"args": 0,
"types": []
},
{
"count": 2,
"args": 2,
"types": [
"other",
"other"
]
}
]
},
"runChecks": {
"occurrences": 6,
"arg_count": {
"min": 3,
"max": 3,
"common": 3
},
"patterns": [
{
"count": 6,
"args": 3,
"types": [
"var",
"var",
"var"
]
}
]
},
"getTupleOptStart": {
"occurrences": 4,
"arg_count": {
"min": 2,
"max": 2,
"common": 2
},
"patterns": [
{
"count": 4,
"args": 2,
"types": [
"var",
"lit"
]
}
]
},
"handleArrayResult": {
"occurrences": 4,
"arg_count": {
"min": 3,
"max": 3,
"common": 3
},
"patterns": [
{
"count": 4,
"args": 3,
"types": [
"var",
"var",
"var"
]
}
]
},
"handleReadonlyResult": {
"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"
]
}
]
},
"parseStr": {
"occurrences": 2,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 2,
"args": 1,
"types": [
"var"
]
}
]
},
"handleCodecTxResult": {
"occurrences": 8,
"arg_count": {
"min": 4,
"max": 4,
"common": 4
},
"patterns": [
{
"count": 8,
"args": 4,
"types": [
"var",
"var",
"other",
"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"
]
}
]
},
"URL": {
"occurrences": 6,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 4,
"args": 1,
"types": [
"template"
]
},
{
"count": 2,
"args": 1,
"types": [
"var"
]
}
]
},
"handleExclusiveUnionResults": {
"occurrences": 4,
"arg_count": {
"min": 4,
"max": 4,
"common": 4
},
"patterns": [
{
"count": 4,
"args": 4,
"types": [
"other",
"var",
"var",
"var"
]
}
]
},
"fastpass": {
"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"
]
}
]
},
"handleTupleResults": {
"occurrences": 4,
"arg_count": {
"min": 5,
"max": 5,
"common": 5
},
"patterns": [
{
"count": 4,
"args": 5,
"types": [
"var",
"var",
"var",
"var",
"var"
]
}
]
},
"_super": {
"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"
]
}
]
},
"timeSource": {
"occurrences": 4,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 2,
"args": 1,
"types": [
"var"
]
},
{
"count": 2,
"args": 1,
"types": [
"other"
]
}
]
},
"fixedBase64": {
"occurrences": 10,
"arg_count": {
"min": 2,
"max": 2,
"common": 2
},
"patterns": [
{
"count": 10,
"args": 2,
"types": [
"lit",
"lit"
]
}
]
},
"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"
]
}
]
},
"handleCheckPropertyResult": {
"occurrences": 4,
"arg_count": {
"min": 3,
"max": 3,
"common": 3
},
"patterns": [
{
"count": 4,
"args": 3,
"types": [
"var",
"var",
"other"
]
}
]
},
"init": {
"occurrences": 2,
"arg_count": {
"min": 2,
"max": 2,
"common": 2
},
"patterns": [
{
"count": 2,
"args": 2,
"types": [
"var",
"var"
]
}
]
},
"initializer": {
"occurrences": 2,
"arg_count": {
"min": 2,
"max": 2,
"common": 2
},
"patterns": [
{
"count": 2,
"args": 2,
"types": [
"var",
"var"
]
}
]
},
"Definition": {
"occurrences": 2,
"arg_count": {
"min": 0,
"max": 0,
"common": 0
},
"patterns": [
{
"count": 2,
"args": 0,
"types": []
}
]
},
"_String": {
"occurrences": 2,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 2,
"args": 1,
"types": [
"other"
]
}
]
},
"_overwrite": {
"occurrences": 10,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 10,
"args": 1,
"types": [
"other"
]
}
]
},
"_lt": {
"occurrences": 2,
"arg_count": {
"min": 2,
"max": 2,
"common": 2
},
"patterns": [
{
"count": 2,
"args": 2,
"types": [
"lit",
"var"
]
}
]
},
"_Codec": {
"occurrences": 2,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 2,
"args": 1,
"types": [
"other"
]
}
]
},
"_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"
]
}
]
},
"_gte": {
"occurrences": 2,
"arg_count": {
"min": 2,
"max": 2,
"common": 2
},
"patterns": [
{
"count": 2,
"args": 2,
"types": [
"lit",
"var"
]
}
]
},
"_gt": {
"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"
]
}
]
},
"makeURI": {
"occurrences": 2,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 2,
"args": 1,
"types": [
"var"
]
}
]
},
"extractToDef": {
"occurrences": 10,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 10,
"args": 1,
"types": [
"var"
]
}
]
},
"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": 2,
"types": [
"call",
"var"
]
},
{
"count": 2,
"args": 1,
"types": [
"var"
]
}
]
},
"flattenRef": {
"occurrences": 6,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 4,
"args": 1,
"types": [
"var"
]
},
{
"count": 2,
"args": 1,
"types": [
"subscript"
]
}
]
},
"uriGenerator": {
"occurrences": 4,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 2,
"args": 1,
"types": [
"lit"
]
},
{
"count": 2,
"args": 1,
"types": [
"var"
]
}
]
},
"createStandardJSONSchemaMethod": {
"occurrences": 4,
"arg_count": {
"min": 3,
"max": 3,
"common": 3
},
"patterns": [
{
"count": 4,
"args": 3,
"types": [
"var",
"lit",
"other"
]
}
]
},
"processor": {
"occurrences": 2,
"arg_count": {
"min": 4,
"max": 4,
"common": 4
},
"patterns": [
{
"count": 2,
"args": 4,
"types": [
"var",
"var",
"var",
"var"
]
}
]
},
"mapper": {
"occurrences": 12,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 12,
"args": 1,
"types": [
"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"
]
}
]
},
"$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"
]
}
]
},
"toDotPath": {
"occurrences": 2,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 2,
"args": 1,
"types": [
"other"
]
}
]
}
}
},
{
"label": "packages/zod/src/v4/core/tests",
"method_count": 43,
"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": {
"it": {
"occurrences": 10,
"arg_count": {
"min": 2,
"max": 2,
"common": 2
},
"patterns": [
{
"count": 10,
"args": 2,
"types": [
"lit",
"other"
]
}
]
},
"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": [
"subscript"
]
},
{
"count": 2,
"args": 1,
"types": [
"expr"
]
}
]
},
"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 ::= (\"expect\" | \"if\" | \"result\" | \"safeParse\" | \"schema\" | \"toBe\")+ \"z\"?",
"mdl_score": 13956,
"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": {
"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"
]
}
]
},
"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"
]
}
]
},
"ru": {
"occurrences": 2,
"arg_count": {
"min": 0,
"max": 0,
"common": 0
},
"patterns": [
{
"count": 2,
"args": 0,
"types": []
}
]
},
"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"
]
}
]
},
"test": {
"occurrences": 116,
"arg_count": {
"min": 2,
"max": 2,
"common": 2
},
"patterns": [
{
"count": 116,
"args": 2,
"types": [
"lit",
"other"
]
}
]
},
"Map": {
"occurrences": 15,
"arg_count": {
"min": 0,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 9,
"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"
]
}
]
},
"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"
]
}
]
},
"Set": {
"occurrences": 24,
"arg_count": {
"min": 0,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 18,
"args": 1,
"types": [
"other"
]
},
{
"count": 6,
"args": 0,
"types": []
}
]
},
"Error": {
"occurrences": 6,
"arg_count": {
"min": 0,
"max": 0,
"common": 0
},
"patterns": [
{
"count": 6,
"args": 0,
"types": []
}
]
},
"fr": {
"occurrences": 6,
"arg_count": {
"min": 0,
"max": 0,
"common": 0
},
"patterns": [
{
"count": 6,
"args": 0,
"types": []
}
]
},
"nl": {
"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": []
}
]
},
"hr": {
"occurrences": 8,
"arg_count": {
"min": 0,
"max": 0,
"common": 0
},
"patterns": [
{
"count": 8,
"args": 0,
"types": []
}
]
},
"es": {
"occurrences": 10,
"arg_count": {
"min": 0,
"max": 0,
"common": 0
},
"patterns": [
{
"count": 10,
"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": []
}
]
},
"el": {
"occurrences": 10,
"arg_count": {
"min": 0,
"max": 0,
"common": 0
},
"patterns": [
{
"count": 10,
"args": 0,
"types": []
}
]
}
}
},
{
"label": "packages/zod/src/v4/locales",
"method_count": 214,
"algorithm": "CRX",
"grammar": "root ::= \"switch\"? (\"$ZodStringFormatIssues\" | \":\" | \"?\" | \"FormatDictionary\" | \"TypeDictionary\" | \"_issue\" | \"adj\" | \"as\" | \"case\" | \"default\" | \"errors\" | \"expected\" | \"getSizing\" | \"if\" | \"issue\" | \"joinValues\" | \"parsedType\" | \"received\" | \"receivedType\" | \"return\" | \"sizing\" | \"stringifyPrimitive\" | \"test\" | \"toString\" | \"util\")+",
"mdl_score": 35360675,
"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": {
"error": {
"occurrences": 100,
"arg_count": {
"min": 0,
"max": 0,
"common": 0
},
"patterns": [
{
"count": 100,
"args": 0,
"types": []
}
]
},
"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"
]
}
]
},
"typeEntry": {
"occurrences": 4,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 4,
"args": 1,
"types": [
"var"
]
}
]
},
"typeLabel": {
"occurrences": 4,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 4,
"args": 1,
"types": [
"var"
]
}
]
},
"verbFor": {
"occurrences": 4,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 4,
"args": 1,
"types": [
"expr"
]
}
]
},
"withDefinite": {
"occurrences": 6,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 6,
"args": 1,
"types": [
"expr"
]
}
]
},
"uk": {
"occurrences": 2,
"arg_count": {
"min": 0,
"max": 0,
"common": 0
},
"patterns": [
{
"count": 2,
"args": 0,
"types": []
}
]
},
"km": {
"occurrences": 2,
"arg_count": {
"min": 0,
"max": 0,
"common": 0
},
"patterns": [
{
"count": 2,
"args": 0,
"types": []
}
]
},
"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"
]
}
]
},
"Number": {
"occurrences": 24,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 24,
"args": 1,
"types": [
"other"
]
}
]
},
"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"
]
}
]
},
"withDefiniteArticle": {
"occurrences": 12,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 8,
"args": 1,
"types": [
"other"
]
},
{
"count": 4,
"args": 1,
"types": [
"expr"
]
}
]
},
"getArmenianPlural": {
"occurrences": 4,
"arg_count": {
"min": 3,
"max": 3,
"common": 3
},
"patterns": [
{
"count": 4,
"args": 3,
"types": [
"var",
"other",
"other"
]
}
]
}
}
},
{
"label": "packages/zod/src/v4/mini",
"method_count": 199,
"algorithm": "CRX",
"grammar": "root ::= \"return\"? \"core\"? \"init\"? \"inst\"? \"def\"?",
"mdl_score": 60,
"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": {
"ZodMiniUnion": {
"occurrences": 2,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 2,
"args": 1,
"types": [
"other"
]
}
]
},
"ZodMiniReadonly": {
"occurrences": 2,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 2,
"args": 1,
"types": [
"other"
]
}
]
},
"ZodMiniPromise": {
"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"
]
}
]
},
"record": {
"occurrences": 2,
"arg_count": {
"min": 2,
"max": 2,
"common": 2
},
"patterns": [
{
"count": 2,
"args": 2,
"types": [
"call",
"var"
]
}
]
},
"ZodMiniSet": {
"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"
]
}
]
},
"custom": {
"occurrences": 2,
"arg_count": {
"min": 2,
"max": 2,
"common": 2
},
"patterns": [
{
"count": 2,
"args": 2,
"types": [
"other",
"var"
]
}
]
},
"ZodMiniCatch": {
"occurrences": 2,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 2,
"args": 1,
"types": [
"other"
]
}
]
},
"ZodMiniMap": {
"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"
]
}
]
},
"number": {
"occurrences": 2,
"arg_count": {
"min": 0,
"max": 0,
"common": 0
},
"patterns": [
{
"count": 2,
"args": 0,
"types": []
}
]
},
"ZodMiniDiscriminatedUnion": {
"occurrences": 2,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 2,
"args": 1,
"types": [
"other"
]
}
]
},
"ZodMiniRecord": {
"occurrences": 8,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 8,
"args": 1,
"types": [
"other"
]
}
]
},
"ZodMiniTemplateLiteral": {
"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": []
}
]
},
"ZodMiniSuccess": {
"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": 0,
"common": 0
},
"patterns": [
{
"count": 6,
"args": 0,
"types": []
}
]
},
"ZodMiniXor": {
"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"
]
}
]
},
"ZodMiniDefault": {
"occurrences": 2,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 2,
"args": 1,
"types": [
"other"
]
}
]
},
"ZodMiniPipe": {
"occurrences": 2,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 2,
"args": 1,
"types": [
"other"
]
}
]
},
"ZodMiniEnum": {
"occurrences": 4,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 4,
"args": 1,
"types": [
"other"
]
}
]
},
"ZodMiniNullable": {
"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"
]
}
]
},
"ZodMiniObject": {
"occurrences": 6,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 4,
"args": 1,
"types": [
"other"
]
},
{
"count": 2,
"args": 1,
"types": [
"var"
]
}
]
},
"_lazy": {
"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": []
}
]
},
"nullable": {
"occurrences": 2,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 2,
"args": 1,
"types": [
"var"
]
}
]
},
"ZodMiniCodec": {
"occurrences": 4,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 4,
"args": 1,
"types": [
"other"
]
}
]
},
"fn": {
"occurrences": 2,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 2,
"args": 1,
"types": [
"var"
]
}
]
},
"boolean": {
"occurrences": 2,
"arg_count": {
"min": 0,
"max": 0,
"common": 0
},
"patterns": [
{
"count": 2,
"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"
]
}
]
},
"ZodMiniFunction": {
"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"
]
}
]
},
"ZodMiniArray": {
"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"
]
}
]
},
"never": {
"occurrences": 2,
"arg_count": {
"min": 0,
"max": 0,
"common": 0
},
"patterns": [
{
"count": 2,
"args": 0,
"types": []
}
]
},
"ZodMiniTransform": {
"occurrences": 2,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 2,
"args": 1,
"types": [
"other"
]
}
]
},
"ZodMiniOptional": {
"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"
]
}
]
},
"tuple": {
"occurrences": 2,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 2,
"args": 1,
"types": [
"other"
]
}
]
},
"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"
]
}
]
},
"optional": {
"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": [
"template"
]
},
{
"count": 1,
"args": 1,
"types": [
"lit"
]
},
{
"count": 1,
"args": 1,
"types": [
"var"
]
}
]
}
}
},
{
"label": "packages/zod/src/v4/mini/tests",
"method_count": 484,
"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"
]
}
]
},
"Symbol": {
"occurrences": 18,
"arg_count": {
"min": 0,
"max": 1,
"common": 0
},
"patterns": [
{
"count": 15,
"args": 0,
"types": []
},
{
"count": 3,
"args": 1,
"types": [
"lit"
]
}
]
},
"Map": {
"occurrences": 39,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 39,
"args": 1,
"types": [
"other"
]
}
]
},
"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"
]
}
]
},
"String": {
"occurrences": 30,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 21,
"args": 1,
"types": [
"var"
]
},
{
"count": 9,
"args": 1,
"types": [
"other"
]
}
]
},
"A": {
"occurrences": 2,
"arg_count": {
"min": 0,
"max": 0,
"common": 0
},
"patterns": [
{
"count": 2,
"args": 0,
"types": []
}
]
},
"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"
]
}
]
},
"BigInt": {
"occurrences": 32,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 32,
"args": 1,
"types": [
"lit"
]
}
]
},
"Set": {
"occurrences": 18,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 18,
"args": 1,
"types": [
"other"
]
}
]
},
"File": {
"occurrences": 2,
"arg_count": {
"min": 3,
"max": 3,
"common": 3
},
"patterns": [
{
"count": 2,
"args": 3,
"types": [
"other",
"lit",
"other"
]
}
]
},
"branded": {
"occurrences": 2,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 2,
"args": 1,
"types": [
"lit"
]
}
]
},
"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"
]
}
]
},
"Number": {
"occurrences": 27,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 18,
"args": 1,
"types": [
"var"
]
},
{
"count": 9,
"args": 1,
"types": [
"other"
]
}
]
},
"en": {
"occurrences": 2,
"arg_count": {
"min": 0,
"max": 0,
"common": 0
},
"patterns": [
{
"count": 2,
"args": 0,
"types": []
}
]
},
"setTimeout": {
"occurrences": 4,
"arg_count": {
"min": 2,
"max": 2,
"common": 2
},
"patterns": [
{
"count": 4,
"args": 2,
"types": [
"var",
"lit"
]
}
]
},
"Promise": {
"occurrences": 6,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 6,
"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"
]
}
]
}
}
},
{
"label": "scripts",
"method_count": 6,
"algorithm": "CRX",
"grammar": "root ::= \"Object\"?+ \"assign\"? (\":\" | \"?\" | \"Error\" | \"STUB_PACKAGE_JSON_CONTENT\" | \"Set\" | \"add\" | \"any\" | \"args\" | \"as\" | \"catch\" | \"console\" | \"continue\" | \"dir\" | \"dirsWithIndexJs\" | \"else\" | \"entries\" | \"entry\" | \"findIndexJsFiles\" | \"for\" | \"fullPath\" | \"has\" | \"if\" | \"import\" | \"isDirectory\" | \"join\" | \"log\" | \"method\" | \"new\" | \"of\" | \"packageJsonPath\" | \"processedDirs\" | \"push\" | \"readdirSync\" | \"relativeFilePath\" | \"relativePath\" | \"results\" | \"return\" | \"stat\" | \"statSync\" | \"string\" | \"throw\" | \"thrower\" | \"try\" | \"writeFileSync\" | \"zodPackageRoot\")?+ \"original\"?",
"mdl_score": 10249155,
"imports": [
"import { afterAll, beforeAll } from \"vitest\";",
"import { readdirSync, statSync, writeFileSync } from \"node:fs\";",
"import { join } from \"node:path\";"
],
"arg_patterns": {
"Error": {
"occurrences": 3,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 3,
"args": 1,
"types": [
"template"
]
}
]
},
"beforeAll": {
"occurrences": 2,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 2,
"args": 1,
"types": [
"other"
]
}
]
},
"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"
]
}
]
},
"new": {
"occurrences": 2,
"arg_count": {
"min": 0,
"max": 1,
"common": 0
},
"patterns": [
{
"count": 1,
"args": 1,
"types": [
"template"
]
},
{
"count": 1,
"args": 0,
"types": []
}
]
},
"readdirSync": {
"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": []
}
]
},
"writeFileSync": {
"occurrences": 2,
"arg_count": {
"min": 3,
"max": 3,
"common": 3
},
"patterns": [
{
"count": 2,
"args": 3,
"types": [
"var",
"var",
"lit"
]
}
]
},
"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": 1,
"types": [
"var"
]
},
{
"count": 2,
"args": 2,
"types": [
"var",
"var"
]
}
]
},
"writeStubPackageJsons": {
"occurrences": 2,
"arg_count": {
"min": 0,
"max": 0,
"common": 0
},
"patterns": [
{
"count": 2,
"args": 0,
"types": []
}
]
},
"statSync": {
"occurrences": 2,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 2,
"args": 1,
"types": [
"var"
]
}
]
}
}
},
{
"label": "(other)",
"method_count": 4,
"imports": [],
"arg_patterns": {}
}
],
"total_methods": 6203
},
{
"language": ".js",
"conventions": [],
"total_methods": 0
}
]