diff --git a/bex/gbnf.py b/bex/gbnf.py index c15ab64..db767a4 100644 --- a/bex/gbnf.py +++ b/bex/gbnf.py @@ -93,3 +93,134 @@ def grammar_structure_score(node): child_scores = [grammar_structure_score(p) for p in node.parts] return min(1.0, 0.3 + 0.2 * n + sum(child_scores) / max(len(child_scores), 1)) return 0.0 + + +# Noise token sets for grammar filtering +TEST_NOISE = { + 'assertEquals', 'assertTrue', 'assertFalse', 'assertNotNull', 'assertNull', + 'every', 'verify', 'clearAllMocks', 'mockk', 'slot', 'coEvery', 'coVerify', + 'assertThat', 'assertThrows', 'assertNotEquals', 'assumeTrue', + 'doReturn', 'doThrow', 'assertSame', 'assertFailsWith', 'assertContains', + 'runTest', 'TestRequest', 'TestClient', 'client', 'pytest', 'mock', 'patch', + 'monkeypatch', 'tmp_path', 'async_client', 'test_client', +} + +STDLIB_NOISE = { + 'listOf', 'mapOf', 'setOf', 'arrayOf', 'mutableListOf', 'mutableMapOf', + 'emptyList', 'emptyMap', 'emptySet', 'build', 'buildString', 'also', + 'apply', 'let', 'run', 'to', 'of', 'get', 'set', 'if', 'else', 'when', + 'return', 'is', 'in', 'as', 'toString', 'equals', 'hashCode', 'size', + 'isEmpty', 'isNotEmpty', 'filter', 'map', 'flatMap', 'forEach', 'count', + 'first', 'last', 'firstOrNull', 'single', 'singleOrNull', 'take', + 'drop', 'joinToString', 'trim', 'isBlank', 'isNullOrBlank', 'orEmpty', + 'contains', 'add', 'remove', 'clear', 'put', 'putAll', 'keys', 'values', + 'String', 'Any', 'Boolean', 'Int', 'Long', 'Unit', 'Nothing', 'error', + 'invoke', 'println', 'print', 'check', 'require', 'checkNotNull', 'requireNotNull', +} + +# Combined noise set +ALL_NOISE = TEST_NOISE | STDLIB_NOISE + + +def filter_noise(node, noise_tokens=None): + """Remove noise tokens from AST grammar. + + Walks the AST and removes Symbol nodes whose text is in the noise set. + Returns cleaned AST, or Empty if everything was noise. + + Args: + node: Grammar AST node + noise_tokens: set of tokens to remove (default: ALL_NOISE) + + Returns: + Cleaned AST node + """ + from .grammar import Concat, Alt, Optional, Plus, Star + + if noise_tokens is None: + noise_tokens = ALL_NOISE + + if node is None or isinstance(node, (Epsilon, Empty)): + return node + + if isinstance(node, Symbol): + if node.value in noise_tokens: + return Empty() + return node + + if isinstance(node, Concat): + new_parts = [] + for part in node.parts: + filtered = filter_noise(part, noise_tokens) + if not isinstance(filtered, (Epsilon, Empty)): + new_parts.append(filtered) + if not new_parts: + return Empty() + if len(new_parts) == 1: + return new_parts[0] + return Concat(new_parts) + + if isinstance(node, Alt): + new_parts = [] + for part in node.parts: + filtered = filter_noise(part, noise_tokens) + if not isinstance(filtered, (Epsilon, Empty)): + new_parts.append(filtered) + if not new_parts: + return Empty() + if len(new_parts) == 1: + return new_parts[0] + return Alt(new_parts) + + if isinstance(node, (Plus, Optional, Star)): + filtered = filter_noise(node.child, noise_tokens) + if isinstance(filtered, (Epsilon, Empty)): + return Empty() + if isinstance(node, Plus): + return Plus(filtered) + if isinstance(node, Optional): + return Optional(filtered) + return Star(filtered) + + return node + + +def grammar_noise_ratio(node, noise_tokens=None): + """Calculate the fraction of symbols that are noise. + + Returns (n_noise, n_total) tuple. + """ + from .grammar import Concat, Alt, Optional, Plus, Star + + if noise_tokens is None: + noise_tokens = ALL_NOISE + + if node is None or isinstance(node, (Epsilon, Empty)): + return 0, 0 + + if isinstance(node, Symbol): + is_noise = 1 if node.value in noise_tokens else 0 + return is_noise, 1 + + if isinstance(node, Concat): + noise = 0 + total = 0 + for part in node.parts: + n, t = grammar_noise_ratio(part, noise_tokens) + noise += n + total += t + return noise, total + + if isinstance(node, Alt): + noise = 0 + total = 0 + for part in node.parts: + n, t = grammar_noise_ratio(part, noise_tokens) + noise += n + total += t + return noise, total + + if isinstance(node, (Plus, Optional, Star)): + return grammar_noise_ratio(node.child, noise_tokens) + + return 0, 0 diff --git a/bex/tag_preprocessor/analyze.py b/bex/tag_preprocessor/analyze.py index d35692e..aef7816 100644 --- a/bex/tag_preprocessor/analyze.py +++ b/bex/tag_preprocessor/analyze.py @@ -20,7 +20,7 @@ import pathspec from .code import preprocess_by_method, extract_arg_info, _summarize_arg_info from bex.ensemble import infer_ensemble -from bex.gbnf import grammar_structure_score, to_gbnf +from bex.gbnf import grammar_structure_score, to_gbnf, filter_noise, grammar_noise_ratio from bex.grammar import Empty from bex.distributional import distributional_split from bex.decompose import decompose_with_coverage, get_decomposition_stats @@ -891,8 +891,20 @@ def _build_json_output(results): "method_count": count, } if result and result.get("best"): + grammar = result["best"]["grammar"] + # Apply noise filtering + filtered_grammar = filter_noise(grammar) + if filtered_grammar and not isinstance(filtered_grammar, Empty): + n_noise, n_total = grammar_noise_ratio(grammar) + entry["grammar"] = to_gbnf(filtered_grammar) + entry["grammar_clean"] = to_gbnf(filtered_grammar) + entry["noise_ratio"] = round(n_noise / n_total, 2) if n_total > 0 else 1.0 + entry["symbols_before"] = n_total + entry["symbols_after"] = n_total - n_noise + else: + entry["grammar"] = to_gbnf(grammar) + entry["noise_ratio"] = 1.0 entry["algorithm"] = result["best"]["algorithm"] - entry["grammar"] = to_gbnf(result["best"]["grammar"]) entry["mdl_score"] = round(result['best']['mdl_score'], 1) entry["imports"] = meta.get("imports", []) entry["arg_patterns"] = meta.get("arg_patterns", {}) @@ -902,7 +914,7 @@ def _build_json_output(results): return json.dumps(output, indent=2) -def _build_yaml_output(results, dir_path, max_mdl=500.0, min_structure=0.0): +def _build_yaml_output(results, dir_path, max_mdl=500.0, min_structure=0.0, filter_grammar_noise=True): """Build YAML output grouped by top-level module, sorted by MDL. Filters out (other), no-grammar groups, groups above max_mdl, @@ -931,6 +943,15 @@ def _build_yaml_output(results, dir_path, max_mdl=500.0, min_structure=0.0): if grammar_structure_score(best["grammar"]) < min_structure: continue + # Apply noise filtering + grammar = best["grammar"] + if filter_grammar_noise: + filtered = filter_noise(grammar) + if filtered and not isinstance(filtered, Empty): + grammar = filtered + else: + continue # Skip grammars that become empty after filtering + # Extract top-level module from package path parts = label.replace(os.sep, "/").split("/") module = parts[0] if len(parts) > 1 else "(root)" @@ -939,7 +960,7 @@ def _build_yaml_output(results, dir_path, max_mdl=500.0, min_structure=0.0): entry = { "package": label, "methods": count, - "grammar": to_gbnf(best["grammar"]), + "grammar": to_gbnf(grammar), "score": round(best.get("mdl_score", 0), 3), "algorithm": best["algorithm"], "mdl": round(best["mdl_score"], 1), diff --git a/experiments/results/round21_loosened_filtering/SUMMARY.md b/experiments/results/round21_loosened_filtering/SUMMARY.md new file mode 100644 index 0000000..c0ceeee --- /dev/null +++ b/experiments/results/round21_loosened_filtering/SUMMARY.md @@ -0,0 +1,49 @@ +# Round 21: Loosened Filtering Thresholds + +## Changes Made +- `min_methods`: 3→2 (keep groups with 2+ methods) +- `unique_ratio`: 0.9→0.95 (keep groups with up to 95% unique sequences) +- `max_mdl`: 200→500 (keep higher-MDL grammars) + +## Results + +### Grammar Count Comparison + +| Codebase | Before | After | Change | +|----------|--------|-------|--------| +| RAGSAK | 60 | 102 | +70% | +| FastAPI | 18 | 121 | +572% | +| Zod | 1 | 10 | +900% | +| **Total** | **79** | **233** | **+195%** | + +### Quality Distribution + +| Tier | RAGSAK | FastAPI | Zod | Total | +|------|--------|---------|-----|-------| +| T1 (3+ groups) | 23 | 3 | 0 | 26 | +| T2 (2+ groups) | 18 | 15 | 0 | 33 | +| T3 (ordered, no groups) | 52 | 100 | 9 | 161 | +| T0 (bags/no structure) | 9 | 3 | 1 | 13 | +| **Total** | **102** | **121** | **10** | **233** | + +### Key Findings + +1. **Loosened filtering dramatically increased grammar count** — 195% more grammars across all 3 codebases +2. **FastAPI benefited most** — from 18 to 121 grammars (+572%), mostly T3 (ordered sequences) +3. **Zod went from 1 to 10 grammars** — previously only tsc pattern survived, now 9 ordered patterns +4. **Quality distribution shifted** — more T3 grammars (ordered sequences with some structure), fewer being thrown away +5. **T1 count doubled** for RAGSAK (12→23) — strong alternating patterns now preserved + +### Files +- `ragsak.json` — RAGSAK results (102 grammars) +- `ragsak.log` — RAGSAK execution log +- `fastapi.json` — FastAPI results (121 grammars) +- `fastapi.log` — FastAPI execution log +- `zod.json` — Zod results (10 grammars) +- `zod.log` — Zod execution log + +## Next Steps +1. Apply noise filtering to clean T3 grammars (remove test/stdlib noise) +2. Deduplicate similar grammars across packages +3. Build GBNF delivery mechanism +4. Test with opencode diff --git a/experiments/results/round21_loosened_filtering/fastapi.json b/experiments/results/round21_loosened_filtering/fastapi.json new file mode 100644 index 0000000..72a17ea --- /dev/null +++ b/experiments/results/round21_loosened_filtering/fastapi.json @@ -0,0 +1,33529 @@ +[ + { + "language": ".js", + "conventions": [ + { + "label": "docs/en/docs/js", + "method_count": 49, + "imports": [], + "arg_patterns": { + "parseFloat": { + "occurrences": 15, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 15, + "args": 1, + "types": [ + "call" + ] + } + ] + }, + "setTimeout": { + "occurrences": 2, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 2, + "args": 2, + "types": [ + "var", + "var" + ] + } + ] + }, + "Promise": { + "occurrences": 6, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 6, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "Termynal": { + "occurrences": 6, + "arg_count": { + "min": 1, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 4, + "args": 2, + "types": [ + "var", + "other" + ] + }, + { + "count": 2, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "getComputedStyle": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "new": { + "occurrences": 7, + "arg_count": { + "min": 1, + "max": 2, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 2, + "types": [ + "var", + "other" + ] + }, + { + "count": 2, + "args": 1, + "types": [ + "var" + ] + }, + { + "count": 2, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "saveBuffer": { + "occurrences": 10, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 10, + "args": 0, + "types": [] + } + ] + }, + "resolve": { + "occurrences": 4, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 4, + "args": 0, + "types": [] + } + ] + }, + "announceRandom": { + "occurrences": 2, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 2, + "args": 0, + "types": [] + } + ] + }, + "URL": { + "occurrences": 4, + "arg_count": { + "min": 1, + "max": 2, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "var" + ] + }, + { + "count": 2, + "args": 2, + "types": [ + "var", + "other" + ] + } + ] + }, + "showRandomAnnouncement": { + "occurrences": 4, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 4, + "args": 2, + "types": [ + "lit", + "lit" + ] + } + ] + }, + "handleSponsorImages": { + "occurrences": 2, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 2, + "args": 0, + "types": [] + } + ] + }, + "setInterval": { + "occurrences": 2, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 2, + "args": 2, + "types": [ + "var", + "var" + ] + } + ] + }, + "activate": { + "occurrences": 4, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 4, + "args": 2, + "types": [ + "var", + "lit" + ] + } + ] + }, + "openLinksInNewTab": { + "occurrences": 2, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 2, + "args": 0, + "types": [] + } + ] + }, + "reject": { + "occurrences": 2, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 2, + "args": 0, + "types": [] + } + ] + }, + "shuffle": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "loadVisibleTermynals": { + "occurrences": 2, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 2, + "args": 0, + "types": [] + } + ] + }, + "createTermynals": { + "occurrences": 2, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 2, + "args": 0, + "types": [] + } + ] + }, + "setupTermynal": { + "occurrences": 2, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 2, + "args": 0, + "types": [] + } + ] + }, + "main": { + "occurrences": 2, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 2, + "args": 0, + "types": [] + } + ] + }, + "setupOpinionsTabs": { + "occurrences": 2, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 2, + "args": 0, + "types": [] + } + ] + } + } + }, + { + "label": "(other)", + "method_count": 1, + "imports": [], + "arg_patterns": {} + } + ], + "total_methods": 50 + }, + { + "language": ".py", + "conventions": [ + { + "label": "docs_src", + "method_count": 45, + "imports": [ + "from typing import Annotated", + "from fastapi import Body, FastAPI, status", + "from fastapi.responses import JSONResponse", + "from fastapi import FastAPI", + "import pytest", + "from httpx import ASGITransport, AsyncClient", + "from .main import app", + "from fastapi import Depends, FastAPI, HTTPException, status", + "from fastapi.security import HTTPAuthorizationCredentials, HTTPBearer", + "from fastapi import Body, FastAPI", + "from pydantic import BaseModel, Field", + "from pydantic_settings import BaseSettings", + "from fastapi import Cookie, FastAPI", + "from fastapi.middleware.cors import CORSMiddleware", + "import uvicorn", + "from datetime import datetime", + "from fastapi.encoders import jsonable_encoder", + "from pydantic import BaseModel", + "from fastapi.openapi.utils import get_openapi", + "from datetime import datetime, time, timedelta", + "from uuid import UUID", + "import strawberry", + "from strawberry.fastapi import GraphQLRouter", + "import time", + "from fastapi import FastAPI, Request", + "from fastapi import APIRouter, FastAPI", + "from pydantic import BaseModel, HttpUrl", + "from fastapi import FastAPI, Form", + "from fastapi import FastAPI, File, Form, UploadFile", + "from fastapi import FastAPI, Response, status", + "from fastapi import FastAPI, Response", + "from fastapi import FastAPI, status", + "from fastapi.responses import HTMLResponse", + "from fastapi.staticfiles import StaticFiles", + "from fastapi.templating import Jinja2Templates", + "from a2wsgi import WSGIMiddleware", + "from flask import Flask, request", + "from markupsafe import escape" + ], + "arg_patterns": { + "FastAPI": { + "occurrences": 123, + "arg_count": { + "min": 0, + "max": 1, + "common": 0 + }, + "patterns": [ + { + "count": 117, + "args": 0, + "types": [] + }, + { + "count": 6, + "args": 1, + "types": [ + "kwarg" + ] + } + ] + }, + "call_next": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "str": { + "occurrences": 5, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 5, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "Body": { + "occurrences": 42, + "arg_count": { + "min": 0, + "max": 1, + "common": 0 + }, + "patterns": [ + { + "count": 27, + "args": 0, + "types": [] + }, + { + "count": 15, + "args": 1, + "types": [ + "kwarg" + ] + } + ] + }, + "Flask": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "WSGIMiddleware": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "escape": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "Depends": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "call" + ] + } + ] + }, + "HTTPBearer403": { + "occurrences": 4, + "arg_count": { + "min": 0, + "max": 1, + "common": 0 + }, + "patterns": [ + { + "count": 3, + "args": 0, + "types": [] + }, + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "HTTPException": { + "occurrences": 3, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 3, + "args": 2, + "types": [ + "kwarg", + "kwarg" + ] + } + ] + }, + "class": { + "occurrences": 12, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 12, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "AsyncClient": { + "occurrences": 3, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 3, + "args": 2, + "types": [ + "kwarg", + "kwarg" + ] + } + ] + }, + "ASGITransport": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "kwarg" + ] + } + ] + }, + "jsonable_encoder": { + "occurrences": 6, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 6, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "Item": { + "occurrences": 5, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 5, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "JSONResponse": { + "occurrences": 15, + "arg_count": { + "min": 1, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 9, + "args": 2, + "types": [ + "kwarg", + "kwarg" + ] + }, + { + "count": 6, + "args": 1, + "types": [ + "kwarg" + ] + } + ] + }, + "Cookie": { + "occurrences": 6, + "arg_count": { + "min": 0, + "max": 1, + "common": 0 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "kwarg" + ] + }, + { + "count": 3, + "args": 0, + "types": [] + } + ] + }, + "Field": { + "occurrences": 12, + "arg_count": { + "min": 2, + "max": 3, + "common": 2 + }, + "patterns": [ + { + "count": 6, + "args": 3, + "types": [ + "kwarg", + "kwarg", + "kwarg" + ] + }, + { + "count": 6, + "args": 2, + "types": [ + "kwarg", + "kwarg" + ] + } + ] + }, + "Form": { + "occurrences": 18, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 18, + "args": 0, + "types": [] + } + ] + }, + "StaticFiles": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "kwarg" + ] + } + ] + }, + "Jinja2Templates": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "kwarg" + ] + } + ] + }, + "File": { + "occurrences": 12, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 12, + "args": 0, + "types": [] + } + ] + }, + "len": { + "occurrences": 8, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 8, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "Response": { + "occurrences": 3, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 3, + "args": 2, + "types": [ + "kwarg", + "kwarg" + ] + } + ] + }, + "User": { + "occurrences": 3, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 3, + "args": 2, + "types": [ + "kwarg", + "kwarg" + ] + } + ] + }, + "GraphQLRouter": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "Settings": { + "occurrences": 8, + "arg_count": { + "min": 0, + "max": 1, + "common": 0 + }, + "patterns": [ + { + "count": 6, + "args": 0, + "types": [] + }, + { + "count": 2, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "Subscription": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "APIRouter": { + "occurrences": 3, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 3, + "args": 0, + "types": [] + } + ] + }, + "Invoice": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "InvoiceEvent": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "InvoiceEventReceived": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "get_openapi": { + "occurrences": 3, + "arg_count": { + "min": 5, + "max": 5, + "common": 5 + }, + "patterns": [ + { + "count": 3, + "args": 5, + "types": [ + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg" + ] + } + ] + } + } + }, + { + "label": "docs_src/additional_responses", + "method_count": 4, + "algorithm": "CRX", + "grammar": "root ::= \"if\"? (\"img\" | \"item_id\")? (\"FileResponse\" | \"else\" | \"media_type\" | \"return\")?+ \"JSONResponse\"?+ \"status_code\"? \"content\"?", + "mdl_score": 3696, + "imports": [ + "from fastapi import FastAPI", + "from fastapi.responses import JSONResponse", + "from pydantic import BaseModel", + "from fastapi.responses import FileResponse" + ], + "arg_patterns": { + "JSONResponse": { + "occurrences": 6, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 6, + "args": 2, + "types": [ + "kwarg", + "kwarg" + ] + } + ] + }, + "FastAPI": { + "occurrences": 12, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 12, + "args": 0, + "types": [] + } + ] + }, + "Item": { + "occurrences": 4, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 4, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "Message": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "class": { + "occurrences": 6, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 6, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "FileResponse": { + "occurrences": 6, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 6, + "args": 2, + "types": [ + "lit", + "kwarg" + ] + } + ] + } + } + }, + { + "label": "docs_src/advanced_middleware", + "method_count": 3, + "imports": [ + "from fastapi import FastAPI", + "from fastapi.middleware.httpsredirect import HTTPSRedirectMiddleware", + "from fastapi.middleware.trustedhost import TrustedHostMiddleware", + "from fastapi.middleware.gzip import GZipMiddleware" + ], + "arg_patterns": { + "FastAPI": { + "occurrences": 9, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 9, + "args": 0, + "types": [] + } + ] + } + } + }, + { + "label": "docs_src/app_testing", + "method_count": 14, + "algorithm": "CRX", + "grammar": "root ::= (\"client\" | \"get\" | \"response\" | \"status_code\")?+ \"TestClient\"?+ \"json\"?+ \"app\"?", + "mdl_score": 256, + "imports": [ + "from fastapi import FastAPI", + "from fastapi.testclient import TestClient", + "from .main import app", + "from fastapi.websockets import WebSocket", + "from contextlib import asynccontextmanager" + ], + "arg_patterns": { + "TestClient": { + "occurrences": 18, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 18, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "FastAPI": { + "occurrences": 15, + "arg_count": { + "min": 0, + "max": 1, + "common": 0 + }, + "patterns": [ + { + "count": 12, + "args": 0, + "types": [] + }, + { + "count": 3, + "args": 1, + "types": [ + "kwarg" + ] + } + ] + } + } + }, + { + "label": "docs_src/app_testing/app_b_an_py310", + "method_count": 8, + "algorithm": "CRX", + "grammar": "root ::= \"in\"? \"fake_db\"? (\"HTTPException\" | \"client\" | \"detail\" | \"fake_secret_token\" | \"get\" | \"headers\" | \"if\" | \"json\" | \"post\" | \"raise\" | \"response\" | \"status_code\" | \"x_token\")+", + "mdl_score": 838916, + "imports": [ + "from typing import Annotated", + "from fastapi import FastAPI, Header, HTTPException", + "from pydantic import BaseModel", + "from fastapi.testclient import TestClient", + "from .main import app" + ], + "arg_patterns": { + "HTTPException": { + "occurrences": 12, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 12, + "args": 2, + "types": [ + "kwarg", + "kwarg" + ] + } + ] + }, + "FastAPI": { + "occurrences": 3, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 3, + "args": 0, + "types": [] + } + ] + }, + "Header": { + "occurrences": 6, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 6, + "args": 0, + "types": [] + } + ] + }, + "Item": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "class": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "TestClient": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "var" + ] + } + ] + } + } + }, + { + "label": "docs_src/app_testing/app_b_py310", + "method_count": 8, + "algorithm": "CRX", + "grammar": "root ::= \"in\"? \"fake_db\"? (\"HTTPException\" | \"client\" | \"detail\" | \"fake_secret_token\" | \"get\" | \"headers\" | \"if\" | \"json\" | \"post\" | \"raise\" | \"response\" | \"status_code\" | \"x_token\")+", + "mdl_score": 838916, + "imports": [ + "from fastapi import FastAPI, Header, HTTPException", + "from pydantic import BaseModel", + "from fastapi.testclient import TestClient", + "from .main import app" + ], + "arg_patterns": { + "HTTPException": { + "occurrences": 12, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 12, + "args": 2, + "types": [ + "kwarg", + "kwarg" + ] + } + ] + }, + "FastAPI": { + "occurrences": 3, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 3, + "args": 0, + "types": [] + } + ] + }, + "Header": { + "occurrences": 6, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 6, + "args": 0, + "types": [] + } + ] + }, + "Item": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "class": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "TestClient": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "var" + ] + } + ] + } + } + }, + { + "label": "docs_src/background_tasks", + "method_count": 8, + "algorithm": "CRX", + "grammar": "root ::= \"if\"? \"open\"?+ \"mode\"? \"log\"?+ \"write\"?+ (\"add_task\" | \"background_tasks\" | \"email\" | \"message\" | \"q\" | \"return\" | \"write_log\")?+", + "mdl_score": 133, + "imports": [ + "from fastapi import BackgroundTasks, FastAPI", + "from typing import Annotated", + "from fastapi import BackgroundTasks, Depends, FastAPI" + ], + "arg_patterns": { + "open": { + "occurrences": 12, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 12, + "args": 2, + "types": [ + "lit", + "kwarg" + ] + } + ] + }, + "FastAPI": { + "occurrences": 9, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 9, + "args": 0, + "types": [] + } + ] + }, + "Depends": { + "occurrences": 6, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 6, + "args": 1, + "types": [ + "var" + ] + } + ] + } + } + }, + { + "label": "docs_src/behind_a_proxy", + "method_count": 5, + "algorithm": "CRX", + "grammar": "root ::= \"return\"? \"request\"? \"scope\"? \"get\"?+", + "mdl_score": 48, + "imports": [ + "from fastapi import FastAPI", + "from fastapi import FastAPI, Request" + ], + "arg_patterns": { + "FastAPI": { + "occurrences": 15, + "arg_count": { + "min": 0, + "max": 3, + "common": 0 + }, + "patterns": [ + { + "count": 6, + "args": 0, + "types": [] + }, + { + "count": 3, + "args": 1, + "types": [ + "kwarg" + ] + }, + { + "count": 3, + "args": 3, + "types": [ + "kwarg", + "kwarg", + "kwarg" + ] + }, + { + "count": 3, + "args": 2, + "types": [ + "kwarg", + "kwarg" + ] + } + ] + } + } + }, + { + "label": "docs_src/bigger_applications/app_an_py310", + "method_count": 4, + "algorithm": "CRX", + "grammar": "root ::= \"if\"? \"return\"? (\"token\" | \"x_token\")? \"raise\"? \"HTTPException\"?+ \"status_code\"? \"detail\"?", + "mdl_score": 517, + "imports": [ + "from typing import Annotated", + "from fastapi import Header, HTTPException", + "from fastapi import APIRouter", + "from fastapi import Depends, FastAPI", + "from .dependencies import get_query_token, get_token_header", + "from .internal import admin", + "from .routers import items, users" + ], + "arg_patterns": { + "APIRouter": { + "occurrences": 3, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 3, + "args": 0, + "types": [] + } + ] + }, + "HTTPException": { + "occurrences": 6, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 6, + "args": 2, + "types": [ + "kwarg", + "kwarg" + ] + } + ] + }, + "Header": { + "occurrences": 3, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 3, + "args": 0, + "types": [] + } + ] + }, + "FastAPI": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "kwarg" + ] + } + ] + }, + "Depends": { + "occurrences": 6, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 6, + "args": 1, + "types": [ + "var" + ] + } + ] + } + } + }, + { + "label": "docs_src/bigger_applications/app_an_py310/routers", + "method_count": 6, + "algorithm": "CRX", + "grammar": "root ::= \"if\"? (\"HTTPException\" | \"detail\" | \"fake_items_db\" | \"in\" | \"item_id\" | \"not\" | \"not in\" | \"raise\" | \"return\" | \"status_code\")?+ \"username\"?", + "mdl_score": 199070, + "imports": [ + "from fastapi import APIRouter, Depends, HTTPException", + "from ..dependencies import get_token_header", + "from fastapi import APIRouter" + ], + "arg_patterns": { + "HTTPException": { + "occurrences": 6, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 6, + "args": 2, + "types": [ + "kwarg", + "kwarg" + ] + } + ] + }, + "APIRouter": { + "occurrences": 6, + "arg_count": { + "min": 0, + "max": 4, + "common": 0 + }, + "patterns": [ + { + "count": 3, + "args": 4, + "types": [ + "kwarg", + "kwarg", + "kwarg", + "kwarg" + ] + }, + { + "count": 3, + "args": 0, + "types": [] + } + ] + }, + "Depends": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "var" + ] + } + ] + } + } + }, + { + "label": "docs_src/body", + "method_count": 4, + "algorithm": "CRX", + "grammar": "root ::= (\"if\" | \"is\" | \"is not\" | \"item\" | \"item_dict\" | \"item_id\" | \"model_dump\" | \"not\" | \"price\" | \"price_with_tax\" | \"q\" | \"result\" | \"return\" | \"tax\" | \"update\")+", + "mdl_score": 1591260, + "imports": [ + "from fastapi import FastAPI", + "from pydantic import BaseModel" + ], + "arg_patterns": { + "FastAPI": { + "occurrences": 12, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 12, + "args": 0, + "types": [] + } + ] + }, + "Item": { + "occurrences": 4, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 4, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "class": { + "occurrences": 4, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 4, + "args": 1, + "types": [ + "var" + ] + } + ] + } + } + }, + { + "label": "docs_src/body_multiple_params", + "method_count": 9, + "algorithm": "CRX", + "grammar": "root ::= (\"if\" | \"importance\" | \"item\" | \"item_id\" | \"q\" | \"results\" | \"return\" | \"update\" | \"user\")+", + "mdl_score": 167841, + "imports": [ + "from typing import Annotated", + "from fastapi import FastAPI, Path", + "from pydantic import BaseModel", + "from fastapi import FastAPI", + "from fastapi import Body, FastAPI" + ], + "arg_patterns": { + "Item": { + "occurrences": 9, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 9, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "User": { + "occurrences": 5, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 5, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "Body": { + "occurrences": 18, + "arg_count": { + "min": 0, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 12, + "args": 1, + "types": [ + "kwarg" + ] + }, + { + "count": 6, + "args": 0, + "types": [] + } + ] + }, + "FastAPI": { + "occurrences": 27, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 27, + "args": 0, + "types": [] + } + ] + }, + "class": { + "occurrences": 14, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 14, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "Path": { + "occurrences": 6, + "arg_count": { + "min": 3, + "max": 3, + "common": 3 + }, + "patterns": [ + { + "count": 6, + "args": 3, + "types": [ + "kwarg", + "kwarg", + "kwarg" + ] + } + ] + } + } + }, + { + "label": "docs_src/body_nested_models", + "method_count": 9, + "algorithm": "CRX", + "grammar": "root ::= (\"item\" | \"item_id\" | \"results\" | \"return\")+", + "mdl_score": 676, + "imports": [ + "from fastapi import FastAPI", + "from pydantic import BaseModel", + "from pydantic import BaseModel, HttpUrl" + ], + "arg_patterns": { + "FastAPI": { + "occurrences": 27, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 27, + "args": 0, + "types": [] + } + ] + }, + "set": { + "occurrences": 25, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 25, + "args": 0, + "types": [] + } + ] + }, + "Image": { + "occurrences": 5, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 5, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "Item": { + "occurrences": 7, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 7, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "class": { + "occurrences": 13, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 13, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "Offer": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + } + } + }, + { + "label": "docs_src/body_updates", + "method_count": 4, + "algorithm": "CRX", + "grammar": "root ::= (\"Item\" | \"exclude_unset\" | \"item\" | \"item_id\" | \"items\" | \"jsonable_encoder\" | \"model_copy\" | \"model_dump\" | \"return\" | \"stored_item_data\" | \"stored_item_model\" | \"update\" | \"update_data\" | \"update_item_encoded\" | \"updated_item\")+", + "mdl_score": 1688445, + "imports": [ + "from fastapi import FastAPI", + "from fastapi.encoders import jsonable_encoder", + "from pydantic import BaseModel" + ], + "arg_patterns": { + "Item": { + "occurrences": 5, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "other" + ] + }, + { + "count": 2, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "FastAPI": { + "occurrences": 6, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 6, + "args": 0, + "types": [] + } + ] + }, + "jsonable_encoder": { + "occurrences": 6, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 6, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "class": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "var" + ] + } + ] + } + } + }, + { + "label": "docs_src/configure_swagger_ui", + "method_count": 3, + "imports": [ + "from fastapi import FastAPI" + ], + "arg_patterns": { + "FastAPI": { + "occurrences": 9, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 9, + "args": 1, + "types": [ + "kwarg" + ] + } + ] + } + } + }, + { + "label": "docs_src/cookie_param_models", + "method_count": 4, + "imports": [ + "from typing import Annotated", + "from fastapi import Cookie, FastAPI", + "from pydantic import BaseModel" + ], + "arg_patterns": { + "Cookie": { + "occurrences": 12, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 12, + "args": 0, + "types": [] + } + ] + }, + "FastAPI": { + "occurrences": 12, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 12, + "args": 0, + "types": [] + } + ] + }, + "Cookies": { + "occurrences": 4, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 4, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "class": { + "occurrences": 4, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 4, + "args": 1, + "types": [ + "var" + ] + } + ] + } + } + }, + { + "label": "docs_src/custom_docs_ui", + "method_count": 8, + "algorithm": "CRX", + "grammar": "root ::= \"return\"? (\"get_swagger_ui_oauth2_redirect_html\" | \"username\")?+ (\"get_redoc_html\" | \"get_swagger_ui_html\")?+ (\"app\" | \"oauth2_redirect_url\" | \"openapi_url\" | \"title\")?+ \"swagger_ui_oauth2_redirect_url\"? \"redoc_js_url\"? \"swagger_js_url\"? \"swagger_css_url\"?", + "mdl_score": 3808, + "imports": [ + "from fastapi import FastAPI", + "from fastapi.openapi.docs import (", + "from fastapi.staticfiles import StaticFiles" + ], + "arg_patterns": { + "get_swagger_ui_oauth2_redirect_html": { + "occurrences": 6, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 6, + "args": 0, + "types": [] + } + ] + }, + "FastAPI": { + "occurrences": 6, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 6, + "args": 2, + "types": [ + "kwarg", + "kwarg" + ] + } + ] + }, + "get_swagger_ui_html": { + "occurrences": 6, + "arg_count": { + "min": 5, + "max": 5, + "common": 5 + }, + "patterns": [ + { + "count": 6, + "args": 5, + "types": [ + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg" + ] + } + ] + }, + "get_redoc_html": { + "occurrences": 6, + "arg_count": { + "min": 3, + "max": 3, + "common": 3 + }, + "patterns": [ + { + "count": 6, + "args": 3, + "types": [ + "kwarg", + "kwarg", + "kwarg" + ] + } + ] + }, + "StaticFiles": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "kwarg" + ] + } + ] + } + } + }, + { + "label": "docs_src/custom_request_and_route", + "method_count": 18, + "algorithm": "CRX", + "grammar": "root ::= \"return\"? \"await\"? \"original_route_handler\"?+ \"super\"?+ \"get_route_handler\"?+ \"async\"? \"def\"? \"custom_route_handler\"?+ \"request\"? \"Request\"? \"Response\"?", + "mdl_score": 15, + "imports": [ + "import gzip", + "from collections.abc import Callable", + "from typing import Annotated", + "from fastapi import Body, FastAPI, Request, Response", + "from fastapi.routing import APIRoute", + "from fastapi import Body, FastAPI, HTTPException, Request, Response", + "from fastapi.exceptions import RequestValidationError", + "import time", + "from fastapi import APIRouter, FastAPI, Request, Response" + ], + "arg_patterns": { + "ValidationErrorLoggingRoute": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "original_route_handler": { + "occurrences": 15, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 15, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "HTTPException": { + "occurrences": 6, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 6, + "args": 2, + "types": [ + "kwarg", + "kwarg" + ] + } + ] + }, + "FastAPI": { + "occurrences": 15, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 15, + "args": 0, + "types": [] + } + ] + }, + "Body": { + "occurrences": 12, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 12, + "args": 0, + "types": [] + } + ] + }, + "super": { + "occurrences": 28, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 28, + "args": 0, + "types": [] + } + ] + }, + "sum": { + "occurrences": 16, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 16, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "class": { + "occurrences": 7, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 7, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "hasattr": { + "occurrences": 8, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 8, + "args": 2, + "types": [ + "var", + "lit" + ] + } + ] + }, + "GzipRequest": { + "occurrences": 8, + "arg_count": { + "min": 1, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 6, + "args": 2, + "types": [ + "other", + "other" + ] + }, + { + "count": 2, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "GzipRoute": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "APIRouter": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "kwarg" + ] + } + ] + }, + "str": { + "occurrences": 5, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 5, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "TimedRoute": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "print": { + "occurrences": 12, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 12, + "args": 1, + "types": [ + "lit" + ] + } + ] + } + } + }, + { + "label": "docs_src/custom_response", + "method_count": 19, + "imports": [ + "from fastapi import FastAPI", + "from fastapi.responses import UJSONResponse", + "from fastapi.responses import ORJSONResponse", + "from fastapi.responses import HTMLResponse", + "from fastapi.responses import PlainTextResponse", + "from fastapi.responses import RedirectResponse", + "import anyio", + "from fastapi.responses import StreamingResponse", + "from fastapi.responses import FileResponse", + "from typing import Any", + "import orjson", + "from fastapi import FastAPI, Response" + ], + "arg_patterns": { + "FastAPI": { + "occurrences": 45, + "arg_count": { + "min": 0, + "max": 1, + "common": 0 + }, + "patterns": [ + { + "count": 42, + "args": 0, + "types": [] + }, + { + "count": 3, + "args": 1, + "types": [ + "kwarg" + ] + } + ] + }, + "RedirectResponse": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "lit" + ] + } + ] + }, + "open": { + "occurrences": 4, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 4, + "args": 2, + "types": [ + "var", + "kwarg" + ] + } + ] + }, + "StreamingResponse": { + "occurrences": 6, + "arg_count": { + "min": 1, + "max": 2, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 2, + "types": [ + "call", + "kwarg" + ] + }, + { + "count": 3, + "args": 1, + "types": [ + "call" + ] + } + ] + }, + "iterfile": { + "occurrences": 3, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 3, + "args": 0, + "types": [] + } + ] + }, + "ORJSONResponse": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "HTMLResponse": { + "occurrences": 6, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 6, + "args": 2, + "types": [ + "kwarg", + "kwarg" + ] + } + ] + }, + "generate_html_response": { + "occurrences": 3, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 3, + "args": 0, + "types": [] + } + ] + }, + "range": { + "occurrences": 5, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 5, + "args": 1, + "types": [ + "lit" + ] + } + ] + }, + "fake_video_streamer": { + "occurrences": 3, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 3, + "args": 0, + "types": [] + } + ] + }, + "FileResponse": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "CustomORJSONResponse": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "class": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + } + } + }, + { + "label": "docs_src/dataclasses_", + "method_count": 4, + "algorithm": "CRX", + "grammar": "root ::= \"return\" \"author_id\"? \"item\"? \"items\"?", + "mdl_score": 7, + "imports": [ + "from dataclasses import dataclass", + "from fastapi import FastAPI", + "from dataclasses import dataclass, field", + "from dataclasses import field # (1)", + "from pydantic.dataclasses import dataclass # (2)" + ], + "arg_patterns": { + "FastAPI": { + "occurrences": 9, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 9, + "args": 0, + "types": [] + } + ] + }, + "field": { + "occurrences": 6, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 6, + "args": 1, + "types": [ + "kwarg" + ] + } + ] + } + } + }, + { + "label": "docs_src/dependencies", + "method_count": 82, + "imports": [ + "from typing import Annotated", + "from fastapi import Depends, FastAPI", + "from typing import Annotated, Any", + "from fastapi import Cookie, Depends, FastAPI", + "from fastapi import Depends, FastAPI, Header, HTTPException", + "from fastapi import Depends", + "from fastapi import Depends, FastAPI, HTTPException", + "import time", + "from fastapi.responses import StreamingResponse", + "from sqlmodel import Field, Session, SQLModel, create_engine" + ], + "arg_patterns": { + "Depends": { + "occurrences": 123, + "arg_count": { + "min": 0, + "max": 2, + "common": 1 + }, + "patterns": [ + { + "count": 111, + "args": 1, + "types": [ + "var" + ] + }, + { + "count": 6, + "args": 0, + "types": [] + }, + { + "count": 6, + "args": 2, + "types": [ + "var", + "kwarg" + ] + } + ] + }, + "FastAPI": { + "occurrences": 81, + "arg_count": { + "min": 0, + "max": 1, + "common": 0 + }, + "patterns": [ + { + "count": 75, + "args": 0, + "types": [] + }, + { + "count": 6, + "args": 1, + "types": [ + "kwarg" + ] + } + ] + }, + "generate_dep_b": { + "occurrences": 6, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 6, + "args": 0, + "types": [] + } + ] + }, + "generate_dep_a": { + "occurrences": 6, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 6, + "args": 0, + "types": [] + } + ] + }, + "generate_dep_c": { + "occurrences": 6, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 6, + "args": 0, + "types": [] + } + ] + }, + "Cookie": { + "occurrences": 6, + "arg_count": { + "min": 0, + "max": 1, + "common": 0 + }, + "patterns": [ + { + "count": 3, + "args": 0, + "types": [] + }, + { + "count": 3, + "args": 1, + "types": [ + "kwarg" + ] + } + ] + }, + "print": { + "occurrences": 24, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 24, + "args": 1, + "types": [ + "lit" + ] + } + ] + }, + "Header": { + "occurrences": 24, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 24, + "args": 0, + "types": [] + } + ] + }, + "HTTPException": { + "occurrences": 54, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 54, + "args": 2, + "types": [ + "kwarg", + "kwarg" + ] + } + ] + }, + "DBSession": { + "occurrences": 6, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 6, + "args": 0, + "types": [] + } + ] + }, + "User": { + "occurrences": 2, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 2, + "args": 2, + "types": [ + "var", + "kwarg" + ] + } + ] + }, + "create_engine": { + "occurrences": 6, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 6, + "args": 1, + "types": [ + "lit" + ] + } + ] + }, + "Session": { + "occurrences": 6, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 6, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "Field": { + "occurrences": 6, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 6, + "args": 2, + "types": [ + "kwarg", + "kwarg" + ] + } + ] + }, + "generate_stream": { + "occurrences": 6, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 6, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "StreamingResponse": { + "occurrences": 6, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 6, + "args": 1, + "types": [ + "kwarg" + ] + } + ] + }, + "class": { + "occurrences": 8, + "arg_count": { + "min": 1, + "max": 2, + "common": 1 + }, + "patterns": [ + { + "count": 6, + "args": 1, + "types": [ + "var" + ] + }, + { + "count": 2, + "args": 2, + "types": [ + "var", + "kwarg" + ] + } + ] + }, + "MySuperContextManager": { + "occurrences": 3, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 3, + "args": 0, + "types": [] + } + ] + }, + "InternalError": { + "occurrences": 16, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 12, + "args": 1, + "types": [ + "lit" + ] + }, + { + "count": 4, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "FixedContentQueryChecker": { + "occurrences": 6, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 6, + "args": 1, + "types": [ + "lit" + ] + } + ] + }, + "OwnerError": { + "occurrences": 8, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 8, + "args": 1, + "types": [ + "var" + ] + } + ] + } + } + }, + { + "label": "docs_src/dependency_testing", + "method_count": 14, + "algorithm": "CRX", + "grammar": "root ::= (\"client\" | \"get\" | \"response\" | \"status_code\")?+ \"return\"? \"json\"?+ \"commons\"?", + "mdl_score": 1092, + "imports": [ + "from typing import Annotated", + "from fastapi import Depends, FastAPI", + "from fastapi.testclient import TestClient" + ], + "arg_patterns": { + "TestClient": { + "occurrences": 6, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 6, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "Depends": { + "occurrences": 12, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 12, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "FastAPI": { + "occurrences": 6, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 6, + "args": 0, + "types": [] + } + ] + } + } + }, + { + "label": "docs_src/events", + "method_count": 7, + "imports": [ + "from fastapi import FastAPI", + "from contextlib import asynccontextmanager" + ], + "arg_patterns": { + "FastAPI": { + "occurrences": 9, + "arg_count": { + "min": 0, + "max": 1, + "common": 0 + }, + "patterns": [ + { + "count": 6, + "args": 0, + "types": [] + }, + { + "count": 3, + "args": 1, + "types": [ + "kwarg" + ] + } + ] + }, + "open": { + "occurrences": 4, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 4, + "args": 2, + "types": [ + "lit", + "kwarg" + ] + } + ] + } + } + }, + { + "label": "docs_src/extra_models", + "method_count": 9, + "algorithm": "CRX", + "grammar": "root ::= (\"UserInDB\" | \"fake_password_hasher\" | \"fake_save_user\" | \"hashed_password\" | \"model_dump\" | \"password\" | \"print\" | \"return\" | \"user_in\" | \"user_in_db\" | \"user_saved\")+ \"raw_password\"?", + "mdl_score": 373857, + "imports": [ + "from fastapi import FastAPI", + "from pydantic import BaseModel, EmailStr", + "from pydantic import BaseModel" + ], + "arg_patterns": { + "FastAPI": { + "occurrences": 15, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 15, + "args": 0, + "types": [] + } + ] + }, + "BaseItem": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "CarItem": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "PlaneItem": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "class": { + "occurrences": 11, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 11, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "print": { + "occurrences": 8, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 8, + "args": 1, + "types": [ + "lit" + ] + } + ] + }, + "fake_password_hasher": { + "occurrences": 6, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 6, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "UserBase": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "UserIn": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "UserOut": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "UserInDB": { + "occurrences": 8, + "arg_count": { + "min": 1, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 6, + "args": 2, + "types": [ + "other", + "kwarg" + ] + }, + { + "count": 2, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "fake_save_user": { + "occurrences": 6, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 6, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "Item": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + } + } + }, + { + "label": "docs_src/generate_clients", + "method_count": 9, + "imports": [ + "from fastapi import FastAPI", + "from pydantic import BaseModel", + "from fastapi.routing import APIRoute" + ], + "arg_patterns": { + "FastAPI": { + "occurrences": 9, + "arg_count": { + "min": 0, + "max": 1, + "common": 0 + }, + "patterns": [ + { + "count": 6, + "args": 0, + "types": [] + }, + { + "count": 3, + "args": 1, + "types": [ + "kwarg" + ] + } + ] + }, + "Item": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "ResponseMessage": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "User": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "class": { + "occurrences": 8, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 8, + "args": 1, + "types": [ + "var" + ] + } + ] + } + } + }, + { + "label": "docs_src/handling_errors", + "method_count": 13, + "algorithm": "CRX", + "grammar": "root ::= \"raise\"? \"if\"? \"HTTPException\"?+ \"item_id\"? \"status_code\"? \"detail\"? \"return\"?", + "mdl_score": 178, + "imports": [ + "from fastapi import FastAPI, HTTPException", + "from fastapi import FastAPI, Request", + "from fastapi.responses import JSONResponse", + "from fastapi.exceptions import RequestValidationError", + "from fastapi.responses import PlainTextResponse", + "from starlette.exceptions import HTTPException as StarletteHTTPException", + "from fastapi.encoders import jsonable_encoder", + "from pydantic import BaseModel", + "from fastapi.exception_handlers import (" + ], + "arg_patterns": { + "UnicornException": { + "occurrences": 4, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "kwarg" + ] + }, + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "FastAPI": { + "occurrences": 18, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 18, + "args": 0, + "types": [] + } + ] + }, + "JSONResponse": { + "occurrences": 6, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 6, + "args": 2, + "types": [ + "kwarg", + "kwarg" + ] + } + ] + }, + "class": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "HTTPException": { + "occurrences": 12, + "arg_count": { + "min": 2, + "max": 3, + "common": 2 + }, + "patterns": [ + { + "count": 9, + "args": 2, + "types": [ + "kwarg", + "kwarg" + ] + }, + { + "count": 3, + "args": 3, + "types": [ + "kwarg", + "kwarg", + "kwarg" + ] + } + ] + }, + "PlainTextResponse": { + "occurrences": 6, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 3, + "args": 2, + "types": [ + "call", + "kwarg" + ] + }, + { + "count": 3, + "args": 2, + "types": [ + "var", + "kwarg" + ] + } + ] + }, + "str": { + "occurrences": 5, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 5, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "jsonable_encoder": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "Item": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "repr": { + "occurrences": 4, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 4, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "http_exception_handler": { + "occurrences": 3, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 3, + "args": 2, + "types": [ + "var", + "var" + ] + } + ] + }, + "print": { + "occurrences": 8, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 8, + "args": 1, + "types": [ + "lit" + ] + } + ] + }, + "request_validation_exception_handler": { + "occurrences": 3, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 3, + "args": 2, + "types": [ + "var", + "var" + ] + } + ] + } + } + }, + { + "label": "docs_src/header_param_models", + "method_count": 6, + "imports": [ + "from typing import Annotated", + "from fastapi import FastAPI, Header", + "from pydantic import BaseModel" + ], + "arg_patterns": { + "Header": { + "occurrences": 18, + "arg_count": { + "min": 0, + "max": 1, + "common": 0 + }, + "patterns": [ + { + "count": 12, + "args": 0, + "types": [] + }, + { + "count": 6, + "args": 1, + "types": [ + "kwarg" + ] + } + ] + }, + "CommonHeaders": { + "occurrences": 6, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 6, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "FastAPI": { + "occurrences": 18, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 18, + "args": 0, + "types": [] + } + ] + }, + "class": { + "occurrences": 6, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 6, + "args": 1, + "types": [ + "var" + ] + } + ] + } + } + }, + { + "label": "docs_src/header_params", + "method_count": 6, + "algorithm": "CRX", + "grammar": "root ::= \"return\" (\"strange_header\" | \"user_agent\" | \"x_token\")", + "mdl_score": 9, + "imports": [ + "from typing import Annotated", + "from fastapi import FastAPI, Header" + ], + "arg_patterns": { + "FastAPI": { + "occurrences": 18, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 18, + "args": 0, + "types": [] + } + ] + }, + "Header": { + "occurrences": 18, + "arg_count": { + "min": 0, + "max": 2, + "common": 1 + }, + "patterns": [ + { + "count": 9, + "args": 1, + "types": [ + "kwarg" + ] + }, + { + "count": 6, + "args": 0, + "types": [] + }, + { + "count": 3, + "args": 2, + "types": [ + "kwarg", + "kwarg" + ] + } + ] + } + } + }, + { + "label": "docs_src/json_base64_bytes", + "method_count": 3, + "algorithm": "CRX", + "grammar": "root ::= (\"DataOutput\" | \"body\" | \"content\" | \"data\" | \"decode\" | \"description\" | \"encode\" | \"return\")+", + "mdl_score": 63824, + "imports": [ + "from fastapi import FastAPI", + "from pydantic import BaseModel" + ], + "arg_patterns": { + "DataInput": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "DataOutput": { + "occurrences": 4, + "arg_count": { + "min": 1, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 3, + "args": 2, + "types": [ + "kwarg", + "kwarg" + ] + }, + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "DataInputOutput": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "FastAPI": { + "occurrences": 3, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 3, + "args": 0, + "types": [] + } + ] + }, + "class": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "var" + ] + } + ] + } + } + }, + { + "label": "docs_src/metadata", + "method_count": 6, + "imports": [ + "from fastapi import FastAPI" + ], + "arg_patterns": { + "FastAPI": { + "occurrences": 15, + "arg_count": { + "min": 1, + "max": 7, + "common": 1 + }, + "patterns": [ + { + "count": 6, + "args": 7, + "types": [ + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg" + ] + }, + { + "count": 6, + "args": 1, + "types": [ + "kwarg" + ] + }, + { + "count": 3, + "args": 2, + "types": [ + "kwarg", + "kwarg" + ] + } + ] + } + } + }, + { + "label": "docs_src/path_operation_advanced_configuration", + "method_count": 9, + "algorithm": "CRX", + "grammar": "root ::= \"return\"? \"raw_body\"? \"item\"? \"await\"? \"request\"? \"body\"?+", + "mdl_score": 108, + "imports": [ + "from fastapi import FastAPI", + "from fastapi.routing import APIRoute", + "from pydantic import BaseModel", + "from fastapi import FastAPI, Request", + "import yaml", + "from fastapi import FastAPI, HTTPException, Request", + "from pydantic import BaseModel, ValidationError" + ], + "arg_patterns": { + "Item": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "HTTPException": { + "occurrences": 6, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 6, + "args": 2, + "types": [ + "kwarg", + "kwarg" + ] + } + ] + }, + "FastAPI": { + "occurrences": 21, + "arg_count": { + "min": 0, + "max": 1, + "common": 0 + }, + "patterns": [ + { + "count": 18, + "args": 0, + "types": [] + }, + { + "count": 3, + "args": 1, + "types": [ + "kwarg" + ] + } + ] + }, + "class": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "set": { + "occurrences": 5, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 5, + "args": 0, + "types": [] + } + ] + }, + "len": { + "occurrences": 4, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 4, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "magic_data_reader": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "var" + ] + } + ] + } + } + }, + { + "label": "docs_src/path_operation_configuration", + "method_count": 12, + "algorithm": "CRX", + "grammar": "root ::= \"return\" \"item\"?", + "mdl_score": 2, + "imports": [ + "from fastapi import FastAPI, status", + "from pydantic import BaseModel", + "from fastapi import FastAPI", + "from enum import Enum" + ], + "arg_patterns": { + "set": { + "occurrences": 25, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 25, + "args": 0, + "types": [] + } + ] + }, + "FastAPI": { + "occurrences": 21, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 21, + "args": 0, + "types": [] + } + ] + }, + "Item": { + "occurrences": 5, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 5, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "class": { + "occurrences": 6, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 6, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "Tags": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + } + } + }, + { + "label": "docs_src/path_params", + "method_count": 8, + "algorithm": "CRX", + "grammar": "root ::= \"return\" \"item_id\"?", + "mdl_score": 2, + "imports": [ + "from fastapi import FastAPI", + "from enum import Enum" + ], + "arg_patterns": { + "FastAPI": { + "occurrences": 18, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 18, + "args": 0, + "types": [] + } + ] + }, + "ModelName": { + "occurrences": 1, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 1, + "args": 2, + "types": [ + "var", + "var" + ] + } + ] + }, + "class": { + "occurrences": 1, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 1, + "args": 2, + "types": [ + "var", + "var" + ] + } + ] + } + } + }, + { + "label": "docs_src/path_params_numeric_validations", + "method_count": 12, + "algorithm": "CRX", + "grammar": "root ::= (\"if\" | \"item_id\" | \"q\" | \"results\" | \"return\" | \"update\")+", + "mdl_score": 10878, + "imports": [ + "from typing import Annotated", + "from fastapi import FastAPI, Path, Query", + "from fastapi import FastAPI, Path" + ], + "arg_patterns": { + "FastAPI": { + "occurrences": 36, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 36, + "args": 0, + "types": [] + } + ] + }, + "Path": { + "occurrences": 36, + "arg_count": { + "min": 1, + "max": 3, + "common": 1 + }, + "patterns": [ + { + "count": 18, + "args": 1, + "types": [ + "kwarg" + ] + }, + { + "count": 12, + "args": 3, + "types": [ + "kwarg", + "kwarg", + "kwarg" + ] + }, + { + "count": 6, + "args": 2, + "types": [ + "kwarg", + "kwarg" + ] + } + ] + }, + "Query": { + "occurrences": 12, + "arg_count": { + "min": 1, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 9, + "args": 2, + "types": [ + "kwarg", + "kwarg" + ] + }, + { + "count": 3, + "args": 1, + "types": [ + "kwarg" + ] + } + ] + } + } + }, + { + "label": "docs_src/pydantic_v1_in_v2", + "method_count": 3, + "imports": [ + "from fastapi import FastAPI", + "from pydantic.v1 import BaseModel", + "from pydantic import BaseModel as BaseModelV2", + "from typing import Annotated", + "from fastapi.temp_pydantic_v1_params import Body" + ], + "arg_patterns": { + "FastAPI": { + "occurrences": 9, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 9, + "args": 0, + "types": [] + } + ] + }, + "Item": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "ItemV2": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "class": { + "occurrences": 4, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 4, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "Body": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "kwarg" + ] + } + ] + } + } + }, + { + "label": "docs_src/python_types", + "method_count": 13, + "imports": [ + "from typing import Annotated" + ], + "arg_patterns": { + "print": { + "occurrences": 32, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 16, + "args": 1, + "types": [ + "var" + ] + }, + { + "count": 8, + "args": 1, + "types": [ + "lit" + ] + }, + { + "count": 8, + "args": 1, + "types": [ + "call" + ] + } + ] + }, + "str": { + "occurrences": 5, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 5, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "get_full_name": { + "occurrences": 6, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 6, + "args": 2, + "types": [ + "lit", + "lit" + ] + } + ] + } + } + }, + { + "label": "docs_src/query_param_models", + "method_count": 4, + "imports": [ + "from typing import Annotated, Literal", + "from fastapi import FastAPI, Query", + "from pydantic import BaseModel, Field", + "from typing import Literal" + ], + "arg_patterns": { + "Field": { + "occurrences": 24, + "arg_count": { + "min": 2, + "max": 3, + "common": 2 + }, + "patterns": [ + { + "count": 12, + "args": 3, + "types": [ + "lit", + "kwarg", + "kwarg" + ] + }, + { + "count": 12, + "args": 2, + "types": [ + "lit", + "kwarg" + ] + } + ] + }, + "FilterParams": { + "occurrences": 4, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 4, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "FastAPI": { + "occurrences": 12, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 12, + "args": 0, + "types": [] + } + ] + }, + "Query": { + "occurrences": 12, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 12, + "args": 0, + "types": [] + } + ] + }, + "class": { + "occurrences": 4, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 4, + "args": 1, + "types": [ + "var" + ] + } + ] + } + } + }, + { + "label": "docs_src/query_params", + "method_count": 6, + "algorithm": "CRX", + "grammar": "root ::= (\"fake_items_db\" | \"if\" | \"item\" | \"item_id\" | \"limit\" | \"needy\" | \"not\" | \"q\" | \"return\" | \"short\" | \"skip\" | \"update\" | \"user_id\")+", + "mdl_score": 851318, + "imports": [ + "from fastapi import FastAPI" + ], + "arg_patterns": { + "FastAPI": { + "occurrences": 18, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 18, + "args": 0, + "types": [] + } + ] + } + } + }, + { + "label": "docs_src/query_params_str_validations", + "method_count": 31, + "algorithm": "CRX", + "grammar": "root ::= (\"if\" | \"q\" | \"results\" | \"return\" | \"update\")+", + "mdl_score": 4680, + "imports": [ + "from fastapi import FastAPI", + "from typing import Annotated", + "from fastapi import FastAPI, Query", + "import random", + "from pydantic import AfterValidator" + ], + "arg_patterns": { + "FastAPI": { + "occurrences": 90, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 90, + "args": 0, + "types": [] + } + ] + }, + "Query": { + "occurrences": 84, + "arg_count": { + "min": 0, + "max": 8, + "common": 1 + }, + "patterns": [ + { + "count": 33, + "args": 1, + "types": [ + "kwarg" + ] + }, + { + "count": 18, + "args": 2, + "types": [ + "kwarg", + "kwarg" + ] + }, + { + "count": 12, + "args": 3, + "types": [ + "kwarg", + "kwarg", + "kwarg" + ] + }, + { + "count": 9, + "args": 0, + "types": [] + }, + { + "count": 6, + "args": 4, + "types": [ + "kwarg", + "kwarg", + "kwarg", + "kwarg" + ] + } + ] + }, + "AfterValidator": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "ValueError": { + "occurrences": 4, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 4, + "args": 1, + "types": [ + "lit" + ] + } + ] + }, + "list": { + "occurrences": 5, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 5, + "args": 1, + "types": [ + "call" + ] + } + ] + } + } + }, + { + "label": "docs_src/request_files", + "method_count": 24, + "algorithm": "CRX", + "grammar": "root ::= \"for\"? \"return\"? \"len\"?+ \"file\"? \"filename\"? \"in\"? \"files\"?", + "mdl_score": 250, + "imports": [ + "from typing import Annotated", + "from fastapi import FastAPI, File, UploadFile", + "from fastapi.responses import HTMLResponse" + ], + "arg_patterns": { + "FastAPI": { + "occurrences": 30, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 30, + "args": 0, + "types": [] + } + ] + }, + "HTMLResponse": { + "occurrences": 12, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 12, + "args": 1, + "types": [ + "kwarg" + ] + } + ] + }, + "len": { + "occurrences": 40, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 40, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "File": { + "occurrences": 42, + "arg_count": { + "min": 0, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 27, + "args": 1, + "types": [ + "kwarg" + ] + }, + { + "count": 15, + "args": 0, + "types": [] + } + ] + } + } + }, + { + "label": "docs_src/request_form_models", + "method_count": 4, + "imports": [ + "from typing import Annotated", + "from fastapi import FastAPI, Form", + "from pydantic import BaseModel" + ], + "arg_patterns": { + "FastAPI": { + "occurrences": 12, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 12, + "args": 0, + "types": [] + } + ] + }, + "FormData": { + "occurrences": 4, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 4, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "Form": { + "occurrences": 12, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 12, + "args": 0, + "types": [] + } + ] + }, + "class": { + "occurrences": 4, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 4, + "args": 1, + "types": [ + "var" + ] + } + ] + } + } + }, + { + "label": "docs_src/response_model", + "method_count": 16, + "algorithm": "iDRegEx", + "grammar": "root ::= \"return\" (\"items\" \"item_id\")?", + "mdl_score": 2, + "imports": [ + "from fastapi import FastAPI", + "from pydantic import BaseModel", + "from typing import Any", + "from pydantic import BaseModel, EmailStr", + "from fastapi import FastAPI, Response", + "from fastapi.responses import JSONResponse, RedirectResponse", + "from fastapi.responses import RedirectResponse" + ], + "arg_patterns": { + "FastAPI": { + "occurrences": 36, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 36, + "args": 0, + "types": [] + } + ] + }, + "BaseUser": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "UserIn": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "class": { + "occurrences": 10, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 10, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "Item": { + "occurrences": 11, + "arg_count": { + "min": 1, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 6, + "args": 2, + "types": [ + "kwarg", + "kwarg" + ] + }, + { + "count": 5, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "RedirectResponse": { + "occurrences": 12, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 12, + "args": 1, + "types": [ + "kwarg" + ] + } + ] + }, + "JSONResponse": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "kwarg" + ] + } + ] + }, + "UserOut": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + } + } + }, + { + "label": "docs_src/schema_extra_example", + "method_count": 8, + "algorithm": "CRX", + "grammar": "root ::= (\"item\" | \"item_id\" | \"results\" | \"return\")+", + "mdl_score": 676, + "imports": [ + "from fastapi import FastAPI", + "from pydantic import BaseModel", + "from pydantic import BaseModel, Field", + "from typing import Annotated", + "from fastapi import Body, FastAPI" + ], + "arg_patterns": { + "Item": { + "occurrences": 8, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 8, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "FastAPI": { + "occurrences": 24, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 24, + "args": 0, + "types": [] + } + ] + }, + "class": { + "occurrences": 8, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 8, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "Body": { + "occurrences": 18, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 18, + "args": 1, + "types": [ + "kwarg" + ] + } + ] + }, + "Field": { + "occurrences": 12, + "arg_count": { + "min": 1, + "max": 2, + "common": 1 + }, + "patterns": [ + { + "count": 6, + "args": 2, + "types": [ + "kwarg", + "kwarg" + ] + }, + { + "count": 6, + "args": 1, + "types": [ + "kwarg" + ] + } + ] + } + } + }, + { + "label": "docs_src/security", + "method_count": 70, + "imports": [ + "from typing import Annotated", + "from fastapi import Depends, FastAPI", + "from fastapi.security import OAuth2PasswordBearer", + "from pydantic import BaseModel", + "from fastapi import Depends, FastAPI, HTTPException, status", + "from fastapi.security import OAuth2PasswordBearer, OAuth2PasswordRequestForm", + "from datetime import datetime, timedelta, timezone", + "import jwt", + "from jwt.exceptions import InvalidTokenError", + "from pwdlib import PasswordHash", + "from fastapi import Depends, FastAPI, HTTPException, Security, status", + "from fastapi.security import (", + "from pydantic import BaseModel, ValidationError", + "from fastapi.security import HTTPBasic, HTTPBasicCredentials", + "import secrets" + ], + "arg_patterns": { + "FastAPI": { + "occurrences": 42, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 42, + "args": 0, + "types": [] + } + ] + }, + "HTTPException": { + "occurrences": 72, + "arg_count": { + "min": 2, + "max": 3, + "common": 2 + }, + "patterns": [ + { + "count": 36, + "args": 3, + "types": [ + "kwarg", + "kwarg", + "kwarg" + ] + }, + { + "count": 36, + "args": 2, + "types": [ + "kwarg", + "kwarg" + ] + } + ] + }, + "get_user": { + "occurrences": 30, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 18, + "args": 2, + "types": [ + "var", + "var" + ] + }, + { + "count": 12, + "args": 2, + "types": [ + "var", + "kwarg" + ] + } + ] + }, + "UserInDB": { + "occurrences": 30, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 24, + "args": 1, + "types": [ + "other" + ] + }, + { + "count": 6, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "Depends": { + "occurrences": 114, + "arg_count": { + "min": 0, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 96, + "args": 1, + "types": [ + "var" + ] + }, + { + "count": 18, + "args": 0, + "types": [] + } + ] + }, + "User": { + "occurrences": 14, + "arg_count": { + "min": 1, + "max": 3, + "common": 1 + }, + "patterns": [ + { + "count": 8, + "args": 1, + "types": [ + "var" + ] + }, + { + "count": 6, + "args": 3, + "types": [ + "kwarg", + "kwarg", + "kwarg" + ] + } + ] + }, + "fake_hash_password": { + "occurrences": 6, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 6, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "fake_decode_token": { + "occurrences": 12, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 12, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "OAuth2PasswordBearer": { + "occurrences": 30, + "arg_count": { + "min": 1, + "max": 2, + "common": 1 + }, + "patterns": [ + { + "count": 24, + "args": 1, + "types": [ + "kwarg" + ] + }, + { + "count": 6, + "args": 2, + "types": [ + "kwarg", + "kwarg" + ] + } + ] + }, + "class": { + "occurrences": 22, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 22, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "HTTPBasic": { + "occurrences": 12, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 12, + "args": 0, + "types": [] + } + ] + }, + "timedelta": { + "occurrences": 24, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 24, + "args": 1, + "types": [ + "kwarg" + ] + } + ] + }, + "verify_password": { + "occurrences": 24, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 12, + "args": 2, + "types": [ + "var", + "var" + ] + }, + { + "count": 12, + "args": 2, + "types": [ + "var", + "other" + ] + } + ] + }, + "Security": { + "occurrences": 12, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 12, + "args": 2, + "types": [ + "var", + "kwarg" + ] + } + ] + }, + "authenticate_user": { + "occurrences": 12, + "arg_count": { + "min": 3, + "max": 3, + "common": 3 + }, + "patterns": [ + { + "count": 12, + "args": 3, + "types": [ + "var", + "other", + "other" + ] + } + ] + }, + "create_access_token": { + "occurrences": 12, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 12, + "args": 2, + "types": [ + "kwarg", + "kwarg" + ] + } + ] + }, + "Token": { + "occurrences": 16, + "arg_count": { + "min": 1, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 12, + "args": 2, + "types": [ + "kwarg", + "kwarg" + ] + }, + { + "count": 4, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "TokenData": { + "occurrences": 16, + "arg_count": { + "min": 1, + "max": 2, + "common": 1 + }, + "patterns": [ + { + "count": 6, + "args": 2, + "types": [ + "kwarg", + "kwarg" + ] + }, + { + "count": 6, + "args": 1, + "types": [ + "kwarg" + ] + }, + { + "count": 4, + "args": 1, + "types": [ + "var" + ] + } + ] + } + } + }, + { + "label": "docs_src/separate_openapi_schemas", + "method_count": 4, + "algorithm": "CRX", + "grammar": "root ::= \"return\"? (\"Item\" | \"description\" | \"name\")?+ \"item\"?", + "mdl_score": 1011, + "imports": [ + "from fastapi import FastAPI", + "from pydantic import BaseModel" + ], + "arg_patterns": { + "Item": { + "occurrences": 14, + "arg_count": { + "min": 1, + "max": 2, + "common": 1 + }, + "patterns": [ + { + "count": 6, + "args": 2, + "types": [ + "kwarg", + "kwarg" + ] + }, + { + "count": 6, + "args": 1, + "types": [ + "kwarg" + ] + }, + { + "count": 2, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "FastAPI": { + "occurrences": 6, + "arg_count": { + "min": 0, + "max": 1, + "common": 0 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "kwarg" + ] + }, + { + "count": 3, + "args": 0, + "types": [] + } + ] + }, + "class": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "var" + ] + } + ] + } + } + }, + { + "label": "docs_src/server_sent_events", + "method_count": 8, + "algorithm": "CRX", + "grammar": "root ::= \"id\"? \"for\"? \"str\"?+ \"i\"? (\"ServerSentEvent\" | \"data\" | \"enumerate\" | \"in\" | \"item\" | \"items\" | \"yield\")?+ \"raw_data\"?", + "mdl_score": 10822, + "imports": [ + "from collections.abc import AsyncIterable, Iterable", + "from fastapi import FastAPI", + "from fastapi.sse import EventSourceResponse", + "from pydantic import BaseModel", + "from collections.abc import AsyncIterable", + "from fastapi.sse import EventSourceResponse, ServerSentEvent", + "from typing import Annotated", + "from fastapi import FastAPI, Header" + ], + "arg_patterns": { + "ServerSentEvent": { + "occurrences": 18, + "arg_count": { + "min": 1, + "max": 4, + "common": 2 + }, + "patterns": [ + { + "count": 9, + "args": 2, + "types": [ + "kwarg", + "kwarg" + ] + }, + { + "count": 6, + "args": 1, + "types": [ + "kwarg" + ] + }, + { + "count": 3, + "args": 4, + "types": [ + "kwarg", + "kwarg", + "kwarg", + "kwarg" + ] + } + ] + }, + "FastAPI": { + "occurrences": 15, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 15, + "args": 0, + "types": [] + } + ] + }, + "Prompt": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "class": { + "occurrences": 4, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 4, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "Item": { + "occurrences": 30, + "arg_count": { + "min": 1, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 27, + "args": 2, + "types": [ + "kwarg", + "kwarg" + ] + }, + { + "count": 3, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "str": { + "occurrences": 10, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 5, + "args": 1, + "types": [ + "expr" + ] + }, + { + "count": 5, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "enumerate": { + "occurrences": 8, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 8, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "Header": { + "occurrences": 3, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 3, + "args": 0, + "types": [] + } + ] + } + } + }, + { + "label": "docs_src/settings", + "method_count": 5, + "algorithm": "CRX", + "grammar": "root ::= \"return\"? (\"admin_email\" | \"app_name\" | \"settings\")?+ \"config\"? \"items_per_user\"? \"Settings\"?+", + "mdl_score": 600, + "imports": [ + "from fastapi import FastAPI", + "from .config import settings", + "from functools import lru_cache", + "from typing import Annotated", + "from fastapi import Depends, FastAPI", + "from . import config" + ], + "arg_patterns": { + "FastAPI": { + "occurrences": 9, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 9, + "args": 0, + "types": [] + } + ] + }, + "Depends": { + "occurrences": 6, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 6, + "args": 1, + "types": [ + "var" + ] + } + ] + } + } + }, + { + "label": "docs_src/settings/app02_an_py310", + "method_count": 4, + "algorithm": "CRX", + "grammar": "root ::= (\"client\" | \"data\" | \"get\" | \"json\" | \"response\")?+ \"return\"? \"Settings\"?+ (\"admin_email\" | \"app_name\" | \"settings\")?+ \"items_per_user\"?", + "mdl_score": 2400, + "imports": [ + "from functools import lru_cache", + "from typing import Annotated", + "from fastapi import Depends, FastAPI", + "from .config import Settings", + "from fastapi.testclient import TestClient", + "from .main import app, get_settings" + ], + "arg_patterns": { + "Settings": { + "occurrences": 6, + "arg_count": { + "min": 0, + "max": 1, + "common": 0 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "kwarg" + ] + }, + { + "count": 3, + "args": 0, + "types": [] + } + ] + }, + "TestClient": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "FastAPI": { + "occurrences": 3, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 3, + "args": 0, + "types": [] + } + ] + }, + "Depends": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "var" + ] + } + ] + } + } + }, + { + "label": "docs_src/settings/app02_py310", + "method_count": 4, + "algorithm": "CRX", + "grammar": "root ::= (\"client\" | \"data\" | \"get\" | \"json\" | \"response\")?+ \"return\"? \"Settings\"?+ (\"admin_email\" | \"app_name\" | \"settings\")?+ \"items_per_user\"?", + "mdl_score": 2400, + "imports": [ + "from functools import lru_cache", + "from fastapi import Depends, FastAPI", + "from .config import Settings", + "from fastapi.testclient import TestClient", + "from .main import app, get_settings" + ], + "arg_patterns": { + "TestClient": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "Settings": { + "occurrences": 6, + "arg_count": { + "min": 0, + "max": 1, + "common": 0 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "kwarg" + ] + }, + { + "count": 3, + "args": 0, + "types": [] + } + ] + }, + "FastAPI": { + "occurrences": 3, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 3, + "args": 0, + "types": [] + } + ] + }, + "Depends": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "var" + ] + } + ] + } + } + }, + { + "label": "docs_src/sql_databases", + "method_count": 30, + "algorithm": "CRX", + "grammar": "root ::= \"raise\"? \"session\"? \"hero\"? \"HTTPException\"?+ \"get\"?+ \"commit\"?+ \"status_code\"? \"Hero\"? \"detail\"? \"hero_id\"? \"if\"? \"not\"?", + "mdl_score": 108, + "imports": [ + "from typing import Annotated", + "from fastapi import Depends, FastAPI, HTTPException, Query", + "from sqlmodel import Field, Session, SQLModel, create_engine, select" + ], + "arg_patterns": { + "create_engine": { + "occurrences": 12, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 12, + "args": 2, + "types": [ + "var", + "kwarg" + ] + } + ] + }, + "Query": { + "occurrences": 12, + "arg_count": { + "min": 1, + "max": 2, + "common": 1 + }, + "patterns": [ + { + "count": 6, + "args": 2, + "types": [ + "kwarg", + "kwarg" + ] + }, + { + "count": 6, + "args": 1, + "types": [ + "kwarg" + ] + } + ] + }, + "Depends": { + "occurrences": 33, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 33, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "Session": { + "occurrences": 12, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 12, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "FastAPI": { + "occurrences": 12, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 12, + "args": 0, + "types": [] + } + ] + }, + "Hero": { + "occurrences": 4, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 4, + "args": 2, + "types": [ + "var", + "kwarg" + ] + } + ] + }, + "create_db_and_tables": { + "occurrences": 12, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 12, + "args": 0, + "types": [] + } + ] + }, + "HTTPException": { + "occurrences": 30, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 30, + "args": 2, + "types": [ + "kwarg", + "kwarg" + ] + } + ] + }, + "Field": { + "occurrences": 36, + "arg_count": { + "min": 1, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 24, + "args": 2, + "types": [ + "kwarg", + "kwarg" + ] + }, + { + "count": 12, + "args": 1, + "types": [ + "kwarg" + ] + } + ] + }, + "select": { + "occurrences": 12, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 12, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "class": { + "occurrences": 12, + "arg_count": { + "min": 1, + "max": 2, + "common": 1 + }, + "patterns": [ + { + "count": 8, + "args": 1, + "types": [ + "var" + ] + }, + { + "count": 4, + "args": 2, + "types": [ + "var", + "kwarg" + ] + } + ] + }, + "HeroPublic": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "HeroUpdate": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "HeroCreate": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "HeroBase": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "var" + ] + } + ] + } + } + }, + { + "label": "docs_src/stream_data", + "method_count": 14, + "algorithm": "CRX", + "grammar": "root ::= \"read_image\"?+ (\"chunk\" | \"for\" | \"image_file\" | \"in\" | \"line\" | \"message\" | \"splitlines\" | \"yield\")?+ \"encode\"?+", + "mdl_score": 1320, + "imports": [ + "from collections.abc import AsyncIterable, Iterable", + "from fastapi import FastAPI", + "from fastapi.responses import StreamingResponse", + "import base64", + "from io import BytesIO" + ], + "arg_patterns": { + "read_image": { + "occurrences": 15, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 15, + "args": 0, + "types": [] + } + ] + }, + "PNGStreamingResponse": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "FastAPI": { + "occurrences": 6, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 6, + "args": 0, + "types": [] + } + ] + }, + "BytesIO": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "class": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + } + } + }, + { + "label": "docs_src/stream_json_lines", + "method_count": 4, + "algorithm": "CRX", + "grammar": "root ::= \"for\"? (\"in\" | \"item\" | \"items\" | \"yield\")?+", + "mdl_score": 1168, + "imports": [ + "from collections.abc import AsyncIterable, Iterable", + "from fastapi import FastAPI", + "from pydantic import BaseModel" + ], + "arg_patterns": { + "Item": { + "occurrences": 10, + "arg_count": { + "min": 1, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 9, + "args": 2, + "types": [ + "kwarg", + "kwarg" + ] + }, + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "FastAPI": { + "occurrences": 3, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 3, + "args": 0, + "types": [] + } + ] + }, + "class": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + } + } + }, + { + "label": "docs_src/websockets_", + "method_count": 15, + "algorithm": "CRX", + "grammar": "root ::= \"while\"? \"return\"? \"data\"? \"HTMLResponse\"?+ (\"await\" | \"receive_text\" | \"websocket\")?+ \"html\"? (\"accept\" | \"send_text\")?+", + "mdl_score": 678, + "imports": [ + "from fastapi import FastAPI, WebSocket", + "from fastapi.responses import HTMLResponse", + "from typing import Annotated", + "from fastapi import (", + "from fastapi import FastAPI, WebSocket, WebSocketDisconnect" + ], + "arg_patterns": { + "ConnectionManager": { + "occurrences": 3, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 3, + "args": 0, + "types": [] + } + ] + }, + "HTMLResponse": { + "occurrences": 12, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 12, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "FastAPI": { + "occurrences": 12, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 12, + "args": 0, + "types": [] + } + ] + }, + "Cookie": { + "occurrences": 6, + "arg_count": { + "min": 0, + "max": 1, + "common": 0 + }, + "patterns": [ + { + "count": 3, + "args": 0, + "types": [] + }, + { + "count": 3, + "args": 1, + "types": [ + "kwarg" + ] + } + ] + }, + "Query": { + "occurrences": 6, + "arg_count": { + "min": 0, + "max": 1, + "common": 0 + }, + "patterns": [ + { + "count": 3, + "args": 0, + "types": [] + }, + { + "count": 3, + "args": 1, + "types": [ + "kwarg" + ] + } + ] + }, + "WebSocketException": { + "occurrences": 6, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 6, + "args": 1, + "types": [ + "kwarg" + ] + } + ] + }, + "Depends": { + "occurrences": 6, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 6, + "args": 1, + "types": [ + "var" + ] + } + ] + } + } + }, + { + "label": "fastapi", + "method_count": 239, + "imports": [ + "import os", + "from collections.abc import Awaitable, Callable, Coroutine, Sequence", + "from enum import Enum", + "from typing import Annotated, Any, Literal, TypeVar", + "from annotated_doc import Doc", + "from fastapi import routing", + "from fastapi.datastructures import Default, DefaultPlaceholder", + "from fastapi.exception_handlers import (", + "from fastapi.exceptions import RequestValidationError, WebSocketRequestValidationError", + "from fastapi.logger import logger", + "from fastapi.middleware.asyncexitstack import AsyncExitStackMiddleware", + "from fastapi.openapi.docs import (", + "from fastapi.openapi.utils import get_openapi", + "from fastapi.params import Depends", + "from fastapi.types import DecoratedCallable, IncEx", + "from fastapi.utils import generate_unique_id", + "from starlette.applications import Starlette", + "from starlette.datastructures import State", + "from starlette.exceptions import HTTPException", + "from starlette.middleware import Middleware", + "from starlette.middleware.base import BaseHTTPMiddleware", + "from starlette.middleware.errors import ServerErrorMiddleware", + "from starlette.middleware.exceptions import ExceptionMiddleware", + "from starlette.requests import Request", + "from starlette.responses import HTMLResponse, JSONResponse, Response", + "from starlette.routing import BaseRoute", + "from starlette.types import ASGIApp, ExceptionHandler, Lifespan, Receive, Scope, Send", + "from typing_extensions import deprecated", + "from fastapi import FastAPI", + "from Starlette and supported for compatibility.", + "from collections.abc import Callable", + "from typing import Annotated, Any", + "from starlette.background import BackgroundTasks as StarletteBackgroundTasks", + "from typing_extensions import ParamSpec", + "from fastapi import BackgroundTasks, FastAPI", + "from fastapi_cli.cli import main as cli_main", + "from collections.abc import AsyncGenerator", + "from contextlib import AbstractContextManager", + "from contextlib import asynccontextmanager as asynccontextmanager", + "from typing import TypeVar", + "import anyio.to_thread", + "from anyio import CapacityLimiter", + "from starlette.concurrency import iterate_in_threadpool as iterate_in_threadpool # noqa", + "from starlette.concurrency import run_in_threadpool as run_in_threadpool # noqa", + "from starlette.concurrency import ( # noqa", + "from collections.abc import Callable, Mapping", + "from typing import (", + "from pydantic import GetJsonSchemaHandler", + "from starlette.datastructures import URL as URL # noqa: F401", + "from starlette.datastructures import Address as Address # noqa: F401", + "from starlette.datastructures import FormData as FormData # noqa: F401", + "from starlette.datastructures import Headers as Headers # noqa: F401", + "from starlette.datastructures import QueryParams as QueryParams # noqa: F401", + "from starlette.datastructures import State as State # noqa: F401", + "from starlette.datastructures import UploadFile as StarletteUploadFile", + "from typing import Annotated", + "from fastapi import FastAPI, File, UploadFile", + "from ._compat.v2 import with_info_plain_validator_function", + "import dataclasses", + "import datetime", + "from collections import defaultdict, deque", + "from decimal import Decimal", + "from ipaddress import (", + "from pathlib import Path, PurePath", + "from re import Pattern", + "from types import GeneratorType", + "from uuid import UUID", + "from fastapi.exceptions import PydanticV1NotSupportedError", + "from fastapi.types import IncEx", + "from pydantic import BaseModel", + "from pydantic.networks import AnyUrl, NameEmail", + "from pydantic.types import SecretBytes, SecretStr", + "from pydantic_core import PydanticUndefinedType", + "from ._compat import (", + "from pydantic.color import Color # ty: ignore[deprecated]", + "from pydantic_extra_types.color import Color as PyExtraColor", + "from fastapi.encoders import jsonable_encoder", + "from fastapi.utils import is_body_allowed_for_status_code", + "from fastapi.websockets import WebSocket", + "from starlette.responses import JSONResponse, Response", + "from starlette.status import WS_1008_POLICY_VIOLATION", + "from collections.abc import Mapping, Sequence", + "from typing import Annotated, Any, TypedDict", + "from pydantic import BaseModel, create_model", + "from starlette.exceptions import HTTPException as StarletteHTTPException", + "from starlette.exceptions import WebSocketException as StarletteWebSocketException", + "from fastapi import FastAPI, HTTPException", + "from fastapi import (", + "from contextlib import AsyncExitStack", + "from starlette.types import ASGIApp, Receive, Scope, Send", + "from collections.abc import Callable, Sequence", + "from typing import Annotated, Any, Literal", + "from fastapi import params", + "from fastapi._compat import Undefined", + "from fastapi.datastructures import _Unset", + "from fastapi.openapi.models import Example", + "from pydantic import AliasChoices, AliasPath", + "import warnings", + "from dataclasses import dataclass", + "from fastapi.exceptions import FastAPIDeprecationWarning", + "from pydantic.fields import FieldInfo", + "from .datastructures import _Unset", + "import importlib", + "from typing import Any, Protocol, cast", + "from fastapi.sse import EventSourceResponse as EventSourceResponse # noqa", + "from starlette.responses import FileResponse as FileResponse # noqa", + "from starlette.responses import HTMLResponse as HTMLResponse # noqa", + "from starlette.responses import JSONResponse as JSONResponse # noqa", + "from starlette.responses import PlainTextResponse as PlainTextResponse # noqa", + "from starlette.responses import RedirectResponse as RedirectResponse # noqa", + "from starlette.responses import Response as Response # noqa", + "from starlette.responses import StreamingResponse as StreamingResponse # noqa", + "import contextlib", + "import copy", + "import email.message", + "import errno", + "import functools", + "import inspect", + "import json", + "import stat", + "import types", + "from collections.abc import (", + "from contextlib import (", + "from contextvars import ContextVar", + "from dataclasses import dataclass, field", + "from enum import Enum, IntEnum", + "import anyio", + "from anyio.abc import ObjectReceiveStream", + "from fastapi._compat import (", + "from fastapi.dependencies.models import Dependant", + "from fastapi.dependencies.utils import (", + "from fastapi.exceptions import (", + "from fastapi.sse import (", + "from fastapi.utils import (", + "from starlette import routing", + "from starlette._exception_handler import wrap_app_handling_exceptions", + "from starlette._utils import get_route_path, is_async_callable", + "from starlette.concurrency import iterate_in_threadpool, run_in_threadpool", + "from starlette.datastructures import URL, FormData, URLPath", + "from starlette.responses import (", + "from starlette.routing import (", + "from starlette.routing import Mount as Mount # noqa", + "from starlette.staticfiles import StaticFiles", + "from starlette.types import AppType, ASGIApp, Lifespan, Receive, Scope, Send", + "from starlette.websockets import WebSocket", + "from pydantic import AfterValidator, BaseModel, Field, model_validator", + "from starlette.responses import StreamingResponse", + "import re", + "import fastapi", + "from fastapi.datastructures import DefaultPlaceholder, DefaultType", + "from fastapi.exceptions import FastAPIDeprecationWarning, PydanticV1NotSupportedError", + "from ._compat import v2", + "from .routing import APIRoute" + ], + "arg_patterns": { + "set": { + "occurrences": 50, + "arg_count": { + "min": 0, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 20, + "args": 1, + "types": [ + "call" + ] + }, + { + "count": 20, + "args": 1, + "types": [ + "var" + ] + }, + { + "count": 10, + "args": 0, + "types": [] + } + ] + }, + "PydanticV1NotSupportedError": { + "occurrences": 7, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 6, + "args": 1, + "types": [ + "other" + ] + }, + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "isinstance": { + "occurrences": 288, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 224, + "args": 2, + "types": [ + "var", + "var" + ] + }, + { + "count": 32, + "args": 2, + "types": [ + "var", + "other" + ] + }, + { + "count": 16, + "args": 2, + "types": [ + "other", + "var" + ] + }, + { + "count": 12, + "args": 2, + "types": [ + "subscript", + "var" + ] + }, + { + "count": 4, + "args": 2, + "types": [ + "other", + "other" + ] + } + ] + }, + "int": { + "occurrences": 15, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 15, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "deep_dict_update": { + "occurrences": 3, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 3, + "args": 2, + "types": [ + "subscript", + "var" + ] + } + ] + }, + "annotation_is_pydantic_v1": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "FieldInfo": { + "occurrences": 3, + "arg_count": { + "min": 3, + "max": 3, + "common": 3 + }, + "patterns": [ + { + "count": 3, + "args": 3, + "types": [ + "kwarg", + "kwarg", + "kwarg" + ] + } + ] + }, + "list": { + "occurrences": 45, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 25, + "args": 1, + "types": [ + "expr" + ] + }, + { + "count": 15, + "args": 1, + "types": [ + "var" + ] + }, + { + "count": 5, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "_check_single_line": { + "occurrences": 6, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 6, + "args": 2, + "types": [ + "var", + "lit" + ] + } + ] + }, + "AfterValidator": { + "occurrences": 6, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 6, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "ValueError": { + "occurrences": 20, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 12, + "args": 1, + "types": [ + "lit" + ] + }, + { + "count": 4, + "args": 1, + "types": [ + "other" + ] + }, + { + "count": 4, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "model_validator": { + "occurrences": 4, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 4, + "args": 1, + "types": [ + "kwarg" + ] + } + ] + }, + "Doc": { + "occurrences": 2121, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2121, + "args": 1, + "types": [ + "lit" + ] + } + ] + }, + "ServerSentEvent": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "EventSourceResponse": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "Field": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "kwarg" + ] + } + ] + }, + "class": { + "occurrences": 40, + "arg_count": { + "min": 1, + "max": 2, + "common": 1 + }, + "patterns": [ + { + "count": 35, + "args": 1, + "types": [ + "var" + ] + }, + { + "count": 3, + "args": 1, + "types": [ + "other" + ] + }, + { + "count": 1, + "args": 1, + "types": [ + "subscript" + ] + }, + { + "count": 1, + "args": 2, + "types": [ + "var", + "kwarg" + ] + } + ] + }, + "Default": { + "occurrences": 267, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 177, + "args": 1, + "types": [ + "var" + ] + }, + { + "count": 90, + "args": 1, + "types": [ + "lit" + ] + } + ] + }, + "get_redoc_html": { + "occurrences": 3, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 3, + "args": 2, + "types": [ + "kwarg", + "kwarg" + ] + } + ] + }, + "State": { + "occurrences": 3, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 3, + "args": 0, + "types": [] + } + ] + }, + "deprecated": { + "occurrences": 136, + "arg_count": { + "min": 1, + "max": 3, + "common": 1 + }, + "patterns": [ + { + "count": 83, + "args": 1, + "types": [ + "lit" + ] + }, + { + "count": 45, + "args": 1, + "types": [ + "other" + ] + }, + { + "count": 8, + "args": 3, + "types": [ + "other", + "kwarg", + "kwarg" + ] + } + ] + }, + "Middleware": { + "occurrences": 9, + "arg_count": { + "min": 1, + "max": 3, + "common": 3 + }, + "patterns": [ + { + "count": 6, + "args": 3, + "types": [ + "var", + "kwarg", + "kwarg" + ] + }, + { + "count": 3, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "get_swagger_ui_oauth2_redirect_html": { + "occurrences": 3, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 3, + "args": 0, + "types": [] + } + ] + }, + "dict": { + "occurrences": 35, + "arg_count": { + "min": 1, + "max": 17, + "common": 1 + }, + "patterns": [ + { + "count": 20, + "args": 1, + "types": [ + "var" + ] + }, + { + "count": 10, + "args": 17, + "types": [ + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "other" + ] + }, + { + "count": 5, + "args": 1, + "types": [ + "call" + ] + } + ] + }, + "TypeVar": { + "occurrences": 12, + "arg_count": { + "min": 1, + "max": 2, + "common": 1 + }, + "patterns": [ + { + "count": 9, + "args": 1, + "types": [ + "lit" + ] + }, + { + "count": 3, + "args": 2, + "types": [ + "lit", + "kwarg" + ] + } + ] + }, + "cls": { + "occurrences": 12, + "arg_count": { + "min": 1, + "max": 12, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 3, + "types": [ + "var", + "other", + "other" + ] + }, + { + "count": 3, + "args": 4, + "types": [ + "kwarg", + "kwarg", + "kwarg", + "kwarg" + ] + }, + { + "count": 3, + "args": 12, + "types": [ + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg" + ] + }, + { + "count": 3, + "args": 1, + "types": [ + "kwarg" + ] + } + ] + }, + "super": { + "occurrences": 104, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 104, + "args": 0, + "types": [] + } + ] + }, + "get_openapi": { + "occurrences": 3, + "arg_count": { + "min": 14, + "max": 14, + "common": 14 + }, + "patterns": [ + { + "count": 3, + "args": 14, + "types": [ + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg" + ] + } + ] + }, + "reversed": { + "occurrences": 4, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 4, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "JSONResponse": { + "occurrences": 9, + "arg_count": { + "min": 1, + "max": 3, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "var" + ] + }, + { + "count": 3, + "args": 2, + "types": [ + "kwarg", + "kwarg" + ] + }, + { + "count": 3, + "args": 3, + "types": [ + "other", + "kwarg", + "kwarg" + ] + } + ] + }, + "FastAPI": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "get_swagger_ui_html": { + "occurrences": 3, + "arg_count": { + "min": 5, + "max": 5, + "common": 5 + }, + "patterns": [ + { + "count": 3, + "args": 5, + "types": [ + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg" + ] + } + ] + }, + "AsyncExitStack": { + "occurrences": 21, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 21, + "args": 0, + "types": [] + } + ] + }, + "Response": { + "occurrences": 6, + "arg_count": { + "min": 2, + "max": 3, + "common": 2 + }, + "patterns": [ + { + "count": 3, + "args": 2, + "types": [ + "kwarg", + "kwarg" + ] + }, + { + "count": 3, + "args": 3, + "types": [ + "kwarg", + "kwarg", + "other" + ] + } + ] + }, + "is_body_allowed_for_status_code": { + "occurrences": 12, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 6, + "args": 1, + "types": [ + "other" + ] + }, + { + "count": 6, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "jsonable_encoder": { + "occurrences": 33, + "arg_count": { + "min": 1, + "max": 9, + "common": 1 + }, + "patterns": [ + { + "count": 9, + "args": 9, + "types": [ + "var", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg" + ] + }, + { + "count": 6, + "args": 1, + "types": [ + "call" + ] + }, + { + "count": 6, + "args": 1, + "types": [ + "var" + ] + }, + { + "count": 6, + "args": 6, + "types": [ + "var", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg" + ] + }, + { + "count": 3, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "getattr": { + "occurrences": 48, + "arg_count": { + "min": 2, + "max": 3, + "common": 3 + }, + "patterns": [ + { + "count": 28, + "args": 3, + "types": [ + "other", + "lit", + "lit" + ] + }, + { + "count": 16, + "args": 3, + "types": [ + "var", + "lit", + "lit" + ] + }, + { + "count": 4, + "args": 2, + "types": [ + "other", + "var" + ] + } + ] + }, + "actual_response_class": { + "occurrences": 6, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 3, + "args": 2, + "types": [ + "var", + "other" + ] + }, + { + "count": 3, + "args": 2, + "types": [ + "kwarg", + "other" + ] + } + ] + }, + "field": { + "occurrences": 57, + "arg_count": { + "min": 1, + "max": 2, + "common": 1 + }, + "patterns": [ + { + "count": 54, + "args": 1, + "types": [ + "kwarg" + ] + }, + { + "count": 3, + "args": 2, + "types": [ + "kwarg", + "kwarg" + ] + } + ] + }, + "_FrontendRoute": { + "occurrences": 4, + "arg_count": { + "min": 1, + "max": 4, + "common": 4 + }, + "patterns": [ + { + "count": 3, + "args": 4, + "types": [ + "var", + "kwarg", + "kwarg", + "kwarg" + ] + }, + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "EndpointContext": { + "occurrences": 16, + "arg_count": { + "min": 0, + "max": 2, + "common": 0 + }, + "patterns": [ + { + "count": 15, + "args": 0, + "types": [] + }, + { + "count": 1, + "args": 2, + "types": [ + "var", + "kwarg" + ] + } + ] + }, + "asynccontextmanager": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "format_sse_event": { + "occurrences": 6, + "arg_count": { + "min": 1, + "max": 5, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "kwarg" + ] + }, + { + "count": 3, + "args": 5, + "types": [ + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg" + ] + } + ] + }, + "PlainTextResponse": { + "occurrences": 3, + "arg_count": { + "min": 3, + "max": 3, + "common": 3 + }, + "patterns": [ + { + "count": 3, + "args": 3, + "types": [ + "lit", + "kwarg", + "kwarg" + ] + } + ] + }, + "_serialize_item": { + "occurrences": 6, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 6, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "_get_fastapi_scope": { + "occurrences": 24, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 24, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "APIWebSocketRoute": { + "occurrences": 7, + "arg_count": { + "min": 1, + "max": 5, + "common": 5 + }, + "patterns": [ + { + "count": 3, + "args": 5, + "types": [ + "call", + "kwarg", + "kwarg", + "kwarg", + "kwarg" + ] + }, + { + "count": 3, + "args": 5, + "types": [ + "expr", + "kwarg", + "kwarg", + "kwarg", + "kwarg" + ] + }, + { + "count": 1, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "_frontend_path_specificity": { + "occurrences": 6, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 6, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "_async_stream_raw": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "_serialize_data": { + "occurrences": 6, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 6, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "response": { + "occurrences": 9, + "arg_count": { + "min": 3, + "max": 3, + "common": 3 + }, + "patterns": [ + { + "count": 9, + "args": 3, + "types": [ + "var", + "var", + "var" + ] + } + ] + }, + "ResponseValidationError": { + "occurrences": 7, + "arg_count": { + "min": 1, + "max": 3, + "common": 3 + }, + "patterns": [ + { + "count": 6, + "args": 3, + "types": [ + "kwarg", + "kwarg", + "kwarg" + ] + }, + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "_sync_stream_jsonl": { + "occurrences": 3, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 3, + "args": 0, + "types": [] + } + ] + }, + "_wrap_gen_lifespan_context": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "id": { + "occurrences": 12, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 12, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "cast": { + "occurrences": 27, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 18, + "args": 2, + "types": [ + "var", + "var" + ] + }, + { + "count": 6, + "args": 2, + "types": [ + "var", + "call" + ] + }, + { + "count": 3, + "args": 2, + "types": [ + "expr", + "var" + ] + } + ] + }, + "_populate_api_route_state": { + "occurrences": 6, + "arg_count": { + "min": 28, + "max": 28, + "common": 28 + }, + "patterns": [ + { + "count": 3, + "args": 28, + "types": [ + "call", + "var", + "var", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg" + ] + }, + { + "count": 3, + "args": 28, + "types": [ + "call", + "call", + "other", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg" + ] + } + ] + }, + "_frontend_scope_specificity": { + "occurrences": 6, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 6, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "_IncludedRouter": { + "occurrences": 10, + "arg_count": { + "min": 1, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 9, + "args": 2, + "types": [ + "kwarg", + "kwarg" + ] + }, + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "_FrontendStaticFiles": { + "occurrences": 4, + "arg_count": { + "min": 1, + "max": 3, + "common": 3 + }, + "patterns": [ + { + "count": 3, + "args": 3, + "types": [ + "kwarg", + "kwarg", + "kwarg" + ] + }, + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "RequestValidationError": { + "occurrences": 10, + "arg_count": { + "min": 1, + "max": 3, + "common": 3 + }, + "patterns": [ + { + "count": 3, + "args": 3, + "types": [ + "other", + "kwarg", + "kwarg" + ] + }, + { + "count": 3, + "args": 1, + "types": [ + "other" + ] + }, + { + "count": 3, + "args": 3, + "types": [ + "var", + "kwarg", + "kwarg" + ] + }, + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "_async_stream_jsonl": { + "occurrences": 3, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 3, + "args": 0, + "types": [] + } + ] + }, + "_DefaultLifespan": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "get_websocket_app": { + "occurrences": 3, + "arg_count": { + "min": 3, + "max": 3, + "common": 3 + }, + "patterns": [ + { + "count": 3, + "args": 3, + "types": [ + "kwarg", + "kwarg", + "kwarg" + ] + } + ] + }, + "handler": { + "occurrences": 12, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 12, + "args": 0, + "types": [] + } + ] + }, + "websocket_session": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "call" + ] + } + ] + }, + "_RouterIncludeContext": { + "occurrences": 3, + "arg_count": { + "min": 12, + "max": 12, + "common": 12 + }, + "patterns": [ + { + "count": 3, + "args": 12, + "types": [ + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg" + ] + } + ] + }, + "HTTPException": { + "occurrences": 28, + "arg_count": { + "min": 1, + "max": 2, + "common": 1 + }, + "patterns": [ + { + "count": 21, + "args": 1, + "types": [ + "kwarg" + ] + }, + { + "count": 6, + "args": 2, + "types": [ + "kwarg", + "kwarg" + ] + }, + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "_restore_fastapi_scope_key": { + "occurrences": 9, + "arg_count": { + "min": 3, + "max": 3, + "common": 3 + }, + "patterns": [ + { + "count": 9, + "args": 3, + "types": [ + "var", + "var", + "var" + ] + } + ] + }, + "run_in_threadpool": { + "occurrences": 15, + "arg_count": { + "min": 1, + "max": 4, + "common": 2 + }, + "patterns": [ + { + "count": 6, + "args": 2, + "types": [ + "other", + "var" + ] + }, + { + "count": 3, + "args": 4, + "types": [ + "other", + "var", + "other", + "kwarg" + ] + }, + { + "count": 3, + "args": 2, + "types": [ + "other", + "other" + ] + }, + { + "count": 3, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "_build_dependant_with_parameterless_dependencies": { + "occurrences": 12, + "arg_count": { + "min": 3, + "max": 3, + "common": 3 + }, + "patterns": [ + { + "count": 12, + "args": 3, + "types": [ + "kwarg", + "kwarg", + "kwarg" + ] + } + ] + }, + "compile_path": { + "occurrences": 9, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 6, + "args": 1, + "types": [ + "var" + ] + }, + { + "count": 3, + "args": 1, + "types": [ + "expr" + ] + } + ] + }, + "str": { + "occurrences": 10, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 10, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "solve_dependencies": { + "occurrences": 9, + "arg_count": { + "min": 5, + "max": 6, + "common": 5 + }, + "patterns": [ + { + "count": 6, + "args": 5, + "types": [ + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg" + ] + }, + { + "count": 3, + "args": 6, + "types": [ + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg" + ] + } + ] + }, + "get_route_path": { + "occurrences": 12, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 12, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "_get_scope_effective_route_context": { + "occurrences": 9, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 9, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "create_model_field": { + "occurrences": 9, + "arg_count": { + "min": 3, + "max": 3, + "common": 3 + }, + "patterns": [ + { + "count": 9, + "args": 3, + "types": [ + "kwarg", + "kwarg", + "kwarg" + ] + } + ] + }, + "URL": { + "occurrences": 6, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 6, + "args": 1, + "types": [ + "kwarg" + ] + } + ] + }, + "_iter_routes_with_context": { + "occurrences": 9, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 6, + "args": 1, + "types": [ + "other" + ] + }, + { + "count": 3, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "get_value_or_default": { + "occurrences": 33, + "arg_count": { + "min": 2, + "max": 3, + "common": 2 + }, + "patterns": [ + { + "count": 15, + "args": 2, + "types": [ + "var", + "other" + ] + }, + { + "count": 9, + "args": 2, + "types": [ + "other", + "other" + ] + }, + { + "count": 9, + "args": 3, + "types": [ + "other", + "other", + "other" + ] + } + ] + }, + "APIRouter": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "_EffectiveRouteContext": { + "occurrences": 15, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 15, + "args": 2, + "types": [ + "kwarg", + "kwarg" + ] + } + ] + }, + "get_name": { + "occurrences": 6, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 6, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "RedirectResponse": { + "occurrences": 6, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 6, + "args": 1, + "types": [ + "kwarg" + ] + } + ] + }, + "Request": { + "occurrences": 9, + "arg_count": { + "min": 1, + "max": 3, + "common": 3 + }, + "patterns": [ + { + "count": 6, + "args": 3, + "types": [ + "var", + "var", + "var" + ] + }, + { + "count": 3, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "_should_embed_body_fields": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "app": { + "occurrences": 3, + "arg_count": { + "min": 3, + "max": 3, + "common": 3 + }, + "patterns": [ + { + "count": 3, + "args": 3, + "types": [ + "var", + "var", + "var" + ] + } + ] + }, + "serialize_response": { + "occurrences": 3, + "arg_count": { + "min": 11, + "max": 11, + "common": 11 + }, + "patterns": [ + { + "count": 3, + "args": 11, + "types": [ + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg" + ] + } + ] + }, + "_serialize_sse_item": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "hasattr": { + "occurrences": 4, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 4, + "args": 2, + "types": [ + "other", + "lit" + ] + } + ] + }, + "APIRoute": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "_get_scope_included_router": { + "occurrences": 6, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 6, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "_build_response_args": { + "occurrences": 6, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 6, + "args": 2, + "types": [ + "kwarg", + "kwarg" + ] + } + ] + }, + "dataclass": { + "occurrences": 12, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 12, + "args": 1, + "types": [ + "kwarg" + ] + } + ] + }, + "request_response": { + "occurrences": 6, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 6, + "args": 1, + "types": [ + "call" + ] + } + ] + }, + "current_generate_unique_id": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "WebSocketRequestValidationError": { + "occurrences": 4, + "arg_count": { + "min": 1, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 3, + "args": 2, + "types": [ + "other", + "kwarg" + ] + }, + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "get_flat_dependant": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "f": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "URLPath": { + "occurrences": 3, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 3, + "args": 2, + "types": [ + "kwarg", + "kwarg" + ] + } + ] + }, + "_FrontendRouteGroup": { + "occurrences": 4, + "arg_count": { + "min": 1, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 3, + "args": 2, + "types": [ + "kwarg", + "kwarg" + ] + }, + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "is_async_callable": { + "occurrences": 9, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 9, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "func": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "float": { + "occurrences": 10, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 10, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "iterate_in_threadpool": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "get_parameterless_sub_dependant": { + "occurrences": 3, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 3, + "args": 2, + "types": [ + "kwarg", + "kwarg" + ] + } + ] + }, + "wrap_app_handling_exceptions": { + "occurrences": 6, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 6, + "args": 2, + "types": [ + "var", + "var" + ] + } + ] + }, + "_is_frontend_navigation_request": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "_iter_accept_media_types": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "call" + ] + } + ] + }, + "_update_scope": { + "occurrences": 6, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 6, + "args": 2, + "types": [ + "var", + "var" + ] + } + ] + }, + "get_dependant": { + "occurrences": 3, + "arg_count": { + "min": 3, + "max": 3, + "common": 3 + }, + "patterns": [ + { + "count": 3, + "args": 3, + "types": [ + "kwarg", + "kwarg", + "kwarg" + ] + } + ] + }, + "NoMatchFound": { + "occurrences": 6, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 6, + "args": 2, + "types": [ + "var", + "var" + ] + } + ] + }, + "lenient_issubclass": { + "occurrences": 15, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 15, + "args": 2, + "types": [ + "var", + "var" + ] + } + ] + }, + "_sse_with_checkpoints": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "nested_context": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "_normalize_frontend_path": { + "occurrences": 6, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 6, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "StreamingResponse": { + "occurrences": 6, + "arg_count": { + "min": 3, + "max": 3, + "common": 3 + }, + "patterns": [ + { + "count": 6, + "args": 3, + "types": [ + "var", + "kwarg", + "kwarg" + ] + } + ] + }, + "run_endpoint_function": { + "occurrences": 3, + "arg_count": { + "min": 3, + "max": 3, + "common": 3 + }, + "patterns": [ + { + "count": 3, + "args": 3, + "types": [ + "kwarg", + "kwarg", + "kwarg" + ] + } + ] + }, + "_merge_lifespan_context": { + "occurrences": 3, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 3, + "args": 2, + "types": [ + "other", + "other" + ] + } + ] + }, + "FastAPIError": { + "occurrences": 7, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "lit" + ] + }, + { + "count": 3, + "args": 1, + "types": [ + "other" + ] + }, + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "_AsyncLiftContextManager": { + "occurrences": 4, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "call" + ] + }, + { + "count": 1, + "args": 1, + "types": [ + "subscript" + ] + } + ] + }, + "_extract_endpoint_context": { + "occurrences": 6, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 6, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "RuntimeError": { + "occurrences": 16, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 12, + "args": 1, + "types": [ + "other" + ] + }, + { + "count": 4, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "_RouteWithPath": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "AssertionError": { + "occurrences": 12, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 12, + "args": 1, + "types": [ + "lit" + ] + } + ] + }, + "_APIRouteLike": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "original_context": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "ContextVar": { + "occurrences": 3, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 3, + "args": 2, + "types": [ + "lit", + "kwarg" + ] + } + ] + }, + "route_class": { + "occurrences": 3, + "arg_count": { + "min": 27, + "max": 27, + "common": 27 + }, + "patterns": [ + { + "count": 3, + "args": 27, + "types": [ + "expr", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg" + ] + } + ] + }, + "_join_frontend_paths": { + "occurrences": 6, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 3, + "args": 2, + "types": [ + "var", + "other" + ] + }, + { + "count": 3, + "args": 2, + "types": [ + "other", + "var" + ] + } + ] + }, + "WebSocket": { + "occurrences": 3, + "arg_count": { + "min": 3, + "max": 3, + "common": 3 + }, + "patterns": [ + { + "count": 3, + "args": 3, + "types": [ + "var", + "kwarg", + "kwarg" + ] + } + ] + }, + "object": { + "occurrences": 5, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 5, + "args": 0, + "types": [] + } + ] + }, + "cmgr": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "get_body_field": { + "occurrences": 3, + "arg_count": { + "min": 3, + "max": 3, + "common": 3 + }, + "patterns": [ + { + "count": 3, + "args": 3, + "types": [ + "kwarg", + "kwarg", + "kwarg" + ] + } + ] + }, + "len": { + "occurrences": 16, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 8, + "args": 1, + "types": [ + "var" + ] + }, + { + "count": 8, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "_sse_producer_cm": { + "occurrences": 3, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 3, + "args": 0, + "types": [] + } + ] + }, + "callable": { + "occurrences": 4, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 4, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "get_stream_item_type": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "RouteContext": { + "occurrences": 6, + "arg_count": { + "min": 1, + "max": 2, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 2, + "types": [ + "var", + "var" + ] + }, + { + "count": 3, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "serializer": { + "occurrences": 3, + "arg_count": { + "min": 7, + "max": 7, + "common": 7 + }, + "patterns": [ + { + "count": 3, + "args": 7, + "types": [ + "var", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg" + ] + } + ] + }, + "get_request_handler": { + "occurrences": 3, + "arg_count": { + "min": 16, + "max": 16, + "common": 16 + }, + "patterns": [ + { + "count": 3, + "args": 16, + "types": [ + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg" + ] + } + ] + }, + "get_typed_return_annotation": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "_get_resolved_absolute_path": { + "occurrences": 6, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "var" + ] + }, + { + "count": 3, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "type": { + "occurrences": 35, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 30, + "args": 1, + "types": [ + "var" + ] + }, + { + "count": 5, + "args": 1, + "types": [ + "lit" + ] + } + ] + }, + "is_pydantic_v1_model_instance": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "encoder": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "generate_encoders_by_class_tuples": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "defaultdict": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "vars": { + "occurrences": 4, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 4, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "encoder_instance": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "Security": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "Path": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "Header": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "ParamTypes": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "Cookie": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "Param": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "Form": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "Body": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "File": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "Query": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "UploadFile": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "with_info_plain_validator_function": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "bool": { + "occurrences": 10, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 10, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "DefaultPlaceholder": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "ValidationException": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "WebSocketException": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "DependencyScopeError": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "FastAPIDeprecationWarning": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "create_model": { + "occurrences": 6, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 6, + "args": 1, + "types": [ + "lit" + ] + } + ] + }, + "_UjsonModule": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "_OrjsonModule": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "ORJSONResponse": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "UJSONResponse": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "ParamSpec": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "lit" + ] + } + ] + }, + "BackgroundTasks": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "CapacityLimiter": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "lit" + ] + } + ] + }, + "print": { + "occurrences": 4, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 4, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "cli_main": { + "occurrences": 3, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 3, + "args": 0, + "types": [] + } + ] + } + } + }, + { + "label": "fastapi/_compat", + "method_count": 45, + "imports": [ + "import types", + "import typing", + "import warnings", + "from collections import deque", + "from collections.abc import Mapping, Sequence", + "from dataclasses import is_dataclass", + "from typing import (", + "from fastapi.types import UnionType", + "from pydantic import BaseModel", + "from pydantic.version import VERSION as PYDANTIC_VERSION", + "from starlette.datastructures import UploadFile", + "from pydantic import v1", + "import re", + "from collections.abc import Sequence", + "from copy import copy", + "from dataclasses import dataclass, is_dataclass", + "from enum import Enum", + "from functools import lru_cache", + "from fastapi._compat import lenient_issubclass, shared", + "from fastapi.openapi.constants import REF_TEMPLATE", + "from fastapi.types import IncEx, ModelNameMap, UnionType", + "from pydantic import BaseModel, ConfigDict, Field, TypeAdapter, create_model", + "from pydantic import PydanticSchemaGenerationError as PydanticSchemaGenerationError", + "from pydantic import PydanticUndefinedAnnotation as PydanticUndefinedAnnotation", + "from pydantic import ValidationError as ValidationError", + "from pydantic._internal import _typing_extra as _pydantic_typing_extra", + "from pydantic._internal._schema_generation_shared import ( # type: ignore[attr-defined]", + "from pydantic.fields import FieldInfo as FieldInfo", + "from pydantic.json_schema import GenerateJsonSchema as _GenerateJsonSchema", + "from pydantic.json_schema import JsonSchemaValue as JsonSchemaValue", + "from pydantic_core import CoreSchema as CoreSchema", + "from pydantic_core import PydanticUndefined", + "from pydantic_core import Url as Url", + "from pydantic_core.core_schema import (", + "from pydantic.warnings import UnsupportedFieldAttributeWarning" + ], + "arg_patterns": { + "int": { + "occurrences": 5, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 5, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "isinstance": { + "occurrences": 28, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 16, + "args": 2, + "types": [ + "var", + "var" + ] + }, + { + "count": 8, + "args": 2, + "types": [ + "var", + "other" + ] + }, + { + "count": 4, + "args": 2, + "types": [ + "other", + "other" + ] + } + ] + }, + "get_args": { + "occurrences": 45, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 42, + "args": 1, + "types": [ + "var" + ] + }, + { + "count": 3, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "hasattr": { + "occurrences": 8, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 8, + "args": 2, + "types": [ + "var", + "lit" + ] + } + ] + }, + "lenient_issubclass": { + "occurrences": 39, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 24, + "args": 2, + "types": [ + "var", + "var" + ] + }, + { + "count": 15, + "args": 2, + "types": [ + "var", + "other" + ] + } + ] + }, + "field_annotation_is_complex": { + "occurrences": 9, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 6, + "args": 1, + "types": [ + "var" + ] + }, + { + "count": 3, + "args": 1, + "types": [ + "subscript" + ] + } + ] + }, + "get_origin": { + "occurrences": 36, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 33, + "args": 1, + "types": [ + "var" + ] + }, + { + "count": 3, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "_annotation_is_sequence": { + "occurrences": 9, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 6, + "args": 1, + "types": [ + "var" + ] + }, + { + "count": 3, + "args": 1, + "types": [ + "call" + ] + } + ] + }, + "field_annotation_is_scalar": { + "occurrences": 6, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 6, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "all": { + "occurrences": 12, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 12, + "args": 2, + "types": [ + "call", + "other" + ] + } + ] + }, + "issubclass": { + "occurrences": 8, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 4, + "args": 2, + "types": [ + "var", + "var" + ] + }, + { + "count": 4, + "args": 2, + "types": [ + "var", + "other" + ] + } + ] + }, + "is_bytes_or_nonable_bytes_annotation": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "_annotation_is_complex": { + "occurrences": 6, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 6, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "field_annotation_is_sequence": { + "occurrences": 15, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 15, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "is_uploadfile_sequence_annotation": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "tuple": { + "occurrences": 10, + "arg_count": { + "min": 1, + "max": 2, + "common": 1 + }, + "patterns": [ + { + "count": 5, + "args": 1, + "types": [ + "call" + ] + }, + { + "count": 5, + "args": 2, + "types": [ + "call", + "other" + ] + } + ] + }, + "field_annotation_is_scalar_sequence": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "is_dataclass": { + "occurrences": 6, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 6, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "is_pydantic_v1_model_class": { + "occurrences": 6, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 6, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "is_bytes_sequence_annotation": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "any": { + "occurrences": 4, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 4, + "args": 2, + "types": [ + "call", + "other" + ] + } + ] + }, + "TypeVar": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "lit" + ] + } + ] + }, + "is_uploadfile_or_nonable_uploadfile_annotation": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "annotation_is_pydantic_v1": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "_has_computed_fields": { + "occurrences": 6, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 6, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "set": { + "occurrences": 15, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 15, + "args": 0, + "types": [] + } + ] + }, + "list": { + "occurrences": 10, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 10, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "get_flat_models_from_field": { + "occurrences": 3, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 3, + "args": 2, + "types": [ + "var", + "kwarg" + ] + } + ] + }, + "ModelField": { + "occurrences": 9, + "arg_count": { + "min": 3, + "max": 3, + "common": 3 + }, + "patterns": [ + { + "count": 9, + "args": 3, + "types": [ + "kwarg", + "kwarg", + "kwarg" + ] + } + ] + }, + "_regenerate_error_with_loc": { + "occurrences": 3, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 3, + "args": 2, + "types": [ + "kwarg", + "kwarg" + ] + } + ] + }, + "FieldInfo": { + "occurrences": 6, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 6, + "args": 1, + "types": [ + "kwarg" + ] + } + ] + }, + "normalize_name": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "getattr": { + "occurrences": 8, + "arg_count": { + "min": 3, + "max": 3, + "common": 3 + }, + "patterns": [ + { + "count": 4, + "args": 3, + "types": [ + "var", + "lit", + "lit" + ] + }, + { + "count": 4, + "args": 3, + "types": [ + "var", + "var", + "var" + ] + } + ] + }, + "cast": { + "occurrences": 9, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 6, + "args": 2, + "types": [ + "subscript", + "var" + ] + }, + { + "count": 3, + "args": 2, + "types": [ + "var", + "subscript" + ] + } + ] + }, + "GenerateJsonSchema": { + "occurrences": 4, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "kwarg" + ] + }, + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "create_model": { + "occurrences": 3, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 3, + "args": 2, + "types": [ + "var", + "other" + ] + } + ] + }, + "asdict": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "get_model_fields": { + "occurrences": 6, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 6, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "get_flat_models_from_annotation": { + "occurrences": 6, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 6, + "args": 2, + "types": [ + "var", + "kwarg" + ] + } + ] + }, + "type": { + "occurrences": 10, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 5, + "args": 1, + "types": [ + "var" + ] + }, + { + "count": 5, + "args": 1, + "types": [ + "lit" + ] + } + ] + }, + "get_flat_models_from_fields": { + "occurrences": 9, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 9, + "args": 2, + "types": [ + "var", + "kwarg" + ] + } + ] + }, + "get_flat_models_from_model": { + "occurrences": 6, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 6, + "args": 2, + "types": [ + "var", + "kwarg" + ] + } + ] + }, + "copy": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "TypeAdapter": { + "occurrences": 3, + "arg_count": { + "min": 3, + "max": 3, + "common": 3 + }, + "patterns": [ + { + "count": 3, + "args": 3, + "types": [ + "subscript", + "other", + "kwarg" + ] + } + ] + }, + "id": { + "occurrences": 4, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 4, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "try_eval_type": { + "occurrences": 3, + "arg_count": { + "min": 3, + "max": 3, + "common": 3 + }, + "patterns": [ + { + "count": 3, + "args": 3, + "types": [ + "var", + "var", + "var" + ] + } + ] + }, + "len": { + "occurrences": 4, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 4, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "Field": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "class": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + } + } + }, + { + "label": "fastapi/dependencies", + "method_count": 38, + "algorithm": "CRX", + "grammar": "root ::= (\"getattr\" | \"if\" | \"isinstance\")+", + "mdl_score": 165, + "imports": [ + "import inspect", + "import sys", + "from collections.abc import Callable", + "from dataclasses import dataclass, field", + "from functools import cached_property, partial", + "from typing import Any, Literal", + "from fastapi._compat import ModelField", + "from fastapi.security.base import SecurityBase", + "from fastapi.types import DependencyCacheKey", + "from inspect import iscoroutinefunction", + "from asyncio import iscoroutinefunction", + "import dataclasses", + "from collections.abc import (", + "from contextlib import AsyncExitStack, contextmanager", + "from copy import copy, deepcopy", + "from dataclasses import dataclass", + "from typing import (", + "from fastapi import params", + "from fastapi._compat import (", + "from fastapi.background import BackgroundTasks", + "from fastapi.concurrency import (", + "from fastapi.dependencies.models import Dependant", + "from fastapi.exceptions import DependencyScopeError", + "from fastapi.logger import logger", + "from fastapi.security.oauth2 import SecurityScopes", + "from fastapi.utils import create_model_field, get_path_param_names", + "from pydantic import BaseModel, Json", + "from pydantic.fields import FieldInfo", + "from starlette.background import BackgroundTasks as StarletteBackgroundTasks", + "from starlette.concurrency import run_in_threadpool", + "from starlette.datastructures import (", + "from starlette.requests import HTTPConnection, Request", + "from starlette.responses import Response", + "from starlette.websockets import WebSocket", + "from typing_inspection.typing_objects import is_typealiastype", + "from python_multipart import __version__", + "from multipart import ( # type: ignore[no-redef,import-untyped]", + "from multipart.multipart import ( # type: ignore[import-untyped]" + ], + "arg_patterns": { + "evaluate_forwardref": { + "occurrences": 3, + "arg_count": { + "min": 3, + "max": 3, + "common": 3 + }, + "patterns": [ + { + "count": 3, + "args": 3, + "types": [ + "var", + "var", + "var" + ] + } + ] + }, + "get_origin": { + "occurrences": 9, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 9, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "is_scalar_field": { + "occurrences": 6, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "kwarg" + ] + }, + { + "count": 3, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "get_validation_alias": { + "occurrences": 30, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 30, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "DependencyScopeError": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "isinstance": { + "occurrences": 164, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 76, + "args": 2, + "types": [ + "var", + "var" + ] + }, + { + "count": 60, + "args": 2, + "types": [ + "var", + "other" + ] + }, + { + "count": 28, + "args": 2, + "types": [ + "other", + "other" + ] + } + ] + }, + "create_model_field": { + "occurrences": 6, + "arg_count": { + "min": 4, + "max": 5, + "common": 4 + }, + "patterns": [ + { + "count": 3, + "args": 4, + "types": [ + "kwarg", + "kwarg", + "kwarg", + "kwarg" + ] + }, + { + "count": 3, + "args": 5, + "types": [ + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg" + ] + } + ] + }, + "lenient_issubclass": { + "occurrences": 39, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 21, + "args": 2, + "types": [ + "var", + "var" + ] + }, + { + "count": 15, + "args": 2, + "types": [ + "other", + "var" + ] + }, + { + "count": 3, + "args": 2, + "types": [ + "var", + "other" + ] + } + ] + }, + "_solve_generator": { + "occurrences": 3, + "arg_count": { + "min": 3, + "max": 3, + "common": 3 + }, + "patterns": [ + { + "count": 3, + "args": 3, + "types": [ + "kwarg", + "kwarg", + "kwarg" + ] + } + ] + }, + "asynccontextmanager": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "_validate_value_with_model_field": { + "occurrences": 12, + "arg_count": { + "min": 4, + "max": 4, + "common": 4 + }, + "patterns": [ + { + "count": 12, + "args": 4, + "types": [ + "kwarg", + "kwarg", + "kwarg", + "kwarg" + ] + } + ] + }, + "getattr": { + "occurrences": 68, + "arg_count": { + "min": 3, + "max": 3, + "common": 3 + }, + "patterns": [ + { + "count": 24, + "args": 3, + "types": [ + "call", + "lit", + "lit" + ] + }, + { + "count": 16, + "args": 3, + "types": [ + "var", + "lit", + "lit" + ] + }, + { + "count": 12, + "args": 3, + "types": [ + "var", + "lit", + "other" + ] + }, + { + "count": 12, + "args": 3, + "types": [ + "other", + "lit", + "lit" + ] + }, + { + "count": 4, + "args": 3, + "types": [ + "other", + "lit", + "var" + ] + } + ] + }, + "deepcopy": { + "occurrences": 6, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 6, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "any": { + "occurrences": 16, + "arg_count": { + "min": 2, + "max": 3, + "common": 2 + }, + "patterns": [ + { + "count": 8, + "args": 2, + "types": [ + "call", + "other" + ] + }, + { + "count": 4, + "args": 2, + "types": [ + "expr", + "other" + ] + }, + { + "count": 4, + "args": 3, + "types": [ + "lit", + "other", + "other" + ] + } + ] + }, + "SecurityScopes": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "kwarg" + ] + } + ] + }, + "field_annotation_is_scalar": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "kwarg" + ] + } + ] + }, + "get_args": { + "occurrences": 9, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 9, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "add_param_to_fields": { + "occurrences": 3, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 3, + "args": 2, + "types": [ + "kwarg", + "kwarg" + ] + } + ] + }, + "cast": { + "occurrences": 3, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 3, + "args": 2, + "types": [ + "subscript", + "other" + ] + } + ] + }, + "type": { + "occurrences": 10, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 5, + "args": 1, + "types": [ + "lit" + ] + }, + { + "count": 5, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "len": { + "occurrences": 32, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 28, + "args": 1, + "types": [ + "var" + ] + }, + { + "count": 4, + "args": 1, + "types": [ + "call" + ] + } + ] + }, + "BackgroundTasks": { + "occurrences": 3, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 3, + "args": 0, + "types": [] + } + ] + }, + "get_flat_dependant": { + "occurrences": 6, + "arg_count": { + "min": 2, + "max": 4, + "common": 2 + }, + "patterns": [ + { + "count": 3, + "args": 2, + "types": [ + "var", + "kwarg" + ] + }, + { + "count": 3, + "args": 4, + "types": [ + "var", + "kwarg", + "kwarg", + "kwarg" + ] + } + ] + }, + "is_bytes_or_nonable_bytes_annotation": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "contextmanager_in_threadpool": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "call" + ] + } + ] + }, + "is_uploadfile_sequence_annotation": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "request_params_to_args": { + "occurrences": 12, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 12, + "args": 2, + "types": [ + "other", + "other" + ] + } + ] + }, + "get_dependant": { + "occurrences": 9, + "arg_count": { + "min": 4, + "max": 7, + "common": 4 + }, + "patterns": [ + { + "count": 3, + "args": 5, + "types": [ + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg" + ] + }, + { + "count": 3, + "args": 7, + "types": [ + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg" + ] + }, + { + "count": 3, + "args": 4, + "types": [ + "kwarg", + "kwarg", + "kwarg", + "kwarg" + ] + } + ] + }, + "callable": { + "occurrences": 4, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 4, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "Dependant": { + "occurrences": 6, + "arg_count": { + "min": 7, + "max": 18, + "common": 18 + }, + "patterns": [ + { + "count": 3, + "args": 18, + "types": [ + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg" + ] + }, + { + "count": 3, + "args": 7, + "types": [ + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg" + ] + } + ] + }, + "_is_json_field": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "call": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "contextmanager": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "get_missing_field_error": { + "occurrences": 6, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "var" + ] + }, + { + "count": 3, + "args": 1, + "types": [ + "kwarg" + ] + } + ] + }, + "_get_signature": { + "occurrences": 6, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 6, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "get_typed_annotation": { + "occurrences": 6, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 3, + "args": 2, + "types": [ + "var", + "var" + ] + }, + { + "count": 3, + "args": 2, + "types": [ + "other", + "var" + ] + } + ] + }, + "add_non_field_param_to_dependency": { + "occurrences": 3, + "arg_count": { + "min": 3, + "max": 3, + "common": 3 + }, + "patterns": [ + { + "count": 3, + "args": 3, + "types": [ + "kwarg", + "kwarg", + "kwarg" + ] + } + ] + }, + "copy": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "_get_flat_fields_from_params": { + "occurrences": 12, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 12, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "get_path_param_names": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "field_annotation_is_scalar_sequence": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "field_annotation_is_sequence": { + "occurrences": 6, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 6, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "serialize_sequence_value": { + "occurrences": 3, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 3, + "args": 2, + "types": [ + "kwarg", + "kwarg" + ] + } + ] + }, + "_get_multidict_value": { + "occurrences": 9, + "arg_count": { + "min": 2, + "max": 3, + "common": 2 + }, + "patterns": [ + { + "count": 6, + "args": 2, + "types": [ + "var", + "var" + ] + }, + { + "count": 3, + "args": 3, + "types": [ + "var", + "var", + "kwarg" + ] + } + ] + }, + "_extract_form_body": { + "occurrences": 3, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 3, + "args": 2, + "types": [ + "var", + "var" + ] + } + ] + }, + "get_typed_signature": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "set": { + "occurrences": 15, + "arg_count": { + "min": 0, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 5, + "args": 0, + "types": [] + }, + { + "count": 5, + "args": 1, + "types": [ + "var" + ] + }, + { + "count": 5, + "args": 1, + "types": [ + "expr" + ] + } + ] + }, + "is_typealiastype": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "run_in_threadpool": { + "occurrences": 3, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 3, + "args": 2, + "types": [ + "var", + "other" + ] + } + ] + }, + "list": { + "occurrences": 5, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 5, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "Response": { + "occurrences": 3, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 3, + "args": 0, + "types": [] + } + ] + }, + "solve_dependencies": { + "occurrences": 3, + "arg_count": { + "min": 9, + "max": 9, + "common": 9 + }, + "patterns": [ + { + "count": 3, + "args": 9, + "types": [ + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg" + ] + } + ] + }, + "copy_field_info": { + "occurrences": 3, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 3, + "args": 2, + "types": [ + "kwarg", + "kwarg" + ] + } + ] + }, + "RuntimeError": { + "occurrences": 8, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 8, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "is_union_of_base_models": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "is_bytes_sequence_annotation": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "BodyFieldInfo": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "get_cached_model_fields": { + "occurrences": 9, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 9, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "create_body_model": { + "occurrences": 3, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 3, + "args": 2, + "types": [ + "kwarg", + "kwarg" + ] + } + ] + }, + "SolvedDependency": { + "occurrences": 3, + "arg_count": { + "min": 5, + "max": 5, + "common": 5 + }, + "patterns": [ + { + "count": 3, + "args": 5, + "types": [ + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg" + ] + } + ] + }, + "ParamDetails": { + "occurrences": 3, + "arg_count": { + "min": 3, + "max": 3, + "common": 3 + }, + "patterns": [ + { + "count": 3, + "args": 3, + "types": [ + "kwarg", + "kwarg", + "kwarg" + ] + } + ] + }, + "is_uploadfile_or_nonable_uploadfile_annotation": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "ensure_multipart_is_installed": { + "occurrences": 3, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 3, + "args": 0, + "types": [] + } + ] + }, + "ForwardRef": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "value_is_sequence": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "request_body_to_args": { + "occurrences": 3, + "arg_count": { + "min": 4, + "max": 4, + "common": 4 + }, + "patterns": [ + { + "count": 3, + "args": 4, + "types": [ + "other", + "kwarg", + "kwarg", + "kwarg" + ] + } + ] + }, + "analyze_param": { + "occurrences": 3, + "arg_count": { + "min": 4, + "max": 4, + "common": 4 + }, + "patterns": [ + { + "count": 3, + "args": 4, + "types": [ + "kwarg", + "kwarg", + "kwarg", + "kwarg" + ] + } + ] + }, + "_unwrapped_call": { + "occurrences": 54, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 36, + "args": 1, + "types": [ + "other" + ] + }, + { + "count": 18, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "_impartial": { + "occurrences": 42, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 21, + "args": 1, + "types": [ + "other" + ] + }, + { + "count": 21, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "iscoroutinefunction": { + "occurrences": 18, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 18, + "args": 1, + "types": [ + "call" + ] + } + ] + }, + "field": { + "occurrences": 18, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 18, + "args": 1, + "types": [ + "kwarg" + ] + } + ] + }, + "tuple": { + "occurrences": 5, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 5, + "args": 1, + "types": [ + "call" + ] + } + ] + }, + "sorted": { + "occurrences": 4, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 4, + "args": 1, + "types": [ + "call" + ] + } + ] + } + } + }, + { + "label": "fastapi/openapi", + "method_count": 19, + "imports": [ + "import json", + "from typing import Annotated, Any", + "from annotated_doc import Doc", + "from fastapi.encoders import jsonable_encoder", + "from starlette.responses import HTMLResponse", + "from collections.abc import Callable, Iterable, Mapping", + "from enum import Enum", + "from typing import Annotated, Any, Literal, Optional, Union", + "from fastapi._compat import with_info_plain_validator_function", + "from fastapi.logger import logger", + "from pydantic import (", + "from typing_extensions import TypedDict", + "from typing_extensions import deprecated as typing_deprecated", + "import email_validator", + "from pydantic import EmailStr", + "import copy", + "import http.client", + "import inspect", + "import warnings", + "from collections.abc import Sequence", + "from typing import Any, Literal, cast", + "from fastapi import routing", + "from fastapi._compat import (", + "from fastapi.datastructures import DefaultPlaceholder, _Unset", + "from fastapi.dependencies.models import Dependant", + "from fastapi.dependencies.utils import (", + "from fastapi.exceptions import FastAPIDeprecationWarning", + "from fastapi.openapi.constants import METHODS_WITH_BODY, REF_PREFIX", + "from fastapi.openapi.models import OpenAPI", + "from fastapi.params import Body, ParamTypes", + "from fastapi.responses import Response", + "from fastapi.sse import _SSE_EVENT_SCHEMA", + "from fastapi.types import ModelNameMap", + "from fastapi.utils import (", + "from pydantic import BaseModel", + "from starlette.responses import JSONResponse", + "from starlette.routing import BaseRoute" + ], + "arg_patterns": { + "str": { + "occurrences": 30, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 20, + "args": 1, + "types": [ + "var" + ] + }, + { + "count": 10, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "Field": { + "occurrences": 99, + "arg_count": { + "min": 1, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 84, + "args": 2, + "types": [ + "kwarg", + "kwarg" + ] + }, + { + "count": 15, + "args": 1, + "types": [ + "kwarg" + ] + } + ] + }, + "ServerVariable": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "Server": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "SecuritySchemeType": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "OAuthFlowImplicit": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "BaseModelWithConfig": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "Link": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "PathItem": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "OAuthFlow": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "OAuth2": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "Tag": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "Contact": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "XML": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "HTTPBase": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "ParameterInType": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "HTTPBearer": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "OpenIdConnect": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "License": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "ExternalDocumentation": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "Example": { + "occurrences": 1, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 1, + "args": 2, + "types": [ + "var", + "kwarg" + ] + } + ] + }, + "with_info_plain_validator_function": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "Info": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "Header": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "RequestBody": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "OAuthFlows": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "MediaType": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "APIKey": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "Components": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "Schema": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "Encoding": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "ParameterBase": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "OAuthFlowClientCredentials": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "Reference": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "Operation": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "OAuthFlowPassword": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "EmailStr": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "Parameter": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "APIKeyIn": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "Discriminator": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "Response": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "SecurityBase": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "OAuthFlowAuthorizationCode": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "OpenAPI": { + "occurrences": 4, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "other" + ] + }, + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "typing_deprecated": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "class": { + "occurrences": 41, + "arg_count": { + "min": 1, + "max": 2, + "common": 1 + }, + "patterns": [ + { + "count": 40, + "args": 1, + "types": [ + "var" + ] + }, + { + "count": 1, + "args": 2, + "types": [ + "var", + "kwarg" + ] + } + ] + }, + "_get_flat_fields_from_params": { + "occurrences": 12, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 12, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "getattr": { + "occurrences": 32, + "arg_count": { + "min": 3, + "max": 3, + "common": 3 + }, + "patterns": [ + { + "count": 16, + "args": 3, + "types": [ + "var", + "lit", + "lit" + ] + }, + { + "count": 8, + "args": 3, + "types": [ + "other", + "lit", + "lit" + ] + }, + { + "count": 4, + "args": 3, + "types": [ + "other", + "lit", + "other" + ] + }, + { + "count": 4, + "args": 3, + "types": [ + "other", + "lit", + "var" + ] + } + ] + }, + "get_schema_from_model_field": { + "occurrences": 18, + "arg_count": { + "min": 4, + "max": 4, + "common": 4 + }, + "patterns": [ + { + "count": 18, + "args": 4, + "types": [ + "kwarg", + "kwarg", + "kwarg", + "kwarg" + ] + } + ] + }, + "jsonable_encoder": { + "occurrences": 24, + "arg_count": { + "min": 1, + "max": 3, + "common": 1 + }, + "patterns": [ + { + "count": 12, + "args": 1, + "types": [ + "var" + ] + }, + { + "count": 6, + "args": 1, + "types": [ + "other" + ] + }, + { + "count": 3, + "args": 3, + "types": [ + "other", + "kwarg", + "kwarg" + ] + }, + { + "count": 3, + "args": 3, + "types": [ + "call", + "kwarg", + "kwarg" + ] + } + ] + }, + "cast": { + "occurrences": 9, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 6, + "args": 2, + "types": [ + "other", + "var" + ] + }, + { + "count": 3, + "args": 2, + "types": [ + "var", + "other" + ] + } + ] + }, + "get_validation_alias": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "get_openapi_path": { + "occurrences": 9, + "arg_count": { + "min": 5, + "max": 5, + "common": 5 + }, + "patterns": [ + { + "count": 9, + "args": 5, + "types": [ + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg" + ] + } + ] + }, + "isinstance": { + "occurrences": 28, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 12, + "args": 2, + "types": [ + "other", + "var" + ] + }, + { + "count": 8, + "args": 2, + "types": [ + "var", + "var" + ] + }, + { + "count": 4, + "args": 2, + "types": [ + "other", + "other" + ] + }, + { + "count": 4, + "args": 2, + "types": [ + "var", + "other" + ] + } + ] + }, + "generate_operation_summary": { + "occurrences": 3, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 3, + "args": 2, + "types": [ + "kwarg", + "kwarg" + ] + } + ] + }, + "get_openapi_security_definitions": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "kwarg" + ] + } + ] + }, + "generate_operation_id_for_path": { + "occurrences": 3, + "arg_count": { + "min": 3, + "max": 3, + "common": 3 + }, + "patterns": [ + { + "count": 3, + "args": 3, + "types": [ + "kwarg", + "kwarg", + "kwarg" + ] + } + ] + }, + "get_openapi_operation_metadata": { + "occurrences": 3, + "arg_count": { + "min": 3, + "max": 3, + "common": 3 + }, + "patterns": [ + { + "count": 3, + "args": 3, + "types": [ + "kwarg", + "kwarg", + "kwarg" + ] + } + ] + }, + "lenient_issubclass": { + "occurrences": 6, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 3, + "args": 2, + "types": [ + "var", + "var" + ] + }, + { + "count": 3, + "args": 2, + "types": [ + "other", + "var" + ] + } + ] + }, + "get_definitions": { + "occurrences": 3, + "arg_count": { + "min": 3, + "max": 3, + "common": 3 + }, + "patterns": [ + { + "count": 3, + "args": 3, + "types": [ + "kwarg", + "kwarg", + "kwarg" + ] + } + ] + }, + "list": { + "occurrences": 20, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 10, + "args": 1, + "types": [ + "expr" + ] + }, + { + "count": 5, + "args": 1, + "types": [ + "call" + ] + }, + { + "count": 5, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "int": { + "occurrences": 5, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 5, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "_get_api_route_for_openapi": { + "occurrences": 9, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 9, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "set": { + "occurrences": 10, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 10, + "args": 0, + "types": [] + } + ] + }, + "len": { + "occurrences": 4, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 4, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "deep_dict_update": { + "occurrences": 9, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 6, + "args": 2, + "types": [ + "var", + "var" + ] + }, + { + "count": 3, + "args": 2, + "types": [ + "var", + "other" + ] + } + ] + }, + "sorted": { + "occurrences": 4, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 4, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "any": { + "occurrences": 4, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 4, + "args": 2, + "types": [ + "expr", + "other" + ] + } + ] + }, + "get_openapi_operation_request_body": { + "occurrences": 3, + "arg_count": { + "min": 4, + "max": 4, + "common": 4 + }, + "patterns": [ + { + "count": 3, + "args": 4, + "types": [ + "kwarg", + "kwarg", + "kwarg", + "kwarg" + ] + } + ] + }, + "is_body_allowed_for_status_code": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "get_fields_from_routes": { + "occurrences": 6, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "other" + ] + }, + { + "count": 3, + "args": 1, + "types": [ + "expr" + ] + } + ] + }, + "get_flat_dependant": { + "occurrences": 6, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 3, + "args": 2, + "types": [ + "var", + "kwarg" + ] + }, + { + "count": 3, + "args": 2, + "types": [ + "other", + "kwarg" + ] + } + ] + }, + "get_flat_params": { + "occurrences": 6, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 6, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "_get_openapi_operation_parameters": { + "occurrences": 3, + "arg_count": { + "min": 4, + "max": 4, + "common": 4 + }, + "patterns": [ + { + "count": 3, + "args": 4, + "types": [ + "kwarg", + "kwarg", + "kwarg", + "kwarg" + ] + } + ] + }, + "get_model_name_map": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "get_flat_models_from_fields": { + "occurrences": 3, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 3, + "args": 2, + "types": [ + "var", + "kwarg" + ] + } + ] + }, + "Doc": { + "occurrences": 42, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 42, + "args": 1, + "types": [ + "lit" + ] + } + ] + }, + "HTMLResponse": { + "occurrences": 9, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 6, + "args": 1, + "types": [ + "var" + ] + }, + { + "count": 3, + "args": 1, + "types": [ + "kwarg" + ] + } + ] + }, + "_html_safe_json": { + "occurrences": 9, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 6, + "args": 1, + "types": [ + "call" + ] + }, + { + "count": 3, + "args": 1, + "types": [ + "var" + ] + } + ] + } + } + }, + { + "label": "fastapi/security", + "method_count": 34, + "algorithm": "CRX", + "grammar": "root ::= \"auto_error\"+", + "mdl_score": 2, + "imports": [ + "from typing import Annotated", + "from annotated_doc import Doc", + "from fastapi.openapi.models import APIKey, APIKeyIn", + "from fastapi.security.base import SecurityBase", + "from starlette.exceptions import HTTPException", + "from starlette.requests import Request", + "from starlette.status import HTTP_401_UNAUTHORIZED", + "include a WWW-Authenticate header.", + "from fastapi import Depends, FastAPI", + "from fastapi.security import APIKeyQuery", + "from fastapi.security import APIKeyHeader", + "import binascii", + "from base64 import b64decode", + "from fastapi.exceptions import HTTPException", + "from fastapi.openapi.models import HTTPBase as HTTPBaseModel", + "from fastapi.openapi.models import HTTPBearer as HTTPBearerModel", + "from fastapi.security.utils import get_authorization_scheme_param", + "from pydantic import BaseModel", + "from fastapi.security import HTTPBasic, HTTPBasicCredentials", + "from typing import Annotated, Any, cast", + "from fastapi.openapi.models import OAuth2 as OAuth2Model", + "from fastapi.openapi.models import OAuthFlows as OAuthFlowsModel", + "from fastapi.param_functions import Form", + "from fastapi.security import OAuth2PasswordRequestForm", + "from fastapi.openapi.models import OpenIdConnect as OpenIdConnectModel" + ], + "arg_patterns": { + "Doc": { + "occurrences": 186, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 186, + "args": 1, + "types": [ + "lit" + ] + } + ] + }, + "Form": { + "occurrences": 36, + "arg_count": { + "min": 0, + "max": 1, + "common": 0 + }, + "patterns": [ + { + "count": 24, + "args": 0, + "types": [] + }, + { + "count": 12, + "args": 1, + "types": [ + "kwarg" + ] + } + ] + }, + "super": { + "occurrences": 24, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 24, + "args": 0, + "types": [] + } + ] + }, + "OAuth2Model": { + "occurrences": 3, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 3, + "args": 2, + "types": [ + "kwarg", + "kwarg" + ] + } + ] + }, + "cast": { + "occurrences": 9, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 6, + "args": 2, + "types": [ + "var", + "other" + ] + }, + { + "count": 3, + "args": 2, + "types": [ + "var", + "var" + ] + } + ] + }, + "OAuth2": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "OAuthFlowsModel": { + "occurrences": 9, + "arg_count": { + "min": 0, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 6, + "args": 1, + "types": [ + "kwarg" + ] + }, + { + "count": 3, + "args": 0, + "types": [] + } + ] + }, + "OAuth2PasswordRequestFormStrict": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "OAuth2PasswordBearer": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "get_authorization_scheme_param": { + "occurrences": 18, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 18, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "HTTPException": { + "occurrences": 12, + "arg_count": { + "min": 3, + "max": 3, + "common": 3 + }, + "patterns": [ + { + "count": 12, + "args": 3, + "types": [ + "kwarg", + "kwarg", + "kwarg" + ] + } + ] + }, + "OAuth2AuthorizationCodeBearer": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "class": { + "occurrences": 15, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 15, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "OpenIdConnect": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "OpenIdConnectModel": { + "occurrences": 3, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 3, + "args": 2, + "types": [ + "kwarg", + "kwarg" + ] + } + ] + }, + "HTTPBasicCredentials": { + "occurrences": 4, + "arg_count": { + "min": 1, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 3, + "args": 2, + "types": [ + "kwarg", + "kwarg" + ] + }, + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "HTTPBearerModel": { + "occurrences": 3, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 3, + "args": 2, + "types": [ + "kwarg", + "kwarg" + ] + } + ] + }, + "HTTPBaseModel": { + "occurrences": 9, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 9, + "args": 2, + "types": [ + "kwarg", + "kwarg" + ] + } + ] + }, + "HTTPAuthorizationCredentials": { + "occurrences": 10, + "arg_count": { + "min": 1, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 9, + "args": 2, + "types": [ + "kwarg", + "kwarg" + ] + }, + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "HTTPDigest": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "HTTPBearer": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "HTTPBasic": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "HTTPBase": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "b64decode": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "APIKeyHeader": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "APIKeyBase": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "APIKeyQuery": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "APIKeyCookie": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "APIKey": { + "occurrences": 3, + "arg_count": { + "min": 4, + "max": 4, + "common": 4 + }, + "patterns": [ + { + "count": 3, + "args": 4, + "types": [ + "other", + "other", + "kwarg", + "kwarg" + ] + } + ] + } + } + }, + { + "label": "scripts", + "method_count": 132, + "imports": [ + "import re", + "import sys", + "from datetime import date", + "import logging", + "import secrets", + "import subprocess", + "from collections import Counter", + "from datetime import datetime", + "from pathlib import Path", + "from typing import Any", + "import httpx", + "import yaml", + "from github import Github", + "from pydantic import BaseModel, SecretStr", + "from pydantic_settings import BaseSettings", + "from typing import Literal", + "from github import Auth, Github", + "from typing import TypedDict", + "import json", + "import os", + "import shutil", + "from html.parser import HTMLParser", + "from http.server import HTTPServer, SimpleHTTPRequestHandler", + "from multiprocessing import Pool", + "import typer", + "from jinja2 import Template", + "from ruff.__main__ import find_ruff_bin", + "from slugify import slugify as py_slugify", + "import random", + "import time", + "from typing import Any, cast", + "from collections.abc import Container", + "from datetime import datetime, timedelta, timezone", + "from math import ceil", + "from typing import Annotated, Any", + "from pydantic import BaseModel, BeforeValidator, SecretStr", + "from typing import Annotated, Literal", + "from collections import defaultdict", + "from collections.abc import Iterable", + "from functools import lru_cache", + "from os import sep as pathsep", + "from typing import Annotated", + "import git", + "from doc_parsing_utils import check_translation", + "from pydantic_ai import Agent", + "from rich import print", + "from scripts.doc_parsing_utils import check_translation" + ], + "arg_patterns": { + "get_graphql_response": { + "occurrences": 21, + "arg_count": { + "min": 3, + "max": 4, + "common": 4 + }, + "patterns": [ + { + "count": 12, + "args": 4, + "types": [ + "kwarg", + "kwarg", + "kwarg", + "kwarg" + ] + }, + { + "count": 9, + "args": 3, + "types": [ + "kwarg", + "kwarg", + "kwarg" + ] + } + ] + }, + "RuntimeError": { + "occurrences": 84, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 44, + "args": 1, + "types": [ + "lit" + ] + }, + { + "count": 36, + "args": 1, + "types": [ + "other" + ] + }, + { + "count": 4, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "CommentsEdge": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "AllDiscussionsDiscussionNode": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "Settings": { + "occurrences": 24, + "arg_count": { + "min": 0, + "max": 1, + "common": 0 + }, + "patterns": [ + { + "count": 18, + "args": 0, + "types": [] + }, + { + "count": 6, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "get_graphql_translation_discussion_comments": { + "occurrences": 3, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 3, + "args": 2, + "types": [ + "kwarg", + "kwarg" + ] + } + ] + }, + "update_comment": { + "occurrences": 3, + "arg_count": { + "min": 3, + "max": 3, + "common": 3 + }, + "patterns": [ + { + "count": 3, + "args": 3, + "types": [ + "kwarg", + "kwarg", + "kwarg" + ] + } + ] + }, + "AddDiscussionComment": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "CommentsDiscussion": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "UpdateCommentResponse": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "cast": { + "occurrences": 6, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 3, + "args": 2, + "types": [ + "subscript", + "var" + ] + }, + { + "count": 3, + "args": 2, + "types": [ + "var", + "var" + ] + } + ] + }, + "AddCommentResponse": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "AddCommentData": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "PartialGitHubEventIssue": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "PartialGitHubEvent": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "Comment": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "AllDiscussionsData": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "get_graphql_translation_discussion_comments_edges": { + "occurrences": 6, + "arg_count": { + "min": 2, + "max": 3, + "common": 2 + }, + "patterns": [ + { + "count": 3, + "args": 2, + "types": [ + "kwarg", + "kwarg" + ] + }, + { + "count": 3, + "args": 3, + "types": [ + "kwarg", + "kwarg", + "kwarg" + ] + } + ] + }, + "create_comment": { + "occurrences": 3, + "arg_count": { + "min": 3, + "max": 3, + "common": 3 + }, + "patterns": [ + { + "count": 3, + "args": 3, + "types": [ + "kwarg", + "kwarg", + "kwarg" + ] + } + ] + }, + "UpdateDiscussionComment": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "UpdateCommentData": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "CommentsRepository": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "AllDiscussionsRepository": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "get_graphql_translation_discussions": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "kwarg" + ] + } + ] + }, + "main": { + "occurrences": 21, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 21, + "args": 0, + "types": [] + } + ] + }, + "CommentsData": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "AllDiscussionsDiscussions": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "Github": { + "occurrences": 21, + "arg_count": { + "min": 1, + "max": 2, + "common": 1 + }, + "patterns": [ + { + "count": 12, + "args": 1, + "types": [ + "call" + ] + }, + { + "count": 3, + "args": 2, + "types": [ + "call", + "kwarg" + ] + }, + { + "count": 3, + "args": 1, + "types": [ + "kwarg" + ] + }, + { + "count": 3, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "AllDiscussionsLabelsEdge": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "Comments": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "AllDiscussionsDiscussionLabels": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "CommentsResponse": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "AllDiscussionsResponse": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "AllDiscussionsLabelNode": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "class": { + "occurrences": 70, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 70, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "list": { + "occurrences": 65, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 60, + "args": 1, + "types": [ + "call" + ] + }, + { + "count": 5, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "print": { + "occurrences": 320, + "arg_count": { + "min": 1, + "max": 2, + "common": 1 + }, + "patterns": [ + { + "count": 264, + "args": 1, + "types": [ + "lit" + ] + }, + { + "count": 24, + "args": 1, + "types": [ + "var" + ] + }, + { + "count": 20, + "args": 1, + "types": [ + "call" + ] + }, + { + "count": 8, + "args": 1, + "types": [ + "other" + ] + }, + { + "count": 4, + "args": 2, + "types": [ + "lit", + "var" + ] + } + ] + }, + "len": { + "occurrences": 200, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 148, + "args": 1, + "types": [ + "var" + ] + }, + { + "count": 24, + "args": 1, + "types": [ + "call" + ] + }, + { + "count": 20, + "args": 1, + "types": [ + "subscript" + ] + }, + { + "count": 8, + "args": 1, + "types": [ + "lit" + ] + } + ] + }, + "min": { + "occurrences": 4, + "arg_count": { + "min": 3, + "max": 3, + "common": 3 + }, + "patterns": [ + { + "count": 4, + "args": 3, + "types": [ + "lit", + "call", + "expr" + ] + } + ] + }, + "get_lang_paths": { + "occurrences": 15, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 15, + "args": 0, + "types": [] + } + ] + }, + "get_banner_sponsors": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "sorted": { + "occurrences": 28, + "arg_count": { + "min": 1, + "max": 2, + "common": 1 + }, + "patterns": [ + { + "count": 24, + "args": 1, + "types": [ + "call" + ] + }, + { + "count": 4, + "args": 2, + "types": [ + "call", + "kwarg" + ] + } + ] + }, + "add_markdown_notice": { + "occurrences": 6, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 6, + "args": 2, + "types": [ + "var", + "var" + ] + } + ] + }, + "update_languages": { + "occurrences": 6, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 6, + "args": 0, + "types": [] + } + ] + }, + "VisibleTextExtractor": { + "occurrences": 4, + "arg_count": { + "min": 0, + "max": 1, + "common": 0 + }, + "patterns": [ + { + "count": 3, + "args": 0, + "types": [] + }, + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "Path": { + "occurrences": 135, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 114, + "args": 1, + "types": [ + "lit" + ] + }, + { + "count": 12, + "args": 1, + "types": [ + "var" + ] + }, + { + "count": 6, + "args": 1, + "types": [ + "call" + ] + }, + { + "count": 3, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "set": { + "occurrences": 10, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 10, + "args": 0, + "types": [] + } + ] + }, + "generate_readme_content": { + "occurrences": 3, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 3, + "args": 0, + "types": [] + } + ] + }, + "copy_zensical_stage_to_site": { + "occurrences": 9, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 6, + "args": 1, + "types": [ + "var" + ] + }, + { + "count": 3, + "args": 1, + "types": [ + "lit" + ] + } + ] + }, + "str": { + "occurrences": 180, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 180, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "Template": { + "occurrences": 6, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 6, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "split_markdown_header": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "add_permalinks_page": { + "occurrences": 6, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 6, + "args": 2, + "types": [ + "var", + "kwarg" + ] + } + ] + }, + "get_updated_config_content": { + "occurrences": 6, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 6, + "args": 0, + "types": [] + } + ] + }, + "is_non_translated_path": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "build_zensical_lang_to_stage": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "get_en_config": { + "occurrences": 6, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 6, + "args": 0, + "types": [] + } + ] + }, + "super": { + "occurrences": 4, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 4, + "args": 0, + "types": [] + } + ] + }, + "remove_header_permalinks": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "Pool": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "generate_docs_src_versions_for_file": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "get_zensical_theme_language": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "render_banner_sponsors": { + "occurrences": 6, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 6, + "args": 0, + "types": [] + } + ] + }, + "build_zensical_config": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "HTTPServer": { + "occurrences": 3, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 3, + "args": 2, + "types": [ + "var", + "var" + ] + } + ] + }, + "render_banner_sponsors_partial": { + "occurrences": 3, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 3, + "args": 0, + "types": [] + } + ] + }, + "find_ruff_bin": { + "occurrences": 6, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 6, + "args": 0, + "types": [] + } + ] + }, + "py_slugify": { + "occurrences": 3, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 3, + "args": 2, + "types": [ + "var", + "kwarg" + ] + } + ] + }, + "stage_zensical_docs": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "strip_markdown_links": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "any": { + "occurrences": 8, + "arg_count": { + "min": 1, + "max": 2, + "common": 1 + }, + "patterns": [ + { + "count": 4, + "args": 2, + "types": [ + "call", + "other" + ] + }, + { + "count": 4, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "slugify": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "call" + ] + } + ] + }, + "app": { + "occurrences": 9, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 9, + "args": 0, + "types": [] + } + ] + }, + "get_en_url": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "process_one_page": { + "occurrences": 6, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 6, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "iter_all_lang_paths": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "get_all_paths": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "tuple": { + "occurrences": 10, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 10, + "args": 2, + "types": [ + "call", + "other" + ] + } + ] + }, + "check_translation": { + "occurrences": 6, + "arg_count": { + "min": 5, + "max": 5, + "common": 5 + }, + "patterns": [ + { + "count": 6, + "args": 5, + "types": [ + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg" + ] + } + ] + }, + "cli": { + "occurrences": 3, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 3, + "args": 0, + "types": [] + } + ] + }, + "defaultdict": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "Tier": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "SponsorshipAsMaintainerNode": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "SponsorshipAsMaintainerEdge": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "SponsorshipAsMaintainer": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "update_content": { + "occurrences": 15, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 15, + "args": 2, + "types": [ + "kwarg", + "kwarg" + ] + } + ] + }, + "SponsorEntity": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "SponsorsResponseData": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "get_individual_sponsors": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "kwarg" + ] + } + ] + }, + "SponsorsUser": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "get_graphql_sponsor_edges": { + "occurrences": 6, + "arg_count": { + "min": 1, + "max": 2, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "kwarg" + ] + }, + { + "count": 3, + "args": 2, + "types": [ + "kwarg", + "kwarg" + ] + } + ] + }, + "SponsorsResponse": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "Repo": { + "occurrences": 4, + "arg_count": { + "min": 1, + "max": 5, + "common": 5 + }, + "patterns": [ + { + "count": 3, + "args": 5, + "types": [ + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg" + ] + }, + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "LinkData": { + "occurrences": 4, + "arg_count": { + "min": 1, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 3, + "args": 2, + "types": [ + "kwarg", + "kwarg" + ] + }, + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "next": { + "occurrences": 4, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 4, + "args": 2, + "types": [ + "other", + "lit" + ] + } + ] + }, + "enumerate": { + "occurrences": 44, + "arg_count": { + "min": 1, + "max": 2, + "common": 1 + }, + "patterns": [ + { + "count": 24, + "args": 1, + "types": [ + "var" + ] + }, + { + "count": 20, + "args": 2, + "types": [ + "var", + "kwarg" + ] + } + ] + }, + "open": { + "occurrences": 8, + "arg_count": { + "min": 1, + "max": 2, + "common": 1 + }, + "patterns": [ + { + "count": 4, + "args": 2, + "types": [ + "var", + "lit" + ] + }, + { + "count": 4, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "generate_lang_path": { + "occurrences": 12, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 12, + "args": 2, + "types": [ + "kwarg", + "kwarg" + ] + } + ] + }, + "get_llm_translatable": { + "occurrences": 6, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 6, + "args": 0, + "types": [] + } + ] + }, + "translate_page": { + "occurrences": 9, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 9, + "args": 2, + "types": [ + "kwarg", + "kwarg" + ] + } + ] + }, + "generate_en_path": { + "occurrences": 3, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 3, + "args": 2, + "types": [ + "kwarg", + "kwarg" + ] + } + ] + }, + "iter_en_paths_to_translate": { + "occurrences": 9, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 9, + "args": 0, + "types": [] + } + ] + }, + "Agent": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "lit" + ] + } + ] + }, + "get_langs": { + "occurrences": 9, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 9, + "args": 0, + "types": [] + } + ] + }, + "get_prompt": { + "occurrences": 3, + "arg_count": { + "min": 6, + "max": 6, + "common": 6 + }, + "patterns": [ + { + "count": 3, + "args": 6, + "types": [ + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg" + ] + } + ] + }, + "list_removable": { + "occurrences": 6, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 6, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "list_outdated": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "list_all_removable": { + "occurrences": 3, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 3, + "args": 0, + "types": [] + } + ] + }, + "update_outdated": { + "occurrences": 3, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 3, + "args": 2, + "types": [ + "kwarg", + "kwarg" + ] + } + ] + }, + "add_missing": { + "occurrences": 3, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 3, + "args": 2, + "types": [ + "kwarg", + "kwarg" + ] + } + ] + }, + "range": { + "occurrences": 10, + "arg_count": { + "min": 1, + "max": 2, + "common": 1 + }, + "patterns": [ + { + "count": 5, + "args": 2, + "types": [ + "lit", + "expr" + ] + }, + { + "count": 5, + "args": 1, + "types": [ + "call" + ] + } + ] + }, + "iter_all_en_paths": { + "occurrences": 3, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 3, + "args": 0, + "types": [] + } + ] + }, + "list_missing": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "PRsResponse": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "ContributorsResults": { + "occurrences": 4, + "arg_count": { + "min": 1, + "max": 4, + "common": 4 + }, + "patterns": [ + { + "count": 3, + "args": 4, + "types": [ + "kwarg", + "kwarg", + "kwarg", + "kwarg" + ] + }, + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "PRsResponseData": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "Labels": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "PullRequestNode": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "get_graphql_pr_edges": { + "occurrences": 6, + "arg_count": { + "min": 1, + "max": 2, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "kwarg" + ] + }, + { + "count": 3, + "args": 2, + "types": [ + "kwarg", + "kwarg" + ] + } + ] + }, + "Author": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "get_contributors": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "kwarg" + ] + } + ] + }, + "LabelNode": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "get_users_to_write": { + "occurrences": 24, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 24, + "args": 2, + "types": [ + "kwarg", + "kwarg" + ] + } + ] + }, + "ReviewNode": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "PRsRepository": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "PullRequestEdge": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "Reviews": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "PullRequests": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "get_pr_nodes": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "kwarg" + ] + } + ] + }, + "_split_slashes_comment": { + "occurrences": 6, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 6, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "replace_header_permalinks": { + "occurrences": 3, + "arg_count": { + "min": 3, + "max": 3, + "common": 3 + }, + "patterns": [ + { + "count": 3, + "args": 3, + "types": [ + "var", + "var", + "var" + ] + } + ] + }, + "ValueError": { + "occurrences": 36, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 32, + "args": 1, + "types": [ + "other" + ] + }, + { + "count": 4, + "args": 1, + "types": [ + "lit" + ] + } + ] + }, + "extract_code_includes": { + "occurrences": 6, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 6, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "HtmlLinkInfo": { + "occurrences": 4, + "arg_count": { + "min": 1, + "max": 4, + "common": 4 + }, + "patterns": [ + { + "count": 3, + "args": 4, + "types": [ + "kwarg", + "kwarg", + "kwarg", + "kwarg" + ] + }, + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "replace_placeholders_with_code_includes": { + "occurrences": 3, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 3, + "args": 2, + "types": [ + "var", + "var" + ] + } + ] + }, + "_add_lang_code_to_url": { + "occurrences": 6, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 6, + "args": 2, + "types": [ + "var", + "var" + ] + } + ] + }, + "HTMLLinkAttribute": { + "occurrences": 7, + "arg_count": { + "min": 1, + "max": 3, + "common": 3 + }, + "patterns": [ + { + "count": 6, + "args": 3, + "types": [ + "kwarg", + "kwarg", + "kwarg" + ] + }, + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "extract_markdown_links": { + "occurrences": 6, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 6, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "replace_multiline_code_block": { + "occurrences": 3, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 3, + "args": 2, + "types": [ + "var", + "var" + ] + } + ] + }, + "MultilineCodeBlockInfo": { + "occurrences": 7, + "arg_count": { + "min": 1, + "max": 3, + "common": 3 + }, + "patterns": [ + { + "count": 6, + "args": 3, + "types": [ + "kwarg", + "kwarg", + "kwarg" + ] + }, + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "get_code_block_lang": { + "occurrences": 6, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 6, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "extract_multiline_code_blocks": { + "occurrences": 6, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 6, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "isinstance": { + "occurrences": 24, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 24, + "args": 2, + "types": [ + "var", + "var" + ] + } + ] + }, + "MarkdownLinkInfo": { + "occurrences": 4, + "arg_count": { + "min": 1, + "max": 6, + "common": 6 + }, + "patterns": [ + { + "count": 3, + "args": 6, + "types": [ + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg" + ] + }, + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "HeaderPermalinkInfo": { + "occurrences": 4, + "arg_count": { + "min": 1, + "max": 4, + "common": 4 + }, + "patterns": [ + { + "count": 3, + "args": 4, + "types": [ + "kwarg", + "kwarg", + "kwarg", + "kwarg" + ] + }, + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "extract_html_links": { + "occurrences": 6, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 6, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "zip": { + "occurrences": 8, + "arg_count": { + "min": 3, + "max": 3, + "common": 3 + }, + "patterns": [ + { + "count": 4, + "args": 3, + "types": [ + "var", + "var", + "kwarg" + ] + }, + { + "count": 4, + "args": 3, + "types": [ + "subscript", + "subscript", + "kwarg" + ] + } + ] + }, + "_split_hash_comment": { + "occurrences": 6, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 6, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "CodeIncludeInfo": { + "occurrences": 4, + "arg_count": { + "min": 1, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 3, + "args": 2, + "types": [ + "kwarg", + "kwarg" + ] + }, + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "replace_markdown_links": { + "occurrences": 3, + "arg_count": { + "min": 4, + "max": 4, + "common": 4 + }, + "patterns": [ + { + "count": 3, + "args": 4, + "types": [ + "var", + "var", + "var", + "var" + ] + } + ] + }, + "replace_code_includes_with_placeholders": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "replace_multiline_code_blocks_in_text": { + "occurrences": 3, + "arg_count": { + "min": 3, + "max": 3, + "common": 3 + }, + "patterns": [ + { + "count": 3, + "args": 3, + "types": [ + "var", + "var", + "var" + ] + } + ] + }, + "extract_header_permalinks": { + "occurrences": 6, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 6, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "_construct_markdown_link": { + "occurrences": 3, + "arg_count": { + "min": 5, + "max": 5, + "common": 5 + }, + "patterns": [ + { + "count": 3, + "args": 5, + "types": [ + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg" + ] + } + ] + }, + "_construct_html_link": { + "occurrences": 3, + "arg_count": { + "min": 3, + "max": 3, + "common": 3 + }, + "patterns": [ + { + "count": 3, + "args": 3, + "types": [ + "kwarg", + "kwarg", + "kwarg" + ] + } + ] + }, + "replace_html_links": { + "occurrences": 3, + "arg_count": { + "min": 4, + "max": 4, + "common": 4 + }, + "patterns": [ + { + "count": 3, + "args": 4, + "types": [ + "var", + "var", + "var", + "var" + ] + } + ] + }, + "timedelta": { + "occurrences": 12, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 12, + "args": 1, + "types": [ + "kwarg" + ] + } + ] + }, + "CommentsNode": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "get_discussions_experts": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "kwarg" + ] + } + ] + }, + "max": { + "occurrences": 16, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 8, + "args": 2, + "types": [ + "var", + "other" + ] + }, + { + "count": 4, + "args": 2, + "types": [ + "var", + "var" + ] + }, + { + "count": 4, + "args": 2, + "types": [ + "var", + "lit" + ] + } + ] + }, + "get_graphql_question_discussion_edges": { + "occurrences": 6, + "arg_count": { + "min": 1, + "max": 2, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "kwarg" + ] + }, + { + "count": 3, + "args": 2, + "types": [ + "kwarg", + "kwarg" + ] + } + ] + }, + "DiscussionsComments": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "get_discussion_nodes": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "kwarg" + ] + } + ] + }, + "DiscussionsResponse": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "ceil": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "call" + ] + } + ] + }, + "DiscussionExpertsResults": { + "occurrences": 4, + "arg_count": { + "min": 1, + "max": 6, + "common": 6 + }, + "patterns": [ + { + "count": 3, + "args": 6, + "types": [ + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg" + ] + }, + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "DiscussionsResponseData": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "RateLimiter": { + "occurrences": 3, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 3, + "args": 0, + "types": [] + } + ] + }, + "DiscussionsEdge": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "DiscussionsNode": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "BeforeValidator": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "lambda" + ] + } + ] + }, + "DiscussionsCommentsNode": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "Replies": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "Discussions": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "DiscussionsRepository": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "bump_version": { + "occurrences": 3, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 3, + "args": 2, + "types": [ + "call", + "var" + ] + } + ] + }, + "update_release_notes": { + "occurrences": 3, + "arg_count": { + "min": 4, + "max": 4, + "common": 4 + }, + "patterns": [ + { + "count": 3, + "args": 4, + "types": [ + "var", + "var", + "var", + "var" + ] + } + ] + }, + "update_version_file": { + "occurrences": 3, + "arg_count": { + "min": 3, + "max": 3, + "common": 3 + }, + "patterns": [ + { + "count": 3, + "args": 3, + "types": [ + "var", + "var", + "var" + ] + } + ] + }, + "int": { + "occurrences": 15, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 15, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "get_current_version": { + "occurrences": 12, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 6, + "args": 2, + "types": [ + "var", + "var" + ] + }, + { + "count": 6, + "args": 2, + "types": [ + "call", + "var" + ] + } + ] + }, + "parse_version": { + "occurrences": 9, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 9, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "get_release_notes_body": { + "occurrences": 3, + "arg_count": { + "min": 3, + "max": 3, + "common": 3 + }, + "patterns": [ + { + "count": 3, + "args": 3, + "types": [ + "call", + "var", + "var" + ] + } + ] + } + } + }, + { + "label": "scripts/playwright", + "method_count": 7, + "algorithm": "CRX", + "grammar": "root ::= (\"browser\" | \"chromium\" | \"click\" | \"close\" | \"context\" | \"get_by_label\" | \"get_by_role\" | \"goto\" | \"headless\" | \"launch\" | \"name\" | \"new_context\" | \"new_page\" | \"page\" | \"path\" | \"playwright\" | \"screenshot\" | \"viewport\")+", + "mdl_score": 5681052, + "imports": [ + "import subprocess", + "import time", + "import httpx", + "from playwright.sync_api import Playwright, sync_playwright" + ], + "arg_patterns": { + "run": { + "occurrences": 21, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 21, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "range": { + "occurrences": 35, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 35, + "args": 1, + "types": [ + "lit" + ] + } + ] + }, + "sync_playwright": { + "occurrences": 21, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 21, + "args": 0, + "types": [] + } + ] + } + } + }, + { + "label": "scripts/playwright/separate_openapi_schemas", + "method_count": 5, + "algorithm": "CRX", + "grammar": "root ::= (\"browser\" | \"chromium\" | \"click\" | \"close\" | \"context\" | \"exact\" | \"first\" | \"get_by_label\" | \"get_by_role\" | \"get_by_text\" | \"goto\" | \"headless\" | \"launch\" | \"name\" | \"new_context\" | \"new_page\" | \"page\" | \"path\" | \"playwright\" | \"screenshot\" | \"set_viewport_size\" | \"viewport\")+", + "mdl_score": 15951716, + "imports": [ + "import subprocess", + "from playwright.sync_api import Playwright, sync_playwright" + ], + "arg_patterns": { + "run": { + "occurrences": 15, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 15, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "sync_playwright": { + "occurrences": 15, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 15, + "args": 0, + "types": [] + } + ] + } + } + }, + { + "label": "scripts/tests/test_translation_fixer", + "method_count": 12, + "algorithm": "CRX", + "grammar": "root ::= (\"Path\" | \"cli\" | \"data_path\" | \"exit_code\" | \"expected_content\" | \"fixed_content\" | \"in\" | \"invoke\" | \"output\" | \"read_text\" | \"result\" | \"root_dir\" | \"runner\")+", + "mdl_score": 804466, + "imports": [ + "import os", + "import shutil", + "import sys", + "from collections.abc import Generator", + "from contextlib import contextmanager", + "from pathlib import Path", + "import pytest", + "from typer.testing import CliRunner", + "from scripts.translation_fixer import cli" + ], + "arg_patterns": { + "Path": { + "occurrences": 45, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 33, + "args": 1, + "types": [ + "lit" + ] + }, + { + "count": 6, + "args": 1, + "types": [ + "subscript" + ] + }, + { + "count": 3, + "args": 1, + "types": [ + "other" + ] + }, + { + "count": 3, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "str": { + "occurrences": 20, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 10, + "args": 1, + "types": [ + "var" + ] + }, + { + "count": 10, + "args": 1, + "types": [ + "expr" + ] + } + ] + }, + "CliRunner": { + "occurrences": 3, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 3, + "args": 0, + "types": [] + } + ] + }, + "changing_dir": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "var" + ] + } + ] + } + } + }, + { + "label": "scripts/tests/test_translation_fixer/test_code_blocks", + "method_count": 8, + "algorithm": "CRX", + "grammar": "root ::= (\"Path\" | \"cli\" | \"data_path\" | \"exit_code\" | \"expected_content\" | \"fixed_content\" | \"in\" | \"invoke\" | \"output\" | \"read_text\" | \"result\" | \"root_dir\" | \"runner\")+", + "mdl_score": 890149, + "imports": [ + "from pathlib import Path", + "import pytest", + "from typer.testing import CliRunner", + "from scripts.translation_fixer import cli" + ], + "arg_patterns": { + "Path": { + "occurrences": 36, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 36, + "args": 1, + "types": [ + "lit" + ] + } + ] + } + } + }, + { + "label": "scripts/tests/test_translation_fixer/test_header_permalinks", + "method_count": 4, + "algorithm": "CRX", + "grammar": "root ::= (\"Path\" | \"cli\" | \"data_path\" | \"exit_code\" | \"expected_content\" | \"fixed_content\" | \"in\" | \"invoke\" | \"output\" | \"read_text\" | \"result\" | \"root_dir\" | \"runner\")+", + "mdl_score": 747344, + "imports": [ + "from pathlib import Path", + "import pytest", + "from typer.testing import CliRunner", + "from scripts.translation_fixer import cli" + ], + "arg_patterns": { + "Path": { + "occurrences": 18, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 18, + "args": 1, + "types": [ + "lit" + ] + } + ] + } + } + }, + { + "label": "tests", + "method_count": 2036, + "algorithm": "CRX", + "grammar": "root ::= \"response\"? \"json\"?+ \"client\"? \"get\"?+", + "mdl_score": 24, + "imports": [ + "from pydantic import BaseModel", + "import http", + "from fastapi import FastAPI, Path, Query", + "from fastapi import FastAPI", + "from fastapi.testclient import TestClient", + "from inline_snapshot import snapshot", + "from pydantic import BaseModel, ConfigDict", + "from fastapi import APIRouter, FastAPI", + "import pytest", + "from pydantic import BaseModel, HttpUrl", + "from starlette.responses import JSONResponse", + "from fastapi.responses import JSONResponse", + "from typing import Annotated", + "from fastapi import Body, FastAPI, Query", + "from fastapi import Depends, FastAPI, Path", + "from fastapi.param_functions import Query", + "from fastapi import APIRouter, FastAPI, Query", + "from .main import app", + "from pydantic import (", + "from functools import partial", + "from typing import Any, cast", + "from fastapi import FastAPI, UploadFile", + "from fastapi._compat import (", + "from fastapi._compat.shared import is_bytes_sequence_annotation", + "from pydantic.fields import FieldInfo", + "from fastapi._compat import v2", + "from typing import Union", + "from pydantic import BaseModel, computed_field", + "from pathlib import Path", + "from fastapi import APIRouter, FastAPI, File, UploadFile", + "from fastapi.exceptions import HTTPException", + "from starlette.types import ASGIApp", + "from fastapi.routing import APIRoute", + "from pydantic import BaseModel, WithJsonSchema", + "import io", + "from typing import cast", + "from fastapi.datastructures import Default, DefaultPlaceholder", + "from datetime import datetime, timezone", + "from pydantic import field_serializer", + "from typing import Any", + "from fastapi.responses import HTMLResponse, JSONResponse, PlainTextResponse", + "from tests.utils import needs_orjson", + "import orjson # ty: ignore[unresolved-import]", + "from fastapi.dependencies.utils import get_typed_annotation", + "from typing import Annotated, Any", + "from fastapi import Depends, FastAPI, HTTPException", + "from collections.abc import Generator", + "from contextlib import contextmanager", + "from fastapi import Depends, FastAPI", + "from fastapi.responses import StreamingResponse", + "from fastapi import Depends, FastAPI, WebSocket", + "from fastapi import Depends, FastAPI, Security", + "from collections.abc import AsyncGenerator, Generator", + "import json", + "from fastapi import BackgroundTasks, Depends, FastAPI", + "from collections.abc import Awaitable, Callable", + "from contextvars import ContextVar", + "from fastapi import Depends, FastAPI, Request, Response", + "from fastapi import APIRouter, Depends, FastAPI", + "from fastapi import FastAPI, HTTPException, Security", + "from fastapi.security import (", + "from typing_extensions import TypeAliasType", + "from fastapi.security import SecurityScopes", + "import inspect", + "import sys", + "from functools import wraps", + "from fastapi.concurrency import iterate_in_threadpool, run_in_threadpool", + "from inspect import iscoroutinefunction", + "from asyncio import iscoroutinefunction", + "from fastapi import Body, Depends, FastAPI, HTTPException", + "from fastapi import APIRouter, Depends, FastAPI, HTTPException", + "from fastapi.exceptions import FastAPIError", + "from fastapi import Depends, Security", + "from fastapi import FastAPI, Request", + "import warnings", + "from fastapi.exceptions import FastAPIDeprecationWarning", + "from fastapi.responses import ORJSONResponse, UJSONResponse # ty: ignore[deprecated]", + "from tests.utils import needs_orjson, needs_ujson", + "from unittest.mock import patch", + "from fastapi import Depends, FastAPI, Query", + "from fastapi.exceptions import RequestValidationError", + "import os", + "import subprocess", + "import fastapi.cli", + "from fastapi import FastAPI, File, Form", + "from dirty_equals import HasRepr", + "from fastapi.exceptions import ResponseValidationError", + "from pydantic import BaseModel, ValidationInfo, field_validator", + "from starlette.testclient import TestClient", + "from fastapi import FastAPI, Form", + "from pydantic import BaseModel, Field", + "import errno", + "import runpy", + "from contextlib import AsyncExitStack", + "from typing import Literal", + "import anyio", + "from fastapi import APIRouter, Depends, FastAPI, HTTPException, Request, WebSocket", + "from starlette.exceptions import HTTPException as StarletteHTTPException", + "from starlette.responses import PlainTextResponse, Response", + "from starlette.routing import BaseRoute, Match, NoMatchFound, Route", + "from typing import Annotated, TypeVar", + "from fastapi.requests import HTTPConnection", + "from starlette.websockets import WebSocket", + "from fastapi import APIRouter, FastAPI, Request", + "from fastapi import APIRouter, Depends, FastAPI, Response", + "import uuid", + "from fastapi import FastAPI, Query", + "from fastapi import Cookie, FastAPI, Form, Header, Query", + "from pydantic import Json", + "from collections import deque", + "from dataclasses import dataclass", + "from decimal import Decimal", + "from enum import Enum", + "from math import isinf, isnan", + "from pathlib import PurePath, PurePosixPath, PureWindowsPath", + "from typing import TypedDict", + "from fastapi._compat import Undefined", + "from fastapi.encoders import jsonable_encoder", + "from fastapi.exceptions import PydanticV1NotSupportedError", + "from pydantic import BaseModel, Field, ValidationError", + "from pydantic import v1", + "from fastapi import FastAPI, File", + "from starlette.datastructures import UploadFile as StarletteUploadFile", + "from fastapi.openapi.docs import get_redoc_html, get_swagger_ui_html", + "from dirty_equals import IsOneOf", + "from pydantic import BaseModel, condecimal", + "from fastapi import FastAPI, File, Form, UploadFile", + "from fastapi.dependencies.utils import (", + "from fastapi import Body, Cookie, FastAPI, Header, Path, Query", + "from fastapi.openapi.models import Schema, SchemaType", + "from fastapi.responses import ORJSONResponse # ty: ignore[deprecated]", + "from sqlalchemy.sql.elements import quoted_name", + "from fastapi.params import Param", + "from fastapi import Cookie, FastAPI, Header, Path, Query", + "from fastapi.params import Body, Cookie, Header, Param, Path, Query", + "from datetime import date", + "from typer.testing import CliRunner", + "from scripts.prepare_release import (", + "from tests.utils import skip_module_if_py_gte_314", + "from pydantic.v1 import BaseModel", + "from __future__ import annotations", + "from dataclasses import dataclass, field", + "from dirty_equals import IsUUID", + "from fastapi import Cookie, FastAPI, Header, Query", + "from .utils import needs_py310", + "from fastapi import Depends, FastAPI, Response", + "from fastapi import Depends, FastAPI, Header, status", + "from fastapi import FastAPI, Path, Query, status", + "from fastapi import Body, FastAPI", + "from dirty_equals import IsPartialDict", + "from pydantic import BaseModel, ConfigDict, Field", + "from fastapi import FastAPI, Response", + "from fastapi import BackgroundTasks, Depends, FastAPI, Request, Response", + "from fastapi.exceptions import FastAPIError, ResponseValidationError", + "from fastapi.responses import JSONResponse, Response", + "from fastapi import FastAPI, Request, WebSocket, WebSocketDisconnect", + "from fastapi.routing import APIRoute, APIWebSocketRoute", + "from fastapi import APIRouter", + "from collections.abc import AsyncGenerator", + "from contextlib import asynccontextmanager", + "from typing import Annotated, cast", + "from fastapi import APIRouter, Body, Depends, FastAPI, Request, Security", + "from fastapi.openapi.utils import get_openapi", + "from fastapi.routing import (", + "from fastapi.security import HTTPBearer", + "from starlette.routing import BaseRoute, Host, Match, Mount, NoMatchFound, Route, Router", + "from tests.utils import needs_py310", + "from fastapi.security import APIKeyCookie", + "from fastapi.security import APIKeyHeader", + "from fastapi.security import APIKeyQuery", + "from fastapi import FastAPI, Security", + "from fastapi.security.http import HTTPAuthorizationCredentials, HTTPBase", + "from base64 import b64encode", + "from fastapi.security import HTTPBasic, HTTPBasicCredentials", + "from fastapi.security import HTTPAuthorizationCredentials, HTTPBearer", + "from fastapi.security import HTTPAuthorizationCredentials, HTTPDigest", + "from fastapi.security import OAuth2, OAuth2PasswordRequestFormStrict", + "from fastapi.security import OAuth2AuthorizationCodeBearer", + "from fastapi import APIRouter, Depends, FastAPI, Security", + "from fastapi.security import OAuth2PasswordBearer", + "from fastapi.security.open_id_connect_url import OpenIdConnect", + "from datetime import datetime", + "import asyncio", + "import time", + "from collections.abc import AsyncIterable, Iterable", + "import fastapi.routing", + "from fastapi.responses import EventSourceResponse", + "from fastapi.sse import ServerSentEvent", + "from fastapi import FastAPI, HTTPException", + "from typing import AsyncIterable, Iterable # noqa: UP035 to test coverage", + "from collections.abc import AsyncIterable", + "from starlette.types import Message, Scope", + "from typing import TYPE_CHECKING, Annotated", + "from .utils import needs_py314", + "from fastapi import Depends, FastAPI, Request", + "from fastapi.openapi.docs import get_swagger_ui_html", + "from typing import Annotated, Any, Literal", + "from pydantic import Tag", + "from fastapi import Body", + "from pydantic import Discriminator, Tag", + "from pydantic.dataclasses import dataclass", + "from fastapi import FastAPI, Request, WebSocket", + "from fastapi.exceptions import (", + "import functools", + "from .forward_reference_type import forwardref_method", + "from fastapi import APIRouter, Depends, FastAPI, WebSocket", + "from fastapi import (", + "from fastapi.middleware import Middleware", + "from importlib.util import find_spec" + ], + "arg_patterns": { + "APIRouteA": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "TestClient": { + "occurrences": 1083, + "arg_count": { + "min": 1, + "max": 2, + "common": 1 + }, + "patterns": [ + { + "count": 1014, + "args": 1, + "types": [ + "var" + ] + }, + { + "count": 69, + "args": 2, + "types": [ + "var", + "kwarg" + ] + } + ] + }, + "APIRouteC": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "FastAPI": { + "occurrences": 1053, + "arg_count": { + "min": 0, + "max": 4, + "common": 0 + }, + "patterns": [ + { + "count": 903, + "args": 0, + "types": [] + }, + { + "count": 138, + "args": 1, + "types": [ + "kwarg" + ] + }, + { + "count": 6, + "args": 2, + "types": [ + "kwarg", + "kwarg" + ] + }, + { + "count": 3, + "args": 1, + "types": [ + "other" + ] + }, + { + "count": 3, + "args": 4, + "types": [ + "kwarg", + "kwarg", + "kwarg", + "kwarg" + ] + } + ] + }, + "isinstance": { + "occurrences": 64, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 44, + "args": 2, + "types": [ + "var", + "var" + ] + }, + { + "count": 16, + "args": 2, + "types": [ + "subscript", + "var" + ] + }, + { + "count": 4, + "args": 2, + "types": [ + "var", + "other" + ] + } + ] + }, + "snapshot": { + "occurrences": 318, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 318, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "APIRouter": { + "occurrences": 441, + "arg_count": { + "min": 0, + "max": 7, + "common": 0 + }, + "patterns": [ + { + "count": 288, + "args": 0, + "types": [] + }, + { + "count": 123, + "args": 1, + "types": [ + "kwarg" + ] + }, + { + "count": 21, + "args": 2, + "types": [ + "kwarg", + "kwarg" + ] + }, + { + "count": 9, + "args": 7, + "types": [ + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg" + ] + } + ] + }, + "APIRouteB": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "class": { + "occurrences": 189, + "arg_count": { + "min": 1, + "max": 2, + "common": 1 + }, + "patterns": [ + { + "count": 185, + "args": 1, + "types": [ + "var" + ] + }, + { + "count": 3, + "args": 2, + "types": [ + "var", + "var" + ] + }, + { + "count": 1, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "User": { + "occurrences": 78, + "arg_count": { + "min": 1, + "max": 2, + "common": 1 + }, + "patterns": [ + { + "count": 45, + "args": 1, + "types": [ + "kwarg" + ] + }, + { + "count": 18, + "args": 1, + "types": [ + "var" + ] + }, + { + "count": 15, + "args": 2, + "types": [ + "kwarg", + "kwarg" + ] + } + ] + }, + "Security": { + "occurrences": 165, + "arg_count": { + "min": 1, + "max": 2, + "common": 1 + }, + "patterns": [ + { + "count": 117, + "args": 1, + "types": [ + "var" + ] + }, + { + "count": 48, + "args": 2, + "types": [ + "var", + "kwarg" + ] + } + ] + }, + "APIKeyQuery": { + "occurrences": 9, + "arg_count": { + "min": 1, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 6, + "args": 2, + "types": [ + "kwarg", + "kwarg" + ] + }, + { + "count": 3, + "args": 1, + "types": [ + "kwarg" + ] + } + ] + }, + "Depends": { + "occurrences": 654, + "arg_count": { + "min": 0, + "max": 2, + "common": 1 + }, + "patterns": [ + { + "count": 519, + "args": 1, + "types": [ + "var" + ] + }, + { + "count": 60, + "args": 1, + "types": [ + "call" + ] + }, + { + "count": 39, + "args": 2, + "types": [ + "var", + "kwarg" + ] + }, + { + "count": 24, + "args": 0, + "types": [] + }, + { + "count": 12, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "get_client": { + "occurrences": 24, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 24, + "args": 0, + "types": [] + } + ] + }, + "Query": { + "occurrences": 126, + "arg_count": { + "min": 0, + "max": 3, + "common": 1 + }, + "patterns": [ + { + "count": 48, + "args": 1, + "types": [ + "kwarg" + ] + }, + { + "count": 36, + "args": 0, + "types": [] + }, + { + "count": 12, + "args": 1, + "types": [ + "other" + ] + }, + { + "count": 12, + "args": 1, + "types": [ + "lit" + ] + }, + { + "count": 9, + "args": 2, + "types": [ + "kwarg", + "kwarg" + ] + } + ] + }, + "print": { + "occurrences": 12, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 12, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "Form": { + "occurrences": 75, + "arg_count": { + "min": 0, + "max": 1, + "common": 0 + }, + "patterns": [ + { + "count": 72, + "args": 0, + "types": [] + }, + { + "count": 3, + "args": 1, + "types": [ + "kwarg" + ] + } + ] + }, + "set": { + "occurrences": 40, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 30, + "args": 1, + "types": [ + "subscript" + ] + }, + { + "count": 5, + "args": 1, + "types": [ + "call" + ] + }, + { + "count": 5, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "NamedSession": { + "occurrences": 18, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 18, + "args": 1, + "types": [ + "kwarg" + ] + } + ] + }, + "StreamingResponse": { + "occurrences": 27, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 27, + "args": 1, + "types": [ + "call" + ] + } + ] + }, + "iter_data": { + "occurrences": 27, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 27, + "args": 0, + "types": [] + } + ] + }, + "Session": { + "occurrences": 12, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 12, + "args": 0, + "types": [] + } + ] + }, + "HTTPException": { + "occurrences": 39, + "arg_count": { + "min": 1, + "max": 3, + "common": 2 + }, + "patterns": [ + { + "count": 18, + "args": 2, + "types": [ + "kwarg", + "kwarg" + ] + }, + { + "count": 15, + "args": 1, + "types": [ + "kwarg" + ] + }, + { + "count": 3, + "args": 3, + "types": [ + "kwarg", + "kwarg", + "kwarg" + ] + }, + { + "count": 3, + "args": 2, + "types": [ + "lit", + "kwarg" + ] + } + ] + }, + "WithJsonSchema": { + "occurrences": 9, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 6, + "args": 1, + "types": [ + "call" + ] + }, + { + "count": 3, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "Item": { + "occurrences": 147, + "arg_count": { + "min": 1, + "max": 4, + "common": 2 + }, + "patterns": [ + { + "count": 72, + "args": 2, + "types": [ + "kwarg", + "kwarg" + ] + }, + { + "count": 27, + "args": 1, + "types": [ + "var" + ] + }, + { + "count": 21, + "args": 3, + "types": [ + "kwarg", + "kwarg", + "kwarg" + ] + }, + { + "count": 15, + "args": 1, + "types": [ + "kwarg" + ] + }, + { + "count": 12, + "args": 4, + "types": [ + "kwarg", + "kwarg", + "kwarg", + "kwarg" + ] + } + ] + }, + "OverrideResponse": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "ORJSONResponse": { + "occurrences": 4, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "kwarg" + ] + }, + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "Coordinate": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "ItemGroup": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "dep": { + "occurrences": 3, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 3, + "args": 0, + "types": [] + } + ] + }, + "hash": { + "occurrences": 32, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 32, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "JSONResponse": { + "occurrences": 30, + "arg_count": { + "min": 1, + "max": 2, + "common": 1 + }, + "patterns": [ + { + "count": 12, + "args": 1, + "types": [ + "other" + ] + }, + { + "count": 9, + "args": 2, + "types": [ + "lit", + "kwarg" + ] + }, + { + "count": 6, + "args": 1, + "types": [ + "kwarg" + ] + }, + { + "count": 3, + "args": 2, + "types": [ + "kwarg", + "kwarg" + ] + } + ] + }, + "File": { + "occurrences": 42, + "arg_count": { + "min": 0, + "max": 2, + "common": 0 + }, + "patterns": [ + { + "count": 36, + "args": 0, + "types": [] + }, + { + "count": 3, + "args": 1, + "types": [ + "lit" + ] + }, + { + "count": 3, + "args": 2, + "types": [ + "other", + "kwarg" + ] + } + ] + }, + "ClassInstanceDep": { + "occurrences": 3, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 3, + "args": 0, + "types": [] + } + ] + }, + "ClassInstanceGenDep": { + "occurrences": 3, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 3, + "args": 0, + "types": [] + } + ] + }, + "iscoroutinefunction": { + "occurrences": 6, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 6, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "wraps": { + "occurrences": 16, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 16, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "noop_wrap_async": { + "occurrences": 9, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 9, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "func": { + "occurrences": 12, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 12, + "args": 2, + "types": [ + "other", + "other" + ] + } + ] + }, + "ClassInstanceAsyncWrappedGenAsyncDep": { + "occurrences": 3, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 3, + "args": 0, + "types": [] + } + ] + }, + "iterate_in_threadpool": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "call" + ] + } + ] + }, + "ClassInstanceAsyncWrappedGenDep": { + "occurrences": 3, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 3, + "args": 0, + "types": [] + } + ] + }, + "ClassInstanceAsyncWrappedAsyncDep": { + "occurrences": 3, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 3, + "args": 0, + "types": [] + } + ] + }, + "noop_wrap": { + "occurrences": 15, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 15, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "ClassInstanceAsyncWrappedDep": { + "occurrences": 3, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 3, + "args": 0, + "types": [] + } + ] + }, + "ClassInstanceWrappedAsyncGenDep": { + "occurrences": 3, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 3, + "args": 0, + "types": [] + } + ] + }, + "ClassInstanceWrappedGenDep": { + "occurrences": 3, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 3, + "args": 0, + "types": [] + } + ] + }, + "ClassInstanceWrappedAsyncDep": { + "occurrences": 3, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 3, + "args": 0, + "types": [] + } + ] + }, + "ClassInstanceWrappedDep": { + "occurrences": 3, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 3, + "args": 0, + "types": [] + } + ] + }, + "dunder_call": { + "occurrences": 3, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 3, + "args": 2, + "types": [ + "other", + "other" + ] + } + ] + }, + "getattr": { + "occurrences": 20, + "arg_count": { + "min": 2, + "max": 3, + "common": 3 + }, + "patterns": [ + { + "count": 8, + "args": 3, + "types": [ + "var", + "lit", + "lit" + ] + }, + { + "count": 8, + "args": 2, + "types": [ + "var", + "var" + ] + }, + { + "count": 4, + "args": 3, + "types": [ + "var", + "lit", + "other" + ] + } + ] + }, + "ClassInstanceAsyncDep": { + "occurrences": 3, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 3, + "args": 0, + "types": [] + } + ] + }, + "ClassInstanceAsyncGenDep": { + "occurrences": 3, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 3, + "args": 0, + "types": [] + } + ] + }, + "run_in_threadpool": { + "occurrences": 6, + "arg_count": { + "min": 3, + "max": 3, + "common": 3 + }, + "patterns": [ + { + "count": 6, + "args": 3, + "types": [ + "var", + "other", + "other" + ] + } + ] + }, + "PetOut": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "UserDB": { + "occurrences": 14, + "arg_count": { + "min": 1, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 12, + "args": 2, + "types": [ + "kwarg", + "kwarg" + ] + }, + { + "count": 2, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "UserCreate": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "PetDB": { + "occurrences": 20, + "arg_count": { + "min": 1, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 18, + "args": 2, + "types": [ + "kwarg", + "kwarg" + ] + }, + { + "count": 2, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "ValueError": { + "occurrences": 20, + "arg_count": { + "min": 0, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 16, + "args": 1, + "types": [ + "lit" + ] + }, + { + "count": 4, + "args": 0, + "types": [] + } + ] + }, + "ModelC": { + "occurrences": 4, + "arg_count": { + "min": 1, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 3, + "args": 2, + "types": [ + "kwarg", + "kwarg" + ] + }, + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "ModelB": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "field_validator": { + "occurrences": 4, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 4, + "args": 1, + "types": [ + "lit" + ] + } + ] + }, + "HasRepr": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "lit" + ] + } + ] + }, + "ModelA": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "Cookie": { + "occurrences": 39, + "arg_count": { + "min": 0, + "max": 3, + "common": 1 + }, + "patterns": [ + { + "count": 9, + "args": 2, + "types": [ + "kwarg", + "kwarg" + ] + }, + { + "count": 9, + "args": 1, + "types": [ + "lit" + ] + }, + { + "count": 9, + "args": 0, + "types": [] + }, + { + "count": 6, + "args": 1, + "types": [ + "other" + ] + }, + { + "count": 6, + "args": 3, + "types": [ + "kwarg", + "kwarg", + "kwarg" + ] + } + ] + }, + "Header": { + "occurrences": 48, + "arg_count": { + "min": 0, + "max": 3, + "common": 0 + }, + "patterns": [ + { + "count": 18, + "args": 0, + "types": [] + }, + { + "count": 9, + "args": 2, + "types": [ + "kwarg", + "kwarg" + ] + }, + { + "count": 9, + "args": 1, + "types": [ + "lit" + ] + }, + { + "count": 6, + "args": 1, + "types": [ + "other" + ] + }, + { + "count": 6, + "args": 3, + "types": [ + "kwarg", + "kwarg", + "kwarg" + ] + } + ] + }, + "Path": { + "occurrences": 120, + "arg_count": { + "min": 0, + "max": 2, + "common": 1 + }, + "patterns": [ + { + "count": 48, + "args": 1, + "types": [ + "kwarg" + ] + }, + { + "count": 27, + "args": 1, + "types": [ + "lit" + ] + }, + { + "count": 21, + "args": 2, + "types": [ + "kwarg", + "kwarg" + ] + }, + { + "count": 15, + "args": 0, + "types": [] + }, + { + "count": 3, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "repr": { + "occurrences": 112, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 108, + "args": 1, + "types": [ + "call" + ] + }, + { + "count": 4, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "Body": { + "occurrences": 66, + "arg_count": { + "min": 0, + "max": 2, + "common": 1 + }, + "patterns": [ + { + "count": 24, + "args": 0, + "types": [] + }, + { + "count": 15, + "args": 1, + "types": [ + "kwarg" + ] + }, + { + "count": 12, + "args": 2, + "types": [ + "kwarg", + "kwarg" + ] + }, + { + "count": 9, + "args": 1, + "types": [ + "lit" + ] + }, + { + "count": 6, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "Param": { + "occurrences": 18, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 9, + "args": 1, + "types": [ + "lit" + ] + }, + { + "count": 6, + "args": 1, + "types": [ + "other" + ] + }, + { + "count": 3, + "args": 1, + "types": [ + "kwarg" + ] + } + ] + }, + "APIKeyHeader": { + "occurrences": 9, + "arg_count": { + "min": 1, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 6, + "args": 2, + "types": [ + "kwarg", + "kwarg" + ] + }, + { + "count": 3, + "args": 1, + "types": [ + "kwarg" + ] + } + ] + }, + "ResponseModelV1": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "ErrorModelV1": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "ReturnModelV1": { + "occurrences": 4, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "kwarg" + ] + }, + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "skip_module_if_py_gte_314": { + "occurrences": 3, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 3, + "args": 0, + "types": [] + } + ] + }, + "ModelV1A": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "ParamModelV1": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "Dep": { + "occurrences": 3, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 3, + "args": 0, + "types": [] + } + ] + }, + "MyModel": { + "occurrences": 9, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 6, + "args": 1, + "types": [ + "kwarg" + ] + }, + { + "count": 3, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "bytes": { + "occurrences": 45, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 45, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "get_redoc_html": { + "occurrences": 12, + "arg_count": { + "min": 2, + "max": 4, + "common": 2 + }, + "patterns": [ + { + "count": 6, + "args": 2, + "types": [ + "kwarg", + "kwarg" + ] + }, + { + "count": 3, + "args": 4, + "types": [ + "kwarg", + "kwarg", + "kwarg", + "kwarg" + ] + }, + { + "count": 3, + "args": 3, + "types": [ + "kwarg", + "kwarg", + "kwarg" + ] + } + ] + }, + "get_swagger_ui_html": { + "occurrences": 15, + "arg_count": { + "min": 2, + "max": 5, + "common": 3 + }, + "patterns": [ + { + "count": 9, + "args": 3, + "types": [ + "kwarg", + "kwarg", + "kwarg" + ] + }, + { + "count": 3, + "args": 5, + "types": [ + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg" + ] + }, + { + "count": 3, + "args": 2, + "types": [ + "kwarg", + "kwarg" + ] + } + ] + }, + "Field": { + "occurrences": 30, + "arg_count": { + "min": 1, + "max": 2, + "common": 1 + }, + "patterns": [ + { + "count": 24, + "args": 1, + "types": [ + "kwarg" + ] + }, + { + "count": 6, + "args": 2, + "types": [ + "kwarg", + "kwarg" + ] + } + ] + }, + "HTTPBasic": { + "occurrences": 9, + "arg_count": { + "min": 1, + "max": 2, + "common": 1 + }, + "patterns": [ + { + "count": 6, + "args": 1, + "types": [ + "kwarg" + ] + }, + { + "count": 3, + "args": 2, + "types": [ + "kwarg", + "kwarg" + ] + } + ] + }, + "b64encode": { + "occurrences": 9, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 9, + "args": 1, + "types": [ + "lit" + ] + } + ] + }, + "FieldInfo": { + "occurrences": 12, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 12, + "args": 1, + "types": [ + "kwarg" + ] + } + ] + }, + "Missing": { + "occurrences": 6, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 6, + "args": 0, + "types": [] + } + ] + }, + "ConfigDict": { + "occurrences": 27, + "arg_count": { + "min": 1, + "max": 2, + "common": 1 + }, + "patterns": [ + { + "count": 24, + "args": 1, + "types": [ + "kwarg" + ] + }, + { + "count": 3, + "args": 2, + "types": [ + "kwarg", + "kwarg" + ] + } + ] + }, + "is_bytes_sequence_annotation": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "expr" + ] + } + ] + }, + "Model": { + "occurrences": 17, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 9, + "args": 1, + "types": [ + "kwarg" + ] + }, + { + "count": 8, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "cast": { + "occurrences": 33, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 21, + "args": 2, + "types": [ + "var", + "subscript" + ] + }, + { + "count": 6, + "args": 2, + "types": [ + "var", + "expr" + ] + }, + { + "count": 6, + "args": 2, + "types": [ + "var", + "call" + ] + } + ] + }, + "is_uploadfile_sequence_annotation": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "expr" + ] + } + ] + }, + "EmbeddedModel": { + "occurrences": 4, + "arg_count": { + "min": 0, + "max": 1, + "common": 0 + }, + "patterns": [ + { + "count": 3, + "args": 0, + "types": [] + }, + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "FormModel": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "FormModelExtraAllow": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "len": { + "occurrences": 76, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 60, + "args": 1, + "types": [ + "var" + ] + }, + { + "count": 4, + "args": 1, + "types": [ + "subscript" + ] + }, + { + "count": 4, + "args": 1, + "types": [ + "other" + ] + }, + { + "count": 4, + "args": 1, + "types": [ + "expr" + ] + }, + { + "count": 4, + "args": 1, + "types": [ + "call" + ] + } + ] + }, + "OAuth2AuthorizationCodeBearer": { + "occurrences": 12, + "arg_count": { + "min": 3, + "max": 4, + "common": 3 + }, + "patterns": [ + { + "count": 6, + "args": 3, + "types": [ + "kwarg", + "kwarg", + "kwarg" + ] + }, + { + "count": 6, + "args": 4, + "types": [ + "kwarg", + "kwarg", + "kwarg", + "kwarg" + ] + } + ] + }, + "ServerSentEvent": { + "occurrences": 42, + "arg_count": { + "min": 1, + "max": 3, + "common": 2 + }, + "patterns": [ + { + "count": 24, + "args": 2, + "types": [ + "kwarg", + "kwarg" + ] + }, + { + "count": 9, + "args": 1, + "types": [ + "kwarg" + ] + }, + { + "count": 6, + "args": 3, + "types": [ + "kwarg", + "kwarg", + "kwarg" + ] + }, + { + "count": 3, + "args": 2, + "types": [ + "kwarg", + "other" + ] + } + ] + }, + "sorted": { + "occurrences": 8, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 4, + "args": 1, + "types": [ + "var" + ] + }, + { + "count": 4, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "map": { + "occurrences": 4, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 4, + "args": 2, + "types": [ + "var", + "call" + ] + } + ] + }, + "find_spec": { + "occurrences": 6, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 6, + "args": 1, + "types": [ + "lit" + ] + } + ] + }, + "CustomError": { + "occurrences": 8, + "arg_count": { + "min": 0, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "lit" + ] + }, + { + "count": 3, + "args": 0, + "types": [] + }, + { + "count": 2, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "JsonApiResponse": { + "occurrences": 4, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 4, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "Error": { + "occurrences": 4, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 4, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "JsonApiError": { + "occurrences": 4, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 4, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "Event": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "Invoice": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "InvoiceEvent": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "InvoiceEventReceived": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "OpenIdConnect": { + "occurrences": 9, + "arg_count": { + "min": 1, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 6, + "args": 2, + "types": [ + "kwarg", + "kwarg" + ] + }, + { + "count": 3, + "args": 1, + "types": [ + "kwarg" + ] + } + ] + }, + "jsonable_encoder": { + "occurrences": 165, + "arg_count": { + "min": 1, + "max": 3, + "common": 2 + }, + "patterns": [ + { + "count": 87, + "args": 2, + "types": [ + "var", + "kwarg" + ] + }, + { + "count": 72, + "args": 1, + "types": [ + "var" + ] + }, + { + "count": 3, + "args": 3, + "types": [ + "var", + "kwarg", + "kwarg" + ] + }, + { + "count": 3, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "field_serializer": { + "occurrences": 12, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 12, + "args": 1, + "types": [ + "lit" + ] + } + ] + }, + "__import__": { + "occurrences": 12, + "arg_count": { + "min": 1, + "max": 2, + "common": 1 + }, + "patterns": [ + { + "count": 8, + "args": 1, + "types": [ + "lit" + ] + }, + { + "count": 4, + "args": 2, + "types": [ + "var", + "kwarg" + ] + } + ] + }, + "datetime": { + "occurrences": 87, + "arg_count": { + "min": 3, + "max": 4, + "common": 3 + }, + "patterns": [ + { + "count": 78, + "args": 3, + "types": [ + "lit", + "lit", + "lit" + ] + }, + { + "count": 9, + "args": 4, + "types": [ + "lit", + "lit", + "lit", + "lit" + ] + } + ] + }, + "RoleEnum": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "ModelV1": { + "occurrences": 4, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "kwarg" + ] + }, + { + "count": 1, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "PurePosixPath": { + "occurrences": 3, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 3, + "args": 2, + "types": [ + "lit", + "lit" + ] + } + ] + }, + "isnan": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "subscript" + ] + } + ] + }, + "ModelWithCustomEncoderSubclass": { + "occurrences": 4, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "kwarg" + ] + }, + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "ModelWithPath": { + "occurrences": 12, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 9, + "args": 1, + "types": [ + "kwarg" + ] + }, + { + "count": 3, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "PurePath": { + "occurrences": 6, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 6, + "args": 2, + "types": [ + "lit", + "lit" + ] + } + ] + }, + "ModelWithCustomEncoder": { + "occurrences": 4, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "kwarg" + ] + }, + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "PureWindowsPath": { + "occurrences": 3, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 3, + "args": 2, + "types": [ + "lit", + "lit" + ] + } + ] + }, + "ModelWithAlias": { + "occurrences": 7, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 6, + "args": 1, + "types": [ + "kwarg" + ] + }, + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "Color": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "lit" + ] + } + ] + }, + "custom_enum_encoder": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "isinf": { + "occurrences": 6, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 6, + "args": 1, + "types": [ + "subscript" + ] + } + ] + }, + "str": { + "occurrences": 175, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 90, + "args": 1, + "types": [ + "other" + ] + }, + { + "count": 75, + "args": 1, + "types": [ + "var" + ] + }, + { + "count": 10, + "args": 1, + "types": [ + "expr" + ] + } + ] + }, + "Decimal": { + "occurrences": 18, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 18, + "args": 1, + "types": [ + "lit" + ] + } + ] + }, + "DictablePerson": { + "occurrences": 4, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "kwarg" + ] + }, + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "Pet": { + "occurrences": 3, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 3, + "args": 2, + "types": [ + "kwarg", + "kwarg" + ] + } + ] + }, + "NotImplementedError": { + "occurrences": 12, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 12, + "args": 0, + "types": [] + } + ] + }, + "ModelWithConfig": { + "occurrences": 4, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "kwarg" + ] + }, + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "ModelWithDefault": { + "occurrences": 4, + "arg_count": { + "min": 1, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 3, + "args": 2, + "types": [ + "kwarg", + "kwarg" + ] + }, + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "Unserializable": { + "occurrences": 3, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 3, + "args": 0, + "types": [] + } + ] + }, + "MyDict": { + "occurrences": 4, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "kwarg" + ] + }, + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "safe_datetime": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "deque": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "DictablePet": { + "occurrences": 4, + "arg_count": { + "min": 1, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 3, + "args": 2, + "types": [ + "kwarg", + "kwarg" + ] + }, + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "Person": { + "occurrences": 4, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "kwarg" + ] + }, + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "MyEnum": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "ModelWithDatetimeField": { + "occurrences": 4, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "kwarg" + ] + }, + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "ExtendedItem": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "Product": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "HTTPBase": { + "occurrences": 9, + "arg_count": { + "min": 1, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 6, + "args": 2, + "types": [ + "kwarg", + "kwarg" + ] + }, + { + "count": 3, + "args": 1, + "types": [ + "kwarg" + ] + } + ] + }, + "TypeAliasType": { + "occurrences": 3, + "arg_count": { + "min": 3, + "max": 3, + "common": 3 + }, + "patterns": [ + { + "count": 3, + "args": 3, + "types": [ + "lit", + "subscript", + "kwarg" + ] + } + ] + }, + "CustomModel": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "Message": { + "occurrences": 5, + "arg_count": { + "min": 1, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 3, + "args": 2, + "types": [ + "kwarg", + "kwarg" + ] + }, + { + "count": 2, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "MessageOutput": { + "occurrences": 4, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "kwarg" + ] + }, + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "MessageEventType": { + "occurrences": 1, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 1, + "args": 2, + "types": [ + "var", + "var" + ] + } + ] + }, + "MessageEvent": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "ModelWithRef": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "OtherItem": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "Model2": { + "occurrences": 11, + "arg_count": { + "min": 1, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 9, + "args": 2, + "types": [ + "kwarg", + "kwarg" + ] + }, + { + "count": 2, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "Model3": { + "occurrences": 5, + "arg_count": { + "min": 1, + "max": 3, + "common": 3 + }, + "patterns": [ + { + "count": 3, + "args": 3, + "types": [ + "kwarg", + "kwarg", + "kwarg" + ] + }, + { + "count": 2, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "DBUser": { + "occurrences": 40, + "arg_count": { + "min": 1, + "max": 3, + "common": 3 + }, + "patterns": [ + { + "count": 39, + "args": 3, + "types": [ + "kwarg", + "kwarg", + "kwarg" + ] + }, + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "BaseUser": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "Response": { + "occurrences": 6, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 6, + "args": 1, + "types": [ + "kwarg" + ] + } + ] + }, + "acquire_session": { + "occurrences": 12, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 12, + "args": 0, + "types": [] + } + ] + }, + "list": { + "occurrences": 30, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 20, + "args": 1, + "types": [ + "call" + ] + }, + { + "count": 10, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "Items": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "HTTPBearer": { + "occurrences": 21, + "arg_count": { + "min": 0, + "max": 1, + "common": 0 + }, + "patterns": [ + { + "count": 15, + "args": 0, + "types": [] + }, + { + "count": 6, + "args": 1, + "types": [ + "kwarg" + ] + } + ] + }, + "CallableDependency": { + "occurrences": 6, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 6, + "args": 0, + "types": [] + } + ] + }, + "partial": { + "occurrences": 39, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 27, + "args": 2, + "types": [ + "var", + "lit" + ] + }, + { + "count": 12, + "args": 2, + "types": [ + "other", + "lit" + ] + } + ] + }, + "AsyncCallableGenDependency": { + "occurrences": 6, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 6, + "args": 0, + "types": [] + } + ] + }, + "MethodsDependency": { + "occurrences": 6, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 6, + "args": 0, + "types": [] + } + ] + }, + "CallableGenDependency": { + "occurrences": 6, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 6, + "args": 0, + "types": [] + } + ] + }, + "AsyncCallableDependency": { + "occurrences": 6, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 6, + "args": 0, + "types": [] + } + ] + }, + "_make_orjson_app": { + "occurrences": 3, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 3, + "args": 0, + "types": [] + } + ] + }, + "UJSONResponse": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "kwarg" + ] + } + ] + }, + "_make_ujson_app": { + "occurrences": 3, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 3, + "args": 0, + "types": [] + } + ] + }, + "RequestValidationError": { + "occurrences": 6, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 6, + "args": 2, + "types": [ + "var", + "kwarg" + ] + } + ] + }, + "ExceptionCapture": { + "occurrences": 3, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 3, + "args": 0, + "types": [] + } + ] + }, + "HTTPDigest": { + "occurrences": 9, + "arg_count": { + "min": 0, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 6, + "args": 1, + "types": [ + "kwarg" + ] + }, + { + "count": 3, + "args": 0, + "types": [] + } + ] + }, + "State": { + "occurrences": 4, + "arg_count": { + "min": 0, + "max": 1, + "common": 0 + }, + "patterns": [ + { + "count": 3, + "args": 0, + "types": [] + }, + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "issubclass": { + "occurrences": 8, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 8, + "args": 2, + "types": [ + "other", + "var" + ] + } + ] + }, + "AsyncDependencyError": { + "occurrences": 7, + "arg_count": { + "min": 0, + "max": 1, + "common": 0 + }, + "patterns": [ + { + "count": 6, + "args": 0, + "types": [] + }, + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "OtherDependencyError": { + "occurrences": 19, + "arg_count": { + "min": 0, + "max": 1, + "common": 0 + }, + "patterns": [ + { + "count": 18, + "args": 0, + "types": [] + }, + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "SyncDependencyError": { + "occurrences": 7, + "arg_count": { + "min": 0, + "max": 1, + "common": 0 + }, + "patterns": [ + { + "count": 6, + "args": 0, + "types": [] + }, + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "call_next": { + "occurrences": 15, + "arg_count": { + "min": 0, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 9, + "args": 1, + "types": [ + "var" + ] + }, + { + "count": 6, + "args": 0, + "types": [] + } + ] + }, + "FooBaseModel": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "Foo": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "condecimal": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "kwarg" + ] + } + ] + }, + "IsOneOf": { + "occurrences": 15, + "arg_count": { + "min": 4, + "max": 4, + "common": 4 + }, + "patterns": [ + { + "count": 15, + "args": 4, + "types": [ + "other", + "other", + "other", + "other" + ] + } + ] + }, + "Model1": { + "occurrences": 10, + "arg_count": { + "min": 1, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 9, + "args": 2, + "types": [ + "kwarg", + "kwarg" + ] + }, + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "OAuth2PasswordBearer": { + "occurrences": 9, + "arg_count": { + "min": 1, + "max": 3, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 2, + "types": [ + "kwarg", + "kwarg" + ] + }, + { + "count": 3, + "args": 3, + "types": [ + "kwarg", + "kwarg", + "kwarg" + ] + }, + { + "count": 3, + "args": 1, + "types": [ + "kwarg" + ] + } + ] + }, + "ContextVar": { + "occurrences": 6, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 6, + "args": 2, + "types": [ + "lit", + "kwarg" + ] + } + ] + }, + "UserForm": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "CompanyForm": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "Tag": { + "occurrences": 12, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 12, + "args": 1, + "types": [ + "lit" + ] + } + ] + }, + "FirstItem": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "OAuth2": { + "occurrences": 9, + "arg_count": { + "min": 1, + "max": 3, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "kwarg" + ] + }, + { + "count": 3, + "args": 2, + "types": [ + "kwarg", + "kwarg" + ] + }, + { + "count": 3, + "args": 3, + "types": [ + "kwarg", + "kwarg", + "kwarg" + ] + } + ] + }, + "create_app": { + "occurrences": 6, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 6, + "args": 0, + "types": [] + } + ] + }, + "Facility": { + "occurrences": 4, + "arg_count": { + "min": 1, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 3, + "args": 2, + "types": [ + "kwarg", + "kwarg" + ] + }, + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "Address": { + "occurrences": 4, + "arg_count": { + "min": 1, + "max": 3, + "common": 3 + }, + "patterns": [ + { + "count": 3, + "args": 3, + "types": [ + "kwarg", + "kwarg", + "kwarg" + ] + }, + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "ModelDefaults": { + "occurrences": 13, + "arg_count": { + "min": 1, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 12, + "args": 2, + "types": [ + "kwarg", + "kwarg" + ] + }, + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "ModelSubclass": { + "occurrences": 4, + "arg_count": { + "min": 1, + "max": 3, + "common": 3 + }, + "patterns": [ + { + "count": 3, + "args": 3, + "types": [ + "kwarg", + "kwarg", + "kwarg" + ] + }, + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "SubModel": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "TypeAdapter": { + "occurrences": 9, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 6, + "args": 1, + "types": [ + "subscript" + ] + }, + { + "count": 3, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "PlainSerializer": { + "occurrences": 6, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 6, + "args": 1, + "types": [ + "lambda" + ] + } + ] + }, + "FakeNumpyArray": { + "occurrences": 6, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 6, + "args": 0, + "types": [] + } + ] + }, + "create_dependency": { + "occurrences": 24, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 24, + "args": 1, + "types": [ + "lit" + ] + } + ] + }, + "app": { + "occurrences": 9, + "arg_count": { + "min": 3, + "max": 3, + "common": 3 + }, + "patterns": [ + { + "count": 9, + "args": 3, + "types": [ + "var", + "var", + "var" + ] + } + ] + }, + "float": { + "occurrences": 5, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 5, + "args": 1, + "types": [ + "lit" + ] + } + ] + }, + "_run_asgi_and_cancel": { + "occurrences": 6, + "arg_count": { + "min": 3, + "max": 3, + "common": 3 + }, + "patterns": [ + { + "count": 6, + "args": 3, + "types": [ + "var", + "lit", + "kwarg" + ] + } + ] + }, + "APIKeyCookie": { + "occurrences": 9, + "arg_count": { + "min": 1, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 6, + "args": 2, + "types": [ + "kwarg", + "kwarg" + ] + }, + { + "count": 3, + "args": 1, + "types": [ + "kwarg" + ] + } + ] + }, + "Dog": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "Cat": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "Discriminator": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "ModelNoAlias": { + "occurrences": 4, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "kwarg" + ] + }, + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "UserBase": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "Shop": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "make_app": { + "occurrences": 12, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 9, + "args": 1, + "types": [ + "kwarg" + ] + }, + { + "count": 3, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "Middleware": { + "occurrences": 6, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 6, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "middleware_func": { + "occurrences": 3, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 3, + "args": 2, + "types": [ + "var", + "var" + ] + } + ] + }, + "WebSocket": { + "occurrences": 3, + "arg_count": { + "min": 3, + "max": 3, + "common": 3 + }, + "patterns": [ + { + "count": 3, + "args": 3, + "types": [ + "var", + "kwarg", + "kwarg" + ] + } + ] + }, + "IsPartialDict": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "ForwardRefModel": { + "occurrences": 4, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "kwarg" + ] + }, + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "PlatformRole": { + "occurrences": 1, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 1, + "args": 2, + "types": [ + "var", + "var" + ] + } + ] + }, + "OtherRole": { + "occurrences": 1, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 1, + "args": 2, + "types": [ + "var", + "var" + ] + } + ] + }, + "IsUUID": { + "occurrences": 3, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 3, + "args": 0, + "types": [] + } + ] + }, + "field": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "kwarg" + ] + } + ] + }, + "DummyClient": { + "occurrences": 3, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 3, + "args": 0, + "types": [] + } + ] + }, + "new_subscription": { + "occurrences": 3, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 3, + "args": 2, + "types": [ + "kwarg", + "kwarg" + ] + } + ] + }, + "Subscription": { + "occurrences": 5, + "arg_count": { + "min": 1, + "max": 3, + "common": 3 + }, + "patterns": [ + { + "count": 3, + "args": 3, + "types": [ + "kwarg", + "kwarg", + "kwarg" + ] + }, + { + "count": 2, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "MyUuid": { + "occurrences": 6, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 6, + "args": 1, + "types": [ + "lit" + ] + } + ] + }, + "vars": { + "occurrences": 4, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 4, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "TypeError": { + "occurrences": 4, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 4, + "args": 1, + "types": [ + "lit" + ] + } + ] + }, + "type": { + "occurrences": 5, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 5, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "SomeCustomClass": { + "occurrences": 4, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "kwarg" + ] + }, + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "raise_value_error": { + "occurrences": 3, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 3, + "args": 0, + "types": [] + } + ] + }, + "RuntimeError": { + "occurrences": 4, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 4, + "args": 1, + "types": [ + "lit" + ] + } + ] + }, + "f": { + "occurrences": 3, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 3, + "args": 2, + "types": [ + "other", + "other" + ] + } + ] + }, + "passthrough": { + "occurrences": 9, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 6, + "args": 1, + "types": [ + "var" + ] + }, + { + "count": 3, + "args": 1, + "types": [ + "call" + ] + } + ] + }, + "ResponseModel": { + "occurrences": 5, + "arg_count": { + "min": 0, + "max": 1, + "common": 0 + }, + "patterns": [ + { + "count": 3, + "args": 0, + "types": [] + }, + { + "count": 2, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "object": { + "occurrences": 15, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 15, + "args": 0, + "types": [] + } + ] + }, + "PlainTextResponse": { + "occurrences": 42, + "arg_count": { + "min": 1, + "max": 2, + "common": 1 + }, + "patterns": [ + { + "count": 33, + "args": 1, + "types": [ + "lit" + ] + }, + { + "count": 6, + "args": 1, + "types": [ + "subscript" + ] + }, + { + "count": 3, + "args": 2, + "types": [ + "lit", + "kwarg" + ] + } + ] + }, + "next": { + "occurrences": 24, + "arg_count": { + "min": 1, + "max": 3, + "common": 1 + }, + "patterns": [ + { + "count": 16, + "args": 1, + "types": [ + "call" + ] + }, + { + "count": 8, + "args": 3, + "types": [ + "var", + "other", + "other" + ] + } + ] + }, + "UnknownRoute": { + "occurrences": 4, + "arg_count": { + "min": 0, + "max": 1, + "common": 0 + }, + "patterns": [ + { + "count": 3, + "args": 0, + "types": [] + }, + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "iter_route_contexts": { + "occurrences": 15, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 15, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "super": { + "occurrences": 20, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 20, + "args": 0, + "types": [] + } + ] + }, + "Route": { + "occurrences": 27, + "arg_count": { + "min": 2, + "max": 3, + "common": 3 + }, + "patterns": [ + { + "count": 15, + "args": 3, + "types": [ + "lit", + "var", + "kwarg" + ] + }, + { + "count": 12, + "args": 2, + "types": [ + "lit", + "var" + ] + } + ] + }, + "Router": { + "occurrences": 6, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 6, + "args": 1, + "types": [ + "kwarg" + ] + } + ] + }, + "get_openapi": { + "occurrences": 6, + "arg_count": { + "min": 3, + "max": 4, + "common": 3 + }, + "patterns": [ + { + "count": 3, + "args": 3, + "types": [ + "kwarg", + "kwarg", + "kwarg" + ] + }, + { + "count": 3, + "args": 4, + "types": [ + "kwarg", + "kwarg", + "kwarg", + "kwarg" + ] + } + ] + }, + "dict": { + "occurrences": 15, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 10, + "args": 1, + "types": [ + "call" + ] + }, + { + "count": 5, + "args": 1, + "types": [ + "subscript" + ] + } + ] + }, + "_iter_included_route_candidates": { + "occurrences": 6, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 6, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "RejectingRoute": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "NoMatchFound": { + "occurrences": 3, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 3, + "args": 2, + "types": [ + "var", + "var" + ] + } + ] + }, + "HeaderRoute": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "AssertionError": { + "occurrences": 4, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 4, + "args": 1, + "types": [ + "lit" + ] + } + ] + }, + "HeaderRouter": { + "occurrences": 4, + "arg_count": { + "min": 0, + "max": 1, + "common": 0 + }, + "patterns": [ + { + "count": 3, + "args": 0, + "types": [] + }, + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "TrackingRouter": { + "occurrences": 7, + "arg_count": { + "min": 0, + "max": 1, + "common": 0 + }, + "patterns": [ + { + "count": 6, + "args": 0, + "types": [] + }, + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "Mount": { + "occurrences": 3, + "arg_count": { + "min": 3, + "max": 3, + "common": 3 + }, + "patterns": [ + { + "count": 3, + "args": 3, + "types": [ + "lit", + "kwarg", + "kwarg" + ] + } + ] + }, + "Host": { + "occurrences": 6, + "arg_count": { + "min": 3, + "max": 3, + "common": 3 + }, + "patterns": [ + { + "count": 6, + "args": 3, + "types": [ + "lit", + "var", + "kwarg" + ] + } + ] + }, + "handler": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "TrackingRoute": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "_restore_fastapi_scope_key": { + "occurrences": 3, + "arg_count": { + "min": 3, + "max": 3, + "common": 3 + }, + "patterns": [ + { + "count": 3, + "args": 3, + "types": [ + "var", + "lit", + "call" + ] + } + ] + }, + "get_typed_annotation": { + "occurrences": 3, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 3, + "args": 2, + "types": [ + "var", + "call" + ] + } + ] + }, + "globals": { + "occurrences": 4, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 4, + "args": 0, + "types": [] + } + ] + }, + "Default": { + "occurrences": 12, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 12, + "args": 1, + "types": [ + "lit" + ] + } + ] + }, + "UploadFile": { + "occurrences": 3, + "arg_count": { + "min": 3, + "max": 3, + "common": 3 + }, + "patterns": [ + { + "count": 3, + "args": 3, + "types": [ + "kwarg", + "kwarg", + "kwarg" + ] + } + ] + }, + "Schema": { + "occurrences": 6, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 6, + "args": 1, + "types": [ + "kwarg" + ] + } + ] + }, + "write_file": { + "occurrences": 189, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 183, + "args": 2, + "types": [ + "expr", + "lit" + ] + }, + { + "count": 6, + "args": 2, + "types": [ + "expr", + "var" + ] + } + ] + }, + "record_dependency": { + "occurrences": 21, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 21, + "args": 2, + "types": [ + "var", + "lit" + ] + } + ] + }, + "PartialRoute": { + "occurrences": 4, + "arg_count": { + "min": 0, + "max": 1, + "common": 0 + }, + "patterns": [ + { + "count": 3, + "args": 0, + "types": [] + }, + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "response": { + "occurrences": 3, + "arg_count": { + "min": 3, + "max": 3, + "common": 3 + }, + "patterns": [ + { + "count": 3, + "args": 3, + "types": [ + "var", + "var", + "var" + ] + } + ] + }, + "AsyncExitStack": { + "occurrences": 6, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 6, + "args": 0, + "types": [] + } + ] + }, + "hasattr": { + "occurrences": 8, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 8, + "args": 2, + "types": [ + "var", + "lit" + ] + } + ] + }, + "OSError": { + "occurrences": 8, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 4, + "args": 2, + "types": [ + "lit", + "lit" + ] + }, + { + "count": 4, + "args": 2, + "types": [ + "other", + "lit" + ] + } + ] + }, + "get_parameterless_without_scopes": { + "occurrences": 3, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 3, + "args": 0, + "types": [] + } + ] + }, + "any": { + "occurrences": 4, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 4, + "args": 2, + "types": [ + "expr", + "other" + ] + } + ] + }, + "ResponseLevel4": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "ResponseLevel1": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "ResponseLevel3": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "ResponseLevel0": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "ResponseLevel5": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "ResponseLevel2": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "StarletteHTTPException": { + "occurrences": 3, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 3, + "args": 2, + "types": [ + "kwarg", + "kwarg" + ] + } + ] + }, + "ord": { + "occurrences": 8, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 8, + "args": 1, + "types": [ + "lit" + ] + } + ] + }, + "original_read": { + "occurrences": 3, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 3, + "args": 2, + "types": [ + "var", + "var" + ] + } + ] + }, + "TypeVar": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "lit" + ] + } + ] + }, + "open": { + "occurrences": 8, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 8, + "args": 2, + "types": [ + "var", + "lit" + ] + } + ] + }, + "receive": { + "occurrences": 3, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 3, + "args": 0, + "types": [] + } + ] + }, + "release_notes_content": { + "occurrences": 33, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 33, + "args": 1, + "types": [ + "lit" + ] + } + ] + }, + "update_version_file": { + "occurrences": 6, + "arg_count": { + "min": 3, + "max": 3, + "common": 3 + }, + "patterns": [ + { + "count": 6, + "args": 3, + "types": [ + "var", + "lit", + "call" + ] + } + ] + }, + "CliRunner": { + "occurrences": 3, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 3, + "args": 0, + "types": [] + } + ] + }, + "get_release_notes_body": { + "occurrences": 15, + "arg_count": { + "min": 3, + "max": 3, + "common": 3 + }, + "patterns": [ + { + "count": 15, + "args": 3, + "types": [ + "var", + "lit", + "call" + ] + } + ] + }, + "bump_version": { + "occurrences": 3, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 3, + "args": 2, + "types": [ + "var", + "var" + ] + } + ] + }, + "date": { + "occurrences": 6, + "arg_count": { + "min": 3, + "max": 3, + "common": 3 + }, + "patterns": [ + { + "count": 6, + "args": 3, + "types": [ + "lit", + "lit", + "lit" + ] + } + ] + }, + "update_release_notes": { + "occurrences": 6, + "arg_count": { + "min": 4, + "max": 4, + "common": 4 + }, + "patterns": [ + { + "count": 6, + "args": 4, + "types": [ + "var", + "lit", + "call", + "call" + ] + } + ] + }, + "AuthHeaders": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "Rectangle": { + "occurrences": 7, + "arg_count": { + "min": 1, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 6, + "args": 2, + "types": [ + "kwarg", + "kwarg" + ] + }, + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "get_app_client": { + "occurrences": 36, + "arg_count": { + "min": 0, + "max": 1, + "common": 0 + }, + "patterns": [ + { + "count": 18, + "args": 0, + "types": [] + }, + { + "count": 18, + "args": 1, + "types": [ + "kwarg" + ] + } + ] + }, + "SubItem": { + "occurrences": 4, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "kwarg" + ] + }, + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "WithComputedField": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "PersonBase": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "PersonCreate": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "PersonRead": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "instance": { + "occurrences": 12, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 12, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "quoted_name": { + "occurrences": 3, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 3, + "args": 2, + "types": [ + "kwarg", + "kwarg" + ] + } + ] + }, + "patch": { + "occurrences": 6, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 6, + "args": 2, + "types": [ + "lit", + "kwarg" + ] + } + ] + } + } + }, + { + "label": "tests/benchmarks", + "method_count": 48, + "algorithm": "CRX", + "grammar": "root ::= (\"_bench_get\" | \"benchmark\" | \"body\" | \"client\" | \"status_code\")?+ \"return\"?", + "mdl_score": 4690, + "imports": [ + "import json", + "import sys", + "from collections.abc import Iterator", + "from typing import Annotated, Any", + "import pytest", + "from fastapi import Depends, FastAPI", + "from fastapi.testclient import TestClient", + "from pydantic import BaseModel" + ], + "arg_patterns": { + "LargeOut": { + "occurrences": 13, + "arg_count": { + "min": 1, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 12, + "args": 2, + "types": [ + "kwarg", + "kwarg" + ] + }, + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "_bench_get": { + "occurrences": 48, + "arg_count": { + "min": 3, + "max": 3, + "common": 3 + }, + "patterns": [ + { + "count": 48, + "args": 3, + "types": [ + "var", + "var", + "lit" + ] + } + ] + }, + "_expected_large_payload_json_bytes": { + "occurrences": 24, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 24, + "args": 0, + "types": [] + } + ] + }, + "FastAPI": { + "occurrences": 3, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 3, + "args": 0, + "types": [] + } + ] + }, + "list": { + "occurrences": 5, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 5, + "args": 1, + "types": [ + "call" + ] + } + ] + }, + "ItemOut": { + "occurrences": 19, + "arg_count": { + "min": 1, + "max": 3, + "common": 3 + }, + "patterns": [ + { + "count": 18, + "args": 3, + "types": [ + "kwarg", + "kwarg", + "kwarg" + ] + }, + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "len": { + "occurrences": 8, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 8, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "Depends": { + "occurrences": 27, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 27, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "benchmark": { + "occurrences": 6, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 6, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "range": { + "occurrences": 10, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 10, + "args": 1, + "types": [ + "lit" + ] + } + ] + }, + "_bench_post_json": { + "occurrences": 12, + "arg_count": { + "min": 4, + "max": 4, + "common": 4 + }, + "patterns": [ + { + "count": 12, + "args": 4, + "types": [ + "var", + "var", + "lit", + "kwarg" + ] + } + ] + }, + "TestClient": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "ItemIn": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "LargeIn": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "class": { + "occurrences": 4, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 4, + "args": 1, + "types": [ + "var" + ] + } + ] + } + } + }, + { + "label": "tests/test_modules_same_name_body", + "method_count": 5, + "algorithm": "CRX", + "grammar": "root ::= (\"client\" | \"data\" | \"get\" | \"json\" | \"path\" | \"post\" | \"response\" | \"status_code\" | \"text\")?+ \"return\"? \"snapshot\"?+ \"a\"? \"b\"?", + "mdl_score": 29763, + "imports": [ + "from fastapi import APIRouter, Body", + "import pytest", + "from fastapi.testclient import TestClient", + "from inline_snapshot import snapshot", + "from .app.main import app" + ], + "arg_patterns": { + "APIRouter": { + "occurrences": 6, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 6, + "args": 0, + "types": [] + } + ] + }, + "Body": { + "occurrences": 12, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 12, + "args": 0, + "types": [] + } + ] + }, + "TestClient": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "snapshot": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "other" + ] + } + ] + } + } + }, + { + "label": "tests/test_request_params/test_body", + "method_count": 113, + "algorithm": "CRX", + "grammar": "root ::= (\"TestClient\" | \"app\" | \"client\" | \"json\" | \"path\" | \"post\" | \"response\" | \"status_code\" | \"text\")+", + "mdl_score": 113175, + "imports": [ + "from typing import Annotated", + "import pytest", + "from dirty_equals import IsOneOf, IsPartialDict", + "from fastapi import Body, FastAPI", + "from fastapi.testclient import TestClient", + "from pydantic import BaseModel, Field", + "from .utils import get_body_model_name", + "from typing import Annotated, Any", + "from dirty_equals import IsOneOf", + "from typing import Any" + ], + "arg_patterns": { + "TestClient": { + "occurrences": 192, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 192, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "Body": { + "occurrences": 48, + "arg_count": { + "min": 1, + "max": 3, + "common": 2 + }, + "patterns": [ + { + "count": 24, + "args": 2, + "types": [ + "kwarg", + "kwarg" + ] + }, + { + "count": 12, + "args": 1, + "types": [ + "kwarg" + ] + }, + { + "count": 12, + "args": 3, + "types": [ + "kwarg", + "kwarg", + "kwarg" + ] + } + ] + }, + "get_body_model_name": { + "occurrences": 48, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 48, + "args": 2, + "types": [ + "var", + "var" + ] + } + ] + }, + "Field": { + "occurrences": 36, + "arg_count": { + "min": 1, + "max": 3, + "common": 2 + }, + "patterns": [ + { + "count": 12, + "args": 2, + "types": [ + "lit", + "kwarg" + ] + }, + { + "count": 12, + "args": 1, + "types": [ + "kwarg" + ] + }, + { + "count": 6, + "args": 3, + "types": [ + "lit", + "kwarg", + "kwarg" + ] + }, + { + "count": 6, + "args": 2, + "types": [ + "kwarg", + "kwarg" + ] + } + ] + }, + "FastAPI": { + "occurrences": 12, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 12, + "args": 0, + "types": [] + } + ] + }, + "BodyModelOptionalAlias": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "BodyModelOptionalStr": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "BodyModelOptionalValidationAlias": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "BodyModelOptionalAliasAndValidationAlias": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "class": { + "occurrences": 16, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 16, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "BodyModelOptionalListAliasAndValidationAlias": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "BodyModelOptionalListAlias": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "BodyModelOptionalListStr": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "BodyModelOptionalListValidationAlias": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "BodyModelRequiredListAlias": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "IsOneOf": { + "occurrences": 72, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 45, + "args": 2, + "types": [ + "lit", + "other" + ] + }, + { + "count": 24, + "args": 2, + "types": [ + "other", + "other" + ] + }, + { + "count": 3, + "args": 2, + "types": [ + "lit", + "call" + ] + } + ] + }, + "BodyModelRequiredListValidationAlias": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "IsPartialDict": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "BodyModelRequiredListStr": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "BodyModelRequiredListAliasAndValidationAlias": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "BodyModelRequiredAlias": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "BodyModelRequiredStr": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "BodyModelRequiredValidationAlias": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "BodyModelRequiredAliasAndValidationAlias": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + } + } + }, + { + "label": "tests/test_request_params/test_cookie", + "method_count": 48, + "algorithm": "CRX", + "grammar": "root ::= (\"TestClient\" | \"app\" | \"client\" | \"cookies\" | \"get\" | \"path\" | \"response\" | \"set\" | \"status_code\")?+ \"json\"?+", + "mdl_score": 16578, + "imports": [ + "from typing import Annotated", + "import pytest", + "from fastapi import Cookie, FastAPI", + "from fastapi.testclient import TestClient", + "from inline_snapshot import snapshot", + "from pydantic import BaseModel, Field", + "from dirty_equals import IsOneOf" + ], + "arg_patterns": { + "Cookie": { + "occurrences": 48, + "arg_count": { + "min": 0, + "max": 2, + "common": 0 + }, + "patterns": [ + { + "count": 30, + "args": 0, + "types": [] + }, + { + "count": 12, + "args": 1, + "types": [ + "kwarg" + ] + }, + { + "count": 6, + "args": 2, + "types": [ + "kwarg", + "kwarg" + ] + } + ] + }, + "Field": { + "occurrences": 18, + "arg_count": { + "min": 1, + "max": 3, + "common": 2 + }, + "patterns": [ + { + "count": 6, + "args": 2, + "types": [ + "lit", + "kwarg" + ] + }, + { + "count": 6, + "args": 1, + "types": [ + "kwarg" + ] + }, + { + "count": 3, + "args": 3, + "types": [ + "lit", + "kwarg", + "kwarg" + ] + }, + { + "count": 3, + "args": 2, + "types": [ + "kwarg", + "kwarg" + ] + } + ] + }, + "TestClient": { + "occurrences": 72, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 72, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "snapshot": { + "occurrences": 24, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 24, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "CookieModelOptionalAlias": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "CookieModelOptionalValidationAlias": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "CookieModelOptionalStr": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "CookieModelOptionalAliasAndValidationAlias": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "FastAPI": { + "occurrences": 6, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 6, + "args": 0, + "types": [] + } + ] + }, + "class": { + "occurrences": 8, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 8, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "IsOneOf": { + "occurrences": 24, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 24, + "args": 2, + "types": [ + "lit", + "other" + ] + } + ] + }, + "CookieModelRequiredAliasAndValidationAlias": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "CookieModelRequiredStr": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "CookieModelRequiredAlias": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "CookieModelRequiredValidationAlias": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + } + } + }, + { + "label": "tests/test_request_params/test_file", + "method_count": 97, + "algorithm": "CRX", + "grammar": "root ::= (\"TestClient\" | \"app\" | \"client\" | \"files\" | \"path\" | \"post\" | \"response\" | \"status_code\")?+ \"json\"?+", + "mdl_score": 7752, + "imports": [ + "from typing import Annotated", + "import pytest", + "from fastapi import FastAPI, File, UploadFile", + "from fastapi.testclient import TestClient", + "from .utils import get_body_model_name", + "from typing import Any" + ], + "arg_patterns": { + "get_body_model_name": { + "occurrences": 48, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 48, + "args": 2, + "types": [ + "var", + "var" + ] + } + ] + }, + "TestClient": { + "occurrences": 144, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 144, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "len": { + "occurrences": 64, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 64, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "File": { + "occurrences": 96, + "arg_count": { + "min": 0, + "max": 2, + "common": 1 + }, + "patterns": [ + { + "count": 48, + "args": 1, + "types": [ + "kwarg" + ] + }, + { + "count": 24, + "args": 0, + "types": [] + }, + { + "count": 24, + "args": 2, + "types": [ + "kwarg", + "kwarg" + ] + } + ] + }, + "FastAPI": { + "occurrences": 12, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 12, + "args": 0, + "types": [] + } + ] + } + } + }, + { + "label": "tests/test_request_params/test_form", + "method_count": 97, + "algorithm": "CRX", + "grammar": "root ::= (\"TestClient\" | \"app\" | \"client\" | \"data\" | \"path\" | \"post\" | \"response\" | \"status_code\")?+ \"json\"?+", + "mdl_score": 8920, + "imports": [ + "from typing import Annotated", + "import pytest", + "from dirty_equals import IsOneOf, IsPartialDict", + "from fastapi import FastAPI, Form", + "from fastapi.testclient import TestClient", + "from pydantic import BaseModel, Field", + "from .utils import get_body_model_name", + "from dirty_equals import IsOneOf", + "from typing import Any" + ], + "arg_patterns": { + "Field": { + "occurrences": 36, + "arg_count": { + "min": 1, + "max": 3, + "common": 2 + }, + "patterns": [ + { + "count": 12, + "args": 1, + "types": [ + "kwarg" + ] + }, + { + "count": 12, + "args": 2, + "types": [ + "lit", + "kwarg" + ] + }, + { + "count": 6, + "args": 2, + "types": [ + "kwarg", + "kwarg" + ] + }, + { + "count": 6, + "args": 3, + "types": [ + "lit", + "kwarg", + "kwarg" + ] + } + ] + }, + "TestClient": { + "occurrences": 144, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 144, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "get_body_model_name": { + "occurrences": 48, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 48, + "args": 2, + "types": [ + "var", + "var" + ] + } + ] + }, + "Form": { + "occurrences": 96, + "arg_count": { + "min": 0, + "max": 2, + "common": 0 + }, + "patterns": [ + { + "count": 60, + "args": 0, + "types": [] + }, + { + "count": 24, + "args": 1, + "types": [ + "kwarg" + ] + }, + { + "count": 12, + "args": 2, + "types": [ + "kwarg", + "kwarg" + ] + } + ] + }, + "IsOneOf": { + "occurrences": 48, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 45, + "args": 2, + "types": [ + "lit", + "other" + ] + }, + { + "count": 3, + "args": 2, + "types": [ + "lit", + "call" + ] + } + ] + }, + "FastAPI": { + "occurrences": 12, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 12, + "args": 0, + "types": [] + } + ] + }, + "IsPartialDict": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "FormModelRequiredListStr": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "FormModelRequiredListAliasAndValidationAlias": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "FormModelRequiredListAlias": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "FormModelRequiredListValidationAlias": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "class": { + "occurrences": 16, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 16, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "FormModelOptionalAlias": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "FormModelOptionalValidationAlias": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "FormModelOptionalStr": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "FormModelOptionalAliasAndValidationAlias": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "FormModelOptionalListAlias": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "FormModelOptionalListAliasAndValidationAlias": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "FormModelOptionalListStr": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "FormModelOptionalListValidationAlias": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "FormModelRequiredAliasAndValidationAlias": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "FormModelRequiredAlias": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "FormModelRequiredStr": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "FormModelRequiredValidationAlias": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + } + } + }, + { + "label": "tests/test_request_params/test_header", + "method_count": 96, + "algorithm": "CRX", + "grammar": "root ::= (\"TestClient\" | \"app\" | \"client\" | \"get\" | \"headers\" | \"path\" | \"response\" | \"status_code\")?+ \"json\"?+", + "mdl_score": 8920, + "imports": [ + "from typing import Annotated", + "import pytest", + "from dirty_equals import AnyThing, IsOneOf, IsPartialDict", + "from fastapi import FastAPI, Header", + "from fastapi.testclient import TestClient", + "from inline_snapshot import snapshot", + "from pydantic import BaseModel, Field" + ], + "arg_patterns": { + "TestClient": { + "occurrences": 144, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 144, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "Field": { + "occurrences": 36, + "arg_count": { + "min": 1, + "max": 3, + "common": 2 + }, + "patterns": [ + { + "count": 12, + "args": 2, + "types": [ + "lit", + "kwarg" + ] + }, + { + "count": 12, + "args": 1, + "types": [ + "kwarg" + ] + }, + { + "count": 6, + "args": 3, + "types": [ + "lit", + "kwarg", + "kwarg" + ] + }, + { + "count": 6, + "args": 2, + "types": [ + "kwarg", + "kwarg" + ] + } + ] + }, + "Header": { + "occurrences": 96, + "arg_count": { + "min": 0, + "max": 2, + "common": 0 + }, + "patterns": [ + { + "count": 60, + "args": 0, + "types": [] + }, + { + "count": 24, + "args": 1, + "types": [ + "kwarg" + ] + }, + { + "count": 12, + "args": 2, + "types": [ + "kwarg", + "kwarg" + ] + } + ] + }, + "FastAPI": { + "occurrences": 12, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 12, + "args": 0, + "types": [] + } + ] + }, + "HeaderModelOptionalStr": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "snapshot": { + "occurrences": 48, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 48, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "HeaderModelOptionalValidationAlias": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "HeaderModelOptionalAlias": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "HeaderModelOptionalAliasAndValidationAlias": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "class": { + "occurrences": 16, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 16, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "IsOneOf": { + "occurrences": 24, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 24, + "args": 2, + "types": [ + "lit", + "call" + ] + } + ] + }, + "IsPartialDict": { + "occurrences": 24, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 24, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "HeaderModelRequiredListValidationAlias": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "HeaderModelRequiredListAliasAndValidationAlias": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "HeaderModelRequiredListAlias": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "HeaderModelRequiredListStr": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "HeaderModelOptionalListStr": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "HeaderModelOptionalListValidationAlias": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "HeaderModelOptionalListAlias": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "HeaderModelOptionalListAliasAndValidationAlias": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "HeaderModelRequiredStr": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "HeaderModelRequiredAliasAndValidationAlias": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "HeaderModelRequiredAlias": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "HeaderModelRequiredValidationAlias": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + } + } + }, + { + "label": "tests/test_request_params/test_path", + "method_count": 6, + "algorithm": "CRX", + "grammar": "root ::= (\"TestClient\" | \"app\" | \"client\" | \"get\" | \"openapi\" | \"path\" | \"response\" | \"status_code\" | \"text\")?+ \"return\"? \"json\"?+ \"snapshot\"?+ \"p\"? (\"Is\" | \"expected_title\")?+ \"expected_name\"?", + "mdl_score": 522, + "imports": [ + "from typing import Annotated", + "import pytest", + "from fastapi import FastAPI, Path", + "from fastapi.testclient import TestClient", + "from inline_snapshot import Is, snapshot" + ], + "arg_patterns": { + "TestClient": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "snapshot": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "Is": { + "occurrences": 6, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 6, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "Path": { + "occurrences": 12, + "arg_count": { + "min": 0, + "max": 2, + "common": 1 + }, + "patterns": [ + { + "count": 6, + "args": 1, + "types": [ + "kwarg" + ] + }, + { + "count": 3, + "args": 2, + "types": [ + "kwarg", + "kwarg" + ] + }, + { + "count": 3, + "args": 0, + "types": [] + } + ] + }, + "FastAPI": { + "occurrences": 3, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 3, + "args": 0, + "types": [] + } + ] + } + } + }, + { + "label": "tests/test_request_params/test_query", + "method_count": 96, + "algorithm": "CRX", + "grammar": "root ::= (\"TestClient\" | \"app\" | \"client\" | \"get\" | \"path\" | \"response\" | \"status_code\")?+ \"json\"?+", + "mdl_score": 5712, + "imports": [ + "from typing import Annotated", + "import pytest", + "from dirty_equals import IsOneOf", + "from fastapi import FastAPI, Query", + "from fastapi.testclient import TestClient", + "from inline_snapshot import snapshot", + "from pydantic import BaseModel, Field" + ], + "arg_patterns": { + "Query": { + "occurrences": 90, + "arg_count": { + "min": 0, + "max": 2, + "common": 0 + }, + "patterns": [ + { + "count": 54, + "args": 0, + "types": [] + }, + { + "count": 24, + "args": 1, + "types": [ + "kwarg" + ] + }, + { + "count": 12, + "args": 2, + "types": [ + "kwarg", + "kwarg" + ] + } + ] + }, + "TestClient": { + "occurrences": 144, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 144, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "Field": { + "occurrences": 36, + "arg_count": { + "min": 1, + "max": 3, + "common": 2 + }, + "patterns": [ + { + "count": 12, + "args": 2, + "types": [ + "lit", + "kwarg" + ] + }, + { + "count": 12, + "args": 1, + "types": [ + "kwarg" + ] + }, + { + "count": 6, + "args": 3, + "types": [ + "lit", + "kwarg", + "kwarg" + ] + }, + { + "count": 6, + "args": 2, + "types": [ + "kwarg", + "kwarg" + ] + } + ] + }, + "snapshot": { + "occurrences": 48, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 48, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "FastAPI": { + "occurrences": 12, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 12, + "args": 0, + "types": [] + } + ] + }, + "QueryModelOptionalListAlias": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "QueryModelOptionalListAliasAndValidationAlias": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "QueryModelOptionalListStr": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "QueryModelOptionalListValidationAlias": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "class": { + "occurrences": 16, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 16, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "QueryModelRequiredAliasAndValidationAlias": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "IsOneOf": { + "occurrences": 48, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 48, + "args": 2, + "types": [ + "lit", + "other" + ] + } + ] + }, + "QueryModelRequiredAlias": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "QueryModelRequiredValidationAlias": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "QueryModelRequiredStr": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "QueryModelOptionalAliasAndValidationAlias": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "QueryModelOptionalAlias": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "QueryModelOptionalValidationAlias": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "QueryModelOptionalStr": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "QueryModelRequiredListAlias": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "QueryModelRequiredListAliasAndValidationAlias": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "QueryModelRequiredListValidationAlias": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "QueryModelRequiredListStr": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + } + } + }, + { + "label": "tests/test_tutorial", + "method_count": 16, + "algorithm": "CRX", + "grammar": "root ::= (\"client\" | \"get\" | \"json\" | \"response\" | \"status_code\" | \"text\")?+ \"headers\"?", + "mdl_score": 17280, + "imports": [ + "import pytest", + "from docs_src.async_tests.app_a_py310.test_main import test_root", + "from fastapi.testclient import TestClient", + "from docs_src.cors.tutorial001_py310 import app", + "from inline_snapshot import snapshot", + "from docs_src.extending_openapi.tutorial001_py310 import app", + "from docs_src.middleware.tutorial001_py310 import app", + "from docs_src.response_change_status_code.tutorial001_py310 import app", + "from docs_src.response_cookies.tutorial001_py310 import app", + "from docs_src.response_cookies.tutorial002_py310 import app", + "from docs_src.response_headers.tutorial001_py310 import app", + "from docs_src.response_headers.tutorial002_py310 import app", + "import os", + "import shutil", + "from tests.utils import workdir_lock", + "from docs_src.templates.tutorial001_py310 import app", + "from docs_src.using_request_directly.tutorial001_py310 import app", + "from docs_src.wsgi.tutorial001_py310 import app" + ], + "arg_patterns": { + "TestClient": { + "occurrences": 33, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 33, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "print": { + "occurrences": 4, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 4, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "test_root": { + "occurrences": 3, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 3, + "args": 0, + "types": [] + } + ] + }, + "snapshot": { + "occurrences": 9, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 9, + "args": 1, + "types": [ + "other" + ] + } + ] + } + } + }, + { + "label": "tests/test_tutorial/test_additional_responses", + "method_count": 14, + "algorithm": "CRX", + "grammar": "root ::= (\"client\" | \"get\" | \"response\" | \"status_code\" | \"text\")?+ \"json\"?+ \"snapshot\"?+", + "mdl_score": 470, + "imports": [ + "from fastapi.testclient import TestClient", + "from inline_snapshot import snapshot", + "from docs_src.additional_responses.tutorial001_py310 import app", + "import importlib", + "import os", + "import shutil", + "import pytest", + "from tests.utils import needs_py310, workdir_lock", + "from docs_src.additional_responses.tutorial003_py310 import app" + ], + "arg_patterns": { + "TestClient": { + "occurrences": 12, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 6, + "args": 1, + "types": [ + "var" + ] + }, + { + "count": 6, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "snapshot": { + "occurrences": 12, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 12, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "len": { + "occurrences": 8, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 8, + "args": 1, + "types": [ + "other" + ] + } + ] + } + } + }, + { + "label": "tests/test_tutorial/test_additional_status_codes", + "method_count": 3, + "algorithm": "CRX", + "grammar": "root ::= (\"TestClient\" | \"app\" | \"client\" | \"import_module\" | \"importlib\" | \"json\" | \"mod\" | \"param\" | \"put\" | \"request\" | \"response\" | \"return\" | \"status_code\" | \"text\")+", + "mdl_score": 895384, + "imports": [ + "import importlib", + "import pytest", + "from fastapi.testclient import TestClient", + "from ...utils import needs_py310" + ], + "arg_patterns": { + "TestClient": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "other" + ] + } + ] + } + } + }, + { + "label": "tests/test_tutorial/test_advanced_middleware", + "method_count": 4, + "algorithm": "CRX", + "grammar": "root ::= \"return\"? \"PlainTextResponse\"?+ (\"TestClient\" | \"app\" | \"base_url\" | \"client\" | \"follow_redirects\" | \"get\" | \"headers\" | \"int\" | \"response\" | \"status_code\" | \"text\")?+", + "mdl_score": 66319, + "imports": [ + "from fastapi.testclient import TestClient", + "from docs_src.advanced_middleware.tutorial001_py310 import app", + "from docs_src.advanced_middleware.tutorial002_py310 import app", + "from fastapi.responses import PlainTextResponse", + "from docs_src.advanced_middleware.tutorial003_py310 import app" + ], + "arg_patterns": { + "TestClient": { + "occurrences": 18, + "arg_count": { + "min": 1, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 12, + "args": 2, + "types": [ + "var", + "kwarg" + ] + }, + { + "count": 6, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "PlainTextResponse": { + "occurrences": 3, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 3, + "args": 2, + "types": [ + "expr", + "kwarg" + ] + } + ] + }, + "int": { + "occurrences": 5, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 5, + "args": 1, + "types": [ + "subscript" + ] + } + ] + } + } + }, + { + "label": "tests/test_tutorial/test_authentication_error_status_code", + "method_count": 4, + "algorithm": "CRX", + "grammar": "root ::= (\"TestClient\" | \"app\" | \"client\" | \"get\" | \"headers\" | \"import_module\" | \"importlib\" | \"mod\" | \"param\" | \"request\" | \"response\" | \"return\" | \"status_code\" | \"text\")?+ \"json\"?+ \"snapshot\"?+", + "mdl_score": 7014, + "imports": [ + "import importlib", + "import pytest", + "from fastapi.testclient import TestClient", + "from inline_snapshot import snapshot" + ], + "arg_patterns": { + "TestClient": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "snapshot": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "other" + ] + } + ] + } + } + }, + { + "label": "tests/test_tutorial/test_background_tasks", + "method_count": 3, + "algorithm": "CRX", + "grammar": "root ::= (\"Path\" | \"if\" | \"is_file\" | \"log\" | \"os\" | \"remove\")?+ (\"TestClient\" | \"app\" | \"client\" | \"import_module\" | \"importlib\" | \"mod\" | \"param\" | \"post\" | \"request\" | \"response\" | \"return\" | \"status_code\" | \"text\")?+ \"json\"?+ \"open\"?+ (\"f\" | \"in\")?+ \"read\"?+", + "mdl_score": 0, + "imports": [ + "import os", + "from pathlib import Path", + "from fastapi.testclient import TestClient", + "from docs_src.background_tasks.tutorial001_py310 import app", + "from tests.utils import workdir_lock", + "import importlib", + "import pytest", + "from tests.utils import needs_py310, workdir_lock" + ], + "arg_patterns": { + "TestClient": { + "occurrences": 6, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "var" + ] + }, + { + "count": 3, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "Path": { + "occurrences": 6, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 6, + "args": 1, + "types": [ + "lit" + ] + } + ] + }, + "open": { + "occurrences": 8, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 8, + "args": 1, + "types": [ + "lit" + ] + } + ] + } + } + }, + { + "label": "tests/test_tutorial/test_behind_a_proxy", + "method_count": 10, + "algorithm": "CRX", + "grammar": "root ::= (\"client\" | \"get\" | \"response\" | \"status_code\")?+ \"json\"?+ \"snapshot\"?+", + "mdl_score": 276, + "imports": [ + "from fastapi.testclient import TestClient", + "from inline_snapshot import snapshot", + "from docs_src.behind_a_proxy.tutorial001_py310 import app", + "from docs_src.behind_a_proxy.tutorial001_01_py310 import app", + "from docs_src.behind_a_proxy.tutorial002_py310 import app", + "from docs_src.behind_a_proxy.tutorial003_py310 import app", + "from docs_src.behind_a_proxy.tutorial004_py310 import app" + ], + "arg_patterns": { + "TestClient": { + "occurrences": 15, + "arg_count": { + "min": 1, + "max": 3, + "common": 1 + }, + "patterns": [ + { + "count": 9, + "args": 1, + "types": [ + "var" + ] + }, + { + "count": 3, + "args": 2, + "types": [ + "var", + "kwarg" + ] + }, + { + "count": 3, + "args": 3, + "types": [ + "var", + "kwarg", + "kwarg" + ] + } + ] + }, + "snapshot": { + "occurrences": 12, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 12, + "args": 1, + "types": [ + "other" + ] + } + ] + } + } + }, + { + "label": "tests/test_tutorial/test_bigger_applications", + "method_count": 26, + "algorithm": "CRX", + "grammar": "root ::= (\"client\" | \"get\" | \"headers\" | \"response\" | \"status_code\" | \"text\")?+ \"json\"?+", + "mdl_score": 4224, + "imports": [ + "import importlib", + "import pytest", + "from fastapi.testclient import TestClient", + "from inline_snapshot import snapshot" + ], + "arg_patterns": { + "snapshot": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "TestClient": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "other" + ] + } + ] + } + } + }, + { + "label": "tests/test_tutorial/test_body", + "method_count": 32, + "algorithm": "CRX", + "grammar": "root ::= (\"client\" | \"json\" | \"post\" | \"response\" | \"status_code\")+ \"text\"?", + "mdl_score": 7870, + "imports": [ + "import importlib", + "from unittest.mock import patch", + "import pytest", + "from fastapi.testclient import TestClient", + "from inline_snapshot import snapshot", + "from ...utils import needs_py310" + ], + "arg_patterns": { + "snapshot": { + "occurrences": 12, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 12, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "TestClient": { + "occurrences": 12, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 12, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "patch": { + "occurrences": 3, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 3, + "args": 2, + "types": [ + "lit", + "kwarg" + ] + } + ] + } + } + }, + { + "label": "tests/test_tutorial/test_body_fields", + "method_count": 5, + "algorithm": "CRX", + "grammar": "root ::= (\"TestClient\" | \"app\" | \"client\" | \"get\" | \"import_module\" | \"importlib\" | \"json\" | \"mod\" | \"param\" | \"put\" | \"request\" | \"response\" | \"return\" | \"status_code\" | \"text\")?+ \"snapshot\"?+", + "mdl_score": 120810, + "imports": [ + "import importlib", + "import pytest", + "from fastapi.testclient import TestClient", + "from inline_snapshot import snapshot", + "from ...utils import needs_py310" + ], + "arg_patterns": { + "TestClient": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "snapshot": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "other" + ] + } + ] + } + } + }, + { + "label": "tests/test_tutorial/test_body_multiple_params", + "method_count": 35, + "algorithm": "CRX", + "grammar": "root ::= (\"client\" | \"json\" | \"put\" | \"response\" | \"status_code\")+", + "mdl_score": 5935, + "imports": [ + "import importlib", + "import pytest", + "from fastapi.testclient import TestClient", + "from inline_snapshot import snapshot", + "from ...utils import needs_py310" + ], + "arg_patterns": { + "snapshot": { + "occurrences": 15, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 15, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "TestClient": { + "occurrences": 15, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 15, + "args": 1, + "types": [ + "other" + ] + } + ] + } + } + }, + { + "label": "tests/test_tutorial/test_body_nested_models", + "method_count": 44, + "algorithm": "CRX", + "grammar": "root ::= (\"client\" | \"json\" | \"put\" | \"response\" | \"status_code\" | \"text\")+", + "mdl_score": 14772, + "imports": [ + "import importlib", + "from typing import Any", + "import pytest", + "from dirty_equals import IsList", + "from fastapi.testclient import TestClient", + "from inline_snapshot import Is, snapshot", + "from ...utils import needs_py310", + "from inline_snapshot import snapshot" + ], + "arg_patterns": { + "snapshot": { + "occurrences": 21, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 21, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "IsList": { + "occurrences": 12, + "arg_count": { + "min": 3, + "max": 3, + "common": 3 + }, + "patterns": [ + { + "count": 12, + "args": 3, + "types": [ + "lit", + "lit", + "kwarg" + ] + } + ] + }, + "TestClient": { + "occurrences": 21, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 21, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "Is": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "var" + ] + } + ] + } + } + }, + { + "label": "tests/test_tutorial/test_body_updates", + "method_count": 9, + "algorithm": "CRX", + "grammar": "root ::= (\"TestClient\" | \"app\" | \"client\" | \"get\" | \"import_module\" | \"importlib\" | \"json\" | \"mod\" | \"param\" | \"patch\" | \"request\" | \"response\" | \"return\" | \"status_code\" | \"text\")?+ \"snapshot\"?+", + "mdl_score": 113580, + "imports": [ + "import importlib", + "import pytest", + "from fastapi.testclient import TestClient", + "from inline_snapshot import snapshot", + "from ...utils import needs_py310" + ], + "arg_patterns": { + "TestClient": { + "occurrences": 6, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 6, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "snapshot": { + "occurrences": 6, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 6, + "args": 1, + "types": [ + "other" + ] + } + ] + } + } + }, + { + "label": "tests/test_tutorial/test_conditional_openapi", + "method_count": 4, + "algorithm": "CRX", + "grammar": "root ::= \"from\"? \"monkeypatch\"? \"docs_src\"?+ \"setenv\"?+ \"conditional_openapi\"?+ \"import\"? (\"TestClient\" | \"app\" | \"client\" | \"get\" | \"get_client\" | \"importlib\" | \"reload\" | \"response\" | \"return\" | \"status_code\" | \"text\" | \"tutorial001_py310\")?+ \"json\"?+ \"snapshot\"?+", + "mdl_score": 0, + "imports": [ + "import importlib", + "from fastapi.testclient import TestClient", + "from inline_snapshot import snapshot", + "from docs_src.conditional_openapi import tutorial001_py310" + ], + "arg_patterns": { + "get_client": { + "occurrences": 9, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 9, + "args": 0, + "types": [] + } + ] + }, + "snapshot": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "TestClient": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "other" + ] + } + ] + } + } + }, + { + "label": "tests/test_tutorial/test_configure_swagger_ui", + "method_count": 6, + "algorithm": "CRX", + "grammar": "root ::= (\"client\" | \"get\" | \"in\" | \"not\" | \"not in\" | \"response\" | \"status_code\" | \"text\")?+ \"json\"?+", + "mdl_score": 11920, + "imports": [ + "from fastapi.testclient import TestClient", + "from docs_src.configure_swagger_ui.tutorial001_py310 import app", + "from docs_src.configure_swagger_ui.tutorial002_py310 import app", + "from docs_src.configure_swagger_ui.tutorial003_py310 import app" + ], + "arg_patterns": { + "TestClient": { + "occurrences": 9, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 9, + "args": 1, + "types": [ + "var" + ] + } + ] + } + } + }, + { + "label": "tests/test_tutorial/test_cookie_param_models", + "method_count": 12, + "algorithm": "CRX", + "grammar": "root ::= (\"c\" | \"client\" | \"cookies\" | \"get\" | \"response\" | \"set\" | \"status_code\")?+ \"json\"?+ \"snapshot\"?+", + "mdl_score": 1540, + "imports": [ + "import importlib", + "import pytest", + "from fastapi.testclient import TestClient", + "from inline_snapshot import snapshot", + "from tests.utils import needs_py310" + ], + "arg_patterns": { + "snapshot": { + "occurrences": 15, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 15, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "TestClient": { + "occurrences": 6, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 6, + "args": 1, + "types": [ + "other" + ] + } + ] + } + } + }, + { + "label": "tests/test_tutorial/test_cookie_params", + "method_count": 3, + "algorithm": "CRX", + "grammar": "root ::= (\"TestClient\" | \"app\" | \"client\" | \"cookies\" | \"expected_status\" | \"get\" | \"import_module\" | \"importlib\" | \"mod\" | \"param\" | \"path\" | \"request\" | \"response\" | \"return\" | \"status_code\")?+ \"json\"?+ (\"expected_response\" | \"snapshot\")?+", + "mdl_score": 19590, + "imports": [ + "import importlib", + "from types import ModuleType", + "import pytest", + "from fastapi.testclient import TestClient", + "from inline_snapshot import snapshot", + "from ...utils import needs_py310" + ], + "arg_patterns": { + "snapshot": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "TestClient": { + "occurrences": 6, + "arg_count": { + "min": 1, + "max": 2, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 2, + "types": [ + "other", + "kwarg" + ] + }, + { + "count": 3, + "args": 1, + "types": [ + "other" + ] + } + ] + } + } + }, + { + "label": "tests/test_tutorial/test_custom_docs_ui", + "method_count": 10, + "algorithm": "CRX", + "grammar": "root ::= (\"client\" | \"get\" | \"in\" | \"response\" | \"status_code\" | \"text\")+", + "mdl_score": 12180, + "imports": [ + "import os", + "from pathlib import Path", + "import pytest", + "from fastapi.testclient import TestClient", + "from tests.utils import workdir_lock", + "from docs_src.custom_docs_ui.tutorial001_py310 import app", + "from docs_src.custom_docs_ui.tutorial002_py310 import app" + ], + "arg_patterns": { + "Path": { + "occurrences": 6, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 6, + "args": 1, + "types": [ + "call" + ] + } + ] + }, + "print": { + "occurrences": 8, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 8, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "TestClient": { + "occurrences": 6, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 6, + "args": 1, + "types": [ + "var" + ] + } + ] + } + } + }, + { + "label": "tests/test_tutorial/test_custom_request_and_route", + "method_count": 10, + "algorithm": "CRX", + "grammar": "root ::= (\"TestClient\" | \"app\" | \"client\" | \"get\" | \"mod\" | \"response\" | \"return\")?+ \"importlib\"? (\"json\" | \"post\")?+ \"import_module\"?+ \"request\"? \"param\"?", + "mdl_score": 3136, + "imports": [ + "import gzip", + "import importlib", + "import json", + "import pytest", + "from fastapi import Request", + "from fastapi.testclient import TestClient", + "from tests.utils import needs_py310", + "from dirty_equals import IsOneOf" + ], + "arg_patterns": { + "type": { + "occurrences": 5, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 5, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "TestClient": { + "occurrences": 9, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 9, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "float": { + "occurrences": 5, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 5, + "args": 1, + "types": [ + "subscript" + ] + } + ] + }, + "IsOneOf": { + "occurrences": 3, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 3, + "args": 2, + "types": [ + "lit", + "lit" + ] + } + ] + } + } + }, + { + "label": "tests/test_tutorial/test_custom_response", + "method_count": 25, + "algorithm": "CRX", + "grammar": "root ::= (\"client\" | \"get\" | \"response\" | \"status_code\" | \"text\")?+ \"json\"?+ \"snapshot\"?+", + "mdl_score": 465, + "imports": [ + "import importlib", + "import pytest", + "from fastapi.testclient import TestClient", + "from inline_snapshot import snapshot", + "import warnings", + "from fastapi.exceptions import FastAPIDeprecationWarning", + "from docs_src.custom_response.tutorial001b_py310 import app", + "from inline_snapshot import Is, snapshot", + "from docs_src.custom_response.tutorial005_py310 import app", + "from docs_src.custom_response.tutorial006_py310 import app", + "from docs_src.custom_response.tutorial006b_py310 import app", + "from docs_src.custom_response.tutorial006c_py310 import app", + "from docs_src.custom_response.tutorial007_py310 import app", + "from pathlib import Path", + "from typing import Any, cast", + "from docs_src.custom_response import tutorial008_py310", + "from docs_src.custom_response.tutorial008_py310 import app", + "from docs_src.custom_response import tutorial009_py310", + "from docs_src.custom_response.tutorial009_py310 import app", + "from docs_src.custom_response import tutorial009b_py310", + "from docs_src.custom_response.tutorial009b_py310 import app", + "from docs_src.custom_response.tutorial009c_py310 import app" + ], + "arg_patterns": { + "TestClient": { + "occurrences": 39, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 30, + "args": 1, + "types": [ + "var" + ] + }, + { + "count": 9, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "snapshot": { + "occurrences": 27, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 24, + "args": 1, + "types": [ + "other" + ] + }, + { + "count": 3, + "args": 1, + "types": [ + "lit" + ] + } + ] + }, + "Is": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "str": { + "occurrences": 15, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 15, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "cast": { + "occurrences": 9, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 9, + "args": 2, + "types": [ + "var", + "var" + ] + } + ] + } + } + }, + { + "label": "tests/test_tutorial/test_dataclasses", + "method_count": 11, + "algorithm": "CRX", + "grammar": "root ::= (\"TestClient\" | \"app\" | \"clear\" | \"client\" | \"get\" | \"headers\" | \"import_module\" | \"importlib\" | \"json\" | \"mod\" | \"param\" | \"post\" | \"request\" | \"response\" | \"return\" | \"status_code\")?+ \"snapshot\"?+", + "mdl_score": 150224, + "imports": [ + "import importlib", + "import pytest", + "from fastapi.testclient import TestClient", + "from inline_snapshot import snapshot", + "from tests.utils import needs_py310", + "from ...utils import needs_py310" + ], + "arg_patterns": { + "snapshot": { + "occurrences": 9, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 9, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "TestClient": { + "occurrences": 9, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 9, + "args": 1, + "types": [ + "other" + ] + } + ] + } + } + }, + { + "label": "tests/test_tutorial/test_debugging", + "method_count": 5, + "algorithm": "CRX", + "grammar": "root ::= \"if\"? (\"MOD_NAME\" | \"TestClient\" | \"app\" | \"assert_called_once_with\" | \"client\" | \"del\" | \"get\" | \"import_module\" | \"importlib\" | \"mock\" | \"mod\" | \"modules\" | \"patch\" | \"response\" | \"return\" | \"run_module\" | \"run_name\" | \"runpy\" | \"status_code\" | \"sys\" | \"uvicorn_run_mock\")?+ \"json\"?+ \"ANY\"? \"assert_not_called\"?+ \"snapshot\"?+ \"host\"? \"port\"?", + "mdl_score": 1176, + "imports": [ + "import importlib", + "import runpy", + "import sys", + "from unittest import mock", + "import pytest", + "from fastapi.testclient import TestClient", + "from inline_snapshot import snapshot" + ], + "arg_patterns": { + "TestClient": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "snapshot": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "other" + ] + } + ] + } + } + }, + { + "label": "tests/test_tutorial/test_dependencies", + "method_count": 51, + "algorithm": "CRX", + "grammar": "root ::= (\"client\" | \"get\" | \"response\" | \"status_code\" | \"text\")?+ \"json\"?+ \"TestClient\"?+ \"mod\"? \"app\"?", + "mdl_score": 595, + "imports": [ + "import importlib", + "import pytest", + "from fastapi.testclient import TestClient", + "from inline_snapshot import snapshot", + "from ...utils import needs_py310", + "import asyncio", + "from contextlib import asynccontextmanager", + "from unittest.mock import Mock, patch", + "from docs_src.dependencies.tutorial007_py310 import get_db", + "import sys", + "from types import ModuleType", + "from typing import Annotated, Any", + "from fastapi import Depends, FastAPI", + "from fastapi.exceptions import FastAPIError", + "from docs_src.dependencies.tutorial010_py310 import get_db" + ], + "arg_patterns": { + "TestClient": { + "occurrences": 54, + "arg_count": { + "min": 1, + "max": 2, + "common": 1 + }, + "patterns": [ + { + "count": 42, + "args": 1, + "types": [ + "other" + ] + }, + { + "count": 6, + "args": 1, + "types": [ + "var" + ] + }, + { + "count": 6, + "args": 2, + "types": [ + "other", + "kwarg" + ] + } + ] + }, + "snapshot": { + "occurrences": 18, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 18, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "patch": { + "occurrences": 15, + "arg_count": { + "min": 3, + "max": 3, + "common": 3 + }, + "patterns": [ + { + "count": 15, + "args": 3, + "types": [ + "lit", + "kwarg", + "kwarg" + ] + } + ] + }, + "Mock": { + "occurrences": 15, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 15, + "args": 0, + "types": [] + } + ] + }, + "str": { + "occurrences": 20, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 20, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "FastAPI": { + "occurrences": 6, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 6, + "args": 0, + "types": [] + } + ] + }, + "Depends": { + "occurrences": 6, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "other" + ] + }, + { + "count": 3, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "cm": { + "occurrences": 3, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 3, + "args": 0, + "types": [] + } + ] + }, + "test_async_gen": { + "occurrences": 3, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 3, + "args": 0, + "types": [] + } + ] + }, + "asynccontextmanager": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "var" + ] + } + ] + } + } + }, + { + "label": "tests/test_tutorial/test_encoder", + "method_count": 5, + "algorithm": "CRX", + "grammar": "root ::= (\"TestClient\" | \"app\" | \"client\" | \"fake_db\" | \"get\" | \"import_module\" | \"importlib\" | \"in\" | \"json\" | \"mod\" | \"module\" | \"not\" | \"not in\" | \"param\" | \"put\" | \"request\" | \"response\" | \"return\" | \"status_code\")?+ \"snapshot\"?+", + "mdl_score": 278673, + "imports": [ + "import importlib", + "from types import ModuleType", + "import pytest", + "from fastapi.testclient import TestClient", + "from inline_snapshot import snapshot", + "from ...utils import needs_py310" + ], + "arg_patterns": { + "TestClient": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "snapshot": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "other" + ] + } + ] + } + } + }, + { + "label": "tests/test_tutorial/test_events", + "method_count": 8, + "algorithm": "CRX", + "grammar": "root ::= \"pytest\"? (\"TestClient\" | \"import\")?+ \"warns\"?+ (\"app\" | \"yield\")?+ \"DeprecationWarning\"?+ (\"client\" | \"get\" | \"response\" | \"status_code\" | \"text\")?+ \"from\"? \"json\"?+ \"docs_src\"?+ \"snapshot\"?+ \"events\"?+", + "mdl_score": 0, + "imports": [ + "import pytest", + "from fastapi import FastAPI", + "from fastapi.testclient import TestClient", + "from inline_snapshot import snapshot", + "from docs_src.events.tutorial001_py310 import app", + "from tests.utils import workdir_lock", + "from docs_src.events.tutorial002_py310 import app", + "from docs_src.events.tutorial003_py310 import (" + ], + "arg_patterns": { + "snapshot": { + "occurrences": 9, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 9, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "TestClient": { + "occurrences": 18, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 18, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "open": { + "occurrences": 4, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 4, + "args": 1, + "types": [ + "lit" + ] + } + ] + } + } + }, + { + "label": "tests/test_tutorial/test_extra_data_types", + "method_count": 3, + "algorithm": "CRX", + "grammar": "root ::= (\"TestClient\" | \"app\" | \"client\" | \"copy\" | \"data\" | \"expected_response\" | \"get\" | \"import_module\" | \"importlib\" | \"item_id\" | \"json\" | \"mod\" | \"param\" | \"put\" | \"request\" | \"response\" | \"return\" | \"status_code\" | \"text\" | \"update\")?+ \"snapshot\"?+", + "mdl_score": 389960, + "imports": [ + "import importlib", + "import pytest", + "from fastapi.testclient import TestClient", + "from inline_snapshot import snapshot", + "from ...utils import needs_py310" + ], + "arg_patterns": { + "TestClient": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "snapshot": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "other" + ] + } + ] + } + } + }, + { + "label": "tests/test_tutorial/test_extra_models", + "method_count": 13, + "algorithm": "CRX", + "grammar": "root ::= (\"TestClient\" | \"app\" | \"client\" | \"get\" | \"import_module\" | \"importlib\" | \"mod\" | \"param\" | \"request\" | \"response\" | \"return\" | \"status_code\" | \"text\")?+ \"json\"?+ \"snapshot\"?+", + "mdl_score": 4940, + "imports": [ + "import importlib", + "import pytest", + "from dirty_equals import IsList", + "from fastapi.testclient import TestClient", + "from inline_snapshot import snapshot", + "from ...utils import needs_py310" + ], + "arg_patterns": { + "TestClient": { + "occurrences": 12, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 12, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "snapshot": { + "occurrences": 12, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 12, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "IsList": { + "occurrences": 3, + "arg_count": { + "min": 4, + "max": 4, + "common": 4 + }, + "patterns": [ + { + "count": 3, + "args": 4, + "types": [ + "lit", + "lit", + "lit", + "kwarg" + ] + } + ] + } + } + }, + { + "label": "tests/test_tutorial/test_first_steps", + "method_count": 3, + "algorithm": "CRX", + "grammar": "root ::= (\"TestClient\" | \"app\" | \"client\" | \"expected_status\" | \"get\" | \"import_module\" | \"importlib\" | \"mod\" | \"param\" | \"path\" | \"request\" | \"response\" | \"return\" | \"status_code\")?+ \"json\"?+ (\"expected_response\" | \"snapshot\")?+", + "mdl_score": 14896, + "imports": [ + "import importlib", + "import pytest", + "from fastapi.testclient import TestClient", + "from inline_snapshot import snapshot" + ], + "arg_patterns": { + "TestClient": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "snapshot": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "other" + ] + } + ] + } + } + }, + { + "label": "tests/test_tutorial/test_generate_clients", + "method_count": 13, + "algorithm": "CRX", + "grammar": "root ::= (\"client\" | \"get\" | \"json\" | \"post\" | \"response\" | \"status_code\" | \"text\")?+ \"snapshot\"?+", + "mdl_score": 7826, + "imports": [ + "import importlib", + "import pytest", + "from fastapi.testclient import TestClient", + "from inline_snapshot import snapshot", + "from docs_src.generate_clients.tutorial002_py310 import app", + "from docs_src.generate_clients.tutorial003_py310 import app", + "import json", + "import pathlib", + "from unittest.mock import patch", + "from docs_src.generate_clients import tutorial003_py310" + ], + "arg_patterns": { + "patch": { + "occurrences": 3, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 3, + "args": 2, + "types": [ + "lit", + "kwarg" + ] + } + ] + }, + "snapshot": { + "occurrences": 12, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 12, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "TestClient": { + "occurrences": 9, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 6, + "args": 1, + "types": [ + "var" + ] + }, + { + "count": 3, + "args": 1, + "types": [ + "other" + ] + } + ] + } + } + }, + { + "label": "tests/test_tutorial/test_graphql", + "method_count": 3, + "algorithm": "CRX", + "grammar": "root ::= (\"client\" | \"get\" | \"json\" | \"post\" | \"response\" | \"status_code\")?+ \"return\"? \"snapshot\"?+ \"TestClient\"?+ \"app\"?", + "mdl_score": 1176, + "imports": [ + "import warnings", + "import pytest", + "from inline_snapshot import snapshot", + "from starlette.testclient import TestClient", + "from docs_src.graphql_.tutorial001_py310 import app # noqa: E402" + ], + "arg_patterns": { + "TestClient": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "snapshot": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "other" + ] + } + ] + } + } + }, + { + "label": "tests/test_tutorial/test_handling_errors", + "method_count": 20, + "algorithm": "CRX", + "grammar": "root ::= (\"client\" | \"get\" | \"response\" | \"status_code\" | \"text\")?+ \"json\"?+ \"snapshot\"?+", + "mdl_score": 470, + "imports": [ + "from fastapi.testclient import TestClient", + "from inline_snapshot import snapshot", + "from docs_src.handling_errors.tutorial001_py310 import app", + "from docs_src.handling_errors.tutorial002_py310 import app", + "from docs_src.handling_errors.tutorial003_py310 import app", + "from docs_src.handling_errors.tutorial004_py310 import app", + "from docs_src.handling_errors.tutorial005_py310 import app", + "from docs_src.handling_errors.tutorial006_py310 import app" + ], + "arg_patterns": { + "TestClient": { + "occurrences": 18, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 18, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "snapshot": { + "occurrences": 18, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 18, + "args": 1, + "types": [ + "other" + ] + } + ] + } + } + }, + { + "label": "tests/test_tutorial/test_header_param_models", + "method_count": 19, + "algorithm": "CRX", + "grammar": "root ::= (\"client\" | \"get\" | \"headers\" | \"response\" | \"status_code\" | \"text\")?+ \"json\"?+ \"snapshot\"?+", + "mdl_score": 930, + "imports": [ + "import importlib", + "import pytest", + "from dirty_equals import IsOneOf", + "from fastapi.testclient import TestClient", + "from inline_snapshot import snapshot", + "from tests.utils import needs_py310" + ], + "arg_patterns": { + "snapshot": { + "occurrences": 30, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 30, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "IsOneOf": { + "occurrences": 9, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 9, + "args": 2, + "types": [ + "lit", + "lit" + ] + } + ] + }, + "TestClient": { + "occurrences": 9, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 9, + "args": 1, + "types": [ + "other" + ] + } + ] + } + } + }, + { + "label": "tests/test_tutorial/test_header_params", + "method_count": 9, + "algorithm": "CRX", + "grammar": "root ::= (\"TestClient\" | \"app\" | \"client\" | \"expected_status\" | \"get\" | \"headers\" | \"import_module\" | \"importlib\" | \"mod\" | \"param\" | \"path\" | \"request\" | \"response\" | \"return\" | \"status_code\")?+ \"json\"?+ (\"expected_response\" | \"snapshot\")?+", + "mdl_score": 17970, + "imports": [ + "import importlib", + "import pytest", + "from fastapi.testclient import TestClient", + "from inline_snapshot import snapshot", + "from ...utils import needs_py310" + ], + "arg_patterns": { + "snapshot": { + "occurrences": 9, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 9, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "TestClient": { + "occurrences": 9, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 9, + "args": 1, + "types": [ + "other" + ] + } + ] + } + } + }, + { + "label": "tests/test_tutorial/test_json_base64_bytes", + "method_count": 5, + "algorithm": "CRX", + "grammar": "root ::= (\"TestClient\" | \"app\" | \"client\" | \"get\" | \"import_module\" | \"importlib\" | \"json\" | \"mod\" | \"param\" | \"post\" | \"request\" | \"response\" | \"return\" | \"status_code\" | \"text\")?+ \"snapshot\"?+", + "mdl_score": 113580, + "imports": [ + "import importlib", + "import pytest", + "from fastapi.testclient import TestClient", + "from inline_snapshot import snapshot", + "from tests.utils import needs_py310" + ], + "arg_patterns": { + "snapshot": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "TestClient": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "other" + ] + } + ] + } + } + }, + { + "label": "tests/test_tutorial/test_metadata", + "method_count": 14, + "algorithm": "CRX", + "grammar": "root ::= (\"client\" | \"get\" | \"response\" | \"status_code\" | \"text\")?+ \"json\"?+ \"snapshot\"?+", + "mdl_score": 475, + "imports": [ + "from fastapi.testclient import TestClient", + "from inline_snapshot import snapshot", + "from docs_src.metadata.tutorial001_py310 import app", + "from docs_src.metadata.tutorial001_1_py310 import app", + "from docs_src.metadata.tutorial002_py310 import app", + "from docs_src.metadata.tutorial003_py310 import app", + "from docs_src.metadata.tutorial004_py310 import app" + ], + "arg_patterns": { + "snapshot": { + "occurrences": 15, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 15, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "TestClient": { + "occurrences": 15, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 15, + "args": 1, + "types": [ + "var" + ] + } + ] + } + } + }, + { + "label": "tests/test_tutorial/test_openapi_callbacks", + "method_count": 5, + "algorithm": "CRX", + "grammar": "root ::= (\"TestClient\" | \"app\" | \"clear\" | \"client\" | \"get\" | \"headers\" | \"import_module\" | \"importlib\" | \"json\" | \"mod\" | \"param\" | \"post\" | \"request\" | \"response\" | \"return\" | \"status_code\" | \"text\")?+ (\"invoice_notification\" | \"snapshot\")?+", + "mdl_score": 405654, + "imports": [ + "import importlib", + "from types import ModuleType", + "import pytest", + "from fastapi.testclient import TestClient", + "from inline_snapshot import snapshot", + "from tests.utils import needs_py310" + ], + "arg_patterns": { + "TestClient": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "snapshot": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "other" + ] + } + ] + } + } + }, + { + "label": "tests/test_tutorial/test_openapi_webhooks", + "method_count": 3, + "algorithm": "CRX", + "grammar": "root ::= (\"client\" | \"get\" | \"response\" | \"status_code\" | \"text\")?+ (\"APIRoute\" | \"app\" | \"isinstance\" | \"route\" | \"routes\" | \"webhooks\")?+ \"json\"?+ \"endpoint\"?+ \"snapshot\"?+", + "mdl_score": 0, + "imports": [ + "from fastapi.routing import APIRoute", + "from fastapi.testclient import TestClient", + "from inline_snapshot import snapshot", + "from docs_src.openapi_webhooks.tutorial001_py310 import app" + ], + "arg_patterns": { + "TestClient": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "snapshot": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "isinstance": { + "occurrences": 4, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 4, + "args": 2, + "types": [ + "var", + "var" + ] + } + ] + } + } + }, + { + "label": "tests/test_tutorial/test_path_operation_advanced_configurations", + "method_count": 18, + "algorithm": "CRX", + "grammar": "root ::= (\"client\" | \"get\" | \"response\" | \"status_code\" | \"text\")?+ \"json\"?+ \"post\"?+ \"snapshot\"?+", + "mdl_score": 75, + "imports": [ + "from fastapi.testclient import TestClient", + "from inline_snapshot import snapshot", + "from docs_src.path_operation_advanced_configuration.tutorial001_py310 import app", + "from docs_src.path_operation_advanced_configuration.tutorial002_py310 import app", + "from docs_src.path_operation_advanced_configuration.tutorial003_py310 import app", + "import importlib", + "import pytest", + "from ...utils import needs_py310", + "from docs_src.path_operation_advanced_configuration.tutorial005_py310 import app", + "from docs_src.path_operation_advanced_configuration.tutorial006_py310 import app" + ], + "arg_patterns": { + "TestClient": { + "occurrences": 21, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 15, + "args": 1, + "types": [ + "var" + ] + }, + { + "count": 6, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "snapshot": { + "occurrences": 21, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 21, + "args": 1, + "types": [ + "other" + ] + } + ] + } + } + }, + { + "label": "tests/test_tutorial/test_path_operation_configurations", + "method_count": 20, + "algorithm": "CRX", + "grammar": "root ::= (\"client\" | \"get\" | \"response\" | \"status_code\" | \"text\")?+ \"json\"?+ \"snapshot\"?+", + "mdl_score": 460, + "imports": [ + "import importlib", + "import pytest", + "from dirty_equals import IsList", + "from fastapi.testclient import TestClient", + "from inline_snapshot import snapshot", + "from ...utils import needs_py310", + "from docs_src.path_operation_configuration.tutorial002b_py310 import app", + "from textwrap import dedent", + "from inline_snapshot import Is, snapshot", + "from docs_src.path_operation_configuration.tutorial006_py310 import app" + ], + "arg_patterns": { + "snapshot": { + "occurrences": 18, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 18, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "TestClient": { + "occurrences": 18, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 12, + "args": 1, + "types": [ + "other" + ] + }, + { + "count": 6, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "IsList": { + "occurrences": 9, + "arg_count": { + "min": 3, + "max": 3, + "common": 3 + }, + "patterns": [ + { + "count": 9, + "args": 3, + "types": [ + "lit", + "lit", + "kwarg" + ] + } + ] + }, + "dedent": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "lit" + ] + } + ] + }, + "Is": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "subscript" + ] + } + ] + } + } + }, + { + "label": "tests/test_tutorial/test_path_params", + "method_count": 18, + "algorithm": "CRX", + "grammar": "root ::= (\"client\" | \"get\" | \"response\" | \"status_code\" | \"text\")?+ \"json\"?+ \"snapshot\"?+", + "mdl_score": 470, + "imports": [ + "import pytest", + "from fastapi.testclient import TestClient", + "from inline_snapshot import snapshot", + "from docs_src.path_params.tutorial001_py310 import app", + "from docs_src.path_params.tutorial002_py310 import app", + "from docs_src.path_params.tutorial003_py310 import app", + "import asyncio", + "from docs_src.path_params.tutorial003b_py310 import app, read_users2", + "from docs_src.path_params.tutorial004_py310 import app", + "from docs_src.path_params.tutorial005_py310 import app" + ], + "arg_patterns": { + "TestClient": { + "occurrences": 18, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 18, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "snapshot": { + "occurrences": 18, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 18, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "read_users2": { + "occurrences": 3, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 3, + "args": 0, + "types": [] + } + ] + }, + "print": { + "occurrences": 8, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 8, + "args": 1, + "types": [ + "other" + ] + } + ] + } + } + }, + { + "label": "tests/test_tutorial/test_path_params_numeric_validations", + "method_count": 29, + "algorithm": "CRX", + "grammar": "root ::= (\"client\" | \"get\" | \"response\" | \"status_code\" | \"text\")?+ \"json\"?+", + "mdl_score": 1620, + "imports": [ + "import importlib", + "import pytest", + "from fastapi.testclient import TestClient", + "from inline_snapshot import snapshot", + "from ...utils import needs_py310" + ], + "arg_patterns": { + "snapshot": { + "occurrences": 15, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 15, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "TestClient": { + "occurrences": 15, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 15, + "args": 1, + "types": [ + "other" + ] + } + ] + } + } + }, + { + "label": "tests/test_tutorial/test_python_types", + "method_count": 15, + "algorithm": "CRX", + "grammar": "root ::= (\"arg\" | \"args\" | \"for\")?+ \"patch\"?+ \"in\"? \"mock_print\"? \"call_args_list\"? \"call_args\"?", + "mdl_score": 684, + "imports": [ + "import runpy", + "from unittest.mock import patch", + "import pytest", + "from docs_src.python_types.tutorial003_py310 import get_name_with_age", + "from docs_src.python_types.tutorial004_py310 import get_name_with_age", + "from docs_src.python_types.tutorial005_py310 import get_items", + "from docs_src.python_types.tutorial006_py310 import process_items", + "from docs_src.python_types.tutorial007_py310 import process_items", + "from docs_src.python_types.tutorial008_py310 import process_items", + "import importlib", + "from types import ModuleType", + "from ...utils import needs_py310", + "from docs_src.python_types.tutorial010_py310 import Person, get_person_name", + "from docs_src.python_types.tutorial013_py310 import say_hello" + ], + "arg_patterns": { + "get_name_with_age": { + "occurrences": 9, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 9, + "args": 2, + "types": [ + "lit", + "lit" + ] + } + ] + }, + "get_items": { + "occurrences": 3, + "arg_count": { + "min": 9, + "max": 9, + "common": 9 + }, + "patterns": [ + { + "count": 3, + "args": 9, + "types": [ + "lit", + "lit", + "other", + "lit", + "other", + "lit", + "other", + "lit", + "other" + ] + } + ] + }, + "get_person_name": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "call" + ] + } + ] + }, + "Person": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "lit" + ] + } + ] + }, + "say_hello": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "lit" + ] + } + ] + }, + "patch": { + "occurrences": 18, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 18, + "args": 1, + "types": [ + "lit" + ] + } + ] + }, + "process_items": { + "occurrences": 9, + "arg_count": { + "min": 1, + "max": 2, + "common": 1 + }, + "patterns": [ + { + "count": 6, + "args": 1, + "types": [ + "other" + ] + }, + { + "count": 3, + "args": 2, + "types": [ + "var", + "var" + ] + } + ] + }, + "str": { + "occurrences": 5, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 5, + "args": 1, + "types": [ + "subscript" + ] + } + ] + } + } + }, + { + "label": "tests/test_tutorial/test_query_param_models", + "method_count": 12, + "algorithm": "CRX", + "grammar": "root ::= (\"client\" | \"get\" | \"params\" | \"response\" | \"status_code\")?+ \"json\"?+ \"snapshot\"?+", + "mdl_score": 540, + "imports": [ + "import importlib", + "import pytest", + "from fastapi.testclient import TestClient", + "from inline_snapshot import snapshot", + "from tests.utils import needs_py310" + ], + "arg_patterns": { + "snapshot": { + "occurrences": 15, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 15, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "TestClient": { + "occurrences": 6, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 6, + "args": 1, + "types": [ + "other" + ] + } + ] + } + } + }, + { + "label": "tests/test_tutorial/test_query_params", + "method_count": 19, + "algorithm": "CRX", + "grammar": "root ::= (\"client\" | \"get\" | \"response\" | \"status_code\")?+ \"TestClient\"?+ \"json\"?+ \"mod\"? \"snapshot\"?+ \"app\"? \"importlib\"? \"return\"? \"import_module\"?+ \"request\"? \"param\"?", + "mdl_score": 0, + "imports": [ + "import importlib", + "import pytest", + "from fastapi.testclient import TestClient", + "from inline_snapshot import snapshot", + "from ...utils import needs_py310", + "from docs_src.query_params.tutorial005_py310 import app" + ], + "arg_patterns": { + "TestClient": { + "occurrences": 18, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 15, + "args": 1, + "types": [ + "other" + ] + }, + { + "count": 3, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "snapshot": { + "occurrences": 18, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 18, + "args": 1, + "types": [ + "other" + ] + } + ] + } + } + }, + { + "label": "tests/test_tutorial/test_query_params_str_validations", + "method_count": 81, + "algorithm": "CRX", + "grammar": "root ::= (\"client\" | \"get\" | \"params\" | \"response\" | \"status_code\" | \"text\")?+ \"json\"?+", + "mdl_score": 4224, + "imports": [ + "import importlib", + "import pytest", + "from fastapi.testclient import TestClient", + "from inline_snapshot import snapshot", + "from ...utils import needs_py310", + "from fastapi._compat import PYDANTIC_VERSION_MINOR_TUPLE", + "from inline_snapshot import Is, snapshot", + "from dirty_equals import IsStr" + ], + "arg_patterns": { + "TestClient": { + "occurrences": 48, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 48, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "snapshot": { + "occurrences": 51, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 51, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "Is": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "IsStr": { + "occurrences": 6, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 6, + "args": 0, + "types": [] + } + ] + } + } + }, + { + "label": "tests/test_tutorial/test_request_files", + "method_count": 31, + "algorithm": "CRX", + "grammar": "root ::= (\"response\" | \"status_code\" | \"text\")?+ (\"path\" | \"tmp_path\")?+ \"json\"?+ \"client\"? \"write_bytes\"?+ \"open\"?+ \"TestClient\"?+ \"post\"?+ \"files\"? \"file\"?", + "mdl_score": 0, + "imports": [ + "import importlib", + "import pytest", + "from fastapi.testclient import TestClient", + "from inline_snapshot import snapshot", + "from pathlib import Path", + "from ...utils import needs_py310", + "from fastapi import FastAPI" + ], + "arg_patterns": { + "snapshot": { + "occurrences": 15, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 15, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "TestClient": { + "occurrences": 33, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 24, + "args": 1, + "types": [ + "var" + ] + }, + { + "count": 9, + "args": 1, + "types": [ + "other" + ] + } + ] + } + } + }, + { + "label": "tests/test_tutorial/test_request_form_models", + "method_count": 15, + "algorithm": "CRX", + "grammar": "root ::= (\"client\" | \"data\" | \"post\" | \"response\" | \"status_code\" | \"text\")?+ \"json\"?+", + "mdl_score": 3450, + "imports": [ + "import importlib", + "import pytest", + "from fastapi.testclient import TestClient", + "from inline_snapshot import snapshot" + ], + "arg_patterns": { + "snapshot": { + "occurrences": 6, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 6, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "TestClient": { + "occurrences": 6, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 6, + "args": 1, + "types": [ + "other" + ] + } + ] + } + } + }, + { + "label": "tests/test_tutorial/test_request_forms", + "method_count": 7, + "algorithm": "CRX", + "grammar": "root ::= (\"client\" | \"data\" | \"post\" | \"response\" | \"status_code\" | \"text\")?+ \"json\"?+", + "mdl_score": 3450, + "imports": [ + "import importlib", + "import pytest", + "from fastapi.testclient import TestClient", + "from inline_snapshot import snapshot" + ], + "arg_patterns": { + "snapshot": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "TestClient": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "other" + ] + } + ] + } + } + }, + { + "label": "tests/test_tutorial/test_request_forms_and_files", + "method_count": 8, + "algorithm": "CRX", + "grammar": "root ::= (\"response\" | \"status_code\" | \"text\")?+ \"json\"?+ \"client\"? \"TestClient\"?+ \"post\"?+ \"app\"? \"data\"?", + "mdl_score": 30, + "imports": [ + "import importlib", + "import pytest", + "from fastapi import FastAPI", + "from fastapi.testclient import TestClient", + "from inline_snapshot import snapshot" + ], + "arg_patterns": { + "TestClient": { + "occurrences": 9, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 9, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "snapshot": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "other" + ] + } + ] + } + } + }, + { + "label": "tests/test_tutorial/test_response_directly", + "method_count": 6, + "algorithm": "CRX", + "grammar": "root ::= (\"TestClient\" | \"app\" | \"client\" | \"expected_content\" | \"get\" | \"headers\" | \"import_module\" | \"importlib\" | \"json\" | \"mod\" | \"param\" | \"put\" | \"request\" | \"response\" | \"return\" | \"status_code\" | \"text\")?+ \"snapshot\"?+", + "mdl_score": 190451, + "imports": [ + "import importlib", + "import pytest", + "from fastapi.testclient import TestClient", + "from inline_snapshot import snapshot", + "from ...utils import needs_py310" + ], + "arg_patterns": { + "snapshot": { + "occurrences": 6, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 6, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "TestClient": { + "occurrences": 6, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 6, + "args": 1, + "types": [ + "other" + ] + } + ] + } + } + }, + { + "label": "tests/test_tutorial/test_response_model", + "method_count": 35, + "algorithm": "CRX", + "grammar": "root ::= (\"client\" | \"get\" | \"response\" | \"status_code\" | \"text\")?+ \"json\"?+ \"snapshot\"?+", + "mdl_score": 470, + "imports": [ + "import importlib", + "import pytest", + "from fastapi.testclient import TestClient", + "from inline_snapshot import snapshot", + "from ...utils import needs_py310", + "from docs_src.response_model.tutorial003_02_py310 import app", + "from docs_src.response_model.tutorial003_03_py310 import app", + "from fastapi.exceptions import FastAPIError" + ], + "arg_patterns": { + "TestClient": { + "occurrences": 30, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 24, + "args": 1, + "types": [ + "other" + ] + }, + { + "count": 6, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "snapshot": { + "occurrences": 30, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 30, + "args": 1, + "types": [ + "other" + ] + } + ] + } + } + }, + { + "label": "tests/test_tutorial/test_response_status_code", + "method_count": 3, + "algorithm": "CRX", + "grammar": "root ::= (\"TestClient\" | \"app\" | \"client\" | \"get\" | \"import_module\" | \"importlib\" | \"mod\" | \"param\" | \"params\" | \"post\" | \"request\" | \"response\" | \"return\" | \"status_code\" | \"text\")?+ \"json\"?+ \"snapshot\"?+", + "mdl_score": 7995, + "imports": [ + "import importlib", + "import pytest", + "from fastapi.testclient import TestClient", + "from inline_snapshot import snapshot" + ], + "arg_patterns": { + "TestClient": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "snapshot": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "other" + ] + } + ] + } + } + }, + { + "label": "tests/test_tutorial/test_schema_extra_example", + "method_count": 15, + "algorithm": "CRX", + "grammar": "root ::= (\"TestClient\" | \"app\" | \"client\" | \"get\" | \"import_module\" | \"importlib\" | \"json\" | \"mod\" | \"param\" | \"put\" | \"request\" | \"response\" | \"return\" | \"status_code\" | \"text\")?+ \"snapshot\"?+", + "mdl_score": 109965, + "imports": [ + "import importlib", + "import pytest", + "from fastapi.testclient import TestClient", + "from inline_snapshot import snapshot", + "from ...utils import needs_py310" + ], + "arg_patterns": { + "TestClient": { + "occurrences": 15, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 15, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "snapshot": { + "occurrences": 15, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 15, + "args": 1, + "types": [ + "other" + ] + } + ] + } + } + }, + { + "label": "tests/test_tutorial/test_security", + "method_count": 73, + "algorithm": "CRX", + "grammar": "root ::= (\"TestClient\" | \"app\" | \"client\" | \"get\" | \"headers\" | \"json\" | \"mod\" | \"response\" | \"status_code\" | \"text\")+", + "mdl_score": 184440, + "imports": [ + "import importlib", + "import pytest", + "from fastapi.testclient import TestClient", + "from inline_snapshot import snapshot", + "from ...utils import needs_py310", + "from types import ModuleType", + "from unittest.mock import patch", + "from functools import lru_cache", + "from typing import Any, cast", + "from base64 import b64encode" + ], + "arg_patterns": { + "TestClient": { + "occurrences": 102, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 102, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "snapshot": { + "occurrences": 21, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 21, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "b64encode": { + "occurrences": 6, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 6, + "args": 1, + "types": [ + "lit" + ] + } + ] + }, + "get_access_token": { + "occurrences": 24, + "arg_count": { + "min": 1, + "max": 4, + "common": 1 + }, + "patterns": [ + { + "count": 12, + "args": 1, + "types": [ + "kwarg" + ] + }, + { + "count": 6, + "args": 2, + "types": [ + "kwarg", + "kwarg" + ] + }, + { + "count": 3, + "args": 3, + "types": [ + "kwarg", + "kwarg", + "kwarg" + ] + }, + { + "count": 3, + "args": 4, + "types": [ + "kwarg", + "kwarg", + "kwarg", + "kwarg" + ] + } + ] + }, + "hasattr": { + "occurrences": 4, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 4, + "args": 2, + "types": [ + "var", + "lit" + ] + } + ] + }, + "cast": { + "occurrences": 3, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 3, + "args": 2, + "types": [ + "var", + "var" + ] + } + ] + }, + "lru_cache": { + "occurrences": 3, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 3, + "args": 0, + "types": [] + } + ] + } + } + }, + { + "label": "tests/test_tutorial/test_separate_openapi_schemas", + "method_count": 8, + "algorithm": "CRX", + "grammar": "root ::= (\"TestClient\" | \"app\" | \"client\" | \"get\" | \"import_module\" | \"importlib\" | \"json\" | \"mod\" | \"param\" | \"post\" | \"request\" | \"response\" | \"return\" | \"status_code\" | \"text\")?+ \"snapshot\"?+", + "mdl_score": 113580, + "imports": [ + "import importlib", + "import pytest", + "from fastapi.testclient import TestClient", + "from inline_snapshot import snapshot", + "from ...utils import needs_py310" + ], + "arg_patterns": { + "TestClient": { + "occurrences": 6, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 6, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "snapshot": { + "occurrences": 6, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 6, + "args": 1, + "types": [ + "other" + ] + } + ] + } + } + }, + { + "label": "tests/test_tutorial/test_server_sent_events", + "method_count": 17, + "algorithm": "CRX", + "grammar": "root ::= (\"TestClient\" | \"app\" | \"client\" | \"data_lines\" | \"for\" | \"get\" | \"if\" | \"import_module\" | \"importlib\" | \"in\" | \"len\" | \"line\" | \"mod\" | \"param\" | \"request\" | \"response\" | \"return\" | \"split\" | \"startswith\" | \"status_code\" | \"strip\" | \"text\")?+ \"json\"?+ \"snapshot\"?+", + "mdl_score": 23848, + "imports": [ + "import importlib", + "import pytest", + "from fastapi.testclient import TestClient", + "from inline_snapshot import snapshot" + ], + "arg_patterns": { + "snapshot": { + "occurrences": 15, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 15, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "len": { + "occurrences": 32, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 32, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "TestClient": { + "occurrences": 15, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 15, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "all": { + "occurrences": 8, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 8, + "args": 2, + "types": [ + "expr", + "other" + ] + } + ] + } + } + }, + { + "label": "tests/test_tutorial/test_settings", + "method_count": 16, + "algorithm": "CRX", + "grammar": "root ::= \"importlib\"? \"response\"? \"monkeypatch\"? \"import_module\"?+ \"json\"?+ \"client\"? \"setenv\"?+ \"get\"?+", + "mdl_score": 5, + "imports": [ + "import importlib", + "import sys", + "import pytest", + "from dirty_equals import IsAnyStr", + "from fastapi.testclient import TestClient", + "from inline_snapshot import snapshot", + "from pydantic import ValidationError", + "from pytest import MonkeyPatch", + "from types import ModuleType" + ], + "arg_patterns": { + "TestClient": { + "occurrences": 9, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 6, + "args": 1, + "types": [ + "other" + ] + }, + { + "count": 3, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "snapshot": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "other" + ] + } + ] + } + } + }, + { + "label": "tests/test_tutorial/test_sql_databases", + "method_count": 8, + "algorithm": "CRX", + "grammar": "root ::= (\"Any\" | \"StaticPool\" | \"TestClient\" | \"app\" | \"c\" | \"cast\" | \"catch_warnings\" | \"clear_sqlmodel\" | \"connect_args\" | \"create_engine\" | \"engine\" | \"import_module\" | \"importlib\" | \"mod\" | \"mod_any\" | \"param\" | \"poolclass\" | \"record\" | \"reload\" | \"request\" | \"simplefilter\" | \"sqlite_url\" | \"warnings\" | \"yield\")?+ \"SQLModel\"? (\"IsInt\" | \"client\" | \"delete\" | \"get\" | \"hero_id\" | \"json\" | \"post\" | \"response\" | \"snapshot\" | \"status_code\" | \"text\")?+ \"metadata\"? \"clear\"?+ \"default_registry\"? \"dispose\"?+", + "mdl_score": 29304, + "imports": [ + "import importlib", + "import warnings", + "from typing import Any, cast", + "import pytest", + "from dirty_equals import IsInt", + "from fastapi.testclient import TestClient", + "from inline_snapshot import snapshot", + "from sqlalchemy import StaticPool", + "from sqlmodel import SQLModel, create_engine", + "from sqlmodel.main import default_registry", + "from tests.utils import needs_py310", + "from inline_snapshot import Is, snapshot" + ], + "arg_patterns": { + "snapshot": { + "occurrences": 51, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 51, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "IsInt": { + "occurrences": 30, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 30, + "args": 0, + "types": [] + } + ] + }, + "clear_sqlmodel": { + "occurrences": 12, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 12, + "args": 0, + "types": [] + } + ] + }, + "Is": { + "occurrences": 6, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 6, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "TestClient": { + "occurrences": 6, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 6, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "create_engine": { + "occurrences": 6, + "arg_count": { + "min": 3, + "max": 3, + "common": 3 + }, + "patterns": [ + { + "count": 6, + "args": 3, + "types": [ + "other", + "kwarg", + "kwarg" + ] + } + ] + }, + "cast": { + "occurrences": 6, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 6, + "args": 2, + "types": [ + "var", + "var" + ] + } + ] + } + } + }, + { + "label": "tests/test_tutorial/test_static_files", + "method_count": 4, + "algorithm": "CRX", + "grammar": "root ::= (\"Path\" | \"TestClient\" | \"app\" | \"client\" | \"docs_src\" | \"exist_ok\" | \"from\" | \"get\" | \"getcwd\" | \"import\" | \"mkdir\" | \"os\" | \"response\" | \"sample_file\" | \"static_dir\" | \"static_files\" | \"status_code\" | \"text\" | \"tutorial001_py310\" | \"unlink\" | \"write_text\" | \"yield\")?+ \"json\"?+ \"rmdir\"?+ \"snapshot\"?+", + "mdl_score": 1210, + "imports": [ + "import os", + "from pathlib import Path", + "import pytest", + "from fastapi.testclient import TestClient", + "from inline_snapshot import snapshot", + "from tests.utils import workdir_lock", + "from docs_src.static_files.tutorial001_py310 import app" + ], + "arg_patterns": { + "TestClient": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "snapshot": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "Path": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "call" + ] + } + ] + } + } + }, + { + "label": "tests/test_tutorial/test_stream_data", + "method_count": 7, + "algorithm": "CRX", + "grammar": "root ::= \"importlib\"? (\"TestClient\" | \"app\" | \"client\" | \"get\" | \"mod\" | \"path\" | \"response\" | \"return\" | \"status_code\" | \"text\")?+ \"import_module\"?+ \"json\"?+ \"request\"? \"snapshot\"?+ \"param\"?", + "mdl_score": 250, + "imports": [ + "import importlib", + "import pytest", + "from fastapi.testclient import TestClient", + "from inline_snapshot import snapshot" + ], + "arg_patterns": { + "TestClient": { + "occurrences": 6, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 6, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "snapshot": { + "occurrences": 6, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 6, + "args": 1, + "types": [ + "other" + ] + } + ] + } + } + }, + { + "label": "tests/test_tutorial/test_stream_json_lines", + "method_count": 3, + "algorithm": "CRX", + "grammar": "root ::= (\"TestClient\" | \"app\" | \"client\" | \"for\" | \"get\" | \"headers\" | \"import_module\" | \"importlib\" | \"in\" | \"json\" | \"line\" | \"lines\" | \"loads\" | \"mod\" | \"param\" | \"path\" | \"request\" | \"response\" | \"return\" | \"splitlines\" | \"status_code\" | \"strip\" | \"text\")?+ (\"expected_items\" | \"snapshot\")?+", + "mdl_score": 1311046, + "imports": [ + "import importlib", + "import json", + "import pytest", + "from fastapi.testclient import TestClient", + "from inline_snapshot import snapshot" + ], + "arg_patterns": { + "snapshot": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "TestClient": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "other" + ] + } + ] + } + } + }, + { + "label": "tests/test_tutorial/test_strict_content_type", + "method_count": 4, + "algorithm": "CRX", + "grammar": "root ::= (\"TestClient\" | \"app\" | \"client\" | \"content\" | \"headers\" | \"import_module\" | \"importlib\" | \"json\" | \"mod\" | \"param\" | \"post\" | \"request\" | \"response\" | \"return\" | \"status_code\" | \"text\")+", + "mdl_score": 2053456, + "imports": [ + "import importlib", + "import pytest", + "from fastapi.testclient import TestClient" + ], + "arg_patterns": { + "TestClient": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "other" + ] + } + ] + } + } + }, + { + "label": "tests/test_tutorial/test_sub_applications", + "method_count": 4, + "algorithm": "CRX", + "grammar": "root ::= (\"client\" | \"get\" | \"response\" | \"status_code\" | \"text\")?+ \"json\"?+ \"snapshot\"?+", + "mdl_score": 470, + "imports": [ + "from fastapi.testclient import TestClient", + "from inline_snapshot import snapshot", + "from docs_src.sub_applications.tutorial001_py310 import app" + ], + "arg_patterns": { + "TestClient": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "snapshot": { + "occurrences": 6, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 6, + "args": 1, + "types": [ + "other" + ] + } + ] + } + } + }, + { + "label": "tests/test_tutorial/test_testing", + "method_count": 10, + "imports": [ + "from inline_snapshot import snapshot", + "from docs_src.app_testing.app_a_py310.test_main import client, test_read_main", + "import importlib", + "from types import ModuleType", + "import pytest", + "from ...utils import needs_py310", + "from docs_src.app_testing.tutorial001_py310 import client, test_read_main", + "from docs_src.app_testing.tutorial002_py310 import test_read_main, test_websocket", + "from docs_src.app_testing.tutorial003_py310 import test_read_items", + "from docs_src.app_testing.tutorial004_py310 import test_read_items" + ], + "arg_patterns": { + "test_read_main": { + "occurrences": 9, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 9, + "args": 0, + "types": [] + } + ] + }, + "snapshot": { + "occurrences": 6, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 6, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "test_read_items": { + "occurrences": 6, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 6, + "args": 0, + "types": [] + } + ] + }, + "test_websocket": { + "occurrences": 3, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 3, + "args": 0, + "types": [] + } + ] + } + } + }, + { + "label": "tests/test_tutorial/test_testing_dependencies", + "method_count": 8, + "algorithm": "CRX", + "grammar": "root ::= (\"client\" | \"get\" | \"response\" | \"status_code\" | \"test_module\" | \"text\")?+ \"json\"?+", + "mdl_score": 3450, + "imports": [ + "import importlib", + "from types import ModuleType", + "import pytest", + "from ...utils import needs_py310" + ], + "arg_patterns": { + "test_override_in_items_with_params": { + "occurrences": 3, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 3, + "args": 0, + "types": [] + } + ] + }, + "test_override_in_items_with_q": { + "occurrences": 3, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 3, + "args": 0, + "types": [] + } + ] + }, + "test_override_in_items": { + "occurrences": 3, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 3, + "args": 0, + "types": [] + } + ] + } + } + }, + { + "label": "tests/test_tutorial/test_websockets", + "method_count": 14, + "algorithm": "CRX", + "grammar": "root ::= (\"TestClient\" | \"WebSocketDisconnect\" | \"app\" | \"client\" | \"pytest\" | \"raises\")?+ \"websocket_connect\"?+ (\"data\" | \"message\" | \"receive_text\" | \"send_text\" | \"websocket\")?+", + "mdl_score": 10140, + "imports": [ + "import pytest", + "from fastapi.testclient import TestClient", + "from fastapi.websockets import WebSocketDisconnect", + "from docs_src.websockets_.tutorial001_py310 import app", + "import importlib", + "from fastapi import FastAPI", + "from ...utils import needs_py310", + "import time", + "from types import ModuleType" + ], + "arg_patterns": { + "TestClient": { + "occurrences": 24, + "arg_count": { + "min": 1, + "max": 2, + "common": 1 + }, + "patterns": [ + { + "count": 18, + "args": 1, + "types": [ + "var" + ] + }, + { + "count": 3, + "args": 1, + "types": [ + "other" + ] + }, + { + "count": 3, + "args": 2, + "types": [ + "var", + "kwarg" + ] + } + ] + } + } + }, + { + "label": "tests/test_validate_response_recursive", + "method_count": 3, + "algorithm": "CRX", + "grammar": "root ::= (\"TestClient\" | \"app\" | \"client\" | \"get\" | \"json\" | \"response\" | \"status_code\" | \"text\")?+ \"return\"?", + "mdl_score": 84264, + "imports": [ + "from fastapi import FastAPI", + "from pydantic import BaseModel", + "from fastapi.testclient import TestClient", + "from .app import app" + ], + "arg_patterns": { + "TestClient": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "FastAPI": { + "occurrences": 3, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 3, + "args": 0, + "types": [] + } + ] + }, + "RecursiveItem": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "RecursiveSubitemInSubmodel": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "RecursiveItemViaSubmodel": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "class": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "var" + ] + } + ] + } + } + } + ], + "total_methods": 4811 + } +] diff --git a/experiments/results/round21_loosened_filtering/fastapi.log b/experiments/results/round21_loosened_filtering/fastapi.log new file mode 100644 index 0000000..fd049c6 --- /dev/null +++ b/experiments/results/round21_loosened_filtering/fastapi.log @@ -0,0 +1,294 @@ +[ 0.0s] Scanning /home/tobi/Desktop/dervish/external_refs/fastapi ... +[ 0.0s] Preprocessing 4 files across 12 workers ... +[ 0.3s] Preprocess: 50 methods from 4 .js files (0.2s) +[ 0.3s] Groups: 1 named, 1 ungrouped methods +[ 0.3s] ├ docs/en/docs/js (49 methods) +[ 0.3s] └ (other) (1 methods) +[ 0.3s] Inferring 1 groups across 12 workers ... +[ 0.4s] [1/1] docs/en/docs/js (49 methods) done (0.2s) +[ 0.4s] Preprocessing 1129 files across 12 workers ... +[ 5.5s] Preprocess: 4811 methods from 1129 .py files (5.1s) +[ 5.5s] Groups: 141 named, 0 ungrouped methods +[ 5.5s] ├ docs_src (45 methods) +[ 5.5s] ├ docs_src/additional_responses (4 methods) +[ 5.5s] ├ docs_src/advanced_middleware (3 methods) +[ 5.5s] ├ docs_src/app_testing (14 methods) +[ 5.5s] ├ docs_src/app_testing/app_b_an_py310 (8 methods) +[ 5.5s] ├ docs_src/app_testing/app_b_py310 (8 methods) +[ 5.5s] ├ docs_src/background_tasks (8 methods) +[ 5.5s] ├ docs_src/behind_a_proxy (5 methods) +[ 5.5s] ├ docs_src/bigger_applications/app_an_py310 (4 methods) +[ 5.5s] ├ docs_src/bigger_applications/app_an_py310/routers (6 methods) +[ 5.5s] ├ docs_src/body (4 methods) +[ 5.5s] ├ docs_src/body_multiple_params (9 methods) +[ 5.5s] ├ docs_src/body_nested_models (9 methods) +[ 5.5s] ├ docs_src/body_updates (4 methods) +[ 5.5s] ├ docs_src/configure_swagger_ui (3 methods) +[ 5.5s] ├ docs_src/cookie_param_models (4 methods) +[ 5.5s] ├ docs_src/custom_docs_ui (8 methods) +[ 5.5s] ├ docs_src/custom_request_and_route (18 methods) +[ 5.5s] ├ docs_src/custom_response (19 methods) +[ 5.5s] ├ docs_src/dataclasses_ (4 methods) +[ 5.5s] ├ docs_src/dependencies (82 methods) +[ 5.5s] ├ docs_src/dependency_testing (14 methods) +[ 5.5s] ├ docs_src/events (7 methods) +[ 5.5s] ├ docs_src/extra_models (9 methods) +[ 5.5s] ├ docs_src/generate_clients (9 methods) +[ 5.5s] ├ docs_src/handling_errors (13 methods) +[ 5.5s] ├ docs_src/header_param_models (6 methods) +[ 5.5s] ├ docs_src/header_params (6 methods) +[ 5.5s] ├ docs_src/json_base64_bytes (3 methods) +[ 5.5s] ├ docs_src/metadata (6 methods) +[ 5.5s] ├ docs_src/path_operation_advanced_configuration (9 methods) +[ 5.5s] ├ docs_src/path_operation_configuration (12 methods) +[ 5.5s] ├ docs_src/path_params (8 methods) +[ 5.5s] ├ docs_src/path_params_numeric_validations (12 methods) +[ 5.5s] ├ docs_src/pydantic_v1_in_v2 (3 methods) +[ 5.5s] ├ docs_src/python_types (13 methods) +[ 5.5s] ├ docs_src/query_param_models (4 methods) +[ 5.5s] ├ docs_src/query_params (6 methods) +[ 5.5s] ├ docs_src/query_params_str_validations (31 methods) +[ 5.5s] ├ docs_src/request_files (24 methods) +[ 5.5s] ├ docs_src/request_form_models (4 methods) +[ 5.5s] ├ docs_src/response_model (16 methods) +[ 5.5s] ├ docs_src/schema_extra_example (8 methods) +[ 5.5s] ├ docs_src/security (70 methods) +[ 5.5s] ├ docs_src/separate_openapi_schemas (4 methods) +[ 5.5s] ├ docs_src/server_sent_events (8 methods) +[ 5.5s] ├ docs_src/settings (5 methods) +[ 5.5s] ├ docs_src/settings/app02_an_py310 (4 methods) +[ 5.5s] ├ docs_src/settings/app02_py310 (4 methods) +[ 5.5s] ├ docs_src/sql_databases (30 methods) +[ 5.5s] ├ docs_src/stream_data (14 methods) +[ 5.5s] ├ docs_src/stream_json_lines (4 methods) +[ 5.5s] ├ docs_src/websockets_ (15 methods) +[ 5.5s] ├ fastapi (239 methods) +[ 5.5s] ├ fastapi/_compat (45 methods) +[ 5.5s] ├ fastapi/dependencies (38 methods) +[ 5.5s] ├ fastapi/openapi (19 methods) +[ 5.5s] ├ fastapi/security (34 methods) +[ 5.5s] ├ scripts (132 methods) +[ 5.5s] ├ scripts/playwright (7 methods) +[ 5.5s] ├ scripts/playwright/separate_openapi_schemas (5 methods) +[ 5.5s] ├ scripts/tests/test_translation_fixer (12 methods) +[ 5.5s] ├ scripts/tests/test_translation_fixer/test_code_blocks (8 methods) +[ 5.5s] ├ scripts/tests/test_translation_fixer/test_header_permalinks (4 methods) +[ 5.5s] ├ tests (2036 methods) +[ 5.5s] ├ tests/benchmarks (48 methods) +[ 5.5s] ├ tests/test_modules_same_name_body (5 methods) +[ 5.5s] ├ tests/test_request_params/test_body (113 methods) +[ 5.5s] ├ tests/test_request_params/test_cookie (48 methods) +[ 5.5s] ├ tests/test_request_params/test_file (97 methods) +[ 5.5s] ├ tests/test_request_params/test_form (97 methods) +[ 5.5s] ├ tests/test_request_params/test_header (96 methods) +[ 5.5s] ├ tests/test_request_params/test_path (6 methods) +[ 5.5s] ├ tests/test_request_params/test_query (96 methods) +[ 5.5s] ├ tests/test_tutorial (16 methods) +[ 5.5s] ├ tests/test_tutorial/test_additional_responses (14 methods) +[ 5.5s] ├ tests/test_tutorial/test_additional_status_codes (3 methods) +[ 5.5s] ├ tests/test_tutorial/test_advanced_middleware (4 methods) +[ 5.5s] ├ tests/test_tutorial/test_authentication_error_status_code (4 methods) +[ 5.5s] ├ tests/test_tutorial/test_background_tasks (3 methods) +[ 5.5s] ├ tests/test_tutorial/test_behind_a_proxy (10 methods) +[ 5.5s] ├ tests/test_tutorial/test_bigger_applications (26 methods) +[ 5.5s] ├ tests/test_tutorial/test_body (32 methods) +[ 5.5s] ├ tests/test_tutorial/test_body_fields (5 methods) +[ 5.5s] ├ tests/test_tutorial/test_body_multiple_params (35 methods) +[ 5.5s] ├ tests/test_tutorial/test_body_nested_models (44 methods) +[ 5.5s] ├ tests/test_tutorial/test_body_updates (9 methods) +[ 5.5s] ├ tests/test_tutorial/test_conditional_openapi (4 methods) +[ 5.5s] ├ tests/test_tutorial/test_configure_swagger_ui (6 methods) +[ 5.5s] ├ tests/test_tutorial/test_cookie_param_models (12 methods) +[ 5.5s] ├ tests/test_tutorial/test_cookie_params (3 methods) +[ 5.5s] ├ tests/test_tutorial/test_custom_docs_ui (10 methods) +[ 5.5s] ├ tests/test_tutorial/test_custom_request_and_route (10 methods) +[ 5.5s] ├ tests/test_tutorial/test_custom_response (25 methods) +[ 5.5s] ├ tests/test_tutorial/test_dataclasses (11 methods) +[ 5.5s] ├ tests/test_tutorial/test_debugging (5 methods) +[ 5.5s] ├ tests/test_tutorial/test_dependencies (51 methods) +[ 5.5s] ├ tests/test_tutorial/test_encoder (5 methods) +[ 5.5s] ├ tests/test_tutorial/test_events (8 methods) +[ 5.5s] ├ tests/test_tutorial/test_extra_data_types (3 methods) +[ 5.5s] ├ tests/test_tutorial/test_extra_models (13 methods) +[ 5.5s] ├ tests/test_tutorial/test_first_steps (3 methods) +[ 5.5s] ├ tests/test_tutorial/test_generate_clients (13 methods) +[ 5.5s] ├ tests/test_tutorial/test_graphql (3 methods) +[ 5.5s] ├ tests/test_tutorial/test_handling_errors (20 methods) +[ 5.5s] ├ tests/test_tutorial/test_header_param_models (19 methods) +[ 5.5s] ├ tests/test_tutorial/test_header_params (9 methods) +[ 5.5s] ├ tests/test_tutorial/test_json_base64_bytes (5 methods) +[ 5.5s] ├ tests/test_tutorial/test_metadata (14 methods) +[ 5.5s] ├ tests/test_tutorial/test_openapi_callbacks (5 methods) +[ 5.5s] ├ tests/test_tutorial/test_openapi_webhooks (3 methods) +[ 5.5s] ├ tests/test_tutorial/test_path_operation_advanced_configurations (18 methods) +[ 5.5s] ├ tests/test_tutorial/test_path_operation_configurations (20 methods) +[ 5.5s] ├ tests/test_tutorial/test_path_params (18 methods) +[ 5.5s] ├ tests/test_tutorial/test_path_params_numeric_validations (29 methods) +[ 5.5s] ├ tests/test_tutorial/test_python_types (15 methods) +[ 5.5s] ├ tests/test_tutorial/test_query_param_models (12 methods) +[ 5.5s] ├ tests/test_tutorial/test_query_params (19 methods) +[ 5.5s] ├ tests/test_tutorial/test_query_params_str_validations (81 methods) +[ 5.5s] ├ tests/test_tutorial/test_request_files (31 methods) +[ 5.5s] ├ tests/test_tutorial/test_request_form_models (15 methods) +[ 5.5s] ├ tests/test_tutorial/test_request_forms (7 methods) +[ 5.5s] ├ tests/test_tutorial/test_request_forms_and_files (8 methods) +[ 5.5s] ├ tests/test_tutorial/test_response_directly (6 methods) +[ 5.5s] ├ tests/test_tutorial/test_response_model (35 methods) +[ 5.5s] ├ tests/test_tutorial/test_response_status_code (3 methods) +[ 5.5s] ├ tests/test_tutorial/test_schema_extra_example (15 methods) +[ 5.5s] ├ tests/test_tutorial/test_security (73 methods) +[ 5.5s] ├ tests/test_tutorial/test_separate_openapi_schemas (8 methods) +[ 5.5s] ├ tests/test_tutorial/test_server_sent_events (17 methods) +[ 5.5s] ├ tests/test_tutorial/test_settings (16 methods) +[ 5.5s] ├ tests/test_tutorial/test_sql_databases (8 methods) +[ 5.5s] ├ tests/test_tutorial/test_static_files (4 methods) +[ 5.5s] ├ tests/test_tutorial/test_stream_data (7 methods) +[ 5.5s] ├ tests/test_tutorial/test_stream_json_lines (3 methods) +[ 5.5s] ├ tests/test_tutorial/test_strict_content_type (4 methods) +[ 5.5s] ├ tests/test_tutorial/test_sub_applications (4 methods) +[ 5.5s] ├ tests/test_tutorial/test_testing (10 methods) +[ 5.5s] ├ tests/test_tutorial/test_testing_dependencies (8 methods) +[ 5.5s] ├ tests/test_tutorial/test_websockets (14 methods) +[ 5.5s] ├ tests/test_validate_response_recursive (3 methods) +[ 5.5s] Inferring 141 groups across 12 workers ... +[ 5.8s] [1/141] docs_src/app_testing/app_b_an_py310 (8 methods) done (0.2s) +[ 5.8s] [2/141] docs_src/app_testing/app_b_py310 (8 methods) done (0.2s) +[ 5.8s] [3/141] docs_src/advanced_middleware (3 methods) done (0.2s) +[ 5.8s] [4/141] docs_src/bigger_applications/app_an_py310/routers (6 methods) done (0.2s) +[ 5.8s] [5/141] docs_src/bigger_applications/app_an_py310 (4 methods) done (0.3s) +[ 5.8s] [6/141] docs_src/background_tasks (8 methods) done (0.3s) +[ 5.8s] [7/141] docs_src/additional_responses (4 methods) done (0.3s) +[ 5.9s] [8/141] docs_src/body_updates (4 methods) done (0.3s) +[ 5.9s] [9/141] docs_src/body (4 methods) done (0.4s) +[ 5.9s] [10/141] docs_src/configure_swagger_ui (3 methods) done (0.4s) +[ 5.9s] [11/141] docs_src/custom_docs_ui (8 methods) done (0.4s) +[ 5.9s] [12/141] docs_src/app_testing (14 methods) done (0.4s) +[ 6.0s] [13/141] docs_src/cookie_param_models (4 methods) done (0.4s) +[ 6.0s] [14/141] docs_src/behind_a_proxy (5 methods) done (0.5s) +[ 6.0s] [15/141] docs_src/dependency_testing (14 methods) done (0.5s) +[ 6.0s] [16/141] docs_src/dataclasses_ (4 methods) done (0.5s) +[ 6.1s] [17/141] docs_src/custom_request_and_route (18 methods) done (0.5s) +[ 6.1s] [18/141] docs_src/events (7 methods) done (0.5s) +[ 6.1s] [19/141] docs_src/json_base64_bytes (3 methods) done (0.6s) +[ 6.1s] [20/141] docs_src/generate_clients (9 methods) done (0.6s) +[ 6.1s] [21/141] docs_src/extra_models (9 methods) done (0.6s) +[ 6.2s] [22/141] docs_src/body_multiple_params (9 methods) done (0.7s) +[ 6.2s] [23/141] docs_src/body_nested_models (9 methods) done (0.7s) +[ 6.3s] [24/141] docs_src/header_param_models (6 methods) done (0.7s) +[ 6.3s] [25/141] docs_src/header_params (6 methods) done (0.8s) +[ 6.4s] [26/141] docs_src/metadata (6 methods) done (0.8s) +[ 6.4s] [27/141] docs_src/pydantic_v1_in_v2 (3 methods) done (0.9s) +[ 6.4s] [28/141] docs_src/path_params (8 methods) done (0.9s) +[ 6.4s] [29/141] docs_src/handling_errors (13 methods) done (0.9s) +[ 6.5s] [30/141] docs_src/path_operation_configuration (12 methods) done (0.9s) +[ 6.5s] [31/141] docs_src/custom_response (19 methods) done (1.0s) +[ 6.5s] [32/141] docs_src/path_operation_advanced_configuration (9 methods) done (1.0s) +[ 6.5s] [33/141] docs_src/query_param_models (4 methods) done (1.0s) +[ 6.6s] [34/141] docs_src/request_form_models (4 methods) done (1.1s) +[ 6.6s] [35/141] docs_src/separate_openapi_schemas (4 methods) done (1.1s) +[ 6.7s] [36/141] docs_src/query_params (6 methods) done (1.2s) +[ 6.8s] [37/141] docs_src/python_types (13 methods) done (1.3s) +[ 6.8s] [38/141] docs_src/settings/app02_an_py310 (4 methods) done (1.3s) +[ 6.8s] [39/141] docs_src/path_params_numeric_validations (12 methods) done (1.3s) +[ 6.8s] [40/141] docs_src/settings (5 methods) done (1.3s) +[ 6.8s] [41/141] docs_src/request_files (24 methods) done (1.3s) +[ 6.9s] [42/141] docs_src/server_sent_events (8 methods) done (1.3s) +[ 6.9s] [43/141] docs_src/settings/app02_py310 (4 methods) done (1.3s) +[ 6.9s] [44/141] docs_src/schema_extra_example (8 methods) done (1.4s) +[ 6.9s] [45/141] docs_src/stream_data (14 methods) done (1.4s) +[ 6.9s] [46/141] docs_src/stream_json_lines (4 methods) done (1.4s) +[ 7.0s] [47/141] fastapi/_compat (45 methods) done (1.5s) +[ 7.0s] [48/141] docs_src/websockets_ (15 methods) done (1.5s) +[ 7.0s] [49/141] fastapi/dependencies (38 methods) done (1.5s) +[ 7.1s] [50/141] docs_src/response_model (16 methods) done (1.6s) +[ 7.1s] [51/141] fastapi/openapi (19 methods) done (1.6s) +[ 7.2s] [52/141] fastapi/security (34 methods) done (1.7s) +[ 7.2s] [53/141] docs_src/security (70 methods) done (1.7s) +[ 7.3s] [54/141] scripts/playwright/separate_openapi_schemas (5 methods) done (1.7s) +[ 7.3s] [55/141] scripts/tests/test_translation_fixer/test_header_permalinks (4 methods) done (1.8s) +[ 7.3s] [56/141] scripts/tests/test_translation_fixer/test_code_blocks (8 methods) done (1.8s) +[ 7.3s] [57/141] tests/benchmarks (48 methods) done (1.8s) +[ 7.3s] [58/141] scripts/playwright (7 methods) done (1.8s) +[ 7.4s] [59/141] scripts/tests/test_translation_fixer (12 methods) done (1.8s) +[ 7.4s] [60/141] docs_src/dependencies (82 methods) done (1.9s) +[ 7.4s] [61/141] docs_src/sql_databases (30 methods) done (1.9s) +[ 7.4s] [62/141] docs_src (45 methods) done (1.9s) +[ 7.4s] [63/141] tests/test_request_params/test_cookie (48 methods) done (1.9s) +[ 7.5s] [64/141] tests/test_request_params/test_path (6 methods) done (1.9s) +[ 7.5s] [65/141] tests/test_modules_same_name_body (5 methods) done (2.0s) +[ 7.5s] [66/141] tests/test_tutorial/test_additional_status_codes (3 methods) done (2.0s) +[ 7.6s] [67/141] tests/test_request_params/test_body (113 methods) done (2.1s) +[ 7.6s] [68/141] tests/test_request_params/test_file (97 methods) done (2.1s) +[ 7.6s] [69/141] tests/test_request_params/test_query (96 methods) done (2.1s) +[ 7.6s] [70/141] tests/test_request_params/test_form (97 methods) done (2.1s) +[ 7.6s] [71/141] tests/test_request_params/test_header (96 methods) done (2.1s) +[ 7.7s] [72/141] scripts (132 methods) done (2.1s) +[ 7.7s] [73/141] tests/test_tutorial/test_additional_responses (14 methods) done (2.2s) +[ 7.7s] [74/141] tests/test_tutorial/test_authentication_error_status_code (4 methods) done (2.2s) +[ 7.7s] [75/141] tests/test_tutorial/test_advanced_middleware (4 methods) done (2.2s) +[ 7.7s] [76/141] tests/test_tutorial/test_bigger_applications (26 methods) done (2.2s) +[ 7.7s] [77/141] tests/test_tutorial/test_body_fields (5 methods) done (2.2s) +[ 7.7s] [78/141] tests/test_tutorial/test_background_tasks (3 methods) done (2.2s) +[ 7.8s] [79/141] tests/test_tutorial/test_conditional_openapi (4 methods) done (2.2s) +[ 7.8s] [80/141] tests/test_tutorial/test_body_updates (9 methods) done (2.3s) +[ 7.8s] [81/141] tests/test_tutorial/test_cookie_params (3 methods) done (2.3s) +[ 7.8s] [82/141] tests/test_tutorial/test_configure_swagger_ui (6 methods) done (2.3s) +[ 7.9s] [83/141] tests/test_tutorial/test_cookie_param_models (12 methods) done (2.3s) +[ 7.9s] [84/141] tests/test_tutorial/test_behind_a_proxy (10 methods) done (2.3s) +[ 7.9s] [85/141] tests/test_tutorial/test_body (32 methods) done (2.3s) +[ 7.9s] [86/141] fastapi (239 methods) done (2.4s) +[ 7.9s] [87/141] tests/test_tutorial/test_custom_docs_ui (10 methods) done (2.4s) +[ 7.9s] [88/141] tests/test_tutorial/test_debugging (5 methods) done (2.4s) +[ 7.9s] [89/141] docs_src/query_params_str_validations (31 methods) done (2.4s) +[ 7.9s] [90/141] tests/test_tutorial/test_body_multiple_params (35 methods) done (2.4s) +[ 8.0s] [91/141] tests/test_tutorial/test_encoder (5 methods) done (2.4s) +[ 8.0s] [92/141] tests/test_tutorial (16 methods) done (2.5s) +[ 8.0s] [93/141] tests/test_tutorial/test_custom_request_and_route (10 methods) done (2.5s) +[ 8.0s] [94/141] tests/test_tutorial/test_extra_data_types (3 methods) done (2.5s) +[ 8.0s] [95/141] tests/test_tutorial/test_first_steps (3 methods) done (2.5s) +[ 8.0s] [96/141] tests/test_tutorial/test_dataclasses (11 methods) done (2.5s) +[ 8.0s] [97/141] tests/test_tutorial/test_graphql (3 methods) done (2.5s) +[ 8.1s] [98/141] tests/test_tutorial/test_events (8 methods) done (2.5s) +[ 8.1s] [99/141] tests/test_tutorial/test_json_base64_bytes (5 methods) done (2.5s) +[ 8.1s] [100/141] tests/test_tutorial/test_body_nested_models (44 methods) done (2.5s) +[ 8.1s] [101/141] tests/test_tutorial/test_openapi_webhooks (3 methods) done (2.6s) +[ 8.1s] [102/141] tests/test_tutorial/test_openapi_callbacks (5 methods) done (2.6s) +[ 8.1s] [103/141] tests/test_tutorial/test_header_param_models (19 methods) done (2.6s) +[ 8.2s] [104/141] tests/test_tutorial/test_extra_models (13 methods) done (2.6s) +[ 8.2s] [105/141] tests/test_tutorial/test_header_params (9 methods) done (2.6s) +[ 8.2s] [106/141] tests/test_tutorial/test_generate_clients (13 methods) done (2.6s) +[ 8.3s] [107/141] tests/test_tutorial/test_query_param_models (12 methods) done (2.7s) +[ 8.3s] [108/141] tests/test_tutorial/test_metadata (14 methods) done (2.7s) +[ 8.3s] [109/141] tests/test_tutorial/test_handling_errors (20 methods) done (2.8s) +[ 8.4s] [110/141] tests/test_tutorial/test_path_params_numeric_validations (29 methods) done (2.9s) +[ 8.4s] [111/141] tests/test_tutorial/test_request_form_models (15 methods) done (2.9s) +[ 8.4s] [112/141] tests/test_tutorial/test_path_operation_configurations (20 methods) done (2.9s) +[ 8.4s] [113/141] tests/test_tutorial/test_path_operation_advanced_configurations (18 methods) done (2.9s) +[ 8.4s] [114/141] tests/test_tutorial/test_path_params (18 methods) done (2.9s) +[ 8.4s] [115/141] tests/test_tutorial/test_request_forms (7 methods) done (2.9s) +[ 8.4s] [116/141] tests/test_tutorial/test_custom_response (25 methods) done (2.9s) +[ 8.4s] [117/141] tests/test_tutorial/test_request_forms_and_files (8 methods) done (2.9s) +[ 8.5s] [118/141] tests/test_tutorial/test_query_params (19 methods) done (3.0s) +[ 8.5s] [119/141] tests/test_tutorial/test_response_status_code (3 methods) done (3.0s) +[ 8.5s] [120/141] tests/test_tutorial/test_request_files (31 methods) done (3.0s) +[ 8.5s] [121/141] tests/test_tutorial/test_response_directly (6 methods) done (3.0s) +[ 8.5s] [122/141] tests/test_tutorial/test_dependencies (51 methods) done (3.0s) +[ 8.6s] [123/141] tests/test_tutorial/test_separate_openapi_schemas (8 methods) done (3.0s) +[ 8.6s] [124/141] tests/test_tutorial/test_static_files (4 methods) done (3.1s) +[ 8.6s] [125/141] tests/test_tutorial/test_stream_json_lines (3 methods) done (3.1s) +[ 8.6s] [126/141] tests/test_tutorial/test_stream_data (7 methods) done (3.1s) +[ 8.6s] [127/141] tests/test_tutorial/test_strict_content_type (4 methods) done (3.1s) +[ 8.7s] [128/141] tests/test_tutorial/test_schema_extra_example (15 methods) done (3.1s) +[ 8.7s] [129/141] tests/test_tutorial/test_sql_databases (8 methods) done (3.2s) +[ 8.7s] [130/141] tests/test_tutorial/test_sub_applications (4 methods) done (3.2s) +[ 8.7s] [131/141] tests/test_tutorial/test_settings (16 methods) done (3.2s) +[ 8.7s] [132/141] tests/test_tutorial/test_testing_dependencies (8 methods) done (3.2s) +[ 8.7s] [133/141] tests/test_validate_response_recursive (3 methods) done (3.2s) +[ 8.7s] [134/141] tests/test_tutorial/test_python_types (15 methods) done (3.2s) +[ 8.7s] [135/141] tests/test_tutorial/test_server_sent_events (17 methods) done (3.2s) +[ 8.8s] [136/141] tests/test_tutorial/test_security (73 methods) done (3.2s) +[ 8.8s] [137/141] tests/test_tutorial/test_websockets (14 methods) done (3.3s) +[ 8.8s] [138/141] tests/test_tutorial/test_testing (10 methods) done (3.3s) +[ 8.9s] [139/141] tests/test_tutorial/test_response_model (35 methods) done (3.4s) +[ 9.0s] [140/141] tests/test_tutorial/test_query_params_str_validations (81 methods) done (3.5s) +[ 14.2s] [141/141] tests (2036 methods) done (8.6s) diff --git a/experiments/results/round21_loosened_filtering/ragsak.json b/experiments/results/round21_loosened_filtering/ragsak.json new file mode 100644 index 0000000..20dc3d7 --- /dev/null +++ b/experiments/results/round21_loosened_filtering/ragsak.json @@ -0,0 +1,4359 @@ +[ + { + "language": ".kt", + "conventions": [ + { + "label": "agents", + "method_count": 5, + "algorithm": "CRX", + "grammar": "root ::= \"slot\"? (\"defaultCapabilityId\" | \"summarize\")? \"ToolInvocationRequest\"? \"ToolingRequest\"? \"ToolInvocationResult\"? (\"String\" | \"answer\" | \"any\" | \"assertEquals\" | \"capture\" | \"captured\" | \"every\" | \"generateText\" | \"invoke\" | \"invokeTools\" | \"promptRunner\" | \"toolProfile\" | \"verify\")?+ \"prompt\"? \"contains\"?+", + "mdl_score": 142012, + "imports": [ + "import eu.corentic.springrag.agent.capability.AgentCapabilityHandler", + "import eu.corentic.springrag.agent.capability.AgentCapabilityInvocationGateway", + "import com.embabel.agent.api.common.ActionContext", + "import com.embabel.agent.api.common.PromptRunner", + "import eu.corentic.springrag.agent.tooling.embabel.DEFAULT_TOOL_PROFILE", + "import eu.corentic.springrag.agent.tooling.embabel.ToolInvocationAction", + "import eu.corentic.springrag.agent.tooling.embabel.ToolInvocationRequest", + "import eu.corentic.springrag.agent.tooling.embabel.ToolInvocationResult", + "import io.mockk.every", + "import io.mockk.mockk", + "import io.mockk.slot", + "import io.mockk.verify", + "import kotlin.test.assertEquals", + "import org.junit.jupiter.api.Test" + ], + "arg_patterns": {} + }, + { + "label": "agents/capability/ports/src/main/kotlin/eu/corentic/springrag/agent/capability", + "method_count": 5, + "algorithm": "CRX", + "grammar": "root ::= \"listCapabilities\"? \"AgentExecutionContext\"? \"DescribedAgentCapability\"? \"firstOrNull\"?+ \"TransportExposedAgentCapability\"? \"id\"? \"return AgentCapabilityDescriptor(\n id = id,\n capabilityType = capabilityType,\n displayName = describedCapability?.displayName ?: id,\n description = describedCapability?.description,\n exposedOverHttp = exposedCapability?.exposedOverHttp ?: false,\n exposedOverMcp = exposedCapability?.exposedOverMcp ?: false\n )\"? \"AgentCapabilityDescriptor\"? \"displayName\"? \"description\"? \"exposedOverHttp\"? \"exposedOverMcp\"?", + "mdl_score": 1553, + "imports": [], + "arg_patterns": {} + }, + { + "label": "agents/capability/support/src/main/kotlin/eu/corentic/springrag/agent/capability/support", + "method_count": 5, + "algorithm": "CRX", + "grammar": "root ::= \"resolve\"?+ \"flatMap\"?+ \"newVirtualThreadPerTaskExecutor\"?+ (\"DefaultAgentCapabilityDirectory\" | \"defaultCapabilityId\")?+ \"capabilityIdSelector\"? \"capabilityDescriptors\"?+ \"asCoroutineDispatcher\"?+ \"authorize\"?+ \"distinctBy\"?+ (\"AgentCapabilityDescriptor\" | \"capabilityType\" | \"compareBy\" | \"id\" | \"sortedWith\" | \"thenBy\")?+ \"return capability.invoke(request)\"? \"invoke\"?+", + "mdl_score": 0, + "imports": [ + "import eu.corentic.springrag.agent.capability.AgentCapabilityDirectory", + "import eu.corentic.springrag.agent.capability.AgentCapabilityRegistry", + "import kotlinx.coroutines.CoroutineDispatcher", + "import kotlinx.coroutines.asCoroutineDispatcher", + "import org.springframework.context.annotation.Bean", + "import org.springframework.context.annotation.Configuration", + "import java.util.concurrent.Executors", + "import eu.corentic.springrag.agent.capability.AgentCapabilityDescriptor", + "import eu.corentic.springrag.agent.capability.AgentCapabilityHandler", + "import eu.corentic.springrag.agent.capability.AgentCapabilityInvocationAuthorizer", + "import eu.corentic.springrag.agent.capability.AgentCapabilityInvocationGateway", + "import eu.corentic.springrag.agent.capability.AgentCapabilityResolver" + ], + "arg_patterns": {} + }, + { + "label": "agents/capability/support/src/test/kotlin/eu/corentic/springrag/agent/capability/support", + "method_count": 6, + "algorithm": "CRX", + "grammar": "root ::= \"runTest\"? \"TestRequest\"? (\"AgentCapabilityDescriptor\" | \"DefaultAgentCapabilityDirectory\" | \"IllegalStateException\" | \"assertEquals\" | \"assertFailsWith\" | \"authorize\" | \"capabilityDescriptors\" | \"coEvery\" | \"coVerify\" | \"defaultCapabilityId\" | \"every\" | \"id\" | \"invoke\" | \"listOf\" | \"message\" | \"resolve\" | \"verify\")?+ (\"any\" | \"listCapabilities\")?+", + "mdl_score": 790670, + "imports": [ + "import eu.corentic.springrag.agent.capability.AgentCapabilityDescriptor", + "import eu.corentic.springrag.agent.capability.AgentCapabilityRegistry", + "import io.mockk.every", + "import io.mockk.mockk", + "import org.junit.jupiter.api.Assertions.assertEquals", + "import org.junit.jupiter.api.Test", + "import eu.corentic.springrag.agent.capability.AgentCapabilityHandler", + "import eu.corentic.springrag.agent.capability.AgentCapabilityInvocationAuthorizer", + "import eu.corentic.springrag.agent.capability.AgentCapabilityResolver", + "import io.mockk.coEvery", + "import io.mockk.coVerify", + "import io.mockk.verify", + "import kotlinx.coroutines.test.runTest", + "import kotlin.test.Test", + "import kotlin.test.assertEquals", + "import kotlin.test.assertFailsWith" + ], + "arg_patterns": {} + }, + { + "label": "agents/examples/simple-rag/src/main/kotlin/eu/corentic/springrag/example/rag/simple", + "method_count": 9, + "algorithm": "CRX", + "grammar": "root ::= \"prompt\"?+ \"if\"? \"system\"?+ \"isEmpty\"?+ \"user\"?+ \"call\"?+ \"content\"?+", + "mdl_score": 0, + "imports": [ + "import eu.corentic.springrag.model.VectorChunk", + "import org.slf4j.LoggerFactory", + "import org.springframework.ai.chat.client.ChatClient", + "import tools.jackson.databind.ObjectMapper", + "import eu.corentic.springrag.agent.rag.RagAgent", + "import eu.corentic.springrag.agent.rag.RagRequest", + "import eu.corentic.springrag.agent.capability.AgentExecutionContext", + "import eu.corentic.springrag.agent.rag.support.RagDocumentSupport", + "import eu.corentic.springrag.model.ChatResponse", + "import eu.corentic.springrag.service.port.ChatGraphLookupPort", + "import eu.corentic.springrag.service.port.RetrievalPort", + "import kotlinx.coroutines.CoroutineDispatcher", + "import kotlinx.coroutines.withContext", + "import io.github.oshai.kotlinlogging.KotlinLogging" + ], + "arg_patterns": {} + }, + { + "label": "agents/examples/simple-rag/src/test/kotlin/eu/corentic/springrag/example/rag/simple", + "method_count": 14, + "algorithm": "CRX", + "grammar": "root ::= \"runTest\"? (\"ChatClientRequestSpec\" | \"mockk\")?+ \"CallResponseSpec\"? (\"String\" | \"any\" | \"call\" | \"every\" | \"prompt\" | \"system\" | \"user\")?+ \"content\"?+", + "mdl_score": 3710, + "imports": [ + "import eu.corentic.springrag.model.VectorChunk", + "import io.mockk.every", + "import io.mockk.mockk", + "import io.mockk.slot", + "import kotlinx.coroutines.test.runTest", + "import org.junit.jupiter.api.Assertions.assertEquals", + "import org.junit.jupiter.api.Test", + "import org.springframework.ai.chat.client.ChatClient", + "import org.springframework.ai.chat.client.ChatClient.CallResponseSpec", + "import org.springframework.ai.chat.client.ChatClient.ChatClientRequestSpec", + "import eu.corentic.springrag.agent.rag.RagAgent", + "import eu.corentic.springrag.agent.rag.RagRequest", + "import eu.corentic.springrag.common.ids.asKnowledgeBaseId", + "import eu.corentic.springrag.service.port.ChatGraphLookupPort", + "import eu.corentic.springrag.service.port.RetrievalPort", + "import io.mockk.coEvery", + "import io.mockk.coVerify", + "import io.mockk.verify", + "import kotlinx.coroutines.test.StandardTestDispatcher", + "import org.junit.jupiter.api.Assertions.assertTrue", + "import io.mockk.clearAllMocks", + "import org.junit.jupiter.api.AfterEach", + "import org.junit.jupiter.api.Assertions.assertFalse", + "import tools.jackson.databind.json.JsonMapper", + "import tools.jackson.module.kotlin.KotlinModule" + ], + "arg_patterns": {} + }, + { + "label": "agents/rag/embabel/src/main/kotlin/eu/corentic/springrag/agent/rag/embabel", + "method_count": 58, + "imports": [ + "import com.fasterxml.jackson.databind.ObjectMapper", + "import org.springframework.context.annotation.Bean", + "import org.springframework.context.annotation.Configuration", + "import com.embabel.agent.api.invocation.AgentInvocation", + "import com.embabel.agent.core.AgentPlatform", + "import com.embabel.agent.core.resultOfType", + "import com.embabel.agent.core.Identities", + "import com.embabel.agent.core.ProcessOptions", + "import com.embabel.agent.core.support.InMemoryBlackboard", + "import eu.corentic.springrag.agent.capability.AgentExecutionContext", + "import eu.corentic.springrag.agent.capability.DescribedAgentCapability", + "import eu.corentic.springrag.agent.capability.TransportExposedAgentCapability", + "import eu.corentic.springrag.agent.rag.RagAgent", + "import eu.corentic.springrag.agent.rag.RagInvocation", + "import eu.corentic.springrag.agent.rag.RagRequest", + "import eu.corentic.springrag.model.ChatResponse", + "import kotlinx.coroutines.CoroutineDispatcher", + "import kotlinx.coroutines.withContext", + "import org.springframework.beans.factory.annotation.Value", + "import org.springframework.stereotype.Component", + "import org.springframework.stereotype.Service", + "import kotlin.math.max", + "import eu.corentic.springrag.agent.rag.support.RagDocumentSupport", + "import eu.corentic.springrag.model.Source", + "import eu.corentic.springrag.model.VectorChunk", + "import eu.corentic.springrag.service.port.ChatGraphLookupPort", + "import eu.corentic.springrag.service.port.RetrievalPort", + "import io.github.oshai.kotlinlogging.KotlinLogging", + "import org.springframework.ai.chat.memory.ChatMemory", + "import com.embabel.agent.api.annotation.AchievesGoal", + "import com.embabel.agent.api.annotation.Action", + "import com.embabel.agent.api.annotation.Agent", + "import com.embabel.agent.api.annotation.Condition", + "import com.embabel.agent.api.common.ActionContext", + "import com.embabel.agent.domain.io.UserInput", + "import eu.corentic.springrag.agent.summarizer.SummarizeRequest", + "import eu.corentic.springrag.common.ids.KnowledgeBaseId", + "import eu.corentic.springrag.service.knowledgebase.KnowledgeBaseQueryPort", + "import io.micrometer.common.KeyValue", + "import io.micrometer.common.KeyValues", + "import org.springframework.ai.chat.client.observation.ChatClientObservationContext", + "import org.springframework.ai.chat.client.observation.DefaultChatClientObservationConvention", + "import io.micrometer.observation.ObservationRegistry", + "import java.util.function.Supplier", + "import org.springframework.ai.chat.client.ChatClient", + "import org.springframework.ai.chat.model.ChatModel", + "import org.springframework.ai.chat.client.advisor.PromptChatMemoryAdvisor", + "import org.springframework.ai.chat.prompt.ChatOptions", + "import org.springframework.cloud.client.circuitbreaker.CircuitBreakerFactory" + ], + "arg_patterns": {} + }, + { + "label": "agents/rag/embabel/src/main/kotlin/eu/corentic/springrag/agent/rag/embabel/librechat", + "method_count": 13, + "algorithm": "CRX", + "grammar": "root ::= \"buildObservationContext\" | \"scope\"", + "mdl_score": 4, + "imports": [ + "import com.embabel.agent.api.annotation.AchievesGoal", + "import com.embabel.agent.api.annotation.Action", + "import com.embabel.agent.api.annotation.Agent", + "import com.embabel.agent.api.annotation.Condition", + "import com.embabel.agent.api.common.ActionContext", + "import eu.corentic.springrag.agent.rag.RagRequest", + "import eu.corentic.springrag.agent.rag.embabel.ConversationMemoryContext", + "import eu.corentic.springrag.agent.rag.embabel.EmbabelJudgeDecision", + "import eu.corentic.springrag.agent.rag.embabel.EmbabelRagDecisionPolicy", + "import eu.corentic.springrag.agent.rag.embabel.EmbabelWorkflowObservationContext", + "import eu.corentic.springrag.agent.rag.embabel.EmbabelWorkflowObservationConvention", + "import eu.corentic.springrag.agent.rag.embabel.EmbabelWorkflowPromptService", + "import eu.corentic.springrag.agent.rag.embabel.JudgeOutcome", + "import eu.corentic.springrag.agent.rag.embabel.RagDecisionState", + "import eu.corentic.springrag.agent.rag.embabel.RetrievedEvidence", + "import eu.corentic.springrag.agent.rag.librechat.LibreChatRetrievalRequest", + "import eu.corentic.springrag.agent.rag.librechat.LibreChatRetrievalResult", + "import eu.corentic.springrag.agent.rag.support.RagDocumentSupport", + "import eu.corentic.springrag.model.VectorChunk", + "import eu.corentic.springrag.common.ids.JobId", + "import eu.corentic.springrag.common.ids.KnowledgeBaseId", + "import eu.corentic.springrag.service.port.ChatGraphLookupPort", + "import eu.corentic.springrag.service.port.RetrievalPort", + "import eu.corentic.springrag.service.port.VectorDocumentPort", + "import io.github.oshai.kotlinlogging.KotlinLogging", + "import org.springframework.stereotype.Service", + "import com.embabel.agent.core.AgentPlatform", + "import com.embabel.agent.core.Identities", + "import com.embabel.agent.core.ProcessOptions", + "import com.embabel.agent.core.resultOfType", + "import com.embabel.agent.core.support.InMemoryBlackboard", + "import eu.corentic.springrag.agent.rag.librechat.LibreChatRetrievalInvoker", + "import org.springframework.beans.factory.annotation.Value", + "import org.springframework.stereotype.Component" + ], + "arg_patterns": {} + }, + { + "label": "agents/rag/embabel/src/test/kotlin/eu/corentic/springrag/agent/rag/embabel", + "method_count": 36, + "algorithm": "CRX", + "grammar": "root ::= \"every\"? \"listKnowledgeBases\"?+ \"RagRequest\"? \"checkKnowledgeBase\"?+ \"assertEquals\"? \"of\"?+ \"request\"? \"knowledgeBaseId\"?", + "mdl_score": 66, + "imports": [ + "import com.embabel.agent.api.invocation.AgentInvocation", + "import com.embabel.agent.core.Agent", + "import com.embabel.agent.core.AgentPlatform", + "import com.embabel.agent.core.AgentProcess", + "import com.embabel.agent.core.ProcessOptions", + "import eu.corentic.springrag.agent.capability.AgentExecutionContext", + "import eu.corentic.springrag.agent.rag.RagInvocation", + "import eu.corentic.springrag.agent.rag.RagRequest", + "import eu.corentic.springrag.common.ids.asKnowledgeBaseId", + "import eu.corentic.springrag.model.ChatResponse", + "import io.mockk.every", + "import io.mockk.mockk", + "import io.mockk.mockkObject", + "import io.mockk.slot", + "import io.mockk.unmockkAll", + "import io.mockk.verify", + "import org.junit.jupiter.api.AfterEach", + "import org.junit.jupiter.api.Assertions.assertEquals", + "import org.junit.jupiter.api.Assertions.assertNull", + "import org.junit.jupiter.api.Test", + "import kotlinx.coroutines.test.StandardTestDispatcher", + "import kotlinx.coroutines.test.runTest", + "import eu.corentic.springrag.model.PageTextElement", + "import eu.corentic.springrag.model.VectorChunk", + "import eu.corentic.springrag.service.port.ChatGraphLookupPort", + "import eu.corentic.springrag.service.port.RetrievalPort", + "import org.junit.jupiter.api.Assertions.assertTrue", + "import org.springframework.ai.chat.memory.ChatMemory", + "import eu.corentic.springrag.common.ids.KnowledgeBaseId", + "import eu.corentic.springrag.service.knowledgebase.KnowledgeBaseListItem", + "import eu.corentic.springrag.service.knowledgebase.KnowledgeBaseQueryPort", + "import org.springframework.ai.chat.client.ChatClientRequest", + "import org.springframework.ai.chat.client.observation.ChatClientObservationContext", + "import org.springframework.ai.chat.prompt.Prompt", + "import eu.corentic.springrag.testsupport.NoOpCircuitBreakerFactory", + "import io.micrometer.observation.ObservationRegistry", + "import org.springframework.ai.chat.memory.InMemoryChatMemoryRepository", + "import org.springframework.ai.chat.memory.MessageWindowChatMemory", + "import org.springframework.ai.chat.messages.AssistantMessage", + "import org.springframework.ai.chat.messages.MessageType", + "import org.springframework.ai.chat.messages.UserMessage", + "import org.springframework.ai.chat.model.ChatModel", + "import org.springframework.ai.chat.model.ChatResponse", + "import org.springframework.ai.chat.model.Generation", + "import eu.corentic.springrag.agent.rag.embabel.EmbabelJudgeDecision", + "import eu.corentic.springrag.agent.rag.embabel.EmbabelRagDecisionPolicy", + "import eu.corentic.springrag.agent.rag.embabel.EmbabelRagWorkflowAgentProperties", + "import eu.corentic.springrag.agent.rag.embabel.EmbabelWorkflowPromptService", + "import eu.corentic.springrag.common.ids.JobId", + "import eu.corentic.springrag.agent.rag.librechat.LibreChatRetrievalRequest", + "import eu.corentic.springrag.service.port.VectorDocumentPort" + ], + "arg_patterns": {} + }, + { + "label": "agents/rag/embabel/src/test/kotlin/eu/corentic/springrag/testsupport", + "method_count": 3, + "algorithm": "CRX", + "grammar": "root ::= (\"Any\" | \"Builder\" | \"get\")+", + "mdl_score": 15, + "imports": [ + "import java.util.function.Function", + "import java.util.function.Supplier", + "import org.springframework.cloud.client.circuitbreaker.CircuitBreaker", + "import org.springframework.cloud.client.circuitbreaker.CircuitBreakerFactory", + "import org.springframework.cloud.client.circuitbreaker.ConfigBuilder" + ], + "arg_patterns": {} + }, + { + "label": "agents/rag/ports/src/main/kotlin/eu/corentic/springrag/agent/rag", + "method_count": 4, + "algorithm": "CRX", + "grammar": "root ::= \"defaultCapabilityId\"? \"answer\"? \"RagRequest\"? \"AgentExecutionContext\"? \"request\"? \"let\"?+ \"executionContext\"? \"KnowledgeBaseId\"?", + "mdl_score": 242, + "imports": [ + "import eu.corentic.springrag.agent.capability.AgentCapability", + "import eu.corentic.springrag.agent.capability.AgentCapabilityHandler", + "import eu.corentic.springrag.agent.capability.AgentExecutionContext", + "import eu.corentic.springrag.common.ids.KnowledgeBaseId", + "import eu.corentic.springrag.model.ChatResponse", + "import eu.corentic.springrag.agent.capability.AgentCapabilityInvocationGateway" + ], + "arg_patterns": {} + }, + { + "label": "agents/rag/ports/src/test/kotlin/eu/corentic/springrag/agent/rag", + "method_count": 3, + "algorithm": "CRX", + "grammar": "root ::= \"runTest\"? \"return ChatResponse(answer = \\\"ok\\\", sources = emptyList())\"? \"RecordingRagAgent\"? \"ChatResponse\"? \"RagInvocation\"? \"emptyList\"?+ \"RagRequest\"? \"invoke\"?+ (\"answer\" | \"asKnowledgeBaseId\" | \"assertEquals\" | \"conversationId\" | \"knowledgeBaseId\" | \"lastRequest\" | \"message\")?+ \"agentId\"? \"executionContext\"? \"lastContext\"?", + "mdl_score": 3304, + "imports": [ + "import eu.corentic.springrag.agent.capability.AgentExecutionContext", + "import eu.corentic.springrag.common.ids.asKnowledgeBaseId", + "import eu.corentic.springrag.model.ChatResponse", + "import kotlinx.coroutines.test.runTest", + "import org.junit.jupiter.api.Assertions.assertEquals", + "import org.junit.jupiter.api.Test" + ], + "arg_patterns": {} + }, + { + "label": "agents/rag/ports/src/test/kotlin/eu/corentic/springrag/model", + "method_count": 3, + "algorithm": "CRX", + "grammar": "root ::= \"ChatResponse\"? (\"Source\" | \"emptyList\" | \"listOf\")?+ \"toMarkdownSummary\"?+ (\"assertTrue\" | \"contains\")?+", + "mdl_score": 858, + "imports": [ + "import org.junit.jupiter.api.Assertions.assertTrue", + "import org.junit.jupiter.api.Test" + ], + "arg_patterns": {} + }, + { + "label": "agents/rag/support/src/main/kotlin/eu/corentic/springrag/agent/rag/support", + "method_count": 13, + "algorithm": "CRX", + "grammar": "root ::= (\"String\" | \"metadata\")+", + "mdl_score": 62, + "imports": [ + "import eu.corentic.springrag.agent.capability.AgentCapabilityDescriptor", + "import eu.corentic.springrag.agent.capability.toDescriptor", + "import eu.corentic.springrag.agent.rag.RagAgent", + "import eu.corentic.springrag.agent.rag.RagAgentRegistry", + "import org.springframework.stereotype.Component", + "import eu.corentic.springrag.common.ids.KnowledgeBaseId", + "import eu.corentic.springrag.model.Source", + "import eu.corentic.springrag.model.VectorChunk", + "import eu.corentic.springrag.service.port.ChatGraphLookupPort", + "import eu.corentic.springrag.service.port.RetrievalPort", + "import io.github.oshai.kotlinlogging.KotlinLogging" + ], + "arg_patterns": {} + }, + { + "label": "agents/rag/support/src/test/kotlin/eu/corentic/springrag/agent/rag/support", + "method_count": 11, + "algorithm": "CRX", + "grammar": "root ::= \"VectorChunk\"? \"mapOf\"?+ (\"every\" | \"id\")?+ \"capabilityType\"? \"DefaultRagAgentRegistry\"? \"listOf\"?+ \"assertEquals\"?", + "mdl_score": 100, + "imports": [ + "import eu.corentic.springrag.agent.capability.AgentExecutionContext", + "import eu.corentic.springrag.agent.rag.RagAgent", + "import eu.corentic.springrag.agent.rag.RagAgentInvocationAuthorizer", + "import eu.corentic.springrag.agent.rag.RagInvocation", + "import eu.corentic.springrag.agent.rag.RagAgentRegistry", + "import eu.corentic.springrag.agent.rag.RagRequest", + "import eu.corentic.springrag.common.ids.asKnowledgeBaseId", + "import eu.corentic.springrag.model.ChatResponse", + "import io.mockk.coEvery", + "import io.mockk.coVerify", + "import io.mockk.every", + "import io.mockk.mockk", + "import io.mockk.verify", + "import kotlinx.coroutines.test.runTest", + "import org.junit.jupiter.api.Assertions.assertEquals", + "import org.junit.jupiter.api.Test", + "import eu.corentic.springrag.agent.capability.AgentCapabilityDescriptor", + "import eu.corentic.springrag.agent.capability.DescribedAgentCapability", + "import eu.corentic.springrag.agent.capability.TransportExposedAgentCapability", + "import org.junit.jupiter.api.Assertions.assertThrows", + "import org.junit.jupiter.api.Assertions.assertDoesNotThrow", + "import eu.corentic.springrag.model.PageTextElement", + "import eu.corentic.springrag.model.SourceImage", + "import eu.corentic.springrag.model.VectorChunk", + "import eu.corentic.springrag.service.port.ChatGraphLookupPort", + "import eu.corentic.springrag.service.port.RetrievalPort", + "import kotlin.test.Test", + "import kotlin.test.assertEquals", + "import kotlin.test.assertTrue" + ], + "arg_patterns": {} + }, + { + "label": "agents/summarizer/embabel/src/main/kotlin/eu/corentic/springrag/agent/summarizer/embabel", + "method_count": 13, + "imports": [ + "import eu.corentic.springrag.agent.capability.AgentCapabilityDescriptor", + "import eu.corentic.springrag.agent.capability.toDescriptor", + "import eu.corentic.springrag.agent.summarizer.SummarizerAgent", + "import eu.corentic.springrag.agent.summarizer.SummarizerAgentRegistry", + "import org.springframework.stereotype.Component", + "import com.embabel.agent.api.invocation.AgentInvocation", + "import com.embabel.agent.core.AgentPlatform", + "import com.embabel.agent.core.Identities", + "import com.embabel.agent.core.ProcessOptions", + "import eu.corentic.springrag.agent.capability.DescribedAgentCapability", + "import eu.corentic.springrag.agent.capability.TransportExposedAgentCapability", + "import eu.corentic.springrag.agent.summarizer.SummarizeRequest", + "import eu.corentic.springrag.agent.summarizer.SummaryResponse", + "import kotlinx.coroutines.CoroutineDispatcher", + "import kotlinx.coroutines.Dispatchers", + "import kotlinx.coroutines.withContext", + "import org.springframework.stereotype.Service", + "import com.embabel.agent.api.annotation.AchievesGoal", + "import com.embabel.agent.api.annotation.Action", + "import com.embabel.agent.api.annotation.Agent", + "import com.embabel.agent.api.common.ActionContext", + "import com.embabel.agent.domain.io.UserInput", + "import com.embabel.common.ai.model.LlmOptions", + "import eu.corentic.springrag.agent.tooling.embabel.DEFAULT_TOOL_PROFILE", + "import eu.corentic.springrag.agent.tooling.embabel.ToolInvocationAction", + "import eu.corentic.springrag.agent.tooling.embabel.ToolInvocationRequest", + "import org.springframework.beans.factory.annotation.Value", + "import eu.corentic.springrag.agent.summarizer.SummarizerInvocationAuthorizer", + "import io.github.oshai.kotlinlogging.KotlinLogging" + ], + "arg_patterns": {} + }, + { + "label": "agents/summarizer/embabel/src/test/kotlin/eu/corentic/springrag/agent/summarizer/embabel", + "method_count": 14, + "imports": [ + "import com.embabel.agent.api.invocation.AgentInvocation", + "import com.embabel.agent.core.AgentPlatform", + "import com.embabel.agent.core.ProcessOptions", + "import eu.corentic.springrag.agent.capability.AgentExecutionContext", + "import eu.corentic.springrag.agent.summarizer.SummarizeRequest", + "import eu.corentic.springrag.agent.summarizer.SummaryResponse", + "import io.mockk.every", + "import io.mockk.mockk", + "import io.mockk.mockkObject", + "import io.mockk.slot", + "import io.mockk.unmockkAll", + "import io.mockk.verify", + "import org.junit.jupiter.api.AfterEach", + "import org.junit.jupiter.api.Assertions.assertEquals", + "import org.junit.jupiter.api.Assertions.assertNull", + "import org.junit.jupiter.api.Test", + "import eu.corentic.springrag.agent.capability.AgentCapabilityDescriptor", + "import eu.corentic.springrag.agent.summarizer.SummarizerAgent", + "import org.junit.jupiter.api.Assertions.assertThrows", + "import eu.corentic.springrag.agent.summarizer.SummarizerInvocationAuthorizer", + "import io.mockk.coEvery", + "import io.mockk.coVerify", + "import kotlinx.coroutines.test.runTest", + "import kotlinx.coroutines.test.StandardTestDispatcher", + "import com.embabel.agent.api.common.ActionContext", + "import com.embabel.agent.api.common.Ai", + "import com.embabel.agent.api.common.PromptRunner", + "import com.embabel.common.ai.model.LlmOptions", + "import org.junit.jupiter.api.Assertions.assertDoesNotThrow" + ], + "arg_patterns": {} + }, + { + "label": "agents/tooling/agent/src/main/kotlin/eu/corentic/springrag/agent/tooling/agent", + "method_count": 4, + "algorithm": "CRX", + "grammar": "root ::= \"ToolingRequest\"? (\"buildString\" | \"forEachIndexed\" | \"if\" | \"ifBlank\" | \"isEmpty\" | \"response\" | \"return buildString {\n result.toolCalls.forEachIndexed { index, call ->\n if (index > 0) append(\\\"\\\\n\\\\n\\\")\n append(\\\"Tool: \\\").append(call.tool).append(\\\"\\\\n\\\")\n append(\\\"Input: \\\").append(call.input).append(\\\"\\\\n\\\")\n append(\\\"Output:\\\\n\\\").append(call.output)\n }\n }\" | \"return result.response.ifBlank { \\\"No tool results were captured.\\\" }\" | \"toolCalls\")?+ \"goal\"? \"content\"? (\"append\" | \"input\" | \"tool\")?+ \"renderToolResults\"? \"output\"? \"trimIndent\"?+ \"return toolInvocationAction.invoke(\n ToolInvocationRequest(\n prompt = prompt,\n toolProfile = request.toolProfile\n ),\n context\n )\"? \"promptRunner\"?+ \"invoke\"?+ \"LlmOptions\"? \"ToolInvocationRequest\"? \"emptySet\"?+ \"toolProfile\"? \"emptyList\"?+ \"generateText\"?+ \"trim\"?+ \"return ToolingResponse(answer = answer)\"? \"ToolingResponse\"?", + "mdl_score": 0, + "imports": [ + "import com.embabel.agent.api.annotation.AchievesGoal", + "import com.embabel.agent.api.annotation.Action", + "import com.embabel.agent.api.annotation.Agent", + "import com.embabel.agent.api.common.ActionContext", + "import com.embabel.agent.domain.io.UserInput", + "import com.embabel.common.ai.model.LlmOptions", + "import eu.corentic.springrag.agent.tooling.embabel.ToolInvocationAction", + "import eu.corentic.springrag.agent.tooling.embabel.ToolInvocationRequest", + "import eu.corentic.springrag.agent.tooling.embabel.ToolInvocationResult", + "import org.springframework.stereotype.Service" + ], + "arg_patterns": {} + }, + { + "label": "agents/tooling/embabel/src/main/kotlin/eu/corentic/springrag/agent/tooling/embabel", + "method_count": 12, + "imports": [ + "import com.fasterxml.jackson.databind.ObjectMapper", + "import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean", + "import org.springframework.context.annotation.Bean", + "import org.springframework.context.annotation.Configuration", + "import com.embabel.agent.api.tool.ToolObject", + "import com.embabel.agent.api.annotation.Action", + "import com.embabel.agent.api.common.ActionContext", + "import com.embabel.agent.api.common.ContextualPromptElement", + "import com.embabel.common.ai.model.LlmOptions", + "import com.embabel.common.ai.prompt.PromptContributor", + "import com.embabel.agent.prompt.element.FocusedToolCallControl", + "import com.embabel.agent.prompt.element.ToolCallControl", + "import eu.corentic.springrag.agent.tooling.embabel.recording.ToolCallRecord", + "import eu.corentic.springrag.agent.tooling.embabel.recording.ToolInvocationRecorder", + "import org.springframework.stereotype.Service", + "import org.springframework.boot.context.properties.ConfigurationProperties", + "import org.springaicommunity.agent.tools.FileSystemTools", + "import org.springaicommunity.agent.tools.GrepTool", + "import org.springaicommunity.agent.tools.GlobTool", + "import org.springaicommunity.agent.tools.ShellTools", + "import org.springaicommunity.agent.tools.SmartWebFetchTool", + "import org.springframework.ai.chat.client.ChatClient", + "import org.springframework.boot.context.properties.EnableConfigurationProperties" + ], + "arg_patterns": {} + }, + { + "label": "agents/tooling/embabel/src/main/kotlin/eu/corentic/springrag/agent/tooling/embabel/recording", + "method_count": 11, + "imports": [ + "import com.embabel.agent.api.event.AgentProcessEvent", + "import com.embabel.agent.api.event.AgenticEventListener", + "import com.embabel.agent.api.event.ToolCallResponseEvent", + "import com.fasterxml.jackson.core.JsonProcessingException", + "import com.fasterxml.jackson.databind.ObjectMapper", + "import org.slf4j.LoggerFactory", + "import java.util.concurrent.ConcurrentHashMap", + "import com.embabel.agent.api.common.PlatformServices", + "import com.embabel.agent.api.event.MulticastAgenticEventListener", + "import org.springframework.beans.factory.config.BeanPostProcessor", + "import org.springframework.boot.context.properties.EnableConfigurationProperties", + "import org.springframework.context.annotation.Bean", + "import org.springframework.context.annotation.Configuration" + ], + "arg_patterns": {} + }, + { + "label": "agents/tooling/embabel/src/test/kotlin/eu/corentic/springrag/agent/tooling/embabel", + "method_count": 6, + "algorithm": "CRX", + "grammar": "root ::= \"ToolInvocationPolicyProperties\"? (\"AgentProcess\" | \"Any\" | \"PolicyAwareToolInvocationToolProvider\" | \"StaticToolInvocationToolProvider\" | \"ToolInvocationAction\" | \"ToolInvocationRequest\" | \"ToolObject\" | \"ToolProfilePolicy\" | \"addObject\" | \"agent\" | \"agentProcess\" | \"any\" | \"assertEquals\" | \"assertFalse\" | \"assertTrue\" | \"blackboard\" | \"capture\" | \"com\" | \"core\" | \"embabel\" | \"every\" | \"filter\" | \"generateText\" | \"get\" | \"id\" | \"invoke\" | \"listOf\" | \"mapOf\" | \"mockk\" | \"processContext\" | \"promptRunner\" | \"response\" | \"set\" | \"setOf\" | \"single\" | \"slot\" | \"toolObjectsFor\" | \"toolProfile\" | \"verify\" | \"withToolChainingFromAny\")?+ (\"captured\" | \"emptyList\")?+", + "mdl_score": 16597680, + "imports": [ + "import com.embabel.agent.api.tool.ToolObject", + "import kotlin.test.assertFalse", + "import kotlin.test.assertTrue", + "import kotlin.test.assertEquals", + "import org.junit.jupiter.api.Test", + "import com.embabel.agent.api.common.ActionContext", + "import com.embabel.agent.api.common.PromptRunner", + "import com.embabel.agent.core.Blackboard", + "import com.embabel.agent.core.ProcessContext", + "import io.mockk.Runs", + "import io.mockk.every", + "import io.mockk.just", + "import io.mockk.mockk", + "import io.mockk.slot", + "import io.mockk.verify" + ], + "arg_patterns": {} + }, + { + "label": "agents/wikipedia/adapters/src/main/kotlin/eu/corentic/springrag/agent/wikipedia", + "method_count": 4, + "algorithm": "CRX", + "grammar": "root ::= \"values\"? \"when\"? \"debug\"?+ \"sortedBy\"?+ \"isNullOrBlank\"?+ \"topic\"? \"id\"? \"else\"? \"map\"?+ \"error\"?+ \"toDescriptor\"?+", + "mdl_score": 0, + "imports": [ + "import eu.corentic.springrag.agent.capability.AgentCapabilityDescriptor", + "import eu.corentic.springrag.agent.capability.toDescriptor", + "import org.springframework.stereotype.Component", + "import io.github.oshai.kotlinlogging.KotlinLogging" + ], + "arg_patterns": {} + }, + { + "label": "agents/wikipedia/adapters/src/test/kotlin/eu/corentic/springrag/agent/wikipedia", + "method_count": 8, + "algorithm": "CRX", + "grammar": "root ::= (\"every\" | \"id\")?+ \"defaultCapabilityId\"?+ \"capabilityType\"? \"DefaultWikipediaLookupAgentRegistry\"? (\"assertEquals\" | \"listOf\")?+ \"AgentCapabilityDescriptor\"? \"capabilityDescriptors\"?+", + "mdl_score": 32, + "imports": [ + "import eu.corentic.springrag.agent.capability.AgentCapabilityDescriptor", + "import eu.corentic.springrag.agent.capability.DescribedAgentCapability", + "import eu.corentic.springrag.agent.capability.TransportExposedAgentCapability", + "import io.mockk.every", + "import io.mockk.mockk", + "import org.junit.jupiter.api.Assertions.assertEquals", + "import org.junit.jupiter.api.Assertions.assertThrows", + "import org.junit.jupiter.api.Test", + "import io.mockk.coEvery", + "import io.mockk.coVerify", + "import io.mockk.verify", + "import kotlinx.coroutines.test.runTest", + "import org.junit.jupiter.api.Assertions.assertDoesNotThrow" + ], + "arg_patterns": {} + }, + { + "label": "agents/wikipedia/static/src/main/kotlin/eu/corentic/springrag/agent/wikipedia", + "method_count": 3, + "algorithm": "CRX", + "grammar": "root ::= (\"WikipediaLookupResponse\" | \"contains\" | \"firstOrNull\" | \"normalize\" | \"return keywordMatch ?: WikipediaLookupResponse(\n topic = request.topic,\n summary = \\\"No static encyclopedia entry was found for \\\\\\\"${request.topic}\\\\\\\". This static capability can later be replaced with a real Wikipedia or MCP-backed lookup agent.\\\",\n wikipediaUrl = null,\n found = false\n )\" | \"topic\")?+ \"trim\"?+ \"lowercase\"?+ \"replace\"?+ \"Regex\"?", + "mdl_score": 120, + "imports": [ + "import eu.corentic.springrag.agent.capability.DescribedAgentCapability", + "import eu.corentic.springrag.agent.capability.TransportExposedAgentCapability", + "import org.springframework.stereotype.Component" + ], + "arg_patterns": {} + }, + { + "label": "agents/wikipedia/static/src/test/kotlin/eu/corentic/springrag/agent/wikipedia", + "method_count": 3, + "algorithm": "CRX", + "grammar": "root ::= \"runTest\"? \"invoke\"?+ \"WikipediaLookupRequest\"? \"assertFalse\"? (\"assertEquals\" | \"assertTrue\" | \"contains\" | \"found\" | \"summary\" | \"topic\")?+ \"wikipediaUrl\"?", + "mdl_score": 8136, + "imports": [ + "import kotlinx.coroutines.test.runTest", + "import org.junit.jupiter.api.Assertions.assertEquals", + "import org.junit.jupiter.api.Assertions.assertFalse", + "import org.junit.jupiter.api.Assertions.assertTrue", + "import org.junit.jupiter.api.Test" + ], + "arg_patterns": {} + }, + { + "label": "app/src", + "method_count": 6, + "algorithm": "CRX", + "grammar": "root ::= (\"assertTrue\" | \"isRunning\" | \"neo4jContainer\" | \"ollamaContainer\" | \"qdrantContainer\")?+ \"assertNotNull\"? \"YamlPropertiesFactoryBean\"? \"activeProfiles\"? \"getenv\"?+ \"setResources\"?+ \"joinToString\"?+ \"return WebTestClient.bindToServer().baseUrl(baseUrl).build()\"? \"ClassPathResource\"? \"ifBlank\"?+ \"bindToServer\"?+ \"`object`\"? (\"ConfigurableEnvironment\" | \"EnumerablePropertySource\" | \"String\" | \"add\" | \"first\" | \"forEach\" | \"getProperty\" | \"if\" | \"info\" | \"linkedSetOf\" | \"map\" | \"propertyNames\" | \"propertySources\" | \"return\" | \"return if (SECRET_KEY_PATTERNS.any { it.containsMatchIn(key) }) \\\"******\\\" else value\" | \"return value\" | \"size\" | \"sortedBy\" | \"warn\")?+ \"baseUrl\"?+ \"emptyMap\"?+ \"any\"?+ \"maskValue\"? \"build\"?+ (\"assertEquals\" | \"replace\" | \"toString\")?+ \"containsMatchIn\"?+ \"else\"?", + "mdl_score": 0, + "imports": [ + "import io.cucumber.spring.CucumberContextConfiguration", + "import org.springframework.boot.test.context.SpringBootTest", + "import org.springframework.boot.test.context.TestConfiguration", + "import org.springframework.context.annotation.Bean", + "import org.springframework.context.annotation.Import", + "import org.springframework.test.context.ActiveProfiles", + "import org.springframework.test.web.reactive.server.WebTestClient", + "import io.github.oshai.kotlinlogging.KotlinLogging", + "import org.springframework.boot.ApplicationArguments", + "import org.springframework.boot.ApplicationRunner", + "import org.springframework.core.env.ConfigurableEnvironment", + "import org.springframework.core.env.Environment", + "import org.springframework.core.env.EnumerablePropertySource", + "import org.springframework.stereotype.Component", + "import eu.corentic.springrag.config.BaseSystemTest", + "import eu.corentic.springrag.testcontainers.SharedContainers", + "import kotlin.test.assertNotNull", + "import org.junit.jupiter.api.Assertions.assertTrue", + "import org.junit.jupiter.api.Test", + "import org.springframework.boot.webtestclient.autoconfigure.AutoConfigureWebTestClient", + "import kotlin.test.assertEquals", + "import org.springframework.beans.factory.config.YamlPropertiesFactoryBean", + "import org.springframework.core.io.ClassPathResource" + ], + "arg_patterns": {} + }, + { + "label": "app/src/e2eTest/kotlin/eu/corentic/springrag/e2e/cucumber/steps", + "method_count": 17, + "algorithm": "CRX", + "grammar": "root ::= \"exchange\"?+ \"post\"?+ \"expectStatus\"?+ \"uri\"?+ \"contentType\"?+", + "mdl_score": 0, + "imports": [ + "import eu.corentic.springrag.e2e.cucumber.config.ScenarioContext", + "import io.cucumber.java.en.Given", + "import org.springframework.beans.factory.annotation.Autowired", + "import org.springframework.http.MediaType", + "import org.springframework.test.web.reactive.server.WebTestClient", + "import java.util.UUID", + "import io.cucumber.java.en.Then", + "import io.cucumber.java.en.When", + "import io.cucumber.java.Before", + "import org.junit.jupiter.api.Assertions.assertNotNull", + "import org.awaitility.Awaitility.await", + "import org.junit.jupiter.api.Assertions.assertEquals", + "import org.springframework.http.client.MultipartBodyBuilder", + "import org.springframework.web.reactive.function.BodyInserters", + "import java.io.File", + "import java.time.Duration" + ], + "arg_patterns": {} + }, + { + "label": "app/src/integrationTest/kotlin/eu/corentic/springrag/config", + "method_count": 15, + "imports": [ + "import org.springframework.batch.core.repository.JobRepository", + "import org.springframework.batch.test.JobRepositoryTestUtils", + "import org.springframework.boot.test.context.TestConfiguration", + "import org.springframework.context.annotation.Bean", + "import ai.docling.serve.api.DoclingServeApi", + "import eu.corentic.springrag.agent.rag.embabel.EmbabelRagResponseInvoker", + "import eu.corentic.springrag.agent.summarizer.embabel.EmbabelSummarizerResponseInvoker", + "import com.embabel.agent.core.AgentPlatform", + "import io.mockk.mockk", + "import io.qdrant.client.QdrantClient", + "import org.neo4j.driver.Driver", + "import org.neo4j.driver.Session", + "import org.springframework.ai.chat.model.ChatModel", + "import org.springframework.ai.chat.prompt.ChatOptions", + "import org.springframework.ai.embedding.EmbeddingModel", + "import org.springframework.ai.vectorstore.VectorStore", + "import org.springframework.context.annotation.Primary", + "import org.springframework.security.authentication.ReactiveAuthenticationManager", + "import org.springframework.batch.core.launch.JobOperator" + ], + "arg_patterns": {} + }, + { + "label": "app/src/integrationTest/kotlin/eu/corentic/springrag/controller", + "method_count": 5, + "algorithm": "CRX", + "grammar": "root ::= (\"Ok\" | \"ParsedJwt\" | \"SimpleGrantedAuthority\" | \"any\" | \"every\" | \"extractAuthorities\" | \"extractUsername\" | \"listOf\" | \"parseToken\" | \"validateToken\")?+ \"get\"?+ \"generateToken\"?+ \"ByteArray\"? \"bindToServer\"?+ \"User\"? \"InputStreamResource\"?+ \"baseUrl\"?+ \"ROLE_ADMIN\"? \"ByteArrayInputStream\"? \"mutate\"?+ \"fun\"? \"defaultHeader\"?+ \"Long\"?+ \"MultipartBodyBuilder\"? \"part\"?+ (\"header\" | \"post\" | \"uri\")?+ \"AUTHORIZATION\"? \"contentType\"?+ \"MULTIPART_FORM_DATA\"? \"body\"?+ \"fromMultipartData\"?+ \"build\"?+ \"exchange\"?+ \"expectStatus\"?+ \"isNotFound\"? \"isOk\"? \"expectBody\"?+ \"jsonPath\"?+ \"isEqualTo\"?+", + "mdl_score": 0, + "imports": [ + "import eu.corentic.springrag.config.IntegrationTestConfig", + "import eu.corentic.springrag.security.model.Role", + "import eu.corentic.springrag.security.model.User", + "import eu.corentic.springrag.security.service.JwtService", + "import org.junit.jupiter.api.Test", + "import org.junit.jupiter.api.BeforeEach", + "import org.springframework.beans.factory.annotation.Autowired", + "import org.springframework.boot.test.context.SpringBootTest", + "import org.springframework.boot.webtestclient.autoconfigure.AutoConfigureWebTestClient", + "import org.springframework.context.annotation.Import", + "import org.springframework.http.HttpHeaders", + "import org.springframework.test.context.ActiveProfiles", + "import org.springframework.test.web.reactive.server.WebTestClient", + "import com.ninjasquad.springmockk.MockkBean", + "import eu.corentic.springrag.common.Outcome", + "import eu.corentic.springrag.service.job.JobService", + "import eu.corentic.springrag.service.knowledgebase.KnowledgeBaseService", + "import io.mockk.every", + "import java.io.ByteArrayInputStream", + "import org.springframework.core.io.InputStreamResource", + "import org.springframework.http.HttpStatus", + "import org.springframework.http.MediaType", + "import org.springframework.http.client.MultipartBodyBuilder", + "import org.springframework.security.core.authority.SimpleGrantedAuthority", + "import org.springframework.web.reactive.function.BodyInserters", + "import org.springframework.boot.test.web.server.LocalServerPort" + ], + "arg_patterns": {} + }, + { + "label": "app/src/integrationTest/kotlin/eu/corentic/springrag/service", + "method_count": 3, + "algorithm": "CRX", + "grammar": "root ::= (\"Instant\" | \"JobId\" | \"KnowledgeBaseId\" | \"common\" | \"corentic\" | \"ids\" | \"of\" | \"parse\" | \"randomUUID\" | \"springrag\" | \"time\")?+ \"stream\"?+ \"model\"? (\"Assertions\" | \"anyMatch\" | \"api\" | \"assertTrue\" | \"expected\" | \"java\" | \"junit\" | \"jupiter\")?+ \"KnowledgeBase\"?+ \"simpleName\"? (\"every\" | \"existsById\")?+ \"findById\"?+ \"existsByJobIdAndKnowledgeBaseId\"?+ \"deleteKnowledgeBase\"?+ \"deleteDocument\"?+ \"KnowledgeBaseDeletionRequested\"? \"DocumentDeletionRequested\"? \"assertApplicationEventPublished\"?", + "mdl_score": 0, + "imports": [ + "import com.ninjasquad.springmockk.MockkBean", + "import eu.corentic.springrag.config.IntegrationTestConfig", + "import eu.corentic.springrag.model.event.DocumentDeletionRequested", + "import eu.corentic.springrag.model.event.KnowledgeBaseDeletionRequested", + "import eu.corentic.springrag.service.knowledgebase.KnowledgeBaseApplicationService", + "import eu.corentic.springrag.service.port.KnowledgeBaseDocumentPort", + "import eu.corentic.springrag.service.port.KnowledgeBasePort", + "import io.mockk.every", + "import java.util.UUID", + "import org.junit.jupiter.api.BeforeEach", + "import org.junit.jupiter.api.Test", + "import org.springframework.beans.factory.annotation.Autowired", + "import org.springframework.boot.test.context.SpringBootTest", + "import org.springframework.context.annotation.Import", + "import org.springframework.test.context.ActiveProfiles", + "import org.springframework.test.context.event.ApplicationEvents", + "import org.springframework.test.context.event.RecordApplicationEvents" + ], + "arg_patterns": {} + }, + { + "label": "app/src/systemTest/kotlin/eu/corentic/springrag/config", + "method_count": 14, + "imports": [ + "import eu.corentic.springrag.testcontainers.OllamaModelSupport", + "import eu.corentic.springrag.testcontainers.QdrantTestSupport", + "import eu.corentic.springrag.testcontainers.QdrantTestSupport.recreateTestCollection", + "import eu.corentic.springrag.testcontainers.SharedContainers", + "import eu.corentic.springrag.testcontainers.SharedContainers.ContainerType", + "import io.qdrant.client.QdrantClient", + "import java.time.Duration", + "import java.time.Instant", + "import java.util.UUID", + "import org.junit.jupiter.api.Assumptions", + "import org.junit.jupiter.api.BeforeAll", + "import org.junit.jupiter.api.BeforeEach", + "import org.neo4j.driver.Driver", + "import org.springframework.beans.factory.annotation.Autowired", + "import org.springframework.boot.test.context.SpringBootTest", + "import org.springframework.boot.webtestclient.autoconfigure.AutoConfigureWebTestClient", + "import org.springframework.jdbc.core.JdbcTemplate", + "import org.springframework.security.crypto.password.PasswordEncoder", + "import org.springframework.test.context.ActiveProfiles", + "import org.springframework.test.context.DynamicPropertyRegistry", + "import org.springframework.test.context.DynamicPropertySource", + "import org.springframework.test.context.TestPropertySource", + "import org.springframework.test.web.reactive.server.WebTestClient", + "import org.testcontainers.junit.jupiter.Testcontainers", + "import java.sql.Timestamp", + "import org.springframework.batch.core.repository.JobRepository", + "import org.springframework.batch.test.JobRepositoryTestUtils", + "import org.springframework.boot.test.context.TestConfiguration", + "import org.springframework.context.annotation.Bean", + "import org.mockito.Mockito", + "import org.springframework.context.annotation.Primary" + ], + "arg_patterns": {} + }, + { + "label": "app/src/systemTest/kotlin/eu/corentic/springrag/system", + "method_count": 46, + "imports": [ + "import eu.corentic.springrag.config.BaseSystemTest", + "import eu.corentic.springrag.controller.SessionChatRequest", + "import eu.corentic.springrag.model.ChatResponse", + "import java.time.Duration", + "import org.junit.jupiter.api.Assertions.assertEquals", + "import org.junit.jupiter.api.Assertions.assertNotNull", + "import org.junit.jupiter.api.Assertions.assertTrue", + "import org.junit.jupiter.api.Test", + "import org.springframework.test.web.reactive.server.returnResult", + "import eu.corentic.springrag.config.StorageProperties", + "import eu.corentic.springrag.repository.VectorRepository", + "import eu.corentic.springrag.repository.graph.DocumentJobNodeRepository", + "import eu.corentic.springrag.service.job.JobStatus", + "import eu.corentic.springrag.service.job.JobStatusType", + "import eu.corentic.springrag.service.port.ObjectStoragePort", + "import eu.corentic.springrag.common.ids.asJobId", + "import eu.corentic.springrag.common.ids.asLogicalDocumentId", + "import eu.corentic.springrag.common.ids.asStorageUri", + "import java.io.File", + "import java.nio.file.Files", + "import java.nio.file.Path", + "import java.nio.file.StandardCopyOption", + "import kotlin.io.path.createDirectory", + "import org.awaitility.Awaitility.await", + "import org.junit.jupiter.api.Assertions.assertNotEquals", + "import org.junit.jupiter.api.io.TempDir", + "import org.springframework.beans.factory.annotation.Autowired", + "import org.springframework.core.io.ClassPathResource", + "import org.springframework.http.MediaType", + "import org.springframework.http.client.MultipartBodyBuilder", + "import org.springframework.web.reactive.function.BodyInserters", + "import io.modelcontextprotocol.client.McpClient", + "import io.modelcontextprotocol.client.McpSyncClient", + "import io.modelcontextprotocol.client.transport.WebClientStreamableHttpTransport", + "import io.modelcontextprotocol.spec.McpSchema", + "import org.springframework.boot.test.web.server.LocalServerPort", + "import org.springframework.test.web.reactive.server.WebTestClient", + "import org.springframework.web.reactive.function.client.WebClient", + "import eu.corentic.springrag.common.ids.asKnowledgeBaseId", + "import kotlin.test.assertEquals", + "import kotlin.test.assertNotEquals", + "import kotlin.test.assertTrue", + "import org.neo4j.driver.Values", + "import eu.corentic.springrag.service.job.JobService", + "import kotlinx.coroutines.runBlocking", + "import org.junit.jupiter.api.assertThrows", + "import java.util.*", + "import eu.corentic.springrag.model.VectorChunk", + "import eu.corentic.springrag.testcontainers.QdrantTestSupport", + "import java.util.stream.Stream", + "import org.awaitility.core.ConditionTimeoutException", + "import org.junit.jupiter.api.Assertions.*", + "import org.junit.jupiter.params.ParameterizedTest", + "import org.junit.jupiter.params.provider.Arguments", + "import org.junit.jupiter.params.provider.MethodSource" + ], + "arg_patterns": {} + }, + { + "label": "app/src/test/kotlin/eu/corentic/springrag/architecture", + "method_count": 87, + "algorithm": "CRX", + "grammar": "root ::= \"contains\"+", + "mdl_score": 2, + "imports": [ + "import java.nio.file.Files", + "import java.nio.file.Path", + "import kotlin.io.path.exists", + "import org.junit.jupiter.api.Assertions.assertTrue", + "import org.junit.jupiter.api.Test", + "import org.junit.jupiter.api.fail", + "import com.lemonappdev.konsist.api.Konsist", + "import com.lemonappdev.konsist.api.ext.list.withAnnotationOf", + "import com.lemonappdev.konsist.api.verify.assertTrue", + "import org.springframework.stereotype.Service", + "import java.io.IOException", + "import java.nio.file.FileVisitResult", + "import java.nio.file.Paths", + "import java.nio.file.SimpleFileVisitor", + "import java.nio.file.attribute.BasicFileAttributes" + ], + "arg_patterns": {} + }, + { + "label": "app/src/test/kotlin/eu/corentic/springrag/config", + "method_count": 3, + "algorithm": "CRX", + "grammar": "root ::= \"YamlPropertiesFactoryBean\"? \"loadYaml\"? \"setResources\"?+ \"assertFalse\"? \"ClassPathResource\"? (\"assertEquals\" | \"assertTrue\" | \"containsKey\")?+ \"return factory.`object` ?: emptyMap()\"? \"`object`\"? \"emptyMap\"?+", + "mdl_score": 480, + "imports": [ + "import kotlin.test.assertEquals", + "import kotlin.test.assertFalse", + "import kotlin.test.assertTrue", + "import org.junit.jupiter.api.Test", + "import org.springframework.beans.factory.config.YamlPropertiesFactoryBean", + "import org.springframework.core.io.ClassPathResource" + ], + "arg_patterns": {} + }, + { + "label": "buildSrc/src/main/kotlin", + "method_count": 8, + "algorithm": "CRX", + "grammar": "root ::= \"getByType\"+ \"SourceSetContainer\"?", + "mdl_score": 5, + "imports": [ + "import org.gradle.api.Project", + "import org.gradle.api.artifacts.VersionCatalogsExtension", + "import org.gradle.api.file.SourceDirectorySet", + "import org.gradle.api.plugins.JavaPluginExtension", + "import org.gradle.api.tasks.SourceSet", + "import org.gradle.api.tasks.SourceSetContainer", + "import org.gradle.api.tasks.TaskProvider", + "import org.gradle.api.tasks.testing.Test", + "import org.gradle.jvm.toolchain.JavaLanguageVersion", + "import org.gradle.kotlin.dsl.get", + "import org.gradle.kotlin.dsl.getByType", + "import org.gradle.kotlin.dsl.named", + "import org.gradle.kotlin.dsl.register", + "import org.gradle.kotlin.dsl.withType" + ], + "arg_patterns": {} + }, + { + "label": "buildSrc/src/test/kotlin", + "method_count": 5, + "algorithm": "CRX", + "grammar": "root ::= (\"build\" | \"builder\" | \"withName\" | \"withParent\")?+ \"withType\"?+ \"pluginManager\"? \"configureStandardRepositories\"?+ \"MavenArtifactRepository\"? \"apply\"?+ \"mavenRepositoryUrls\"?+ \"extensions\"? \"getByType\"?+ \"SourceSetContainer\"? \"java\"? \"create\"?+ \"registerJvmTestTask\"?+ (\"get\" | \"named\" | \"register\" | \"registerStandardAggregateVerificationTasks\" | \"tasks\")?+ (\"URI\" | \"assertEquals\" | \"assertFalse\" | \"assertNotNull\" | \"assertTrue\" | \"classesDirs\" | \"classpath\" | \"contains\" | \"description\" | \"files\" | \"getDependencies\" | \"group\" | \"map\" | \"output\" | \"path\" | \"runtimeClasspath\" | \"setOf\" | \"size\" | \"taskDependencies\" | \"testClassesDirs\" | \"toSet\" | \"url\")?+ \"isEmpty\"?+ \"filter\"? \"isFailOnNoMatchingTests\"?", + "mdl_score": 0, + "imports": [ + "import java.net.URI", + "import kotlin.test.assertEquals", + "import kotlin.test.assertFalse", + "import kotlin.test.assertNotNull", + "import kotlin.test.assertTrue", + "import org.gradle.api.artifacts.repositories.MavenArtifactRepository", + "import org.gradle.api.tasks.SourceSetContainer", + "import org.gradle.testfixtures.ProjectBuilder", + "import org.junit.jupiter.api.Test" + ], + "arg_patterns": {} + }, + { + "label": "entrypoints/agent-mcp-server/src/main/kotlin/eu/corentic/springrag/mcp", + "method_count": 3, + "algorithm": "CRX", + "grammar": "root ::= \"mono\"? \"listCapabilities\"?+ \"filter\"?+ \"AgentCapabilityDescriptor\"? (\"KnowledgeBaseId\" | \"RagInvocation\" | \"RagRequest\" | \"WikipediaLookupRequest\" | \"addTextContent\" | \"builder\" | \"capabilityType\" | \"description\" | \"displayName\" | \"else\" | \"id\" | \"if\" | \"invoke\" | \"isEmpty\" | \"isNullOrBlank\" | \"joinToString\" | \"let\" | \"mapOf\" | \"mcp\" | \"structuredContent\" | \"summary\" | \"toMarkdownSummary\" | \"topic\" | \"wikipediaUrl\")?+ \"found\"? \"build\"?+", + "mdl_score": 1512, + "imports": [ + "import eu.corentic.springrag.agent.capability.AgentCapabilityDescriptor", + "import eu.corentic.springrag.agent.capability.AgentCapabilityDirectory", + "import eu.corentic.springrag.agent.capability.isExposedOverMcp", + "import io.modelcontextprotocol.spec.McpSchema.CallToolResult", + "import kotlinx.coroutines.reactor.mono", + "import org.springaicommunity.mcp.annotation.McpTool", + "import org.springframework.stereotype.Component", + "import reactor.core.publisher.Mono", + "import eu.corentic.springrag.agent.capability.AgentExecutionContext", + "import eu.corentic.springrag.agent.rag.RagAgentInvocationGateway", + "import eu.corentic.springrag.agent.rag.RagInvocation", + "import eu.corentic.springrag.agent.rag.RagRequest", + "import eu.corentic.springrag.common.ids.KnowledgeBaseId", + "import eu.corentic.springrag.model.toMarkdownSummary", + "import org.springaicommunity.mcp.annotation.McpToolParam", + "import eu.corentic.springrag.agent.wikipedia.WikipediaLookupInvocationGateway", + "import eu.corentic.springrag.agent.wikipedia.WikipediaLookupRequest" + ], + "arg_patterns": {} + }, + { + "label": "entrypoints/agent-mcp-server/src/test/kotlin/eu/corentic/springrag/mcp", + "method_count": 3, + "algorithm": "CRX", + "grammar": "root ::= \"AgentCapabilityDescriptor\"?+ \"ChatResponse\"? \"WikipediaLookupResponse\"? \"every\"? (\"Source\" | \"listCapabilities\" | \"listOf\")?+ \"coEvery\"? \"invoke\"?+ \"any\"? (\"ragAnswer\" | \"wikipediaLookup\")?+ \"block\"?+ \"content\"?+ \"first\"?+ \"TextContent\"? (\"assertTrue\" | \"contains\" | \"text\")?+ \"@\"? \"Suppress\"?+ (\"Any\" | \"List\" | \"Map\" | \"String\" | \"assertEquals\" | \"structuredContent\")?+ \"size\"?", + "mdl_score": 0, + "imports": [ + "import eu.corentic.springrag.agent.capability.AgentCapabilityDescriptor", + "import eu.corentic.springrag.agent.capability.AgentCapabilityDirectory", + "import io.mockk.every", + "import io.mockk.mockk", + "import io.modelcontextprotocol.spec.McpSchema.TextContent", + "import org.junit.jupiter.api.Assertions.assertEquals", + "import org.junit.jupiter.api.Assertions.assertTrue", + "import org.junit.jupiter.api.Test", + "import eu.corentic.springrag.agent.rag.RagAgentInvocationGateway", + "import eu.corentic.springrag.model.ChatResponse", + "import eu.corentic.springrag.model.Source", + "import io.mockk.coEvery", + "import eu.corentic.springrag.agent.wikipedia.WikipediaLookupInvocationGateway", + "import eu.corentic.springrag.agent.wikipedia.WikipediaLookupResponse" + ], + "arg_patterns": {} + }, + { + "label": "entrypoints/web/src/main/kotlin/eu/corentic/springrag/config", + "method_count": 3, + "algorithm": "CRX", + "grammar": "root ::= \"defer\"?+ \"addMapping\"?+ \"allowedOriginPatterns\"?+ \"split\"?+ \"map\"?+ \"trim\"?+ (\"contains\" | \"doFinally\" | \"else\" | \"filter\" | \"if\" | \"method\" | \"name\" | \"nanoTime\" | \"path\" | \"pathWithinApplication\" | \"put\" | \"request\" | \"response\" | \"return chain.filter(exchange)\" | \"return chain.filter(exchange)\n .doFinally {\n val tookMs = (System.nanoTime() - startedAt) / 1_000_000\n val status = exchange.response.statusCode?.value() ?: 0\n logger.info { \\\"LIBRECHAT $method $path -> $status (${tookMs}ms)\\\" }\n }\" | \"startsWith\" | \"statusCode\" | \"uri\" | \"value\" | \"when\")?+ \"isNotEmpty\"?+ (\"info\" | \"remove\")?+ \"toTypedArray\"?+ \"allowedMethods\"?+ \"allowedHeaders\"?+ \"allowCredentials\"?+", + "mdl_score": 0, + "imports": [ + "import org.springframework.beans.factory.annotation.Value", + "import org.springframework.context.annotation.Configuration", + "import org.springframework.web.reactive.config.CorsRegistry", + "import org.springframework.web.reactive.config.WebFluxConfigurer", + "import org.slf4j.MDC", + "import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty", + "import org.springframework.web.server.ServerWebExchange", + "import org.springframework.web.server.WebFilter", + "import org.springframework.web.server.WebFilterChain", + "import reactor.core.publisher.Mono", + "import io.github.oshai.kotlinlogging.KotlinLogging", + "import org.springframework.core.Ordered", + "import org.springframework.core.annotation.Order", + "import org.springframework.stereotype.Component" + ], + "arg_patterns": {} + }, + { + "label": "entrypoints/web/src/main/kotlin/eu/corentic/springrag/controller", + "method_count": 58, + "algorithm": "CRX", + "grammar": "root ::= \"warn\"?+ \"message\"? \"status\"?+", + "mdl_score": 14, + "imports": [ + "import eu.corentic.springrag.common.ids.BatchId", + "import eu.corentic.springrag.config.StorageProperties", + "import eu.corentic.springrag.service.job.BatchOwnershipService", + "import eu.corentic.springrag.service.job.JobService", + "import eu.corentic.springrag.service.job.JobStatus", + "import eu.corentic.springrag.service.knowledgebase.KnowledgeBaseApplicationService", + "import eu.corentic.springrag.service.knowledgebase.KnowledgeBaseNotFoundException", + "import jakarta.validation.constraints.NotBlank", + "import jakarta.validation.constraints.Pattern", + "import org.springframework.http.ResponseEntity", + "import org.springframework.security.access.prepost.PreAuthorize", + "import org.springframework.security.core.Authentication", + "import org.springframework.validation.annotation.Validated", + "import org.springframework.web.bind.annotation.*", + "import eu.corentic.springrag.agent.capability.AgentCapabilityDescriptor", + "import eu.corentic.springrag.model.ChatResponse", + "import eu.corentic.springrag.service.chat.ChatService", + "import jakarta.validation.Valid", + "import org.springframework.web.bind.annotation.GetMapping", + "import org.springframework.web.bind.annotation.PostMapping", + "import org.springframework.web.bind.annotation.RequestBody", + "import org.springframework.web.bind.annotation.RequestMapping", + "import org.springframework.web.bind.annotation.RestController", + "import kotlinx.coroutines.TimeoutCancellationException", + "import kotlinx.coroutines.withTimeout", + "import io.github.oshai.kotlinlogging.KotlinLogging", + "import org.springframework.beans.factory.annotation.Value", + "import java.util.UUID", + "import eu.corentic.springrag.controller.dto.ErrorResponse", + "import eu.corentic.springrag.security.service.PasswordPolicyViolationException", + "import eu.corentic.springrag.security.service.UserAlreadyExistsException", + "import eu.corentic.springrag.service.knowledgebase.KnowledgeBaseAlreadyExistsException", + "import eu.corentic.springrag.service.knowledgebase.DocumentNotFoundInKnowledgeBaseException", + "import eu.corentic.springrag.service.knowledgebase.InvalidKnowledgeBaseNameException", + "import eu.corentic.springrag.service.knowledgebase.KnowledgeBaseSizeLimitExceededException", + "import eu.corentic.springrag.service.job.JobAlreadyCompleteException", + "import eu.corentic.springrag.service.job.JobAlreadyRunningException", + "import eu.corentic.springrag.service.job.JobExecutionNotFoundException", + "import eu.corentic.springrag.service.job.BatchOwnershipException", + "import eu.corentic.springrag.service.job.BatchNotFoundException", + "import eu.corentic.springrag.service.job.BatchOwnerRequiredException", + "import eu.corentic.springrag.service.job.JobInputValidationException", + "import jakarta.validation.ConstraintViolationException", + "import org.springframework.http.HttpStatus", + "import org.springframework.http.converter.HttpMessageNotReadableException", + "import org.springframework.core.io.buffer.DataBufferLimitException", + "import org.springframework.web.bind.MethodArgumentNotValidException", + "import org.springframework.web.bind.annotation.ExceptionHandler", + "import org.springframework.web.bind.annotation.RestControllerAdvice", + "import org.springframework.web.method.annotation.MethodArgumentTypeMismatchException", + "import org.springframework.web.server.ServerWebInputException", + "import org.springframework.web.server.MissingRequestValueException", + "import org.springframework.web.bind.support.WebExchangeBindException", + "import eu.corentic.springrag.service.knowledgebase.*", + "import io.swagger.v3.oas.annotations.Operation", + "import io.swagger.v3.oas.annotations.tags.Tag", + "import io.swagger.v3.oas.annotations.Parameter", + "import java.security.Principal", + "import kotlinx.coroutines.reactor.awaitSingle", + "import org.springframework.http.codec.multipart.FilePart", + "import eu.corentic.springrag.common.ids.Filename", + "import eu.corentic.springrag.common.ids.StorageUri", + "import eu.corentic.springrag.service.job.StagedUploadCleanupService", + "import eu.corentic.springrag.service.port.ObjectStoragePort", + "import kotlinx.coroutines.reactor.awaitSingleOrNull", + "import java.nio.file.Files", + "import java.nio.file.Path", + "import org.springframework.core.io.buffer.DataBufferUtils", + "import org.springframework.stereotype.Component", + "import eu.corentic.springrag.security.service.JwtService", + "import eu.corentic.springrag.security.service.UserService", + "import org.springframework.security.crypto.password.PasswordEncoder" + ], + "arg_patterns": {} + }, + { + "label": "entrypoints/web/src/main/kotlin/eu/corentic/springrag/controller/librechat", + "method_count": 29, + "imports": [ + "import com.fasterxml.jackson.annotation.JsonProperty", + "import eu.corentic.springrag.common.ids.JobId", + "import eu.corentic.springrag.common.ids.Filename", + "import eu.corentic.springrag.common.ids.asStorageUri", + "import eu.corentic.springrag.model.GraphTableElement", + "import eu.corentic.springrag.model.GraphTextElement", + "import eu.corentic.springrag.service.document.DocumentIdentity", + "import eu.corentic.springrag.service.port.DocumentIdPort", + "import eu.corentic.springrag.service.port.DocumentImagePort", + "import eu.corentic.springrag.service.port.DocumentParserPort", + "import eu.corentic.springrag.service.port.DocumentParsingRequest", + "import eu.corentic.springrag.service.port.ObjectStoragePort", + "import eu.corentic.springrag.service.port.VectorDocumentDeletionPort", + "import eu.corentic.springrag.service.port.VectorDocumentPort", + "import eu.corentic.springrag.agent.rag.librechat.LibreChatRetrievalInvoker", + "import eu.corentic.springrag.agent.rag.librechat.LibreChatRetrievalRequest", + "import eu.corentic.springrag.service.job.JobService", + "import eu.corentic.springrag.service.job.JobStatusType", + "import eu.corentic.springrag.service.port.AgentKnowledgeBasePort", + "import jakarta.validation.Valid", + "import jakarta.validation.constraints.NotBlank", + "import jakarta.validation.constraints.NotEmpty", + "import kotlinx.coroutines.CoroutineDispatcher", + "import kotlinx.coroutines.withContext", + "import kotlinx.coroutines.reactor.awaitSingleOrNull", + "import org.springframework.http.MediaType", + "import org.springframework.http.ResponseEntity", + "import org.springframework.http.codec.multipart.FilePart", + "import org.springframework.web.bind.annotation.*", + "import org.springframework.core.io.buffer.DataBufferUtils", + "import kotlin.math.max", + "import kotlin.math.min", + "import eu.corentic.springrag.common.ids.BatchId", + "import eu.corentic.springrag.common.ids.StorageUri", + "import eu.corentic.springrag.config.StorageProperties", + "import eu.corentic.springrag.controller.InvalidUploadRequestException", + "import eu.corentic.springrag.service.job.StagedUploadCleanupService", + "import java.nio.file.Files", + "import java.nio.file.Path", + "import java.util.UUID", + "import kotlin.time.Duration.Companion.seconds", + "import kotlinx.coroutines.delay", + "import org.springframework.stereotype.Component" + ], + "arg_patterns": {} + }, + { + "label": "entrypoints/web/src/main/kotlin/eu/corentic/springrag/controller/web", + "method_count": 6, + "algorithm": "CRX", + "grammar": "root ::= \"collectList\"?+ (\"return \\\"chat\\\"\" | \"return \\\"index\\\"\" | \"return \\\"jobs\\\"\" | \"return \\\"knowledge-bases\\\"\" | \"return \\\"upload\\\"\")? \"awaitSingle\"?+ \"try\"? \"handleUpload\"?+ \"name\"? (\"IllegalArgumentException\" | \"InvalidUploadRequestException\" | \"KnowledgeBaseNotFoundException\" | \"RuntimeException\" | \"badRequest\" | \"body\" | \"catch\" | \"internalServerError\" | \"mapOf\" | \"message\" | \"return ResponseEntity.badRequest()\n .body(mapOf(\\\"error\\\" to (e.message ?: \\\"Invalid request\\\")))\" | \"return ResponseEntity.badRequest()\n .body(mapOf(\\\"error\\\" to (e.message ?: \\\"Invalid upload request\\\")))\" | \"return ResponseEntity.badRequest()\n .body(mapOf(\\\"error\\\" to (e.message ?: \\\"Knowledge base not found\\\")))\" | \"return ResponseEntity.internalServerError()\n .body(mapOf(\\\"error\\\" to \\\"Failed to upload files: ${e.message}\\\"))\")?+ \"mutableMapOf\"?+ \"String\"?+ \"Any\"? \"batchId\"? \"fileCount\"? \"files\"? \"if\"? \"jobTriggered\"? \"jobId\"? \"jobError\"? \"let\"?+ \"return ResponseEntity.ok(response)\"? \"ok\"?+", + "mdl_score": 0, + "imports": [ + "import eu.corentic.springrag.controller.UploadWorkflow", + "import eu.corentic.springrag.controller.InvalidUploadRequestException", + "import eu.corentic.springrag.service.knowledgebase.KnowledgeBaseNotFoundException", + "import java.security.Principal", + "import kotlinx.coroutines.reactor.awaitSingle", + "import org.springframework.http.MediaType", + "import org.springframework.http.ResponseEntity", + "import org.springframework.http.codec.multipart.FilePart", + "import org.springframework.stereotype.Controller", + "import org.springframework.web.bind.annotation.PostMapping", + "import org.springframework.web.bind.annotation.RequestParam", + "import org.springframework.web.bind.annotation.RequestPart", + "import org.springframework.web.bind.annotation.ResponseBody", + "import reactor.core.publisher.Flux", + "import org.springframework.web.bind.annotation.GetMapping" + ], + "arg_patterns": {} + }, + { + "label": "entrypoints/web/src/test/kotlin/eu/corentic/springrag/config", + "method_count": 4, + "algorithm": "CRX", + "grammar": "root ::= \"from\"?+ \"bindToWebHandler\"?+ \"webTestClient\"? \"post\"?+ \"WebHandler\"? (\"OK\" | \"response\" | \"setStatusCode\")?+ \"setComplete\"?+ \"webFilter\"?+ \"build\"?+ (\"AtomicReference\" | \"String\")?+ \"WebFilterChain\"? (\"assertEquals\" | \"assertNull\" | \"block\" | \"empty\" | \"filter\" | \"get\" | \"set\")?+ \"uri\"?+ \"exchange\"?+ \"expectStatus\"?+ \"isOk\"?", + "mdl_score": 0, + "imports": [ + "import java.util.concurrent.atomic.AtomicReference", + "import org.junit.jupiter.api.Assertions.assertEquals", + "import org.junit.jupiter.api.Assertions.assertNull", + "import org.junit.jupiter.api.Test", + "import org.slf4j.MDC", + "import org.springframework.mock.http.server.reactive.MockServerHttpRequest", + "import org.springframework.mock.web.server.MockServerWebExchange", + "import org.springframework.web.server.WebFilterChain", + "import reactor.core.publisher.Mono", + "import org.springframework.http.HttpStatus", + "import org.springframework.test.web.reactive.server.WebTestClient", + "import org.springframework.web.server.WebHandler" + ], + "arg_patterns": {} + }, + { + "label": "entrypoints/web/src/test/kotlin/eu/corentic/springrag/controller", + "method_count": 83, + "algorithm": "CRX", + "grammar": "root ::= \"expectBody\"?+ \"post\"?+ \"jsonPath\"?+ \"uri\"?+ \"isEqualTo\"?+ \"exchange\"?+ \"expectStatus\"?+", + "mdl_score": 0, + "imports": [ + "import eu.corentic.springrag.common.ids.BatchId", + "import eu.corentic.springrag.config.StorageProperties", + "import eu.corentic.springrag.service.job.BatchOwnershipService", + "import eu.corentic.springrag.service.job.JobService", + "import eu.corentic.springrag.service.job.BatchOwnershipException", + "import eu.corentic.springrag.service.job.JobStatus", + "import eu.corentic.springrag.service.job.JobStatusType", + "import eu.corentic.springrag.service.knowledgebase.KnowledgeBaseApplicationService", + "import eu.corentic.springrag.service.knowledgebase.KnowledgeBaseResponse", + "import io.mockk.every", + "import io.mockk.mockk", + "import io.mockk.verify", + "import java.nio.file.Path", + "import java.time.Duration", + "import java.time.LocalDateTime", + "import org.junit.jupiter.api.BeforeEach", + "import org.junit.jupiter.api.Test", + "import org.junit.jupiter.api.io.TempDir", + "import org.springframework.test.web.reactive.server.WebTestClient", + "import eu.corentic.springrag.service.job.BatchNotFoundException", + "import eu.corentic.springrag.agent.capability.AgentCapabilityDescriptor", + "import eu.corentic.springrag.model.ChatResponse", + "import eu.corentic.springrag.model.Source", + "import eu.corentic.springrag.service.chat.ChatService", + "import io.mockk.coEvery", + "import io.mockk.coVerify", + "import kotlinx.coroutines.test.runTest", + "import org.springframework.http.codec.json.JacksonJsonDecoder", + "import org.springframework.http.codec.json.JacksonJsonEncoder", + "import tools.jackson.databind.json.JsonMapper", + "import tools.jackson.module.kotlin.KotlinModule", + "import org.junit.jupiter.api.Assertions.assertEquals", + "import org.junit.jupiter.api.Assertions.assertNotNull", + "import eu.corentic.springrag.security.service.PasswordPolicyViolationException", + "import eu.corentic.springrag.security.service.UserAlreadyExistsException", + "import eu.corentic.springrag.service.knowledgebase.DocumentNotFoundInKnowledgeBaseException", + "import eu.corentic.springrag.service.knowledgebase.KnowledgeBaseAlreadyExistsException", + "import eu.corentic.springrag.service.knowledgebase.KnowledgeBaseSizeLimitExceededException", + "import eu.corentic.springrag.service.knowledgebase.InvalidKnowledgeBaseNameException", + "import eu.corentic.springrag.service.knowledgebase.KnowledgeBaseNotFoundException", + "import eu.corentic.springrag.service.job.JobAlreadyCompleteException", + "import eu.corentic.springrag.service.job.BatchOwnerRequiredException", + "import eu.corentic.springrag.service.job.JobAlreadyRunningException", + "import eu.corentic.springrag.service.job.JobExecutionNotFoundException", + "import eu.corentic.springrag.service.job.JobInputValidationException", + "import java.io.ByteArrayInputStream", + "import kotlin.test.assertEquals", + "import org.springframework.core.io.buffer.DataBufferLimitException", + "import org.springframework.core.MethodParameter", + "import org.springframework.http.HttpHeaders", + "import org.springframework.http.HttpInputMessage", + "import org.springframework.http.HttpStatus", + "import org.springframework.http.converter.HttpMessageNotReadableException", + "import org.springframework.web.method.annotation.MethodArgumentTypeMismatchException", + "import eu.corentic.springrag.service.knowledgebase.CreateKnowledgeBaseRequest", + "import eu.corentic.springrag.service.knowledgebase.KnowledgeBaseListItem", + "import eu.corentic.springrag.service.knowledgebase.KnowledgeBaseStatistics", + "import io.mockk.just", + "import io.mockk.runs", + "import java.time.Instant", + "import kotlinx.coroutines.runBlocking", + "import org.springframework.http.MediaType", + "import eu.corentic.springrag.service.job.StagedUploadCleanupService", + "import eu.corentic.springrag.service.port.ObjectStoragePort", + "import io.mockk.slot", + "import java.io.File", + "import org.springframework.http.client.MultipartBodyBuilder", + "import org.springframework.web.reactive.function.BodyInserters" + ], + "arg_patterns": {} + }, + { + "label": "entrypoints/web/src/test/kotlin/eu/corentic/springrag/controller/auth", + "method_count": 5, + "algorithm": "CRX", + "grammar": "root ::= (\"CREATED\" | \"LoginRequest\" | \"LoginResponse\" | \"OK\" | \"ROLE_USER\" | \"RegisterRequest\" | \"UNAUTHORIZED\" | \"User\" | \"UserAlreadyExistsException\" | \"assertEquals\" | \"assertThrows\" | \"body\" | \"every\" | \"findByUsername\" | \"generateToken\" | \"login\" | \"matches\" | \"register\" | \"registerUser\" | \"runBlocking\" | \"statusCode\" | \"token\" | \"username\")?+ \"init\"?+ \"Map\"?+ \"name\"? \"AuthController\"? \"assertTrue\"? \"role\"?", + "mdl_score": 34845, + "imports": [ + "import eu.corentic.springrag.security.model.Role", + "import eu.corentic.springrag.security.model.User", + "import eu.corentic.springrag.security.service.JwtService", + "import eu.corentic.springrag.security.service.UserAlreadyExistsException", + "import eu.corentic.springrag.security.service.UserService", + "import io.mockk.MockKAnnotations", + "import io.mockk.every", + "import io.mockk.impl.annotations.MockK", + "import kotlinx.coroutines.runBlocking", + "import org.junit.jupiter.api.Assertions.assertEquals", + "import org.junit.jupiter.api.Assertions.assertTrue", + "import org.junit.jupiter.api.BeforeEach", + "import org.junit.jupiter.api.Test", + "import org.junit.jupiter.api.assertThrows", + "import org.springframework.http.HttpStatus", + "import org.springframework.security.crypto.password.PasswordEncoder" + ], + "arg_patterns": {} + }, + { + "label": "entrypoints/web/src/test/kotlin/eu/corentic/springrag/controller/librechat", + "method_count": 46, + "algorithm": "CRX", + "grammar": "root ::= \"exchange\"?+ \"every\"? (\"get\" | \"post\")?+ \"expectStatus\"?+ \"uri\"?+ \"isOk\"? \"contentType\"?+ \"expectBody\"?+ \"jsonPath\"?+ \"isEqualTo\"?+", + "mdl_score": 0, + "imports": [ + "import eu.corentic.springrag.agent.rag.librechat.LibreChatRetrievalInvoker", + "import eu.corentic.springrag.agent.rag.librechat.LibreChatRetrievalRequest", + "import eu.corentic.springrag.agent.rag.librechat.LibreChatRetrievalResult", + "import eu.corentic.springrag.common.ids.JobId", + "import eu.corentic.springrag.common.ids.asStorageUri", + "import eu.corentic.springrag.controller.GlobalExceptionHandler", + "import eu.corentic.springrag.model.GraphDocument", + "import eu.corentic.springrag.model.GraphTableElement", + "import eu.corentic.springrag.model.GraphTextElement", + "import eu.corentic.springrag.model.ParsedDocument", + "import eu.corentic.springrag.model.VectorChunk", + "import eu.corentic.springrag.service.job.JobService", + "import eu.corentic.springrag.service.job.JobStatus", + "import eu.corentic.springrag.service.job.JobStatusType", + "import eu.corentic.springrag.service.port.AgentKnowledgeBasePort", + "import eu.corentic.springrag.service.port.DocumentIdPort", + "import eu.corentic.springrag.service.port.DocumentImageInfo", + "import eu.corentic.springrag.service.port.DocumentImagePort", + "import eu.corentic.springrag.service.port.DocumentParserPort", + "import eu.corentic.springrag.service.port.ObjectStoragePort", + "import eu.corentic.springrag.service.port.VectorDocumentDeletionPort", + "import eu.corentic.springrag.service.port.VectorDocumentPort", + "import kotlinx.coroutines.CoroutineDispatcher", + "import kotlinx.coroutines.test.UnconfinedTestDispatcher", + "import io.mockk.coEvery", + "import io.mockk.coVerify", + "import io.mockk.every", + "import io.mockk.mockk", + "import io.mockk.slot", + "import io.mockk.verify", + "import org.junit.jupiter.api.BeforeEach", + "import org.junit.jupiter.api.Test", + "import org.springframework.http.HttpMethod", + "import org.springframework.http.MediaType", + "import org.springframework.http.client.MultipartBodyBuilder", + "import org.springframework.test.web.reactive.server.WebTestClient", + "import org.springframework.web.reactive.function.BodyInserters", + "import kotlin.test.assertEquals", + "import kotlin.test.assertNotNull", + "import kotlin.test.assertTrue", + "import eu.corentic.springrag.common.ids.StorageUri", + "import eu.corentic.springrag.config.StorageProperties", + "import eu.corentic.springrag.controller.InvalidUploadRequestException", + "import eu.corentic.springrag.service.job.StagedUploadCleanupService", + "import kotlinx.coroutines.test.runTest", + "import org.springframework.core.io.buffer.DefaultDataBufferFactory", + "import org.springframework.http.HttpHeaders", + "import org.springframework.http.codec.multipart.FilePart", + "import reactor.core.publisher.Flux", + "import kotlin.test.assertContains", + "import kotlin.test.assertFailsWith" + ], + "arg_patterns": {} + }, + { + "label": "entrypoints/web/src/test/kotlin/eu/corentic/springrag/controller/web", + "method_count": 10, + "algorithm": "CRX", + "grammar": "root ::= \"RuntimeException\"? \"runBlocking\"? \"verify\"? \"handleFileUpload\"?+ \"controller\"? \"just\"?+ (\"every\" | \"knowledgeBaseExists\")?+ \"filePart\"? \"startBulkJob\"?+ (\"OK\" | \"assertEquals\" | \"statusCode\")?+ \"any\"?+ \"body\"? \"get\"?+", + "mdl_score": 0, + "imports": [ + "import eu.corentic.springrag.config.StorageProperties", + "import eu.corentic.springrag.controller.UploadWorkflow", + "import eu.corentic.springrag.service.job.BatchOwnershipService", + "import eu.corentic.springrag.service.job.JobService", + "import eu.corentic.springrag.service.job.StagedUploadCleanupService", + "import eu.corentic.springrag.service.knowledgebase.KnowledgeBaseApplicationService", + "import eu.corentic.springrag.service.port.ObjectStoragePort", + "import eu.corentic.springrag.service.knowledgebase.KnowledgeBaseResponse", + "import io.mockk.every", + "import io.mockk.mockk", + "import io.mockk.verify", + "import java.nio.file.Files", + "import java.nio.file.Path", + "import java.time.Duration", + "import java.time.Instant", + "import kotlinx.coroutines.runBlocking", + "import org.junit.jupiter.api.Assertions.assertEquals", + "import org.junit.jupiter.api.Assertions.assertFalse", + "import org.junit.jupiter.api.Assertions.assertTrue", + "import org.junit.jupiter.api.Test", + "import org.junit.jupiter.api.io.TempDir", + "import org.springframework.http.HttpHeaders", + "import org.springframework.http.HttpStatus", + "import org.springframework.http.codec.multipart.FilePart", + "import reactor.core.publisher.Flux", + "import reactor.core.publisher.Mono" + ], + "arg_patterns": {} + }, + { + "label": "infrastructure/adapters", + "method_count": 3, + "algorithm": "CRX", + "grammar": "root ::= \"return CommandLineRunner {\n try {\n driver.session().use { session ->\n logger.info { \\\"[NEO4J] Initializing schema constraints...\\\" }\n\n session.run(\n \\\"CREATE CONSTRAINT document_id_unique IF NOT EXISTS FOR (d:Document) REQUIRE d.id IS UNIQUE\\\"\n )\n session.run(\n \\\"CREATE CONSTRAINT page_id_unique IF NOT EXISTS FOR (p:Page) REQUIRE p.id IS UNIQUE\\\"\n )\n session.run(\n \\\"CREATE CONSTRAINT image_id_unique IF NOT EXISTS FOR (i:ImageData) REQUIRE i.id IS UNIQUE\\\"\n )\n session.run(\n \\\"CREATE CONSTRAINT text_id_unique IF NOT EXISTS FOR (t:TextElement) REQUIRE t.id IS UNIQUE\\\"\n )\n session.run(\n \\\"CREATE CONSTRAINT table_id_unique IF NOT EXISTS FOR (t:TableElement) REQUIRE t.id IS UNIQUE\\\"\n )\n session.run(\n \\\"CREATE CONSTRAINT header_id_unique IF NOT EXISTS FOR (h:SectionHeaderElement) REQUIRE h.id IS UNIQUE\\\"\n )\n session.run(\n \\\"CREATE CONSTRAINT picture_id_unique IF NOT EXISTS FOR (p:PictureElement) REQUIRE p.id IS UNIQUE\\\"\n )\n session.run(\n \\\"CREATE CONSTRAINT knowledge_base_id_unique IF NOT EXISTS FOR (kb:KnowledgeBase) REQUIRE kb.id IS UNIQUE\\\"\n )\n\n session.run(\\\"MATCH (d:Document) WHERE d.version IS NULL SET d.version = 0\\\")\n session.run(\\\"MATCH (p:Page) WHERE p.version IS NULL SET p.version = 0\\\")\n session.run(\\\"MATCH (i:ImageData) WHERE i.version IS NULL SET i.version = 0\\\")\n session.run(\\\"MATCH (t:TextElement) WHERE t.version IS NULL SET t.version = 0\\\")\n session.run(\\\"MATCH (t:TableElement) WHERE t.version IS NULL SET t.version = 0\\\")\n session.run(\\\"MATCH (p:PictureElement) WHERE p.version IS NULL SET p.version = 0\\\")\n session.run(\\\"MATCH (h:SectionHeaderElement) WHERE h.version IS NULL SET h.version = 0\\\")\n session.run(\\\"MATCH (k:KnowledgeBase) WHERE k.version IS NULL SET k.version = 0\\\")\n\n logger.info { \\\"[NEO4J] All unique constraints verified/created\\\" }\n }\n } catch (e: RuntimeException) {\n logger.error(e) { \\\"[NEO4J] Failed to initialize schema\\\" }\n throw e\n }\n }\"? \"return Neo4jTransactionManager(driver)\"? \"builder\"?+ \"CommandLineRunner\"? \"Neo4jTransactionManager\"? \"chatMemoryRepository\"?+ \"try\"? \"maxMessages\"?+ \"session\"?+ \"build\"?+ \"use\"?+ (\"info\" | \"run\")?+ \"catch\"? \"RuntimeException\"? \"error\"?+ \"throw e\"? \"throw\"?", + "mdl_score": 0, + "imports": [ + "import org.springframework.ai.chat.memory.ChatMemory", + "import org.springframework.ai.chat.memory.ChatMemoryRepository", + "import org.springframework.ai.chat.memory.MessageWindowChatMemory", + "import org.springframework.beans.factory.annotation.Value", + "import org.springframework.context.annotation.Bean", + "import org.springframework.context.annotation.Configuration", + "import org.neo4j.driver.Driver", + "import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty", + "import org.springframework.context.annotation.Primary", + "import org.springframework.data.neo4j.core.transaction.Neo4jTransactionManager", + "import org.springframework.transaction.PlatformTransactionManager", + "import io.github.oshai.kotlinlogging.KotlinLogging", + "import org.springframework.boot.CommandLineRunner" + ], + "arg_patterns": {} + }, + { + "label": "infrastructure/adapters/ai-provider/src/main/kotlin/eu/corentic/springrag/config", + "method_count": 4, + "algorithm": "CRX", + "grammar": "root ::= \"timeout\"? \"connectTimeout\"? (\"region\" | \"writeValueAsString\")?+ \"read\"? \"toMillis\"?+ \"coerceAtMost\"?+ \"MAX_VALUE\"? \"toLong\"?+ \"toInt\"?+ (\"CONNECT_TIMEOUT_MILLIS\" | \"END\" | \"InputType\" | \"LoggingCohereEmbeddingBedrockApi\" | \"ReactorClientHttpRequestFactory\" | \"ReadTimeoutHandler\" | \"SEARCH_DOCUMENT\" | \"SECONDS\" | \"Truncate\" | \"WriteTimeoutHandler\" | \"addHandlerLast\" | \"baseUrl\" | \"build\" | \"builder\" | \"create\" | \"debug\" | \"doOnConnected\" | \"embedding\" | \"embeddings\" | \"firstOrNull\" | \"getModelId\" | \"info\" | \"inputType\" | \"ofSeconds\" | \"option\" | \"readTimeout\" | \"requestFactory\" | \"responseTimeout\" | \"restClientBuilder\" | \"return OllamaApi.builder()\n .baseUrl(properties.baseUrl)\n .restClientBuilder(restClientBuilder)\n .build()\" | \"return ReactorClientHttpRequestFactory(httpClient)\" | \"return try {\n val response = super.embedding(request)\n logger.debug { \\\"Cohere embedding success: ${response.embeddings().size} embeddings\\\" }\n response\n } catch (e: Exception) {\n logger.error(e) { \\\"Cohere embedding failed: ${e.message}\\\" }\n throw e\n }\" | \"seconds\" | \"size\" | \"take\" | \"texts\" | \"trace\" | \"truncate\" | \"try\" | \"writeTimeout\")?+ \"catch\"? \"return BedrockCohereEmbeddingModel(api, options)\"? \"Exception\"? \"BedrockCohereEmbeddingModel\"? \"error\"?+ \"message\"? \"throw e\"? \"throw\"?", + "mdl_score": 0, + "imports": [ + "import io.netty.channel.ChannelOption", + "import io.netty.handler.timeout.ReadTimeoutHandler", + "import io.netty.handler.timeout.WriteTimeoutHandler", + "import java.util.concurrent.TimeUnit", + "import org.springframework.context.annotation.Bean", + "import org.springframework.context.annotation.Configuration", + "import org.springframework.http.client.ClientHttpRequestFactory", + "import org.springframework.http.client.ReactorClientHttpRequestFactory", + "import reactor.netty.http.client.HttpClient", + "import com.fasterxml.jackson.databind.ObjectMapper", + "import io.github.oshai.kotlinlogging.KotlinLogging", + "import org.springframework.ai.bedrock.cohere.BedrockCohereEmbeddingModel", + "import org.springframework.ai.bedrock.cohere.BedrockCohereEmbeddingOptions", + "import org.springframework.ai.bedrock.cohere.api.CohereEmbeddingBedrockApi", + "import org.springframework.ai.bedrock.cohere.api.CohereEmbeddingBedrockApi.CohereEmbeddingRequest", + "import org.springframework.ai.bedrock.cohere.api.CohereEmbeddingBedrockApi.CohereEmbeddingResponse", + "import org.springframework.ai.embedding.EmbeddingModel", + "import org.springframework.beans.factory.annotation.Qualifier", + "import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty", + "import org.springframework.context.annotation.Primary", + "import software.amazon.awssdk.auth.credentials.AwsCredentialsProvider", + "import software.amazon.awssdk.regions.providers.AwsRegionProvider", + "import java.time.Duration", + "import org.springframework.ai.ollama.api.OllamaApi", + "import org.springframework.context.annotation.Profile", + "import org.springframework.web.client.RestClient" + ], + "arg_patterns": {} + }, + { + "label": "infrastructure/adapters/ai-provider/src/main/kotlin/eu/corentic/springrag/health", + "method_count": 3, + "algorithm": "CRX", + "grammar": "root ::= \"fromCallable\"?+ \"run\"?+ \"runWithCircuitBreaker\"? \"Supplier\"? \"listModels\"?+ \"action\"? \"models\"?+ \"throw throwable ?: IllegalStateException(\\\"Ollama circuit breaker fallback\\\")\"? \"subscribeOn\"?+ \"throw\"? \"boundedElastic\"?+ \"IllegalStateException\"? \"map\"?+ \"mapNotNull\"?+ \"name\"?+ \"listOf\"?+ \"filterNot\"?+ \"any\"?+ \"modelMatches\"? \"if\"? \"return true\"? \"isEmpty\"?+ \"substringBefore\"?+ \"up\"?+ \"return normalizedRequired == normalizedAvailable\"? (\"build\" | \"down\" | \"else\" | \"just\" | \"onErrorResume\" | \"withDetail\")?+", + "mdl_score": 0, + "imports": [ + "import org.springframework.ai.ollama.api.OllamaApi", + "import org.springframework.beans.factory.annotation.Value", + "import org.springframework.boot.health.contributor.Health", + "import org.springframework.boot.health.contributor.ReactiveHealthIndicator", + "import org.springframework.cloud.client.circuitbreaker.CircuitBreakerFactory", + "import org.springframework.context.annotation.Profile", + "import org.springframework.stereotype.Component", + "import java.util.function.Supplier", + "import reactor.core.publisher.Mono", + "import reactor.core.scheduler.Schedulers" + ], + "arg_patterns": {} + }, + { + "label": "infrastructure/adapters/ai-provider/src/test/kotlin/eu/corentic/springrag/config", + "method_count": 6, + "algorithm": "CRX", + "grammar": "root ::= \"assertThrows\"? \"IllegalArgumentException\"? \"java\"? \"EmbabelAiHttpClientProperties\"? \"OllamaClientProperties\"? \"Timeout\"?+ (\"assertEquals\" | \"baseUrl\" | \"ofSeconds\" | \"readTimeout\" | \"writeTimeout\")?+ \"connectTimeout\"? \"timeout\"? \"read\"?", + "mdl_score": 12825, + "imports": [ + "import java.time.Duration", + "import kotlin.test.assertEquals", + "import org.junit.jupiter.api.Assertions.assertThrows", + "import org.junit.jupiter.api.Test" + ], + "arg_patterns": {} + }, + { + "label": "infrastructure/adapters/ai-provider/src/test/kotlin/eu/corentic/springrag/health", + "method_count": 4, + "algorithm": "CRX", + "grammar": "root ::= \"`when`\"? \"listModels\"?+ \"thenReturn\"?+ \"thenThrow\"?+ \"ListModelResponse\"?+ \"RuntimeException\"? \"listOf\"?+ (\"Model\" | \"now\")?+ \"requireNotNull\"?+ \"OllamaHealthIndicator\"? \"NoOpCircuitBreakerFactory\"? \"health\"?+ \"block\"?+ \"assertEquals\"? \"status\"? \"code\"?", + "mdl_score": 0, + "imports": [ + "import java.time.Instant", + "import eu.corentic.springrag.testsupport.NoOpCircuitBreakerFactory", + "import org.junit.jupiter.api.Assertions.assertEquals", + "import org.junit.jupiter.api.Test", + "import org.mockito.Mockito.mock", + "import org.mockito.Mockito.`when`", + "import org.springframework.ai.ollama.api.OllamaApi" + ], + "arg_patterns": {} + }, + { + "label": "infrastructure/adapters/ai-provider/src/test/kotlin/eu/corentic/springrag/service/embedding", + "method_count": 5, + "algorithm": "CRX", + "grammar": "root ::= \"builder\"?+ (\"BedrockCohereEmbeddingModel\" | \"CapturingCohereApi\" | \"CohereEmbeddingResponse\" | \"EmbeddingRequest\" | \"FloatArray\" | \"InputType\" | \"NONE\" | \"SEARCH_DOCUMENT\" | \"Truncate\" | \"assertEquals\" | \"assertNotNull\" | \"build\" | \"call\" | \"capturedRequest\" | \"embed\" | \"inputType\" | \"listOf\" | \"map\" | \"println\" | \"readTree\" | \"return CohereEmbeddingResponse(\n \\\"test-id\\\",\n fakeEmbeddings,\n request.texts(),\n \\\"embeddings_floats\\\",\n null\n )\" | \"texts\" | \"truncate\" | \"writeValueAsString\")?+", + "mdl_score": 1027200, + "imports": [ + "import com.fasterxml.jackson.databind.ObjectMapper", + "import org.junit.jupiter.api.Assertions.assertEquals", + "import org.junit.jupiter.api.Assertions.assertNotNull", + "import org.junit.jupiter.api.Test", + "import org.springframework.ai.bedrock.cohere.BedrockCohereEmbeddingModel", + "import org.springframework.ai.bedrock.cohere.BedrockCohereEmbeddingOptions", + "import org.springframework.ai.bedrock.cohere.api.CohereEmbeddingBedrockApi", + "import org.springframework.ai.bedrock.cohere.api.CohereEmbeddingBedrockApi.CohereEmbeddingRequest", + "import org.springframework.ai.bedrock.cohere.api.CohereEmbeddingBedrockApi.CohereEmbeddingResponse", + "import org.springframework.ai.embedding.EmbeddingRequest", + "import software.amazon.awssdk.auth.credentials.AnonymousCredentialsProvider", + "import software.amazon.awssdk.regions.Region", + "import java.time.Duration" + ], + "arg_patterns": {} + }, + { + "label": "infrastructure/adapters/ai-provider/src/test/kotlin/eu/corentic/springrag/testsupport", + "method_count": 3, + "algorithm": "CRX", + "grammar": "root ::= (\"Any\" | \"Builder\" | \"get\")+", + "mdl_score": 15, + "imports": [ + "import java.util.function.Function", + "import java.util.function.Supplier", + "import org.springframework.cloud.client.circuitbreaker.CircuitBreaker", + "import org.springframework.cloud.client.circuitbreaker.CircuitBreakerFactory", + "import org.springframework.cloud.client.circuitbreaker.ConfigBuilder" + ], + "arg_patterns": {} + }, + { + "label": "infrastructure/adapters/chat-memory/src/test/kotlin/eu/corentic/springrag/config", + "method_count": 6, + "algorithm": "CRX", + "grammar": "root ::= \"ChatMemoryConfig\"? \"Message\"? \"chatMemory\"?+ (\"Any\" | \"MutableMap\" | \"String\" | \"fun\" | \"mutableMapOf\")?+ \"repeat\"?+ \"MessageType\"? (\"add\" | \"makeMessage\")?+ \"USER\"? (\"assertEquals\" | \"get\" | \"size\" | \"text\")?+", + "mdl_score": 0, + "imports": [ + "import org.junit.jupiter.api.Assertions.assertEquals", + "import org.junit.jupiter.api.Test", + "import org.springframework.ai.chat.memory.InMemoryChatMemoryRepository", + "import org.springframework.ai.chat.messages.Message", + "import org.springframework.ai.chat.messages.MessageType" + ], + "arg_patterns": {} + }, + { + "label": "infrastructure/adapters/doc-parser/src", + "method_count": 6, + "algorithm": "CRX", + "grammar": "root ::= \"fromCallable\"?+ (\"File\" | \"builder\")?+ \"health\"?+ \"subscribeOn\"?+ \"boundedElastic\"?+ (\"ByteArray\" | \"DocumentParsingRequest\" | \"GraphDocument\" | \"absolutePath\" | \"asDocumentId\" | \"asFilename\" | \"asJobId\" | \"asLogicalDocumentId\" | \"assertTrue\" | \"build\" | \"content\" | \"convertDocument\" | \"doTableStructure\" | \"down\" | \"else\" | \"emptyList\" | \"every\" | \"exists\" | \"filename\" | \"generatePageImages\" | \"getStatus\" | \"if\" | \"imagesScale\" | \"just\" | \"let\" | \"map\" | \"name\" | \"onErrorResume\" | \"options\" | \"readBytes\" | \"requireNotNull\" | \"up\" | \"value\" | \"withDetail\")?+ \"tables\"? \"jobId\"? \"isNotEmpty\"?+ \"parse\"?+ \"return ParsedDocument(graphDocument = graphDocument)\"? \"assertNull\"? \"assertEquals\"? \"graphDocument\"? \"ParsedDocument\"?", + "mdl_score": 0, + "imports": [ + "import ai.docling.serve.api.DoclingServeApi", + "import org.springframework.boot.health.contributor.Health", + "import org.springframework.boot.health.contributor.ReactiveHealthIndicator", + "import org.springframework.stereotype.Component", + "import reactor.core.publisher.Mono", + "import reactor.core.scheduler.Schedulers", + "import eu.corentic.springrag.service.docling.DoclingGraphDocumentMapper", + "import eu.corentic.springrag.service.docling.DoclingService", + "import eu.corentic.springrag.service.port.DocumentParserPort", + "import eu.corentic.springrag.service.port.DocumentParsingRequest", + "import eu.corentic.springrag.model.ParsedDocument", + "import eu.corentic.springrag.config.BaseSystemTest", + "import eu.corentic.springrag.config.DoclingConfig", + "import java.io.File", + "import org.junit.jupiter.api.Assertions.assertTrue", + "import org.junit.jupiter.api.Test", + "import org.springframework.beans.factory.annotation.Autowired", + "import org.springframework.core.io.ClassPathResource", + "import org.springframework.test.context.TestPropertySource", + "import ai.docling.core.DoclingDocument", + "import eu.corentic.springrag.model.GraphDocument", + "import eu.corentic.springrag.common.ids.asDocumentId", + "import eu.corentic.springrag.common.ids.asFilename", + "import eu.corentic.springrag.common.ids.asJobId", + "import eu.corentic.springrag.common.ids.asLogicalDocumentId", + "import io.mockk.every", + "import io.mockk.mockk", + "import org.junit.jupiter.api.Assertions.assertEquals", + "import org.junit.jupiter.api.Assertions.assertNull" + ], + "arg_patterns": {} + }, + { + "label": "infrastructure/adapters/doc-parser/src/main/kotlin/eu/corentic/springrag/config", + "method_count": 3, + "algorithm": "CRX", + "grammar": "root ::= (\"IllegalStateException\" | \"bucket\" | \"error\" | \"generatePageImages\" | \"generatePictureImages\" | \"if\" | \"imageExportMode\" | \"includeImages\" | \"info\" | \"isBlank\" | \"s3Target\" | \"setOf\" | \"throw\" | \"throw IllegalStateException(errorMsg)\" | \"toFormats\" | \"useS3Target\")?+ \"Method\"? \"validateCriticalSettings\"? (\"DoclingServeJackson3Client\" | \"getDeclaredMethod\" | \"invoke\" | \"isAccessible\" | \"java\")?+ \"Builder\"? \"return builder\n .baseUrl(URI.create(config.baseUrl))\n .asyncPollInterval(Duration.ofMillis(config.pollIntervalMillis))\n .asyncTimeout(Duration.ofSeconds(config.timeoutSeconds))\n .build()\"? (\"baseUrl\" | \"create\")?+ \"asyncPollInterval\"?+ \"ofMillis\"?+ \"pollIntervalMillis\"? \"asyncTimeout\"?+ \"ofSeconds\"?+ \"timeoutSeconds\"? \"build\"?+", + "mdl_score": 0, + "imports": [ + "import ai.docling.serve.api.DoclingServeApi", + "import ai.docling.serve.client.DoclingServeJackson3Client", + "import org.springframework.context.annotation.Bean", + "import org.springframework.context.annotation.Configuration", + "import java.lang.reflect.Method", + "import java.net.URI", + "import java.time.Duration", + "import jakarta.validation.constraints.Min", + "import jakarta.validation.constraints.NotBlank", + "import jakarta.annotation.PostConstruct", + "import org.slf4j.LoggerFactory", + "import org.springframework.boot.context.properties.ConfigurationProperties", + "import org.springframework.validation.annotation.Validated" + ], + "arg_patterns": {} + }, + { + "label": "infrastructure/adapters/doc-parser/src/main/kotlin/eu/corentic/springrag/service/docling", + "method_count": 21, + "algorithm": "CRX", + "grammar": "root ::= \"warn\"+", + "mdl_score": 2, + "imports": [ + "import com.google.auth.oauth2.GoogleCredentials", + "import com.google.auth.oauth2.IdTokenCredentials", + "import com.google.auth.oauth2.IdTokenProvider", + "import ai.docling.core.DoclingDocument", + "import eu.corentic.springrag.common.ids.JobId", + "import eu.corentic.springrag.model.GraphDocument", + "import eu.corentic.springrag.model.GraphImagePayload", + "import eu.corentic.springrag.model.GraphPage", + "import eu.corentic.springrag.model.GraphPictureElement", + "import eu.corentic.springrag.model.GraphTableElement", + "import eu.corentic.springrag.model.GraphTextElement", + "import io.github.oshai.kotlinlogging.KotlinLogging", + "import org.springframework.stereotype.Component", + "import java.util.Base64", + "import ai.docling.serve.api.DoclingServeApi", + "import ai.docling.serve.api.convert.request.options.ConvertDocumentOptions", + "import ai.docling.serve.api.convert.request.options.ImageRefMode", + "import ai.docling.serve.api.convert.request.options.OcrEngine", + "import ai.docling.serve.api.convert.request.options.PdfBackend", + "import ai.docling.serve.api.convert.request.options.ProcessingPipeline", + "import ai.docling.serve.api.convert.request.options.OutputFormat", + "import ai.docling.serve.api.convert.request.source.FileSource", + "import ai.docling.serve.api.convert.request.target.InBodyTarget", + "import ai.docling.serve.api.convert.request.target.S3Target", + "import eu.corentic.springrag.config.DoclingConfig", + "import java.util.function.Supplier", + "import java.time.Duration", + "import jakarta.annotation.PostConstruct", + "import org.springframework.cloud.client.circuitbreaker.CircuitBreakerFactory", + "import org.springframework.stereotype.Service" + ], + "arg_patterns": {} + }, + { + "label": "infrastructure/adapters/doc-parser/src/systemTest/kotlin/eu/corentic/springrag/config", + "method_count": 6, + "algorithm": "CRX", + "grammar": "root ::= \"DoclingServeClientBuilderFactory\"? \"return try {\n buildWithNoArgFactory(config)\n } catch (_: NoSuchMethodException) {\n buildWithClassLoaderFactory(config)\n }\"? \"registerProperties\"?+ \"assumeTrue\"?+ \"try\"? \"corentic\"? \"buildWithNoArgFactory\"? (\"ClassLoader\" | \"String\" | \"baseUrl\" | \"getMethod\" | \"invoke\" | \"java\" | \"javaClass\" | \"return buildMethod.invoke(configuredBuilder) as DoclingServeApi\")?+ \"springrag\"? \"DoclingServeApi\"? \"classLoader\"? \"testcontainers\"? (\"ClassCastException\" | \"IllegalAccessException\" | \"IllegalStateException\" | \"InvocationTargetException\" | \"NoSuchMethodException\" | \"catch\" | \"cause\" | \"throw\" | \"throw IllegalStateException(\\\"Docling test client builder API is incompatible\\\", e)\" | \"throw IllegalStateException(\\\"Docling test client builder API is not accessible\\\", e)\" | \"throw IllegalStateException(\\\"Docling test client builder invocation failed\\\", e.cause ?: e)\" | \"throw IllegalStateException(\\\"Docling test client builder returned an unexpected type\\\", e)\")?+ \"return configureAndBuild(builder, config)\"? \"GpuSupport\"? \"buildWithClassLoaderFactory\"? \"configureAndBuild\"? \"isDockerAvailable\"?+ \"start\"?+ \"pullAndWarmup\"?+ \"ollamaContainer\"?", + "mdl_score": 0, + "imports": [ + "import eu.corentic.springrag.testcontainers.OllamaModelSupport", + "import eu.corentic.springrag.testcontainers.SharedContainers", + "import eu.corentic.springrag.testcontainers.SharedContainers.ContainerType", + "import org.junit.jupiter.api.Assumptions", + "import org.junit.jupiter.api.BeforeAll", + "import org.springframework.boot.test.context.SpringBootTest", + "import org.springframework.test.context.ActiveProfiles", + "import org.springframework.test.context.DynamicPropertyRegistry", + "import org.springframework.test.context.DynamicPropertySource", + "import org.testcontainers.junit.jupiter.Testcontainers", + "import ai.docling.serve.api.DoclingServeApi", + "import ai.docling.serve.client.DoclingServeClientBuilderFactory", + "import java.lang.reflect.InvocationTargetException", + "import org.springframework.context.annotation.Bean", + "import org.springframework.context.annotation.Configuration" + ], + "arg_patterns": {} + }, + { + "label": "infrastructure/adapters/doc-parser/src/test/kotlin/eu/corentic/springrag/config", + "method_count": 12, + "algorithm": "CRX", + "grammar": "root ::= \"DoclingConfig\"? \"assertThatThrownBy\"? \"baseUrl\"? \"validateCriticalSettings\"?+ (\"includeImages\" | \"options\")?+ \"isInstanceOf\"?+ \"imageExportMode\"? \"IllegalStateException\"? \"java\"? \"hasMessageContaining\"?+", + "mdl_score": 18, + "imports": [ + "import kotlin.test.assertNotNull", + "import org.junit.jupiter.api.Test", + "import org.assertj.core.api.Assertions.assertThat", + "import org.assertj.core.api.Assertions.assertThatThrownBy", + "import org.junit.jupiter.api.Assertions.assertNull" + ], + "arg_patterns": {} + }, + { + "label": "infrastructure/adapters/doc-parser/src/test/kotlin/eu/corentic/springrag/health", + "method_count": 3, + "algorithm": "CRX", + "grammar": "root ::= \"`when`\"? (\"DoclingHealthIndicator\" | \"IllegalStateException\" | \"RuntimeException\" | \"assertEquals\" | \"block\" | \"build\" | \"builder\" | \"health\" | \"requireNotNull\" | \"status\" | \"thenReturn\" | \"thenThrow\")?+ \"code\"?", + "mdl_score": 685824, + "imports": [ + "import ai.docling.serve.api.DoclingServeApi", + "import ai.docling.serve.api.health.HealthCheckResponse", + "import kotlin.test.assertEquals", + "import org.junit.jupiter.api.Test", + "import org.mockito.Mockito.mock", + "import org.mockito.Mockito.`when`" + ], + "arg_patterns": {} + }, + { + "label": "infrastructure/adapters/doc-parser/src/test/kotlin/eu/corentic/springrag/service/docling", + "method_count": 10, + "algorithm": "CRX", + "grammar": "root ::= \"options\"? \"mockk\"? \"DoclingDocument\"? (\"builder\" | \"document\")?+ \"jsonContent\"?+ (\"build\" | \"status\")?+ \"slot\"? \"ConvertDocumentRequest\"? \"every\"? \"convertSourceAsync\"?+ \"capture\"? \"completedFuture\"?+ \"convertDocument\"?+ \"toByteArray\"?+ \"captured\"?", + "mdl_score": 0, + "imports": [ + "import ai.docling.core.DoclingDocument", + "import eu.corentic.springrag.common.ids.asJobId", + "import java.util.Base64", + "import org.junit.jupiter.api.Assertions.assertArrayEquals", + "import org.junit.jupiter.api.Assertions.assertEquals", + "import org.junit.jupiter.api.Assertions.assertNotNull", + "import org.junit.jupiter.api.Assertions.assertTrue", + "import org.junit.jupiter.api.Test", + "import ai.docling.serve.api.DoclingServeApi", + "import ai.docling.serve.api.convert.request.ConvertDocumentRequest", + "import ai.docling.serve.api.convert.request.options.ImageRefMode", + "import ai.docling.serve.api.convert.request.options.OcrEngine", + "import ai.docling.serve.api.convert.request.options.OutputFormat", + "import ai.docling.serve.api.convert.request.options.PdfBackend", + "import ai.docling.serve.api.convert.request.options.ProcessingPipeline", + "import ai.docling.serve.api.convert.response.InBodyConvertDocumentResponse", + "import ai.docling.serve.api.convert.response.DocumentResponse", + "import eu.corentic.springrag.config.DoclingConfig", + "import eu.corentic.springrag.config.PipelineOptions", + "import eu.corentic.springrag.testsupport.NoOpCircuitBreakerFactory", + "import io.mockk.clearAllMocks", + "import tools.jackson.databind.ObjectMapper", + "import ai.docling.serve.api.convert.request.target.S3Target", + "import ai.docling.serve.api.convert.request.target.InBodyTarget", + "import io.mockk.every", + "import io.mockk.mockk", + "import io.mockk.slot", + "import io.mockk.verify", + "import java.util.concurrent.CompletableFuture", + "import kotlin.test.assertEquals", + "import kotlin.test.assertNotNull", + "import kotlin.test.assertTrue", + "import org.junit.jupiter.api.AfterEach", + "import org.junit.jupiter.api.BeforeEach", + "import org.junit.jupiter.api.assertThrows" + ], + "arg_patterns": {} + }, + { + "label": "infrastructure/adapters/doc-parser/src/test/kotlin/eu/corentic/springrag/testsupport", + "method_count": 3, + "algorithm": "CRX", + "grammar": "root ::= (\"Any\" | \"Builder\" | \"get\")+", + "mdl_score": 15, + "imports": [ + "import java.util.function.Function", + "import java.util.function.Supplier", + "import org.springframework.cloud.client.circuitbreaker.CircuitBreaker", + "import org.springframework.cloud.client.circuitbreaker.CircuitBreakerFactory", + "import org.springframework.cloud.client.circuitbreaker.ConfigBuilder" + ], + "arg_patterns": {} + }, + { + "label": "infrastructure/adapters/search/src/main/kotlin/eu/corentic/springrag/health", + "method_count": 7, + "algorithm": "CRX", + "grammar": "root ::= \"withDetail\"?+ \"build\"?+ \"onErrorResume\"?+ \"just\"?+", + "mdl_score": 4, + "imports": [ + "import org.neo4j.driver.Driver", + "import java.time.Duration", + "import org.springframework.boot.health.contributor.Health", + "import org.springframework.boot.health.contributor.ReactiveHealthIndicator", + "import org.springframework.stereotype.Component", + "import reactor.core.publisher.Mono", + "import com.google.common.util.concurrent.FutureCallback", + "import com.google.common.util.concurrent.Futures", + "import com.google.common.util.concurrent.ListenableFuture", + "import com.google.common.util.concurrent.MoreExecutors", + "import io.qdrant.client.QdrantClient", + "import java.util.concurrent.ExecutionException", + "import java.util.concurrent.TimeoutException", + "import org.springframework.beans.factory.annotation.Value", + "import org.springframework.context.annotation.Profile" + ], + "arg_patterns": {} + }, + { + "label": "infrastructure/adapters/search/src/main/kotlin/eu/corentic/springrag/model/graph", + "method_count": 9, + "algorithm": "CRX", + "grammar": "root ::= (\"id\" | \"if\" | \"jobId\" | \"pageNo\" | \"return false\" | \"return true\")?+ \"hashCode\"?+ \"return result\"?", + "mdl_score": 2568, + "imports": [ + "import java.time.Instant", + "import org.springframework.data.annotation.Version", + "import org.springframework.data.neo4j.core.schema.Id", + "import org.springframework.data.neo4j.core.schema.Node", + "import org.springframework.data.neo4j.core.schema.Relationship", + "import org.springframework.data.neo4j.core.schema.Property" + ], + "arg_patterns": {} + }, + { + "label": "infrastructure/adapters/search/src/main/kotlin/eu/corentic/springrag/repository", + "method_count": 24, + "algorithm": "CRX", + "grammar": "root ::= \"build\"?+ \"builder\"?+ \"return runWithCircuitBreaker { vectorStore.similaritySearch(request).map { it.toVectorChunk() } }\"? \"query\"?+ \"runWithCircuitBreaker\"? \"topK\"?+ \"similaritySearch\"?+ \"filterExpression\"?+ \"map\"?+ \"toVectorChunk\"?+", + "mdl_score": 0, + "imports": [ + "import eu.corentic.springrag.model.VectorChunk", + "import org.springframework.ai.document.Document", + "import eu.corentic.springrag.common.ids.DocumentId", + "import eu.corentic.springrag.common.ids.JobId", + "import eu.corentic.springrag.common.ids.KnowledgeBaseId", + "import eu.corentic.springrag.common.ids.LogicalDocumentId", + "import java.util.function.Supplier", + "import org.springframework.ai.vectorstore.SearchRequest", + "import org.springframework.ai.vectorstore.VectorStore", + "import org.springframework.cloud.client.circuitbreaker.CircuitBreakerFactory", + "import io.github.oshai.kotlinlogging.KotlinLogging", + "import org.springframework.stereotype.Repository" + ], + "arg_patterns": {} + }, + { + "label": "infrastructure/adapters/search/src/main/kotlin/eu/corentic/springrag/service/agent", + "method_count": 3, + "algorithm": "CRX", + "grammar": "root ::= \"return try {\n val existingId = agentRepository.findKnowledgeBaseIdByAgentId(agentId)\n if (existingId != null) return existingId\n doCreate(agentId)\n } catch (e: Exception) {\n // Concurrent thread created the agent+KB first \u2014 read and return their result.\n agentRepository.findKnowledgeBaseIdByAgentId(agentId) ?: throw e\n }\"? \"return agentRepository.findKnowledgeBaseIdByAgentId(agentId)\"? \"now\"?+ \"try\"? (\"KnowledgeBaseNode\" | \"save\")?+ (\"Exception\" | \"catch\" | \"doCreate\" | \"findKnowledgeBaseIdByAgentId\" | \"if\" | \"return existingId\")?+ \"AgentNode\"? \"throw e\"? \"return kbId\"? \"throw\"?", + "mdl_score": 3132, + "imports": [ + "import eu.corentic.springrag.model.graph.AgentNode", + "import eu.corentic.springrag.model.graph.KnowledgeBaseNode", + "import eu.corentic.springrag.repository.graph.AgentRepository", + "import eu.corentic.springrag.repository.graph.KnowledgeBaseRepository", + "import eu.corentic.springrag.service.port.AgentKnowledgeBasePort", + "import org.springframework.stereotype.Service", + "import org.springframework.transaction.annotation.Transactional", + "import java.time.Instant" + ], + "arg_patterns": {} + }, + { + "label": "infrastructure/adapters/search/src/main/kotlin/eu/corentic/springrag/service/cleanup", + "method_count": 4, + "algorithm": "CRX", + "grammar": "root ::= \"info\"?+ (\"deleteByJobId\" | \"deleteByKnowledgeBaseId\" | \"jobId\" | \"knowledgeBaseId\" | \"value\")?+", + "mdl_score": 1685, + "imports": [ + "import eu.corentic.springrag.model.event.DocumentDeletionRequested", + "import eu.corentic.springrag.service.graph.GraphIngestionOrchestrator", + "import io.github.oshai.kotlinlogging.KotlinLogging", + "import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty", + "import org.springframework.modulith.events.ApplicationModuleListener", + "import org.springframework.stereotype.Component", + "import eu.corentic.springrag.model.event.KnowledgeBaseDeletionRequested", + "import eu.corentic.springrag.repository.VectorRepository" + ], + "arg_patterns": {} + }, + { + "label": "infrastructure/adapters/search/src/main/kotlin/eu/corentic/springrag/service/graph", + "method_count": 12, + "imports": [ + "import eu.corentic.springrag.common.ids.DocumentId", + "import eu.corentic.springrag.common.ids.Filename", + "import eu.corentic.springrag.common.ids.JobId", + "import eu.corentic.springrag.common.ids.KnowledgeBaseId", + "import eu.corentic.springrag.common.ids.LogicalDocumentId", + "import eu.corentic.springrag.common.ids.StorageUri", + "import eu.corentic.springrag.model.DocumentGraphJob", + "import eu.corentic.springrag.model.GraphDocument", + "import eu.corentic.springrag.model.GraphImagePayload", + "import eu.corentic.springrag.model.GraphPictureElement", + "import eu.corentic.springrag.model.GraphTableElement", + "import eu.corentic.springrag.model.GraphTextElement", + "import eu.corentic.springrag.model.graph.DocumentJobNode", + "import eu.corentic.springrag.model.graph.ImageData", + "import eu.corentic.springrag.model.graph.PageNode", + "import eu.corentic.springrag.model.graph.PictureElement", + "import eu.corentic.springrag.model.graph.TableElement", + "import eu.corentic.springrag.model.graph.TextElement", + "import eu.corentic.springrag.service.port.DocumentGraphJobPort", + "import eu.corentic.springrag.service.port.GraphIndexPort", + "import eu.corentic.springrag.service.port.KnowledgeBasePort", + "import eu.corentic.springrag.service.port.ObjectStoragePort", + "import java.util.function.Supplier", + "import io.github.oshai.kotlinlogging.KotlinLogging", + "import org.springframework.cloud.client.circuitbreaker.CircuitBreakerFactory", + "import org.springframework.stereotype.Component", + "import org.springframework.transaction.annotation.Propagation", + "import org.springframework.transaction.annotation.Transactional", + "import java.time.Instant", + "import java.util.concurrent.CompletableFuture", + "import java.util.concurrent.Executors" + ], + "arg_patterns": {} + }, + { + "label": "infrastructure/adapters/search/src/main/kotlin/eu/corentic/springrag/service/port/adapter", + "method_count": 45, + "imports": [ + "import eu.corentic.springrag.common.ids.StorageUri", + "import eu.corentic.springrag.model.PageTextElement", + "import eu.corentic.springrag.model.SourceImage", + "import eu.corentic.springrag.repository.graph.ImageDataRepository", + "import eu.corentic.springrag.repository.graph.TextElementRepository", + "import eu.corentic.springrag.repository.graph.TableElementRepository", + "import eu.corentic.springrag.service.port.ChatGraphLookupPort", + "import eu.corentic.springrag.service.port.ObjectStoragePort", + "import java.util.Base64", + "import org.springframework.stereotype.Component", + "import eu.corentic.springrag.common.ids.DocumentId", + "import eu.corentic.springrag.common.ids.Filename", + "import eu.corentic.springrag.common.ids.JobId", + "import eu.corentic.springrag.common.ids.KnowledgeBaseId", + "import eu.corentic.springrag.common.ids.LogicalDocumentId", + "import eu.corentic.springrag.model.DocumentGraphJob", + "import eu.corentic.springrag.model.graph.DocumentJobNode", + "import eu.corentic.springrag.repository.graph.DocumentJobNodeRepository", + "import eu.corentic.springrag.service.port.DocumentGraphJobPort", + "import java.time.Instant", + "import eu.corentic.springrag.service.port.DocumentIdPort", + "import eu.corentic.springrag.service.port.DocumentImageInfo", + "import eu.corentic.springrag.service.port.DocumentImagePort", + "import eu.corentic.springrag.repository.graph.GraphMaintenanceRepository", + "import eu.corentic.springrag.service.graph.GraphDeletePort", + "import eu.corentic.springrag.service.graph.GraphStorePort", + "import eu.corentic.springrag.service.port.KnowledgeBaseDocumentPort", + "import eu.corentic.springrag.model.KnowledgeBase", + "import eu.corentic.springrag.model.KnowledgeBaseStats", + "import eu.corentic.springrag.model.graph.KnowledgeBaseNode", + "import eu.corentic.springrag.repository.graph.KnowledgeBaseRepository", + "import eu.corentic.springrag.service.port.KnowledgeBasePort", + "import eu.corentic.springrag.model.VectorChunk", + "import eu.corentic.springrag.repository.VectorRepository", + "import eu.corentic.springrag.service.port.ChunkIndexPort", + "import io.github.oshai.kotlinlogging.KotlinLogging", + "import eu.corentic.springrag.service.port.VectorDocumentDeletionPort", + "import eu.corentic.springrag.service.port.VectorDocumentPort", + "import eu.corentic.springrag.service.port.RetrievalPort" + ], + "arg_patterns": {} + }, + { + "label": "infrastructure/adapters/search/src/main/kotlin/eu/corentic/springrag/service/storage", + "method_count": 40, + "imports": [ + "import eu.corentic.springrag.common.ids.JobId", + "import eu.corentic.springrag.common.ids.StorageUri", + "import eu.corentic.springrag.config.ObjectStorageProperties", + "import eu.corentic.springrag.service.port.ObjectStoragePort", + "import io.github.oshai.kotlinlogging.KotlinLogging", + "import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty", + "import org.springframework.stereotype.Component", + "import software.amazon.awssdk.auth.credentials.DefaultCredentialsProvider", + "import software.amazon.awssdk.regions.Region", + "import software.amazon.awssdk.services.s3.S3Client", + "import software.amazon.awssdk.services.s3.model.Delete", + "import software.amazon.awssdk.services.s3.model.DeleteObjectRequest", + "import software.amazon.awssdk.services.s3.model.DeleteObjectsRequest", + "import software.amazon.awssdk.services.s3.model.HeadObjectRequest", + "import software.amazon.awssdk.services.s3.model.ListObjectsV2Request", + "import software.amazon.awssdk.services.s3.model.NoSuchBucketException", + "import software.amazon.awssdk.services.s3.model.PutObjectRequest", + "import software.amazon.awssdk.services.s3.model.S3Exception", + "import software.amazon.awssdk.core.sync.RequestBody", + "import com.google.cloud.storage.BlobId", + "import com.google.cloud.storage.BlobInfo", + "import com.google.cloud.storage.Storage", + "import com.google.cloud.storage.StorageOptions", + "import java.net.URI", + "import software.amazon.awssdk.auth.credentials.AwsBasicCredentials", + "import software.amazon.awssdk.auth.credentials.StaticCredentialsProvider", + "import software.amazon.awssdk.services.s3.S3Configuration", + "import software.amazon.awssdk.services.s3.model.CreateBucketRequest", + "import software.amazon.awssdk.services.s3.model.HeadBucketRequest" + ], + "arg_patterns": {} + }, + { + "label": "infrastructure/adapters/search/src/systemTest/kotlin/eu/corentic/springrag/config", + "method_count": 4, + "algorithm": "CRX", + "grammar": "root ::= \"run\"?+ \"assumeTrue\"?+ (\"recreateTestCollection\" | \"registerProperties\")?+ \"collectionPointCount\"?+ \"corentic\"? \"springrag\"? \"testcontainers\"? \"GpuSupport\"? \"isDockerAvailable\"?+ \"start\"?+ \"pullAndWarmup\"?+ \"ollamaContainer\"?", + "mdl_score": 0, + "imports": [ + "import eu.corentic.springrag.testcontainers.OllamaModelSupport", + "import eu.corentic.springrag.testcontainers.QdrantTestSupport", + "import eu.corentic.springrag.testcontainers.QdrantTestSupport.recreateTestCollection", + "import eu.corentic.springrag.testcontainers.SharedContainers", + "import eu.corentic.springrag.testcontainers.SharedContainers.ContainerType", + "import io.qdrant.client.QdrantClient", + "import org.junit.jupiter.api.Assumptions", + "import org.junit.jupiter.api.BeforeAll", + "import org.junit.jupiter.api.BeforeEach", + "import org.springframework.beans.factory.annotation.Autowired", + "import org.springframework.boot.test.context.SpringBootTest", + "import org.springframework.test.context.ActiveProfiles", + "import org.springframework.test.context.DynamicPropertyRegistry", + "import org.springframework.test.context.DynamicPropertySource", + "import org.springframework.test.context.TestPropertySource", + "import org.testcontainers.junit.jupiter.Testcontainers" + ], + "arg_patterns": {} + }, + { + "label": "infrastructure/adapters/search/src/systemTest/kotlin/eu/corentic/springrag/repository/graph", + "method_count": 23, + "algorithm": "CRX", + "grammar": "root ::= \"saveAll\"?+ \"findById\"?+ (\"parse\" | \"runBlocking\")?+ \"listOf\"?+ \"orElseThrow\"?+", + "mdl_score": 0, + "imports": [ + "import eu.corentic.springrag.config.BaseSystemTest", + "import eu.corentic.springrag.model.graph.DocumentJobNode", + "import eu.corentic.springrag.model.graph.ImageData", + "import eu.corentic.springrag.model.graph.KnowledgeBaseNode", + "import eu.corentic.springrag.model.graph.PageNode", + "import eu.corentic.springrag.model.graph.TextElement", + "import java.time.Instant", + "import org.junit.jupiter.api.Assertions.*", + "import org.junit.jupiter.api.Test", + "import org.springframework.beans.factory.annotation.Autowired", + "import org.springframework.test.annotation.DirtiesContext", + "import org.springframework.test.annotation.DirtiesContext.ClassMode.BEFORE_EACH_TEST_METHOD", + "import kotlinx.coroutines.runBlocking", + "import org.junit.jupiter.api.AfterEach", + "import org.junit.jupiter.api.BeforeEach", + "import eu.corentic.springrag.model.graph.TableElement", + "import org.junit.jupiter.api.Assertions.assertEquals", + "import org.springframework.context.annotation.Import" + ], + "arg_patterns": {} + }, + { + "label": "infrastructure/adapters/search/src/systemTest/kotlin/eu/corentic/springrag/system", + "method_count": 6, + "algorithm": "CRX", + "grammar": "root ::= \"runBlocking\"? \"setupTestCollection\"? \"listOf\"?+ (\"VectorChunk\" | \"mapOf\")?+ \"addChunks\"?+ \"searchSimilar\"?+ (\"any\" | \"asJobId\" | \"assertEquals\" | \"assertTrue\" | \"contains\" | \"deleteByJobId\" | \"fetchByJobId\" | \"isNotEmpty\" | \"metadata\" | \"single\" | \"size\" | \"text\")?+ \"isEmpty\"?+", + "mdl_score": 0, + "imports": [ + "import eu.corentic.springrag.common.ids.asJobId", + "import eu.corentic.springrag.config.BaseSystemTest", + "import eu.corentic.springrag.model.VectorChunk", + "import eu.corentic.springrag.repository.VectorRepository", + "import kotlinx.coroutines.runBlocking", + "import org.junit.jupiter.api.Assertions.assertEquals", + "import org.junit.jupiter.api.Assertions.assertTrue", + "import org.junit.jupiter.api.BeforeEach", + "import org.junit.jupiter.api.Test", + "import org.springframework.beans.factory.annotation.Autowired", + "import org.springframework.test.annotation.DirtiesContext", + "import org.springframework.test.annotation.DirtiesContext.ClassMode.BEFORE_CLASS" + ], + "arg_patterns": {} + }, + { + "label": "infrastructure/adapters/search/src/test/kotlin/eu/corentic/springrag/config", + "method_count": 3, + "algorithm": "CRX", + "grammar": "root ::= (\"IllegalStateException\" | \"`when`\" | \"anyString\" | \"assertThrows\" | \"atLeastOnce\" | \"contains\" | \"java\" | \"neo4jSchemaInitializer\" | \"run\" | \"session\" | \"thenReturn\" | \"thenThrow\" | \"times\" | \"verify\")?+ \"mockk\"? \"close\"?+ \"Driver\"? \"Neo4jConfig\"? \"transactionManager\"?+ \"assertTrue\"? \"Neo4jTransactionManager\"?", + "mdl_score": 13300, + "imports": [ + "import io.mockk.mockk", + "import org.junit.jupiter.api.Assertions.assertEquals", + "import org.junit.jupiter.api.Assertions.assertTrue", + "import org.junit.jupiter.api.Test", + "import org.neo4j.driver.Driver", + "import org.springframework.data.neo4j.core.transaction.Neo4jTransactionManager", + "import org.junit.jupiter.api.Assertions.assertThrows", + "import org.mockito.ArgumentMatchers.anyString", + "import org.mockito.ArgumentMatchers.contains", + "import org.mockito.Mockito.mock", + "import org.mockito.Mockito.times", + "import org.mockito.Mockito.atLeastOnce", + "import org.mockito.Mockito.verify", + "import org.mockito.Mockito.`when`", + "import org.neo4j.driver.Result", + "import org.neo4j.driver.Session" + ], + "arg_patterns": {} + }, + { + "label": "infrastructure/adapters/search/src/test/kotlin/eu/corentic/springrag/health", + "method_count": 6, + "algorithm": "CRX", + "grammar": "root ::= (\"HealthCheckReply\" | \"`when`\" | \"collectionExistsAsync\" | \"getDefaultInstance\" | \"healthCheckAsync\" | \"immediateFuture\" | \"thenReturn\" | \"verifyConnectivityAsync\")?+ \"failedFuture\"?+ \"completedFuture\"?+ \"immediateFailedFuture\"?+ \"IllegalStateException\"? (\"InterruptedException\" | \"TimeoutException\")? (\"Neo4jDriverHealthIndicator\" | \"QdrantVectorStoreHealthIndicator\" | \"assertEquals\" | \"assertTrue\" | \"block\" | \"code\" | \"currentThread\" | \"health\" | \"interrupted\" | \"isInterrupted\" | \"requireNotNull\" | \"status\")?+", + "mdl_score": 0, + "imports": [ + "import java.util.concurrent.CompletableFuture", + "import org.junit.jupiter.api.Assertions.assertEquals", + "import org.junit.jupiter.api.Test", + "import org.mockito.Mockito.mock", + "import org.neo4j.driver.Driver", + "import org.mockito.Mockito.`when`", + "import com.google.common.util.concurrent.Futures", + "import io.qdrant.client.QdrantClient", + "import io.qdrant.client.grpc.QdrantOuterClass", + "import java.util.concurrent.TimeoutException", + "import kotlin.test.assertEquals", + "import kotlin.test.assertTrue" + ], + "arg_patterns": {} + }, + { + "label": "infrastructure/adapters/search/src/test/kotlin/eu/corentic/springrag/model/graph", + "method_count": 7, + "algorithm": "CRX", + "grammar": "root ::= \"assertEquals\"?+ \"ImageData\"? \"hashCode\"?+ \"copy\"?+ \"assertNotEquals\"?", + "mdl_score": 21, + "imports": [ + "import kotlin.test.assertEquals", + "import kotlin.test.assertNotEquals", + "import org.junit.jupiter.api.Test", + "import org.junit.jupiter.api.Assertions.assertEquals", + "import org.junit.jupiter.api.Assertions.assertNotEquals" + ], + "arg_patterns": {} + }, + { + "label": "infrastructure/adapters/search/src/test/kotlin/eu/corentic/springrag/repository", + "method_count": 19, + "algorithm": "CRX", + "grammar": "root ::= \"assertEquals\"? \"every\"? \"listOf\"?+ \"map\"?+ \"text\"? \"verify\"? \"delete\"?+ \"similaritySearch\"?+ \"any\"? \"match\"? \"String\"?+ \"SearchRequest\"? (\"contains\" | \"filterExpression\" | \"toString\")?+", + "mdl_score": 0, + "imports": [ + "import eu.corentic.springrag.common.ids.asDocumentId", + "import eu.corentic.springrag.common.ids.asJobId", + "import eu.corentic.springrag.common.ids.asKnowledgeBaseId", + "import eu.corentic.springrag.common.ids.asLogicalDocumentId", + "import eu.corentic.springrag.model.VectorChunk", + "import eu.corentic.springrag.testsupport.NoOpCircuitBreakerFactory", + "import io.mockk.every", + "import io.mockk.just", + "import io.mockk.mockk", + "import io.mockk.runs", + "import io.mockk.verify", + "import org.junit.jupiter.api.BeforeEach", + "import org.junit.jupiter.api.Test", + "import org.springframework.ai.document.Document", + "import org.springframework.ai.vectorstore.SearchRequest", + "import org.springframework.ai.vectorstore.VectorStore", + "import kotlin.test.assertEquals", + "import kotlin.test.assertTrue" + ], + "arg_patterns": {} + }, + { + "label": "infrastructure/adapters/search/src/test/kotlin/eu/corentic/springrag/service/cleanup", + "method_count": 4, + "algorithm": "CRX", + "grammar": "root ::= (\"DocumentDeletionRequested\" | \"KnowledgeBaseDeletionRequested\" | \"asJobId\" | \"asKnowledgeBaseId\" | \"deleteByJobId\" | \"deleteByKnowledgeBaseId\" | \"every\" | \"onDocumentDeletionRequested\" | \"onKnowledgeBaseDeletionRequested\" | \"verify\")+", + "mdl_score": 388660, + "imports": [ + "import eu.corentic.springrag.model.event.DocumentDeletionRequested", + "import eu.corentic.springrag.service.graph.GraphIngestionOrchestrator", + "import eu.corentic.springrag.common.ids.asJobId", + "import eu.corentic.springrag.common.ids.asKnowledgeBaseId", + "import io.mockk.every", + "import io.mockk.just", + "import io.mockk.mockk", + "import io.mockk.runs", + "import io.mockk.verify", + "import org.junit.jupiter.api.Test", + "import eu.corentic.springrag.model.event.KnowledgeBaseDeletionRequested", + "import eu.corentic.springrag.repository.VectorRepository" + ], + "arg_patterns": {} + }, + { + "label": "infrastructure/adapters/search/src/test/kotlin/eu/corentic/springrag/service/graph", + "method_count": 30, + "algorithm": "CRX", + "grammar": "root ::= \"asDocumentId\"?+ \"every\"? \"asJobId\"?+ \"asLogicalDocumentId\"?+ \"findOrCreateInactive\"?+ \"asFilename\"?+ \"any\"?+ \"stubDocumentGraphJob\"?", + "mdl_score": 0, + "imports": [ + "import eu.corentic.springrag.model.DocumentGraphJob", + "import eu.corentic.springrag.model.GraphDocument", + "import eu.corentic.springrag.model.GraphImagePayload", + "import eu.corentic.springrag.model.GraphPage", + "import eu.corentic.springrag.model.GraphPictureElement", + "import eu.corentic.springrag.model.GraphTableElement", + "import eu.corentic.springrag.model.GraphTextElement", + "import eu.corentic.springrag.service.port.DocumentGraphJobPort", + "import eu.corentic.springrag.service.port.KnowledgeBasePort", + "import eu.corentic.springrag.service.port.ObjectStoragePort", + "import eu.corentic.springrag.testsupport.NoOpCircuitBreakerFactory", + "import eu.corentic.springrag.common.ids.asDocumentId", + "import eu.corentic.springrag.common.ids.asFilename", + "import eu.corentic.springrag.common.ids.asJobId", + "import eu.corentic.springrag.common.ids.asKnowledgeBaseId", + "import eu.corentic.springrag.common.ids.asLogicalDocumentId", + "import eu.corentic.springrag.common.ids.asStorageUri", + "import io.mockk.*", + "import io.mockk.impl.annotations.MockK", + "import io.mockk.junit5.MockKExtension", + "import org.junit.jupiter.api.Assertions.*", + "import org.junit.jupiter.api.BeforeEach", + "import org.junit.jupiter.api.Test", + "import org.junit.jupiter.api.extension.ExtendWith" + ], + "arg_patterns": {} + }, + { + "label": "infrastructure/adapters/search/src/test/kotlin/eu/corentic/springrag/service/port/adapter", + "method_count": 28, + "imports": [ + "import eu.corentic.springrag.model.graph.ImageData", + "import eu.corentic.springrag.model.graph.TableElement", + "import eu.corentic.springrag.model.graph.TextElement", + "import eu.corentic.springrag.repository.graph.ImageDataRepository", + "import eu.corentic.springrag.repository.graph.TableElementRepository", + "import eu.corentic.springrag.repository.graph.TextElementRepository", + "import eu.corentic.springrag.service.port.ObjectStoragePort", + "import eu.corentic.springrag.common.ids.asStorageUri", + "import io.mockk.every", + "import io.mockk.mockk", + "import io.mockk.verify", + "import java.util.Optional", + "import org.junit.jupiter.api.Assertions.assertEquals", + "import org.junit.jupiter.api.Assertions.assertNull", + "import org.junit.jupiter.api.Test", + "import eu.corentic.springrag.model.DocumentGraphJob", + "import eu.corentic.springrag.model.graph.DocumentJobNode", + "import eu.corentic.springrag.model.graph.KnowledgeBaseNode", + "import eu.corentic.springrag.repository.graph.DocumentJobNodeRepository", + "import eu.corentic.springrag.common.ids.asDocumentId", + "import eu.corentic.springrag.common.ids.asFilename", + "import eu.corentic.springrag.common.ids.asJobId", + "import eu.corentic.springrag.common.ids.asKnowledgeBaseId", + "import eu.corentic.springrag.common.ids.asLogicalDocumentId", + "import java.time.Instant", + "import org.junit.jupiter.api.Assertions.assertTrue", + "import eu.corentic.springrag.repository.graph.GraphMaintenanceRepository", + "import io.mockk.just", + "import io.mockk.runs", + "import eu.corentic.springrag.model.KnowledgeBase", + "import eu.corentic.springrag.repository.graph.KnowledgeBaseRepository", + "import eu.corentic.springrag.model.VectorChunk", + "import eu.corentic.springrag.repository.VectorRepository" + ], + "arg_patterns": {} + }, + { + "label": "infrastructure/adapters/search/src/test/kotlin/eu/corentic/springrag/service/storage", + "method_count": 3, + "algorithm": "CRX", + "grammar": "root ::= \"assertNull\"? \"parseS3Location\"? \"error\"?+ (\"assertEquals\" | \"bucket\")?+ \"key\"?", + "mdl_score": 182, + "imports": [ + "import kotlin.test.Test", + "import kotlin.test.assertEquals", + "import kotlin.test.assertNull" + ], + "arg_patterns": {} + }, + { + "label": "infrastructure/adapters/search/src/test/kotlin/eu/corentic/springrag/testsupport", + "method_count": 3, + "algorithm": "CRX", + "grammar": "root ::= (\"Any\" | \"Builder\" | \"get\")+", + "mdl_score": 15, + "imports": [ + "import java.util.function.Function", + "import java.util.function.Supplier", + "import org.springframework.cloud.client.circuitbreaker.CircuitBreaker", + "import org.springframework.cloud.client.circuitbreaker.CircuitBreakerFactory", + "import org.springframework.cloud.client.circuitbreaker.ConfigBuilder" + ], + "arg_patterns": {} + }, + { + "label": "modules/chat/src/integrationTest/kotlin/eu/corentic/springrag/service/chat", + "method_count": 4, + "algorithm": "CRX", + "grammar": "root ::= \"mockk\"? \"ChatService\"? \"runBlocking\"? \"every\"? \"ChatResponse\"? \"listCapabilities\"? \"defaultAgentId\"? \"emptyList\"?+ \"RagInvocation\"? \"RagRequest\"? \"of\"?+ \"http\"?+ \"coEvery\"? (\"answer\" | \"assertEquals\" | \"chatWithSources\" | \"coVerify\" | \"invoke\")?+", + "mdl_score": 95, + "imports": [ + "import eu.corentic.springrag.agent.capability.AgentCapabilityDirectory", + "import eu.corentic.springrag.agent.rag.RagAgentInvocationGateway", + "import org.springframework.boot.SpringBootConfiguration", + "import org.springframework.boot.autoconfigure.EnableAutoConfiguration", + "import org.springframework.context.annotation.Bean", + "import eu.corentic.springrag.agent.capability.AgentExecutionContext", + "import eu.corentic.springrag.agent.rag.RagInvocation", + "import eu.corentic.springrag.agent.rag.RagRequest", + "import eu.corentic.springrag.common.ids.KnowledgeBaseId", + "import eu.corentic.springrag.model.ChatResponse", + "import io.mockk.every", + "import io.mockk.coEvery", + "import io.mockk.coVerify", + "import io.mockk.mockk", + "import kotlinx.coroutines.runBlocking", + "import org.junit.jupiter.api.Assertions.assertEquals", + "import org.junit.jupiter.api.Test", + "import org.springframework.beans.factory.annotation.Autowired", + "import org.springframework.boot.test.context.SpringBootTest", + "import org.springframework.boot.test.context.TestConfiguration", + "import org.springframework.test.context.ActiveProfiles" + ], + "arg_patterns": {} + }, + { + "label": "modules/chat/src/main/kotlin/eu/corentic/springrag/service/chat", + "method_count": 6, + "algorithm": "CRX", + "grammar": "root ::= \"info\"?+ \"let\"?+ \"defaultAgentId\"?+ \"KnowledgeBaseId\"? \"listCapabilities\"?+ (\"RagInvocation\" | \"RagRequest\" | \"invoke\" | \"return ragAgentInvocationGateway.invoke(\n RagInvocation(\n request = request,\n executionContext = AgentExecutionContext.http()\n )\n )\" | \"return ragAgentInvocationGateway.invoke(\n RagInvocation(\n request = request,\n executionContext = AgentExecutionContext.http(contextId = conversationId)\n )\n )\")?+ \"map\"?+ \"filter\"?+ \"http\"?+ \"id\"? \"AgentCapabilityDescriptor\"?", + "mdl_score": 0, + "imports": [ + "import eu.corentic.springrag.agent.capability.AgentCapabilityDescriptor", + "import eu.corentic.springrag.agent.capability.AgentCapabilityDirectory", + "import eu.corentic.springrag.agent.capability.AgentExecutionContext", + "import eu.corentic.springrag.agent.capability.isExposedOverHttp", + "import eu.corentic.springrag.agent.rag.RagAgentInvocationGateway", + "import eu.corentic.springrag.agent.rag.RagInvocation", + "import eu.corentic.springrag.agent.rag.RagRequest", + "import eu.corentic.springrag.common.ids.KnowledgeBaseId", + "import eu.corentic.springrag.model.ChatResponse", + "import jakarta.annotation.PostConstruct", + "import io.github.oshai.kotlinlogging.KotlinLogging", + "import org.springframework.stereotype.Service" + ], + "arg_patterns": {} + }, + { + "label": "modules/chat/src/systemTest/kotlin/eu/corentic/springrag/config", + "method_count": 15, + "imports": [ + "import eu.corentic.springrag.testcontainers.OllamaModelSupport", + "import eu.corentic.springrag.testcontainers.QdrantTestSupport", + "import eu.corentic.springrag.testcontainers.QdrantTestSupport.recreateTestCollection", + "import eu.corentic.springrag.testcontainers.SharedContainers", + "import eu.corentic.springrag.testcontainers.SharedContainers.ContainerType", + "import io.qdrant.client.QdrantClient", + "import java.time.Duration", + "import java.time.Instant", + "import java.util.UUID", + "import org.junit.jupiter.api.Assumptions", + "import org.junit.jupiter.api.BeforeAll", + "import org.junit.jupiter.api.BeforeEach", + "import org.neo4j.driver.Driver", + "import org.springframework.beans.factory.annotation.Autowired", + "import org.springframework.boot.test.context.SpringBootTest", + "import org.springframework.boot.webtestclient.autoconfigure.AutoConfigureWebTestClient", + "import org.springframework.jdbc.core.JdbcTemplate", + "import org.springframework.security.crypto.password.PasswordEncoder", + "import org.springframework.test.context.ActiveProfiles", + "import org.springframework.test.context.DynamicPropertyRegistry", + "import org.springframework.test.context.DynamicPropertySource", + "import org.springframework.test.context.TestPropertySource", + "import org.springframework.test.web.reactive.server.WebTestClient", + "import org.testcontainers.junit.jupiter.Testcontainers", + "import java.sql.Timestamp", + "import org.springframework.ai.chat.memory.ChatMemory", + "import org.springframework.ai.chat.memory.ChatMemoryRepository", + "import org.springframework.ai.chat.memory.MessageWindowChatMemory", + "import org.springframework.context.annotation.Bean", + "import org.springframework.context.annotation.Configuration", + "import org.springframework.boot.SpringBootConfiguration", + "import org.springframework.boot.autoconfigure.EnableAutoConfiguration", + "import org.springframework.boot.context.properties.ConfigurationPropertiesScan", + "import org.springframework.context.annotation.ComponentScan", + "import org.springframework.data.neo4j.repository.config.EnableNeo4jRepositories", + "import org.springframework.data.jdbc.repository.config.EnableJdbcRepositories", + "import org.springframework.jdbc.datasource.DataSourceTransactionManager", + "import org.springframework.transaction.PlatformTransactionManager", + "import javax.sql.DataSource", + "import ai.docling.serve.api.DoclingServeApi", + "import ai.docling.serve.client.DoclingServeClientBuilderFactory", + "import java.lang.reflect.InvocationTargetException" + ], + "arg_patterns": {} + }, + { + "label": "modules/chat/src/systemTest/kotlin/eu/corentic/springrag/system", + "method_count": 4, + "algorithm": "CRX", + "grammar": "root ::= \"runBlocking\"? \"setupTestCollection\"? \"addChunks\"?+ \"listOf\"?+ \"VectorChunk\"? \"mapOf\"?+ (\"ChatResponse\" | \"SessionChatRequest\" | \"String\" | \"adminClient\" | \"answer\" | \"any\" | \"assertEquals\" | \"assertNotNull\" | \"assertTrue\" | \"atMost\" | \"await\" | \"blockFirst\" | \"bodyValue\" | \"contains\" | \"conversationId\" | \"exchange\" | \"expectBody\" | \"expectStatus\" | \"get\" | \"isEqualTo\" | \"isNotBlank\" | \"isOk\" | \"jsonPath\" | \"lowercase\" | \"ofSeconds\" | \"post\" | \"responseBody\" | \"returnResult\" | \"text\" | \"untilAsserted\" | \"uri\" | \"value\")?+ \"isEmpty\"?", + "mdl_score": 3008, + "imports": [ + "import eu.corentic.springrag.config.BaseSystemTest", + "import eu.corentic.springrag.controller.SessionChatRequest", + "import eu.corentic.springrag.model.ChatResponse", + "import eu.corentic.springrag.model.VectorChunk", + "import eu.corentic.springrag.repository.VectorRepository", + "import java.time.Duration", + "import kotlinx.coroutines.runBlocking", + "import org.awaitility.Awaitility.await", + "import org.junit.jupiter.api.Assertions.assertEquals", + "import org.junit.jupiter.api.Assertions.assertNotNull", + "import org.junit.jupiter.api.Assertions.assertTrue", + "import org.junit.jupiter.api.Test", + "import org.springframework.ai.chat.memory.ChatMemory", + "import org.springframework.beans.factory.annotation.Autowired", + "import org.springframework.boot.webtestclient.autoconfigure.AutoConfigureWebTestClient", + "import org.springframework.test.web.reactive.server.WebTestClient", + "import org.springframework.test.web.reactive.server.returnResult" + ], + "arg_patterns": {} + }, + { + "label": "modules/chat/src/test/kotlin/eu/corentic/springrag/service/chat", + "method_count": 8, + "algorithm": "CRX", + "grammar": "root ::= \"assertEquals\"? \"runTest\"? \"answer\"? \"coVerify\"? (\"ChatResponse\" | \"RagInvocation\" | \"RagRequest\" | \"asKnowledgeBaseId\" | \"coEvery\" | \"defaultAgentId\" | \"emptyList\" | \"every\" | \"http\" | \"invoke\" | \"listCapabilities\")?+ \"ChatService\"?", + "mdl_score": 639936, + "imports": [ + "import eu.corentic.springrag.agent.capability.AgentCapabilityDirectory", + "import eu.corentic.springrag.agent.capability.AgentExecutionContext", + "import eu.corentic.springrag.agent.rag.RagAgentInvocationGateway", + "import eu.corentic.springrag.agent.rag.RagInvocation", + "import eu.corentic.springrag.agent.rag.RagRequest", + "import eu.corentic.springrag.common.ids.asKnowledgeBaseId", + "import eu.corentic.springrag.model.ChatResponse", + "import io.mockk.coEvery", + "import io.mockk.coVerify", + "import io.mockk.every", + "import io.mockk.mockk", + "import kotlinx.coroutines.test.StandardTestDispatcher", + "import kotlinx.coroutines.test.runTest", + "import org.junit.jupiter.api.Assertions.assertEquals", + "import org.junit.jupiter.api.Test", + "import eu.corentic.springrag.agent.capability.AgentCapabilityDescriptor", + "import org.junit.jupiter.api.BeforeEach" + ], + "arg_patterns": {} + }, + { + "label": "modules/common/src/main/kotlin/eu/corentic/springrag/common", + "method_count": 7, + "algorithm": "CRX", + "grammar": "root ::= \"when\" \"Ok\"? \"Err\"?", + "mdl_score": 4, + "imports": [], + "arg_patterns": {} + }, + { + "label": "modules/common/src/main/kotlin/eu/corentic/springrag/common/ids", + "method_count": 18, + "imports": [], + "arg_patterns": {} + }, + { + "label": "modules/common/src/test/kotlin/eu/corentic/springrag/common/ids", + "method_count": 8, + "algorithm": "CRX", + "grammar": "root ::= \"assertEquals\"? (\"IllegalArgumentException\" | \"assertFailsWith\" | \"of\" | \"value\")?+", + "mdl_score": 2768, + "imports": [ + "import kotlin.test.Test", + "import kotlin.test.assertEquals", + "import kotlin.test.assertFailsWith" + ], + "arg_patterns": {} + }, + { + "label": "modules/ingestion/src/integrationTest/kotlin/eu/corentic/springrag/service/job", + "method_count": 34, + "imports": [ + "import com.ninjasquad.springmockk.MockkBean", + "import eu.corentic.springrag.batch.DocumentIngestionJobConfig", + "import eu.corentic.springrag.batch.model.DocumentInput", + "import eu.corentic.springrag.batch.model.ProcessedDocument", + "import eu.corentic.springrag.batch.processor.DocumentProcessingItemProcessor", + "import eu.corentic.springrag.common.ids.Filename", + "import eu.corentic.springrag.common.ids.JobId", + "import eu.corentic.springrag.service.port.DocumentParserPort", + "import eu.corentic.springrag.service.port.ChunkIndexPort", + "import eu.corentic.springrag.service.port.GraphIndexPort", + "import io.mockk.clearMocks", + "import io.mockk.every", + "import java.io.File", + "import java.time.Duration", + "import org.awaitility.Awaitility.await", + "import org.junit.jupiter.api.Assertions", + "import org.junit.jupiter.api.Assertions.assertEquals", + "import org.junit.jupiter.api.Assertions.assertTrue", + "import org.junit.jupiter.api.AfterEach", + "import org.junit.jupiter.api.BeforeEach", + "import org.junit.jupiter.api.Test", + "import io.github.oshai.kotlinlogging.KotlinLogging", + "import org.springframework.beans.factory.annotation.Autowired", + "import org.springframework.boot.test.context.SpringBootTest", + "import org.springframework.test.context.ActiveProfiles", + "import eu.corentic.springrag.batch.model.ProcessingError", + "import org.junit.jupiter.api.Assertions.assertNotNull", + "import org.springframework.jdbc.core.JdbcTemplate", + "import eu.corentic.springrag.common.ids.DocumentId", + "import eu.corentic.springrag.common.ids.KnowledgeBaseId", + "import eu.corentic.springrag.common.ids.LogicalDocumentId", + "import eu.corentic.springrag.batch.listener.BatchJobListener", + "import eu.corentic.springrag.batch.listener.SimpleDocumentTrackingListener", + "import eu.corentic.springrag.batch.partition.DocumentPartitioner", + "import eu.corentic.springrag.batch.reader.FileBasedDocumentItemReader", + "import eu.corentic.springrag.batch.writer.GraphStoreItemWriter", + "import java.nio.file.Files", + "import java.util.concurrent.CountDownLatch", + "import java.util.concurrent.TimeUnit", + "import java.util.concurrent.atomic.AtomicLong", + "import org.springframework.batch.core.job.Job", + "import org.springframework.batch.core.job.JobExecution", + "import org.springframework.batch.core.job.JobInstance", + "import org.springframework.batch.core.job.parameters.JobParameters", + "import org.springframework.batch.core.launch.JobOperator", + "import org.junit.jupiter.api.Assertions.assertNull", + "import eu.corentic.springrag.common.ids.StorageUri", + "import eu.corentic.springrag.service.port.ObjectStoragePort", + "import java.util.concurrent.ConcurrentHashMap", + "import org.springframework.context.annotation.Bean", + "import org.springframework.context.annotation.Configuration", + "import org.springframework.context.annotation.Profile" + ], + "arg_patterns": {} + }, + { + "label": "modules/ingestion/src/main/kotlin/eu/corentic/springrag/batch", + "method_count": 16, + "algorithm": "CRX", + "grammar": "root ::= \"build\"+", + "mdl_score": 2, + "imports": [ + "import eu.corentic.springrag.batch.listener.BatchJobListener", + "import eu.corentic.springrag.batch.listener.DocumentActivationWriteListener", + "import eu.corentic.springrag.batch.listener.DocumentIngestionStageWriteListener", + "import eu.corentic.springrag.batch.listener.SimpleDocumentTrackingListener", + "import eu.corentic.springrag.batch.model.DocumentInput", + "import eu.corentic.springrag.batch.model.ProcessedDocument", + "import eu.corentic.springrag.batch.partition.DocumentPartitioner", + "import eu.corentic.springrag.batch.processor.DocumentProcessingItemProcessor", + "import eu.corentic.springrag.batch.reader.FileBasedDocumentItemReader", + "import eu.corentic.springrag.batch.writer.DocumentActivationWriter", + "import eu.corentic.springrag.batch.writer.DocumentIngestionStageWriter", + "import eu.corentic.springrag.service.job.IngestionDocumentState", + "import eu.corentic.springrag.service.job.IngestionDocumentStateRepository", + "import eu.corentic.springrag.config.BatchProperties", + "import eu.corentic.springrag.service.port.ObjectStoragePort", + "import javax.sql.DataSource", + "import io.github.oshai.kotlinlogging.KotlinLogging", + "import org.springframework.batch.core.configuration.annotation.StepScope", + "import org.springframework.batch.core.job.Job", + "import org.springframework.batch.core.job.builder.JobBuilder", + "import org.springframework.batch.core.repository.JobRepository", + "import org.springframework.batch.core.partition.PartitionHandler", + "import org.springframework.batch.core.partition.support.TaskExecutorPartitionHandler", + "import org.springframework.batch.core.step.Step", + "import org.springframework.batch.core.step.builder.StepBuilder", + "import org.springframework.batch.core.step.skip.SkipPolicy", + "import org.springframework.batch.core.listener.SkipListener", + "import org.springframework.batch.infrastructure.item.database.JdbcCursorItemReader", + "import org.springframework.batch.infrastructure.item.database.builder.JdbcCursorItemReaderBuilder", + "import org.springframework.beans.factory.annotation.Qualifier", + "import org.springframework.beans.factory.annotation.Value", + "import org.springframework.context.annotation.Bean", + "import org.springframework.context.annotation.Configuration", + "import org.springframework.core.task.TaskExecutor", + "import org.springframework.core.retry.RetryPolicy", + "import org.springframework.dao.TransientDataAccessException", + "import org.springframework.transaction.PlatformTransactionManager", + "import org.springframework.util.backoff.FixedBackOff", + "import java.io.IOException", + "import eu.corentic.springrag.service.chunk.DocumentChunkService", + "import eu.corentic.springrag.service.port.DocumentParserPort", + "import eu.corentic.springrag.service.port.DocumentParsingRequest", + "import org.springframework.batch.infrastructure.item.ItemProcessor", + "import org.springframework.stereotype.Component" + ], + "arg_patterns": {} + }, + { + "label": "modules/ingestion/src/main/kotlin/eu/corentic/springrag/batch/listener", + "method_count": 16, + "algorithm": "CRX", + "grammar": "root ::= (\"filename\" | \"jobId\" | \"recordFailure\")?+ \"forEach\"?+ \"markFailed\"?+ \"documentId\"?", + "mdl_score": 93, + "imports": [ + "import io.github.oshai.kotlinlogging.KotlinLogging", + "import org.springframework.batch.core.BatchStatus", + "import org.springframework.batch.core.job.JobExecution", + "import org.springframework.batch.core.listener.JobExecutionListener", + "import org.springframework.stereotype.Component", + "import eu.corentic.springrag.service.job.StagedUploadCleanupService", + "import eu.corentic.springrag.service.job.DocumentTrackingRepository", + "import eu.corentic.springrag.service.job.IngestionDocumentState", + "import eu.corentic.springrag.service.job.IngestionDocumentStateRepository", + "import org.springframework.batch.core.listener.ItemWriteListener", + "import org.springframework.batch.core.listener.SkipListener", + "import org.springframework.batch.infrastructure.item.Chunk", + "import eu.corentic.springrag.batch.model.ProcessedDocument", + "import eu.corentic.springrag.batch.model.ProcessingError", + "import eu.corentic.springrag.common.ids.Filename", + "import eu.corentic.springrag.batch.model.DocumentInput", + "import org.springframework.batch.core.listener.ItemProcessListener" + ], + "arg_patterns": {} + }, + { + "label": "modules/ingestion/src/main/kotlin/eu/corentic/springrag/batch/model", + "method_count": 4, + "algorithm": "CRX", + "grammar": "root ::= (\"DocumentInput\" | \"content\" | \"contentEquals\" | \"documentId\" | \"fileStorageUri\" | \"filename\" | \"if\" | \"javaClass\" | \"jobId\" | \"knowledgeBaseId\" | \"logicalDocumentId\" | \"return false\" | \"return true\" | \"submittedBy\")?+ (\"contentHashCode\" | \"hashCode\")?+ \"entries\"? \"return result\"? \"filter\"?+ (\"key\" | \"startsWith\")?+ \"endsWith\"?+ \"mapNotNull\"?+ \"value\"? (\"Boolean\" | \"DocumentParsingError\" | \"ERROR\" | \"GenericError\" | \"Int\" | \"Long\" | \"NetworkTimeoutError\" | \"String\" | \"ValidationError\" | \"WARNING\" | \"else\" | \"let\" | \"return when (errorType) {\n \\\"DocumentParsingError\\\" -> ProcessingError.DocumentParsingError(\n filename = this[\\\"document.doc${index}.error.filename\\\"] as? String ?: \\\"unknown\\\",\n line = this[\\\"document.doc${index}.error.line\\\"] as? Int,\n message = message ?: \\\"Unknown parsing error\\\",\n retryable = retryable,\n severity = severity?.let { ErrorSeverity.valueOf(it) } ?: ErrorSeverity.ERROR\n )\n \\\"NetworkTimeoutError\\\" -> ProcessingError.NetworkTimeoutError(\n timeoutMs = this[\\\"document.doc${index}.error.timeoutMs\\\"] as? Long ?: 30000,\n message = message ?: \\\"Unknown timeout error\\\",\n retryable = retryable,\n severity = severity?.let { ErrorSeverity.valueOf(it) } ?: ErrorSeverity.WARNING\n )\n \\\"ValidationError\\\" -> ProcessingError.ValidationError(\n field = this[\\\"document.doc${index}.error.field\\\"] as? String ?: \\\"unknown\\\",\n value = this[\\\"document.doc${index}.error.value\\\"] as? String ?: \\\"unknown\\\",\n message = message ?: \\\"Unknown validation error\\\",\n retryable = retryable,\n severity = severity?.let { ErrorSeverity.valueOf(it) } ?: ErrorSeverity.ERROR\n )\n else -> ProcessingError.GenericError(\n exceptionType = errorType ?: \\\"UnknownError\\\",\n message = message ?: \\\"Unknown error\\\",\n retryable = retryable,\n severity = severity?.let { ErrorSeverity.valueOf(it) } ?: ErrorSeverity.ERROR\n )\n }\" | \"valueOf\" | \"when\")?+ \"return ErrorSummary(\n totalErrors = errors.size,\n retryableErrors = errors.count { it.contains(\\\"timeout\\\") || it.contains(\\\"retryable\\\") },\n firstError = errors.firstOrNull()\n )\"? \"ErrorSummary\"? \"size\"? \"count\"?+ \"contains\"?+ \"firstOrNull\"?+", + "mdl_score": 0, + "imports": [ + "import eu.corentic.springrag.common.ids.DocumentId", + "import eu.corentic.springrag.common.ids.Filename", + "import eu.corentic.springrag.common.ids.JobId", + "import eu.corentic.springrag.common.ids.KnowledgeBaseId", + "import eu.corentic.springrag.common.ids.LogicalDocumentId", + "import eu.corentic.springrag.common.ids.StorageUri", + "import eu.corentic.springrag.model.GraphDocument", + "import eu.corentic.springrag.model.VectorChunk", + "import java.time.Instant" + ], + "arg_patterns": {} + }, + { + "label": "modules/ingestion/src/main/kotlin/eu/corentic/springrag/batch/partition", + "method_count": 4, + "algorithm": "CRX", + "grammar": "root ::= \"mutableMapOf\"?+ \"values\"? \"firstOrNull\"?+ \"getString\"?+ (\"Exception\" | \"ExecutionContext\" | \"Filename\" | \"IllegalStateException\" | \"List\" | \"String\" | \"UUID\" | \"appendPath\" | \"catch\" | \"compareTo\" | \"createEmptyPartitions\" | \"else\" | \"error\" | \"exists\" | \"fileName\" | \"filenameFromUri\" | \"filter\" | \"for\" | \"forEachIndexed\" | \"getDefault\" | \"getPathMatcher\" | \"if\" | \"info\" | \"isDirectory\" | \"isEmpty\" | \"isNotEmpty\" | \"isObjectStorageUri\" | \"isRegularFile\" | \"list\" | \"listObjects\" | \"listOf\" | \"listTrackedFilenames\" | \"logPartitioningInfo\" | \"map\" | \"mapNotNull\" | \"matches\" | \"message\" | \"of\" | \"put\" | \"putInt\" | \"putString\" | \"queueDocuments\" | \"randomUUID\" | \"removeSuffix\" | \"resolveFiles\" | \"resolvePath\" | \"return Files.list(rootPath).use { stream ->\n stream\n .filter { Files.isRegularFile(it) }\n .filter { matcher.matches(it.fileName) }\n .filter { Files.size(it) > 0L }\n .sorted { a, b -> a.fileName.toString().compareTo(b.fileName.toString()) }\n .toList()\n }\" | \"return createEmptyPartitions(gridSize, \\\"ERROR: No inputPath provided\\\")\" | \"return partitions\" | \"size\" | \"sorted\" | \"throw\" | \"throw IllegalStateException(\\\"Input path does not exist: $rootPath\\\")\" | \"throw IllegalStateException(\\\"Input path is not a directory: $rootPath\\\")\" | \"throw IllegalStateException(\\\"Invalid inputPath: $normalizedInputPath\\\")\" | \"toString\" | \"toUri\" | \"try\" | \"use\" | \"util\" | \"value\" | \"warn\")?+ \"toList\"?+", + "mdl_score": 0, + "imports": [ + "import eu.corentic.springrag.common.ids.Filename", + "import eu.corentic.springrag.common.ids.JobId", + "import eu.corentic.springrag.common.ids.StorageUri", + "import eu.corentic.springrag.config.StorageProperties", + "import eu.corentic.springrag.service.job.DocumentTrackingRepository", + "import eu.corentic.springrag.service.port.ObjectStoragePort", + "import io.github.oshai.kotlinlogging.KotlinLogging", + "import java.nio.file.FileSystems", + "import java.nio.file.Files", + "import java.nio.file.Path", + "import kotlin.streams.toList", + "import org.springframework.batch.core.configuration.annotation.StepScope", + "import org.springframework.batch.core.partition.Partitioner", + "import org.springframework.batch.infrastructure.item.ExecutionContext", + "import org.springframework.beans.factory.annotation.Value", + "import org.springframework.stereotype.Component" + ], + "arg_patterns": {} + }, + { + "label": "modules/ingestion/src/main/kotlin/eu/corentic/springrag/batch/reader", + "method_count": 4, + "algorithm": "CRX", + "grammar": "root ::= \"poll\"?+ (\"DocumentInput\" | \"IllegalStateException\" | \"KnowledgeBaseId\" | \"List\" | \"String\" | \"containsKey\" | \"debug\" | \"documentVersionId\" | \"else\" | \"error\" | \"exists\" | \"filenameFromUri\" | \"forEach\" | \"get\" | \"getResource\" | \"identityHashCode\" | \"if\" | \"info\" | \"inputStream\" | \"isNotEmpty\" | \"isObjectStorageUri\" | \"isReadable\" | \"it\" | \"java\" | \"let\" | \"loadObject\" | \"logicalDocumentId\" | \"mapNotNull\" | \"name\" | \"objectExists\" | \"of\" | \"offer\" | \"partitionedFiles\" | \"readBytes\" | \"requireNotNull\" | \"return\" | \"return DocumentInput(\n jobId = resolvedJobId,\n documentId = documentId,\n logicalDocumentId = logicalDocumentId,\n filename = resolvedFilename,\n content = content,\n fileStorageUri = StorageUri.of(uri),\n knowledgeBaseId = resolvedKnowledgeBaseId,\n submittedBy = submittedBy\n )\" | \"return null\" | \"size\" | \"throw\" | \"throw IllegalStateException(\\\"Object not found at $uri\\\")\" | \"throw IllegalStateException(\\\"Resource not readable: $uri\\\")\" | \"use\" | \"value\" | \"warn\" | \"when\")?+ (\"clear\" | \"initialize\")?+", + "mdl_score": 532496, + "imports": [ + "import eu.corentic.springrag.batch.model.DocumentInput", + "import eu.corentic.springrag.common.ids.Filename", + "import eu.corentic.springrag.common.ids.JobId", + "import eu.corentic.springrag.common.ids.KnowledgeBaseId", + "import eu.corentic.springrag.common.ids.StorageUri", + "import eu.corentic.springrag.config.StorageProperties", + "import eu.corentic.springrag.service.document.DocumentIdentity", + "import eu.corentic.springrag.service.port.ObjectStoragePort", + "import io.github.oshai.kotlinlogging.KotlinLogging", + "import org.springframework.batch.infrastructure.item.ExecutionContext", + "import org.springframework.batch.infrastructure.item.ItemStreamReader", + "import org.springframework.beans.factory.annotation.Value", + "import org.springframework.core.io.ResourceLoader", + "import java.util.concurrent.ConcurrentLinkedQueue" + ], + "arg_patterns": {} + }, + { + "label": "modules/ingestion/src/main/kotlin/eu/corentic/springrag/batch/writer", + "method_count": 3, + "algorithm": "CRX", + "grammar": "root ::= \"items\"? \"forEach\"?+ (\"addChunks\" | \"chunks\" | \"content\" | \"debug\" | \"documentId\" | \"else\" | \"enforce\" | \"fileStorageUri\" | \"filename\" | \"graphDocument\" | \"if\" | \"input\" | \"isEmpty\" | \"jobId\" | \"knowledgeBaseId\" | \"let\" | \"logicalDocumentId\" | \"pictures\" | \"size\" | \"stageDocumentGraph\" | \"submittedBy\" | \"tables\" | \"texts\" | \"toLong\" | \"upsertStaging\" | \"value\" | \"warn\")?+ \"activate\"?+", + "mdl_score": 71388, + "imports": [ + "import eu.corentic.springrag.service.job.DocumentActivationService", + "import eu.corentic.springrag.service.job.IngestionDocumentState", + "import org.springframework.batch.infrastructure.item.Chunk", + "import org.springframework.batch.infrastructure.item.ItemWriter", + "import org.springframework.stereotype.Component", + "import eu.corentic.springrag.batch.model.ProcessedDocument", + "import eu.corentic.springrag.service.chunk.EmbeddingInputGuard", + "import eu.corentic.springrag.service.job.IngestionDocumentStateRepository", + "import eu.corentic.springrag.service.port.ChunkIndexPort", + "import eu.corentic.springrag.service.port.GraphIndexPort", + "import io.github.oshai.kotlinlogging.KotlinLogging" + ], + "arg_patterns": {} + }, + { + "label": "modules/ingestion/src/main/kotlin/eu/corentic/springrag/config", + "method_count": 26, + "imports": [ + "import javax.sql.DataSource", + "import org.springframework.batch.core.configuration.support.JdbcDefaultBatchConfiguration", + "import org.springframework.context.annotation.Bean", + "import org.springframework.context.annotation.Configuration", + "import org.springframework.core.task.TaskDecorator", + "import org.springframework.core.task.TaskExecutor", + "import org.springframework.core.task.VirtualThreadTaskExecutor", + "import org.springframework.core.task.support.TaskExecutorAdapter", + "import org.springframework.jdbc.datasource.DataSourceTransactionManager", + "import org.springframework.transaction.PlatformTransactionManager", + "import org.springframework.transaction.annotation.Isolation", + "import eu.corentic.springrag.common.ids.BatchId", + "import eu.corentic.springrag.common.ids.Filename", + "import eu.corentic.springrag.common.ids.StorageUri", + "import jakarta.annotation.PostConstruct", + "import jakarta.validation.constraints.NotBlank", + "import java.net.URI", + "import java.nio.file.Path", + "import java.time.Duration", + "import org.slf4j.LoggerFactory", + "import org.springframework.boot.context.properties.ConfigurationProperties", + "import org.springframework.validation.annotation.Validated" + ], + "arg_patterns": {} + }, + { + "label": "modules/ingestion/src/main/kotlin/eu/corentic/springrag/service/chunk", + "method_count": 18, + "algorithm": "CRX", + "grammar": "root ::= \"trim\"?+ \"if\" \"isBlank\"?+", + "mdl_score": 4, + "imports": [ + "import eu.corentic.springrag.config.HybridChunkingConfig", + "import eu.corentic.springrag.common.ids.DocumentId", + "import eu.corentic.springrag.common.ids.Filename", + "import eu.corentic.springrag.common.ids.JobId", + "import eu.corentic.springrag.common.ids.KnowledgeBaseId", + "import eu.corentic.springrag.common.ids.LogicalDocumentId", + "import eu.corentic.springrag.model.GraphDocument", + "import eu.corentic.springrag.model.GraphTableElement", + "import eu.corentic.springrag.model.GraphTextElement", + "import eu.corentic.springrag.model.ParsedDocument", + "import eu.corentic.springrag.model.VectorChunk", + "import org.springframework.stereotype.Service", + "import org.springframework.stereotype.Component", + "import eu.corentic.springrag.config.EmbabelModelProperties", + "import kotlin.math.min", + "import com.knuddels.jtokkit.Encodings", + "import com.knuddels.jtokkit.api.Encoding", + "import com.knuddels.jtokkit.api.EncodingType" + ], + "arg_patterns": {} + }, + { + "label": "modules/ingestion/src/main/kotlin/eu/corentic/springrag/service/document", + "method_count": 3, + "algorithm": "CRX", + "grammar": "root ::= (\"lowercase\" | \"trim\" | \"value\")?+ \"joinToString\"? \"getInstance\"?+ \"format\"?+ \"digest\"?+ \"toByteArray\"?+ \"toHex\"?+ (\"return DocumentId.of(\\\"doc-$hex\\\")\" | \"return LogicalDocumentId.of(\\\"ldoc-$hex\\\")\")? \"of\"?+", + "mdl_score": 0, + "imports": [ + "import eu.corentic.springrag.common.ids.DocumentId", + "import eu.corentic.springrag.common.ids.Filename", + "import eu.corentic.springrag.common.ids.JobId", + "import eu.corentic.springrag.common.ids.KnowledgeBaseId", + "import eu.corentic.springrag.common.ids.LogicalDocumentId", + "import java.security.MessageDigest" + ], + "arg_patterns": {} + }, + { + "label": "modules/ingestion/src/main/kotlin/eu/corentic/springrag/service/job", + "method_count": 62, + "imports": [ + "import java.sql.Timestamp", + "import java.time.Instant", + "import org.springframework.jdbc.core.JdbcTemplate", + "import org.springframework.stereotype.Component", + "from ingestion_batch_ownership", + "import eu.corentic.springrag.common.DomainException", + "import io.github.oshai.kotlinlogging.KotlinLogging", + "import org.springframework.stereotype.Service", + "import eu.corentic.springrag.model.event.DocumentActivationFailed", + "import eu.corentic.springrag.service.port.ChunkIndexPort", + "import org.springframework.modulith.events.ApplicationModuleListener", + "import eu.corentic.springrag.service.port.GraphIndexPort", + "import org.springframework.context.ApplicationEventPublisher", + "import eu.corentic.springrag.model.event.DocumentDeletionRequested", + "import eu.corentic.springrag.batch.model.ErrorSeverity", + "import eu.corentic.springrag.batch.model.ProcessingError", + "import eu.corentic.springrag.common.ids.Filename", + "import eu.corentic.springrag.common.ids.JobId", + "import java.sql.ResultSet", + "import org.springframework.transaction.annotation.Transactional", + "from ingestion_document_tracking", + "import eu.corentic.springrag.common.ids.DocumentId", + "import eu.corentic.springrag.common.ids.KnowledgeBaseId", + "import eu.corentic.springrag.common.ids.LogicalDocumentId", + "import org.springframework.jdbc.core.RowMapper", + "from ingestion_document_state", + "import org.springframework.batch.core.job.JobExecution", + "import org.springframework.batch.core.job.JobInstance", + "import org.springframework.batch.core.repository.JobRepository", + "import eu.corentic.springrag.common.ids.StorageUri", + "import eu.corentic.springrag.config.StorageProperties", + "import eu.corentic.springrag.service.port.ObjectStoragePort", + "import org.springframework.core.io.ResourceLoader", + "import org.springframework.batch.core.job.Job", + "import org.springframework.batch.core.job.parameters.JobParameters", + "import org.springframework.batch.core.launch.JobOperator", + "import java.util.UUID", + "import org.springframework.batch.core.job.parameters.JobParametersBuilder", + "import java.io.File", + "import java.util.*", + "import org.springframework.batch.core.launch.JobExecutionAlreadyRunningException", + "import org.springframework.batch.core.launch.JobInstanceAlreadyCompleteException", + "import eu.corentic.springrag.batch.DocumentIngestionJobConfig", + "import org.springframework.batch.core.launch.NoSuchJobException", + "import eu.corentic.springrag.batch.model.ErrorSummary", + "import org.springframework.batch.core.BatchStatus", + "import eu.corentic.springrag.model.event.KnowledgeBaseDeletionRequested", + "import java.net.URI", + "import java.nio.file.Path", + "import org.springframework.scheduling.annotation.Scheduled", + "import org.springframework.util.FileSystemUtils" + ], + "arg_patterns": {} + }, + { + "label": "modules/ingestion/src/test/kotlin/eu/corentic/springrag/batch", + "method_count": 17, + "algorithm": "CRX", + "grammar": "root ::= \"policy\" | \"skipPolicy\"", + "mdl_score": 4, + "imports": [ + "import eu.corentic.springrag.config.BatchProperties", + "import eu.corentic.springrag.service.job.IngestionDocumentStateRepository", + "import io.mockk.mockk", + "import kotlin.test.assertEquals", + "import org.junit.jupiter.api.Test", + "import org.springframework.jdbc.datasource.embedded.EmbeddedDatabaseBuilder", + "import org.springframework.jdbc.datasource.embedded.EmbeddedDatabaseType", + "import java.io.IOException", + "import kotlin.test.assertFalse", + "import kotlin.test.assertTrue", + "import org.springframework.core.retry.RetryPolicy", + "import org.springframework.dao.TransientDataAccessResourceException", + "import org.springframework.util.backoff.FixedBackOff", + "import org.springframework.batch.core.step.skip.SkipPolicy", + "import kotlin.test.assertNotNull", + "import org.springframework.batch.core.listener.ItemProcessListener", + "import org.springframework.batch.core.listener.JobExecutionListener" + ], + "arg_patterns": {} + }, + { + "label": "modules/ingestion/src/test/kotlin/eu/corentic/springrag/batch/listener", + "method_count": 34, + "imports": [ + "import eu.corentic.springrag.config.StorageProperties", + "import java.io.IOException", + "import java.nio.file.Files", + "import java.nio.file.Path", + "import java.time.Duration", + "import org.junit.jupiter.api.Assertions.assertTrue", + "import org.junit.jupiter.api.BeforeEach", + "import org.junit.jupiter.api.Test", + "import org.junit.jupiter.api.io.TempDir", + "import org.springframework.batch.core.BatchStatus", + "import org.springframework.batch.core.job.JobExecution", + "import org.springframework.batch.core.job.JobInstance", + "import org.springframework.batch.core.job.parameters.JobParameters", + "import org.springframework.batch.core.job.parameters.JobParametersBuilder", + "import org.springframework.batch.test.MetaDataInstanceFactory", + "import eu.corentic.springrag.service.job.StagedUploadCleanupService", + "import eu.corentic.springrag.service.port.ObjectStoragePort", + "import io.mockk.mockk", + "import eu.corentic.springrag.service.job.DocumentTrackingRepository", + "import eu.corentic.springrag.service.job.IngestionDocumentState", + "import eu.corentic.springrag.service.job.IngestionDocumentStateRepository", + "import eu.corentic.springrag.common.ids.asDocumentId", + "import eu.corentic.springrag.common.ids.asFilename", + "import eu.corentic.springrag.common.ids.asJobId", + "import eu.corentic.springrag.common.ids.asLogicalDocumentId", + "import io.mockk.every", + "import io.mockk.just", + "import io.mockk.runs", + "import io.mockk.verify", + "import org.springframework.batch.infrastructure.item.Chunk", + "import eu.corentic.springrag.batch.model.DocumentInput", + "import eu.corentic.springrag.batch.model.ProcessedDocument", + "import eu.corentic.springrag.batch.model.ProcessingError", + "import java.io.EOFException", + "import java.net.SocketTimeoutException", + "import javax.net.ssl.SSLException", + "import kotlin.test.assertEquals", + "import eu.corentic.springrag.model.VectorChunk", + "import io.mockk.slot" + ], + "arg_patterns": {} + }, + { + "label": "modules/ingestion/src/test/kotlin/eu/corentic/springrag/batch/model", + "method_count": 8, + "algorithm": "CRX", + "grammar": "root ::= \"mapOf\"?+ \"DocumentInput\"? (\"assertNotEquals\" | \"severity\")? \"String\"?+ \"asJobId\"?+ \"Any\"? \"asDocumentId\"?+ \"requireNotNull\"?+ \"asLogicalDocumentId\"?+ \"getDocumentError\"?+ \"asFilename\"?+ \"assertTrue\"? \"byteArrayOf\"?+ \"ProcessingError\"? \"asStorageUri\"?+ \"asKnowledgeBaseId\"?+", + "mdl_score": 0, + "imports": [ + "import eu.corentic.springrag.common.ids.asDocumentId", + "import eu.corentic.springrag.common.ids.asFilename", + "import eu.corentic.springrag.common.ids.asJobId", + "import eu.corentic.springrag.common.ids.asKnowledgeBaseId", + "import eu.corentic.springrag.common.ids.asLogicalDocumentId", + "import eu.corentic.springrag.common.ids.asStorageUri", + "import kotlin.test.assertEquals", + "import kotlin.test.assertNotEquals", + "import org.junit.jupiter.api.Test", + "import org.junit.jupiter.api.Assertions.assertEquals", + "import org.junit.jupiter.api.Assertions.assertTrue" + ], + "arg_patterns": {} + }, + { + "label": "modules/ingestion/src/test/kotlin/eu/corentic/springrag/batch/partition", + "method_count": 7, + "algorithm": "CRX", + "grammar": "root ::= (\"resolve\" | \"writeString\")?+ \"mockk\"? \"DocumentTrackingRepository\"? (\"any\" | \"asJobId\" | \"assertEquals\" | \"assertTrue\" | \"containsAll\" | \"emptyList\" | \"every\" | \"getString\" | \"listOf\" | \"listTrackedFilenames\" | \"map\" | \"match\" | \"partition\" | \"partitioner\" | \"queueDocuments\" | \"size\" | \"sorted\" | \"value\" | \"values\" | \"verify\")?+ \"all\"?+ \"error\"?+ \"getInt\"?+", + "mdl_score": 0, + "imports": [ + "import eu.corentic.springrag.service.job.DocumentTrackingRepository", + "import eu.corentic.springrag.service.port.ObjectStoragePort", + "import eu.corentic.springrag.common.ids.asFilename", + "import eu.corentic.springrag.common.ids.asJobId", + "import eu.corentic.springrag.common.ids.asStorageUri", + "import io.mockk.every", + "import io.mockk.just", + "import io.mockk.mockk", + "import io.mockk.runs", + "import io.mockk.verify", + "import java.nio.file.Files", + "import java.nio.file.Path", + "import kotlin.test.assertEquals", + "import kotlin.test.assertTrue", + "import org.junit.jupiter.api.Test", + "import org.junit.jupiter.api.io.TempDir" + ], + "arg_patterns": {} + }, + { + "label": "modules/ingestion/src/test/kotlin/eu/corentic/springrag/batch/processor", + "method_count": 5, + "algorithm": "CRX", + "grammar": "root ::= \"clearAllMocks\"? \"DocumentInput\"? (\"DocumentParsingRequest\" | \"GraphDocument\" | \"ParsedDocument\" | \"RuntimeException\" | \"VectorChunk\" | \"any\" | \"asDocumentId\" | \"asFilename\" | \"asJobId\" | \"asKnowledgeBaseId\" | \"asLogicalDocumentId\" | \"assertEquals\" | \"assertNotNull\" | \"assertThrows\" | \"byteArrayOf\" | \"content\" | \"createChunks\" | \"documentId\" | \"emptyList\" | \"every\" | \"filename\" | \"graphDocument\" | \"input\" | \"jobId\" | \"listOf\" | \"logicalDocumentId\" | \"parse\" | \"process\" | \"toList\" | \"verify\" | \"withArg\")?+ (\"chunks\" | \"knowledgeBaseId\")?", + "mdl_score": 86178481, + "imports": [ + "import eu.corentic.springrag.batch.model.DocumentInput", + "import eu.corentic.springrag.model.GraphDocument", + "import eu.corentic.springrag.model.ParsedDocument", + "import eu.corentic.springrag.model.VectorChunk", + "import eu.corentic.springrag.service.chunk.DocumentChunkService", + "import eu.corentic.springrag.service.port.DocumentParserPort", + "import eu.corentic.springrag.service.port.DocumentParsingRequest", + "import eu.corentic.springrag.common.ids.asDocumentId", + "import eu.corentic.springrag.common.ids.asFilename", + "import eu.corentic.springrag.common.ids.asJobId", + "import eu.corentic.springrag.common.ids.asKnowledgeBaseId", + "import eu.corentic.springrag.common.ids.asLogicalDocumentId", + "import io.mockk.clearAllMocks", + "import io.mockk.every", + "import io.mockk.mockk", + "import io.mockk.verify", + "import java.util.UUID", + "import kotlin.test.assertEquals", + "import kotlin.test.assertNotNull", + "import org.junit.jupiter.api.BeforeEach", + "import org.junit.jupiter.api.Test", + "import org.junit.jupiter.api.assertThrows" + ], + "arg_patterns": {} + }, + { + "label": "modules/ingestion/src/test/kotlin/eu/corentic/springrag/batch/reader", + "method_count": 12, + "algorithm": "CRX", + "grammar": "root ::= (\"DefaultResourceLoader\" | \"File\" | \"FileBasedDocumentItemReader\" | \"absolutePath\" | \"byteArrayOf\" | \"core\" | \"io\" | \"open\" | \"springframework\" | \"writeBytes\")?+ \"batch\"? \"infrastructure\"? \"item\"? \"ExecutionContext\"?+ \"read\"?+ \"assertNotNull\"? \"assertNull\"? \"assertEquals\"? \"filename\"? \"value\"?", + "mdl_score": 5820, + "imports": [ + "import eu.corentic.springrag.service.document.DocumentIdentity", + "import java.io.File", + "import eu.corentic.springrag.common.ids.asDocumentId", + "import eu.corentic.springrag.common.ids.asFilename", + "import eu.corentic.springrag.common.ids.asJobId", + "import eu.corentic.springrag.common.ids.asKnowledgeBaseId", + "import eu.corentic.springrag.common.ids.asLogicalDocumentId", + "import eu.corentic.springrag.common.ids.asStorageUri", + "import eu.corentic.springrag.service.port.ObjectStoragePort", + "import io.mockk.mockk", + "import org.junit.jupiter.api.Assertions.*", + "import org.junit.jupiter.api.Test", + "import org.junit.jupiter.api.io.TempDir" + ], + "arg_patterns": {} + }, + { + "label": "modules/ingestion/src/test/kotlin/eu/corentic/springrag/batch/writer", + "method_count": 14, + "algorithm": "CRX", + "grammar": "root ::= \"emptyList\"?+ \"ProcessedDocument\"? \"write\"?+ \"runTest\"? \"DocumentInput\"? \"Chunk\"? \"coVerify\"? \"asJobId\"?+ \"listOf\"?+ \"stageDocumentGraph\"?+ \"asDocumentId\"?+ \"any\"?+ \"asLogicalDocumentId\"?+ \"asFilename\"?+ \"byteArrayOf\"?+", + "mdl_score": 0, + "imports": [ + "import eu.corentic.springrag.service.job.DocumentActivationService", + "import eu.corentic.springrag.service.job.IngestionDocumentState", + "import eu.corentic.springrag.common.ids.asDocumentId", + "import eu.corentic.springrag.common.ids.asFilename", + "import eu.corentic.springrag.common.ids.asJobId", + "import eu.corentic.springrag.common.ids.asLogicalDocumentId", + "import io.mockk.every", + "import io.mockk.just", + "import io.mockk.mockk", + "import io.mockk.runs", + "import org.junit.jupiter.api.Test", + "import org.springframework.batch.infrastructure.item.Chunk", + "import kotlin.test.assertFailsWith", + "import eu.corentic.springrag.batch.model.DocumentInput", + "import eu.corentic.springrag.batch.model.ProcessedDocument", + "import eu.corentic.springrag.common.ids.asStorageUri", + "import eu.corentic.springrag.model.GraphDocument", + "import eu.corentic.springrag.model.VectorChunk", + "import eu.corentic.springrag.service.chunk.EmbeddingInputGuard", + "import eu.corentic.springrag.service.chunk.EmbeddingInputTooLargeException", + "import eu.corentic.springrag.service.job.IngestionDocumentStateRepository", + "import eu.corentic.springrag.service.port.ChunkIndexPort", + "import eu.corentic.springrag.service.port.GraphIndexPort", + "import io.mockk.verify", + "import io.mockk.*", + "import io.mockk.impl.annotations.MockK", + "import io.mockk.junit5.MockKExtension", + "import kotlinx.coroutines.test.runTest", + "import org.junit.jupiter.api.AfterEach", + "import org.junit.jupiter.api.Assertions.*", + "import org.junit.jupiter.api.BeforeEach", + "import org.junit.jupiter.api.extension.ExtendWith" + ], + "arg_patterns": {} + }, + { + "label": "modules/ingestion/src/test/kotlin/eu/corentic/springrag/service/chunk", + "method_count": 8, + "algorithm": "CRX", + "grammar": "root ::= \"HybridChunkingConfig\"? \"service\"? \"GraphDocument\"? \"listOf\"?+ (\"GraphTableElement\" | \"GraphTextElement\")? \"createChunks\"?+ \"asJobId\"?+ \"asDocumentId\"?+ \"asLogicalDocumentId\"?+ \"asFilename\"?+ \"ParsedDocument\"? (\"assertEquals\" | \"size\")?+ \"assertTrue\"? \"all\"?+ \"metadata\"? \"Int\"?+", + "mdl_score": 0, + "imports": [ + "import eu.corentic.springrag.config.HybridChunkingConfig", + "import eu.corentic.springrag.config.EmbabelModelProperties", + "import eu.corentic.springrag.common.ids.asDocumentId", + "import eu.corentic.springrag.common.ids.asFilename", + "import eu.corentic.springrag.common.ids.asJobId", + "import eu.corentic.springrag.common.ids.asKnowledgeBaseId", + "import eu.corentic.springrag.common.ids.asLogicalDocumentId", + "import eu.corentic.springrag.model.GraphDocument", + "import eu.corentic.springrag.model.GraphTableElement", + "import eu.corentic.springrag.model.GraphTextElement", + "import eu.corentic.springrag.model.ParsedDocument", + "import kotlin.test.assertEquals", + "import kotlin.test.assertNotNull", + "import kotlin.test.assertTrue", + "import org.junit.jupiter.api.Test" + ], + "arg_patterns": {} + }, + { + "label": "modules/ingestion/src/test/kotlin/eu/corentic/springrag/service/job", + "method_count": 49, + "imports": [ + "import io.mockk.every", + "import io.mockk.mockk", + "import io.mockk.verify", + "import kotlin.test.assertEquals", + "import kotlin.test.assertFailsWith", + "import org.junit.jupiter.api.Test", + "import eu.corentic.springrag.model.event.DocumentActivationFailed", + "import eu.corentic.springrag.service.port.ChunkIndexPort", + "import eu.corentic.springrag.common.ids.asDocumentId", + "import eu.corentic.springrag.common.ids.asKnowledgeBaseId", + "import eu.corentic.springrag.common.ids.asLogicalDocumentId", + "import io.mockk.just", + "import io.mockk.runs", + "import eu.corentic.springrag.service.port.GraphIndexPort", + "import eu.corentic.springrag.common.ids.asFilename", + "import eu.corentic.springrag.common.ids.asJobId", + "import org.springframework.context.ApplicationEventPublisher", + "import eu.corentic.springrag.model.event.DocumentDeletionRequested", + "import java.time.LocalDateTime", + "import kotlin.test.assertNull", + "import org.springframework.batch.core.job.JobExecution", + "import org.springframework.batch.core.job.JobInstance", + "import org.springframework.batch.core.job.parameters.JobParametersBuilder", + "import org.springframework.batch.core.repository.JobRepository", + "import java.io.File", + "import eu.corentic.springrag.common.ids.asStorageUri", + "import eu.corentic.springrag.service.port.ObjectStoragePort", + "import org.junit.jupiter.api.Assertions.assertThrows", + "import org.springframework.core.io.DefaultResourceLoader", + "import org.junit.jupiter.api.Assertions.assertNull", + "import org.junit.jupiter.api.Assertions.assertEquals", + "import org.junit.jupiter.api.Assertions.assertSame", + "import org.junit.jupiter.api.assertThrows", + "import org.slf4j.MDC", + "import org.springframework.batch.core.job.Job", + "import org.springframework.batch.core.launch.JobOperator", + "import kotlin.test.assertNotNull", + "import io.mockk.slot", + "import org.junit.jupiter.api.Assertions.assertNotEquals", + "import org.junit.jupiter.api.Assertions.assertTrue", + "import org.springframework.batch.core.BatchStatus", + "import org.springframework.batch.core.launch.JobExecutionAlreadyRunningException", + "import org.springframework.batch.core.launch.JobInstanceAlreadyCompleteException", + "import org.springframework.batch.core.job.parameters.JobParameters", + "import org.springframework.batch.test.MetaDataInstanceFactory", + "import kotlin.test.assertTrue", + "import eu.corentic.springrag.model.event.KnowledgeBaseDeletionRequested", + "import eu.corentic.springrag.config.StorageProperties", + "import java.nio.file.Files", + "import java.nio.file.Path", + "import java.time.Duration", + "import java.time.Instant", + "import org.junit.jupiter.api.Assertions.assertFalse", + "import org.junit.jupiter.api.io.TempDir" + ], + "arg_patterns": {} + }, + { + "label": "modules/knowledgebase/ports/src/main/kotlin/eu/corentic/springrag/model", + "method_count": 5, + "algorithm": "CRX", + "grammar": "root ::= \"return sizeInBytes + additionalBytes <= sizeLimitBytes\"? \"return stats.canAcceptMoreContent(additionalBytes, sizeLimitBytes)\"? (\"return copy(\n stats = stats.applySizeDelta(sizeDelta),\n updatedAt = Instant.now()\n )\" | \"return copy(sizeInBytes = sizeInBytes + sizeDelta)\" | \"return copy(updatedAt = Instant.now())\")? \"canAcceptMoreContent\"?+ \"copy\"? \"applySizeDelta\"?+ \"now\"?+", + "mdl_score": 39, + "imports": [ + "import eu.corentic.springrag.common.ids.KnowledgeBaseId", + "import java.time.Instant" + ], + "arg_patterns": {} + }, + { + "label": "modules/knowledgebase/src/main/kotlin/eu/corentic/springrag/service/knowledgebase", + "method_count": 11, + "algorithm": "CRX", + "grammar": "root ::= \"stats\"? \"of\"?+ (\"debug\" | \"info\")?+ \"documentCount\"? \"findById\"?+ \"toInt\"?+ \"throw KnowledgeBaseNotFoundException(kbId)\"? \"throw\"? \"KnowledgeBaseNotFoundException\"?", + "mdl_score": 10, + "imports": [ + "import eu.corentic.springrag.common.ids.KnowledgeBaseId", + "import eu.corentic.springrag.model.KnowledgeBase", + "import eu.corentic.springrag.service.port.KnowledgeBasePort", + "import io.github.oshai.kotlinlogging.KotlinLogging", + "import org.springframework.beans.factory.annotation.Value", + "import org.springframework.boot.CommandLineRunner", + "import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty", + "import org.springframework.context.annotation.Bean", + "import org.springframework.context.annotation.Configuration", + "import java.time.Instant", + "import eu.corentic.springrag.common.ids.JobId", + "import eu.corentic.springrag.model.event.DocumentDeletionRequested", + "import eu.corentic.springrag.model.event.KnowledgeBaseDeletionRequested", + "import eu.corentic.springrag.service.port.KnowledgeBaseDocumentPort", + "import org.springframework.context.ApplicationEventPublisher", + "import org.springframework.stereotype.Service", + "import org.springframework.transaction.annotation.Transactional", + "import java.util.*" + ], + "arg_patterns": {} + }, + { + "label": "modules/knowledgebase/src/test/kotlin/eu/corentic/springrag/service/knowledgebase", + "method_count": 16, + "algorithm": "CRX", + "grammar": "root ::= \"parse\"?+ \"corentic\"? \"springrag\"? \"model\"? \"KnowledgeBase\"?+ (\"asKnowledgeBaseId\" | \"every\" | \"findById\")?+", + "mdl_score": 267, + "imports": [ + "import org.junit.jupiter.api.Assertions.assertEquals", + "import org.junit.jupiter.api.Test", + "import jakarta.validation.Validation", + "import kotlin.test.assertFalse", + "import kotlin.test.assertTrue", + "import eu.corentic.springrag.model.event.DocumentDeletionRequested", + "import eu.corentic.springrag.model.event.KnowledgeBaseDeletionRequested", + "import eu.corentic.springrag.service.port.KnowledgeBasePort", + "import eu.corentic.springrag.service.port.KnowledgeBaseDocumentPort", + "import eu.corentic.springrag.common.ids.asJobId", + "import eu.corentic.springrag.common.ids.asKnowledgeBaseId", + "import io.mockk.every", + "import io.mockk.just", + "import io.mockk.mockk", + "import io.mockk.runs", + "import io.mockk.slot", + "import io.mockk.verify", + "import java.time.Instant", + "import kotlin.test.assertEquals", + "import kotlin.test.assertNotNull", + "import org.junit.jupiter.api.Assertions.assertThrows", + "import org.springframework.context.ApplicationEventPublisher" + ], + "arg_patterns": {} + }, + { + "label": "modules/security/src/main/kotlin/eu/corentic/springrag/security/config", + "method_count": 5, + "algorithm": "CRX", + "grammar": "root ::= \"CommandLineRunner\"? \"request\"? (\"Boolean\" | \"getProperty\" | \"java\")?+ \"BCryptPasswordEncoder\"? \"UserDetailsRepositoryReactiveAuthenticationManager\"? \"headers\"? \"acceptsProfiles\"?+ \"setPasswordEncoder\"?+ \"getFirst\"?+ \"of\"?+ \"return manager\"? \"AUTHORIZATION\"? \"activeProfiles\"? \"isEmpty\"?+ \"return http\n // Temporary: Thymeleaf pages may post forms; keep CSRF for browser endpoints.\n // Long-term: JWT-only API (no cookie auth), so this can be revisited.\n .csrf {\n it.csrfTokenRepository(CookieServerCsrfTokenRepository.withHttpOnlyFalse())\n it.requireCsrfProtectionMatcher(\n AndServerWebExchangeMatcher(\n CsrfWebFilter.DEFAULT_CSRF_MATCHER,\n NegatedServerWebExchangeMatcher(\n // CSRF is only relevant for browser cookie-based interactions.\n // LibreChat calls our /librechat/** endpoints server-to-server and won't send CSRF tokens.\n ServerWebExchangeMatchers.pathMatchers(\\\"/api/**\\\", \\\"/mcp/**\\\", \\\"/librechat/**\\\")\n )\n )\n )\n }\n .httpBasic { it.disable() }\n .formLogin {\n if (!enableFormLogin) {\n it.disable()\n }\n }\n .logout { it.disable() }\n .authenticationManager(authenticationManager)\n .authorizeExchange { exchange ->\n if (permitAll) {\n exchange.anyExchange().permitAll()\n } else {\n exchange\n // Public assets and auth endpoints\n .pathMatchers(\\\"/api/auth/**\\\", \\\"/login\\\", \\\"/logout\\\", \\\"/librechat/**\\\").permitAll()\n .pathMatchers(\\\"/actuator/health/**\\\", \\\"/mcp/**\\\").permitAll()\n .apply {\n if (permitLibreChat) {\n pathMatchers(\\\"/librechat/**\\\").permitAll()\n } else {\n pathMatchers(\\\"/librechat/**\\\").authenticated()\n }\n }\n .pathMatchers(\\\"/css/**\\\", \\\"/js/**\\\", \\\"/images/**\\\", \\\"/webjars/**\\\").permitAll()\n .pathMatchers(\\\"/\\\", \\\"/upload\\\", \\\"/jobs\\\", \\\"/chat\\\", \\\"/knowledge-bases\\\", \\\"/web/**\\\")\n .hasAnyAuthority(\\\"ROLE_USER\\\", \\\"ROLE_ADMIN\\\")\n .anyExchange().authenticated()\n }\n }\n .addFilterAt(jwtAuthenticationFilter, SecurityWebFiltersOrder.AUTHENTICATION)\n .build()\"? \"csrf\"?+ \"csrfTokenRepository\"?+ \"withHttpOnlyFalse\"?+ \"requireCsrfProtectionMatcher\"?+ \"AndServerWebExchangeMatcher\"? \"DEFAULT_CSRF_MATCHER\"? \"NegatedServerWebExchangeMatcher\"? (\"ROLE_ADMIN\" | \"anyExchange\" | \"apply\" | \"authenticated\" | \"authenticationManager\" | \"authorizeExchange\" | \"disable\" | \"else\" | \"findByUsername\" | \"formLogin\" | \"hasAnyAuthority\" | \"httpBasic\" | \"if\" | \"info\" | \"logout\" | \"pathMatchers\" | \"permitAll\" | \"registerUser\")?+ \"addFilterAt\"?+ \"startsWith\"?+ \"ROLE_USER\"? \"AUTHENTICATION\"? \"substring\"?+ \"build\"?+ \"when\"? \"parseToken\"?+ (\"Err\" | \"Ok\" | \"Outcome\" | \"UsernamePasswordAuthenticationToken\" | \"authorities\" | \"contextWrite\" | \"filter\" | \"return chain.filter(exchange)\" | \"return chain.filter(exchange)\n .contextWrite(ReactiveSecurityContextHolder.withAuthentication(authentication))\" | \"username\" | \"value\" | \"withAuthentication\")?+", + "mdl_score": 0, + "imports": [ + "import eu.corentic.springrag.common.Outcome", + "import eu.corentic.springrag.security.service.JwtService", + "import org.springframework.http.HttpHeaders", + "import org.springframework.security.authentication.UsernamePasswordAuthenticationToken", + "import org.springframework.security.core.context.ReactiveSecurityContextHolder", + "import org.springframework.stereotype.Component", + "import org.springframework.web.server.ServerWebExchange", + "import org.springframework.web.server.WebFilter", + "import org.springframework.web.server.WebFilterChain", + "import reactor.core.publisher.Mono", + "import org.springframework.context.annotation.Bean", + "import org.springframework.context.annotation.Configuration", + "import org.springframework.security.config.annotation.method.configuration.EnableReactiveMethodSecurity", + "import org.springframework.security.config.annotation.web.reactive.EnableWebFluxSecurity", + "import org.springframework.security.config.web.server.SecurityWebFiltersOrder", + "import org.springframework.security.config.web.server.ServerHttpSecurity", + "import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder", + "import org.springframework.security.crypto.password.PasswordEncoder", + "import org.springframework.security.web.server.SecurityWebFilterChain", + "import org.springframework.security.authentication.ReactiveAuthenticationManager", + "import org.springframework.security.core.userdetails.ReactiveUserDetailsService", + "import org.springframework.security.authentication.UserDetailsRepositoryReactiveAuthenticationManager", + "import org.springframework.security.web.server.csrf.CookieServerCsrfTokenRepository", + "import org.springframework.security.web.server.csrf.CsrfWebFilter", + "import org.springframework.security.web.server.util.matcher.AndServerWebExchangeMatcher", + "import org.springframework.security.web.server.util.matcher.NegatedServerWebExchangeMatcher", + "import org.springframework.security.web.server.util.matcher.ServerWebExchangeMatchers", + "import org.springframework.core.env.Environment", + "import org.springframework.core.env.Profiles", + "import eu.corentic.springrag.security.model.Role", + "import eu.corentic.springrag.security.service.UserService", + "import io.github.oshai.kotlinlogging.KotlinLogging", + "import org.springframework.boot.CommandLineRunner", + "import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty" + ], + "arg_patterns": {} + }, + { + "label": "modules/security/src/main/kotlin/eu/corentic/springrag/security/service", + "method_count": 10, + "algorithm": "CRX", + "grammar": "root ::= \"parser\"?+ \"if\"? \"verifyWith\"?+ \"build\"?+ \"parseSignedClaims\"?+ \"payload\"?", + "mdl_score": 6, + "imports": [ + "import eu.corentic.springrag.security.repository.UserRepository", + "import org.springframework.security.core.userdetails.ReactiveUserDetailsService", + "import org.springframework.security.core.userdetails.User", + "import org.springframework.security.core.userdetails.UserDetails", + "import org.springframework.stereotype.Service", + "import reactor.core.publisher.Mono", + "import reactor.core.scheduler.Schedulers", + "import eu.corentic.springrag.common.DomainException", + "import eu.corentic.springrag.common.Outcome", + "import eu.corentic.springrag.security.model.User", + "import io.jsonwebtoken.ExpiredJwtException", + "import io.jsonwebtoken.Jwts", + "import io.jsonwebtoken.MalformedJwtException", + "import io.jsonwebtoken.UnsupportedJwtException", + "import io.jsonwebtoken.security.Keys", + "import io.jsonwebtoken.security.SecurityException", + "import java.nio.charset.StandardCharsets", + "import java.util.*", + "import javax.crypto.SecretKey", + "import eu.corentic.springrag.security.config.JwtProperties", + "import org.springframework.security.core.GrantedAuthority", + "import org.springframework.security.core.authority.SimpleGrantedAuthority", + "import java.util.UUID", + "import org.springframework.data.relational.core.mapping.event.BeforeConvertCallback", + "import org.springframework.stereotype.Component", + "import eu.corentic.springrag.security.model.Role", + "import io.github.oshai.kotlinlogging.KotlinLogging", + "import org.springframework.security.crypto.password.PasswordEncoder", + "import org.springframework.transaction.annotation.Transactional" + ], + "arg_patterns": {} + }, + { + "label": "modules/security/src/test/kotlin/eu/corentic/springrag/security/config", + "method_count": 6, + "algorithm": "CRX", + "grammar": "root ::= \"passwordEncoder\"?+ \"http\"?+ \"assertTrue\"? \"ReactiveAuthenticationManager\"? \"BCryptPasswordEncoder\"? \"empty\"?+ (\"ROLE_ADMIN\" | \"any\" | \"every\" | \"findByUsername\" | \"mockk\" | \"registerUser\" | \"run\" | \"seedUsers\" | \"verify\")?+ \"ROLE_USER\"? \"JwtService\"? \"parseToken\"?+ \"JwtAuthenticationFilter\"? \"Err\"?+ \"Ok\"?+ \"springSecurityFilterChain\"?+ \"Malformed\"?+ \"ParsedJwt\"?+ \"assertNotNull\"? (\"AUTHORIZATION\" | \"AtomicReference\" | \"Authentication\" | \"SimpleGrantedAuthority\" | \"WebFilterChain\" | \"assertEquals\" | \"assertNull\" | \"authentication\" | \"block\" | \"build\" | \"doOnNext\" | \"filter\" | \"from\" | \"get\" | \"getContext\" | \"header\" | \"listOf\" | \"name\" | \"requireNotNull\" | \"set\" | \"then\")?+ \"authorities\"? \"toList\"?+", + "mdl_score": 0, + "imports": [ + "import eu.corentic.springrag.common.Outcome", + "import eu.corentic.springrag.security.service.JwtService", + "import eu.corentic.springrag.security.service.JwtValidationError", + "import io.mockk.every", + "import io.mockk.mockk", + "import java.util.concurrent.atomic.AtomicReference", + "import org.junit.jupiter.api.Assertions.assertEquals", + "import org.junit.jupiter.api.Assertions.assertNull", + "import org.junit.jupiter.api.Test", + "import org.springframework.http.HttpHeaders", + "import org.springframework.mock.http.server.reactive.MockServerHttpRequest", + "import org.springframework.mock.web.server.MockServerWebExchange", + "import org.springframework.security.core.Authentication", + "import org.springframework.security.core.authority.SimpleGrantedAuthority", + "import org.springframework.security.core.context.ReactiveSecurityContextHolder", + "import org.springframework.web.server.WebFilterChain", + "import org.junit.jupiter.api.Assertions.assertNotNull", + "import org.junit.jupiter.api.Assertions.assertTrue", + "import org.springframework.mock.env.MockEnvironment", + "import org.springframework.security.authentication.ReactiveAuthenticationManager", + "import org.springframework.security.config.web.server.ServerHttpSecurity", + "import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder", + "import reactor.core.publisher.Mono", + "import eu.corentic.springrag.security.model.Role", + "import eu.corentic.springrag.security.service.UserService", + "import io.mockk.just", + "import io.mockk.runs", + "import io.mockk.verify" + ], + "arg_patterns": {} + }, + { + "label": "modules/security/src/test/kotlin/eu/corentic/springrag/security/service", + "method_count": 15, + "algorithm": "CRX", + "grammar": "root ::= \"every\"? \"JwtService\"? \"existsByUsername\"?+ \"JwtProperties\"? \"any\"? \"assertThrows\"? \"PasswordPolicyViolationException\"? \"java\"? \"registerUser\"?+ \"assertEquals\"? \"errorCode\"?", + "mdl_score": 481, + "imports": [ + "import eu.corentic.springrag.common.Outcome", + "import eu.corentic.springrag.security.model.Role", + "import eu.corentic.springrag.security.model.User", + "import eu.corentic.springrag.security.config.JwtProperties", + "import io.jsonwebtoken.Jwts", + "import io.jsonwebtoken.security.Keys", + "import java.nio.charset.StandardCharsets", + "import java.util.UUID", + "import java.util.Date", + "import org.junit.jupiter.api.Assertions.assertEquals", + "import org.junit.jupiter.api.Assertions.assertFalse", + "import org.junit.jupiter.api.Assertions.assertTrue", + "import org.junit.jupiter.api.Test", + "import eu.corentic.springrag.security.repository.UserRepository", + "import io.mockk.MockKAnnotations", + "import io.mockk.every", + "import io.mockk.impl.annotations.MockK", + "import io.mockk.verify", + "import org.junit.jupiter.api.Assertions.assertThrows", + "import org.junit.jupiter.api.BeforeEach", + "import org.springframework.security.crypto.password.PasswordEncoder" + ], + "arg_patterns": {} + }, + { + "label": "platform/test-support/src/main/kotlin/eu/corentic/springrag/testcontainers", + "method_count": 13, + "algorithm": "CRX", + "grammar": "root ::= \"if\" | \"try\"", + "mdl_score": 4, + "imports": [ + "import com.github.dockerjava.api.model.DeviceRequest", + "import org.testcontainers.DockerClientFactory", + "import org.testcontainers.containers.GenericContainer", + "import io.github.oshai.kotlinlogging.KotlinLogging", + "import io.qdrant.client.QdrantClient", + "import io.qdrant.client.grpc.Collections.Distance", + "import io.qdrant.client.grpc.Collections.VectorParams", + "import java.util.concurrent.ExecutionException", + "import eu.corentic.springrag.testcontainers.GpuSupport.withGpuIfAvailable", + "import java.io.File", + "import java.time.Duration", + "import org.testcontainers.containers.BindMode", + "import org.testcontainers.containers.Neo4jContainer", + "import org.testcontainers.containers.PostgreSQLContainer", + "import org.testcontainers.containers.wait.strategy.Wait", + "import org.testcontainers.junit.jupiter.Container" + ], + "arg_patterns": {} + }, + { + "label": "platform/test-support/src/test/kotlin/eu/corentic/springrag/testcontainers", + "method_count": 5, + "algorithm": "CRX", + "grammar": "root ::= \"@\"? \"Suppress\"?+ (\"ArgumentMatchers\" | \"CollectionConfig\" | \"CollectionInfo\" | \"CollectionOperationResponse\" | \"CollectionParams\" | \"Collections\" | \"Cosine\" | \"Distance\" | \"ExecResult\" | \"GenericContainer\" | \"IllegalStateException\" | \"InterruptedException\" | \"ListenableFuture\" | \"Mockito\" | \"RuntimeException\" | \"VectorParams\" | \"VectorsConfig\" | \"`when`\" | \"any\" | \"anyString\" | \"apply\" | \"assertEquals\" | \"assertThrows\" | \"assertTrue\" | \"build\" | \"collectionPointCount\" | \"createCollectionAsync\" | \"currentThread\" | \"deleteCollectionAsync\" | \"eq\" | \"execInContainer\" | \"get\" | \"getCollectionInfoAsync\" | \"getDefaultInstance\" | \"immediateFailedFuture\" | \"immediateFuture\" | \"interrupted\" | \"isInterrupted\" | \"java\" | \"mock\" | \"mockito\" | \"newBuilder\" | \"pullAndWarmup\" | \"recreateTestCollection\" | \"setConfig\" | \"setDistance\" | \"setParams\" | \"setSize\" | \"setVectorsConfig\" | \"thenReturn\" | \"thenThrow\" | \"times\" | \"verify\" | \"with\")?+ \"message\"? \"contains\"?+", + "mdl_score": 473418, + "imports": [ + "import org.junit.jupiter.api.Test", + "import org.mockito.Mockito.mock", + "import org.mockito.Mockito.times", + "import org.mockito.Mockito.verify", + "import org.testcontainers.containers.Container", + "import org.testcontainers.containers.GenericContainer", + "import com.google.common.util.concurrent.Futures", + "import com.google.common.util.concurrent.ListenableFuture", + "import io.qdrant.client.QdrantClient", + "import io.qdrant.client.grpc.Collections", + "import org.junit.jupiter.api.assertThrows", + "import org.mockito.ArgumentMatchers.any", + "import org.mockito.Mockito.`when`", + "import kotlin.test.assertEquals", + "import kotlin.test.assertTrue" + ], + "arg_patterns": {} + }, + { + "label": "(other)", + "method_count": 6, + "imports": [], + "arg_patterns": {} + } + ], + "total_methods": 1609 + }, + { + "language": ".js", + "conventions": [ + { + "label": "compose/patches", + "method_count": 17, + "imports": [], + "arg_patterns": { + "require": { + "occurrences": 24, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 24, + "args": 1, + "types": [ + "lit" + ] + } + ] + }, + "clearTimeout": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "setTimeout": { + "occurrences": 4, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 4, + "args": 2, + "types": [ + "other", + "other" + ] + } + ] + }, + "EmbeddingPollerImpl": { + "occurrences": 2, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 2, + "args": 0, + "types": [] + } + ] + }, + "Map": { + "occurrences": 3, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 3, + "args": 0, + "types": [] + } + ] + }, + "new": { + "occurrences": 3, + "arg_count": { + "min": 0, + "max": 1, + "common": 0 + }, + "patterns": [ + { + "count": 2, + "args": 0, + "types": [] + }, + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "getFiles": { + "occurrences": 2, + "arg_count": { + "min": 3, + "max": 3, + "common": 3 + }, + "patterns": [ + { + "count": 2, + "args": 3, + "types": [ + "other", + "lit", + "other" + ] + } + ] + }, + "filterFilesByAgentAccess": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "generateShortLivedToken": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "Set": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "tool": { + "occurrences": 2, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 2, + "args": 2, + "types": [ + "other", + "other" + ] + } + ] + } + } + }, + { + "label": "testing/steps", + "method_count": 68, + "algorithm": "CRX", + "grammar": "root ::= \"await\" \"waitForTimeout\"?", + "mdl_score": 2, + "imports": [ + "import { Given, When, Then } from '@cucumber/cucumber';", + "import { expect } from '@playwright/test';", + "import { BeforeAll, AfterAll, Before, After, setDefaultTimeout } from '@cucumber/cucumber';" + ], + "arg_patterns": { + "Given": { + "occurrences": 24, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 24, + "args": 2, + "types": [ + "lit", + "other" + ] + } + ] + }, + "Then": { + "occurrences": 40, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 40, + "args": 2, + "types": [ + "lit", + "other" + ] + } + ] + }, + "When": { + "occurrences": 54, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 54, + "args": 2, + "types": [ + "lit", + "other" + ] + } + ] + }, + "expect": { + "occurrences": 40, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 16, + "args": 1, + "types": [ + "var" + ] + }, + { + "count": 14, + "args": 1, + "types": [ + "other" + ] + }, + { + "count": 10, + "args": 1, + "types": [ + "call" + ] + } + ] + }, + "createAgent": { + "occurrences": 4, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 4, + "args": 2, + "types": [ + "lit", + "lit" + ] + } + ] + }, + "setDefaultTimeout": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "lit" + ] + } + ] + }, + "Before": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "After": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "fetch": { + "occurrences": 6, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 6, + "args": 1, + "types": [ + "lit" + ] + } + ] + } + } + }, + { + "label": "testing/support", + "method_count": 3, + "algorithm": "CRX", + "grammar": "root ::= (\"await\" | \"catch\" | \"chromium\" | \"close\" | \"launch\" | \"newContext\" | \"process\")?+ \"return\"? \"newPage\"? \"Date\"?+ \"now\"? \"toString\"?", + "mdl_score": 7112, + "imports": [ + "import { chromium } from '@playwright/test';", + "import { setWorldConstructor } from '@cucumber/cucumber';" + ], + "arg_patterns": { + "setWorldConstructor": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "var" + ] + } + ] + } + } + }, + { + "label": "(other)", + "method_count": 1, + "imports": [], + "arg_patterns": {} + } + ], + "total_methods": 89 + }, + { + "language": ".java", + "conventions": [], + "total_methods": 0 + }, + { + "language": ".go", + "conventions": [ + { + "label": "tools/setup-ui", + "method_count": 44, + "imports": [ + "import (" + ], + "arg_patterns": { + "initialModel": { + "occurrences": 2, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 2, + "args": 0, + "types": [] + } + ] + }, + "len": { + "occurrences": 42, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 30, + "args": 1, + "types": [ + "other" + ] + }, + { + "count": 12, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "append": { + "occurrences": 51, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 24, + "args": 2, + "types": [ + "var", + "call" + ] + }, + { + "count": 9, + "args": 2, + "types": [ + "var", + "var" + ] + }, + { + "count": 6, + "args": 2, + "types": [ + "other", + "other" + ] + }, + { + "count": 6, + "args": 2, + "types": [ + "var", + "other" + ] + }, + { + "count": 3, + "args": 2, + "types": [ + "other", + "var" + ] + } + ] + }, + "isSensitiveKey": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "sectionTitle": { + "occurrences": 10, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 10, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "shellEscape": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "newConfig": { + "occurrences": 2, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 2, + "args": 0, + "types": [] + } + ] + }, + "muted": { + "occurrences": 8, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 4, + "args": 1, + "types": [ + "other" + ] + }, + { + "count": 2, + "args": 1, + "types": [ + "expr" + ] + }, + { + "count": 2, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "float64": { + "occurrences": 4, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "expr" + ] + }, + { + "count": 2, + "args": 1, + "types": [ + "call" + ] + } + ] + }, + "sortedKeys": { + "occurrences": 4, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 4, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "writeExport": { + "occurrences": 8, + "arg_count": { + "min": 3, + "max": 3, + "common": 3 + }, + "patterns": [ + { + "count": 4, + "args": 3, + "types": [ + "var", + "other", + "call" + ] + }, + { + "count": 2, + "args": 3, + "types": [ + "var", + "var", + "other" + ] + }, + { + "count": 2, + "args": 3, + "types": [ + "var", + "other", + "other" + ] + } + ] + }, + "string": { + "occurrences": 4, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 4, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "runStart": { + "occurrences": 2, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 2, + "args": 0, + "types": [] + } + ] + }, + "buildSteps": { + "occurrences": 2, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 2, + "args": 0, + "types": [] + } + ] + }, + "errorStyle": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "summarizeConfig": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "expr" + ] + } + ] + }, + "accent": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "banner": { + "occurrences": 2, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 2, + "args": 0, + "types": [] + } + ] + }, + "removeString": { + "occurrences": 2, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 2, + "args": 2, + "types": [ + "other", + "other" + ] + } + ] + }, + "make": { + "occurrences": 9, + "arg_count": { + "min": 3, + "max": 3, + "common": 3 + }, + "patterns": [ + { + "count": 9, + "args": 3, + "types": [ + "other", + "other", + "call" + ] + } + ] + }, + "writeEnvFile": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "repoRoot": { + "occurrences": 2, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 2, + "args": 0, + "types": [] + } + ] + } + } + } + ], + "total_methods": 44 + } +] diff --git a/experiments/results/round21_loosened_filtering/ragsak.log b/experiments/results/round21_loosened_filtering/ragsak.log new file mode 100644 index 0000000..2d1b14f --- /dev/null +++ b/experiments/results/round21_loosened_filtering/ragsak.log @@ -0,0 +1,264 @@ +[ 0.0s] Scanning /home/tobi/Desktop/kesai/RAGSAK ... +[ 0.1s] Preprocessing 462 files across 12 workers ... +[ 2.9s] Preprocess: 1609 methods from 462 .kt files (2.8s) +[ 2.9s] Groups: 120 named, 6 ungrouped methods +[ 2.9s] ├ agents (5 methods) +[ 2.9s] ├ agents/capability/ports/src/main/kotlin/eu/corentic/springrag/agent/capability (5 methods) +[ 2.9s] ├ agents/capability/support/src/main/kotlin/eu/corentic/springrag/agent/capability/support (5 methods) +[ 2.9s] ├ agents/capability/support/src/test/kotlin/eu/corentic/springrag/agent/capability/support (6 methods) +[ 2.9s] ├ agents/examples/simple-rag/src/main/kotlin/eu/corentic/springrag/example/rag/simple (9 methods) +[ 2.9s] ├ agents/examples/simple-rag/src/test/kotlin/eu/corentic/springrag/example/rag/simple (14 methods) +[ 2.9s] ├ agents/rag/embabel/src/main/kotlin/eu/corentic/springrag/agent/rag/embabel (58 methods) +[ 2.9s] ├ agents/rag/embabel/src/main/kotlin/eu/corentic/springrag/agent/rag/embabel/librechat (13 methods) +[ 2.9s] ├ agents/rag/embabel/src/test/kotlin/eu/corentic/springrag/agent/rag/embabel (36 methods) +[ 2.9s] ├ agents/rag/embabel/src/test/kotlin/eu/corentic/springrag/testsupport (3 methods) +[ 2.9s] ├ agents/rag/ports/src/main/kotlin/eu/corentic/springrag/agent/rag (4 methods) +[ 2.9s] ├ agents/rag/ports/src/test/kotlin/eu/corentic/springrag/agent/rag (3 methods) +[ 2.9s] ├ agents/rag/ports/src/test/kotlin/eu/corentic/springrag/model (3 methods) +[ 2.9s] ├ agents/rag/support/src/main/kotlin/eu/corentic/springrag/agent/rag/support (13 methods) +[ 2.9s] ├ agents/rag/support/src/test/kotlin/eu/corentic/springrag/agent/rag/support (11 methods) +[ 2.9s] ├ agents/summarizer/embabel/src/main/kotlin/eu/corentic/springrag/agent/summarizer/embabel (13 methods) +[ 2.9s] ├ agents/summarizer/embabel/src/test/kotlin/eu/corentic/springrag/agent/summarizer/embabel (14 methods) +[ 2.9s] ├ agents/tooling/agent/src/main/kotlin/eu/corentic/springrag/agent/tooling/agent (4 methods) +[ 2.9s] ├ agents/tooling/embabel/src/main/kotlin/eu/corentic/springrag/agent/tooling/embabel (12 methods) +[ 2.9s] ├ agents/tooling/embabel/src/main/kotlin/eu/corentic/springrag/agent/tooling/embabel/recording (11 methods) +[ 2.9s] ├ agents/tooling/embabel/src/test/kotlin/eu/corentic/springrag/agent/tooling/embabel (6 methods) +[ 2.9s] ├ agents/wikipedia/adapters/src/main/kotlin/eu/corentic/springrag/agent/wikipedia (4 methods) +[ 2.9s] ├ agents/wikipedia/adapters/src/test/kotlin/eu/corentic/springrag/agent/wikipedia (8 methods) +[ 2.9s] ├ agents/wikipedia/static/src/main/kotlin/eu/corentic/springrag/agent/wikipedia (3 methods) +[ 2.9s] ├ agents/wikipedia/static/src/test/kotlin/eu/corentic/springrag/agent/wikipedia (3 methods) +[ 2.9s] ├ app/src (6 methods) +[ 2.9s] ├ app/src/e2eTest/kotlin/eu/corentic/springrag/e2e/cucumber/steps (17 methods) +[ 2.9s] ├ app/src/integrationTest/kotlin/eu/corentic/springrag/config (15 methods) +[ 2.9s] ├ app/src/integrationTest/kotlin/eu/corentic/springrag/controller (5 methods) +[ 2.9s] ├ app/src/integrationTest/kotlin/eu/corentic/springrag/service (3 methods) +[ 2.9s] ├ app/src/systemTest/kotlin/eu/corentic/springrag/config (14 methods) +[ 2.9s] ├ app/src/systemTest/kotlin/eu/corentic/springrag/system (46 methods) +[ 2.9s] ├ app/src/test/kotlin/eu/corentic/springrag/architecture (87 methods) +[ 2.9s] ├ app/src/test/kotlin/eu/corentic/springrag/config (3 methods) +[ 2.9s] ├ buildSrc/src/main/kotlin (8 methods) +[ 2.9s] ├ buildSrc/src/test/kotlin (5 methods) +[ 2.9s] ├ entrypoints/agent-mcp-server/src/main/kotlin/eu/corentic/springrag/mcp (3 methods) +[ 2.9s] ├ entrypoints/agent-mcp-server/src/test/kotlin/eu/corentic/springrag/mcp (3 methods) +[ 2.9s] ├ entrypoints/web/src/main/kotlin/eu/corentic/springrag/config (3 methods) +[ 2.9s] ├ entrypoints/web/src/main/kotlin/eu/corentic/springrag/controller (58 methods) +[ 2.9s] ├ entrypoints/web/src/main/kotlin/eu/corentic/springrag/controller/librechat (29 methods) +[ 2.9s] ├ entrypoints/web/src/main/kotlin/eu/corentic/springrag/controller/web (6 methods) +[ 2.9s] ├ entrypoints/web/src/test/kotlin/eu/corentic/springrag/config (4 methods) +[ 2.9s] ├ entrypoints/web/src/test/kotlin/eu/corentic/springrag/controller (83 methods) +[ 2.9s] ├ entrypoints/web/src/test/kotlin/eu/corentic/springrag/controller/auth (5 methods) +[ 2.9s] ├ entrypoints/web/src/test/kotlin/eu/corentic/springrag/controller/librechat (46 methods) +[ 2.9s] ├ entrypoints/web/src/test/kotlin/eu/corentic/springrag/controller/web (10 methods) +[ 2.9s] ├ infrastructure/adapters (3 methods) +[ 2.9s] ├ infrastructure/adapters/ai-provider/src/main/kotlin/eu/corentic/springrag/config (4 methods) +[ 2.9s] ├ infrastructure/adapters/ai-provider/src/main/kotlin/eu/corentic/springrag/health (3 methods) +[ 2.9s] ├ infrastructure/adapters/ai-provider/src/test/kotlin/eu/corentic/springrag/config (6 methods) +[ 2.9s] ├ infrastructure/adapters/ai-provider/src/test/kotlin/eu/corentic/springrag/health (4 methods) +[ 2.9s] ├ infrastructure/adapters/ai-provider/src/test/kotlin/eu/corentic/springrag/service/embedding (5 methods) +[ 2.9s] ├ infrastructure/adapters/ai-provider/src/test/kotlin/eu/corentic/springrag/testsupport (3 methods) +[ 2.9s] ├ infrastructure/adapters/chat-memory/src/test/kotlin/eu/corentic/springrag/config (6 methods) +[ 2.9s] ├ infrastructure/adapters/doc-parser/src (6 methods) +[ 2.9s] ├ infrastructure/adapters/doc-parser/src/main/kotlin/eu/corentic/springrag/config (3 methods) +[ 2.9s] ├ infrastructure/adapters/doc-parser/src/main/kotlin/eu/corentic/springrag/service/docling (21 methods) +[ 2.9s] ├ infrastructure/adapters/doc-parser/src/systemTest/kotlin/eu/corentic/springrag/config (6 methods) +[ 2.9s] ├ infrastructure/adapters/doc-parser/src/test/kotlin/eu/corentic/springrag/config (12 methods) +[ 2.9s] ├ infrastructure/adapters/doc-parser/src/test/kotlin/eu/corentic/springrag/health (3 methods) +[ 2.9s] ├ infrastructure/adapters/doc-parser/src/test/kotlin/eu/corentic/springrag/service/docling (10 methods) +[ 2.9s] ├ infrastructure/adapters/doc-parser/src/test/kotlin/eu/corentic/springrag/testsupport (3 methods) +[ 2.9s] ├ infrastructure/adapters/search/src/main/kotlin/eu/corentic/springrag/health (7 methods) +[ 2.9s] ├ infrastructure/adapters/search/src/main/kotlin/eu/corentic/springrag/model/graph (9 methods) +[ 2.9s] ├ infrastructure/adapters/search/src/main/kotlin/eu/corentic/springrag/repository (24 methods) +[ 2.9s] ├ infrastructure/adapters/search/src/main/kotlin/eu/corentic/springrag/service/agent (3 methods) +[ 2.9s] ├ infrastructure/adapters/search/src/main/kotlin/eu/corentic/springrag/service/cleanup (4 methods) +[ 2.9s] ├ infrastructure/adapters/search/src/main/kotlin/eu/corentic/springrag/service/graph (12 methods) +[ 2.9s] ├ infrastructure/adapters/search/src/main/kotlin/eu/corentic/springrag/service/port/adapter (45 methods) +[ 2.9s] ├ infrastructure/adapters/search/src/main/kotlin/eu/corentic/springrag/service/storage (40 methods) +[ 2.9s] ├ infrastructure/adapters/search/src/systemTest/kotlin/eu/corentic/springrag/config (4 methods) +[ 2.9s] ├ infrastructure/adapters/search/src/systemTest/kotlin/eu/corentic/springrag/repository/graph (23 methods) +[ 2.9s] ├ infrastructure/adapters/search/src/systemTest/kotlin/eu/corentic/springrag/system (6 methods) +[ 2.9s] ├ infrastructure/adapters/search/src/test/kotlin/eu/corentic/springrag/config (3 methods) +[ 2.9s] ├ infrastructure/adapters/search/src/test/kotlin/eu/corentic/springrag/health (6 methods) +[ 2.9s] ├ infrastructure/adapters/search/src/test/kotlin/eu/corentic/springrag/model/graph (7 methods) +[ 2.9s] ├ infrastructure/adapters/search/src/test/kotlin/eu/corentic/springrag/repository (19 methods) +[ 2.9s] ├ infrastructure/adapters/search/src/test/kotlin/eu/corentic/springrag/service/cleanup (4 methods) +[ 2.9s] ├ infrastructure/adapters/search/src/test/kotlin/eu/corentic/springrag/service/graph (30 methods) +[ 2.9s] ├ infrastructure/adapters/search/src/test/kotlin/eu/corentic/springrag/service/port/adapter (28 methods) +[ 2.9s] ├ infrastructure/adapters/search/src/test/kotlin/eu/corentic/springrag/service/storage (3 methods) +[ 2.9s] ├ infrastructure/adapters/search/src/test/kotlin/eu/corentic/springrag/testsupport (3 methods) +[ 2.9s] ├ modules/chat/src/integrationTest/kotlin/eu/corentic/springrag/service/chat (4 methods) +[ 2.9s] ├ modules/chat/src/main/kotlin/eu/corentic/springrag/service/chat (6 methods) +[ 2.9s] ├ modules/chat/src/systemTest/kotlin/eu/corentic/springrag/config (15 methods) +[ 2.9s] ├ modules/chat/src/systemTest/kotlin/eu/corentic/springrag/system (4 methods) +[ 2.9s] ├ modules/chat/src/test/kotlin/eu/corentic/springrag/service/chat (8 methods) +[ 2.9s] ├ modules/common/src/main/kotlin/eu/corentic/springrag/common (7 methods) +[ 2.9s] ├ modules/common/src/main/kotlin/eu/corentic/springrag/common/ids (18 methods) +[ 2.9s] ├ modules/common/src/test/kotlin/eu/corentic/springrag/common/ids (8 methods) +[ 2.9s] ├ modules/ingestion/src/integrationTest/kotlin/eu/corentic/springrag/service/job (34 methods) +[ 2.9s] ├ modules/ingestion/src/main/kotlin/eu/corentic/springrag/batch (16 methods) +[ 2.9s] ├ modules/ingestion/src/main/kotlin/eu/corentic/springrag/batch/listener (16 methods) +[ 2.9s] ├ modules/ingestion/src/main/kotlin/eu/corentic/springrag/batch/model (4 methods) +[ 2.9s] ├ modules/ingestion/src/main/kotlin/eu/corentic/springrag/batch/partition (4 methods) +[ 2.9s] ├ modules/ingestion/src/main/kotlin/eu/corentic/springrag/batch/reader (4 methods) +[ 2.9s] ├ modules/ingestion/src/main/kotlin/eu/corentic/springrag/batch/writer (3 methods) +[ 2.9s] ├ modules/ingestion/src/main/kotlin/eu/corentic/springrag/config (26 methods) +[ 2.9s] ├ modules/ingestion/src/main/kotlin/eu/corentic/springrag/service/chunk (18 methods) +[ 2.9s] ├ modules/ingestion/src/main/kotlin/eu/corentic/springrag/service/document (3 methods) +[ 2.9s] ├ modules/ingestion/src/main/kotlin/eu/corentic/springrag/service/job (62 methods) +[ 2.9s] ├ modules/ingestion/src/test/kotlin/eu/corentic/springrag/batch (17 methods) +[ 2.9s] ├ modules/ingestion/src/test/kotlin/eu/corentic/springrag/batch/listener (34 methods) +[ 2.9s] ├ modules/ingestion/src/test/kotlin/eu/corentic/springrag/batch/model (8 methods) +[ 2.9s] ├ modules/ingestion/src/test/kotlin/eu/corentic/springrag/batch/partition (7 methods) +[ 2.9s] ├ modules/ingestion/src/test/kotlin/eu/corentic/springrag/batch/processor (5 methods) +[ 2.9s] ├ modules/ingestion/src/test/kotlin/eu/corentic/springrag/batch/reader (12 methods) +[ 2.9s] ├ modules/ingestion/src/test/kotlin/eu/corentic/springrag/batch/writer (14 methods) +[ 2.9s] ├ modules/ingestion/src/test/kotlin/eu/corentic/springrag/service/chunk (8 methods) +[ 2.9s] ├ modules/ingestion/src/test/kotlin/eu/corentic/springrag/service/job (49 methods) +[ 2.9s] ├ modules/knowledgebase/ports/src/main/kotlin/eu/corentic/springrag/model (5 methods) +[ 2.9s] ├ modules/knowledgebase/src/main/kotlin/eu/corentic/springrag/service/knowledgebase (11 methods) +[ 2.9s] ├ modules/knowledgebase/src/test/kotlin/eu/corentic/springrag/service/knowledgebase (16 methods) +[ 2.9s] ├ modules/security/src/main/kotlin/eu/corentic/springrag/security/config (5 methods) +[ 2.9s] ├ modules/security/src/main/kotlin/eu/corentic/springrag/security/service (10 methods) +[ 2.9s] ├ modules/security/src/test/kotlin/eu/corentic/springrag/security/config (6 methods) +[ 2.9s] ├ modules/security/src/test/kotlin/eu/corentic/springrag/security/service (15 methods) +[ 2.9s] ├ platform/test-support/src/main/kotlin/eu/corentic/springrag/testcontainers (13 methods) +[ 2.9s] ├ platform/test-support/src/test/kotlin/eu/corentic/springrag/testcontainers (5 methods) +[ 2.9s] └ (other) (6 methods) +[ 2.9s] Inferring 120 groups across 12 workers ... +[ 3.1s] [1/120] agents/rag/embabel/src/test/kotlin/eu/corentic/springrag/testsupport (3 methods) done (0.2s) +[ 3.1s] [2/120] agents/rag/ports/src/test/kotlin/eu/corentic/springrag/agent/rag (3 methods) done (0.2s) +[ 3.2s] [3/120] agents/rag/embabel/src/main/kotlin/eu/corentic/springrag/agent/rag/embabel/librechat (13 methods) done (0.3s) +[ 3.2s] [4/120] agents/capability/support/src/test/kotlin/eu/corentic/springrag/agent/capability/support (6 methods) done (0.3s) +[ 3.2s] [5/120] agents/rag/ports/src/main/kotlin/eu/corentic/springrag/agent/rag (4 methods) done (0.3s) +[ 3.2s] [6/120] agents/capability/ports/src/main/kotlin/eu/corentic/springrag/agent/capability (5 methods) done (0.3s) +[ 3.2s] [7/120] agents/capability/support/src/main/kotlin/eu/corentic/springrag/agent/capability/support (5 methods) done (0.3s) +[ 3.2s] [8/120] agents/rag/ports/src/test/kotlin/eu/corentic/springrag/model (3 methods) done (0.3s) +[ 3.2s] [9/120] agents/examples/simple-rag/src/main/kotlin/eu/corentic/springrag/example/rag/simple (9 methods) done (0.3s) +[ 3.3s] [10/120] agents (5 methods) done (0.3s) +[ 3.3s] [11/120] agents/tooling/agent/src/main/kotlin/eu/corentic/springrag/agent/tooling/agent (4 methods) done (0.4s) +[ 3.3s] [12/120] agents/examples/simple-rag/src/test/kotlin/eu/corentic/springrag/example/rag/simple (14 methods) done (0.4s) +[ 3.3s] [13/120] agents/rag/support/src/main/kotlin/eu/corentic/springrag/agent/rag/support (13 methods) done (0.4s) +[ 3.4s] [14/120] agents/wikipedia/adapters/src/main/kotlin/eu/corentic/springrag/agent/wikipedia (4 methods) done (0.5s) +[ 3.4s] [15/120] agents/wikipedia/static/src/main/kotlin/eu/corentic/springrag/agent/wikipedia (3 methods) done (0.5s) +[ 3.4s] [16/120] agents/tooling/embabel/src/main/kotlin/eu/corentic/springrag/agent/tooling/embabel/recording (11 methods) done (0.5s) +[ 3.4s] [17/120] agents/wikipedia/static/src/test/kotlin/eu/corentic/springrag/agent/wikipedia (3 methods) done (0.5s) +[ 3.4s] [18/120] agents/summarizer/embabel/src/main/kotlin/eu/corentic/springrag/agent/summarizer/embabel (13 methods) done (0.5s) +[ 3.5s] [19/120] agents/rag/support/src/test/kotlin/eu/corentic/springrag/agent/rag/support (11 methods) done (0.5s) +[ 3.5s] [20/120] agents/wikipedia/adapters/src/test/kotlin/eu/corentic/springrag/agent/wikipedia (8 methods) done (0.5s) +[ 3.5s] [21/120] agents/rag/embabel/src/main/kotlin/eu/corentic/springrag/agent/rag/embabel (58 methods) done (0.6s) +[ 3.5s] [22/120] agents/tooling/embabel/src/test/kotlin/eu/corentic/springrag/agent/tooling/embabel (6 methods) done (0.6s) +[ 3.5s] [23/120] app/src/integrationTest/kotlin/eu/corentic/springrag/service (3 methods) done (0.6s) +[ 3.6s] [24/120] agents/tooling/embabel/src/main/kotlin/eu/corentic/springrag/agent/tooling/embabel (12 methods) done (0.6s) +[ 3.6s] [25/120] agents/rag/embabel/src/test/kotlin/eu/corentic/springrag/agent/rag/embabel (36 methods) done (0.7s) +[ 3.6s] [26/120] buildSrc/src/main/kotlin (8 methods) done (0.7s) +[ 3.6s] [27/120] app/src/test/kotlin/eu/corentic/springrag/config (3 methods) done (0.7s) +[ 3.6s] [28/120] app/src/integrationTest/kotlin/eu/corentic/springrag/config (15 methods) done (0.7s) +[ 3.6s] [29/120] agents/summarizer/embabel/src/test/kotlin/eu/corentic/springrag/agent/summarizer/embabel (14 methods) done (0.7s) +[ 3.6s] [30/120] app/src/integrationTest/kotlin/eu/corentic/springrag/controller (5 methods) done (0.7s) +[ 3.7s] [31/120] app/src/systemTest/kotlin/eu/corentic/springrag/config (14 methods) done (0.7s) +[ 3.7s] [32/120] app/src (6 methods) done (0.8s) +[ 3.7s] [33/120] app/src/test/kotlin/eu/corentic/springrag/architecture (87 methods) done (0.8s) +[ 3.7s] [34/120] buildSrc/src/test/kotlin (5 methods) done (0.8s) +[ 3.8s] [35/120] app/src/e2eTest/kotlin/eu/corentic/springrag/e2e/cucumber/steps (17 methods) done (0.8s) +[ 3.8s] [36/120] entrypoints/web/src/main/kotlin/eu/corentic/springrag/controller/librechat (29 methods) done (0.9s) +[ 3.8s] [37/120] entrypoints/web/src/test/kotlin/eu/corentic/springrag/controller/auth (5 methods) done (0.9s) +[ 3.8s] [38/120] entrypoints/web/src/test/kotlin/eu/corentic/springrag/config (4 methods) done (0.9s) +[ 3.8s] [39/120] entrypoints/web/src/main/kotlin/eu/corentic/springrag/controller/web (6 methods) done (0.9s) +[ 3.8s] [40/120] entrypoints/agent-mcp-server/src/test/kotlin/eu/corentic/springrag/mcp (3 methods) done (0.9s) +[ 3.8s] [41/120] app/src/systemTest/kotlin/eu/corentic/springrag/system (46 methods) done (0.9s) +[ 3.8s] [42/120] entrypoints/web/src/main/kotlin/eu/corentic/springrag/config (3 methods) done (0.9s) +[ 3.9s] [43/120] entrypoints/agent-mcp-server/src/main/kotlin/eu/corentic/springrag/mcp (3 methods) done (1.0s) +[ 3.9s] [44/120] entrypoints/web/src/test/kotlin/eu/corentic/springrag/controller/librechat (46 methods) done (1.0s) +[ 3.9s] [45/120] infrastructure/adapters/ai-provider/src/main/kotlin/eu/corentic/springrag/health (3 methods) done (1.0s) +[ 3.9s] [46/120] entrypoints/web/src/test/kotlin/eu/corentic/springrag/controller/web (10 methods) done (1.0s) +[ 3.9s] [47/120] infrastructure/adapters/ai-provider/src/test/kotlin/eu/corentic/springrag/health (4 methods) done (1.0s) +[ 3.9s] [48/120] infrastructure/adapters/ai-provider/src/test/kotlin/eu/corentic/springrag/service/embedding (5 methods) done (1.0s) +[ 3.9s] [49/120] infrastructure/adapters/ai-provider/src/test/kotlin/eu/corentic/springrag/testsupport (3 methods) done (1.0s) +[ 3.9s] [50/120] infrastructure/adapters/chat-memory/src/test/kotlin/eu/corentic/springrag/config (6 methods) done (1.0s) +[ 4.0s] [51/120] infrastructure/adapters/ai-provider/src/test/kotlin/eu/corentic/springrag/config (6 methods) done (1.0s) +[ 4.0s] [52/120] infrastructure/adapters (3 methods) done (1.1s) +[ 4.0s] [53/120] infrastructure/adapters/doc-parser/src/test/kotlin/eu/corentic/springrag/health (3 methods) done (1.1s) +[ 4.0s] [54/120] infrastructure/adapters/doc-parser/src/test/kotlin/eu/corentic/springrag/testsupport (3 methods) done (1.1s) +[ 4.1s] [55/120] infrastructure/adapters/doc-parser/src/main/kotlin/eu/corentic/springrag/config (3 methods) done (1.2s) +[ 4.1s] [56/120] infrastructure/adapters/doc-parser/src/systemTest/kotlin/eu/corentic/springrag/config (6 methods) done (1.2s) +[ 4.1s] [57/120] infrastructure/adapters/doc-parser/src/test/kotlin/eu/corentic/springrag/service/docling (10 methods) done (1.2s) +[ 4.1s] [58/120] infrastructure/adapters/search/src/main/kotlin/eu/corentic/springrag/health (7 methods) done (1.2s) +[ 4.1s] [59/120] infrastructure/adapters/doc-parser/src/main/kotlin/eu/corentic/springrag/service/docling (21 methods) done (1.2s) +[ 4.2s] [60/120] infrastructure/adapters/search/src/main/kotlin/eu/corentic/springrag/service/agent (3 methods) done (1.2s) +[ 4.2s] [61/120] infrastructure/adapters/doc-parser/src/test/kotlin/eu/corentic/springrag/config (12 methods) done (1.2s) +[ 4.2s] [62/120] infrastructure/adapters/search/src/main/kotlin/eu/corentic/springrag/service/graph (12 methods) done (1.3s) +[ 4.2s] [63/120] entrypoints/web/src/main/kotlin/eu/corentic/springrag/controller (58 methods) done (1.3s) +[ 4.2s] [64/120] infrastructure/adapters/search/src/main/kotlin/eu/corentic/springrag/repository (24 methods) done (1.3s) +[ 4.2s] [65/120] infrastructure/adapters/ai-provider/src/main/kotlin/eu/corentic/springrag/config (4 methods) done (1.3s) +[ 4.2s] [66/120] infrastructure/adapters/doc-parser/src (6 methods) done (1.3s) +[ 4.2s] [67/120] infrastructure/adapters/search/src/systemTest/kotlin/eu/corentic/springrag/config (4 methods) done (1.3s) +[ 4.2s] [68/120] entrypoints/web/src/test/kotlin/eu/corentic/springrag/controller (83 methods) done (1.3s) +[ 4.2s] [69/120] infrastructure/adapters/search/src/systemTest/kotlin/eu/corentic/springrag/system (6 methods) done (1.3s) +[ 4.3s] [70/120] infrastructure/adapters/search/src/main/kotlin/eu/corentic/springrag/model/graph (9 methods) done (1.4s) +[ 4.3s] [71/120] infrastructure/adapters/search/src/test/kotlin/eu/corentic/springrag/repository (19 methods) done (1.4s) +[ 4.3s] [72/120] infrastructure/adapters/search/src/test/kotlin/eu/corentic/springrag/service/graph (30 methods) done (1.4s) +[ 4.3s] [73/120] infrastructure/adapters/search/src/test/kotlin/eu/corentic/springrag/config (3 methods) done (1.4s) +[ 4.3s] [74/120] infrastructure/adapters/search/src/test/kotlin/eu/corentic/springrag/service/storage (3 methods) done (1.4s) +[ 4.3s] [75/120] infrastructure/adapters/search/src/test/kotlin/eu/corentic/springrag/health (6 methods) done (1.4s) +[ 4.3s] [76/120] infrastructure/adapters/search/src/main/kotlin/eu/corentic/springrag/service/cleanup (4 methods) done (1.4s) +[ 4.4s] [77/120] infrastructure/adapters/search/src/main/kotlin/eu/corentic/springrag/service/storage (40 methods) done (1.4s) +[ 4.4s] [78/120] infrastructure/adapters/search/src/test/kotlin/eu/corentic/springrag/testsupport (3 methods) done (1.5s) +[ 4.4s] [79/120] modules/chat/src/main/kotlin/eu/corentic/springrag/service/chat (6 methods) done (1.5s) +[ 4.4s] [80/120] infrastructure/adapters/search/src/systemTest/kotlin/eu/corentic/springrag/repository/graph (23 methods) done (1.5s) +[ 4.4s] [81/120] modules/common/src/main/kotlin/eu/corentic/springrag/common/ids (18 methods) done (1.5s) +[ 4.4s] [82/120] modules/chat/src/integrationTest/kotlin/eu/corentic/springrag/service/chat (4 methods) done (1.5s) +[ 4.5s] [83/120] modules/common/src/main/kotlin/eu/corentic/springrag/common (7 methods) done (1.5s) +[ 4.5s] [84/120] modules/common/src/test/kotlin/eu/corentic/springrag/common/ids (8 methods) done (1.5s) +[ 4.5s] [85/120] modules/chat/src/systemTest/kotlin/eu/corentic/springrag/system (4 methods) done (1.6s) +[ 4.5s] [86/120] modules/chat/src/test/kotlin/eu/corentic/springrag/service/chat (8 methods) done (1.6s) +[ 4.5s] [87/120] infrastructure/adapters/search/src/test/kotlin/eu/corentic/springrag/model/graph (7 methods) done (1.6s) +[ 4.5s] [88/120] infrastructure/adapters/search/src/test/kotlin/eu/corentic/springrag/service/cleanup (4 methods) done (1.6s) +[ 4.6s] [89/120] modules/ingestion/src/main/kotlin/eu/corentic/springrag/batch (16 methods) done (1.6s) +[ 4.6s] [90/120] modules/chat/src/systemTest/kotlin/eu/corentic/springrag/config (15 methods) done (1.7s) +[ 4.6s] [91/120] modules/ingestion/src/main/kotlin/eu/corentic/springrag/service/document (3 methods) done (1.7s) +[ 4.7s] [92/120] modules/ingestion/src/main/kotlin/eu/corentic/springrag/batch/reader (4 methods) done (1.8s) +[ 4.7s] [93/120] modules/ingestion/src/main/kotlin/eu/corentic/springrag/batch/model (4 methods) done (1.8s) +[ 4.7s] [94/120] modules/ingestion/src/main/kotlin/eu/corentic/springrag/config (26 methods) done (1.8s) +[ 4.7s] [95/120] modules/ingestion/src/main/kotlin/eu/corentic/springrag/batch/writer (3 methods) done (1.8s) +[ 4.7s] [96/120] infrastructure/adapters/search/src/test/kotlin/eu/corentic/springrag/service/port/adapter (28 methods) done (1.8s) +[ 4.8s] [97/120] modules/ingestion/src/main/kotlin/eu/corentic/springrag/service/chunk (18 methods) done (1.9s) +[ 4.8s] [98/120] modules/ingestion/src/test/kotlin/eu/corentic/springrag/batch/partition (7 methods) done (1.9s) +[ 4.8s] [99/120] modules/ingestion/src/test/kotlin/eu/corentic/springrag/batch/reader (12 methods) done (1.9s) +[ 4.8s] [100/120] modules/ingestion/src/integrationTest/kotlin/eu/corentic/springrag/service/job (34 methods) done (1.9s) +[ 4.8s] [101/120] modules/ingestion/src/test/kotlin/eu/corentic/springrag/batch/model (8 methods) done (1.9s) +[ 4.8s] [102/120] modules/ingestion/src/main/kotlin/eu/corentic/springrag/batch/listener (16 methods) done (1.9s) +[ 4.8s] [103/120] modules/ingestion/src/test/kotlin/eu/corentic/springrag/batch/processor (5 methods) done (1.9s) +[ 4.9s] [104/120] infrastructure/adapters/search/src/main/kotlin/eu/corentic/springrag/service/port/adapter (45 methods) done (1.9s) +[ 4.9s] [105/120] modules/ingestion/src/test/kotlin/eu/corentic/springrag/service/chunk (8 methods) done (1.9s) +[ 4.9s] [106/120] modules/ingestion/src/test/kotlin/eu/corentic/springrag/batch (17 methods) done (2.0s) +[ 4.9s] [107/120] modules/ingestion/src/main/kotlin/eu/corentic/springrag/batch/partition (4 methods) done (2.0s) +[ 4.9s] [108/120] modules/knowledgebase/ports/src/main/kotlin/eu/corentic/springrag/model (5 methods) done (2.0s) +[ 5.0s] [109/120] modules/ingestion/src/test/kotlin/eu/corentic/springrag/batch/writer (14 methods) done (2.1s) +[ 5.0s] [110/120] modules/security/src/test/kotlin/eu/corentic/springrag/security/service (15 methods) done (2.1s) +[ 5.0s] [111/120] modules/knowledgebase/src/test/kotlin/eu/corentic/springrag/service/knowledgebase (16 methods) done (2.1s) +[ 5.0s] [112/120] modules/ingestion/src/test/kotlin/eu/corentic/springrag/batch/listener (34 methods) done (2.1s) +[ 5.1s] [113/120] modules/security/src/main/kotlin/eu/corentic/springrag/security/service (10 methods) done (2.2s) +[ 5.1s] [114/120] modules/knowledgebase/src/main/kotlin/eu/corentic/springrag/service/knowledgebase (11 methods) done (2.2s) +[ 5.2s] [115/120] modules/security/src/test/kotlin/eu/corentic/springrag/security/config (6 methods) done (2.2s) +[ 5.2s] [116/120] platform/test-support/src/test/kotlin/eu/corentic/springrag/testcontainers (5 methods) done (2.2s) +[ 5.2s] [117/120] platform/test-support/src/main/kotlin/eu/corentic/springrag/testcontainers (13 methods) done (2.3s) +[ 5.2s] [118/120] modules/security/src/main/kotlin/eu/corentic/springrag/security/config (5 methods) done (2.3s) +[ 5.5s] [119/120] modules/ingestion/src/main/kotlin/eu/corentic/springrag/service/job (62 methods) done (2.6s) +[ 5.5s] [120/120] modules/ingestion/src/test/kotlin/eu/corentic/springrag/service/job (49 methods) done (2.6s) +[ 5.5s] Preprocessing 17 files across 12 workers ... +[ 5.8s] Preprocess: 89 methods from 17 .js files (0.3s) +[ 5.8s] Groups: 3 named, 1 ungrouped methods +[ 5.8s] ├ compose/patches (17 methods) +[ 5.8s] ├ testing/steps (68 methods) +[ 5.8s] ├ testing/support (3 methods) +[ 5.8s] └ (other) (1 methods) +[ 5.8s] Inferring 3 groups across 12 workers ... +[ 5.9s] [1/3] testing/support (3 methods) done (0.2s) +[ 5.9s] [2/3] compose/patches (17 methods) done (0.2s) +[ 6.0s] [3/3] testing/steps (68 methods) done (0.2s) +[ 6.0s] Preprocessing 5 files across 12 workers ... +[ 6.1s] Preprocessing 1 files across 12 workers ... +[ 6.2s] Preprocess: 44 methods from 1 .go files (0.1s) +[ 6.2s] Groups: 1 named, 0 ungrouped methods +[ 6.2s] ├ tools/setup-ui (44 methods) +[ 6.2s] Inferring 1 groups across 12 workers ... +[ 6.3s] [1/1] tools/setup-ui (44 methods) done (0.1s) diff --git a/experiments/results/round21_loosened_filtering/zod.json b/experiments/results/round21_loosened_filtering/zod.json new file mode 100644 index 0000000..1e27bd9 --- /dev/null +++ b/experiments/results/round21_loosened_filtering/zod.json @@ -0,0 +1,13330 @@ +[ + { + "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" + ] + } + ] + }, + "makeSchema": { + "occurrences": 18, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 16, + "args": 1, + "types": [ + "other" + ] + }, + { + "count": 2, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "makeData": { + "occurrences": 22, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 22, + "args": 2, + "types": [ + "lit", + "other" + ] + } + ] + }, + "randomString": { + "occurrences": 54, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 54, + "args": 1, + "types": [ + "lit" + ] + } + ] + }, + "randomPick": { + "occurrences": 4, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 4, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "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" + ] + } + ] + }, + "lazyWithScopeProp": { + "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" + ] + } + ] + }, + "nullChainCheckSymbol": { + "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" + ] + } + ] + }, + "falsyThenCheckSymbol": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "instanceofClass": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "instanceofObjectThenCheckTag": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "instanceofObjectThenCheckSymbol": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "keyin": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "instanceofPromise": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "falsyThenCheckTag": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "typeofThenCheckTag": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "ZodFailure": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "lit" + ] + } + ] + }, + "nullChainCheckTag": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "new": { + "occurrences": 23, + "arg_count": { + "min": 0, + "max": 2, + "common": 1 + }, + "patterns": [ + { + "count": 8, + "args": 1, + "types": [ + "lit" + ] + }, + { + "count": 5, + "args": 1, + "types": [ + "other" + ] + }, + { + "count": 3, + "args": 2, + "types": [ + "other", + "other" + ] + }, + { + "count": 3, + "args": 2, + "types": [ + "var", + "expr" + ] + }, + { + "count": 2, + "args": 0, + "types": [] + } + ] + }, + "Proxy": { + "occurrences": 6, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 6, + "args": 2, + "types": [ + "other", + "other" + ] + } + ] + }, + "Date": { + "occurrences": 6, + "arg_count": { + "min": 0, + "max": 1, + "common": 0 + }, + "patterns": [ + { + "count": 3, + "args": 0, + "types": [] + }, + { + "count": 3, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "toFixed": { + "occurrences": 16, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 16, + "args": 1, + "types": [ + "expr" + ] + } + ] + }, + "factory": { + "occurrences": 6, + "arg_count": { + "min": 0, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 4, + "args": 1, + "types": [ + "other" + ] + }, + { + "count": 2, + "args": 0, + "types": [] + } + ] + }, + "Error": { + "occurrences": 18, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 15, + "args": 1, + "types": [ + "lit" + ] + }, + { + "count": 3, + "args": 1, + "types": [ + "template" + ] + } + ] + }, + "ZodFail": { + "occurrences": 4, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 4, + "args": 1, + "types": [ + "lit" + ] + } + ] + }, + "Set": { + "occurrences": 6, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 6, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "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" + ] + } + ] + }, + "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": [] + } + ] + }, + "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": [ + "other" + ] + } + ] + }, + "Table": { + "occurrences": 4, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 4, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "formatNumber": { + "occurrences": 10, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 6, + "args": 1, + "types": [ + "other" + ] + }, + { + "count": 4, + "args": 1, + "types": [ + "expr" + ] + } + ] + }, + "String": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "Mitata": { + "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" + ] + } + ] + }, + "BenchmarkJS": { + "occurrences": 2, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 2, + "args": 2, + "types": [ + "var", + "expr" + ] + } + ] + }, + "makeSuccess": { + "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" + ] + } + ] + }, + "makeFail": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "var" + ] + } + ] + } + } + }, + { + "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": { + "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" + ] + } + ] + }, + "join": { + "occurrences": 2, + "arg_count": { + "min": 3, + "max": 3, + "common": 3 + }, + "patterns": [ + { + "count": 2, + "args": 3, + "types": [ + "call", + "lit", + "lit" + ] + } + ] + }, + "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": [ + "var" + ] + }, + { + "count": 3, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "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": { + "getEditDistance": { + "occurrences": 2, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 2, + "args": 2, + "types": [ + "var", + "var" + ] + } + ] + }, + "fileURLToPath": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "dirname": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "call" + ] + } + ] + }, + "isLikelyTabValue": { + "occurrences": 6, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 4, + "args": 2, + "types": [ + "other", + "lit" + ] + }, + { + "count": 2, + "args": 2, + "types": [ + "other", + "var" + ] + } + ] + }, + "resolve": { + "occurrences": 2, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 2, + "args": 2, + "types": [ + "call", + "lit" + ] + } + ] + }, + "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" + ] + } + ] + }, + "stripMdxCommentSegments": { + "occurrences": 2, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 2, + "args": 2, + "types": [ + "var", + "var" + ] + } + ] + }, + "readCodeFence": { + "occurrences": 2, + "arg_count": { + "min": 3, + "max": 3, + "common": 3 + }, + "patterns": [ + { + "count": 2, + "args": 3, + "types": [ + "var", + "var", + "other" + ] + } + ] + }, + "compareCodeFences": { + "occurrences": 2, + "arg_count": { + "min": 4, + "max": 4, + "common": 4 + }, + "patterns": [ + { + "count": 2, + "args": 4, + "types": [ + "var", + "var", + "var", + "var" + ] + } + ] + }, + "getTabValue": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "readFile": { + "occurrences": 2, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 2, + "args": 2, + "types": [ + "var", + "lit" + ] + } + ] + }, + "stripMdxComments": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "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" + ] + } + ] + } + } + }, + { + "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": { + "Set": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "call" + ] + } + ] + }, + "fetch": { + "occurrences": 2, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 2, + "args": 2, + "types": [ + "var", + "other" + ] + } + ] + }, + "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" + ] + } + ] + }, + "new": { + "occurrences": 5, + "arg_count": { + "min": 0, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "lit" + ] + }, + { + "count": 1, + "args": 0, + "types": [] + }, + { + "count": 1, + "args": 1, + "types": [ + "call" + ] + } + ] + }, + "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" + ] + } + ] + }, + "loader": { + "occurrences": 4, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 4, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "createElement": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "subscript" + ] + } + ] + }, + "createMDXSource": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "var" + ] + } + ] + } + } + }, + { + "label": "packages/resolution", + "method_count": 8, + "algorithm": "CRX", + "grammar": "root ::= (\":\" | \"?\" | \"_\" | \"__dirname\" | \"any\" | \"await\" | \"catch\" | \"console\" | \"error\" | \"execa\" | \"existsSync\" | \"expect\" | \"if\" | \"join\" | \"log\" | \"output\" | \"outputWithoutFirstLine\" | \"path\" | \"result\" | \"return\" | \"slice\" | \"split\" | \"trim\" | \"try\" | \"warn\" | \"zodIndexPath\" | \"zodPackagePath\")?+ \"process\"? \"toMatchInlineSnapshot\"? \"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": { + "execa": { + "occurrences": 14, + "arg_count": { + "min": 3, + "max": 3, + "common": 3 + }, + "patterns": [ + { + "count": 14, + "args": 3, + "types": [ + "lit", + "other", + "other" + ] + } + ] + }, + "testCjs": { + "occurrences": 4, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 4, + "args": 0, + "types": [] + } + ] + }, + "testMjs": { + "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": [] + } + ] + }, + "fileURLToPath": { + "occurrences": 4, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 4, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "buildZshy": { + "occurrences": 2, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 2, + "args": 0, + "types": [] + } + ] + }, + "testJs": { + "occurrences": 2, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 2, + "args": 0, + "types": [] + } + ] + }, + "runAllTests": { + "occurrences": 2, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 2, + "args": 0, + "types": [] + } + ] + }, + "existsSync": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "describe": { + "occurrences": 2, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 2, + "args": 2, + "types": [ + "lit", + "other" + ] + } + ] + }, + "expect": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "it": { + "occurrences": 2, + "arg_count": { + "min": 3, + "max": 3, + "common": 3 + }, + "patterns": [ + { + "count": 2, + "args": 3, + "types": [ + "lit", + "other", + "lit" + ] + } + ] + } + } + }, + { + "label": "packages/tsc", + "method_count": 12, + "algorithm": "iDRegEx", + "grammar": "root ::= \"field\" | \"params\"", + "mdl_score": 4, + "imports": [ + "import { $ } from \"execa\";", + "import * as gen from \"./generate.js\";", + "import { mkdirSync, writeFileSync } from \"node:fs\";", + "import { dirname } from \"node:path\";" + ], + "arg_patterns": { + "Error": { + "occurrences": 6, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 6, + "args": 1, + "types": [ + "lit" + ] + } + ] + }, + "$": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "new": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "lit" + ] + } + ] + }, + "writeFileSync": { + "occurrences": 4, + "arg_count": { + "min": 3, + "max": 3, + "common": 3 + }, + "patterns": [ + { + "count": 4, + "args": 3, + "types": [ + "var", + "call", + "other" + ] + } + ] + }, + "mkdirSync": { + "occurrences": 4, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 4, + "args": 2, + "types": [ + "call", + "other" + ] + } + ] + }, + "randomStr": { + "occurrences": 14, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 14, + "args": 1, + "types": [ + "lit" + ] + } + ] + }, + "generateFields": { + "occurrences": 8, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 4, + "args": 1, + "types": [ + "other" + ] + }, + { + "count": 4, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "generateExtendChain": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "dirname": { + "occurrences": 4, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 4, + "args": 1, + "types": [ + "var" + ] + } + ] + } + } + }, + { + "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": { + "ZodError": { + "occurrences": 18, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 14, + "args": 1, + "types": [ + "other" + ] + }, + { + "count": 4, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "mapper": { + "occurrences": 8, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 8, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "Error": { + "occurrences": 30, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 18, + "args": 1, + "types": [ + "template" + ] + }, + { + "count": 12, + "args": 1, + "types": [ + "lit" + ] + } + ] + }, + "processError": { + "occurrences": 6, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 6, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "new": { + "occurrences": 125, + "arg_count": { + "min": 0, + "max": 4, + "common": 1 + }, + "patterns": [ + { + "count": 84, + "args": 1, + "types": [ + "other" + ] + }, + { + "count": 9, + "args": 1, + "types": [ + "template" + ] + }, + { + "count": 9, + "args": 0, + "types": [] + }, + { + "count": 7, + "args": 4, + "types": [ + "var", + "var", + "other", + "var" + ] + }, + { + "count": 4, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "Number": { + "occurrences": 9, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 9, + "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" + ] + } + ] + }, + "processCreateParams": { + "occurrences": 84, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 76, + "args": 1, + "types": [ + "var" + ] + }, + { + "count": 8, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "getDiscriminator": { + "occurrences": 18, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 10, + "args": 1, + "types": [ + "call" + ] + }, + { + "count": 6, + "args": 1, + "types": [ + "other" + ] + }, + { + "count": 2, + "args": 1, + "types": [ + "subscript" + ] + } + ] + }, + "ZodEffects": { + "occurrences": 8, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 8, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "ZodOptional": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "ZodSet": { + "occurrences": 6, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 6, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "ZodEnum": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "Set": { + "occurrences": 9, + "arg_count": { + "min": 0, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "call" + ] + }, + { + "count": 3, + "args": 0, + "types": [] + }, + { + "count": 3, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "ZodObject": { + "occurrences": 28, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 28, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "BigInt": { + "occurrences": 12, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 10, + "args": 1, + "types": [ + "lit" + ] + }, + { + "count": 2, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "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" + ] + } + ] + }, + "check": { + "occurrences": 6, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 6, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "isAsync": { + "occurrences": 8, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 8, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "isDirty": { + "occurrences": 4, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 4, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "OK": { + "occurrences": 28, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 24, + "args": 1, + "types": [ + "other" + ] + }, + { + "count": 2, + "args": 1, + "types": [ + "lit" + ] + }, + { + "count": 2, + "args": 1, + "types": [ + "call" + ] + } + ] + }, + "getErrorMap": { + "occurrences": 4, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 4, + "args": 0, + "types": [] + } + ] + }, + "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" + ] + } + ] + }, + "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" + ] + } + ] + }, + "handleResult": { + "occurrences": 4, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 4, + "args": 2, + "types": [ + "var", + "var" + ] + } + ] + }, + "DIRTY": { + "occurrences": 10, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 10, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "isValidJWT": { + "occurrences": 2, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 2, + "args": 2, + "types": [ + "other", + "other" + ] + } + ] + }, + "This": { + "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" + ] + } + ] + }, + "ZodBigInt": { + "occurrences": 6, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 6, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "params": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "ZodSymbol": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "ZodDefault": { + "occurrences": 4, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 4, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "ZodUnknown": { + "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" + ] + } + ] + }, + "getParsedType": { + "occurrences": 16, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 10, + "args": 1, + "types": [ + "var" + ] + }, + { + "count": 6, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "ZodFunction": { + "occurrences": 6, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 6, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "isValid": { + "occurrences": 12, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 12, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "mergeValues": { + "occurrences": 6, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 2, + "args": 2, + "types": [ + "subscript", + "subscript" + ] + }, + { + "count": 2, + "args": 2, + "types": [ + "other", + "other" + ] + }, + { + "count": 2, + "args": 2, + "types": [ + "var", + "var" + ] + } + ] + }, + "ZodArray": { + "occurrences": 10, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 10, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "deepPartialify": { + "occurrences": 12, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 4, + "args": 1, + "types": [ + "var" + ] + }, + { + "count": 4, + "args": 1, + "types": [ + "other" + ] + }, + { + "count": 4, + "args": 1, + "types": [ + "call" + ] + } + ] + }, + "isValidCidr": { + "occurrences": 2, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 2, + "args": 2, + "types": [ + "other", + "other" + ] + } + ] + }, + "atob": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "cleanParams": { + "occurrences": 4, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 4, + "args": 2, + "types": [ + "var", + "var" + ] + } + ] + }, + "isAborted": { + "occurrences": 4, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 4, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "ZodCatch": { + "occurrences": 4, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 4, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "ZodAny": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "booleanType": { + "occurrences": 2, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 2, + "args": 0, + "types": [] + } + ] + }, + "refinementData": { + "occurrences": 2, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 2, + "args": 2, + "types": [ + "var", + "var" + ] + } + ] + }, + "Boolean": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "ZodBoolean": { + "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" + ] + } + ] + }, + "floatSafeRemainder": { + "occurrences": 2, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 2, + "args": 2, + "types": [ + "other", + "other" + ] + } + ] + }, + "ZodNever": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "freeze": { + "occurrences": 4, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 4, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "ZodNumber": { + "occurrences": 6, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 6, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "ZodDate": { + "occurrences": 4, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 4, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "finalizeSet": { + "occurrences": 4, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "other" + ] + }, + { + "count": 2, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "ZodPromise": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "stringType": { + "occurrences": 2, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 2, + "args": 0, + "types": [] + } + ] + }, + "makeIssue": { + "occurrences": 4, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 4, + "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" + ] + } + ] + }, + "ZodPipeline": { + "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" + ] + } + ] + }, + "timeRegexSource": { + "occurrences": 4, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 4, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "ParseStatus": { + "occurrences": 10, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 10, + "args": 0, + "types": [] + } + ] + }, + "setError": { + "occurrences": 4, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 4, + "args": 0, + "types": [] + } + ] + }, + "createZodEnum": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "ZodLazy": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "ZodBranded": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "ZodRecord": { + "occurrences": 4, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 4, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "ZodNaN": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "ZodNull": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "String": { + "occurrences": 9, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 6, + "args": 1, + "types": [ + "var" + ] + }, + { + "count": 3, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "ZodLiteral": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "isValidIP": { + "occurrences": 2, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 2, + "args": 2, + "types": [ + "other", + "other" + ] + } + ] + }, + "Map": { + "occurrences": 9, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 9, + "args": 0, + "types": [] + } + ] + }, + "ZodNullable": { + "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" + ] + } + ] + }, + "ZodMap": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "Symbol": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "lit" + ] + } + ] + }, + "message": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "ZodIntersection": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "handleParsed": { + "occurrences": 4, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 2, + "args": 2, + "types": [ + "var", + "var" + ] + }, + { + "count": 2, + "args": 2, + "types": [ + "call", + "call" + ] + } + ] + }, + "getIssueProperties": { + "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" + ] + } + ] + }, + "timeRegex": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "ZodDiscriminatedUnion": { + "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": [] + } + ] + }, + "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" + ] + } + ] + }, + "custom": { + "occurrences": 2, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 2, + "args": 2, + "types": [ + "other", + "var" + ] + } + ] + }, + "numberType": { + "occurrences": 2, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 2, + "args": 0, + "types": [] + } + ] + }, + "URL": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "ZodVoid": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "ZodUnion": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "other" + ] + } + ] + } + } + }, + { + "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": { + "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": [] + } + ] + }, + "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": [] + } + ] + }, + "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" + ] + } + ] + }, + "fn": { + "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": [] + } + ] + }, + "array": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "num": { + "occurrences": 2, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 2, + "args": 0, + "types": [] + } + ] + }, + "Mocker": { + "occurrences": 2, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 2, + "args": 0, + "types": [] + } + ] + } + } + }, + { + "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" + ] + } + ] + }, + "Number": { + "occurrences": 18, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 15, + "args": 1, + "types": [ + "var" + ] + }, + { + "count": 3, + "args": 1, + "types": [ + "lit" + ] + } + ] + }, + "String": { + "occurrences": 15, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 12, + "args": 1, + "types": [ + "var" + ] + }, + { + "count": 3, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "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" + ] + } + ] + }, + "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" + ] + } + ] + }, + "new": { + "occurrences": 98, + "arg_count": { + "min": 0, + "max": 3, + "common": 1 + }, + "patterns": [ + { + "count": 35, + "args": 1, + "types": [ + "other" + ] + }, + { + "count": 30, + "args": 1, + "types": [ + "lit" + ] + }, + { + "count": 26, + "args": 0, + "types": [] + }, + { + "count": 3, + "args": 1, + "types": [ + "var" + ] + }, + { + "count": 3, + "args": 3, + "types": [ + "lit", + "lit", + "lit" + ] + } + ] + }, + "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" + ] + } + ] + }, + "isDirty": { + "occurrences": 6, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 6, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "isValid": { + "occurrences": 6, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 6, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "isAborted": { + "occurrences": 6, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 6, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "predicate": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "lit" + ] + } + ] + }, + "callback": { + "occurrences": 4, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 4, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "Mocker": { + "occurrences": 4, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 4, + "args": 0, + "types": [] + } + ] + }, + "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" + ] + } + ] + }, + "Symbol": { + "occurrences": 24, + "arg_count": { + "min": 0, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 18, + "args": 1, + "types": [ + "lit" + ] + }, + { + "count": 6, + "args": 0, + "types": [] + } + ] + }, + "getRandomInt": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "validatedFunction": { + "occurrences": 4, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 4, + "args": 0, + "types": [] + } + ] + }, + "Map": { + "occurrences": 27, + "arg_count": { + "min": 0, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 24, + "args": 1, + "types": [ + "other" + ] + }, + { + "count": 3, + "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" + ] + } + ] + }, + "Test": { + "occurrences": 4, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 4, + "args": 0, + "types": [] + } + ] + }, + "Subtest": { + "occurrences": 4, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 4, + "args": 0, + "types": [] + } + ] + }, + "Bar": { + "occurrences": 4, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 4, + "args": 1, + "types": [ + "lit" + ] + } + ] + }, + "doStuff": { + "occurrences": 6, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 4, + "args": 1, + "types": [ + "call" + ] + }, + { + "count": 2, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "Array": { + "occurrences": 6, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 6, + "args": 1, + "types": [ + "lit" + ] + } + ] + }, + "ZodError": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "checker": { + "occurrences": 8, + "arg_count": { + "min": 0, + "max": 1, + "common": 0 + }, + "patterns": [ + { + "count": 4, + "args": 0, + "types": [] + }, + { + "count": 4, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "makeJwt": { + "occurrences": 10, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 10, + "args": 2, + "types": [ + "other", + "other" + ] + } + ] + }, + "base": { + "occurrences": 4, + "arg_count": { + "min": 0, + "max": 1, + "common": 0 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "lit" + ] + }, + { + "count": 2, + "args": 0, + "types": [] + } + ] + }, + "stripOuter": { + "occurrences": 2, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 2, + "args": 2, + "types": [ + "call", + "other" + ] + } + ] + }, + "parsed": { + "occurrences": 6, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 4, + "args": 1, + "types": [ + "lit" + ] + }, + { + "count": 2, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "invalidFuncInstance": { + "occurrences": 4, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 4, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "func": { + "occurrences": 6, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 6, + "args": 1, + "types": [ + "lit" + ] + } + ] + }, + "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" + ] + } + ] + } + } + }, + { + "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": { + "createStandardJSONSchemaMethod": { + "occurrences": 4, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 4, + "args": 2, + "types": [ + "var", + "lit" + ] + } + ] + }, + "_null": { + "occurrences": 2, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 2, + "args": 0, + "types": [] + } + ] + }, + "ZodReadonly": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "prefault": { + "occurrences": 2, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 2, + "args": 2, + "types": [ + "other", + "var" + ] + } + ] + }, + "_installLazyMethods": { + "occurrences": 10, + "arg_count": { + "min": 3, + "max": 3, + "common": 3 + }, + "patterns": [ + { + "count": 10, + "args": 3, + "types": [ + "var", + "lit", + "other" + ] + } + ] + }, + "ZodDefault": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "fn": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "ZodFunction": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "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" + ] + } + ] + }, + "ZodOptional": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "_catch": { + "occurrences": 2, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 2, + "args": 2, + "types": [ + "other", + "var" + ] + } + ] + }, + "ZodXor": { + "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" + ] + } + ] + }, + "Set": { + "occurrences": 18, + "arg_count": { + "min": 0, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 6, + "args": 1, + "types": [ + "other" + ] + }, + { + "count": 6, + "args": 0, + "types": [] + }, + { + "count": 3, + "args": 1, + "types": [ + "call" + ] + }, + { + "count": 3, + "args": 1, + "types": [ + "expr" + ] + } + ] + }, + "readonly": { + "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" + ] + } + ] + }, + "never": { + "occurrences": 4, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 4, + "args": 0, + "types": [] + } + ] + }, + "ZodPromise": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "ZodTransform": { + "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" + ] + } + ] + }, + "BigInt": { + "occurrences": 8, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 8, + "args": 1, + "types": [ + "lit" + ] + } + ] + }, + "ZodCatch": { + "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" + ] + } + ] + }, + "tuple": { + "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" + ] + } + ] + }, + "createToJSONSchemaMethod": { + "occurrences": 2, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 2, + "args": 2, + "types": [ + "var", + "other" + ] + } + ] + }, + "string": { + "occurrences": 6, + "arg_count": { + "min": 0, + "max": 1, + "common": 0 + }, + "patterns": [ + { + "count": 4, + "args": 0, + "types": [] + }, + { + "count": 2, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "unknown": { + "occurrences": 10, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 10, + "args": 0, + "types": [] + } + ] + }, + "ZodObject": { + "occurrences": 6, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 4, + "args": 1, + "types": [ + "other" + ] + }, + { + "count": 2, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "ZodNonOptional": { + "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": [ + "call" + ] + }, + { + "count": 2, + "args": 1, + "types": [ + "other" + ] + }, + { + "count": 2, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "nullable": { + "occurrences": 6, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 4, + "args": 1, + "types": [ + "other" + ] + }, + { + "count": 2, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "number": { + "occurrences": 2, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 2, + "args": 0, + "types": [] + } + ] + }, + "Error": { + "occurrences": 45, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 24, + "args": 1, + "types": [ + "lit" + ] + }, + { + "count": 21, + "args": 1, + "types": [ + "template" + ] + } + ] + }, + "ZodPreprocess": { + "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" + ] + } + ] + }, + "exactOptional": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "optional": { + "occurrences": 6, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 4, + "args": 1, + "types": [ + "call" + ] + }, + { + "count": 2, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "int": { + "occurrences": 4, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 4, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "transform": { + "occurrences": 4, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "other" + ] + }, + { + "count": 2, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "ZodLiteral": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "ZodSuccess": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "ZodTemplateLiteral": { + "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" + ] + } + ] + }, + "lazy": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "ZodTuple": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "nonoptional": { + "occurrences": 2, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 2, + "args": 2, + "types": [ + "other", + "var" + ] + } + ] + }, + "union": { + "occurrences": 4, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 4, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "ZodRecord": { + "occurrences": 8, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 8, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "ZodNullable": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "ZodDiscriminatedUnion": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "ZodPrefault": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "ZodLazy": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "refine": { + "occurrences": 2, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 2, + "args": 2, + "types": [ + "var", + "var" + ] + } + ] + }, + "Date": { + "occurrences": 6, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 6, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "ZodIntersection": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "intersection": { + "occurrences": 2, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 2, + "args": 2, + "types": [ + "other", + "var" + ] + } + ] + }, + "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" + ] + } + ] + }, + "WeakMap": { + "occurrences": 3, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 3, + "args": 0, + "types": [] + } + ] + }, + "ZodUnion": { + "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" + ] + } + ] + }, + "ZodCustom": { + "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" + ] + } + ] + }, + "new": { + "occurrences": 67, + "arg_count": { + "min": 0, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 44, + "args": 1, + "types": [ + "other" + ] + }, + { + "count": 8, + "args": 1, + "types": [ + "lit" + ] + }, + { + "count": 7, + "args": 1, + "types": [ + "template" + ] + }, + { + "count": 4, + "args": 0, + "types": [] + }, + { + "count": 2, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "convertSchema": { + "occurrences": 32, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 24, + "args": 2, + "types": [ + "other", + "var" + ] + }, + { + "count": 8, + "args": 2, + "types": [ + "var", + "var" + ] + } + ] + }, + "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": [ + "var" + ] + }, + { + "count": 3, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "convertBaseSchema": { + "occurrences": 4, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 4, + "args": 2, + "types": [ + "var", + "var" + ] + } + ] + }, + "resolveRef": { + "occurrences": 2, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 2, + "args": 2, + "types": [ + "var", + "var" + ] + } + ] + }, + "detectVersion": { + "occurrences": 2, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 2, + "args": 2, + "types": [ + "var", + "other" + ] + } + ] + } + } + }, + { + "label": "packages/zod/src/v4/classic/tests", + "method_count": 2342, + "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": { + "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" + ] + } + ] + }, + "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" + ] + } + ] + }, + "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" + ] + } + ] + }, + "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" + ] + } + ] + }, + "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" + ] + } + ] + }, + "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" + ] + } + ] + }, + "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" + ] + } + ] + }, + "Symbol": { + "occurrences": 39, + "arg_count": { + "min": 0, + "max": 1, + "common": 0 + }, + "patterns": [ + { + "count": 24, + "args": 0, + "types": [] + }, + { + "count": 15, + "args": 1, + "types": [ + "lit" + ] + } + ] + }, + "Map": { + "occurrences": 120, + "arg_count": { + "min": 0, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 108, + "args": 1, + "types": [ + "other" + ] + }, + { + "count": 12, + "args": 0, + "types": [] + } + ] + }, + "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" + ] + } + ] + }, + "String": { + "occurrences": 63, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 51, + "args": 1, + "types": [ + "var" + ] + }, + { + "count": 12, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "stripOuter": { + "occurrences": 2, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 2, + "args": 2, + "types": [ + "call", + "other" + ] + } + ] + }, + "createV4Schema": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "nest": { + "occurrences": 4, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 4, + "args": 1, + "types": [ + "call" + ] + } + ] + }, + "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" + ] + } + ] + }, + "inspect": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "base64": { + "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": [] + } + ] + }, + "encodeURIComponent": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "utf8ToBytes": { + "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" + ] + } + ] + }, + "jsonCodec": { + "occurrences": 4, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 4, + "args": 1, + "types": [ + "call" + ] + } + ] + }, + "URL": { + "occurrences": 8, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 4, + "args": 1, + "types": [ + "var" + ] + }, + { + "count": 4, + "args": 1, + "types": [ + "lit" + ] + } + ] + }, + "epochMillisToDate": { + "occurrences": 2, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 2, + "args": 0, + "types": [] + } + ] + }, + "Uint8Array": { + "occurrences": 18, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 18, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "stringToNumber": { + "occurrences": 2, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 2, + "args": 0, + "types": [] + } + ] + }, + "numberToBigInt": { + "occurrences": 2, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 2, + "args": 0, + "types": [] + } + ] + }, + "TextDecoder": { + "occurrences": 4, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 4, + "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" + ] + } + ] + }, + "stringToInt": { + "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": [] + } + ] + }, + "stringToHttpURL": { + "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": [] + } + ] + }, + "epochSecondsToDate": { + "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": [] + } + ] + }, + "stringToBigInt": { + "occurrences": 2, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 2, + "args": 0, + "types": [] + } + ] + }, + "bytesToUtf8": { + "occurrences": 2, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 2, + "args": 0, + "types": [] + } + ] + }, + "base64urlToBytes": { + "occurrences": 2, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 2, + "args": 0, + "types": [] + } + ] + }, + "isoDatetimeToDate": { + "occurrences": 2, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 2, + "args": 0, + "types": [] + } + ] + }, + "positive": { + "occurrences": 2, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 2, + "args": 0, + "types": [] + } + ] + }, + "partial": { + "occurrences": 2, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 2, + "args": 0, + "types": [] + } + ] + }, + "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" + ] + } + ] + }, + "refine": { + "occurrences": 2, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 2, + "args": 2, + "types": [ + "other", + "lit" + ] + } + ] + }, + "opt": { + "occurrences": 4, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 4, + "args": 0, + "types": [] + } + ] + }, + "parse": { + "occurrences": 10, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 6, + "args": 1, + "types": [ + "lit" + ] + }, + { + "count": 2, + "args": 1, + "types": [ + "other" + ] + }, + { + "count": 2, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "safeParse": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "lit" + ] + } + ] + }, + "omit": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "nul": { + "occurrences": 2, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 2, + "args": 0, + "types": [] + } + ] + }, + "arr": { + "occurrences": 2, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 2, + "args": 0, + "types": [] + } + ] + }, + "pick": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "extend": { + "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" + ] + } + ] + }, + "detached": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "max": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "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" + ] + } + ] + }, + "it": { + "occurrences": 6, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 6, + "args": 2, + "types": [ + "lit", + "other" + ] + } + ] + }, + "createHash": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "toB64Url": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "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" + ] + } + ] + }, + "makeDigests": { + "occurrences": 2, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 2, + "args": 2, + "types": [ + "var", + "var" + ] + } + ] + }, + "createSortItemSchema": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "Promise": { + "occurrences": 9, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 9, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "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" + ] + } + ] + }, + "Array": { + "occurrences": 6, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 6, + "args": 1, + "types": [ + "lit" + ] + } + ] + }, + "expectMethodMatch": { + "occurrences": 176, + "arg_count": { + "min": 1, + "max": 2, + "common": 1 + }, + "patterns": [ + { + "count": 144, + "args": 1, + "types": [ + "call" + ] + }, + { + "count": 22, + "args": 2, + "types": [ + "call", + "other" + ] + }, + { + "count": 8, + "args": 1, + "types": [ + "var" + ] + }, + { + "count": 2, + "args": 2, + "types": [ + "var", + "other" + ] + } + ] + }, + "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": [] + } + ] + }, + "validatedFunction": { + "occurrences": 4, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 4, + "args": 0, + "types": [] + } + ] + }, + "makeJwt": { + "occurrences": 10, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 10, + "args": 2, + "types": [ + "other", + "other" + ] + } + ] + }, + "RegExp": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "randomBytes": { + "occurrences": 4, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 4, + "args": 1, + "types": [ + "expr" + ] + } + ] + }, + "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": [] + } + ] + }, + "A": { + "occurrences": 2, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 2, + "args": 0, + "types": [] + } + ] + }, + "branded": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "lit" + ] + } + ] + }, + "checkSync": { + "occurrences": 2, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 2, + "args": 2, + "types": [ + "other", + "lit" + ] + } + ] + }, + "base": { + "occurrences": 4, + "arg_count": { + "min": 0, + "max": 1, + "common": 0 + }, + "patterns": [ + { + "count": 2, + "args": 0, + "types": [] + }, + { + "count": 2, + "args": 1, + "types": [ + "lit" + ] + } + ] + }, + "resolve": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "lit" + ] + } + ] + }, + "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" + ] + } + ] + }, + "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" + ] + } + ] + }, + "checker": { + "occurrences": 2, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 2, + "args": 0, + "types": [] + } + ] + }, + "typeGuard": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "validFunc2Instance": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "validFunc3Instance": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "fn": { + "occurrences": 4, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 4, + "args": 0, + "types": [] + } + ] + }, + "object": { + "occurrences": 4, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 4, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "pipe": { + "occurrences": 2, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 2, + "args": 2, + "types": [ + "call", + "call" + ] + } + ] + }, + "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" + ] + } + ] + }, + "transform": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "validateOpenAPI30Schema": { + "occurrences": 14, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 14, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "Validator": { + "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": { + "isSimpleIntersection": { + "occurrences": 4, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 4, + "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" + ] + } + ] + }, + "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" + ] + } + ] + }, + "getEnumValues": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "finalize": { + "occurrences": 10, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 6, + "args": 2, + "types": [ + "other", + "var" + ] + }, + { + "count": 4, + "args": 2, + "types": [ + "var", + "var" + ] + } + ] + }, + "initializeContext": { + "occurrences": 10, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 10, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "extractDefs": { + "occurrences": 10, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 6, + "args": 2, + "types": [ + "other", + "var" + ] + }, + { + "count": 4, + "args": 2, + "types": [ + "var", + "var" + ] + } + ] + }, + "Number": { + "occurrences": 12, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 9, + "args": 1, + "types": [ + "var" + ] + }, + { + "count": 3, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "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" + ] + } + ] + }, + "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" + ] + } + ] + }, + "handleCheckPropertyResult": { + "occurrences": 4, + "arg_count": { + "min": 3, + "max": 3, + "common": 3 + }, + "patterns": [ + { + "count": 4, + "args": 3, + "types": [ + "var", + "var", + "other" + ] + } + ] + }, + "RegExp": { + "occurrences": 54, + "arg_count": { + "min": 1, + "max": 2, + "common": 1 + }, + "patterns": [ + { + "count": 48, + "args": 1, + "types": [ + "template" + ] + }, + { + "count": 3, + "args": 1, + "types": [ + "expr" + ] + }, + { + "count": 3, + "args": 2, + "types": [ + "var", + "lit" + ] + } + ] + }, + "BigInt": { + "occurrences": 12, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 10, + "args": 1, + "types": [ + "lit" + ] + }, + { + "count": 2, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "registry": { + "occurrences": 2, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 2, + "args": 0, + "types": [] + } + ] + }, + "Symbol": { + "occurrences": 12, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 12, + "args": 1, + "types": [ + "lit" + ] + } + ] + }, + "Map": { + "occurrences": 24, + "arg_count": { + "min": 0, + "max": 1, + "common": 0 + }, + "patterns": [ + { + "count": 21, + "args": 0, + "types": [] + }, + { + "count": 3, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "$ZodRegistry": { + "occurrences": 2, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 2, + "args": 0, + "types": [] + } + ] + }, + "WeakMap": { + "occurrences": 6, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 6, + "args": 0, + "types": [] + } + ] + }, + "isPlainObject": { + "occurrences": 6, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 6, + "args": 1, + "types": [ + "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" + ] + } + ] + }, + "getter": { + "occurrences": 18, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 18, + "args": 0, + "types": [] + } + ] + }, + "unwrapMessage": { + "occurrences": 8, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 8, + "args": 1, + "types": [ + "call" + ] + } + ] + }, + "Uint8Array": { + "occurrences": 6, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "expr" + ] + }, + { + "count": 3, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "assignProp": { + "occurrences": 14, + "arg_count": { + "min": 3, + "max": 3, + "common": 3 + }, + "patterns": [ + { + "count": 14, + "args": 3, + "types": [ + "other", + "lit", + "var" + ] + } + ] + }, + "uint8ArrayToBase64": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "Class": { + "occurrences": 168, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 166, + "args": 1, + "types": [ + "other" + ] + }, + { + "count": 2, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "Proxy": { + "occurrences": 2, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 2, + "args": 2, + "types": [ + "other", + "other" + ] + } + ] + }, + "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" + ] + } + ] + }, + "clone": { + "occurrences": 14, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 14, + "args": 2, + "types": [ + "var", + "var" + ] + } + ] + }, + "stringifyPrimitive": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "atob": { + "occurrences": 6, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 6, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "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" + ] + } + ] + }, + "btoa": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "base64ToUint8Array": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "expr" + ] + } + ] + }, + "handleArrayResult": { + "occurrences": 4, + "arg_count": { + "min": 3, + "max": 3, + "common": 3 + }, + "patterns": [ + { + "count": 4, + "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" + ] + } + ] + }, + "Date": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "runChecks": { + "occurrences": 6, + "arg_count": { + "min": 3, + "max": 3, + "common": 3 + }, + "patterns": [ + { + "count": 6, + "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" + ] + } + ] + }, + "Array": { + "occurrences": 6, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 6, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "handleCodecTxResult": { + "occurrences": 8, + "arg_count": { + "min": 4, + "max": 4, + "common": 4 + }, + "patterns": [ + { + "count": 8, + "args": 4, + "types": [ + "var", + "var", + "other", + "var" + ] + } + ] + }, + "handleOptionalResult": { + "occurrences": 4, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 4, + "args": 2, + "types": [ + "var", + "var" + ] + } + ] + }, + "handleExclusiveUnionResults": { + "occurrences": 4, + "arg_count": { + "min": 4, + "max": 4, + "common": 4 + }, + "patterns": [ + { + "count": 4, + "args": 4, + "types": [ + "other", + "var", + "var", + "var" + ] + } + ] + }, + "handleIntersectionResults": { + "occurrences": 4, + "arg_count": { + "min": 3, + "max": 3, + "common": 3 + }, + "patterns": [ + { + "count": 4, + "args": 3, + "types": [ + "var", + "var", + "var" + ] + } + ] + }, + "handlePropertyResult": { + "occurrences": 8, + "arg_count": { + "min": 6, + "max": 6, + "common": 6 + }, + "patterns": [ + { + "count": 8, + "args": 6, + "types": [ + "var", + "var", + "var", + "var", + "var", + "var" + ] + } + ] + }, + "parseAsync": { + "occurrences": 4, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 4, + "args": 2, + "types": [ + "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" + ] + } + ] + }, + "handleNonOptionalResult": { + "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" + ] + } + ] + }, + "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" + ] + } + ] + }, + "isValidBase64": { + "occurrences": 4, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "other" + ] + }, + { + "count": 2, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "_super": { + "occurrences": 2, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 2, + "args": 2, + "types": [ + "var", + "var" + ] + } + ] + }, + "handleSetResult": { + "occurrences": 4, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 4, + "args": 2, + "types": [ + "var", + "var" + ] + } + ] + }, + "handleReadonlyResult": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "handleCodecAResult": { + "occurrences": 8, + "arg_count": { + "min": 3, + "max": 3, + "common": 3 + }, + "patterns": [ + { + "count": 8, + "args": 3, + "types": [ + "var", + "var", + "var" + ] + } + ] + }, + "handleTupleResults": { + "occurrences": 4, + "arg_count": { + "min": 5, + "max": 5, + "common": 5 + }, + "patterns": [ + { + "count": 4, + "args": 5, + "types": [ + "var", + "var", + "var", + "var", + "var" + ] + } + ] + }, + "parse": { + "occurrences": 4, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 4, + "args": 2, + "types": [ + "other", + "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" + ] + } + ] + }, + "mergeValues": { + "occurrences": 6, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 2, + "args": 2, + "types": [ + "subscript", + "subscript" + ] + }, + { + "count": 2, + "args": 2, + "types": [ + "var", + "var" + ] + }, + { + "count": 2, + "args": 2, + "types": [ + "other", + "other" + ] + } + ] + }, + "handleTupleResult": { + "occurrences": 4, + "arg_count": { + "min": 3, + "max": 3, + "common": 3 + }, + "patterns": [ + { + "count": 4, + "args": 3, + "types": [ + "var", + "var", + "var" + ] + } + ] + }, + "handlePipeResult": { + "occurrences": 8, + "arg_count": { + "min": 3, + "max": 3, + "common": 3 + }, + "patterns": [ + { + "count": 8, + "args": 3, + "types": [ + "var", + "other", + "var" + ] + } + ] + }, + "handleDefaultResult": { + "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" + ] + } + ] + }, + "Boolean": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "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" + ] + } + ] + }, + "first": { + "occurrences": 4, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 4, + "args": 2, + "types": [ + "var", + "var" + ] + } + ] + }, + "fn": { + "occurrences": 10, + "arg_count": { + "min": 0, + "max": 3, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "var" + ] + }, + { + "count": 2, + "args": 3, + "types": [ + "var", + "var", + "var" + ] + }, + { + "count": 2, + "args": 0, + "types": [] + }, + { + "count": 2, + "args": 1, + "types": [ + "other" + ] + }, + { + "count": 2, + "args": 2, + "types": [ + "other", + "other" + ] + } + ] + }, + "safeParseAsync": { + "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": [ + "other", + "other", + "var", + "var", + "var", + "var", + "var" + ] + }, + { + "count": 2, + "args": 7, + "types": [ + "var", + "var", + "var", + "var", + "var", + "var", + "var" + ] + } + ] + }, + "safeParse": { + "occurrences": 2, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 2, + "args": 2, + "types": [ + "var", + "var" + ] + } + ] + }, + "superParse": { + "occurrences": 2, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 2, + "args": 2, + "types": [ + "var", + "var" + ] + } + ] + }, + "generateFastpass": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "$ZodTuple": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "fastpass": { + "occurrences": 2, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 2, + "args": 2, + "types": [ + "var", + "var" + ] + } + ] + }, + "isValidJWT": { + "occurrences": 2, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 2, + "args": 2, + "types": [ + "other", + "other" + ] + } + ] + }, + "Definition": { + "occurrences": 2, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 2, + "args": 0, + "types": [] + } + ] + }, + "init": { + "occurrences": 2, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 2, + "args": 2, + "types": [ + "var", + "var" + ] + } + ] + }, + "initializer": { + "occurrences": 2, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 2, + "args": 2, + "types": [ + "var", + "var" + ] + } + ] + }, + "createStandardJSONSchemaMethod": { + "occurrences": 4, + "arg_count": { + "min": 3, + "max": 3, + "common": 3 + }, + "patterns": [ + { + "count": 4, + "args": 3, + "types": [ + "var", + "lit", + "other" + ] + } + ] + }, + "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" + ] + } + ] + }, + "processor": { + "occurrences": 2, + "arg_count": { + "min": 4, + "max": 4, + "common": 4 + }, + "patterns": [ + { + "count": 2, + "args": 4, + "types": [ + "var", + "var", + "var", + "var" + ] + } + ] + }, + "extractToDef": { + "occurrences": 10, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 10, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "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": [ + "var" + ] + }, + { + "count": 2, + "args": 1, + "types": [ + "lit" + ] + } + ] + }, + "makeURI": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "toDotPath": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "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" + ] + } + ] + }, + "fixedBase64url": { + "occurrences": 10, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 10, + "args": 1, + "types": [ + "lit" + ] + } + ] + }, + "fixedBase64": { + "occurrences": 10, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 10, + "args": 2, + "types": [ + "lit", + "lit" + ] + } + ] + }, + "uuid": { + "occurrences": 6, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 6, + "args": 1, + "types": [ + "lit" + ] + } + ] + }, + "timeSource": { + "occurrences": 4, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "var" + ] + }, + { + "count": 2, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "_overwrite": { + "occurrences": 10, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 10, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "_String": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "_Codec": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "_check": { + "occurrences": 2, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 2, + "args": 2, + "types": [ + "other", + "var" + ] + } + ] + }, + "_gt": { + "occurrences": 2, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 2, + "args": 2, + "types": [ + "lit", + "var" + ] + } + ] + }, + "_gte": { + "occurrences": 2, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 2, + "args": 2, + "types": [ + "lit", + "var" + ] + } + ] + }, + "_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" + ] + } + ] + }, + "_lt": { + "occurrences": 2, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 2, + "args": 2, + "types": [ + "lit", + "var" + ] + } + ] + }, + "_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" + ] + } + ] + }, + "_encodeAsync": { + "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" + ] + } + ] + }, + "_safeEncode": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "_encode": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "_parse": { + "occurrences": 6, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 4, + "args": 1, + "types": [ + "var" + ] + }, + { + "count": 2, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "_Err": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "call" + ] + } + ] + }, + "_safeParse": { + "occurrences": 6, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 4, + "args": 1, + "types": [ + "var" + ] + }, + { + "count": 2, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "_safeEncodeAsync": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "_safeDecode": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "_safeDecodeAsync": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "_decodeAsync": { + "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": { + "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" + ] + } + ] + }, + "test": { + "occurrences": 26, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 26, + "args": 2, + "types": [ + "lit", + "other" + ] + } + ] + }, + "it": { + "occurrences": 10, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 10, + "args": 2, + "types": [ + "lit", + "other" + ] + } + ] + }, + "describe": { + "occurrences": 2, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 2, + "args": 2, + "types": [ + "lit", + "other" + ] + } + ] + }, + "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": { + "test": { + "occurrences": 116, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 116, + "args": 2, + "types": [ + "lit", + "other" + ] + } + ] + }, + "nl": { + "occurrences": 2, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 2, + "args": 0, + "types": [] + } + ] + }, + "expect": { + "occurrences": 630, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 552, + "args": 1, + "types": [ + "other" + ] + }, + { + "count": 62, + "args": 1, + "types": [ + "call" + ] + }, + { + "count": 16, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "localeError": { + "occurrences": 24, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 24, + "args": 1, + "types": [ + "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" + ] + } + ] + }, + "Set": { + "occurrences": 24, + "arg_count": { + "min": 0, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 18, + "args": 1, + "types": [ + "other" + ] + }, + { + "count": 6, + "args": 0, + "types": [] + } + ] + }, + "Date": { + "occurrences": 12, + "arg_count": { + "min": 0, + "max": 1, + "common": 0 + }, + "patterns": [ + { + "count": 6, + "args": 0, + "types": [] + }, + { + "count": 6, + "args": 1, + "types": [ + "lit" + ] + } + ] + }, + "Error": { + "occurrences": 6, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 6, + "args": 0, + "types": [] + } + ] + }, + "es": { + "occurrences": 10, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 10, + "args": 0, + "types": [] + } + ] + }, + "describe": { + "occurrences": 36, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 32, + "args": 2, + "types": [ + "lit", + "other" + ] + }, + { + "count": 4, + "args": 2, + "types": [ + "template", + "other" + ] + } + ] + }, + "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" + ] + } + ] + }, + "be": { + "occurrences": 2, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 2, + "args": 0, + "types": [] + } + ] + }, + "el": { + "occurrences": 10, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 10, + "args": 0, + "types": [] + } + ] + }, + "fr": { + "occurrences": 6, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 6, + "args": 0, + "types": [] + } + ] + }, + "ru": { + "occurrences": 2, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 2, + "args": 0, + "types": [] + } + ] + }, + "hr": { + "occurrences": 8, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 8, + "args": 0, + "types": [] + } + ] + }, + "he": { + "occurrences": 2, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 2, + "args": 0, + "types": [] + } + ] + }, + "beforeEach": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "other" + ] + } + ] + } + } + }, + { + "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" + ] + } + ] + }, + "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" + ] + } + ] + }, + "getUnitTypeFromNumber": { + "occurrences": 4, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 4, + "args": 1, + "types": [ + "call" + ] + } + ] + }, + "getArmenianPlural": { + "occurrences": 4, + "arg_count": { + "min": 3, + "max": 3, + "common": 3 + }, + "patterns": [ + { + "count": 4, + "args": 3, + "types": [ + "var", + "other", + "other" + ] + } + ] + }, + "withDefiniteArticle": { + "occurrences": 12, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 8, + "args": 1, + "types": [ + "other" + ] + }, + { + "count": 4, + "args": 1, + "types": [ + "expr" + ] + } + ] + }, + "uk": { + "occurrences": 2, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 2, + "args": 0, + "types": [] + } + ] + }, + "getRussianPlural": { + "occurrences": 4, + "arg_count": { + "min": 4, + "max": 4, + "common": 4 + }, + "patterns": [ + { + "count": 4, + "args": 4, + "types": [ + "var", + "other", + "other", + "other" + ] + } + ] + }, + "withDefinite": { + "occurrences": 6, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 6, + "args": 1, + "types": [ + "expr" + ] + } + ] + }, + "typeEntry": { + "occurrences": 4, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 4, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "verbFor": { + "occurrences": 4, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 4, + "args": 1, + "types": [ + "expr" + ] + } + ] + }, + "typeLabel": { + "occurrences": 4, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 4, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "km": { + "occurrences": 2, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 2, + "args": 0, + "types": [] + } + ] + }, + "getBelarusianPlural": { + "occurrences": 4, + "arg_count": { + "min": 4, + "max": 4, + "common": 4 + }, + "patterns": [ + { + "count": 4, + "args": 4, + "types": [ + "var", + "other", + "other", + "other" + ] + } + ] + } + } + }, + { + "label": "packages/zod/src/v4/mini", + "method_count": 199, + "algorithm": "CRX", + "grammar": "root ::= \"core\"? \"return\"? \"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": { + "unknown": { + "occurrences": 6, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 6, + "args": 0, + "types": [] + } + ] + }, + "ZodMiniPipe": { + "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" + ] + } + ] + }, + "ZodMiniCatch": { + "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" + ] + } + ] + }, + "ZodMiniUnion": { + "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" + ] + } + ] + }, + "ZodMiniTransform": { + "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" + ] + } + ] + }, + "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": [] + } + ] + }, + "never": { + "occurrences": 2, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 2, + "args": 0, + "types": [] + } + ] + }, + "ZodMiniIntersection": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "_lazy": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "ZodMiniArray": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "ZodMiniObject": { + "occurrences": 6, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 4, + "args": 1, + "types": [ + "other" + ] + }, + { + "count": 2, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "ZodMiniNonOptional": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "boolean": { + "occurrences": 2, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 2, + "args": 0, + "types": [] + } + ] + }, + "ZodMiniCodec": { + "occurrences": 4, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 4, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "ZodMiniOptional": { + "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" + ] + } + ] + }, + "ZodMiniFunction": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "ZodMiniTemplateLiteral": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "union": { + "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" + ] + } + ] + }, + "ZodMiniSuccess": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "ZodMiniSet": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "_enum": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "call" + ] + } + ] + }, + "array": { + "occurrences": 4, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "var" + ] + }, + { + "count": 2, + "args": 1, + "types": [ + "call" + ] + } + ] + }, + "fn": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "string": { + "occurrences": 6, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 6, + "args": 0, + "types": [] + } + ] + }, + "ZodMiniDiscriminatedUnion": { + "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" + ] + } + ] + }, + "optional": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "call" + ] + } + ] + }, + "ZodMiniPrefault": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "nullable": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "record": { + "occurrences": 2, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 2, + "args": 2, + "types": [ + "call", + "var" + ] + } + ] + }, + "ZodMiniPromise": { + "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" + ] + } + ] + }, + "_null": { + "occurrences": 2, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 2, + "args": 0, + "types": [] + } + ] + }, + "ZodMiniXor": { + "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" + ] + } + ] + }, + "ZodMiniExactOptional": { + "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" + ] + } + ] + }, + "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" + ] + } + ] + }, + "Number": { + "occurrences": 27, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 18, + "args": 1, + "types": [ + "var" + ] + }, + { + "count": 9, + "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" + ] + } + ] + }, + "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" + ] + } + ] + }, + "Promise": { + "occurrences": 6, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 6, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "String": { + "occurrences": 30, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 21, + "args": 1, + "types": [ + "var" + ] + }, + { + "count": 9, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "setTimeout": { + "occurrences": 4, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 4, + "args": 2, + "types": [ + "var", + "lit" + ] + } + ] + }, + "en": { + "occurrences": 2, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 2, + "args": 0, + "types": [] + } + ] + }, + "new": { + "occurrences": 41, + "arg_count": { + "min": 0, + "max": 3, + "common": 1 + }, + "patterns": [ + { + "count": 21, + "args": 1, + "types": [ + "other" + ] + }, + { + "count": 8, + "args": 0, + "types": [] + }, + { + "count": 6, + "args": 1, + "types": [ + "var" + ] + }, + { + "count": 5, + "args": 1, + "types": [ + "lit" + ] + }, + { + "count": 1, + "args": 3, + "types": [ + "other", + "lit", + "other" + ] + } + ] + }, + "doStuff": { + "occurrences": 6, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 4, + "args": 1, + "types": [ + "call" + ] + }, + { + "count": 2, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "Symbol": { + "occurrences": 18, + "arg_count": { + "min": 0, + "max": 1, + "common": 0 + }, + "patterns": [ + { + "count": 15, + "args": 0, + "types": [] + }, + { + "count": 3, + "args": 1, + "types": [ + "lit" + ] + } + ] + }, + "BigInt": { + "occurrences": 32, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 32, + "args": 1, + "types": [ + "lit" + ] + } + ] + }, + "Map": { + "occurrences": 39, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 39, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "Set": { + "occurrences": 18, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 18, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "A": { + "occurrences": 2, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 2, + "args": 0, + "types": [] + } + ] + }, + "branded": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "lit" + ] + } + ] + }, + "File": { + "occurrences": 2, + "arg_count": { + "min": 3, + "max": 3, + "common": 3 + }, + "patterns": [ + { + "count": 2, + "args": 3, + "types": [ + "other", + "lit", + "other" + ] + } + ] + }, + "acceptSchema": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "var" + ] + } + ] + } + } + }, + { + "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" + ] + } + ] + }, + "afterAll": { + "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" + ] + } + ] + }, + "new": { + "occurrences": 2, + "arg_count": { + "min": 0, + "max": 1, + "common": 0 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "template" + ] + }, + { + "count": 1, + "args": 0, + "types": [] + } + ] + }, + "join": { + "occurrences": 8, + "arg_count": { + "min": 2, + "max": 3, + "common": 2 + }, + "patterns": [ + { + "count": 4, + "args": 2, + "types": [ + "var", + "var" + ] + }, + { + "count": 2, + "args": 2, + "types": [ + "other", + "lit" + ] + }, + { + "count": 2, + "args": 3, + "types": [ + "var", + "var", + "lit" + ] + } + ] + }, + "findIndexJsFiles": { + "occurrences": 4, + "arg_count": { + "min": 1, + "max": 2, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "var" + ] + }, + { + "count": 2, + "args": 2, + "types": [ + "var", + "var" + ] + } + ] + }, + "statSync": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "writeStubPackageJsons": { + "occurrences": 2, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 2, + "args": 0, + "types": [] + } + ] + }, + "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" + ] + } + ] + } + } + }, + { + "label": "(other)", + "method_count": 4, + "imports": [], + "arg_patterns": {} + } + ], + "total_methods": 6203 + }, + { + "language": ".js", + "conventions": [], + "total_methods": 0 + } +] diff --git a/experiments/results/round21_loosened_filtering/zod.log b/experiments/results/round21_loosened_filtering/zod.log new file mode 100644 index 0000000..04940ed --- /dev/null +++ b/experiments/results/round21_loosened_filtering/zod.log @@ -0,0 +1,51 @@ +[ 0.0s] Scanning /home/tobi/Desktop/dervish/external_refs/zod ... +[ 0.0s] Preprocessing 372 files across 12 workers ... +[ 4.5s] Preprocess: 6203 methods from 372 .ts files (4.5s) +[ 4.5s] Groups: 22 named, 4 ungrouped methods +[ 4.5s] ├ (1 methods) +[ 4.5s] ├ packages/bench (170 methods) +[ 4.5s] ├ packages/docs/app/llms-full.txt (3 methods) +[ 4.5s] ├ packages/docs/app/llms.txt (3 methods) +[ 4.5s] ├ packages/docs/content (16 methods) +[ 4.5s] ├ packages/docs/loaders (7 methods) +[ 4.5s] ├ packages/resolution (8 methods) +[ 4.5s] ├ packages/tsc (12 methods) +[ 4.5s] ├ packages/tsc/bench (3 methods) +[ 4.5s] ├ packages/zod/src/v3 (383 methods) +[ 4.5s] ├ packages/zod/src/v3/benchmarks (91 methods) +[ 4.5s] ├ packages/zod/src/v3/helpers (31 methods) +[ 4.5s] ├ packages/zod/src/v3/tests (985 methods) +[ 4.5s] ├ packages/zod/src/v4/classic (409 methods) +[ 4.5s] ├ packages/zod/src/v4/classic/tests (2342 methods) +[ 4.5s] ├ packages/zod/src/v4/core (704 methods) +[ 4.5s] ├ packages/zod/src/v4/core/tests (43 methods) +[ 4.5s] ├ packages/zod/src/v4/core/tests/locales (85 methods) +[ 4.5s] ├ packages/zod/src/v4/locales (214 methods) +[ 4.5s] ├ packages/zod/src/v4/mini (199 methods) +[ 4.5s] ├ packages/zod/src/v4/mini/tests (484 methods) +[ 4.5s] ├ scripts (6 methods) +[ 4.5s] └ (other) (4 methods) +[ 4.5s] Inferring 22 groups across 12 workers ... +[ 4.7s] [1/22] (1 methods) done (0.2s) +[ 4.8s] [2/22] packages/docs/content (16 methods) done (0.2s) +[ 4.8s] [3/22] packages/tsc/bench (3 methods) done (0.3s) +[ 4.8s] [4/22] packages/docs/app/llms.txt (3 methods) done (0.3s) +[ 4.9s] [5/22] packages/docs/app/llms-full.txt (3 methods) done (0.3s) +[ 5.0s] [6/22] packages/resolution (8 methods) done (0.4s) +[ 5.0s] [7/22] packages/tsc (12 methods) done (0.4s) +[ 5.1s] [8/22] packages/docs/loaders (7 methods) done (0.5s) +[ 5.1s] [9/22] packages/zod/src/v3/helpers (31 methods) done (0.6s) +[ 5.3s] [10/22] packages/zod/src/v4/core/tests (43 methods) done (0.8s) +[ 5.4s] [11/22] packages/zod/src/v3 (383 methods) done (0.8s) +[ 5.5s] [12/22] packages/zod/src/v4/mini (199 methods) done (1.0s) +[ 5.6s] [13/22] packages/zod/src/v4/classic (409 methods) done (1.0s) +[ 5.6s] [14/22] packages/zod/src/v3/benchmarks (91 methods) done (1.1s) +[ 5.7s] [15/22] scripts (6 methods) done (1.1s) +[ 6.3s] [16/22] packages/zod/src/v4/core/tests/locales (85 methods) done (1.8s) +[ 6.7s] [17/22] packages/zod/src/v4/mini/tests (484 methods) done (2.2s) +[ 6.8s] [18/22] packages/zod/src/v4/core (704 methods) done (2.3s) +[ 7.9s] [19/22] packages/bench (170 methods) done (3.3s) +[ 10.7s] [20/22] packages/zod/src/v3/tests (985 methods) done (6.1s) +[ 10.8s] [21/22] packages/zod/src/v4/locales (214 methods) done (6.3s) +[ 11.9s] [22/22] packages/zod/src/v4/classic/tests (2342 methods) done (7.3s) +[ 11.9s] Preprocessing 2 files across 12 workers ... diff --git a/experiments/results/round22_noise_filtering/SUMMARY.md b/experiments/results/round22_noise_filtering/SUMMARY.md new file mode 100644 index 0000000..cf1f0c8 --- /dev/null +++ b/experiments/results/round22_noise_filtering/SUMMARY.md @@ -0,0 +1,48 @@ +# Round 22: Noise Filtering + +## Changes Made +- Added `filter_noise()` function to `bex/gbnf.py` — removes test/stdlib noise tokens from AST +- Added `grammar_noise_ratio()` function — calculates fraction of symbols that are noise +- Integrated noise filtering into `_build_json_output()` and `_build_yaml_output()` +- Noise tokens: `TEST_NOISE` (assertEquals, mockk, verify, etc.) + `STDLIB_NOISE` (listOf, mapOf, filter, etc.) + +## Results + +### Precision Improvement + +| Codebase | Before (no filtering) | After (with filtering) | Improvement | +|----------|----------------------|------------------------|-------------| +| RAGSAK | 54.8% | 84.3% | +29.5pp | +| FastAPI | 28.7% | 94.2% | +65.5pp | +| Zod | 34.8% | 90.0% | +55.2pp | + +### Grammar Count (unchanged — filtering is post-hoc) + +| Codebase | Before | After | +|----------|--------|-------| +| RAGSAK | 102 | 102 | +| FastAPI | 121 | 121 | +| Zod | 10 | 10 | +| **Total** | **233** | **233** | + +### Key Findings + +1. **Noise filtering dramatically improved precision** — from 28-55% to 84-94% +2. **Grammar count unchanged** — filtering is post-hoc, doesn't affect recall +3. **Precision-recall tradeoff resolved** — high recall (233 grammars) + high precision (84-94%) +4. **FastAPI improved most** — from 28.7% to 94.2% (+65.5pp) because test noise was dominant +5. **Zod improved significantly** — from 34.8% to 90.0% (+55.2pp) + +## How It Works + +The `filter_noise()` function walks the AST and removes Symbol nodes whose text is in the noise set. This: + +1. Removes test framework calls (assertEquals, mockk, verify, etc.) +2. Removes stdlib calls (listOf, mapOf, filter, etc.) +3. Preserves domain-specific tokens (API calls, domain concepts) +4. Cleans up empty alternation groups after removal + +## Next Steps +1. Commit noise filtering changes +2. Build GBNF delivery mechanism +3. Test with opencode diff --git a/experiments/results/round22_noise_filtering/fastapi.json b/experiments/results/round22_noise_filtering/fastapi.json new file mode 100644 index 0000000..a481aa9 --- /dev/null +++ b/experiments/results/round22_noise_filtering/fastapi.json @@ -0,0 +1,34014 @@ +[ + { + "language": ".js", + "conventions": [ + { + "label": "docs/en/docs/js", + "method_count": 49, + "imports": [], + "arg_patterns": { + "activate": { + "occurrences": 4, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 4, + "args": 2, + "types": [ + "var", + "lit" + ] + } + ] + }, + "reject": { + "occurrences": 2, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 2, + "args": 0, + "types": [] + } + ] + }, + "saveBuffer": { + "occurrences": 10, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 10, + "args": 0, + "types": [] + } + ] + }, + "URL": { + "occurrences": 4, + "arg_count": { + "min": 1, + "max": 2, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 2, + "types": [ + "var", + "other" + ] + }, + { + "count": 2, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "showRandomAnnouncement": { + "occurrences": 4, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 4, + "args": 2, + "types": [ + "lit", + "lit" + ] + } + ] + }, + "Promise": { + "occurrences": 6, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 6, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "Termynal": { + "occurrences": 6, + "arg_count": { + "min": 1, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 4, + "args": 2, + "types": [ + "var", + "other" + ] + }, + { + "count": 2, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "announceRandom": { + "occurrences": 2, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 2, + "args": 0, + "types": [] + } + ] + }, + "setupOpinionsTabs": { + "occurrences": 2, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 2, + "args": 0, + "types": [] + } + ] + }, + "openLinksInNewTab": { + "occurrences": 2, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 2, + "args": 0, + "types": [] + } + ] + }, + "resolve": { + "occurrences": 4, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 4, + "args": 0, + "types": [] + } + ] + }, + "createTermynals": { + "occurrences": 2, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 2, + "args": 0, + "types": [] + } + ] + }, + "loadVisibleTermynals": { + "occurrences": 2, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 2, + "args": 0, + "types": [] + } + ] + }, + "setInterval": { + "occurrences": 2, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 2, + "args": 2, + "types": [ + "var", + "var" + ] + } + ] + }, + "setupTermynal": { + "occurrences": 2, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 2, + "args": 0, + "types": [] + } + ] + }, + "main": { + "occurrences": 2, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 2, + "args": 0, + "types": [] + } + ] + }, + "shuffle": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "handleSponsorImages": { + "occurrences": 2, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 2, + "args": 0, + "types": [] + } + ] + }, + "new": { + "occurrences": 7, + "arg_count": { + "min": 1, + "max": 2, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 2, + "types": [ + "var", + "other" + ] + }, + { + "count": 2, + "args": 1, + "types": [ + "other" + ] + }, + { + "count": 2, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "getComputedStyle": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "parseFloat": { + "occurrences": 15, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 15, + "args": 1, + "types": [ + "call" + ] + } + ] + }, + "setTimeout": { + "occurrences": 2, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 2, + "args": 2, + "types": [ + "var", + "var" + ] + } + ] + } + } + }, + { + "label": "(other)", + "method_count": 1, + "imports": [], + "arg_patterns": {} + } + ], + "total_methods": 50 + }, + { + "language": ".py", + "conventions": [ + { + "label": "docs_src", + "method_count": 45, + "imports": [ + "from typing import Annotated", + "from fastapi import Body, FastAPI, status", + "from fastapi.responses import JSONResponse", + "from fastapi import FastAPI", + "import pytest", + "from httpx import ASGITransport, AsyncClient", + "from .main import app", + "from fastapi import Depends, FastAPI, HTTPException, status", + "from fastapi.security import HTTPAuthorizationCredentials, HTTPBearer", + "from fastapi import Body, FastAPI", + "from pydantic import BaseModel, Field", + "from pydantic_settings import BaseSettings", + "from fastapi import Cookie, FastAPI", + "from fastapi.middleware.cors import CORSMiddleware", + "import uvicorn", + "from datetime import datetime", + "from fastapi.encoders import jsonable_encoder", + "from pydantic import BaseModel", + "from fastapi.openapi.utils import get_openapi", + "from datetime import datetime, time, timedelta", + "from uuid import UUID", + "import strawberry", + "from strawberry.fastapi import GraphQLRouter", + "import time", + "from fastapi import FastAPI, Request", + "from fastapi import APIRouter, FastAPI", + "from pydantic import BaseModel, HttpUrl", + "from fastapi import FastAPI, Form", + "from fastapi import FastAPI, File, Form, UploadFile", + "from fastapi import FastAPI, Response, status", + "from fastapi import FastAPI, Response", + "from fastapi import FastAPI, status", + "from fastapi.responses import HTMLResponse", + "from fastapi.staticfiles import StaticFiles", + "from fastapi.templating import Jinja2Templates", + "from a2wsgi import WSGIMiddleware", + "from flask import Flask, request", + "from markupsafe import escape" + ], + "arg_patterns": { + "Body": { + "occurrences": 42, + "arg_count": { + "min": 0, + "max": 1, + "common": 0 + }, + "patterns": [ + { + "count": 27, + "args": 0, + "types": [] + }, + { + "count": 15, + "args": 1, + "types": [ + "kwarg" + ] + } + ] + }, + "FastAPI": { + "occurrences": 123, + "arg_count": { + "min": 0, + "max": 1, + "common": 0 + }, + "patterns": [ + { + "count": 117, + "args": 0, + "types": [] + }, + { + "count": 6, + "args": 1, + "types": [ + "kwarg" + ] + } + ] + }, + "StaticFiles": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "kwarg" + ] + } + ] + }, + "Jinja2Templates": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "kwarg" + ] + } + ] + }, + "Item": { + "occurrences": 5, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 5, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "class": { + "occurrences": 12, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 12, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "Cookie": { + "occurrences": 6, + "arg_count": { + "min": 0, + "max": 1, + "common": 0 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "kwarg" + ] + }, + { + "count": 3, + "args": 0, + "types": [] + } + ] + }, + "Subscription": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "JSONResponse": { + "occurrences": 15, + "arg_count": { + "min": 1, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 9, + "args": 2, + "types": [ + "kwarg", + "kwarg" + ] + }, + { + "count": 6, + "args": 1, + "types": [ + "kwarg" + ] + } + ] + }, + "Response": { + "occurrences": 3, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 3, + "args": 2, + "types": [ + "kwarg", + "kwarg" + ] + } + ] + }, + "len": { + "occurrences": 8, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 8, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "File": { + "occurrences": 12, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 12, + "args": 0, + "types": [] + } + ] + }, + "Form": { + "occurrences": 18, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 18, + "args": 0, + "types": [] + } + ] + }, + "jsonable_encoder": { + "occurrences": 6, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 6, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "str": { + "occurrences": 5, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 5, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "call_next": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "GraphQLRouter": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "User": { + "occurrences": 3, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 3, + "args": 2, + "types": [ + "kwarg", + "kwarg" + ] + } + ] + }, + "Settings": { + "occurrences": 8, + "arg_count": { + "min": 0, + "max": 1, + "common": 0 + }, + "patterns": [ + { + "count": 6, + "args": 0, + "types": [] + }, + { + "count": 2, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "AsyncClient": { + "occurrences": 3, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 3, + "args": 2, + "types": [ + "kwarg", + "kwarg" + ] + } + ] + }, + "ASGITransport": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "kwarg" + ] + } + ] + }, + "APIRouter": { + "occurrences": 3, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 3, + "args": 0, + "types": [] + } + ] + }, + "Invoice": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "InvoiceEvent": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "InvoiceEventReceived": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "get_openapi": { + "occurrences": 3, + "arg_count": { + "min": 5, + "max": 5, + "common": 5 + }, + "patterns": [ + { + "count": 3, + "args": 5, + "types": [ + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg" + ] + } + ] + }, + "Flask": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "WSGIMiddleware": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "escape": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "Field": { + "occurrences": 12, + "arg_count": { + "min": 2, + "max": 3, + "common": 2 + }, + "patterns": [ + { + "count": 6, + "args": 3, + "types": [ + "kwarg", + "kwarg", + "kwarg" + ] + }, + { + "count": 6, + "args": 2, + "types": [ + "kwarg", + "kwarg" + ] + } + ] + }, + "HTTPException": { + "occurrences": 3, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 3, + "args": 2, + "types": [ + "kwarg", + "kwarg" + ] + } + ] + }, + "Depends": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "call" + ] + } + ] + }, + "HTTPBearer403": { + "occurrences": 4, + "arg_count": { + "min": 0, + "max": 1, + "common": 0 + }, + "patterns": [ + { + "count": 3, + "args": 0, + "types": [] + }, + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + } + } + }, + { + "label": "docs_src/additional_responses", + "method_count": 4, + "grammar": "root ::= (\"img\" | \"item_id\")? (\"FileResponse\" | \"media_type\")?+ \"JSONResponse\"?+ \"status_code\"? \"content\"?", + "grammar_clean": "root ::= (\"img\" | \"item_id\")? (\"FileResponse\" | \"media_type\")?+ \"JSONResponse\"?+ \"status_code\"? \"content\"?", + "noise_ratio": 0.3, + "symbols_before": 10, + "symbols_after": 7, + "algorithm": "CRX", + "mdl_score": 3696, + "imports": [ + "from fastapi import FastAPI", + "from fastapi.responses import JSONResponse", + "from pydantic import BaseModel", + "from fastapi.responses import FileResponse" + ], + "arg_patterns": { + "FastAPI": { + "occurrences": 12, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 12, + "args": 0, + "types": [] + } + ] + }, + "FileResponse": { + "occurrences": 6, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 6, + "args": 2, + "types": [ + "lit", + "kwarg" + ] + } + ] + }, + "Item": { + "occurrences": 4, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 4, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "class": { + "occurrences": 6, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 6, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "JSONResponse": { + "occurrences": 6, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 6, + "args": 2, + "types": [ + "kwarg", + "kwarg" + ] + } + ] + }, + "Message": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "var" + ] + } + ] + } + } + }, + { + "label": "docs_src/advanced_middleware", + "method_count": 3, + "imports": [ + "from fastapi import FastAPI", + "from fastapi.middleware.httpsredirect import HTTPSRedirectMiddleware", + "from fastapi.middleware.trustedhost import TrustedHostMiddleware", + "from fastapi.middleware.gzip import GZipMiddleware" + ], + "arg_patterns": { + "FastAPI": { + "occurrences": 9, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 9, + "args": 0, + "types": [] + } + ] + } + } + }, + { + "label": "docs_src/app_testing", + "method_count": 14, + "grammar": "root ::= (\"response\" | \"status_code\")?+ \"json\"?+ \"app\"?", + "grammar_clean": "root ::= (\"response\" | \"status_code\")?+ \"json\"?+ \"app\"?", + "noise_ratio": 0.43, + "symbols_before": 7, + "symbols_after": 4, + "algorithm": "CRX", + "mdl_score": 256, + "imports": [ + "from fastapi import FastAPI", + "from fastapi.testclient import TestClient", + "from .main import app", + "from fastapi.websockets import WebSocket", + "from contextlib import asynccontextmanager" + ], + "arg_patterns": { + "FastAPI": { + "occurrences": 15, + "arg_count": { + "min": 0, + "max": 1, + "common": 0 + }, + "patterns": [ + { + "count": 12, + "args": 0, + "types": [] + }, + { + "count": 3, + "args": 1, + "types": [ + "kwarg" + ] + } + ] + }, + "TestClient": { + "occurrences": 18, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 18, + "args": 1, + "types": [ + "var" + ] + } + ] + } + } + }, + { + "label": "docs_src/app_testing/app_b_an_py310", + "method_count": 8, + "grammar": "root ::= \"fake_db\"? (\"HTTPException\" | \"detail\" | \"fake_secret_token\" | \"headers\" | \"json\" | \"post\" | \"raise\" | \"response\" | \"status_code\" | \"x_token\")+", + "grammar_clean": "root ::= \"fake_db\"? (\"HTTPException\" | \"detail\" | \"fake_secret_token\" | \"headers\" | \"json\" | \"post\" | \"raise\" | \"response\" | \"status_code\" | \"x_token\")+", + "noise_ratio": 0.27, + "symbols_before": 15, + "symbols_after": 11, + "algorithm": "CRX", + "mdl_score": 838916, + "imports": [ + "from typing import Annotated", + "from fastapi import FastAPI, Header, HTTPException", + "from pydantic import BaseModel", + "from fastapi.testclient import TestClient", + "from .main import app" + ], + "arg_patterns": { + "FastAPI": { + "occurrences": 3, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 3, + "args": 0, + "types": [] + } + ] + }, + "Header": { + "occurrences": 6, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 6, + "args": 0, + "types": [] + } + ] + }, + "Item": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "HTTPException": { + "occurrences": 12, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 12, + "args": 2, + "types": [ + "kwarg", + "kwarg" + ] + } + ] + }, + "class": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "TestClient": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "var" + ] + } + ] + } + } + }, + { + "label": "docs_src/app_testing/app_b_py310", + "method_count": 8, + "grammar": "root ::= \"fake_db\"? (\"HTTPException\" | \"detail\" | \"fake_secret_token\" | \"headers\" | \"json\" | \"post\" | \"raise\" | \"response\" | \"status_code\" | \"x_token\")+", + "grammar_clean": "root ::= \"fake_db\"? (\"HTTPException\" | \"detail\" | \"fake_secret_token\" | \"headers\" | \"json\" | \"post\" | \"raise\" | \"response\" | \"status_code\" | \"x_token\")+", + "noise_ratio": 0.27, + "symbols_before": 15, + "symbols_after": 11, + "algorithm": "CRX", + "mdl_score": 838916, + "imports": [ + "from fastapi import FastAPI, Header, HTTPException", + "from pydantic import BaseModel", + "from fastapi.testclient import TestClient", + "from .main import app" + ], + "arg_patterns": { + "TestClient": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "HTTPException": { + "occurrences": 12, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 12, + "args": 2, + "types": [ + "kwarg", + "kwarg" + ] + } + ] + }, + "Header": { + "occurrences": 6, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 6, + "args": 0, + "types": [] + } + ] + }, + "FastAPI": { + "occurrences": 3, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 3, + "args": 0, + "types": [] + } + ] + }, + "Item": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "class": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + } + } + }, + { + "label": "docs_src/background_tasks", + "method_count": 8, + "grammar": "root ::= \"open\"?+ \"mode\"? \"log\"?+ \"write\"?+ (\"add_task\" | \"background_tasks\" | \"email\" | \"message\" | \"q\" | \"write_log\")?+", + "grammar_clean": "root ::= \"open\"?+ \"mode\"? \"log\"?+ \"write\"?+ (\"add_task\" | \"background_tasks\" | \"email\" | \"message\" | \"q\" | \"write_log\")?+", + "noise_ratio": 0.17, + "symbols_before": 12, + "symbols_after": 10, + "algorithm": "CRX", + "mdl_score": 133, + "imports": [ + "from fastapi import BackgroundTasks, FastAPI", + "from typing import Annotated", + "from fastapi import BackgroundTasks, Depends, FastAPI" + ], + "arg_patterns": { + "open": { + "occurrences": 12, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 12, + "args": 2, + "types": [ + "lit", + "kwarg" + ] + } + ] + }, + "FastAPI": { + "occurrences": 9, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 9, + "args": 0, + "types": [] + } + ] + }, + "Depends": { + "occurrences": 6, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 6, + "args": 1, + "types": [ + "var" + ] + } + ] + } + } + }, + { + "label": "docs_src/behind_a_proxy", + "method_count": 5, + "grammar": "root ::= \"request\"? \"scope\"?", + "grammar_clean": "root ::= \"request\"? \"scope\"?", + "noise_ratio": 0.5, + "symbols_before": 4, + "symbols_after": 2, + "algorithm": "CRX", + "mdl_score": 48, + "imports": [ + "from fastapi import FastAPI", + "from fastapi import FastAPI, Request" + ], + "arg_patterns": { + "FastAPI": { + "occurrences": 15, + "arg_count": { + "min": 0, + "max": 3, + "common": 0 + }, + "patterns": [ + { + "count": 6, + "args": 0, + "types": [] + }, + { + "count": 3, + "args": 3, + "types": [ + "kwarg", + "kwarg", + "kwarg" + ] + }, + { + "count": 3, + "args": 1, + "types": [ + "kwarg" + ] + }, + { + "count": 3, + "args": 2, + "types": [ + "kwarg", + "kwarg" + ] + } + ] + } + } + }, + { + "label": "docs_src/bigger_applications/app_an_py310", + "method_count": 4, + "grammar": "root ::= (\"token\" | \"x_token\")? \"raise\"? \"HTTPException\"?+ \"status_code\"? \"detail\"?", + "grammar_clean": "root ::= (\"token\" | \"x_token\")? \"raise\"? \"HTTPException\"?+ \"status_code\"? \"detail\"?", + "noise_ratio": 0.25, + "symbols_before": 8, + "symbols_after": 6, + "algorithm": "CRX", + "mdl_score": 517, + "imports": [ + "from typing import Annotated", + "from fastapi import Header, HTTPException", + "from fastapi import APIRouter", + "from fastapi import Depends, FastAPI", + "from .dependencies import get_query_token, get_token_header", + "from .internal import admin", + "from .routers import items, users" + ], + "arg_patterns": { + "HTTPException": { + "occurrences": 6, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 6, + "args": 2, + "types": [ + "kwarg", + "kwarg" + ] + } + ] + }, + "Header": { + "occurrences": 3, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 3, + "args": 0, + "types": [] + } + ] + }, + "FastAPI": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "kwarg" + ] + } + ] + }, + "Depends": { + "occurrences": 6, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 6, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "APIRouter": { + "occurrences": 3, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 3, + "args": 0, + "types": [] + } + ] + } + } + }, + { + "label": "docs_src/bigger_applications/app_an_py310/routers", + "method_count": 6, + "grammar": "root ::= (\"HTTPException\" | \"detail\" | \"fake_items_db\" | \"item_id\" | \"not\" | \"not in\" | \"raise\" | \"status_code\")?+ \"username\"?", + "grammar_clean": "root ::= (\"HTTPException\" | \"detail\" | \"fake_items_db\" | \"item_id\" | \"not\" | \"not in\" | \"raise\" | \"status_code\")?+ \"username\"?", + "noise_ratio": 0.25, + "symbols_before": 12, + "symbols_after": 9, + "algorithm": "CRX", + "mdl_score": 199070, + "imports": [ + "from fastapi import APIRouter, Depends, HTTPException", + "from ..dependencies import get_token_header", + "from fastapi import APIRouter" + ], + "arg_patterns": { + "APIRouter": { + "occurrences": 6, + "arg_count": { + "min": 0, + "max": 4, + "common": 0 + }, + "patterns": [ + { + "count": 3, + "args": 0, + "types": [] + }, + { + "count": 3, + "args": 4, + "types": [ + "kwarg", + "kwarg", + "kwarg", + "kwarg" + ] + } + ] + }, + "Depends": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "HTTPException": { + "occurrences": 6, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 6, + "args": 2, + "types": [ + "kwarg", + "kwarg" + ] + } + ] + } + } + }, + { + "label": "docs_src/body", + "method_count": 4, + "grammar": "root ::= (\"is not\" | \"item\" | \"item_dict\" | \"item_id\" | \"model_dump\" | \"not\" | \"price\" | \"price_with_tax\" | \"q\" | \"result\" | \"tax\" | \"update\")+", + "grammar_clean": "root ::= (\"is not\" | \"item\" | \"item_dict\" | \"item_id\" | \"model_dump\" | \"not\" | \"price\" | \"price_with_tax\" | \"q\" | \"result\" | \"tax\" | \"update\")+", + "noise_ratio": 0.2, + "symbols_before": 15, + "symbols_after": 12, + "algorithm": "CRX", + "mdl_score": 1591260, + "imports": [ + "from fastapi import FastAPI", + "from pydantic import BaseModel" + ], + "arg_patterns": { + "FastAPI": { + "occurrences": 12, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 12, + "args": 0, + "types": [] + } + ] + }, + "Item": { + "occurrences": 4, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 4, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "class": { + "occurrences": 4, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 4, + "args": 1, + "types": [ + "var" + ] + } + ] + } + } + }, + { + "label": "docs_src/body_multiple_params", + "method_count": 9, + "grammar": "root ::= (\"importance\" | \"item\" | \"item_id\" | \"q\" | \"results\" | \"update\" | \"user\")+", + "grammar_clean": "root ::= (\"importance\" | \"item\" | \"item_id\" | \"q\" | \"results\" | \"update\" | \"user\")+", + "noise_ratio": 0.22, + "symbols_before": 9, + "symbols_after": 7, + "algorithm": "CRX", + "mdl_score": 167841, + "imports": [ + "from typing import Annotated", + "from fastapi import FastAPI, Path", + "from pydantic import BaseModel", + "from fastapi import FastAPI", + "from fastapi import Body, FastAPI" + ], + "arg_patterns": { + "Path": { + "occurrences": 6, + "arg_count": { + "min": 3, + "max": 3, + "common": 3 + }, + "patterns": [ + { + "count": 6, + "args": 3, + "types": [ + "kwarg", + "kwarg", + "kwarg" + ] + } + ] + }, + "Item": { + "occurrences": 9, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 9, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "FastAPI": { + "occurrences": 27, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 27, + "args": 0, + "types": [] + } + ] + }, + "class": { + "occurrences": 14, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 14, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "User": { + "occurrences": 5, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 5, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "Body": { + "occurrences": 18, + "arg_count": { + "min": 0, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 12, + "args": 1, + "types": [ + "kwarg" + ] + }, + { + "count": 6, + "args": 0, + "types": [] + } + ] + } + } + }, + { + "label": "docs_src/body_nested_models", + "method_count": 9, + "grammar": "root ::= (\"item\" | \"item_id\" | \"results\")+", + "grammar_clean": "root ::= (\"item\" | \"item_id\" | \"results\")+", + "noise_ratio": 0.25, + "symbols_before": 4, + "symbols_after": 3, + "algorithm": "CRX", + "mdl_score": 676, + "imports": [ + "from fastapi import FastAPI", + "from pydantic import BaseModel", + "from pydantic import BaseModel, HttpUrl" + ], + "arg_patterns": { + "Item": { + "occurrences": 7, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 7, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "FastAPI": { + "occurrences": 27, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 27, + "args": 0, + "types": [] + } + ] + }, + "class": { + "occurrences": 13, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 13, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "set": { + "occurrences": 25, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 25, + "args": 0, + "types": [] + } + ] + }, + "Image": { + "occurrences": 5, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 5, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "Offer": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + } + } + }, + { + "label": "docs_src/body_updates", + "method_count": 4, + "grammar": "root ::= (\"Item\" | \"exclude_unset\" | \"item\" | \"item_id\" | \"items\" | \"jsonable_encoder\" | \"model_copy\" | \"model_dump\" | \"stored_item_data\" | \"stored_item_model\" | \"update\" | \"update_data\" | \"update_item_encoded\" | \"updated_item\")+", + "grammar_clean": "root ::= (\"Item\" | \"exclude_unset\" | \"item\" | \"item_id\" | \"items\" | \"jsonable_encoder\" | \"model_copy\" | \"model_dump\" | \"stored_item_data\" | \"stored_item_model\" | \"update\" | \"update_data\" | \"update_item_encoded\" | \"updated_item\")+", + "noise_ratio": 0.07, + "symbols_before": 15, + "symbols_after": 14, + "algorithm": "CRX", + "mdl_score": 1688445, + "imports": [ + "from fastapi import FastAPI", + "from fastapi.encoders import jsonable_encoder", + "from pydantic import BaseModel" + ], + "arg_patterns": { + "jsonable_encoder": { + "occurrences": 6, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 6, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "FastAPI": { + "occurrences": 6, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 6, + "args": 0, + "types": [] + } + ] + }, + "Item": { + "occurrences": 5, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "other" + ] + }, + { + "count": 2, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "class": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "var" + ] + } + ] + } + } + }, + { + "label": "docs_src/configure_swagger_ui", + "method_count": 3, + "imports": [ + "from fastapi import FastAPI" + ], + "arg_patterns": { + "FastAPI": { + "occurrences": 9, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 9, + "args": 1, + "types": [ + "kwarg" + ] + } + ] + } + } + }, + { + "label": "docs_src/cookie_param_models", + "method_count": 4, + "imports": [ + "from typing import Annotated", + "from fastapi import Cookie, FastAPI", + "from pydantic import BaseModel" + ], + "arg_patterns": { + "Cookie": { + "occurrences": 12, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 12, + "args": 0, + "types": [] + } + ] + }, + "Cookies": { + "occurrences": 4, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 4, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "FastAPI": { + "occurrences": 12, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 12, + "args": 0, + "types": [] + } + ] + }, + "class": { + "occurrences": 4, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 4, + "args": 1, + "types": [ + "var" + ] + } + ] + } + } + }, + { + "label": "docs_src/custom_docs_ui", + "method_count": 8, + "grammar": "root ::= (\"get_swagger_ui_oauth2_redirect_html\" | \"username\")?+ (\"get_redoc_html\" | \"get_swagger_ui_html\")?+ (\"app\" | \"oauth2_redirect_url\" | \"openapi_url\" | \"title\")?+ \"redoc_js_url\"? \"swagger_ui_oauth2_redirect_url\"? \"swagger_js_url\"? \"swagger_css_url\"?", + "grammar_clean": "root ::= (\"get_swagger_ui_oauth2_redirect_html\" | \"username\")?+ (\"get_redoc_html\" | \"get_swagger_ui_html\")?+ (\"app\" | \"oauth2_redirect_url\" | \"openapi_url\" | \"title\")?+ \"redoc_js_url\"? \"swagger_ui_oauth2_redirect_url\"? \"swagger_js_url\"? \"swagger_css_url\"?", + "noise_ratio": 0.08, + "symbols_before": 13, + "symbols_after": 12, + "algorithm": "CRX", + "mdl_score": 3808, + "imports": [ + "from fastapi import FastAPI", + "from fastapi.openapi.docs import (", + "from fastapi.staticfiles import StaticFiles" + ], + "arg_patterns": { + "StaticFiles": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "kwarg" + ] + } + ] + }, + "get_swagger_ui_html": { + "occurrences": 6, + "arg_count": { + "min": 5, + "max": 5, + "common": 5 + }, + "patterns": [ + { + "count": 6, + "args": 5, + "types": [ + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg" + ] + } + ] + }, + "FastAPI": { + "occurrences": 6, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 6, + "args": 2, + "types": [ + "kwarg", + "kwarg" + ] + } + ] + }, + "get_swagger_ui_oauth2_redirect_html": { + "occurrences": 6, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 6, + "args": 0, + "types": [] + } + ] + }, + "get_redoc_html": { + "occurrences": 6, + "arg_count": { + "min": 3, + "max": 3, + "common": 3 + }, + "patterns": [ + { + "count": 6, + "args": 3, + "types": [ + "kwarg", + "kwarg", + "kwarg" + ] + } + ] + } + } + }, + { + "label": "docs_src/custom_request_and_route", + "method_count": 18, + "grammar": "root ::= \"await\"? \"original_route_handler\"?+ \"super\"?+ \"get_route_handler\"?+ \"async\"? \"def\"? \"custom_route_handler\"?+ \"request\"? \"Request\"? \"Response\"?", + "grammar_clean": "root ::= \"await\"? \"original_route_handler\"?+ \"super\"?+ \"get_route_handler\"?+ \"async\"? \"def\"? \"custom_route_handler\"?+ \"request\"? \"Request\"? \"Response\"?", + "noise_ratio": 0.09, + "symbols_before": 11, + "symbols_after": 10, + "algorithm": "CRX", + "mdl_score": 15, + "imports": [ + "import gzip", + "from collections.abc import Callable", + "from typing import Annotated", + "from fastapi import Body, FastAPI, Request, Response", + "from fastapi.routing import APIRoute", + "from fastapi import Body, FastAPI, HTTPException, Request, Response", + "from fastapi.exceptions import RequestValidationError", + "import time", + "from fastapi import APIRouter, FastAPI, Request, Response" + ], + "arg_patterns": { + "original_route_handler": { + "occurrences": 15, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 15, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "FastAPI": { + "occurrences": 15, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 15, + "args": 0, + "types": [] + } + ] + }, + "GzipRequest": { + "occurrences": 8, + "arg_count": { + "min": 1, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 6, + "args": 2, + "types": [ + "other", + "other" + ] + }, + { + "count": 2, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "GzipRoute": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "Body": { + "occurrences": 12, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 12, + "args": 0, + "types": [] + } + ] + }, + "super": { + "occurrences": 28, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 28, + "args": 0, + "types": [] + } + ] + }, + "sum": { + "occurrences": 16, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 16, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "hasattr": { + "occurrences": 8, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 8, + "args": 2, + "types": [ + "var", + "lit" + ] + } + ] + }, + "class": { + "occurrences": 7, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 7, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "str": { + "occurrences": 5, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 5, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "TimedRoute": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "print": { + "occurrences": 12, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 12, + "args": 1, + "types": [ + "lit" + ] + } + ] + }, + "APIRouter": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "kwarg" + ] + } + ] + }, + "HTTPException": { + "occurrences": 6, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 6, + "args": 2, + "types": [ + "kwarg", + "kwarg" + ] + } + ] + }, + "ValidationErrorLoggingRoute": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "var" + ] + } + ] + } + } + }, + { + "label": "docs_src/custom_response", + "method_count": 19, + "imports": [ + "from fastapi import FastAPI", + "from fastapi.responses import UJSONResponse", + "from fastapi.responses import ORJSONResponse", + "from fastapi.responses import HTMLResponse", + "from fastapi.responses import PlainTextResponse", + "from fastapi.responses import RedirectResponse", + "import anyio", + "from fastapi.responses import StreamingResponse", + "from fastapi.responses import FileResponse", + "from typing import Any", + "import orjson", + "from fastapi import FastAPI, Response" + ], + "arg_patterns": { + "FastAPI": { + "occurrences": 45, + "arg_count": { + "min": 0, + "max": 1, + "common": 0 + }, + "patterns": [ + { + "count": 42, + "args": 0, + "types": [] + }, + { + "count": 3, + "args": 1, + "types": [ + "kwarg" + ] + } + ] + }, + "CustomORJSONResponse": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "class": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "HTMLResponse": { + "occurrences": 6, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 6, + "args": 2, + "types": [ + "kwarg", + "kwarg" + ] + } + ] + }, + "generate_html_response": { + "occurrences": 3, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 3, + "args": 0, + "types": [] + } + ] + }, + "ORJSONResponse": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "FileResponse": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "open": { + "occurrences": 4, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 4, + "args": 2, + "types": [ + "var", + "kwarg" + ] + } + ] + }, + "StreamingResponse": { + "occurrences": 6, + "arg_count": { + "min": 1, + "max": 2, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 2, + "types": [ + "call", + "kwarg" + ] + }, + { + "count": 3, + "args": 1, + "types": [ + "call" + ] + } + ] + }, + "iterfile": { + "occurrences": 3, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 3, + "args": 0, + "types": [] + } + ] + }, + "RedirectResponse": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "lit" + ] + } + ] + }, + "range": { + "occurrences": 5, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 5, + "args": 1, + "types": [ + "lit" + ] + } + ] + }, + "fake_video_streamer": { + "occurrences": 3, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 3, + "args": 0, + "types": [] + } + ] + } + } + }, + { + "label": "docs_src/dataclasses_", + "method_count": 4, + "grammar": "root ::= \"item\"? \"author_id\"? \"items\"?", + "grammar_clean": "root ::= \"item\"? \"author_id\"? \"items\"?", + "noise_ratio": 0.25, + "symbols_before": 4, + "symbols_after": 3, + "algorithm": "CRX", + "mdl_score": 7, + "imports": [ + "from dataclasses import dataclass", + "from fastapi import FastAPI", + "from dataclasses import dataclass, field", + "from dataclasses import field # (1)", + "from pydantic.dataclasses import dataclass # (2)" + ], + "arg_patterns": { + "FastAPI": { + "occurrences": 9, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 9, + "args": 0, + "types": [] + } + ] + }, + "field": { + "occurrences": 6, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 6, + "args": 1, + "types": [ + "kwarg" + ] + } + ] + } + } + }, + { + "label": "docs_src/dependencies", + "method_count": 82, + "imports": [ + "from typing import Annotated", + "from fastapi import Depends, FastAPI", + "from typing import Annotated, Any", + "from fastapi import Cookie, Depends, FastAPI", + "from fastapi import Depends, FastAPI, Header, HTTPException", + "from fastapi import Depends", + "from fastapi import Depends, FastAPI, HTTPException", + "import time", + "from fastapi.responses import StreamingResponse", + "from sqlmodel import Field, Session, SQLModel, create_engine" + ], + "arg_patterns": { + "FastAPI": { + "occurrences": 81, + "arg_count": { + "min": 0, + "max": 1, + "common": 0 + }, + "patterns": [ + { + "count": 75, + "args": 0, + "types": [] + }, + { + "count": 6, + "args": 1, + "types": [ + "kwarg" + ] + } + ] + }, + "print": { + "occurrences": 24, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 24, + "args": 1, + "types": [ + "lit" + ] + } + ] + }, + "Depends": { + "occurrences": 123, + "arg_count": { + "min": 0, + "max": 2, + "common": 1 + }, + "patterns": [ + { + "count": 111, + "args": 1, + "types": [ + "var" + ] + }, + { + "count": 6, + "args": 2, + "types": [ + "var", + "kwarg" + ] + }, + { + "count": 6, + "args": 0, + "types": [] + } + ] + }, + "Cookie": { + "occurrences": 6, + "arg_count": { + "min": 0, + "max": 1, + "common": 0 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "kwarg" + ] + }, + { + "count": 3, + "args": 0, + "types": [] + } + ] + }, + "DBSession": { + "occurrences": 6, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 6, + "args": 0, + "types": [] + } + ] + }, + "MySuperContextManager": { + "occurrences": 3, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 3, + "args": 0, + "types": [] + } + ] + }, + "create_engine": { + "occurrences": 6, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 6, + "args": 1, + "types": [ + "lit" + ] + } + ] + }, + "generate_stream": { + "occurrences": 6, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 6, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "Field": { + "occurrences": 6, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 6, + "args": 2, + "types": [ + "kwarg", + "kwarg" + ] + } + ] + }, + "StreamingResponse": { + "occurrences": 6, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 6, + "args": 1, + "types": [ + "kwarg" + ] + } + ] + }, + "Session": { + "occurrences": 6, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 6, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "HTTPException": { + "occurrences": 54, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 54, + "args": 2, + "types": [ + "kwarg", + "kwarg" + ] + } + ] + }, + "User": { + "occurrences": 2, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 2, + "args": 2, + "types": [ + "var", + "kwarg" + ] + } + ] + }, + "class": { + "occurrences": 8, + "arg_count": { + "min": 1, + "max": 2, + "common": 1 + }, + "patterns": [ + { + "count": 6, + "args": 1, + "types": [ + "var" + ] + }, + { + "count": 2, + "args": 2, + "types": [ + "var", + "kwarg" + ] + } + ] + }, + "generate_dep_b": { + "occurrences": 6, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 6, + "args": 0, + "types": [] + } + ] + }, + "generate_dep_a": { + "occurrences": 6, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 6, + "args": 0, + "types": [] + } + ] + }, + "generate_dep_c": { + "occurrences": 6, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 6, + "args": 0, + "types": [] + } + ] + }, + "OwnerError": { + "occurrences": 8, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 8, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "InternalError": { + "occurrences": 16, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 12, + "args": 1, + "types": [ + "lit" + ] + }, + { + "count": 4, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "Header": { + "occurrences": 24, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 24, + "args": 0, + "types": [] + } + ] + }, + "FixedContentQueryChecker": { + "occurrences": 6, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 6, + "args": 1, + "types": [ + "lit" + ] + } + ] + } + } + }, + { + "label": "docs_src/dependency_testing", + "method_count": 14, + "grammar": "root ::= (\"response\" | \"status_code\")?+ \"json\"?+ \"commons\"?", + "grammar_clean": "root ::= (\"response\" | \"status_code\")?+ \"json\"?+ \"commons\"?", + "noise_ratio": 0.43, + "symbols_before": 7, + "symbols_after": 4, + "algorithm": "CRX", + "mdl_score": 1092, + "imports": [ + "from typing import Annotated", + "from fastapi import Depends, FastAPI", + "from fastapi.testclient import TestClient" + ], + "arg_patterns": { + "FastAPI": { + "occurrences": 6, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 6, + "args": 0, + "types": [] + } + ] + }, + "Depends": { + "occurrences": 12, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 12, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "TestClient": { + "occurrences": 6, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 6, + "args": 1, + "types": [ + "var" + ] + } + ] + } + } + }, + { + "label": "docs_src/events", + "method_count": 7, + "imports": [ + "from fastapi import FastAPI", + "from contextlib import asynccontextmanager" + ], + "arg_patterns": { + "FastAPI": { + "occurrences": 9, + "arg_count": { + "min": 0, + "max": 1, + "common": 0 + }, + "patterns": [ + { + "count": 6, + "args": 0, + "types": [] + }, + { + "count": 3, + "args": 1, + "types": [ + "kwarg" + ] + } + ] + }, + "open": { + "occurrences": 4, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 4, + "args": 2, + "types": [ + "lit", + "kwarg" + ] + } + ] + } + } + }, + { + "label": "docs_src/extra_models", + "method_count": 9, + "grammar": "root ::= (\"UserInDB\" | \"fake_password_hasher\" | \"fake_save_user\" | \"hashed_password\" | \"model_dump\" | \"password\" | \"user_in\" | \"user_in_db\" | \"user_saved\")+ \"raw_password\"?", + "grammar_clean": "root ::= (\"UserInDB\" | \"fake_password_hasher\" | \"fake_save_user\" | \"hashed_password\" | \"model_dump\" | \"password\" | \"user_in\" | \"user_in_db\" | \"user_saved\")+ \"raw_password\"?", + "noise_ratio": 0.17, + "symbols_before": 12, + "symbols_after": 10, + "algorithm": "CRX", + "mdl_score": 373857, + "imports": [ + "from fastapi import FastAPI", + "from pydantic import BaseModel, EmailStr", + "from pydantic import BaseModel" + ], + "arg_patterns": { + "fake_password_hasher": { + "occurrences": 6, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 6, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "fake_save_user": { + "occurrences": 6, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 6, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "UserInDB": { + "occurrences": 8, + "arg_count": { + "min": 1, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 6, + "args": 2, + "types": [ + "other", + "kwarg" + ] + }, + { + "count": 2, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "FastAPI": { + "occurrences": 15, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 15, + "args": 0, + "types": [] + } + ] + }, + "UserIn": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "UserOut": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "print": { + "occurrences": 8, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 8, + "args": 1, + "types": [ + "lit" + ] + } + ] + }, + "class": { + "occurrences": 11, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 11, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "BaseItem": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "CarItem": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "PlaneItem": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "Item": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "UserBase": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + } + } + }, + { + "label": "docs_src/generate_clients", + "method_count": 9, + "imports": [ + "from fastapi import FastAPI", + "from pydantic import BaseModel", + "from fastapi.routing import APIRoute" + ], + "arg_patterns": { + "FastAPI": { + "occurrences": 9, + "arg_count": { + "min": 0, + "max": 1, + "common": 0 + }, + "patterns": [ + { + "count": 6, + "args": 0, + "types": [] + }, + { + "count": 3, + "args": 1, + "types": [ + "kwarg" + ] + } + ] + }, + "Item": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "ResponseMessage": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "class": { + "occurrences": 8, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 8, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "User": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "var" + ] + } + ] + } + } + }, + { + "label": "docs_src/handling_errors", + "method_count": 13, + "grammar": "root ::= \"raise\"? \"HTTPException\"?+ \"item_id\"? \"status_code\"? \"detail\"?", + "grammar_clean": "root ::= \"raise\"? \"HTTPException\"?+ \"item_id\"? \"status_code\"? \"detail\"?", + "noise_ratio": 0.29, + "symbols_before": 7, + "symbols_after": 5, + "algorithm": "CRX", + "mdl_score": 178, + "imports": [ + "from fastapi import FastAPI, HTTPException", + "from fastapi import FastAPI, Request", + "from fastapi.responses import JSONResponse", + "from fastapi.exceptions import RequestValidationError", + "from fastapi.responses import PlainTextResponse", + "from starlette.exceptions import HTTPException as StarletteHTTPException", + "from fastapi.encoders import jsonable_encoder", + "from pydantic import BaseModel", + "from fastapi.exception_handlers import (" + ], + "arg_patterns": { + "FastAPI": { + "occurrences": 18, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 18, + "args": 0, + "types": [] + } + ] + }, + "HTTPException": { + "occurrences": 12, + "arg_count": { + "min": 2, + "max": 3, + "common": 2 + }, + "patterns": [ + { + "count": 9, + "args": 2, + "types": [ + "kwarg", + "kwarg" + ] + }, + { + "count": 3, + "args": 3, + "types": [ + "kwarg", + "kwarg", + "kwarg" + ] + } + ] + }, + "PlainTextResponse": { + "occurrences": 6, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 3, + "args": 2, + "types": [ + "call", + "kwarg" + ] + }, + { + "count": 3, + "args": 2, + "types": [ + "var", + "kwarg" + ] + } + ] + }, + "str": { + "occurrences": 5, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 5, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "UnicornException": { + "occurrences": 4, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "kwarg" + ] + }, + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "JSONResponse": { + "occurrences": 6, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 6, + "args": 2, + "types": [ + "kwarg", + "kwarg" + ] + } + ] + }, + "class": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "print": { + "occurrences": 8, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 8, + "args": 1, + "types": [ + "lit" + ] + } + ] + }, + "request_validation_exception_handler": { + "occurrences": 3, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 3, + "args": 2, + "types": [ + "var", + "var" + ] + } + ] + }, + "repr": { + "occurrences": 4, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 4, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "http_exception_handler": { + "occurrences": 3, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 3, + "args": 2, + "types": [ + "var", + "var" + ] + } + ] + }, + "Item": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "jsonable_encoder": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "other" + ] + } + ] + } + } + }, + { + "label": "docs_src/header_param_models", + "method_count": 6, + "imports": [ + "from typing import Annotated", + "from fastapi import FastAPI, Header", + "from pydantic import BaseModel" + ], + "arg_patterns": { + "FastAPI": { + "occurrences": 18, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 18, + "args": 0, + "types": [] + } + ] + }, + "Header": { + "occurrences": 18, + "arg_count": { + "min": 0, + "max": 1, + "common": 0 + }, + "patterns": [ + { + "count": 12, + "args": 0, + "types": [] + }, + { + "count": 6, + "args": 1, + "types": [ + "kwarg" + ] + } + ] + }, + "CommonHeaders": { + "occurrences": 6, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 6, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "class": { + "occurrences": 6, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 6, + "args": 1, + "types": [ + "var" + ] + } + ] + } + } + }, + { + "label": "docs_src/header_params", + "method_count": 6, + "grammar": "root ::= \"strange_header\" | \"user_agent\" | \"x_token\"", + "grammar_clean": "root ::= \"strange_header\" | \"user_agent\" | \"x_token\"", + "noise_ratio": 0.25, + "symbols_before": 4, + "symbols_after": 3, + "algorithm": "CRX", + "mdl_score": 9, + "imports": [ + "from typing import Annotated", + "from fastapi import FastAPI, Header" + ], + "arg_patterns": { + "FastAPI": { + "occurrences": 18, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 18, + "args": 0, + "types": [] + } + ] + }, + "Header": { + "occurrences": 18, + "arg_count": { + "min": 0, + "max": 2, + "common": 1 + }, + "patterns": [ + { + "count": 9, + "args": 1, + "types": [ + "kwarg" + ] + }, + { + "count": 6, + "args": 0, + "types": [] + }, + { + "count": 3, + "args": 2, + "types": [ + "kwarg", + "kwarg" + ] + } + ] + } + } + }, + { + "label": "docs_src/json_base64_bytes", + "method_count": 3, + "grammar": "root ::= (\"DataOutput\" | \"body\" | \"content\" | \"data\" | \"decode\" | \"description\" | \"encode\")+", + "grammar_clean": "root ::= (\"DataOutput\" | \"body\" | \"content\" | \"data\" | \"decode\" | \"description\" | \"encode\")+", + "noise_ratio": 0.12, + "symbols_before": 8, + "symbols_after": 7, + "algorithm": "CRX", + "mdl_score": 63824, + "imports": [ + "from fastapi import FastAPI", + "from pydantic import BaseModel" + ], + "arg_patterns": { + "DataInput": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "DataOutput": { + "occurrences": 4, + "arg_count": { + "min": 1, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 3, + "args": 2, + "types": [ + "kwarg", + "kwarg" + ] + }, + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "DataInputOutput": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "FastAPI": { + "occurrences": 3, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 3, + "args": 0, + "types": [] + } + ] + }, + "class": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "var" + ] + } + ] + } + } + }, + { + "label": "docs_src/metadata", + "method_count": 6, + "imports": [ + "from fastapi import FastAPI" + ], + "arg_patterns": { + "FastAPI": { + "occurrences": 15, + "arg_count": { + "min": 1, + "max": 7, + "common": 1 + }, + "patterns": [ + { + "count": 6, + "args": 1, + "types": [ + "kwarg" + ] + }, + { + "count": 6, + "args": 7, + "types": [ + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg" + ] + }, + { + "count": 3, + "args": 2, + "types": [ + "kwarg", + "kwarg" + ] + } + ] + } + } + }, + { + "label": "docs_src/path_operation_advanced_configuration", + "method_count": 9, + "grammar": "root ::= \"raw_body\"? \"await\"? \"item\"? \"request\"? \"body\"?+", + "grammar_clean": "root ::= \"raw_body\"? \"await\"? \"item\"? \"request\"? \"body\"?+", + "noise_ratio": 0.17, + "symbols_before": 6, + "symbols_after": 5, + "algorithm": "CRX", + "mdl_score": 108, + "imports": [ + "from fastapi import FastAPI", + "from fastapi.routing import APIRoute", + "from pydantic import BaseModel", + "from fastapi import FastAPI, Request", + "import yaml", + "from fastapi import FastAPI, HTTPException, Request", + "from pydantic import BaseModel, ValidationError" + ], + "arg_patterns": { + "FastAPI": { + "occurrences": 21, + "arg_count": { + "min": 0, + "max": 1, + "common": 0 + }, + "patterns": [ + { + "count": 18, + "args": 0, + "types": [] + }, + { + "count": 3, + "args": 1, + "types": [ + "kwarg" + ] + } + ] + }, + "Item": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "set": { + "occurrences": 5, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 5, + "args": 0, + "types": [] + } + ] + }, + "class": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "len": { + "occurrences": 4, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 4, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "magic_data_reader": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "HTTPException": { + "occurrences": 6, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 6, + "args": 2, + "types": [ + "kwarg", + "kwarg" + ] + } + ] + } + } + }, + { + "label": "docs_src/path_operation_configuration", + "method_count": 12, + "grammar": "root ::= \"item\"?", + "grammar_clean": "root ::= \"item\"?", + "noise_ratio": 0.5, + "symbols_before": 2, + "symbols_after": 1, + "algorithm": "CRX", + "mdl_score": 2, + "imports": [ + "from fastapi import FastAPI, status", + "from pydantic import BaseModel", + "from fastapi import FastAPI", + "from enum import Enum" + ], + "arg_patterns": { + "set": { + "occurrences": 25, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 25, + "args": 0, + "types": [] + } + ] + }, + "Item": { + "occurrences": 5, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 5, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "FastAPI": { + "occurrences": 21, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 21, + "args": 0, + "types": [] + } + ] + }, + "class": { + "occurrences": 6, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 6, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "Tags": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + } + } + }, + { + "label": "docs_src/path_params", + "method_count": 8, + "grammar": "root ::= \"item_id\"?", + "grammar_clean": "root ::= \"item_id\"?", + "noise_ratio": 0.5, + "symbols_before": 2, + "symbols_after": 1, + "algorithm": "CRX", + "mdl_score": 2, + "imports": [ + "from fastapi import FastAPI", + "from enum import Enum" + ], + "arg_patterns": { + "FastAPI": { + "occurrences": 18, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 18, + "args": 0, + "types": [] + } + ] + }, + "ModelName": { + "occurrences": 1, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 1, + "args": 2, + "types": [ + "var", + "var" + ] + } + ] + }, + "class": { + "occurrences": 1, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 1, + "args": 2, + "types": [ + "var", + "var" + ] + } + ] + } + } + }, + { + "label": "docs_src/path_params_numeric_validations", + "method_count": 12, + "grammar": "root ::= (\"item_id\" | \"q\" | \"results\" | \"update\")+", + "grammar_clean": "root ::= (\"item_id\" | \"q\" | \"results\" | \"update\")+", + "noise_ratio": 0.33, + "symbols_before": 6, + "symbols_after": 4, + "algorithm": "CRX", + "mdl_score": 10878, + "imports": [ + "from typing import Annotated", + "from fastapi import FastAPI, Path, Query", + "from fastapi import FastAPI, Path" + ], + "arg_patterns": { + "FastAPI": { + "occurrences": 36, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 36, + "args": 0, + "types": [] + } + ] + }, + "Path": { + "occurrences": 36, + "arg_count": { + "min": 1, + "max": 3, + "common": 1 + }, + "patterns": [ + { + "count": 18, + "args": 1, + "types": [ + "kwarg" + ] + }, + { + "count": 12, + "args": 3, + "types": [ + "kwarg", + "kwarg", + "kwarg" + ] + }, + { + "count": 6, + "args": 2, + "types": [ + "kwarg", + "kwarg" + ] + } + ] + }, + "Query": { + "occurrences": 12, + "arg_count": { + "min": 1, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 9, + "args": 2, + "types": [ + "kwarg", + "kwarg" + ] + }, + { + "count": 3, + "args": 1, + "types": [ + "kwarg" + ] + } + ] + } + } + }, + { + "label": "docs_src/pydantic_v1_in_v2", + "method_count": 3, + "imports": [ + "from fastapi import FastAPI", + "from pydantic.v1 import BaseModel", + "from pydantic import BaseModel as BaseModelV2", + "from typing import Annotated", + "from fastapi.temp_pydantic_v1_params import Body" + ], + "arg_patterns": { + "FastAPI": { + "occurrences": 9, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 9, + "args": 0, + "types": [] + } + ] + }, + "Item": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "class": { + "occurrences": 4, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 4, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "Body": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "kwarg" + ] + } + ] + }, + "ItemV2": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + } + } + }, + { + "label": "docs_src/python_types", + "method_count": 13, + "imports": [ + "from typing import Annotated" + ], + "arg_patterns": { + "print": { + "occurrences": 32, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 16, + "args": 1, + "types": [ + "var" + ] + }, + { + "count": 8, + "args": 1, + "types": [ + "call" + ] + }, + { + "count": 8, + "args": 1, + "types": [ + "lit" + ] + } + ] + }, + "get_full_name": { + "occurrences": 6, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 6, + "args": 2, + "types": [ + "lit", + "lit" + ] + } + ] + }, + "str": { + "occurrences": 5, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 5, + "args": 1, + "types": [ + "var" + ] + } + ] + } + } + }, + { + "label": "docs_src/query_param_models", + "method_count": 4, + "imports": [ + "from typing import Annotated, Literal", + "from fastapi import FastAPI, Query", + "from pydantic import BaseModel, Field", + "from typing import Literal" + ], + "arg_patterns": { + "Field": { + "occurrences": 24, + "arg_count": { + "min": 2, + "max": 3, + "common": 2 + }, + "patterns": [ + { + "count": 12, + "args": 2, + "types": [ + "lit", + "kwarg" + ] + }, + { + "count": 12, + "args": 3, + "types": [ + "lit", + "kwarg", + "kwarg" + ] + } + ] + }, + "FilterParams": { + "occurrences": 4, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 4, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "Query": { + "occurrences": 12, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 12, + "args": 0, + "types": [] + } + ] + }, + "FastAPI": { + "occurrences": 12, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 12, + "args": 0, + "types": [] + } + ] + }, + "class": { + "occurrences": 4, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 4, + "args": 1, + "types": [ + "var" + ] + } + ] + } + } + }, + { + "label": "docs_src/query_params", + "method_count": 6, + "grammar": "root ::= (\"fake_items_db\" | \"item\" | \"item_id\" | \"limit\" | \"needy\" | \"not\" | \"q\" | \"short\" | \"skip\" | \"update\" | \"user_id\")+", + "grammar_clean": "root ::= (\"fake_items_db\" | \"item\" | \"item_id\" | \"limit\" | \"needy\" | \"not\" | \"q\" | \"short\" | \"skip\" | \"update\" | \"user_id\")+", + "noise_ratio": 0.15, + "symbols_before": 13, + "symbols_after": 11, + "algorithm": "CRX", + "mdl_score": 851318, + "imports": [ + "from fastapi import FastAPI" + ], + "arg_patterns": { + "FastAPI": { + "occurrences": 18, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 18, + "args": 0, + "types": [] + } + ] + } + } + }, + { + "label": "docs_src/query_params_str_validations", + "method_count": 31, + "grammar": "root ::= (\"q\" | \"results\" | \"update\")+", + "grammar_clean": "root ::= (\"q\" | \"results\" | \"update\")+", + "noise_ratio": 0.4, + "symbols_before": 5, + "symbols_after": 3, + "algorithm": "CRX", + "mdl_score": 4680, + "imports": [ + "from fastapi import FastAPI", + "from typing import Annotated", + "from fastapi import FastAPI, Query", + "import random", + "from pydantic import AfterValidator" + ], + "arg_patterns": { + "FastAPI": { + "occurrences": 90, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 90, + "args": 0, + "types": [] + } + ] + }, + "Query": { + "occurrences": 84, + "arg_count": { + "min": 0, + "max": 8, + "common": 1 + }, + "patterns": [ + { + "count": 33, + "args": 1, + "types": [ + "kwarg" + ] + }, + { + "count": 18, + "args": 2, + "types": [ + "kwarg", + "kwarg" + ] + }, + { + "count": 12, + "args": 3, + "types": [ + "kwarg", + "kwarg", + "kwarg" + ] + }, + { + "count": 9, + "args": 0, + "types": [] + }, + { + "count": 6, + "args": 4, + "types": [ + "kwarg", + "kwarg", + "kwarg", + "kwarg" + ] + } + ] + }, + "AfterValidator": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "list": { + "occurrences": 5, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 5, + "args": 1, + "types": [ + "call" + ] + } + ] + }, + "ValueError": { + "occurrences": 4, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 4, + "args": 1, + "types": [ + "lit" + ] + } + ] + } + } + }, + { + "label": "docs_src/request_files", + "method_count": 24, + "grammar": "root ::= \"for\"? \"len\"?+ \"file\"? \"filename\"? \"files\"?", + "grammar_clean": "root ::= \"for\"? \"len\"?+ \"file\"? \"filename\"? \"files\"?", + "noise_ratio": 0.29, + "symbols_before": 7, + "symbols_after": 5, + "algorithm": "CRX", + "mdl_score": 250, + "imports": [ + "from typing import Annotated", + "from fastapi import FastAPI, File, UploadFile", + "from fastapi.responses import HTMLResponse" + ], + "arg_patterns": { + "len": { + "occurrences": 40, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 40, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "File": { + "occurrences": 42, + "arg_count": { + "min": 0, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 27, + "args": 1, + "types": [ + "kwarg" + ] + }, + { + "count": 15, + "args": 0, + "types": [] + } + ] + }, + "FastAPI": { + "occurrences": 30, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 30, + "args": 0, + "types": [] + } + ] + }, + "HTMLResponse": { + "occurrences": 12, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 12, + "args": 1, + "types": [ + "kwarg" + ] + } + ] + } + } + }, + { + "label": "docs_src/request_form_models", + "method_count": 4, + "imports": [ + "from typing import Annotated", + "from fastapi import FastAPI, Form", + "from pydantic import BaseModel" + ], + "arg_patterns": { + "FastAPI": { + "occurrences": 12, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 12, + "args": 0, + "types": [] + } + ] + }, + "Form": { + "occurrences": 12, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 12, + "args": 0, + "types": [] + } + ] + }, + "FormData": { + "occurrences": 4, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 4, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "class": { + "occurrences": 4, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 4, + "args": 1, + "types": [ + "var" + ] + } + ] + } + } + }, + { + "label": "docs_src/response_model", + "method_count": 16, + "grammar": "root ::= (\"items\" \"item_id\")?", + "grammar_clean": "root ::= (\"items\" \"item_id\")?", + "noise_ratio": 0.33, + "symbols_before": 3, + "symbols_after": 2, + "algorithm": "iDRegEx", + "mdl_score": 2, + "imports": [ + "from fastapi import FastAPI", + "from pydantic import BaseModel", + "from typing import Any", + "from pydantic import BaseModel, EmailStr", + "from fastapi import FastAPI, Response", + "from fastapi.responses import JSONResponse, RedirectResponse", + "from fastapi.responses import RedirectResponse" + ], + "arg_patterns": { + "FastAPI": { + "occurrences": 36, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 36, + "args": 0, + "types": [] + } + ] + }, + "Item": { + "occurrences": 11, + "arg_count": { + "min": 1, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 6, + "args": 2, + "types": [ + "kwarg", + "kwarg" + ] + }, + { + "count": 5, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "class": { + "occurrences": 10, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 10, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "UserIn": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "RedirectResponse": { + "occurrences": 12, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 12, + "args": 1, + "types": [ + "kwarg" + ] + } + ] + }, + "JSONResponse": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "kwarg" + ] + } + ] + }, + "BaseUser": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "UserOut": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + } + } + }, + { + "label": "docs_src/schema_extra_example", + "method_count": 8, + "grammar": "root ::= (\"item\" | \"item_id\" | \"results\")+", + "grammar_clean": "root ::= (\"item\" | \"item_id\" | \"results\")+", + "noise_ratio": 0.25, + "symbols_before": 4, + "symbols_after": 3, + "algorithm": "CRX", + "mdl_score": 676, + "imports": [ + "from fastapi import FastAPI", + "from pydantic import BaseModel", + "from pydantic import BaseModel, Field", + "from typing import Annotated", + "from fastapi import Body, FastAPI" + ], + "arg_patterns": { + "FastAPI": { + "occurrences": 24, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 24, + "args": 0, + "types": [] + } + ] + }, + "Body": { + "occurrences": 18, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 18, + "args": 1, + "types": [ + "kwarg" + ] + } + ] + }, + "Item": { + "occurrences": 8, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 8, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "class": { + "occurrences": 8, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 8, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "Field": { + "occurrences": 12, + "arg_count": { + "min": 1, + "max": 2, + "common": 1 + }, + "patterns": [ + { + "count": 6, + "args": 2, + "types": [ + "kwarg", + "kwarg" + ] + }, + { + "count": 6, + "args": 1, + "types": [ + "kwarg" + ] + } + ] + } + } + }, + { + "label": "docs_src/security", + "method_count": 70, + "imports": [ + "from typing import Annotated", + "from fastapi import Depends, FastAPI", + "from fastapi.security import OAuth2PasswordBearer", + "from pydantic import BaseModel", + "from fastapi import Depends, FastAPI, HTTPException, status", + "from fastapi.security import OAuth2PasswordBearer, OAuth2PasswordRequestForm", + "from datetime import datetime, timedelta, timezone", + "import jwt", + "from jwt.exceptions import InvalidTokenError", + "from pwdlib import PasswordHash", + "from fastapi import Depends, FastAPI, HTTPException, Security, status", + "from fastapi.security import (", + "from pydantic import BaseModel, ValidationError", + "from fastapi.security import HTTPBasic, HTTPBasicCredentials", + "import secrets" + ], + "arg_patterns": { + "FastAPI": { + "occurrences": 42, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 42, + "args": 0, + "types": [] + } + ] + }, + "HTTPException": { + "occurrences": 72, + "arg_count": { + "min": 2, + "max": 3, + "common": 2 + }, + "patterns": [ + { + "count": 36, + "args": 3, + "types": [ + "kwarg", + "kwarg", + "kwarg" + ] + }, + { + "count": 36, + "args": 2, + "types": [ + "kwarg", + "kwarg" + ] + } + ] + }, + "HTTPBasic": { + "occurrences": 12, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 12, + "args": 0, + "types": [] + } + ] + }, + "Depends": { + "occurrences": 114, + "arg_count": { + "min": 0, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 96, + "args": 1, + "types": [ + "var" + ] + }, + { + "count": 18, + "args": 0, + "types": [] + } + ] + }, + "UserInDB": { + "occurrences": 30, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 24, + "args": 1, + "types": [ + "other" + ] + }, + { + "count": 6, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "timedelta": { + "occurrences": 24, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 24, + "args": 1, + "types": [ + "kwarg" + ] + } + ] + }, + "get_user": { + "occurrences": 30, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 18, + "args": 2, + "types": [ + "var", + "var" + ] + }, + { + "count": 12, + "args": 2, + "types": [ + "var", + "kwarg" + ] + } + ] + }, + "verify_password": { + "occurrences": 24, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 12, + "args": 2, + "types": [ + "var", + "var" + ] + }, + { + "count": 12, + "args": 2, + "types": [ + "var", + "other" + ] + } + ] + }, + "Token": { + "occurrences": 16, + "arg_count": { + "min": 1, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 12, + "args": 2, + "types": [ + "kwarg", + "kwarg" + ] + }, + { + "count": 4, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "TokenData": { + "occurrences": 16, + "arg_count": { + "min": 1, + "max": 2, + "common": 1 + }, + "patterns": [ + { + "count": 6, + "args": 1, + "types": [ + "kwarg" + ] + }, + { + "count": 6, + "args": 2, + "types": [ + "kwarg", + "kwarg" + ] + }, + { + "count": 4, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "User": { + "occurrences": 14, + "arg_count": { + "min": 1, + "max": 3, + "common": 1 + }, + "patterns": [ + { + "count": 8, + "args": 1, + "types": [ + "var" + ] + }, + { + "count": 6, + "args": 3, + "types": [ + "kwarg", + "kwarg", + "kwarg" + ] + } + ] + }, + "OAuth2PasswordBearer": { + "occurrences": 30, + "arg_count": { + "min": 1, + "max": 2, + "common": 1 + }, + "patterns": [ + { + "count": 24, + "args": 1, + "types": [ + "kwarg" + ] + }, + { + "count": 6, + "args": 2, + "types": [ + "kwarg", + "kwarg" + ] + } + ] + }, + "authenticate_user": { + "occurrences": 12, + "arg_count": { + "min": 3, + "max": 3, + "common": 3 + }, + "patterns": [ + { + "count": 12, + "args": 3, + "types": [ + "var", + "other", + "other" + ] + } + ] + }, + "create_access_token": { + "occurrences": 12, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 12, + "args": 2, + "types": [ + "kwarg", + "kwarg" + ] + } + ] + }, + "class": { + "occurrences": 22, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 22, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "fake_hash_password": { + "occurrences": 6, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 6, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "fake_decode_token": { + "occurrences": 12, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 12, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "Security": { + "occurrences": 12, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 12, + "args": 2, + "types": [ + "var", + "kwarg" + ] + } + ] + } + } + }, + { + "label": "docs_src/separate_openapi_schemas", + "method_count": 4, + "grammar": "root ::= (\"Item\" | \"description\" | \"name\")?+ \"item\"?", + "grammar_clean": "root ::= (\"Item\" | \"description\" | \"name\")?+ \"item\"?", + "noise_ratio": 0.2, + "symbols_before": 5, + "symbols_after": 4, + "algorithm": "CRX", + "mdl_score": 1011, + "imports": [ + "from fastapi import FastAPI", + "from pydantic import BaseModel" + ], + "arg_patterns": { + "Item": { + "occurrences": 14, + "arg_count": { + "min": 1, + "max": 2, + "common": 1 + }, + "patterns": [ + { + "count": 6, + "args": 2, + "types": [ + "kwarg", + "kwarg" + ] + }, + { + "count": 6, + "args": 1, + "types": [ + "kwarg" + ] + }, + { + "count": 2, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "FastAPI": { + "occurrences": 6, + "arg_count": { + "min": 0, + "max": 1, + "common": 0 + }, + "patterns": [ + { + "count": 3, + "args": 0, + "types": [] + }, + { + "count": 3, + "args": 1, + "types": [ + "kwarg" + ] + } + ] + }, + "class": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "var" + ] + } + ] + } + } + }, + { + "label": "docs_src/server_sent_events", + "method_count": 8, + "grammar": "root ::= \"id\"? \"for\"? \"str\"?+ \"i\"? (\"ServerSentEvent\" | \"data\" | \"enumerate\" | \"item\" | \"items\" | \"yield\")?+ \"raw_data\"?", + "grammar_clean": "root ::= \"id\"? \"for\"? \"str\"?+ \"i\"? (\"ServerSentEvent\" | \"data\" | \"enumerate\" | \"item\" | \"items\" | \"yield\")?+ \"raw_data\"?", + "noise_ratio": 0.08, + "symbols_before": 12, + "symbols_after": 11, + "algorithm": "CRX", + "mdl_score": 10822, + "imports": [ + "from collections.abc import AsyncIterable, Iterable", + "from fastapi import FastAPI", + "from fastapi.sse import EventSourceResponse", + "from pydantic import BaseModel", + "from collections.abc import AsyncIterable", + "from fastapi.sse import EventSourceResponse, ServerSentEvent", + "from typing import Annotated", + "from fastapi import FastAPI, Header" + ], + "arg_patterns": { + "FastAPI": { + "occurrences": 15, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 15, + "args": 0, + "types": [] + } + ] + }, + "Item": { + "occurrences": 30, + "arg_count": { + "min": 1, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 27, + "args": 2, + "types": [ + "kwarg", + "kwarg" + ] + }, + { + "count": 3, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "Header": { + "occurrences": 3, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 3, + "args": 0, + "types": [] + } + ] + }, + "ServerSentEvent": { + "occurrences": 18, + "arg_count": { + "min": 1, + "max": 4, + "common": 2 + }, + "patterns": [ + { + "count": 9, + "args": 2, + "types": [ + "kwarg", + "kwarg" + ] + }, + { + "count": 6, + "args": 1, + "types": [ + "kwarg" + ] + }, + { + "count": 3, + "args": 4, + "types": [ + "kwarg", + "kwarg", + "kwarg", + "kwarg" + ] + } + ] + }, + "str": { + "occurrences": 10, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 5, + "args": 1, + "types": [ + "var" + ] + }, + { + "count": 5, + "args": 1, + "types": [ + "expr" + ] + } + ] + }, + "enumerate": { + "occurrences": 8, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 8, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "class": { + "occurrences": 4, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 4, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "Prompt": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + } + } + }, + { + "label": "docs_src/settings", + "method_count": 5, + "grammar": "root ::= (\"admin_email\" | \"app_name\" | \"settings\")?+ \"config\"? \"items_per_user\"? \"Settings\"?+", + "grammar_clean": "root ::= (\"admin_email\" | \"app_name\" | \"settings\")?+ \"config\"? \"items_per_user\"? \"Settings\"?+", + "noise_ratio": 0.14, + "symbols_before": 7, + "symbols_after": 6, + "algorithm": "CRX", + "mdl_score": 600, + "imports": [ + "from fastapi import FastAPI", + "from .config import settings", + "from functools import lru_cache", + "from typing import Annotated", + "from fastapi import Depends, FastAPI", + "from . import config" + ], + "arg_patterns": { + "FastAPI": { + "occurrences": 9, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 9, + "args": 0, + "types": [] + } + ] + }, + "Depends": { + "occurrences": 6, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 6, + "args": 1, + "types": [ + "var" + ] + } + ] + } + } + }, + { + "label": "docs_src/settings/app02_an_py310", + "method_count": 4, + "grammar": "root ::= (\"data\" | \"json\" | \"response\")?+ \"Settings\"?+ (\"admin_email\" | \"app_name\" | \"settings\")?+ \"items_per_user\"?", + "grammar_clean": "root ::= (\"data\" | \"json\" | \"response\")?+ \"Settings\"?+ (\"admin_email\" | \"app_name\" | \"settings\")?+ \"items_per_user\"?", + "noise_ratio": 0.27, + "symbols_before": 11, + "symbols_after": 8, + "algorithm": "CRX", + "mdl_score": 2400, + "imports": [ + "from functools import lru_cache", + "from typing import Annotated", + "from fastapi import Depends, FastAPI", + "from .config import Settings", + "from fastapi.testclient import TestClient", + "from .main import app, get_settings" + ], + "arg_patterns": { + "Settings": { + "occurrences": 6, + "arg_count": { + "min": 0, + "max": 1, + "common": 0 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "kwarg" + ] + }, + { + "count": 3, + "args": 0, + "types": [] + } + ] + }, + "TestClient": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "FastAPI": { + "occurrences": 3, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 3, + "args": 0, + "types": [] + } + ] + }, + "Depends": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "var" + ] + } + ] + } + } + }, + { + "label": "docs_src/settings/app02_py310", + "method_count": 4, + "grammar": "root ::= (\"data\" | \"json\" | \"response\")?+ \"Settings\"?+ (\"admin_email\" | \"app_name\" | \"settings\")?+ \"items_per_user\"?", + "grammar_clean": "root ::= (\"data\" | \"json\" | \"response\")?+ \"Settings\"?+ (\"admin_email\" | \"app_name\" | \"settings\")?+ \"items_per_user\"?", + "noise_ratio": 0.27, + "symbols_before": 11, + "symbols_after": 8, + "algorithm": "CRX", + "mdl_score": 2400, + "imports": [ + "from functools import lru_cache", + "from fastapi import Depends, FastAPI", + "from .config import Settings", + "from fastapi.testclient import TestClient", + "from .main import app, get_settings" + ], + "arg_patterns": { + "TestClient": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "Settings": { + "occurrences": 6, + "arg_count": { + "min": 0, + "max": 1, + "common": 0 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "kwarg" + ] + }, + { + "count": 3, + "args": 0, + "types": [] + } + ] + }, + "FastAPI": { + "occurrences": 3, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 3, + "args": 0, + "types": [] + } + ] + }, + "Depends": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "var" + ] + } + ] + } + } + }, + { + "label": "docs_src/sql_databases", + "method_count": 30, + "grammar": "root ::= \"hero\"? \"session\"? \"raise\"? \"commit\"?+ \"HTTPException\"?+ \"Hero\"? \"status_code\"? \"hero_id\"? \"detail\"? \"not\"?", + "grammar_clean": "root ::= \"hero\"? \"session\"? \"raise\"? \"commit\"?+ \"HTTPException\"?+ \"Hero\"? \"status_code\"? \"hero_id\"? \"detail\"? \"not\"?", + "noise_ratio": 0.17, + "symbols_before": 12, + "symbols_after": 10, + "algorithm": "CRX", + "mdl_score": 108, + "imports": [ + "from typing import Annotated", + "from fastapi import Depends, FastAPI, HTTPException, Query", + "from sqlmodel import Field, Session, SQLModel, create_engine, select" + ], + "arg_patterns": { + "Depends": { + "occurrences": 33, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 33, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "select": { + "occurrences": 12, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 12, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "HeroUpdate": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "HTTPException": { + "occurrences": 30, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 30, + "args": 2, + "types": [ + "kwarg", + "kwarg" + ] + } + ] + }, + "create_db_and_tables": { + "occurrences": 12, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 12, + "args": 0, + "types": [] + } + ] + }, + "HeroCreate": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "Session": { + "occurrences": 12, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 12, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "Field": { + "occurrences": 36, + "arg_count": { + "min": 1, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 24, + "args": 2, + "types": [ + "kwarg", + "kwarg" + ] + }, + { + "count": 12, + "args": 1, + "types": [ + "kwarg" + ] + } + ] + }, + "create_engine": { + "occurrences": 12, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 12, + "args": 2, + "types": [ + "var", + "kwarg" + ] + } + ] + }, + "HeroPublic": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "FastAPI": { + "occurrences": 12, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 12, + "args": 0, + "types": [] + } + ] + }, + "HeroBase": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "Hero": { + "occurrences": 4, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 4, + "args": 2, + "types": [ + "var", + "kwarg" + ] + } + ] + }, + "Query": { + "occurrences": 12, + "arg_count": { + "min": 1, + "max": 2, + "common": 1 + }, + "patterns": [ + { + "count": 6, + "args": 2, + "types": [ + "kwarg", + "kwarg" + ] + }, + { + "count": 6, + "args": 1, + "types": [ + "kwarg" + ] + } + ] + }, + "class": { + "occurrences": 12, + "arg_count": { + "min": 1, + "max": 2, + "common": 1 + }, + "patterns": [ + { + "count": 8, + "args": 1, + "types": [ + "var" + ] + }, + { + "count": 4, + "args": 2, + "types": [ + "var", + "kwarg" + ] + } + ] + } + } + }, + { + "label": "docs_src/stream_data", + "method_count": 14, + "grammar": "root ::= \"read_image\"?+ (\"chunk\" | \"for\" | \"image_file\" | \"line\" | \"message\" | \"splitlines\" | \"yield\")?+ \"encode\"?+", + "grammar_clean": "root ::= \"read_image\"?+ (\"chunk\" | \"for\" | \"image_file\" | \"line\" | \"message\" | \"splitlines\" | \"yield\")?+ \"encode\"?+", + "noise_ratio": 0.1, + "symbols_before": 10, + "symbols_after": 9, + "algorithm": "CRX", + "mdl_score": 1320, + "imports": [ + "from collections.abc import AsyncIterable, Iterable", + "from fastapi import FastAPI", + "from fastapi.responses import StreamingResponse", + "import base64", + "from io import BytesIO" + ], + "arg_patterns": { + "read_image": { + "occurrences": 15, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 15, + "args": 0, + "types": [] + } + ] + }, + "FastAPI": { + "occurrences": 6, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 6, + "args": 0, + "types": [] + } + ] + }, + "BytesIO": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "PNGStreamingResponse": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "class": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + } + } + }, + { + "label": "docs_src/stream_json_lines", + "method_count": 4, + "grammar": "root ::= \"for\"? (\"item\" | \"items\" | \"yield\")?+", + "grammar_clean": "root ::= \"for\"? (\"item\" | \"items\" | \"yield\")?+", + "noise_ratio": 0.2, + "symbols_before": 5, + "symbols_after": 4, + "algorithm": "CRX", + "mdl_score": 1168, + "imports": [ + "from collections.abc import AsyncIterable, Iterable", + "from fastapi import FastAPI", + "from pydantic import BaseModel" + ], + "arg_patterns": { + "Item": { + "occurrences": 10, + "arg_count": { + "min": 1, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 9, + "args": 2, + "types": [ + "kwarg", + "kwarg" + ] + }, + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "FastAPI": { + "occurrences": 3, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 3, + "args": 0, + "types": [] + } + ] + }, + "class": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + } + } + }, + { + "label": "docs_src/websockets_", + "method_count": 15, + "grammar": "root ::= \"while\"? \"HTMLResponse\"?+ \"data\"? \"html\"? (\"await\" | \"receive_text\" | \"websocket\")?+ (\"accept\" | \"send_text\")?+", + "grammar_clean": "root ::= \"while\"? \"HTMLResponse\"?+ \"data\"? \"html\"? (\"await\" | \"receive_text\" | \"websocket\")?+ (\"accept\" | \"send_text\")?+", + "noise_ratio": 0.1, + "symbols_before": 10, + "symbols_after": 9, + "algorithm": "CRX", + "mdl_score": 678, + "imports": [ + "from fastapi import FastAPI, WebSocket", + "from fastapi.responses import HTMLResponse", + "from typing import Annotated", + "from fastapi import (", + "from fastapi import FastAPI, WebSocket, WebSocketDisconnect" + ], + "arg_patterns": { + "FastAPI": { + "occurrences": 12, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 12, + "args": 0, + "types": [] + } + ] + }, + "HTMLResponse": { + "occurrences": 12, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 12, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "Cookie": { + "occurrences": 6, + "arg_count": { + "min": 0, + "max": 1, + "common": 0 + }, + "patterns": [ + { + "count": 3, + "args": 0, + "types": [] + }, + { + "count": 3, + "args": 1, + "types": [ + "kwarg" + ] + } + ] + }, + "Query": { + "occurrences": 6, + "arg_count": { + "min": 0, + "max": 1, + "common": 0 + }, + "patterns": [ + { + "count": 3, + "args": 0, + "types": [] + }, + { + "count": 3, + "args": 1, + "types": [ + "kwarg" + ] + } + ] + }, + "WebSocketException": { + "occurrences": 6, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 6, + "args": 1, + "types": [ + "kwarg" + ] + } + ] + }, + "Depends": { + "occurrences": 6, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 6, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "ConnectionManager": { + "occurrences": 3, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 3, + "args": 0, + "types": [] + } + ] + } + } + }, + { + "label": "fastapi", + "method_count": 239, + "imports": [ + "import os", + "from collections.abc import Awaitable, Callable, Coroutine, Sequence", + "from enum import Enum", + "from typing import Annotated, Any, Literal, TypeVar", + "from annotated_doc import Doc", + "from fastapi import routing", + "from fastapi.datastructures import Default, DefaultPlaceholder", + "from fastapi.exception_handlers import (", + "from fastapi.exceptions import RequestValidationError, WebSocketRequestValidationError", + "from fastapi.logger import logger", + "from fastapi.middleware.asyncexitstack import AsyncExitStackMiddleware", + "from fastapi.openapi.docs import (", + "from fastapi.openapi.utils import get_openapi", + "from fastapi.params import Depends", + "from fastapi.types import DecoratedCallable, IncEx", + "from fastapi.utils import generate_unique_id", + "from starlette.applications import Starlette", + "from starlette.datastructures import State", + "from starlette.exceptions import HTTPException", + "from starlette.middleware import Middleware", + "from starlette.middleware.base import BaseHTTPMiddleware", + "from starlette.middleware.errors import ServerErrorMiddleware", + "from starlette.middleware.exceptions import ExceptionMiddleware", + "from starlette.requests import Request", + "from starlette.responses import HTMLResponse, JSONResponse, Response", + "from starlette.routing import BaseRoute", + "from starlette.types import ASGIApp, ExceptionHandler, Lifespan, Receive, Scope, Send", + "from typing_extensions import deprecated", + "from fastapi import FastAPI", + "from Starlette and supported for compatibility.", + "from collections.abc import Callable", + "from typing import Annotated, Any", + "from starlette.background import BackgroundTasks as StarletteBackgroundTasks", + "from typing_extensions import ParamSpec", + "from fastapi import BackgroundTasks, FastAPI", + "from fastapi_cli.cli import main as cli_main", + "from collections.abc import AsyncGenerator", + "from contextlib import AbstractContextManager", + "from contextlib import asynccontextmanager as asynccontextmanager", + "from typing import TypeVar", + "import anyio.to_thread", + "from anyio import CapacityLimiter", + "from starlette.concurrency import iterate_in_threadpool as iterate_in_threadpool # noqa", + "from starlette.concurrency import run_in_threadpool as run_in_threadpool # noqa", + "from starlette.concurrency import ( # noqa", + "from collections.abc import Callable, Mapping", + "from typing import (", + "from pydantic import GetJsonSchemaHandler", + "from starlette.datastructures import URL as URL # noqa: F401", + "from starlette.datastructures import Address as Address # noqa: F401", + "from starlette.datastructures import FormData as FormData # noqa: F401", + "from starlette.datastructures import Headers as Headers # noqa: F401", + "from starlette.datastructures import QueryParams as QueryParams # noqa: F401", + "from starlette.datastructures import State as State # noqa: F401", + "from starlette.datastructures import UploadFile as StarletteUploadFile", + "from typing import Annotated", + "from fastapi import FastAPI, File, UploadFile", + "from ._compat.v2 import with_info_plain_validator_function", + "import dataclasses", + "import datetime", + "from collections import defaultdict, deque", + "from decimal import Decimal", + "from ipaddress import (", + "from pathlib import Path, PurePath", + "from re import Pattern", + "from types import GeneratorType", + "from uuid import UUID", + "from fastapi.exceptions import PydanticV1NotSupportedError", + "from fastapi.types import IncEx", + "from pydantic import BaseModel", + "from pydantic.networks import AnyUrl, NameEmail", + "from pydantic.types import SecretBytes, SecretStr", + "from pydantic_core import PydanticUndefinedType", + "from ._compat import (", + "from pydantic.color import Color # ty: ignore[deprecated]", + "from pydantic_extra_types.color import Color as PyExtraColor", + "from fastapi.encoders import jsonable_encoder", + "from fastapi.utils import is_body_allowed_for_status_code", + "from fastapi.websockets import WebSocket", + "from starlette.responses import JSONResponse, Response", + "from starlette.status import WS_1008_POLICY_VIOLATION", + "from collections.abc import Mapping, Sequence", + "from typing import Annotated, Any, TypedDict", + "from pydantic import BaseModel, create_model", + "from starlette.exceptions import HTTPException as StarletteHTTPException", + "from starlette.exceptions import WebSocketException as StarletteWebSocketException", + "from fastapi import FastAPI, HTTPException", + "from fastapi import (", + "from contextlib import AsyncExitStack", + "from starlette.types import ASGIApp, Receive, Scope, Send", + "from collections.abc import Callable, Sequence", + "from typing import Annotated, Any, Literal", + "from fastapi import params", + "from fastapi._compat import Undefined", + "from fastapi.datastructures import _Unset", + "from fastapi.openapi.models import Example", + "from pydantic import AliasChoices, AliasPath", + "import warnings", + "from dataclasses import dataclass", + "from fastapi.exceptions import FastAPIDeprecationWarning", + "from pydantic.fields import FieldInfo", + "from .datastructures import _Unset", + "import importlib", + "from typing import Any, Protocol, cast", + "from fastapi.sse import EventSourceResponse as EventSourceResponse # noqa", + "from starlette.responses import FileResponse as FileResponse # noqa", + "from starlette.responses import HTMLResponse as HTMLResponse # noqa", + "from starlette.responses import JSONResponse as JSONResponse # noqa", + "from starlette.responses import PlainTextResponse as PlainTextResponse # noqa", + "from starlette.responses import RedirectResponse as RedirectResponse # noqa", + "from starlette.responses import Response as Response # noqa", + "from starlette.responses import StreamingResponse as StreamingResponse # noqa", + "import contextlib", + "import copy", + "import email.message", + "import errno", + "import functools", + "import inspect", + "import json", + "import stat", + "import types", + "from collections.abc import (", + "from contextlib import (", + "from contextvars import ContextVar", + "from dataclasses import dataclass, field", + "from enum import Enum, IntEnum", + "import anyio", + "from anyio.abc import ObjectReceiveStream", + "from fastapi._compat import (", + "from fastapi.dependencies.models import Dependant", + "from fastapi.dependencies.utils import (", + "from fastapi.exceptions import (", + "from fastapi.sse import (", + "from fastapi.utils import (", + "from starlette import routing", + "from starlette._exception_handler import wrap_app_handling_exceptions", + "from starlette._utils import get_route_path, is_async_callable", + "from starlette.concurrency import iterate_in_threadpool, run_in_threadpool", + "from starlette.datastructures import URL, FormData, URLPath", + "from starlette.responses import (", + "from starlette.routing import (", + "from starlette.routing import Mount as Mount # noqa", + "from starlette.staticfiles import StaticFiles", + "from starlette.types import AppType, ASGIApp, Lifespan, Receive, Scope, Send", + "from starlette.websockets import WebSocket", + "from pydantic import AfterValidator, BaseModel, Field, model_validator", + "from starlette.responses import StreamingResponse", + "import re", + "import fastapi", + "from fastapi.datastructures import DefaultPlaceholder, DefaultType", + "from fastapi.exceptions import FastAPIDeprecationWarning, PydanticV1NotSupportedError", + "from ._compat import v2", + "from .routing import APIRoute" + ], + "arg_patterns": { + "deprecated": { + "occurrences": 136, + "arg_count": { + "min": 1, + "max": 3, + "common": 1 + }, + "patterns": [ + { + "count": 83, + "args": 1, + "types": [ + "lit" + ] + }, + { + "count": 45, + "args": 1, + "types": [ + "other" + ] + }, + { + "count": 8, + "args": 3, + "types": [ + "other", + "kwarg", + "kwarg" + ] + } + ] + }, + "super": { + "occurrences": 104, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 104, + "args": 0, + "types": [] + } + ] + }, + "Cookie": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "Path": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "Param": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "dataclass": { + "occurrences": 12, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 12, + "args": 1, + "types": [ + "kwarg" + ] + } + ] + }, + "File": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "Header": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "Form": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "Body": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "dict": { + "occurrences": 35, + "arg_count": { + "min": 1, + "max": 17, + "common": 1 + }, + "patterns": [ + { + "count": 20, + "args": 1, + "types": [ + "var" + ] + }, + { + "count": 10, + "args": 17, + "types": [ + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "other" + ] + }, + { + "count": 5, + "args": 1, + "types": [ + "call" + ] + } + ] + }, + "Query": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "ParamTypes": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "isinstance": { + "occurrences": 288, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 224, + "args": 2, + "types": [ + "var", + "var" + ] + }, + { + "count": 32, + "args": 2, + "types": [ + "var", + "other" + ] + }, + { + "count": 16, + "args": 2, + "types": [ + "other", + "var" + ] + }, + { + "count": 12, + "args": 2, + "types": [ + "subscript", + "var" + ] + }, + { + "count": 4, + "args": 2, + "types": [ + "other", + "other" + ] + } + ] + }, + "Security": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "class": { + "occurrences": 40, + "arg_count": { + "min": 1, + "max": 2, + "common": 1 + }, + "patterns": [ + { + "count": 35, + "args": 1, + "types": [ + "var" + ] + }, + { + "count": 3, + "args": 1, + "types": [ + "other" + ] + }, + { + "count": 1, + "args": 2, + "types": [ + "var", + "kwarg" + ] + }, + { + "count": 1, + "args": 1, + "types": [ + "subscript" + ] + } + ] + }, + "print": { + "occurrences": 4, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 4, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "cli_main": { + "occurrences": 3, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 3, + "args": 0, + "types": [] + } + ] + }, + "RuntimeError": { + "occurrences": 16, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 12, + "args": 1, + "types": [ + "other" + ] + }, + { + "count": 4, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "Doc": { + "occurrences": 2121, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2121, + "args": 1, + "types": [ + "lit" + ] + } + ] + }, + "len": { + "occurrences": 16, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 8, + "args": 1, + "types": [ + "other" + ] + }, + { + "count": 8, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "create_model": { + "occurrences": 6, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 6, + "args": 1, + "types": [ + "lit" + ] + } + ] + }, + "HTTPException": { + "occurrences": 28, + "arg_count": { + "min": 1, + "max": 2, + "common": 1 + }, + "patterns": [ + { + "count": 21, + "args": 1, + "types": [ + "kwarg" + ] + }, + { + "count": 6, + "args": 2, + "types": [ + "kwarg", + "kwarg" + ] + }, + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "WebSocketException": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "WebSocketRequestValidationError": { + "occurrences": 4, + "arg_count": { + "min": 1, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 3, + "args": 2, + "types": [ + "other", + "kwarg" + ] + }, + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "FastAPIError": { + "occurrences": 7, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "lit" + ] + }, + { + "count": 3, + "args": 1, + "types": [ + "other" + ] + }, + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "ValidationException": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "RequestValidationError": { + "occurrences": 10, + "arg_count": { + "min": 1, + "max": 3, + "common": 3 + }, + "patterns": [ + { + "count": 3, + "args": 3, + "types": [ + "other", + "kwarg", + "kwarg" + ] + }, + { + "count": 3, + "args": 3, + "types": [ + "var", + "kwarg", + "kwarg" + ] + }, + { + "count": 3, + "args": 1, + "types": [ + "other" + ] + }, + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "EndpointContext": { + "occurrences": 16, + "arg_count": { + "min": 0, + "max": 2, + "common": 0 + }, + "patterns": [ + { + "count": 15, + "args": 0, + "types": [] + }, + { + "count": 1, + "args": 2, + "types": [ + "var", + "kwarg" + ] + } + ] + }, + "DependencyScopeError": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "ResponseValidationError": { + "occurrences": 7, + "arg_count": { + "min": 1, + "max": 3, + "common": 3 + }, + "patterns": [ + { + "count": 6, + "args": 3, + "types": [ + "kwarg", + "kwarg", + "kwarg" + ] + }, + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "PydanticV1NotSupportedError": { + "occurrences": 7, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 6, + "args": 1, + "types": [ + "other" + ] + }, + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "FastAPIDeprecationWarning": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "is_body_allowed_for_status_code": { + "occurrences": 12, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 6, + "args": 1, + "types": [ + "var" + ] + }, + { + "count": 6, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "is_async_callable": { + "occurrences": 9, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 9, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "getattr": { + "occurrences": 48, + "arg_count": { + "min": 2, + "max": 3, + "common": 3 + }, + "patterns": [ + { + "count": 28, + "args": 3, + "types": [ + "other", + "lit", + "lit" + ] + }, + { + "count": 16, + "args": 3, + "types": [ + "var", + "lit", + "lit" + ] + }, + { + "count": 4, + "args": 2, + "types": [ + "other", + "var" + ] + } + ] + }, + "_IncludedRouter": { + "occurrences": 10, + "arg_count": { + "min": 1, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 9, + "args": 2, + "types": [ + "kwarg", + "kwarg" + ] + }, + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "get_flat_dependant": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "APIRouter": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "get_body_field": { + "occurrences": 3, + "arg_count": { + "min": 3, + "max": 3, + "common": 3 + }, + "patterns": [ + { + "count": 3, + "args": 3, + "types": [ + "kwarg", + "kwarg", + "kwarg" + ] + } + ] + }, + "Default": { + "occurrences": 267, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 177, + "args": 1, + "types": [ + "var" + ] + }, + { + "count": 90, + "args": 1, + "types": [ + "lit" + ] + } + ] + }, + "hasattr": { + "occurrences": 4, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 4, + "args": 2, + "types": [ + "other", + "lit" + ] + } + ] + }, + "_sse_producer_cm": { + "occurrences": 3, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 3, + "args": 0, + "types": [] + } + ] + }, + "_serialize_sse_item": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "get_value_or_default": { + "occurrences": 33, + "arg_count": { + "min": 2, + "max": 3, + "common": 2 + }, + "patterns": [ + { + "count": 15, + "args": 2, + "types": [ + "var", + "other" + ] + }, + { + "count": 9, + "args": 2, + "types": [ + "other", + "other" + ] + }, + { + "count": 9, + "args": 3, + "types": [ + "other", + "other", + "other" + ] + } + ] + }, + "_build_dependant_with_parameterless_dependencies": { + "occurrences": 12, + "arg_count": { + "min": 3, + "max": 3, + "common": 3 + }, + "patterns": [ + { + "count": 12, + "args": 3, + "types": [ + "kwarg", + "kwarg", + "kwarg" + ] + } + ] + }, + "serialize_response": { + "occurrences": 3, + "arg_count": { + "min": 11, + "max": 11, + "common": 11 + }, + "patterns": [ + { + "count": 3, + "args": 11, + "types": [ + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg" + ] + } + ] + }, + "_frontend_scope_specificity": { + "occurrences": 6, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 6, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "NoMatchFound": { + "occurrences": 6, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 6, + "args": 2, + "types": [ + "var", + "var" + ] + } + ] + }, + "jsonable_encoder": { + "occurrences": 33, + "arg_count": { + "min": 1, + "max": 9, + "common": 1 + }, + "patterns": [ + { + "count": 9, + "args": 9, + "types": [ + "var", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg" + ] + }, + { + "count": 6, + "args": 1, + "types": [ + "var" + ] + }, + { + "count": 6, + "args": 6, + "types": [ + "var", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg" + ] + }, + { + "count": 6, + "args": 1, + "types": [ + "call" + ] + }, + { + "count": 3, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "_get_fastapi_scope": { + "occurrences": 24, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 24, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "cast": { + "occurrences": 27, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 18, + "args": 2, + "types": [ + "var", + "var" + ] + }, + { + "count": 6, + "args": 2, + "types": [ + "var", + "call" + ] + }, + { + "count": 3, + "args": 2, + "types": [ + "expr", + "var" + ] + } + ] + }, + "list": { + "occurrences": 45, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 25, + "args": 1, + "types": [ + "expr" + ] + }, + { + "count": 15, + "args": 1, + "types": [ + "var" + ] + }, + { + "count": 5, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "Request": { + "occurrences": 9, + "arg_count": { + "min": 1, + "max": 3, + "common": 3 + }, + "patterns": [ + { + "count": 6, + "args": 3, + "types": [ + "var", + "var", + "var" + ] + }, + { + "count": 3, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "ContextVar": { + "occurrences": 3, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 3, + "args": 2, + "types": [ + "lit", + "kwarg" + ] + } + ] + }, + "_restore_fastapi_scope_key": { + "occurrences": 9, + "arg_count": { + "min": 3, + "max": 3, + "common": 3 + }, + "patterns": [ + { + "count": 9, + "args": 3, + "types": [ + "var", + "var", + "var" + ] + } + ] + }, + "Response": { + "occurrences": 6, + "arg_count": { + "min": 2, + "max": 3, + "common": 2 + }, + "patterns": [ + { + "count": 3, + "args": 3, + "types": [ + "kwarg", + "kwarg", + "other" + ] + }, + { + "count": 3, + "args": 2, + "types": [ + "kwarg", + "kwarg" + ] + } + ] + }, + "field": { + "occurrences": 57, + "arg_count": { + "min": 1, + "max": 2, + "common": 1 + }, + "patterns": [ + { + "count": 54, + "args": 1, + "types": [ + "kwarg" + ] + }, + { + "count": 3, + "args": 2, + "types": [ + "kwarg", + "kwarg" + ] + } + ] + }, + "_FrontendStaticFiles": { + "occurrences": 4, + "arg_count": { + "min": 1, + "max": 3, + "common": 3 + }, + "patterns": [ + { + "count": 3, + "args": 3, + "types": [ + "kwarg", + "kwarg", + "kwarg" + ] + }, + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "_EffectiveRouteContext": { + "occurrences": 15, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 15, + "args": 2, + "types": [ + "kwarg", + "kwarg" + ] + } + ] + }, + "lenient_issubclass": { + "occurrences": 15, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 15, + "args": 2, + "types": [ + "var", + "var" + ] + } + ] + }, + "_extract_endpoint_context": { + "occurrences": 6, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 6, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "_iter_routes_with_context": { + "occurrences": 9, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 6, + "args": 1, + "types": [ + "other" + ] + }, + { + "count": 3, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "create_model_field": { + "occurrences": 9, + "arg_count": { + "min": 3, + "max": 3, + "common": 3 + }, + "patterns": [ + { + "count": 9, + "args": 3, + "types": [ + "kwarg", + "kwarg", + "kwarg" + ] + } + ] + }, + "run_in_threadpool": { + "occurrences": 15, + "arg_count": { + "min": 1, + "max": 4, + "common": 2 + }, + "patterns": [ + { + "count": 6, + "args": 2, + "types": [ + "other", + "var" + ] + }, + { + "count": 3, + "args": 2, + "types": [ + "other", + "other" + ] + }, + { + "count": 3, + "args": 4, + "types": [ + "other", + "var", + "other", + "kwarg" + ] + }, + { + "count": 3, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "object": { + "occurrences": 5, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 5, + "args": 0, + "types": [] + } + ] + }, + "_serialize_data": { + "occurrences": 6, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 6, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "get_route_path": { + "occurrences": 12, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 12, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "_AsyncLiftContextManager": { + "occurrences": 4, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "call" + ] + }, + { + "count": 1, + "args": 1, + "types": [ + "subscript" + ] + } + ] + }, + "format_sse_event": { + "occurrences": 6, + "arg_count": { + "min": 1, + "max": 5, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 5, + "types": [ + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg" + ] + }, + { + "count": 3, + "args": 1, + "types": [ + "kwarg" + ] + } + ] + }, + "_DefaultLifespan": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "_get_scope_effective_route_context": { + "occurrences": 9, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 9, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "_FrontendRoute": { + "occurrences": 4, + "arg_count": { + "min": 1, + "max": 4, + "common": 4 + }, + "patterns": [ + { + "count": 3, + "args": 4, + "types": [ + "var", + "kwarg", + "kwarg", + "kwarg" + ] + }, + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "AsyncExitStack": { + "occurrences": 21, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 21, + "args": 0, + "types": [] + } + ] + }, + "actual_response_class": { + "occurrences": 6, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 3, + "args": 2, + "types": [ + "var", + "other" + ] + }, + { + "count": 3, + "args": 2, + "types": [ + "kwarg", + "other" + ] + } + ] + }, + "cls": { + "occurrences": 12, + "arg_count": { + "min": 1, + "max": 12, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 12, + "types": [ + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg" + ] + }, + { + "count": 3, + "args": 1, + "types": [ + "kwarg" + ] + }, + { + "count": 3, + "args": 4, + "types": [ + "kwarg", + "kwarg", + "kwarg", + "kwarg" + ] + }, + { + "count": 3, + "args": 3, + "types": [ + "var", + "other", + "other" + ] + } + ] + }, + "APIWebSocketRoute": { + "occurrences": 7, + "arg_count": { + "min": 1, + "max": 5, + "common": 5 + }, + "patterns": [ + { + "count": 3, + "args": 5, + "types": [ + "call", + "kwarg", + "kwarg", + "kwarg", + "kwarg" + ] + }, + { + "count": 3, + "args": 5, + "types": [ + "expr", + "kwarg", + "kwarg", + "kwarg", + "kwarg" + ] + }, + { + "count": 1, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "_frontend_path_specificity": { + "occurrences": 6, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 6, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "AssertionError": { + "occurrences": 12, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 12, + "args": 1, + "types": [ + "lit" + ] + } + ] + }, + "_sse_with_checkpoints": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "asynccontextmanager": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "handler": { + "occurrences": 12, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 12, + "args": 0, + "types": [] + } + ] + }, + "get_dependant": { + "occurrences": 3, + "arg_count": { + "min": 3, + "max": 3, + "common": 3 + }, + "patterns": [ + { + "count": 3, + "args": 3, + "types": [ + "kwarg", + "kwarg", + "kwarg" + ] + } + ] + }, + "_normalize_frontend_path": { + "occurrences": 6, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 6, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "run_endpoint_function": { + "occurrences": 3, + "arg_count": { + "min": 3, + "max": 3, + "common": 3 + }, + "patterns": [ + { + "count": 3, + "args": 3, + "types": [ + "kwarg", + "kwarg", + "kwarg" + ] + } + ] + }, + "_is_frontend_navigation_request": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "id": { + "occurrences": 12, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 12, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "route_class": { + "occurrences": 3, + "arg_count": { + "min": 27, + "max": 27, + "common": 27 + }, + "patterns": [ + { + "count": 3, + "args": 27, + "types": [ + "expr", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg" + ] + } + ] + }, + "URLPath": { + "occurrences": 3, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 3, + "args": 2, + "types": [ + "kwarg", + "kwarg" + ] + } + ] + }, + "_FrontendRouteGroup": { + "occurrences": 4, + "arg_count": { + "min": 1, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 3, + "args": 2, + "types": [ + "kwarg", + "kwarg" + ] + }, + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "iterate_in_threadpool": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "float": { + "occurrences": 10, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 10, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "serializer": { + "occurrences": 3, + "arg_count": { + "min": 7, + "max": 7, + "common": 7 + }, + "patterns": [ + { + "count": 3, + "args": 7, + "types": [ + "var", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg" + ] + } + ] + }, + "func": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "current_generate_unique_id": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "_build_response_args": { + "occurrences": 6, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 6, + "args": 2, + "types": [ + "kwarg", + "kwarg" + ] + } + ] + }, + "callable": { + "occurrences": 4, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 4, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "_merge_lifespan_context": { + "occurrences": 3, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 3, + "args": 2, + "types": [ + "other", + "other" + ] + } + ] + }, + "wrap_app_handling_exceptions": { + "occurrences": 6, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 6, + "args": 2, + "types": [ + "var", + "var" + ] + } + ] + }, + "get_request_handler": { + "occurrences": 3, + "arg_count": { + "min": 16, + "max": 16, + "common": 16 + }, + "patterns": [ + { + "count": 3, + "args": 16, + "types": [ + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg" + ] + } + ] + }, + "URL": { + "occurrences": 6, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 6, + "args": 1, + "types": [ + "kwarg" + ] + } + ] + }, + "get_parameterless_sub_dependant": { + "occurrences": 3, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 3, + "args": 2, + "types": [ + "kwarg", + "kwarg" + ] + } + ] + }, + "TypeVar": { + "occurrences": 12, + "arg_count": { + "min": 1, + "max": 2, + "common": 1 + }, + "patterns": [ + { + "count": 9, + "args": 1, + "types": [ + "lit" + ] + }, + { + "count": 3, + "args": 2, + "types": [ + "lit", + "kwarg" + ] + } + ] + }, + "_should_embed_body_fields": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "int": { + "occurrences": 15, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 15, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "_iter_accept_media_types": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "call" + ] + } + ] + }, + "RedirectResponse": { + "occurrences": 6, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 6, + "args": 1, + "types": [ + "kwarg" + ] + } + ] + }, + "solve_dependencies": { + "occurrences": 9, + "arg_count": { + "min": 5, + "max": 6, + "common": 5 + }, + "patterns": [ + { + "count": 6, + "args": 5, + "types": [ + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg" + ] + }, + { + "count": 3, + "args": 6, + "types": [ + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg" + ] + } + ] + }, + "compile_path": { + "occurrences": 9, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 6, + "args": 1, + "types": [ + "var" + ] + }, + { + "count": 3, + "args": 1, + "types": [ + "expr" + ] + } + ] + }, + "_update_scope": { + "occurrences": 6, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 6, + "args": 2, + "types": [ + "var", + "var" + ] + } + ] + }, + "APIRoute": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "cmgr": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "WebSocket": { + "occurrences": 3, + "arg_count": { + "min": 3, + "max": 3, + "common": 3 + }, + "patterns": [ + { + "count": 3, + "args": 3, + "types": [ + "var", + "kwarg", + "kwarg" + ] + } + ] + }, + "request_response": { + "occurrences": 6, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 6, + "args": 1, + "types": [ + "call" + ] + } + ] + }, + "_serialize_item": { + "occurrences": 6, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 6, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "get_name": { + "occurrences": 6, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 6, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "set": { + "occurrences": 50, + "arg_count": { + "min": 0, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 20, + "args": 1, + "types": [ + "call" + ] + }, + { + "count": 20, + "args": 1, + "types": [ + "var" + ] + }, + { + "count": 10, + "args": 0, + "types": [] + } + ] + }, + "str": { + "occurrences": 10, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 10, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "_async_stream_raw": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "_RouterIncludeContext": { + "occurrences": 3, + "arg_count": { + "min": 12, + "max": 12, + "common": 12 + }, + "patterns": [ + { + "count": 3, + "args": 12, + "types": [ + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg" + ] + } + ] + }, + "_get_scope_included_router": { + "occurrences": 6, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 6, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "_async_stream_jsonl": { + "occurrences": 3, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 3, + "args": 0, + "types": [] + } + ] + }, + "nested_context": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "PlainTextResponse": { + "occurrences": 3, + "arg_count": { + "min": 3, + "max": 3, + "common": 3 + }, + "patterns": [ + { + "count": 3, + "args": 3, + "types": [ + "lit", + "kwarg", + "kwarg" + ] + } + ] + }, + "original_context": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "_populate_api_route_state": { + "occurrences": 6, + "arg_count": { + "min": 28, + "max": 28, + "common": 28 + }, + "patterns": [ + { + "count": 3, + "args": 28, + "types": [ + "call", + "call", + "other", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg" + ] + }, + { + "count": 3, + "args": 28, + "types": [ + "call", + "var", + "var", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg" + ] + } + ] + }, + "websocket_session": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "call" + ] + } + ] + }, + "_RouteWithPath": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "get_websocket_app": { + "occurrences": 3, + "arg_count": { + "min": 3, + "max": 3, + "common": 3 + }, + "patterns": [ + { + "count": 3, + "args": 3, + "types": [ + "kwarg", + "kwarg", + "kwarg" + ] + } + ] + }, + "_APIRouteLike": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "response": { + "occurrences": 9, + "arg_count": { + "min": 3, + "max": 3, + "common": 3 + }, + "patterns": [ + { + "count": 9, + "args": 3, + "types": [ + "var", + "var", + "var" + ] + } + ] + }, + "StreamingResponse": { + "occurrences": 6, + "arg_count": { + "min": 3, + "max": 3, + "common": 3 + }, + "patterns": [ + { + "count": 6, + "args": 3, + "types": [ + "var", + "kwarg", + "kwarg" + ] + } + ] + }, + "get_typed_return_annotation": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "_wrap_gen_lifespan_context": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "_sync_stream_jsonl": { + "occurrences": 3, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 3, + "args": 0, + "types": [] + } + ] + }, + "get_stream_item_type": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "_get_resolved_absolute_path": { + "occurrences": 6, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "other" + ] + }, + { + "count": 3, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "RouteContext": { + "occurrences": 6, + "arg_count": { + "min": 1, + "max": 2, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "var" + ] + }, + { + "count": 3, + "args": 2, + "types": [ + "var", + "var" + ] + } + ] + }, + "f": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "_join_frontend_paths": { + "occurrences": 6, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 3, + "args": 2, + "types": [ + "other", + "var" + ] + }, + { + "count": 3, + "args": 2, + "types": [ + "var", + "other" + ] + } + ] + }, + "app": { + "occurrences": 3, + "arg_count": { + "min": 3, + "max": 3, + "common": 3 + }, + "patterns": [ + { + "count": 3, + "args": 3, + "types": [ + "var", + "var", + "var" + ] + } + ] + }, + "get_redoc_html": { + "occurrences": 3, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 3, + "args": 2, + "types": [ + "kwarg", + "kwarg" + ] + } + ] + }, + "State": { + "occurrences": 3, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 3, + "args": 0, + "types": [] + } + ] + }, + "Middleware": { + "occurrences": 9, + "arg_count": { + "min": 1, + "max": 3, + "common": 3 + }, + "patterns": [ + { + "count": 6, + "args": 3, + "types": [ + "var", + "kwarg", + "kwarg" + ] + }, + { + "count": 3, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "get_swagger_ui_oauth2_redirect_html": { + "occurrences": 3, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 3, + "args": 0, + "types": [] + } + ] + }, + "JSONResponse": { + "occurrences": 9, + "arg_count": { + "min": 1, + "max": 3, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "var" + ] + }, + { + "count": 3, + "args": 3, + "types": [ + "other", + "kwarg", + "kwarg" + ] + }, + { + "count": 3, + "args": 2, + "types": [ + "kwarg", + "kwarg" + ] + } + ] + }, + "get_swagger_ui_html": { + "occurrences": 3, + "arg_count": { + "min": 5, + "max": 5, + "common": 5 + }, + "patterns": [ + { + "count": 3, + "args": 5, + "types": [ + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg" + ] + } + ] + }, + "reversed": { + "occurrences": 4, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 4, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "get_openapi": { + "occurrences": 3, + "arg_count": { + "min": 14, + "max": 14, + "common": 14 + }, + "patterns": [ + { + "count": 3, + "args": 14, + "types": [ + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg" + ] + } + ] + }, + "FastAPI": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "ORJSONResponse": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "_UjsonModule": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "UJSONResponse": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "_OrjsonModule": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "_check_single_line": { + "occurrences": 6, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 6, + "args": 2, + "types": [ + "var", + "lit" + ] + } + ] + }, + "EventSourceResponse": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "ValueError": { + "occurrences": 20, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 12, + "args": 1, + "types": [ + "lit" + ] + }, + { + "count": 4, + "args": 1, + "types": [ + "other" + ] + }, + { + "count": 4, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "AfterValidator": { + "occurrences": 6, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 6, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "ServerSentEvent": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "model_validator": { + "occurrences": 4, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 4, + "args": 1, + "types": [ + "kwarg" + ] + } + ] + }, + "Field": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "kwarg" + ] + } + ] + }, + "encoder_instance": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "type": { + "occurrences": 35, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 30, + "args": 1, + "types": [ + "var" + ] + }, + { + "count": 5, + "args": 1, + "types": [ + "lit" + ] + } + ] + }, + "encoder": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "is_pydantic_v1_model_instance": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "defaultdict": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "generate_encoders_by_class_tuples": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "vars": { + "occurrences": 4, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 4, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "BackgroundTasks": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "ParamSpec": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "lit" + ] + } + ] + }, + "FieldInfo": { + "occurrences": 3, + "arg_count": { + "min": 3, + "max": 3, + "common": 3 + }, + "patterns": [ + { + "count": 3, + "args": 3, + "types": [ + "kwarg", + "kwarg", + "kwarg" + ] + } + ] + }, + "annotation_is_pydantic_v1": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "deep_dict_update": { + "occurrences": 3, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 3, + "args": 2, + "types": [ + "subscript", + "var" + ] + } + ] + }, + "UploadFile": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "bool": { + "occurrences": 10, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 10, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "with_info_plain_validator_function": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "DefaultPlaceholder": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "CapacityLimiter": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "lit" + ] + } + ] + } + } + }, + { + "label": "fastapi/_compat", + "method_count": 45, + "imports": [ + "import types", + "import typing", + "import warnings", + "from collections import deque", + "from collections.abc import Mapping, Sequence", + "from dataclasses import is_dataclass", + "from typing import (", + "from fastapi.types import UnionType", + "from pydantic import BaseModel", + "from pydantic.version import VERSION as PYDANTIC_VERSION", + "from starlette.datastructures import UploadFile", + "from pydantic import v1", + "import re", + "from collections.abc import Sequence", + "from copy import copy", + "from dataclasses import dataclass, is_dataclass", + "from enum import Enum", + "from functools import lru_cache", + "from fastapi._compat import lenient_issubclass, shared", + "from fastapi.openapi.constants import REF_TEMPLATE", + "from fastapi.types import IncEx, ModelNameMap, UnionType", + "from pydantic import BaseModel, ConfigDict, Field, TypeAdapter, create_model", + "from pydantic import PydanticSchemaGenerationError as PydanticSchemaGenerationError", + "from pydantic import PydanticUndefinedAnnotation as PydanticUndefinedAnnotation", + "from pydantic import ValidationError as ValidationError", + "from pydantic._internal import _typing_extra as _pydantic_typing_extra", + "from pydantic._internal._schema_generation_shared import ( # type: ignore[attr-defined]", + "from pydantic.fields import FieldInfo as FieldInfo", + "from pydantic.json_schema import GenerateJsonSchema as _GenerateJsonSchema", + "from pydantic.json_schema import JsonSchemaValue as JsonSchemaValue", + "from pydantic_core import CoreSchema as CoreSchema", + "from pydantic_core import PydanticUndefined", + "from pydantic_core import Url as Url", + "from pydantic_core.core_schema import (", + "from pydantic.warnings import UnsupportedFieldAttributeWarning" + ], + "arg_patterns": { + "isinstance": { + "occurrences": 28, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 16, + "args": 2, + "types": [ + "var", + "var" + ] + }, + { + "count": 8, + "args": 2, + "types": [ + "var", + "other" + ] + }, + { + "count": 4, + "args": 2, + "types": [ + "other", + "other" + ] + } + ] + }, + "annotation_is_pydantic_v1": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "_annotation_is_complex": { + "occurrences": 6, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 6, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "field_annotation_is_sequence": { + "occurrences": 15, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 15, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "field_annotation_is_scalar": { + "occurrences": 6, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 6, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "field_annotation_is_complex": { + "occurrences": 9, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 6, + "args": 1, + "types": [ + "var" + ] + }, + { + "count": 3, + "args": 1, + "types": [ + "subscript" + ] + } + ] + }, + "get_origin": { + "occurrences": 36, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 33, + "args": 1, + "types": [ + "var" + ] + }, + { + "count": 3, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "get_args": { + "occurrences": 45, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 42, + "args": 1, + "types": [ + "var" + ] + }, + { + "count": 3, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "int": { + "occurrences": 5, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 5, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "_annotation_is_sequence": { + "occurrences": 9, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 6, + "args": 1, + "types": [ + "var" + ] + }, + { + "count": 3, + "args": 1, + "types": [ + "call" + ] + } + ] + }, + "lenient_issubclass": { + "occurrences": 39, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 24, + "args": 2, + "types": [ + "var", + "var" + ] + }, + { + "count": 15, + "args": 2, + "types": [ + "var", + "other" + ] + } + ] + }, + "hasattr": { + "occurrences": 8, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 8, + "args": 2, + "types": [ + "var", + "lit" + ] + } + ] + }, + "is_bytes_or_nonable_bytes_annotation": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "all": { + "occurrences": 12, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 12, + "args": 2, + "types": [ + "call", + "other" + ] + } + ] + }, + "TypeVar": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "lit" + ] + } + ] + }, + "issubclass": { + "occurrences": 8, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 4, + "args": 2, + "types": [ + "var", + "var" + ] + }, + { + "count": 4, + "args": 2, + "types": [ + "var", + "other" + ] + } + ] + }, + "field_annotation_is_scalar_sequence": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "is_uploadfile_sequence_annotation": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "tuple": { + "occurrences": 10, + "arg_count": { + "min": 1, + "max": 2, + "common": 1 + }, + "patterns": [ + { + "count": 5, + "args": 1, + "types": [ + "call" + ] + }, + { + "count": 5, + "args": 2, + "types": [ + "call", + "other" + ] + } + ] + }, + "is_dataclass": { + "occurrences": 6, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 6, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "is_bytes_sequence_annotation": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "is_pydantic_v1_model_class": { + "occurrences": 6, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 6, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "is_uploadfile_or_nonable_uploadfile_annotation": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "any": { + "occurrences": 4, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 4, + "args": 2, + "types": [ + "call", + "other" + ] + } + ] + }, + "get_model_fields": { + "occurrences": 6, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 6, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "_has_computed_fields": { + "occurrences": 6, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 6, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "ModelField": { + "occurrences": 9, + "arg_count": { + "min": 3, + "max": 3, + "common": 3 + }, + "patterns": [ + { + "count": 9, + "args": 3, + "types": [ + "kwarg", + "kwarg", + "kwarg" + ] + } + ] + }, + "list": { + "occurrences": 10, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 10, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "get_flat_models_from_fields": { + "occurrences": 9, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 9, + "args": 2, + "types": [ + "var", + "kwarg" + ] + } + ] + }, + "create_model": { + "occurrences": 3, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 3, + "args": 2, + "types": [ + "var", + "other" + ] + } + ] + }, + "get_flat_models_from_annotation": { + "occurrences": 6, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 6, + "args": 2, + "types": [ + "var", + "kwarg" + ] + } + ] + }, + "asdict": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "cast": { + "occurrences": 9, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 6, + "args": 2, + "types": [ + "subscript", + "var" + ] + }, + { + "count": 3, + "args": 2, + "types": [ + "var", + "subscript" + ] + } + ] + }, + "type": { + "occurrences": 10, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 5, + "args": 1, + "types": [ + "var" + ] + }, + { + "count": 5, + "args": 1, + "types": [ + "lit" + ] + } + ] + }, + "getattr": { + "occurrences": 8, + "arg_count": { + "min": 3, + "max": 3, + "common": 3 + }, + "patterns": [ + { + "count": 4, + "args": 3, + "types": [ + "var", + "var", + "var" + ] + }, + { + "count": 4, + "args": 3, + "types": [ + "var", + "lit", + "lit" + ] + } + ] + }, + "GenerateJsonSchema": { + "occurrences": 4, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "kwarg" + ] + }, + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "copy": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "normalize_name": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "get_flat_models_from_model": { + "occurrences": 6, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 6, + "args": 2, + "types": [ + "var", + "kwarg" + ] + } + ] + }, + "set": { + "occurrences": 15, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 15, + "args": 0, + "types": [] + } + ] + }, + "_regenerate_error_with_loc": { + "occurrences": 3, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 3, + "args": 2, + "types": [ + "kwarg", + "kwarg" + ] + } + ] + }, + "FieldInfo": { + "occurrences": 6, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 6, + "args": 1, + "types": [ + "kwarg" + ] + } + ] + }, + "TypeAdapter": { + "occurrences": 3, + "arg_count": { + "min": 3, + "max": 3, + "common": 3 + }, + "patterns": [ + { + "count": 3, + "args": 3, + "types": [ + "subscript", + "other", + "kwarg" + ] + } + ] + }, + "Field": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "len": { + "occurrences": 4, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 4, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "try_eval_type": { + "occurrences": 3, + "arg_count": { + "min": 3, + "max": 3, + "common": 3 + }, + "patterns": [ + { + "count": 3, + "args": 3, + "types": [ + "var", + "var", + "var" + ] + } + ] + }, + "id": { + "occurrences": 4, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 4, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "get_flat_models_from_field": { + "occurrences": 3, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 3, + "args": 2, + "types": [ + "var", + "kwarg" + ] + } + ] + }, + "class": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + } + } + }, + { + "label": "fastapi/dependencies", + "method_count": 38, + "grammar": "root ::= (\"getattr\" | \"isinstance\")+", + "grammar_clean": "root ::= (\"getattr\" | \"isinstance\")+", + "noise_ratio": 0.33, + "symbols_before": 3, + "symbols_after": 2, + "algorithm": "CRX", + "mdl_score": 165, + "imports": [ + "import inspect", + "import sys", + "from collections.abc import Callable", + "from dataclasses import dataclass, field", + "from functools import cached_property, partial", + "from typing import Any, Literal", + "from fastapi._compat import ModelField", + "from fastapi.security.base import SecurityBase", + "from fastapi.types import DependencyCacheKey", + "from inspect import iscoroutinefunction", + "from asyncio import iscoroutinefunction", + "import dataclasses", + "from collections.abc import (", + "from contextlib import AsyncExitStack, contextmanager", + "from copy import copy, deepcopy", + "from dataclasses import dataclass", + "from typing import (", + "from fastapi import params", + "from fastapi._compat import (", + "from fastapi.background import BackgroundTasks", + "from fastapi.concurrency import (", + "from fastapi.dependencies.models import Dependant", + "from fastapi.exceptions import DependencyScopeError", + "from fastapi.logger import logger", + "from fastapi.security.oauth2 import SecurityScopes", + "from fastapi.utils import create_model_field, get_path_param_names", + "from pydantic import BaseModel, Json", + "from pydantic.fields import FieldInfo", + "from starlette.background import BackgroundTasks as StarletteBackgroundTasks", + "from starlette.concurrency import run_in_threadpool", + "from starlette.datastructures import (", + "from starlette.requests import HTTPConnection, Request", + "from starlette.responses import Response", + "from starlette.websockets import WebSocket", + "from typing_inspection.typing_objects import is_typealiastype", + "from python_multipart import __version__", + "from multipart import ( # type: ignore[no-redef,import-untyped]", + "from multipart.multipart import ( # type: ignore[import-untyped]" + ], + "arg_patterns": { + "_unwrapped_call": { + "occurrences": 54, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 36, + "args": 1, + "types": [ + "other" + ] + }, + { + "count": 18, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "isinstance": { + "occurrences": 164, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 76, + "args": 2, + "types": [ + "var", + "var" + ] + }, + { + "count": 60, + "args": 2, + "types": [ + "var", + "other" + ] + }, + { + "count": 28, + "args": 2, + "types": [ + "other", + "other" + ] + } + ] + }, + "iscoroutinefunction": { + "occurrences": 18, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 18, + "args": 1, + "types": [ + "call" + ] + } + ] + }, + "getattr": { + "occurrences": 68, + "arg_count": { + "min": 3, + "max": 3, + "common": 3 + }, + "patterns": [ + { + "count": 24, + "args": 3, + "types": [ + "call", + "lit", + "lit" + ] + }, + { + "count": 16, + "args": 3, + "types": [ + "var", + "lit", + "lit" + ] + }, + { + "count": 12, + "args": 3, + "types": [ + "var", + "lit", + "other" + ] + }, + { + "count": 12, + "args": 3, + "types": [ + "other", + "lit", + "lit" + ] + }, + { + "count": 4, + "args": 3, + "types": [ + "other", + "lit", + "var" + ] + } + ] + }, + "_impartial": { + "occurrences": 42, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 21, + "args": 1, + "types": [ + "other" + ] + }, + { + "count": 21, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "field": { + "occurrences": 18, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 18, + "args": 1, + "types": [ + "kwarg" + ] + } + ] + }, + "tuple": { + "occurrences": 5, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 5, + "args": 1, + "types": [ + "call" + ] + } + ] + }, + "set": { + "occurrences": 15, + "arg_count": { + "min": 0, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 5, + "args": 1, + "types": [ + "expr" + ] + }, + { + "count": 5, + "args": 1, + "types": [ + "var" + ] + }, + { + "count": 5, + "args": 0, + "types": [] + } + ] + }, + "sorted": { + "occurrences": 4, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 4, + "args": 1, + "types": [ + "call" + ] + } + ] + }, + "analyze_param": { + "occurrences": 3, + "arg_count": { + "min": 4, + "max": 4, + "common": 4 + }, + "patterns": [ + { + "count": 3, + "args": 4, + "types": [ + "kwarg", + "kwarg", + "kwarg", + "kwarg" + ] + } + ] + }, + "get_origin": { + "occurrences": 9, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 9, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "get_missing_field_error": { + "occurrences": 6, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "var" + ] + }, + { + "count": 3, + "args": 1, + "types": [ + "kwarg" + ] + } + ] + }, + "len": { + "occurrences": 32, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 28, + "args": 1, + "types": [ + "var" + ] + }, + { + "count": 4, + "args": 1, + "types": [ + "call" + ] + } + ] + }, + "ensure_multipart_is_installed": { + "occurrences": 3, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 3, + "args": 0, + "types": [] + } + ] + }, + "value_is_sequence": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "request_params_to_args": { + "occurrences": 12, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 12, + "args": 2, + "types": [ + "other", + "other" + ] + } + ] + }, + "ForwardRef": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "deepcopy": { + "occurrences": 6, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 6, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "get_flat_dependant": { + "occurrences": 6, + "arg_count": { + "min": 2, + "max": 4, + "common": 2 + }, + "patterns": [ + { + "count": 3, + "args": 4, + "types": [ + "var", + "kwarg", + "kwarg", + "kwarg" + ] + }, + { + "count": 3, + "args": 2, + "types": [ + "var", + "kwarg" + ] + } + ] + }, + "lenient_issubclass": { + "occurrences": 39, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 21, + "args": 2, + "types": [ + "var", + "var" + ] + }, + { + "count": 15, + "args": 2, + "types": [ + "other", + "var" + ] + }, + { + "count": 3, + "args": 2, + "types": [ + "var", + "other" + ] + } + ] + }, + "is_uploadfile_sequence_annotation": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "_get_flat_fields_from_params": { + "occurrences": 12, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 12, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "create_body_model": { + "occurrences": 3, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 3, + "args": 2, + "types": [ + "kwarg", + "kwarg" + ] + } + ] + }, + "get_cached_model_fields": { + "occurrences": 9, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 9, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "SolvedDependency": { + "occurrences": 3, + "arg_count": { + "min": 5, + "max": 5, + "common": 5 + }, + "patterns": [ + { + "count": 3, + "args": 5, + "types": [ + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg" + ] + } + ] + }, + "is_uploadfile_or_nonable_uploadfile_annotation": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "ParamDetails": { + "occurrences": 3, + "arg_count": { + "min": 3, + "max": 3, + "common": 3 + }, + "patterns": [ + { + "count": 3, + "args": 3, + "types": [ + "kwarg", + "kwarg", + "kwarg" + ] + } + ] + }, + "get_dependant": { + "occurrences": 9, + "arg_count": { + "min": 4, + "max": 7, + "common": 4 + }, + "patterns": [ + { + "count": 3, + "args": 7, + "types": [ + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg" + ] + }, + { + "count": 3, + "args": 5, + "types": [ + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg" + ] + }, + { + "count": 3, + "args": 4, + "types": [ + "kwarg", + "kwarg", + "kwarg", + "kwarg" + ] + } + ] + }, + "_validate_value_with_model_field": { + "occurrences": 12, + "arg_count": { + "min": 4, + "max": 4, + "common": 4 + }, + "patterns": [ + { + "count": 12, + "args": 4, + "types": [ + "kwarg", + "kwarg", + "kwarg", + "kwarg" + ] + } + ] + }, + "copy_field_info": { + "occurrences": 3, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 3, + "args": 2, + "types": [ + "kwarg", + "kwarg" + ] + } + ] + }, + "SecurityScopes": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "kwarg" + ] + } + ] + }, + "get_validation_alias": { + "occurrences": 30, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 30, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "Dependant": { + "occurrences": 6, + "arg_count": { + "min": 7, + "max": 18, + "common": 18 + }, + "patterns": [ + { + "count": 3, + "args": 7, + "types": [ + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg" + ] + }, + { + "count": 3, + "args": 18, + "types": [ + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg" + ] + } + ] + }, + "is_bytes_sequence_annotation": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "_get_signature": { + "occurrences": 6, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 6, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "create_model_field": { + "occurrences": 6, + "arg_count": { + "min": 4, + "max": 5, + "common": 4 + }, + "patterns": [ + { + "count": 3, + "args": 5, + "types": [ + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg" + ] + }, + { + "count": 3, + "args": 4, + "types": [ + "kwarg", + "kwarg", + "kwarg", + "kwarg" + ] + } + ] + }, + "RuntimeError": { + "occurrences": 8, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 8, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "_get_multidict_value": { + "occurrences": 9, + "arg_count": { + "min": 2, + "max": 3, + "common": 2 + }, + "patterns": [ + { + "count": 6, + "args": 2, + "types": [ + "var", + "var" + ] + }, + { + "count": 3, + "args": 3, + "types": [ + "var", + "var", + "kwarg" + ] + } + ] + }, + "Response": { + "occurrences": 3, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 3, + "args": 0, + "types": [] + } + ] + }, + "get_args": { + "occurrences": 9, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 9, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "solve_dependencies": { + "occurrences": 3, + "arg_count": { + "min": 9, + "max": 9, + "common": 9 + }, + "patterns": [ + { + "count": 3, + "args": 9, + "types": [ + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg" + ] + } + ] + }, + "type": { + "occurrences": 10, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 5, + "args": 1, + "types": [ + "var" + ] + }, + { + "count": 5, + "args": 1, + "types": [ + "lit" + ] + } + ] + }, + "is_typealiastype": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "any": { + "occurrences": 16, + "arg_count": { + "min": 2, + "max": 3, + "common": 2 + }, + "patterns": [ + { + "count": 8, + "args": 2, + "types": [ + "call", + "other" + ] + }, + { + "count": 4, + "args": 2, + "types": [ + "expr", + "other" + ] + }, + { + "count": 4, + "args": 3, + "types": [ + "lit", + "other", + "other" + ] + } + ] + }, + "serialize_sequence_value": { + "occurrences": 3, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 3, + "args": 2, + "types": [ + "kwarg", + "kwarg" + ] + } + ] + }, + "list": { + "occurrences": 5, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 5, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "field_annotation_is_sequence": { + "occurrences": 6, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 6, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "run_in_threadpool": { + "occurrences": 3, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 3, + "args": 2, + "types": [ + "var", + "other" + ] + } + ] + }, + "get_typed_signature": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "get_typed_annotation": { + "occurrences": 6, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 3, + "args": 2, + "types": [ + "var", + "var" + ] + }, + { + "count": 3, + "args": 2, + "types": [ + "other", + "var" + ] + } + ] + }, + "add_non_field_param_to_dependency": { + "occurrences": 3, + "arg_count": { + "min": 3, + "max": 3, + "common": 3 + }, + "patterns": [ + { + "count": 3, + "args": 3, + "types": [ + "kwarg", + "kwarg", + "kwarg" + ] + } + ] + }, + "copy": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "field_annotation_is_scalar_sequence": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "is_union_of_base_models": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "call": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "callable": { + "occurrences": 4, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 4, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "get_path_param_names": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "is_scalar_field": { + "occurrences": 6, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "var" + ] + }, + { + "count": 3, + "args": 1, + "types": [ + "kwarg" + ] + } + ] + }, + "is_bytes_or_nonable_bytes_annotation": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "contextmanager_in_threadpool": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "call" + ] + } + ] + }, + "contextmanager": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "cast": { + "occurrences": 3, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 3, + "args": 2, + "types": [ + "subscript", + "other" + ] + } + ] + }, + "add_param_to_fields": { + "occurrences": 3, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 3, + "args": 2, + "types": [ + "kwarg", + "kwarg" + ] + } + ] + }, + "BackgroundTasks": { + "occurrences": 3, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 3, + "args": 0, + "types": [] + } + ] + }, + "field_annotation_is_scalar": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "kwarg" + ] + } + ] + }, + "BodyFieldInfo": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "request_body_to_args": { + "occurrences": 3, + "arg_count": { + "min": 4, + "max": 4, + "common": 4 + }, + "patterns": [ + { + "count": 3, + "args": 4, + "types": [ + "other", + "kwarg", + "kwarg", + "kwarg" + ] + } + ] + }, + "_is_json_field": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "asynccontextmanager": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "evaluate_forwardref": { + "occurrences": 3, + "arg_count": { + "min": 3, + "max": 3, + "common": 3 + }, + "patterns": [ + { + "count": 3, + "args": 3, + "types": [ + "var", + "var", + "var" + ] + } + ] + }, + "_solve_generator": { + "occurrences": 3, + "arg_count": { + "min": 3, + "max": 3, + "common": 3 + }, + "patterns": [ + { + "count": 3, + "args": 3, + "types": [ + "kwarg", + "kwarg", + "kwarg" + ] + } + ] + }, + "_extract_form_body": { + "occurrences": 3, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 3, + "args": 2, + "types": [ + "var", + "var" + ] + } + ] + }, + "DependencyScopeError": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "other" + ] + } + ] + } + } + }, + { + "label": "fastapi/openapi", + "method_count": 19, + "imports": [ + "import json", + "from typing import Annotated, Any", + "from annotated_doc import Doc", + "from fastapi.encoders import jsonable_encoder", + "from starlette.responses import HTMLResponse", + "from collections.abc import Callable, Iterable, Mapping", + "from enum import Enum", + "from typing import Annotated, Any, Literal, Optional, Union", + "from fastapi._compat import with_info_plain_validator_function", + "from fastapi.logger import logger", + "from pydantic import (", + "from typing_extensions import TypedDict", + "from typing_extensions import deprecated as typing_deprecated", + "import email_validator", + "from pydantic import EmailStr", + "import copy", + "import http.client", + "import inspect", + "import warnings", + "from collections.abc import Sequence", + "from typing import Any, Literal, cast", + "from fastapi import routing", + "from fastapi._compat import (", + "from fastapi.datastructures import DefaultPlaceholder, _Unset", + "from fastapi.dependencies.models import Dependant", + "from fastapi.dependencies.utils import (", + "from fastapi.exceptions import FastAPIDeprecationWarning", + "from fastapi.openapi.constants import METHODS_WITH_BODY, REF_PREFIX", + "from fastapi.openapi.models import OpenAPI", + "from fastapi.params import Body, ParamTypes", + "from fastapi.responses import Response", + "from fastapi.sse import _SSE_EVENT_SCHEMA", + "from fastapi.types import ModelNameMap", + "from fastapi.utils import (", + "from pydantic import BaseModel", + "from starlette.responses import JSONResponse", + "from starlette.routing import BaseRoute" + ], + "arg_patterns": { + "any": { + "occurrences": 4, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 4, + "args": 2, + "types": [ + "expr", + "other" + ] + } + ] + }, + "get_openapi_operation_metadata": { + "occurrences": 3, + "arg_count": { + "min": 3, + "max": 3, + "common": 3 + }, + "patterns": [ + { + "count": 3, + "args": 3, + "types": [ + "kwarg", + "kwarg", + "kwarg" + ] + } + ] + }, + "getattr": { + "occurrences": 32, + "arg_count": { + "min": 3, + "max": 3, + "common": 3 + }, + "patterns": [ + { + "count": 16, + "args": 3, + "types": [ + "var", + "lit", + "lit" + ] + }, + { + "count": 8, + "args": 3, + "types": [ + "other", + "lit", + "lit" + ] + }, + { + "count": 4, + "args": 3, + "types": [ + "other", + "lit", + "var" + ] + }, + { + "count": 4, + "args": 3, + "types": [ + "other", + "lit", + "other" + ] + } + ] + }, + "_get_flat_fields_from_params": { + "occurrences": 12, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 12, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "get_openapi_path": { + "occurrences": 9, + "arg_count": { + "min": 5, + "max": 5, + "common": 5 + }, + "patterns": [ + { + "count": 9, + "args": 5, + "types": [ + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg" + ] + } + ] + }, + "generate_operation_id_for_path": { + "occurrences": 3, + "arg_count": { + "min": 3, + "max": 3, + "common": 3 + }, + "patterns": [ + { + "count": 3, + "args": 3, + "types": [ + "kwarg", + "kwarg", + "kwarg" + ] + } + ] + }, + "str": { + "occurrences": 30, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 20, + "args": 1, + "types": [ + "var" + ] + }, + { + "count": 10, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "get_definitions": { + "occurrences": 3, + "arg_count": { + "min": 3, + "max": 3, + "common": 3 + }, + "patterns": [ + { + "count": 3, + "args": 3, + "types": [ + "kwarg", + "kwarg", + "kwarg" + ] + } + ] + }, + "jsonable_encoder": { + "occurrences": 24, + "arg_count": { + "min": 1, + "max": 3, + "common": 1 + }, + "patterns": [ + { + "count": 12, + "args": 1, + "types": [ + "var" + ] + }, + { + "count": 6, + "args": 1, + "types": [ + "other" + ] + }, + { + "count": 3, + "args": 3, + "types": [ + "call", + "kwarg", + "kwarg" + ] + }, + { + "count": 3, + "args": 3, + "types": [ + "other", + "kwarg", + "kwarg" + ] + } + ] + }, + "get_schema_from_model_field": { + "occurrences": 18, + "arg_count": { + "min": 4, + "max": 4, + "common": 4 + }, + "patterns": [ + { + "count": 18, + "args": 4, + "types": [ + "kwarg", + "kwarg", + "kwarg", + "kwarg" + ] + } + ] + }, + "cast": { + "occurrences": 9, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 6, + "args": 2, + "types": [ + "other", + "var" + ] + }, + { + "count": 3, + "args": 2, + "types": [ + "var", + "other" + ] + } + ] + }, + "isinstance": { + "occurrences": 28, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 12, + "args": 2, + "types": [ + "other", + "var" + ] + }, + { + "count": 8, + "args": 2, + "types": [ + "var", + "var" + ] + }, + { + "count": 4, + "args": 2, + "types": [ + "other", + "other" + ] + }, + { + "count": 4, + "args": 2, + "types": [ + "var", + "other" + ] + } + ] + }, + "list": { + "occurrences": 20, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 10, + "args": 1, + "types": [ + "expr" + ] + }, + { + "count": 5, + "args": 1, + "types": [ + "var" + ] + }, + { + "count": 5, + "args": 1, + "types": [ + "call" + ] + } + ] + }, + "len": { + "occurrences": 4, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 4, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "get_openapi_operation_request_body": { + "occurrences": 3, + "arg_count": { + "min": 4, + "max": 4, + "common": 4 + }, + "patterns": [ + { + "count": 3, + "args": 4, + "types": [ + "kwarg", + "kwarg", + "kwarg", + "kwarg" + ] + } + ] + }, + "_get_openapi_operation_parameters": { + "occurrences": 3, + "arg_count": { + "min": 4, + "max": 4, + "common": 4 + }, + "patterns": [ + { + "count": 3, + "args": 4, + "types": [ + "kwarg", + "kwarg", + "kwarg", + "kwarg" + ] + } + ] + }, + "get_flat_dependant": { + "occurrences": 6, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 3, + "args": 2, + "types": [ + "other", + "kwarg" + ] + }, + { + "count": 3, + "args": 2, + "types": [ + "var", + "kwarg" + ] + } + ] + }, + "is_body_allowed_for_status_code": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "get_flat_params": { + "occurrences": 6, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 6, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "get_model_name_map": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "lenient_issubclass": { + "occurrences": 6, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 3, + "args": 2, + "types": [ + "other", + "var" + ] + }, + { + "count": 3, + "args": 2, + "types": [ + "var", + "var" + ] + } + ] + }, + "sorted": { + "occurrences": 4, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 4, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "_get_api_route_for_openapi": { + "occurrences": 9, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 9, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "int": { + "occurrences": 5, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 5, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "set": { + "occurrences": 10, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 10, + "args": 0, + "types": [] + } + ] + }, + "generate_operation_summary": { + "occurrences": 3, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 3, + "args": 2, + "types": [ + "kwarg", + "kwarg" + ] + } + ] + }, + "get_openapi_security_definitions": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "kwarg" + ] + } + ] + }, + "deep_dict_update": { + "occurrences": 9, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 6, + "args": 2, + "types": [ + "var", + "var" + ] + }, + { + "count": 3, + "args": 2, + "types": [ + "var", + "other" + ] + } + ] + }, + "get_fields_from_routes": { + "occurrences": 6, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "other" + ] + }, + { + "count": 3, + "args": 1, + "types": [ + "expr" + ] + } + ] + }, + "get_flat_models_from_fields": { + "occurrences": 3, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 3, + "args": 2, + "types": [ + "var", + "kwarg" + ] + } + ] + }, + "get_validation_alias": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "OpenAPI": { + "occurrences": 4, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "other" + ] + }, + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "Doc": { + "occurrences": 42, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 42, + "args": 1, + "types": [ + "lit" + ] + } + ] + }, + "HTMLResponse": { + "occurrences": 9, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 6, + "args": 1, + "types": [ + "var" + ] + }, + { + "count": 3, + "args": 1, + "types": [ + "kwarg" + ] + } + ] + }, + "_html_safe_json": { + "occurrences": 9, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 6, + "args": 1, + "types": [ + "call" + ] + }, + { + "count": 3, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "Field": { + "occurrences": 99, + "arg_count": { + "min": 1, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 84, + "args": 2, + "types": [ + "kwarg", + "kwarg" + ] + }, + { + "count": 15, + "args": 1, + "types": [ + "kwarg" + ] + } + ] + }, + "Example": { + "occurrences": 1, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 1, + "args": 2, + "types": [ + "var", + "kwarg" + ] + } + ] + }, + "XML": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "ParameterInType": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "EmailStr": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "APIKey": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "Components": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "OAuthFlows": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "typing_deprecated": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "Info": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "Link": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "HTTPBase": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "OAuth2": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "Tag": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "Contact": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "with_info_plain_validator_function": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "License": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "Encoding": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "ParameterBase": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "HTTPBearer": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "OpenIdConnect": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "Response": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "ServerVariable": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "Parameter": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "Discriminator": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "Header": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "PathItem": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "OAuthFlow": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "SecuritySchemeType": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "OAuthFlowImplicit": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "Schema": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "Server": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "Reference": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "ExternalDocumentation": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "MediaType": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "OAuthFlowPassword": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "RequestBody": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "OAuthFlowClientCredentials": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "BaseModelWithConfig": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "Operation": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "SecurityBase": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "OAuthFlowAuthorizationCode": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "APIKeyIn": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "class": { + "occurrences": 41, + "arg_count": { + "min": 1, + "max": 2, + "common": 1 + }, + "patterns": [ + { + "count": 40, + "args": 1, + "types": [ + "var" + ] + }, + { + "count": 1, + "args": 2, + "types": [ + "var", + "kwarg" + ] + } + ] + } + } + }, + { + "label": "fastapi/security", + "method_count": 34, + "grammar": "root ::= \"auto_error\"+", + "grammar_clean": "root ::= \"auto_error\"+", + "noise_ratio": 0.0, + "symbols_before": 1, + "symbols_after": 1, + "algorithm": "CRX", + "mdl_score": 2, + "imports": [ + "from typing import Annotated", + "from annotated_doc import Doc", + "from fastapi.openapi.models import APIKey, APIKeyIn", + "from fastapi.security.base import SecurityBase", + "from starlette.exceptions import HTTPException", + "from starlette.requests import Request", + "from starlette.status import HTTP_401_UNAUTHORIZED", + "include a WWW-Authenticate header.", + "from fastapi import Depends, FastAPI", + "from fastapi.security import APIKeyQuery", + "from fastapi.security import APIKeyHeader", + "import binascii", + "from base64 import b64decode", + "from fastapi.exceptions import HTTPException", + "from fastapi.openapi.models import HTTPBase as HTTPBaseModel", + "from fastapi.openapi.models import HTTPBearer as HTTPBearerModel", + "from fastapi.security.utils import get_authorization_scheme_param", + "from pydantic import BaseModel", + "from fastapi.security import HTTPBasic, HTTPBasicCredentials", + "from typing import Annotated, Any, cast", + "from fastapi.openapi.models import OAuth2 as OAuth2Model", + "from fastapi.openapi.models import OAuthFlows as OAuthFlowsModel", + "from fastapi.param_functions import Form", + "from fastapi.security import OAuth2PasswordRequestForm", + "from fastapi.openapi.models import OpenIdConnect as OpenIdConnectModel" + ], + "arg_patterns": { + "Doc": { + "occurrences": 186, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 186, + "args": 1, + "types": [ + "lit" + ] + } + ] + }, + "Form": { + "occurrences": 36, + "arg_count": { + "min": 0, + "max": 1, + "common": 0 + }, + "patterns": [ + { + "count": 24, + "args": 0, + "types": [] + }, + { + "count": 12, + "args": 1, + "types": [ + "kwarg" + ] + } + ] + }, + "OAuth2": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "super": { + "occurrences": 24, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 24, + "args": 0, + "types": [] + } + ] + }, + "OAuth2PasswordRequestFormStrict": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "OAuth2Model": { + "occurrences": 3, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 3, + "args": 2, + "types": [ + "kwarg", + "kwarg" + ] + } + ] + }, + "cast": { + "occurrences": 9, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 6, + "args": 2, + "types": [ + "var", + "other" + ] + }, + { + "count": 3, + "args": 2, + "types": [ + "var", + "var" + ] + } + ] + }, + "OAuth2PasswordBearer": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "OAuthFlowsModel": { + "occurrences": 9, + "arg_count": { + "min": 0, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 6, + "args": 1, + "types": [ + "kwarg" + ] + }, + { + "count": 3, + "args": 0, + "types": [] + } + ] + }, + "OAuth2AuthorizationCodeBearer": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "get_authorization_scheme_param": { + "occurrences": 18, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 18, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "HTTPException": { + "occurrences": 12, + "arg_count": { + "min": 3, + "max": 3, + "common": 3 + }, + "patterns": [ + { + "count": 12, + "args": 3, + "types": [ + "kwarg", + "kwarg", + "kwarg" + ] + } + ] + }, + "class": { + "occurrences": 15, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 15, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "HTTPBasicCredentials": { + "occurrences": 4, + "arg_count": { + "min": 1, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 3, + "args": 2, + "types": [ + "kwarg", + "kwarg" + ] + }, + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "HTTPBasic": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "HTTPAuthorizationCredentials": { + "occurrences": 10, + "arg_count": { + "min": 1, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 9, + "args": 2, + "types": [ + "kwarg", + "kwarg" + ] + }, + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "HTTPBearer": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "HTTPBaseModel": { + "occurrences": 9, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 9, + "args": 2, + "types": [ + "kwarg", + "kwarg" + ] + } + ] + }, + "HTTPDigest": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "b64decode": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "HTTPBearerModel": { + "occurrences": 3, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 3, + "args": 2, + "types": [ + "kwarg", + "kwarg" + ] + } + ] + }, + "HTTPBase": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "OpenIdConnect": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "OpenIdConnectModel": { + "occurrences": 3, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 3, + "args": 2, + "types": [ + "kwarg", + "kwarg" + ] + } + ] + }, + "APIKeyBase": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "APIKey": { + "occurrences": 3, + "arg_count": { + "min": 4, + "max": 4, + "common": 4 + }, + "patterns": [ + { + "count": 3, + "args": 4, + "types": [ + "other", + "other", + "kwarg", + "kwarg" + ] + } + ] + }, + "APIKeyCookie": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "APIKeyQuery": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "APIKeyHeader": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + } + } + }, + { + "label": "scripts", + "method_count": 132, + "imports": [ + "import re", + "import sys", + "from datetime import date", + "import logging", + "import secrets", + "import subprocess", + "from collections import Counter", + "from datetime import datetime", + "from pathlib import Path", + "from typing import Any", + "import httpx", + "import yaml", + "from github import Github", + "from pydantic import BaseModel, SecretStr", + "from pydantic_settings import BaseSettings", + "from typing import Literal", + "from github import Auth, Github", + "from typing import TypedDict", + "import json", + "import os", + "import shutil", + "from html.parser import HTMLParser", + "from http.server import HTTPServer, SimpleHTTPRequestHandler", + "from multiprocessing import Pool", + "import typer", + "from jinja2 import Template", + "from ruff.__main__ import find_ruff_bin", + "from slugify import slugify as py_slugify", + "import random", + "import time", + "from typing import Any, cast", + "from collections.abc import Container", + "from datetime import datetime, timedelta, timezone", + "from math import ceil", + "from typing import Annotated, Any", + "from pydantic import BaseModel, BeforeValidator, SecretStr", + "from typing import Annotated, Literal", + "from collections import defaultdict", + "from collections.abc import Iterable", + "from functools import lru_cache", + "from os import sep as pathsep", + "from typing import Annotated", + "import git", + "from doc_parsing_utils import check_translation", + "from pydantic_ai import Agent", + "from rich import print", + "from scripts.doc_parsing_utils import check_translation" + ], + "arg_patterns": { + "get_lang_paths": { + "occurrences": 15, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 15, + "args": 0, + "types": [] + } + ] + }, + "generate_readme_content": { + "occurrences": 3, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 3, + "args": 0, + "types": [] + } + ] + }, + "print": { + "occurrences": 320, + "arg_count": { + "min": 1, + "max": 2, + "common": 1 + }, + "patterns": [ + { + "count": 264, + "args": 1, + "types": [ + "lit" + ] + }, + { + "count": 24, + "args": 1, + "types": [ + "var" + ] + }, + { + "count": 20, + "args": 1, + "types": [ + "call" + ] + }, + { + "count": 8, + "args": 1, + "types": [ + "other" + ] + }, + { + "count": 4, + "args": 2, + "types": [ + "lit", + "var" + ] + } + ] + }, + "update_languages": { + "occurrences": 6, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 6, + "args": 0, + "types": [] + } + ] + }, + "sorted": { + "occurrences": 28, + "arg_count": { + "min": 1, + "max": 2, + "common": 1 + }, + "patterns": [ + { + "count": 24, + "args": 1, + "types": [ + "call" + ] + }, + { + "count": 4, + "args": 2, + "types": [ + "call", + "kwarg" + ] + } + ] + }, + "Path": { + "occurrences": 135, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 114, + "args": 1, + "types": [ + "lit" + ] + }, + { + "count": 12, + "args": 1, + "types": [ + "var" + ] + }, + { + "count": 6, + "args": 1, + "types": [ + "call" + ] + }, + { + "count": 3, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "set": { + "occurrences": 10, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 10, + "args": 0, + "types": [] + } + ] + }, + "add_markdown_notice": { + "occurrences": 6, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 6, + "args": 2, + "types": [ + "var", + "var" + ] + } + ] + }, + "copy_zensical_stage_to_site": { + "occurrences": 9, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 6, + "args": 1, + "types": [ + "var" + ] + }, + { + "count": 3, + "args": 1, + "types": [ + "lit" + ] + } + ] + }, + "str": { + "occurrences": 180, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 180, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "list": { + "occurrences": 65, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 60, + "args": 1, + "types": [ + "call" + ] + }, + { + "count": 5, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "get_banner_sponsors": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "min": { + "occurrences": 4, + "arg_count": { + "min": 3, + "max": 3, + "common": 3 + }, + "patterns": [ + { + "count": 4, + "args": 3, + "types": [ + "lit", + "call", + "expr" + ] + } + ] + }, + "len": { + "occurrences": 200, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 148, + "args": 1, + "types": [ + "var" + ] + }, + { + "count": 24, + "args": 1, + "types": [ + "call" + ] + }, + { + "count": 20, + "args": 1, + "types": [ + "subscript" + ] + }, + { + "count": 8, + "args": 1, + "types": [ + "lit" + ] + } + ] + }, + "generate_docs_src_versions_for_file": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "build_zensical_lang_to_stage": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "is_non_translated_path": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "get_en_config": { + "occurrences": 6, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 6, + "args": 0, + "types": [] + } + ] + }, + "get_updated_config_content": { + "occurrences": 6, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 6, + "args": 0, + "types": [] + } + ] + }, + "build_zensical_config": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "get_zensical_theme_language": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "VisibleTextExtractor": { + "occurrences": 4, + "arg_count": { + "min": 0, + "max": 1, + "common": 0 + }, + "patterns": [ + { + "count": 3, + "args": 0, + "types": [] + }, + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "Template": { + "occurrences": 6, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 6, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "add_permalinks_page": { + "occurrences": 6, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 6, + "args": 2, + "types": [ + "var", + "kwarg" + ] + } + ] + }, + "render_banner_sponsors": { + "occurrences": 6, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 6, + "args": 0, + "types": [] + } + ] + }, + "find_ruff_bin": { + "occurrences": 6, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 6, + "args": 0, + "types": [] + } + ] + }, + "Pool": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "super": { + "occurrences": 4, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 4, + "args": 0, + "types": [] + } + ] + }, + "remove_header_permalinks": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "stage_zensical_docs": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "strip_markdown_links": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "any": { + "occurrences": 8, + "arg_count": { + "min": 1, + "max": 2, + "common": 1 + }, + "patterns": [ + { + "count": 4, + "args": 2, + "types": [ + "call", + "other" + ] + }, + { + "count": 4, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "app": { + "occurrences": 9, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 9, + "args": 0, + "types": [] + } + ] + }, + "get_en_url": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "RuntimeError": { + "occurrences": 84, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 44, + "args": 1, + "types": [ + "lit" + ] + }, + { + "count": 36, + "args": 1, + "types": [ + "other" + ] + }, + { + "count": 4, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "HTTPServer": { + "occurrences": 3, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 3, + "args": 2, + "types": [ + "var", + "var" + ] + } + ] + }, + "render_banner_sponsors_partial": { + "occurrences": 3, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 3, + "args": 0, + "types": [] + } + ] + }, + "slugify": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "call" + ] + } + ] + }, + "split_markdown_header": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "py_slugify": { + "occurrences": 3, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 3, + "args": 2, + "types": [ + "var", + "kwarg" + ] + } + ] + }, + "class": { + "occurrences": 70, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 70, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "get_prompt": { + "occurrences": 3, + "arg_count": { + "min": 6, + "max": 6, + "common": 6 + }, + "patterns": [ + { + "count": 3, + "args": 6, + "types": [ + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg" + ] + } + ] + }, + "iter_en_paths_to_translate": { + "occurrences": 9, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 9, + "args": 0, + "types": [] + } + ] + }, + "generate_lang_path": { + "occurrences": 12, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 12, + "args": 2, + "types": [ + "kwarg", + "kwarg" + ] + } + ] + }, + "get_llm_translatable": { + "occurrences": 6, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 6, + "args": 0, + "types": [] + } + ] + }, + "get_langs": { + "occurrences": 9, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 9, + "args": 0, + "types": [] + } + ] + }, + "update_outdated": { + "occurrences": 3, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 3, + "args": 2, + "types": [ + "kwarg", + "kwarg" + ] + } + ] + }, + "list_removable": { + "occurrences": 6, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 6, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "Agent": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "lit" + ] + } + ] + }, + "translate_page": { + "occurrences": 9, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 9, + "args": 2, + "types": [ + "kwarg", + "kwarg" + ] + } + ] + }, + "list_missing": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "Github": { + "occurrences": 21, + "arg_count": { + "min": 1, + "max": 2, + "common": 1 + }, + "patterns": [ + { + "count": 12, + "args": 1, + "types": [ + "call" + ] + }, + { + "count": 3, + "args": 1, + "types": [ + "var" + ] + }, + { + "count": 3, + "args": 2, + "types": [ + "call", + "kwarg" + ] + }, + { + "count": 3, + "args": 1, + "types": [ + "kwarg" + ] + } + ] + }, + "list_outdated": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "add_missing": { + "occurrences": 3, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 3, + "args": 2, + "types": [ + "kwarg", + "kwarg" + ] + } + ] + }, + "range": { + "occurrences": 10, + "arg_count": { + "min": 1, + "max": 2, + "common": 1 + }, + "patterns": [ + { + "count": 5, + "args": 2, + "types": [ + "lit", + "expr" + ] + }, + { + "count": 5, + "args": 1, + "types": [ + "call" + ] + } + ] + }, + "check_translation": { + "occurrences": 6, + "arg_count": { + "min": 5, + "max": 5, + "common": 5 + }, + "patterns": [ + { + "count": 6, + "args": 5, + "types": [ + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg" + ] + } + ] + }, + "list_all_removable": { + "occurrences": 3, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 3, + "args": 0, + "types": [] + } + ] + }, + "generate_en_path": { + "occurrences": 3, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 3, + "args": 2, + "types": [ + "kwarg", + "kwarg" + ] + } + ] + }, + "iter_all_en_paths": { + "occurrences": 3, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 3, + "args": 0, + "types": [] + } + ] + }, + "tuple": { + "occurrences": 10, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 10, + "args": 2, + "types": [ + "call", + "other" + ] + } + ] + }, + "process_one_page": { + "occurrences": 6, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 6, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "get_all_paths": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "cli": { + "occurrences": 3, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 3, + "args": 0, + "types": [] + } + ] + }, + "iter_all_lang_paths": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "Settings": { + "occurrences": 24, + "arg_count": { + "min": 0, + "max": 1, + "common": 0 + }, + "patterns": [ + { + "count": 18, + "args": 0, + "types": [] + }, + { + "count": 6, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "main": { + "occurrences": 21, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 21, + "args": 0, + "types": [] + } + ] + }, + "Repo": { + "occurrences": 4, + "arg_count": { + "min": 1, + "max": 5, + "common": 5 + }, + "patterns": [ + { + "count": 3, + "args": 5, + "types": [ + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg" + ] + }, + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "UpdateDiscussionComment": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "AddCommentData": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "AllDiscussionsDiscussionLabels": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "PartialGitHubEventIssue": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "cast": { + "occurrences": 6, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 3, + "args": 2, + "types": [ + "var", + "var" + ] + }, + { + "count": 3, + "args": 2, + "types": [ + "subscript", + "var" + ] + } + ] + }, + "CommentsEdge": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "CommentsResponse": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "AllDiscussionsLabelNode": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "get_graphql_response": { + "occurrences": 21, + "arg_count": { + "min": 3, + "max": 4, + "common": 4 + }, + "patterns": [ + { + "count": 12, + "args": 4, + "types": [ + "kwarg", + "kwarg", + "kwarg", + "kwarg" + ] + }, + { + "count": 9, + "args": 3, + "types": [ + "kwarg", + "kwarg", + "kwarg" + ] + } + ] + }, + "AllDiscussionsLabelsEdge": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "CommentsData": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "Comments": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "CommentsDiscussion": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "UpdateCommentResponse": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "AllDiscussionsData": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "AllDiscussionsDiscussionNode": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "UpdateCommentData": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "AllDiscussionsRepository": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "get_graphql_translation_discussions": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "kwarg" + ] + } + ] + }, + "AllDiscussionsDiscussions": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "AllDiscussionsResponse": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "get_graphql_translation_discussion_comments": { + "occurrences": 3, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 3, + "args": 2, + "types": [ + "kwarg", + "kwarg" + ] + } + ] + }, + "create_comment": { + "occurrences": 3, + "arg_count": { + "min": 3, + "max": 3, + "common": 3 + }, + "patterns": [ + { + "count": 3, + "args": 3, + "types": [ + "kwarg", + "kwarg", + "kwarg" + ] + } + ] + }, + "AddCommentResponse": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "get_graphql_translation_discussion_comments_edges": { + "occurrences": 6, + "arg_count": { + "min": 2, + "max": 3, + "common": 2 + }, + "patterns": [ + { + "count": 3, + "args": 2, + "types": [ + "kwarg", + "kwarg" + ] + }, + { + "count": 3, + "args": 3, + "types": [ + "kwarg", + "kwarg", + "kwarg" + ] + } + ] + }, + "update_comment": { + "occurrences": 3, + "arg_count": { + "min": 3, + "max": 3, + "common": 3 + }, + "patterns": [ + { + "count": 3, + "args": 3, + "types": [ + "kwarg", + "kwarg", + "kwarg" + ] + } + ] + }, + "AddDiscussionComment": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "PartialGitHubEvent": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "CommentsRepository": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "Comment": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "next": { + "occurrences": 4, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 4, + "args": 2, + "types": [ + "other", + "lit" + ] + } + ] + }, + "LinkData": { + "occurrences": 4, + "arg_count": { + "min": 1, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 3, + "args": 2, + "types": [ + "kwarg", + "kwarg" + ] + }, + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "SponsorshipAsMaintainer": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "SponsorshipAsMaintainerNode": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "SponsorsResponseData": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "defaultdict": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "update_content": { + "occurrences": 15, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 15, + "args": 2, + "types": [ + "kwarg", + "kwarg" + ] + } + ] + }, + "get_graphql_sponsor_edges": { + "occurrences": 6, + "arg_count": { + "min": 1, + "max": 2, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "kwarg" + ] + }, + { + "count": 3, + "args": 2, + "types": [ + "kwarg", + "kwarg" + ] + } + ] + }, + "SponsorsUser": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "Tier": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "get_individual_sponsors": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "kwarg" + ] + } + ] + }, + "SponsorshipAsMaintainerEdge": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "SponsorEntity": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "SponsorsResponse": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "get_current_version": { + "occurrences": 12, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 6, + "args": 2, + "types": [ + "call", + "var" + ] + }, + { + "count": 6, + "args": 2, + "types": [ + "var", + "var" + ] + } + ] + }, + "ValueError": { + "occurrences": 36, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 32, + "args": 1, + "types": [ + "other" + ] + }, + { + "count": 4, + "args": 1, + "types": [ + "lit" + ] + } + ] + }, + "int": { + "occurrences": 15, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 15, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "parse_version": { + "occurrences": 9, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 9, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "update_version_file": { + "occurrences": 3, + "arg_count": { + "min": 3, + "max": 3, + "common": 3 + }, + "patterns": [ + { + "count": 3, + "args": 3, + "types": [ + "var", + "var", + "var" + ] + } + ] + }, + "bump_version": { + "occurrences": 3, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 3, + "args": 2, + "types": [ + "call", + "var" + ] + } + ] + }, + "update_release_notes": { + "occurrences": 3, + "arg_count": { + "min": 4, + "max": 4, + "common": 4 + }, + "patterns": [ + { + "count": 3, + "args": 4, + "types": [ + "var", + "var", + "var", + "var" + ] + } + ] + }, + "get_release_notes_body": { + "occurrences": 3, + "arg_count": { + "min": 3, + "max": 3, + "common": 3 + }, + "patterns": [ + { + "count": 3, + "args": 3, + "types": [ + "call", + "var", + "var" + ] + } + ] + }, + "Author": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "DiscussionsResponse": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "BeforeValidator": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "lambda" + ] + } + ] + }, + "timedelta": { + "occurrences": 12, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 12, + "args": 1, + "types": [ + "kwarg" + ] + } + ] + }, + "get_users_to_write": { + "occurrences": 24, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 24, + "args": 2, + "types": [ + "kwarg", + "kwarg" + ] + } + ] + }, + "DiscussionsNode": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "DiscussionsResponseData": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "get_discussion_nodes": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "kwarg" + ] + } + ] + }, + "CommentsNode": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "Replies": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "get_graphql_question_discussion_edges": { + "occurrences": 6, + "arg_count": { + "min": 1, + "max": 2, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "kwarg" + ] + }, + { + "count": 3, + "args": 2, + "types": [ + "kwarg", + "kwarg" + ] + } + ] + }, + "DiscussionsCommentsNode": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "max": { + "occurrences": 16, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 8, + "args": 2, + "types": [ + "var", + "other" + ] + }, + { + "count": 4, + "args": 2, + "types": [ + "var", + "var" + ] + }, + { + "count": 4, + "args": 2, + "types": [ + "var", + "lit" + ] + } + ] + }, + "isinstance": { + "occurrences": 24, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 24, + "args": 2, + "types": [ + "var", + "var" + ] + } + ] + }, + "ceil": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "call" + ] + } + ] + }, + "DiscussionExpertsResults": { + "occurrences": 4, + "arg_count": { + "min": 1, + "max": 6, + "common": 6 + }, + "patterns": [ + { + "count": 3, + "args": 6, + "types": [ + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg" + ] + }, + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "get_discussions_experts": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "kwarg" + ] + } + ] + }, + "Discussions": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "RateLimiter": { + "occurrences": 3, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 3, + "args": 0, + "types": [] + } + ] + }, + "DiscussionsRepository": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "DiscussionsComments": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "DiscussionsEdge": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "open": { + "occurrences": 8, + "arg_count": { + "min": 1, + "max": 2, + "common": 1 + }, + "patterns": [ + { + "count": 4, + "args": 1, + "types": [ + "var" + ] + }, + { + "count": 4, + "args": 2, + "types": [ + "var", + "lit" + ] + } + ] + }, + "enumerate": { + "occurrences": 44, + "arg_count": { + "min": 1, + "max": 2, + "common": 1 + }, + "patterns": [ + { + "count": 24, + "args": 1, + "types": [ + "var" + ] + }, + { + "count": 20, + "args": 2, + "types": [ + "var", + "kwarg" + ] + } + ] + }, + "MultilineCodeBlockInfo": { + "occurrences": 7, + "arg_count": { + "min": 1, + "max": 3, + "common": 3 + }, + "patterns": [ + { + "count": 6, + "args": 3, + "types": [ + "kwarg", + "kwarg", + "kwarg" + ] + }, + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "_construct_markdown_link": { + "occurrences": 3, + "arg_count": { + "min": 5, + "max": 5, + "common": 5 + }, + "patterns": [ + { + "count": 3, + "args": 5, + "types": [ + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg" + ] + } + ] + }, + "replace_placeholders_with_code_includes": { + "occurrences": 3, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 3, + "args": 2, + "types": [ + "var", + "var" + ] + } + ] + }, + "HTMLLinkAttribute": { + "occurrences": 7, + "arg_count": { + "min": 1, + "max": 3, + "common": 3 + }, + "patterns": [ + { + "count": 6, + "args": 3, + "types": [ + "kwarg", + "kwarg", + "kwarg" + ] + }, + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "get_code_block_lang": { + "occurrences": 6, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 6, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "replace_multiline_code_block": { + "occurrences": 3, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 3, + "args": 2, + "types": [ + "var", + "var" + ] + } + ] + }, + "extract_markdown_links": { + "occurrences": 6, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 6, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "MarkdownLinkInfo": { + "occurrences": 4, + "arg_count": { + "min": 1, + "max": 6, + "common": 6 + }, + "patterns": [ + { + "count": 3, + "args": 6, + "types": [ + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg" + ] + }, + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "_split_hash_comment": { + "occurrences": 6, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 6, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "extract_html_links": { + "occurrences": 6, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 6, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "extract_header_permalinks": { + "occurrences": 6, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 6, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "HtmlLinkInfo": { + "occurrences": 4, + "arg_count": { + "min": 1, + "max": 4, + "common": 4 + }, + "patterns": [ + { + "count": 3, + "args": 4, + "types": [ + "kwarg", + "kwarg", + "kwarg", + "kwarg" + ] + }, + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "CodeIncludeInfo": { + "occurrences": 4, + "arg_count": { + "min": 1, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 3, + "args": 2, + "types": [ + "kwarg", + "kwarg" + ] + }, + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "HeaderPermalinkInfo": { + "occurrences": 4, + "arg_count": { + "min": 1, + "max": 4, + "common": 4 + }, + "patterns": [ + { + "count": 3, + "args": 4, + "types": [ + "kwarg", + "kwarg", + "kwarg", + "kwarg" + ] + }, + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "extract_multiline_code_blocks": { + "occurrences": 6, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 6, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "zip": { + "occurrences": 8, + "arg_count": { + "min": 3, + "max": 3, + "common": 3 + }, + "patterns": [ + { + "count": 4, + "args": 3, + "types": [ + "subscript", + "subscript", + "kwarg" + ] + }, + { + "count": 4, + "args": 3, + "types": [ + "var", + "var", + "kwarg" + ] + } + ] + }, + "replace_markdown_links": { + "occurrences": 3, + "arg_count": { + "min": 4, + "max": 4, + "common": 4 + }, + "patterns": [ + { + "count": 3, + "args": 4, + "types": [ + "var", + "var", + "var", + "var" + ] + } + ] + }, + "replace_code_includes_with_placeholders": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "_add_lang_code_to_url": { + "occurrences": 6, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 6, + "args": 2, + "types": [ + "var", + "var" + ] + } + ] + }, + "replace_header_permalinks": { + "occurrences": 3, + "arg_count": { + "min": 3, + "max": 3, + "common": 3 + }, + "patterns": [ + { + "count": 3, + "args": 3, + "types": [ + "var", + "var", + "var" + ] + } + ] + }, + "replace_multiline_code_blocks_in_text": { + "occurrences": 3, + "arg_count": { + "min": 3, + "max": 3, + "common": 3 + }, + "patterns": [ + { + "count": 3, + "args": 3, + "types": [ + "var", + "var", + "var" + ] + } + ] + }, + "_split_slashes_comment": { + "occurrences": 6, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 6, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "extract_code_includes": { + "occurrences": 6, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 6, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "_construct_html_link": { + "occurrences": 3, + "arg_count": { + "min": 3, + "max": 3, + "common": 3 + }, + "patterns": [ + { + "count": 3, + "args": 3, + "types": [ + "kwarg", + "kwarg", + "kwarg" + ] + } + ] + }, + "replace_html_links": { + "occurrences": 3, + "arg_count": { + "min": 4, + "max": 4, + "common": 4 + }, + "patterns": [ + { + "count": 3, + "args": 4, + "types": [ + "var", + "var", + "var", + "var" + ] + } + ] + }, + "PullRequestEdge": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "PRsRepository": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "PRsResponseData": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "get_graphql_pr_edges": { + "occurrences": 6, + "arg_count": { + "min": 1, + "max": 2, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 2, + "types": [ + "kwarg", + "kwarg" + ] + }, + { + "count": 3, + "args": 1, + "types": [ + "kwarg" + ] + } + ] + }, + "get_contributors": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "kwarg" + ] + } + ] + }, + "PRsResponse": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "ReviewNode": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "PullRequestNode": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "ContributorsResults": { + "occurrences": 4, + "arg_count": { + "min": 1, + "max": 4, + "common": 4 + }, + "patterns": [ + { + "count": 3, + "args": 4, + "types": [ + "kwarg", + "kwarg", + "kwarg", + "kwarg" + ] + }, + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "PullRequests": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "Labels": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "LabelNode": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "get_pr_nodes": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "kwarg" + ] + } + ] + }, + "Reviews": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + } + } + }, + { + "label": "scripts/playwright", + "method_count": 7, + "grammar": "root ::= (\"browser\" | \"chromium\" | \"click\" | \"close\" | \"context\" | \"get_by_label\" | \"get_by_role\" | \"goto\" | \"headless\" | \"launch\" | \"name\" | \"new_context\" | \"new_page\" | \"page\" | \"path\" | \"playwright\" | \"screenshot\" | \"viewport\")+", + "grammar_clean": "root ::= (\"browser\" | \"chromium\" | \"click\" | \"close\" | \"context\" | \"get_by_label\" | \"get_by_role\" | \"goto\" | \"headless\" | \"launch\" | \"name\" | \"new_context\" | \"new_page\" | \"page\" | \"path\" | \"playwright\" | \"screenshot\" | \"viewport\")+", + "noise_ratio": 0.0, + "symbols_before": 18, + "symbols_after": 18, + "algorithm": "CRX", + "mdl_score": 5681052, + "imports": [ + "import subprocess", + "import time", + "import httpx", + "from playwright.sync_api import Playwright, sync_playwright" + ], + "arg_patterns": { + "range": { + "occurrences": 35, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 35, + "args": 1, + "types": [ + "lit" + ] + } + ] + }, + "sync_playwright": { + "occurrences": 21, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 21, + "args": 0, + "types": [] + } + ] + }, + "run": { + "occurrences": 21, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 21, + "args": 1, + "types": [ + "var" + ] + } + ] + } + } + }, + { + "label": "scripts/playwright/separate_openapi_schemas", + "method_count": 5, + "grammar": "root ::= (\"browser\" | \"chromium\" | \"click\" | \"close\" | \"context\" | \"exact\" | \"get_by_label\" | \"get_by_role\" | \"get_by_text\" | \"goto\" | \"headless\" | \"launch\" | \"name\" | \"new_context\" | \"new_page\" | \"page\" | \"path\" | \"playwright\" | \"screenshot\" | \"set_viewport_size\" | \"viewport\")+", + "grammar_clean": "root ::= (\"browser\" | \"chromium\" | \"click\" | \"close\" | \"context\" | \"exact\" | \"get_by_label\" | \"get_by_role\" | \"get_by_text\" | \"goto\" | \"headless\" | \"launch\" | \"name\" | \"new_context\" | \"new_page\" | \"page\" | \"path\" | \"playwright\" | \"screenshot\" | \"set_viewport_size\" | \"viewport\")+", + "noise_ratio": 0.05, + "symbols_before": 22, + "symbols_after": 21, + "algorithm": "CRX", + "mdl_score": 15951716, + "imports": [ + "import subprocess", + "from playwright.sync_api import Playwright, sync_playwright" + ], + "arg_patterns": { + "sync_playwright": { + "occurrences": 15, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 15, + "args": 0, + "types": [] + } + ] + }, + "run": { + "occurrences": 15, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 15, + "args": 1, + "types": [ + "var" + ] + } + ] + } + } + }, + { + "label": "scripts/tests/test_translation_fixer", + "method_count": 12, + "grammar": "root ::= (\"Path\" | \"cli\" | \"data_path\" | \"exit_code\" | \"expected_content\" | \"fixed_content\" | \"output\" | \"read_text\" | \"result\" | \"root_dir\" | \"runner\")+", + "grammar_clean": "root ::= (\"Path\" | \"cli\" | \"data_path\" | \"exit_code\" | \"expected_content\" | \"fixed_content\" | \"output\" | \"read_text\" | \"result\" | \"root_dir\" | \"runner\")+", + "noise_ratio": 0.15, + "symbols_before": 13, + "symbols_after": 11, + "algorithm": "CRX", + "mdl_score": 804466, + "imports": [ + "import os", + "import shutil", + "import sys", + "from collections.abc import Generator", + "from contextlib import contextmanager", + "from pathlib import Path", + "import pytest", + "from typer.testing import CliRunner", + "from scripts.translation_fixer import cli" + ], + "arg_patterns": { + "Path": { + "occurrences": 45, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 33, + "args": 1, + "types": [ + "lit" + ] + }, + { + "count": 6, + "args": 1, + "types": [ + "subscript" + ] + }, + { + "count": 3, + "args": 1, + "types": [ + "var" + ] + }, + { + "count": 3, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "str": { + "occurrences": 20, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 10, + "args": 1, + "types": [ + "var" + ] + }, + { + "count": 10, + "args": 1, + "types": [ + "expr" + ] + } + ] + }, + "changing_dir": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "CliRunner": { + "occurrences": 3, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 3, + "args": 0, + "types": [] + } + ] + } + } + }, + { + "label": "scripts/tests/test_translation_fixer/test_code_blocks", + "method_count": 8, + "grammar": "root ::= (\"Path\" | \"cli\" | \"data_path\" | \"exit_code\" | \"expected_content\" | \"fixed_content\" | \"output\" | \"read_text\" | \"result\" | \"root_dir\" | \"runner\")+", + "grammar_clean": "root ::= (\"Path\" | \"cli\" | \"data_path\" | \"exit_code\" | \"expected_content\" | \"fixed_content\" | \"output\" | \"read_text\" | \"result\" | \"root_dir\" | \"runner\")+", + "noise_ratio": 0.15, + "symbols_before": 13, + "symbols_after": 11, + "algorithm": "CRX", + "mdl_score": 890149, + "imports": [ + "from pathlib import Path", + "import pytest", + "from typer.testing import CliRunner", + "from scripts.translation_fixer import cli" + ], + "arg_patterns": { + "Path": { + "occurrences": 36, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 36, + "args": 1, + "types": [ + "lit" + ] + } + ] + } + } + }, + { + "label": "scripts/tests/test_translation_fixer/test_header_permalinks", + "method_count": 4, + "grammar": "root ::= (\"Path\" | \"cli\" | \"data_path\" | \"exit_code\" | \"expected_content\" | \"fixed_content\" | \"output\" | \"read_text\" | \"result\" | \"root_dir\" | \"runner\")+", + "grammar_clean": "root ::= (\"Path\" | \"cli\" | \"data_path\" | \"exit_code\" | \"expected_content\" | \"fixed_content\" | \"output\" | \"read_text\" | \"result\" | \"root_dir\" | \"runner\")+", + "noise_ratio": 0.15, + "symbols_before": 13, + "symbols_after": 11, + "algorithm": "CRX", + "mdl_score": 747344, + "imports": [ + "from pathlib import Path", + "import pytest", + "from typer.testing import CliRunner", + "from scripts.translation_fixer import cli" + ], + "arg_patterns": { + "Path": { + "occurrences": 18, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 18, + "args": 1, + "types": [ + "lit" + ] + } + ] + } + } + }, + { + "label": "tests", + "method_count": 2036, + "grammar": "root ::= \"response\"? \"json\"?+", + "grammar_clean": "root ::= \"response\"? \"json\"?+", + "noise_ratio": 0.5, + "symbols_before": 4, + "symbols_after": 2, + "algorithm": "CRX", + "mdl_score": 24, + "imports": [ + "from pydantic import BaseModel", + "import http", + "from fastapi import FastAPI, Path, Query", + "from fastapi import FastAPI", + "from fastapi.testclient import TestClient", + "from inline_snapshot import snapshot", + "from pydantic import BaseModel, ConfigDict", + "from fastapi import APIRouter, FastAPI", + "import pytest", + "from pydantic import BaseModel, HttpUrl", + "from starlette.responses import JSONResponse", + "from fastapi.responses import JSONResponse", + "from typing import Annotated", + "from fastapi import Body, FastAPI, Query", + "from fastapi import Depends, FastAPI, Path", + "from fastapi.param_functions import Query", + "from fastapi import APIRouter, FastAPI, Query", + "from .main import app", + "from pydantic import (", + "from functools import partial", + "from typing import Any, cast", + "from fastapi import FastAPI, UploadFile", + "from fastapi._compat import (", + "from fastapi._compat.shared import is_bytes_sequence_annotation", + "from pydantic.fields import FieldInfo", + "from fastapi._compat import v2", + "from typing import Union", + "from pydantic import BaseModel, computed_field", + "from pathlib import Path", + "from fastapi import APIRouter, FastAPI, File, UploadFile", + "from fastapi.exceptions import HTTPException", + "from starlette.types import ASGIApp", + "from fastapi.routing import APIRoute", + "from pydantic import BaseModel, WithJsonSchema", + "import io", + "from typing import cast", + "from fastapi.datastructures import Default, DefaultPlaceholder", + "from datetime import datetime, timezone", + "from pydantic import field_serializer", + "from typing import Any", + "from fastapi.responses import HTMLResponse, JSONResponse, PlainTextResponse", + "from tests.utils import needs_orjson", + "import orjson # ty: ignore[unresolved-import]", + "from fastapi.dependencies.utils import get_typed_annotation", + "from typing import Annotated, Any", + "from fastapi import Depends, FastAPI, HTTPException", + "from collections.abc import Generator", + "from contextlib import contextmanager", + "from fastapi import Depends, FastAPI", + "from fastapi.responses import StreamingResponse", + "from fastapi import Depends, FastAPI, WebSocket", + "from fastapi import Depends, FastAPI, Security", + "from collections.abc import AsyncGenerator, Generator", + "import json", + "from fastapi import BackgroundTasks, Depends, FastAPI", + "from collections.abc import Awaitable, Callable", + "from contextvars import ContextVar", + "from fastapi import Depends, FastAPI, Request, Response", + "from fastapi import APIRouter, Depends, FastAPI", + "from fastapi import FastAPI, HTTPException, Security", + "from fastapi.security import (", + "from typing_extensions import TypeAliasType", + "from fastapi.security import SecurityScopes", + "import inspect", + "import sys", + "from functools import wraps", + "from fastapi.concurrency import iterate_in_threadpool, run_in_threadpool", + "from inspect import iscoroutinefunction", + "from asyncio import iscoroutinefunction", + "from fastapi import Body, Depends, FastAPI, HTTPException", + "from fastapi import APIRouter, Depends, FastAPI, HTTPException", + "from fastapi.exceptions import FastAPIError", + "from fastapi import Depends, Security", + "from fastapi import FastAPI, Request", + "import warnings", + "from fastapi.exceptions import FastAPIDeprecationWarning", + "from fastapi.responses import ORJSONResponse, UJSONResponse # ty: ignore[deprecated]", + "from tests.utils import needs_orjson, needs_ujson", + "from unittest.mock import patch", + "from fastapi import Depends, FastAPI, Query", + "from fastapi.exceptions import RequestValidationError", + "import os", + "import subprocess", + "import fastapi.cli", + "from fastapi import FastAPI, File, Form", + "from dirty_equals import HasRepr", + "from fastapi.exceptions import ResponseValidationError", + "from pydantic import BaseModel, ValidationInfo, field_validator", + "from starlette.testclient import TestClient", + "from fastapi import FastAPI, Form", + "from pydantic import BaseModel, Field", + "import errno", + "import runpy", + "from contextlib import AsyncExitStack", + "from typing import Literal", + "import anyio", + "from fastapi import APIRouter, Depends, FastAPI, HTTPException, Request, WebSocket", + "from starlette.exceptions import HTTPException as StarletteHTTPException", + "from starlette.responses import PlainTextResponse, Response", + "from starlette.routing import BaseRoute, Match, NoMatchFound, Route", + "from typing import Annotated, TypeVar", + "from fastapi.requests import HTTPConnection", + "from starlette.websockets import WebSocket", + "from fastapi import APIRouter, FastAPI, Request", + "from fastapi import APIRouter, Depends, FastAPI, Response", + "import uuid", + "from fastapi import FastAPI, Query", + "from fastapi import Cookie, FastAPI, Form, Header, Query", + "from pydantic import Json", + "from collections import deque", + "from dataclasses import dataclass", + "from decimal import Decimal", + "from enum import Enum", + "from math import isinf, isnan", + "from pathlib import PurePath, PurePosixPath, PureWindowsPath", + "from typing import TypedDict", + "from fastapi._compat import Undefined", + "from fastapi.encoders import jsonable_encoder", + "from fastapi.exceptions import PydanticV1NotSupportedError", + "from pydantic import BaseModel, Field, ValidationError", + "from pydantic import v1", + "from fastapi import FastAPI, File", + "from starlette.datastructures import UploadFile as StarletteUploadFile", + "from fastapi.openapi.docs import get_redoc_html, get_swagger_ui_html", + "from dirty_equals import IsOneOf", + "from pydantic import BaseModel, condecimal", + "from fastapi import FastAPI, File, Form, UploadFile", + "from fastapi.dependencies.utils import (", + "from fastapi import Body, Cookie, FastAPI, Header, Path, Query", + "from fastapi.openapi.models import Schema, SchemaType", + "from fastapi.responses import ORJSONResponse # ty: ignore[deprecated]", + "from sqlalchemy.sql.elements import quoted_name", + "from fastapi.params import Param", + "from fastapi import Cookie, FastAPI, Header, Path, Query", + "from fastapi.params import Body, Cookie, Header, Param, Path, Query", + "from datetime import date", + "from typer.testing import CliRunner", + "from scripts.prepare_release import (", + "from tests.utils import skip_module_if_py_gte_314", + "from pydantic.v1 import BaseModel", + "from __future__ import annotations", + "from dataclasses import dataclass, field", + "from dirty_equals import IsUUID", + "from fastapi import Cookie, FastAPI, Header, Query", + "from .utils import needs_py310", + "from fastapi import Depends, FastAPI, Response", + "from fastapi import Depends, FastAPI, Header, status", + "from fastapi import FastAPI, Path, Query, status", + "from fastapi import Body, FastAPI", + "from dirty_equals import IsPartialDict", + "from pydantic import BaseModel, ConfigDict, Field", + "from fastapi import FastAPI, Response", + "from fastapi import BackgroundTasks, Depends, FastAPI, Request, Response", + "from fastapi.exceptions import FastAPIError, ResponseValidationError", + "from fastapi.responses import JSONResponse, Response", + "from fastapi import FastAPI, Request, WebSocket, WebSocketDisconnect", + "from fastapi.routing import APIRoute, APIWebSocketRoute", + "from fastapi import APIRouter", + "from collections.abc import AsyncGenerator", + "from contextlib import asynccontextmanager", + "from typing import Annotated, cast", + "from fastapi import APIRouter, Body, Depends, FastAPI, Request, Security", + "from fastapi.openapi.utils import get_openapi", + "from fastapi.routing import (", + "from fastapi.security import HTTPBearer", + "from starlette.routing import BaseRoute, Host, Match, Mount, NoMatchFound, Route, Router", + "from tests.utils import needs_py310", + "from fastapi.security import APIKeyCookie", + "from fastapi.security import APIKeyHeader", + "from fastapi.security import APIKeyQuery", + "from fastapi import FastAPI, Security", + "from fastapi.security.http import HTTPAuthorizationCredentials, HTTPBase", + "from base64 import b64encode", + "from fastapi.security import HTTPBasic, HTTPBasicCredentials", + "from fastapi.security import HTTPAuthorizationCredentials, HTTPBearer", + "from fastapi.security import HTTPAuthorizationCredentials, HTTPDigest", + "from fastapi.security import OAuth2, OAuth2PasswordRequestFormStrict", + "from fastapi.security import OAuth2AuthorizationCodeBearer", + "from fastapi import APIRouter, Depends, FastAPI, Security", + "from fastapi.security import OAuth2PasswordBearer", + "from fastapi.security.open_id_connect_url import OpenIdConnect", + "from datetime import datetime", + "import asyncio", + "import time", + "from collections.abc import AsyncIterable, Iterable", + "import fastapi.routing", + "from fastapi.responses import EventSourceResponse", + "from fastapi.sse import ServerSentEvent", + "from fastapi import FastAPI, HTTPException", + "from typing import AsyncIterable, Iterable # noqa: UP035 to test coverage", + "from collections.abc import AsyncIterable", + "from starlette.types import Message, Scope", + "from typing import TYPE_CHECKING, Annotated", + "from .utils import needs_py314", + "from fastapi import Depends, FastAPI, Request", + "from fastapi.openapi.docs import get_swagger_ui_html", + "from typing import Annotated, Any, Literal", + "from pydantic import Tag", + "from fastapi import Body", + "from pydantic import Discriminator, Tag", + "from pydantic.dataclasses import dataclass", + "from fastapi import FastAPI, Request, WebSocket", + "from fastapi.exceptions import (", + "import functools", + "from .forward_reference_type import forwardref_method", + "from fastapi import APIRouter, Depends, FastAPI, WebSocket", + "from fastapi import (", + "from fastapi.middleware import Middleware", + "from importlib.util import find_spec" + ], + "arg_patterns": { + "AsyncCallableDependency": { + "occurrences": 6, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 6, + "args": 0, + "types": [] + } + ] + }, + "CallableGenDependency": { + "occurrences": 6, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 6, + "args": 0, + "types": [] + } + ] + }, + "instance": { + "occurrences": 12, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 12, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "Depends": { + "occurrences": 654, + "arg_count": { + "min": 0, + "max": 2, + "common": 1 + }, + "patterns": [ + { + "count": 519, + "args": 1, + "types": [ + "var" + ] + }, + { + "count": 60, + "args": 1, + "types": [ + "call" + ] + }, + { + "count": 39, + "args": 2, + "types": [ + "var", + "kwarg" + ] + }, + { + "count": 24, + "args": 0, + "types": [] + }, + { + "count": 12, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "FastAPI": { + "occurrences": 1053, + "arg_count": { + "min": 0, + "max": 4, + "common": 0 + }, + "patterns": [ + { + "count": 903, + "args": 0, + "types": [] + }, + { + "count": 138, + "args": 1, + "types": [ + "kwarg" + ] + }, + { + "count": 6, + "args": 2, + "types": [ + "kwarg", + "kwarg" + ] + }, + { + "count": 3, + "args": 1, + "types": [ + "other" + ] + }, + { + "count": 3, + "args": 4, + "types": [ + "kwarg", + "kwarg", + "kwarg", + "kwarg" + ] + } + ] + }, + "CallableDependency": { + "occurrences": 6, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 6, + "args": 0, + "types": [] + } + ] + }, + "next": { + "occurrences": 24, + "arg_count": { + "min": 1, + "max": 3, + "common": 1 + }, + "patterns": [ + { + "count": 16, + "args": 1, + "types": [ + "call" + ] + }, + { + "count": 8, + "args": 3, + "types": [ + "var", + "other", + "other" + ] + } + ] + }, + "TestClient": { + "occurrences": 1083, + "arg_count": { + "min": 1, + "max": 2, + "common": 1 + }, + "patterns": [ + { + "count": 1014, + "args": 1, + "types": [ + "var" + ] + }, + { + "count": 69, + "args": 2, + "types": [ + "var", + "kwarg" + ] + } + ] + }, + "MethodsDependency": { + "occurrences": 6, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 6, + "args": 0, + "types": [] + } + ] + }, + "AsyncCallableGenDependency": { + "occurrences": 6, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 6, + "args": 0, + "types": [] + } + ] + }, + "APIRouter": { + "occurrences": 441, + "arg_count": { + "min": 0, + "max": 7, + "common": 0 + }, + "patterns": [ + { + "count": 288, + "args": 0, + "types": [] + }, + { + "count": 123, + "args": 1, + "types": [ + "kwarg" + ] + }, + { + "count": 21, + "args": 2, + "types": [ + "kwarg", + "kwarg" + ] + }, + { + "count": 9, + "args": 7, + "types": [ + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg" + ] + } + ] + }, + "get_client": { + "occurrences": 24, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 24, + "args": 0, + "types": [] + } + ] + }, + "snapshot": { + "occurrences": 318, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 318, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "Form": { + "occurrences": 75, + "arg_count": { + "min": 0, + "max": 1, + "common": 0 + }, + "patterns": [ + { + "count": 72, + "args": 0, + "types": [] + }, + { + "count": 3, + "args": 1, + "types": [ + "kwarg" + ] + } + ] + }, + "ServerSentEvent": { + "occurrences": 42, + "arg_count": { + "min": 1, + "max": 3, + "common": 2 + }, + "patterns": [ + { + "count": 24, + "args": 2, + "types": [ + "kwarg", + "kwarg" + ] + }, + { + "count": 9, + "args": 1, + "types": [ + "kwarg" + ] + }, + { + "count": 6, + "args": 3, + "types": [ + "kwarg", + "kwarg", + "kwarg" + ] + }, + { + "count": 3, + "args": 2, + "types": [ + "kwarg", + "other" + ] + } + ] + }, + "len": { + "occurrences": 76, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 60, + "args": 1, + "types": [ + "var" + ] + }, + { + "count": 4, + "args": 1, + "types": [ + "expr" + ] + }, + { + "count": 4, + "args": 1, + "types": [ + "other" + ] + }, + { + "count": 4, + "args": 1, + "types": [ + "subscript" + ] + }, + { + "count": 4, + "args": 1, + "types": [ + "call" + ] + } + ] + }, + "Item": { + "occurrences": 147, + "arg_count": { + "min": 1, + "max": 4, + "common": 2 + }, + "patterns": [ + { + "count": 72, + "args": 2, + "types": [ + "kwarg", + "kwarg" + ] + }, + { + "count": 27, + "args": 1, + "types": [ + "var" + ] + }, + { + "count": 21, + "args": 3, + "types": [ + "kwarg", + "kwarg", + "kwarg" + ] + }, + { + "count": 15, + "args": 1, + "types": [ + "kwarg" + ] + }, + { + "count": 12, + "args": 4, + "types": [ + "kwarg", + "kwarg", + "kwarg", + "kwarg" + ] + } + ] + }, + "class": { + "occurrences": 189, + "arg_count": { + "min": 1, + "max": 2, + "common": 1 + }, + "patterns": [ + { + "count": 185, + "args": 1, + "types": [ + "var" + ] + }, + { + "count": 3, + "args": 2, + "types": [ + "var", + "var" + ] + }, + { + "count": 1, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "SubItem": { + "occurrences": 4, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "kwarg" + ] + }, + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "get_app_client": { + "occurrences": 36, + "arg_count": { + "min": 0, + "max": 1, + "common": 0 + }, + "patterns": [ + { + "count": 18, + "args": 0, + "types": [] + }, + { + "count": 18, + "args": 1, + "types": [ + "kwarg" + ] + } + ] + }, + "WithComputedField": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "datetime": { + "occurrences": 87, + "arg_count": { + "min": 3, + "max": 4, + "common": 3 + }, + "patterns": [ + { + "count": 78, + "args": 3, + "types": [ + "lit", + "lit", + "lit" + ] + }, + { + "count": 9, + "args": 4, + "types": [ + "lit", + "lit", + "lit", + "lit" + ] + } + ] + }, + "ModelWithDatetimeField": { + "occurrences": 4, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "kwarg" + ] + }, + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "field_serializer": { + "occurrences": 12, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 12, + "args": 1, + "types": [ + "lit" + ] + } + ] + }, + "passthrough": { + "occurrences": 9, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 6, + "args": 1, + "types": [ + "var" + ] + }, + { + "count": 3, + "args": 1, + "types": [ + "call" + ] + } + ] + }, + "f": { + "occurrences": 3, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 3, + "args": 2, + "types": [ + "other", + "other" + ] + } + ] + }, + "HTTPException": { + "occurrences": 39, + "arg_count": { + "min": 1, + "max": 3, + "common": 2 + }, + "patterns": [ + { + "count": 18, + "args": 2, + "types": [ + "kwarg", + "kwarg" + ] + }, + { + "count": 15, + "args": 1, + "types": [ + "kwarg" + ] + }, + { + "count": 3, + "args": 3, + "types": [ + "kwarg", + "kwarg", + "kwarg" + ] + }, + { + "count": 3, + "args": 2, + "types": [ + "lit", + "kwarg" + ] + } + ] + }, + "StarletteHTTPException": { + "occurrences": 3, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 3, + "args": 2, + "types": [ + "kwarg", + "kwarg" + ] + } + ] + }, + "HTTPDigest": { + "occurrences": 9, + "arg_count": { + "min": 0, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 6, + "args": 1, + "types": [ + "kwarg" + ] + }, + { + "count": 3, + "args": 0, + "types": [] + } + ] + }, + "Security": { + "occurrences": 165, + "arg_count": { + "min": 1, + "max": 2, + "common": 1 + }, + "patterns": [ + { + "count": 117, + "args": 1, + "types": [ + "var" + ] + }, + { + "count": 48, + "args": 2, + "types": [ + "var", + "kwarg" + ] + } + ] + }, + "OAuth2AuthorizationCodeBearer": { + "occurrences": 12, + "arg_count": { + "min": 3, + "max": 4, + "common": 3 + }, + "patterns": [ + { + "count": 6, + "args": 3, + "types": [ + "kwarg", + "kwarg", + "kwarg" + ] + }, + { + "count": 6, + "args": 4, + "types": [ + "kwarg", + "kwarg", + "kwarg", + "kwarg" + ] + } + ] + }, + "b64encode": { + "occurrences": 9, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 9, + "args": 1, + "types": [ + "lit" + ] + } + ] + }, + "HTTPBasic": { + "occurrences": 9, + "arg_count": { + "min": 1, + "max": 2, + "common": 1 + }, + "patterns": [ + { + "count": 6, + "args": 1, + "types": [ + "kwarg" + ] + }, + { + "count": 3, + "args": 2, + "types": [ + "kwarg", + "kwarg" + ] + } + ] + }, + "ValueError": { + "occurrences": 20, + "arg_count": { + "min": 0, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 16, + "args": 1, + "types": [ + "lit" + ] + }, + { + "count": 4, + "args": 0, + "types": [] + } + ] + }, + "acquire_session": { + "occurrences": 12, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 12, + "args": 0, + "types": [] + } + ] + }, + "Session": { + "occurrences": 12, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 12, + "args": 0, + "types": [] + } + ] + }, + "HTTPBase": { + "occurrences": 9, + "arg_count": { + "min": 1, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 6, + "args": 2, + "types": [ + "kwarg", + "kwarg" + ] + }, + { + "count": 3, + "args": 1, + "types": [ + "kwarg" + ] + } + ] + }, + "OverrideResponse": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "str": { + "occurrences": 175, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 90, + "args": 1, + "types": [ + "other" + ] + }, + { + "count": 75, + "args": 1, + "types": [ + "var" + ] + }, + { + "count": 10, + "args": 1, + "types": [ + "expr" + ] + } + ] + }, + "User": { + "occurrences": 78, + "arg_count": { + "min": 1, + "max": 2, + "common": 1 + }, + "patterns": [ + { + "count": 45, + "args": 1, + "types": [ + "kwarg" + ] + }, + { + "count": 18, + "args": 1, + "types": [ + "var" + ] + }, + { + "count": 15, + "args": 2, + "types": [ + "kwarg", + "kwarg" + ] + } + ] + }, + "APIKeyCookie": { + "occurrences": 9, + "arg_count": { + "min": 1, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 6, + "args": 2, + "types": [ + "kwarg", + "kwarg" + ] + }, + { + "count": 3, + "args": 1, + "types": [ + "kwarg" + ] + } + ] + }, + "CustomError": { + "occurrences": 8, + "arg_count": { + "min": 0, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 0, + "types": [] + }, + { + "count": 3, + "args": 1, + "types": [ + "lit" + ] + }, + { + "count": 2, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "app": { + "occurrences": 9, + "arg_count": { + "min": 3, + "max": 3, + "common": 3 + }, + "patterns": [ + { + "count": 9, + "args": 3, + "types": [ + "var", + "var", + "var" + ] + } + ] + }, + "WebSocket": { + "occurrences": 3, + "arg_count": { + "min": 3, + "max": 3, + "common": 3 + }, + "patterns": [ + { + "count": 3, + "args": 3, + "types": [ + "var", + "kwarg", + "kwarg" + ] + } + ] + }, + "repr": { + "occurrences": 112, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 108, + "args": 1, + "types": [ + "call" + ] + }, + { + "count": 4, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "middleware_func": { + "occurrences": 3, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 3, + "args": 2, + "types": [ + "var", + "var" + ] + } + ] + }, + "call_next": { + "occurrences": 15, + "arg_count": { + "min": 0, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 9, + "args": 1, + "types": [ + "var" + ] + }, + { + "count": 6, + "args": 0, + "types": [] + } + ] + }, + "make_app": { + "occurrences": 12, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 9, + "args": 1, + "types": [ + "kwarg" + ] + }, + { + "count": 3, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "Middleware": { + "occurrences": 6, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 6, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "Header": { + "occurrences": 48, + "arg_count": { + "min": 0, + "max": 3, + "common": 0 + }, + "patterns": [ + { + "count": 18, + "args": 0, + "types": [] + }, + { + "count": 9, + "args": 2, + "types": [ + "kwarg", + "kwarg" + ] + }, + { + "count": 9, + "args": 1, + "types": [ + "lit" + ] + }, + { + "count": 6, + "args": 3, + "types": [ + "kwarg", + "kwarg", + "kwarg" + ] + }, + { + "count": 6, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "NotImplementedError": { + "occurrences": 12, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 12, + "args": 0, + "types": [] + } + ] + }, + "OAuth2": { + "occurrences": 9, + "arg_count": { + "min": 1, + "max": 3, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "kwarg" + ] + }, + { + "count": 3, + "args": 3, + "types": [ + "kwarg", + "kwarg", + "kwarg" + ] + }, + { + "count": 3, + "args": 2, + "types": [ + "kwarg", + "kwarg" + ] + } + ] + }, + "HTTPBearer": { + "occurrences": 21, + "arg_count": { + "min": 0, + "max": 1, + "common": 0 + }, + "patterns": [ + { + "count": 15, + "args": 0, + "types": [] + }, + { + "count": 6, + "args": 1, + "types": [ + "kwarg" + ] + } + ] + }, + "find_spec": { + "occurrences": 6, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 6, + "args": 1, + "types": [ + "lit" + ] + } + ] + }, + "Rectangle": { + "occurrences": 7, + "arg_count": { + "min": 1, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 6, + "args": 2, + "types": [ + "kwarg", + "kwarg" + ] + }, + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "Coordinate": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "ItemGroup": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "JSONResponse": { + "occurrences": 30, + "arg_count": { + "min": 1, + "max": 2, + "common": 1 + }, + "patterns": [ + { + "count": 12, + "args": 1, + "types": [ + "other" + ] + }, + { + "count": 9, + "args": 2, + "types": [ + "lit", + "kwarg" + ] + }, + { + "count": 6, + "args": 1, + "types": [ + "kwarg" + ] + }, + { + "count": 3, + "args": 2, + "types": [ + "kwarg", + "kwarg" + ] + } + ] + }, + "Path": { + "occurrences": 120, + "arg_count": { + "min": 0, + "max": 2, + "common": 1 + }, + "patterns": [ + { + "count": 48, + "args": 1, + "types": [ + "kwarg" + ] + }, + { + "count": 27, + "args": 1, + "types": [ + "lit" + ] + }, + { + "count": 21, + "args": 2, + "types": [ + "kwarg", + "kwarg" + ] + }, + { + "count": 15, + "args": 0, + "types": [] + }, + { + "count": 3, + "args": 2, + "types": [ + "other", + "kwarg" + ] + } + ] + }, + "Query": { + "occurrences": 126, + "arg_count": { + "min": 0, + "max": 3, + "common": 1 + }, + "patterns": [ + { + "count": 48, + "args": 1, + "types": [ + "kwarg" + ] + }, + { + "count": 36, + "args": 0, + "types": [] + }, + { + "count": 12, + "args": 1, + "types": [ + "other" + ] + }, + { + "count": 12, + "args": 1, + "types": [ + "lit" + ] + }, + { + "count": 9, + "args": 2, + "types": [ + "kwarg", + "kwarg" + ] + } + ] + }, + "ContextVar": { + "occurrences": 6, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 6, + "args": 2, + "types": [ + "lit", + "kwarg" + ] + } + ] + }, + "__import__": { + "occurrences": 12, + "arg_count": { + "min": 1, + "max": 2, + "common": 1 + }, + "patterns": [ + { + "count": 8, + "args": 1, + "types": [ + "lit" + ] + }, + { + "count": 4, + "args": 2, + "types": [ + "var", + "kwarg" + ] + } + ] + }, + "patch": { + "occurrences": 6, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 6, + "args": 2, + "types": [ + "lit", + "kwarg" + ] + } + ] + }, + "quoted_name": { + "occurrences": 3, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 3, + "args": 2, + "types": [ + "kwarg", + "kwarg" + ] + } + ] + }, + "ModelA": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "HasRepr": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "lit" + ] + } + ] + }, + "field_validator": { + "occurrences": 4, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 4, + "args": 1, + "types": [ + "lit" + ] + } + ] + }, + "ModelC": { + "occurrences": 4, + "arg_count": { + "min": 1, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 3, + "args": 2, + "types": [ + "kwarg", + "kwarg" + ] + }, + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "ModelB": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "IsOneOf": { + "occurrences": 15, + "arg_count": { + "min": 4, + "max": 4, + "common": 4 + }, + "patterns": [ + { + "count": 15, + "args": 4, + "types": [ + "other", + "other", + "other", + "other" + ] + } + ] + }, + "PlatformRole": { + "occurrences": 1, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 1, + "args": 2, + "types": [ + "var", + "var" + ] + } + ] + }, + "OtherRole": { + "occurrences": 1, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 1, + "args": 2, + "types": [ + "var", + "var" + ] + } + ] + }, + "APIKeyHeader": { + "occurrences": 9, + "arg_count": { + "min": 1, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 6, + "args": 2, + "types": [ + "kwarg", + "kwarg" + ] + }, + { + "count": 3, + "args": 1, + "types": [ + "kwarg" + ] + } + ] + }, + "UserForm": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "CompanyForm": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "Field": { + "occurrences": 30, + "arg_count": { + "min": 1, + "max": 2, + "common": 1 + }, + "patterns": [ + { + "count": 24, + "args": 1, + "types": [ + "kwarg" + ] + }, + { + "count": 6, + "args": 2, + "types": [ + "kwarg", + "kwarg" + ] + } + ] + }, + "ConfigDict": { + "occurrences": 27, + "arg_count": { + "min": 1, + "max": 2, + "common": 1 + }, + "patterns": [ + { + "count": 24, + "args": 1, + "types": [ + "kwarg" + ] + }, + { + "count": 3, + "args": 2, + "types": [ + "kwarg", + "kwarg" + ] + } + ] + }, + "ModelNoAlias": { + "occurrences": 4, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "kwarg" + ] + }, + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "Model": { + "occurrences": 17, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 9, + "args": 1, + "types": [ + "kwarg" + ] + }, + { + "count": 8, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "OpenIdConnect": { + "occurrences": 9, + "arg_count": { + "min": 1, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 6, + "args": 2, + "types": [ + "kwarg", + "kwarg" + ] + }, + { + "count": 3, + "args": 1, + "types": [ + "kwarg" + ] + } + ] + }, + "Cookie": { + "occurrences": 39, + "arg_count": { + "min": 0, + "max": 3, + "common": 1 + }, + "patterns": [ + { + "count": 9, + "args": 2, + "types": [ + "kwarg", + "kwarg" + ] + }, + { + "count": 9, + "args": 0, + "types": [] + }, + { + "count": 9, + "args": 1, + "types": [ + "lit" + ] + }, + { + "count": 6, + "args": 3, + "types": [ + "kwarg", + "kwarg", + "kwarg" + ] + }, + { + "count": 6, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "ModelDefaults": { + "occurrences": 13, + "arg_count": { + "min": 1, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 12, + "args": 2, + "types": [ + "kwarg", + "kwarg" + ] + }, + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "ModelSubclass": { + "occurrences": 4, + "arg_count": { + "min": 1, + "max": 3, + "common": 3 + }, + "patterns": [ + { + "count": 3, + "args": 3, + "types": [ + "kwarg", + "kwarg", + "kwarg" + ] + }, + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "SubModel": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "ResponseModelV1": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "ReturnModelV1": { + "occurrences": 4, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "kwarg" + ] + }, + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "ErrorModelV1": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "ModelV1A": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "ParamModelV1": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "skip_module_if_py_gte_314": { + "occurrences": 3, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 3, + "args": 0, + "types": [] + } + ] + }, + "OAuth2PasswordBearer": { + "occurrences": 9, + "arg_count": { + "min": 1, + "max": 3, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 2, + "types": [ + "kwarg", + "kwarg" + ] + }, + { + "count": 3, + "args": 1, + "types": [ + "kwarg" + ] + }, + { + "count": 3, + "args": 3, + "types": [ + "kwarg", + "kwarg", + "kwarg" + ] + } + ] + }, + "File": { + "occurrences": 42, + "arg_count": { + "min": 0, + "max": 2, + "common": 0 + }, + "patterns": [ + { + "count": 36, + "args": 0, + "types": [] + }, + { + "count": 3, + "args": 1, + "types": [ + "lit" + ] + }, + { + "count": 3, + "args": 2, + "types": [ + "other", + "kwarg" + ] + } + ] + }, + "JsonApiResponse": { + "occurrences": 4, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 4, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "Error": { + "occurrences": 4, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 4, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "JsonApiError": { + "occurrences": 4, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 4, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "partial": { + "occurrences": 39, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 27, + "args": 2, + "types": [ + "var", + "lit" + ] + }, + { + "count": 12, + "args": 2, + "types": [ + "other", + "lit" + ] + } + ] + }, + "IsPartialDict": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "set": { + "occurrences": 40, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 30, + "args": 1, + "types": [ + "subscript" + ] + }, + { + "count": 5, + "args": 1, + "types": [ + "call" + ] + }, + { + "count": 5, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "any": { + "occurrences": 4, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 4, + "args": 2, + "types": [ + "expr", + "other" + ] + } + ] + }, + "Items": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "get_swagger_ui_html": { + "occurrences": 15, + "arg_count": { + "min": 2, + "max": 5, + "common": 3 + }, + "patterns": [ + { + "count": 9, + "args": 3, + "types": [ + "kwarg", + "kwarg", + "kwarg" + ] + }, + { + "count": 3, + "args": 2, + "types": [ + "kwarg", + "kwarg" + ] + }, + { + "count": 3, + "args": 5, + "types": [ + "kwarg", + "kwarg", + "kwarg", + "kwarg", + "kwarg" + ] + } + ] + }, + "bytes": { + "occurrences": 45, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 45, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "get_parameterless_without_scopes": { + "occurrences": 3, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 3, + "args": 0, + "types": [] + } + ] + }, + "Message": { + "occurrences": 5, + "arg_count": { + "min": 1, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 3, + "args": 2, + "types": [ + "kwarg", + "kwarg" + ] + }, + { + "count": 2, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "issubclass": { + "occurrences": 8, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 8, + "args": 2, + "types": [ + "other", + "var" + ] + } + ] + }, + "TypeAdapter": { + "occurrences": 9, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 6, + "args": 1, + "types": [ + "subscript" + ] + }, + { + "count": 3, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "WithJsonSchema": { + "occurrences": 9, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 6, + "args": 1, + "types": [ + "call" + ] + }, + { + "count": 3, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "MyModel": { + "occurrences": 9, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 6, + "args": 1, + "types": [ + "kwarg" + ] + }, + { + "count": 3, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "PlainSerializer": { + "occurrences": 6, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 6, + "args": 1, + "types": [ + "lambda" + ] + } + ] + }, + "FakeNumpyArray": { + "occurrences": 6, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 6, + "args": 0, + "types": [] + } + ] + }, + "InvoiceEvent": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "Event": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "Invoice": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "InvoiceEventReceived": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "get_redoc_html": { + "occurrences": 12, + "arg_count": { + "min": 2, + "max": 4, + "common": 2 + }, + "patterns": [ + { + "count": 6, + "args": 2, + "types": [ + "kwarg", + "kwarg" + ] + }, + { + "count": 3, + "args": 3, + "types": [ + "kwarg", + "kwarg", + "kwarg" + ] + }, + { + "count": 3, + "args": 4, + "types": [ + "kwarg", + "kwarg", + "kwarg", + "kwarg" + ] + } + ] + }, + "isinstance": { + "occurrences": 64, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 44, + "args": 2, + "types": [ + "var", + "var" + ] + }, + { + "count": 16, + "args": 2, + "types": [ + "subscript", + "var" + ] + }, + { + "count": 4, + "args": 2, + "types": [ + "var", + "other" + ] + } + ] + }, + "vars": { + "occurrences": 4, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 4, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "MyUuid": { + "occurrences": 6, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 6, + "args": 1, + "types": [ + "lit" + ] + } + ] + }, + "TypeError": { + "occurrences": 4, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 4, + "args": 1, + "types": [ + "lit" + ] + } + ] + }, + "type": { + "occurrences": 5, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 5, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "SomeCustomClass": { + "occurrences": 4, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "kwarg" + ] + }, + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "Dep": { + "occurrences": 3, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 3, + "args": 0, + "types": [] + } + ] + }, + "TypeVar": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "lit" + ] + } + ] + }, + "APIRouteC": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "APIRouteA": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "APIRouteB": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "Subscription": { + "occurrences": 5, + "arg_count": { + "min": 1, + "max": 3, + "common": 3 + }, + "patterns": [ + { + "count": 3, + "args": 3, + "types": [ + "kwarg", + "kwarg", + "kwarg" + ] + }, + { + "count": 2, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "new_subscription": { + "occurrences": 3, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 3, + "args": 2, + "types": [ + "kwarg", + "kwarg" + ] + } + ] + }, + "Body": { + "occurrences": 66, + "arg_count": { + "min": 0, + "max": 2, + "common": 1 + }, + "patterns": [ + { + "count": 24, + "args": 0, + "types": [] + }, + { + "count": 15, + "args": 1, + "types": [ + "kwarg" + ] + }, + { + "count": 12, + "args": 2, + "types": [ + "kwarg", + "kwarg" + ] + }, + { + "count": 9, + "args": 1, + "types": [ + "lit" + ] + }, + { + "count": 6, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "Cat": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "Discriminator": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "Tag": { + "occurrences": 12, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 12, + "args": 1, + "types": [ + "lit" + ] + } + ] + }, + "Dog": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "Mount": { + "occurrences": 3, + "arg_count": { + "min": 3, + "max": 3, + "common": 3 + }, + "patterns": [ + { + "count": 3, + "args": 3, + "types": [ + "lit", + "kwarg", + "kwarg" + ] + } + ] + }, + "Route": { + "occurrences": 27, + "arg_count": { + "min": 2, + "max": 3, + "common": 3 + }, + "patterns": [ + { + "count": 15, + "args": 3, + "types": [ + "lit", + "var", + "kwarg" + ] + }, + { + "count": 12, + "args": 2, + "types": [ + "lit", + "var" + ] + } + ] + }, + "object": { + "occurrences": 15, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 15, + "args": 0, + "types": [] + } + ] + }, + "Host": { + "occurrences": 6, + "arg_count": { + "min": 3, + "max": 3, + "common": 3 + }, + "patterns": [ + { + "count": 6, + "args": 3, + "types": [ + "lit", + "var", + "kwarg" + ] + } + ] + }, + "cast": { + "occurrences": 33, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 21, + "args": 2, + "types": [ + "var", + "subscript" + ] + }, + { + "count": 6, + "args": 2, + "types": [ + "var", + "expr" + ] + }, + { + "count": 6, + "args": 2, + "types": [ + "var", + "call" + ] + } + ] + }, + "TrackingRouter": { + "occurrences": 7, + "arg_count": { + "min": 0, + "max": 1, + "common": 0 + }, + "patterns": [ + { + "count": 6, + "args": 0, + "types": [] + }, + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "handler": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "super": { + "occurrences": 20, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 20, + "args": 0, + "types": [] + } + ] + }, + "PlainTextResponse": { + "occurrences": 42, + "arg_count": { + "min": 1, + "max": 2, + "common": 1 + }, + "patterns": [ + { + "count": 33, + "args": 1, + "types": [ + "lit" + ] + }, + { + "count": 6, + "args": 1, + "types": [ + "subscript" + ] + }, + { + "count": 3, + "args": 2, + "types": [ + "lit", + "kwarg" + ] + } + ] + }, + "_restore_fastapi_scope_key": { + "occurrences": 3, + "arg_count": { + "min": 3, + "max": 3, + "common": 3 + }, + "patterns": [ + { + "count": 3, + "args": 3, + "types": [ + "var", + "lit", + "call" + ] + } + ] + }, + "UnknownRoute": { + "occurrences": 4, + "arg_count": { + "min": 0, + "max": 1, + "common": 0 + }, + "patterns": [ + { + "count": 3, + "args": 0, + "types": [] + }, + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "dict": { + "occurrences": 15, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 10, + "args": 1, + "types": [ + "call" + ] + }, + { + "count": 5, + "args": 1, + "types": [ + "subscript" + ] + } + ] + }, + "iter_route_contexts": { + "occurrences": 15, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 15, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "TrackingRoute": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "Router": { + "occurrences": 6, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 6, + "args": 1, + "types": [ + "kwarg" + ] + } + ] + }, + "sorted": { + "occurrences": 8, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 4, + "args": 1, + "types": [ + "other" + ] + }, + { + "count": 4, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "_iter_included_route_candidates": { + "occurrences": 6, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 6, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "get_openapi": { + "occurrences": 6, + "arg_count": { + "min": 3, + "max": 4, + "common": 3 + }, + "patterns": [ + { + "count": 3, + "args": 3, + "types": [ + "kwarg", + "kwarg", + "kwarg" + ] + }, + { + "count": 3, + "args": 4, + "types": [ + "kwarg", + "kwarg", + "kwarg", + "kwarg" + ] + } + ] + }, + "NoMatchFound": { + "occurrences": 3, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 3, + "args": 2, + "types": [ + "var", + "var" + ] + } + ] + }, + "list": { + "occurrences": 30, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 20, + "args": 1, + "types": [ + "call" + ] + }, + { + "count": 10, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "RejectingRoute": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "getattr": { + "occurrences": 20, + "arg_count": { + "min": 2, + "max": 3, + "common": 3 + }, + "patterns": [ + { + "count": 8, + "args": 3, + "types": [ + "var", + "lit", + "lit" + ] + }, + { + "count": 8, + "args": 2, + "types": [ + "var", + "var" + ] + }, + { + "count": 4, + "args": 3, + "types": [ + "var", + "lit", + "other" + ] + } + ] + }, + "HeaderRouter": { + "occurrences": 4, + "arg_count": { + "min": 0, + "max": 1, + "common": 0 + }, + "patterns": [ + { + "count": 3, + "args": 0, + "types": [] + }, + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "AssertionError": { + "occurrences": 4, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 4, + "args": 1, + "types": [ + "lit" + ] + } + ] + }, + "HeaderRoute": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "ORJSONResponse": { + "occurrences": 4, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "kwarg" + ] + }, + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "UJSONResponse": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "kwarg" + ] + } + ] + }, + "_make_orjson_app": { + "occurrences": 3, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 3, + "args": 0, + "types": [] + } + ] + }, + "_make_ujson_app": { + "occurrences": 3, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 3, + "args": 0, + "types": [] + } + ] + }, + "float": { + "occurrences": 5, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 5, + "args": 1, + "types": [ + "lit" + ] + } + ] + }, + "_run_asgi_and_cancel": { + "occurrences": 6, + "arg_count": { + "min": 3, + "max": 3, + "common": 3 + }, + "patterns": [ + { + "count": 6, + "args": 3, + "types": [ + "var", + "lit", + "kwarg" + ] + } + ] + }, + "Decimal": { + "occurrences": 18, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 18, + "args": 1, + "types": [ + "lit" + ] + } + ] + }, + "condecimal": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "kwarg" + ] + } + ] + }, + "State": { + "occurrences": 4, + "arg_count": { + "min": 0, + "max": 1, + "common": 0 + }, + "patterns": [ + { + "count": 3, + "args": 0, + "types": [] + }, + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "APIKeyQuery": { + "occurrences": 9, + "arg_count": { + "min": 1, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 6, + "args": 2, + "types": [ + "kwarg", + "kwarg" + ] + }, + { + "count": 3, + "args": 1, + "types": [ + "kwarg" + ] + } + ] + }, + "receive": { + "occurrences": 3, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 3, + "args": 0, + "types": [] + } + ] + }, + "open": { + "occurrences": 8, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 8, + "args": 2, + "types": [ + "var", + "lit" + ] + } + ] + }, + "print": { + "occurrences": 12, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 12, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "write_file": { + "occurrences": 189, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 183, + "args": 2, + "types": [ + "expr", + "lit" + ] + }, + { + "count": 6, + "args": 2, + "types": [ + "expr", + "var" + ] + } + ] + }, + "record_dependency": { + "occurrences": 21, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 21, + "args": 2, + "types": [ + "var", + "lit" + ] + } + ] + }, + "response": { + "occurrences": 3, + "arg_count": { + "min": 3, + "max": 3, + "common": 3 + }, + "patterns": [ + { + "count": 3, + "args": 3, + "types": [ + "var", + "var", + "var" + ] + } + ] + }, + "AsyncExitStack": { + "occurrences": 6, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 6, + "args": 0, + "types": [] + } + ] + }, + "OSError": { + "occurrences": 8, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 4, + "args": 2, + "types": [ + "lit", + "lit" + ] + }, + { + "count": 4, + "args": 2, + "types": [ + "other", + "lit" + ] + } + ] + }, + "hasattr": { + "occurrences": 8, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 8, + "args": 2, + "types": [ + "var", + "lit" + ] + } + ] + }, + "PartialRoute": { + "occurrences": 4, + "arg_count": { + "min": 0, + "max": 1, + "common": 0 + }, + "patterns": [ + { + "count": 3, + "args": 0, + "types": [] + }, + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "ForwardRefModel": { + "occurrences": 4, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "kwarg" + ] + }, + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "dep": { + "occurrences": 3, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 3, + "args": 0, + "types": [] + } + ] + }, + "hash": { + "occurrences": 32, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 32, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "IsUUID": { + "occurrences": 3, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 3, + "args": 0, + "types": [] + } + ] + }, + "field": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "kwarg" + ] + } + ] + }, + "raise_value_error": { + "occurrences": 3, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 3, + "args": 0, + "types": [] + } + ] + }, + "RuntimeError": { + "occurrences": 4, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 4, + "args": 1, + "types": [ + "lit" + ] + } + ] + }, + "FirstItem": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "OtherItem": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "Schema": { + "occurrences": 6, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 6, + "args": 1, + "types": [ + "kwarg" + ] + } + ] + }, + "Product": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "Shop": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "original_read": { + "occurrences": 3, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 3, + "args": 2, + "types": [ + "var", + "var" + ] + } + ] + }, + "ord": { + "occurrences": 8, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 8, + "args": 1, + "types": [ + "lit" + ] + } + ] + }, + "ResponseModel": { + "occurrences": 5, + "arg_count": { + "min": 0, + "max": 1, + "common": 0 + }, + "patterns": [ + { + "count": 3, + "args": 0, + "types": [] + }, + { + "count": 2, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "PersonBase": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "Person": { + "occurrences": 4, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "kwarg" + ] + }, + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "PersonCreate": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "PersonRead": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "NamedSession": { + "occurrences": 18, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 18, + "args": 1, + "types": [ + "kwarg" + ] + } + ] + }, + "ClassInstanceWrappedGenDep": { + "occurrences": 3, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 3, + "args": 0, + "types": [] + } + ] + }, + "noop_wrap": { + "occurrences": 15, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 15, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "ClassInstanceAsyncWrappedDep": { + "occurrences": 3, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 3, + "args": 0, + "types": [] + } + ] + }, + "wraps": { + "occurrences": 16, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 16, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "ClassInstanceWrappedDep": { + "occurrences": 3, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 3, + "args": 0, + "types": [] + } + ] + }, + "iterate_in_threadpool": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "call" + ] + } + ] + }, + "noop_wrap_async": { + "occurrences": 9, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 9, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "ClassInstanceAsyncGenDep": { + "occurrences": 3, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 3, + "args": 0, + "types": [] + } + ] + }, + "run_in_threadpool": { + "occurrences": 6, + "arg_count": { + "min": 3, + "max": 3, + "common": 3 + }, + "patterns": [ + { + "count": 6, + "args": 3, + "types": [ + "var", + "other", + "other" + ] + } + ] + }, + "ClassInstanceAsyncDep": { + "occurrences": 3, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 3, + "args": 0, + "types": [] + } + ] + }, + "func": { + "occurrences": 12, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 12, + "args": 2, + "types": [ + "other", + "other" + ] + } + ] + }, + "ClassInstanceDep": { + "occurrences": 3, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 3, + "args": 0, + "types": [] + } + ] + }, + "dunder_call": { + "occurrences": 3, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 3, + "args": 2, + "types": [ + "other", + "other" + ] + } + ] + }, + "ClassInstanceWrappedAsyncDep": { + "occurrences": 3, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 3, + "args": 0, + "types": [] + } + ] + }, + "ClassInstanceAsyncWrappedGenAsyncDep": { + "occurrences": 3, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 3, + "args": 0, + "types": [] + } + ] + }, + "ClassInstanceGenDep": { + "occurrences": 3, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 3, + "args": 0, + "types": [] + } + ] + }, + "ClassInstanceWrappedAsyncGenDep": { + "occurrences": 3, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 3, + "args": 0, + "types": [] + } + ] + }, + "ClassInstanceAsyncWrappedAsyncDep": { + "occurrences": 3, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 3, + "args": 0, + "types": [] + } + ] + }, + "iscoroutinefunction": { + "occurrences": 6, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 6, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "ClassInstanceAsyncWrappedGenDep": { + "occurrences": 3, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 3, + "args": 0, + "types": [] + } + ] + }, + "StreamingResponse": { + "occurrences": 27, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 27, + "args": 1, + "types": [ + "call" + ] + } + ] + }, + "iter_data": { + "occurrences": 27, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 27, + "args": 0, + "types": [] + } + ] + }, + "AuthHeaders": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "TypeAliasType": { + "occurrences": 3, + "arg_count": { + "min": 3, + "max": 3, + "common": 3 + }, + "patterns": [ + { + "count": 3, + "args": 3, + "types": [ + "lit", + "subscript", + "kwarg" + ] + } + ] + }, + "Model1": { + "occurrences": 10, + "arg_count": { + "min": 1, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 9, + "args": 2, + "types": [ + "kwarg", + "kwarg" + ] + }, + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "Model2": { + "occurrences": 11, + "arg_count": { + "min": 1, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 9, + "args": 2, + "types": [ + "kwarg", + "kwarg" + ] + }, + { + "count": 2, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "Model3": { + "occurrences": 5, + "arg_count": { + "min": 1, + "max": 3, + "common": 3 + }, + "patterns": [ + { + "count": 3, + "args": 3, + "types": [ + "kwarg", + "kwarg", + "kwarg" + ] + }, + { + "count": 2, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "get_typed_annotation": { + "occurrences": 3, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 3, + "args": 2, + "types": [ + "var", + "call" + ] + } + ] + }, + "globals": { + "occurrences": 4, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 4, + "args": 0, + "types": [] + } + ] + }, + "FieldInfo": { + "occurrences": 12, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 12, + "args": 1, + "types": [ + "kwarg" + ] + } + ] + }, + "EmbeddedModel": { + "occurrences": 4, + "arg_count": { + "min": 0, + "max": 1, + "common": 0 + }, + "patterns": [ + { + "count": 3, + "args": 0, + "types": [] + }, + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "is_uploadfile_sequence_annotation": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "expr" + ] + } + ] + }, + "Missing": { + "occurrences": 6, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 6, + "args": 0, + "types": [] + } + ] + }, + "is_bytes_sequence_annotation": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "expr" + ] + } + ] + }, + "map": { + "occurrences": 4, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 4, + "args": 2, + "types": [ + "var", + "call" + ] + } + ] + }, + "release_notes_content": { + "occurrences": 33, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 33, + "args": 1, + "types": [ + "lit" + ] + } + ] + }, + "update_version_file": { + "occurrences": 6, + "arg_count": { + "min": 3, + "max": 3, + "common": 3 + }, + "patterns": [ + { + "count": 6, + "args": 3, + "types": [ + "var", + "lit", + "call" + ] + } + ] + }, + "date": { + "occurrences": 6, + "arg_count": { + "min": 3, + "max": 3, + "common": 3 + }, + "patterns": [ + { + "count": 6, + "args": 3, + "types": [ + "lit", + "lit", + "lit" + ] + } + ] + }, + "update_release_notes": { + "occurrences": 6, + "arg_count": { + "min": 4, + "max": 4, + "common": 4 + }, + "patterns": [ + { + "count": 6, + "args": 4, + "types": [ + "var", + "lit", + "call", + "call" + ] + } + ] + }, + "get_release_notes_body": { + "occurrences": 15, + "arg_count": { + "min": 3, + "max": 3, + "common": 3 + }, + "patterns": [ + { + "count": 15, + "args": 3, + "types": [ + "var", + "lit", + "call" + ] + } + ] + }, + "bump_version": { + "occurrences": 3, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 3, + "args": 2, + "types": [ + "var", + "var" + ] + } + ] + }, + "CliRunner": { + "occurrences": 3, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 3, + "args": 0, + "types": [] + } + ] + }, + "FormModelExtraAllow": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "FormModel": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "Default": { + "occurrences": 12, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 12, + "args": 1, + "types": [ + "lit" + ] + } + ] + }, + "UploadFile": { + "occurrences": 3, + "arg_count": { + "min": 3, + "max": 3, + "common": 3 + }, + "patterns": [ + { + "count": 3, + "args": 3, + "types": [ + "kwarg", + "kwarg", + "kwarg" + ] + } + ] + }, + "UserDB": { + "occurrences": 14, + "arg_count": { + "min": 1, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 12, + "args": 2, + "types": [ + "kwarg", + "kwarg" + ] + }, + { + "count": 2, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "PetDB": { + "occurrences": 20, + "arg_count": { + "min": 1, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 18, + "args": 2, + "types": [ + "kwarg", + "kwarg" + ] + }, + { + "count": 2, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "PetOut": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "UserBase": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "UserCreate": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "OtherDependencyError": { + "occurrences": 19, + "arg_count": { + "min": 0, + "max": 1, + "common": 0 + }, + "patterns": [ + { + "count": 18, + "args": 0, + "types": [] + }, + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "AsyncDependencyError": { + "occurrences": 7, + "arg_count": { + "min": 0, + "max": 1, + "common": 0 + }, + "patterns": [ + { + "count": 6, + "args": 0, + "types": [] + }, + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "SyncDependencyError": { + "occurrences": 7, + "arg_count": { + "min": 0, + "max": 1, + "common": 0 + }, + "patterns": [ + { + "count": 6, + "args": 0, + "types": [] + }, + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "CustomModel": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "DummyClient": { + "occurrences": 3, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 3, + "args": 0, + "types": [] + } + ] + }, + "MessageOutput": { + "occurrences": 4, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "kwarg" + ] + }, + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "MessageEventType": { + "occurrences": 1, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 1, + "args": 2, + "types": [ + "var", + "var" + ] + } + ] + }, + "MessageEvent": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "FooBaseModel": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "Foo": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "create_dependency": { + "occurrences": 24, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 24, + "args": 1, + "types": [ + "lit" + ] + } + ] + }, + "jsonable_encoder": { + "occurrences": 165, + "arg_count": { + "min": 1, + "max": 3, + "common": 2 + }, + "patterns": [ + { + "count": 87, + "args": 2, + "types": [ + "var", + "kwarg" + ] + }, + { + "count": 72, + "args": 1, + "types": [ + "var" + ] + }, + { + "count": 3, + "args": 1, + "types": [ + "other" + ] + }, + { + "count": 3, + "args": 3, + "types": [ + "var", + "kwarg", + "kwarg" + ] + } + ] + }, + "Unserializable": { + "occurrences": 3, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 3, + "args": 0, + "types": [] + } + ] + }, + "ModelV1": { + "occurrences": 4, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "kwarg" + ] + }, + { + "count": 1, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "PurePosixPath": { + "occurrences": 3, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 3, + "args": 2, + "types": [ + "lit", + "lit" + ] + } + ] + }, + "isnan": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "subscript" + ] + } + ] + }, + "ModelWithCustomEncoderSubclass": { + "occurrences": 4, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "kwarg" + ] + }, + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "RoleEnum": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "ModelWithPath": { + "occurrences": 12, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 9, + "args": 1, + "types": [ + "kwarg" + ] + }, + { + "count": 3, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "PurePath": { + "occurrences": 6, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 6, + "args": 2, + "types": [ + "lit", + "lit" + ] + } + ] + }, + "ModelWithCustomEncoder": { + "occurrences": 4, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "kwarg" + ] + }, + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "PureWindowsPath": { + "occurrences": 3, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 3, + "args": 2, + "types": [ + "lit", + "lit" + ] + } + ] + }, + "Color": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "lit" + ] + } + ] + }, + "custom_enum_encoder": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "ModelWithDefault": { + "occurrences": 4, + "arg_count": { + "min": 1, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 3, + "args": 2, + "types": [ + "kwarg", + "kwarg" + ] + }, + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "isinf": { + "occurrences": 6, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 6, + "args": 1, + "types": [ + "subscript" + ] + } + ] + }, + "deque": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "ModelWithAlias": { + "occurrences": 7, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 6, + "args": 1, + "types": [ + "kwarg" + ] + }, + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "DictablePet": { + "occurrences": 4, + "arg_count": { + "min": 1, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 3, + "args": 2, + "types": [ + "kwarg", + "kwarg" + ] + }, + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "MyEnum": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "ModelWithConfig": { + "occurrences": 4, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "kwarg" + ] + }, + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "MyDict": { + "occurrences": 4, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "kwarg" + ] + }, + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "safe_datetime": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "DictablePerson": { + "occurrences": 4, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "kwarg" + ] + }, + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "Pet": { + "occurrences": 3, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 3, + "args": 2, + "types": [ + "kwarg", + "kwarg" + ] + } + ] + }, + "ExtendedItem": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "Param": { + "occurrences": 18, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 9, + "args": 1, + "types": [ + "lit" + ] + }, + { + "count": 6, + "args": 1, + "types": [ + "other" + ] + }, + { + "count": 3, + "args": 1, + "types": [ + "kwarg" + ] + } + ] + }, + "RequestValidationError": { + "occurrences": 6, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 6, + "args": 2, + "types": [ + "var", + "kwarg" + ] + } + ] + }, + "ExceptionCapture": { + "occurrences": 3, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 3, + "args": 0, + "types": [] + } + ] + }, + "ResponseLevel0": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "ResponseLevel2": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "ResponseLevel4": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "ResponseLevel5": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "ResponseLevel1": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "ResponseLevel3": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "Response": { + "occurrences": 6, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 6, + "args": 1, + "types": [ + "kwarg" + ] + } + ] + }, + "DBUser": { + "occurrences": 40, + "arg_count": { + "min": 1, + "max": 3, + "common": 3 + }, + "patterns": [ + { + "count": 39, + "args": 3, + "types": [ + "kwarg", + "kwarg", + "kwarg" + ] + }, + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "BaseUser": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "ModelWithRef": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "Address": { + "occurrences": 4, + "arg_count": { + "min": 1, + "max": 3, + "common": 3 + }, + "patterns": [ + { + "count": 3, + "args": 3, + "types": [ + "kwarg", + "kwarg", + "kwarg" + ] + }, + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "Facility": { + "occurrences": 4, + "arg_count": { + "min": 1, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 3, + "args": 2, + "types": [ + "kwarg", + "kwarg" + ] + }, + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "create_app": { + "occurrences": 6, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 6, + "args": 0, + "types": [] + } + ] + } + } + }, + { + "label": "tests/benchmarks", + "method_count": 48, + "grammar": "root ::= (\"_bench_get\" | \"benchmark\" | \"body\" | \"status_code\")?+", + "grammar_clean": "root ::= (\"_bench_get\" | \"benchmark\" | \"body\" | \"status_code\")?+", + "noise_ratio": 0.33, + "symbols_before": 6, + "symbols_after": 4, + "algorithm": "CRX", + "mdl_score": 4690, + "imports": [ + "import json", + "import sys", + "from collections.abc import Iterator", + "from typing import Annotated, Any", + "import pytest", + "from fastapi import Depends, FastAPI", + "from fastapi.testclient import TestClient", + "from pydantic import BaseModel" + ], + "arg_patterns": { + "LargeOut": { + "occurrences": 13, + "arg_count": { + "min": 1, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 12, + "args": 2, + "types": [ + "kwarg", + "kwarg" + ] + }, + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "_bench_get": { + "occurrences": 48, + "arg_count": { + "min": 3, + "max": 3, + "common": 3 + }, + "patterns": [ + { + "count": 48, + "args": 3, + "types": [ + "var", + "var", + "lit" + ] + } + ] + }, + "range": { + "occurrences": 10, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 10, + "args": 1, + "types": [ + "lit" + ] + } + ] + }, + "Depends": { + "occurrences": 27, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 27, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "_expected_large_payload_json_bytes": { + "occurrences": 24, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 24, + "args": 0, + "types": [] + } + ] + }, + "len": { + "occurrences": 8, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 8, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "FastAPI": { + "occurrences": 3, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 3, + "args": 0, + "types": [] + } + ] + }, + "ItemOut": { + "occurrences": 19, + "arg_count": { + "min": 1, + "max": 3, + "common": 3 + }, + "patterns": [ + { + "count": 18, + "args": 3, + "types": [ + "kwarg", + "kwarg", + "kwarg" + ] + }, + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "LargeIn": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "TestClient": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "_bench_post_json": { + "occurrences": 12, + "arg_count": { + "min": 4, + "max": 4, + "common": 4 + }, + "patterns": [ + { + "count": 12, + "args": 4, + "types": [ + "var", + "var", + "lit", + "kwarg" + ] + } + ] + }, + "list": { + "occurrences": 5, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 5, + "args": 1, + "types": [ + "call" + ] + } + ] + }, + "ItemIn": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "benchmark": { + "occurrences": 6, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 6, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "class": { + "occurrences": 4, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 4, + "args": 1, + "types": [ + "var" + ] + } + ] + } + } + }, + { + "label": "tests/test_modules_same_name_body", + "method_count": 5, + "grammar": "root ::= (\"data\" | \"json\" | \"path\" | \"post\" | \"response\" | \"status_code\" | \"text\")?+ \"snapshot\"?+ \"a\"? \"b\"?", + "grammar_clean": "root ::= (\"data\" | \"json\" | \"path\" | \"post\" | \"response\" | \"status_code\" | \"text\")?+ \"snapshot\"?+ \"a\"? \"b\"?", + "noise_ratio": 0.23, + "symbols_before": 13, + "symbols_after": 10, + "algorithm": "CRX", + "mdl_score": 29763, + "imports": [ + "from fastapi import APIRouter, Body", + "import pytest", + "from fastapi.testclient import TestClient", + "from inline_snapshot import snapshot", + "from .app.main import app" + ], + "arg_patterns": { + "snapshot": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "TestClient": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "APIRouter": { + "occurrences": 6, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 6, + "args": 0, + "types": [] + } + ] + }, + "Body": { + "occurrences": 12, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 12, + "args": 0, + "types": [] + } + ] + } + } + }, + { + "label": "tests/test_request_params/test_body", + "method_count": 113, + "grammar": "root ::= (\"app\" | \"json\" | \"path\" | \"post\" | \"response\" | \"status_code\" | \"text\")+", + "grammar_clean": "root ::= (\"app\" | \"json\" | \"path\" | \"post\" | \"response\" | \"status_code\" | \"text\")+", + "noise_ratio": 0.22, + "symbols_before": 9, + "symbols_after": 7, + "algorithm": "CRX", + "mdl_score": 113175, + "imports": [ + "from typing import Annotated", + "import pytest", + "from dirty_equals import IsOneOf, IsPartialDict", + "from fastapi import Body, FastAPI", + "from fastapi.testclient import TestClient", + "from pydantic import BaseModel, Field", + "from .utils import get_body_model_name", + "from typing import Annotated, Any", + "from dirty_equals import IsOneOf", + "from typing import Any" + ], + "arg_patterns": { + "Field": { + "occurrences": 36, + "arg_count": { + "min": 1, + "max": 3, + "common": 2 + }, + "patterns": [ + { + "count": 12, + "args": 2, + "types": [ + "lit", + "kwarg" + ] + }, + { + "count": 12, + "args": 1, + "types": [ + "kwarg" + ] + }, + { + "count": 6, + "args": 3, + "types": [ + "lit", + "kwarg", + "kwarg" + ] + }, + { + "count": 6, + "args": 2, + "types": [ + "kwarg", + "kwarg" + ] + } + ] + }, + "BodyModelOptionalListAliasAndValidationAlias": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "TestClient": { + "occurrences": 192, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 192, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "Body": { + "occurrences": 48, + "arg_count": { + "min": 1, + "max": 3, + "common": 2 + }, + "patterns": [ + { + "count": 24, + "args": 2, + "types": [ + "kwarg", + "kwarg" + ] + }, + { + "count": 12, + "args": 3, + "types": [ + "kwarg", + "kwarg", + "kwarg" + ] + }, + { + "count": 12, + "args": 1, + "types": [ + "kwarg" + ] + } + ] + }, + "BodyModelOptionalListValidationAlias": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "BodyModelOptionalListAlias": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "get_body_model_name": { + "occurrences": 48, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 48, + "args": 2, + "types": [ + "var", + "var" + ] + } + ] + }, + "FastAPI": { + "occurrences": 12, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 12, + "args": 0, + "types": [] + } + ] + }, + "BodyModelOptionalListStr": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "class": { + "occurrences": 16, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 16, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "IsOneOf": { + "occurrences": 72, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 45, + "args": 2, + "types": [ + "lit", + "other" + ] + }, + { + "count": 24, + "args": 2, + "types": [ + "other", + "other" + ] + }, + { + "count": 3, + "args": 2, + "types": [ + "lit", + "call" + ] + } + ] + }, + "BodyModelRequiredStr": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "BodyModelRequiredAlias": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "BodyModelRequiredValidationAlias": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "BodyModelRequiredAliasAndValidationAlias": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "BodyModelOptionalAlias": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "BodyModelOptionalAliasAndValidationAlias": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "BodyModelOptionalValidationAlias": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "BodyModelOptionalStr": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "BodyModelRequiredListAliasAndValidationAlias": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "BodyModelRequiredListValidationAlias": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "BodyModelRequiredListStr": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "IsPartialDict": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "BodyModelRequiredListAlias": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + } + } + }, + { + "label": "tests/test_request_params/test_cookie", + "method_count": 48, + "grammar": "root ::= (\"app\" | \"cookies\" | \"path\" | \"response\" | \"status_code\")?+ \"json\"?+", + "grammar_clean": "root ::= (\"app\" | \"cookies\" | \"path\" | \"response\" | \"status_code\")?+ \"json\"?+", + "noise_ratio": 0.4, + "symbols_before": 10, + "symbols_after": 6, + "algorithm": "CRX", + "mdl_score": 16578, + "imports": [ + "from typing import Annotated", + "import pytest", + "from fastapi import Cookie, FastAPI", + "from fastapi.testclient import TestClient", + "from inline_snapshot import snapshot", + "from pydantic import BaseModel, Field", + "from dirty_equals import IsOneOf" + ], + "arg_patterns": { + "Field": { + "occurrences": 18, + "arg_count": { + "min": 1, + "max": 3, + "common": 2 + }, + "patterns": [ + { + "count": 6, + "args": 2, + "types": [ + "lit", + "kwarg" + ] + }, + { + "count": 6, + "args": 1, + "types": [ + "kwarg" + ] + }, + { + "count": 3, + "args": 3, + "types": [ + "lit", + "kwarg", + "kwarg" + ] + }, + { + "count": 3, + "args": 2, + "types": [ + "kwarg", + "kwarg" + ] + } + ] + }, + "snapshot": { + "occurrences": 24, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 24, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "TestClient": { + "occurrences": 72, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 72, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "Cookie": { + "occurrences": 48, + "arg_count": { + "min": 0, + "max": 2, + "common": 0 + }, + "patterns": [ + { + "count": 30, + "args": 0, + "types": [] + }, + { + "count": 12, + "args": 1, + "types": [ + "kwarg" + ] + }, + { + "count": 6, + "args": 2, + "types": [ + "kwarg", + "kwarg" + ] + } + ] + }, + "CookieModelOptionalStr": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "FastAPI": { + "occurrences": 6, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 6, + "args": 0, + "types": [] + } + ] + }, + "CookieModelOptionalAlias": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "CookieModelOptionalValidationAlias": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "CookieModelOptionalAliasAndValidationAlias": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "class": { + "occurrences": 8, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 8, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "IsOneOf": { + "occurrences": 24, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 24, + "args": 2, + "types": [ + "lit", + "other" + ] + } + ] + }, + "CookieModelRequiredValidationAlias": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "CookieModelRequiredStr": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "CookieModelRequiredAlias": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "CookieModelRequiredAliasAndValidationAlias": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + } + } + }, + { + "label": "tests/test_request_params/test_file", + "method_count": 97, + "grammar": "root ::= (\"app\" | \"files\" | \"path\" | \"post\" | \"response\" | \"status_code\")?+ \"json\"?+", + "grammar_clean": "root ::= (\"app\" | \"files\" | \"path\" | \"post\" | \"response\" | \"status_code\")?+ \"json\"?+", + "noise_ratio": 0.22, + "symbols_before": 9, + "symbols_after": 7, + "algorithm": "CRX", + "mdl_score": 7752, + "imports": [ + "from typing import Annotated", + "import pytest", + "from fastapi import FastAPI, File, UploadFile", + "from fastapi.testclient import TestClient", + "from .utils import get_body_model_name", + "from typing import Any" + ], + "arg_patterns": { + "File": { + "occurrences": 96, + "arg_count": { + "min": 0, + "max": 2, + "common": 1 + }, + "patterns": [ + { + "count": 48, + "args": 1, + "types": [ + "kwarg" + ] + }, + { + "count": 24, + "args": 0, + "types": [] + }, + { + "count": 24, + "args": 2, + "types": [ + "kwarg", + "kwarg" + ] + } + ] + }, + "TestClient": { + "occurrences": 144, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 144, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "FastAPI": { + "occurrences": 12, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 12, + "args": 0, + "types": [] + } + ] + }, + "get_body_model_name": { + "occurrences": 48, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 48, + "args": 2, + "types": [ + "var", + "var" + ] + } + ] + }, + "len": { + "occurrences": 64, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 64, + "args": 1, + "types": [ + "var" + ] + } + ] + } + } + }, + { + "label": "tests/test_request_params/test_form", + "method_count": 97, + "grammar": "root ::= (\"app\" | \"data\" | \"path\" | \"post\" | \"response\" | \"status_code\")?+ \"json\"?+", + "grammar_clean": "root ::= (\"app\" | \"data\" | \"path\" | \"post\" | \"response\" | \"status_code\")?+ \"json\"?+", + "noise_ratio": 0.22, + "symbols_before": 9, + "symbols_after": 7, + "algorithm": "CRX", + "mdl_score": 8920, + "imports": [ + "from typing import Annotated", + "import pytest", + "from dirty_equals import IsOneOf, IsPartialDict", + "from fastapi import FastAPI, Form", + "from fastapi.testclient import TestClient", + "from pydantic import BaseModel, Field", + "from .utils import get_body_model_name", + "from dirty_equals import IsOneOf", + "from typing import Any" + ], + "arg_patterns": { + "Form": { + "occurrences": 96, + "arg_count": { + "min": 0, + "max": 2, + "common": 0 + }, + "patterns": [ + { + "count": 60, + "args": 0, + "types": [] + }, + { + "count": 24, + "args": 1, + "types": [ + "kwarg" + ] + }, + { + "count": 12, + "args": 2, + "types": [ + "kwarg", + "kwarg" + ] + } + ] + }, + "get_body_model_name": { + "occurrences": 48, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 48, + "args": 2, + "types": [ + "var", + "var" + ] + } + ] + }, + "TestClient": { + "occurrences": 144, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 144, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "FastAPI": { + "occurrences": 12, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 12, + "args": 0, + "types": [] + } + ] + }, + "FormModelOptionalValidationAlias": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "FormModelOptionalAliasAndValidationAlias": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "Field": { + "occurrences": 36, + "arg_count": { + "min": 1, + "max": 3, + "common": 2 + }, + "patterns": [ + { + "count": 12, + "args": 2, + "types": [ + "lit", + "kwarg" + ] + }, + { + "count": 12, + "args": 1, + "types": [ + "kwarg" + ] + }, + { + "count": 6, + "args": 3, + "types": [ + "lit", + "kwarg", + "kwarg" + ] + }, + { + "count": 6, + "args": 2, + "types": [ + "kwarg", + "kwarg" + ] + } + ] + }, + "FormModelOptionalStr": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "FormModelOptionalAlias": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "class": { + "occurrences": 16, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 16, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "FormModelRequiredValidationAlias": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "FormModelRequiredAliasAndValidationAlias": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "IsOneOf": { + "occurrences": 48, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 45, + "args": 2, + "types": [ + "lit", + "other" + ] + }, + { + "count": 3, + "args": 2, + "types": [ + "lit", + "call" + ] + } + ] + }, + "FormModelRequiredStr": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "FormModelRequiredAlias": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "FormModelRequiredListStr": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "IsPartialDict": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "FormModelRequiredListAlias": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "FormModelRequiredListAliasAndValidationAlias": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "FormModelRequiredListValidationAlias": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "FormModelOptionalListValidationAlias": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "FormModelOptionalListStr": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "FormModelOptionalListAliasAndValidationAlias": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "FormModelOptionalListAlias": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + } + } + }, + { + "label": "tests/test_request_params/test_header", + "method_count": 96, + "grammar": "root ::= (\"app\" | \"headers\" | \"path\" | \"response\" | \"status_code\")?+ \"json\"?+", + "grammar_clean": "root ::= (\"app\" | \"headers\" | \"path\" | \"response\" | \"status_code\")?+ \"json\"?+", + "noise_ratio": 0.33, + "symbols_before": 9, + "symbols_after": 6, + "algorithm": "CRX", + "mdl_score": 8920, + "imports": [ + "from typing import Annotated", + "import pytest", + "from dirty_equals import AnyThing, IsOneOf, IsPartialDict", + "from fastapi import FastAPI, Header", + "from fastapi.testclient import TestClient", + "from inline_snapshot import snapshot", + "from pydantic import BaseModel, Field" + ], + "arg_patterns": { + "snapshot": { + "occurrences": 48, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 48, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "IsPartialDict": { + "occurrences": 24, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 24, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "IsOneOf": { + "occurrences": 24, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 24, + "args": 2, + "types": [ + "lit", + "call" + ] + } + ] + }, + "HeaderModelRequiredValidationAlias": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "TestClient": { + "occurrences": 144, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 144, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "Header": { + "occurrences": 96, + "arg_count": { + "min": 0, + "max": 2, + "common": 0 + }, + "patterns": [ + { + "count": 60, + "args": 0, + "types": [] + }, + { + "count": 24, + "args": 1, + "types": [ + "kwarg" + ] + }, + { + "count": 12, + "args": 2, + "types": [ + "kwarg", + "kwarg" + ] + } + ] + }, + "Field": { + "occurrences": 36, + "arg_count": { + "min": 1, + "max": 3, + "common": 2 + }, + "patterns": [ + { + "count": 12, + "args": 1, + "types": [ + "kwarg" + ] + }, + { + "count": 12, + "args": 2, + "types": [ + "lit", + "kwarg" + ] + }, + { + "count": 6, + "args": 2, + "types": [ + "kwarg", + "kwarg" + ] + }, + { + "count": 6, + "args": 3, + "types": [ + "lit", + "kwarg", + "kwarg" + ] + } + ] + }, + "HeaderModelRequiredAliasAndValidationAlias": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "FastAPI": { + "occurrences": 12, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 12, + "args": 0, + "types": [] + } + ] + }, + "HeaderModelRequiredAlias": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "HeaderModelRequiredStr": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "class": { + "occurrences": 16, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 16, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "HeaderModelOptionalAlias": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "HeaderModelOptionalAliasAndValidationAlias": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "HeaderModelOptionalValidationAlias": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "HeaderModelOptionalStr": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "HeaderModelRequiredListStr": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "HeaderModelRequiredListValidationAlias": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "HeaderModelRequiredListAliasAndValidationAlias": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "HeaderModelRequiredListAlias": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "HeaderModelOptionalListAlias": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "HeaderModelOptionalListAliasAndValidationAlias": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "HeaderModelOptionalListStr": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "HeaderModelOptionalListValidationAlias": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + } + } + }, + { + "label": "tests/test_request_params/test_path", + "method_count": 6, + "grammar": "root ::= (\"app\" | \"openapi\" | \"path\" | \"response\" | \"status_code\" | \"text\")?+ \"snapshot\"?+ \"json\"?+ \"p\"? (\"Is\" | \"expected_title\")?+ \"expected_name\"?", + "grammar_clean": "root ::= (\"app\" | \"openapi\" | \"path\" | \"response\" | \"status_code\" | \"text\")?+ \"snapshot\"?+ \"json\"?+ \"p\"? (\"Is\" | \"expected_title\")?+ \"expected_name\"?", + "noise_ratio": 0.25, + "symbols_before": 16, + "symbols_after": 12, + "algorithm": "CRX", + "mdl_score": 522, + "imports": [ + "from typing import Annotated", + "import pytest", + "from fastapi import FastAPI, Path", + "from fastapi.testclient import TestClient", + "from inline_snapshot import Is, snapshot" + ], + "arg_patterns": { + "Path": { + "occurrences": 12, + "arg_count": { + "min": 0, + "max": 2, + "common": 1 + }, + "patterns": [ + { + "count": 6, + "args": 1, + "types": [ + "kwarg" + ] + }, + { + "count": 3, + "args": 2, + "types": [ + "kwarg", + "kwarg" + ] + }, + { + "count": 3, + "args": 0, + "types": [] + } + ] + }, + "FastAPI": { + "occurrences": 3, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 3, + "args": 0, + "types": [] + } + ] + }, + "Is": { + "occurrences": 6, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 6, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "snapshot": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "TestClient": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "var" + ] + } + ] + } + } + }, + { + "label": "tests/test_request_params/test_query", + "method_count": 96, + "grammar": "root ::= (\"app\" | \"path\" | \"response\" | \"status_code\")?+ \"json\"?+", + "grammar_clean": "root ::= (\"app\" | \"path\" | \"response\" | \"status_code\")?+ \"json\"?+", + "noise_ratio": 0.38, + "symbols_before": 8, + "symbols_after": 5, + "algorithm": "CRX", + "mdl_score": 5712, + "imports": [ + "from typing import Annotated", + "import pytest", + "from dirty_equals import IsOneOf", + "from fastapi import FastAPI, Query", + "from fastapi.testclient import TestClient", + "from inline_snapshot import snapshot", + "from pydantic import BaseModel, Field" + ], + "arg_patterns": { + "TestClient": { + "occurrences": 144, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 144, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "QueryModelRequiredListAlias": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "Query": { + "occurrences": 90, + "arg_count": { + "min": 0, + "max": 2, + "common": 0 + }, + "patterns": [ + { + "count": 54, + "args": 0, + "types": [] + }, + { + "count": 24, + "args": 1, + "types": [ + "kwarg" + ] + }, + { + "count": 12, + "args": 2, + "types": [ + "kwarg", + "kwarg" + ] + } + ] + }, + "IsOneOf": { + "occurrences": 48, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 48, + "args": 2, + "types": [ + "lit", + "other" + ] + } + ] + }, + "snapshot": { + "occurrences": 48, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 48, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "Field": { + "occurrences": 36, + "arg_count": { + "min": 1, + "max": 3, + "common": 2 + }, + "patterns": [ + { + "count": 12, + "args": 1, + "types": [ + "kwarg" + ] + }, + { + "count": 12, + "args": 2, + "types": [ + "lit", + "kwarg" + ] + }, + { + "count": 6, + "args": 2, + "types": [ + "kwarg", + "kwarg" + ] + }, + { + "count": 6, + "args": 3, + "types": [ + "lit", + "kwarg", + "kwarg" + ] + } + ] + }, + "FastAPI": { + "occurrences": 12, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 12, + "args": 0, + "types": [] + } + ] + }, + "QueryModelRequiredListAliasAndValidationAlias": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "QueryModelRequiredListStr": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "QueryModelRequiredListValidationAlias": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "class": { + "occurrences": 16, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 16, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "QueryModelRequiredAlias": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "QueryModelRequiredAliasAndValidationAlias": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "QueryModelRequiredValidationAlias": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "QueryModelRequiredStr": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "QueryModelOptionalListAlias": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "QueryModelOptionalListStr": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "QueryModelOptionalListAliasAndValidationAlias": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "QueryModelOptionalListValidationAlias": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "QueryModelOptionalStr": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "QueryModelOptionalValidationAlias": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "QueryModelOptionalAliasAndValidationAlias": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "QueryModelOptionalAlias": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + } + } + }, + { + "label": "tests/test_tutorial", + "method_count": 16, + "grammar": "root ::= (\"json\" | \"response\" | \"status_code\" | \"text\")?+ \"headers\"?", + "grammar_clean": "root ::= (\"json\" | \"response\" | \"status_code\" | \"text\")?+ \"headers\"?", + "noise_ratio": 0.29, + "symbols_before": 7, + "symbols_after": 5, + "algorithm": "CRX", + "mdl_score": 17280, + "imports": [ + "import pytest", + "from docs_src.async_tests.app_a_py310.test_main import test_root", + "from fastapi.testclient import TestClient", + "from docs_src.cors.tutorial001_py310 import app", + "from inline_snapshot import snapshot", + "from docs_src.extending_openapi.tutorial001_py310 import app", + "from docs_src.middleware.tutorial001_py310 import app", + "from docs_src.response_change_status_code.tutorial001_py310 import app", + "from docs_src.response_cookies.tutorial001_py310 import app", + "from docs_src.response_cookies.tutorial002_py310 import app", + "from docs_src.response_headers.tutorial001_py310 import app", + "from docs_src.response_headers.tutorial002_py310 import app", + "import os", + "import shutil", + "from tests.utils import workdir_lock", + "from docs_src.templates.tutorial001_py310 import app", + "from docs_src.using_request_directly.tutorial001_py310 import app", + "from docs_src.wsgi.tutorial001_py310 import app" + ], + "arg_patterns": { + "TestClient": { + "occurrences": 33, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 33, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "print": { + "occurrences": 4, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 4, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "snapshot": { + "occurrences": 9, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 9, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "test_root": { + "occurrences": 3, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 3, + "args": 0, + "types": [] + } + ] + } + } + }, + { + "label": "tests/test_tutorial/test_additional_responses", + "method_count": 14, + "grammar": "root ::= (\"response\" | \"status_code\" | \"text\")?+ \"json\"?+ \"snapshot\"?+", + "grammar_clean": "root ::= (\"response\" | \"status_code\" | \"text\")?+ \"json\"?+ \"snapshot\"?+", + "noise_ratio": 0.29, + "symbols_before": 7, + "symbols_after": 5, + "algorithm": "CRX", + "mdl_score": 470, + "imports": [ + "from fastapi.testclient import TestClient", + "from inline_snapshot import snapshot", + "from docs_src.additional_responses.tutorial001_py310 import app", + "import importlib", + "import os", + "import shutil", + "import pytest", + "from tests.utils import needs_py310, workdir_lock", + "from docs_src.additional_responses.tutorial003_py310 import app" + ], + "arg_patterns": { + "snapshot": { + "occurrences": 12, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 12, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "TestClient": { + "occurrences": 12, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 6, + "args": 1, + "types": [ + "var" + ] + }, + { + "count": 6, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "len": { + "occurrences": 8, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 8, + "args": 1, + "types": [ + "other" + ] + } + ] + } + } + }, + { + "label": "tests/test_tutorial/test_additional_status_codes", + "method_count": 3, + "grammar": "root ::= (\"app\" | \"import_module\" | \"importlib\" | \"json\" | \"mod\" | \"param\" | \"request\" | \"response\" | \"status_code\" | \"text\")+", + "grammar_clean": "root ::= (\"app\" | \"import_module\" | \"importlib\" | \"json\" | \"mod\" | \"param\" | \"request\" | \"response\" | \"status_code\" | \"text\")+", + "noise_ratio": 0.29, + "symbols_before": 14, + "symbols_after": 10, + "algorithm": "CRX", + "mdl_score": 895384, + "imports": [ + "import importlib", + "import pytest", + "from fastapi.testclient import TestClient", + "from ...utils import needs_py310" + ], + "arg_patterns": { + "TestClient": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "other" + ] + } + ] + } + } + }, + { + "label": "tests/test_tutorial/test_advanced_middleware", + "method_count": 4, + "grammar": "root ::= \"PlainTextResponse\"?+ (\"app\" | \"base_url\" | \"follow_redirects\" | \"headers\" | \"int\" | \"response\" | \"status_code\" | \"text\")?+", + "grammar_clean": "root ::= \"PlainTextResponse\"?+ (\"app\" | \"base_url\" | \"follow_redirects\" | \"headers\" | \"int\" | \"response\" | \"status_code\" | \"text\")?+", + "noise_ratio": 0.31, + "symbols_before": 13, + "symbols_after": 9, + "algorithm": "CRX", + "mdl_score": 66319, + "imports": [ + "from fastapi.testclient import TestClient", + "from docs_src.advanced_middleware.tutorial001_py310 import app", + "from docs_src.advanced_middleware.tutorial002_py310 import app", + "from fastapi.responses import PlainTextResponse", + "from docs_src.advanced_middleware.tutorial003_py310 import app" + ], + "arg_patterns": { + "TestClient": { + "occurrences": 18, + "arg_count": { + "min": 1, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 12, + "args": 2, + "types": [ + "var", + "kwarg" + ] + }, + { + "count": 6, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "int": { + "occurrences": 5, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 5, + "args": 1, + "types": [ + "subscript" + ] + } + ] + }, + "PlainTextResponse": { + "occurrences": 3, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 3, + "args": 2, + "types": [ + "expr", + "kwarg" + ] + } + ] + } + } + }, + { + "label": "tests/test_tutorial/test_authentication_error_status_code", + "method_count": 4, + "grammar": "root ::= (\"app\" | \"headers\" | \"import_module\" | \"importlib\" | \"mod\" | \"param\" | \"request\" | \"response\" | \"status_code\" | \"text\")?+ \"json\"?+ \"snapshot\"?+", + "grammar_clean": "root ::= (\"app\" | \"headers\" | \"import_module\" | \"importlib\" | \"mod\" | \"param\" | \"request\" | \"response\" | \"status_code\" | \"text\")?+ \"json\"?+ \"snapshot\"?+", + "noise_ratio": 0.25, + "symbols_before": 16, + "symbols_after": 12, + "algorithm": "CRX", + "mdl_score": 7014, + "imports": [ + "import importlib", + "import pytest", + "from fastapi.testclient import TestClient", + "from inline_snapshot import snapshot" + ], + "arg_patterns": { + "snapshot": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "TestClient": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "other" + ] + } + ] + } + } + }, + { + "label": "tests/test_tutorial/test_background_tasks", + "method_count": 3, + "grammar": "root ::= (\"Path\" | \"is_file\" | \"log\" | \"os\")?+ (\"app\" | \"import_module\" | \"importlib\" | \"mod\" | \"param\" | \"post\" | \"request\" | \"response\" | \"status_code\" | \"text\")?+ \"json\"?+ \"open\"?+ \"f\"?+ \"read\"?+", + "grammar_clean": "root ::= (\"Path\" | \"is_file\" | \"log\" | \"os\")?+ (\"app\" | \"import_module\" | \"importlib\" | \"mod\" | \"param\" | \"post\" | \"request\" | \"response\" | \"status_code\" | \"text\")?+ \"json\"?+ \"open\"?+ \"f\"?+ \"read\"?+", + "noise_ratio": 0.25, + "symbols_before": 24, + "symbols_after": 18, + "algorithm": "CRX", + "mdl_score": 0, + "imports": [ + "import os", + "from pathlib import Path", + "from fastapi.testclient import TestClient", + "from docs_src.background_tasks.tutorial001_py310 import app", + "from tests.utils import workdir_lock", + "import importlib", + "import pytest", + "from tests.utils import needs_py310, workdir_lock" + ], + "arg_patterns": { + "TestClient": { + "occurrences": 6, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "var" + ] + }, + { + "count": 3, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "open": { + "occurrences": 8, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 8, + "args": 1, + "types": [ + "lit" + ] + } + ] + }, + "Path": { + "occurrences": 6, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 6, + "args": 1, + "types": [ + "lit" + ] + } + ] + } + } + }, + { + "label": "tests/test_tutorial/test_behind_a_proxy", + "method_count": 10, + "grammar": "root ::= (\"response\" | \"status_code\")?+ \"json\"?+ \"snapshot\"?+", + "grammar_clean": "root ::= (\"response\" | \"status_code\")?+ \"json\"?+ \"snapshot\"?+", + "noise_ratio": 0.33, + "symbols_before": 6, + "symbols_after": 4, + "algorithm": "CRX", + "mdl_score": 276, + "imports": [ + "from fastapi.testclient import TestClient", + "from inline_snapshot import snapshot", + "from docs_src.behind_a_proxy.tutorial001_py310 import app", + "from docs_src.behind_a_proxy.tutorial001_01_py310 import app", + "from docs_src.behind_a_proxy.tutorial002_py310 import app", + "from docs_src.behind_a_proxy.tutorial003_py310 import app", + "from docs_src.behind_a_proxy.tutorial004_py310 import app" + ], + "arg_patterns": { + "TestClient": { + "occurrences": 15, + "arg_count": { + "min": 1, + "max": 3, + "common": 1 + }, + "patterns": [ + { + "count": 9, + "args": 1, + "types": [ + "var" + ] + }, + { + "count": 3, + "args": 3, + "types": [ + "var", + "kwarg", + "kwarg" + ] + }, + { + "count": 3, + "args": 2, + "types": [ + "var", + "kwarg" + ] + } + ] + }, + "snapshot": { + "occurrences": 12, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 12, + "args": 1, + "types": [ + "other" + ] + } + ] + } + } + }, + { + "label": "tests/test_tutorial/test_bigger_applications", + "method_count": 26, + "grammar": "root ::= (\"headers\" | \"response\" | \"status_code\" | \"text\")?+ \"json\"?+", + "grammar_clean": "root ::= (\"headers\" | \"response\" | \"status_code\" | \"text\")?+ \"json\"?+", + "noise_ratio": 0.29, + "symbols_before": 7, + "symbols_after": 5, + "algorithm": "CRX", + "mdl_score": 4224, + "imports": [ + "import importlib", + "import pytest", + "from fastapi.testclient import TestClient", + "from inline_snapshot import snapshot" + ], + "arg_patterns": { + "TestClient": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "snapshot": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "other" + ] + } + ] + } + } + }, + { + "label": "tests/test_tutorial/test_body", + "method_count": 32, + "grammar": "root ::= (\"json\" | \"post\" | \"response\" | \"status_code\")+ \"text\"?", + "grammar_clean": "root ::= (\"json\" | \"post\" | \"response\" | \"status_code\")+ \"text\"?", + "noise_ratio": 0.17, + "symbols_before": 6, + "symbols_after": 5, + "algorithm": "CRX", + "mdl_score": 7870, + "imports": [ + "import importlib", + "from unittest.mock import patch", + "import pytest", + "from fastapi.testclient import TestClient", + "from inline_snapshot import snapshot", + "from ...utils import needs_py310" + ], + "arg_patterns": { + "TestClient": { + "occurrences": 12, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 12, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "snapshot": { + "occurrences": 12, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 12, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "patch": { + "occurrences": 3, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 3, + "args": 2, + "types": [ + "lit", + "kwarg" + ] + } + ] + } + } + }, + { + "label": "tests/test_tutorial/test_body_fields", + "method_count": 5, + "grammar": "root ::= (\"app\" | \"import_module\" | \"importlib\" | \"json\" | \"mod\" | \"param\" | \"request\" | \"response\" | \"status_code\" | \"text\")?+ \"snapshot\"?+", + "grammar_clean": "root ::= (\"app\" | \"import_module\" | \"importlib\" | \"json\" | \"mod\" | \"param\" | \"request\" | \"response\" | \"status_code\" | \"text\")?+ \"snapshot\"?+", + "noise_ratio": 0.31, + "symbols_before": 16, + "symbols_after": 11, + "algorithm": "CRX", + "mdl_score": 120810, + "imports": [ + "import importlib", + "import pytest", + "from fastapi.testclient import TestClient", + "from inline_snapshot import snapshot", + "from ...utils import needs_py310" + ], + "arg_patterns": { + "snapshot": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "TestClient": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "other" + ] + } + ] + } + } + }, + { + "label": "tests/test_tutorial/test_body_multiple_params", + "method_count": 35, + "grammar": "root ::= (\"json\" | \"response\" | \"status_code\")+", + "grammar_clean": "root ::= (\"json\" | \"response\" | \"status_code\")+", + "noise_ratio": 0.4, + "symbols_before": 5, + "symbols_after": 3, + "algorithm": "CRX", + "mdl_score": 5935, + "imports": [ + "import importlib", + "import pytest", + "from fastapi.testclient import TestClient", + "from inline_snapshot import snapshot", + "from ...utils import needs_py310" + ], + "arg_patterns": { + "TestClient": { + "occurrences": 15, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 15, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "snapshot": { + "occurrences": 15, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 15, + "args": 1, + "types": [ + "other" + ] + } + ] + } + } + }, + { + "label": "tests/test_tutorial/test_body_nested_models", + "method_count": 44, + "grammar": "root ::= (\"json\" | \"response\" | \"status_code\" | \"text\")+", + "grammar_clean": "root ::= (\"json\" | \"response\" | \"status_code\" | \"text\")+", + "noise_ratio": 0.33, + "symbols_before": 6, + "symbols_after": 4, + "algorithm": "CRX", + "mdl_score": 14772, + "imports": [ + "import importlib", + "from typing import Any", + "import pytest", + "from dirty_equals import IsList", + "from fastapi.testclient import TestClient", + "from inline_snapshot import Is, snapshot", + "from ...utils import needs_py310", + "from inline_snapshot import snapshot" + ], + "arg_patterns": { + "TestClient": { + "occurrences": 21, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 21, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "snapshot": { + "occurrences": 21, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 21, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "IsList": { + "occurrences": 12, + "arg_count": { + "min": 3, + "max": 3, + "common": 3 + }, + "patterns": [ + { + "count": 12, + "args": 3, + "types": [ + "lit", + "lit", + "kwarg" + ] + } + ] + }, + "Is": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "var" + ] + } + ] + } + } + }, + { + "label": "tests/test_tutorial/test_body_updates", + "method_count": 9, + "grammar": "root ::= (\"app\" | \"import_module\" | \"importlib\" | \"json\" | \"mod\" | \"param\" | \"request\" | \"response\" | \"status_code\" | \"text\")?+ \"snapshot\"?+", + "grammar_clean": "root ::= (\"app\" | \"import_module\" | \"importlib\" | \"json\" | \"mod\" | \"param\" | \"request\" | \"response\" | \"status_code\" | \"text\")?+ \"snapshot\"?+", + "noise_ratio": 0.31, + "symbols_before": 16, + "symbols_after": 11, + "algorithm": "CRX", + "mdl_score": 113580, + "imports": [ + "import importlib", + "import pytest", + "from fastapi.testclient import TestClient", + "from inline_snapshot import snapshot", + "from ...utils import needs_py310" + ], + "arg_patterns": { + "TestClient": { + "occurrences": 6, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 6, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "snapshot": { + "occurrences": 6, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 6, + "args": 1, + "types": [ + "other" + ] + } + ] + } + } + }, + { + "label": "tests/test_tutorial/test_conditional_openapi", + "method_count": 4, + "grammar": "root ::= \"from\"? \"setenv\"?+ \"docs_src\"?+ \"conditional_openapi\"?+ \"import\"? (\"app\" | \"get_client\" | \"importlib\" | \"reload\" | \"response\" | \"status_code\" | \"text\" | \"tutorial001_py310\")?+ \"json\"?+ \"snapshot\"?+", + "grammar_clean": "root ::= \"from\"? \"setenv\"?+ \"docs_src\"?+ \"conditional_openapi\"?+ \"import\"? (\"app\" | \"get_client\" | \"importlib\" | \"reload\" | \"response\" | \"status_code\" | \"text\" | \"tutorial001_py310\")?+ \"json\"?+ \"snapshot\"?+", + "noise_ratio": 0.25, + "symbols_before": 20, + "symbols_after": 15, + "algorithm": "CRX", + "mdl_score": 0, + "imports": [ + "import importlib", + "from fastapi.testclient import TestClient", + "from inline_snapshot import snapshot", + "from docs_src.conditional_openapi import tutorial001_py310" + ], + "arg_patterns": { + "TestClient": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "get_client": { + "occurrences": 9, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 9, + "args": 0, + "types": [] + } + ] + }, + "snapshot": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "other" + ] + } + ] + } + } + }, + { + "label": "tests/test_tutorial/test_configure_swagger_ui", + "method_count": 6, + "grammar": "root ::= (\"not\" | \"not in\" | \"response\" | \"status_code\" | \"text\")?+ \"json\"?+", + "grammar_clean": "root ::= (\"not\" | \"not in\" | \"response\" | \"status_code\" | \"text\")?+ \"json\"?+", + "noise_ratio": 0.33, + "symbols_before": 9, + "symbols_after": 6, + "algorithm": "CRX", + "mdl_score": 11920, + "imports": [ + "from fastapi.testclient import TestClient", + "from docs_src.configure_swagger_ui.tutorial001_py310 import app", + "from docs_src.configure_swagger_ui.tutorial002_py310 import app", + "from docs_src.configure_swagger_ui.tutorial003_py310 import app" + ], + "arg_patterns": { + "TestClient": { + "occurrences": 9, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 9, + "args": 1, + "types": [ + "var" + ] + } + ] + } + } + }, + { + "label": "tests/test_tutorial/test_cookie_param_models", + "method_count": 12, + "grammar": "root ::= (\"c\" | \"cookies\" | \"response\" | \"status_code\")?+ \"json\"?+ \"snapshot\"?+", + "grammar_clean": "root ::= (\"c\" | \"cookies\" | \"response\" | \"status_code\")?+ \"json\"?+ \"snapshot\"?+", + "noise_ratio": 0.33, + "symbols_before": 9, + "symbols_after": 6, + "algorithm": "CRX", + "mdl_score": 1540, + "imports": [ + "import importlib", + "import pytest", + "from fastapi.testclient import TestClient", + "from inline_snapshot import snapshot", + "from tests.utils import needs_py310" + ], + "arg_patterns": { + "snapshot": { + "occurrences": 15, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 15, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "TestClient": { + "occurrences": 6, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 6, + "args": 1, + "types": [ + "other" + ] + } + ] + } + } + }, + { + "label": "tests/test_tutorial/test_cookie_params", + "method_count": 3, + "grammar": "root ::= (\"app\" | \"cookies\" | \"expected_status\" | \"import_module\" | \"importlib\" | \"mod\" | \"param\" | \"path\" | \"request\" | \"response\" | \"status_code\")?+ \"json\"?+ (\"expected_response\" | \"snapshot\")?+", + "grammar_clean": "root ::= (\"app\" | \"cookies\" | \"expected_status\" | \"import_module\" | \"importlib\" | \"mod\" | \"param\" | \"path\" | \"request\" | \"response\" | \"status_code\")?+ \"json\"?+ (\"expected_response\" | \"snapshot\")?+", + "noise_ratio": 0.22, + "symbols_before": 18, + "symbols_after": 14, + "algorithm": "CRX", + "mdl_score": 19590, + "imports": [ + "import importlib", + "from types import ModuleType", + "import pytest", + "from fastapi.testclient import TestClient", + "from inline_snapshot import snapshot", + "from ...utils import needs_py310" + ], + "arg_patterns": { + "TestClient": { + "occurrences": 6, + "arg_count": { + "min": 1, + "max": 2, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 2, + "types": [ + "other", + "kwarg" + ] + }, + { + "count": 3, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "snapshot": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "other" + ] + } + ] + } + } + }, + { + "label": "tests/test_tutorial/test_custom_docs_ui", + "method_count": 10, + "grammar": "root ::= (\"response\" | \"status_code\" | \"text\")+", + "grammar_clean": "root ::= (\"response\" | \"status_code\" | \"text\")+", + "noise_ratio": 0.5, + "symbols_before": 6, + "symbols_after": 3, + "algorithm": "CRX", + "mdl_score": 12180, + "imports": [ + "import os", + "from pathlib import Path", + "import pytest", + "from fastapi.testclient import TestClient", + "from tests.utils import workdir_lock", + "from docs_src.custom_docs_ui.tutorial001_py310 import app", + "from docs_src.custom_docs_ui.tutorial002_py310 import app" + ], + "arg_patterns": { + "Path": { + "occurrences": 6, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 6, + "args": 1, + "types": [ + "call" + ] + } + ] + }, + "print": { + "occurrences": 8, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 8, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "TestClient": { + "occurrences": 6, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 6, + "args": 1, + "types": [ + "var" + ] + } + ] + } + } + }, + { + "label": "tests/test_tutorial/test_custom_request_and_route", + "method_count": 10, + "grammar": "root ::= (\"app\" | \"mod\" | \"response\")?+ \"importlib\"? (\"json\" | \"post\")?+ \"import_module\"?+ \"request\"? \"param\"?", + "grammar_clean": "root ::= (\"app\" | \"mod\" | \"response\")?+ \"importlib\"? (\"json\" | \"post\")?+ \"import_module\"?+ \"request\"? \"param\"?", + "noise_ratio": 0.31, + "symbols_before": 13, + "symbols_after": 9, + "algorithm": "CRX", + "mdl_score": 3136, + "imports": [ + "import gzip", + "import importlib", + "import json", + "import pytest", + "from fastapi import Request", + "from fastapi.testclient import TestClient", + "from tests.utils import needs_py310", + "from dirty_equals import IsOneOf" + ], + "arg_patterns": { + "float": { + "occurrences": 5, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 5, + "args": 1, + "types": [ + "subscript" + ] + } + ] + }, + "TestClient": { + "occurrences": 9, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 9, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "IsOneOf": { + "occurrences": 3, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 3, + "args": 2, + "types": [ + "lit", + "lit" + ] + } + ] + }, + "type": { + "occurrences": 5, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 5, + "args": 1, + "types": [ + "var" + ] + } + ] + } + } + }, + { + "label": "tests/test_tutorial/test_custom_response", + "method_count": 25, + "grammar": "root ::= (\"response\" | \"status_code\" | \"text\")?+ \"json\"?+ \"snapshot\"?+", + "grammar_clean": "root ::= (\"response\" | \"status_code\" | \"text\")?+ \"json\"?+ \"snapshot\"?+", + "noise_ratio": 0.29, + "symbols_before": 7, + "symbols_after": 5, + "algorithm": "CRX", + "mdl_score": 465, + "imports": [ + "import importlib", + "import pytest", + "from fastapi.testclient import TestClient", + "from inline_snapshot import snapshot", + "import warnings", + "from fastapi.exceptions import FastAPIDeprecationWarning", + "from docs_src.custom_response.tutorial001b_py310 import app", + "from inline_snapshot import Is, snapshot", + "from docs_src.custom_response.tutorial005_py310 import app", + "from docs_src.custom_response.tutorial006_py310 import app", + "from docs_src.custom_response.tutorial006b_py310 import app", + "from docs_src.custom_response.tutorial006c_py310 import app", + "from docs_src.custom_response.tutorial007_py310 import app", + "from pathlib import Path", + "from typing import Any, cast", + "from docs_src.custom_response import tutorial008_py310", + "from docs_src.custom_response.tutorial008_py310 import app", + "from docs_src.custom_response import tutorial009_py310", + "from docs_src.custom_response.tutorial009_py310 import app", + "from docs_src.custom_response import tutorial009b_py310", + "from docs_src.custom_response.tutorial009b_py310 import app", + "from docs_src.custom_response.tutorial009c_py310 import app" + ], + "arg_patterns": { + "TestClient": { + "occurrences": 39, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 30, + "args": 1, + "types": [ + "var" + ] + }, + { + "count": 9, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "str": { + "occurrences": 15, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 15, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "cast": { + "occurrences": 9, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 9, + "args": 2, + "types": [ + "var", + "var" + ] + } + ] + }, + "snapshot": { + "occurrences": 27, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 24, + "args": 1, + "types": [ + "other" + ] + }, + { + "count": 3, + "args": 1, + "types": [ + "lit" + ] + } + ] + }, + "Is": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "var" + ] + } + ] + } + } + }, + { + "label": "tests/test_tutorial/test_dataclasses", + "method_count": 11, + "grammar": "root ::= (\"app\" | \"headers\" | \"import_module\" | \"importlib\" | \"json\" | \"mod\" | \"param\" | \"post\" | \"request\" | \"response\" | \"status_code\")?+ \"snapshot\"?+", + "grammar_clean": "root ::= (\"app\" | \"headers\" | \"import_module\" | \"importlib\" | \"json\" | \"mod\" | \"param\" | \"post\" | \"request\" | \"response\" | \"status_code\")?+ \"snapshot\"?+", + "noise_ratio": 0.29, + "symbols_before": 17, + "symbols_after": 12, + "algorithm": "CRX", + "mdl_score": 150224, + "imports": [ + "import importlib", + "import pytest", + "from fastapi.testclient import TestClient", + "from inline_snapshot import snapshot", + "from tests.utils import needs_py310", + "from ...utils import needs_py310" + ], + "arg_patterns": { + "TestClient": { + "occurrences": 9, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 9, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "snapshot": { + "occurrences": 9, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 9, + "args": 1, + "types": [ + "other" + ] + } + ] + } + } + }, + { + "label": "tests/test_tutorial/test_debugging", + "method_count": 5, + "grammar": "root ::= (\"MOD_NAME\" | \"app\" | \"assert_called_once_with\" | \"del\" | \"import_module\" | \"importlib\" | \"mod\" | \"modules\" | \"response\" | \"run_module\" | \"run_name\" | \"runpy\" | \"status_code\" | \"sys\" | \"uvicorn_run_mock\")?+ \"ANY\"? \"assert_not_called\"?+ \"json\"?+ \"host\"? \"snapshot\"?+ \"port\"?", + "grammar_clean": "root ::= (\"MOD_NAME\" | \"app\" | \"assert_called_once_with\" | \"del\" | \"import_module\" | \"importlib\" | \"mod\" | \"modules\" | \"response\" | \"run_module\" | \"run_name\" | \"runpy\" | \"status_code\" | \"sys\" | \"uvicorn_run_mock\")?+ \"ANY\"? \"assert_not_called\"?+ \"json\"?+ \"host\"? \"snapshot\"?+ \"port\"?", + "noise_ratio": 0.25, + "symbols_before": 28, + "symbols_after": 21, + "algorithm": "CRX", + "mdl_score": 1176, + "imports": [ + "import importlib", + "import runpy", + "import sys", + "from unittest import mock", + "import pytest", + "from fastapi.testclient import TestClient", + "from inline_snapshot import snapshot" + ], + "arg_patterns": { + "TestClient": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "snapshot": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "other" + ] + } + ] + } + } + }, + { + "label": "tests/test_tutorial/test_dependencies", + "method_count": 51, + "grammar": "root ::= (\"response\" | \"status_code\" | \"text\")?+ \"json\"?+ \"mod\"? \"app\"?", + "grammar_clean": "root ::= (\"response\" | \"status_code\" | \"text\")?+ \"json\"?+ \"mod\"? \"app\"?", + "noise_ratio": 0.33, + "symbols_before": 9, + "symbols_after": 6, + "algorithm": "CRX", + "mdl_score": 595, + "imports": [ + "import importlib", + "import pytest", + "from fastapi.testclient import TestClient", + "from inline_snapshot import snapshot", + "from ...utils import needs_py310", + "import asyncio", + "from contextlib import asynccontextmanager", + "from unittest.mock import Mock, patch", + "from docs_src.dependencies.tutorial007_py310 import get_db", + "import sys", + "from types import ModuleType", + "from typing import Annotated, Any", + "from fastapi import Depends, FastAPI", + "from fastapi.exceptions import FastAPIError", + "from docs_src.dependencies.tutorial010_py310 import get_db" + ], + "arg_patterns": { + "snapshot": { + "occurrences": 18, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 18, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "TestClient": { + "occurrences": 54, + "arg_count": { + "min": 1, + "max": 2, + "common": 1 + }, + "patterns": [ + { + "count": 42, + "args": 1, + "types": [ + "other" + ] + }, + { + "count": 6, + "args": 2, + "types": [ + "other", + "kwarg" + ] + }, + { + "count": 6, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "cm": { + "occurrences": 3, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 3, + "args": 0, + "types": [] + } + ] + }, + "patch": { + "occurrences": 15, + "arg_count": { + "min": 3, + "max": 3, + "common": 3 + }, + "patterns": [ + { + "count": 15, + "args": 3, + "types": [ + "lit", + "kwarg", + "kwarg" + ] + } + ] + }, + "test_async_gen": { + "occurrences": 3, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 3, + "args": 0, + "types": [] + } + ] + }, + "asynccontextmanager": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "Mock": { + "occurrences": 15, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 15, + "args": 0, + "types": [] + } + ] + }, + "Depends": { + "occurrences": 6, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "other" + ] + }, + { + "count": 3, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "str": { + "occurrences": 20, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 20, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "FastAPI": { + "occurrences": 6, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 6, + "args": 0, + "types": [] + } + ] + } + } + }, + { + "label": "tests/test_tutorial/test_encoder", + "method_count": 5, + "grammar": "root ::= (\"app\" | \"fake_db\" | \"import_module\" | \"importlib\" | \"json\" | \"mod\" | \"module\" | \"not\" | \"not in\" | \"param\" | \"request\" | \"response\" | \"status_code\")?+ \"snapshot\"?+", + "grammar_clean": "root ::= (\"app\" | \"fake_db\" | \"import_module\" | \"importlib\" | \"json\" | \"mod\" | \"module\" | \"not\" | \"not in\" | \"param\" | \"request\" | \"response\" | \"status_code\")?+ \"snapshot\"?+", + "noise_ratio": 0.3, + "symbols_before": 20, + "symbols_after": 14, + "algorithm": "CRX", + "mdl_score": 278673, + "imports": [ + "import importlib", + "from types import ModuleType", + "import pytest", + "from fastapi.testclient import TestClient", + "from inline_snapshot import snapshot", + "from ...utils import needs_py310" + ], + "arg_patterns": { + "TestClient": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "snapshot": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "other" + ] + } + ] + } + } + }, + { + "label": "tests/test_tutorial/test_events", + "method_count": 8, + "grammar": "root ::= \"import\"?+ \"warns\"?+ (\"app\" | \"yield\")?+ \"DeprecationWarning\"?+ (\"response\" | \"status_code\" | \"text\")?+ \"from\"? \"json\"?+ \"docs_src\"?+ \"snapshot\"?+ \"events\"?+", + "grammar_clean": "root ::= \"import\"?+ \"warns\"?+ (\"app\" | \"yield\")?+ \"DeprecationWarning\"?+ (\"response\" | \"status_code\" | \"text\")?+ \"from\"? \"json\"?+ \"docs_src\"?+ \"snapshot\"?+ \"events\"?+", + "noise_ratio": 0.24, + "symbols_before": 17, + "symbols_after": 13, + "algorithm": "CRX", + "mdl_score": 0, + "imports": [ + "import pytest", + "from fastapi import FastAPI", + "from fastapi.testclient import TestClient", + "from inline_snapshot import snapshot", + "from docs_src.events.tutorial001_py310 import app", + "from tests.utils import workdir_lock", + "from docs_src.events.tutorial002_py310 import app", + "from docs_src.events.tutorial003_py310 import (" + ], + "arg_patterns": { + "open": { + "occurrences": 4, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 4, + "args": 1, + "types": [ + "lit" + ] + } + ] + }, + "snapshot": { + "occurrences": 9, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 9, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "TestClient": { + "occurrences": 18, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 18, + "args": 1, + "types": [ + "var" + ] + } + ] + } + } + }, + { + "label": "tests/test_tutorial/test_extra_data_types", + "method_count": 3, + "grammar": "root ::= (\"app\" | \"copy\" | \"data\" | \"expected_response\" | \"import_module\" | \"importlib\" | \"item_id\" | \"json\" | \"mod\" | \"param\" | \"request\" | \"response\" | \"status_code\" | \"text\" | \"update\")?+ \"snapshot\"?+", + "grammar_clean": "root ::= (\"app\" | \"copy\" | \"data\" | \"expected_response\" | \"import_module\" | \"importlib\" | \"item_id\" | \"json\" | \"mod\" | \"param\" | \"request\" | \"response\" | \"status_code\" | \"text\" | \"update\")?+ \"snapshot\"?+", + "noise_ratio": 0.24, + "symbols_before": 21, + "symbols_after": 16, + "algorithm": "CRX", + "mdl_score": 389960, + "imports": [ + "import importlib", + "import pytest", + "from fastapi.testclient import TestClient", + "from inline_snapshot import snapshot", + "from ...utils import needs_py310" + ], + "arg_patterns": { + "TestClient": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "snapshot": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "other" + ] + } + ] + } + } + }, + { + "label": "tests/test_tutorial/test_extra_models", + "method_count": 13, + "grammar": "root ::= (\"app\" | \"import_module\" | \"importlib\" | \"mod\" | \"param\" | \"request\" | \"response\" | \"status_code\" | \"text\")?+ \"json\"?+ \"snapshot\"?+", + "grammar_clean": "root ::= (\"app\" | \"import_module\" | \"importlib\" | \"mod\" | \"param\" | \"request\" | \"response\" | \"status_code\" | \"text\")?+ \"json\"?+ \"snapshot\"?+", + "noise_ratio": 0.27, + "symbols_before": 15, + "symbols_after": 11, + "algorithm": "CRX", + "mdl_score": 4940, + "imports": [ + "import importlib", + "import pytest", + "from dirty_equals import IsList", + "from fastapi.testclient import TestClient", + "from inline_snapshot import snapshot", + "from ...utils import needs_py310" + ], + "arg_patterns": { + "TestClient": { + "occurrences": 12, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 12, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "snapshot": { + "occurrences": 12, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 12, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "IsList": { + "occurrences": 3, + "arg_count": { + "min": 4, + "max": 4, + "common": 4 + }, + "patterns": [ + { + "count": 3, + "args": 4, + "types": [ + "lit", + "lit", + "lit", + "kwarg" + ] + } + ] + } + } + }, + { + "label": "tests/test_tutorial/test_first_steps", + "method_count": 3, + "grammar": "root ::= (\"app\" | \"expected_status\" | \"import_module\" | \"importlib\" | \"mod\" | \"param\" | \"path\" | \"request\" | \"response\" | \"status_code\")?+ \"json\"?+ (\"expected_response\" | \"snapshot\")?+", + "grammar_clean": "root ::= (\"app\" | \"expected_status\" | \"import_module\" | \"importlib\" | \"mod\" | \"param\" | \"path\" | \"request\" | \"response\" | \"status_code\")?+ \"json\"?+ (\"expected_response\" | \"snapshot\")?+", + "noise_ratio": 0.24, + "symbols_before": 17, + "symbols_after": 13, + "algorithm": "CRX", + "mdl_score": 14896, + "imports": [ + "import importlib", + "import pytest", + "from fastapi.testclient import TestClient", + "from inline_snapshot import snapshot" + ], + "arg_patterns": { + "TestClient": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "snapshot": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "other" + ] + } + ] + } + } + }, + { + "label": "tests/test_tutorial/test_generate_clients", + "method_count": 13, + "grammar": "root ::= (\"json\" | \"post\" | \"response\" | \"status_code\" | \"text\")?+ \"snapshot\"?+", + "grammar_clean": "root ::= (\"json\" | \"post\" | \"response\" | \"status_code\" | \"text\")?+ \"snapshot\"?+", + "noise_ratio": 0.25, + "symbols_before": 8, + "symbols_after": 6, + "algorithm": "CRX", + "mdl_score": 7826, + "imports": [ + "import importlib", + "import pytest", + "from fastapi.testclient import TestClient", + "from inline_snapshot import snapshot", + "from docs_src.generate_clients.tutorial002_py310 import app", + "from docs_src.generate_clients.tutorial003_py310 import app", + "import json", + "import pathlib", + "from unittest.mock import patch", + "from docs_src.generate_clients import tutorial003_py310" + ], + "arg_patterns": { + "snapshot": { + "occurrences": 12, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 12, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "patch": { + "occurrences": 3, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 3, + "args": 2, + "types": [ + "lit", + "kwarg" + ] + } + ] + }, + "TestClient": { + "occurrences": 9, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 6, + "args": 1, + "types": [ + "var" + ] + }, + { + "count": 3, + "args": 1, + "types": [ + "other" + ] + } + ] + } + } + }, + { + "label": "tests/test_tutorial/test_graphql", + "method_count": 3, + "grammar": "root ::= (\"json\" | \"post\" | \"response\" | \"status_code\")?+ \"snapshot\"?+ \"app\"?", + "grammar_clean": "root ::= (\"json\" | \"post\" | \"response\" | \"status_code\")?+ \"snapshot\"?+ \"app\"?", + "noise_ratio": 0.4, + "symbols_before": 10, + "symbols_after": 6, + "algorithm": "CRX", + "mdl_score": 1176, + "imports": [ + "import warnings", + "import pytest", + "from inline_snapshot import snapshot", + "from starlette.testclient import TestClient", + "from docs_src.graphql_.tutorial001_py310 import app # noqa: E402" + ], + "arg_patterns": { + "snapshot": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "TestClient": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "var" + ] + } + ] + } + } + }, + { + "label": "tests/test_tutorial/test_handling_errors", + "method_count": 20, + "grammar": "root ::= (\"response\" | \"status_code\" | \"text\")?+ \"json\"?+ \"snapshot\"?+", + "grammar_clean": "root ::= (\"response\" | \"status_code\" | \"text\")?+ \"json\"?+ \"snapshot\"?+", + "noise_ratio": 0.29, + "symbols_before": 7, + "symbols_after": 5, + "algorithm": "CRX", + "mdl_score": 470, + "imports": [ + "from fastapi.testclient import TestClient", + "from inline_snapshot import snapshot", + "from docs_src.handling_errors.tutorial001_py310 import app", + "from docs_src.handling_errors.tutorial002_py310 import app", + "from docs_src.handling_errors.tutorial003_py310 import app", + "from docs_src.handling_errors.tutorial004_py310 import app", + "from docs_src.handling_errors.tutorial005_py310 import app", + "from docs_src.handling_errors.tutorial006_py310 import app" + ], + "arg_patterns": { + "snapshot": { + "occurrences": 18, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 18, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "TestClient": { + "occurrences": 18, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 18, + "args": 1, + "types": [ + "var" + ] + } + ] + } + } + }, + { + "label": "tests/test_tutorial/test_header_param_models", + "method_count": 19, + "grammar": "root ::= (\"headers\" | \"response\" | \"status_code\" | \"text\")?+ \"json\"?+ \"snapshot\"?+", + "grammar_clean": "root ::= (\"headers\" | \"response\" | \"status_code\" | \"text\")?+ \"json\"?+ \"snapshot\"?+", + "noise_ratio": 0.25, + "symbols_before": 8, + "symbols_after": 6, + "algorithm": "CRX", + "mdl_score": 930, + "imports": [ + "import importlib", + "import pytest", + "from dirty_equals import IsOneOf", + "from fastapi.testclient import TestClient", + "from inline_snapshot import snapshot", + "from tests.utils import needs_py310" + ], + "arg_patterns": { + "TestClient": { + "occurrences": 9, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 9, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "snapshot": { + "occurrences": 30, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 30, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "IsOneOf": { + "occurrences": 9, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 9, + "args": 2, + "types": [ + "lit", + "lit" + ] + } + ] + } + } + }, + { + "label": "tests/test_tutorial/test_header_params", + "method_count": 9, + "grammar": "root ::= (\"app\" | \"expected_status\" | \"headers\" | \"import_module\" | \"importlib\" | \"mod\" | \"param\" | \"path\" | \"request\" | \"response\" | \"status_code\")?+ \"json\"?+ (\"expected_response\" | \"snapshot\")?+", + "grammar_clean": "root ::= (\"app\" | \"expected_status\" | \"headers\" | \"import_module\" | \"importlib\" | \"mod\" | \"param\" | \"path\" | \"request\" | \"response\" | \"status_code\")?+ \"json\"?+ (\"expected_response\" | \"snapshot\")?+", + "noise_ratio": 0.22, + "symbols_before": 18, + "symbols_after": 14, + "algorithm": "CRX", + "mdl_score": 17970, + "imports": [ + "import importlib", + "import pytest", + "from fastapi.testclient import TestClient", + "from inline_snapshot import snapshot", + "from ...utils import needs_py310" + ], + "arg_patterns": { + "TestClient": { + "occurrences": 9, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 9, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "snapshot": { + "occurrences": 9, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 9, + "args": 1, + "types": [ + "other" + ] + } + ] + } + } + }, + { + "label": "tests/test_tutorial/test_json_base64_bytes", + "method_count": 5, + "grammar": "root ::= (\"app\" | \"import_module\" | \"importlib\" | \"json\" | \"mod\" | \"param\" | \"post\" | \"request\" | \"response\" | \"status_code\" | \"text\")?+ \"snapshot\"?+", + "grammar_clean": "root ::= (\"app\" | \"import_module\" | \"importlib\" | \"json\" | \"mod\" | \"param\" | \"post\" | \"request\" | \"response\" | \"status_code\" | \"text\")?+ \"snapshot\"?+", + "noise_ratio": 0.25, + "symbols_before": 16, + "symbols_after": 12, + "algorithm": "CRX", + "mdl_score": 113580, + "imports": [ + "import importlib", + "import pytest", + "from fastapi.testclient import TestClient", + "from inline_snapshot import snapshot", + "from tests.utils import needs_py310" + ], + "arg_patterns": { + "snapshot": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "TestClient": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "other" + ] + } + ] + } + } + }, + { + "label": "tests/test_tutorial/test_metadata", + "method_count": 14, + "grammar": "root ::= (\"response\" | \"status_code\" | \"text\")?+ \"json\"?+ \"snapshot\"?+", + "grammar_clean": "root ::= (\"response\" | \"status_code\" | \"text\")?+ \"json\"?+ \"snapshot\"?+", + "noise_ratio": 0.29, + "symbols_before": 7, + "symbols_after": 5, + "algorithm": "CRX", + "mdl_score": 475, + "imports": [ + "from fastapi.testclient import TestClient", + "from inline_snapshot import snapshot", + "from docs_src.metadata.tutorial001_py310 import app", + "from docs_src.metadata.tutorial001_1_py310 import app", + "from docs_src.metadata.tutorial002_py310 import app", + "from docs_src.metadata.tutorial003_py310 import app", + "from docs_src.metadata.tutorial004_py310 import app" + ], + "arg_patterns": { + "snapshot": { + "occurrences": 15, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 15, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "TestClient": { + "occurrences": 15, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 15, + "args": 1, + "types": [ + "var" + ] + } + ] + } + } + }, + { + "label": "tests/test_tutorial/test_openapi_callbacks", + "method_count": 5, + "grammar": "root ::= (\"app\" | \"headers\" | \"import_module\" | \"importlib\" | \"json\" | \"mod\" | \"param\" | \"post\" | \"request\" | \"response\" | \"status_code\" | \"text\")?+ (\"invoice_notification\" | \"snapshot\")?+", + "grammar_clean": "root ::= (\"app\" | \"headers\" | \"import_module\" | \"importlib\" | \"json\" | \"mod\" | \"param\" | \"post\" | \"request\" | \"response\" | \"status_code\" | \"text\")?+ (\"invoice_notification\" | \"snapshot\")?+", + "noise_ratio": 0.26, + "symbols_before": 19, + "symbols_after": 14, + "algorithm": "CRX", + "mdl_score": 405654, + "imports": [ + "import importlib", + "from types import ModuleType", + "import pytest", + "from fastapi.testclient import TestClient", + "from inline_snapshot import snapshot", + "from tests.utils import needs_py310" + ], + "arg_patterns": { + "TestClient": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "snapshot": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "other" + ] + } + ] + } + } + }, + { + "label": "tests/test_tutorial/test_openapi_webhooks", + "method_count": 3, + "grammar": "root ::= (\"response\" | \"status_code\" | \"text\")?+ (\"APIRoute\" | \"app\" | \"isinstance\" | \"route\" | \"routes\" | \"webhooks\")?+ \"json\"?+ \"endpoint\"?+ \"snapshot\"?+", + "grammar_clean": "root ::= (\"response\" | \"status_code\" | \"text\")?+ (\"APIRoute\" | \"app\" | \"isinstance\" | \"route\" | \"routes\" | \"webhooks\")?+ \"json\"?+ \"endpoint\"?+ \"snapshot\"?+", + "noise_ratio": 0.14, + "symbols_before": 14, + "symbols_after": 12, + "algorithm": "CRX", + "mdl_score": 0, + "imports": [ + "from fastapi.routing import APIRoute", + "from fastapi.testclient import TestClient", + "from inline_snapshot import snapshot", + "from docs_src.openapi_webhooks.tutorial001_py310 import app" + ], + "arg_patterns": { + "snapshot": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "isinstance": { + "occurrences": 4, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 4, + "args": 2, + "types": [ + "var", + "var" + ] + } + ] + }, + "TestClient": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "var" + ] + } + ] + } + } + }, + { + "label": "tests/test_tutorial/test_path_operation_advanced_configurations", + "method_count": 18, + "grammar": "root ::= (\"response\" | \"status_code\" | \"text\")?+ \"json\"?+ \"post\"?+ \"snapshot\"?+", + "grammar_clean": "root ::= (\"response\" | \"status_code\" | \"text\")?+ \"json\"?+ \"post\"?+ \"snapshot\"?+", + "noise_ratio": 0.25, + "symbols_before": 8, + "symbols_after": 6, + "algorithm": "CRX", + "mdl_score": 75, + "imports": [ + "from fastapi.testclient import TestClient", + "from inline_snapshot import snapshot", + "from docs_src.path_operation_advanced_configuration.tutorial001_py310 import app", + "from docs_src.path_operation_advanced_configuration.tutorial002_py310 import app", + "from docs_src.path_operation_advanced_configuration.tutorial003_py310 import app", + "import importlib", + "import pytest", + "from ...utils import needs_py310", + "from docs_src.path_operation_advanced_configuration.tutorial005_py310 import app", + "from docs_src.path_operation_advanced_configuration.tutorial006_py310 import app" + ], + "arg_patterns": { + "TestClient": { + "occurrences": 21, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 15, + "args": 1, + "types": [ + "var" + ] + }, + { + "count": 6, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "snapshot": { + "occurrences": 21, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 21, + "args": 1, + "types": [ + "other" + ] + } + ] + } + } + }, + { + "label": "tests/test_tutorial/test_path_operation_configurations", + "method_count": 20, + "grammar": "root ::= (\"response\" | \"status_code\" | \"text\")?+ \"json\"?+ \"snapshot\"?+", + "grammar_clean": "root ::= (\"response\" | \"status_code\" | \"text\")?+ \"json\"?+ \"snapshot\"?+", + "noise_ratio": 0.29, + "symbols_before": 7, + "symbols_after": 5, + "algorithm": "CRX", + "mdl_score": 460, + "imports": [ + "import importlib", + "import pytest", + "from dirty_equals import IsList", + "from fastapi.testclient import TestClient", + "from inline_snapshot import snapshot", + "from ...utils import needs_py310", + "from docs_src.path_operation_configuration.tutorial002b_py310 import app", + "from textwrap import dedent", + "from inline_snapshot import Is, snapshot", + "from docs_src.path_operation_configuration.tutorial006_py310 import app" + ], + "arg_patterns": { + "TestClient": { + "occurrences": 18, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 12, + "args": 1, + "types": [ + "other" + ] + }, + { + "count": 6, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "snapshot": { + "occurrences": 18, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 18, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "IsList": { + "occurrences": 9, + "arg_count": { + "min": 3, + "max": 3, + "common": 3 + }, + "patterns": [ + { + "count": 9, + "args": 3, + "types": [ + "lit", + "lit", + "kwarg" + ] + } + ] + }, + "dedent": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "lit" + ] + } + ] + }, + "Is": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "subscript" + ] + } + ] + } + } + }, + { + "label": "tests/test_tutorial/test_path_params", + "method_count": 18, + "grammar": "root ::= (\"response\" | \"status_code\" | \"text\")?+ \"json\"?+ \"snapshot\"?+", + "grammar_clean": "root ::= (\"response\" | \"status_code\" | \"text\")?+ \"json\"?+ \"snapshot\"?+", + "noise_ratio": 0.29, + "symbols_before": 7, + "symbols_after": 5, + "algorithm": "CRX", + "mdl_score": 470, + "imports": [ + "import pytest", + "from fastapi.testclient import TestClient", + "from inline_snapshot import snapshot", + "from docs_src.path_params.tutorial001_py310 import app", + "from docs_src.path_params.tutorial002_py310 import app", + "from docs_src.path_params.tutorial003_py310 import app", + "import asyncio", + "from docs_src.path_params.tutorial003b_py310 import app, read_users2", + "from docs_src.path_params.tutorial004_py310 import app", + "from docs_src.path_params.tutorial005_py310 import app" + ], + "arg_patterns": { + "snapshot": { + "occurrences": 18, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 18, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "TestClient": { + "occurrences": 18, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 18, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "read_users2": { + "occurrences": 3, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 3, + "args": 0, + "types": [] + } + ] + }, + "print": { + "occurrences": 8, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 8, + "args": 1, + "types": [ + "other" + ] + } + ] + } + } + }, + { + "label": "tests/test_tutorial/test_path_params_numeric_validations", + "method_count": 29, + "grammar": "root ::= (\"response\" | \"status_code\" | \"text\")?+ \"json\"?+", + "grammar_clean": "root ::= (\"response\" | \"status_code\" | \"text\")?+ \"json\"?+", + "noise_ratio": 0.33, + "symbols_before": 6, + "symbols_after": 4, + "algorithm": "CRX", + "mdl_score": 1620, + "imports": [ + "import importlib", + "import pytest", + "from fastapi.testclient import TestClient", + "from inline_snapshot import snapshot", + "from ...utils import needs_py310" + ], + "arg_patterns": { + "TestClient": { + "occurrences": 15, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 15, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "snapshot": { + "occurrences": 15, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 15, + "args": 1, + "types": [ + "other" + ] + } + ] + } + } + }, + { + "label": "tests/test_tutorial/test_python_types", + "method_count": 15, + "grammar": "root ::= (\"arg\" | \"args\" | \"for\")?+ \"mock_print\"? \"call_args_list\"? \"call_args\"?", + "grammar_clean": "root ::= (\"arg\" | \"args\" | \"for\")?+ \"mock_print\"? \"call_args_list\"? \"call_args\"?", + "noise_ratio": 0.25, + "symbols_before": 8, + "symbols_after": 6, + "algorithm": "CRX", + "mdl_score": 684, + "imports": [ + "import runpy", + "from unittest.mock import patch", + "import pytest", + "from docs_src.python_types.tutorial003_py310 import get_name_with_age", + "from docs_src.python_types.tutorial004_py310 import get_name_with_age", + "from docs_src.python_types.tutorial005_py310 import get_items", + "from docs_src.python_types.tutorial006_py310 import process_items", + "from docs_src.python_types.tutorial007_py310 import process_items", + "from docs_src.python_types.tutorial008_py310 import process_items", + "import importlib", + "from types import ModuleType", + "from ...utils import needs_py310", + "from docs_src.python_types.tutorial010_py310 import Person, get_person_name", + "from docs_src.python_types.tutorial013_py310 import say_hello" + ], + "arg_patterns": { + "patch": { + "occurrences": 18, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 18, + "args": 1, + "types": [ + "lit" + ] + } + ] + }, + "process_items": { + "occurrences": 9, + "arg_count": { + "min": 1, + "max": 2, + "common": 1 + }, + "patterns": [ + { + "count": 6, + "args": 1, + "types": [ + "other" + ] + }, + { + "count": 3, + "args": 2, + "types": [ + "var", + "var" + ] + } + ] + }, + "say_hello": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "lit" + ] + } + ] + }, + "str": { + "occurrences": 5, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 5, + "args": 1, + "types": [ + "subscript" + ] + } + ] + }, + "get_items": { + "occurrences": 3, + "arg_count": { + "min": 9, + "max": 9, + "common": 9 + }, + "patterns": [ + { + "count": 3, + "args": 9, + "types": [ + "lit", + "lit", + "other", + "lit", + "other", + "lit", + "other", + "lit", + "other" + ] + } + ] + }, + "get_person_name": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "call" + ] + } + ] + }, + "Person": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "lit" + ] + } + ] + }, + "get_name_with_age": { + "occurrences": 9, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 9, + "args": 2, + "types": [ + "lit", + "lit" + ] + } + ] + } + } + }, + { + "label": "tests/test_tutorial/test_query_param_models", + "method_count": 12, + "grammar": "root ::= (\"params\" | \"response\" | \"status_code\")?+ \"json\"?+ \"snapshot\"?+", + "grammar_clean": "root ::= (\"params\" | \"response\" | \"status_code\")?+ \"json\"?+ \"snapshot\"?+", + "noise_ratio": 0.29, + "symbols_before": 7, + "symbols_after": 5, + "algorithm": "CRX", + "mdl_score": 540, + "imports": [ + "import importlib", + "import pytest", + "from fastapi.testclient import TestClient", + "from inline_snapshot import snapshot", + "from tests.utils import needs_py310" + ], + "arg_patterns": { + "snapshot": { + "occurrences": 15, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 15, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "TestClient": { + "occurrences": 6, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 6, + "args": 1, + "types": [ + "other" + ] + } + ] + } + } + }, + { + "label": "tests/test_tutorial/test_query_params", + "method_count": 19, + "grammar": "root ::= (\"response\" | \"status_code\")?+ \"json\"?+ \"mod\"? \"snapshot\"?+ \"app\"? \"importlib\"? \"import_module\"?+ \"request\"? \"param\"?", + "grammar_clean": "root ::= (\"response\" | \"status_code\")?+ \"json\"?+ \"mod\"? \"snapshot\"?+ \"app\"? \"importlib\"? \"import_module\"?+ \"request\"? \"param\"?", + "noise_ratio": 0.29, + "symbols_before": 14, + "symbols_after": 10, + "algorithm": "CRX", + "mdl_score": 0, + "imports": [ + "import importlib", + "import pytest", + "from fastapi.testclient import TestClient", + "from inline_snapshot import snapshot", + "from ...utils import needs_py310", + "from docs_src.query_params.tutorial005_py310 import app" + ], + "arg_patterns": { + "snapshot": { + "occurrences": 18, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 18, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "TestClient": { + "occurrences": 18, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 15, + "args": 1, + "types": [ + "other" + ] + }, + { + "count": 3, + "args": 1, + "types": [ + "var" + ] + } + ] + } + } + }, + { + "label": "tests/test_tutorial/test_query_params_str_validations", + "method_count": 81, + "grammar": "root ::= (\"params\" | \"response\" | \"status_code\" | \"text\")?+ \"json\"?+", + "grammar_clean": "root ::= (\"params\" | \"response\" | \"status_code\" | \"text\")?+ \"json\"?+", + "noise_ratio": 0.29, + "symbols_before": 7, + "symbols_after": 5, + "algorithm": "CRX", + "mdl_score": 4224, + "imports": [ + "import importlib", + "import pytest", + "from fastapi.testclient import TestClient", + "from inline_snapshot import snapshot", + "from ...utils import needs_py310", + "from fastapi._compat import PYDANTIC_VERSION_MINOR_TUPLE", + "from inline_snapshot import Is, snapshot", + "from dirty_equals import IsStr" + ], + "arg_patterns": { + "snapshot": { + "occurrences": 51, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 51, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "TestClient": { + "occurrences": 48, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 48, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "Is": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "IsStr": { + "occurrences": 6, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 6, + "args": 0, + "types": [] + } + ] + } + } + }, + { + "label": "tests/test_tutorial/test_request_files", + "method_count": 31, + "grammar": "root ::= (\"response\" | \"status_code\" | \"text\")?+ \"path\"?+ \"json\"?+ \"write_bytes\"?+ \"open\"?+ \"post\"?+ \"files\"? \"file\"?", + "grammar_clean": "root ::= (\"response\" | \"status_code\" | \"text\")?+ \"path\"?+ \"json\"?+ \"write_bytes\"?+ \"open\"?+ \"post\"?+ \"files\"? \"file\"?", + "noise_ratio": 0.23, + "symbols_before": 13, + "symbols_after": 10, + "algorithm": "CRX", + "mdl_score": 0, + "imports": [ + "import importlib", + "import pytest", + "from fastapi.testclient import TestClient", + "from inline_snapshot import snapshot", + "from pathlib import Path", + "from ...utils import needs_py310", + "from fastapi import FastAPI" + ], + "arg_patterns": { + "snapshot": { + "occurrences": 15, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 15, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "TestClient": { + "occurrences": 33, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 24, + "args": 1, + "types": [ + "var" + ] + }, + { + "count": 9, + "args": 1, + "types": [ + "other" + ] + } + ] + } + } + }, + { + "label": "tests/test_tutorial/test_request_form_models", + "method_count": 15, + "grammar": "root ::= (\"data\" | \"post\" | \"response\" | \"status_code\" | \"text\")?+ \"json\"?+", + "grammar_clean": "root ::= (\"data\" | \"post\" | \"response\" | \"status_code\" | \"text\")?+ \"json\"?+", + "noise_ratio": 0.14, + "symbols_before": 7, + "symbols_after": 6, + "algorithm": "CRX", + "mdl_score": 3450, + "imports": [ + "import importlib", + "import pytest", + "from fastapi.testclient import TestClient", + "from inline_snapshot import snapshot" + ], + "arg_patterns": { + "snapshot": { + "occurrences": 6, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 6, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "TestClient": { + "occurrences": 6, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 6, + "args": 1, + "types": [ + "other" + ] + } + ] + } + } + }, + { + "label": "tests/test_tutorial/test_request_forms", + "method_count": 7, + "grammar": "root ::= (\"data\" | \"post\" | \"response\" | \"status_code\" | \"text\")?+ \"json\"?+", + "grammar_clean": "root ::= (\"data\" | \"post\" | \"response\" | \"status_code\" | \"text\")?+ \"json\"?+", + "noise_ratio": 0.14, + "symbols_before": 7, + "symbols_after": 6, + "algorithm": "CRX", + "mdl_score": 3450, + "imports": [ + "import importlib", + "import pytest", + "from fastapi.testclient import TestClient", + "from inline_snapshot import snapshot" + ], + "arg_patterns": { + "TestClient": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "snapshot": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "other" + ] + } + ] + } + } + }, + { + "label": "tests/test_tutorial/test_request_forms_and_files", + "method_count": 8, + "grammar": "root ::= (\"response\" | \"status_code\" | \"text\")?+ \"json\"?+ \"post\"?+ \"data\"? \"app\"?", + "grammar_clean": "root ::= (\"response\" | \"status_code\" | \"text\")?+ \"json\"?+ \"post\"?+ \"data\"? \"app\"?", + "noise_ratio": 0.22, + "symbols_before": 9, + "symbols_after": 7, + "algorithm": "CRX", + "mdl_score": 30, + "imports": [ + "import importlib", + "import pytest", + "from fastapi import FastAPI", + "from fastapi.testclient import TestClient", + "from inline_snapshot import snapshot" + ], + "arg_patterns": { + "TestClient": { + "occurrences": 9, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 9, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "snapshot": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "other" + ] + } + ] + } + } + }, + { + "label": "tests/test_tutorial/test_response_directly", + "method_count": 6, + "grammar": "root ::= (\"app\" | \"expected_content\" | \"headers\" | \"import_module\" | \"importlib\" | \"json\" | \"mod\" | \"param\" | \"request\" | \"response\" | \"status_code\" | \"text\")?+ \"snapshot\"?+", + "grammar_clean": "root ::= (\"app\" | \"expected_content\" | \"headers\" | \"import_module\" | \"importlib\" | \"json\" | \"mod\" | \"param\" | \"request\" | \"response\" | \"status_code\" | \"text\")?+ \"snapshot\"?+", + "noise_ratio": 0.28, + "symbols_before": 18, + "symbols_after": 13, + "algorithm": "CRX", + "mdl_score": 190451, + "imports": [ + "import importlib", + "import pytest", + "from fastapi.testclient import TestClient", + "from inline_snapshot import snapshot", + "from ...utils import needs_py310" + ], + "arg_patterns": { + "TestClient": { + "occurrences": 6, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 6, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "snapshot": { + "occurrences": 6, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 6, + "args": 1, + "types": [ + "other" + ] + } + ] + } + } + }, + { + "label": "tests/test_tutorial/test_response_model", + "method_count": 35, + "grammar": "root ::= (\"response\" | \"status_code\" | \"text\")?+ \"json\"?+ \"snapshot\"?+", + "grammar_clean": "root ::= (\"response\" | \"status_code\" | \"text\")?+ \"json\"?+ \"snapshot\"?+", + "noise_ratio": 0.29, + "symbols_before": 7, + "symbols_after": 5, + "algorithm": "CRX", + "mdl_score": 470, + "imports": [ + "import importlib", + "import pytest", + "from fastapi.testclient import TestClient", + "from inline_snapshot import snapshot", + "from ...utils import needs_py310", + "from docs_src.response_model.tutorial003_02_py310 import app", + "from docs_src.response_model.tutorial003_03_py310 import app", + "from fastapi.exceptions import FastAPIError" + ], + "arg_patterns": { + "TestClient": { + "occurrences": 30, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 24, + "args": 1, + "types": [ + "other" + ] + }, + { + "count": 6, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "snapshot": { + "occurrences": 30, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 30, + "args": 1, + "types": [ + "other" + ] + } + ] + } + } + }, + { + "label": "tests/test_tutorial/test_response_status_code", + "method_count": 3, + "grammar": "root ::= (\"app\" | \"import_module\" | \"importlib\" | \"mod\" | \"param\" | \"params\" | \"post\" | \"request\" | \"response\" | \"status_code\" | \"text\")?+ \"json\"?+ \"snapshot\"?+", + "grammar_clean": "root ::= (\"app\" | \"import_module\" | \"importlib\" | \"mod\" | \"param\" | \"params\" | \"post\" | \"request\" | \"response\" | \"status_code\" | \"text\")?+ \"json\"?+ \"snapshot\"?+", + "noise_ratio": 0.24, + "symbols_before": 17, + "symbols_after": 13, + "algorithm": "CRX", + "mdl_score": 7995, + "imports": [ + "import importlib", + "import pytest", + "from fastapi.testclient import TestClient", + "from inline_snapshot import snapshot" + ], + "arg_patterns": { + "snapshot": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "TestClient": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "other" + ] + } + ] + } + } + }, + { + "label": "tests/test_tutorial/test_schema_extra_example", + "method_count": 15, + "grammar": "root ::= (\"app\" | \"import_module\" | \"importlib\" | \"json\" | \"mod\" | \"param\" | \"request\" | \"response\" | \"status_code\" | \"text\")?+ \"snapshot\"?+", + "grammar_clean": "root ::= (\"app\" | \"import_module\" | \"importlib\" | \"json\" | \"mod\" | \"param\" | \"request\" | \"response\" | \"status_code\" | \"text\")?+ \"snapshot\"?+", + "noise_ratio": 0.31, + "symbols_before": 16, + "symbols_after": 11, + "algorithm": "CRX", + "mdl_score": 109965, + "imports": [ + "import importlib", + "import pytest", + "from fastapi.testclient import TestClient", + "from inline_snapshot import snapshot", + "from ...utils import needs_py310" + ], + "arg_patterns": { + "TestClient": { + "occurrences": 15, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 15, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "snapshot": { + "occurrences": 15, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 15, + "args": 1, + "types": [ + "other" + ] + } + ] + } + } + }, + { + "label": "tests/test_tutorial/test_security", + "method_count": 73, + "grammar": "root ::= (\"app\" | \"headers\" | \"json\" | \"mod\" | \"response\" | \"status_code\" | \"text\")+", + "grammar_clean": "root ::= (\"app\" | \"headers\" | \"json\" | \"mod\" | \"response\" | \"status_code\" | \"text\")+", + "noise_ratio": 0.3, + "symbols_before": 10, + "symbols_after": 7, + "algorithm": "CRX", + "mdl_score": 184440, + "imports": [ + "import importlib", + "import pytest", + "from fastapi.testclient import TestClient", + "from inline_snapshot import snapshot", + "from ...utils import needs_py310", + "from types import ModuleType", + "from unittest.mock import patch", + "from functools import lru_cache", + "from typing import Any, cast", + "from base64 import b64encode" + ], + "arg_patterns": { + "snapshot": { + "occurrences": 21, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 21, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "TestClient": { + "occurrences": 102, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 102, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "get_access_token": { + "occurrences": 24, + "arg_count": { + "min": 1, + "max": 4, + "common": 1 + }, + "patterns": [ + { + "count": 12, + "args": 1, + "types": [ + "kwarg" + ] + }, + { + "count": 6, + "args": 2, + "types": [ + "kwarg", + "kwarg" + ] + }, + { + "count": 3, + "args": 4, + "types": [ + "kwarg", + "kwarg", + "kwarg", + "kwarg" + ] + }, + { + "count": 3, + "args": 3, + "types": [ + "kwarg", + "kwarg", + "kwarg" + ] + } + ] + }, + "lru_cache": { + "occurrences": 3, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 3, + "args": 0, + "types": [] + } + ] + }, + "cast": { + "occurrences": 3, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 3, + "args": 2, + "types": [ + "var", + "var" + ] + } + ] + }, + "hasattr": { + "occurrences": 4, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 4, + "args": 2, + "types": [ + "var", + "lit" + ] + } + ] + }, + "b64encode": { + "occurrences": 6, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 6, + "args": 1, + "types": [ + "lit" + ] + } + ] + } + } + }, + { + "label": "tests/test_tutorial/test_separate_openapi_schemas", + "method_count": 8, + "grammar": "root ::= (\"app\" | \"import_module\" | \"importlib\" | \"json\" | \"mod\" | \"param\" | \"post\" | \"request\" | \"response\" | \"status_code\" | \"text\")?+ \"snapshot\"?+", + "grammar_clean": "root ::= (\"app\" | \"import_module\" | \"importlib\" | \"json\" | \"mod\" | \"param\" | \"post\" | \"request\" | \"response\" | \"status_code\" | \"text\")?+ \"snapshot\"?+", + "noise_ratio": 0.25, + "symbols_before": 16, + "symbols_after": 12, + "algorithm": "CRX", + "mdl_score": 113580, + "imports": [ + "import importlib", + "import pytest", + "from fastapi.testclient import TestClient", + "from inline_snapshot import snapshot", + "from ...utils import needs_py310" + ], + "arg_patterns": { + "snapshot": { + "occurrences": 6, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 6, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "TestClient": { + "occurrences": 6, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 6, + "args": 1, + "types": [ + "other" + ] + } + ] + } + } + }, + { + "label": "tests/test_tutorial/test_server_sent_events", + "method_count": 17, + "grammar": "root ::= (\"app\" | \"data_lines\" | \"for\" | \"import_module\" | \"importlib\" | \"len\" | \"line\" | \"mod\" | \"param\" | \"request\" | \"response\" | \"split\" | \"startswith\" | \"status_code\" | \"strip\" | \"text\")?+ \"json\"?+ \"snapshot\"?+", + "grammar_clean": "root ::= (\"app\" | \"data_lines\" | \"for\" | \"import_module\" | \"importlib\" | \"len\" | \"line\" | \"mod\" | \"param\" | \"request\" | \"response\" | \"split\" | \"startswith\" | \"status_code\" | \"strip\" | \"text\")?+ \"json\"?+ \"snapshot\"?+", + "noise_ratio": 0.25, + "symbols_before": 24, + "symbols_after": 18, + "algorithm": "CRX", + "mdl_score": 23848, + "imports": [ + "import importlib", + "import pytest", + "from fastapi.testclient import TestClient", + "from inline_snapshot import snapshot" + ], + "arg_patterns": { + "snapshot": { + "occurrences": 15, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 15, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "TestClient": { + "occurrences": 15, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 15, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "len": { + "occurrences": 32, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 32, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "all": { + "occurrences": 8, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 8, + "args": 2, + "types": [ + "expr", + "other" + ] + } + ] + } + } + }, + { + "label": "tests/test_tutorial/test_settings", + "method_count": 16, + "grammar": "root ::= \"response\"? \"importlib\"? \"setenv\"?+ \"json\"?+ \"import_module\"?+", + "grammar_clean": "root ::= \"response\"? \"importlib\"? \"setenv\"?+ \"json\"?+ \"import_module\"?+", + "noise_ratio": 0.38, + "symbols_before": 8, + "symbols_after": 5, + "algorithm": "CRX", + "mdl_score": 5, + "imports": [ + "import importlib", + "import sys", + "import pytest", + "from dirty_equals import IsAnyStr", + "from fastapi.testclient import TestClient", + "from inline_snapshot import snapshot", + "from pydantic import ValidationError", + "from pytest import MonkeyPatch", + "from types import ModuleType" + ], + "arg_patterns": { + "TestClient": { + "occurrences": 9, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 6, + "args": 1, + "types": [ + "other" + ] + }, + { + "count": 3, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "snapshot": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "other" + ] + } + ] + } + } + }, + { + "label": "tests/test_tutorial/test_sql_databases", + "method_count": 8, + "grammar": "root ::= (\"StaticPool\" | \"app\" | \"c\" | \"cast\" | \"catch_warnings\" | \"clear_sqlmodel\" | \"connect_args\" | \"create_engine\" | \"engine\" | \"import_module\" | \"importlib\" | \"mod\" | \"mod_any\" | \"param\" | \"poolclass\" | \"record\" | \"reload\" | \"request\" | \"simplefilter\" | \"sqlite_url\" | \"warnings\" | \"yield\")?+ \"SQLModel\"? (\"IsInt\" | \"delete\" | \"hero_id\" | \"json\" | \"post\" | \"response\" | \"snapshot\" | \"status_code\" | \"text\")?+ \"metadata\"? \"default_registry\"? \"dispose\"?+", + "grammar_clean": "root ::= (\"StaticPool\" | \"app\" | \"c\" | \"cast\" | \"catch_warnings\" | \"clear_sqlmodel\" | \"connect_args\" | \"create_engine\" | \"engine\" | \"import_module\" | \"importlib\" | \"mod\" | \"mod_any\" | \"param\" | \"poolclass\" | \"record\" | \"reload\" | \"request\" | \"simplefilter\" | \"sqlite_url\" | \"warnings\" | \"yield\")?+ \"SQLModel\"? (\"IsInt\" | \"delete\" | \"hero_id\" | \"json\" | \"post\" | \"response\" | \"snapshot\" | \"status_code\" | \"text\")?+ \"metadata\"? \"default_registry\"? \"dispose\"?+", + "noise_ratio": 0.12, + "symbols_before": 40, + "symbols_after": 35, + "algorithm": "CRX", + "mdl_score": 29304, + "imports": [ + "import importlib", + "import warnings", + "from typing import Any, cast", + "import pytest", + "from dirty_equals import IsInt", + "from fastapi.testclient import TestClient", + "from inline_snapshot import snapshot", + "from sqlalchemy import StaticPool", + "from sqlmodel import SQLModel, create_engine", + "from sqlmodel.main import default_registry", + "from tests.utils import needs_py310", + "from inline_snapshot import Is, snapshot" + ], + "arg_patterns": { + "create_engine": { + "occurrences": 6, + "arg_count": { + "min": 3, + "max": 3, + "common": 3 + }, + "patterns": [ + { + "count": 6, + "args": 3, + "types": [ + "other", + "kwarg", + "kwarg" + ] + } + ] + }, + "IsInt": { + "occurrences": 30, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 30, + "args": 0, + "types": [] + } + ] + }, + "snapshot": { + "occurrences": 51, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 51, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "clear_sqlmodel": { + "occurrences": 12, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 12, + "args": 0, + "types": [] + } + ] + }, + "cast": { + "occurrences": 6, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 6, + "args": 2, + "types": [ + "var", + "var" + ] + } + ] + }, + "TestClient": { + "occurrences": 6, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 6, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "Is": { + "occurrences": 6, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 6, + "args": 1, + "types": [ + "var" + ] + } + ] + } + } + }, + { + "label": "tests/test_tutorial/test_static_files", + "method_count": 4, + "grammar": "root ::= (\"Path\" | \"app\" | \"docs_src\" | \"exist_ok\" | \"from\" | \"getcwd\" | \"import\" | \"mkdir\" | \"os\" | \"response\" | \"sample_file\" | \"static_dir\" | \"static_files\" | \"status_code\" | \"text\" | \"tutorial001_py310\" | \"unlink\" | \"write_text\" | \"yield\")?+ \"rmdir\"?+ \"json\"?+ \"snapshot\"?+", + "grammar_clean": "root ::= (\"Path\" | \"app\" | \"docs_src\" | \"exist_ok\" | \"from\" | \"getcwd\" | \"import\" | \"mkdir\" | \"os\" | \"response\" | \"sample_file\" | \"static_dir\" | \"static_files\" | \"status_code\" | \"text\" | \"tutorial001_py310\" | \"unlink\" | \"write_text\" | \"yield\")?+ \"rmdir\"?+ \"json\"?+ \"snapshot\"?+", + "noise_ratio": 0.12, + "symbols_before": 25, + "symbols_after": 22, + "algorithm": "CRX", + "mdl_score": 1210, + "imports": [ + "import os", + "from pathlib import Path", + "import pytest", + "from fastapi.testclient import TestClient", + "from inline_snapshot import snapshot", + "from tests.utils import workdir_lock", + "from docs_src.static_files.tutorial001_py310 import app" + ], + "arg_patterns": { + "snapshot": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "TestClient": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "Path": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "call" + ] + } + ] + } + } + }, + { + "label": "tests/test_tutorial/test_stream_data", + "method_count": 7, + "grammar": "root ::= (\"app\" | \"mod\" | \"path\" | \"response\" | \"status_code\" | \"text\")?+ \"importlib\"? \"json\"?+ \"import_module\"?+ \"snapshot\"?+ \"request\"? \"param\"?", + "grammar_clean": "root ::= (\"app\" | \"mod\" | \"path\" | \"response\" | \"status_code\" | \"text\")?+ \"importlib\"? \"json\"?+ \"import_module\"?+ \"snapshot\"?+ \"request\"? \"param\"?", + "noise_ratio": 0.25, + "symbols_before": 16, + "symbols_after": 12, + "algorithm": "CRX", + "mdl_score": 250, + "imports": [ + "import importlib", + "import pytest", + "from fastapi.testclient import TestClient", + "from inline_snapshot import snapshot" + ], + "arg_patterns": { + "snapshot": { + "occurrences": 6, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 6, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "TestClient": { + "occurrences": 6, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 6, + "args": 1, + "types": [ + "other" + ] + } + ] + } + } + }, + { + "label": "tests/test_tutorial/test_stream_json_lines", + "method_count": 3, + "grammar": "root ::= (\"app\" | \"for\" | \"headers\" | \"import_module\" | \"importlib\" | \"json\" | \"line\" | \"lines\" | \"loads\" | \"mod\" | \"param\" | \"path\" | \"request\" | \"response\" | \"splitlines\" | \"status_code\" | \"strip\" | \"text\")?+ (\"expected_items\" | \"snapshot\")?+", + "grammar_clean": "root ::= (\"app\" | \"for\" | \"headers\" | \"import_module\" | \"importlib\" | \"json\" | \"line\" | \"lines\" | \"loads\" | \"mod\" | \"param\" | \"path\" | \"request\" | \"response\" | \"splitlines\" | \"status_code\" | \"strip\" | \"text\")?+ (\"expected_items\" | \"snapshot\")?+", + "noise_ratio": 0.2, + "symbols_before": 25, + "symbols_after": 20, + "algorithm": "CRX", + "mdl_score": 1311046, + "imports": [ + "import importlib", + "import json", + "import pytest", + "from fastapi.testclient import TestClient", + "from inline_snapshot import snapshot" + ], + "arg_patterns": { + "TestClient": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "snapshot": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "other" + ] + } + ] + } + } + }, + { + "label": "tests/test_tutorial/test_strict_content_type", + "method_count": 4, + "grammar": "root ::= (\"app\" | \"content\" | \"headers\" | \"import_module\" | \"importlib\" | \"json\" | \"mod\" | \"param\" | \"post\" | \"request\" | \"response\" | \"status_code\" | \"text\")+", + "grammar_clean": "root ::= (\"app\" | \"content\" | \"headers\" | \"import_module\" | \"importlib\" | \"json\" | \"mod\" | \"param\" | \"post\" | \"request\" | \"response\" | \"status_code\" | \"text\")+", + "noise_ratio": 0.19, + "symbols_before": 16, + "symbols_after": 13, + "algorithm": "CRX", + "mdl_score": 2053456, + "imports": [ + "import importlib", + "import pytest", + "from fastapi.testclient import TestClient" + ], + "arg_patterns": { + "TestClient": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "other" + ] + } + ] + } + } + }, + { + "label": "tests/test_tutorial/test_sub_applications", + "method_count": 4, + "grammar": "root ::= (\"response\" | \"status_code\" | \"text\")?+ \"json\"?+ \"snapshot\"?+", + "grammar_clean": "root ::= (\"response\" | \"status_code\" | \"text\")?+ \"json\"?+ \"snapshot\"?+", + "noise_ratio": 0.29, + "symbols_before": 7, + "symbols_after": 5, + "algorithm": "CRX", + "mdl_score": 470, + "imports": [ + "from fastapi.testclient import TestClient", + "from inline_snapshot import snapshot", + "from docs_src.sub_applications.tutorial001_py310 import app" + ], + "arg_patterns": { + "TestClient": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "snapshot": { + "occurrences": 6, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 6, + "args": 1, + "types": [ + "other" + ] + } + ] + } + } + }, + { + "label": "tests/test_tutorial/test_testing", + "method_count": 10, + "imports": [ + "from inline_snapshot import snapshot", + "from docs_src.app_testing.app_a_py310.test_main import client, test_read_main", + "import importlib", + "from types import ModuleType", + "import pytest", + "from ...utils import needs_py310", + "from docs_src.app_testing.tutorial001_py310 import client, test_read_main", + "from docs_src.app_testing.tutorial002_py310 import test_read_main, test_websocket", + "from docs_src.app_testing.tutorial003_py310 import test_read_items", + "from docs_src.app_testing.tutorial004_py310 import test_read_items" + ], + "arg_patterns": { + "snapshot": { + "occurrences": 6, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 6, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "test_read_main": { + "occurrences": 9, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 9, + "args": 0, + "types": [] + } + ] + }, + "test_read_items": { + "occurrences": 6, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 6, + "args": 0, + "types": [] + } + ] + }, + "test_websocket": { + "occurrences": 3, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 3, + "args": 0, + "types": [] + } + ] + } + } + }, + { + "label": "tests/test_tutorial/test_testing_dependencies", + "method_count": 8, + "grammar": "root ::= (\"response\" | \"status_code\" | \"test_module\" | \"text\")?+ \"json\"?+", + "grammar_clean": "root ::= (\"response\" | \"status_code\" | \"test_module\" | \"text\")?+ \"json\"?+", + "noise_ratio": 0.29, + "symbols_before": 7, + "symbols_after": 5, + "algorithm": "CRX", + "mdl_score": 3450, + "imports": [ + "import importlib", + "from types import ModuleType", + "import pytest", + "from ...utils import needs_py310" + ], + "arg_patterns": { + "test_override_in_items_with_q": { + "occurrences": 3, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 3, + "args": 0, + "types": [] + } + ] + }, + "test_override_in_items_with_params": { + "occurrences": 3, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 3, + "args": 0, + "types": [] + } + ] + }, + "test_override_in_items": { + "occurrences": 3, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 3, + "args": 0, + "types": [] + } + ] + } + } + }, + { + "label": "tests/test_tutorial/test_websockets", + "method_count": 14, + "grammar": "root ::= (\"WebSocketDisconnect\" | \"app\" | \"raises\")?+ \"websocket_connect\"?+ (\"data\" | \"message\" | \"receive_text\" | \"send_text\" | \"websocket\")?+", + "grammar_clean": "root ::= (\"WebSocketDisconnect\" | \"app\" | \"raises\")?+ \"websocket_connect\"?+ (\"data\" | \"message\" | \"receive_text\" | \"send_text\" | \"websocket\")?+", + "noise_ratio": 0.25, + "symbols_before": 12, + "symbols_after": 9, + "algorithm": "CRX", + "mdl_score": 10140, + "imports": [ + "import pytest", + "from fastapi.testclient import TestClient", + "from fastapi.websockets import WebSocketDisconnect", + "from docs_src.websockets_.tutorial001_py310 import app", + "import importlib", + "from fastapi import FastAPI", + "from ...utils import needs_py310", + "import time", + "from types import ModuleType" + ], + "arg_patterns": { + "TestClient": { + "occurrences": 24, + "arg_count": { + "min": 1, + "max": 2, + "common": 1 + }, + "patterns": [ + { + "count": 18, + "args": 1, + "types": [ + "var" + ] + }, + { + "count": 3, + "args": 1, + "types": [ + "other" + ] + }, + { + "count": 3, + "args": 2, + "types": [ + "var", + "kwarg" + ] + } + ] + } + } + }, + { + "label": "tests/test_validate_response_recursive", + "method_count": 3, + "grammar": "root ::= (\"app\" | \"json\" | \"response\" | \"status_code\" | \"text\")?+", + "grammar_clean": "root ::= (\"app\" | \"json\" | \"response\" | \"status_code\" | \"text\")?+", + "noise_ratio": 0.44, + "symbols_before": 9, + "symbols_after": 5, + "algorithm": "CRX", + "mdl_score": 84264, + "imports": [ + "from fastapi import FastAPI", + "from pydantic import BaseModel", + "from fastapi.testclient import TestClient", + "from .app import app" + ], + "arg_patterns": { + "RecursiveItem": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "RecursiveSubitemInSubmodel": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "RecursiveItemViaSubmodel": { + "occurrences": 1, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "FastAPI": { + "occurrences": 3, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 3, + "args": 0, + "types": [] + } + ] + }, + "class": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "TestClient": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "var" + ] + } + ] + } + } + } + ], + "total_methods": 4811 + } +] diff --git a/experiments/results/round22_noise_filtering/ragsak.json b/experiments/results/round22_noise_filtering/ragsak.json new file mode 100644 index 0000000..1cca92e --- /dev/null +++ b/experiments/results/round22_noise_filtering/ragsak.json @@ -0,0 +1,4758 @@ +[ + { + "language": ".kt", + "conventions": [ + { + "label": "agents", + "method_count": 5, + "grammar": "root ::= (\"defaultCapabilityId\" | \"summarize\")? \"ToolInvocationRequest\"? \"ToolingRequest\"? \"ToolInvocationResult\"? (\"answer\" | \"any\" | \"capture\" | \"captured\" | \"generateText\" | \"invokeTools\" | \"promptRunner\" | \"toolProfile\")?+ \"prompt\"?", + "grammar_clean": "root ::= (\"defaultCapabilityId\" | \"summarize\")? \"ToolInvocationRequest\"? \"ToolingRequest\"? \"ToolInvocationResult\"? (\"answer\" | \"any\" | \"capture\" | \"captured\" | \"generateText\" | \"invokeTools\" | \"promptRunner\" | \"toolProfile\")?+ \"prompt\"?", + "noise_ratio": 0.33, + "symbols_before": 21, + "symbols_after": 14, + "algorithm": "CRX", + "mdl_score": 142012, + "imports": [ + "import eu.corentic.springrag.agent.capability.AgentCapabilityHandler", + "import eu.corentic.springrag.agent.capability.AgentCapabilityInvocationGateway", + "import com.embabel.agent.api.common.ActionContext", + "import com.embabel.agent.api.common.PromptRunner", + "import eu.corentic.springrag.agent.tooling.embabel.DEFAULT_TOOL_PROFILE", + "import eu.corentic.springrag.agent.tooling.embabel.ToolInvocationAction", + "import eu.corentic.springrag.agent.tooling.embabel.ToolInvocationRequest", + "import eu.corentic.springrag.agent.tooling.embabel.ToolInvocationResult", + "import io.mockk.every", + "import io.mockk.mockk", + "import io.mockk.slot", + "import io.mockk.verify", + "import kotlin.test.assertEquals", + "import org.junit.jupiter.api.Test" + ], + "arg_patterns": {} + }, + { + "label": "agents/capability/ports/src/main/kotlin/eu/corentic/springrag/agent/capability", + "method_count": 5, + "grammar": "root ::= \"AgentExecutionContext\"? \"listCapabilities\"? \"DescribedAgentCapability\"? \"TransportExposedAgentCapability\"? \"id\"? \"return AgentCapabilityDescriptor(\n id = id,\n capabilityType = capabilityType,\n displayName = describedCapability?.displayName ?: id,\n description = describedCapability?.description,\n exposedOverHttp = exposedCapability?.exposedOverHttp ?: false,\n exposedOverMcp = exposedCapability?.exposedOverMcp ?: false\n )\"? \"AgentCapabilityDescriptor\"? \"displayName\"? \"description\"? \"exposedOverHttp\"? \"exposedOverMcp\"?", + "grammar_clean": "root ::= \"AgentExecutionContext\"? \"listCapabilities\"? \"DescribedAgentCapability\"? \"TransportExposedAgentCapability\"? \"id\"? \"return AgentCapabilityDescriptor(\n id = id,\n capabilityType = capabilityType,\n displayName = describedCapability?.displayName ?: id,\n description = describedCapability?.description,\n exposedOverHttp = exposedCapability?.exposedOverHttp ?: false,\n exposedOverMcp = exposedCapability?.exposedOverMcp ?: false\n )\"? \"AgentCapabilityDescriptor\"? \"displayName\"? \"description\"? \"exposedOverHttp\"? \"exposedOverMcp\"?", + "noise_ratio": 0.08, + "symbols_before": 12, + "symbols_after": 11, + "algorithm": "CRX", + "mdl_score": 1553, + "imports": [], + "arg_patterns": {} + }, + { + "label": "agents/capability/support/src/main/kotlin/eu/corentic/springrag/agent/capability/support", + "method_count": 5, + "grammar": "root ::= \"newVirtualThreadPerTaskExecutor\"?+ \"resolve\"?+ (\"DefaultAgentCapabilityDirectory\" | \"defaultCapabilityId\")?+ \"asCoroutineDispatcher\"?+ \"capabilityIdSelector\"? \"capabilityDescriptors\"?+ \"authorize\"?+ \"distinctBy\"?+ (\"AgentCapabilityDescriptor\" | \"capabilityType\" | \"compareBy\" | \"id\" | \"sortedWith\" | \"thenBy\")?+ \"return capability.invoke(request)\"?", + "grammar_clean": "root ::= \"newVirtualThreadPerTaskExecutor\"?+ \"resolve\"?+ (\"DefaultAgentCapabilityDirectory\" | \"defaultCapabilityId\")?+ \"asCoroutineDispatcher\"?+ \"capabilityIdSelector\"? \"capabilityDescriptors\"?+ \"authorize\"?+ \"distinctBy\"?+ (\"AgentCapabilityDescriptor\" | \"capabilityType\" | \"compareBy\" | \"id\" | \"sortedWith\" | \"thenBy\")?+ \"return capability.invoke(request)\"?", + "noise_ratio": 0.11, + "symbols_before": 18, + "symbols_after": 16, + "algorithm": "CRX", + "mdl_score": 0, + "imports": [ + "import eu.corentic.springrag.agent.capability.AgentCapabilityDirectory", + "import eu.corentic.springrag.agent.capability.AgentCapabilityRegistry", + "import kotlinx.coroutines.CoroutineDispatcher", + "import kotlinx.coroutines.asCoroutineDispatcher", + "import org.springframework.context.annotation.Bean", + "import org.springframework.context.annotation.Configuration", + "import java.util.concurrent.Executors", + "import eu.corentic.springrag.agent.capability.AgentCapabilityDescriptor", + "import eu.corentic.springrag.agent.capability.AgentCapabilityHandler", + "import eu.corentic.springrag.agent.capability.AgentCapabilityInvocationAuthorizer", + "import eu.corentic.springrag.agent.capability.AgentCapabilityInvocationGateway", + "import eu.corentic.springrag.agent.capability.AgentCapabilityResolver" + ], + "arg_patterns": {} + }, + { + "label": "agents/capability/support/src/test/kotlin/eu/corentic/springrag/agent/capability/support", + "method_count": 6, + "grammar": "root ::= (\"AgentCapabilityDescriptor\" | \"DefaultAgentCapabilityDirectory\" | \"IllegalStateException\" | \"authorize\" | \"capabilityDescriptors\" | \"defaultCapabilityId\" | \"id\" | \"message\" | \"resolve\")?+ (\"any\" | \"listCapabilities\")?+", + "grammar_clean": "root ::= (\"AgentCapabilityDescriptor\" | \"DefaultAgentCapabilityDirectory\" | \"IllegalStateException\" | \"authorize\" | \"capabilityDescriptors\" | \"defaultCapabilityId\" | \"id\" | \"message\" | \"resolve\")?+ (\"any\" | \"listCapabilities\")?+", + "noise_ratio": 0.48, + "symbols_before": 21, + "symbols_after": 11, + "algorithm": "CRX", + "mdl_score": 790670, + "imports": [ + "import eu.corentic.springrag.agent.capability.AgentCapabilityDescriptor", + "import eu.corentic.springrag.agent.capability.AgentCapabilityRegistry", + "import io.mockk.every", + "import io.mockk.mockk", + "import org.junit.jupiter.api.Assertions.assertEquals", + "import org.junit.jupiter.api.Test", + "import eu.corentic.springrag.agent.capability.AgentCapabilityHandler", + "import eu.corentic.springrag.agent.capability.AgentCapabilityInvocationAuthorizer", + "import eu.corentic.springrag.agent.capability.AgentCapabilityResolver", + "import io.mockk.coEvery", + "import io.mockk.coVerify", + "import io.mockk.verify", + "import kotlinx.coroutines.test.runTest", + "import kotlin.test.Test", + "import kotlin.test.assertEquals", + "import kotlin.test.assertFailsWith" + ], + "arg_patterns": {} + }, + { + "label": "agents/examples/simple-rag/src/main/kotlin/eu/corentic/springrag/example/rag/simple", + "method_count": 9, + "grammar": "root ::= \"prompt\"?+ \"system\"?+ \"user\"?+ \"call\"?+ \"content\"?+", + "grammar_clean": "root ::= \"prompt\"?+ \"system\"?+ \"user\"?+ \"call\"?+ \"content\"?+", + "noise_ratio": 0.29, + "symbols_before": 7, + "symbols_after": 5, + "algorithm": "CRX", + "mdl_score": 0, + "imports": [ + "import eu.corentic.springrag.model.VectorChunk", + "import org.slf4j.LoggerFactory", + "import org.springframework.ai.chat.client.ChatClient", + "import tools.jackson.databind.ObjectMapper", + "import eu.corentic.springrag.agent.rag.RagAgent", + "import eu.corentic.springrag.agent.rag.RagRequest", + "import eu.corentic.springrag.agent.capability.AgentExecutionContext", + "import eu.corentic.springrag.agent.rag.support.RagDocumentSupport", + "import eu.corentic.springrag.model.ChatResponse", + "import eu.corentic.springrag.service.port.ChatGraphLookupPort", + "import eu.corentic.springrag.service.port.RetrievalPort", + "import kotlinx.coroutines.CoroutineDispatcher", + "import kotlinx.coroutines.withContext", + "import io.github.oshai.kotlinlogging.KotlinLogging" + ], + "arg_patterns": {} + }, + { + "label": "agents/examples/simple-rag/src/test/kotlin/eu/corentic/springrag/example/rag/simple", + "method_count": 14, + "grammar": "root ::= \"ChatClientRequestSpec\"?+ \"CallResponseSpec\"? (\"any\" | \"call\" | \"prompt\" | \"system\" | \"user\")?+ \"content\"?+", + "grammar_clean": "root ::= \"ChatClientRequestSpec\"?+ \"CallResponseSpec\"? (\"any\" | \"call\" | \"prompt\" | \"system\" | \"user\")?+ \"content\"?+", + "noise_ratio": 0.33, + "symbols_before": 12, + "symbols_after": 8, + "algorithm": "CRX", + "mdl_score": 3710, + "imports": [ + "import eu.corentic.springrag.model.VectorChunk", + "import io.mockk.every", + "import io.mockk.mockk", + "import io.mockk.slot", + "import kotlinx.coroutines.test.runTest", + "import org.junit.jupiter.api.Assertions.assertEquals", + "import org.junit.jupiter.api.Test", + "import org.springframework.ai.chat.client.ChatClient", + "import org.springframework.ai.chat.client.ChatClient.CallResponseSpec", + "import org.springframework.ai.chat.client.ChatClient.ChatClientRequestSpec", + "import eu.corentic.springrag.agent.rag.RagAgent", + "import eu.corentic.springrag.agent.rag.RagRequest", + "import eu.corentic.springrag.common.ids.asKnowledgeBaseId", + "import eu.corentic.springrag.service.port.ChatGraphLookupPort", + "import eu.corentic.springrag.service.port.RetrievalPort", + "import io.mockk.coEvery", + "import io.mockk.coVerify", + "import io.mockk.verify", + "import kotlinx.coroutines.test.StandardTestDispatcher", + "import org.junit.jupiter.api.Assertions.assertTrue", + "import io.mockk.clearAllMocks", + "import org.junit.jupiter.api.AfterEach", + "import org.junit.jupiter.api.Assertions.assertFalse", + "import tools.jackson.databind.json.JsonMapper", + "import tools.jackson.module.kotlin.KotlinModule" + ], + "arg_patterns": {} + }, + { + "label": "agents/rag/embabel/src/main/kotlin/eu/corentic/springrag/agent/rag/embabel", + "method_count": 58, + "imports": [ + "import com.fasterxml.jackson.databind.ObjectMapper", + "import org.springframework.context.annotation.Bean", + "import org.springframework.context.annotation.Configuration", + "import com.embabel.agent.api.invocation.AgentInvocation", + "import com.embabel.agent.core.AgentPlatform", + "import com.embabel.agent.core.resultOfType", + "import com.embabel.agent.core.Identities", + "import com.embabel.agent.core.ProcessOptions", + "import com.embabel.agent.core.support.InMemoryBlackboard", + "import eu.corentic.springrag.agent.capability.AgentExecutionContext", + "import eu.corentic.springrag.agent.capability.DescribedAgentCapability", + "import eu.corentic.springrag.agent.capability.TransportExposedAgentCapability", + "import eu.corentic.springrag.agent.rag.RagAgent", + "import eu.corentic.springrag.agent.rag.RagInvocation", + "import eu.corentic.springrag.agent.rag.RagRequest", + "import eu.corentic.springrag.model.ChatResponse", + "import kotlinx.coroutines.CoroutineDispatcher", + "import kotlinx.coroutines.withContext", + "import org.springframework.beans.factory.annotation.Value", + "import org.springframework.stereotype.Component", + "import org.springframework.stereotype.Service", + "import kotlin.math.max", + "import eu.corentic.springrag.agent.rag.support.RagDocumentSupport", + "import eu.corentic.springrag.model.Source", + "import eu.corentic.springrag.model.VectorChunk", + "import eu.corentic.springrag.service.port.ChatGraphLookupPort", + "import eu.corentic.springrag.service.port.RetrievalPort", + "import io.github.oshai.kotlinlogging.KotlinLogging", + "import org.springframework.ai.chat.memory.ChatMemory", + "import com.embabel.agent.api.annotation.AchievesGoal", + "import com.embabel.agent.api.annotation.Action", + "import com.embabel.agent.api.annotation.Agent", + "import com.embabel.agent.api.annotation.Condition", + "import com.embabel.agent.api.common.ActionContext", + "import com.embabel.agent.domain.io.UserInput", + "import eu.corentic.springrag.agent.summarizer.SummarizeRequest", + "import eu.corentic.springrag.common.ids.KnowledgeBaseId", + "import eu.corentic.springrag.service.knowledgebase.KnowledgeBaseQueryPort", + "import io.micrometer.common.KeyValue", + "import io.micrometer.common.KeyValues", + "import org.springframework.ai.chat.client.observation.ChatClientObservationContext", + "import org.springframework.ai.chat.client.observation.DefaultChatClientObservationConvention", + "import io.micrometer.observation.ObservationRegistry", + "import java.util.function.Supplier", + "import org.springframework.ai.chat.client.ChatClient", + "import org.springframework.ai.chat.model.ChatModel", + "import org.springframework.ai.chat.client.advisor.PromptChatMemoryAdvisor", + "import org.springframework.ai.chat.prompt.ChatOptions", + "import org.springframework.cloud.client.circuitbreaker.CircuitBreakerFactory" + ], + "arg_patterns": {} + }, + { + "label": "agents/rag/embabel/src/main/kotlin/eu/corentic/springrag/agent/rag/embabel/librechat", + "method_count": 13, + "grammar": "root ::= \"buildObservationContext\" | \"scope\"", + "grammar_clean": "root ::= \"buildObservationContext\" | \"scope\"", + "noise_ratio": 0.0, + "symbols_before": 2, + "symbols_after": 2, + "algorithm": "CRX", + "mdl_score": 4, + "imports": [ + "import com.embabel.agent.api.annotation.AchievesGoal", + "import com.embabel.agent.api.annotation.Action", + "import com.embabel.agent.api.annotation.Agent", + "import com.embabel.agent.api.annotation.Condition", + "import com.embabel.agent.api.common.ActionContext", + "import eu.corentic.springrag.agent.rag.RagRequest", + "import eu.corentic.springrag.agent.rag.embabel.ConversationMemoryContext", + "import eu.corentic.springrag.agent.rag.embabel.EmbabelJudgeDecision", + "import eu.corentic.springrag.agent.rag.embabel.EmbabelRagDecisionPolicy", + "import eu.corentic.springrag.agent.rag.embabel.EmbabelWorkflowObservationContext", + "import eu.corentic.springrag.agent.rag.embabel.EmbabelWorkflowObservationConvention", + "import eu.corentic.springrag.agent.rag.embabel.EmbabelWorkflowPromptService", + "import eu.corentic.springrag.agent.rag.embabel.JudgeOutcome", + "import eu.corentic.springrag.agent.rag.embabel.RagDecisionState", + "import eu.corentic.springrag.agent.rag.embabel.RetrievedEvidence", + "import eu.corentic.springrag.agent.rag.librechat.LibreChatRetrievalRequest", + "import eu.corentic.springrag.agent.rag.librechat.LibreChatRetrievalResult", + "import eu.corentic.springrag.agent.rag.support.RagDocumentSupport", + "import eu.corentic.springrag.model.VectorChunk", + "import eu.corentic.springrag.common.ids.JobId", + "import eu.corentic.springrag.common.ids.KnowledgeBaseId", + "import eu.corentic.springrag.service.port.ChatGraphLookupPort", + "import eu.corentic.springrag.service.port.RetrievalPort", + "import eu.corentic.springrag.service.port.VectorDocumentPort", + "import io.github.oshai.kotlinlogging.KotlinLogging", + "import org.springframework.stereotype.Service", + "import com.embabel.agent.core.AgentPlatform", + "import com.embabel.agent.core.Identities", + "import com.embabel.agent.core.ProcessOptions", + "import com.embabel.agent.core.resultOfType", + "import com.embabel.agent.core.support.InMemoryBlackboard", + "import eu.corentic.springrag.agent.rag.librechat.LibreChatRetrievalInvoker", + "import org.springframework.beans.factory.annotation.Value", + "import org.springframework.stereotype.Component" + ], + "arg_patterns": {} + }, + { + "label": "agents/rag/embabel/src/test/kotlin/eu/corentic/springrag/agent/rag/embabel", + "method_count": 36, + "grammar": "root ::= \"listKnowledgeBases\"?+ \"RagRequest\"? \"checkKnowledgeBase\"?+ \"request\"? \"knowledgeBaseId\"?", + "grammar_clean": "root ::= \"listKnowledgeBases\"?+ \"RagRequest\"? \"checkKnowledgeBase\"?+ \"request\"? \"knowledgeBaseId\"?", + "noise_ratio": 0.38, + "symbols_before": 8, + "symbols_after": 5, + "algorithm": "CRX", + "mdl_score": 66, + "imports": [ + "import com.embabel.agent.api.invocation.AgentInvocation", + "import com.embabel.agent.core.Agent", + "import com.embabel.agent.core.AgentPlatform", + "import com.embabel.agent.core.AgentProcess", + "import com.embabel.agent.core.ProcessOptions", + "import eu.corentic.springrag.agent.capability.AgentExecutionContext", + "import eu.corentic.springrag.agent.rag.RagInvocation", + "import eu.corentic.springrag.agent.rag.RagRequest", + "import eu.corentic.springrag.common.ids.asKnowledgeBaseId", + "import eu.corentic.springrag.model.ChatResponse", + "import io.mockk.every", + "import io.mockk.mockk", + "import io.mockk.mockkObject", + "import io.mockk.slot", + "import io.mockk.unmockkAll", + "import io.mockk.verify", + "import org.junit.jupiter.api.AfterEach", + "import org.junit.jupiter.api.Assertions.assertEquals", + "import org.junit.jupiter.api.Assertions.assertNull", + "import org.junit.jupiter.api.Test", + "import kotlinx.coroutines.test.StandardTestDispatcher", + "import kotlinx.coroutines.test.runTest", + "import eu.corentic.springrag.model.PageTextElement", + "import eu.corentic.springrag.model.VectorChunk", + "import eu.corentic.springrag.service.port.ChatGraphLookupPort", + "import eu.corentic.springrag.service.port.RetrievalPort", + "import org.junit.jupiter.api.Assertions.assertTrue", + "import org.springframework.ai.chat.memory.ChatMemory", + "import eu.corentic.springrag.common.ids.KnowledgeBaseId", + "import eu.corentic.springrag.service.knowledgebase.KnowledgeBaseListItem", + "import eu.corentic.springrag.service.knowledgebase.KnowledgeBaseQueryPort", + "import org.springframework.ai.chat.client.ChatClientRequest", + "import org.springframework.ai.chat.client.observation.ChatClientObservationContext", + "import org.springframework.ai.chat.prompt.Prompt", + "import eu.corentic.springrag.testsupport.NoOpCircuitBreakerFactory", + "import io.micrometer.observation.ObservationRegistry", + "import org.springframework.ai.chat.memory.InMemoryChatMemoryRepository", + "import org.springframework.ai.chat.memory.MessageWindowChatMemory", + "import org.springframework.ai.chat.messages.AssistantMessage", + "import org.springframework.ai.chat.messages.MessageType", + "import org.springframework.ai.chat.messages.UserMessage", + "import org.springframework.ai.chat.model.ChatModel", + "import org.springframework.ai.chat.model.ChatResponse", + "import org.springframework.ai.chat.model.Generation", + "import eu.corentic.springrag.agent.rag.embabel.EmbabelJudgeDecision", + "import eu.corentic.springrag.agent.rag.embabel.EmbabelRagDecisionPolicy", + "import eu.corentic.springrag.agent.rag.embabel.EmbabelRagWorkflowAgentProperties", + "import eu.corentic.springrag.agent.rag.embabel.EmbabelWorkflowPromptService", + "import eu.corentic.springrag.common.ids.JobId", + "import eu.corentic.springrag.agent.rag.librechat.LibreChatRetrievalRequest", + "import eu.corentic.springrag.service.port.VectorDocumentPort" + ], + "arg_patterns": {} + }, + { + "label": "agents/rag/embabel/src/test/kotlin/eu/corentic/springrag/testsupport", + "method_count": 3, + "grammar": "root ::= \"Builder\"+", + "grammar_clean": "root ::= \"Builder\"+", + "noise_ratio": 0.67, + "symbols_before": 3, + "symbols_after": 1, + "algorithm": "CRX", + "mdl_score": 15, + "imports": [ + "import java.util.function.Function", + "import java.util.function.Supplier", + "import org.springframework.cloud.client.circuitbreaker.CircuitBreaker", + "import org.springframework.cloud.client.circuitbreaker.CircuitBreakerFactory", + "import org.springframework.cloud.client.circuitbreaker.ConfigBuilder" + ], + "arg_patterns": {} + }, + { + "label": "agents/rag/ports/src/main/kotlin/eu/corentic/springrag/agent/rag", + "method_count": 4, + "grammar": "root ::= \"answer\"? \"defaultCapabilityId\"? \"AgentExecutionContext\"? \"request\"? \"RagRequest\"? \"executionContext\"? \"KnowledgeBaseId\"?", + "grammar_clean": "root ::= \"answer\"? \"defaultCapabilityId\"? \"AgentExecutionContext\"? \"request\"? \"RagRequest\"? \"executionContext\"? \"KnowledgeBaseId\"?", + "noise_ratio": 0.12, + "symbols_before": 8, + "symbols_after": 7, + "algorithm": "CRX", + "mdl_score": 242, + "imports": [ + "import eu.corentic.springrag.agent.capability.AgentCapability", + "import eu.corentic.springrag.agent.capability.AgentCapabilityHandler", + "import eu.corentic.springrag.agent.capability.AgentExecutionContext", + "import eu.corentic.springrag.common.ids.KnowledgeBaseId", + "import eu.corentic.springrag.model.ChatResponse", + "import eu.corentic.springrag.agent.capability.AgentCapabilityInvocationGateway" + ], + "arg_patterns": {} + }, + { + "label": "agents/rag/ports/src/test/kotlin/eu/corentic/springrag/agent/rag", + "method_count": 3, + "grammar": "root ::= \"return ChatResponse(answer = \\\"ok\\\", sources = emptyList())\"? \"RecordingRagAgent\"? \"ChatResponse\"? \"RagInvocation\"? \"RagRequest\"? (\"answer\" | \"asKnowledgeBaseId\" | \"conversationId\" | \"knowledgeBaseId\" | \"lastRequest\" | \"message\")?+ \"agentId\"? \"executionContext\"? \"lastContext\"?", + "grammar_clean": "root ::= \"return ChatResponse(answer = \\\"ok\\\", sources = emptyList())\"? \"RecordingRagAgent\"? \"ChatResponse\"? \"RagInvocation\"? \"RagRequest\"? (\"answer\" | \"asKnowledgeBaseId\" | \"conversationId\" | \"knowledgeBaseId\" | \"lastRequest\" | \"message\")?+ \"agentId\"? \"executionContext\"? \"lastContext\"?", + "noise_ratio": 0.22, + "symbols_before": 18, + "symbols_after": 14, + "algorithm": "CRX", + "mdl_score": 3304, + "imports": [ + "import eu.corentic.springrag.agent.capability.AgentExecutionContext", + "import eu.corentic.springrag.common.ids.asKnowledgeBaseId", + "import eu.corentic.springrag.model.ChatResponse", + "import kotlinx.coroutines.test.runTest", + "import org.junit.jupiter.api.Assertions.assertEquals", + "import org.junit.jupiter.api.Test" + ], + "arg_patterns": {} + }, + { + "label": "agents/rag/ports/src/test/kotlin/eu/corentic/springrag/model", + "method_count": 3, + "grammar": "root ::= \"ChatResponse\"? \"Source\"?+ \"toMarkdownSummary\"?+", + "grammar_clean": "root ::= \"ChatResponse\"? \"Source\"?+ \"toMarkdownSummary\"?+", + "noise_ratio": 0.57, + "symbols_before": 7, + "symbols_after": 3, + "algorithm": "CRX", + "mdl_score": 858, + "imports": [ + "import org.junit.jupiter.api.Assertions.assertTrue", + "import org.junit.jupiter.api.Test" + ], + "arg_patterns": {} + }, + { + "label": "agents/rag/support/src/main/kotlin/eu/corentic/springrag/agent/rag/support", + "method_count": 13, + "grammar": "root ::= \"metadata\"+", + "grammar_clean": "root ::= \"metadata\"+", + "noise_ratio": 0.5, + "symbols_before": 2, + "symbols_after": 1, + "algorithm": "CRX", + "mdl_score": 62, + "imports": [ + "import eu.corentic.springrag.agent.capability.AgentCapabilityDescriptor", + "import eu.corentic.springrag.agent.capability.toDescriptor", + "import eu.corentic.springrag.agent.rag.RagAgent", + "import eu.corentic.springrag.agent.rag.RagAgentRegistry", + "import org.springframework.stereotype.Component", + "import eu.corentic.springrag.common.ids.KnowledgeBaseId", + "import eu.corentic.springrag.model.Source", + "import eu.corentic.springrag.model.VectorChunk", + "import eu.corentic.springrag.service.port.ChatGraphLookupPort", + "import eu.corentic.springrag.service.port.RetrievalPort", + "import io.github.oshai.kotlinlogging.KotlinLogging" + ], + "arg_patterns": {} + }, + { + "label": "agents/rag/support/src/test/kotlin/eu/corentic/springrag/agent/rag/support", + "method_count": 11, + "grammar": "root ::= \"VectorChunk\"? \"id\"?+ \"capabilityType\"? \"DefaultRagAgentRegistry\"?", + "grammar_clean": "root ::= \"VectorChunk\"? \"id\"?+ \"capabilityType\"? \"DefaultRagAgentRegistry\"?", + "noise_ratio": 0.5, + "symbols_before": 8, + "symbols_after": 4, + "algorithm": "CRX", + "mdl_score": 100, + "imports": [ + "import eu.corentic.springrag.agent.capability.AgentExecutionContext", + "import eu.corentic.springrag.agent.rag.RagAgent", + "import eu.corentic.springrag.agent.rag.RagAgentInvocationAuthorizer", + "import eu.corentic.springrag.agent.rag.RagInvocation", + "import eu.corentic.springrag.agent.rag.RagAgentRegistry", + "import eu.corentic.springrag.agent.rag.RagRequest", + "import eu.corentic.springrag.common.ids.asKnowledgeBaseId", + "import eu.corentic.springrag.model.ChatResponse", + "import io.mockk.coEvery", + "import io.mockk.coVerify", + "import io.mockk.every", + "import io.mockk.mockk", + "import io.mockk.verify", + "import kotlinx.coroutines.test.runTest", + "import org.junit.jupiter.api.Assertions.assertEquals", + "import org.junit.jupiter.api.Test", + "import eu.corentic.springrag.agent.capability.AgentCapabilityDescriptor", + "import eu.corentic.springrag.agent.capability.DescribedAgentCapability", + "import eu.corentic.springrag.agent.capability.TransportExposedAgentCapability", + "import org.junit.jupiter.api.Assertions.assertThrows", + "import org.junit.jupiter.api.Assertions.assertDoesNotThrow", + "import eu.corentic.springrag.model.PageTextElement", + "import eu.corentic.springrag.model.SourceImage", + "import eu.corentic.springrag.model.VectorChunk", + "import eu.corentic.springrag.service.port.ChatGraphLookupPort", + "import eu.corentic.springrag.service.port.RetrievalPort", + "import kotlin.test.Test", + "import kotlin.test.assertEquals", + "import kotlin.test.assertTrue" + ], + "arg_patterns": {} + }, + { + "label": "agents/summarizer/embabel/src/main/kotlin/eu/corentic/springrag/agent/summarizer/embabel", + "method_count": 13, + "imports": [ + "import eu.corentic.springrag.agent.capability.AgentCapabilityDescriptor", + "import eu.corentic.springrag.agent.capability.toDescriptor", + "import eu.corentic.springrag.agent.summarizer.SummarizerAgent", + "import eu.corentic.springrag.agent.summarizer.SummarizerAgentRegistry", + "import org.springframework.stereotype.Component", + "import com.embabel.agent.api.invocation.AgentInvocation", + "import com.embabel.agent.core.AgentPlatform", + "import com.embabel.agent.core.Identities", + "import com.embabel.agent.core.ProcessOptions", + "import eu.corentic.springrag.agent.capability.DescribedAgentCapability", + "import eu.corentic.springrag.agent.capability.TransportExposedAgentCapability", + "import eu.corentic.springrag.agent.summarizer.SummarizeRequest", + "import eu.corentic.springrag.agent.summarizer.SummaryResponse", + "import kotlinx.coroutines.CoroutineDispatcher", + "import kotlinx.coroutines.Dispatchers", + "import kotlinx.coroutines.withContext", + "import org.springframework.stereotype.Service", + "import com.embabel.agent.api.annotation.AchievesGoal", + "import com.embabel.agent.api.annotation.Action", + "import com.embabel.agent.api.annotation.Agent", + "import com.embabel.agent.api.common.ActionContext", + "import com.embabel.agent.domain.io.UserInput", + "import com.embabel.common.ai.model.LlmOptions", + "import eu.corentic.springrag.agent.tooling.embabel.DEFAULT_TOOL_PROFILE", + "import eu.corentic.springrag.agent.tooling.embabel.ToolInvocationAction", + "import eu.corentic.springrag.agent.tooling.embabel.ToolInvocationRequest", + "import org.springframework.beans.factory.annotation.Value", + "import eu.corentic.springrag.agent.summarizer.SummarizerInvocationAuthorizer", + "import io.github.oshai.kotlinlogging.KotlinLogging" + ], + "arg_patterns": {} + }, + { + "label": "agents/summarizer/embabel/src/test/kotlin/eu/corentic/springrag/agent/summarizer/embabel", + "method_count": 14, + "imports": [ + "import com.embabel.agent.api.invocation.AgentInvocation", + "import com.embabel.agent.core.AgentPlatform", + "import com.embabel.agent.core.ProcessOptions", + "import eu.corentic.springrag.agent.capability.AgentExecutionContext", + "import eu.corentic.springrag.agent.summarizer.SummarizeRequest", + "import eu.corentic.springrag.agent.summarizer.SummaryResponse", + "import io.mockk.every", + "import io.mockk.mockk", + "import io.mockk.mockkObject", + "import io.mockk.slot", + "import io.mockk.unmockkAll", + "import io.mockk.verify", + "import org.junit.jupiter.api.AfterEach", + "import org.junit.jupiter.api.Assertions.assertEquals", + "import org.junit.jupiter.api.Assertions.assertNull", + "import org.junit.jupiter.api.Test", + "import eu.corentic.springrag.agent.capability.AgentCapabilityDescriptor", + "import eu.corentic.springrag.agent.summarizer.SummarizerAgent", + "import org.junit.jupiter.api.Assertions.assertThrows", + "import eu.corentic.springrag.agent.summarizer.SummarizerInvocationAuthorizer", + "import io.mockk.coEvery", + "import io.mockk.coVerify", + "import kotlinx.coroutines.test.runTest", + "import kotlinx.coroutines.test.StandardTestDispatcher", + "import com.embabel.agent.api.common.ActionContext", + "import com.embabel.agent.api.common.Ai", + "import com.embabel.agent.api.common.PromptRunner", + "import com.embabel.common.ai.model.LlmOptions", + "import org.junit.jupiter.api.Assertions.assertDoesNotThrow" + ], + "arg_patterns": {} + }, + { + "label": "agents/tooling/agent/src/main/kotlin/eu/corentic/springrag/agent/tooling/agent", + "method_count": 4, + "grammar": "root ::= (\"forEachIndexed\" | \"ifBlank\" | \"response\" | \"return buildString {\n result.toolCalls.forEachIndexed { index, call ->\n if (index > 0) append(\\\"\\\\n\\\\n\\\")\n append(\\\"Tool: \\\").append(call.tool).append(\\\"\\\\n\\\")\n append(\\\"Input: \\\").append(call.input).append(\\\"\\\\n\\\")\n append(\\\"Output:\\\\n\\\").append(call.output)\n }\n }\" | \"return result.response.ifBlank { \\\"No tool results were captured.\\\" }\" | \"toolCalls\")?+ \"goal\"? \"ToolingRequest\"? (\"append\" | \"input\" | \"tool\")?+ \"renderToolResults\"? \"content\"? \"output\"? \"trimIndent\"?+ \"return toolInvocationAction.invoke(\n ToolInvocationRequest(\n prompt = prompt,\n toolProfile = request.toolProfile\n ),\n context\n )\"? \"promptRunner\"?+ \"LlmOptions\"? \"ToolInvocationRequest\"? \"toolProfile\"? \"generateText\"?+ \"return ToolingResponse(answer = answer)\"? \"ToolingResponse\"?", + "grammar_clean": "root ::= (\"forEachIndexed\" | \"ifBlank\" | \"response\" | \"return buildString {\n result.toolCalls.forEachIndexed { index, call ->\n if (index > 0) append(\\\"\\\\n\\\\n\\\")\n append(\\\"Tool: \\\").append(call.tool).append(\\\"\\\\n\\\")\n append(\\\"Input: \\\").append(call.input).append(\\\"\\\\n\\\")\n append(\\\"Output:\\\\n\\\").append(call.output)\n }\n }\" | \"return result.response.ifBlank { \\\"No tool results were captured.\\\" }\" | \"toolCalls\")?+ \"goal\"? \"ToolingRequest\"? (\"append\" | \"input\" | \"tool\")?+ \"renderToolResults\"? \"content\"? \"output\"? \"trimIndent\"?+ \"return toolInvocationAction.invoke(\n ToolInvocationRequest(\n prompt = prompt,\n toolProfile = request.toolProfile\n ),\n context\n )\"? \"promptRunner\"?+ \"LlmOptions\"? \"ToolInvocationRequest\"? \"toolProfile\"? \"generateText\"?+ \"return ToolingResponse(answer = answer)\"? \"ToolingResponse\"?", + "noise_ratio": 0.23, + "symbols_before": 30, + "symbols_after": 23, + "algorithm": "CRX", + "mdl_score": 0, + "imports": [ + "import com.embabel.agent.api.annotation.AchievesGoal", + "import com.embabel.agent.api.annotation.Action", + "import com.embabel.agent.api.annotation.Agent", + "import com.embabel.agent.api.common.ActionContext", + "import com.embabel.agent.domain.io.UserInput", + "import com.embabel.common.ai.model.LlmOptions", + "import eu.corentic.springrag.agent.tooling.embabel.ToolInvocationAction", + "import eu.corentic.springrag.agent.tooling.embabel.ToolInvocationRequest", + "import eu.corentic.springrag.agent.tooling.embabel.ToolInvocationResult", + "import org.springframework.stereotype.Service" + ], + "arg_patterns": {} + }, + { + "label": "agents/tooling/embabel/src/main/kotlin/eu/corentic/springrag/agent/tooling/embabel", + "method_count": 12, + "imports": [ + "import com.fasterxml.jackson.databind.ObjectMapper", + "import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean", + "import org.springframework.context.annotation.Bean", + "import org.springframework.context.annotation.Configuration", + "import com.embabel.agent.api.tool.ToolObject", + "import com.embabel.agent.api.annotation.Action", + "import com.embabel.agent.api.common.ActionContext", + "import com.embabel.agent.api.common.ContextualPromptElement", + "import com.embabel.common.ai.model.LlmOptions", + "import com.embabel.common.ai.prompt.PromptContributor", + "import com.embabel.agent.prompt.element.FocusedToolCallControl", + "import com.embabel.agent.prompt.element.ToolCallControl", + "import eu.corentic.springrag.agent.tooling.embabel.recording.ToolCallRecord", + "import eu.corentic.springrag.agent.tooling.embabel.recording.ToolInvocationRecorder", + "import org.springframework.stereotype.Service", + "import org.springframework.boot.context.properties.ConfigurationProperties", + "import org.springaicommunity.agent.tools.FileSystemTools", + "import org.springaicommunity.agent.tools.GrepTool", + "import org.springaicommunity.agent.tools.GlobTool", + "import org.springaicommunity.agent.tools.ShellTools", + "import org.springaicommunity.agent.tools.SmartWebFetchTool", + "import org.springframework.ai.chat.client.ChatClient", + "import org.springframework.boot.context.properties.EnableConfigurationProperties" + ], + "arg_patterns": {} + }, + { + "label": "agents/tooling/embabel/src/main/kotlin/eu/corentic/springrag/agent/tooling/embabel/recording", + "method_count": 11, + "imports": [ + "import com.embabel.agent.api.event.AgentProcessEvent", + "import com.embabel.agent.api.event.AgenticEventListener", + "import com.embabel.agent.api.event.ToolCallResponseEvent", + "import com.fasterxml.jackson.core.JsonProcessingException", + "import com.fasterxml.jackson.databind.ObjectMapper", + "import org.slf4j.LoggerFactory", + "import java.util.concurrent.ConcurrentHashMap", + "import com.embabel.agent.api.common.PlatformServices", + "import com.embabel.agent.api.event.MulticastAgenticEventListener", + "import org.springframework.beans.factory.config.BeanPostProcessor", + "import org.springframework.boot.context.properties.EnableConfigurationProperties", + "import org.springframework.context.annotation.Bean", + "import org.springframework.context.annotation.Configuration" + ], + "arg_patterns": {} + }, + { + "label": "agents/tooling/embabel/src/test/kotlin/eu/corentic/springrag/agent/tooling/embabel", + "method_count": 6, + "grammar": "root ::= \"ToolInvocationPolicyProperties\"? (\"AgentProcess\" | \"PolicyAwareToolInvocationToolProvider\" | \"StaticToolInvocationToolProvider\" | \"ToolInvocationAction\" | \"ToolInvocationRequest\" | \"ToolObject\" | \"ToolProfilePolicy\" | \"addObject\" | \"agent\" | \"agentProcess\" | \"any\" | \"blackboard\" | \"capture\" | \"com\" | \"core\" | \"embabel\" | \"generateText\" | \"id\" | \"processContext\" | \"promptRunner\" | \"response\" | \"toolObjectsFor\" | \"toolProfile\" | \"withToolChainingFromAny\")?+ \"captured\"?+", + "grammar_clean": "root ::= \"ToolInvocationPolicyProperties\"? (\"AgentProcess\" | \"PolicyAwareToolInvocationToolProvider\" | \"StaticToolInvocationToolProvider\" | \"ToolInvocationAction\" | \"ToolInvocationRequest\" | \"ToolObject\" | \"ToolProfilePolicy\" | \"addObject\" | \"agent\" | \"agentProcess\" | \"any\" | \"blackboard\" | \"capture\" | \"com\" | \"core\" | \"embabel\" | \"generateText\" | \"id\" | \"processContext\" | \"promptRunner\" | \"response\" | \"toolObjectsFor\" | \"toolProfile\" | \"withToolChainingFromAny\")?+ \"captured\"?+", + "noise_ratio": 0.4, + "symbols_before": 43, + "symbols_after": 26, + "algorithm": "CRX", + "mdl_score": 16597680, + "imports": [ + "import com.embabel.agent.api.tool.ToolObject", + "import kotlin.test.assertFalse", + "import kotlin.test.assertTrue", + "import kotlin.test.assertEquals", + "import org.junit.jupiter.api.Test", + "import com.embabel.agent.api.common.ActionContext", + "import com.embabel.agent.api.common.PromptRunner", + "import com.embabel.agent.core.Blackboard", + "import com.embabel.agent.core.ProcessContext", + "import io.mockk.Runs", + "import io.mockk.every", + "import io.mockk.just", + "import io.mockk.mockk", + "import io.mockk.slot", + "import io.mockk.verify" + ], + "arg_patterns": {} + }, + { + "label": "agents/wikipedia/adapters/src/main/kotlin/eu/corentic/springrag/agent/wikipedia", + "method_count": 4, + "grammar": "root ::= \"debug\"?+ \"sortedBy\"?+ \"topic\"? \"id\"? \"toDescriptor\"?+", + "grammar_clean": "root ::= \"debug\"?+ \"sortedBy\"?+ \"topic\"? \"id\"? \"toDescriptor\"?+", + "noise_ratio": 0.55, + "symbols_before": 11, + "symbols_after": 5, + "algorithm": "CRX", + "mdl_score": 0, + "imports": [ + "import eu.corentic.springrag.agent.capability.AgentCapabilityDescriptor", + "import eu.corentic.springrag.agent.capability.toDescriptor", + "import org.springframework.stereotype.Component", + "import io.github.oshai.kotlinlogging.KotlinLogging" + ], + "arg_patterns": {} + }, + { + "label": "agents/wikipedia/adapters/src/test/kotlin/eu/corentic/springrag/agent/wikipedia", + "method_count": 8, + "grammar": "root ::= \"id\"?+ \"defaultCapabilityId\"?+ \"capabilityType\"? \"DefaultWikipediaLookupAgentRegistry\"? \"AgentCapabilityDescriptor\"? \"capabilityDescriptors\"?+", + "grammar_clean": "root ::= \"id\"?+ \"defaultCapabilityId\"?+ \"capabilityType\"? \"DefaultWikipediaLookupAgentRegistry\"? \"AgentCapabilityDescriptor\"? \"capabilityDescriptors\"?+", + "noise_ratio": 0.33, + "symbols_before": 9, + "symbols_after": 6, + "algorithm": "CRX", + "mdl_score": 32, + "imports": [ + "import eu.corentic.springrag.agent.capability.AgentCapabilityDescriptor", + "import eu.corentic.springrag.agent.capability.DescribedAgentCapability", + "import eu.corentic.springrag.agent.capability.TransportExposedAgentCapability", + "import io.mockk.every", + "import io.mockk.mockk", + "import org.junit.jupiter.api.Assertions.assertEquals", + "import org.junit.jupiter.api.Assertions.assertThrows", + "import org.junit.jupiter.api.Test", + "import io.mockk.coEvery", + "import io.mockk.coVerify", + "import io.mockk.verify", + "import kotlinx.coroutines.test.runTest", + "import org.junit.jupiter.api.Assertions.assertDoesNotThrow" + ], + "arg_patterns": {} + }, + { + "label": "agents/wikipedia/static/src/main/kotlin/eu/corentic/springrag/agent/wikipedia", + "method_count": 3, + "grammar": "root ::= (\"WikipediaLookupResponse\" | \"normalize\" | \"return keywordMatch ?: WikipediaLookupResponse(\n topic = request.topic,\n summary = \\\"No static encyclopedia entry was found for \\\\\\\"${request.topic}\\\\\\\". This static capability can later be replaced with a real Wikipedia or MCP-backed lookup agent.\\\",\n wikipediaUrl = null,\n found = false\n )\" | \"topic\")?+ \"lowercase\"?+ \"replace\"?+ \"Regex\"?", + "grammar_clean": "root ::= (\"WikipediaLookupResponse\" | \"normalize\" | \"return keywordMatch ?: WikipediaLookupResponse(\n topic = request.topic,\n summary = \\\"No static encyclopedia entry was found for \\\\\\\"${request.topic}\\\\\\\". This static capability can later be replaced with a real Wikipedia or MCP-backed lookup agent.\\\",\n wikipediaUrl = null,\n found = false\n )\" | \"topic\")?+ \"lowercase\"?+ \"replace\"?+ \"Regex\"?", + "noise_ratio": 0.3, + "symbols_before": 10, + "symbols_after": 7, + "algorithm": "CRX", + "mdl_score": 120, + "imports": [ + "import eu.corentic.springrag.agent.capability.DescribedAgentCapability", + "import eu.corentic.springrag.agent.capability.TransportExposedAgentCapability", + "import org.springframework.stereotype.Component" + ], + "arg_patterns": {} + }, + { + "label": "agents/wikipedia/static/src/test/kotlin/eu/corentic/springrag/agent/wikipedia", + "method_count": 3, + "grammar": "root ::= \"WikipediaLookupRequest\"? (\"found\" | \"summary\" | \"topic\")?+ \"wikipediaUrl\"?", + "grammar_clean": "root ::= \"WikipediaLookupRequest\"? (\"found\" | \"summary\" | \"topic\")?+ \"wikipediaUrl\"?", + "noise_ratio": 0.55, + "symbols_before": 11, + "symbols_after": 5, + "algorithm": "CRX", + "mdl_score": 8136, + "imports": [ + "import kotlinx.coroutines.test.runTest", + "import org.junit.jupiter.api.Assertions.assertEquals", + "import org.junit.jupiter.api.Assertions.assertFalse", + "import org.junit.jupiter.api.Assertions.assertTrue", + "import org.junit.jupiter.api.Test" + ], + "arg_patterns": {} + }, + { + "label": "app/src", + "method_count": 6, + "grammar": "root ::= (\"isRunning\" | \"neo4jContainer\" | \"ollamaContainer\" | \"qdrantContainer\")?+ \"YamlPropertiesFactoryBean\"? \"getenv\"?+ \"activeProfiles\"? \"setResources\"?+ \"return WebTestClient.bindToServer().baseUrl(baseUrl).build()\"? \"ClassPathResource\"? \"bindToServer\"?+ \"ifBlank\"?+ \"`object`\"? \"baseUrl\"?+ (\"ConfigurableEnvironment\" | \"EnumerablePropertySource\" | \"getProperty\" | \"info\" | \"linkedSetOf\" | \"propertyNames\" | \"propertySources\" | \"return if (SECRET_KEY_PATTERNS.any { it.containsMatchIn(key) }) \\\"******\\\" else value\" | \"return value\" | \"sortedBy\" | \"warn\")?+ \"any\"?+ \"maskValue\"? \"replace\"?+ \"containsMatchIn\"?+", + "grammar_clean": "root ::= (\"isRunning\" | \"neo4jContainer\" | \"ollamaContainer\" | \"qdrantContainer\")?+ \"YamlPropertiesFactoryBean\"? \"getenv\"?+ \"activeProfiles\"? \"setResources\"?+ \"return WebTestClient.bindToServer().baseUrl(baseUrl).build()\"? \"ClassPathResource\"? \"bindToServer\"?+ \"ifBlank\"?+ \"`object`\"? \"baseUrl\"?+ (\"ConfigurableEnvironment\" | \"EnumerablePropertySource\" | \"getProperty\" | \"info\" | \"linkedSetOf\" | \"propertyNames\" | \"propertySources\" | \"return if (SECRET_KEY_PATTERNS.any { it.containsMatchIn(key) }) \\\"******\\\" else value\" | \"return value\" | \"sortedBy\" | \"warn\")?+ \"any\"?+ \"maskValue\"? \"replace\"?+ \"containsMatchIn\"?+", + "noise_ratio": 0.36, + "symbols_before": 45, + "symbols_after": 29, + "algorithm": "CRX", + "mdl_score": 0, + "imports": [ + "import io.cucumber.spring.CucumberContextConfiguration", + "import org.springframework.boot.test.context.SpringBootTest", + "import org.springframework.boot.test.context.TestConfiguration", + "import org.springframework.context.annotation.Bean", + "import org.springframework.context.annotation.Import", + "import org.springframework.test.context.ActiveProfiles", + "import org.springframework.test.web.reactive.server.WebTestClient", + "import io.github.oshai.kotlinlogging.KotlinLogging", + "import org.springframework.boot.ApplicationArguments", + "import org.springframework.boot.ApplicationRunner", + "import org.springframework.core.env.ConfigurableEnvironment", + "import org.springframework.core.env.Environment", + "import org.springframework.core.env.EnumerablePropertySource", + "import org.springframework.stereotype.Component", + "import eu.corentic.springrag.config.BaseSystemTest", + "import eu.corentic.springrag.testcontainers.SharedContainers", + "import kotlin.test.assertNotNull", + "import org.junit.jupiter.api.Assertions.assertTrue", + "import org.junit.jupiter.api.Test", + "import org.springframework.boot.webtestclient.autoconfigure.AutoConfigureWebTestClient", + "import kotlin.test.assertEquals", + "import org.springframework.beans.factory.config.YamlPropertiesFactoryBean", + "import org.springframework.core.io.ClassPathResource" + ], + "arg_patterns": {} + }, + { + "label": "app/src/e2eTest/kotlin/eu/corentic/springrag/e2e/cucumber/steps", + "method_count": 17, + "grammar": "root ::= \"exchange\"?+ \"post\"?+ \"expectStatus\"?+ \"uri\"?+ \"contentType\"?+", + "grammar_clean": "root ::= \"exchange\"?+ \"post\"?+ \"expectStatus\"?+ \"uri\"?+ \"contentType\"?+", + "noise_ratio": 0.0, + "symbols_before": 5, + "symbols_after": 5, + "algorithm": "CRX", + "mdl_score": 0, + "imports": [ + "import eu.corentic.springrag.e2e.cucumber.config.ScenarioContext", + "import io.cucumber.java.en.Given", + "import org.springframework.beans.factory.annotation.Autowired", + "import org.springframework.http.MediaType", + "import org.springframework.test.web.reactive.server.WebTestClient", + "import java.util.UUID", + "import io.cucumber.java.en.Then", + "import io.cucumber.java.en.When", + "import io.cucumber.java.Before", + "import org.junit.jupiter.api.Assertions.assertNotNull", + "import org.awaitility.Awaitility.await", + "import org.junit.jupiter.api.Assertions.assertEquals", + "import org.springframework.http.client.MultipartBodyBuilder", + "import org.springframework.web.reactive.function.BodyInserters", + "import java.io.File", + "import java.time.Duration" + ], + "arg_patterns": {} + }, + { + "label": "app/src/integrationTest/kotlin/eu/corentic/springrag/config", + "method_count": 15, + "imports": [ + "import org.springframework.batch.core.repository.JobRepository", + "import org.springframework.batch.test.JobRepositoryTestUtils", + "import org.springframework.boot.test.context.TestConfiguration", + "import org.springframework.context.annotation.Bean", + "import ai.docling.serve.api.DoclingServeApi", + "import eu.corentic.springrag.agent.rag.embabel.EmbabelRagResponseInvoker", + "import eu.corentic.springrag.agent.summarizer.embabel.EmbabelSummarizerResponseInvoker", + "import com.embabel.agent.core.AgentPlatform", + "import io.mockk.mockk", + "import io.qdrant.client.QdrantClient", + "import org.neo4j.driver.Driver", + "import org.neo4j.driver.Session", + "import org.springframework.ai.chat.model.ChatModel", + "import org.springframework.ai.chat.prompt.ChatOptions", + "import org.springframework.ai.embedding.EmbeddingModel", + "import org.springframework.ai.vectorstore.VectorStore", + "import org.springframework.context.annotation.Primary", + "import org.springframework.security.authentication.ReactiveAuthenticationManager", + "import org.springframework.batch.core.launch.JobOperator" + ], + "arg_patterns": {} + }, + { + "label": "app/src/integrationTest/kotlin/eu/corentic/springrag/controller", + "method_count": 5, + "grammar": "root ::= (\"Ok\" | \"ParsedJwt\" | \"SimpleGrantedAuthority\" | \"any\" | \"extractAuthorities\" | \"extractUsername\" | \"parseToken\" | \"validateToken\")?+ \"generateToken\"?+ \"ByteArray\"? \"bindToServer\"?+ \"User\"? \"InputStreamResource\"?+ \"baseUrl\"?+ \"ROLE_ADMIN\"? \"ByteArrayInputStream\"? \"mutate\"?+ \"fun\"? \"defaultHeader\"?+ \"MultipartBodyBuilder\"? \"part\"?+ (\"header\" | \"post\" | \"uri\")?+ \"AUTHORIZATION\"? \"contentType\"?+ \"MULTIPART_FORM_DATA\"? \"body\"?+ \"fromMultipartData\"?+ \"exchange\"?+ \"expectStatus\"?+ \"isNotFound\"? \"isOk\"? \"expectBody\"?+ \"jsonPath\"?+ \"isEqualTo\"?+", + "grammar_clean": "root ::= (\"Ok\" | \"ParsedJwt\" | \"SimpleGrantedAuthority\" | \"any\" | \"extractAuthorities\" | \"extractUsername\" | \"parseToken\" | \"validateToken\")?+ \"generateToken\"?+ \"ByteArray\"? \"bindToServer\"?+ \"User\"? \"InputStreamResource\"?+ \"baseUrl\"?+ \"ROLE_ADMIN\"? \"ByteArrayInputStream\"? \"mutate\"?+ \"fun\"? \"defaultHeader\"?+ \"MultipartBodyBuilder\"? \"part\"?+ (\"header\" | \"post\" | \"uri\")?+ \"AUTHORIZATION\"? \"contentType\"?+ \"MULTIPART_FORM_DATA\"? \"body\"?+ \"fromMultipartData\"?+ \"exchange\"?+ \"expectStatus\"?+ \"isNotFound\"? \"isOk\"? \"expectBody\"?+ \"jsonPath\"?+ \"isEqualTo\"?+", + "noise_ratio": 0.12, + "symbols_before": 41, + "symbols_after": 36, + "algorithm": "CRX", + "mdl_score": 0, + "imports": [ + "import eu.corentic.springrag.config.IntegrationTestConfig", + "import eu.corentic.springrag.security.model.Role", + "import eu.corentic.springrag.security.model.User", + "import eu.corentic.springrag.security.service.JwtService", + "import org.junit.jupiter.api.Test", + "import org.junit.jupiter.api.BeforeEach", + "import org.springframework.beans.factory.annotation.Autowired", + "import org.springframework.boot.test.context.SpringBootTest", + "import org.springframework.boot.webtestclient.autoconfigure.AutoConfigureWebTestClient", + "import org.springframework.context.annotation.Import", + "import org.springframework.http.HttpHeaders", + "import org.springframework.test.context.ActiveProfiles", + "import org.springframework.test.web.reactive.server.WebTestClient", + "import com.ninjasquad.springmockk.MockkBean", + "import eu.corentic.springrag.common.Outcome", + "import eu.corentic.springrag.service.job.JobService", + "import eu.corentic.springrag.service.knowledgebase.KnowledgeBaseService", + "import io.mockk.every", + "import java.io.ByteArrayInputStream", + "import org.springframework.core.io.InputStreamResource", + "import org.springframework.http.HttpStatus", + "import org.springframework.http.MediaType", + "import org.springframework.http.client.MultipartBodyBuilder", + "import org.springframework.security.core.authority.SimpleGrantedAuthority", + "import org.springframework.web.reactive.function.BodyInserters", + "import org.springframework.boot.test.web.server.LocalServerPort" + ], + "arg_patterns": {} + }, + { + "label": "app/src/integrationTest/kotlin/eu/corentic/springrag/service", + "method_count": 3, + "grammar": "root ::= (\"Instant\" | \"JobId\" | \"KnowledgeBaseId\" | \"common\" | \"corentic\" | \"ids\" | \"parse\" | \"randomUUID\" | \"springrag\" | \"time\")?+ \"stream\"?+ \"model\"? (\"Assertions\" | \"anyMatch\" | \"api\" | \"expected\" | \"java\" | \"junit\" | \"jupiter\")?+ \"KnowledgeBase\"?+ \"simpleName\"? \"existsById\"?+ \"findById\"?+ \"existsByJobIdAndKnowledgeBaseId\"?+ \"deleteKnowledgeBase\"?+ \"deleteDocument\"?+ \"KnowledgeBaseDeletionRequested\"? \"DocumentDeletionRequested\"? \"assertApplicationEventPublished\"?", + "grammar_clean": "root ::= (\"Instant\" | \"JobId\" | \"KnowledgeBaseId\" | \"common\" | \"corentic\" | \"ids\" | \"parse\" | \"randomUUID\" | \"springrag\" | \"time\")?+ \"stream\"?+ \"model\"? (\"Assertions\" | \"anyMatch\" | \"api\" | \"expected\" | \"java\" | \"junit\" | \"jupiter\")?+ \"KnowledgeBase\"?+ \"simpleName\"? \"existsById\"?+ \"findById\"?+ \"existsByJobIdAndKnowledgeBaseId\"?+ \"deleteKnowledgeBase\"?+ \"deleteDocument\"?+ \"KnowledgeBaseDeletionRequested\"? \"DocumentDeletionRequested\"? \"assertApplicationEventPublished\"?", + "noise_ratio": 0.09, + "symbols_before": 32, + "symbols_after": 29, + "algorithm": "CRX", + "mdl_score": 0, + "imports": [ + "import com.ninjasquad.springmockk.MockkBean", + "import eu.corentic.springrag.config.IntegrationTestConfig", + "import eu.corentic.springrag.model.event.DocumentDeletionRequested", + "import eu.corentic.springrag.model.event.KnowledgeBaseDeletionRequested", + "import eu.corentic.springrag.service.knowledgebase.KnowledgeBaseApplicationService", + "import eu.corentic.springrag.service.port.KnowledgeBaseDocumentPort", + "import eu.corentic.springrag.service.port.KnowledgeBasePort", + "import io.mockk.every", + "import java.util.UUID", + "import org.junit.jupiter.api.BeforeEach", + "import org.junit.jupiter.api.Test", + "import org.springframework.beans.factory.annotation.Autowired", + "import org.springframework.boot.test.context.SpringBootTest", + "import org.springframework.context.annotation.Import", + "import org.springframework.test.context.ActiveProfiles", + "import org.springframework.test.context.event.ApplicationEvents", + "import org.springframework.test.context.event.RecordApplicationEvents" + ], + "arg_patterns": {} + }, + { + "label": "app/src/systemTest/kotlin/eu/corentic/springrag/config", + "method_count": 14, + "imports": [ + "import eu.corentic.springrag.testcontainers.OllamaModelSupport", + "import eu.corentic.springrag.testcontainers.QdrantTestSupport", + "import eu.corentic.springrag.testcontainers.QdrantTestSupport.recreateTestCollection", + "import eu.corentic.springrag.testcontainers.SharedContainers", + "import eu.corentic.springrag.testcontainers.SharedContainers.ContainerType", + "import io.qdrant.client.QdrantClient", + "import java.time.Duration", + "import java.time.Instant", + "import java.util.UUID", + "import org.junit.jupiter.api.Assumptions", + "import org.junit.jupiter.api.BeforeAll", + "import org.junit.jupiter.api.BeforeEach", + "import org.neo4j.driver.Driver", + "import org.springframework.beans.factory.annotation.Autowired", + "import org.springframework.boot.test.context.SpringBootTest", + "import org.springframework.boot.webtestclient.autoconfigure.AutoConfigureWebTestClient", + "import org.springframework.jdbc.core.JdbcTemplate", + "import org.springframework.security.crypto.password.PasswordEncoder", + "import org.springframework.test.context.ActiveProfiles", + "import org.springframework.test.context.DynamicPropertyRegistry", + "import org.springframework.test.context.DynamicPropertySource", + "import org.springframework.test.context.TestPropertySource", + "import org.springframework.test.web.reactive.server.WebTestClient", + "import org.testcontainers.junit.jupiter.Testcontainers", + "import java.sql.Timestamp", + "import org.springframework.batch.core.repository.JobRepository", + "import org.springframework.batch.test.JobRepositoryTestUtils", + "import org.springframework.boot.test.context.TestConfiguration", + "import org.springframework.context.annotation.Bean", + "import org.mockito.Mockito", + "import org.springframework.context.annotation.Primary" + ], + "arg_patterns": {} + }, + { + "label": "app/src/systemTest/kotlin/eu/corentic/springrag/system", + "method_count": 46, + "imports": [ + "import eu.corentic.springrag.config.BaseSystemTest", + "import eu.corentic.springrag.controller.SessionChatRequest", + "import eu.corentic.springrag.model.ChatResponse", + "import java.time.Duration", + "import org.junit.jupiter.api.Assertions.assertEquals", + "import org.junit.jupiter.api.Assertions.assertNotNull", + "import org.junit.jupiter.api.Assertions.assertTrue", + "import org.junit.jupiter.api.Test", + "import org.springframework.test.web.reactive.server.returnResult", + "import eu.corentic.springrag.config.StorageProperties", + "import eu.corentic.springrag.repository.VectorRepository", + "import eu.corentic.springrag.repository.graph.DocumentJobNodeRepository", + "import eu.corentic.springrag.service.job.JobStatus", + "import eu.corentic.springrag.service.job.JobStatusType", + "import eu.corentic.springrag.service.port.ObjectStoragePort", + "import eu.corentic.springrag.common.ids.asJobId", + "import eu.corentic.springrag.common.ids.asLogicalDocumentId", + "import eu.corentic.springrag.common.ids.asStorageUri", + "import java.io.File", + "import java.nio.file.Files", + "import java.nio.file.Path", + "import java.nio.file.StandardCopyOption", + "import kotlin.io.path.createDirectory", + "import org.awaitility.Awaitility.await", + "import org.junit.jupiter.api.Assertions.assertNotEquals", + "import org.junit.jupiter.api.io.TempDir", + "import org.springframework.beans.factory.annotation.Autowired", + "import org.springframework.core.io.ClassPathResource", + "import org.springframework.http.MediaType", + "import org.springframework.http.client.MultipartBodyBuilder", + "import org.springframework.web.reactive.function.BodyInserters", + "import io.modelcontextprotocol.client.McpClient", + "import io.modelcontextprotocol.client.McpSyncClient", + "import io.modelcontextprotocol.client.transport.WebClientStreamableHttpTransport", + "import io.modelcontextprotocol.spec.McpSchema", + "import org.springframework.boot.test.web.server.LocalServerPort", + "import org.springframework.test.web.reactive.server.WebTestClient", + "import org.springframework.web.reactive.function.client.WebClient", + "import eu.corentic.springrag.common.ids.asKnowledgeBaseId", + "import kotlin.test.assertEquals", + "import kotlin.test.assertNotEquals", + "import kotlin.test.assertTrue", + "import org.neo4j.driver.Values", + "import eu.corentic.springrag.service.job.JobService", + "import kotlinx.coroutines.runBlocking", + "import org.junit.jupiter.api.assertThrows", + "import java.util.*", + "import eu.corentic.springrag.model.VectorChunk", + "import eu.corentic.springrag.testcontainers.QdrantTestSupport", + "import java.util.stream.Stream", + "import org.awaitility.core.ConditionTimeoutException", + "import org.junit.jupiter.api.Assertions.*", + "import org.junit.jupiter.params.ParameterizedTest", + "import org.junit.jupiter.params.provider.Arguments", + "import org.junit.jupiter.params.provider.MethodSource" + ], + "arg_patterns": {} + }, + { + "label": "app/src/test/kotlin/eu/corentic/springrag/architecture", + "method_count": 87, + "grammar": "root ::= \"contains\"+", + "noise_ratio": 1.0, + "algorithm": "CRX", + "mdl_score": 2, + "imports": [ + "import java.nio.file.Files", + "import java.nio.file.Path", + "import kotlin.io.path.exists", + "import org.junit.jupiter.api.Assertions.assertTrue", + "import org.junit.jupiter.api.Test", + "import org.junit.jupiter.api.fail", + "import com.lemonappdev.konsist.api.Konsist", + "import com.lemonappdev.konsist.api.ext.list.withAnnotationOf", + "import com.lemonappdev.konsist.api.verify.assertTrue", + "import org.springframework.stereotype.Service", + "import java.io.IOException", + "import java.nio.file.FileVisitResult", + "import java.nio.file.Paths", + "import java.nio.file.SimpleFileVisitor", + "import java.nio.file.attribute.BasicFileAttributes" + ], + "arg_patterns": {} + }, + { + "label": "app/src/test/kotlin/eu/corentic/springrag/config", + "method_count": 3, + "grammar": "root ::= \"loadYaml\"? \"YamlPropertiesFactoryBean\"? \"setResources\"?+ \"containsKey\"?+ \"ClassPathResource\"? \"return factory.`object` ?: emptyMap()\"? \"`object`\"?", + "grammar_clean": "root ::= \"loadYaml\"? \"YamlPropertiesFactoryBean\"? \"setResources\"?+ \"containsKey\"?+ \"ClassPathResource\"? \"return factory.`object` ?: emptyMap()\"? \"`object`\"?", + "noise_ratio": 0.36, + "symbols_before": 11, + "symbols_after": 7, + "algorithm": "CRX", + "mdl_score": 480, + "imports": [ + "import kotlin.test.assertEquals", + "import kotlin.test.assertFalse", + "import kotlin.test.assertTrue", + "import org.junit.jupiter.api.Test", + "import org.springframework.beans.factory.config.YamlPropertiesFactoryBean", + "import org.springframework.core.io.ClassPathResource" + ], + "arg_patterns": {} + }, + { + "label": "buildSrc/src/main/kotlin", + "method_count": 8, + "grammar": "root ::= \"getByType\"+ \"SourceSetContainer\"?", + "grammar_clean": "root ::= \"getByType\"+ \"SourceSetContainer\"?", + "noise_ratio": 0.0, + "symbols_before": 2, + "symbols_after": 2, + "algorithm": "CRX", + "mdl_score": 5, + "imports": [ + "import org.gradle.api.Project", + "import org.gradle.api.artifacts.VersionCatalogsExtension", + "import org.gradle.api.file.SourceDirectorySet", + "import org.gradle.api.plugins.JavaPluginExtension", + "import org.gradle.api.tasks.SourceSet", + "import org.gradle.api.tasks.SourceSetContainer", + "import org.gradle.api.tasks.TaskProvider", + "import org.gradle.api.tasks.testing.Test", + "import org.gradle.jvm.toolchain.JavaLanguageVersion", + "import org.gradle.kotlin.dsl.get", + "import org.gradle.kotlin.dsl.getByType", + "import org.gradle.kotlin.dsl.named", + "import org.gradle.kotlin.dsl.register", + "import org.gradle.kotlin.dsl.withType" + ], + "arg_patterns": {} + }, + { + "label": "buildSrc/src/test/kotlin", + "method_count": 5, + "grammar": "root ::= (\"builder\" | \"withName\" | \"withParent\")?+ \"withType\"?+ \"configureStandardRepositories\"?+ \"pluginManager\"? \"MavenArtifactRepository\"? \"mavenRepositoryUrls\"?+ \"extensions\"? \"getByType\"?+ \"SourceSetContainer\"? \"java\"? \"create\"?+ \"registerJvmTestTask\"?+ (\"named\" | \"register\" | \"registerStandardAggregateVerificationTasks\" | \"tasks\")?+ (\"URI\" | \"classesDirs\" | \"classpath\" | \"description\" | \"files\" | \"getDependencies\" | \"group\" | \"output\" | \"path\" | \"runtimeClasspath\" | \"taskDependencies\" | \"testClassesDirs\" | \"toSet\" | \"url\")?+ \"isFailOnNoMatchingTests\"?", + "grammar_clean": "root ::= (\"builder\" | \"withName\" | \"withParent\")?+ \"withType\"?+ \"configureStandardRepositories\"?+ \"pluginManager\"? \"MavenArtifactRepository\"? \"mavenRepositoryUrls\"?+ \"extensions\"? \"getByType\"?+ \"SourceSetContainer\"? \"java\"? \"create\"?+ \"registerJvmTestTask\"?+ (\"named\" | \"register\" | \"registerStandardAggregateVerificationTasks\" | \"tasks\")?+ (\"URI\" | \"classesDirs\" | \"classpath\" | \"description\" | \"files\" | \"getDependencies\" | \"group\" | \"output\" | \"path\" | \"runtimeClasspath\" | \"taskDependencies\" | \"testClassesDirs\" | \"toSet\" | \"url\")?+ \"isFailOnNoMatchingTests\"?", + "noise_ratio": 0.28, + "symbols_before": 46, + "symbols_after": 33, + "algorithm": "CRX", + "mdl_score": 0, + "imports": [ + "import java.net.URI", + "import kotlin.test.assertEquals", + "import kotlin.test.assertFalse", + "import kotlin.test.assertNotNull", + "import kotlin.test.assertTrue", + "import org.gradle.api.artifacts.repositories.MavenArtifactRepository", + "import org.gradle.api.tasks.SourceSetContainer", + "import org.gradle.testfixtures.ProjectBuilder", + "import org.junit.jupiter.api.Test" + ], + "arg_patterns": {} + }, + { + "label": "entrypoints/agent-mcp-server/src/main/kotlin/eu/corentic/springrag/mcp", + "method_count": 3, + "grammar": "root ::= \"mono\"? \"listCapabilities\"?+ \"AgentCapabilityDescriptor\"? (\"KnowledgeBaseId\" | \"RagInvocation\" | \"RagRequest\" | \"WikipediaLookupRequest\" | \"addTextContent\" | \"builder\" | \"capabilityType\" | \"description\" | \"displayName\" | \"id\" | \"mcp\" | \"structuredContent\" | \"summary\" | \"toMarkdownSummary\" | \"topic\" | \"wikipediaUrl\")?+ \"found\"?", + "grammar_clean": "root ::= \"mono\"? \"listCapabilities\"?+ \"AgentCapabilityDescriptor\"? (\"KnowledgeBaseId\" | \"RagInvocation\" | \"RagRequest\" | \"WikipediaLookupRequest\" | \"addTextContent\" | \"builder\" | \"capabilityType\" | \"description\" | \"displayName\" | \"id\" | \"mcp\" | \"structuredContent\" | \"summary\" | \"toMarkdownSummary\" | \"topic\" | \"wikipediaUrl\")?+ \"found\"?", + "noise_ratio": 0.33, + "symbols_before": 30, + "symbols_after": 20, + "algorithm": "CRX", + "mdl_score": 1512, + "imports": [ + "import eu.corentic.springrag.agent.capability.AgentCapabilityDescriptor", + "import eu.corentic.springrag.agent.capability.AgentCapabilityDirectory", + "import eu.corentic.springrag.agent.capability.isExposedOverMcp", + "import io.modelcontextprotocol.spec.McpSchema.CallToolResult", + "import kotlinx.coroutines.reactor.mono", + "import org.springaicommunity.mcp.annotation.McpTool", + "import org.springframework.stereotype.Component", + "import reactor.core.publisher.Mono", + "import eu.corentic.springrag.agent.capability.AgentExecutionContext", + "import eu.corentic.springrag.agent.rag.RagAgentInvocationGateway", + "import eu.corentic.springrag.agent.rag.RagInvocation", + "import eu.corentic.springrag.agent.rag.RagRequest", + "import eu.corentic.springrag.common.ids.KnowledgeBaseId", + "import eu.corentic.springrag.model.toMarkdownSummary", + "import org.springaicommunity.mcp.annotation.McpToolParam", + "import eu.corentic.springrag.agent.wikipedia.WikipediaLookupInvocationGateway", + "import eu.corentic.springrag.agent.wikipedia.WikipediaLookupRequest" + ], + "arg_patterns": {} + }, + { + "label": "entrypoints/agent-mcp-server/src/test/kotlin/eu/corentic/springrag/mcp", + "method_count": 3, + "grammar": "root ::= \"AgentCapabilityDescriptor\"?+ \"WikipediaLookupResponse\"? \"ChatResponse\"? (\"Source\" | \"listCapabilities\")?+ \"any\"? (\"ragAnswer\" | \"wikipediaLookup\")?+ \"block\"?+ \"content\"?+ \"TextContent\"? \"text\"?+ \"@\"? \"Suppress\"?+ (\"List\" | \"Map\" | \"structuredContent\")?+", + "grammar_clean": "root ::= \"AgentCapabilityDescriptor\"?+ \"WikipediaLookupResponse\"? \"ChatResponse\"? (\"Source\" | \"listCapabilities\")?+ \"any\"? (\"ragAnswer\" | \"wikipediaLookup\")?+ \"block\"?+ \"content\"?+ \"TextContent\"? \"text\"?+ \"@\"? \"Suppress\"?+ (\"List\" | \"Map\" | \"structuredContent\")?+", + "noise_ratio": 0.39, + "symbols_before": 28, + "symbols_after": 17, + "algorithm": "CRX", + "mdl_score": 0, + "imports": [ + "import eu.corentic.springrag.agent.capability.AgentCapabilityDescriptor", + "import eu.corentic.springrag.agent.capability.AgentCapabilityDirectory", + "import io.mockk.every", + "import io.mockk.mockk", + "import io.modelcontextprotocol.spec.McpSchema.TextContent", + "import org.junit.jupiter.api.Assertions.assertEquals", + "import org.junit.jupiter.api.Assertions.assertTrue", + "import org.junit.jupiter.api.Test", + "import eu.corentic.springrag.agent.rag.RagAgentInvocationGateway", + "import eu.corentic.springrag.model.ChatResponse", + "import eu.corentic.springrag.model.Source", + "import io.mockk.coEvery", + "import eu.corentic.springrag.agent.wikipedia.WikipediaLookupInvocationGateway", + "import eu.corentic.springrag.agent.wikipedia.WikipediaLookupResponse" + ], + "arg_patterns": {} + }, + { + "label": "entrypoints/web/src/main/kotlin/eu/corentic/springrag/config", + "method_count": 3, + "grammar": "root ::= \"defer\"?+ \"addMapping\"?+ \"allowedOriginPatterns\"?+ \"split\"?+ (\"doFinally\" | \"method\" | \"name\" | \"nanoTime\" | \"path\" | \"pathWithinApplication\" | \"request\" | \"response\" | \"return chain.filter(exchange)\" | \"return chain.filter(exchange)\n .doFinally {\n val tookMs = (System.nanoTime() - startedAt) / 1_000_000\n val status = exchange.response.statusCode?.value() ?: 0\n logger.info { \\\"LIBRECHAT $method $path -> $status (${tookMs}ms)\\\" }\n }\" | \"startsWith\" | \"statusCode\" | \"uri\" | \"value\")?+ \"info\"?+ \"toTypedArray\"?+ \"allowedMethods\"?+ \"allowedHeaders\"?+ \"allowCredentials\"?+", + "grammar_clean": "root ::= \"defer\"?+ \"addMapping\"?+ \"allowedOriginPatterns\"?+ \"split\"?+ (\"doFinally\" | \"method\" | \"name\" | \"nanoTime\" | \"path\" | \"pathWithinApplication\" | \"request\" | \"response\" | \"return chain.filter(exchange)\" | \"return chain.filter(exchange)\n .doFinally {\n val tookMs = (System.nanoTime() - startedAt) / 1_000_000\n val status = exchange.response.statusCode?.value() ?: 0\n logger.info { \\\"LIBRECHAT $method $path -> $status (${tookMs}ms)\\\" }\n }\" | \"startsWith\" | \"statusCode\" | \"uri\" | \"value\")?+ \"info\"?+ \"toTypedArray\"?+ \"allowedMethods\"?+ \"allowedHeaders\"?+ \"allowCredentials\"?+", + "noise_ratio": 0.3, + "symbols_before": 33, + "symbols_after": 23, + "algorithm": "CRX", + "mdl_score": 0, + "imports": [ + "import org.springframework.beans.factory.annotation.Value", + "import org.springframework.context.annotation.Configuration", + "import org.springframework.web.reactive.config.CorsRegistry", + "import org.springframework.web.reactive.config.WebFluxConfigurer", + "import org.slf4j.MDC", + "import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty", + "import org.springframework.web.server.ServerWebExchange", + "import org.springframework.web.server.WebFilter", + "import org.springframework.web.server.WebFilterChain", + "import reactor.core.publisher.Mono", + "import io.github.oshai.kotlinlogging.KotlinLogging", + "import org.springframework.core.Ordered", + "import org.springframework.core.annotation.Order", + "import org.springframework.stereotype.Component" + ], + "arg_patterns": {} + }, + { + "label": "entrypoints/web/src/main/kotlin/eu/corentic/springrag/controller", + "method_count": 58, + "grammar": "root ::= \"warn\"?+ \"message\"? \"status\"?+", + "grammar_clean": "root ::= \"warn\"?+ \"message\"? \"status\"?+", + "noise_ratio": 0.0, + "symbols_before": 3, + "symbols_after": 3, + "algorithm": "CRX", + "mdl_score": 14, + "imports": [ + "import eu.corentic.springrag.common.ids.BatchId", + "import eu.corentic.springrag.config.StorageProperties", + "import eu.corentic.springrag.service.job.BatchOwnershipService", + "import eu.corentic.springrag.service.job.JobService", + "import eu.corentic.springrag.service.job.JobStatus", + "import eu.corentic.springrag.service.knowledgebase.KnowledgeBaseApplicationService", + "import eu.corentic.springrag.service.knowledgebase.KnowledgeBaseNotFoundException", + "import jakarta.validation.constraints.NotBlank", + "import jakarta.validation.constraints.Pattern", + "import org.springframework.http.ResponseEntity", + "import org.springframework.security.access.prepost.PreAuthorize", + "import org.springframework.security.core.Authentication", + "import org.springframework.validation.annotation.Validated", + "import org.springframework.web.bind.annotation.*", + "import eu.corentic.springrag.agent.capability.AgentCapabilityDescriptor", + "import eu.corentic.springrag.model.ChatResponse", + "import eu.corentic.springrag.service.chat.ChatService", + "import jakarta.validation.Valid", + "import org.springframework.web.bind.annotation.GetMapping", + "import org.springframework.web.bind.annotation.PostMapping", + "import org.springframework.web.bind.annotation.RequestBody", + "import org.springframework.web.bind.annotation.RequestMapping", + "import org.springframework.web.bind.annotation.RestController", + "import kotlinx.coroutines.TimeoutCancellationException", + "import kotlinx.coroutines.withTimeout", + "import io.github.oshai.kotlinlogging.KotlinLogging", + "import org.springframework.beans.factory.annotation.Value", + "import java.util.UUID", + "import eu.corentic.springrag.controller.dto.ErrorResponse", + "import eu.corentic.springrag.security.service.PasswordPolicyViolationException", + "import eu.corentic.springrag.security.service.UserAlreadyExistsException", + "import eu.corentic.springrag.service.knowledgebase.KnowledgeBaseAlreadyExistsException", + "import eu.corentic.springrag.service.knowledgebase.DocumentNotFoundInKnowledgeBaseException", + "import eu.corentic.springrag.service.knowledgebase.InvalidKnowledgeBaseNameException", + "import eu.corentic.springrag.service.knowledgebase.KnowledgeBaseSizeLimitExceededException", + "import eu.corentic.springrag.service.job.JobAlreadyCompleteException", + "import eu.corentic.springrag.service.job.JobAlreadyRunningException", + "import eu.corentic.springrag.service.job.JobExecutionNotFoundException", + "import eu.corentic.springrag.service.job.BatchOwnershipException", + "import eu.corentic.springrag.service.job.BatchNotFoundException", + "import eu.corentic.springrag.service.job.BatchOwnerRequiredException", + "import eu.corentic.springrag.service.job.JobInputValidationException", + "import jakarta.validation.ConstraintViolationException", + "import org.springframework.http.HttpStatus", + "import org.springframework.http.converter.HttpMessageNotReadableException", + "import org.springframework.core.io.buffer.DataBufferLimitException", + "import org.springframework.web.bind.MethodArgumentNotValidException", + "import org.springframework.web.bind.annotation.ExceptionHandler", + "import org.springframework.web.bind.annotation.RestControllerAdvice", + "import org.springframework.web.method.annotation.MethodArgumentTypeMismatchException", + "import org.springframework.web.server.ServerWebInputException", + "import org.springframework.web.server.MissingRequestValueException", + "import org.springframework.web.bind.support.WebExchangeBindException", + "import eu.corentic.springrag.service.knowledgebase.*", + "import io.swagger.v3.oas.annotations.Operation", + "import io.swagger.v3.oas.annotations.tags.Tag", + "import io.swagger.v3.oas.annotations.Parameter", + "import java.security.Principal", + "import kotlinx.coroutines.reactor.awaitSingle", + "import org.springframework.http.codec.multipart.FilePart", + "import eu.corentic.springrag.common.ids.Filename", + "import eu.corentic.springrag.common.ids.StorageUri", + "import eu.corentic.springrag.service.job.StagedUploadCleanupService", + "import eu.corentic.springrag.service.port.ObjectStoragePort", + "import kotlinx.coroutines.reactor.awaitSingleOrNull", + "import java.nio.file.Files", + "import java.nio.file.Path", + "import org.springframework.core.io.buffer.DataBufferUtils", + "import org.springframework.stereotype.Component", + "import eu.corentic.springrag.security.service.JwtService", + "import eu.corentic.springrag.security.service.UserService", + "import org.springframework.security.crypto.password.PasswordEncoder" + ], + "arg_patterns": {} + }, + { + "label": "entrypoints/web/src/main/kotlin/eu/corentic/springrag/controller/librechat", + "method_count": 29, + "imports": [ + "import com.fasterxml.jackson.annotation.JsonProperty", + "import eu.corentic.springrag.common.ids.JobId", + "import eu.corentic.springrag.common.ids.Filename", + "import eu.corentic.springrag.common.ids.asStorageUri", + "import eu.corentic.springrag.model.GraphTableElement", + "import eu.corentic.springrag.model.GraphTextElement", + "import eu.corentic.springrag.service.document.DocumentIdentity", + "import eu.corentic.springrag.service.port.DocumentIdPort", + "import eu.corentic.springrag.service.port.DocumentImagePort", + "import eu.corentic.springrag.service.port.DocumentParserPort", + "import eu.corentic.springrag.service.port.DocumentParsingRequest", + "import eu.corentic.springrag.service.port.ObjectStoragePort", + "import eu.corentic.springrag.service.port.VectorDocumentDeletionPort", + "import eu.corentic.springrag.service.port.VectorDocumentPort", + "import eu.corentic.springrag.agent.rag.librechat.LibreChatRetrievalInvoker", + "import eu.corentic.springrag.agent.rag.librechat.LibreChatRetrievalRequest", + "import eu.corentic.springrag.service.job.JobService", + "import eu.corentic.springrag.service.job.JobStatusType", + "import eu.corentic.springrag.service.port.AgentKnowledgeBasePort", + "import jakarta.validation.Valid", + "import jakarta.validation.constraints.NotBlank", + "import jakarta.validation.constraints.NotEmpty", + "import kotlinx.coroutines.CoroutineDispatcher", + "import kotlinx.coroutines.withContext", + "import kotlinx.coroutines.reactor.awaitSingleOrNull", + "import org.springframework.http.MediaType", + "import org.springframework.http.ResponseEntity", + "import org.springframework.http.codec.multipart.FilePart", + "import org.springframework.web.bind.annotation.*", + "import org.springframework.core.io.buffer.DataBufferUtils", + "import kotlin.math.max", + "import kotlin.math.min", + "import eu.corentic.springrag.common.ids.BatchId", + "import eu.corentic.springrag.common.ids.StorageUri", + "import eu.corentic.springrag.config.StorageProperties", + "import eu.corentic.springrag.controller.InvalidUploadRequestException", + "import eu.corentic.springrag.service.job.StagedUploadCleanupService", + "import java.nio.file.Files", + "import java.nio.file.Path", + "import java.util.UUID", + "import kotlin.time.Duration.Companion.seconds", + "import kotlinx.coroutines.delay", + "import org.springframework.stereotype.Component" + ], + "arg_patterns": {} + }, + { + "label": "entrypoints/web/src/main/kotlin/eu/corentic/springrag/controller/web", + "method_count": 6, + "grammar": "root ::= \"collectList\"?+ (\"return \\\"chat\\\"\" | \"return \\\"index\\\"\" | \"return \\\"jobs\\\"\" | \"return \\\"knowledge-bases\\\"\" | \"return \\\"upload\\\"\")? \"awaitSingle\"?+ \"try\"? \"handleUpload\"?+ \"name\"? (\"IllegalArgumentException\" | \"InvalidUploadRequestException\" | \"KnowledgeBaseNotFoundException\" | \"RuntimeException\" | \"badRequest\" | \"body\" | \"catch\" | \"internalServerError\" | \"message\" | \"return ResponseEntity.badRequest()\n .body(mapOf(\\\"error\\\" to (e.message ?: \\\"Invalid request\\\")))\" | \"return ResponseEntity.badRequest()\n .body(mapOf(\\\"error\\\" to (e.message ?: \\\"Invalid upload request\\\")))\" | \"return ResponseEntity.badRequest()\n .body(mapOf(\\\"error\\\" to (e.message ?: \\\"Knowledge base not found\\\")))\" | \"return ResponseEntity.internalServerError()\n .body(mapOf(\\\"error\\\" to \\\"Failed to upload files: ${e.message}\\\"))\")?+ \"batchId\"? \"fileCount\"? \"files\"? \"jobTriggered\"? \"jobId\"? \"jobError\"? \"return ResponseEntity.ok(response)\"? \"ok\"?+", + "grammar_clean": "root ::= \"collectList\"?+ (\"return \\\"chat\\\"\" | \"return \\\"index\\\"\" | \"return \\\"jobs\\\"\" | \"return \\\"knowledge-bases\\\"\" | \"return \\\"upload\\\"\")? \"awaitSingle\"?+ \"try\"? \"handleUpload\"?+ \"name\"? (\"IllegalArgumentException\" | \"InvalidUploadRequestException\" | \"KnowledgeBaseNotFoundException\" | \"RuntimeException\" | \"badRequest\" | \"body\" | \"catch\" | \"internalServerError\" | \"message\" | \"return ResponseEntity.badRequest()\n .body(mapOf(\\\"error\\\" to (e.message ?: \\\"Invalid request\\\")))\" | \"return ResponseEntity.badRequest()\n .body(mapOf(\\\"error\\\" to (e.message ?: \\\"Invalid upload request\\\")))\" | \"return ResponseEntity.badRequest()\n .body(mapOf(\\\"error\\\" to (e.message ?: \\\"Knowledge base not found\\\")))\" | \"return ResponseEntity.internalServerError()\n .body(mapOf(\\\"error\\\" to \\\"Failed to upload files: ${e.message}\\\"))\")?+ \"batchId\"? \"fileCount\"? \"files\"? \"jobTriggered\"? \"jobId\"? \"jobError\"? \"return ResponseEntity.ok(response)\"? \"ok\"?+", + "noise_ratio": 0.16, + "symbols_before": 37, + "symbols_after": 31, + "algorithm": "CRX", + "mdl_score": 0, + "imports": [ + "import eu.corentic.springrag.controller.UploadWorkflow", + "import eu.corentic.springrag.controller.InvalidUploadRequestException", + "import eu.corentic.springrag.service.knowledgebase.KnowledgeBaseNotFoundException", + "import java.security.Principal", + "import kotlinx.coroutines.reactor.awaitSingle", + "import org.springframework.http.MediaType", + "import org.springframework.http.ResponseEntity", + "import org.springframework.http.codec.multipart.FilePart", + "import org.springframework.stereotype.Controller", + "import org.springframework.web.bind.annotation.PostMapping", + "import org.springframework.web.bind.annotation.RequestParam", + "import org.springframework.web.bind.annotation.RequestPart", + "import org.springframework.web.bind.annotation.ResponseBody", + "import reactor.core.publisher.Flux", + "import org.springframework.web.bind.annotation.GetMapping" + ], + "arg_patterns": {} + }, + { + "label": "entrypoints/web/src/test/kotlin/eu/corentic/springrag/config", + "method_count": 4, + "grammar": "root ::= \"bindToWebHandler\"?+ \"from\"?+ \"webTestClient\"? \"WebHandler\"? \"post\"?+ (\"OK\" | \"response\" | \"setStatusCode\")?+ \"setComplete\"?+ \"webFilter\"?+ \"AtomicReference\"?+ \"WebFilterChain\"? (\"block\" | \"empty\")?+ \"uri\"?+ \"exchange\"?+ \"expectStatus\"?+ \"isOk\"?", + "grammar_clean": "root ::= \"bindToWebHandler\"?+ \"from\"?+ \"webTestClient\"? \"WebHandler\"? \"post\"?+ (\"OK\" | \"response\" | \"setStatusCode\")?+ \"setComplete\"?+ \"webFilter\"?+ \"AtomicReference\"?+ \"WebFilterChain\"? (\"block\" | \"empty\")?+ \"uri\"?+ \"exchange\"?+ \"expectStatus\"?+ \"isOk\"?", + "noise_ratio": 0.28, + "symbols_before": 25, + "symbols_after": 18, + "algorithm": "CRX", + "mdl_score": 0, + "imports": [ + "import java.util.concurrent.atomic.AtomicReference", + "import org.junit.jupiter.api.Assertions.assertEquals", + "import org.junit.jupiter.api.Assertions.assertNull", + "import org.junit.jupiter.api.Test", + "import org.slf4j.MDC", + "import org.springframework.mock.http.server.reactive.MockServerHttpRequest", + "import org.springframework.mock.web.server.MockServerWebExchange", + "import org.springframework.web.server.WebFilterChain", + "import reactor.core.publisher.Mono", + "import org.springframework.http.HttpStatus", + "import org.springframework.test.web.reactive.server.WebTestClient", + "import org.springframework.web.server.WebHandler" + ], + "arg_patterns": {} + }, + { + "label": "entrypoints/web/src/test/kotlin/eu/corentic/springrag/controller", + "method_count": 83, + "grammar": "root ::= \"expectBody\"?+ \"post\"?+ \"jsonPath\"?+ \"uri\"?+ \"isEqualTo\"?+ \"exchange\"?+ \"expectStatus\"?+", + "grammar_clean": "root ::= \"expectBody\"?+ \"post\"?+ \"jsonPath\"?+ \"uri\"?+ \"isEqualTo\"?+ \"exchange\"?+ \"expectStatus\"?+", + "noise_ratio": 0.0, + "symbols_before": 7, + "symbols_after": 7, + "algorithm": "CRX", + "mdl_score": 0, + "imports": [ + "import eu.corentic.springrag.common.ids.BatchId", + "import eu.corentic.springrag.config.StorageProperties", + "import eu.corentic.springrag.service.job.BatchOwnershipService", + "import eu.corentic.springrag.service.job.JobService", + "import eu.corentic.springrag.service.job.BatchOwnershipException", + "import eu.corentic.springrag.service.job.JobStatus", + "import eu.corentic.springrag.service.job.JobStatusType", + "import eu.corentic.springrag.service.knowledgebase.KnowledgeBaseApplicationService", + "import eu.corentic.springrag.service.knowledgebase.KnowledgeBaseResponse", + "import io.mockk.every", + "import io.mockk.mockk", + "import io.mockk.verify", + "import java.nio.file.Path", + "import java.time.Duration", + "import java.time.LocalDateTime", + "import org.junit.jupiter.api.BeforeEach", + "import org.junit.jupiter.api.Test", + "import org.junit.jupiter.api.io.TempDir", + "import org.springframework.test.web.reactive.server.WebTestClient", + "import eu.corentic.springrag.service.job.BatchNotFoundException", + "import eu.corentic.springrag.agent.capability.AgentCapabilityDescriptor", + "import eu.corentic.springrag.model.ChatResponse", + "import eu.corentic.springrag.model.Source", + "import eu.corentic.springrag.service.chat.ChatService", + "import io.mockk.coEvery", + "import io.mockk.coVerify", + "import kotlinx.coroutines.test.runTest", + "import org.springframework.http.codec.json.JacksonJsonDecoder", + "import org.springframework.http.codec.json.JacksonJsonEncoder", + "import tools.jackson.databind.json.JsonMapper", + "import tools.jackson.module.kotlin.KotlinModule", + "import org.junit.jupiter.api.Assertions.assertEquals", + "import org.junit.jupiter.api.Assertions.assertNotNull", + "import eu.corentic.springrag.security.service.PasswordPolicyViolationException", + "import eu.corentic.springrag.security.service.UserAlreadyExistsException", + "import eu.corentic.springrag.service.knowledgebase.DocumentNotFoundInKnowledgeBaseException", + "import eu.corentic.springrag.service.knowledgebase.KnowledgeBaseAlreadyExistsException", + "import eu.corentic.springrag.service.knowledgebase.KnowledgeBaseSizeLimitExceededException", + "import eu.corentic.springrag.service.knowledgebase.InvalidKnowledgeBaseNameException", + "import eu.corentic.springrag.service.knowledgebase.KnowledgeBaseNotFoundException", + "import eu.corentic.springrag.service.job.JobAlreadyCompleteException", + "import eu.corentic.springrag.service.job.BatchOwnerRequiredException", + "import eu.corentic.springrag.service.job.JobAlreadyRunningException", + "import eu.corentic.springrag.service.job.JobExecutionNotFoundException", + "import eu.corentic.springrag.service.job.JobInputValidationException", + "import java.io.ByteArrayInputStream", + "import kotlin.test.assertEquals", + "import org.springframework.core.io.buffer.DataBufferLimitException", + "import org.springframework.core.MethodParameter", + "import org.springframework.http.HttpHeaders", + "import org.springframework.http.HttpInputMessage", + "import org.springframework.http.HttpStatus", + "import org.springframework.http.converter.HttpMessageNotReadableException", + "import org.springframework.web.method.annotation.MethodArgumentTypeMismatchException", + "import eu.corentic.springrag.service.knowledgebase.CreateKnowledgeBaseRequest", + "import eu.corentic.springrag.service.knowledgebase.KnowledgeBaseListItem", + "import eu.corentic.springrag.service.knowledgebase.KnowledgeBaseStatistics", + "import io.mockk.just", + "import io.mockk.runs", + "import java.time.Instant", + "import kotlinx.coroutines.runBlocking", + "import org.springframework.http.MediaType", + "import eu.corentic.springrag.service.job.StagedUploadCleanupService", + "import eu.corentic.springrag.service.port.ObjectStoragePort", + "import io.mockk.slot", + "import java.io.File", + "import org.springframework.http.client.MultipartBodyBuilder", + "import org.springframework.web.reactive.function.BodyInserters" + ], + "arg_patterns": {} + }, + { + "label": "entrypoints/web/src/test/kotlin/eu/corentic/springrag/controller/auth", + "method_count": 5, + "grammar": "root ::= (\"CREATED\" | \"LoginRequest\" | \"LoginResponse\" | \"OK\" | \"ROLE_USER\" | \"RegisterRequest\" | \"UNAUTHORIZED\" | \"User\" | \"UserAlreadyExistsException\" | \"body\" | \"findByUsername\" | \"generateToken\" | \"login\" | \"matches\" | \"register\" | \"registerUser\" | \"runBlocking\" | \"statusCode\" | \"token\" | \"username\")?+ \"init\"?+ \"name\"? \"Map\"?+ \"AuthController\"? \"role\"?", + "grammar_clean": "root ::= (\"CREATED\" | \"LoginRequest\" | \"LoginResponse\" | \"OK\" | \"ROLE_USER\" | \"RegisterRequest\" | \"UNAUTHORIZED\" | \"User\" | \"UserAlreadyExistsException\" | \"body\" | \"findByUsername\" | \"generateToken\" | \"login\" | \"matches\" | \"register\" | \"registerUser\" | \"runBlocking\" | \"statusCode\" | \"token\" | \"username\")?+ \"init\"?+ \"name\"? \"Map\"?+ \"AuthController\"? \"role\"?", + "noise_ratio": 0.14, + "symbols_before": 29, + "symbols_after": 25, + "algorithm": "CRX", + "mdl_score": 34845, + "imports": [ + "import eu.corentic.springrag.security.model.Role", + "import eu.corentic.springrag.security.model.User", + "import eu.corentic.springrag.security.service.JwtService", + "import eu.corentic.springrag.security.service.UserAlreadyExistsException", + "import eu.corentic.springrag.security.service.UserService", + "import io.mockk.MockKAnnotations", + "import io.mockk.every", + "import io.mockk.impl.annotations.MockK", + "import kotlinx.coroutines.runBlocking", + "import org.junit.jupiter.api.Assertions.assertEquals", + "import org.junit.jupiter.api.Assertions.assertTrue", + "import org.junit.jupiter.api.BeforeEach", + "import org.junit.jupiter.api.Test", + "import org.junit.jupiter.api.assertThrows", + "import org.springframework.http.HttpStatus", + "import org.springframework.security.crypto.password.PasswordEncoder" + ], + "arg_patterns": {} + }, + { + "label": "entrypoints/web/src/test/kotlin/eu/corentic/springrag/controller/librechat", + "method_count": 46, + "grammar": "root ::= \"exchange\"?+ \"post\"?+ \"expectStatus\"?+ \"uri\"?+ \"isOk\"? \"contentType\"?+ \"expectBody\"?+ \"jsonPath\"?+ \"isEqualTo\"?+", + "grammar_clean": "root ::= \"exchange\"?+ \"post\"?+ \"expectStatus\"?+ \"uri\"?+ \"isOk\"? \"contentType\"?+ \"expectBody\"?+ \"jsonPath\"?+ \"isEqualTo\"?+", + "noise_ratio": 0.18, + "symbols_before": 11, + "symbols_after": 9, + "algorithm": "CRX", + "mdl_score": 0, + "imports": [ + "import eu.corentic.springrag.agent.rag.librechat.LibreChatRetrievalInvoker", + "import eu.corentic.springrag.agent.rag.librechat.LibreChatRetrievalRequest", + "import eu.corentic.springrag.agent.rag.librechat.LibreChatRetrievalResult", + "import eu.corentic.springrag.common.ids.JobId", + "import eu.corentic.springrag.common.ids.asStorageUri", + "import eu.corentic.springrag.controller.GlobalExceptionHandler", + "import eu.corentic.springrag.model.GraphDocument", + "import eu.corentic.springrag.model.GraphTableElement", + "import eu.corentic.springrag.model.GraphTextElement", + "import eu.corentic.springrag.model.ParsedDocument", + "import eu.corentic.springrag.model.VectorChunk", + "import eu.corentic.springrag.service.job.JobService", + "import eu.corentic.springrag.service.job.JobStatus", + "import eu.corentic.springrag.service.job.JobStatusType", + "import eu.corentic.springrag.service.port.AgentKnowledgeBasePort", + "import eu.corentic.springrag.service.port.DocumentIdPort", + "import eu.corentic.springrag.service.port.DocumentImageInfo", + "import eu.corentic.springrag.service.port.DocumentImagePort", + "import eu.corentic.springrag.service.port.DocumentParserPort", + "import eu.corentic.springrag.service.port.ObjectStoragePort", + "import eu.corentic.springrag.service.port.VectorDocumentDeletionPort", + "import eu.corentic.springrag.service.port.VectorDocumentPort", + "import kotlinx.coroutines.CoroutineDispatcher", + "import kotlinx.coroutines.test.UnconfinedTestDispatcher", + "import io.mockk.coEvery", + "import io.mockk.coVerify", + "import io.mockk.every", + "import io.mockk.mockk", + "import io.mockk.slot", + "import io.mockk.verify", + "import org.junit.jupiter.api.BeforeEach", + "import org.junit.jupiter.api.Test", + "import org.springframework.http.HttpMethod", + "import org.springframework.http.MediaType", + "import org.springframework.http.client.MultipartBodyBuilder", + "import org.springframework.test.web.reactive.server.WebTestClient", + "import org.springframework.web.reactive.function.BodyInserters", + "import kotlin.test.assertEquals", + "import kotlin.test.assertNotNull", + "import kotlin.test.assertTrue", + "import eu.corentic.springrag.common.ids.StorageUri", + "import eu.corentic.springrag.config.StorageProperties", + "import eu.corentic.springrag.controller.InvalidUploadRequestException", + "import eu.corentic.springrag.service.job.StagedUploadCleanupService", + "import kotlinx.coroutines.test.runTest", + "import org.springframework.core.io.buffer.DefaultDataBufferFactory", + "import org.springframework.http.HttpHeaders", + "import org.springframework.http.codec.multipart.FilePart", + "import reactor.core.publisher.Flux", + "import kotlin.test.assertContains", + "import kotlin.test.assertFailsWith" + ], + "arg_patterns": {} + }, + { + "label": "entrypoints/web/src/test/kotlin/eu/corentic/springrag/controller/web", + "method_count": 10, + "grammar": "root ::= \"runBlocking\"? \"RuntimeException\"? \"controller\"? \"handleFileUpload\"?+ \"knowledgeBaseExists\"?+ \"just\"?+ \"startBulkJob\"?+ \"filePart\"? \"any\"?+ (\"OK\" | \"statusCode\")?+ \"body\"?", + "grammar_clean": "root ::= \"runBlocking\"? \"RuntimeException\"? \"controller\"? \"handleFileUpload\"?+ \"knowledgeBaseExists\"?+ \"just\"?+ \"startBulkJob\"?+ \"filePart\"? \"any\"?+ (\"OK\" | \"statusCode\")?+ \"body\"?", + "noise_ratio": 0.25, + "symbols_before": 16, + "symbols_after": 12, + "algorithm": "CRX", + "mdl_score": 0, + "imports": [ + "import eu.corentic.springrag.config.StorageProperties", + "import eu.corentic.springrag.controller.UploadWorkflow", + "import eu.corentic.springrag.service.job.BatchOwnershipService", + "import eu.corentic.springrag.service.job.JobService", + "import eu.corentic.springrag.service.job.StagedUploadCleanupService", + "import eu.corentic.springrag.service.knowledgebase.KnowledgeBaseApplicationService", + "import eu.corentic.springrag.service.port.ObjectStoragePort", + "import eu.corentic.springrag.service.knowledgebase.KnowledgeBaseResponse", + "import io.mockk.every", + "import io.mockk.mockk", + "import io.mockk.verify", + "import java.nio.file.Files", + "import java.nio.file.Path", + "import java.time.Duration", + "import java.time.Instant", + "import kotlinx.coroutines.runBlocking", + "import org.junit.jupiter.api.Assertions.assertEquals", + "import org.junit.jupiter.api.Assertions.assertFalse", + "import org.junit.jupiter.api.Assertions.assertTrue", + "import org.junit.jupiter.api.Test", + "import org.junit.jupiter.api.io.TempDir", + "import org.springframework.http.HttpHeaders", + "import org.springframework.http.HttpStatus", + "import org.springframework.http.codec.multipart.FilePart", + "import reactor.core.publisher.Flux", + "import reactor.core.publisher.Mono" + ], + "arg_patterns": {} + }, + { + "label": "infrastructure/adapters", + "method_count": 3, + "grammar": "root ::= \"builder\"?+ \"return Neo4jTransactionManager(driver)\"? \"return CommandLineRunner {\n try {\n driver.session().use { session ->\n logger.info { \\\"[NEO4J] Initializing schema constraints...\\\" }\n\n session.run(\n \\\"CREATE CONSTRAINT document_id_unique IF NOT EXISTS FOR (d:Document) REQUIRE d.id IS UNIQUE\\\"\n )\n session.run(\n \\\"CREATE CONSTRAINT page_id_unique IF NOT EXISTS FOR (p:Page) REQUIRE p.id IS UNIQUE\\\"\n )\n session.run(\n \\\"CREATE CONSTRAINT image_id_unique IF NOT EXISTS FOR (i:ImageData) REQUIRE i.id IS UNIQUE\\\"\n )\n session.run(\n \\\"CREATE CONSTRAINT text_id_unique IF NOT EXISTS FOR (t:TextElement) REQUIRE t.id IS UNIQUE\\\"\n )\n session.run(\n \\\"CREATE CONSTRAINT table_id_unique IF NOT EXISTS FOR (t:TableElement) REQUIRE t.id IS UNIQUE\\\"\n )\n session.run(\n \\\"CREATE CONSTRAINT header_id_unique IF NOT EXISTS FOR (h:SectionHeaderElement) REQUIRE h.id IS UNIQUE\\\"\n )\n session.run(\n \\\"CREATE CONSTRAINT picture_id_unique IF NOT EXISTS FOR (p:PictureElement) REQUIRE p.id IS UNIQUE\\\"\n )\n session.run(\n \\\"CREATE CONSTRAINT knowledge_base_id_unique IF NOT EXISTS FOR (kb:KnowledgeBase) REQUIRE kb.id IS UNIQUE\\\"\n )\n\n session.run(\\\"MATCH (d:Document) WHERE d.version IS NULL SET d.version = 0\\\")\n session.run(\\\"MATCH (p:Page) WHERE p.version IS NULL SET p.version = 0\\\")\n session.run(\\\"MATCH (i:ImageData) WHERE i.version IS NULL SET i.version = 0\\\")\n session.run(\\\"MATCH (t:TextElement) WHERE t.version IS NULL SET t.version = 0\\\")\n session.run(\\\"MATCH (t:TableElement) WHERE t.version IS NULL SET t.version = 0\\\")\n session.run(\\\"MATCH (p:PictureElement) WHERE p.version IS NULL SET p.version = 0\\\")\n session.run(\\\"MATCH (h:SectionHeaderElement) WHERE h.version IS NULL SET h.version = 0\\\")\n session.run(\\\"MATCH (k:KnowledgeBase) WHERE k.version IS NULL SET k.version = 0\\\")\n\n logger.info { \\\"[NEO4J] All unique constraints verified/created\\\" }\n }\n } catch (e: RuntimeException) {\n logger.error(e) { \\\"[NEO4J] Failed to initialize schema\\\" }\n throw e\n }\n }\"? \"chatMemoryRepository\"?+ \"Neo4jTransactionManager\"? \"CommandLineRunner\"? \"maxMessages\"?+ \"try\"? \"session\"?+ \"use\"?+ \"info\"?+ \"catch\"? \"RuntimeException\"? \"throw e\"? \"throw\"?", + "grammar_clean": "root ::= \"builder\"?+ \"return Neo4jTransactionManager(driver)\"? \"return CommandLineRunner {\n try {\n driver.session().use { session ->\n logger.info { \\\"[NEO4J] Initializing schema constraints...\\\" }\n\n session.run(\n \\\"CREATE CONSTRAINT document_id_unique IF NOT EXISTS FOR (d:Document) REQUIRE d.id IS UNIQUE\\\"\n )\n session.run(\n \\\"CREATE CONSTRAINT page_id_unique IF NOT EXISTS FOR (p:Page) REQUIRE p.id IS UNIQUE\\\"\n )\n session.run(\n \\\"CREATE CONSTRAINT image_id_unique IF NOT EXISTS FOR (i:ImageData) REQUIRE i.id IS UNIQUE\\\"\n )\n session.run(\n \\\"CREATE CONSTRAINT text_id_unique IF NOT EXISTS FOR (t:TextElement) REQUIRE t.id IS UNIQUE\\\"\n )\n session.run(\n \\\"CREATE CONSTRAINT table_id_unique IF NOT EXISTS FOR (t:TableElement) REQUIRE t.id IS UNIQUE\\\"\n )\n session.run(\n \\\"CREATE CONSTRAINT header_id_unique IF NOT EXISTS FOR (h:SectionHeaderElement) REQUIRE h.id IS UNIQUE\\\"\n )\n session.run(\n \\\"CREATE CONSTRAINT picture_id_unique IF NOT EXISTS FOR (p:PictureElement) REQUIRE p.id IS UNIQUE\\\"\n )\n session.run(\n \\\"CREATE CONSTRAINT knowledge_base_id_unique IF NOT EXISTS FOR (kb:KnowledgeBase) REQUIRE kb.id IS UNIQUE\\\"\n )\n\n session.run(\\\"MATCH (d:Document) WHERE d.version IS NULL SET d.version = 0\\\")\n session.run(\\\"MATCH (p:Page) WHERE p.version IS NULL SET p.version = 0\\\")\n session.run(\\\"MATCH (i:ImageData) WHERE i.version IS NULL SET i.version = 0\\\")\n session.run(\\\"MATCH (t:TextElement) WHERE t.version IS NULL SET t.version = 0\\\")\n session.run(\\\"MATCH (t:TableElement) WHERE t.version IS NULL SET t.version = 0\\\")\n session.run(\\\"MATCH (p:PictureElement) WHERE p.version IS NULL SET p.version = 0\\\")\n session.run(\\\"MATCH (h:SectionHeaderElement) WHERE h.version IS NULL SET h.version = 0\\\")\n session.run(\\\"MATCH (k:KnowledgeBase) WHERE k.version IS NULL SET k.version = 0\\\")\n\n logger.info { \\\"[NEO4J] All unique constraints verified/created\\\" }\n }\n } catch (e: RuntimeException) {\n logger.error(e) { \\\"[NEO4J] Failed to initialize schema\\\" }\n throw e\n }\n }\"? \"chatMemoryRepository\"?+ \"Neo4jTransactionManager\"? \"CommandLineRunner\"? \"maxMessages\"?+ \"try\"? \"session\"?+ \"use\"?+ \"info\"?+ \"catch\"? \"RuntimeException\"? \"throw e\"? \"throw\"?", + "noise_ratio": 0.17, + "symbols_before": 18, + "symbols_after": 15, + "algorithm": "CRX", + "mdl_score": 0, + "imports": [ + "import org.springframework.ai.chat.memory.ChatMemory", + "import org.springframework.ai.chat.memory.ChatMemoryRepository", + "import org.springframework.ai.chat.memory.MessageWindowChatMemory", + "import org.springframework.beans.factory.annotation.Value", + "import org.springframework.context.annotation.Bean", + "import org.springframework.context.annotation.Configuration", + "import org.neo4j.driver.Driver", + "import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty", + "import org.springframework.context.annotation.Primary", + "import org.springframework.data.neo4j.core.transaction.Neo4jTransactionManager", + "import org.springframework.transaction.PlatformTransactionManager", + "import io.github.oshai.kotlinlogging.KotlinLogging", + "import org.springframework.boot.CommandLineRunner" + ], + "arg_patterns": {} + }, + { + "label": "infrastructure/adapters/ai-provider/src/main/kotlin/eu/corentic/springrag/config", + "method_count": 4, + "grammar": "root ::= \"connectTimeout\"? \"timeout\"? (\"region\" | \"writeValueAsString\")?+ \"toMillis\"?+ \"read\"? \"coerceAtMost\"?+ \"MAX_VALUE\"? \"toLong\"?+ \"toInt\"?+ (\"CONNECT_TIMEOUT_MILLIS\" | \"END\" | \"InputType\" | \"LoggingCohereEmbeddingBedrockApi\" | \"ReactorClientHttpRequestFactory\" | \"ReadTimeoutHandler\" | \"SEARCH_DOCUMENT\" | \"SECONDS\" | \"Truncate\" | \"WriteTimeoutHandler\" | \"addHandlerLast\" | \"baseUrl\" | \"builder\" | \"create\" | \"debug\" | \"doOnConnected\" | \"embedding\" | \"embeddings\" | \"getModelId\" | \"info\" | \"inputType\" | \"ofSeconds\" | \"option\" | \"readTimeout\" | \"requestFactory\" | \"responseTimeout\" | \"restClientBuilder\" | \"return OllamaApi.builder()\n .baseUrl(properties.baseUrl)\n .restClientBuilder(restClientBuilder)\n .build()\" | \"return ReactorClientHttpRequestFactory(httpClient)\" | \"return try {\n val response = super.embedding(request)\n logger.debug { \\\"Cohere embedding success: ${response.embeddings().size} embeddings\\\" }\n response\n } catch (e: Exception) {\n logger.error(e) { \\\"Cohere embedding failed: ${e.message}\\\" }\n throw e\n }\" | \"seconds\" | \"texts\" | \"trace\" | \"truncate\" | \"try\" | \"writeTimeout\")?+ \"catch\"? \"return BedrockCohereEmbeddingModel(api, options)\"? \"Exception\"? \"BedrockCohereEmbeddingModel\"? \"message\"? \"throw e\"? \"throw\"?", + "grammar_clean": "root ::= \"connectTimeout\"? \"timeout\"? (\"region\" | \"writeValueAsString\")?+ \"toMillis\"?+ \"read\"? \"coerceAtMost\"?+ \"MAX_VALUE\"? \"toLong\"?+ \"toInt\"?+ (\"CONNECT_TIMEOUT_MILLIS\" | \"END\" | \"InputType\" | \"LoggingCohereEmbeddingBedrockApi\" | \"ReactorClientHttpRequestFactory\" | \"ReadTimeoutHandler\" | \"SEARCH_DOCUMENT\" | \"SECONDS\" | \"Truncate\" | \"WriteTimeoutHandler\" | \"addHandlerLast\" | \"baseUrl\" | \"builder\" | \"create\" | \"debug\" | \"doOnConnected\" | \"embedding\" | \"embeddings\" | \"getModelId\" | \"info\" | \"inputType\" | \"ofSeconds\" | \"option\" | \"readTimeout\" | \"requestFactory\" | \"responseTimeout\" | \"restClientBuilder\" | \"return OllamaApi.builder()\n .baseUrl(properties.baseUrl)\n .restClientBuilder(restClientBuilder)\n .build()\" | \"return ReactorClientHttpRequestFactory(httpClient)\" | \"return try {\n val response = super.embedding(request)\n logger.debug { \\\"Cohere embedding success: ${response.embeddings().size} embeddings\\\" }\n response\n } catch (e: Exception) {\n logger.error(e) { \\\"Cohere embedding failed: ${e.message}\\\" }\n throw e\n }\" | \"seconds\" | \"texts\" | \"trace\" | \"truncate\" | \"try\" | \"writeTimeout\")?+ \"catch\"? \"return BedrockCohereEmbeddingModel(api, options)\"? \"Exception\"? \"BedrockCohereEmbeddingModel\"? \"message\"? \"throw e\"? \"throw\"?", + "noise_ratio": 0.09, + "symbols_before": 58, + "symbols_after": 53, + "algorithm": "CRX", + "mdl_score": 0, + "imports": [ + "import io.netty.channel.ChannelOption", + "import io.netty.handler.timeout.ReadTimeoutHandler", + "import io.netty.handler.timeout.WriteTimeoutHandler", + "import java.util.concurrent.TimeUnit", + "import org.springframework.context.annotation.Bean", + "import org.springframework.context.annotation.Configuration", + "import org.springframework.http.client.ClientHttpRequestFactory", + "import org.springframework.http.client.ReactorClientHttpRequestFactory", + "import reactor.netty.http.client.HttpClient", + "import com.fasterxml.jackson.databind.ObjectMapper", + "import io.github.oshai.kotlinlogging.KotlinLogging", + "import org.springframework.ai.bedrock.cohere.BedrockCohereEmbeddingModel", + "import org.springframework.ai.bedrock.cohere.BedrockCohereEmbeddingOptions", + "import org.springframework.ai.bedrock.cohere.api.CohereEmbeddingBedrockApi", + "import org.springframework.ai.bedrock.cohere.api.CohereEmbeddingBedrockApi.CohereEmbeddingRequest", + "import org.springframework.ai.bedrock.cohere.api.CohereEmbeddingBedrockApi.CohereEmbeddingResponse", + "import org.springframework.ai.embedding.EmbeddingModel", + "import org.springframework.beans.factory.annotation.Qualifier", + "import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty", + "import org.springframework.context.annotation.Primary", + "import software.amazon.awssdk.auth.credentials.AwsCredentialsProvider", + "import software.amazon.awssdk.regions.providers.AwsRegionProvider", + "import java.time.Duration", + "import org.springframework.ai.ollama.api.OllamaApi", + "import org.springframework.context.annotation.Profile", + "import org.springframework.web.client.RestClient" + ], + "arg_patterns": {} + }, + { + "label": "infrastructure/adapters/ai-provider/src/main/kotlin/eu/corentic/springrag/health", + "method_count": 3, + "grammar": "root ::= \"fromCallable\"?+ \"runWithCircuitBreaker\"? \"Supplier\"? \"listModels\"?+ \"action\"? \"models\"?+ \"throw throwable ?: IllegalStateException(\\\"Ollama circuit breaker fallback\\\")\"? \"subscribeOn\"?+ \"throw\"? \"boundedElastic\"?+ \"IllegalStateException\"? \"mapNotNull\"?+ \"name\"?+ \"filterNot\"?+ \"any\"?+ \"modelMatches\"? \"return true\"? \"substringBefore\"?+ \"up\"?+ \"return normalizedRequired == normalizedAvailable\"? (\"down\" | \"just\" | \"onErrorResume\" | \"withDetail\")?+", + "grammar_clean": "root ::= \"fromCallable\"?+ \"runWithCircuitBreaker\"? \"Supplier\"? \"listModels\"?+ \"action\"? \"models\"?+ \"throw throwable ?: IllegalStateException(\\\"Ollama circuit breaker fallback\\\")\"? \"subscribeOn\"?+ \"throw\"? \"boundedElastic\"?+ \"IllegalStateException\"? \"mapNotNull\"?+ \"name\"?+ \"filterNot\"?+ \"any\"?+ \"modelMatches\"? \"return true\"? \"substringBefore\"?+ \"up\"?+ \"return normalizedRequired == normalizedAvailable\"? (\"down\" | \"just\" | \"onErrorResume\" | \"withDetail\")?+", + "noise_ratio": 0.23, + "symbols_before": 31, + "symbols_after": 24, + "algorithm": "CRX", + "mdl_score": 0, + "imports": [ + "import org.springframework.ai.ollama.api.OllamaApi", + "import org.springframework.beans.factory.annotation.Value", + "import org.springframework.boot.health.contributor.Health", + "import org.springframework.boot.health.contributor.ReactiveHealthIndicator", + "import org.springframework.cloud.client.circuitbreaker.CircuitBreakerFactory", + "import org.springframework.context.annotation.Profile", + "import org.springframework.stereotype.Component", + "import java.util.function.Supplier", + "import reactor.core.publisher.Mono", + "import reactor.core.scheduler.Schedulers" + ], + "arg_patterns": {} + }, + { + "label": "infrastructure/adapters/ai-provider/src/test/kotlin/eu/corentic/springrag/config", + "method_count": 6, + "grammar": "root ::= \"IllegalArgumentException\"? \"java\"? \"EmbabelAiHttpClientProperties\"? \"OllamaClientProperties\"? \"Timeout\"?+ (\"baseUrl\" | \"ofSeconds\" | \"readTimeout\" | \"writeTimeout\")?+ \"timeout\"? \"connectTimeout\"? \"read\"?", + "grammar_clean": "root ::= \"IllegalArgumentException\"? \"java\"? \"EmbabelAiHttpClientProperties\"? \"OllamaClientProperties\"? \"Timeout\"?+ (\"baseUrl\" | \"ofSeconds\" | \"readTimeout\" | \"writeTimeout\")?+ \"timeout\"? \"connectTimeout\"? \"read\"?", + "noise_ratio": 0.14, + "symbols_before": 14, + "symbols_after": 12, + "algorithm": "CRX", + "mdl_score": 12825, + "imports": [ + "import java.time.Duration", + "import kotlin.test.assertEquals", + "import org.junit.jupiter.api.Assertions.assertThrows", + "import org.junit.jupiter.api.Test" + ], + "arg_patterns": {} + }, + { + "label": "infrastructure/adapters/ai-provider/src/test/kotlin/eu/corentic/springrag/health", + "method_count": 4, + "grammar": "root ::= \"`when`\"? \"listModels\"?+ \"thenThrow\"?+ \"thenReturn\"?+ \"RuntimeException\"? \"ListModelResponse\"?+ (\"Model\" | \"now\")?+ \"OllamaHealthIndicator\"? \"NoOpCircuitBreakerFactory\"? \"health\"?+ \"block\"?+ \"status\"? \"code\"?", + "grammar_clean": "root ::= \"`when`\"? \"listModels\"?+ \"thenThrow\"?+ \"thenReturn\"?+ \"RuntimeException\"? \"ListModelResponse\"?+ (\"Model\" | \"now\")?+ \"OllamaHealthIndicator\"? \"NoOpCircuitBreakerFactory\"? \"health\"?+ \"block\"?+ \"status\"? \"code\"?", + "noise_ratio": 0.18, + "symbols_before": 17, + "symbols_after": 14, + "algorithm": "CRX", + "mdl_score": 0, + "imports": [ + "import java.time.Instant", + "import eu.corentic.springrag.testsupport.NoOpCircuitBreakerFactory", + "import org.junit.jupiter.api.Assertions.assertEquals", + "import org.junit.jupiter.api.Test", + "import org.mockito.Mockito.mock", + "import org.mockito.Mockito.`when`", + "import org.springframework.ai.ollama.api.OllamaApi" + ], + "arg_patterns": {} + }, + { + "label": "infrastructure/adapters/ai-provider/src/test/kotlin/eu/corentic/springrag/service/embedding", + "method_count": 5, + "grammar": "root ::= \"builder\"?+ (\"BedrockCohereEmbeddingModel\" | \"CapturingCohereApi\" | \"CohereEmbeddingResponse\" | \"EmbeddingRequest\" | \"FloatArray\" | \"InputType\" | \"NONE\" | \"SEARCH_DOCUMENT\" | \"Truncate\" | \"call\" | \"capturedRequest\" | \"embed\" | \"inputType\" | \"readTree\" | \"return CohereEmbeddingResponse(\n \\\"test-id\\\",\n fakeEmbeddings,\n request.texts(),\n \\\"embeddings_floats\\\",\n null\n )\" | \"texts\" | \"truncate\" | \"writeValueAsString\")?+", + "grammar_clean": "root ::= \"builder\"?+ (\"BedrockCohereEmbeddingModel\" | \"CapturingCohereApi\" | \"CohereEmbeddingResponse\" | \"EmbeddingRequest\" | \"FloatArray\" | \"InputType\" | \"NONE\" | \"SEARCH_DOCUMENT\" | \"Truncate\" | \"call\" | \"capturedRequest\" | \"embed\" | \"inputType\" | \"readTree\" | \"return CohereEmbeddingResponse(\n \\\"test-id\\\",\n fakeEmbeddings,\n request.texts(),\n \\\"embeddings_floats\\\",\n null\n )\" | \"texts\" | \"truncate\" | \"writeValueAsString\")?+", + "noise_ratio": 0.24, + "symbols_before": 25, + "symbols_after": 19, + "algorithm": "CRX", + "mdl_score": 1027200, + "imports": [ + "import com.fasterxml.jackson.databind.ObjectMapper", + "import org.junit.jupiter.api.Assertions.assertEquals", + "import org.junit.jupiter.api.Assertions.assertNotNull", + "import org.junit.jupiter.api.Test", + "import org.springframework.ai.bedrock.cohere.BedrockCohereEmbeddingModel", + "import org.springframework.ai.bedrock.cohere.BedrockCohereEmbeddingOptions", + "import org.springframework.ai.bedrock.cohere.api.CohereEmbeddingBedrockApi", + "import org.springframework.ai.bedrock.cohere.api.CohereEmbeddingBedrockApi.CohereEmbeddingRequest", + "import org.springframework.ai.bedrock.cohere.api.CohereEmbeddingBedrockApi.CohereEmbeddingResponse", + "import org.springframework.ai.embedding.EmbeddingRequest", + "import software.amazon.awssdk.auth.credentials.AnonymousCredentialsProvider", + "import software.amazon.awssdk.regions.Region", + "import java.time.Duration" + ], + "arg_patterns": {} + }, + { + "label": "infrastructure/adapters/ai-provider/src/test/kotlin/eu/corentic/springrag/testsupport", + "method_count": 3, + "grammar": "root ::= \"Builder\"+", + "grammar_clean": "root ::= \"Builder\"+", + "noise_ratio": 0.67, + "symbols_before": 3, + "symbols_after": 1, + "algorithm": "CRX", + "mdl_score": 15, + "imports": [ + "import java.util.function.Function", + "import java.util.function.Supplier", + "import org.springframework.cloud.client.circuitbreaker.CircuitBreaker", + "import org.springframework.cloud.client.circuitbreaker.CircuitBreakerFactory", + "import org.springframework.cloud.client.circuitbreaker.ConfigBuilder" + ], + "arg_patterns": {} + }, + { + "label": "infrastructure/adapters/chat-memory/src/test/kotlin/eu/corentic/springrag/config", + "method_count": 6, + "grammar": "root ::= \"ChatMemoryConfig\"? \"Message\"? \"chatMemory\"?+ (\"MutableMap\" | \"fun\")?+ \"repeat\"?+ \"MessageType\"? \"makeMessage\"?+ \"USER\"? \"text\"?+", + "grammar_clean": "root ::= \"ChatMemoryConfig\"? \"Message\"? \"chatMemory\"?+ (\"MutableMap\" | \"fun\")?+ \"repeat\"?+ \"MessageType\"? \"makeMessage\"?+ \"USER\"? \"text\"?+", + "noise_ratio": 0.41, + "symbols_before": 17, + "symbols_after": 10, + "algorithm": "CRX", + "mdl_score": 0, + "imports": [ + "import org.junit.jupiter.api.Assertions.assertEquals", + "import org.junit.jupiter.api.Test", + "import org.springframework.ai.chat.memory.InMemoryChatMemoryRepository", + "import org.springframework.ai.chat.messages.Message", + "import org.springframework.ai.chat.messages.MessageType" + ], + "arg_patterns": {} + }, + { + "label": "infrastructure/adapters/doc-parser/src", + "method_count": 6, + "grammar": "root ::= \"fromCallable\"?+ (\"File\" | \"builder\")?+ \"health\"?+ \"subscribeOn\"?+ \"boundedElastic\"?+ (\"ByteArray\" | \"DocumentParsingRequest\" | \"GraphDocument\" | \"absolutePath\" | \"asDocumentId\" | \"asFilename\" | \"asJobId\" | \"asLogicalDocumentId\" | \"content\" | \"convertDocument\" | \"doTableStructure\" | \"down\" | \"exists\" | \"filename\" | \"generatePageImages\" | \"getStatus\" | \"imagesScale\" | \"just\" | \"name\" | \"onErrorResume\" | \"options\" | \"readBytes\" | \"up\" | \"value\" | \"withDetail\")?+ \"tables\"? \"jobId\"? \"return ParsedDocument(graphDocument = graphDocument)\"? \"parse\"?+ \"ParsedDocument\"? \"graphDocument\"?", + "grammar_clean": "root ::= \"fromCallable\"?+ (\"File\" | \"builder\")?+ \"health\"?+ \"subscribeOn\"?+ \"boundedElastic\"?+ (\"ByteArray\" | \"DocumentParsingRequest\" | \"GraphDocument\" | \"absolutePath\" | \"asDocumentId\" | \"asFilename\" | \"asJobId\" | \"asLogicalDocumentId\" | \"content\" | \"convertDocument\" | \"doTableStructure\" | \"down\" | \"exists\" | \"filename\" | \"generatePageImages\" | \"getStatus\" | \"imagesScale\" | \"just\" | \"name\" | \"onErrorResume\" | \"options\" | \"readBytes\" | \"up\" | \"value\" | \"withDetail\")?+ \"tables\"? \"jobId\"? \"return ParsedDocument(graphDocument = graphDocument)\"? \"parse\"?+ \"ParsedDocument\"? \"graphDocument\"?", + "noise_ratio": 0.24, + "symbols_before": 49, + "symbols_after": 37, + "algorithm": "CRX", + "mdl_score": 0, + "imports": [ + "import ai.docling.serve.api.DoclingServeApi", + "import org.springframework.boot.health.contributor.Health", + "import org.springframework.boot.health.contributor.ReactiveHealthIndicator", + "import org.springframework.stereotype.Component", + "import reactor.core.publisher.Mono", + "import reactor.core.scheduler.Schedulers", + "import eu.corentic.springrag.service.docling.DoclingGraphDocumentMapper", + "import eu.corentic.springrag.service.docling.DoclingService", + "import eu.corentic.springrag.service.port.DocumentParserPort", + "import eu.corentic.springrag.service.port.DocumentParsingRequest", + "import eu.corentic.springrag.model.ParsedDocument", + "import eu.corentic.springrag.config.BaseSystemTest", + "import eu.corentic.springrag.config.DoclingConfig", + "import java.io.File", + "import org.junit.jupiter.api.Assertions.assertTrue", + "import org.junit.jupiter.api.Test", + "import org.springframework.beans.factory.annotation.Autowired", + "import org.springframework.core.io.ClassPathResource", + "import org.springframework.test.context.TestPropertySource", + "import ai.docling.core.DoclingDocument", + "import eu.corentic.springrag.model.GraphDocument", + "import eu.corentic.springrag.common.ids.asDocumentId", + "import eu.corentic.springrag.common.ids.asFilename", + "import eu.corentic.springrag.common.ids.asJobId", + "import eu.corentic.springrag.common.ids.asLogicalDocumentId", + "import io.mockk.every", + "import io.mockk.mockk", + "import org.junit.jupiter.api.Assertions.assertEquals", + "import org.junit.jupiter.api.Assertions.assertNull" + ], + "arg_patterns": {} + }, + { + "label": "infrastructure/adapters/doc-parser/src/main/kotlin/eu/corentic/springrag/config", + "method_count": 3, + "grammar": "root ::= (\"IllegalStateException\" | \"bucket\" | \"generatePageImages\" | \"generatePictureImages\" | \"imageExportMode\" | \"includeImages\" | \"info\" | \"s3Target\" | \"throw\" | \"throw IllegalStateException(errorMsg)\" | \"toFormats\" | \"useS3Target\")?+ \"Method\"? \"validateCriticalSettings\"? (\"DoclingServeJackson3Client\" | \"getDeclaredMethod\" | \"isAccessible\" | \"java\")?+ \"Builder\"? \"return builder\n .baseUrl(URI.create(config.baseUrl))\n .asyncPollInterval(Duration.ofMillis(config.pollIntervalMillis))\n .asyncTimeout(Duration.ofSeconds(config.timeoutSeconds))\n .build()\"? (\"baseUrl\" | \"create\")?+ \"asyncPollInterval\"?+ \"ofMillis\"?+ \"pollIntervalMillis\"? \"asyncTimeout\"?+ \"ofSeconds\"?+ \"timeoutSeconds\"?", + "grammar_clean": "root ::= (\"IllegalStateException\" | \"bucket\" | \"generatePageImages\" | \"generatePictureImages\" | \"imageExportMode\" | \"includeImages\" | \"info\" | \"s3Target\" | \"throw\" | \"throw IllegalStateException(errorMsg)\" | \"toFormats\" | \"useS3Target\")?+ \"Method\"? \"validateCriticalSettings\"? (\"DoclingServeJackson3Client\" | \"getDeclaredMethod\" | \"isAccessible\" | \"java\")?+ \"Builder\"? \"return builder\n .baseUrl(URI.create(config.baseUrl))\n .asyncPollInterval(Duration.ofMillis(config.pollIntervalMillis))\n .asyncTimeout(Duration.ofSeconds(config.timeoutSeconds))\n .build()\"? (\"baseUrl\" | \"create\")?+ \"asyncPollInterval\"?+ \"ofMillis\"?+ \"pollIntervalMillis\"? \"asyncTimeout\"?+ \"ofSeconds\"?+ \"timeoutSeconds\"?", + "noise_ratio": 0.18, + "symbols_before": 34, + "symbols_after": 28, + "algorithm": "CRX", + "mdl_score": 0, + "imports": [ + "import ai.docling.serve.api.DoclingServeApi", + "import ai.docling.serve.client.DoclingServeJackson3Client", + "import org.springframework.context.annotation.Bean", + "import org.springframework.context.annotation.Configuration", + "import java.lang.reflect.Method", + "import java.net.URI", + "import java.time.Duration", + "import jakarta.validation.constraints.Min", + "import jakarta.validation.constraints.NotBlank", + "import jakarta.annotation.PostConstruct", + "import org.slf4j.LoggerFactory", + "import org.springframework.boot.context.properties.ConfigurationProperties", + "import org.springframework.validation.annotation.Validated" + ], + "arg_patterns": {} + }, + { + "label": "infrastructure/adapters/doc-parser/src/main/kotlin/eu/corentic/springrag/service/docling", + "method_count": 21, + "grammar": "root ::= \"warn\"+", + "grammar_clean": "root ::= \"warn\"+", + "noise_ratio": 0.0, + "symbols_before": 1, + "symbols_after": 1, + "algorithm": "CRX", + "mdl_score": 2, + "imports": [ + "import com.google.auth.oauth2.GoogleCredentials", + "import com.google.auth.oauth2.IdTokenCredentials", + "import com.google.auth.oauth2.IdTokenProvider", + "import ai.docling.core.DoclingDocument", + "import eu.corentic.springrag.common.ids.JobId", + "import eu.corentic.springrag.model.GraphDocument", + "import eu.corentic.springrag.model.GraphImagePayload", + "import eu.corentic.springrag.model.GraphPage", + "import eu.corentic.springrag.model.GraphPictureElement", + "import eu.corentic.springrag.model.GraphTableElement", + "import eu.corentic.springrag.model.GraphTextElement", + "import io.github.oshai.kotlinlogging.KotlinLogging", + "import org.springframework.stereotype.Component", + "import java.util.Base64", + "import ai.docling.serve.api.DoclingServeApi", + "import ai.docling.serve.api.convert.request.options.ConvertDocumentOptions", + "import ai.docling.serve.api.convert.request.options.ImageRefMode", + "import ai.docling.serve.api.convert.request.options.OcrEngine", + "import ai.docling.serve.api.convert.request.options.PdfBackend", + "import ai.docling.serve.api.convert.request.options.ProcessingPipeline", + "import ai.docling.serve.api.convert.request.options.OutputFormat", + "import ai.docling.serve.api.convert.request.source.FileSource", + "import ai.docling.serve.api.convert.request.target.InBodyTarget", + "import ai.docling.serve.api.convert.request.target.S3Target", + "import eu.corentic.springrag.config.DoclingConfig", + "import java.util.function.Supplier", + "import java.time.Duration", + "import jakarta.annotation.PostConstruct", + "import org.springframework.cloud.client.circuitbreaker.CircuitBreakerFactory", + "import org.springframework.stereotype.Service" + ], + "arg_patterns": {} + }, + { + "label": "infrastructure/adapters/doc-parser/src/systemTest/kotlin/eu/corentic/springrag/config", + "method_count": 6, + "grammar": "root ::= \"registerProperties\"?+ \"DoclingServeClientBuilderFactory\"? \"return try {\n buildWithNoArgFactory(config)\n } catch (_: NoSuchMethodException) {\n buildWithClassLoaderFactory(config)\n }\"? \"corentic\"? \"try\"? \"springrag\"? \"buildWithNoArgFactory\"? (\"ClassLoader\" | \"baseUrl\" | \"getMethod\" | \"java\" | \"javaClass\" | \"return buildMethod.invoke(configuredBuilder) as DoclingServeApi\")?+ \"testcontainers\"? \"classLoader\"? \"DoclingServeApi\"? \"GpuSupport\"? \"return configureAndBuild(builder, config)\"? (\"ClassCastException\" | \"IllegalAccessException\" | \"IllegalStateException\" | \"InvocationTargetException\" | \"NoSuchMethodException\" | \"catch\" | \"cause\" | \"throw\" | \"throw IllegalStateException(\\\"Docling test client builder API is incompatible\\\", e)\" | \"throw IllegalStateException(\\\"Docling test client builder API is not accessible\\\", e)\" | \"throw IllegalStateException(\\\"Docling test client builder invocation failed\\\", e.cause ?: e)\" | \"throw IllegalStateException(\\\"Docling test client builder returned an unexpected type\\\", e)\")?+ \"isDockerAvailable\"?+ \"configureAndBuild\"? \"buildWithClassLoaderFactory\"? \"start\"?+ \"pullAndWarmup\"?+ \"ollamaContainer\"?", + "grammar_clean": "root ::= \"registerProperties\"?+ \"DoclingServeClientBuilderFactory\"? \"return try {\n buildWithNoArgFactory(config)\n } catch (_: NoSuchMethodException) {\n buildWithClassLoaderFactory(config)\n }\"? \"corentic\"? \"try\"? \"springrag\"? \"buildWithNoArgFactory\"? (\"ClassLoader\" | \"baseUrl\" | \"getMethod\" | \"java\" | \"javaClass\" | \"return buildMethod.invoke(configuredBuilder) as DoclingServeApi\")?+ \"testcontainers\"? \"classLoader\"? \"DoclingServeApi\"? \"GpuSupport\"? \"return configureAndBuild(builder, config)\"? (\"ClassCastException\" | \"IllegalAccessException\" | \"IllegalStateException\" | \"InvocationTargetException\" | \"NoSuchMethodException\" | \"catch\" | \"cause\" | \"throw\" | \"throw IllegalStateException(\\\"Docling test client builder API is incompatible\\\", e)\" | \"throw IllegalStateException(\\\"Docling test client builder API is not accessible\\\", e)\" | \"throw IllegalStateException(\\\"Docling test client builder invocation failed\\\", e.cause ?: e)\" | \"throw IllegalStateException(\\\"Docling test client builder returned an unexpected type\\\", e)\")?+ \"isDockerAvailable\"?+ \"configureAndBuild\"? \"buildWithClassLoaderFactory\"? \"start\"?+ \"pullAndWarmup\"?+ \"ollamaContainer\"?", + "noise_ratio": 0.08, + "symbols_before": 39, + "symbols_after": 36, + "algorithm": "CRX", + "mdl_score": 0, + "imports": [ + "import eu.corentic.springrag.testcontainers.OllamaModelSupport", + "import eu.corentic.springrag.testcontainers.SharedContainers", + "import eu.corentic.springrag.testcontainers.SharedContainers.ContainerType", + "import org.junit.jupiter.api.Assumptions", + "import org.junit.jupiter.api.BeforeAll", + "import org.springframework.boot.test.context.SpringBootTest", + "import org.springframework.test.context.ActiveProfiles", + "import org.springframework.test.context.DynamicPropertyRegistry", + "import org.springframework.test.context.DynamicPropertySource", + "import org.testcontainers.junit.jupiter.Testcontainers", + "import ai.docling.serve.api.DoclingServeApi", + "import ai.docling.serve.client.DoclingServeClientBuilderFactory", + "import java.lang.reflect.InvocationTargetException", + "import org.springframework.context.annotation.Bean", + "import org.springframework.context.annotation.Configuration" + ], + "arg_patterns": {} + }, + { + "label": "infrastructure/adapters/doc-parser/src/test/kotlin/eu/corentic/springrag/config", + "method_count": 12, + "grammar": "root ::= \"DoclingConfig\"? \"assertThatThrownBy\"? \"baseUrl\"? \"validateCriticalSettings\"?+ (\"includeImages\" | \"options\")?+ \"isInstanceOf\"?+ \"imageExportMode\"? \"IllegalStateException\"? \"java\"? \"hasMessageContaining\"?+", + "grammar_clean": "root ::= \"DoclingConfig\"? \"assertThatThrownBy\"? \"baseUrl\"? \"validateCriticalSettings\"?+ (\"includeImages\" | \"options\")?+ \"isInstanceOf\"?+ \"imageExportMode\"? \"IllegalStateException\"? \"java\"? \"hasMessageContaining\"?+", + "noise_ratio": 0.0, + "symbols_before": 11, + "symbols_after": 11, + "algorithm": "CRX", + "mdl_score": 18, + "imports": [ + "import kotlin.test.assertNotNull", + "import org.junit.jupiter.api.Test", + "import org.assertj.core.api.Assertions.assertThat", + "import org.assertj.core.api.Assertions.assertThatThrownBy", + "import org.junit.jupiter.api.Assertions.assertNull" + ], + "arg_patterns": {} + }, + { + "label": "infrastructure/adapters/doc-parser/src/test/kotlin/eu/corentic/springrag/health", + "method_count": 3, + "grammar": "root ::= \"`when`\"? (\"DoclingHealthIndicator\" | \"IllegalStateException\" | \"RuntimeException\" | \"block\" | \"builder\" | \"health\" | \"status\" | \"thenReturn\" | \"thenThrow\")?+ \"code\"?", + "grammar_clean": "root ::= \"`when`\"? (\"DoclingHealthIndicator\" | \"IllegalStateException\" | \"RuntimeException\" | \"block\" | \"builder\" | \"health\" | \"status\" | \"thenReturn\" | \"thenThrow\")?+ \"code\"?", + "noise_ratio": 0.21, + "symbols_before": 14, + "symbols_after": 11, + "algorithm": "CRX", + "mdl_score": 685824, + "imports": [ + "import ai.docling.serve.api.DoclingServeApi", + "import ai.docling.serve.api.health.HealthCheckResponse", + "import kotlin.test.assertEquals", + "import org.junit.jupiter.api.Test", + "import org.mockito.Mockito.mock", + "import org.mockito.Mockito.`when`" + ], + "arg_patterns": {} + }, + { + "label": "infrastructure/adapters/doc-parser/src/test/kotlin/eu/corentic/springrag/service/docling", + "method_count": 10, + "grammar": "root ::= \"options\"? \"DoclingDocument\"? (\"builder\" | \"document\")?+ \"jsonContent\"?+ \"status\"?+ \"ConvertDocumentRequest\"? \"convertSourceAsync\"?+ \"capture\"? \"completedFuture\"?+ \"convertDocument\"?+ \"toByteArray\"?+ \"captured\"?", + "grammar_clean": "root ::= \"options\"? \"DoclingDocument\"? (\"builder\" | \"document\")?+ \"jsonContent\"?+ \"status\"?+ \"ConvertDocumentRequest\"? \"convertSourceAsync\"?+ \"capture\"? \"completedFuture\"?+ \"convertDocument\"?+ \"toByteArray\"?+ \"captured\"?", + "noise_ratio": 0.24, + "symbols_before": 17, + "symbols_after": 13, + "algorithm": "CRX", + "mdl_score": 0, + "imports": [ + "import ai.docling.core.DoclingDocument", + "import eu.corentic.springrag.common.ids.asJobId", + "import java.util.Base64", + "import org.junit.jupiter.api.Assertions.assertArrayEquals", + "import org.junit.jupiter.api.Assertions.assertEquals", + "import org.junit.jupiter.api.Assertions.assertNotNull", + "import org.junit.jupiter.api.Assertions.assertTrue", + "import org.junit.jupiter.api.Test", + "import ai.docling.serve.api.DoclingServeApi", + "import ai.docling.serve.api.convert.request.ConvertDocumentRequest", + "import ai.docling.serve.api.convert.request.options.ImageRefMode", + "import ai.docling.serve.api.convert.request.options.OcrEngine", + "import ai.docling.serve.api.convert.request.options.OutputFormat", + "import ai.docling.serve.api.convert.request.options.PdfBackend", + "import ai.docling.serve.api.convert.request.options.ProcessingPipeline", + "import ai.docling.serve.api.convert.response.InBodyConvertDocumentResponse", + "import ai.docling.serve.api.convert.response.DocumentResponse", + "import eu.corentic.springrag.config.DoclingConfig", + "import eu.corentic.springrag.config.PipelineOptions", + "import eu.corentic.springrag.testsupport.NoOpCircuitBreakerFactory", + "import io.mockk.clearAllMocks", + "import tools.jackson.databind.ObjectMapper", + "import ai.docling.serve.api.convert.request.target.S3Target", + "import ai.docling.serve.api.convert.request.target.InBodyTarget", + "import io.mockk.every", + "import io.mockk.mockk", + "import io.mockk.slot", + "import io.mockk.verify", + "import java.util.concurrent.CompletableFuture", + "import kotlin.test.assertEquals", + "import kotlin.test.assertNotNull", + "import kotlin.test.assertTrue", + "import org.junit.jupiter.api.AfterEach", + "import org.junit.jupiter.api.BeforeEach", + "import org.junit.jupiter.api.assertThrows" + ], + "arg_patterns": {} + }, + { + "label": "infrastructure/adapters/doc-parser/src/test/kotlin/eu/corentic/springrag/testsupport", + "method_count": 3, + "grammar": "root ::= \"Builder\"+", + "grammar_clean": "root ::= \"Builder\"+", + "noise_ratio": 0.67, + "symbols_before": 3, + "symbols_after": 1, + "algorithm": "CRX", + "mdl_score": 15, + "imports": [ + "import java.util.function.Function", + "import java.util.function.Supplier", + "import org.springframework.cloud.client.circuitbreaker.CircuitBreaker", + "import org.springframework.cloud.client.circuitbreaker.CircuitBreakerFactory", + "import org.springframework.cloud.client.circuitbreaker.ConfigBuilder" + ], + "arg_patterns": {} + }, + { + "label": "infrastructure/adapters/search/src/main/kotlin/eu/corentic/springrag/health", + "method_count": 7, + "grammar": "root ::= \"withDetail\"?+ \"onErrorResume\"?+ \"just\"?+", + "grammar_clean": "root ::= \"withDetail\"?+ \"onErrorResume\"?+ \"just\"?+", + "noise_ratio": 0.25, + "symbols_before": 4, + "symbols_after": 3, + "algorithm": "CRX", + "mdl_score": 4, + "imports": [ + "import org.neo4j.driver.Driver", + "import java.time.Duration", + "import org.springframework.boot.health.contributor.Health", + "import org.springframework.boot.health.contributor.ReactiveHealthIndicator", + "import org.springframework.stereotype.Component", + "import reactor.core.publisher.Mono", + "import com.google.common.util.concurrent.FutureCallback", + "import com.google.common.util.concurrent.Futures", + "import com.google.common.util.concurrent.ListenableFuture", + "import com.google.common.util.concurrent.MoreExecutors", + "import io.qdrant.client.QdrantClient", + "import java.util.concurrent.ExecutionException", + "import java.util.concurrent.TimeoutException", + "import org.springframework.beans.factory.annotation.Value", + "import org.springframework.context.annotation.Profile" + ], + "arg_patterns": {} + }, + { + "label": "infrastructure/adapters/search/src/main/kotlin/eu/corentic/springrag/model/graph", + "method_count": 9, + "grammar": "root ::= (\"id\" | \"jobId\" | \"pageNo\" | \"return false\" | \"return true\")?+ \"return result\"?", + "grammar_clean": "root ::= (\"id\" | \"jobId\" | \"pageNo\" | \"return false\" | \"return true\")?+ \"return result\"?", + "noise_ratio": 0.25, + "symbols_before": 8, + "symbols_after": 6, + "algorithm": "CRX", + "mdl_score": 2568, + "imports": [ + "import java.time.Instant", + "import org.springframework.data.annotation.Version", + "import org.springframework.data.neo4j.core.schema.Id", + "import org.springframework.data.neo4j.core.schema.Node", + "import org.springframework.data.neo4j.core.schema.Relationship", + "import org.springframework.data.neo4j.core.schema.Property" + ], + "arg_patterns": {} + }, + { + "label": "infrastructure/adapters/search/src/main/kotlin/eu/corentic/springrag/repository", + "method_count": 24, + "grammar": "root ::= \"builder\"?+ \"query\"?+ \"return runWithCircuitBreaker { vectorStore.similaritySearch(request).map { it.toVectorChunk() } }\"? \"topK\"?+ \"runWithCircuitBreaker\"? \"filterExpression\"?+ \"similaritySearch\"?+ \"toVectorChunk\"?+", + "grammar_clean": "root ::= \"builder\"?+ \"query\"?+ \"return runWithCircuitBreaker { vectorStore.similaritySearch(request).map { it.toVectorChunk() } }\"? \"topK\"?+ \"runWithCircuitBreaker\"? \"filterExpression\"?+ \"similaritySearch\"?+ \"toVectorChunk\"?+", + "noise_ratio": 0.2, + "symbols_before": 10, + "symbols_after": 8, + "algorithm": "CRX", + "mdl_score": 0, + "imports": [ + "import eu.corentic.springrag.model.VectorChunk", + "import org.springframework.ai.document.Document", + "import eu.corentic.springrag.common.ids.DocumentId", + "import eu.corentic.springrag.common.ids.JobId", + "import eu.corentic.springrag.common.ids.KnowledgeBaseId", + "import eu.corentic.springrag.common.ids.LogicalDocumentId", + "import java.util.function.Supplier", + "import org.springframework.ai.vectorstore.SearchRequest", + "import org.springframework.ai.vectorstore.VectorStore", + "import org.springframework.cloud.client.circuitbreaker.CircuitBreakerFactory", + "import io.github.oshai.kotlinlogging.KotlinLogging", + "import org.springframework.stereotype.Repository" + ], + "arg_patterns": {} + }, + { + "label": "infrastructure/adapters/search/src/main/kotlin/eu/corentic/springrag/service/agent", + "method_count": 3, + "grammar": "root ::= \"return agentRepository.findKnowledgeBaseIdByAgentId(agentId)\"? \"return try {\n val existingId = agentRepository.findKnowledgeBaseIdByAgentId(agentId)\n if (existingId != null) return existingId\n doCreate(agentId)\n } catch (e: Exception) {\n // Concurrent thread created the agent+KB first \u2014 read and return their result.\n agentRepository.findKnowledgeBaseIdByAgentId(agentId) ?: throw e\n }\"? \"now\"?+ \"try\"? (\"KnowledgeBaseNode\" | \"save\")?+ (\"Exception\" | \"catch\" | \"doCreate\" | \"findKnowledgeBaseIdByAgentId\" | \"return existingId\")?+ \"AgentNode\"? \"throw e\"? \"return kbId\"? \"throw\"?", + "grammar_clean": "root ::= \"return agentRepository.findKnowledgeBaseIdByAgentId(agentId)\"? \"return try {\n val existingId = agentRepository.findKnowledgeBaseIdByAgentId(agentId)\n if (existingId != null) return existingId\n doCreate(agentId)\n } catch (e: Exception) {\n // Concurrent thread created the agent+KB first \u2014 read and return their result.\n agentRepository.findKnowledgeBaseIdByAgentId(agentId) ?: throw e\n }\"? \"now\"?+ \"try\"? (\"KnowledgeBaseNode\" | \"save\")?+ (\"Exception\" | \"catch\" | \"doCreate\" | \"findKnowledgeBaseIdByAgentId\" | \"return existingId\")?+ \"AgentNode\"? \"throw e\"? \"return kbId\"? \"throw\"?", + "noise_ratio": 0.06, + "symbols_before": 16, + "symbols_after": 15, + "algorithm": "CRX", + "mdl_score": 3132, + "imports": [ + "import eu.corentic.springrag.model.graph.AgentNode", + "import eu.corentic.springrag.model.graph.KnowledgeBaseNode", + "import eu.corentic.springrag.repository.graph.AgentRepository", + "import eu.corentic.springrag.repository.graph.KnowledgeBaseRepository", + "import eu.corentic.springrag.service.port.AgentKnowledgeBasePort", + "import org.springframework.stereotype.Service", + "import org.springframework.transaction.annotation.Transactional", + "import java.time.Instant" + ], + "arg_patterns": {} + }, + { + "label": "infrastructure/adapters/search/src/main/kotlin/eu/corentic/springrag/service/cleanup", + "method_count": 4, + "grammar": "root ::= \"info\"?+ (\"deleteByJobId\" | \"deleteByKnowledgeBaseId\" | \"jobId\" | \"knowledgeBaseId\" | \"value\")?+", + "grammar_clean": "root ::= \"info\"?+ (\"deleteByJobId\" | \"deleteByKnowledgeBaseId\" | \"jobId\" | \"knowledgeBaseId\" | \"value\")?+", + "noise_ratio": 0.0, + "symbols_before": 6, + "symbols_after": 6, + "algorithm": "CRX", + "mdl_score": 1685, + "imports": [ + "import eu.corentic.springrag.model.event.DocumentDeletionRequested", + "import eu.corentic.springrag.service.graph.GraphIngestionOrchestrator", + "import io.github.oshai.kotlinlogging.KotlinLogging", + "import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty", + "import org.springframework.modulith.events.ApplicationModuleListener", + "import org.springframework.stereotype.Component", + "import eu.corentic.springrag.model.event.KnowledgeBaseDeletionRequested", + "import eu.corentic.springrag.repository.VectorRepository" + ], + "arg_patterns": {} + }, + { + "label": "infrastructure/adapters/search/src/main/kotlin/eu/corentic/springrag/service/graph", + "method_count": 12, + "imports": [ + "import eu.corentic.springrag.common.ids.DocumentId", + "import eu.corentic.springrag.common.ids.Filename", + "import eu.corentic.springrag.common.ids.JobId", + "import eu.corentic.springrag.common.ids.KnowledgeBaseId", + "import eu.corentic.springrag.common.ids.LogicalDocumentId", + "import eu.corentic.springrag.common.ids.StorageUri", + "import eu.corentic.springrag.model.DocumentGraphJob", + "import eu.corentic.springrag.model.GraphDocument", + "import eu.corentic.springrag.model.GraphImagePayload", + "import eu.corentic.springrag.model.GraphPictureElement", + "import eu.corentic.springrag.model.GraphTableElement", + "import eu.corentic.springrag.model.GraphTextElement", + "import eu.corentic.springrag.model.graph.DocumentJobNode", + "import eu.corentic.springrag.model.graph.ImageData", + "import eu.corentic.springrag.model.graph.PageNode", + "import eu.corentic.springrag.model.graph.PictureElement", + "import eu.corentic.springrag.model.graph.TableElement", + "import eu.corentic.springrag.model.graph.TextElement", + "import eu.corentic.springrag.service.port.DocumentGraphJobPort", + "import eu.corentic.springrag.service.port.GraphIndexPort", + "import eu.corentic.springrag.service.port.KnowledgeBasePort", + "import eu.corentic.springrag.service.port.ObjectStoragePort", + "import java.util.function.Supplier", + "import io.github.oshai.kotlinlogging.KotlinLogging", + "import org.springframework.cloud.client.circuitbreaker.CircuitBreakerFactory", + "import org.springframework.stereotype.Component", + "import org.springframework.transaction.annotation.Propagation", + "import org.springframework.transaction.annotation.Transactional", + "import java.time.Instant", + "import java.util.concurrent.CompletableFuture", + "import java.util.concurrent.Executors" + ], + "arg_patterns": {} + }, + { + "label": "infrastructure/adapters/search/src/main/kotlin/eu/corentic/springrag/service/port/adapter", + "method_count": 45, + "imports": [ + "import eu.corentic.springrag.common.ids.StorageUri", + "import eu.corentic.springrag.model.PageTextElement", + "import eu.corentic.springrag.model.SourceImage", + "import eu.corentic.springrag.repository.graph.ImageDataRepository", + "import eu.corentic.springrag.repository.graph.TextElementRepository", + "import eu.corentic.springrag.repository.graph.TableElementRepository", + "import eu.corentic.springrag.service.port.ChatGraphLookupPort", + "import eu.corentic.springrag.service.port.ObjectStoragePort", + "import java.util.Base64", + "import org.springframework.stereotype.Component", + "import eu.corentic.springrag.common.ids.DocumentId", + "import eu.corentic.springrag.common.ids.Filename", + "import eu.corentic.springrag.common.ids.JobId", + "import eu.corentic.springrag.common.ids.KnowledgeBaseId", + "import eu.corentic.springrag.common.ids.LogicalDocumentId", + "import eu.corentic.springrag.model.DocumentGraphJob", + "import eu.corentic.springrag.model.graph.DocumentJobNode", + "import eu.corentic.springrag.repository.graph.DocumentJobNodeRepository", + "import eu.corentic.springrag.service.port.DocumentGraphJobPort", + "import java.time.Instant", + "import eu.corentic.springrag.service.port.DocumentIdPort", + "import eu.corentic.springrag.service.port.DocumentImageInfo", + "import eu.corentic.springrag.service.port.DocumentImagePort", + "import eu.corentic.springrag.repository.graph.GraphMaintenanceRepository", + "import eu.corentic.springrag.service.graph.GraphDeletePort", + "import eu.corentic.springrag.service.graph.GraphStorePort", + "import eu.corentic.springrag.service.port.KnowledgeBaseDocumentPort", + "import eu.corentic.springrag.model.KnowledgeBase", + "import eu.corentic.springrag.model.KnowledgeBaseStats", + "import eu.corentic.springrag.model.graph.KnowledgeBaseNode", + "import eu.corentic.springrag.repository.graph.KnowledgeBaseRepository", + "import eu.corentic.springrag.service.port.KnowledgeBasePort", + "import eu.corentic.springrag.model.VectorChunk", + "import eu.corentic.springrag.repository.VectorRepository", + "import eu.corentic.springrag.service.port.ChunkIndexPort", + "import io.github.oshai.kotlinlogging.KotlinLogging", + "import eu.corentic.springrag.service.port.VectorDocumentDeletionPort", + "import eu.corentic.springrag.service.port.VectorDocumentPort", + "import eu.corentic.springrag.service.port.RetrievalPort" + ], + "arg_patterns": {} + }, + { + "label": "infrastructure/adapters/search/src/main/kotlin/eu/corentic/springrag/service/storage", + "method_count": 40, + "imports": [ + "import eu.corentic.springrag.common.ids.JobId", + "import eu.corentic.springrag.common.ids.StorageUri", + "import eu.corentic.springrag.config.ObjectStorageProperties", + "import eu.corentic.springrag.service.port.ObjectStoragePort", + "import io.github.oshai.kotlinlogging.KotlinLogging", + "import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty", + "import org.springframework.stereotype.Component", + "import software.amazon.awssdk.auth.credentials.DefaultCredentialsProvider", + "import software.amazon.awssdk.regions.Region", + "import software.amazon.awssdk.services.s3.S3Client", + "import software.amazon.awssdk.services.s3.model.Delete", + "import software.amazon.awssdk.services.s3.model.DeleteObjectRequest", + "import software.amazon.awssdk.services.s3.model.DeleteObjectsRequest", + "import software.amazon.awssdk.services.s3.model.HeadObjectRequest", + "import software.amazon.awssdk.services.s3.model.ListObjectsV2Request", + "import software.amazon.awssdk.services.s3.model.NoSuchBucketException", + "import software.amazon.awssdk.services.s3.model.PutObjectRequest", + "import software.amazon.awssdk.services.s3.model.S3Exception", + "import software.amazon.awssdk.core.sync.RequestBody", + "import com.google.cloud.storage.BlobId", + "import com.google.cloud.storage.BlobInfo", + "import com.google.cloud.storage.Storage", + "import com.google.cloud.storage.StorageOptions", + "import java.net.URI", + "import software.amazon.awssdk.auth.credentials.AwsBasicCredentials", + "import software.amazon.awssdk.auth.credentials.StaticCredentialsProvider", + "import software.amazon.awssdk.services.s3.S3Configuration", + "import software.amazon.awssdk.services.s3.model.CreateBucketRequest", + "import software.amazon.awssdk.services.s3.model.HeadBucketRequest" + ], + "arg_patterns": {} + }, + { + "label": "infrastructure/adapters/search/src/systemTest/kotlin/eu/corentic/springrag/config", + "method_count": 4, + "grammar": "root ::= (\"recreateTestCollection\" | \"registerProperties\")?+ \"corentic\"? \"collectionPointCount\"?+ \"springrag\"? \"testcontainers\"? \"GpuSupport\"? \"isDockerAvailable\"?+ \"start\"?+ \"pullAndWarmup\"?+ \"ollamaContainer\"?", + "grammar_clean": "root ::= (\"recreateTestCollection\" | \"registerProperties\")?+ \"corentic\"? \"collectionPointCount\"?+ \"springrag\"? \"testcontainers\"? \"GpuSupport\"? \"isDockerAvailable\"?+ \"start\"?+ \"pullAndWarmup\"?+ \"ollamaContainer\"?", + "noise_ratio": 0.15, + "symbols_before": 13, + "symbols_after": 11, + "algorithm": "CRX", + "mdl_score": 0, + "imports": [ + "import eu.corentic.springrag.testcontainers.OllamaModelSupport", + "import eu.corentic.springrag.testcontainers.QdrantTestSupport", + "import eu.corentic.springrag.testcontainers.QdrantTestSupport.recreateTestCollection", + "import eu.corentic.springrag.testcontainers.SharedContainers", + "import eu.corentic.springrag.testcontainers.SharedContainers.ContainerType", + "import io.qdrant.client.QdrantClient", + "import org.junit.jupiter.api.Assumptions", + "import org.junit.jupiter.api.BeforeAll", + "import org.junit.jupiter.api.BeforeEach", + "import org.springframework.beans.factory.annotation.Autowired", + "import org.springframework.boot.test.context.SpringBootTest", + "import org.springframework.test.context.ActiveProfiles", + "import org.springframework.test.context.DynamicPropertyRegistry", + "import org.springframework.test.context.DynamicPropertySource", + "import org.springframework.test.context.TestPropertySource", + "import org.testcontainers.junit.jupiter.Testcontainers" + ], + "arg_patterns": {} + }, + { + "label": "infrastructure/adapters/search/src/systemTest/kotlin/eu/corentic/springrag/repository/graph", + "method_count": 23, + "grammar": "root ::= \"findById\"?+ \"saveAll\"?+ (\"parse\" | \"runBlocking\")?+ \"orElseThrow\"?+", + "grammar_clean": "root ::= \"findById\"?+ \"saveAll\"?+ (\"parse\" | \"runBlocking\")?+ \"orElseThrow\"?+", + "noise_ratio": 0.17, + "symbols_before": 6, + "symbols_after": 5, + "algorithm": "CRX", + "mdl_score": 0, + "imports": [ + "import eu.corentic.springrag.config.BaseSystemTest", + "import eu.corentic.springrag.model.graph.DocumentJobNode", + "import eu.corentic.springrag.model.graph.ImageData", + "import eu.corentic.springrag.model.graph.KnowledgeBaseNode", + "import eu.corentic.springrag.model.graph.PageNode", + "import eu.corentic.springrag.model.graph.TextElement", + "import java.time.Instant", + "import org.junit.jupiter.api.Assertions.*", + "import org.junit.jupiter.api.Test", + "import org.springframework.beans.factory.annotation.Autowired", + "import org.springframework.test.annotation.DirtiesContext", + "import org.springframework.test.annotation.DirtiesContext.ClassMode.BEFORE_EACH_TEST_METHOD", + "import kotlinx.coroutines.runBlocking", + "import org.junit.jupiter.api.AfterEach", + "import org.junit.jupiter.api.BeforeEach", + "import eu.corentic.springrag.model.graph.TableElement", + "import org.junit.jupiter.api.Assertions.assertEquals", + "import org.springframework.context.annotation.Import" + ], + "arg_patterns": {} + }, + { + "label": "infrastructure/adapters/search/src/systemTest/kotlin/eu/corentic/springrag/system", + "method_count": 6, + "grammar": "root ::= \"setupTestCollection\"? \"runBlocking\"? \"VectorChunk\"?+ \"addChunks\"?+ \"searchSimilar\"?+ (\"any\" | \"asJobId\" | \"deleteByJobId\" | \"fetchByJobId\" | \"metadata\" | \"text\")?+", + "grammar_clean": "root ::= \"setupTestCollection\"? \"runBlocking\"? \"VectorChunk\"?+ \"addChunks\"?+ \"searchSimilar\"?+ (\"any\" | \"asJobId\" | \"deleteByJobId\" | \"fetchByJobId\" | \"metadata\" | \"text\")?+", + "noise_ratio": 0.45, + "symbols_before": 20, + "symbols_after": 11, + "algorithm": "CRX", + "mdl_score": 0, + "imports": [ + "import eu.corentic.springrag.common.ids.asJobId", + "import eu.corentic.springrag.config.BaseSystemTest", + "import eu.corentic.springrag.model.VectorChunk", + "import eu.corentic.springrag.repository.VectorRepository", + "import kotlinx.coroutines.runBlocking", + "import org.junit.jupiter.api.Assertions.assertEquals", + "import org.junit.jupiter.api.Assertions.assertTrue", + "import org.junit.jupiter.api.BeforeEach", + "import org.junit.jupiter.api.Test", + "import org.springframework.beans.factory.annotation.Autowired", + "import org.springframework.test.annotation.DirtiesContext", + "import org.springframework.test.annotation.DirtiesContext.ClassMode.BEFORE_CLASS" + ], + "arg_patterns": {} + }, + { + "label": "infrastructure/adapters/search/src/test/kotlin/eu/corentic/springrag/config", + "method_count": 3, + "grammar": "root ::= (\"IllegalStateException\" | \"`when`\" | \"anyString\" | \"atLeastOnce\" | \"java\" | \"neo4jSchemaInitializer\" | \"session\" | \"thenReturn\" | \"thenThrow\" | \"times\")?+ \"close\"?+ \"Driver\"? \"Neo4jConfig\"? \"transactionManager\"?+ \"Neo4jTransactionManager\"?", + "grammar_clean": "root ::= (\"IllegalStateException\" | \"`when`\" | \"anyString\" | \"atLeastOnce\" | \"java\" | \"neo4jSchemaInitializer\" | \"session\" | \"thenReturn\" | \"thenThrow\" | \"times\")?+ \"close\"?+ \"Driver\"? \"Neo4jConfig\"? \"transactionManager\"?+ \"Neo4jTransactionManager\"?", + "noise_ratio": 0.29, + "symbols_before": 21, + "symbols_after": 15, + "algorithm": "CRX", + "mdl_score": 13300, + "imports": [ + "import io.mockk.mockk", + "import org.junit.jupiter.api.Assertions.assertEquals", + "import org.junit.jupiter.api.Assertions.assertTrue", + "import org.junit.jupiter.api.Test", + "import org.neo4j.driver.Driver", + "import org.springframework.data.neo4j.core.transaction.Neo4jTransactionManager", + "import org.junit.jupiter.api.Assertions.assertThrows", + "import org.mockito.ArgumentMatchers.anyString", + "import org.mockito.ArgumentMatchers.contains", + "import org.mockito.Mockito.mock", + "import org.mockito.Mockito.times", + "import org.mockito.Mockito.atLeastOnce", + "import org.mockito.Mockito.verify", + "import org.mockito.Mockito.`when`", + "import org.neo4j.driver.Result", + "import org.neo4j.driver.Session" + ], + "arg_patterns": {} + }, + { + "label": "infrastructure/adapters/search/src/test/kotlin/eu/corentic/springrag/health", + "method_count": 6, + "grammar": "root ::= (\"HealthCheckReply\" | \"`when`\" | \"collectionExistsAsync\" | \"getDefaultInstance\" | \"healthCheckAsync\" | \"immediateFuture\" | \"thenReturn\" | \"verifyConnectivityAsync\")?+ \"failedFuture\"?+ \"immediateFailedFuture\"?+ \"completedFuture\"?+ \"IllegalStateException\"? (\"InterruptedException\" | \"TimeoutException\")? (\"Neo4jDriverHealthIndicator\" | \"QdrantVectorStoreHealthIndicator\" | \"block\" | \"code\" | \"currentThread\" | \"health\" | \"interrupted\" | \"isInterrupted\" | \"status\")?+", + "grammar_clean": "root ::= (\"HealthCheckReply\" | \"`when`\" | \"collectionExistsAsync\" | \"getDefaultInstance\" | \"healthCheckAsync\" | \"immediateFuture\" | \"thenReturn\" | \"verifyConnectivityAsync\")?+ \"failedFuture\"?+ \"immediateFailedFuture\"?+ \"completedFuture\"?+ \"IllegalStateException\"? (\"InterruptedException\" | \"TimeoutException\")? (\"Neo4jDriverHealthIndicator\" | \"QdrantVectorStoreHealthIndicator\" | \"block\" | \"code\" | \"currentThread\" | \"health\" | \"interrupted\" | \"isInterrupted\" | \"status\")?+", + "noise_ratio": 0.12, + "symbols_before": 26, + "symbols_after": 23, + "algorithm": "CRX", + "mdl_score": 0, + "imports": [ + "import java.util.concurrent.CompletableFuture", + "import org.junit.jupiter.api.Assertions.assertEquals", + "import org.junit.jupiter.api.Test", + "import org.mockito.Mockito.mock", + "import org.neo4j.driver.Driver", + "import org.mockito.Mockito.`when`", + "import com.google.common.util.concurrent.Futures", + "import io.qdrant.client.QdrantClient", + "import io.qdrant.client.grpc.QdrantOuterClass", + "import java.util.concurrent.TimeoutException", + "import kotlin.test.assertEquals", + "import kotlin.test.assertTrue" + ], + "arg_patterns": {} + }, + { + "label": "infrastructure/adapters/search/src/test/kotlin/eu/corentic/springrag/model/graph", + "method_count": 7, + "grammar": "root ::= \"ImageData\"? \"copy\"?+", + "grammar_clean": "root ::= \"ImageData\"? \"copy\"?+", + "noise_ratio": 0.6, + "symbols_before": 5, + "symbols_after": 2, + "algorithm": "CRX", + "mdl_score": 21, + "imports": [ + "import kotlin.test.assertEquals", + "import kotlin.test.assertNotEquals", + "import org.junit.jupiter.api.Test", + "import org.junit.jupiter.api.Assertions.assertEquals", + "import org.junit.jupiter.api.Assertions.assertNotEquals" + ], + "arg_patterns": {} + }, + { + "label": "infrastructure/adapters/search/src/test/kotlin/eu/corentic/springrag/repository", + "method_count": 19, + "grammar": "root ::= \"text\"? \"delete\"?+ \"similaritySearch\"?+ \"match\"? \"any\"? \"SearchRequest\"? \"filterExpression\"?+", + "grammar_clean": "root ::= \"text\"? \"delete\"?+ \"similaritySearch\"?+ \"match\"? \"any\"? \"SearchRequest\"? \"filterExpression\"?+", + "noise_ratio": 0.53, + "symbols_before": 15, + "symbols_after": 7, + "algorithm": "CRX", + "mdl_score": 0, + "imports": [ + "import eu.corentic.springrag.common.ids.asDocumentId", + "import eu.corentic.springrag.common.ids.asJobId", + "import eu.corentic.springrag.common.ids.asKnowledgeBaseId", + "import eu.corentic.springrag.common.ids.asLogicalDocumentId", + "import eu.corentic.springrag.model.VectorChunk", + "import eu.corentic.springrag.testsupport.NoOpCircuitBreakerFactory", + "import io.mockk.every", + "import io.mockk.just", + "import io.mockk.mockk", + "import io.mockk.runs", + "import io.mockk.verify", + "import org.junit.jupiter.api.BeforeEach", + "import org.junit.jupiter.api.Test", + "import org.springframework.ai.document.Document", + "import org.springframework.ai.vectorstore.SearchRequest", + "import org.springframework.ai.vectorstore.VectorStore", + "import kotlin.test.assertEquals", + "import kotlin.test.assertTrue" + ], + "arg_patterns": {} + }, + { + "label": "infrastructure/adapters/search/src/test/kotlin/eu/corentic/springrag/service/cleanup", + "method_count": 4, + "grammar": "root ::= (\"DocumentDeletionRequested\" | \"KnowledgeBaseDeletionRequested\" | \"asJobId\" | \"asKnowledgeBaseId\" | \"deleteByJobId\" | \"deleteByKnowledgeBaseId\" | \"onDocumentDeletionRequested\" | \"onKnowledgeBaseDeletionRequested\")+", + "grammar_clean": "root ::= (\"DocumentDeletionRequested\" | \"KnowledgeBaseDeletionRequested\" | \"asJobId\" | \"asKnowledgeBaseId\" | \"deleteByJobId\" | \"deleteByKnowledgeBaseId\" | \"onDocumentDeletionRequested\" | \"onKnowledgeBaseDeletionRequested\")+", + "noise_ratio": 0.2, + "symbols_before": 10, + "symbols_after": 8, + "algorithm": "CRX", + "mdl_score": 388660, + "imports": [ + "import eu.corentic.springrag.model.event.DocumentDeletionRequested", + "import eu.corentic.springrag.service.graph.GraphIngestionOrchestrator", + "import eu.corentic.springrag.common.ids.asJobId", + "import eu.corentic.springrag.common.ids.asKnowledgeBaseId", + "import io.mockk.every", + "import io.mockk.just", + "import io.mockk.mockk", + "import io.mockk.runs", + "import io.mockk.verify", + "import org.junit.jupiter.api.Test", + "import eu.corentic.springrag.model.event.KnowledgeBaseDeletionRequested", + "import eu.corentic.springrag.repository.VectorRepository" + ], + "arg_patterns": {} + }, + { + "label": "infrastructure/adapters/search/src/test/kotlin/eu/corentic/springrag/service/graph", + "method_count": 30, + "grammar": "root ::= \"asDocumentId\"?+ \"asJobId\"?+ \"asLogicalDocumentId\"?+ \"findOrCreateInactive\"?+ \"asFilename\"?+ \"any\"?+ \"stubDocumentGraphJob\"?", + "grammar_clean": "root ::= \"asDocumentId\"?+ \"asJobId\"?+ \"asLogicalDocumentId\"?+ \"findOrCreateInactive\"?+ \"asFilename\"?+ \"any\"?+ \"stubDocumentGraphJob\"?", + "noise_ratio": 0.12, + "symbols_before": 8, + "symbols_after": 7, + "algorithm": "CRX", + "mdl_score": 0, + "imports": [ + "import eu.corentic.springrag.model.DocumentGraphJob", + "import eu.corentic.springrag.model.GraphDocument", + "import eu.corentic.springrag.model.GraphImagePayload", + "import eu.corentic.springrag.model.GraphPage", + "import eu.corentic.springrag.model.GraphPictureElement", + "import eu.corentic.springrag.model.GraphTableElement", + "import eu.corentic.springrag.model.GraphTextElement", + "import eu.corentic.springrag.service.port.DocumentGraphJobPort", + "import eu.corentic.springrag.service.port.KnowledgeBasePort", + "import eu.corentic.springrag.service.port.ObjectStoragePort", + "import eu.corentic.springrag.testsupport.NoOpCircuitBreakerFactory", + "import eu.corentic.springrag.common.ids.asDocumentId", + "import eu.corentic.springrag.common.ids.asFilename", + "import eu.corentic.springrag.common.ids.asJobId", + "import eu.corentic.springrag.common.ids.asKnowledgeBaseId", + "import eu.corentic.springrag.common.ids.asLogicalDocumentId", + "import eu.corentic.springrag.common.ids.asStorageUri", + "import io.mockk.*", + "import io.mockk.impl.annotations.MockK", + "import io.mockk.junit5.MockKExtension", + "import org.junit.jupiter.api.Assertions.*", + "import org.junit.jupiter.api.BeforeEach", + "import org.junit.jupiter.api.Test", + "import org.junit.jupiter.api.extension.ExtendWith" + ], + "arg_patterns": {} + }, + { + "label": "infrastructure/adapters/search/src/test/kotlin/eu/corentic/springrag/service/port/adapter", + "method_count": 28, + "imports": [ + "import eu.corentic.springrag.model.graph.ImageData", + "import eu.corentic.springrag.model.graph.TableElement", + "import eu.corentic.springrag.model.graph.TextElement", + "import eu.corentic.springrag.repository.graph.ImageDataRepository", + "import eu.corentic.springrag.repository.graph.TableElementRepository", + "import eu.corentic.springrag.repository.graph.TextElementRepository", + "import eu.corentic.springrag.service.port.ObjectStoragePort", + "import eu.corentic.springrag.common.ids.asStorageUri", + "import io.mockk.every", + "import io.mockk.mockk", + "import io.mockk.verify", + "import java.util.Optional", + "import org.junit.jupiter.api.Assertions.assertEquals", + "import org.junit.jupiter.api.Assertions.assertNull", + "import org.junit.jupiter.api.Test", + "import eu.corentic.springrag.model.DocumentGraphJob", + "import eu.corentic.springrag.model.graph.DocumentJobNode", + "import eu.corentic.springrag.model.graph.KnowledgeBaseNode", + "import eu.corentic.springrag.repository.graph.DocumentJobNodeRepository", + "import eu.corentic.springrag.common.ids.asDocumentId", + "import eu.corentic.springrag.common.ids.asFilename", + "import eu.corentic.springrag.common.ids.asJobId", + "import eu.corentic.springrag.common.ids.asKnowledgeBaseId", + "import eu.corentic.springrag.common.ids.asLogicalDocumentId", + "import java.time.Instant", + "import org.junit.jupiter.api.Assertions.assertTrue", + "import eu.corentic.springrag.repository.graph.GraphMaintenanceRepository", + "import io.mockk.just", + "import io.mockk.runs", + "import eu.corentic.springrag.model.KnowledgeBase", + "import eu.corentic.springrag.repository.graph.KnowledgeBaseRepository", + "import eu.corentic.springrag.model.VectorChunk", + "import eu.corentic.springrag.repository.VectorRepository" + ], + "arg_patterns": {} + }, + { + "label": "infrastructure/adapters/search/src/test/kotlin/eu/corentic/springrag/service/storage", + "method_count": 3, + "grammar": "root ::= \"parseS3Location\"? \"bucket\"?+ \"key\"?", + "grammar_clean": "root ::= \"parseS3Location\"? \"bucket\"?+ \"key\"?", + "noise_ratio": 0.5, + "symbols_before": 6, + "symbols_after": 3, + "algorithm": "CRX", + "mdl_score": 182, + "imports": [ + "import kotlin.test.Test", + "import kotlin.test.assertEquals", + "import kotlin.test.assertNull" + ], + "arg_patterns": {} + }, + { + "label": "infrastructure/adapters/search/src/test/kotlin/eu/corentic/springrag/testsupport", + "method_count": 3, + "grammar": "root ::= \"Builder\"+", + "grammar_clean": "root ::= \"Builder\"+", + "noise_ratio": 0.67, + "symbols_before": 3, + "symbols_after": 1, + "algorithm": "CRX", + "mdl_score": 15, + "imports": [ + "import java.util.function.Function", + "import java.util.function.Supplier", + "import org.springframework.cloud.client.circuitbreaker.CircuitBreaker", + "import org.springframework.cloud.client.circuitbreaker.CircuitBreakerFactory", + "import org.springframework.cloud.client.circuitbreaker.ConfigBuilder" + ], + "arg_patterns": {} + }, + { + "label": "modules/chat/src/integrationTest/kotlin/eu/corentic/springrag/service/chat", + "method_count": 4, + "grammar": "root ::= \"runBlocking\"? \"ChatService\"? \"ChatResponse\"? \"defaultAgentId\"? \"listCapabilities\"? \"RagInvocation\"? \"RagRequest\"? \"http\"?+ (\"answer\" | \"chatWithSources\")?+", + "grammar_clean": "root ::= \"runBlocking\"? \"ChatService\"? \"ChatResponse\"? \"defaultAgentId\"? \"listCapabilities\"? \"RagInvocation\"? \"RagRequest\"? \"http\"?+ (\"answer\" | \"chatWithSources\")?+", + "noise_ratio": 0.44, + "symbols_before": 18, + "symbols_after": 10, + "algorithm": "CRX", + "mdl_score": 95, + "imports": [ + "import eu.corentic.springrag.agent.capability.AgentCapabilityDirectory", + "import eu.corentic.springrag.agent.rag.RagAgentInvocationGateway", + "import org.springframework.boot.SpringBootConfiguration", + "import org.springframework.boot.autoconfigure.EnableAutoConfiguration", + "import org.springframework.context.annotation.Bean", + "import eu.corentic.springrag.agent.capability.AgentExecutionContext", + "import eu.corentic.springrag.agent.rag.RagInvocation", + "import eu.corentic.springrag.agent.rag.RagRequest", + "import eu.corentic.springrag.common.ids.KnowledgeBaseId", + "import eu.corentic.springrag.model.ChatResponse", + "import io.mockk.every", + "import io.mockk.coEvery", + "import io.mockk.coVerify", + "import io.mockk.mockk", + "import kotlinx.coroutines.runBlocking", + "import org.junit.jupiter.api.Assertions.assertEquals", + "import org.junit.jupiter.api.Test", + "import org.springframework.beans.factory.annotation.Autowired", + "import org.springframework.boot.test.context.SpringBootTest", + "import org.springframework.boot.test.context.TestConfiguration", + "import org.springframework.test.context.ActiveProfiles" + ], + "arg_patterns": {} + }, + { + "label": "modules/chat/src/main/kotlin/eu/corentic/springrag/service/chat", + "method_count": 6, + "grammar": "root ::= \"info\"?+ \"KnowledgeBaseId\"? \"defaultAgentId\"?+ (\"RagInvocation\" | \"RagRequest\" | \"return ragAgentInvocationGateway.invoke(\n RagInvocation(\n request = request,\n executionContext = AgentExecutionContext.http()\n )\n )\" | \"return ragAgentInvocationGateway.invoke(\n RagInvocation(\n request = request,\n executionContext = AgentExecutionContext.http(contextId = conversationId)\n )\n )\")?+ \"listCapabilities\"?+ \"http\"?+ \"AgentCapabilityDescriptor\"? \"id\"?", + "grammar_clean": "root ::= \"info\"?+ \"KnowledgeBaseId\"? \"defaultAgentId\"?+ (\"RagInvocation\" | \"RagRequest\" | \"return ragAgentInvocationGateway.invoke(\n RagInvocation(\n request = request,\n executionContext = AgentExecutionContext.http()\n )\n )\" | \"return ragAgentInvocationGateway.invoke(\n RagInvocation(\n request = request,\n executionContext = AgentExecutionContext.http(contextId = conversationId)\n )\n )\")?+ \"listCapabilities\"?+ \"http\"?+ \"AgentCapabilityDescriptor\"? \"id\"?", + "noise_ratio": 0.27, + "symbols_before": 15, + "symbols_after": 11, + "algorithm": "CRX", + "mdl_score": 0, + "imports": [ + "import eu.corentic.springrag.agent.capability.AgentCapabilityDescriptor", + "import eu.corentic.springrag.agent.capability.AgentCapabilityDirectory", + "import eu.corentic.springrag.agent.capability.AgentExecutionContext", + "import eu.corentic.springrag.agent.capability.isExposedOverHttp", + "import eu.corentic.springrag.agent.rag.RagAgentInvocationGateway", + "import eu.corentic.springrag.agent.rag.RagInvocation", + "import eu.corentic.springrag.agent.rag.RagRequest", + "import eu.corentic.springrag.common.ids.KnowledgeBaseId", + "import eu.corentic.springrag.model.ChatResponse", + "import jakarta.annotation.PostConstruct", + "import io.github.oshai.kotlinlogging.KotlinLogging", + "import org.springframework.stereotype.Service" + ], + "arg_patterns": {} + }, + { + "label": "modules/chat/src/systemTest/kotlin/eu/corentic/springrag/config", + "method_count": 15, + "imports": [ + "import eu.corentic.springrag.testcontainers.OllamaModelSupport", + "import eu.corentic.springrag.testcontainers.QdrantTestSupport", + "import eu.corentic.springrag.testcontainers.QdrantTestSupport.recreateTestCollection", + "import eu.corentic.springrag.testcontainers.SharedContainers", + "import eu.corentic.springrag.testcontainers.SharedContainers.ContainerType", + "import io.qdrant.client.QdrantClient", + "import java.time.Duration", + "import java.time.Instant", + "import java.util.UUID", + "import org.junit.jupiter.api.Assumptions", + "import org.junit.jupiter.api.BeforeAll", + "import org.junit.jupiter.api.BeforeEach", + "import org.neo4j.driver.Driver", + "import org.springframework.beans.factory.annotation.Autowired", + "import org.springframework.boot.test.context.SpringBootTest", + "import org.springframework.boot.webtestclient.autoconfigure.AutoConfigureWebTestClient", + "import org.springframework.jdbc.core.JdbcTemplate", + "import org.springframework.security.crypto.password.PasswordEncoder", + "import org.springframework.test.context.ActiveProfiles", + "import org.springframework.test.context.DynamicPropertyRegistry", + "import org.springframework.test.context.DynamicPropertySource", + "import org.springframework.test.context.TestPropertySource", + "import org.springframework.test.web.reactive.server.WebTestClient", + "import org.testcontainers.junit.jupiter.Testcontainers", + "import java.sql.Timestamp", + "import org.springframework.ai.chat.memory.ChatMemory", + "import org.springframework.ai.chat.memory.ChatMemoryRepository", + "import org.springframework.ai.chat.memory.MessageWindowChatMemory", + "import org.springframework.context.annotation.Bean", + "import org.springframework.context.annotation.Configuration", + "import org.springframework.boot.SpringBootConfiguration", + "import org.springframework.boot.autoconfigure.EnableAutoConfiguration", + "import org.springframework.boot.context.properties.ConfigurationPropertiesScan", + "import org.springframework.context.annotation.ComponentScan", + "import org.springframework.data.neo4j.repository.config.EnableNeo4jRepositories", + "import org.springframework.data.jdbc.repository.config.EnableJdbcRepositories", + "import org.springframework.jdbc.datasource.DataSourceTransactionManager", + "import org.springframework.transaction.PlatformTransactionManager", + "import javax.sql.DataSource", + "import ai.docling.serve.api.DoclingServeApi", + "import ai.docling.serve.client.DoclingServeClientBuilderFactory", + "import java.lang.reflect.InvocationTargetException" + ], + "arg_patterns": {} + }, + { + "label": "modules/chat/src/systemTest/kotlin/eu/corentic/springrag/system", + "method_count": 4, + "grammar": "root ::= \"runBlocking\"? \"setupTestCollection\"? \"addChunks\"?+ \"VectorChunk\"? (\"ChatResponse\" | \"SessionChatRequest\" | \"adminClient\" | \"answer\" | \"any\" | \"atMost\" | \"await\" | \"blockFirst\" | \"bodyValue\" | \"conversationId\" | \"exchange\" | \"expectBody\" | \"expectStatus\" | \"isEqualTo\" | \"isNotBlank\" | \"isOk\" | \"jsonPath\" | \"lowercase\" | \"ofSeconds\" | \"post\" | \"responseBody\" | \"returnResult\" | \"text\" | \"untilAsserted\" | \"uri\" | \"value\")?+", + "grammar_clean": "root ::= \"runBlocking\"? \"setupTestCollection\"? \"addChunks\"?+ \"VectorChunk\"? (\"ChatResponse\" | \"SessionChatRequest\" | \"adminClient\" | \"answer\" | \"any\" | \"atMost\" | \"await\" | \"blockFirst\" | \"bodyValue\" | \"conversationId\" | \"exchange\" | \"expectBody\" | \"expectStatus\" | \"isEqualTo\" | \"isNotBlank\" | \"isOk\" | \"jsonPath\" | \"lowercase\" | \"ofSeconds\" | \"post\" | \"responseBody\" | \"returnResult\" | \"text\" | \"untilAsserted\" | \"uri\" | \"value\")?+", + "noise_ratio": 0.23, + "symbols_before": 39, + "symbols_after": 30, + "algorithm": "CRX", + "mdl_score": 3008, + "imports": [ + "import eu.corentic.springrag.config.BaseSystemTest", + "import eu.corentic.springrag.controller.SessionChatRequest", + "import eu.corentic.springrag.model.ChatResponse", + "import eu.corentic.springrag.model.VectorChunk", + "import eu.corentic.springrag.repository.VectorRepository", + "import java.time.Duration", + "import kotlinx.coroutines.runBlocking", + "import org.awaitility.Awaitility.await", + "import org.junit.jupiter.api.Assertions.assertEquals", + "import org.junit.jupiter.api.Assertions.assertNotNull", + "import org.junit.jupiter.api.Assertions.assertTrue", + "import org.junit.jupiter.api.Test", + "import org.springframework.ai.chat.memory.ChatMemory", + "import org.springframework.beans.factory.annotation.Autowired", + "import org.springframework.boot.webtestclient.autoconfigure.AutoConfigureWebTestClient", + "import org.springframework.test.web.reactive.server.WebTestClient", + "import org.springframework.test.web.reactive.server.returnResult" + ], + "arg_patterns": {} + }, + { + "label": "modules/chat/src/test/kotlin/eu/corentic/springrag/service/chat", + "method_count": 8, + "grammar": "root ::= \"answer\"? (\"ChatResponse\" | \"RagInvocation\" | \"RagRequest\" | \"asKnowledgeBaseId\" | \"defaultAgentId\" | \"http\" | \"listCapabilities\")?+ \"ChatService\"?", + "grammar_clean": "root ::= \"answer\"? (\"ChatResponse\" | \"RagInvocation\" | \"RagRequest\" | \"asKnowledgeBaseId\" | \"defaultAgentId\" | \"http\" | \"listCapabilities\")?+ \"ChatService\"?", + "noise_ratio": 0.44, + "symbols_before": 16, + "symbols_after": 9, + "algorithm": "CRX", + "mdl_score": 639936, + "imports": [ + "import eu.corentic.springrag.agent.capability.AgentCapabilityDirectory", + "import eu.corentic.springrag.agent.capability.AgentExecutionContext", + "import eu.corentic.springrag.agent.rag.RagAgentInvocationGateway", + "import eu.corentic.springrag.agent.rag.RagInvocation", + "import eu.corentic.springrag.agent.rag.RagRequest", + "import eu.corentic.springrag.common.ids.asKnowledgeBaseId", + "import eu.corentic.springrag.model.ChatResponse", + "import io.mockk.coEvery", + "import io.mockk.coVerify", + "import io.mockk.every", + "import io.mockk.mockk", + "import kotlinx.coroutines.test.StandardTestDispatcher", + "import kotlinx.coroutines.test.runTest", + "import org.junit.jupiter.api.Assertions.assertEquals", + "import org.junit.jupiter.api.Test", + "import eu.corentic.springrag.agent.capability.AgentCapabilityDescriptor", + "import org.junit.jupiter.api.BeforeEach" + ], + "arg_patterns": {} + }, + { + "label": "modules/common/src/main/kotlin/eu/corentic/springrag/common", + "method_count": 7, + "grammar": "root ::= \"Ok\"? \"Err\"?", + "grammar_clean": "root ::= \"Ok\"? \"Err\"?", + "noise_ratio": 0.33, + "symbols_before": 3, + "symbols_after": 2, + "algorithm": "CRX", + "mdl_score": 4, + "imports": [], + "arg_patterns": {} + }, + { + "label": "modules/common/src/main/kotlin/eu/corentic/springrag/common/ids", + "method_count": 18, + "imports": [], + "arg_patterns": {} + }, + { + "label": "modules/common/src/test/kotlin/eu/corentic/springrag/common/ids", + "method_count": 8, + "grammar": "root ::= (\"IllegalArgumentException\" | \"value\")?+", + "grammar_clean": "root ::= (\"IllegalArgumentException\" | \"value\")?+", + "noise_ratio": 0.6, + "symbols_before": 5, + "symbols_after": 2, + "algorithm": "CRX", + "mdl_score": 2768, + "imports": [ + "import kotlin.test.Test", + "import kotlin.test.assertEquals", + "import kotlin.test.assertFailsWith" + ], + "arg_patterns": {} + }, + { + "label": "modules/ingestion/src/integrationTest/kotlin/eu/corentic/springrag/service/job", + "method_count": 34, + "imports": [ + "import com.ninjasquad.springmockk.MockkBean", + "import eu.corentic.springrag.batch.DocumentIngestionJobConfig", + "import eu.corentic.springrag.batch.model.DocumentInput", + "import eu.corentic.springrag.batch.model.ProcessedDocument", + "import eu.corentic.springrag.batch.processor.DocumentProcessingItemProcessor", + "import eu.corentic.springrag.common.ids.Filename", + "import eu.corentic.springrag.common.ids.JobId", + "import eu.corentic.springrag.service.port.DocumentParserPort", + "import eu.corentic.springrag.service.port.ChunkIndexPort", + "import eu.corentic.springrag.service.port.GraphIndexPort", + "import io.mockk.clearMocks", + "import io.mockk.every", + "import java.io.File", + "import java.time.Duration", + "import org.awaitility.Awaitility.await", + "import org.junit.jupiter.api.Assertions", + "import org.junit.jupiter.api.Assertions.assertEquals", + "import org.junit.jupiter.api.Assertions.assertTrue", + "import org.junit.jupiter.api.AfterEach", + "import org.junit.jupiter.api.BeforeEach", + "import org.junit.jupiter.api.Test", + "import io.github.oshai.kotlinlogging.KotlinLogging", + "import org.springframework.beans.factory.annotation.Autowired", + "import org.springframework.boot.test.context.SpringBootTest", + "import org.springframework.test.context.ActiveProfiles", + "import eu.corentic.springrag.batch.model.ProcessingError", + "import org.junit.jupiter.api.Assertions.assertNotNull", + "import org.springframework.jdbc.core.JdbcTemplate", + "import eu.corentic.springrag.common.ids.DocumentId", + "import eu.corentic.springrag.common.ids.KnowledgeBaseId", + "import eu.corentic.springrag.common.ids.LogicalDocumentId", + "import eu.corentic.springrag.batch.listener.BatchJobListener", + "import eu.corentic.springrag.batch.listener.SimpleDocumentTrackingListener", + "import eu.corentic.springrag.batch.partition.DocumentPartitioner", + "import eu.corentic.springrag.batch.reader.FileBasedDocumentItemReader", + "import eu.corentic.springrag.batch.writer.GraphStoreItemWriter", + "import java.nio.file.Files", + "import java.util.concurrent.CountDownLatch", + "import java.util.concurrent.TimeUnit", + "import java.util.concurrent.atomic.AtomicLong", + "import org.springframework.batch.core.job.Job", + "import org.springframework.batch.core.job.JobExecution", + "import org.springframework.batch.core.job.JobInstance", + "import org.springframework.batch.core.job.parameters.JobParameters", + "import org.springframework.batch.core.launch.JobOperator", + "import org.junit.jupiter.api.Assertions.assertNull", + "import eu.corentic.springrag.common.ids.StorageUri", + "import eu.corentic.springrag.service.port.ObjectStoragePort", + "import java.util.concurrent.ConcurrentHashMap", + "import org.springframework.context.annotation.Bean", + "import org.springframework.context.annotation.Configuration", + "import org.springframework.context.annotation.Profile" + ], + "arg_patterns": {} + }, + { + "label": "modules/ingestion/src/main/kotlin/eu/corentic/springrag/batch", + "method_count": 16, + "grammar": "root ::= \"build\"+", + "noise_ratio": 1.0, + "algorithm": "CRX", + "mdl_score": 2, + "imports": [ + "import eu.corentic.springrag.batch.listener.BatchJobListener", + "import eu.corentic.springrag.batch.listener.DocumentActivationWriteListener", + "import eu.corentic.springrag.batch.listener.DocumentIngestionStageWriteListener", + "import eu.corentic.springrag.batch.listener.SimpleDocumentTrackingListener", + "import eu.corentic.springrag.batch.model.DocumentInput", + "import eu.corentic.springrag.batch.model.ProcessedDocument", + "import eu.corentic.springrag.batch.partition.DocumentPartitioner", + "import eu.corentic.springrag.batch.processor.DocumentProcessingItemProcessor", + "import eu.corentic.springrag.batch.reader.FileBasedDocumentItemReader", + "import eu.corentic.springrag.batch.writer.DocumentActivationWriter", + "import eu.corentic.springrag.batch.writer.DocumentIngestionStageWriter", + "import eu.corentic.springrag.service.job.IngestionDocumentState", + "import eu.corentic.springrag.service.job.IngestionDocumentStateRepository", + "import eu.corentic.springrag.config.BatchProperties", + "import eu.corentic.springrag.service.port.ObjectStoragePort", + "import javax.sql.DataSource", + "import io.github.oshai.kotlinlogging.KotlinLogging", + "import org.springframework.batch.core.configuration.annotation.StepScope", + "import org.springframework.batch.core.job.Job", + "import org.springframework.batch.core.job.builder.JobBuilder", + "import org.springframework.batch.core.repository.JobRepository", + "import org.springframework.batch.core.partition.PartitionHandler", + "import org.springframework.batch.core.partition.support.TaskExecutorPartitionHandler", + "import org.springframework.batch.core.step.Step", + "import org.springframework.batch.core.step.builder.StepBuilder", + "import org.springframework.batch.core.step.skip.SkipPolicy", + "import org.springframework.batch.core.listener.SkipListener", + "import org.springframework.batch.infrastructure.item.database.JdbcCursorItemReader", + "import org.springframework.batch.infrastructure.item.database.builder.JdbcCursorItemReaderBuilder", + "import org.springframework.beans.factory.annotation.Qualifier", + "import org.springframework.beans.factory.annotation.Value", + "import org.springframework.context.annotation.Bean", + "import org.springframework.context.annotation.Configuration", + "import org.springframework.core.task.TaskExecutor", + "import org.springframework.core.retry.RetryPolicy", + "import org.springframework.dao.TransientDataAccessException", + "import org.springframework.transaction.PlatformTransactionManager", + "import org.springframework.util.backoff.FixedBackOff", + "import java.io.IOException", + "import eu.corentic.springrag.service.chunk.DocumentChunkService", + "import eu.corentic.springrag.service.port.DocumentParserPort", + "import eu.corentic.springrag.service.port.DocumentParsingRequest", + "import org.springframework.batch.infrastructure.item.ItemProcessor", + "import org.springframework.stereotype.Component" + ], + "arg_patterns": {} + }, + { + "label": "modules/ingestion/src/main/kotlin/eu/corentic/springrag/batch/listener", + "method_count": 16, + "grammar": "root ::= (\"filename\" | \"jobId\" | \"recordFailure\")?+ \"markFailed\"?+ \"documentId\"?", + "grammar_clean": "root ::= (\"filename\" | \"jobId\" | \"recordFailure\")?+ \"markFailed\"?+ \"documentId\"?", + "noise_ratio": 0.17, + "symbols_before": 6, + "symbols_after": 5, + "algorithm": "CRX", + "mdl_score": 93, + "imports": [ + "import io.github.oshai.kotlinlogging.KotlinLogging", + "import org.springframework.batch.core.BatchStatus", + "import org.springframework.batch.core.job.JobExecution", + "import org.springframework.batch.core.listener.JobExecutionListener", + "import org.springframework.stereotype.Component", + "import eu.corentic.springrag.service.job.StagedUploadCleanupService", + "import eu.corentic.springrag.service.job.DocumentTrackingRepository", + "import eu.corentic.springrag.service.job.IngestionDocumentState", + "import eu.corentic.springrag.service.job.IngestionDocumentStateRepository", + "import org.springframework.batch.core.listener.ItemWriteListener", + "import org.springframework.batch.core.listener.SkipListener", + "import org.springframework.batch.infrastructure.item.Chunk", + "import eu.corentic.springrag.batch.model.ProcessedDocument", + "import eu.corentic.springrag.batch.model.ProcessingError", + "import eu.corentic.springrag.common.ids.Filename", + "import eu.corentic.springrag.batch.model.DocumentInput", + "import org.springframework.batch.core.listener.ItemProcessListener" + ], + "arg_patterns": {} + }, + { + "label": "modules/ingestion/src/main/kotlin/eu/corentic/springrag/batch/model", + "method_count": 4, + "grammar": "root ::= (\"DocumentInput\" | \"content\" | \"contentEquals\" | \"documentId\" | \"fileStorageUri\" | \"filename\" | \"javaClass\" | \"jobId\" | \"knowledgeBaseId\" | \"logicalDocumentId\" | \"return false\" | \"return true\" | \"submittedBy\")?+ \"entries\"? \"contentHashCode\"?+ \"return result\"? (\"key\" | \"startsWith\")?+ \"endsWith\"?+ \"mapNotNull\"?+ \"value\"? (\"DocumentParsingError\" | \"ERROR\" | \"GenericError\" | \"NetworkTimeoutError\" | \"ValidationError\" | \"WARNING\" | \"return when (errorType) {\n \\\"DocumentParsingError\\\" -> ProcessingError.DocumentParsingError(\n filename = this[\\\"document.doc${index}.error.filename\\\"] as? String ?: \\\"unknown\\\",\n line = this[\\\"document.doc${index}.error.line\\\"] as? Int,\n message = message ?: \\\"Unknown parsing error\\\",\n retryable = retryable,\n severity = severity?.let { ErrorSeverity.valueOf(it) } ?: ErrorSeverity.ERROR\n )\n \\\"NetworkTimeoutError\\\" -> ProcessingError.NetworkTimeoutError(\n timeoutMs = this[\\\"document.doc${index}.error.timeoutMs\\\"] as? Long ?: 30000,\n message = message ?: \\\"Unknown timeout error\\\",\n retryable = retryable,\n severity = severity?.let { ErrorSeverity.valueOf(it) } ?: ErrorSeverity.WARNING\n )\n \\\"ValidationError\\\" -> ProcessingError.ValidationError(\n field = this[\\\"document.doc${index}.error.field\\\"] as? String ?: \\\"unknown\\\",\n value = this[\\\"document.doc${index}.error.value\\\"] as? String ?: \\\"unknown\\\",\n message = message ?: \\\"Unknown validation error\\\",\n retryable = retryable,\n severity = severity?.let { ErrorSeverity.valueOf(it) } ?: ErrorSeverity.ERROR\n )\n else -> ProcessingError.GenericError(\n exceptionType = errorType ?: \\\"UnknownError\\\",\n message = message ?: \\\"Unknown error\\\",\n retryable = retryable,\n severity = severity?.let { ErrorSeverity.valueOf(it) } ?: ErrorSeverity.ERROR\n )\n }\" | \"valueOf\")?+ \"return ErrorSummary(\n totalErrors = errors.size,\n retryableErrors = errors.count { it.contains(\\\"timeout\\\") || it.contains(\\\"retryable\\\") },\n firstError = errors.firstOrNull()\n )\"? \"ErrorSummary\"?", + "grammar_clean": "root ::= (\"DocumentInput\" | \"content\" | \"contentEquals\" | \"documentId\" | \"fileStorageUri\" | \"filename\" | \"javaClass\" | \"jobId\" | \"knowledgeBaseId\" | \"logicalDocumentId\" | \"return false\" | \"return true\" | \"submittedBy\")?+ \"entries\"? \"contentHashCode\"?+ \"return result\"? (\"key\" | \"startsWith\")?+ \"endsWith\"?+ \"mapNotNull\"?+ \"value\"? (\"DocumentParsingError\" | \"ERROR\" | \"GenericError\" | \"NetworkTimeoutError\" | \"ValidationError\" | \"WARNING\" | \"return when (errorType) {\n \\\"DocumentParsingError\\\" -> ProcessingError.DocumentParsingError(\n filename = this[\\\"document.doc${index}.error.filename\\\"] as? String ?: \\\"unknown\\\",\n line = this[\\\"document.doc${index}.error.line\\\"] as? Int,\n message = message ?: \\\"Unknown parsing error\\\",\n retryable = retryable,\n severity = severity?.let { ErrorSeverity.valueOf(it) } ?: ErrorSeverity.ERROR\n )\n \\\"NetworkTimeoutError\\\" -> ProcessingError.NetworkTimeoutError(\n timeoutMs = this[\\\"document.doc${index}.error.timeoutMs\\\"] as? Long ?: 30000,\n message = message ?: \\\"Unknown timeout error\\\",\n retryable = retryable,\n severity = severity?.let { ErrorSeverity.valueOf(it) } ?: ErrorSeverity.WARNING\n )\n \\\"ValidationError\\\" -> ProcessingError.ValidationError(\n field = this[\\\"document.doc${index}.error.field\\\"] as? String ?: \\\"unknown\\\",\n value = this[\\\"document.doc${index}.error.value\\\"] as? String ?: \\\"unknown\\\",\n message = message ?: \\\"Unknown validation error\\\",\n retryable = retryable,\n severity = severity?.let { ErrorSeverity.valueOf(it) } ?: ErrorSeverity.ERROR\n )\n else -> ProcessingError.GenericError(\n exceptionType = errorType ?: \\\"UnknownError\\\",\n message = message ?: \\\"Unknown error\\\",\n retryable = retryable,\n severity = severity?.let { ErrorSeverity.valueOf(it) } ?: ErrorSeverity.ERROR\n )\n }\" | \"valueOf\")?+ \"return ErrorSummary(\n totalErrors = errors.size,\n retryableErrors = errors.count { it.contains(\\\"timeout\\\") || it.contains(\\\"retryable\\\") },\n firstError = errors.firstOrNull()\n )\"? \"ErrorSummary\"?", + "noise_ratio": 0.31, + "symbols_before": 45, + "symbols_after": 31, + "algorithm": "CRX", + "mdl_score": 0, + "imports": [ + "import eu.corentic.springrag.common.ids.DocumentId", + "import eu.corentic.springrag.common.ids.Filename", + "import eu.corentic.springrag.common.ids.JobId", + "import eu.corentic.springrag.common.ids.KnowledgeBaseId", + "import eu.corentic.springrag.common.ids.LogicalDocumentId", + "import eu.corentic.springrag.common.ids.StorageUri", + "import eu.corentic.springrag.model.GraphDocument", + "import eu.corentic.springrag.model.VectorChunk", + "import java.time.Instant" + ], + "arg_patterns": {} + }, + { + "label": "modules/ingestion/src/main/kotlin/eu/corentic/springrag/batch/partition", + "method_count": 4, + "grammar": "root ::= \"getString\"?+ (\"Exception\" | \"ExecutionContext\" | \"Filename\" | \"IllegalStateException\" | \"List\" | \"UUID\" | \"appendPath\" | \"catch\" | \"compareTo\" | \"createEmptyPartitions\" | \"exists\" | \"fileName\" | \"filenameFromUri\" | \"for\" | \"forEachIndexed\" | \"getDefault\" | \"getPathMatcher\" | \"info\" | \"isDirectory\" | \"isObjectStorageUri\" | \"isRegularFile\" | \"list\" | \"listObjects\" | \"listTrackedFilenames\" | \"logPartitioningInfo\" | \"mapNotNull\" | \"matches\" | \"message\" | \"putInt\" | \"putString\" | \"queueDocuments\" | \"randomUUID\" | \"removeSuffix\" | \"resolveFiles\" | \"resolvePath\" | \"return Files.list(rootPath).use { stream ->\n stream\n .filter { Files.isRegularFile(it) }\n .filter { matcher.matches(it.fileName) }\n .filter { Files.size(it) > 0L }\n .sorted { a, b -> a.fileName.toString().compareTo(b.fileName.toString()) }\n .toList()\n }\" | \"return createEmptyPartitions(gridSize, \\\"ERROR: No inputPath provided\\\")\" | \"return partitions\" | \"sorted\" | \"throw\" | \"throw IllegalStateException(\\\"Input path does not exist: $rootPath\\\")\" | \"throw IllegalStateException(\\\"Input path is not a directory: $rootPath\\\")\" | \"throw IllegalStateException(\\\"Invalid inputPath: $normalizedInputPath\\\")\" | \"toUri\" | \"try\" | \"use\" | \"util\" | \"value\" | \"warn\")?+ \"toList\"?+", + "grammar_clean": "root ::= \"getString\"?+ (\"Exception\" | \"ExecutionContext\" | \"Filename\" | \"IllegalStateException\" | \"List\" | \"UUID\" | \"appendPath\" | \"catch\" | \"compareTo\" | \"createEmptyPartitions\" | \"exists\" | \"fileName\" | \"filenameFromUri\" | \"for\" | \"forEachIndexed\" | \"getDefault\" | \"getPathMatcher\" | \"info\" | \"isDirectory\" | \"isObjectStorageUri\" | \"isRegularFile\" | \"list\" | \"listObjects\" | \"listTrackedFilenames\" | \"logPartitioningInfo\" | \"mapNotNull\" | \"matches\" | \"message\" | \"putInt\" | \"putString\" | \"queueDocuments\" | \"randomUUID\" | \"removeSuffix\" | \"resolveFiles\" | \"resolvePath\" | \"return Files.list(rootPath).use { stream ->\n stream\n .filter { Files.isRegularFile(it) }\n .filter { matcher.matches(it.fileName) }\n .filter { Files.size(it) > 0L }\n .sorted { a, b -> a.fileName.toString().compareTo(b.fileName.toString()) }\n .toList()\n }\" | \"return createEmptyPartitions(gridSize, \\\"ERROR: No inputPath provided\\\")\" | \"return partitions\" | \"sorted\" | \"throw\" | \"throw IllegalStateException(\\\"Input path does not exist: $rootPath\\\")\" | \"throw IllegalStateException(\\\"Input path is not a directory: $rootPath\\\")\" | \"throw IllegalStateException(\\\"Invalid inputPath: $normalizedInputPath\\\")\" | \"toUri\" | \"try\" | \"use\" | \"util\" | \"value\" | \"warn\")?+ \"toList\"?+", + "noise_ratio": 0.24, + "symbols_before": 67, + "symbols_after": 51, + "algorithm": "CRX", + "mdl_score": 0, + "imports": [ + "import eu.corentic.springrag.common.ids.Filename", + "import eu.corentic.springrag.common.ids.JobId", + "import eu.corentic.springrag.common.ids.StorageUri", + "import eu.corentic.springrag.config.StorageProperties", + "import eu.corentic.springrag.service.job.DocumentTrackingRepository", + "import eu.corentic.springrag.service.port.ObjectStoragePort", + "import io.github.oshai.kotlinlogging.KotlinLogging", + "import java.nio.file.FileSystems", + "import java.nio.file.Files", + "import java.nio.file.Path", + "import kotlin.streams.toList", + "import org.springframework.batch.core.configuration.annotation.StepScope", + "import org.springframework.batch.core.partition.Partitioner", + "import org.springframework.batch.infrastructure.item.ExecutionContext", + "import org.springframework.beans.factory.annotation.Value", + "import org.springframework.stereotype.Component" + ], + "arg_patterns": {} + }, + { + "label": "modules/ingestion/src/main/kotlin/eu/corentic/springrag/batch/reader", + "method_count": 4, + "grammar": "root ::= \"poll\"?+ (\"DocumentInput\" | \"IllegalStateException\" | \"KnowledgeBaseId\" | \"List\" | \"containsKey\" | \"debug\" | \"documentVersionId\" | \"exists\" | \"filenameFromUri\" | \"getResource\" | \"identityHashCode\" | \"info\" | \"inputStream\" | \"isObjectStorageUri\" | \"isReadable\" | \"it\" | \"java\" | \"loadObject\" | \"logicalDocumentId\" | \"mapNotNull\" | \"name\" | \"objectExists\" | \"offer\" | \"partitionedFiles\" | \"readBytes\" | \"return DocumentInput(\n jobId = resolvedJobId,\n documentId = documentId,\n logicalDocumentId = logicalDocumentId,\n filename = resolvedFilename,\n content = content,\n fileStorageUri = StorageUri.of(uri),\n knowledgeBaseId = resolvedKnowledgeBaseId,\n submittedBy = submittedBy\n )\" | \"return null\" | \"throw\" | \"throw IllegalStateException(\\\"Object not found at $uri\\\")\" | \"throw IllegalStateException(\\\"Resource not readable: $uri\\\")\" | \"use\" | \"value\" | \"warn\")?+ \"initialize\"?+", + "grammar_clean": "root ::= \"poll\"?+ (\"DocumentInput\" | \"IllegalStateException\" | \"KnowledgeBaseId\" | \"List\" | \"containsKey\" | \"debug\" | \"documentVersionId\" | \"exists\" | \"filenameFromUri\" | \"getResource\" | \"identityHashCode\" | \"info\" | \"inputStream\" | \"isObjectStorageUri\" | \"isReadable\" | \"it\" | \"java\" | \"loadObject\" | \"logicalDocumentId\" | \"mapNotNull\" | \"name\" | \"objectExists\" | \"offer\" | \"partitionedFiles\" | \"readBytes\" | \"return DocumentInput(\n jobId = resolvedJobId,\n documentId = documentId,\n logicalDocumentId = logicalDocumentId,\n filename = resolvedFilename,\n content = content,\n fileStorageUri = StorageUri.of(uri),\n knowledgeBaseId = resolvedKnowledgeBaseId,\n submittedBy = submittedBy\n )\" | \"return null\" | \"throw\" | \"throw IllegalStateException(\\\"Object not found at $uri\\\")\" | \"throw IllegalStateException(\\\"Resource not readable: $uri\\\")\" | \"use\" | \"value\" | \"warn\")?+ \"initialize\"?+", + "noise_ratio": 0.29, + "symbols_before": 49, + "symbols_after": 35, + "algorithm": "CRX", + "mdl_score": 532496, + "imports": [ + "import eu.corentic.springrag.batch.model.DocumentInput", + "import eu.corentic.springrag.common.ids.Filename", + "import eu.corentic.springrag.common.ids.JobId", + "import eu.corentic.springrag.common.ids.KnowledgeBaseId", + "import eu.corentic.springrag.common.ids.StorageUri", + "import eu.corentic.springrag.config.StorageProperties", + "import eu.corentic.springrag.service.document.DocumentIdentity", + "import eu.corentic.springrag.service.port.ObjectStoragePort", + "import io.github.oshai.kotlinlogging.KotlinLogging", + "import org.springframework.batch.infrastructure.item.ExecutionContext", + "import org.springframework.batch.infrastructure.item.ItemStreamReader", + "import org.springframework.beans.factory.annotation.Value", + "import org.springframework.core.io.ResourceLoader", + "import java.util.concurrent.ConcurrentLinkedQueue" + ], + "arg_patterns": {} + }, + { + "label": "modules/ingestion/src/main/kotlin/eu/corentic/springrag/batch/writer", + "method_count": 3, + "grammar": "root ::= \"items\"? (\"addChunks\" | \"chunks\" | \"content\" | \"debug\" | \"documentId\" | \"enforce\" | \"fileStorageUri\" | \"filename\" | \"graphDocument\" | \"input\" | \"jobId\" | \"knowledgeBaseId\" | \"logicalDocumentId\" | \"pictures\" | \"stageDocumentGraph\" | \"submittedBy\" | \"tables\" | \"texts\" | \"toLong\" | \"upsertStaging\" | \"value\" | \"warn\")?+ \"activate\"?+", + "grammar_clean": "root ::= \"items\"? (\"addChunks\" | \"chunks\" | \"content\" | \"debug\" | \"documentId\" | \"enforce\" | \"fileStorageUri\" | \"filename\" | \"graphDocument\" | \"input\" | \"jobId\" | \"knowledgeBaseId\" | \"logicalDocumentId\" | \"pictures\" | \"stageDocumentGraph\" | \"submittedBy\" | \"tables\" | \"texts\" | \"toLong\" | \"upsertStaging\" | \"value\" | \"warn\")?+ \"activate\"?+", + "noise_ratio": 0.2, + "symbols_before": 30, + "symbols_after": 24, + "algorithm": "CRX", + "mdl_score": 71388, + "imports": [ + "import eu.corentic.springrag.service.job.DocumentActivationService", + "import eu.corentic.springrag.service.job.IngestionDocumentState", + "import org.springframework.batch.infrastructure.item.Chunk", + "import org.springframework.batch.infrastructure.item.ItemWriter", + "import org.springframework.stereotype.Component", + "import eu.corentic.springrag.batch.model.ProcessedDocument", + "import eu.corentic.springrag.service.chunk.EmbeddingInputGuard", + "import eu.corentic.springrag.service.job.IngestionDocumentStateRepository", + "import eu.corentic.springrag.service.port.ChunkIndexPort", + "import eu.corentic.springrag.service.port.GraphIndexPort", + "import io.github.oshai.kotlinlogging.KotlinLogging" + ], + "arg_patterns": {} + }, + { + "label": "modules/ingestion/src/main/kotlin/eu/corentic/springrag/config", + "method_count": 26, + "imports": [ + "import javax.sql.DataSource", + "import org.springframework.batch.core.configuration.support.JdbcDefaultBatchConfiguration", + "import org.springframework.context.annotation.Bean", + "import org.springframework.context.annotation.Configuration", + "import org.springframework.core.task.TaskDecorator", + "import org.springframework.core.task.TaskExecutor", + "import org.springframework.core.task.VirtualThreadTaskExecutor", + "import org.springframework.core.task.support.TaskExecutorAdapter", + "import org.springframework.jdbc.datasource.DataSourceTransactionManager", + "import org.springframework.transaction.PlatformTransactionManager", + "import org.springframework.transaction.annotation.Isolation", + "import eu.corentic.springrag.common.ids.BatchId", + "import eu.corentic.springrag.common.ids.Filename", + "import eu.corentic.springrag.common.ids.StorageUri", + "import jakarta.annotation.PostConstruct", + "import jakarta.validation.constraints.NotBlank", + "import java.net.URI", + "import java.nio.file.Path", + "import java.time.Duration", + "import org.slf4j.LoggerFactory", + "import org.springframework.boot.context.properties.ConfigurationProperties", + "import org.springframework.validation.annotation.Validated" + ], + "arg_patterns": {} + }, + { + "label": "modules/ingestion/src/main/kotlin/eu/corentic/springrag/service/chunk", + "method_count": 18, + "grammar": "root ::= \"trim\"?+ \"if\" \"isBlank\"?+", + "noise_ratio": 1.0, + "algorithm": "CRX", + "mdl_score": 4, + "imports": [ + "import eu.corentic.springrag.config.HybridChunkingConfig", + "import eu.corentic.springrag.common.ids.DocumentId", + "import eu.corentic.springrag.common.ids.Filename", + "import eu.corentic.springrag.common.ids.JobId", + "import eu.corentic.springrag.common.ids.KnowledgeBaseId", + "import eu.corentic.springrag.common.ids.LogicalDocumentId", + "import eu.corentic.springrag.model.GraphDocument", + "import eu.corentic.springrag.model.GraphTableElement", + "import eu.corentic.springrag.model.GraphTextElement", + "import eu.corentic.springrag.model.ParsedDocument", + "import eu.corentic.springrag.model.VectorChunk", + "import org.springframework.stereotype.Service", + "import org.springframework.stereotype.Component", + "import eu.corentic.springrag.config.EmbabelModelProperties", + "import kotlin.math.min", + "import com.knuddels.jtokkit.Encodings", + "import com.knuddels.jtokkit.api.Encoding", + "import com.knuddels.jtokkit.api.EncodingType" + ], + "arg_patterns": {} + }, + { + "label": "modules/ingestion/src/main/kotlin/eu/corentic/springrag/service/document", + "method_count": 3, + "grammar": "root ::= (\"lowercase\" | \"value\")?+ \"getInstance\"?+ \"format\"?+ \"digest\"?+ \"toByteArray\"?+ \"toHex\"?+ (\"return DocumentId.of(\\\"doc-$hex\\\")\" | \"return LogicalDocumentId.of(\\\"ldoc-$hex\\\")\")?", + "grammar_clean": "root ::= (\"lowercase\" | \"value\")?+ \"getInstance\"?+ \"format\"?+ \"digest\"?+ \"toByteArray\"?+ \"toHex\"?+ (\"return DocumentId.of(\\\"doc-$hex\\\")\" | \"return LogicalDocumentId.of(\\\"ldoc-$hex\\\")\")?", + "noise_ratio": 0.25, + "symbols_before": 12, + "symbols_after": 9, + "algorithm": "CRX", + "mdl_score": 0, + "imports": [ + "import eu.corentic.springrag.common.ids.DocumentId", + "import eu.corentic.springrag.common.ids.Filename", + "import eu.corentic.springrag.common.ids.JobId", + "import eu.corentic.springrag.common.ids.KnowledgeBaseId", + "import eu.corentic.springrag.common.ids.LogicalDocumentId", + "import java.security.MessageDigest" + ], + "arg_patterns": {} + }, + { + "label": "modules/ingestion/src/main/kotlin/eu/corentic/springrag/service/job", + "method_count": 62, + "imports": [ + "import java.sql.Timestamp", + "import java.time.Instant", + "import org.springframework.jdbc.core.JdbcTemplate", + "import org.springframework.stereotype.Component", + "from ingestion_batch_ownership", + "import eu.corentic.springrag.common.DomainException", + "import io.github.oshai.kotlinlogging.KotlinLogging", + "import org.springframework.stereotype.Service", + "import eu.corentic.springrag.model.event.DocumentActivationFailed", + "import eu.corentic.springrag.service.port.ChunkIndexPort", + "import org.springframework.modulith.events.ApplicationModuleListener", + "import eu.corentic.springrag.service.port.GraphIndexPort", + "import org.springframework.context.ApplicationEventPublisher", + "import eu.corentic.springrag.model.event.DocumentDeletionRequested", + "import eu.corentic.springrag.batch.model.ErrorSeverity", + "import eu.corentic.springrag.batch.model.ProcessingError", + "import eu.corentic.springrag.common.ids.Filename", + "import eu.corentic.springrag.common.ids.JobId", + "import java.sql.ResultSet", + "import org.springframework.transaction.annotation.Transactional", + "from ingestion_document_tracking", + "import eu.corentic.springrag.common.ids.DocumentId", + "import eu.corentic.springrag.common.ids.KnowledgeBaseId", + "import eu.corentic.springrag.common.ids.LogicalDocumentId", + "import org.springframework.jdbc.core.RowMapper", + "from ingestion_document_state", + "import org.springframework.batch.core.job.JobExecution", + "import org.springframework.batch.core.job.JobInstance", + "import org.springframework.batch.core.repository.JobRepository", + "import eu.corentic.springrag.common.ids.StorageUri", + "import eu.corentic.springrag.config.StorageProperties", + "import eu.corentic.springrag.service.port.ObjectStoragePort", + "import org.springframework.core.io.ResourceLoader", + "import org.springframework.batch.core.job.Job", + "import org.springframework.batch.core.job.parameters.JobParameters", + "import org.springframework.batch.core.launch.JobOperator", + "import java.util.UUID", + "import org.springframework.batch.core.job.parameters.JobParametersBuilder", + "import java.io.File", + "import java.util.*", + "import org.springframework.batch.core.launch.JobExecutionAlreadyRunningException", + "import org.springframework.batch.core.launch.JobInstanceAlreadyCompleteException", + "import eu.corentic.springrag.batch.DocumentIngestionJobConfig", + "import org.springframework.batch.core.launch.NoSuchJobException", + "import eu.corentic.springrag.batch.model.ErrorSummary", + "import org.springframework.batch.core.BatchStatus", + "import eu.corentic.springrag.model.event.KnowledgeBaseDeletionRequested", + "import java.net.URI", + "import java.nio.file.Path", + "import org.springframework.scheduling.annotation.Scheduled", + "import org.springframework.util.FileSystemUtils" + ], + "arg_patterns": {} + }, + { + "label": "modules/ingestion/src/test/kotlin/eu/corentic/springrag/batch", + "method_count": 17, + "grammar": "root ::= \"policy\" | \"skipPolicy\"", + "grammar_clean": "root ::= \"policy\" | \"skipPolicy\"", + "noise_ratio": 0.0, + "symbols_before": 2, + "symbols_after": 2, + "algorithm": "CRX", + "mdl_score": 4, + "imports": [ + "import eu.corentic.springrag.config.BatchProperties", + "import eu.corentic.springrag.service.job.IngestionDocumentStateRepository", + "import io.mockk.mockk", + "import kotlin.test.assertEquals", + "import org.junit.jupiter.api.Test", + "import org.springframework.jdbc.datasource.embedded.EmbeddedDatabaseBuilder", + "import org.springframework.jdbc.datasource.embedded.EmbeddedDatabaseType", + "import java.io.IOException", + "import kotlin.test.assertFalse", + "import kotlin.test.assertTrue", + "import org.springframework.core.retry.RetryPolicy", + "import org.springframework.dao.TransientDataAccessResourceException", + "import org.springframework.util.backoff.FixedBackOff", + "import org.springframework.batch.core.step.skip.SkipPolicy", + "import kotlin.test.assertNotNull", + "import org.springframework.batch.core.listener.ItemProcessListener", + "import org.springframework.batch.core.listener.JobExecutionListener" + ], + "arg_patterns": {} + }, + { + "label": "modules/ingestion/src/test/kotlin/eu/corentic/springrag/batch/listener", + "method_count": 34, + "imports": [ + "import eu.corentic.springrag.config.StorageProperties", + "import java.io.IOException", + "import java.nio.file.Files", + "import java.nio.file.Path", + "import java.time.Duration", + "import org.junit.jupiter.api.Assertions.assertTrue", + "import org.junit.jupiter.api.BeforeEach", + "import org.junit.jupiter.api.Test", + "import org.junit.jupiter.api.io.TempDir", + "import org.springframework.batch.core.BatchStatus", + "import org.springframework.batch.core.job.JobExecution", + "import org.springframework.batch.core.job.JobInstance", + "import org.springframework.batch.core.job.parameters.JobParameters", + "import org.springframework.batch.core.job.parameters.JobParametersBuilder", + "import org.springframework.batch.test.MetaDataInstanceFactory", + "import eu.corentic.springrag.service.job.StagedUploadCleanupService", + "import eu.corentic.springrag.service.port.ObjectStoragePort", + "import io.mockk.mockk", + "import eu.corentic.springrag.service.job.DocumentTrackingRepository", + "import eu.corentic.springrag.service.job.IngestionDocumentState", + "import eu.corentic.springrag.service.job.IngestionDocumentStateRepository", + "import eu.corentic.springrag.common.ids.asDocumentId", + "import eu.corentic.springrag.common.ids.asFilename", + "import eu.corentic.springrag.common.ids.asJobId", + "import eu.corentic.springrag.common.ids.asLogicalDocumentId", + "import io.mockk.every", + "import io.mockk.just", + "import io.mockk.runs", + "import io.mockk.verify", + "import org.springframework.batch.infrastructure.item.Chunk", + "import eu.corentic.springrag.batch.model.DocumentInput", + "import eu.corentic.springrag.batch.model.ProcessedDocument", + "import eu.corentic.springrag.batch.model.ProcessingError", + "import java.io.EOFException", + "import java.net.SocketTimeoutException", + "import javax.net.ssl.SSLException", + "import kotlin.test.assertEquals", + "import eu.corentic.springrag.model.VectorChunk", + "import io.mockk.slot" + ], + "arg_patterns": {} + }, + { + "label": "modules/ingestion/src/test/kotlin/eu/corentic/springrag/batch/model", + "method_count": 8, + "grammar": "root ::= \"DocumentInput\"? \"severity\"? \"asJobId\"?+ \"asDocumentId\"?+ \"asLogicalDocumentId\"?+ \"asFilename\"?+ \"getDocumentError\"?+ \"byteArrayOf\"?+ \"asStorageUri\"?+ \"ProcessingError\"? \"asKnowledgeBaseId\"?+", + "grammar_clean": "root ::= \"DocumentInput\"? \"severity\"? \"asJobId\"?+ \"asDocumentId\"?+ \"asLogicalDocumentId\"?+ \"asFilename\"?+ \"getDocumentError\"?+ \"byteArrayOf\"?+ \"asStorageUri\"?+ \"ProcessingError\"? \"asKnowledgeBaseId\"?+", + "noise_ratio": 0.35, + "symbols_before": 17, + "symbols_after": 11, + "algorithm": "CRX", + "mdl_score": 0, + "imports": [ + "import eu.corentic.springrag.common.ids.asDocumentId", + "import eu.corentic.springrag.common.ids.asFilename", + "import eu.corentic.springrag.common.ids.asJobId", + "import eu.corentic.springrag.common.ids.asKnowledgeBaseId", + "import eu.corentic.springrag.common.ids.asLogicalDocumentId", + "import eu.corentic.springrag.common.ids.asStorageUri", + "import kotlin.test.assertEquals", + "import kotlin.test.assertNotEquals", + "import org.junit.jupiter.api.Test", + "import org.junit.jupiter.api.Assertions.assertEquals", + "import org.junit.jupiter.api.Assertions.assertTrue" + ], + "arg_patterns": {} + }, + { + "label": "modules/ingestion/src/test/kotlin/eu/corentic/springrag/batch/partition", + "method_count": 7, + "grammar": "root ::= (\"resolve\" | \"writeString\")?+ \"DocumentTrackingRepository\"? (\"any\" | \"asJobId\" | \"containsAll\" | \"getString\" | \"listTrackedFilenames\" | \"match\" | \"partition\" | \"partitioner\" | \"queueDocuments\" | \"sorted\" | \"value\")?+ \"all\"?+ \"getInt\"?+", + "grammar_clean": "root ::= (\"resolve\" | \"writeString\")?+ \"DocumentTrackingRepository\"? (\"any\" | \"asJobId\" | \"containsAll\" | \"getString\" | \"listTrackedFilenames\" | \"match\" | \"partition\" | \"partitioner\" | \"queueDocuments\" | \"sorted\" | \"value\")?+ \"all\"?+ \"getInt\"?+", + "noise_ratio": 0.41, + "symbols_before": 27, + "symbols_after": 16, + "algorithm": "CRX", + "mdl_score": 0, + "imports": [ + "import eu.corentic.springrag.service.job.DocumentTrackingRepository", + "import eu.corentic.springrag.service.port.ObjectStoragePort", + "import eu.corentic.springrag.common.ids.asFilename", + "import eu.corentic.springrag.common.ids.asJobId", + "import eu.corentic.springrag.common.ids.asStorageUri", + "import io.mockk.every", + "import io.mockk.just", + "import io.mockk.mockk", + "import io.mockk.runs", + "import io.mockk.verify", + "import java.nio.file.Files", + "import java.nio.file.Path", + "import kotlin.test.assertEquals", + "import kotlin.test.assertTrue", + "import org.junit.jupiter.api.Test", + "import org.junit.jupiter.api.io.TempDir" + ], + "arg_patterns": {} + }, + { + "label": "modules/ingestion/src/test/kotlin/eu/corentic/springrag/batch/processor", + "method_count": 5, + "grammar": "root ::= \"DocumentInput\"? (\"DocumentParsingRequest\" | \"GraphDocument\" | \"ParsedDocument\" | \"RuntimeException\" | \"VectorChunk\" | \"any\" | \"asDocumentId\" | \"asFilename\" | \"asJobId\" | \"asKnowledgeBaseId\" | \"asLogicalDocumentId\" | \"byteArrayOf\" | \"content\" | \"createChunks\" | \"documentId\" | \"filename\" | \"graphDocument\" | \"input\" | \"jobId\" | \"logicalDocumentId\" | \"parse\" | \"process\" | \"toList\" | \"withArg\")?+ (\"chunks\" | \"knowledgeBaseId\")?", + "grammar_clean": "root ::= \"DocumentInput\"? (\"DocumentParsingRequest\" | \"GraphDocument\" | \"ParsedDocument\" | \"RuntimeException\" | \"VectorChunk\" | \"any\" | \"asDocumentId\" | \"asFilename\" | \"asJobId\" | \"asKnowledgeBaseId\" | \"asLogicalDocumentId\" | \"byteArrayOf\" | \"content\" | \"createChunks\" | \"documentId\" | \"filename\" | \"graphDocument\" | \"input\" | \"jobId\" | \"logicalDocumentId\" | \"parse\" | \"process\" | \"toList\" | \"withArg\")?+ (\"chunks\" | \"knowledgeBaseId\")?", + "noise_ratio": 0.23, + "symbols_before": 35, + "symbols_after": 27, + "algorithm": "CRX", + "mdl_score": 86178481, + "imports": [ + "import eu.corentic.springrag.batch.model.DocumentInput", + "import eu.corentic.springrag.model.GraphDocument", + "import eu.corentic.springrag.model.ParsedDocument", + "import eu.corentic.springrag.model.VectorChunk", + "import eu.corentic.springrag.service.chunk.DocumentChunkService", + "import eu.corentic.springrag.service.port.DocumentParserPort", + "import eu.corentic.springrag.service.port.DocumentParsingRequest", + "import eu.corentic.springrag.common.ids.asDocumentId", + "import eu.corentic.springrag.common.ids.asFilename", + "import eu.corentic.springrag.common.ids.asJobId", + "import eu.corentic.springrag.common.ids.asKnowledgeBaseId", + "import eu.corentic.springrag.common.ids.asLogicalDocumentId", + "import io.mockk.clearAllMocks", + "import io.mockk.every", + "import io.mockk.mockk", + "import io.mockk.verify", + "import java.util.UUID", + "import kotlin.test.assertEquals", + "import kotlin.test.assertNotNull", + "import org.junit.jupiter.api.BeforeEach", + "import org.junit.jupiter.api.Test", + "import org.junit.jupiter.api.assertThrows" + ], + "arg_patterns": {} + }, + { + "label": "modules/ingestion/src/test/kotlin/eu/corentic/springrag/batch/reader", + "method_count": 12, + "grammar": "root ::= (\"DefaultResourceLoader\" | \"File\" | \"FileBasedDocumentItemReader\" | \"absolutePath\" | \"byteArrayOf\" | \"core\" | \"io\" | \"open\" | \"springframework\" | \"writeBytes\")?+ \"batch\"? \"infrastructure\"? \"item\"? \"ExecutionContext\"?+ \"read\"?+ \"filename\"? \"value\"?", + "grammar_clean": "root ::= (\"DefaultResourceLoader\" | \"File\" | \"FileBasedDocumentItemReader\" | \"absolutePath\" | \"byteArrayOf\" | \"core\" | \"io\" | \"open\" | \"springframework\" | \"writeBytes\")?+ \"batch\"? \"infrastructure\"? \"item\"? \"ExecutionContext\"?+ \"read\"?+ \"filename\"? \"value\"?", + "noise_ratio": 0.15, + "symbols_before": 20, + "symbols_after": 17, + "algorithm": "CRX", + "mdl_score": 5820, + "imports": [ + "import eu.corentic.springrag.service.document.DocumentIdentity", + "import java.io.File", + "import eu.corentic.springrag.common.ids.asDocumentId", + "import eu.corentic.springrag.common.ids.asFilename", + "import eu.corentic.springrag.common.ids.asJobId", + "import eu.corentic.springrag.common.ids.asKnowledgeBaseId", + "import eu.corentic.springrag.common.ids.asLogicalDocumentId", + "import eu.corentic.springrag.common.ids.asStorageUri", + "import eu.corentic.springrag.service.port.ObjectStoragePort", + "import io.mockk.mockk", + "import org.junit.jupiter.api.Assertions.*", + "import org.junit.jupiter.api.Test", + "import org.junit.jupiter.api.io.TempDir" + ], + "arg_patterns": {} + }, + { + "label": "modules/ingestion/src/test/kotlin/eu/corentic/springrag/batch/writer", + "method_count": 14, + "grammar": "root ::= \"ProcessedDocument\"? \"write\"?+ \"DocumentInput\"? \"Chunk\"? \"asJobId\"?+ \"stageDocumentGraph\"?+ \"asDocumentId\"?+ \"any\"?+ \"asLogicalDocumentId\"?+ \"asFilename\"?+ \"byteArrayOf\"?+", + "grammar_clean": "root ::= \"ProcessedDocument\"? \"write\"?+ \"DocumentInput\"? \"Chunk\"? \"asJobId\"?+ \"stageDocumentGraph\"?+ \"asDocumentId\"?+ \"any\"?+ \"asLogicalDocumentId\"?+ \"asFilename\"?+ \"byteArrayOf\"?+", + "noise_ratio": 0.27, + "symbols_before": 15, + "symbols_after": 11, + "algorithm": "CRX", + "mdl_score": 0, + "imports": [ + "import eu.corentic.springrag.service.job.DocumentActivationService", + "import eu.corentic.springrag.service.job.IngestionDocumentState", + "import eu.corentic.springrag.common.ids.asDocumentId", + "import eu.corentic.springrag.common.ids.asFilename", + "import eu.corentic.springrag.common.ids.asJobId", + "import eu.corentic.springrag.common.ids.asLogicalDocumentId", + "import io.mockk.every", + "import io.mockk.just", + "import io.mockk.mockk", + "import io.mockk.runs", + "import org.junit.jupiter.api.Test", + "import org.springframework.batch.infrastructure.item.Chunk", + "import kotlin.test.assertFailsWith", + "import eu.corentic.springrag.batch.model.DocumentInput", + "import eu.corentic.springrag.batch.model.ProcessedDocument", + "import eu.corentic.springrag.common.ids.asStorageUri", + "import eu.corentic.springrag.model.GraphDocument", + "import eu.corentic.springrag.model.VectorChunk", + "import eu.corentic.springrag.service.chunk.EmbeddingInputGuard", + "import eu.corentic.springrag.service.chunk.EmbeddingInputTooLargeException", + "import eu.corentic.springrag.service.job.IngestionDocumentStateRepository", + "import eu.corentic.springrag.service.port.ChunkIndexPort", + "import eu.corentic.springrag.service.port.GraphIndexPort", + "import io.mockk.verify", + "import io.mockk.*", + "import io.mockk.impl.annotations.MockK", + "import io.mockk.junit5.MockKExtension", + "import kotlinx.coroutines.test.runTest", + "import org.junit.jupiter.api.AfterEach", + "import org.junit.jupiter.api.Assertions.*", + "import org.junit.jupiter.api.BeforeEach", + "import org.junit.jupiter.api.extension.ExtendWith" + ], + "arg_patterns": {} + }, + { + "label": "modules/ingestion/src/test/kotlin/eu/corentic/springrag/service/chunk", + "method_count": 8, + "grammar": "root ::= \"HybridChunkingConfig\"? \"service\"? \"GraphDocument\"? (\"GraphTableElement\" | \"GraphTextElement\")? \"createChunks\"?+ \"asJobId\"?+ \"asDocumentId\"?+ \"asLogicalDocumentId\"?+ \"asFilename\"?+ \"ParsedDocument\"? \"all\"?+ \"metadata\"?", + "grammar_clean": "root ::= \"HybridChunkingConfig\"? \"service\"? \"GraphDocument\"? (\"GraphTableElement\" | \"GraphTextElement\")? \"createChunks\"?+ \"asJobId\"?+ \"asDocumentId\"?+ \"asLogicalDocumentId\"?+ \"asFilename\"?+ \"ParsedDocument\"? \"all\"?+ \"metadata\"?", + "noise_ratio": 0.28, + "symbols_before": 18, + "symbols_after": 13, + "algorithm": "CRX", + "mdl_score": 0, + "imports": [ + "import eu.corentic.springrag.config.HybridChunkingConfig", + "import eu.corentic.springrag.config.EmbabelModelProperties", + "import eu.corentic.springrag.common.ids.asDocumentId", + "import eu.corentic.springrag.common.ids.asFilename", + "import eu.corentic.springrag.common.ids.asJobId", + "import eu.corentic.springrag.common.ids.asKnowledgeBaseId", + "import eu.corentic.springrag.common.ids.asLogicalDocumentId", + "import eu.corentic.springrag.model.GraphDocument", + "import eu.corentic.springrag.model.GraphTableElement", + "import eu.corentic.springrag.model.GraphTextElement", + "import eu.corentic.springrag.model.ParsedDocument", + "import kotlin.test.assertEquals", + "import kotlin.test.assertNotNull", + "import kotlin.test.assertTrue", + "import org.junit.jupiter.api.Test" + ], + "arg_patterns": {} + }, + { + "label": "modules/ingestion/src/test/kotlin/eu/corentic/springrag/service/job", + "method_count": 49, + "imports": [ + "import io.mockk.every", + "import io.mockk.mockk", + "import io.mockk.verify", + "import kotlin.test.assertEquals", + "import kotlin.test.assertFailsWith", + "import org.junit.jupiter.api.Test", + "import eu.corentic.springrag.model.event.DocumentActivationFailed", + "import eu.corentic.springrag.service.port.ChunkIndexPort", + "import eu.corentic.springrag.common.ids.asDocumentId", + "import eu.corentic.springrag.common.ids.asKnowledgeBaseId", + "import eu.corentic.springrag.common.ids.asLogicalDocumentId", + "import io.mockk.just", + "import io.mockk.runs", + "import eu.corentic.springrag.service.port.GraphIndexPort", + "import eu.corentic.springrag.common.ids.asFilename", + "import eu.corentic.springrag.common.ids.asJobId", + "import org.springframework.context.ApplicationEventPublisher", + "import eu.corentic.springrag.model.event.DocumentDeletionRequested", + "import java.time.LocalDateTime", + "import kotlin.test.assertNull", + "import org.springframework.batch.core.job.JobExecution", + "import org.springframework.batch.core.job.JobInstance", + "import org.springframework.batch.core.job.parameters.JobParametersBuilder", + "import org.springframework.batch.core.repository.JobRepository", + "import java.io.File", + "import eu.corentic.springrag.common.ids.asStorageUri", + "import eu.corentic.springrag.service.port.ObjectStoragePort", + "import org.junit.jupiter.api.Assertions.assertThrows", + "import org.springframework.core.io.DefaultResourceLoader", + "import org.junit.jupiter.api.Assertions.assertNull", + "import org.junit.jupiter.api.Assertions.assertEquals", + "import org.junit.jupiter.api.Assertions.assertSame", + "import org.junit.jupiter.api.assertThrows", + "import org.slf4j.MDC", + "import org.springframework.batch.core.job.Job", + "import org.springframework.batch.core.launch.JobOperator", + "import kotlin.test.assertNotNull", + "import io.mockk.slot", + "import org.junit.jupiter.api.Assertions.assertNotEquals", + "import org.junit.jupiter.api.Assertions.assertTrue", + "import org.springframework.batch.core.BatchStatus", + "import org.springframework.batch.core.launch.JobExecutionAlreadyRunningException", + "import org.springframework.batch.core.launch.JobInstanceAlreadyCompleteException", + "import org.springframework.batch.core.job.parameters.JobParameters", + "import org.springframework.batch.test.MetaDataInstanceFactory", + "import kotlin.test.assertTrue", + "import eu.corentic.springrag.model.event.KnowledgeBaseDeletionRequested", + "import eu.corentic.springrag.config.StorageProperties", + "import java.nio.file.Files", + "import java.nio.file.Path", + "import java.time.Duration", + "import java.time.Instant", + "import org.junit.jupiter.api.Assertions.assertFalse", + "import org.junit.jupiter.api.io.TempDir" + ], + "arg_patterns": {} + }, + { + "label": "modules/knowledgebase/ports/src/main/kotlin/eu/corentic/springrag/model", + "method_count": 5, + "grammar": "root ::= \"return sizeInBytes + additionalBytes <= sizeLimitBytes\"? \"return stats.canAcceptMoreContent(additionalBytes, sizeLimitBytes)\"? (\"return copy(\n stats = stats.applySizeDelta(sizeDelta),\n updatedAt = Instant.now()\n )\" | \"return copy(sizeInBytes = sizeInBytes + sizeDelta)\" | \"return copy(updatedAt = Instant.now())\")? \"canAcceptMoreContent\"?+ \"copy\"? \"applySizeDelta\"?+ \"now\"?+", + "grammar_clean": "root ::= \"return sizeInBytes + additionalBytes <= sizeLimitBytes\"? \"return stats.canAcceptMoreContent(additionalBytes, sizeLimitBytes)\"? (\"return copy(\n stats = stats.applySizeDelta(sizeDelta),\n updatedAt = Instant.now()\n )\" | \"return copy(sizeInBytes = sizeInBytes + sizeDelta)\" | \"return copy(updatedAt = Instant.now())\")? \"canAcceptMoreContent\"?+ \"copy\"? \"applySizeDelta\"?+ \"now\"?+", + "noise_ratio": 0.0, + "symbols_before": 9, + "symbols_after": 9, + "algorithm": "CRX", + "mdl_score": 39, + "imports": [ + "import eu.corentic.springrag.common.ids.KnowledgeBaseId", + "import java.time.Instant" + ], + "arg_patterns": {} + }, + { + "label": "modules/knowledgebase/src/main/kotlin/eu/corentic/springrag/service/knowledgebase", + "method_count": 11, + "grammar": "root ::= \"stats\"? (\"debug\" | \"info\")?+ \"findById\"?+ \"documentCount\"? \"throw KnowledgeBaseNotFoundException(kbId)\"? \"toInt\"?+ \"throw\"? \"KnowledgeBaseNotFoundException\"?", + "grammar_clean": "root ::= \"stats\"? (\"debug\" | \"info\")?+ \"findById\"?+ \"documentCount\"? \"throw KnowledgeBaseNotFoundException(kbId)\"? \"toInt\"?+ \"throw\"? \"KnowledgeBaseNotFoundException\"?", + "noise_ratio": 0.1, + "symbols_before": 10, + "symbols_after": 9, + "algorithm": "CRX", + "mdl_score": 10, + "imports": [ + "import eu.corentic.springrag.common.ids.KnowledgeBaseId", + "import eu.corentic.springrag.model.KnowledgeBase", + "import eu.corentic.springrag.service.port.KnowledgeBasePort", + "import io.github.oshai.kotlinlogging.KotlinLogging", + "import org.springframework.beans.factory.annotation.Value", + "import org.springframework.boot.CommandLineRunner", + "import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty", + "import org.springframework.context.annotation.Bean", + "import org.springframework.context.annotation.Configuration", + "import java.time.Instant", + "import eu.corentic.springrag.common.ids.JobId", + "import eu.corentic.springrag.model.event.DocumentDeletionRequested", + "import eu.corentic.springrag.model.event.KnowledgeBaseDeletionRequested", + "import eu.corentic.springrag.service.port.KnowledgeBaseDocumentPort", + "import org.springframework.context.ApplicationEventPublisher", + "import org.springframework.stereotype.Service", + "import org.springframework.transaction.annotation.Transactional", + "import java.util.*" + ], + "arg_patterns": {} + }, + { + "label": "modules/knowledgebase/src/test/kotlin/eu/corentic/springrag/service/knowledgebase", + "method_count": 16, + "grammar": "root ::= \"parse\"?+ \"corentic\"? \"springrag\"? \"model\"? \"KnowledgeBase\"?+ (\"asKnowledgeBaseId\" | \"findById\")?+", + "grammar_clean": "root ::= \"parse\"?+ \"corentic\"? \"springrag\"? \"model\"? \"KnowledgeBase\"?+ (\"asKnowledgeBaseId\" | \"findById\")?+", + "noise_ratio": 0.12, + "symbols_before": 8, + "symbols_after": 7, + "algorithm": "CRX", + "mdl_score": 267, + "imports": [ + "import org.junit.jupiter.api.Assertions.assertEquals", + "import org.junit.jupiter.api.Test", + "import jakarta.validation.Validation", + "import kotlin.test.assertFalse", + "import kotlin.test.assertTrue", + "import eu.corentic.springrag.model.event.DocumentDeletionRequested", + "import eu.corentic.springrag.model.event.KnowledgeBaseDeletionRequested", + "import eu.corentic.springrag.service.port.KnowledgeBasePort", + "import eu.corentic.springrag.service.port.KnowledgeBaseDocumentPort", + "import eu.corentic.springrag.common.ids.asJobId", + "import eu.corentic.springrag.common.ids.asKnowledgeBaseId", + "import io.mockk.every", + "import io.mockk.just", + "import io.mockk.mockk", + "import io.mockk.runs", + "import io.mockk.slot", + "import io.mockk.verify", + "import java.time.Instant", + "import kotlin.test.assertEquals", + "import kotlin.test.assertNotNull", + "import org.junit.jupiter.api.Assertions.assertThrows", + "import org.springframework.context.ApplicationEventPublisher" + ], + "arg_patterns": {} + }, + { + "label": "modules/security/src/main/kotlin/eu/corentic/springrag/security/config", + "method_count": 5, + "grammar": "root ::= (\"getProperty\" | \"java\")?+ \"CommandLineRunner\"? \"BCryptPasswordEncoder\"? \"UserDetailsRepositoryReactiveAuthenticationManager\"? \"request\"? \"acceptsProfiles\"?+ \"setPasswordEncoder\"?+ \"headers\"? \"return manager\"? \"getFirst\"?+ \"activeProfiles\"? \"AUTHORIZATION\"? \"return http\n // Temporary: Thymeleaf pages may post forms; keep CSRF for browser endpoints.\n // Long-term: JWT-only API (no cookie auth), so this can be revisited.\n .csrf {\n it.csrfTokenRepository(CookieServerCsrfTokenRepository.withHttpOnlyFalse())\n it.requireCsrfProtectionMatcher(\n AndServerWebExchangeMatcher(\n CsrfWebFilter.DEFAULT_CSRF_MATCHER,\n NegatedServerWebExchangeMatcher(\n // CSRF is only relevant for browser cookie-based interactions.\n // LibreChat calls our /librechat/** endpoints server-to-server and won't send CSRF tokens.\n ServerWebExchangeMatchers.pathMatchers(\\\"/api/**\\\", \\\"/mcp/**\\\", \\\"/librechat/**\\\")\n )\n )\n )\n }\n .httpBasic { it.disable() }\n .formLogin {\n if (!enableFormLogin) {\n it.disable()\n }\n }\n .logout { it.disable() }\n .authenticationManager(authenticationManager)\n .authorizeExchange { exchange ->\n if (permitAll) {\n exchange.anyExchange().permitAll()\n } else {\n exchange\n // Public assets and auth endpoints\n .pathMatchers(\\\"/api/auth/**\\\", \\\"/login\\\", \\\"/logout\\\", \\\"/librechat/**\\\").permitAll()\n .pathMatchers(\\\"/actuator/health/**\\\", \\\"/mcp/**\\\").permitAll()\n .apply {\n if (permitLibreChat) {\n pathMatchers(\\\"/librechat/**\\\").permitAll()\n } else {\n pathMatchers(\\\"/librechat/**\\\").authenticated()\n }\n }\n .pathMatchers(\\\"/css/**\\\", \\\"/js/**\\\", \\\"/images/**\\\", \\\"/webjars/**\\\").permitAll()\n .pathMatchers(\\\"/\\\", \\\"/upload\\\", \\\"/jobs\\\", \\\"/chat\\\", \\\"/knowledge-bases\\\", \\\"/web/**\\\")\n .hasAnyAuthority(\\\"ROLE_USER\\\", \\\"ROLE_ADMIN\\\")\n .anyExchange().authenticated()\n }\n }\n .addFilterAt(jwtAuthenticationFilter, SecurityWebFiltersOrder.AUTHENTICATION)\n .build()\"? \"csrf\"?+ \"csrfTokenRepository\"?+ \"withHttpOnlyFalse\"?+ \"requireCsrfProtectionMatcher\"?+ \"AndServerWebExchangeMatcher\"? \"DEFAULT_CSRF_MATCHER\"? \"NegatedServerWebExchangeMatcher\"? (\"ROLE_ADMIN\" | \"anyExchange\" | \"authenticated\" | \"authenticationManager\" | \"authorizeExchange\" | \"disable\" | \"findByUsername\" | \"formLogin\" | \"hasAnyAuthority\" | \"httpBasic\" | \"info\" | \"logout\" | \"pathMatchers\" | \"permitAll\" | \"registerUser\")?+ \"startsWith\"?+ \"ROLE_USER\"? \"addFilterAt\"?+ \"substring\"?+ \"AUTHENTICATION\"? \"parseToken\"?+ (\"Err\" | \"Ok\" | \"Outcome\" | \"UsernamePasswordAuthenticationToken\" | \"authorities\" | \"contextWrite\" | \"return chain.filter(exchange)\" | \"return chain.filter(exchange)\n .contextWrite(ReactiveSecurityContextHolder.withAuthentication(authentication))\" | \"username\" | \"value\" | \"withAuthentication\")?+", + "grammar_clean": "root ::= (\"getProperty\" | \"java\")?+ \"CommandLineRunner\"? \"BCryptPasswordEncoder\"? \"UserDetailsRepositoryReactiveAuthenticationManager\"? \"request\"? \"acceptsProfiles\"?+ \"setPasswordEncoder\"?+ \"headers\"? \"return manager\"? \"getFirst\"?+ \"activeProfiles\"? \"AUTHORIZATION\"? \"return http\n // Temporary: Thymeleaf pages may post forms; keep CSRF for browser endpoints.\n // Long-term: JWT-only API (no cookie auth), so this can be revisited.\n .csrf {\n it.csrfTokenRepository(CookieServerCsrfTokenRepository.withHttpOnlyFalse())\n it.requireCsrfProtectionMatcher(\n AndServerWebExchangeMatcher(\n CsrfWebFilter.DEFAULT_CSRF_MATCHER,\n NegatedServerWebExchangeMatcher(\n // CSRF is only relevant for browser cookie-based interactions.\n // LibreChat calls our /librechat/** endpoints server-to-server and won't send CSRF tokens.\n ServerWebExchangeMatchers.pathMatchers(\\\"/api/**\\\", \\\"/mcp/**\\\", \\\"/librechat/**\\\")\n )\n )\n )\n }\n .httpBasic { it.disable() }\n .formLogin {\n if (!enableFormLogin) {\n it.disable()\n }\n }\n .logout { it.disable() }\n .authenticationManager(authenticationManager)\n .authorizeExchange { exchange ->\n if (permitAll) {\n exchange.anyExchange().permitAll()\n } else {\n exchange\n // Public assets and auth endpoints\n .pathMatchers(\\\"/api/auth/**\\\", \\\"/login\\\", \\\"/logout\\\", \\\"/librechat/**\\\").permitAll()\n .pathMatchers(\\\"/actuator/health/**\\\", \\\"/mcp/**\\\").permitAll()\n .apply {\n if (permitLibreChat) {\n pathMatchers(\\\"/librechat/**\\\").permitAll()\n } else {\n pathMatchers(\\\"/librechat/**\\\").authenticated()\n }\n }\n .pathMatchers(\\\"/css/**\\\", \\\"/js/**\\\", \\\"/images/**\\\", \\\"/webjars/**\\\").permitAll()\n .pathMatchers(\\\"/\\\", \\\"/upload\\\", \\\"/jobs\\\", \\\"/chat\\\", \\\"/knowledge-bases\\\", \\\"/web/**\\\")\n .hasAnyAuthority(\\\"ROLE_USER\\\", \\\"ROLE_ADMIN\\\")\n .anyExchange().authenticated()\n }\n }\n .addFilterAt(jwtAuthenticationFilter, SecurityWebFiltersOrder.AUTHENTICATION)\n .build()\"? \"csrf\"?+ \"csrfTokenRepository\"?+ \"withHttpOnlyFalse\"?+ \"requireCsrfProtectionMatcher\"?+ \"AndServerWebExchangeMatcher\"? \"DEFAULT_CSRF_MATCHER\"? \"NegatedServerWebExchangeMatcher\"? (\"ROLE_ADMIN\" | \"anyExchange\" | \"authenticated\" | \"authenticationManager\" | \"authorizeExchange\" | \"disable\" | \"findByUsername\" | \"formLogin\" | \"hasAnyAuthority\" | \"httpBasic\" | \"info\" | \"logout\" | \"pathMatchers\" | \"permitAll\" | \"registerUser\")?+ \"startsWith\"?+ \"ROLE_USER\"? \"addFilterAt\"?+ \"substring\"?+ \"AUTHENTICATION\"? \"parseToken\"?+ (\"Err\" | \"Ok\" | \"Outcome\" | \"UsernamePasswordAuthenticationToken\" | \"authorities\" | \"contextWrite\" | \"return chain.filter(exchange)\" | \"return chain.filter(exchange)\n .contextWrite(ReactiveSecurityContextHolder.withAuthentication(authentication))\" | \"username\" | \"value\" | \"withAuthentication\")?+", + "noise_ratio": 0.15, + "symbols_before": 62, + "symbols_after": 53, + "algorithm": "CRX", + "mdl_score": 0, + "imports": [ + "import eu.corentic.springrag.common.Outcome", + "import eu.corentic.springrag.security.service.JwtService", + "import org.springframework.http.HttpHeaders", + "import org.springframework.security.authentication.UsernamePasswordAuthenticationToken", + "import org.springframework.security.core.context.ReactiveSecurityContextHolder", + "import org.springframework.stereotype.Component", + "import org.springframework.web.server.ServerWebExchange", + "import org.springframework.web.server.WebFilter", + "import org.springframework.web.server.WebFilterChain", + "import reactor.core.publisher.Mono", + "import org.springframework.context.annotation.Bean", + "import org.springframework.context.annotation.Configuration", + "import org.springframework.security.config.annotation.method.configuration.EnableReactiveMethodSecurity", + "import org.springframework.security.config.annotation.web.reactive.EnableWebFluxSecurity", + "import org.springframework.security.config.web.server.SecurityWebFiltersOrder", + "import org.springframework.security.config.web.server.ServerHttpSecurity", + "import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder", + "import org.springframework.security.crypto.password.PasswordEncoder", + "import org.springframework.security.web.server.SecurityWebFilterChain", + "import org.springframework.security.authentication.ReactiveAuthenticationManager", + "import org.springframework.security.core.userdetails.ReactiveUserDetailsService", + "import org.springframework.security.authentication.UserDetailsRepositoryReactiveAuthenticationManager", + "import org.springframework.security.web.server.csrf.CookieServerCsrfTokenRepository", + "import org.springframework.security.web.server.csrf.CsrfWebFilter", + "import org.springframework.security.web.server.util.matcher.AndServerWebExchangeMatcher", + "import org.springframework.security.web.server.util.matcher.NegatedServerWebExchangeMatcher", + "import org.springframework.security.web.server.util.matcher.ServerWebExchangeMatchers", + "import org.springframework.core.env.Environment", + "import org.springframework.core.env.Profiles", + "import eu.corentic.springrag.security.model.Role", + "import eu.corentic.springrag.security.service.UserService", + "import io.github.oshai.kotlinlogging.KotlinLogging", + "import org.springframework.boot.CommandLineRunner", + "import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty" + ], + "arg_patterns": {} + }, + { + "label": "modules/security/src/main/kotlin/eu/corentic/springrag/security/service", + "method_count": 10, + "grammar": "root ::= \"parser\"?+ \"verifyWith\"?+ \"parseSignedClaims\"?+ \"payload\"?", + "grammar_clean": "root ::= \"parser\"?+ \"verifyWith\"?+ \"parseSignedClaims\"?+ \"payload\"?", + "noise_ratio": 0.33, + "symbols_before": 6, + "symbols_after": 4, + "algorithm": "CRX", + "mdl_score": 6, + "imports": [ + "import eu.corentic.springrag.security.repository.UserRepository", + "import org.springframework.security.core.userdetails.ReactiveUserDetailsService", + "import org.springframework.security.core.userdetails.User", + "import org.springframework.security.core.userdetails.UserDetails", + "import org.springframework.stereotype.Service", + "import reactor.core.publisher.Mono", + "import reactor.core.scheduler.Schedulers", + "import eu.corentic.springrag.common.DomainException", + "import eu.corentic.springrag.common.Outcome", + "import eu.corentic.springrag.security.model.User", + "import io.jsonwebtoken.ExpiredJwtException", + "import io.jsonwebtoken.Jwts", + "import io.jsonwebtoken.MalformedJwtException", + "import io.jsonwebtoken.UnsupportedJwtException", + "import io.jsonwebtoken.security.Keys", + "import io.jsonwebtoken.security.SecurityException", + "import java.nio.charset.StandardCharsets", + "import java.util.*", + "import javax.crypto.SecretKey", + "import eu.corentic.springrag.security.config.JwtProperties", + "import org.springframework.security.core.GrantedAuthority", + "import org.springframework.security.core.authority.SimpleGrantedAuthority", + "import java.util.UUID", + "import org.springframework.data.relational.core.mapping.event.BeforeConvertCallback", + "import org.springframework.stereotype.Component", + "import eu.corentic.springrag.security.model.Role", + "import io.github.oshai.kotlinlogging.KotlinLogging", + "import org.springframework.security.crypto.password.PasswordEncoder", + "import org.springframework.transaction.annotation.Transactional" + ], + "arg_patterns": {} + }, + { + "label": "modules/security/src/test/kotlin/eu/corentic/springrag/security/config", + "method_count": 6, + "grammar": "root ::= \"passwordEncoder\"?+ \"http\"?+ \"ReactiveAuthenticationManager\"? \"BCryptPasswordEncoder\"? \"empty\"?+ (\"ROLE_ADMIN\" | \"any\" | \"findByUsername\" | \"registerUser\" | \"seedUsers\")?+ \"JwtService\"? \"parseToken\"?+ \"ROLE_USER\"? \"JwtAuthenticationFilter\"? \"Ok\"?+ \"Err\"?+ \"springSecurityFilterChain\"?+ \"ParsedJwt\"?+ \"Malformed\"?+ (\"AUTHORIZATION\" | \"AtomicReference\" | \"Authentication\" | \"SimpleGrantedAuthority\" | \"WebFilterChain\" | \"authentication\" | \"block\" | \"doOnNext\" | \"from\" | \"getContext\" | \"header\" | \"name\" | \"then\")?+ \"authorities\"? \"toList\"?+", + "grammar_clean": "root ::= \"passwordEncoder\"?+ \"http\"?+ \"ReactiveAuthenticationManager\"? \"BCryptPasswordEncoder\"? \"empty\"?+ (\"ROLE_ADMIN\" | \"any\" | \"findByUsername\" | \"registerUser\" | \"seedUsers\")?+ \"JwtService\"? \"parseToken\"?+ \"ROLE_USER\"? \"JwtAuthenticationFilter\"? \"Ok\"?+ \"Err\"?+ \"springSecurityFilterChain\"?+ \"ParsedJwt\"?+ \"Malformed\"?+ (\"AUTHORIZATION\" | \"AtomicReference\" | \"Authentication\" | \"SimpleGrantedAuthority\" | \"WebFilterChain\" | \"authentication\" | \"block\" | \"doOnNext\" | \"from\" | \"getContext\" | \"header\" | \"name\" | \"then\")?+ \"authorities\"? \"toList\"?+", + "noise_ratio": 0.29, + "symbols_before": 48, + "symbols_after": 34, + "algorithm": "CRX", + "mdl_score": 0, + "imports": [ + "import eu.corentic.springrag.common.Outcome", + "import eu.corentic.springrag.security.service.JwtService", + "import eu.corentic.springrag.security.service.JwtValidationError", + "import io.mockk.every", + "import io.mockk.mockk", + "import java.util.concurrent.atomic.AtomicReference", + "import org.junit.jupiter.api.Assertions.assertEquals", + "import org.junit.jupiter.api.Assertions.assertNull", + "import org.junit.jupiter.api.Test", + "import org.springframework.http.HttpHeaders", + "import org.springframework.mock.http.server.reactive.MockServerHttpRequest", + "import org.springframework.mock.web.server.MockServerWebExchange", + "import org.springframework.security.core.Authentication", + "import org.springframework.security.core.authority.SimpleGrantedAuthority", + "import org.springframework.security.core.context.ReactiveSecurityContextHolder", + "import org.springframework.web.server.WebFilterChain", + "import org.junit.jupiter.api.Assertions.assertNotNull", + "import org.junit.jupiter.api.Assertions.assertTrue", + "import org.springframework.mock.env.MockEnvironment", + "import org.springframework.security.authentication.ReactiveAuthenticationManager", + "import org.springframework.security.config.web.server.ServerHttpSecurity", + "import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder", + "import reactor.core.publisher.Mono", + "import eu.corentic.springrag.security.model.Role", + "import eu.corentic.springrag.security.service.UserService", + "import io.mockk.just", + "import io.mockk.runs", + "import io.mockk.verify" + ], + "arg_patterns": {} + }, + { + "label": "modules/security/src/test/kotlin/eu/corentic/springrag/security/service", + "method_count": 15, + "grammar": "root ::= \"JwtService\"? \"existsByUsername\"?+ \"JwtProperties\"? \"any\"? \"PasswordPolicyViolationException\"? \"java\"? \"registerUser\"?+ \"errorCode\"?", + "grammar_clean": "root ::= \"JwtService\"? \"existsByUsername\"?+ \"JwtProperties\"? \"any\"? \"PasswordPolicyViolationException\"? \"java\"? \"registerUser\"?+ \"errorCode\"?", + "noise_ratio": 0.27, + "symbols_before": 11, + "symbols_after": 8, + "algorithm": "CRX", + "mdl_score": 481, + "imports": [ + "import eu.corentic.springrag.common.Outcome", + "import eu.corentic.springrag.security.model.Role", + "import eu.corentic.springrag.security.model.User", + "import eu.corentic.springrag.security.config.JwtProperties", + "import io.jsonwebtoken.Jwts", + "import io.jsonwebtoken.security.Keys", + "import java.nio.charset.StandardCharsets", + "import java.util.UUID", + "import java.util.Date", + "import org.junit.jupiter.api.Assertions.assertEquals", + "import org.junit.jupiter.api.Assertions.assertFalse", + "import org.junit.jupiter.api.Assertions.assertTrue", + "import org.junit.jupiter.api.Test", + "import eu.corentic.springrag.security.repository.UserRepository", + "import io.mockk.MockKAnnotations", + "import io.mockk.every", + "import io.mockk.impl.annotations.MockK", + "import io.mockk.verify", + "import org.junit.jupiter.api.Assertions.assertThrows", + "import org.junit.jupiter.api.BeforeEach", + "import org.springframework.security.crypto.password.PasswordEncoder" + ], + "arg_patterns": {} + }, + { + "label": "platform/test-support/src/main/kotlin/eu/corentic/springrag/testcontainers", + "method_count": 13, + "grammar": "root ::= \"try\"", + "grammar_clean": "root ::= \"try\"", + "noise_ratio": 0.5, + "symbols_before": 2, + "symbols_after": 1, + "algorithm": "CRX", + "mdl_score": 4, + "imports": [ + "import com.github.dockerjava.api.model.DeviceRequest", + "import org.testcontainers.DockerClientFactory", + "import org.testcontainers.containers.GenericContainer", + "import io.github.oshai.kotlinlogging.KotlinLogging", + "import io.qdrant.client.QdrantClient", + "import io.qdrant.client.grpc.Collections.Distance", + "import io.qdrant.client.grpc.Collections.VectorParams", + "import java.util.concurrent.ExecutionException", + "import eu.corentic.springrag.testcontainers.GpuSupport.withGpuIfAvailable", + "import java.io.File", + "import java.time.Duration", + "import org.testcontainers.containers.BindMode", + "import org.testcontainers.containers.Neo4jContainer", + "import org.testcontainers.containers.PostgreSQLContainer", + "import org.testcontainers.containers.wait.strategy.Wait", + "import org.testcontainers.junit.jupiter.Container" + ], + "arg_patterns": {} + }, + { + "label": "platform/test-support/src/test/kotlin/eu/corentic/springrag/testcontainers", + "method_count": 5, + "grammar": "root ::= \"@\"? \"Suppress\"?+ (\"ArgumentMatchers\" | \"CollectionConfig\" | \"CollectionInfo\" | \"CollectionOperationResponse\" | \"CollectionParams\" | \"Collections\" | \"Cosine\" | \"Distance\" | \"ExecResult\" | \"GenericContainer\" | \"IllegalStateException\" | \"InterruptedException\" | \"ListenableFuture\" | \"Mockito\" | \"RuntimeException\" | \"VectorParams\" | \"VectorsConfig\" | \"`when`\" | \"any\" | \"anyString\" | \"collectionPointCount\" | \"createCollectionAsync\" | \"currentThread\" | \"deleteCollectionAsync\" | \"eq\" | \"execInContainer\" | \"getCollectionInfoAsync\" | \"getDefaultInstance\" | \"immediateFailedFuture\" | \"immediateFuture\" | \"interrupted\" | \"isInterrupted\" | \"java\" | \"mockito\" | \"newBuilder\" | \"pullAndWarmup\" | \"recreateTestCollection\" | \"setConfig\" | \"setDistance\" | \"setParams\" | \"setSize\" | \"setVectorsConfig\" | \"thenReturn\" | \"thenThrow\" | \"times\" | \"with\")?+ \"message\"?", + "grammar_clean": "root ::= \"@\"? \"Suppress\"?+ (\"ArgumentMatchers\" | \"CollectionConfig\" | \"CollectionInfo\" | \"CollectionOperationResponse\" | \"CollectionParams\" | \"Collections\" | \"Cosine\" | \"Distance\" | \"ExecResult\" | \"GenericContainer\" | \"IllegalStateException\" | \"InterruptedException\" | \"ListenableFuture\" | \"Mockito\" | \"RuntimeException\" | \"VectorParams\" | \"VectorsConfig\" | \"`when`\" | \"any\" | \"anyString\" | \"collectionPointCount\" | \"createCollectionAsync\" | \"currentThread\" | \"deleteCollectionAsync\" | \"eq\" | \"execInContainer\" | \"getCollectionInfoAsync\" | \"getDefaultInstance\" | \"immediateFailedFuture\" | \"immediateFuture\" | \"interrupted\" | \"isInterrupted\" | \"java\" | \"mockito\" | \"newBuilder\" | \"pullAndWarmup\" | \"recreateTestCollection\" | \"setConfig\" | \"setDistance\" | \"setParams\" | \"setSize\" | \"setVectorsConfig\" | \"thenReturn\" | \"thenThrow\" | \"times\" | \"with\")?+ \"message\"?", + "noise_ratio": 0.16, + "symbols_before": 58, + "symbols_after": 49, + "algorithm": "CRX", + "mdl_score": 473418, + "imports": [ + "import org.junit.jupiter.api.Test", + "import org.mockito.Mockito.mock", + "import org.mockito.Mockito.times", + "import org.mockito.Mockito.verify", + "import org.testcontainers.containers.Container", + "import org.testcontainers.containers.GenericContainer", + "import com.google.common.util.concurrent.Futures", + "import com.google.common.util.concurrent.ListenableFuture", + "import io.qdrant.client.QdrantClient", + "import io.qdrant.client.grpc.Collections", + "import org.junit.jupiter.api.assertThrows", + "import org.mockito.ArgumentMatchers.any", + "import org.mockito.Mockito.`when`", + "import kotlin.test.assertEquals", + "import kotlin.test.assertTrue" + ], + "arg_patterns": {} + }, + { + "label": "(other)", + "method_count": 6, + "imports": [], + "arg_patterns": {} + } + ], + "total_methods": 1609 + }, + { + "language": ".js", + "conventions": [ + { + "label": "compose/patches", + "method_count": 17, + "imports": [], + "arg_patterns": { + "setTimeout": { + "occurrences": 4, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 4, + "args": 2, + "types": [ + "other", + "other" + ] + } + ] + }, + "require": { + "occurrences": 24, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 24, + "args": 1, + "types": [ + "lit" + ] + } + ] + }, + "clearTimeout": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "EmbeddingPollerImpl": { + "occurrences": 2, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 2, + "args": 0, + "types": [] + } + ] + }, + "Map": { + "occurrences": 3, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 3, + "args": 0, + "types": [] + } + ] + }, + "new": { + "occurrences": 3, + "arg_count": { + "min": 0, + "max": 1, + "common": 0 + }, + "patterns": [ + { + "count": 2, + "args": 0, + "types": [] + }, + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "filterFilesByAgentAccess": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "getFiles": { + "occurrences": 2, + "arg_count": { + "min": 3, + "max": 3, + "common": 3 + }, + "patterns": [ + { + "count": 2, + "args": 3, + "types": [ + "other", + "lit", + "other" + ] + } + ] + }, + "tool": { + "occurrences": 2, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 2, + "args": 2, + "types": [ + "other", + "other" + ] + } + ] + }, + "Set": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "generateShortLivedToken": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "var" + ] + } + ] + } + } + }, + { + "label": "testing/steps", + "method_count": 68, + "grammar": "root ::= \"await\" \"waitForTimeout\"?", + "grammar_clean": "root ::= \"await\" \"waitForTimeout\"?", + "noise_ratio": 0.0, + "symbols_before": 2, + "symbols_after": 2, + "algorithm": "CRX", + "mdl_score": 2, + "imports": [ + "import { Given, When, Then } from '@cucumber/cucumber';", + "import { expect } from '@playwright/test';", + "import { BeforeAll, AfterAll, Before, After, setDefaultTimeout } from '@cucumber/cucumber';" + ], + "arg_patterns": { + "Then": { + "occurrences": 40, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 40, + "args": 2, + "types": [ + "lit", + "other" + ] + } + ] + }, + "expect": { + "occurrences": 40, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 16, + "args": 1, + "types": [ + "var" + ] + }, + { + "count": 14, + "args": 1, + "types": [ + "other" + ] + }, + { + "count": 10, + "args": 1, + "types": [ + "call" + ] + } + ] + }, + "Given": { + "occurrences": 24, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 24, + "args": 2, + "types": [ + "lit", + "other" + ] + } + ] + }, + "When": { + "occurrences": 54, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 54, + "args": 2, + "types": [ + "lit", + "other" + ] + } + ] + }, + "fetch": { + "occurrences": 6, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 6, + "args": 1, + "types": [ + "lit" + ] + } + ] + }, + "setDefaultTimeout": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "lit" + ] + } + ] + }, + "Before": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "After": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "createAgent": { + "occurrences": 4, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 4, + "args": 2, + "types": [ + "lit", + "lit" + ] + } + ] + } + } + }, + { + "label": "testing/support", + "method_count": 3, + "grammar": "root ::= (\"await\" | \"catch\" | \"chromium\" | \"close\" | \"launch\" | \"newContext\" | \"process\")?+ \"newPage\"? \"Date\"?+ \"now\"?", + "grammar_clean": "root ::= (\"await\" | \"catch\" | \"chromium\" | \"close\" | \"launch\" | \"newContext\" | \"process\")?+ \"newPage\"? \"Date\"?+ \"now\"?", + "noise_ratio": 0.17, + "symbols_before": 12, + "symbols_after": 10, + "algorithm": "CRX", + "mdl_score": 7112, + "imports": [ + "import { chromium } from '@playwright/test';", + "import { setWorldConstructor } from '@cucumber/cucumber';" + ], + "arg_patterns": { + "setWorldConstructor": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "var" + ] + } + ] + } + } + }, + { + "label": "(other)", + "method_count": 1, + "imports": [], + "arg_patterns": {} + } + ], + "total_methods": 89 + }, + { + "language": ".java", + "conventions": [], + "total_methods": 0 + }, + { + "language": ".go", + "conventions": [ + { + "label": "tools/setup-ui", + "method_count": 44, + "imports": [ + "import (" + ], + "arg_patterns": { + "writeEnvFile": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "float64": { + "occurrences": 4, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "call" + ] + }, + { + "count": 2, + "args": 1, + "types": [ + "expr" + ] + } + ] + }, + "make": { + "occurrences": 9, + "arg_count": { + "min": 3, + "max": 3, + "common": 3 + }, + "patterns": [ + { + "count": 9, + "args": 3, + "types": [ + "other", + "other", + "call" + ] + } + ] + }, + "len": { + "occurrences": 42, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 30, + "args": 1, + "types": [ + "other" + ] + }, + { + "count": 12, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "append": { + "occurrences": 51, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 24, + "args": 2, + "types": [ + "var", + "call" + ] + }, + { + "count": 9, + "args": 2, + "types": [ + "var", + "var" + ] + }, + { + "count": 6, + "args": 2, + "types": [ + "var", + "other" + ] + }, + { + "count": 6, + "args": 2, + "types": [ + "other", + "other" + ] + }, + { + "count": 3, + "args": 2, + "types": [ + "other", + "var" + ] + } + ] + }, + "sectionTitle": { + "occurrences": 10, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 10, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "writeExport": { + "occurrences": 8, + "arg_count": { + "min": 3, + "max": 3, + "common": 3 + }, + "patterns": [ + { + "count": 4, + "args": 3, + "types": [ + "var", + "other", + "call" + ] + }, + { + "count": 2, + "args": 3, + "types": [ + "var", + "var", + "other" + ] + }, + { + "count": 2, + "args": 3, + "types": [ + "var", + "other", + "other" + ] + } + ] + }, + "string": { + "occurrences": 4, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 4, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "repoRoot": { + "occurrences": 2, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 2, + "args": 0, + "types": [] + } + ] + }, + "runStart": { + "occurrences": 2, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 2, + "args": 0, + "types": [] + } + ] + }, + "buildSteps": { + "occurrences": 2, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 2, + "args": 0, + "types": [] + } + ] + }, + "errorStyle": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "summarizeConfig": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "expr" + ] + } + ] + }, + "accent": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "muted": { + "occurrences": 8, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 4, + "args": 1, + "types": [ + "other" + ] + }, + { + "count": 2, + "args": 1, + "types": [ + "var" + ] + }, + { + "count": 2, + "args": 1, + "types": [ + "expr" + ] + } + ] + }, + "banner": { + "occurrences": 2, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 2, + "args": 0, + "types": [] + } + ] + }, + "removeString": { + "occurrences": 2, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 2, + "args": 2, + "types": [ + "other", + "other" + ] + } + ] + }, + "newConfig": { + "occurrences": 2, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 2, + "args": 0, + "types": [] + } + ] + }, + "sortedKeys": { + "occurrences": 4, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 4, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "initialModel": { + "occurrences": 2, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 2, + "args": 0, + "types": [] + } + ] + }, + "isSensitiveKey": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "shellEscape": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "var" + ] + } + ] + } + } + } + ], + "total_methods": 44 + } +] diff --git a/experiments/results/round22_noise_filtering/zod.json b/experiments/results/round22_noise_filtering/zod.json new file mode 100644 index 0000000..e8bfc71 --- /dev/null +++ b/experiments/results/round22_noise_filtering/zod.json @@ -0,0 +1,13370 @@ +[ + { + "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": { + "BenchmarkJS": { + "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": [ + "other" + ] + } + ] + }, + "Error": { + "occurrences": 18, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 15, + "args": 1, + "types": [ + "lit" + ] + }, + { + "count": 3, + "args": 1, + "types": [ + "template" + ] + } + ] + }, + "Table": { + "occurrences": 4, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 4, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "Mitata": { + "occurrences": 2, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 2, + "args": 2, + "types": [ + "var", + "expr" + ] + } + ] + }, + "String": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "formatNumber": { + "occurrences": 10, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 6, + "args": 1, + "types": [ + "other" + ] + }, + { + "count": 4, + "args": 1, + "types": [ + "expr" + ] + } + ] + }, + "_bench": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "metabench": { + "occurrences": 58, + "arg_count": { + "min": 1, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 46, + "args": 2, + "types": [ + "lit", + "other" + ] + }, + { + "count": 10, + "args": 1, + "types": [ + "lit" + ] + }, + { + "count": 2, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "Tinybench": { + "occurrences": 2, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 2, + "args": 2, + "types": [ + "var", + "expr" + ] + } + ] + }, + "new": { + "occurrences": 23, + "arg_count": { + "min": 0, + "max": 2, + "common": 1 + }, + "patterns": [ + { + "count": 8, + "args": 1, + "types": [ + "lit" + ] + }, + { + "count": 5, + "args": 1, + "types": [ + "other" + ] + }, + { + "count": 3, + "args": 2, + "types": [ + "var", + "expr" + ] + }, + { + "count": 3, + "args": 2, + "types": [ + "other", + "other" + ] + }, + { + "count": 2, + "args": 0, + "types": [] + } + ] + }, + "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": [] + } + ] + }, + "randomString": { + "occurrences": 54, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 54, + "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": [] + } + ] + }, + "makeSuccess": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "ZodFail": { + "occurrences": 4, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 4, + "args": 1, + "types": [ + "lit" + ] + } + ] + }, + "benchWithData": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "makeFail": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "makeSchema": { + "occurrences": 18, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 16, + "args": 1, + "types": [ + "other" + ] + }, + { + "count": 2, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "falsyThenCheckTag": { + "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" + ] + } + ] + }, + "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" + ] + } + ] + }, + "instanceofPromise": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "instanceofObjectThenCheckSymbol": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "keyin": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "nullChainCheckTag": { + "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" + ] + } + ] + }, + "makeData": { + "occurrences": 22, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 22, + "args": 2, + "types": [ + "lit", + "other" + ] + } + ] + }, + "ZodFailure": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "lit" + ] + } + ] + }, + "typeofThenCheckTag": { + "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" + ] + } + ] + }, + "Proxy": { + "occurrences": 6, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 6, + "args": 2, + "types": [ + "other", + "other" + ] + } + ] + }, + "lazyWithGetterOverride": { + "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" + ] + } + ] + }, + "lazyWithScopeProp": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "Set": { + "occurrences": 6, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 6, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "Date": { + "occurrences": 6, + "arg_count": { + "min": 0, + "max": 1, + "common": 0 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "var" + ] + }, + { + "count": 3, + "args": 0, + "types": [] + } + ] + }, + "randomPick": { + "occurrences": 4, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 4, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "type": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "atschema": { + "occurrences": 4, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "subscript" + ] + }, + { + "count": 2, + "args": 1, + "types": [ + "var" + ] + } + ] + } + } + }, + { + "label": "packages/docs/app/llms-full.txt", + "method_count": 3, + "grammar": "root ::= (\"JSON\" | \"Map\" | \"Number\" | \"Response\" | \"a\" | \"aOrder\" | \"await\" | \"b\" | \"bOrder\" | \"cwd\" | \"for\" | \"fs\" | \"getLLMText\" | \"getPages\" | \"index\" | \"join\" | \"meta\" | \"metaPath\" | \"new\" | \"number\" | \"page\" | \"pageOrder\" | \"pages\" | \"parse\" | \"process\" | \"readFile\" | \"sort\" | \"sortedPages\" | \"source\" | \"string\" | \"txt\")+", + "grammar_clean": "root ::= (\"JSON\" | \"Map\" | \"Number\" | \"Response\" | \"a\" | \"aOrder\" | \"await\" | \"b\" | \"bOrder\" | \"cwd\" | \"for\" | \"fs\" | \"getLLMText\" | \"getPages\" | \"index\" | \"join\" | \"meta\" | \"metaPath\" | \"new\" | \"number\" | \"page\" | \"pageOrder\" | \"pages\" | \"parse\" | \"process\" | \"readFile\" | \"sort\" | \"sortedPages\" | \"source\" | \"string\" | \"txt\")+", + "noise_ratio": 0.14, + "symbols_before": 36, + "symbols_after": 31, + "algorithm": "CRX", + "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": { + "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" + ] + } + ] + }, + "join": { + "occurrences": 2, + "arg_count": { + "min": 3, + "max": 3, + "common": 3 + }, + "patterns": [ + { + "count": 2, + "args": 3, + "types": [ + "call", + "lit", + "lit" + ] + } + ] + }, + "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, + "grammar": "root ::= (\"Array\" | \"Response\" | \"anchor\" | \"any\" | \"continue\" | \"description\" | \"for\" | \"fullUrl\" | \"getPages\" | \"isArray\" | \"item\" | \"join\" | \"new\" | \"page\" | \"pageUrl\" | \"pages\" | \"replace\" | \"section\" | \"sectionTitle\" | \"sections\" | \"source\" | \"startsWith\" | \"stringifyTitle\" | \"title\" | \"txt\" | \"typeof\")+", + "grammar_clean": "root ::= (\"Array\" | \"Response\" | \"anchor\" | \"any\" | \"continue\" | \"description\" | \"for\" | \"fullUrl\" | \"getPages\" | \"isArray\" | \"item\" | \"join\" | \"new\" | \"page\" | \"pageUrl\" | \"pages\" | \"replace\" | \"section\" | \"sectionTitle\" | \"sections\" | \"source\" | \"startsWith\" | \"stringifyTitle\" | \"title\" | \"txt\" | \"typeof\")+", + "noise_ratio": 0.19, + "symbols_before": 32, + "symbols_after": 26, + "algorithm": "CRX", + "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": { + "getEditDistance": { + "occurrences": 2, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 2, + "args": 2, + "types": [ + "var", + "var" + ] + } + ] + }, + "fileURLToPath": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "dirname": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "call" + ] + } + ] + }, + "isLikelyTabValue": { + "occurrences": 6, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 4, + "args": 2, + "types": [ + "other", + "lit" + ] + }, + { + "count": 2, + "args": 2, + "types": [ + "other", + "var" + ] + } + ] + }, + "resolve": { + "occurrences": 2, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 2, + "args": 2, + "types": [ + "call", + "lit" + ] + } + ] + }, + "normalizeTabValue": { + "occurrences": 4, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 4, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "assertExpectedTabLabels": { + "occurrences": 2, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 2, + "args": 2, + "types": [ + "var", + "var" + ] + } + ] + }, + "expect": { + "occurrences": 4, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 4, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "stripMdxCommentSegments": { + "occurrences": 2, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 2, + "args": 2, + "types": [ + "var", + "var" + ] + } + ] + }, + "compareCodeFences": { + "occurrences": 2, + "arg_count": { + "min": 4, + "max": 4, + "common": 4 + }, + "patterns": [ + { + "count": 2, + "args": 4, + "types": [ + "var", + "var", + "var", + "var" + ] + } + ] + }, + "readCodeFence": { + "occurrences": 2, + "arg_count": { + "min": 3, + "max": 3, + "common": 3 + }, + "patterns": [ + { + "count": 2, + "args": 3, + "types": [ + "var", + "var", + "other" + ] + } + ] + }, + "getTabValue": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "readFile": { + "occurrences": 2, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 2, + "args": 2, + "types": [ + "var", + "lit" + ] + } + ] + }, + "stripMdxComments": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "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" + ] + } + ] + } + } + }, + { + "label": "packages/docs/loaders", + "method_count": 7, + "grammar": "root ::= (\"id\" | \"name\" | \"owner\" | \"slug\" | \"split\")?+ \"r\"?", + "grammar_clean": "root ::= (\"id\" | \"name\" | \"owner\" | \"slug\" | \"split\")?+ \"r\"?", + "noise_ratio": 0.14, + "symbols_before": 7, + "symbols_after": 6, + "algorithm": "CRX", + "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": { + "loader": { + "occurrences": 4, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 4, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "createElement": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "subscript" + ] + } + ] + }, + "createMDXSource": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "Set": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "call" + ] + } + ] + }, + "fetch": { + "occurrences": 2, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 2, + "args": 2, + "types": [ + "var", + "other" + ] + } + ] + }, + "Error": { + "occurrences": 9, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 9, + "args": 1, + "types": [ + "lit" + ] + } + ] + }, + "Map": { + "occurrences": 3, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 3, + "args": 0, + "types": [] + } + ] + }, + "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": [] + } + ] + }, + "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" + ] + } + ] + } + } + }, + { + "label": "packages/resolution", + "method_count": 8, + "grammar": "root ::= (\":\" | \"?\" | \"_\" | \"__dirname\" | \"any\" | \"await\" | \"catch\" | \"console\" | \"execa\" | \"existsSync\" | \"expect\" | \"join\" | \"log\" | \"output\" | \"outputWithoutFirstLine\" | \"path\" | \"result\" | \"slice\" | \"split\" | \"try\" | \"warn\" | \"zodIndexPath\" | \"zodPackagePath\")?+ \"toMatchInlineSnapshot\"? \"process\"? \"exit\"?", + "grammar_clean": "root ::= (\":\" | \"?\" | \"_\" | \"__dirname\" | \"any\" | \"await\" | \"catch\" | \"console\" | \"execa\" | \"existsSync\" | \"expect\" | \"join\" | \"log\" | \"output\" | \"outputWithoutFirstLine\" | \"path\" | \"result\" | \"slice\" | \"split\" | \"try\" | \"warn\" | \"zodIndexPath\" | \"zodPackagePath\")?+ \"toMatchInlineSnapshot\"? \"process\"? \"exit\"?", + "noise_ratio": 0.13, + "symbols_before": 30, + "symbols_after": 26, + "algorithm": "CRX", + "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": { + "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": [] + } + ] + }, + "buildTsc": { + "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": [] + } + ] + }, + "buildZshy": { + "occurrences": 2, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 2, + "args": 0, + "types": [] + } + ] + }, + "fileURLToPath": { + "occurrences": 4, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 4, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "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" + ] + } + ] + }, + "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" + ] + } + ] + } + } + }, + { + "label": "packages/tsc", + "method_count": 12, + "grammar": "root ::= \"field\" | \"params\"", + "grammar_clean": "root ::= \"field\" | \"params\"", + "noise_ratio": 0.0, + "symbols_before": 2, + "symbols_after": 2, + "algorithm": "iDRegEx", + "mdl_score": 4, + "imports": [ + "import { $ } from \"execa\";", + "import * as gen from \"./generate.js\";", + "import { mkdirSync, writeFileSync } from \"node:fs\";", + "import { dirname } from \"node:path\";" + ], + "arg_patterns": { + "Error": { + "occurrences": 6, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 6, + "args": 1, + "types": [ + "lit" + ] + } + ] + }, + "$": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "new": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "lit" + ] + } + ] + }, + "mkdirSync": { + "occurrences": 4, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 4, + "args": 2, + "types": [ + "call", + "other" + ] + } + ] + }, + "writeFileSync": { + "occurrences": 4, + "arg_count": { + "min": 3, + "max": 3, + "common": 3 + }, + "patterns": [ + { + "count": 4, + "args": 3, + "types": [ + "var", + "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" + ] + } + ] + }, + "randomStr": { + "occurrences": 14, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 14, + "args": 1, + "types": [ + "lit" + ] + } + ] + }, + "generateExtendChain": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "dirname": { + "occurrences": 4, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 4, + "args": 1, + "types": [ + "var" + ] + } + ] + } + } + }, + { + "label": "packages/tsc/bench", + "method_count": 3, + "grammar": "root ::= (\"$\" | \"await\" | \"console\" | \"exit\" | \"file\" | \"fileNames\" | \"files\" | \"for\" | \"import\" | \"log\" | \"process\" | \"replace\" | \"resolve\" | \"split\")+", + "grammar_clean": "root ::= (\"$\" | \"await\" | \"console\" | \"exit\" | \"file\" | \"fileNames\" | \"files\" | \"for\" | \"import\" | \"log\" | \"process\" | \"replace\" | \"resolve\" | \"split\")+", + "noise_ratio": 0.22, + "symbols_before": 18, + "symbols_after": 14, + "algorithm": "CRX", + "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": { + "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" + ] + } + ] + }, + "Number": { + "occurrences": 9, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 9, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "BigInt": { + "occurrences": 12, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 10, + "args": 1, + "types": [ + "lit" + ] + }, + { + "count": 2, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "ZodDate": { + "occurrences": 4, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 4, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "isDirty": { + "occurrences": 4, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 4, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "stringType": { + "occurrences": 2, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 2, + "args": 0, + "types": [] + } + ] + }, + "handleResult": { + "occurrences": 4, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 4, + "args": 2, + "types": [ + "var", + "var" + ] + } + ] + }, + "ZodNumber": { + "occurrences": 6, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 6, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "RegExp": { + "occurrences": 12, + "arg_count": { + "min": 1, + "max": 2, + "common": 1 + }, + "patterns": [ + { + "count": 9, + "args": 1, + "types": [ + "template" + ] + }, + { + "count": 3, + "args": 2, + "types": [ + "var", + "lit" + ] + } + ] + }, + "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" + ] + } + ] + }, + "processCreateParams": { + "occurrences": 84, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 76, + "args": 1, + "types": [ + "var" + ] + }, + { + "count": 8, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "DIRTY": { + "occurrences": 10, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 10, + "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" + ] + } + ] + }, + "This": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "OK": { + "occurrences": 28, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 24, + "args": 1, + "types": [ + "other" + ] + }, + { + "count": 2, + "args": 1, + "types": [ + "lit" + ] + }, + { + "count": 2, + "args": 1, + "types": [ + "call" + ] + } + ] + }, + "ZodEffects": { + "occurrences": 8, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 8, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "getDiscriminator": { + "occurrences": 18, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 10, + "args": 1, + "types": [ + "call" + ] + }, + { + "count": 6, + "args": 1, + "types": [ + "other" + ] + }, + { + "count": 2, + "args": 1, + "types": [ + "subscript" + ] + } + ] + }, + "ZodOptional": { + "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" + ] + } + ] + }, + "ZodSet": { + "occurrences": 6, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 6, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "ZodNaN": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "Set": { + "occurrences": 9, + "arg_count": { + "min": 0, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "call" + ] + }, + { + "count": 3, + "args": 0, + "types": [] + }, + { + "count": 3, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "ZodDefault": { + "occurrences": 4, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 4, + "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" + ] + } + ] + }, + "mergeValues": { + "occurrences": 6, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 2, + "args": 2, + "types": [ + "subscript", + "subscript" + ] + }, + { + "count": 2, + "args": 2, + "types": [ + "other", + "other" + ] + }, + { + "count": 2, + "args": 2, + "types": [ + "var", + "var" + ] + } + ] + }, + "deepPartialify": { + "occurrences": 12, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 4, + "args": 1, + "types": [ + "var" + ] + }, + { + "count": 4, + "args": 1, + "types": [ + "call" + ] + }, + { + "count": 4, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "ZodLiteral": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "isValidCidr": { + "occurrences": 2, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 2, + "args": 2, + "types": [ + "other", + "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" + ] + } + ] + }, + "check": { + "occurrences": 6, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 6, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "ZodMap": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "ZodString": { + "occurrences": 10, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 10, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "booleanType": { + "occurrences": 2, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 2, + "args": 0, + "types": [] + } + ] + }, + "executeRefinement": { + "occurrences": 4, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 4, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "String": { + "occurrences": 9, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 6, + "args": 1, + "types": [ + "var" + ] + }, + { + "count": 3, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "Error": { + "occurrences": 30, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 18, + "args": 1, + "types": [ + "template" + ] + }, + { + "count": 12, + "args": 1, + "types": [ + "lit" + ] + } + ] + }, + "ZodObject": { + "occurrences": 28, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 28, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "Map": { + "occurrences": 9, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 9, + "args": 0, + "types": [] + } + ] + }, + "isValid": { + "occurrences": 12, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 12, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "ZodTuple": { + "occurrences": 4, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 4, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "ZodCatch": { + "occurrences": 4, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 4, + "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" + ] + } + ] + }, + "ZodFunction": { + "occurrences": 6, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 6, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "ZodSymbol": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "Boolean": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "cleanParams": { + "occurrences": 4, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 4, + "args": 2, + "types": [ + "var", + "var" + ] + } + ] + }, + "datetimeRegex": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "ZodRecord": { + "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" + ] + } + ] + }, + "isAsync": { + "occurrences": 8, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 8, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "ZodNever": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "isAborted": { + "occurrences": 4, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 4, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "isValidIP": { + "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" + ] + } + ] + }, + "ZodNativeEnum": { + "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" + ] + } + ] + }, + "finalizeSet": { + "occurrences": 4, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "var" + ] + }, + { + "count": 2, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "setError": { + "occurrences": 4, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 4, + "args": 0, + "types": [] + } + ] + }, + "timeRegexSource": { + "occurrences": 4, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 4, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "ParseStatus": { + "occurrences": 10, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 10, + "args": 0, + "types": [] + } + ] + }, + "ZodBranded": { + "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" + ] + } + ] + }, + "makeIssue": { + "occurrences": 4, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 4, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "ZodReadonly": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "getErrorMap": { + "occurrences": 4, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 4, + "args": 0, + "types": [] + } + ] + }, + "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" + ] + } + ] + }, + "message": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "atob": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "ZodIntersection": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "ZodNull": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "ZodUnknown": { + "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" + ] + } + ] + }, + "freeze": { + "occurrences": 4, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 4, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "ZodPromise": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "ZodUndefined": { + "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" + ] + } + ] + }, + "refinementData": { + "occurrences": 2, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 2, + "args": 2, + "types": [ + "var", + "var" + ] + } + ] + }, + "Symbol": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "lit" + ] + } + ] + }, + "floatSafeRemainder": { + "occurrences": 2, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 2, + "args": 2, + "types": [ + "other", + "other" + ] + } + ] + }, + "ZodAny": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "ZodLazy": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "handleParsed": { + "occurrences": 4, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 2, + "args": 2, + "types": [ + "var", + "var" + ] + }, + { + "count": 2, + "args": 2, + "types": [ + "call", + "call" + ] + } + ] + }, + "getIssueProperties": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "handleAsync": { + "occurrences": 2, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 2, + "args": 0, + "types": [] + } + ] + }, + "numberType": { + "occurrences": 2, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 2, + "args": 0, + "types": [] + } + ] + }, + "params": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "makeArgsIssue": { + "occurrences": 4, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 2, + "args": 2, + "types": [ + "var", + "var" + ] + }, + { + "count": 2, + "args": 2, + "types": [ + "var", + "other" + ] + } + ] + }, + "URL": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "ZodVoid": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "ZodUnion": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "ZodDiscriminatedUnion": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "createZodEnum": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "new": { + "occurrences": 125, + "arg_count": { + "min": 0, + "max": 4, + "common": 1 + }, + "patterns": [ + { + "count": 84, + "args": 1, + "types": [ + "other" + ] + }, + { + "count": 9, + "args": 1, + "types": [ + "template" + ] + }, + { + "count": 9, + "args": 0, + "types": [] + }, + { + "count": 7, + "args": 4, + "types": [ + "var", + "var", + "other", + "var" + ] + }, + { + "count": 4, + "args": 1, + "types": [ + "lit" + ] + } + ] + }, + "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" + ] + } + ] + } + } + }, + { + "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": { + "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": [] + } + ] + }, + "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": [] + } + ] + }, + "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" + ] + } + ] + }, + "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": [] + } + ] + }, + "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": [] + } + ] + }, + "num": { + "occurrences": 2, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 2, + "args": 0, + "types": [] + } + ] + } + } + }, + { + "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" + ] + } + ] + }, + "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" + ] + } + ] + }, + "Error": { + "occurrences": 3, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 3, + "args": 0, + "types": [] + } + ] + }, + "new": { + "occurrences": 1, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 1, + "args": 0, + "types": [] + } + ] + }, + "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" + ] + } + ] + }, + "map": { + "occurrences": 2, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 2, + "args": 2, + "types": [ + "var", + "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": { + "expect": { + "occurrences": 2458, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 1706, + "args": 1, + "types": [ + "other" + ] + }, + { + "count": 458, + "args": 1, + "types": [ + "call" + ] + }, + { + "count": 252, + "args": 1, + "types": [ + "var" + ] + }, + { + "count": 34, + "args": 1, + "types": [ + "expr" + ] + }, + { + "count": 8, + "args": 1, + "types": [ + "subscript" + ] + } + ] + }, + "test": { + "occurrences": 1002, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 994, + "args": 2, + "types": [ + "lit", + "other" + ] + }, + { + "count": 8, + "args": 2, + "types": [ + "template", + "other" + ] + } + ] + }, + "base": { + "occurrences": 4, + "arg_count": { + "min": 0, + "max": 1, + "common": 0 + }, + "patterns": [ + { + "count": 2, + "args": 0, + "types": [] + }, + { + "count": 2, + "args": 1, + "types": [ + "lit" + ] + } + ] + }, + "Error": { + "occurrences": 69, + "arg_count": { + "min": 0, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 36, + "args": 1, + "types": [ + "lit" + ] + }, + { + "count": 24, + "args": 0, + "types": [] + }, + { + "count": 6, + "args": 1, + "types": [ + "template" + ] + }, + { + "count": 3, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "Date": { + "occurrences": 78, + "arg_count": { + "min": 0, + "max": 3, + "common": 1 + }, + "patterns": [ + { + "count": 42, + "args": 1, + "types": [ + "lit" + ] + }, + { + "count": 24, + "args": 0, + "types": [] + }, + { + "count": 9, + "args": 3, + "types": [ + "lit", + "lit", + "lit" + ] + }, + { + "count": 3, + "args": 1, + "types": [ + "call" + ] + } + ] + }, + "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" + ] + } + ] + }, + "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" + ] + } + ] + }, + "String": { + "occurrences": 15, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 12, + "args": 1, + "types": [ + "var" + ] + }, + { + "count": 3, + "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" + ] + } + ] + }, + "predicate": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "lit" + ] + } + ] + }, + "callback": { + "occurrences": 4, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 4, + "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" + ] + } + ] + }, + "Symbol": { + "occurrences": 24, + "arg_count": { + "min": 0, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 18, + "args": 1, + "types": [ + "lit" + ] + }, + { + "count": 6, + "args": 0, + "types": [] + } + ] + }, + "validatedFunction": { + "occurrences": 4, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 4, + "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": [] + } + ] + }, + "makeJwt": { + "occurrences": 10, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 10, + "args": 2, + "types": [ + "other", + "other" + ] + } + ] + }, + "checkErrors": { + "occurrences": 32, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 28, + "args": 2, + "types": [ + "call", + "lit" + ] + }, + { + "count": 4, + "args": 2, + "types": [ + "call", + "other" + ] + } + ] + }, + "stripOuter": { + "occurrences": 2, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 2, + "args": 2, + "types": [ + "call", + "other" + ] + } + ] + }, + "Mocker": { + "occurrences": 4, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 4, + "args": 0, + "types": [] + } + ] + }, + "Array": { + "occurrences": 6, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 6, + "args": 1, + "types": [ + "lit" + ] + } + ] + }, + "isAborted": { + "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" + ] + } + ] + }, + "isValid": { + "occurrences": 6, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 6, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "checker": { + "occurrences": 8, + "arg_count": { + "min": 0, + "max": 1, + "common": 0 + }, + "patterns": [ + { + "count": 4, + "args": 0, + "types": [] + }, + { + "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": [] + } + ] + }, + "ZodError": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "getRandomInt": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "invalidFuncInstance": { + "occurrences": 4, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 4, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "func": { + "occurrences": 6, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 6, + "args": 1, + "types": [ + "lit" + ] + } + ] + }, + "parsed": { + "occurrences": 6, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 4, + "args": 1, + "types": [ + "lit" + ] + }, + { + "count": 2, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "myFunc": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "lit" + ] + } + ] + }, + "validFunc2Instance": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "other" + ] + } + ] + } + } + }, + { + "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" + ] + } + ] + }, + "Error": { + "occurrences": 45, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 24, + "args": 1, + "types": [ + "lit" + ] + }, + { + "count": 21, + "args": 1, + "types": [ + "template" + ] + } + ] + }, + "Set": { + "occurrences": 18, + "arg_count": { + "min": 0, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 6, + "args": 0, + "types": [] + }, + { + "count": 6, + "args": 1, + "types": [ + "other" + ] + }, + { + "count": 3, + "args": 1, + "types": [ + "expr" + ] + }, + { + "count": 3, + "args": 1, + "types": [ + "call" + ] + } + ] + }, + "convertBaseSchema": { + "occurrences": 4, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 4, + "args": 2, + "types": [ + "var", + "var" + ] + } + ] + }, + "resolveRef": { + "occurrences": 2, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 2, + "args": 2, + "types": [ + "var", + "var" + ] + } + ] + }, + "RegExp": { + "occurrences": 6, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "other" + ] + }, + { + "count": 3, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "Map": { + "occurrences": 3, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 3, + "args": 0, + "types": [] + } + ] + }, + "detectVersion": { + "occurrences": 2, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 2, + "args": 2, + "types": [ + "var", + "other" + ] + } + ] + }, + "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" + ] + } + ] + }, + "never": { + "occurrences": 4, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 4, + "args": 0, + "types": [] + } + ] + }, + "ZodRecord": { + "occurrences": 8, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 8, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "ZodOptional": { + "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" + ] + } + ] + }, + "optional": { + "occurrences": 6, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 4, + "args": 1, + "types": [ + "call" + ] + }, + { + "count": 2, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "string": { + "occurrences": 6, + "arg_count": { + "min": 0, + "max": 1, + "common": 0 + }, + "patterns": [ + { + "count": 4, + "args": 0, + "types": [] + }, + { + "count": 2, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "ZodPromise": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "nonoptional": { + "occurrences": 2, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 2, + "args": 2, + "types": [ + "other", + "var" + ] + } + ] + }, + "ZodExactOptional": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "record": { + "occurrences": 2, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 2, + "args": 2, + "types": [ + "call", + "var" + ] + } + ] + }, + "ZodTuple": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "int": { + "occurrences": 4, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 4, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "createStandardJSONSchemaMethod": { + "occurrences": 4, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 4, + "args": 2, + "types": [ + "var", + "lit" + ] + } + ] + }, + "BigInt": { + "occurrences": 8, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 8, + "args": 1, + "types": [ + "lit" + ] + } + ] + }, + "ZodDefault": { + "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": [ + "var" + ] + }, + { + "count": 2, + "args": 1, + "types": [ + "call" + ] + }, + { + "count": 2, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "unknown": { + "occurrences": 10, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 10, + "args": 0, + "types": [] + } + ] + }, + "transform": { + "occurrences": 4, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "var" + ] + }, + { + "count": 2, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "ZodEnum": { + "occurrences": 8, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 8, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "pipe": { + "occurrences": 4, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 2, + "args": 2, + "types": [ + "other", + "call" + ] + }, + { + "count": 2, + "args": 2, + "types": [ + "other", + "var" + ] + } + ] + }, + "_default": { + "occurrences": 2, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 2, + "args": 2, + "types": [ + "other", + "var" + ] + } + ] + }, + "_installLazyMethods": { + "occurrences": 10, + "arg_count": { + "min": 3, + "max": 3, + "common": 3 + }, + "patterns": [ + { + "count": 10, + "args": 3, + "types": [ + "var", + "lit", + "other" + ] + } + ] + }, + "WeakMap": { + "occurrences": 3, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 3, + "args": 0, + "types": [] + } + ] + }, + "ZodReadonly": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "union": { + "occurrences": 4, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 4, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "Date": { + "occurrences": 6, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 6, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "ZodDiscriminatedUnion": { + "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" + ] + } + ] + }, + "ZodSet": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "createToJSONSchemaMethod": { + "occurrences": 2, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 2, + "args": 2, + "types": [ + "var", + "other" + ] + } + ] + }, + "tuple": { + "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" + ] + } + ] + }, + "_enum": { + "occurrences": 4, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 4, + "args": 1, + "types": [ + "call" + ] + } + ] + }, + "ZodLiteral": { + "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" + ] + } + ] + }, + "ZodIntersection": { + "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" + ] + } + ] + }, + "ZodPreprocess": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "readonly": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "exactOptional": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "ZodLazy": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "ZodSuccess": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "ZodCustom": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "ZodPipe": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "prefault": { + "occurrences": 2, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 2, + "args": 2, + "types": [ + "other", + "var" + ] + } + ] + }, + "ZodCatch": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "fn": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "ZodTemplateLiteral": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "_catch": { + "occurrences": 2, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 2, + "args": 2, + "types": [ + "other", + "var" + ] + } + ] + }, + "ZodTransform": { + "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" + ] + } + ] + }, + "_null": { + "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" + ] + } + ] + }, + "boolean": { + "occurrences": 2, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 2, + "args": 0, + "types": [] + } + ] + }, + "ZodUnion": { + "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" + ] + } + ] + }, + "ZodNullable": { + "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": [] + } + ] + }, + "refine": { + "occurrences": 2, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 2, + "args": 2, + "types": [ + "var", + "var" + ] + } + ] + }, + "ZodNonOptional": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "other" + ] + } + ] + } + } + }, + { + "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": { + "test": { + "occurrences": 2178, + "arg_count": { + "min": 2, + "max": 3, + "common": 2 + }, + "patterns": [ + { + "count": 2174, + "args": 2, + "types": [ + "lit", + "other" + ] + }, + { + "count": 2, + "args": 3, + "types": [ + "lit", + "other", + "lit" + ] + }, + { + "count": 2, + "args": 2, + "types": [ + "template", + "other" + ] + } + ] + }, + "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" + ] + } + ] + }, + "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" + ] + } + ] + }, + "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" + ] + } + ] + }, + "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" + ] + } + ] + }, + "Error": { + "occurrences": 24, + "arg_count": { + "min": 0, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 9, + "args": 1, + "types": [ + "lit" + ] + }, + { + "count": 9, + "args": 0, + "types": [] + }, + { + "count": 6, + "args": 1, + "types": [ + "template" + ] + } + ] + }, + "checkSync": { + "occurrences": 2, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 2, + "args": 2, + "types": [ + "other", + "lit" + ] + } + ] + }, + "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" + ] + } + ] + }, + "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" + ] + } + ] + }, + "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" + ] + } + ] + }, + "Symbol": { + "occurrences": 39, + "arg_count": { + "min": 0, + "max": 1, + "common": 0 + }, + "patterns": [ + { + "count": 24, + "args": 0, + "types": [] + }, + { + "count": 15, + "args": 1, + "types": [ + "lit" + ] + } + ] + }, + "Map": { + "occurrences": 120, + "arg_count": { + "min": 0, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 108, + "args": 1, + "types": [ + "other" + ] + }, + { + "count": 12, + "args": 0, + "types": [] + } + ] + }, + "pipe": { + "occurrences": 2, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 2, + "args": 2, + "types": [ + "call", + "call" + ] + } + ] + }, + "object": { + "occurrences": 4, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 4, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "json": { + "occurrences": 2, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 2, + "args": 0, + "types": [] + } + ] + }, + "transform": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "nullable": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "String": { + "occurrences": 63, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 51, + "args": 1, + "types": [ + "var" + ] + }, + { + "count": 12, + "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" + ] + } + ] + }, + "omit": { + "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": [ + "other", + "lit" + ] + } + ] + }, + "arr": { + "occurrences": 2, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 2, + "args": 0, + "types": [] + } + ] + }, + "opt": { + "occurrences": 4, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 4, + "args": 0, + "types": [] + } + ] + }, + "max": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "lit" + ] + } + ] + }, + "partial": { + "occurrences": 2, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 2, + "args": 0, + "types": [] + } + ] + }, + "nul": { + "occurrences": 2, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 2, + "args": 0, + "types": [] + } + ] + }, + "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": [] + } + ] + }, + "extend": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "detached": { + "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" + ] + } + ] + }, + "safeParse": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "lit" + ] + } + ] + }, + "min": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "lit" + ] + } + ] + }, + "validFunc3Instance": { + "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": [] + } + ] + }, + "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" + ] + } + ] + }, + "checker": { + "occurrences": 2, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 2, + "args": 0, + "types": [] + } + ] + }, + "typeGuard": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "validFunc2Instance": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "it": { + "occurrences": 6, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 6, + "args": 2, + "types": [ + "lit", + "other" + ] + } + ] + }, + "A": { + "occurrences": 2, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 2, + "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" + ] + } + ] + }, + "branded": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "lit" + ] + } + ] + }, + "Promise": { + "occurrences": 9, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 9, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "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" + ] + } + ] + }, + "base": { + "occurrences": 4, + "arg_count": { + "min": 0, + "max": 1, + "common": 0 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "lit" + ] + }, + { + "count": 2, + "args": 0, + "types": [] + } + ] + }, + "resolve": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "lit" + ] + } + ] + }, + "createSortItemSchema": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "inspect": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "validateOpenAPI30Schema": { + "occurrences": 14, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 14, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "Validator": { + "occurrences": 2, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 2, + "args": 0, + "types": [] + } + ] + }, + "afterEach": { + "occurrences": 4, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 4, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "beforeEach": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "Subtest": { + "occurrences": 4, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 4, + "args": 0, + "types": [] + } + ] + }, + "Test": { + "occurrences": 4, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 4, + "args": 0, + "types": [] + } + ] + }, + "Bar": { + "occurrences": 4, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 4, + "args": 1, + "types": [ + "lit" + ] + } + ] + }, + "randomBytes": { + "occurrences": 4, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 4, + "args": 1, + "types": [ + "expr" + ] + } + ] + }, + "makeJwt": { + "occurrences": 10, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 10, + "args": 2, + "types": [ + "other", + "other" + ] + } + ] + }, + "RegExp": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "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" + ] + } + ] + }, + "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" + ] + } + ] + }, + "encodeURIComponent": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "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" + ] + } + ] + }, + "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": [] + } + ] + }, + "uriComponent": { + "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": [] + } + ] + }, + "stringToURL": { + "occurrences": 4, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 4, + "args": 0, + "types": [] + } + ] + }, + "stringToBoolean": { + "occurrences": 4, + "arg_count": { + "min": 0, + "max": 1, + "common": 0 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "other" + ] + }, + { + "count": 2, + "args": 0, + "types": [] + } + ] + }, + "epochMillisToDate": { + "occurrences": 2, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 2, + "args": 0, + "types": [] + } + ] + }, + "TextDecoder": { + "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": [] + } + ] + }, + "epochSecondsToDate": { + "occurrences": 2, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 2, + "args": 0, + "types": [] + } + ] + }, + "base64": { + "occurrences": 4, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 4, + "args": 0, + "types": [] + } + ] + }, + "stringToBigInt": { + "occurrences": 2, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 2, + "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": [] + } + ] + }, + "base64urlToBytes": { + "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" + ] + } + ] + }, + "TextEncoder": { + "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": [] + } + ] + }, + "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" + ] + } + ] + }, + "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" + ] + } + ] + }, + "makeDigests": { + "occurrences": 2, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 2, + "args": 2, + "types": [ + "var", + "var" + ] + } + ] + }, + "createHash": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "toB64Url": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "nest": { + "occurrences": 4, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 4, + "args": 1, + "types": [ + "call" + ] + } + ] + }, + "stripOuter": { + "occurrences": 2, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 2, + "args": 2, + "types": [ + "call", + "other" + ] + } + ] + }, + "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" + ] + } + ] + }, + "doStuff": { + "occurrences": 6, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 4, + "args": 1, + "types": [ + "call" + ] + }, + { + "count": 2, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "validatedFunction": { + "occurrences": 4, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 4, + "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": { + "init": { + "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": [] + } + ] + }, + "fn": { + "occurrences": 10, + "arg_count": { + "min": 0, + "max": 3, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 0, + "types": [] + }, + { + "count": 2, + "args": 2, + "types": [ + "other", + "other" + ] + }, + { + "count": 2, + "args": 1, + "types": [ + "var" + ] + }, + { + "count": 2, + "args": 3, + "types": [ + "var", + "var", + "var" + ] + }, + { + "count": 2, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "Symbol": { + "occurrences": 12, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 12, + "args": 1, + "types": [ + "lit" + ] + } + ] + }, + "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" + ] + } + ] + }, + "initializer": { + "occurrences": 2, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 2, + "args": 2, + "types": [ + "var", + "var" + ] + } + ] + }, + "new": { + "occurrences": 254, + "arg_count": { + "min": 0, + "max": 2, + "common": 1 + }, + "patterns": [ + { + "count": 126, + "args": 1, + "types": [ + "other" + ] + }, + { + "count": 39, + "args": 1, + "types": [ + "lit" + ] + }, + { + "count": 33, + "args": 1, + "types": [ + "template" + ] + }, + { + "count": 31, + "args": 0, + "types": [] + }, + { + "count": 9, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "uuid": { + "occurrences": 6, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 6, + "args": 1, + "types": [ + "lit" + ] + } + ] + }, + "timeSource": { + "occurrences": 4, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "other" + ] + }, + { + "count": 2, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "fixedBase64url": { + "occurrences": 10, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 10, + "args": 1, + "types": [ + "lit" + ] + } + ] + }, + "fixedBase64": { + "occurrences": 10, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 10, + "args": 2, + "types": [ + "lit", + "lit" + ] + } + ] + }, + "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" + ] + } + ] + }, + "Class": { + "occurrences": 168, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 166, + "args": 1, + "types": [ + "other" + ] + }, + { + "count": 2, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "_lte": { + "occurrences": 2, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 2, + "args": 2, + "types": [ + "lit", + "var" + ] + } + ] + }, + "_Boolean": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "_overwrite": { + "occurrences": 10, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 10, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "_String": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "_Codec": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "_gt": { + "occurrences": 2, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 2, + "args": 2, + "types": [ + "lit", + "var" + ] + } + ] + }, + "_gte": { + "occurrences": 2, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 2, + "args": 2, + "types": [ + "lit", + "var" + ] + } + ] + }, + "_check": { + "occurrences": 2, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 2, + "args": 2, + "types": [ + "other", + "var" + ] + } + ] + }, + "_lt": { + "occurrences": 2, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 2, + "args": 2, + "types": [ + "lit", + "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" + ] + } + ] + }, + "createStandardJSONSchemaMethod": { + "occurrences": 4, + "arg_count": { + "min": 3, + "max": 3, + "common": 3 + }, + "patterns": [ + { + "count": 4, + "args": 3, + "types": [ + "var", + "lit", + "other" + ] + } + ] + }, + "Error": { + "occurrences": 174, + "arg_count": { + "min": 0, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 111, + "args": 1, + "types": [ + "lit" + ] + }, + { + "count": 45, + "args": 1, + "types": [ + "template" + ] + }, + { + "count": 12, + "args": 0, + "types": [] + }, + { + "count": 6, + "args": 1, + "types": [ + "expr" + ] + } + ] + }, + "uriGenerator": { + "occurrences": 4, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "var" + ] + }, + { + "count": 2, + "args": 1, + "types": [ + "lit" + ] + } + ] + }, + "extractToDef": { + "occurrences": 10, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 10, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "initializeContext": { + "occurrences": 10, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 10, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "flattenRef": { + "occurrences": 6, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 4, + "args": 1, + "types": [ + "var" + ] + }, + { + "count": 2, + "args": 1, + "types": [ + "subscript" + ] + } + ] + }, + "makeURI": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "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": 2, + "types": [ + "var", + "var" + ] + }, + { + "count": 4, + "args": 3, + "types": [ + "var", + "other", + "other" + ] + } + ] + }, + "Map": { + "occurrences": 24, + "arg_count": { + "min": 0, + "max": 1, + "common": 0 + }, + "patterns": [ + { + "count": 21, + "args": 0, + "types": [] + }, + { + "count": 3, + "args": 1, + "types": [ + "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" + ] + } + ] + }, + "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" + ] + } + ] + }, + "processor": { + "occurrences": 2, + "arg_count": { + "min": 4, + "max": 4, + "common": 4 + }, + "patterns": [ + { + "count": 2, + "args": 4, + "types": [ + "var", + "var", + "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" + ] + } + ] + }, + "assignProp": { + "occurrences": 14, + "arg_count": { + "min": 3, + "max": 3, + "common": 3 + }, + "patterns": [ + { + "count": 14, + "args": 3, + "types": [ + "other", + "lit", + "var" + ] + } + ] + }, + "uint8ArrayToBase64": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "clone": { + "occurrences": 14, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 14, + "args": 2, + "types": [ + "var", + "var" + ] + } + ] + }, + "getter": { + "occurrences": 18, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 18, + "args": 0, + "types": [] + } + ] + }, + "isPlainObject": { + "occurrences": 6, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 6, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "Uint8Array": { + "occurrences": 6, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "expr" + ] + }, + { + "count": 3, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "unwrapMessage": { + "occurrences": 8, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 8, + "args": 1, + "types": [ + "call" + ] + } + ] + }, + "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" + ] + } + ] + }, + "stringifyPrimitive": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "Proxy": { + "occurrences": 2, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 2, + "args": 2, + "types": [ + "other", + "other" + ] + } + ] + }, + "BigInt": { + "occurrences": 12, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 10, + "args": 1, + "types": [ + "lit" + ] + }, + { + "count": 2, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "atob": { + "occurrences": 6, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 6, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "isObject": { + "occurrences": 8, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 8, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "btoa": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "cached": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "base64ToUint8Array": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "expr" + ] + } + ] + }, + "_safeEncodeAsync": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "_safeParse": { + "occurrences": 6, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 4, + "args": 1, + "types": [ + "var" + ] + }, + { + "count": 2, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "_Err": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "call" + ] + } + ] + }, + "_safeParseAsync": { + "occurrences": 6, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 4, + "args": 1, + "types": [ + "var" + ] + }, + { + "count": 2, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "_parse": { + "occurrences": 6, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 4, + "args": 1, + "types": [ + "var" + ] + }, + { + "count": 2, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "_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" + ] + } + ] + }, + "_parseAsync": { + "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" + ] + } + ] + }, + "_encode": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "_decode": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "_decodeAsync": { + "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" + ] + } + ] + }, + "handleCheckPropertyResult": { + "occurrences": 4, + "arg_count": { + "min": 3, + "max": 3, + "common": 3 + }, + "patterns": [ + { + "count": 4, + "args": 3, + "types": [ + "var", + "var", + "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": [] + } + ] + }, + "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" + ] + } + ] + }, + "toDotPath": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "$constructor": { + "occurrences": 4, + "arg_count": { + "min": 2, + "max": 3, + "common": 2 + }, + "patterns": [ + { + "count": 2, + "args": 2, + "types": [ + "lit", + "var" + ] + }, + { + "count": 2, + "args": 3, + "types": [ + "lit", + "var", + "other" + ] + } + ] + }, + "String": { + "occurrences": 12, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 9, + "args": 1, + "types": [ + "var" + ] + }, + { + "count": 3, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "parse": { + "occurrences": 4, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 4, + "args": 2, + "types": [ + "other", + "var" + ] + } + ] + }, + "handleCodecAResult": { + "occurrences": 8, + "arg_count": { + "min": 3, + "max": 3, + "common": 3 + }, + "patterns": [ + { + "count": 8, + "args": 3, + "types": [ + "var", + "var", + "var" + ] + } + ] + }, + "isValidBase64URL": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "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" + ] + } + ] + }, + "parseAsync": { + "occurrences": 4, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 4, + "args": 2, + "types": [ + "other", + "var" + ] + } + ] + }, + "Date": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "handleExclusiveUnionResults": { + "occurrences": 4, + "arg_count": { + "min": 4, + "max": 4, + "common": 4 + }, + "patterns": [ + { + "count": 4, + "args": 4, + "types": [ + "other", + "var", + "var", + "var" + ] + } + ] + }, + "handleOptionalResult": { + "occurrences": 4, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 4, + "args": 2, + "types": [ + "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" + ] + } + ] + }, + "handleCodecTxResult": { + "occurrences": 8, + "arg_count": { + "min": 4, + "max": 4, + "common": 4 + }, + "patterns": [ + { + "count": 8, + "args": 4, + "types": [ + "var", + "var", + "other", + "var" + ] + } + ] + }, + "handleNonOptionalResult": { + "occurrences": 4, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 4, + "args": 2, + "types": [ + "var", + "var" + ] + } + ] + }, + "runChecks": { + "occurrences": 6, + "arg_count": { + "min": 3, + "max": 3, + "common": 3 + }, + "patterns": [ + { + "count": 6, + "args": 3, + "types": [ + "var", + "var", + "var" + ] + } + ] + }, + "Number": { + "occurrences": 12, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 9, + "args": 1, + "types": [ + "var" + ] + }, + { + "count": 3, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "handleCatchall": { + "occurrences": 4, + "arg_count": { + "min": 6, + "max": 6, + "common": 6 + }, + "patterns": [ + { + "count": 2, + "args": 6, + "types": [ + "other", + "var", + "var", + "var", + "var", + "var" + ] + }, + { + "count": 2, + "args": 6, + "types": [ + "var", + "var", + "var", + "var", + "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" + ] + } + ] + }, + "handleReadonlyResult": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "handlePipeResult": { + "occurrences": 8, + "arg_count": { + "min": 3, + "max": 3, + "common": 3 + }, + "patterns": [ + { + "count": 8, + "args": 3, + "types": [ + "var", + "other", + "var" + ] + } + ] + }, + "isValidBase64": { + "occurrences": 4, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "var" + ] + }, + { + "count": 2, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "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" + ] + } + ] + }, + "handleDefaultResult": { + "occurrences": 4, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 4, + "args": 2, + "types": [ + "var", + "var" + ] + } + ] + }, + "$ZodTuple": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "handleSetResult": { + "occurrences": 4, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 4, + "args": 2, + "types": [ + "var", + "var" + ] + } + ] + }, + "handleArrayResult": { + "occurrences": 4, + "arg_count": { + "min": 3, + "max": 3, + "common": 3 + }, + "patterns": [ + { + "count": 4, + "args": 3, + "types": [ + "var", + "var", + "var" + ] + } + ] + }, + "handleRefineResult": { + "occurrences": 4, + "arg_count": { + "min": 4, + "max": 4, + "common": 4 + }, + "patterns": [ + { + "count": 4, + "args": 4, + "types": [ + "var", + "var", + "var", + "var" + ] + } + ] + }, + "handleCanaryResult": { + "occurrences": 4, + "arg_count": { + "min": 3, + "max": 3, + "common": 3 + }, + "patterns": [ + { + "count": 4, + "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" + ] + } + ] + }, + "Boolean": { + "occurrences": 3, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "isValidJWT": { + "occurrences": 2, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 2, + "args": 2, + "types": [ + "other", + "other" + ] + } + ] + }, + "first": { + "occurrences": 4, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 4, + "args": 2, + "types": [ + "var", + "var" + ] + } + ] + }, + "safeParseAsync": { + "occurrences": 2, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 2, + "args": 2, + "types": [ + "var", + "var" + ] + } + ] + }, + "parseStr": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "handleTupleResult": { + "occurrences": 4, + "arg_count": { + "min": 3, + "max": 3, + "common": 3 + }, + "patterns": [ + { + "count": 4, + "args": 3, + "types": [ + "var", + "var", + "var" + ] + } + ] + }, + "handleMapResult": { + "occurrences": 4, + "arg_count": { + "min": 7, + "max": 7, + "common": 7 + }, + "patterns": [ + { + "count": 2, + "args": 7, + "types": [ + "other", + "other", + "var", + "var", + "var", + "var", + "var" + ] + }, + { + "count": 2, + "args": 7, + "types": [ + "var", + "var", + "var", + "var", + "var", + "var", + "var" + ] + } + ] + }, + "_super": { + "occurrences": 2, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 2, + "args": 2, + "types": [ + "var", + "var" + ] + } + ] + }, + "safeParse": { + "occurrences": 2, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 2, + "args": 2, + "types": [ + "var", + "var" + ] + } + ] + }, + "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" + ] + } + ] + }, + "Array": { + "occurrences": 6, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 6, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "Doc": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "superParse": { + "occurrences": 2, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 2, + "args": 2, + "types": [ + "var", + "var" + ] + } + ] + }, + "isSimpleIntersection": { + "occurrences": 4, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 4, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "getEnumValues": { + "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": { + "test": { + "occurrences": 26, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 26, + "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": [ + "lit" + ] + }, + { + "count": 2, + "args": 1, + "types": [ + "expr" + ] + } + ] + }, + "expectTypeOf": { + "occurrences": 2, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 2, + "args": 0, + "types": [] + } + ] + }, + "it": { + "occurrences": 10, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 10, + "args": 2, + "types": [ + "lit", + "other" + ] + } + ] + }, + "describe": { + "occurrences": 2, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 2, + "args": 2, + "types": [ + "lit", + "other" + ] + } + ] + } + } + }, + { + "label": "packages/zod/src/v4/core/tests/locales", + "method_count": 85, + "grammar": "root ::= (\"expect\" | \"result\" | \"safeParse\" | \"schema\" | \"toBe\")+ \"z\"?", + "grammar_clean": "root ::= (\"expect\" | \"result\" | \"safeParse\" | \"schema\" | \"toBe\")+ \"z\"?", + "noise_ratio": 0.14, + "symbols_before": 7, + "symbols_after": 6, + "algorithm": "CRX", + "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": { + "test": { + "occurrences": 116, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 116, + "args": 2, + "types": [ + "lit", + "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" + ] + } + ] + }, + "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" + ] + } + ] + }, + "Set": { + "occurrences": 24, + "arg_count": { + "min": 0, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 18, + "args": 1, + "types": [ + "other" + ] + }, + { + "count": 6, + "args": 0, + "types": [] + } + ] + }, + "he": { + "occurrences": 2, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 2, + "args": 0, + "types": [] + } + ] + }, + "beforeEach": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "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" + ] + } + ] + }, + "Error": { + "occurrences": 6, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 6, + "args": 0, + "types": [] + } + ] + }, + "Map": { + "occurrences": 15, + "arg_count": { + "min": 0, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 9, + "args": 1, + "types": [ + "other" + ] + }, + { + "count": 6, + "args": 0, + "types": [] + } + ] + }, + "Date": { + "occurrences": 12, + "arg_count": { + "min": 0, + "max": 1, + "common": 0 + }, + "patterns": [ + { + "count": 6, + "args": 0, + "types": [] + }, + { + "count": 6, + "args": 1, + "types": [ + "lit" + ] + } + ] + }, + "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" + ] + } + ] + }, + "localeError": { + "occurrences": 24, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 24, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "BigInt": { + "occurrences": 12, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 12, + "args": 1, + "types": [ + "lit" + ] + } + ] + }, + "ru": { + "occurrences": 2, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 2, + "args": 0, + "types": [] + } + ] + }, + "fr": { + "occurrences": 6, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 6, + "args": 0, + "types": [] + } + ] + }, + "es": { + "occurrences": 10, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 10, + "args": 0, + "types": [] + } + ] + }, + "be": { + "occurrences": 2, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 2, + "args": 0, + "types": [] + } + ] + }, + "el": { + "occurrences": 10, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 10, + "args": 0, + "types": [] + } + ] + }, + "hr": { + "occurrences": 8, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 8, + "args": 0, + "types": [] + } + ] + }, + "nl": { + "occurrences": 2, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 2, + "args": 0, + "types": [] + } + ] + } + } + }, + { + "label": "packages/zod/src/v4/locales", + "method_count": 214, + "grammar": "root ::= \"switch\"? (\"$ZodStringFormatIssues\" | \":\" | \"?\" | \"FormatDictionary\" | \"TypeDictionary\" | \"_issue\" | \"adj\" | \"case\" | \"default\" | \"errors\" | \"expected\" | \"getSizing\" | \"issue\" | \"joinValues\" | \"parsedType\" | \"received\" | \"receivedType\" | \"sizing\" | \"stringifyPrimitive\" | \"test\" | \"util\")+", + "grammar_clean": "root ::= \"switch\"? (\"$ZodStringFormatIssues\" | \":\" | \"?\" | \"FormatDictionary\" | \"TypeDictionary\" | \"_issue\" | \"adj\" | \"case\" | \"default\" | \"errors\" | \"expected\" | \"getSizing\" | \"issue\" | \"joinValues\" | \"parsedType\" | \"received\" | \"receivedType\" | \"sizing\" | \"stringifyPrimitive\" | \"test\" | \"util\")+", + "noise_ratio": 0.15, + "symbols_before": 26, + "symbols_after": 22, + "algorithm": "CRX", + "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": { + "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" + ] + } + ] + }, + "error": { + "occurrences": 100, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 100, + "args": 0, + "types": [] + } + ] + }, + "km": { + "occurrences": 2, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 2, + "args": 0, + "types": [] + } + ] + }, + "getRussianPlural": { + "occurrences": 4, + "arg_count": { + "min": 4, + "max": 4, + "common": 4 + }, + "patterns": [ + { + "count": 4, + "args": 4, + "types": [ + "var", + "other", + "other", + "other" + ] + } + ] + }, + "Number": { + "occurrences": 24, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 24, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "capitalizeFirstCharacter": { + "occurrences": 10, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 10, + "args": 1, + "types": [ + "expr" + ] + } + ] + }, + "getUnitTypeFromNumber": { + "occurrences": 4, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 4, + "args": 1, + "types": [ + "call" + ] + } + ] + }, + "getArmenianPlural": { + "occurrences": 4, + "arg_count": { + "min": 3, + "max": 3, + "common": 3 + }, + "patterns": [ + { + "count": 4, + "args": 3, + "types": [ + "var", + "other", + "other" + ] + } + ] + }, + "withDefiniteArticle": { + "occurrences": 12, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 8, + "args": 1, + "types": [ + "other" + ] + }, + { + "count": 4, + "args": 1, + "types": [ + "expr" + ] + } + ] + }, + "uk": { + "occurrences": 2, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 2, + "args": 0, + "types": [] + } + ] + }, + "getBelarusianPlural": { + "occurrences": 4, + "arg_count": { + "min": 4, + "max": 4, + "common": 4 + }, + "patterns": [ + { + "count": 4, + "args": 4, + "types": [ + "var", + "other", + "other", + "other" + ] + } + ] + }, + "withDefinite": { + "occurrences": 6, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 6, + "args": 1, + "types": [ + "expr" + ] + } + ] + }, + "verbFor": { + "occurrences": 4, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 4, + "args": 1, + "types": [ + "expr" + ] + } + ] + }, + "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" + ] + } + ] + } + } + }, + { + "label": "packages/zod/src/v4/mini", + "method_count": 199, + "grammar": "root ::= \"core\"? \"init\"? \"inst\"? \"def\"?", + "grammar_clean": "root ::= \"core\"? \"init\"? \"inst\"? \"def\"?", + "noise_ratio": 0.2, + "symbols_before": 5, + "symbols_after": 4, + "algorithm": "CRX", + "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": { + "ZodMiniRecord": { + "occurrences": 8, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 8, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "ZodMiniLazy": { + "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" + ] + } + ] + }, + "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" + ] + } + ] + }, + "string": { + "occurrences": 6, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 6, + "args": 0, + "types": [] + } + ] + }, + "Error": { + "occurrences": 6, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 3, + "args": 1, + "types": [ + "lit" + ] + }, + { + "count": 3, + "args": 1, + "types": [ + "template" + ] + } + ] + }, + "ZodMiniMap": { + "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": [] + } + ] + }, + "ZodMiniSet": { + "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" + ] + } + ] + }, + "ZodMiniDiscriminatedUnion": { + "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" + ] + } + ] + }, + "ZodMiniLiteral": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "ZodMiniArray": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "ZodMiniExactOptional": { + "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" + ] + } + ] + }, + "ZodMiniNullable": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "ZodMiniCodec": { + "occurrences": 4, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 4, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "ZodMiniTemplateLiteral": { + "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": [] + } + ] + }, + "_lazy": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "ZodMiniTransform": { + "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" + ] + } + ] + }, + "boolean": { + "occurrences": 2, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 2, + "args": 0, + "types": [] + } + ] + }, + "fn": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "ZodMiniOptional": { + "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": [] + } + ] + }, + "ZodMiniFunction": { + "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" + ] + } + ] + }, + "ZodMiniObject": { + "occurrences": 6, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 4, + "args": 1, + "types": [ + "other" + ] + }, + { + "count": 2, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "array": { + "occurrences": 4, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "var" + ] + }, + { + "count": 2, + "args": 1, + "types": [ + "call" + ] + } + ] + }, + "ZodMiniSuccess": { + "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" + ] + } + ] + }, + "ZodMiniEnum": { + "occurrences": 4, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 4, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "tuple": { + "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" + ] + } + ] + }, + "ZodMiniXor": { + "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" + ] + } + ] + }, + "nullable": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "ZodMiniIntersection": { + "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": [] + } + ] + }, + "record": { + "occurrences": 2, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 2, + "args": 2, + "types": [ + "call", + "var" + ] + } + ] + }, + "ZodMiniPromise": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "ZodMiniCatch": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "new": { + "occurrences": 38, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 35, + "args": 1, + "types": [ + "other" + ] + }, + { + "count": 1, + "args": 1, + "types": [ + "lit" + ] + }, + { + "count": 1, + "args": 1, + "types": [ + "var" + ] + }, + { + "count": 1, + "args": 1, + "types": [ + "template" + ] + } + ] + } + } + }, + { + "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": { + "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" + ] + } + ] + }, + "test": { + "occurrences": 340, + "arg_count": { + "min": 2, + "max": 2, + "common": 2 + }, + "patterns": [ + { + "count": 340, + "args": 2, + "types": [ + "lit", + "other" + ] + } + ] + }, + "BigInt": { + "occurrences": 32, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 32, + "args": 1, + "types": [ + "lit" + ] + } + ] + }, + "Date": { + "occurrences": 54, + "arg_count": { + "min": 0, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 21, + "args": 0, + "types": [] + }, + { + "count": 18, + "args": 1, + "types": [ + "var" + ] + }, + { + "count": 15, + "args": 1, + "types": [ + "lit" + ] + } + ] + }, + "expectTypeOf": { + "occurrences": 186, + "arg_count": { + "min": 0, + "max": 1, + "common": 0 + }, + "patterns": [ + { + "count": 158, + "args": 0, + "types": [] + }, + { + "count": 12, + "args": 1, + "types": [ + "other" + ] + }, + { + "count": 8, + "args": 1, + "types": [ + "var" + ] + }, + { + "count": 8, + "args": 1, + "types": [ + "call" + ] + } + ] + }, + "Map": { + "occurrences": 39, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 39, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "Set": { + "occurrences": 18, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 18, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "branded": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "lit" + ] + } + ] + }, + "String": { + "occurrences": 30, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 21, + "args": 1, + "types": [ + "var" + ] + }, + { + "count": 9, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "File": { + "occurrences": 2, + "arg_count": { + "min": 3, + "max": 3, + "common": 3 + }, + "patterns": [ + { + "count": 2, + "args": 3, + "types": [ + "other", + "lit", + "other" + ] + } + ] + }, + "Symbol": { + "occurrences": 18, + "arg_count": { + "min": 0, + "max": 1, + "common": 0 + }, + "patterns": [ + { + "count": 15, + "args": 0, + "types": [] + }, + { + "count": 3, + "args": 1, + "types": [ + "lit" + ] + } + ] + }, + "A": { + "occurrences": 2, + "arg_count": { + "min": 0, + "max": 0, + "common": 0 + }, + "patterns": [ + { + "count": 2, + "args": 0, + "types": [] + } + ] + }, + "new": { + "occurrences": 41, + "arg_count": { + "min": 0, + "max": 3, + "common": 1 + }, + "patterns": [ + { + "count": 21, + "args": 1, + "types": [ + "other" + ] + }, + { + "count": 8, + "args": 0, + "types": [] + }, + { + "count": 6, + "args": 1, + "types": [ + "var" + ] + }, + { + "count": 5, + "args": 1, + "types": [ + "lit" + ] + }, + { + "count": 1, + "args": 3, + "types": [ + "other", + "lit", + "other" + ] + } + ] + }, + "doStuff": { + "occurrences": 6, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 4, + "args": 1, + "types": [ + "call" + ] + }, + { + "count": 2, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "acceptSchema": { + "occurrences": 2, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 1, + "types": [ + "var" + ] + } + ] + }, + "Number": { + "occurrences": 27, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 18, + "args": 1, + "types": [ + "var" + ] + }, + { + "count": 9, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "Promise": { + "occurrences": 6, + "arg_count": { + "min": 1, + "max": 1, + "common": 1 + }, + "patterns": [ + { + "count": 6, + "args": 1, + "types": [ + "other" + ] + } + ] + }, + "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" + ] + } + ] + } + } + }, + { + "label": "scripts", + "method_count": 6, + "grammar": "root ::= \"Object\"?+ \"assign\"? (\":\" | \"?\" | \"Error\" | \"STUB_PACKAGE_JSON_CONTENT\" | \"Set\" | \"any\" | \"args\" | \"catch\" | \"console\" | \"continue\" | \"dir\" | \"dirsWithIndexJs\" | \"entries\" | \"entry\" | \"findIndexJsFiles\" | \"for\" | \"fullPath\" | \"has\" | \"import\" | \"isDirectory\" | \"join\" | \"log\" | \"method\" | \"new\" | \"packageJsonPath\" | \"processedDirs\" | \"push\" | \"readdirSync\" | \"relativeFilePath\" | \"relativePath\" | \"results\" | \"stat\" | \"statSync\" | \"string\" | \"throw\" | \"thrower\" | \"try\" | \"writeFileSync\" | \"zodPackageRoot\")?+ \"original\"?", + "grammar_clean": "root ::= \"Object\"?+ \"assign\"? (\":\" | \"?\" | \"Error\" | \"STUB_PACKAGE_JSON_CONTENT\" | \"Set\" | \"any\" | \"args\" | \"catch\" | \"console\" | \"continue\" | \"dir\" | \"dirsWithIndexJs\" | \"entries\" | \"entry\" | \"findIndexJsFiles\" | \"for\" | \"fullPath\" | \"has\" | \"import\" | \"isDirectory\" | \"join\" | \"log\" | \"method\" | \"new\" | \"packageJsonPath\" | \"processedDirs\" | \"push\" | \"readdirSync\" | \"relativeFilePath\" | \"relativePath\" | \"results\" | \"stat\" | \"statSync\" | \"string\" | \"throw\" | \"thrower\" | \"try\" | \"writeFileSync\" | \"zodPackageRoot\")?+ \"original\"?", + "noise_ratio": 0.12, + "symbols_before": 48, + "symbols_after": 42, + "algorithm": "CRX", + "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" + ] + } + ] + }, + "afterAll": { + "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" + ] + } + ] + }, + "new": { + "occurrences": 2, + "arg_count": { + "min": 0, + "max": 1, + "common": 0 + }, + "patterns": [ + { + "count": 1, + "args": 1, + "types": [ + "template" + ] + }, + { + "count": 1, + "args": 0, + "types": [] + } + ] + }, + "join": { + "occurrences": 8, + "arg_count": { + "min": 2, + "max": 3, + "common": 2 + }, + "patterns": [ + { + "count": 4, + "args": 2, + "types": [ + "var", + "var" + ] + }, + { + "count": 2, + "args": 3, + "types": [ + "var", + "var", + "lit" + ] + }, + { + "count": 2, + "args": 2, + "types": [ + "other", + "lit" + ] + } + ] + }, + "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" + ] + } + ] + }, + "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" + ] + } + ] + }, + "findIndexJsFiles": { + "occurrences": 4, + "arg_count": { + "min": 1, + "max": 2, + "common": 1 + }, + "patterns": [ + { + "count": 2, + "args": 2, + "types": [ + "var", + "var" + ] + }, + { + "count": 2, + "args": 1, + "types": [ + "var" + ] + } + ] + } + } + }, + { + "label": "(other)", + "method_count": 4, + "imports": [], + "arg_patterns": {} + } + ], + "total_methods": 6203 + }, + { + "language": ".js", + "conventions": [], + "total_methods": 0 + } +]