grammar-inference-engine/experiments/results/round20_ast_verify/fastapi_grammars.json
tobjend 1810a695d0 experiments: round 20 AST-migration verification across 3 languages
Run RAGSAK (Kotlin), fastapi (Python), zod (TypeScript) with --slice
package --min-structure 0.5, verbose+timeout, results saved for later.

After _count_concat memoization fix: RAGSAK full run 54.9s -> 6.7s,
no tail stalls. RAGSAK: 121 packages (28 with grammar). fastapi/zod
complete in ~25s (dominated by arg-extraction on 2000+ method test
groups, not grammar explosion). Includes SUMMARY.md with before/after.
2026-07-13 01:13:48 +02:00

33496 lines
814 KiB
JSON

[
{
"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"
]
}
]
},
"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"
]
}
]
},
"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"
]
}
]
},
"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"
]
}
]
},
"shuffle": {
"occurrences": 2,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 2,
"args": 1,
"types": [
"var"
]
}
]
},
"saveBuffer": {
"occurrences": 10,
"arg_count": {
"min": 0,
"max": 0,
"common": 0
},
"patterns": [
{
"count": 10,
"args": 0,
"types": []
}
]
},
"handleSponsorImages": {
"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": []
}
]
},
"createTermynals": {
"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": []
}
]
},
"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"
]
}
]
},
"openLinksInNewTab": {
"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"
]
}
]
},
"setupOpinionsTabs": {
"occurrences": 2,
"arg_count": {
"min": 0,
"max": 0,
"common": 0
},
"patterns": [
{
"count": 2,
"args": 0,
"types": []
}
]
},
"activate": {
"occurrences": 4,
"arg_count": {
"min": 2,
"max": 2,
"common": 2
},
"patterns": [
{
"count": 4,
"args": 2,
"types": [
"var",
"lit"
]
}
]
},
"showRandomAnnouncement": {
"occurrences": 4,
"arg_count": {
"min": 2,
"max": 2,
"common": 2
},
"patterns": [
{
"count": 4,
"args": 2,
"types": [
"lit",
"lit"
]
}
]
},
"main": {
"occurrences": 2,
"arg_count": {
"min": 0,
"max": 0,
"common": 0
},
"patterns": [
{
"count": 2,
"args": 0,
"types": []
}
]
},
"announceRandom": {
"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": []
}
]
}
}
},
{
"label": "(other)",
"method_count": 1,
"imports": [],
"arg_patterns": {}
}
],
"total_methods": 50
},
{
"language": ".py",
"conventions": [
{
"label": "docs_src",
"method_count": 45,
"algorithm": "CRX",
"grammar": "root ::= \"if\"? (\"HTTP_201_CREATED\" | \"JSONResponse\" | \"app\" | \"await\" | \"content\" | \"duration\" | \"else\" | \"end_datetime\" | \"get\" | \"headers\" | \"id\" | \"in\" | \"item\" | \"item_id\" | \"items\" | \"json_compatible_item_data\" | \"jsonable_encoder\" | \"key\" | \"name\" | \"process_after\" | \"repeat_at\" | \"request\" | \"response\" | \"results\" | \"return\" | \"set_cookie\" | \"size\" | \"start_datetime\" | \"start_process\" | \"status\" | \"status_code\" | \"value\")+ \"len\"?+ (\"ads_id\" | \"username\")? \"file\"? \"token\"? \"fileb\"? \"content_type\"?",
"mdl_score": 1000000000000,
"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"
]
}
]
},
"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"
]
}
]
},
"FastAPI": {
"occurrences": 123,
"arg_count": {
"min": 0,
"max": 1,
"common": 0
},
"patterns": [
{
"count": 117,
"args": 0,
"types": []
},
{
"count": 6,
"args": 1,
"types": [
"kwarg"
]
}
]
},
"get_openapi": {
"occurrences": 3,
"arg_count": {
"min": 5,
"max": 5,
"common": 5
},
"patterns": [
{
"count": 3,
"args": 5,
"types": [
"kwarg",
"kwarg",
"kwarg",
"kwarg",
"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"
]
}
]
},
"Cookie": {
"occurrences": 6,
"arg_count": {
"min": 0,
"max": 1,
"common": 0
},
"patterns": [
{
"count": 3,
"args": 0,
"types": []
},
{
"count": 3,
"args": 1,
"types": [
"kwarg"
]
}
]
},
"Form": {
"occurrences": 18,
"arg_count": {
"min": 0,
"max": 0,
"common": 0
},
"patterns": [
{
"count": 18,
"args": 0,
"types": []
}
]
},
"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"
]
}
]
},
"ASGITransport": {
"occurrences": 3,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 3,
"args": 1,
"types": [
"kwarg"
]
}
]
},
"AsyncClient": {
"occurrences": 3,
"arg_count": {
"min": 2,
"max": 2,
"common": 2
},
"patterns": [
{
"count": 3,
"args": 2,
"types": [
"kwarg",
"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"
]
}
]
},
"class": {
"occurrences": 12,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 12,
"args": 1,
"types": [
"var"
]
}
]
},
"Subscription": {
"occurrences": 1,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 1,
"args": 1,
"types": [
"var"
]
}
]
},
"Item": {
"occurrences": 5,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 5,
"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"
]
}
]
},
"jsonable_encoder": {
"occurrences": 6,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 6,
"args": 1,
"types": [
"var"
]
}
]
},
"Field": {
"occurrences": 12,
"arg_count": {
"min": 2,
"max": 3,
"common": 2
},
"patterns": [
{
"count": 6,
"args": 2,
"types": [
"kwarg",
"kwarg"
]
},
{
"count": 6,
"args": 3,
"types": [
"kwarg",
"kwarg",
"kwarg"
]
}
]
},
"Flask": {
"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"
]
}
]
},
"WSGIMiddleware": {
"occurrences": 3,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 3,
"args": 1,
"types": [
"var"
]
}
]
},
"Response": {
"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"
]
}
]
},
"User": {
"occurrences": 3,
"arg_count": {
"min": 2,
"max": 2,
"common": 2
},
"patterns": [
{
"count": 3,
"args": 2,
"types": [
"kwarg",
"kwarg"
]
}
]
},
"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"
]
}
]
},
"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"
]
}
]
},
"Depends": {
"occurrences": 3,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 3,
"args": 1,
"types": [
"call"
]
}
]
}
}
},
{
"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": 119424,
"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"
]
}
]
},
"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"
]
}
]
},
"FastAPI": {
"occurrences": 12,
"arg_count": {
"min": 0,
"max": 0,
"common": 0
},
"patterns": [
{
"count": 12,
"args": 0,
"types": []
}
]
},
"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 ::= \"return\"? (\"TestClient\" | \"app\" | \"client\" | \"get\" | \"items\" | \"json\" | \"response\" | \"status_code\" | \"yield\")?+ \"websocket_connect\"?+ (\"clear\" | \"item_id\")?+ (\"accept\" | \"await\" | \"data\" | \"receive_json\" | \"send_json\" | \"websocket\")?+ \"close\"?+",
"mdl_score": 1000000000000,
"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,
"algorithm": "CRX",
"grammar": "root ::= (\"HTTPException\" | \"client\" | \"detail\" | \"fake_db\" | \"fake_secret_token\" | \"get\" | \"headers\" | \"id\" | \"if\" | \"in\" | \"item\" | \"item_id\" | \"json\" | \"model_dump\" | \"not\" | \"not in\" | \"post\" | \"raise\" | \"response\" | \"return\" | \"status_code\" | \"x_token\")+",
"mdl_score": 1000000000000,
"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": {
"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": []
}
]
},
"Header": {
"occurrences": 6,
"arg_count": {
"min": 0,
"max": 0,
"common": 0
},
"patterns": [
{
"count": 6,
"args": 0,
"types": []
}
]
},
"HTTPException": {
"occurrences": 12,
"arg_count": {
"min": 2,
"max": 2,
"common": 2
},
"patterns": [
{
"count": 12,
"args": 2,
"types": [
"kwarg",
"kwarg"
]
}
]
},
"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/app_testing/app_b_py310",
"method_count": 8,
"algorithm": "CRX",
"grammar": "root ::= (\"HTTPException\" | \"client\" | \"detail\" | \"fake_db\" | \"fake_secret_token\" | \"get\" | \"headers\" | \"id\" | \"if\" | \"in\" | \"item\" | \"item_id\" | \"json\" | \"model_dump\" | \"not\" | \"not in\" | \"post\" | \"raise\" | \"response\" | \"return\" | \"status_code\" | \"x_token\")+",
"mdl_score": 1000000000000,
"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": []
}
]
},
"Item": {
"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": 1,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 1,
"args": 1,
"types": [
"var"
]
}
]
}
}
},
{
"label": "docs_src/background_tasks",
"method_count": 8,
"algorithm": "CRX",
"grammar": "root ::= \"if\"? \"open\"?+ \"mode\"? \"log\"?+ (\"add_task\" | \"background_tasks\" | \"content\" | \"email\" | \"email_file\" | \"message\" | \"q\" | \"return\" | \"write\" | \"write_log\" | \"write_notification\")+",
"mdl_score": 1000000000000,
"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": 16,
"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": 2,
"types": [
"kwarg",
"kwarg"
]
},
{
"count": 3,
"args": 3,
"types": [
"kwarg",
"kwarg",
"kwarg"
]
},
{
"count": 3,
"args": 1,
"types": [
"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": 194,
"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": {
"Header": {
"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"
]
}
]
},
"APIRouter": {
"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": 1000000000000,
"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"
]
}
]
},
"HTTPException": {
"occurrences": 6,
"arg_count": {
"min": 2,
"max": 2,
"common": 2
},
"patterns": [
{
"count": 6,
"args": 2,
"types": [
"kwarg",
"kwarg"
]
}
]
},
"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,
"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": 1000000000000,
"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"
]
}
]
},
"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"
]
}
]
},
"User": {
"occurrences": 5,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 5,
"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\")+ (\"images\" | \"offer\" | \"weights\")?",
"mdl_score": 10836,
"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": []
}
]
},
"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"
]
}
]
},
"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,
"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": 1000000000000,
"imports": [
"from fastapi import FastAPI",
"from fastapi.encoders import jsonable_encoder",
"from pydantic import BaseModel"
],
"arg_patterns": {
"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"
]
}
]
},
"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,
"algorithm": "CRX",
"grammar": "root ::= \"return\" \"username\"",
"mdl_score": 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,
"algorithm": "CRX",
"grammar": "root ::= \"return\" \"cookies\"",
"mdl_score": 4,
"imports": [
"from typing import Annotated",
"from fastapi import Cookie, FastAPI",
"from pydantic import BaseModel"
],
"arg_patterns": {
"FastAPI": {
"occurrences": 12,
"arg_count": {
"min": 0,
"max": 0,
"common": 0
},
"patterns": [
{
"count": 12,
"args": 0,
"types": []
}
]
},
"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"
]
}
]
},
"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_redoc_html\" | \"get_swagger_ui_html\")?+ (\"get_swagger_ui_oauth2_redirect_html\" | \"username\")?+ (\"app\" | \"oauth2_redirect_url\" | \"openapi_url\" | \"title\")?+ \"swagger_ui_oauth2_redirect_url\"? \"redoc_js_url\"? \"swagger_js_url\"? \"swagger_css_url\"?",
"mdl_score": 1311457824,
"imports": [
"from fastapi import FastAPI",
"from fastapi.openapi.docs import (",
"from fastapi.staticfiles import StaticFiles"
],
"arg_patterns": {
"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"
]
}
]
},
"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"
]
}
]
},
"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 ::= (\"GzipRequest\" | \"HTTPException\" | \"Request\" | \"RequestValidationError\" | \"Response\" | \"_body\" | \"async\" | \"await\" | \"before\" | \"body\" | \"custom_route_handler\" | \"decode\" | \"decompress\" | \"def\" | \"detail\" | \"duration\" | \"errors\" | \"exc\" | \"except\" | \"get_route_handler\" | \"getlist\" | \"gzip\" | \"hasattr\" | \"headers\" | \"if\" | \"in\" | \"not\" | \"original_route_handler\" | \"print\" | \"raise\" | \"receive\" | \"request\" | \"response\" | \"return\" | \"scope\" | \"self\" | \"status_code\" | \"str\" | \"super\" | \"time\" | \"try\")+ \"sum\"?+ \"numbers\"?",
"mdl_score": 1000000000000,
"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": {
"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": []
}
]
},
"original_route_handler": {
"occurrences": 15,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 15,
"args": 1,
"types": [
"var"
]
}
]
},
"sum": {
"occurrences": 16,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 16,
"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": []
}
]
},
"ValidationErrorLoggingRoute": {
"occurrences": 2,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 2,
"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"
]
}
]
},
"print": {
"occurrences": 12,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 12,
"args": 1,
"types": [
"lit"
]
}
]
},
"TimedRoute": {
"occurrences": 1,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 1,
"args": 1,
"types": [
"var"
]
}
]
}
}
},
{
"label": "docs_src/custom_response",
"method_count": 19,
"algorithm": "CRX",
"grammar": "root ::= \"for\"? \"def\"? \"i\"? \"in\"? \"range\"?+ (\"FileResponse\" | \"HTMLResponse\" | \"StreamingResponse\" | \"content\" | \"dumps\" | \"file_like\" | \"from\" | \"html_content\" | \"is\" | \"is not\" | \"iterfile\" | \"mode\" | \"not\" | \"open\" | \"option\" | \"orjson\" | \"return\" | \"some_file_path\" | \"yield\")+ (\"OPT_INDENT_2\" | \"ORJSONResponse\" | \"RedirectResponse\" | \"fake_video_streamer\" | \"generate_html_response\" | \"media_type\" | \"status_code\")?+ \"await\"? \"anyio\"? \"sleep\"?+",
"mdl_score": 1000000000000,
"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"
]
}
]
},
"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": []
}
]
},
"open": {
"occurrences": 4,
"arg_count": {
"min": 2,
"max": 2,
"common": 2
},
"patterns": [
{
"count": 4,
"args": 2,
"types": [
"var",
"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"
]
}
]
},
"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": []
}
]
},
"RedirectResponse": {
"occurrences": 3,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 3,
"args": 1,
"types": [
"lit"
]
}
]
},
"ORJSONResponse": {
"occurrences": 3,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 3,
"args": 1,
"types": [
"other"
]
}
]
},
"generate_html_response": {
"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"
]
}
]
}
}
},
{
"label": "docs_src/dataclasses_",
"method_count": 4,
"algorithm": "CRX",
"grammar": "root ::= \"return\" \"author_id\"? \"item\"? \"items\"?",
"mdl_score": 8,
"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": {
"field": {
"occurrences": 6,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 6,
"args": 1,
"types": [
"kwarg"
]
}
]
},
"FastAPI": {
"occurrences": 9,
"arg_count": {
"min": 0,
"max": 0,
"common": 0
},
"patterns": [
{
"count": 9,
"args": 0,
"types": []
}
]
}
}
},
{
"label": "docs_src/dependencies",
"method_count": 82,
"algorithm": "CRX",
"grammar": "root ::= (\"HTTPException\" | \"InternalError\" | \"OwnerError\" | \"close\" | \"commons\" | \"db\" | \"dep_a\" | \"dep_b\" | \"detail\" | \"except\" | \"fake_items_db\" | \"finally\" | \"fixed_content\" | \"if\" | \"in\" | \"item_id\" | \"items\" | \"limit\" | \"not\" | \"print\" | \"q\" | \"query\" | \"raise\" | \"response\" | \"return\" | \"self\" | \"session\" | \"skip\" | \"status_code\" | \"try\" | \"update\" | \"username\" | \"x_key\" | \"x_token\" | \"yield\")+",
"mdl_score": 1000000000000,
"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"
]
}
]
},
"FixedContentQueryChecker": {
"occurrences": 6,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 6,
"args": 1,
"types": [
"lit"
]
}
]
},
"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"
]
}
]
},
"HTTPException": {
"occurrences": 54,
"arg_count": {
"min": 2,
"max": 2,
"common": 2
},
"patterns": [
{
"count": 54,
"args": 2,
"types": [
"kwarg",
"kwarg"
]
}
]
},
"Header": {
"occurrences": 24,
"arg_count": {
"min": 0,
"max": 0,
"common": 0
},
"patterns": [
{
"count": 24,
"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"
]
}
]
},
"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"
]
}
]
},
"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": []
}
]
},
"generate_dep_a": {
"occurrences": 6,
"arg_count": {
"min": 0,
"max": 0,
"common": 0
},
"patterns": [
{
"count": 6,
"args": 0,
"types": []
}
]
},
"generate_dep_b": {
"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": []
}
]
},
"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"
]
}
]
},
"User": {
"occurrences": 2,
"arg_count": {
"min": 2,
"max": 2,
"common": 2
},
"patterns": [
{
"count": 2,
"args": 2,
"types": [
"var",
"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"
]
}
]
},
"Field": {
"occurrences": 6,
"arg_count": {
"min": 2,
"max": 2,
"common": 2
},
"patterns": [
{
"count": 6,
"args": 2,
"types": [
"kwarg",
"kwarg"
]
}
]
},
"OwnerError": {
"occurrences": 8,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 8,
"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"
]
}
]
}
}
},
{
"label": "docs_src/dependency_testing",
"method_count": 14,
"algorithm": "CRX",
"grammar": "root ::= (\"client\" | \"get\" | \"response\" | \"status_code\")?+ \"return\"? \"json\"?+ \"commons\"? \"q\"? \"skip\"? \"limit\"?",
"mdl_score": 25600216,
"imports": [
"from typing import Annotated",
"from fastapi import Depends, FastAPI",
"from fastapi.testclient import TestClient"
],
"arg_patterns": {
"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"
]
}
]
},
"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\")+ \"items\"? \"raw_password\"? \"item_id\"?",
"mdl_score": 1000000000000,
"imports": [
"from fastapi import FastAPI",
"from pydantic import BaseModel, EmailStr",
"from pydantic import BaseModel"
],
"arg_patterns": {
"Item": {
"occurrences": 1,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 1,
"args": 1,
"types": [
"var"
]
}
]
},
"FastAPI": {
"occurrences": 15,
"arg_count": {
"min": 0,
"max": 0,
"common": 0
},
"patterns": [
{
"count": 15,
"args": 0,
"types": []
}
]
},
"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"
]
}
]
},
"print": {
"occurrences": 8,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 8,
"args": 1,
"types": [
"lit"
]
}
]
},
"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"
]
}
]
},
"fake_password_hasher": {
"occurrences": 6,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 6,
"args": 1,
"types": [
"other"
]
}
]
}
}
},
{
"label": "docs_src/generate_clients",
"method_count": 9,
"algorithm": "CRX",
"grammar": "root ::= \"return\" (\"route\" | \"tags\")?+ \"name\"?",
"mdl_score": 24,
"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,
"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"
]
}
]
},
"print": {
"occurrences": 8,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 8,
"args": 1,
"types": [
"lit"
]
}
]
},
"http_exception_handler": {
"occurrences": 3,
"arg_count": {
"min": 2,
"max": 2,
"common": 2
},
"patterns": [
{
"count": 3,
"args": 2,
"types": [
"var",
"var"
]
}
]
},
"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"
]
}
]
},
"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"
]
}
]
},
"PlainTextResponse": {
"occurrences": 6,
"arg_count": {
"min": 2,
"max": 2,
"common": 2
},
"patterns": [
{
"count": 3,
"args": 2,
"types": [
"var",
"kwarg"
]
},
{
"count": 3,
"args": 2,
"types": [
"call",
"kwarg"
]
}
]
},
"str": {
"occurrences": 5,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 5,
"args": 1,
"types": [
"other"
]
}
]
}
}
},
{
"label": "docs_src/header_param_models",
"method_count": 6,
"algorithm": "CRX",
"grammar": "root ::= \"return\" \"headers\"",
"mdl_score": 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,
"algorithm": "CRX",
"grammar": "root ::= \"return\" (\"strange_header\" | \"user_agent\" | \"x_token\")",
"mdl_score": 18,
"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,
"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 ::= (\"HTTPException\" | \"Item\" | \"ValidationError\" | \"YAMLError\" | \"await\" | \"body\" | \"data\" | \"detail\" | \"e\" | \"errors\" | \"except\" | \"include_url\" | \"item\" | \"len\" | \"magic_data_reader\" | \"model_validate\" | \"raise\" | \"raw_body\" | \"request\" | \"return\" | \"safe_load\" | \"status_code\" | \"try\" | \"yaml\")+ \"route\"? \"name\"?",
"mdl_score": 1000000000000,
"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": {
"len": {
"occurrences": 4,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 4,
"args": 1,
"types": [
"var"
]
}
]
},
"FastAPI": {
"occurrences": 21,
"arg_count": {
"min": 0,
"max": 1,
"common": 0
},
"patterns": [
{
"count": 18,
"args": 0,
"types": []
},
{
"count": 3,
"args": 1,
"types": [
"kwarg"
]
}
]
},
"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"
]
}
]
},
"Item": {
"occurrences": 2,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 2,
"args": 1,
"types": [
"var"
]
}
]
},
"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": []
}
]
}
}
},
{
"label": "docs_src/path_operation_configuration",
"method_count": 12,
"algorithm": "CRX",
"grammar": "root ::= \"return\" \"item\"?",
"mdl_score": 12,
"imports": [
"from fastapi import FastAPI, status",
"from pydantic import BaseModel",
"from fastapi import FastAPI",
"from enum import Enum"
],
"arg_patterns": {
"FastAPI": {
"occurrences": 21,
"arg_count": {
"min": 0,
"max": 0,
"common": 0
},
"patterns": [
{
"count": 21,
"args": 0,
"types": []
}
]
},
"Tags": {
"occurrences": 1,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 1,
"args": 1,
"types": [
"var"
]
}
]
},
"class": {
"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"
]
}
]
},
"set": {
"occurrences": 25,
"arg_count": {
"min": 0,
"max": 0,
"common": 0
},
"patterns": [
{
"count": 25,
"args": 0,
"types": []
}
]
}
}
},
{
"label": "docs_src/path_params",
"method_count": 8,
"algorithm": "CRX",
"grammar": "root ::= (\"ModelName\" | \"alexnet\" | \"if\" | \"is\" | \"model_name\" | \"return\" | \"value\")+ (\"file_path\" | \"item_id\" | \"user_id\")?",
"mdl_score": 968890104371,
"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\" | \"size\" | \"update\")+",
"mdl_score": 1000000000000,
"imports": [
"from typing import Annotated",
"from fastapi import FastAPI, Path, Query",
"from fastapi import FastAPI, Path"
],
"arg_patterns": {
"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"
]
}
]
},
"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"
]
}
]
}
}
},
{
"label": "docs_src/pydantic_v1_in_v2",
"method_count": 3,
"algorithm": "CRX",
"grammar": "root ::= \"return\" \"item\"",
"mdl_score": 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": []
}
]
},
"Body": {
"occurrences": 3,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 3,
"args": 1,
"types": [
"kwarg"
]
}
]
},
"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"
]
}
]
},
"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,
"algorithm": "CRX",
"grammar": "root ::= \"return\" \"filter_query\"",
"mdl_score": 4,
"imports": [
"from typing import Annotated, Literal",
"from fastapi import FastAPI, Query",
"from pydantic import BaseModel, Field",
"from typing import Literal"
],
"arg_patterns": {
"Query": {
"occurrences": 12,
"arg_count": {
"min": 0,
"max": 0,
"common": 0
},
"patterns": [
{
"count": 12,
"args": 0,
"types": []
}
]
},
"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": []
}
]
},
"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,
"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 ::= (\"ValueError\" | \"choice\" | \"data\" | \"else\" | \"get\" | \"hidden_query\" | \"id\" | \"if\" | \"item\" | \"items\" | \"list\" | \"not\" | \"q\" | \"query_items\" | \"raise\" | \"random\" | \"results\" | \"return\" | \"startswith\" | \"update\")+",
"mdl_score": 1000000000000,
"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,
"algorithm": "CRX",
"grammar": "root ::= \"if\"? \"not\"? (\"HTMLResponse\" | \"content\" | \"else\" | \"file\" | \"filename\" | \"for\" | \"len\" | \"return\")+ \"in\"? \"files\"?",
"mdl_score": 34480840128,
"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": []
}
]
},
"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": []
}
]
},
"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,
"algorithm": "CRX",
"grammar": "root ::= \"return\" \"data\"",
"mdl_score": 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,
"algorithm": "CRX",
"grammar": "root ::= \"if\"? \"teleport\"? (\"RedirectResponse\" | \"return\" | \"url\")+ (\"item\" | \"user\")? \"items\"? (\"Item\" | \"name\" | \"price\")?+ \"JSONResponse\"?+ \"item_id\"? \"content\"?",
"mdl_score": 19090476,
"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": {
"JSONResponse": {
"occurrences": 3,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 3,
"args": 1,
"types": [
"kwarg"
]
}
]
},
"FastAPI": {
"occurrences": 36,
"arg_count": {
"min": 0,
"max": 0,
"common": 0
},
"patterns": [
{
"count": 36,
"args": 0,
"types": []
}
]
},
"RedirectResponse": {
"occurrences": 12,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 12,
"args": 1,
"types": [
"kwarg"
]
}
]
},
"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"
]
}
]
},
"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": 8192,
"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": []
}
]
},
"Item": {
"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"
]
}
]
},
"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": 1,
"types": [
"kwarg"
]
},
{
"count": 6,
"args": 2,
"types": [
"kwarg",
"kwarg"
]
}
]
}
}
},
{
"label": "docs_src/security",
"method_count": 70,
"algorithm": "CRX",
"grammar": "root ::= (\"ACCESS_TOKEN_EXPIRE_MINUTES\" | \"ALGORITHM\" | \"DUMMY_HASH\" | \"HTTPException\" | \"HTTP_401_UNAUTHORIZED\" | \"InvalidTokenError\" | \"SECRET_KEY\" | \"Token\" | \"TokenData\" | \"UserInDB\" | \"access_token\" | \"access_token_expires\" | \"algorithm\" | \"algorithms\" | \"authenticate_user\" | \"copy\" | \"create_access_token\" | \"credentials\" | \"credentials_exception\" | \"current_user\" | \"data\" | \"datetime\" | \"db\" | \"decode\" | \"detail\" | \"disabled\" | \"else\" | \"encode\" | \"encoded_jwt\" | \"except\" | \"expire\" | \"expires_delta\" | \"fake_db\" | \"fake_decode_token\" | \"fake_users_db\" | \"form_data\" | \"get\" | \"get_user\" | \"hash\" | \"hashed_password\" | \"headers\" | \"if\" | \"in\" | \"is\" | \"jwt\" | \"minutes\" | \"not\" | \"now\" | \"password\" | \"password_hash\" | \"payload\" | \"plain_password\" | \"raise\" | \"return\" | \"scopes\" | \"status\" | \"status_code\" | \"timedelta\" | \"timezone\" | \"to_encode\" | \"token\" | \"token_data\" | \"try\" | \"update\" | \"user\" | \"user_dict\" | \"username\" | \"utc\" | \"verify\" | \"verify_password\")+ \"token_type\"?",
"mdl_score": 1000000000000,
"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": {
"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"
]
}
]
},
"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"
]
}
]
},
"UserInDB": {
"occurrences": 30,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 24,
"args": 1,
"types": [
"other"
]
},
{
"count": 6,
"args": 1,
"types": [
"var"
]
}
]
},
"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"
]
}
]
},
"Security": {
"occurrences": 12,
"arg_count": {
"min": 2,
"max": 2,
"common": 2
},
"patterns": [
{
"count": 12,
"args": 2,
"types": [
"var",
"kwarg"
]
}
]
},
"Depends": {
"occurrences": 114,
"arg_count": {
"min": 0,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 96,
"args": 1,
"types": [
"var"
]
},
{
"count": 18,
"args": 0,
"types": []
}
]
},
"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"
]
}
]
},
"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"
]
}
]
},
"authenticate_user": {
"occurrences": 12,
"arg_count": {
"min": 3,
"max": 3,
"common": 3
},
"patterns": [
{
"count": 12,
"args": 3,
"types": [
"var",
"other",
"other"
]
}
]
},
"FastAPI": {
"occurrences": 42,
"arg_count": {
"min": 0,
"max": 0,
"common": 0
},
"patterns": [
{
"count": 42,
"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"
]
}
]
},
"timedelta": {
"occurrences": 24,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 24,
"args": 1,
"types": [
"kwarg"
]
}
]
},
"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"
]
}
]
},
"HTTPBasic": {
"occurrences": 12,
"arg_count": {
"min": 0,
"max": 0,
"common": 0
},
"patterns": [
{
"count": 12,
"args": 0,
"types": []
}
]
},
"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"
]
}
]
}
}
},
{
"label": "docs_src/separate_openapi_schemas",
"method_count": 4,
"algorithm": "CRX",
"grammar": "root ::= \"return\" (\"Item\" | \"description\" | \"name\")?+ \"item\"?",
"mdl_score": 52494,
"imports": [
"from fastapi import FastAPI",
"from pydantic import BaseModel"
],
"arg_patterns": {
"FastAPI": {
"occurrences": 6,
"arg_count": {
"min": 0,
"max": 1,
"common": 0
},
"patterns": [
{
"count": 3,
"args": 0,
"types": []
},
{
"count": 3,
"args": 1,
"types": [
"kwarg"
]
}
]
},
"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"
]
}
]
},
"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 ::= (\"ServerSentEvent\" | \"comment\" | \"continue\" | \"data\" | \"else\" | \"enumerate\" | \"event\" | \"for\" | \"i\" | \"id\" | \"if\" | \"in\" | \"is\" | \"is not\" | \"item\" | \"items\" | \"last_event_id\" | \"log_line\" | \"logs\" | \"not\" | \"prompt\" | \"raw_data\" | \"split\" | \"start\" | \"str\" | \"text\" | \"word\" | \"words\" | \"yield\")+ \"retry\"?",
"mdl_score": 1000000000000,
"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"
]
}
]
},
"enumerate": {
"occurrences": 8,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 8,
"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"
]
}
]
},
"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\" \"config\"? (\"admin_email\" | \"app_name\" | \"settings\")?+ \"Settings\"?+ \"items_per_user\"?",
"mdl_score": 2058,
"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,
"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,
"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": {
"Depends": {
"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": []
}
]
},
"Settings": {
"occurrences": 6,
"arg_count": {
"min": 0,
"max": 1,
"common": 0
},
"patterns": [
{
"count": 3,
"args": 0,
"types": []
},
{
"count": 3,
"args": 1,
"types": [
"kwarg"
]
}
]
},
"TestClient": {
"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 ::= \"create_db_and_tables\"?+ \"SQLModel\"? \"Session\"?+ \"metadata\"? \"create_all\"?+ \"engine\"? (\"HTTPException\" | \"Hero\" | \"add\" | \"all\" | \"commit\" | \"db_hero\" | \"delete\" | \"detail\" | \"exclude_unset\" | \"exec\" | \"get\" | \"hero\" | \"hero_data\" | \"hero_db\" | \"hero_id\" | \"heroes\" | \"if\" | \"limit\" | \"model_dump\" | \"model_validate\" | \"not\" | \"offset\" | \"raise\" | \"refresh\" | \"return\" | \"select\" | \"session\" | \"sqlmodel_update\" | \"status_code\" | \"yield\")?+",
"mdl_score": 1000000000000,
"imports": [
"from typing import Annotated",
"from fastapi import Depends, FastAPI, HTTPException, Query",
"from sqlmodel import Field, Session, SQLModel, create_engine, select"
],
"arg_patterns": {
"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"
]
}
]
},
"HTTPException": {
"occurrences": 30,
"arg_count": {
"min": 2,
"max": 2,
"common": 2
},
"patterns": [
{
"count": 30,
"args": 2,
"types": [
"kwarg",
"kwarg"
]
}
]
},
"FastAPI": {
"occurrences": 12,
"arg_count": {
"min": 0,
"max": 0,
"common": 0
},
"patterns": [
{
"count": 12,
"args": 0,
"types": []
}
]
},
"Session": {
"occurrences": 12,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 12,
"args": 1,
"types": [
"var"
]
}
]
},
"Query": {
"occurrences": 12,
"arg_count": {
"min": 1,
"max": 2,
"common": 1
},
"patterns": [
{
"count": 6,
"args": 1,
"types": [
"kwarg"
]
},
{
"count": 6,
"args": 2,
"types": [
"kwarg",
"kwarg"
]
}
]
},
"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": []
}
]
},
"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"
]
}
]
},
"create_engine": {
"occurrences": 12,
"arg_count": {
"min": 2,
"max": 2,
"common": 2
},
"patterns": [
{
"count": 12,
"args": 2,
"types": [
"var",
"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"
]
}
]
},
"HeroBase": {
"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"
]
}
]
},
"HeroPublic": {
"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"
]
}
]
}
}
},
{
"label": "docs_src/stream_data",
"method_count": 14,
"algorithm": "CRX",
"grammar": "root ::= \"return\"? \"read_image\"?+ \"BytesIO\"?+ (\"chunk\" | \"for\" | \"from\" | \"image_file\" | \"in\" | \"line\" | \"message\" | \"splitlines\" | \"yield\")?+ \"binary_image\"? \"encode\"?+",
"mdl_score": 2761427106,
"imports": [
"from collections.abc import AsyncIterable, Iterable",
"from fastapi import FastAPI",
"from fastapi.responses import StreamingResponse",
"import base64",
"from io import BytesIO"
],
"arg_patterns": {
"FastAPI": {
"occurrences": 6,
"arg_count": {
"min": 0,
"max": 0,
"common": 0
},
"patterns": [
{
"count": 6,
"args": 0,
"types": []
}
]
},
"read_image": {
"occurrences": 15,
"arg_count": {
"min": 0,
"max": 0,
"common": 0
},
"patterns": [
{
"count": 15,
"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,
"algorithm": "CRX",
"grammar": "root ::= \"for\" (\"in\" | \"item\" | \"items\" | \"yield\")+",
"mdl_score": 4096,
"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 ::= \"for\"? (\"WS_1008_POLICY_VIOLATION\" | \"WebSocketDisconnect\" | \"WebSocketException\" | \"accept\" | \"active_connections\" | \"and\" | \"append\" | \"await\" | \"broadcast\" | \"client_id\" | \"code\" | \"connect\" | \"connection\" | \"cookie_or_token\" | \"data\" | \"disconnect\" | \"except\" | \"if\" | \"in\" | \"is\" | \"is not\" | \"manager\" | \"not\" | \"or\" | \"q\" | \"raise\" | \"receive_text\" | \"remove\" | \"return\" | \"self\" | \"send_personal_message\" | \"send_text\" | \"session\" | \"status\" | \"token\" | \"try\" | \"websocket\" | \"while\")+ \"list\"?+ \"HTMLResponse\"?+ (\"item_id\" | \"message\")? \"WebSocket\"? \"html\"?",
"mdl_score": 1000000000000,
"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": {
"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": []
}
]
},
"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"
]
}
]
},
"Query": {
"occurrences": 6,
"arg_count": {
"min": 0,
"max": 1,
"common": 0
},
"patterns": [
{
"count": 3,
"args": 1,
"types": [
"kwarg"
]
},
{
"count": 3,
"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": []
}
]
},
"ConnectionManager": {
"occurrences": 3,
"arg_count": {
"min": 0,
"max": 0,
"common": 0
},
"patterns": [
{
"count": 3,
"args": 0,
"types": []
}
]
}
}
},
{
"label": "fastapi",
"method_count": 239,
"algorithm": "CRX",
"grammar": "root ::= (\"AsyncExitStack\" | \"Match\" | \"NONE\" | \"_IncludedRouter\" | \"__init__\" | \"alias\" | \"alias_priority\" | \"allow_inf_nan\" | \"and\" | \"app\" | \"async\" | \"await\" | \"callbacks\" | \"child_scope\" | \"decimal_places\" | \"def\" | \"default\" | \"default_factory\" | \"dependant\" | \"dependencies\" | \"dependency_overrides_provider\" | \"deprecated\" | \"description\" | \"dict\" | \"discriminator\" | \"else\" | \"endpoint\" | \"errors\" | \"example\" | \"examples\" | \"except\" | \"extra\" | \"for\" | \"func\" | \"ge\" | \"generate_unique_id_function\" | \"get\" | \"gt\" | \"if\" | \"in\" | \"include_in_schema\" | \"is\" | \"is not\" | \"isinstance\" | \"json_schema_extra\" | \"le\" | \"list\" | \"lt\" | \"match\" | \"max_digits\" | \"max_length\" | \"methods\" | \"min_length\" | \"multiple_of\" | \"name\" | \"not\" | \"openapi_examples\" | \"openapi_extra\" | \"operation_id\" | \"or\" | \"original_route\" | \"path\" | \"pattern\" | \"prefix\" | \"raise\" | \"receive\" | \"regex\" | \"response_class\" | \"response_description\" | \"response_model\" | \"response_model_by_alias\" | \"response_model_exclude\" | \"response_model_exclude_defaults\" | \"response_model_exclude_none\" | \"response_model_exclude_unset\" | \"response_model_include\" | \"responses\" | \"return\" | \"route\" | \"router\" | \"routes\" | \"rstrip\" | \"scope\" | \"self\" | \"send\" | \"serialization_alias\" | \"status_code\" | \"str\" | \"strict\" | \"summary\" | \"super\" | \"tags\" | \"title\" | \"try\" | \"validation_alias\" | \"value\" | \"yield\")+",
"mdl_score": 1000000000000,
"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": {
"CapacityLimiter": {
"occurrences": 3,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 3,
"args": 1,
"types": [
"lit"
]
}
]
},
"type": {
"occurrences": 35,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 30,
"args": 1,
"types": [
"var"
]
},
{
"count": 5,
"args": 1,
"types": [
"lit"
]
}
]
},
"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"
]
}
]
},
"bool": {
"occurrences": 10,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 10,
"args": 1,
"types": [
"other"
]
}
]
},
"run_in_threadpool": {
"occurrences": 15,
"arg_count": {
"min": 1,
"max": 4,
"common": 2
},
"patterns": [
{
"count": 6,
"args": 2,
"types": [
"other",
"var"
]
},
{
"count": 3,
"args": 1,
"types": [
"other"
]
},
{
"count": 3,
"args": 4,
"types": [
"other",
"var",
"other",
"kwarg"
]
},
{
"count": 3,
"args": 2,
"types": [
"other",
"other"
]
}
]
},
"JSONResponse": {
"occurrences": 9,
"arg_count": {
"min": 1,
"max": 3,
"common": 1
},
"patterns": [
{
"count": 3,
"args": 3,
"types": [
"other",
"kwarg",
"kwarg"
]
},
{
"count": 3,
"args": 2,
"types": [
"kwarg",
"kwarg"
]
},
{
"count": 3,
"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": 6,
"types": [
"var",
"kwarg",
"kwarg",
"kwarg",
"kwarg",
"kwarg"
]
},
{
"count": 6,
"args": 1,
"types": [
"var"
]
},
{
"count": 3,
"args": 4,
"types": [
"var",
"kwarg",
"kwarg",
"kwarg"
]
}
]
},
"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"
]
}
]
},
"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"
]
}
]
},
"print": {
"occurrences": 4,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 4,
"args": 1,
"types": [
"var"
]
}
]
},
"RuntimeError": {
"occurrences": 16,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 12,
"args": 1,
"types": [
"other"
]
},
{
"count": 4,
"args": 1,
"types": [
"var"
]
}
]
},
"cli_main": {
"occurrences": 3,
"arg_count": {
"min": 0,
"max": 0,
"common": 0
},
"patterns": [
{
"count": 3,
"args": 0,
"types": []
}
]
},
"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"
]
}
]
},
"EventSourceResponse": {
"occurrences": 1,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 1,
"args": 1,
"types": [
"var"
]
}
]
},
"Doc": {
"occurrences": 2121,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 2121,
"args": 1,
"types": [
"lit"
]
}
]
},
"Field": {
"occurrences": 3,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 3,
"args": 1,
"types": [
"kwarg"
]
}
]
},
"ServerSentEvent": {
"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"
]
}
]
},
"model_validator": {
"occurrences": 4,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 4,
"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"
]
}
]
},
"AsyncExitStack": {
"occurrences": 21,
"arg_count": {
"min": 0,
"max": 0,
"common": 0
},
"patterns": [
{
"count": 21,
"args": 0,
"types": []
}
]
},
"encoder": {
"occurrences": 3,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 3,
"args": 1,
"types": [
"var"
]
}
]
},
"set": {
"occurrences": 50,
"arg_count": {
"min": 0,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 20,
"args": 1,
"types": [
"var"
]
},
{
"count": 20,
"args": 1,
"types": [
"call"
]
},
{
"count": 10,
"args": 0,
"types": []
}
]
},
"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"
]
}
]
},
"float": {
"occurrences": 10,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 10,
"args": 1,
"types": [
"var"
]
}
]
},
"encoder_instance": {
"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"
]
}
]
},
"vars": {
"occurrences": 4,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 4,
"args": 1,
"types": [
"var"
]
}
]
},
"int": {
"occurrences": 15,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 15,
"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"
]
}
]
},
"PydanticV1NotSupportedError": {
"occurrences": 7,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 6,
"args": 1,
"types": [
"other"
]
},
{
"count": 1,
"args": 1,
"types": [
"var"
]
}
]
},
"str": {
"occurrences": 10,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 10,
"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"
]
}
]
},
"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"
]
}
]
},
"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"
]
}
]
},
"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"
]
}
]
},
"_OrjsonModule": {
"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"
]
}
]
},
"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_swagger_ui_html": {
"occurrences": 3,
"arg_count": {
"min": 5,
"max": 5,
"common": 5
},
"patterns": [
{
"count": 3,
"args": 5,
"types": [
"kwarg",
"kwarg",
"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"
]
}
]
},
"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"
]
}
]
},
"cls": {
"occurrences": 12,
"arg_count": {
"min": 1,
"max": 12,
"common": 1
},
"patterns": [
{
"count": 3,
"args": 3,
"types": [
"var",
"other",
"other"
]
},
{
"count": 3,
"args": 1,
"types": [
"kwarg"
]
},
{
"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"
]
}
]
},
"reversed": {
"occurrences": 4,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 4,
"args": 1,
"types": [
"var"
]
}
]
},
"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"
]
}
]
},
"super": {
"occurrences": 104,
"arg_count": {
"min": 0,
"max": 0,
"common": 0
},
"patterns": [
{
"count": 104,
"args": 0,
"types": []
}
]
},
"get_swagger_ui_oauth2_redirect_html": {
"occurrences": 3,
"arg_count": {
"min": 0,
"max": 0,
"common": 0
},
"patterns": [
{
"count": 3,
"args": 0,
"types": []
}
]
},
"FastAPI": {
"occurrences": 1,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 1,
"args": 1,
"types": [
"var"
]
}
]
},
"State": {
"occurrences": 3,
"arg_count": {
"min": 0,
"max": 0,
"common": 0
},
"patterns": [
{
"count": 3,
"args": 0,
"types": []
}
]
},
"get_redoc_html": {
"occurrences": 3,
"arg_count": {
"min": 2,
"max": 2,
"common": 2
},
"patterns": [
{
"count": 3,
"args": 2,
"types": [
"kwarg",
"kwarg"
]
}
]
},
"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"
]
}
]
},
"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"
]
}
]
},
"DefaultPlaceholder": {
"occurrences": 3,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 3,
"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"
]
}
]
},
"Query": {
"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"
]
}
]
},
"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"
]
}
]
},
"dataclass": {
"occurrences": 12,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 12,
"args": 1,
"types": [
"kwarg"
]
}
]
},
"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"
]
}
]
},
"Security": {
"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"
]
}
]
},
"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"
]
}
]
},
"cmgr": {
"occurrences": 3,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 3,
"args": 1,
"types": [
"var"
]
}
]
},
"_frontend_scope_specificity": {
"occurrences": 6,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 6,
"args": 1,
"types": [
"var"
]
}
]
},
"_serialize_data": {
"occurrences": 6,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 6,
"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": 3,
"types": [
"other",
"other",
"other"
]
},
{
"count": 9,
"args": 2,
"types": [
"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"
]
}
]
},
"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"
]
}
]
},
"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"
]
}
]
},
"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"
]
}
]
},
"RedirectResponse": {
"occurrences": 6,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 6,
"args": 1,
"types": [
"kwarg"
]
}
]
},
"callable": {
"occurrences": 4,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 4,
"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"
]
}
]
},
"APIRoute": {
"occurrences": 1,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 1,
"args": 1,
"types": [
"other"
]
}
]
},
"_get_fastapi_scope": {
"occurrences": 24,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 24,
"args": 1,
"types": [
"var"
]
}
]
},
"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"
]
}
]
},
"_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"
]
}
]
},
"NoMatchFound": {
"occurrences": 6,
"arg_count": {
"min": 2,
"max": 2,
"common": 2
},
"patterns": [
{
"count": 6,
"args": 2,
"types": [
"var",
"var"
]
}
]
},
"current_generate_unique_id": {
"occurrences": 3,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 3,
"args": 1,
"types": [
"var"
]
}
]
},
"APIWebSocketRoute": {
"occurrences": 7,
"arg_count": {
"min": 1,
"max": 5,
"common": 5
},
"patterns": [
{
"count": 3,
"args": 5,
"types": [
"expr",
"kwarg",
"kwarg",
"kwarg",
"kwarg"
]
},
{
"count": 3,
"args": 5,
"types": [
"call",
"kwarg",
"kwarg",
"kwarg",
"kwarg"
]
},
{
"count": 1,
"args": 1,
"types": [
"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"
]
}
]
},
"_get_scope_effective_route_context": {
"occurrences": 9,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 9,
"args": 1,
"types": [
"var"
]
}
]
},
"URL": {
"occurrences": 6,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 6,
"args": 1,
"types": [
"kwarg"
]
}
]
},
"func": {
"occurrences": 3,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 3,
"args": 1,
"types": [
"var"
]
}
]
},
"is_async_callable": {
"occurrences": 9,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 9,
"args": 1,
"types": [
"var"
]
}
]
},
"URLPath": {
"occurrences": 3,
"arg_count": {
"min": 2,
"max": 2,
"common": 2
},
"patterns": [
{
"count": 3,
"args": 2,
"types": [
"kwarg",
"kwarg"
]
}
]
},
"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"
]
}
]
},
"_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"
]
}
]
},
"_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"
]
}
]
},
"_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"
]
}
]
},
"request_response": {
"occurrences": 6,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 6,
"args": 1,
"types": [
"call"
]
}
]
},
"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"
]
}
]
},
"wrap_app_handling_exceptions": {
"occurrences": 6,
"arg_count": {
"min": 2,
"max": 2,
"common": 2
},
"patterns": [
{
"count": 6,
"args": 2,
"types": [
"var",
"var"
]
}
]
},
"_restore_fastapi_scope_key": {
"occurrences": 9,
"arg_count": {
"min": 3,
"max": 3,
"common": 3
},
"patterns": [
{
"count": 9,
"args": 3,
"types": [
"var",
"var",
"var"
]
}
]
},
"create_model_field": {
"occurrences": 9,
"arg_count": {
"min": 3,
"max": 3,
"common": 3
},
"patterns": [
{
"count": 9,
"args": 3,
"types": [
"kwarg",
"kwarg",
"kwarg"
]
}
]
},
"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"
]
}
]
},
"_frontend_path_specificity": {
"occurrences": 6,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 6,
"args": 1,
"types": [
"var"
]
}
]
},
"_normalize_frontend_path": {
"occurrences": 6,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 6,
"args": 1,
"types": [
"var"
]
}
]
},
"_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"
]
}
]
},
"id": {
"occurrences": 12,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 12,
"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": []
}
]
},
"EndpointContext": {
"occurrences": 16,
"arg_count": {
"min": 0,
"max": 2,
"common": 0
},
"patterns": [
{
"count": 15,
"args": 0,
"types": []
},
{
"count": 1,
"args": 2,
"types": [
"var",
"kwarg"
]
}
]
},
"_update_scope": {
"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"
]
}
]
},
"_iter_accept_media_types": {
"occurrences": 3,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 3,
"args": 1,
"types": [
"call"
]
}
]
},
"_serialize_item": {
"occurrences": 6,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 6,
"args": 1,
"types": [
"var"
]
}
]
},
"PlainTextResponse": {
"occurrences": 3,
"arg_count": {
"min": 3,
"max": 3,
"common": 3
},
"patterns": [
{
"count": 3,
"args": 3,
"types": [
"lit",
"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"
]
}
]
},
"nested_context": {
"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"
]
}
]
},
"asynccontextmanager": {
"occurrences": 3,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 3,
"args": 1,
"types": [
"var"
]
}
]
},
"original_context": {
"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": []
}
]
},
"_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"
]
}
]
},
"AssertionError": {
"occurrences": 12,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 12,
"args": 1,
"types": [
"lit"
]
}
]
},
"_async_stream_jsonl": {
"occurrences": 3,
"arg_count": {
"min": 0,
"max": 0,
"common": 0
},
"patterns": [
{
"count": 3,
"args": 0,
"types": []
}
]
},
"_APIRouteLike": {
"occurrences": 1,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 1,
"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"
]
}
]
},
"_EffectiveRouteContext": {
"occurrences": 15,
"arg_count": {
"min": 2,
"max": 2,
"common": 2
},
"patterns": [
{
"count": 15,
"args": 2,
"types": [
"kwarg",
"kwarg"
]
}
]
},
"_RouteWithPath": {
"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"
]
}
]
},
"_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"
]
}
]
},
"get_body_field": {
"occurrences": 3,
"arg_count": {
"min": 3,
"max": 3,
"common": 3
},
"patterns": [
{
"count": 3,
"args": 3,
"types": [
"kwarg",
"kwarg",
"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"
]
}
]
},
"len": {
"occurrences": 16,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 8,
"args": 1,
"types": [
"var"
]
},
{
"count": 8,
"args": 1,
"types": [
"other"
]
}
]
},
"_extract_endpoint_context": {
"occurrences": 6,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 6,
"args": 1,
"types": [
"other"
]
}
]
},
"object": {
"occurrences": 5,
"arg_count": {
"min": 0,
"max": 0,
"common": 0
},
"patterns": [
{
"count": 5,
"args": 0,
"types": []
}
]
},
"_serialize_sse_item": {
"occurrences": 3,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 3,
"args": 1,
"types": [
"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"
]
}
]
},
"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": []
}
]
},
"app": {
"occurrences": 3,
"arg_count": {
"min": 3,
"max": 3,
"common": 3
},
"patterns": [
{
"count": 3,
"args": 3,
"types": [
"var",
"var",
"var"
]
}
]
},
"_should_embed_body_fields": {
"occurrences": 3,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 3,
"args": 1,
"types": [
"other"
]
}
]
},
"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"
]
}
]
},
"APIRouter": {
"occurrences": 1,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 1,
"args": 1,
"types": [
"other"
]
}
]
},
"get_name": {
"occurrences": 6,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 6,
"args": 1,
"types": [
"var"
]
}
]
},
"get_flat_dependant": {
"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"
]
}
]
},
"_build_response_args": {
"occurrences": 6,
"arg_count": {
"min": 2,
"max": 2,
"common": 2
},
"patterns": [
{
"count": 6,
"args": 2,
"types": [
"kwarg",
"kwarg"
]
}
]
},
"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"
]
}
]
},
"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_stream_item_type": {
"occurrences": 3,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 3,
"args": 1,
"types": [
"var"
]
}
]
},
"get_dependant": {
"occurrences": 3,
"arg_count": {
"min": 3,
"max": 3,
"common": 3
},
"patterns": [
{
"count": 3,
"args": 3,
"types": [
"kwarg",
"kwarg",
"kwarg"
]
}
]
},
"StreamingResponse": {
"occurrences": 6,
"arg_count": {
"min": 3,
"max": 3,
"common": 3
},
"patterns": [
{
"count": 6,
"args": 3,
"types": [
"var",
"kwarg",
"kwarg"
]
}
]
},
"_get_scope_included_router": {
"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"
]
}
]
},
"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"
]
}
]
},
"get_typed_return_annotation": {
"occurrences": 3,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 3,
"args": 1,
"types": [
"var"
]
}
]
},
"_sse_with_checkpoints": {
"occurrences": 3,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 3,
"args": 1,
"types": [
"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"
]
}
]
},
"get_websocket_app": {
"occurrences": 3,
"arg_count": {
"min": 3,
"max": 3,
"common": 3
},
"patterns": [
{
"count": 3,
"args": 3,
"types": [
"kwarg",
"kwarg",
"kwarg"
]
}
]
},
"websocket_session": {
"occurrences": 3,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 3,
"args": 1,
"types": [
"call"
]
}
]
},
"WebSocket": {
"occurrences": 3,
"arg_count": {
"min": 3,
"max": 3,
"common": 3
},
"patterns": [
{
"count": 3,
"args": 3,
"types": [
"var",
"kwarg",
"kwarg"
]
}
]
},
"_is_frontend_navigation_request": {
"occurrences": 3,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 3,
"args": 1,
"types": [
"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"
]
}
]
},
"_DefaultLifespan": {
"occurrences": 3,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 3,
"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"
]
}
]
},
"_async_stream_raw": {
"occurrences": 3,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 3,
"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"
]
}
]
},
"ValidationException": {
"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"
]
}
]
},
"WebSocketException": {
"occurrences": 1,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 1,
"args": 1,
"types": [
"var"
]
}
]
}
}
},
{
"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": {
"FieldInfo": {
"occurrences": 6,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 6,
"args": 1,
"types": [
"kwarg"
]
}
]
},
"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"
]
}
]
},
"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"
]
}
]
},
"len": {
"occurrences": 4,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 4,
"args": 1,
"types": [
"var"
]
}
]
},
"_has_computed_fields": {
"occurrences": 6,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 6,
"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"
]
}
]
},
"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"
]
}
]
},
"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"
]
}
]
},
"ModelField": {
"occurrences": 9,
"arg_count": {
"min": 3,
"max": 3,
"common": 3
},
"patterns": [
{
"count": 9,
"args": 3,
"types": [
"kwarg",
"kwarg",
"kwarg"
]
}
]
},
"get_model_fields": {
"occurrences": 6,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 6,
"args": 1,
"types": [
"var"
]
}
]
},
"GenerateJsonSchema": {
"occurrences": 4,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 3,
"args": 1,
"types": [
"kwarg"
]
},
{
"count": 1,
"args": 1,
"types": [
"var"
]
}
]
},
"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"
]
}
]
},
"type": {
"occurrences": 10,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 5,
"args": 1,
"types": [
"lit"
]
},
{
"count": 5,
"args": 1,
"types": [
"var"
]
}
]
},
"create_model": {
"occurrences": 3,
"arg_count": {
"min": 2,
"max": 2,
"common": 2
},
"patterns": [
{
"count": 3,
"args": 2,
"types": [
"var",
"other"
]
}
]
},
"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"
]
}
]
},
"copy": {
"occurrences": 3,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 3,
"args": 1,
"types": [
"var"
]
}
]
},
"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"
]
}
]
},
"issubclass": {
"occurrences": 8,
"arg_count": {
"min": 2,
"max": 2,
"common": 2
},
"patterns": [
{
"count": 4,
"args": 2,
"types": [
"var",
"other"
]
},
{
"count": 4,
"args": 2,
"types": [
"var",
"var"
]
}
]
},
"get_flat_models_from_model": {
"occurrences": 6,
"arg_count": {
"min": 2,
"max": 2,
"common": 2
},
"patterns": [
{
"count": 6,
"args": 2,
"types": [
"var",
"kwarg"
]
}
]
},
"normalize_name": {
"occurrences": 3,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 3,
"args": 1,
"types": [
"other"
]
}
]
},
"asdict": {
"occurrences": 3,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 3,
"args": 1,
"types": [
"other"
]
}
]
},
"get_flat_models_from_annotation": {
"occurrences": 6,
"arg_count": {
"min": 2,
"max": 2,
"common": 2
},
"patterns": [
{
"count": 6,
"args": 2,
"types": [
"var",
"kwarg"
]
}
]
},
"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"
]
}
]
},
"Field": {
"occurrences": 3,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 3,
"args": 1,
"types": [
"other"
]
}
]
},
"is_dataclass": {
"occurrences": 6,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 6,
"args": 1,
"types": [
"var"
]
}
]
},
"TypeAdapter": {
"occurrences": 3,
"arg_count": {
"min": 3,
"max": 3,
"common": 3
},
"patterns": [
{
"count": 3,
"args": 3,
"types": [
"subscript",
"other",
"kwarg"
]
}
]
},
"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"
]
}
]
},
"class": {
"occurrences": 1,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 1,
"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"
]
}
]
},
"_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"
]
}
]
},
"int": {
"occurrences": 5,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 5,
"args": 1,
"types": [
"var"
]
}
]
},
"all": {
"occurrences": 12,
"arg_count": {
"min": 2,
"max": 2,
"common": 2
},
"patterns": [
{
"count": 12,
"args": 2,
"types": [
"call",
"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"
]
}
]
},
"hasattr": {
"occurrences": 8,
"arg_count": {
"min": 2,
"max": 2,
"common": 2
},
"patterns": [
{
"count": 8,
"args": 2,
"types": [
"var",
"lit"
]
}
]
},
"field_annotation_is_scalar": {
"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"
]
}
]
},
"any": {
"occurrences": 4,
"arg_count": {
"min": 2,
"max": 2,
"common": 2
},
"patterns": [
{
"count": 4,
"args": 2,
"types": [
"call",
"other"
]
}
]
},
"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"
]
}
]
},
"TypeVar": {
"occurrences": 3,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 3,
"args": 1,
"types": [
"lit"
]
}
]
},
"is_bytes_or_nonable_bytes_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": 2,
"types": [
"call",
"other"
]
},
{
"count": 5,
"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"
]
}
]
},
"field_annotation_is_scalar_sequence": {
"occurrences": 3,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 3,
"args": 1,
"types": [
"var"
]
}
]
}
}
},
{
"label": "fastapi/dependencies",
"method_count": 38,
"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": {
"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"
]
}
]
},
"_get_flat_fields_from_params": {
"occurrences": 12,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 12,
"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"
]
}
]
},
"serialize_sequence_value": {
"occurrences": 3,
"arg_count": {
"min": 2,
"max": 2,
"common": 2
},
"patterns": [
{
"count": 3,
"args": 2,
"types": [
"kwarg",
"kwarg"
]
}
]
},
"get_validation_alias": {
"occurrences": 30,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 30,
"args": 1,
"types": [
"var"
]
}
]
},
"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"
]
}
]
},
"len": {
"occurrences": 32,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 28,
"args": 1,
"types": [
"var"
]
},
{
"count": 4,
"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"
]
}
]
},
"ForwardRef": {
"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": []
}
]
},
"value_is_sequence": {
"occurrences": 3,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 3,
"args": 1,
"types": [
"var"
]
}
]
},
"get_missing_field_error": {
"occurrences": 6,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 3,
"args": 1,
"types": [
"kwarg"
]
},
{
"count": 3,
"args": 1,
"types": [
"var"
]
}
]
},
"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"
]
}
]
},
"get_args": {
"occurrences": 9,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 9,
"args": 1,
"types": [
"var"
]
}
]
},
"SolvedDependency": {
"occurrences": 3,
"arg_count": {
"min": 5,
"max": 5,
"common": 5
},
"patterns": [
{
"count": 3,
"args": 5,
"types": [
"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"
]
}
]
},
"SecurityScopes": {
"occurrences": 3,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 3,
"args": 1,
"types": [
"kwarg"
]
}
]
},
"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"
]
}
]
},
"request_params_to_args": {
"occurrences": 12,
"arg_count": {
"min": 2,
"max": 2,
"common": 2
},
"patterns": [
{
"count": 12,
"args": 2,
"types": [
"other",
"other"
]
}
]
},
"RuntimeError": {
"occurrences": 8,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 8,
"args": 1,
"types": [
"var"
]
}
]
},
"is_bytes_sequence_annotation": {
"occurrences": 3,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 3,
"args": 1,
"types": [
"other"
]
}
]
},
"Response": {
"occurrences": 3,
"arg_count": {
"min": 0,
"max": 0,
"common": 0
},
"patterns": [
{
"count": 3,
"args": 0,
"types": []
}
]
},
"_get_signature": {
"occurrences": 6,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 6,
"args": 1,
"types": [
"var"
]
}
]
},
"_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"
]
}
]
},
"request_body_to_args": {
"occurrences": 3,
"arg_count": {
"min": 4,
"max": 4,
"common": 4
},
"patterns": [
{
"count": 3,
"args": 4,
"types": [
"other",
"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"
]
}
]
},
"is_union_of_base_models": {
"occurrences": 3,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 3,
"args": 1,
"types": [
"other"
]
}
]
},
"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_typealiastype": {
"occurrences": 3,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 3,
"args": 1,
"types": [
"var"
]
}
]
},
"type": {
"occurrences": 10,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 5,
"args": 1,
"types": [
"var"
]
},
{
"count": 5,
"args": 1,
"types": [
"lit"
]
}
]
},
"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"
]
}
]
},
"list": {
"occurrences": 5,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 5,
"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"
]
}
]
},
"field_annotation_is_sequence": {
"occurrences": 6,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 6,
"args": 1,
"types": [
"other"
]
}
]
},
"_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"
]
}
]
},
"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"
]
}
]
},
"_extract_form_body": {
"occurrences": 3,
"arg_count": {
"min": 2,
"max": 2,
"common": 2
},
"patterns": [
{
"count": 3,
"args": 2,
"types": [
"var",
"var"
]
}
]
},
"is_uploadfile_sequence_annotation": {
"occurrences": 3,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 3,
"args": 1,
"types": [
"var"
]
}
]
},
"BodyFieldInfo": {
"occurrences": 3,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 3,
"args": 1,
"types": [
"other"
]
}
]
},
"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_json_field": {
"occurrences": 3,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 3,
"args": 1,
"types": [
"var"
]
}
]
},
"callable": {
"occurrences": 4,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 4,
"args": 1,
"types": [
"other"
]
}
]
},
"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"
]
}
]
},
"contextmanager": {
"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"
]
}
]
},
"copy": {
"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"
]
}
]
},
"field_annotation_is_scalar_sequence": {
"occurrences": 3,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 3,
"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"
]
}
]
},
"call": {
"occurrences": 3,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 3,
"args": 1,
"types": [
"other"
]
}
]
},
"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"
]
}
]
},
"BackgroundTasks": {
"occurrences": 3,
"arg_count": {
"min": 0,
"max": 0,
"common": 0
},
"patterns": [
{
"count": 3,
"args": 0,
"types": []
}
]
},
"is_bytes_or_nonable_bytes_annotation": {
"occurrences": 3,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 3,
"args": 1,
"types": [
"other"
]
}
]
},
"deepcopy": {
"occurrences": 6,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 6,
"args": 1,
"types": [
"other"
]
}
]
},
"asynccontextmanager": {
"occurrences": 3,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 3,
"args": 1,
"types": [
"other"
]
}
]
},
"_solve_generator": {
"occurrences": 3,
"arg_count": {
"min": 3,
"max": 3,
"common": 3
},
"patterns": [
{
"count": 3,
"args": 3,
"types": [
"kwarg",
"kwarg",
"kwarg"
]
}
]
},
"get_origin": {
"occurrences": 9,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 9,
"args": 1,
"types": [
"var"
]
}
]
},
"field_annotation_is_scalar": {
"occurrences": 3,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 3,
"args": 1,
"types": [
"kwarg"
]
}
]
},
"analyze_param": {
"occurrences": 3,
"arg_count": {
"min": 4,
"max": 4,
"common": 4
},
"patterns": [
{
"count": 3,
"args": 4,
"types": [
"kwarg",
"kwarg",
"kwarg",
"kwarg"
]
}
]
},
"evaluate_forwardref": {
"occurrences": 3,
"arg_count": {
"min": 3,
"max": 3,
"common": 3
},
"patterns": [
{
"count": 3,
"args": 3,
"types": [
"var",
"var",
"var"
]
}
]
},
"DependencyScopeError": {
"occurrences": 3,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 3,
"args": 1,
"types": [
"other"
]
}
]
},
"_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"
]
}
]
},
"_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"
]
}
]
},
"iscoroutinefunction": {
"occurrences": 18,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 18,
"args": 1,
"types": [
"call"
]
}
]
},
"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": {
"get_fields_from_routes": {
"occurrences": 6,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 3,
"args": 1,
"types": [
"expr"
]
},
{
"count": 3,
"args": 1,
"types": [
"other"
]
}
]
},
"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"
]
}
]
},
"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"
]
}
]
},
"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"
]
}
]
},
"len": {
"occurrences": 4,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 4,
"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_api_route_for_openapi": {
"occurrences": 9,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 9,
"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"
]
}
]
},
"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"
]
}
]
},
"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_openapi_path": {
"occurrences": 9,
"arg_count": {
"min": 5,
"max": 5,
"common": 5
},
"patterns": [
{
"count": 9,
"args": 5,
"types": [
"kwarg",
"kwarg",
"kwarg",
"kwarg",
"kwarg"
]
}
]
},
"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"
]
}
]
},
"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"
]
}
]
},
"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"
]
}
]
},
"int": {
"occurrences": 5,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 5,
"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"
]
}
]
},
"get_definitions": {
"occurrences": 3,
"arg_count": {
"min": 3,
"max": 3,
"common": 3
},
"patterns": [
{
"count": 3,
"args": 3,
"types": [
"kwarg",
"kwarg",
"kwarg"
]
}
]
},
"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_flat_params": {
"occurrences": 6,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 6,
"args": 1,
"types": [
"other"
]
}
]
},
"set": {
"occurrences": 10,
"arg_count": {
"min": 0,
"max": 0,
"common": 0
},
"patterns": [
{
"count": 10,
"args": 0,
"types": []
}
]
},
"sorted": {
"occurrences": 4,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 4,
"args": 1,
"types": [
"var"
]
}
]
},
"is_body_allowed_for_status_code": {
"occurrences": 3,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 3,
"args": 1,
"types": [
"other"
]
}
]
},
"get_validation_alias": {
"occurrences": 3,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 3,
"args": 1,
"types": [
"var"
]
}
]
},
"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"
]
}
]
},
"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"
]
}
]
},
"OpenAPI": {
"occurrences": 4,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 3,
"args": 1,
"types": [
"other"
]
},
{
"count": 1,
"args": 1,
"types": [
"var"
]
}
]
},
"get_model_name_map": {
"occurrences": 3,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 3,
"args": 1,
"types": [
"var"
]
}
]
},
"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"
]
}
]
},
"any": {
"occurrences": 4,
"arg_count": {
"min": 2,
"max": 2,
"common": 2
},
"patterns": [
{
"count": 4,
"args": 2,
"types": [
"expr",
"other"
]
}
]
},
"Doc": {
"occurrences": 42,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 42,
"args": 1,
"types": [
"lit"
]
}
]
},
"_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"
]
}
]
},
"HTMLResponse": {
"occurrences": 9,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 6,
"args": 1,
"types": [
"var"
]
},
{
"count": 3,
"args": 1,
"types": [
"kwarg"
]
}
]
},
"Example": {
"occurrences": 1,
"arg_count": {
"min": 2,
"max": 2,
"common": 2
},
"patterns": [
{
"count": 1,
"args": 2,
"types": [
"var",
"kwarg"
]
}
]
},
"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"
]
}
]
},
"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"
]
}
]
},
"with_info_plain_validator_function": {
"occurrences": 3,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 3,
"args": 1,
"types": [
"other"
]
}
]
},
"Server": {
"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"
]
}
]
},
"HTTPBase": {
"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"
]
}
]
},
"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"
]
}
]
},
"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"
]
}
]
},
"Info": {
"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"
]
}
]
},
"Contact": {
"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"
]
}
]
},
"Parameter": {
"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"
]
}
]
},
"Header": {
"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"
]
}
]
},
"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"
]
}
]
},
"EmailStr": {
"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"
]
}
]
},
"Response": {
"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"
]
}
]
},
"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"
]
}
]
},
"OAuthFlowPassword": {
"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"
]
}
]
},
"OAuthFlowClientCredentials": {
"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"
]
}
]
},
"ExternalDocumentation": {
"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"
]
}
]
},
"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"
]
}
]
},
"typing_deprecated": {
"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"
]
}
]
},
"Discriminator": {
"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,
"algorithm": "CRX",
"grammar": "root ::= (\"APIKey\" | \"APIKeyIn\" | \"Annotated\" | \"Any\" | \"Doc\" | \"Error\" | \"HTTPAuthorizationCredentials\" | \"HTTPBaseModel\" | \"HTTPBasicCredentials\" | \"HTTPBearerModel\" | \"HTTPException\" | \"HTTP_401_UNAUTHORIZED\" | \"OAuth2Model\" | \"OAuthFlowsModel\" | \"OpenIdConnectModel\" | \"UnicodeDecodeError\" | \"ValueError\" | \"_\" | \"__class__\" | \"__init__\" | \"__name__\" | \"and\" | \"api_key\" | \"authorization\" | \"authorizationCode\" | \"authorizationUrl\" | \"authorization_header_value\" | \"auto_error\" | \"b64decode\" | \"bearerFormat\" | \"binascii\" | \"cast\" | \"check_api_key\" | \"client_id\" | \"cookie\" | \"cookies\" | \"credentials\" | \"data\" | \"decode\" | \"description\" | \"detail\" | \"e\" | \"else\" | \"except\" | \"flows\" | \"from\" | \"get\" | \"get_authorization_scheme_param\" | \"grant_type\" | \"header\" | \"headers\" | \"if\" | \"join\" | \"list\" | \"location\" | \"lower\" | \"make_not_authenticated_error\" | \"model\" | \"name\" | \"not\" | \"openIdConnectUrl\" | \"or\" | \"param\" | \"partition\" | \"password\" | \"query\" | \"query_params\" | \"raise\" | \"realm\" | \"refreshUrl\" | \"request\" | \"return\" | \"scheme\" | \"scheme_name\" | \"scope\" | \"scope_str\" | \"scopes\" | \"self\" | \"separator\" | \"split\" | \"status_code\" | \"str\" | \"super\" | \"tokenUrl\" | \"try\" | \"username\")+ (\"client_secret\" | \"make_authenticate_headers\" | \"strip\" | \"title\")?+",
"mdl_score": 1000000000000,
"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"
]
}
]
},
"HTTPException": {
"occurrences": 12,
"arg_count": {
"min": 3,
"max": 3,
"common": 3
},
"patterns": [
{
"count": 12,
"args": 3,
"types": [
"kwarg",
"kwarg",
"kwarg"
]
}
]
},
"OpenIdConnectModel": {
"occurrences": 3,
"arg_count": {
"min": 2,
"max": 2,
"common": 2
},
"patterns": [
{
"count": 3,
"args": 2,
"types": [
"kwarg",
"kwarg"
]
}
]
},
"OpenIdConnect": {
"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"
]
}
]
},
"super": {
"occurrences": 24,
"arg_count": {
"min": 0,
"max": 0,
"common": 0
},
"patterns": [
{
"count": 24,
"args": 0,
"types": []
}
]
},
"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"
]
}
]
},
"APIKeyHeader": {
"occurrences": 1,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 1,
"args": 1,
"types": [
"var"
]
}
]
},
"Form": {
"occurrences": 36,
"arg_count": {
"min": 0,
"max": 1,
"common": 0
},
"patterns": [
{
"count": 24,
"args": 0,
"types": []
},
{
"count": 12,
"args": 1,
"types": [
"kwarg"
]
}
]
},
"get_authorization_scheme_param": {
"occurrences": 18,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 18,
"args": 1,
"types": [
"var"
]
}
]
},
"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"
]
}
]
},
"OAuthFlowsModel": {
"occurrences": 9,
"arg_count": {
"min": 0,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 6,
"args": 1,
"types": [
"kwarg"
]
},
{
"count": 3,
"args": 0,
"types": []
}
]
},
"OAuth2Model": {
"occurrences": 3,
"arg_count": {
"min": 2,
"max": 2,
"common": 2
},
"patterns": [
{
"count": 3,
"args": 2,
"types": [
"kwarg",
"kwarg"
]
}
]
},
"OAuth2": {
"occurrences": 1,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 1,
"args": 1,
"types": [
"var"
]
}
]
},
"OAuth2AuthorizationCodeBearer": {
"occurrences": 1,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 1,
"args": 1,
"types": [
"var"
]
}
]
},
"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"
]
}
]
},
"HTTPBaseModel": {
"occurrences": 9,
"arg_count": {
"min": 2,
"max": 2,
"common": 2
},
"patterns": [
{
"count": 9,
"args": 2,
"types": [
"kwarg",
"kwarg"
]
}
]
},
"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"
]
}
]
},
"HTTPBase": {
"occurrences": 1,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"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"
]
}
]
},
"b64decode": {
"occurrences": 3,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 3,
"args": 1,
"types": [
"var"
]
}
]
},
"HTTPDigest": {
"occurrences": 1,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 1,
"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"
]
}
]
},
"HTTPBearer": {
"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": {
"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"
]
}
]
},
"CommentsDiscussion": {
"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"
]
}
]
},
"PartialGitHubEvent": {
"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": []
}
]
},
"get_graphql_translation_discussion_comments_edges": {
"occurrences": 6,
"arg_count": {
"min": 2,
"max": 3,
"common": 2
},
"patterns": [
{
"count": 3,
"args": 3,
"types": [
"kwarg",
"kwarg",
"kwarg"
]
},
{
"count": 3,
"args": 2,
"types": [
"kwarg",
"kwarg"
]
}
]
},
"Comments": {
"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"
]
}
]
},
"create_comment": {
"occurrences": 3,
"arg_count": {
"min": 3,
"max": 3,
"common": 3
},
"patterns": [
{
"count": 3,
"args": 3,
"types": [
"kwarg",
"kwarg",
"kwarg"
]
}
]
},
"AllDiscussionsDiscussionLabels": {
"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"
]
}
]
},
"CommentsEdge": {
"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"
]
}
]
},
"UpdateDiscussionComment": {
"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"
]
}
]
},
"AllDiscussionsLabelsEdge": {
"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"
]
}
]
},
"AddCommentData": {
"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"
]
}
]
},
"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"
]
}
]
},
"AddDiscussionComment": {
"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"
]
}
]
},
"AddCommentResponse": {
"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"
]
}
]
},
"CommentsRepository": {
"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"
]
}
]
},
"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"
]
}
]
},
"AllDiscussionsDiscussionNode": {
"occurrences": 1,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 1,
"args": 1,
"types": [
"var"
]
}
]
},
"update_comment": {
"occurrences": 3,
"arg_count": {
"min": 3,
"max": 3,
"common": 3
},
"patterns": [
{
"count": 3,
"args": 3,
"types": [
"kwarg",
"kwarg",
"kwarg"
]
}
]
},
"UpdateCommentResponse": {
"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": [
"var"
]
},
{
"count": 3,
"args": 1,
"types": [
"kwarg"
]
}
]
},
"UpdateCommentData": {
"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"
]
}
]
},
"str": {
"occurrences": 180,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 180,
"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"
]
}
]
},
"list": {
"occurrences": 65,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 60,
"args": 1,
"types": [
"call"
]
},
{
"count": 5,
"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"
]
}
]
},
"remove_header_permalinks": {
"occurrences": 3,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 3,
"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"
]
}
]
},
"super": {
"occurrences": 4,
"arg_count": {
"min": 0,
"max": 0,
"common": 0
},
"patterns": [
{
"count": 4,
"args": 0,
"types": []
}
]
},
"get_lang_paths": {
"occurrences": 15,
"arg_count": {
"min": 0,
"max": 0,
"common": 0
},
"patterns": [
{
"count": 15,
"args": 0,
"types": []
}
]
},
"update_languages": {
"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": []
}
]
},
"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"
]
}
]
},
"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"
]
}
]
},
"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"
]
}
]
},
"slugify": {
"occurrences": 3,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 3,
"args": 1,
"types": [
"call"
]
}
]
},
"get_en_config": {
"occurrences": 6,
"arg_count": {
"min": 0,
"max": 0,
"common": 0
},
"patterns": [
{
"count": 6,
"args": 0,
"types": []
}
]
},
"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"
]
}
]
},
"set": {
"occurrences": 10,
"arg_count": {
"min": 0,
"max": 0,
"common": 0
},
"patterns": [
{
"count": 10,
"args": 0,
"types": []
}
]
},
"py_slugify": {
"occurrences": 3,
"arg_count": {
"min": 2,
"max": 2,
"common": 2
},
"patterns": [
{
"count": 3,
"args": 2,
"types": [
"var",
"kwarg"
]
}
]
},
"render_banner_sponsors": {
"occurrences": 6,
"arg_count": {
"min": 0,
"max": 0,
"common": 0
},
"patterns": [
{
"count": 6,
"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"
]
}
]
},
"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"
]
}
]
},
"Template": {
"occurrences": 6,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 6,
"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"
]
}
]
},
"add_permalinks_page": {
"occurrences": 6,
"arg_count": {
"min": 2,
"max": 2,
"common": 2
},
"patterns": [
{
"count": 6,
"args": 2,
"types": [
"var",
"kwarg"
]
}
]
},
"get_zensical_theme_language": {
"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"
]
}
]
},
"add_markdown_notice": {
"occurrences": 6,
"arg_count": {
"min": 2,
"max": 2,
"common": 2
},
"patterns": [
{
"count": 6,
"args": 2,
"types": [
"var",
"var"
]
}
]
},
"Pool": {
"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"
]
}
]
},
"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": []
}
]
},
"split_markdown_header": {
"occurrences": 3,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 3,
"args": 1,
"types": [
"var"
]
}
]
},
"generate_readme_content": {
"occurrences": 3,
"arg_count": {
"min": 0,
"max": 0,
"common": 0
},
"patterns": [
{
"count": 3,
"args": 0,
"types": []
}
]
},
"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"
]
}
]
},
"get_langs": {
"occurrences": 9,
"arg_count": {
"min": 0,
"max": 0,
"common": 0
},
"patterns": [
{
"count": 9,
"args": 0,
"types": []
}
]
},
"list_all_removable": {
"occurrences": 3,
"arg_count": {
"min": 0,
"max": 0,
"common": 0
},
"patterns": [
{
"count": 3,
"args": 0,
"types": []
}
]
},
"list_removable": {
"occurrences": 6,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 6,
"args": 1,
"types": [
"var"
]
}
]
},
"add_missing": {
"occurrences": 3,
"arg_count": {
"min": 2,
"max": 2,
"common": 2
},
"patterns": [
{
"count": 3,
"args": 2,
"types": [
"kwarg",
"kwarg"
]
}
]
},
"check_translation": {
"occurrences": 6,
"arg_count": {
"min": 5,
"max": 5,
"common": 5
},
"patterns": [
{
"count": 6,
"args": 5,
"types": [
"kwarg",
"kwarg",
"kwarg",
"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"
]
}
]
},
"get_prompt": {
"occurrences": 3,
"arg_count": {
"min": 6,
"max": 6,
"common": 6
},
"patterns": [
{
"count": 3,
"args": 6,
"types": [
"kwarg",
"kwarg",
"kwarg",
"kwarg",
"kwarg",
"kwarg"
]
}
]
},
"translate_page": {
"occurrences": 9,
"arg_count": {
"min": 2,
"max": 2,
"common": 2
},
"patterns": [
{
"count": 9,
"args": 2,
"types": [
"kwarg",
"kwarg"
]
}
]
},
"list_outdated": {
"occurrences": 3,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 3,
"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"
]
}
]
},
"update_outdated": {
"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": []
}
]
},
"generate_en_path": {
"occurrences": 3,
"arg_count": {
"min": 2,
"max": 2,
"common": 2
},
"patterns": [
{
"count": 3,
"args": 2,
"types": [
"kwarg",
"kwarg"
]
}
]
},
"Agent": {
"occurrences": 3,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 3,
"args": 1,
"types": [
"lit"
]
}
]
},
"get_llm_translatable": {
"occurrences": 6,
"arg_count": {
"min": 0,
"max": 0,
"common": 0
},
"patterns": [
{
"count": 6,
"args": 0,
"types": []
}
]
},
"list_missing": {
"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"
]
}
]
},
"iter_all_en_paths": {
"occurrences": 3,
"arg_count": {
"min": 0,
"max": 0,
"common": 0
},
"patterns": [
{
"count": 3,
"args": 0,
"types": []
}
]
},
"process_one_page": {
"occurrences": 6,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 6,
"args": 1,
"types": [
"var"
]
}
]
},
"cli": {
"occurrences": 3,
"arg_count": {
"min": 0,
"max": 0,
"common": 0
},
"patterns": [
{
"count": 3,
"args": 0,
"types": []
}
]
},
"get_all_paths": {
"occurrences": 3,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 3,
"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"
]
}
]
},
"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"
]
}
]
},
"Author": {
"occurrences": 2,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 2,
"args": 1,
"types": [
"var"
]
}
]
},
"get_graphql_question_discussion_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"
]
}
]
},
"timedelta": {
"occurrences": 12,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 12,
"args": 1,
"types": [
"kwarg"
]
}
]
},
"DiscussionsResponseData": {
"occurrences": 1,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 1,
"args": 1,
"types": [
"var"
]
}
]
},
"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"
]
}
]
},
"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"
]
}
]
},
"DiscussionsCommentsNode": {
"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"
]
}
]
},
"get_users_to_write": {
"occurrences": 24,
"arg_count": {
"min": 2,
"max": 2,
"common": 2
},
"patterns": [
{
"count": 24,
"args": 2,
"types": [
"kwarg",
"kwarg"
]
}
]
},
"update_content": {
"occurrences": 15,
"arg_count": {
"min": 2,
"max": 2,
"common": 2
},
"patterns": [
{
"count": 15,
"args": 2,
"types": [
"kwarg",
"kwarg"
]
}
]
},
"DiscussionsResponse": {
"occurrences": 1,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 1,
"args": 1,
"types": [
"var"
]
}
]
},
"isinstance": {
"occurrences": 24,
"arg_count": {
"min": 2,
"max": 2,
"common": 2
},
"patterns": [
{
"count": 24,
"args": 2,
"types": [
"var",
"var"
]
}
]
},
"get_discussion_nodes": {
"occurrences": 3,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 3,
"args": 1,
"types": [
"kwarg"
]
}
]
},
"RateLimiter": {
"occurrences": 3,
"arg_count": {
"min": 0,
"max": 0,
"common": 0
},
"patterns": [
{
"count": 3,
"args": 0,
"types": []
}
]
},
"DiscussionsNode": {
"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"
]
}
]
},
"get_discussions_experts": {
"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"
]
}
]
},
"DiscussionsComments": {
"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"
]
}
]
},
"Discussions": {
"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"
]
}
]
},
"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"
]
}
]
},
"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"
]
}
]
},
"PRsRepository": {
"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"
]
}
]
},
"get_contributors": {
"occurrences": 3,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 3,
"args": 1,
"types": [
"kwarg"
]
}
]
},
"ReviewNode": {
"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"
]
}
]
},
"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"
]
}
]
},
"PullRequestNode": {
"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"
]
}
]
},
"LabelNode": {
"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"
]
}
]
},
"get_pr_nodes": {
"occurrences": 3,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 3,
"args": 1,
"types": [
"kwarg"
]
}
]
},
"PullRequests": {
"occurrences": 1,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 1,
"args": 1,
"types": [
"var"
]
}
]
},
"PRsResponse": {
"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_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"
]
}
]
},
"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"
]
}
]
},
"parse_version": {
"occurrences": 9,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 9,
"args": 1,
"types": [
"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"
]
}
]
},
"bump_version": {
"occurrences": 3,
"arg_count": {
"min": 2,
"max": 2,
"common": 2
},
"patterns": [
{
"count": 3,
"args": 2,
"types": [
"call",
"var"
]
}
]
},
"get_release_notes_body": {
"occurrences": 3,
"arg_count": {
"min": 3,
"max": 3,
"common": 3
},
"patterns": [
{
"count": 3,
"args": 3,
"types": [
"call",
"var",
"var"
]
}
]
},
"SponsorsUser": {
"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"
]
}
]
},
"SponsorshipAsMaintainer": {
"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"
]
}
]
},
"SponsorsResponseData": {
"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"
]
}
]
},
"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"
]
}
]
},
"SponsorsResponse": {
"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"
]
}
]
},
"SponsorEntity": {
"occurrences": 1,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"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"
]
}
]
},
"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_header_permalinks": {
"occurrences": 6,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 6,
"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"
]
}
]
},
"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"
]
}
]
},
"_add_lang_code_to_url": {
"occurrences": 6,
"arg_count": {
"min": 2,
"max": 2,
"common": 2
},
"patterns": [
{
"count": 6,
"args": 2,
"types": [
"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"
]
}
]
},
"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_header_permalinks": {
"occurrences": 3,
"arg_count": {
"min": 3,
"max": 3,
"common": 3
},
"patterns": [
{
"count": 3,
"args": 3,
"types": [
"var",
"var",
"var"
]
}
]
},
"extract_code_includes": {
"occurrences": 6,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 6,
"args": 1,
"types": [
"var"
]
}
]
},
"replace_code_includes_with_placeholders": {
"occurrences": 3,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 3,
"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"
]
}
]
},
"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"
]
}
]
},
"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_markdown_links": {
"occurrences": 3,
"arg_count": {
"min": 4,
"max": 4,
"common": 4
},
"patterns": [
{
"count": 3,
"args": 4,
"types": [
"var",
"var",
"var",
"var"
]
}
]
},
"_construct_html_link": {
"occurrences": 3,
"arg_count": {
"min": 3,
"max": 3,
"common": 3
},
"patterns": [
{
"count": 3,
"args": 3,
"types": [
"kwarg",
"kwarg",
"kwarg"
]
}
]
},
"extract_html_links": {
"occurrences": 6,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 6,
"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"
]
}
]
},
"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"
]
}
]
},
"_construct_markdown_link": {
"occurrences": 3,
"arg_count": {
"min": 5,
"max": 5,
"common": 5
},
"patterns": [
{
"count": 3,
"args": 5,
"types": [
"kwarg",
"kwarg",
"kwarg",
"kwarg",
"kwarg"
]
}
]
},
"get_code_block_lang": {
"occurrences": 6,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 6,
"args": 1,
"types": [
"var"
]
}
]
},
"replace_html_links": {
"occurrences": 3,
"arg_count": {
"min": 4,
"max": 4,
"common": 4
},
"patterns": [
{
"count": 3,
"args": 4,
"types": [
"var",
"var",
"var",
"var"
]
}
]
},
"_split_slashes_comment": {
"occurrences": 6,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 6,
"args": 1,
"types": [
"var"
]
}
]
},
"_split_hash_comment": {
"occurrences": 6,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 6,
"args": 1,
"types": [
"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": 1000000000000,
"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"
]
}
]
},
"run": {
"occurrences": 21,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 21,
"args": 1,
"types": [
"var"
]
}
]
},
"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,
"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,
"algorithm": "CRX",
"grammar": "root ::= \"changing_dir\"?+ \"tmp_path\"? (\"Path\" | \"THIS_DIR\" | \"chdir\" | \"cli\" | \"copy\" | \"data_path\" | \"directory\" | \"docs_dir\" | \"en_docs_dir\" | \"en_file_path\" | \"exist_ok\" | \"exit_code\" | \"expected_content\" | \"finally\" | \"fixed_content\" | \"for\" | \"fspath\" | \"getcwd\" | \"if\" | \"in\" | \"initial_dir\" | \"invoke\" | \"is_relative_to\" | \"item\" | \"item_path\" | \"items\" | \"lang_docs_dir\" | \"mkdir\" | \"os\" | \"output\" | \"param\" | \"parents\" | \"platform\" | \"read_text\" | \"request\" | \"resolve\" | \"result\" | \"return\" | \"root_dir\" | \"runner\" | \"shutil\" | \"str\" | \"sys\" | \"translation_file_path\" | \"try\" | \"yield\")+ \"add_marker\"?+ (\"CliRunner\" | \"cwd\")?+ \"skip_on_windows\"?",
"mdl_score": 1000000000000,
"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,
"algorithm": "CRX",
"grammar": "root ::= (\"Path\" | \"cli\" | \"data_path\" | \"exit_code\" | \"expected_content\" | \"fixed_content\" | \"in\" | \"invoke\" | \"not\" | \"not in\" | \"output\" | \"read_text\" | \"result\" | \"root_dir\" | \"runner\")+",
"mdl_score": 1000000000000,
"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": 1000000000000,
"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 ::= (\"@\" | \"FastAPI\" | \"TestClient\" | \"app\" | \"client\" | \"data\" | \"def\" | \"get\" | \"headers\" | \"in\" | \"json\" | \"post\" | \"pytest\" | \"raises\" | \"response\" | \"return\" | \"status_code\" | \"str\" | \"text\" | \"value\" | \"yield\")+ \"snapshot\"?+",
"mdl_score": 1000000000000,
"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": {
"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"
]
}
]
},
"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"
]
}
]
},
"HTTPBearer": {
"occurrences": 21,
"arg_count": {
"min": 0,
"max": 1,
"common": 0
},
"patterns": [
{
"count": 15,
"args": 0,
"types": []
},
{
"count": 6,
"args": 1,
"types": [
"kwarg"
]
}
]
},
"snapshot": {
"occurrences": 318,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 318,
"args": 1,
"types": [
"other"
]
}
]
},
"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"
]
}
]
},
"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"
]
}
]
},
"b64encode": {
"occurrences": 9,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 9,
"args": 1,
"types": [
"lit"
]
}
]
},
"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"
]
}
]
},
"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"
]
}
]
},
"APIRouteB": {
"occurrences": 1,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 1,
"args": 1,
"types": [
"var"
]
}
]
},
"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"
]
}
]
},
"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"
]
}
]
},
"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"
]
}
]
},
"ModelWithRef": {
"occurrences": 1,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 1,
"args": 1,
"types": [
"var"
]
}
]
},
"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"
]
}
]
},
"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"
]
}
]
},
"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"
]
}
]
},
"Schema": {
"occurrences": 6,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 6,
"args": 1,
"types": [
"kwarg"
]
}
]
},
"NotImplementedError": {
"occurrences": 12,
"arg_count": {
"min": 0,
"max": 0,
"common": 0
},
"patterns": [
{
"count": 12,
"args": 0,
"types": []
}
]
},
"app": {
"occurrences": 9,
"arg_count": {
"min": 3,
"max": 3,
"common": 3
},
"patterns": [
{
"count": 9,
"args": 3,
"types": [
"var",
"var",
"var"
]
}
]
},
"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"
]
}
]
},
"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"
]
}
]
},
"WebSocket": {
"occurrences": 3,
"arg_count": {
"min": 3,
"max": 3,
"common": 3
},
"patterns": [
{
"count": 3,
"args": 3,
"types": [
"var",
"kwarg",
"kwarg"
]
}
]
},
"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"
]
}
]
},
"call_next": {
"occurrences": 15,
"arg_count": {
"min": 0,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 9,
"args": 1,
"types": [
"var"
]
},
{
"count": 6,
"args": 0,
"types": []
}
]
},
"Middleware": {
"occurrences": 6,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 6,
"args": 1,
"types": [
"var"
]
}
]
},
"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"
]
}
]
},
"MyModel": {
"occurrences": 9,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 6,
"args": 1,
"types": [
"kwarg"
]
},
{
"count": 3,
"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"
]
}
]
},
"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"
]
}
]
},
"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": [
"lit"
]
},
{
"count": 12,
"args": 1,
"types": [
"other"
]
},
{
"count": 9,
"args": 2,
"types": [
"kwarg",
"kwarg"
]
}
]
},
"OAuth2AuthorizationCodeBearer": {
"occurrences": 12,
"arg_count": {
"min": 3,
"max": 4,
"common": 3
},
"patterns": [
{
"count": 6,
"args": 4,
"types": [
"kwarg",
"kwarg",
"kwarg",
"kwarg"
]
},
{
"count": 6,
"args": 3,
"types": [
"kwarg",
"kwarg",
"kwarg"
]
}
]
},
"get_client": {
"occurrences": 24,
"arg_count": {
"min": 0,
"max": 0,
"common": 0
},
"patterns": [
{
"count": 24,
"args": 0,
"types": []
}
]
},
"Form": {
"occurrences": 75,
"arg_count": {
"min": 0,
"max": 1,
"common": 0
},
"patterns": [
{
"count": 72,
"args": 0,
"types": []
},
{
"count": 3,
"args": 1,
"types": [
"kwarg"
]
}
]
},
"getattr": {
"occurrences": 20,
"arg_count": {
"min": 2,
"max": 3,
"common": 3
},
"patterns": [
{
"count": 8,
"args": 2,
"types": [
"var",
"var"
]
},
{
"count": 8,
"args": 3,
"types": [
"var",
"lit",
"lit"
]
},
{
"count": 4,
"args": 3,
"types": [
"var",
"lit",
"other"
]
}
]
},
"print": {
"occurrences": 12,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 12,
"args": 1,
"types": [
"other"
]
}
]
},
"len": {
"occurrences": 76,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 60,
"args": 1,
"types": [
"var"
]
},
{
"count": 4,
"args": 1,
"types": [
"other"
]
},
{
"count": 4,
"args": 1,
"types": [
"expr"
]
},
{
"count": 4,
"args": 1,
"types": [
"subscript"
]
},
{
"count": 4,
"args": 1,
"types": [
"call"
]
}
]
},
"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"
]
}
]
},
"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"
]
}
]
},
"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"
]
}
]
},
"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"
]
}
]
},
"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"
]
}
]
},
"SomeCustomClass": {
"occurrences": 4,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 3,
"args": 1,
"types": [
"kwarg"
]
},
{
"count": 1,
"args": 1,
"types": [
"var"
]
}
]
},
"MyUuid": {
"occurrences": 6,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 6,
"args": 1,
"types": [
"lit"
]
}
]
},
"field_serializer": {
"occurrences": 12,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 12,
"args": 1,
"types": [
"lit"
]
}
]
},
"type": {
"occurrences": 5,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 5,
"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"
]
}
]
},
"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"
]
}
]
},
"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": []
}
]
},
"ValueError": {
"occurrences": 20,
"arg_count": {
"min": 0,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 16,
"args": 1,
"types": [
"lit"
]
},
{
"count": 4,
"args": 0,
"types": []
}
]
},
"ResponseModel": {
"occurrences": 5,
"arg_count": {
"min": 0,
"max": 1,
"common": 0
},
"patterns": [
{
"count": 3,
"args": 0,
"types": []
},
{
"count": 2,
"args": 1,
"types": [
"var"
]
}
]
},
"ExtendedItem": {
"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": 5,
"types": [
"kwarg",
"kwarg",
"kwarg",
"kwarg",
"kwarg"
]
},
{
"count": 3,
"args": 2,
"types": [
"kwarg",
"kwarg"
]
}
]
},
"bytes": {
"occurrences": 45,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 45,
"args": 1,
"types": [
"other"
]
}
]
},
"CallableDependency": {
"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": []
}
]
},
"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": []
}
]
},
"instance": {
"occurrences": 12,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 12,
"args": 1,
"types": [
"var"
]
}
]
},
"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"
]
}
]
},
"AsyncCallableDependency": {
"occurrences": 6,
"arg_count": {
"min": 0,
"max": 0,
"common": 0
},
"patterns": [
{
"count": 6,
"args": 0,
"types": []
}
]
},
"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"
]
}
]
},
"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": []
}
]
},
"Model": {
"occurrences": 17,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 9,
"args": 1,
"types": [
"kwarg"
]
},
{
"count": 8,
"args": 1,
"types": [
"var"
]
}
]
},
"is_bytes_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"
]
}
]
},
"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"
]
}
]
},
"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"
]
}
]
},
"Cookie": {
"occurrences": 39,
"arg_count": {
"min": 0,
"max": 3,
"common": 1
},
"patterns": [
{
"count": 9,
"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"
]
}
]
},
"object": {
"occurrences": 15,
"arg_count": {
"min": 0,
"max": 0,
"common": 0
},
"patterns": [
{
"count": 15,
"args": 0,
"types": []
}
]
},
"ForwardRefModel": {
"occurrences": 4,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 3,
"args": 1,
"types": [
"kwarg"
]
},
{
"count": 1,
"args": 1,
"types": [
"var"
]
}
]
},
"OverrideResponse": {
"occurrences": 2,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 2,
"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"
]
}
]
},
"Decimal": {
"occurrences": 18,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 18,
"args": 1,
"types": [
"lit"
]
}
]
},
"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"
]
}
]
},
"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"
]
}
]
},
"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"
]
}
]
},
"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"
]
}
]
},
"IsPartialDict": {
"occurrences": 3,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 3,
"args": 1,
"types": [
"other"
]
}
]
},
"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"
]
}
]
},
"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"
]
}
]
},
"PetOut": {
"occurrences": 2,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 2,
"args": 1,
"types": [
"var"
]
}
]
},
"UserCreate": {
"occurrences": 2,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 2,
"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"
]
}
]
},
"HeaderRouter": {
"occurrences": 4,
"arg_count": {
"min": 0,
"max": 1,
"common": 0
},
"patterns": [
{
"count": 3,
"args": 0,
"types": []
},
{
"count": 1,
"args": 1,
"types": [
"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"
]
}
]
},
"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"
]
}
]
},
"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"
]
}
]
},
"set": {
"occurrences": 40,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 30,
"args": 1,
"types": [
"subscript"
]
},
{
"count": 5,
"args": 1,
"types": [
"var"
]
},
{
"count": 5,
"args": 1,
"types": [
"call"
]
}
]
},
"iter_route_contexts": {
"occurrences": 15,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 15,
"args": 1,
"types": [
"other"
]
}
]
},
"_iter_included_route_candidates": {
"occurrences": 6,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 6,
"args": 1,
"types": [
"other"
]
}
]
},
"NoMatchFound": {
"occurrences": 3,
"arg_count": {
"min": 2,
"max": 2,
"common": 2
},
"patterns": [
{
"count": 3,
"args": 2,
"types": [
"var",
"var"
]
}
]
},
"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"
]
}
]
},
"dict": {
"occurrences": 15,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 10,
"args": 1,
"types": [
"call"
]
},
{
"count": 5,
"args": 1,
"types": [
"subscript"
]
}
]
},
"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"
]
}
]
},
"AssertionError": {
"occurrences": 4,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 4,
"args": 1,
"types": [
"lit"
]
}
]
},
"UnknownRoute": {
"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"
]
}
]
},
"handler": {
"occurrences": 3,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 3,
"args": 1,
"types": [
"var"
]
}
]
},
"Host": {
"occurrences": 6,
"arg_count": {
"min": 3,
"max": 3,
"common": 3
},
"patterns": [
{
"count": 6,
"args": 3,
"types": [
"lit",
"var",
"kwarg"
]
}
]
},
"HeaderRoute": {
"occurrences": 1,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 1,
"args": 1,
"types": [
"var"
]
}
]
},
"RejectingRoute": {
"occurrences": 1,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 1,
"args": 1,
"types": [
"var"
]
}
]
},
"TrackingRoute": {
"occurrences": 2,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 2,
"args": 1,
"types": [
"var"
]
}
]
},
"Mount": {
"occurrences": 3,
"arg_count": {
"min": 3,
"max": 3,
"common": 3
},
"patterns": [
{
"count": 3,
"args": 3,
"types": [
"lit",
"kwarg",
"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"
]
}
]
},
"_restore_fastapi_scope_key": {
"occurrences": 3,
"arg_count": {
"min": 3,
"max": 3,
"common": 3
},
"patterns": [
{
"count": 3,
"args": 3,
"types": [
"var",
"lit",
"call"
]
}
]
},
"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"
]
}
]
},
"AsyncExitStack": {
"occurrences": 6,
"arg_count": {
"min": 0,
"max": 0,
"common": 0
},
"patterns": [
{
"count": 6,
"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"
]
}
]
},
"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"
]
}
]
},
"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": [
"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"
]
}
]
},
"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"
]
}
]
},
"StarletteHTTPException": {
"occurrences": 3,
"arg_count": {
"min": 2,
"max": 2,
"common": 2
},
"patterns": [
{
"count": 3,
"args": 2,
"types": [
"kwarg",
"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": 1,
"types": [
"other"
]
},
{
"count": 3,
"args": 3,
"types": [
"var",
"kwarg",
"kwarg"
]
}
]
},
"ModelWithPath": {
"occurrences": 12,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 9,
"args": 1,
"types": [
"kwarg"
]
},
{
"count": 3,
"args": 1,
"types": [
"var"
]
}
]
},
"isinf": {
"occurrences": 6,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 6,
"args": 1,
"types": [
"subscript"
]
}
]
},
"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"
]
}
]
},
"ModelV1": {
"occurrences": 4,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 3,
"args": 1,
"types": [
"kwarg"
]
},
{
"count": 1,
"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"
]
}
]
},
"PurePath": {
"occurrences": 6,
"arg_count": {
"min": 2,
"max": 2,
"common": 2
},
"patterns": [
{
"count": 6,
"args": 2,
"types": [
"lit",
"lit"
]
}
]
},
"Unserializable": {
"occurrences": 3,
"arg_count": {
"min": 0,
"max": 0,
"common": 0
},
"patterns": [
{
"count": 3,
"args": 0,
"types": []
}
]
},
"__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"
]
}
]
},
"Color": {
"occurrences": 3,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 3,
"args": 1,
"types": [
"lit"
]
}
]
},
"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"
]
}
]
},
"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"
]
}
]
},
"ModelWithCustomEncoder": {
"occurrences": 4,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 3,
"args": 1,
"types": [
"kwarg"
]
},
{
"count": 1,
"args": 1,
"types": [
"var"
]
}
]
},
"custom_enum_encoder": {
"occurrences": 3,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 3,
"args": 1,
"types": [
"var"
]
}
]
},
"safe_datetime": {
"occurrences": 1,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"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"
]
}
]
},
"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"
]
}
]
},
"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"
]
}
]
},
"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"
]
}
]
},
"RoleEnum": {
"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"
]
}
]
},
"Product": {
"occurrences": 2,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 2,
"args": 1,
"types": [
"var"
]
}
]
},
"OAuth2": {
"occurrences": 9,
"arg_count": {
"min": 1,
"max": 3,
"common": 1
},
"patterns": [
{
"count": 3,
"args": 3,
"types": [
"kwarg",
"kwarg",
"kwarg"
]
},
{
"count": 3,
"args": 1,
"types": [
"kwarg"
]
},
{
"count": 3,
"args": 2,
"types": [
"kwarg",
"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"
]
}
]
},
"CompanyForm": {
"occurrences": 1,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 1,
"args": 1,
"types": [
"var"
]
}
]
},
"UserForm": {
"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"
]
}
]
},
"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": 1,
"types": [
"kwarg"
]
},
{
"count": 18,
"args": 0,
"types": []
}
]
},
"WithComputedField": {
"occurrences": 1,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 1,
"args": 1,
"types": [
"var"
]
}
]
},
"OAuth2PasswordBearer": {
"occurrences": 9,
"arg_count": {
"min": 1,
"max": 3,
"common": 1
},
"patterns": [
{
"count": 3,
"args": 3,
"types": [
"kwarg",
"kwarg",
"kwarg"
]
},
{
"count": 3,
"args": 1,
"types": [
"kwarg"
]
},
{
"count": 3,
"args": 2,
"types": [
"kwarg",
"kwarg"
]
}
]
},
"create_dependency": {
"occurrences": 24,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 24,
"args": 1,
"types": [
"lit"
]
}
]
},
"create_app": {
"occurrences": 6,
"arg_count": {
"min": 0,
"max": 0,
"common": 0
},
"patterns": [
{
"count": 6,
"args": 0,
"types": []
}
]
},
"Items": {
"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"
]
}
]
},
"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"
]
}
]
},
"ContextVar": {
"occurrences": 6,
"arg_count": {
"min": 2,
"max": 2,
"common": 2
},
"patterns": [
{
"count": 6,
"args": 2,
"types": [
"lit",
"kwarg"
]
}
]
},
"NamedSession": {
"occurrences": 18,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 18,
"args": 1,
"types": [
"kwarg"
]
}
]
},
"UserBase": {
"occurrences": 1,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 1,
"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"
]
}
]
},
"DummyClient": {
"occurrences": 3,
"arg_count": {
"min": 0,
"max": 0,
"common": 0
},
"patterns": [
{
"count": 3,
"args": 0,
"types": []
}
]
},
"get_parameterless_without_scopes": {
"occurrences": 3,
"arg_count": {
"min": 0,
"max": 0,
"common": 0
},
"patterns": [
{
"count": 3,
"args": 0,
"types": []
}
]
},
"issubclass": {
"occurrences": 8,
"arg_count": {
"min": 2,
"max": 2,
"common": 2
},
"patterns": [
{
"count": 8,
"args": 2,
"types": [
"other",
"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"
]
}
]
},
"ORJSONResponse": {
"occurrences": 4,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 3,
"args": 1,
"types": [
"kwarg"
]
},
{
"count": 1,
"args": 1,
"types": [
"var"
]
}
]
},
"_make_ujson_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_orjson_app": {
"occurrences": 3,
"arg_count": {
"min": 0,
"max": 0,
"common": 0
},
"patterns": [
{
"count": 3,
"args": 0,
"types": []
}
]
},
"iter_data": {
"occurrences": 27,
"arg_count": {
"min": 0,
"max": 0,
"common": 0
},
"patterns": [
{
"count": 27,
"args": 0,
"types": []
}
]
},
"StreamingResponse": {
"occurrences": 27,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 27,
"args": 1,
"types": [
"call"
]
}
]
},
"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"
]
}
]
},
"TypeAliasType": {
"occurrences": 3,
"arg_count": {
"min": 3,
"max": 3,
"common": 3
},
"patterns": [
{
"count": 3,
"args": 3,
"types": [
"lit",
"subscript",
"kwarg"
]
}
]
},
"Shop": {
"occurrences": 1,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 1,
"args": 1,
"types": [
"var"
]
}
]
},
"release_notes_content": {
"occurrences": 33,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 33,
"args": 1,
"types": [
"lit"
]
}
]
},
"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"
]
}
]
},
"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"
]
}
]
},
"CliRunner": {
"occurrences": 3,
"arg_count": {
"min": 0,
"max": 0,
"common": 0
},
"patterns": [
{
"count": 3,
"args": 0,
"types": []
}
]
},
"update_release_notes": {
"occurrences": 6,
"arg_count": {
"min": 4,
"max": 4,
"common": 4
},
"patterns": [
{
"count": 6,
"args": 4,
"types": [
"var",
"lit",
"call",
"call"
]
}
]
},
"ModelB": {
"occurrences": 2,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 2,
"args": 1,
"types": [
"var"
]
}
]
},
"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"
]
}
]
},
"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"
]
}
]
},
"TypeVar": {
"occurrences": 3,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 3,
"args": 1,
"types": [
"lit"
]
}
]
},
"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"
]
}
]
},
"ResponseLevel3": {
"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"
]
}
]
},
"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"
]
}
]
},
"ResponseLevel0": {
"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"
]
}
]
},
"field": {
"occurrences": 3,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 3,
"args": 1,
"types": [
"kwarg"
]
}
]
},
"IsUUID": {
"occurrences": 3,
"arg_count": {
"min": 0,
"max": 0,
"common": 0
},
"patterns": [
{
"count": 3,
"args": 0,
"types": []
}
]
},
"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"
]
}
]
},
"HTTPDigest": {
"occurrences": 9,
"arg_count": {
"min": 0,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 6,
"args": 1,
"types": [
"kwarg"
]
},
{
"count": 3,
"args": 0,
"types": []
}
]
},
"ReturnModelV1": {
"occurrences": 4,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 3,
"args": 1,
"types": [
"kwarg"
]
},
{
"count": 1,
"args": 1,
"types": [
"var"
]
}
]
},
"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"
]
}
]
},
"ModelV1A": {
"occurrences": 2,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 2,
"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": []
}
]
},
"ParamModelV1": {
"occurrences": 1,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 1,
"args": 1,
"types": [
"var"
]
}
]
},
"any": {
"occurrences": 4,
"arg_count": {
"min": 2,
"max": 2,
"common": 2
},
"patterns": [
{
"count": 4,
"args": 2,
"types": [
"expr",
"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"
]
}
]
},
"new_subscription": {
"occurrences": 3,
"arg_count": {
"min": 2,
"max": 2,
"common": 2
},
"patterns": [
{
"count": 3,
"args": 2,
"types": [
"kwarg",
"kwarg"
]
}
]
},
"ModelWithDatetimeField": {
"occurrences": 4,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 3,
"args": 1,
"types": [
"kwarg"
]
},
{
"count": 1,
"args": 1,
"types": [
"var"
]
}
]
},
"OtherItem": {
"occurrences": 2,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 2,
"args": 1,
"types": [
"var"
]
}
]
},
"map": {
"occurrences": 4,
"arg_count": {
"min": 2,
"max": 2,
"common": 2
},
"patterns": [
{
"count": 4,
"args": 2,
"types": [
"var",
"call"
]
}
]
},
"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"
]
}
]
},
"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": []
}
]
},
"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"
]
}
]
},
"RuntimeError": {
"occurrences": 4,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 4,
"args": 1,
"types": [
"lit"
]
}
]
},
"raise_value_error": {
"occurrences": 3,
"arg_count": {
"min": 0,
"max": 0,
"common": 0
},
"patterns": [
{
"count": 3,
"args": 0,
"types": []
}
]
},
"_run_asgi_and_cancel": {
"occurrences": 6,
"arg_count": {
"min": 3,
"max": 3,
"common": 3
},
"patterns": [
{
"count": 6,
"args": 3,
"types": [
"var",
"lit",
"kwarg"
]
}
]
},
"float": {
"occurrences": 5,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 5,
"args": 1,
"types": [
"lit"
]
}
]
},
"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"
]
}
]
},
"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": []
}
]
},
"AuthHeaders": {
"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"
]
}
]
},
"quoted_name": {
"occurrences": 3,
"arg_count": {
"min": 2,
"max": 2,
"common": 2
},
"patterns": [
{
"count": 3,
"args": 2,
"types": [
"kwarg",
"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"
]
}
]
},
"Response": {
"occurrences": 6,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 6,
"args": 1,
"types": [
"kwarg"
]
}
]
},
"BaseUser": {
"occurrences": 1,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 1,
"args": 1,
"types": [
"var"
]
}
]
},
"noop_wrap": {
"occurrences": 15,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 15,
"args": 1,
"types": [
"var"
]
}
]
},
"dunder_call": {
"occurrences": 3,
"arg_count": {
"min": 2,
"max": 2,
"common": 2
},
"patterns": [
{
"count": 3,
"args": 2,
"types": [
"other",
"other"
]
}
]
},
"noop_wrap_async": {
"occurrences": 9,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 9,
"args": 1,
"types": [
"var"
]
}
]
},
"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"
]
}
]
},
"ClassInstanceWrappedGenDep": {
"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"
]
}
]
},
"ClassInstanceAsyncWrappedDep": {
"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": []
}
]
},
"ClassInstanceWrappedAsyncGenDep": {
"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": []
}
]
},
"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"
]
}
]
},
"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": []
}
]
},
"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": []
}
]
},
"run_in_threadpool": {
"occurrences": 6,
"arg_count": {
"min": 3,
"max": 3,
"common": 3
},
"patterns": [
{
"count": 6,
"args": 3,
"types": [
"var",
"other",
"other"
]
}
]
},
"ClassInstanceAsyncGenDep": {
"occurrences": 3,
"arg_count": {
"min": 0,
"max": 0,
"common": 0
},
"patterns": [
{
"count": 3,
"args": 0,
"types": []
}
]
},
"PlainSerializer": {
"occurrences": 6,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 6,
"args": 1,
"types": [
"lambda"
]
}
]
},
"TypeAdapter": {
"occurrences": 9,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 6,
"args": 1,
"types": [
"subscript"
]
},
{
"count": 3,
"args": 1,
"types": [
"var"
]
}
]
},
"FakeNumpyArray": {
"occurrences": 6,
"arg_count": {
"min": 0,
"max": 0,
"common": 0
},
"patterns": [
{
"count": 6,
"args": 0,
"types": []
}
]
},
"find_spec": {
"occurrences": 6,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 6,
"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": []
}
]
},
"State": {
"occurrences": 4,
"arg_count": {
"min": 0,
"max": 1,
"common": 0
},
"patterns": [
{
"count": 3,
"args": 0,
"types": []
},
{
"count": 1,
"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"
]
}
]
},
"Dep": {
"occurrences": 3,
"arg_count": {
"min": 0,
"max": 0,
"common": 0
},
"patterns": [
{
"count": 3,
"args": 0,
"types": []
}
]
},
"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"
]
}
]
},
"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"
]
}
]
},
"MessageOutput": {
"occurrences": 4,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 3,
"args": 1,
"types": [
"kwarg"
]
},
{
"count": 1,
"args": 1,
"types": [
"var"
]
}
]
},
"MessageEvent": {
"occurrences": 1,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"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"
]
}
]
},
"InvoiceEventReceived": {
"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"
]
}
]
},
"InvoiceEvent": {
"occurrences": 1,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"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"
]
}
]
},
"CustomModel": {
"occurrences": 1,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 1,
"args": 1,
"types": [
"var"
]
}
]
},
"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 ::= (\"LARGE_PAYLOAD\" | \"_bench_get\" | \"_bench_post_json\" | \"benchmark\" | \"body\" | \"bytes\" | \"client\" | \"content\" | \"def\" | \"do_request\" | \"get\" | \"int\" | \"json\" | \"path\" | \"post\" | \"response\" | \"return\" | \"status_code\" | \"tuple\" | \"warmup\")+ \"ItemOut\"?+ \"_expected_large_payload_json_bytes\"?+ \"len\"?+ \"LargeOut\"?+ (\"item\" | \"name\" | \"value\")?+ \"payload\"? \"dep\"?+ \"items\"? \"LARGE_ITEMS\"? \"metadata\"? \"LARGE_METADATA\"?",
"mdl_score": 1000000000000,
"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": {
"TestClient": {
"occurrences": 3,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 3,
"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": []
}
]
},
"Depends": {
"occurrences": 27,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 27,
"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"
]
}
]
},
"_bench_get": {
"occurrences": 48,
"arg_count": {
"min": 3,
"max": 3,
"common": 3
},
"patterns": [
{
"count": 48,
"args": 3,
"types": [
"var",
"var",
"lit"
]
}
]
},
"len": {
"occurrences": 8,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 8,
"args": 1,
"types": [
"other"
]
}
]
},
"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"
]
}
]
},
"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"
]
}
]
},
"FastAPI": {
"occurrences": 3,
"arg_count": {
"min": 0,
"max": 0,
"common": 0
},
"patterns": [
{
"count": 3,
"args": 0,
"types": []
}
]
},
"ItemIn": {
"occurrences": 1,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 1,
"args": 1,
"types": [
"var"
]
}
]
},
"list": {
"occurrences": 5,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 5,
"args": 1,
"types": [
"call"
]
}
]
},
"range": {
"occurrences": 10,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 10,
"args": 1,
"types": [
"lit"
]
}
]
},
"benchmark": {
"occurrences": 6,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 6,
"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": 1000000000000,
"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\" | \"body_model_name\" | \"client\" | \"get_body_model_name\" | \"json\" | \"openapi\" | \"path\" | \"post\" | \"response\" | \"status_code\" | \"text\")?+ \"IsOneOf\"?+ \"return\"? \"p\"?+",
"mdl_score": 1000000000000,
"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"
]
}
]
},
"BodyModelOptionalStr": {
"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"
]
}
]
},
"BodyModelOptionalAliasAndValidationAlias": {
"occurrences": 1,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 1,
"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"
]
}
]
},
"BodyModelOptionalAlias": {
"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"
]
}
]
},
"BodyModelOptionalValidationAlias": {
"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": []
}
]
},
"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"
]
}
]
},
"BodyModelRequiredListAlias": {
"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"
]
}
]
},
"BodyModelRequiredListValidationAlias": {
"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"
]
}
]
},
"BodyModelRequiredAliasAndValidationAlias": {
"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"
]
}
]
},
"BodyModelOptionalListAliasAndValidationAlias": {
"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"
]
}
]
},
"BodyModelOptionalListAlias": {
"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"
]
}
]
}
}
},
{
"label": "tests/test_request_params/test_cookie",
"method_count": 48,
"algorithm": "CRX",
"grammar": "root ::= (\"TestClient\" | \"app\" | \"client\" | \"cookies\" | \"get\" | \"openapi\" | \"path\" | \"response\" | \"set\" | \"status_code\" | \"text\")?+ \"return\"? \"json\"?+ \"snapshot\"?+ \"p\"?+ \"IsOneOf\"?+",
"mdl_score": 1000000000000,
"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": {
"IsOneOf": {
"occurrences": 24,
"arg_count": {
"min": 2,
"max": 2,
"common": 2
},
"patterns": [
{
"count": 24,
"args": 2,
"types": [
"lit",
"other"
]
}
]
},
"CookieModelRequiredStr": {
"occurrences": 1,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 1,
"args": 1,
"types": [
"var"
]
}
]
},
"TestClient": {
"occurrences": 72,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 72,
"args": 1,
"types": [
"var"
]
}
]
},
"CookieModelRequiredAlias": {
"occurrences": 1,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 1,
"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"
]
}
]
},
"Field": {
"occurrences": 18,
"arg_count": {
"min": 1,
"max": 3,
"common": 2
},
"patterns": [
{
"count": 6,
"args": 1,
"types": [
"kwarg"
]
},
{
"count": 6,
"args": 2,
"types": [
"lit",
"kwarg"
]
},
{
"count": 3,
"args": 2,
"types": [
"kwarg",
"kwarg"
]
},
{
"count": 3,
"args": 3,
"types": [
"lit",
"kwarg",
"kwarg"
]
}
]
},
"snapshot": {
"occurrences": 24,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 24,
"args": 1,
"types": [
"other"
]
}
]
},
"CookieModelRequiredValidationAlias": {
"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"
]
}
]
},
"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"
]
}
]
},
"CookieModelOptionalAlias": {
"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"
]
}
]
},
"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"
]
}
]
}
}
},
{
"label": "tests/test_request_params/test_file",
"method_count": 97,
"algorithm": "CRX",
"grammar": "root ::= (\"TestClient\" | \"app\" | \"body_model_name\" | \"client\" | \"files\" | \"get_body_model_name\" | \"openapi\" | \"path\" | \"post\" | \"response\" | \"status_code\" | \"text\")?+ \"return\"? \"json\"?+ \"len\"?+ (\"file\" | \"for\" | \"if\" | \"in\" | \"p\" | \"size\")?+ \"else\"?",
"mdl_score": 1000000000000,
"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": {
"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"
]
}
]
},
"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"
]
}
]
}
}
},
{
"label": "tests/test_request_params/test_form",
"method_count": 97,
"algorithm": "CRX",
"grammar": "root ::= (\"TestClient\" | \"app\" | \"body_model_name\" | \"client\" | \"data\" | \"get_body_model_name\" | \"openapi\" | \"path\" | \"post\" | \"response\" | \"status_code\" | \"text\")?+ \"return\"? \"json\"?+ \"p\"?+ \"IsOneOf\"?+",
"mdl_score": 1000000000000,
"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": {
"TestClient": {
"occurrences": 144,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 144,
"args": 1,
"types": [
"var"
]
}
]
},
"FormModelOptionalListAlias": {
"occurrences": 1,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 1,
"args": 1,
"types": [
"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"
]
}
]
},
"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"
]
}
]
},
"FormModelOptionalListAliasAndValidationAlias": {
"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"
]
}
]
},
"FastAPI": {
"occurrences": 12,
"arg_count": {
"min": 0,
"max": 0,
"common": 0
},
"patterns": [
{
"count": 12,
"args": 0,
"types": []
}
]
},
"FormModelOptionalListStr": {
"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"
]
}
]
},
"FormModelOptionalAliasAndValidationAlias": {
"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"
]
}
]
},
"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"
]
}
]
},
"FormModelRequiredValidationAlias": {
"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"
]
}
]
},
"FormModelRequiredAliasAndValidationAlias": {
"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"
]
}
]
},
"FormModelRequiredListAliasAndValidationAlias": {
"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"
]
}
]
},
"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"
]
}
]
},
"IsPartialDict": {
"occurrences": 3,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 3,
"args": 1,
"types": [
"other"
]
}
]
}
}
},
{
"label": "tests/test_request_params/test_header",
"method_count": 96,
"algorithm": "CRX",
"grammar": "root ::= (\"TestClient\" | \"app\" | \"client\" | \"get\" | \"headers\" | \"openapi\" | \"path\" | \"response\" | \"status_code\" | \"text\")?+ \"return\"? \"json\"?+ \"snapshot\"?+ \"p\"?+ \"AnyThing\"? \"IsOneOf\"?+ \"IsPartialDict\"?+",
"mdl_score": 1000000000000,
"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"
]
}
]
},
"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": 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"
]
}
]
},
"HeaderModelOptionalListValidationAlias": {
"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"
]
}
]
},
"FastAPI": {
"occurrences": 12,
"arg_count": {
"min": 0,
"max": 0,
"common": 0
},
"patterns": [
{
"count": 12,
"args": 0,
"types": []
}
]
},
"HeaderModelOptionalListAlias": {
"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"
]
}
]
},
"class": {
"occurrences": 16,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 16,
"args": 1,
"types": [
"var"
]
}
]
},
"HeaderModelRequiredValidationAlias": {
"occurrences": 1,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 1,
"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"
]
}
]
},
"HeaderModelRequiredAliasAndValidationAlias": {
"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"
]
}
]
},
"HeaderModelRequiredAlias": {
"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"
]
}
]
},
"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"
]
}
]
},
"HeaderModelRequiredListValidationAlias": {
"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"
]
}
]
},
"HeaderModelOptionalAliasAndValidationAlias": {
"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"
]
}
]
},
"HeaderModelOptionalStr": {
"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\"? \"snapshot\"?+ \"json\"?+ \"p\"? (\"Is\" | \"expected_title\")?+ \"expected_name\"?",
"mdl_score": 1000000000000,
"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": []
}
]
},
"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"
]
}
]
},
"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\" | \"openapi\" | \"path\" | \"response\" | \"status_code\" | \"text\")?+ \"return\"? \"snapshot\"?+ \"json\"?+ \"p\"?+ \"IsOneOf\"?+",
"mdl_score": 1000000000000,
"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": {
"snapshot": {
"occurrences": 48,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 48,
"args": 1,
"types": [
"other"
]
}
]
},
"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"
]
}
]
},
"QueryModelRequiredAlias": {
"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"
]
}
]
},
"TestClient": {
"occurrences": 144,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 144,
"args": 1,
"types": [
"var"
]
}
]
},
"QueryModelRequiredAliasAndValidationAlias": {
"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": 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"
]
}
]
},
"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"
]
}
]
},
"FastAPI": {
"occurrences": 12,
"arg_count": {
"min": 0,
"max": 0,
"common": 0
},
"patterns": [
{
"count": 12,
"args": 0,
"types": []
}
]
},
"class": {
"occurrences": 16,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 16,
"args": 1,
"types": [
"var"
]
}
]
},
"QueryModelRequiredListValidationAlias": {
"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"
]
}
]
},
"QueryModelRequiredListStr": {
"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"
]
}
]
},
"QueryModelOptionalValidationAlias": {
"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"
]
}
]
},
"QueryModelOptionalAliasAndValidationAlias": {
"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"
]
}
]
},
"QueryModelOptionalListAlias": {
"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"
]
}
]
},
"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"
]
}
]
}
}
},
{
"label": "tests/test_tutorial",
"method_count": 16,
"algorithm": "CRX",
"grammar": "root ::= (\"TestClient\" | \"app\" | \"client\" | \"content\" | \"copytree\" | \"docs_src\" | \"from\" | \"get\" | \"headers\" | \"if\" | \"import\" | \"in\" | \"isdir\" | \"json\" | \"not\" | \"not in\" | \"openapi_schema\" | \"options\" | \"os\" | \"path\" | \"post\" | \"print\" | \"put\" | \"response\" | \"rmtree\" | \"shutil\" | \"snapshot\" | \"status_code\" | \"templates\" | \"text\" | \"tutorial001_py310\")?+ \"await\"? \"cookies\"? \"test_root\"?+",
"mdl_score": 1000000000000,
"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,
"algorithm": "CRX",
"grammar": "root ::= \"shutil\"? \"copy\"?+ (\"TestClient\" | \"app\" | \"clear\" | \"client\" | \"get\" | \"headers\" | \"import_module\" | \"importlib\" | \"len\" | \"mod\" | \"param\" | \"request\" | \"response\" | \"return\" | \"status_code\" | \"text\")+ \"content\"? \"json\"?+ \"os\"? \"snapshot\"?+ \"remove\"?+",
"mdl_score": 1000000000000,
"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,
"algorithm": "CRX",
"grammar": "root ::= (\"TestClient\" | \"app\" | \"client\" | \"import_module\" | \"importlib\" | \"json\" | \"mod\" | \"param\" | \"put\" | \"request\" | \"response\" | \"return\" | \"status_code\" | \"text\")+",
"mdl_score": 1000000000000,
"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,
"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,
"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,
"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": 1000000000000,
"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": {
"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"
]
}
]
},
"TestClient": {
"occurrences": 6,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 3,
"args": 1,
"types": [
"other"
]
},
{
"count": 3,
"args": 1,
"types": [
"var"
]
}
]
}
}
},
{
"label": "tests/test_tutorial/test_behind_a_proxy",
"method_count": 10,
"algorithm": "CRX",
"grammar": "root ::= (\"client\" | \"get\" | \"response\" | \"status_code\")+ \"json\"?+ \"headers\"? \"snapshot\"?+",
"mdl_score": 152079640,
"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,
"algorithm": "CRX",
"grammar": "root ::= (\"TestClient\" | \"app\" | \"client\" | \"get\" | \"headers\" | \"import_module\" | \"importlib\" | \"mod\" | \"param\" | \"post\" | \"put\" | \"request\" | \"response\" | \"return\" | \"status_code\" | \"text\")+ \"json\"?+ \"snapshot\"?+",
"mdl_score": 1000000000000,
"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,
"algorithm": "CRX",
"grammar": "root ::= \"patch\"?+ \"side_effect\"? \"Exception\"?+ (\"TestClient\" | \"app\" | \"client\" | \"content\" | \"data\" | \"get\" | \"headers\" | \"import_module\" | \"importlib\" | \"json\" | \"mod\" | \"param\" | \"params\" | \"post\" | \"price\" | \"put\" | \"request\" | \"response\" | \"return\" | \"status_code\" | \"text\")+ \"snapshot\"?+",
"mdl_score": 1000000000000,
"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": 1000000000000,
"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,
"algorithm": "CRX",
"grammar": "root ::= (\"TestClient\" | \"app\" | \"client\" | \"get\" | \"import_module\" | \"importlib\" | \"json\" | \"mod\" | \"param\" | \"params\" | \"put\" | \"request\" | \"response\" | \"return\" | \"status_code\" | \"text\")+ \"snapshot\"?+",
"mdl_score": 1000000000000,
"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 ::= \"if\"? (\"IsList\" | \"TestClient\" | \"app\" | \"check_order\" | \"client\" | \"data\" | \"get\" | \"import_module\" | \"importlib\" | \"json\" | \"mod\" | \"mod_name\" | \"param\" | \"post\" | \"put\" | \"request\" | \"response\" | \"return\" | \"startswith\" | \"status_code\" | \"text\")+ \"snapshot\"?+",
"mdl_score": 1000000000000,
"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,
"algorithm": "CRX",
"grammar": "root ::= (\"TestClient\" | \"app\" | \"client\" | \"get\" | \"import_module\" | \"importlib\" | \"json\" | \"mod\" | \"param\" | \"patch\" | \"put\" | \"request\" | \"response\" | \"return\" | \"status_code\" | \"text\")+ \"snapshot\"?+",
"mdl_score": 1000000000000,
"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,
"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": 1000000000000,
"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 ::= (\"TestClient\" | \"app\" | \"c\" | \"client\" | \"cookies\" | \"get\" | \"import_module\" | \"importlib\" | \"mod\" | \"param\" | \"request\" | \"response\" | \"return\" | \"set\" | \"status_code\" | \"text\")+ \"json\"?+ \"snapshot\"?+",
"mdl_score": 1000000000000,
"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,
"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,
"algorithm": "CRX",
"grammar": "root ::= (\"Path\" | \"TestClient\" | \"app\" | \"client\" | \"custom_docs_ui\" | \"docs_src\" | \"exist_ok\" | \"from\" | \"get\" | \"getcwd\" | \"import\" | \"in\" | \"mkdir\" | \"os\" | \"print\" | \"response\" | \"static_dir\" | \"status_code\" | \"text\" | \"tutorial001_py310\" | \"tutorial002_py310\" | \"yield\")+ (\"json\" | \"rmdir\")?+",
"mdl_score": 1000000000000,
"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 ::= (\"@\" | \"Request\" | \"TestClient\" | \"__name__\" | \"app\" | \"async\" | \"body\" | \"check_gzip_request\" | \"client\" | \"compress\" | \"content\" | \"data\" | \"def\" | \"dumps\" | \"encode\" | \"float\" | \"get\" | \"gzip\" | \"headers\" | \"if\" | \"import_module\" | \"importlib\" | \"in\" | \"json\" | \"mod\" | \"n\" | \"not\" | \"not in\" | \"param\" | \"post\" | \"request\" | \"response\" | \"return\" | \"type\")+ \"IsOneOf\"?+",
"mdl_score": 1000000000000,
"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": {
"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"
]
}
]
},
"float": {
"occurrences": 5,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 5,
"args": 1,
"types": [
"subscript"
]
}
]
}
}
},
{
"label": "tests/test_tutorial/test_custom_response",
"method_count": 25,
"algorithm": "CRX",
"grammar": "root ::= \"if\"? (\"Any\" | \"Is\" | \"Path\" | \"TestClient\" | \"app\" | \"cast\" | \"client\" | \"content\" | \"else\" | \"fake_content\" | \"file_path\" | \"follow_redirects\" | \"get\" | \"import_module\" | \"importlib\" | \"json\" | \"mod\" | \"mod_name\" | \"param\" | \"request\" | \"response\" | \"response_content\" | \"return\" | \"snapshot\" | \"some_file_path\" | \"startswith\" | \"status_code\" | \"str\" | \"test_content\" | \"text\" | \"tmp_path\" | \"tutorial008_py310\" | \"tutorial009_py310\" | \"tutorial009b_py310\" | \"write_bytes\")+ (\"headers\" | \"html_contents\")?",
"mdl_score": 1000000000000,
"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": {
"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"
]
}
]
},
"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"
]
}
]
}
}
},
{
"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": 1000000000000,
"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,
"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 ::= (\"@\" | \"Annotated\" | \"Any\" | \"Depends\" | \"FastAPI\" | \"Mock\" | \"TestClient\" | \"app\" | \"async\" | \"asynccontextmanager\" | \"c\" | \"client\" | \"cm\" | \"create\" | \"db_session\" | \"def\" | \"exc_info\" | \"expected_status\" | \"get\" | \"get_db\" | \"headers\" | \"import_module\" | \"importlib\" | \"is\" | \"json\" | \"mod\" | \"param\" | \"patch\" | \"path\" | \"pytest\" | \"raise_server_exceptions\" | \"raises\" | \"read_root\" | \"request\" | \"response\" | \"return\" | \"return_value\" | \"status_code\" | \"str\" | \"text\" | \"value\")+ (\"args\" | \"expected_response\" | \"snapshot\")?+",
"mdl_score": 1000000000000,
"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": {
"patch": {
"occurrences": 15,
"arg_count": {
"min": 3,
"max": 3,
"common": 3
},
"patterns": [
{
"count": 15,
"args": 3,
"types": [
"lit",
"kwarg",
"kwarg"
]
}
]
},
"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": []
}
]
},
"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"
]
}
]
},
"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"
]
}
]
},
"asynccontextmanager": {
"occurrences": 3,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"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": []
}
]
}
}
},
{
"label": "tests/test_tutorial/test_encoder",
"method_count": 5,
"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\"? \"warns\"?+ \"DeprecationWarning\"?+ \"from\"? \"docs_src\"?+ \"events\"?+ (\"tutorial001_py310\" | \"tutorial002_py310\")?+ \"import\"? (\"TestClient\" | \"app\" | \"client\" | \"fake_answer_to_everything_ml_model\" | \"get\" | \"json\" | \"ml_models\" | \"not\" | \"params\" | \"response\" | \"status_code\" | \"text\" | \"yield\")+ \"snapshot\"?+ \"open\"?+ (\"in\" | \"log\")?+ \"read\"?+",
"mdl_score": 1000000000000,
"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": {
"TestClient": {
"occurrences": 18,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 18,
"args": 1,
"types": [
"var"
]
}
]
},
"snapshot": {
"occurrences": 9,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 9,
"args": 1,
"types": [
"other"
]
}
]
},
"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,
"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\" | \"json\" | \"mod\" | \"param\" | \"post\" | \"request\" | \"response\" | \"return\" | \"status_code\" | \"text\")+ \"snapshot\"?+ \"IsList\"?+ \"check_order\"?",
"mdl_score": 1000000000000,
"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": {
"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"
]
}
]
},
"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,
"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_generate_clients",
"method_count": 13,
"algorithm": "CRX",
"grammar": "root ::= (\"TestClient\" | \"app\" | \"client\" | \"dumps\" | \"get\" | \"import_module\" | \"importlib\" | \"json\" | \"loads\" | \"mod\" | \"modified_openapi\" | \"openapi\" | \"openapi_json\" | \"param\" | \"patch\" | \"post\" | \"read_text\" | \"request\" | \"response\" | \"return\" | \"return_value\" | \"status_code\" | \"text\" | \"tmp_file\" | \"tmp_path\" | \"tutorial003_py310\" | \"write_text\")+ \"snapshot\"?+",
"mdl_score": 1000000000000,
"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": {
"TestClient": {
"occurrences": 9,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 6,
"args": 1,
"types": [
"var"
]
},
{
"count": 3,
"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_graphql",
"method_count": 3,
"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,
"algorithm": "CRX",
"grammar": "root ::= (\"client\" | \"data\" | \"get\" | \"headers\" | \"in\" | \"is\" | \"json\" | \"post\" | \"response\" | \"status_code\" | \"text\")+ (\"content\" | \"snapshot\")?+",
"mdl_score": 1000000000000,
"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 ::= (\"TestClient\" | \"app\" | \"clear\" | \"client\" | \"get\" | \"headers\" | \"import_module\" | \"importlib\" | \"mod\" | \"param\" | \"request\" | \"response\" | \"return\" | \"status_code\" | \"text\")+ \"json\"?+ \"snapshot\"?+ \"IsOneOf\"?+",
"mdl_score": 1000000000000,
"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,
"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": 1000000000000,
"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": 1000000000000,
"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\" | \"in\" | \"response\" | \"status_code\" | \"text\")+ \"json\"?+ \"snapshot\"?+",
"mdl_score": 1000000000000,
"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": {
"TestClient": {
"occurrences": 15,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 15,
"args": 1,
"types": [
"var"
]
}
]
},
"snapshot": {
"occurrences": 15,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 15,
"args": 1,
"types": [
"other"
]
}
]
}
}
},
{
"label": "tests/test_tutorial/test_openapi_callbacks",
"method_count": 5,
"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,
"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 ::= (\"TestClient\" | \"app\" | \"clear\" | \"client\" | \"content\" | \"get\" | \"headers\" | \"import_module\" | \"importlib\" | \"json\" | \"mod\" | \"param\" | \"post\" | \"request\" | \"response\" | \"return\" | \"status_code\" | \"text\" | \"yaml_data\")+ \"snapshot\"?+",
"mdl_score": 1000000000000,
"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 ::= (\"DESCRIPTIONS\" | \"Is\" | \"TestClient\" | \"app\" | \"client\" | \"expected_status\" | \"get\" | \"import_module\" | \"importlib\" | \"json\" | \"mod\" | \"mod_name\" | \"param\" | \"path\" | \"post\" | \"request\" | \"response\" | \"return\" | \"snapshot\" | \"status_code\" | \"text\")+ \"IsList\"?+ \"expected_response\"? \"check_order\"?",
"mdl_score": 1000000000000,
"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": {
"IsList": {
"occurrences": 9,
"arg_count": {
"min": 3,
"max": 3,
"common": 3
},
"patterns": [
{
"count": 9,
"args": 3,
"types": [
"lit",
"lit",
"kwarg"
]
}
]
},
"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"
]
}
]
},
"Is": {
"occurrences": 3,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 3,
"args": 1,
"types": [
"subscript"
]
}
]
},
"dedent": {
"occurrences": 3,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 3,
"args": 1,
"types": [
"lit"
]
}
]
}
}
},
{
"label": "tests/test_tutorial/test_path_params",
"method_count": 18,
"algorithm": "CRX",
"grammar": "root ::= (\"client\" | \"content\" | \"get\" | \"item_id\" | \"print\" | \"response\" | \"status_code\" | \"text\" | \"user_id\")?+ \"asyncio\"? \"json\"?+ \"run\"?+ (\"expected_response\" | \"snapshot\")?+ \"read_users2\"?+",
"mdl_score": 1000000000000,
"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 ::= (\"TestClient\" | \"import_module\" | \"importlib\" | \"mod\" | \"param\" | \"request\" | \"return\")?+ (\"client\" | \"get\" | \"path\" | \"response\" | \"status_code\" | \"text\")?+ \"app\"? \"json\"?+ (\"expected_response\" | \"snapshot\")?+",
"mdl_score": 1000000000000,
"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 ::= (\"get_items\" | \"res\")?+ (\"import_module\" | \"importlib\" | \"mod\" | \"param\" | \"request\" | \"return\")?+ \"say_hello\"?+ \"pytest\"? \"patch\"?+ \"get_person_name\"?+ \"raises\"?+ (\"arg\" | \"args\" | \"call_args\" | \"call_args_list\" | \"call_count\" | \"for\" | \"in\" | \"items_s\" | \"items_t\" | \"mock_print\" | \"module\" | \"module_name\" | \"process_item\" | \"process_items\" | \"run_module\" | \"run_name\" | \"runpy\" | \"say_hi\" | \"str\")?+ \"Person\"?+ \"TypeError\"?+ \"assert_called_with\"?+ \"get_name_with_age\"?+",
"mdl_score": 1000000000000,
"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": {
"say_hello": {
"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"
]
}
]
},
"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"
]
}
]
},
"patch": {
"occurrences": 18,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 18,
"args": 1,
"types": [
"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"
]
}
]
},
"str": {
"occurrences": 5,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 5,
"args": 1,
"types": [
"subscript"
]
}
]
},
"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"
]
}
]
}
}
},
{
"label": "tests/test_tutorial/test_query_param_models",
"method_count": 12,
"algorithm": "CRX",
"grammar": "root ::= (\"TestClient\" | \"app\" | \"client\" | \"get\" | \"import_module\" | \"importlib\" | \"mod\" | \"param\" | \"params\" | \"request\" | \"response\" | \"return\" | \"status_code\" | \"text\")+ \"json\"?+ \"snapshot\"?+",
"mdl_score": 1000000000000,
"imports": [
"import importlib",
"import pytest",
"from fastapi.testclient import TestClient",
"from inline_snapshot import snapshot",
"from tests.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": 15,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 15,
"args": 1,
"types": [
"other"
]
}
]
}
}
},
{
"label": "tests/test_tutorial/test_query_params",
"method_count": 19,
"algorithm": "CRX",
"grammar": "root ::= (\"TestClient\" | \"app\" | \"c\" | \"client\" | \"get\" | \"import_module\" | \"importlib\" | \"mod\" | \"param\" | \"path\" | \"request\" | \"response\" | \"return\" | \"status_code\")+ \"json\"?+ (\"expected_json\" | \"snapshot\")?+",
"mdl_score": 1000000000000,
"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 ::= (\"TestClient\" | \"app\" | \"client\" | \"get\" | \"import_module\" | \"importlib\" | \"mod\" | \"param\" | \"params\" | \"request\" | \"response\" | \"return\" | \"status_code\" | \"text\" | \"url\")+ \"json\"?+ \"snapshot\"?+",
"mdl_score": 1000000000000,
"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"
]
}
]
},
"IsStr": {
"occurrences": 6,
"arg_count": {
"min": 0,
"max": 0,
"common": 0
},
"patterns": [
{
"count": 6,
"args": 0,
"types": []
}
]
},
"Is": {
"occurrences": 3,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 3,
"args": 1,
"types": [
"var"
]
}
]
}
}
},
{
"label": "tests/test_tutorial/test_request_files",
"method_count": 31,
"algorithm": "CRX",
"grammar": "root ::= (\"TestClient\" | \"app\" | \"client\" | \"default_pydantic_max_size\" | \"file\" | \"file2\" | \"files\" | \"get\" | \"import_module\" | \"importlib\" | \"in\" | \"json\" | \"mod\" | \"open\" | \"param\" | \"path\" | \"path2\" | \"post\" | \"request\" | \"response\" | \"return\" | \"status_code\" | \"text\" | \"tmp_path\" | \"write_bytes\")+ (\"content\" | \"snapshot\")?+",
"mdl_score": 1000000000000,
"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": {
"TestClient": {
"occurrences": 33,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 24,
"args": 1,
"types": [
"var"
]
},
{
"count": 9,
"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_request_form_models",
"method_count": 15,
"algorithm": "CRX",
"grammar": "root ::= (\"TestClient\" | \"app\" | \"client\" | \"data\" | \"get\" | \"import_module\" | \"importlib\" | \"json\" | \"mod\" | \"param\" | \"post\" | \"request\" | \"response\" | \"return\" | \"status_code\" | \"text\")+ \"snapshot\"?+",
"mdl_score": 1000000000000,
"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_request_forms",
"method_count": 7,
"algorithm": "CRX",
"grammar": "root ::= (\"TestClient\" | \"app\" | \"client\" | \"data\" | \"get\" | \"import_module\" | \"importlib\" | \"json\" | \"mod\" | \"param\" | \"post\" | \"request\" | \"response\" | \"return\" | \"status_code\" | \"text\")+ \"snapshot\"?+",
"mdl_score": 1000000000000,
"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,
"imports": [
"import importlib",
"import pytest",
"from fastapi import FastAPI",
"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": 9,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 9,
"args": 1,
"types": [
"var"
]
}
]
}
}
},
{
"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": 1000000000000,
"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 ::= \"pytest\"? \"raises\"?+ \"FastAPIError\"? (\"TestClient\" | \"app\" | \"client\" | \"follow_redirects\" | \"get\" | \"import_module\" | \"importlib\" | \"item_data\" | \"json\" | \"mod\" | \"param\" | \"params\" | \"post\" | \"request\" | \"response\" | \"return\" | \"status_code\" | \"text\" | \"url\" | \"user_data\")+ (\"data\" | \"headers\" | \"module_name\" | \"snapshot\")?+",
"mdl_score": 1000000000000,
"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,
"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,
"algorithm": "CRX",
"grammar": "root ::= (\"TestClient\" | \"app\" | \"client\" | \"get\" | \"import_module\" | \"importlib\" | \"json\" | \"mod\" | \"param\" | \"put\" | \"request\" | \"response\" | \"return\" | \"status_code\" | \"text\")+ \"snapshot\"?+",
"mdl_score": 1000000000000,
"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\" | \"access_token\" | \"app\" | \"auth\" | \"client\" | \"content\" | \"data\" | \"get\" | \"get_access_token\" | \"get_password_hash\" | \"headers\" | \"import_module\" | \"importlib\" | \"json\" | \"mod\" | \"param\" | \"password\" | \"post\" | \"request\" | \"response\" | \"return\" | \"scope\" | \"status_code\" | \"text\" | \"username\" | \"verify_password\")+ \"snapshot\"?+",
"mdl_score": 1000000000000,
"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": 4,
"types": [
"kwarg",
"kwarg",
"kwarg",
"kwarg"
]
},
{
"count": 3,
"args": 3,
"types": [
"kwarg",
"kwarg",
"kwarg"
]
}
]
},
"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": []
}
]
},
"hasattr": {
"occurrences": 4,
"arg_count": {
"min": 2,
"max": 2,
"common": 2
},
"patterns": [
{
"count": 4,
"args": 2,
"types": [
"var",
"lit"
]
}
]
}
}
},
{
"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": 1000000000000,
"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\" | \"all\" | \"app\" | \"client\" | \"data_lines\" | \"event_lines\" | \"for\" | \"get\" | \"headers\" | \"id_lines\" | \"if\" | \"import_module\" | \"importlib\" | \"in\" | \"json\" | \"len\" | \"line\" | \"lines\" | \"mod\" | \"param\" | \"path\" | \"post\" | \"request\" | \"response\" | \"retry_lines\" | \"return\" | \"split\" | \"startswith\" | \"status_code\" | \"strip\" | \"text\")+ \"snapshot\"?+",
"mdl_score": 1000000000000,
"imports": [
"import importlib",
"import pytest",
"from fastapi.testclient import TestClient",
"from inline_snapshot import snapshot"
],
"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"
]
}
]
},
"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,
"algorithm": "CRX",
"grammar": "root ::= (\"TestClient\" | \"ValidationError\" | \"admin_email\" | \"app\" | \"app_name\" | \"client\" | \"data\" | \"del\" | \"delenv\" | \"exc_info\" | \"get\" | \"get_settings\" | \"if\" | \"import_module\" | \"importlib\" | \"in\" | \"json\" | \"main_mod\" | \"mod\" | \"mod_name\" | \"mod_path\" | \"modules\" | \"monkeypatch\" | \"param\" | \"pytest\" | \"raises\" | \"raising\" | \"request\" | \"response\" | \"return\" | \"setenv\" | \"settings\" | \"status_code\" | \"sys\" | \"test_main_mod\" | \"text\")+ \"value\"? (\"items_per_user\" | \"snapshot\" | \"test_app\")?+ \"errors\"?+ \"IsAnyStr\"?",
"mdl_score": 1000000000000,
"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\"? (\"Is\" | \"IsInt\" | \"client\" | \"delete\" | \"get\" | \"hero_id\" | \"json\" | \"patch\" | \"post\" | \"response\" | \"snapshot\" | \"status_code\" | \"text\")?+ \"metadata\"? \"clear\"?+ \"default_registry\"? \"dispose\"?+",
"mdl_score": 1000000000000,
"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"
]
}
]
},
"Is": {
"occurrences": 6,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 6,
"args": 1,
"types": [
"var"
]
}
]
},
"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": []
}
]
},
"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"
]
}
]
}
}
},
{
"label": "tests/test_tutorial/test_static_files",
"method_count": 4,
"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": {
"Path": {
"occurrences": 3,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 3,
"args": 1,
"types": [
"call"
]
}
]
},
"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_stream_data",
"method_count": 7,
"algorithm": "CRX",
"grammar": "root ::= (\"TestClient\" | \"app\" | \"client\" | \"content\" | \"get\" | \"headers\" | \"import_module\" | \"importlib\" | \"mod\" | \"param\" | \"path\" | \"request\" | \"response\" | \"return\" | \"status_code\" | \"text\")+ \"json\"?+ (\"binary_image\" | \"expected_text\")? \"snapshot\"?+",
"mdl_score": 1000000000000,
"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,
"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,
"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": 19226074150,
"imports": [
"from fastapi.testclient import TestClient",
"from inline_snapshot import snapshot",
"from docs_src.sub_applications.tutorial001_py310 import app"
],
"arg_patterns": {
"snapshot": {
"occurrences": 6,
"arg_count": {
"min": 1,
"max": 1,
"common": 1
},
"patterns": [
{
"count": 6,
"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_testing",
"method_count": 10,
"algorithm": "CRX",
"grammar": "root ::= (\"client\" | \"get\" | \"response\" | \"status_code\" | \"text\")?+ (\"test_create_existing_item\" | \"test_create_item\" | \"test_create_item_bad_token\" | \"test_main\" | \"test_module\" | \"test_read_item\" | \"test_read_nonexistent_item\")?+ (\"ModuleType\" | \"import_module\" | \"importlib\" | \"mod\" | \"param\" | \"request\" | \"return\")?+ \"pytest\"? (\"test_read_main\" | \"test_websocket\")?+ \"json\"?+ \"test_read_item_bad_token\"?+ \"warns\"?+ \"snapshot\"?+ \"DeprecationWarning\"?+ \"from\"? \"docs_src\"?+ \"app_testing\"?+ \"tutorial003_py310\"?+ \"import\"? \"test_read_items\"?+",
"mdl_score": 1000000000000,
"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 ::= (\"app\" | \"client\" | \"dependency_overrides\" | \"get\" | \"response\" | \"status_code\" | \"test_module\" | \"test_override_in_items\" | \"test_override_in_items_with_params\" | \"test_override_in_items_with_q\" | \"text\")?+ (\"ModuleType\" | \"import_module\" | \"importlib\" | \"mod\" | \"param\" | \"request\" | \"return\")?+ \"json\"?+",
"mdl_score": 1000000000000,
"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": {
"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": []
}
]
}
}
},
{
"label": "tests/test_tutorial/test_websockets",
"method_count": 14,
"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": 1000000000000,
"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
}
]