Spaces:
Sleeping
Sleeping
Islam Mamedov commited on
Commit ·
3df8a15
0
Parent(s):
Day 1: ingestion pipeline (code, docs, issues)
Browse filesFiles changed (2)
- data/manifest.jsonAdded+1908
- src/ingest.pyAdded+155
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908{ "repo": "fastapi/fastapi", "ingested_at": "2026-07-03T07:56:26.690336+00:00", "files": [ { "source_type": "doc", "path": "README.md", "size_bytes": 23110 }, { "source_type": "doc", "path": "docs/en/docs/_llm-test.md", "size_bytes": 11247 }, { "source_type": "doc", "path": "docs/en/docs/about/index.md", "size_bytes": 74 }, { "source_type": "doc", "path": "docs/en/docs/advanced/additional-responses.md", "size_bytes": 9055 }, { "source_type": "doc", "path": "docs/en/docs/advanced/additional-status-codes.md", "size_bytes": 2002 }, { "source_type": "doc", "path": "docs/en/docs/advanced/advanced-dependencies.md", "size_bytes": 9249 }, { "source_type": "doc", "path": "docs/en/docs/advanced/advanced-python-types.md", "size_bytes": 2091 }, { "source_type": "doc", "path": "docs/en/docs/advanced/async-tests.md", "size_bytes": 3866 }, { "source_type": "doc", "path": "docs/en/docs/advanced/behind-a-proxy.md", "size_bytes": 16177 }, { "source_type": "doc", "path": "docs/en/docs/advanced/custom-response.md", "size_bytes": 11291 }, { "source_type": "doc", "path": "docs/en/docs/advanced/dataclasses.md", "size_bytes": 4080 }, { "source_type": "doc", "path": "docs/en/docs/advanced/events.md", "size_bytes": 7989 }, { "source_type": "doc", "path": "docs/en/docs/advanced/generate-clients.md", "size_bytes": 8697 }, { "source_type": "doc", "path": "docs/en/docs/advanced/index.md", "size_bytes": 757 }, { "source_type": "doc", "path": "docs/en/docs/advanced/json-base64-bytes.md", "size_bytes": 2474 }, { "source_type": "doc", "path": "docs/en/docs/advanced/middleware.md", "size_bytes": 4206 }, { "source_type": "doc", "path": "docs/en/docs/advanced/openapi-callbacks.md", "size_bytes": 7841 }, { "source_type": "doc", "path": "docs/en/docs/advanced/openapi-webhooks.md", "size_bytes": 2948 }, { "source_type": "doc", "path": "docs/en/docs/advanced/path-operation-advanced-configuration.md", "size_bytes": 7120 }, { "source_type": "doc", "path": "docs/en/docs/advanced/response-change-status-code.md", "size_bytes": 1558 }, { "source_type": "doc", "path": "docs/en/docs/advanced/response-cookies.md", "size_bytes": 2232 }, { "source_type": "doc", "path": "docs/en/docs/advanced/response-directly.md", "size_bytes": 4137 }, { "source_type": "doc", "path": "docs/en/docs/advanced/response-headers.md", "size_bytes": 2204 }, { "source_type": "doc", "path": "docs/en/docs/advanced/security/http-basic-auth.md", "size_bytes": 5118 }, { "source_type": "doc", "path": "docs/en/docs/advanced/security/index.md", "size_bytes": 648 }, { "source_type": "doc", "path": "docs/en/docs/advanced/security/oauth2-scopes.md", "size_bytes": 13769 }, { "source_type": "doc", "path": "docs/en/docs/advanced/settings.md", "size_bytes": 11145 }, { "source_type": "doc", "path": "docs/en/docs/advanced/stream-data.md", "size_bytes": 5500 }, { "source_type": "doc", "path": "docs/en/docs/advanced/strict-content-type.md", "size_bytes": 3292 }, { "source_type": "doc", "path": "docs/en/docs/advanced/sub-applications.md", "size_bytes": 2949 }, { "source_type": "doc", "path": "docs/en/docs/advanced/templates.md", "size_bytes": 3503 }, { "source_type": "doc", "path": "docs/en/docs/advanced/testing-dependencies.md", "size_bytes": 2413 }, { "source_type": "doc", "path": "docs/en/docs/advanced/testing-events.md", "size_bytes": 628 }, { "source_type": "doc", "path": "docs/en/docs/advanced/testing-websockets.md", "size_bytes": 411 }, { "source_type": "doc", "path": "docs/en/docs/advanced/using-request-directly.md", "size_bytes": 2344 }, { "source_type": "doc", "path": "docs/en/docs/advanced/websockets.md", "size_bytes": 5472 }, { "source_type": "doc", "path": "docs/en/docs/advanced/wsgi.md", "size_bytes": 1470 }, { "source_type": "doc", "path": "docs/en/docs/alternatives.md", "size_bytes": 22680 }, { "source_type": "doc", "path": "docs/en/docs/async.md", "size_bytes": 23978 }, { "source_type": "doc", "path": "docs/en/docs/benchmarks.md", "size_bytes": 3503 }, { "source_type": "doc", "path": "docs/en/docs/contributing.md", "size_bytes": 271 }, { "source_type": "doc", "path": "docs/en/docs/deployment/cloud.md", "size_bytes": 1203 }, { "source_type": "doc", "path": "docs/en/docs/deployment/concepts.md", "size_bytes": 18936 }, { "source_type": "doc", "path": "docs/en/docs/deployment/docker.md", "size_bytes": 29005 }, { "source_type": "doc", "path": "docs/en/docs/deployment/fastapicloud.md", "size_bytes": 1750 }, { "source_type": "doc", "path": "docs/en/docs/deployment/https.md", "size_bytes": 14304 }, { "source_type": "doc", "path": "docs/en/docs/deployment/index.md", "size_bytes": 1520 }, { "source_type": "doc", "path": "docs/en/docs/deployment/manually.md", "size_bytes": 6707 }, { "source_type": "doc", "path": "docs/en/docs/deployment/server-workers.md", "size_bytes": 8372 }, { "source_type": "doc", "path": "docs/en/docs/deployment/versions.md", "size_bytes": 3510 }, { "source_type": "doc", "path": "docs/en/docs/editor-support.md", "size_bytes": 2516 }, { "source_type": "doc", "path": "docs/en/docs/environment-variables.md", "size_bytes": 8113 }, { "source_type": "doc", "path": "docs/en/docs/external-links.md", "size_bytes": 926 }, { "source_type": "doc", "path": "docs/en/docs/fastapi-cli.md", "size_bytes": 6185 }, { "source_type": "doc", "path": "docs/en/docs/fastapi-people.md", "size_bytes": 9274 }, { "source_type": "doc", "path": "docs/en/docs/features.md", "size_bytes": 9143 }, { "source_type": "doc", "path": "docs/en/docs/help-fastapi.md", "size_bytes": 3818 }, { "source_type": "doc", "path": "docs/en/docs/history-design-future.md", "size_bytes": 4090 }, { "source_type": "doc", "path": "docs/en/docs/how-to/authentication-error-status-code.md", "size_bytes": 1190 }, { "source_type": "doc", "path": "docs/en/docs/how-to/conditional-openapi.md", "size_bytes": 2436 }, { "source_type": "doc", "path": "docs/en/docs/how-to/configure-swagger-ui.md", "size_bytes": 2891 }, { "source_type": "doc", "path": "docs/en/docs/how-to/custom-docs-ui-assets.md", "size_bytes": 7693 }, { "source_type": "doc", "path": "docs/en/docs/how-to/custom-request-and-route.md", "size_bytes": 4556 }, { "source_type": "doc", "path": "docs/en/docs/how-to/extending-openapi.md", "size_bytes": 3742 }, { "source_type": "doc", "path": "docs/en/docs/how-to/general.md", "size_bytes": 2834 }, { "source_type": "doc", "path": "docs/en/docs/how-to/graphql.md", "size_bytes": 2770 }, { "source_type": "doc", "path": "docs/en/docs/how-to/index.md", "size_bytes": 582 }, { "source_type": "doc", "path": "docs/en/docs/how-to/migrate-from-pydantic-v1-to-pydantic-v2.md", "size_bytes": 6300 }, { "source_type": "doc", "path": "docs/en/docs/how-to/separate-openapi-schemas.md", "size_bytes": 4656 }, { "source_type": "doc", "path": "docs/en/docs/how-to/testing-database.md", "size_bytes": 393 }, { "source_type": "doc", "path": "docs/en/docs/index.md", "size_bytes": 25405 }, { "source_type": "doc", "path": "docs/en/docs/learn/index.md", "size_bytes": 206 }, { "source_type": "doc", "path": "docs/en/docs/management.md", "size_bytes": 968 }, { "source_type": "doc", "path": "docs/en/docs/newsletter.md", "size_bytes": 326 }, { "source_type": "doc", "path": "docs/en/docs/project-generation.md", "size_bytes": 1998 }, { "source_type": "doc", "path": "docs/en/docs/python-types.md", "size_bytes": 11214 }, { "source_type": "doc", "path": "docs/en/docs/reference/apirouter.md", "size_bytes": 547 }, { "source_type": "doc", "path": "docs/en/docs/reference/background.md", "size_bytes": 377 }, { "source_type": "doc", "path": "docs/en/docs/reference/dependencies.md", "size_bytes": 671 }, { "source_type": "doc", "path": "docs/en/docs/reference/encoders.md", "size_bytes": 71 }, { "source_type": "doc", "path": "docs/en/docs/reference/exceptions.md", "size_bytes": 597 }, { "source_type": "doc", "path": "docs/en/docs/reference/fastapi.md", "size_bytes": 724 }, { "source_type": "doc", "path": "docs/en/docs/reference/httpconnection.md", "size_bytes": 359 }, { "source_type": "doc", "path": "docs/en/docs/reference/index.md", "size_bytes": 285 }, { "source_type": "doc", "path": "docs/en/docs/reference/middleware.md", "size_bytes": 845 }, { "source_type": "doc", "path": "docs/en/docs/reference/openapi/docs.md", "size_bytes": 360 }, { "source_type": "doc", "path": "docs/en/docs/reference/openapi/index.md", "size_bytes": 158 }, { "source_type": "doc", "path": "docs/en/docs/reference/openapi/models.md", "size_bytes": 125 }, { "source_type": "doc", "path": "docs/en/docs/reference/parameters.md", "size_bytes": 603 }, { "source_type": "doc", "path": "docs/en/docs/reference/request.md", "size_bytes": 652 }, { "source_type": "doc", "path": "docs/en/docs/reference/response.md", "size_bytes": 559 }, { "source_type": "doc", "path": "docs/en/docs/reference/responses.md", "size_bytes": 4546 }, { "source_type": "doc", "path": "docs/en/docs/reference/security/index.md", "size_bytes": 1778 }, { "source_type": "doc", "path": "docs/en/docs/reference/staticfiles.md", "size_bytes": 391 }, { "source_type": "doc", "path": "docs/en/docs/reference/status.md", "size_bytes": 861 }, { "source_type": "doc", "path": "docs/en/docs/reference/templating.md", "size_bytes": 365 }, { "source_type": "doc", "path": "docs/en/docs/reference/testclient.md", "size_bytes": 450 }, { "source_type": "doc", "path": "docs/en/docs/reference/uploadfile.md", "size_bytes": 472 }, { "source_type": "doc", "path": "docs/en/docs/reference/websockets.md", "size_bytes": 2007 }, { "source_type": "doc", "path": "docs/en/docs/resources/index.md", "size_bytes": 83 }, { "source_type": "doc", "path": "docs/en/docs/translation-banner.md", "size_bytes": 379 }, { "source_type": "doc", "path": "docs/en/docs/translations.md", "size_bytes": 1982 }, { "source_type": "doc", "path": "docs/en/docs/tutorial/background-tasks.md", "size_bytes": 4794 }, { "source_type": "doc", "path": "docs/en/docs/tutorial/bigger-applications.md", "size_bytes": 20384 }, { "source_type": "doc", "path": "docs/en/docs/tutorial/body-fields.md", "size_bytes": 2388 }, { "source_type": "doc", "path": "docs/en/docs/tutorial/body-multiple-params.md", "size_bytes": 4932 }, { "source_type": "doc", "path": "docs/en/docs/tutorial/body-nested-models.md", "size_bytes": 6807 }, { "source_type": "doc", "path": "docs/en/docs/tutorial/body-updates.md", "size_bytes": 4091 }, { "source_type": "doc", "path": "docs/en/docs/tutorial/body.md", "size_bytes": 6611 }, { "source_type": "doc", "path": "docs/en/docs/tutorial/cookie-param-models.md", "size_bytes": 3141 }, { "source_type": "doc", "path": "docs/en/docs/tutorial/cookie-params.md", "size_bytes": 1602 }, { "source_type": "doc", "path": "docs/en/docs/tutorial/cors.md", "size_bytes": 5370 }, { "source_type": "doc", "path": "docs/en/docs/tutorial/debugging.md", "size_bytes": 2456 }, { "source_type": "doc", "path": "docs/en/docs/tutorial/dependencies/classes-as-dependencies.md", "size_bytes": 6915 }, { "source_type": "doc", "path": "docs/en/docs/tutorial/dependencies/dependencies-in-path-operation-decorators.md", "size_bytes": 2954 }, { "source_type": "doc", "path": "docs/en/docs/tutorial/dependencies/dependencies-with-yield.md", "size_bytes": 12857 }, { "source_type": "doc", "path": "docs/en/docs/tutorial/dependencies/global-dependencies.md", "size_bytes": 1060 }, { "source_type": "doc", "path": "docs/en/docs/tutorial/dependencies/index.md", "size_bytes": 9771 }, { "source_type": "doc", "path": "docs/en/docs/tutorial/dependencies/sub-dependencies.md", "size_bytes": 3820 }, { "source_type": "doc", "path": "docs/en/docs/tutorial/encoder.md", "size_bytes": 1608 }, { "source_type": "doc", "path": "docs/en/docs/tutorial/extra-data-types.md", "size_bytes": 2674 }, { "source_type": "doc", "path": "docs/en/docs/tutorial/extra-models.md", "size_bytes": 6881 }, { "source_type": "doc", "path": "docs/en/docs/tutorial/first-steps.md", "size_bytes": 13757 }, { "source_type": "doc", "path": "docs/en/docs/tutorial/frontend.md", "size_bytes": 5742 }, { "source_type": "doc", "path": "docs/en/docs/tutorial/handling-errors.md", "size_bytes": 9160 }, { "source_type": "doc", "path": "docs/en/docs/tutorial/header-param-models.md", "size_bytes": 2679 }, { "source_type": "doc", "path": "docs/en/docs/tutorial/header-params.md", "size_bytes": 3032 }, { "source_type": "doc", "path": "docs/en/docs/tutorial/index.md", "size_bytes": 5414 }, { "source_type": "doc", "path": "docs/en/docs/tutorial/metadata.md", "size_bytes": 5974 }, { "source_type": "doc", "path": "docs/en/docs/tutorial/middleware.md", "size_bytes": 3955 }, { "source_type": "doc", "path": "docs/en/docs/tutorial/path-operation-configuration.md", "size_bytes": 4121 }, { "source_type": "doc", "path": "docs/en/docs/tutorial/path-params-numeric-validations.md", "size_bytes": 6208 }, { "source_type": "doc", "path": "docs/en/docs/tutorial/path-params.md", "size_bytes": 9043 }, { "source_type": "doc", "path": "docs/en/docs/tutorial/query-param-models.md", "size_bytes": 2224 }, { "source_type": "doc", "path": "docs/en/docs/tutorial/query-params-str-validations.md", "size_bytes": 16640 }, { "source_type": "doc", "path": "docs/en/docs/tutorial/query-params.md", "size_bytes": 4596 }, { "source_type": "doc", "path": "docs/en/docs/tutorial/request-files.md", "size_bytes": 7182 }, { "source_type": "doc", "path": "docs/en/docs/tutorial/request-form-models.md", "size_bytes": 2157 }, { "source_type": "doc", "path": "docs/en/docs/tutorial/request-forms-and-files.md", "size_bytes": 1454 }, { "source_type": "doc", "path": "docs/en/docs/tutorial/request-forms.md", "size_bytes": 2626 }, { "source_type": "doc", "path": "docs/en/docs/tutorial/response-model.md", "size_bytes": 15876 }, { "source_type": "doc", "path": "docs/en/docs/tutorial/response-status-code.md", "size_bytes": 3994 }, { "source_type": "doc", "path": "docs/en/docs/tutorial/schema-extra-example.md", "size_bytes": 8950 }, { "source_type": "doc", "path": "docs/en/docs/tutorial/security/first-steps.md", "size_bytes": 8452 }, { "source_type": "doc", "path": "docs/en/docs/tutorial/security/get-current-user.md", "size_bytes": 4117 }, { "source_type": "doc", "path": "docs/en/docs/tutorial/security/index.md", "size_bytes": 4548 }, { "source_type": "doc", "path": "docs/en/docs/tutorial/security/oauth2-jwt.md", "size_bytes": 10944 }, { "source_type": "doc", "path": "docs/en/docs/tutorial/security/simple-oauth2.md", "size_bytes": 9589 }, { "source_type": "doc", "path": "docs/en/docs/tutorial/server-sent-events.md", "size_bytes": 4704 }, { "source_type": "doc", "path": "docs/en/docs/tutorial/sql-databases.md", "size_bytes": 15705 }, { "source_type": "doc", "path": "docs/en/docs/tutorial/static-files.md", "size_bytes": 1925 }, { "source_type": "doc", "path": "docs/en/docs/tutorial/stream-json-lines.md", "size_bytes": 4452 }, { "source_type": "doc", "path": "docs/en/docs/tutorial/testing.md", "size_bytes": 5825 }, { "source_type": "doc", "path": "docs/en/docs/virtual-environments.md", "size_bytes": 22668 }, { "source_type": "doc", "path": "fastapi/.agents/skills/fastapi/SKILL.md", "size_bytes": 10111 }, { "source_type": "doc", "path": "fastapi/.agents/skills/fastapi/references/dependencies.md", "size_bytes": 3268 }, { "source_type": "doc", "path": "fastapi/.agents/skills/fastapi/references/other-tools.md", "size_bytes": 1527 }, { "source_type": "doc", "path": "fastapi/.agents/skills/fastapi/references/path-operations.md", "size_bytes": 1583 }, { "source_type": "doc", "path": "fastapi/.agents/skills/fastapi/references/pydantic.md", "size_bytes": 1844 }, { "source_type": "doc", "path": "fastapi/.agents/skills/fastapi/references/responses.md", "size_bytes": 1856 }, { "source_type": "doc", "path": "fastapi/.agents/skills/fastapi/references/streaming.md", "size_bytes": 2581 }, { "source_type": "code", "path": "fastapi/__init__.py", "size_bytes": 1081 }, { "source_type": "code", "path": "fastapi/__main__.py", "size_bytes": 37 }, { "source_type": "code", "path": "fastapi/_compat/__init__.py", "size_bytes": 2095 }, { "source_type": "code", "path": "fastapi/_compat/shared.py", "size_bytes": 7118 }, { "source_type": "code", "path": "fastapi/_compat/v2.py", "size_bytes": 17601 }, { "source_type": "code", "path": "fastapi/background.py", "size_bytes": 1820 }, { "source_type": "code", "path": "fastapi/cli.py", "size_bytes": 418 }, { "source_type": "code", "path": "fastapi/concurrency.py", "size_bytes": 1489 }, { "source_type": "code", "path": "fastapi/datastructures.py", "size_bytes": 5321 }, { "source_type": "code", "path": "fastapi/dependencies/models.py", "size_bytes": 7250 }, { "source_type": "code", "path": "fastapi/dependencies/utils.py", "size_bytes": 39728 }, { "source_type": "code", "path": "fastapi/encoders.py", "size_bytes": 11603 }, { "source_type": "code", "path": "fastapi/exception_handlers.py", "size_bytes": 1275 }, { "source_type": "code", "path": "fastapi/exceptions.py", "size_bytes": 7453 }, { "source_type": "code", "path": "fastapi/logger.py", "size_bytes": 54 }, { "source_type": "code", "path": "fastapi/middleware/__init__.py", "size_bytes": 58 }, { "source_type": "code", "path": "fastapi/middleware/asyncexitstack.py", "size_bytes": 637 }, { "source_type": "code", "path": "fastapi/middleware/cors.py", "size_bytes": 79 }, { "source_type": "code", "path": "fastapi/middleware/gzip.py", "size_bytes": 79 }, { "source_type": "code", "path": "fastapi/middleware/httpsredirect.py", "size_bytes": 115 }, { "source_type": "code", "path": "fastapi/middleware/trustedhost.py", "size_bytes": 109 }, { "source_type": "code", "path": "fastapi/middleware/wsgi.py", "size_bytes": 107 }, { "source_type": "code", "path": "fastapi/openapi/constants.py", "size_bytes": 153 }, { "source_type": "code", "path": "fastapi/openapi/docs.py", "size_bytes": 12425 }, { "source_type": "code", "path": "fastapi/openapi/models.py", "size_bytes": 14608 }, { "source_type": "code", "path": "fastapi/openapi/utils.py", "size_bytes": 26916 }, { "source_type": "code", "path": "fastapi/param_functions.py", "size_bytes": 69596 }, { "source_type": "code", "path": "fastapi/params.py", "size_bytes": 26205 }, { "source_type": "code", "path": "fastapi/requests.py", "size_bytes": 142 }, { "source_type": "code", "path": "fastapi/responses.py", "size_bytes": 4144 }, { "source_type": "code", "path": "fastapi/security/__init__.py", "size_bytes": 881 }, { "source_type": "code", "path": "fastapi/security/api_key.py", "size_bytes": 9793 }, { "source_type": "code", "path": "fastapi/security/base.py", "size_bytes": 141 }, { "source_type": "code", "path": "fastapi/security/http.py", "size_bytes": 13410 }, { "source_type": "code", "path": "fastapi/security/oauth2.py", "size_bytes": 24178 }, { "source_type": "code", "path": "fastapi/security/open_id_connect_url.py", "size_bytes": 3136 }, { "source_type": "code", "path": "fastapi/security/utils.py", "size_bytes": 261 }, { "source_type": "code", "path": "fastapi/sse.py", "size_bytes": 6848 }, { "source_type": "code", "path": "fastapi/staticfiles.py", "size_bytes": 69 }, { "source_type": "code", "path": "fastapi/templating.py", "size_bytes": 76 }, { "source_type": "code", "path": "fastapi/testclient.py", "size_bytes": 66 }, { "source_type": "code", "path": "fastapi/types.py", "size_bytes": 438 }, { "source_type": "code", "path": "fastapi/utils.py", "size_bytes": 4341 }, { "source_type": "code", "path": "fastapi/websockets.py", "size_bytes": 222 } ], "issues": [ { "source_type": "issue", "path": "issues/617.json", "url": "https://github.com/fastapi/fastapi/issues/617" }, { "source_type": "issue", "path": "issues/142.json", "url": "https://github.com/fastapi/fastapi/issues/142" }, { "source_type": "issue", "path": "issues/10857.json", "url": "https://github.com/fastapi/fastapi/issues/10857" }, { "source_type": "issue", "path": "issues/11143.json", "url": "https://github.com/fastapi/fastapi/issues/11143" }, { "source_type": "issue", "path": "issues/12133.json", "url": "https://github.com/fastapi/fastapi/issues/12133" }, { "source_type": "issue", "path": "issues/754.json", "url": "https://github.com/fastapi/fastapi/issues/754" }, { "source_type": "issue", "path": "issues/11573.json", "url": "https://github.com/fastapi/fastapi/issues/11573" }, { "source_type": "issue", "path": "issues/13399.json", "url": "https://github.com/fastapi/fastapi/issues/13399" }, { "source_type": "issue", "path": "issues/12965.json", "url": "https://github.com/fastapi/fastapi/issues/12965" }, { "source_type": "issue", "path": "issues/12554.json", "url": "https://github.com/fastapi/fastapi/issues/12554" }, { "source_type": "issue", "path": "issues/1773.json", "url": "https://github.com/fastapi/fastapi/issues/1773" }, { "source_type": "issue", "path": "issues/13533.json", "url": "https://github.com/fastapi/fastapi/issues/13533" }, { "source_type": "issue", "path": "issues/10007.json", "url": "https://github.com/fastapi/fastapi/issues/10007" }, { "source_type": "issue", "path": "issues/1273.json", "url": "https://github.com/fastapi/fastapi/issues/1273" }, { "source_type": "issue", "path": "issues/190.json", "url": "https://github.com/fastapi/fastapi/issues/190" }, { "source_type": "issue", "path": "issues/10180.json", "url": "https://github.com/fastapi/fastapi/issues/10180" }, { "source_type": "issue", "path": "issues/4939.json", "url": "https://github.com/fastapi/fastapi/issues/4939" }, { "source_type": "issue", "path": "issues/12402.json", "url": "https://github.com/fastapi/fastapi/issues/12402" }, { "source_type": "issue", "path": "issues/13056.json", "url": "https://github.com/fastapi/fastapi/issues/13056" }, { "source_type": "issue", "path": "issues/3920.json", "url": "https://github.com/fastapi/fastapi/issues/3920" }, { "source_type": "issue", "path": "issues/13400.json", "url": "https://github.com/fastapi/fastapi/issues/13400" }, { "source_type": "issue", "path": "issues/12313.json", "url": "https://github.com/fastapi/fastapi/issues/12313" }, { "source_type": "issue", "path": "issues/10360.json", "url": "https://github.com/fastapi/fastapi/issues/10360" }, { "source_type": "issue", "path": "issues/3163.json", "url": "https://github.com/fastapi/fastapi/issues/3163" }, { "source_type": "issue", "path": "issues/12419.json", "url": "https://github.com/fastapi/fastapi/issues/12419" }, { "source_type": "issue", "path": "issues/2008.json", "url": "https://github.com/fastapi/fastapi/issues/2008" }, { "source_type": "issue", "path": "issues/9424.json", "url": "https://github.com/fastapi/fastapi/issues/9424" }, { "source_type": "issue", "path": "issues/1476.json", "url": "https://github.com/fastapi/fastapi/issues/1476" }, { "source_type": "issue", "path": "issues/14128.json", "url": "https://github.com/fastapi/fastapi/issues/14128" }, { "source_type": "issue", "path": "issues/10177.json", "url": "https://github.com/fastapi/fastapi/issues/10177" }, { "source_type": "issue", "path": "issues/13880.json", "url": "https://github.com/fastapi/fastapi/issues/13880" }, { "source_type": "issue", "path": "issues/12245.json", "url": "https://github.com/fastapi/fastapi/issues/12245" }, { "source_type": "issue", "path": "issues/11037.json", "url": "https://github.com/fastapi/fastapi/issues/11037" }, { "source_type": "issue", "path": "issues/608.json", "url": "https://github.com/fastapi/fastapi/issues/608" }, { "source_type": "issue", "path": "issues/501.json", "url": "https://github.com/fastapi/fastapi/issues/501" }, { "source_type": "issue", "path": "issues/10999.json", "url": "https://github.com/fastapi/fastapi/issues/10999" }, { "source_type": "issue", "path": "issues/10286.json", "url": "https://github.com/fastapi/fastapi/issues/10286" }, { "source_type": "issue", "path": "issues/10259.json", "url": "https://github.com/fastapi/fastapi/issues/10259" }, { "source_type": "issue", "path": "issues/12198.json", "url": "https://github.com/fastapi/fastapi/issues/12198" }, { "source_type": "issue", "path": "issues/10424.json", "url": "https://github.com/fastapi/fastapi/issues/10424" }, { "source_type": "issue", "path": "issues/3500.json", "url": "https://github.com/fastapi/fastapi/issues/3500" }, { "source_type": "issue", "path": "issues/639.json", "url": "https://github.com/fastapi/fastapi/issues/639" }, { "source_type": "issue", "path": "issues/11134.json", "url": "https://github.com/fastapi/fastapi/issues/11134" }, { "source_type": "issue", "path": "issues/10719.json", "url": "https://github.com/fastapi/fastapi/issues/10719" }, { "source_type": "issue", "path": "issues/10236.json", "url": "https://github.com/fastapi/fastapi/issues/10236" }, { "source_type": "issue", "path": "issues/15612.json", "url": "https://github.com/fastapi/fastapi/issues/15612" }, { "source_type": "issue", "path": "issues/15401.json", "url": "https://github.com/fastapi/fastapi/issues/15401" }, { "source_type": "issue", "path": "issues/13471.json", "url": "https://github.com/fastapi/fastapi/issues/13471" }, { "source_type": "issue", "path": "issues/13067.json", "url": "https://github.com/fastapi/fastapi/issues/13067" }, { "source_type": "issue", "path": "issues/11215.json", "url": "https://github.com/fastapi/fastapi/issues/11215" }, { "source_type": "issue", "path": "issues/10787.json", "url": "https://github.com/fastapi/fastapi/issues/10787" }, { "source_type": "issue", "path": "issues/10322.json", "url": "https://github.com/fastapi/fastapi/issues/10322" }, { "source_type": "issue", "path": "issues/3317.json", "url": "https://github.com/fastapi/fastapi/issues/3317" }, { "source_type": "issue", "path": "issues/13175.json", "url": "https://github.com/fastapi/fastapi/issues/13175" }, { "source_type": "issue", "path": "issues/13150.json", "url": "https://github.com/fastapi/fastapi/issues/13150" }, { "source_type": "issue", "path": "issues/12459.json", "url": "https://github.com/fastapi/fastapi/issues/12459" }, { "source_type": "issue", "path": "issues/5060.json", "url": "https://github.com/fastapi/fastapi/issues/5060" }, { "source_type": "issue", "path": "issues/14221.json", "url": "https://github.com/fastapi/fastapi/issues/14221" }, { "source_type": "issue", "path": "issues/12426.json", "url": "https://github.com/fastapi/fastapi/issues/12426" }, { "source_type": "issue", "path": "issues/12246.json", "url": "https://github.com/fastapi/fastapi/issues/12246" }, { "source_type": "issue", "path": "issues/11251.json", "url": "https://github.com/fastapi/fastapi/issues/11251" }, { "source_type": "issue", "path": "issues/10998.json", "url": "https://github.com/fastapi/fastapi/issues/10998" }, { "source_type": "issue", "path": "issues/10997.json", "url": "https://github.com/fastapi/fastapi/issues/10997" }, { "source_type": "issue", "path": "issues/10720.json", "url": "https://github.com/fastapi/fastapi/issues/10720" }, { "source_type": "issue", "path": "issues/10127.json", "url": "https://github.com/fastapi/fastapi/issues/10127" }, { "source_type": "issue", "path": "issues/1204.json", "url": "https://github.com/fastapi/fastapi/issues/1204" }, { "source_type": "issue", "path": "issues/14680.json", "url": "https://github.com/fastapi/fastapi/issues/14680" }, { "source_type": "issue", "path": "issues/12240.json", "url": "https://github.com/fastapi/fastapi/issues/12240" }, { "source_type": "issue", "path": "issues/12239.json", "url": "https://github.com/fastapi/fastapi/issues/12239" }, { "source_type": "issue", "path": "issues/54.json", "url": "https://github.com/fastapi/fastapi/issues/54" }, { "source_type": "issue", "path": "issues/15845.json", "url": "https://github.com/fastapi/fastapi/issues/15845" }, { "source_type": "issue", "path": "issues/15503.json", "url": "https://github.com/fastapi/fastapi/issues/15503" }, { "source_type": "issue", "path": "issues/14454.json", "url": "https://github.com/fastapi/fastapi/issues/14454" }, { "source_type": "issue", "path": "issues/13019.json", "url": "https://github.com/fastapi/fastapi/issues/13019" }, { "source_type": "issue", "path": "issues/11892.json", "url": "https://github.com/fastapi/fastapi/issues/11892" }, { "source_type": "issue", "path": "issues/5642.json", "url": "https://github.com/fastapi/fastapi/issues/5642" }, { "source_type": "issue", "path": "issues/1131.json", "url": "https://github.com/fastapi/fastapi/issues/1131" }, { "source_type": "issue", "path": "issues/15448.json", "url": "https://github.com/fastapi/fastapi/issues/15448" }, { "source_type": "issue", "path": "issues/15188.json", "url": "https://github.com/fastapi/fastapi/issues/15188" }, { "source_type": "issue", "path": "issues/14888.json", "url": "https://github.com/fastapi/fastapi/issues/14888" }, { "source_type": "issue", "path": "issues/14344.json", "url": "https://github.com/fastapi/fastapi/issues/14344" }, { "source_type": "issue", "path": "issues/13606.json", "url": "https://github.com/fastapi/fastapi/issues/13606" }, { "source_type": "issue", "path": "issues/13440.json", "url": "https://github.com/fastapi/fastapi/issues/13440" }, { "source_type": "issue", "path": "issues/13116.json", "url": "https://github.com/fastapi/fastapi/issues/13116" }, { "source_type": "issue", "path": "issues/13022.json", "url": "https://github.com/fastapi/fastapi/issues/13022" }, { "source_type": "issue", "path": "issues/12780.json", "url": "https://github.com/fastapi/fastapi/issues/12780" }, { "source_type": "issue", "path": "issues/12055.json", "url": "https://github.com/fastapi/fastapi/issues/12055" }, { "source_type": "issue", "path": "issues/11580.json", "url": "https://github.com/fastapi/fastapi/issues/11580" }, { "source_type": "issue", "path": "issues/15764.json", "url": "https://github.com/fastapi/fastapi/issues/15764" }, { "source_type": "issue", "path": "issues/15762.json", "url": "https://github.com/fastapi/fastapi/issues/15762" }, { "source_type": "issue", "path": "issues/15716.json", "url": "https://github.com/fastapi/fastapi/issues/15716" }, { "source_type": "issue", "path": "issues/15715.json", "url": "https://github.com/fastapi/fastapi/issues/15715" }, { "source_type": "issue", "path": "issues/15714.json", "url": "https://github.com/fastapi/fastapi/issues/15714" }, { "source_type": "issue", "path": "issues/15713.json", "url": "https://github.com/fastapi/fastapi/issues/15713" }, { "source_type": "issue", "path": "issues/15712.json", "url": "https://github.com/fastapi/fastapi/issues/15712" }, { "source_type": "issue", "path": "issues/15268.json", "url": "https://github.com/fastapi/fastapi/issues/15268" }, { "source_type": "issue", "path": "issues/15118.json", "url": "https://github.com/fastapi/fastapi/issues/15118" }, { "source_type": "issue", "path": "issues/14810.json", "url": "https://github.com/fastapi/fastapi/issues/14810" }, { "source_type": "issue", "path": "issues/14508.json", "url": "https://github.com/fastapi/fastapi/issues/14508" }, { "source_type": "issue", "path": "issues/14496.json", "url": "https://github.com/fastapi/fastapi/issues/14496" }, { "source_type": "issue", "path": "issues/14484.json", "url": "https://github.com/fastapi/fastapi/issues/14484" }, { "source_type": "issue", "path": "issues/14483.json", "url": "https://github.com/fastapi/fastapi/issues/14483" }, { "source_type": "issue", "path": "issues/14467.json", "url": "https://github.com/fastapi/fastapi/issues/14467" }, { "source_type": "issue", "path": "issues/14466.json", "url": "https://github.com/fastapi/fastapi/issues/14466" }, { "source_type": "issue", "path": "issues/14465.json", "url": "https://github.com/fastapi/fastapi/issues/14465" }, { "source_type": "issue", "path": "issues/14444.json", "url": "https://github.com/fastapi/fastapi/issues/14444" }, { "source_type": "issue", "path": "issues/14431.json", "url": "https://github.com/fastapi/fastapi/issues/14431" }, { "source_type": "issue", "path": "issues/14316.json", "url": "https://github.com/fastapi/fastapi/issues/14316" }, { "source_type": "issue", "path": "issues/14271.json", "url": "https://github.com/fastapi/fastapi/issues/14271" }, { "source_type": "issue", "path": "issues/14247.json", "url": "https://github.com/fastapi/fastapi/issues/14247" }, { "source_type": "issue", "path": "issues/13111.json", "url": "https://github.com/fastapi/fastapi/issues/13111" }, { "source_type": "issue", "path": "issues/12901.json", "url": "https://github.com/fastapi/fastapi/issues/12901" }, { "source_type": "issue", "path": "issues/12323.json", "url": "https://github.com/fastapi/fastapi/issues/12323" }, { "source_type": "issue", "path": "issues/12290.json", "url": "https://github.com/fastapi/fastapi/issues/12290" }, { "source_type": "issue", "path": "issues/12017.json", "url": "https://github.com/fastapi/fastapi/issues/12017" }, { "source_type": "issue", "path": "issues/11993.json", "url": "https://github.com/fastapi/fastapi/issues/11993" }, { "source_type": "issue", "path": "issues/11873.json", "url": "https://github.com/fastapi/fastapi/issues/11873" }, { "source_type": "issue", "path": "issues/15855.json", "url": "https://github.com/fastapi/fastapi/issues/15855" }, { "source_type": "issue", "path": "issues/15844.json", "url": "https://github.com/fastapi/fastapi/issues/15844" }, { "source_type": "issue", "path": "issues/15738.json", "url": "https://github.com/fastapi/fastapi/issues/15738" }, { "source_type": "issue", "path": "issues/15680.json", "url": "https://github.com/fastapi/fastapi/issues/15680" }, { "source_type": "issue", "path": "issues/15578.json", "url": "https://github.com/fastapi/fastapi/issues/15578" }, { "source_type": "issue", "path": "issues/15538.json", "url": "https://github.com/fastapi/fastapi/issues/15538" }, { "source_type": "issue", "path": "issues/15535.json", "url": "https://github.com/fastapi/fastapi/issues/15535" }, { "source_type": "issue", "path": "issues/15466.json", "url": "https://github.com/fastapi/fastapi/issues/15466" }, { "source_type": "issue", "path": "issues/15325.json", "url": "https://github.com/fastapi/fastapi/issues/15325" }, { "source_type": "issue", "path": "issues/15324.json", "url": "https://github.com/fastapi/fastapi/issues/15324" }, { "source_type": "issue", "path": "issues/15322.json", "url": "https://github.com/fastapi/fastapi/issues/15322" }, { "source_type": "issue", "path": "issues/15238.json", "url": "https://github.com/fastapi/fastapi/issues/15238" }, { "source_type": "issue", "path": "issues/15237.json", "url": "https://github.com/fastapi/fastapi/issues/15237" }, { "source_type": "issue", "path": "issues/15236.json", "url": "https://github.com/fastapi/fastapi/issues/15236" }, { "source_type": "issue", "path": "issues/15197.json", "url": "https://github.com/fastapi/fastapi/issues/15197" }, { "source_type": "issue", "path": "issues/15138.json", "url": "https://github.com/fastapi/fastapi/issues/15138" }, { "source_type": "issue", "path": "issues/15111.json", "url": "https://github.com/fastapi/fastapi/issues/15111" }, { "source_type": "issue", "path": "issues/15085.json", "url": "https://github.com/fastapi/fastapi/issues/15085" }, { "source_type": "issue", "path": "issues/15049.json", "url": "https://github.com/fastapi/fastapi/issues/15049" }, { "source_type": "issue", "path": "issues/15002.json", "url": "https://github.com/fastapi/fastapi/issues/15002" }, { "source_type": "issue", "path": "issues/15000.json", "url": "https://github.com/fastapi/fastapi/issues/15000" }, { "source_type": "issue", "path": "issues/14989.json", "url": "https://github.com/fastapi/fastapi/issues/14989" }, { "source_type": "issue", "path": "issues/14988.json", "url": "https://github.com/fastapi/fastapi/issues/14988" }, { "source_type": "issue", "path": "issues/14787.json", "url": "https://github.com/fastapi/fastapi/issues/14787" }, { "source_type": "issue", "path": "issues/14503.json", "url": "https://github.com/fastapi/fastapi/issues/14503" }, { "source_type": "issue", "path": "issues/14502.json", "url": "https://github.com/fastapi/fastapi/issues/14502" }, { "source_type": "issue", "path": "issues/14501.json", "url": "https://github.com/fastapi/fastapi/issues/14501" }, { "source_type": "issue", "path": "issues/14500.json", "url": "https://github.com/fastapi/fastapi/issues/14500" }, { "source_type": "issue", "path": "issues/14499.json", "url": "https://github.com/fastapi/fastapi/issues/14499" }, { "source_type": "issue", "path": "issues/14498.json", "url": "https://github.com/fastapi/fastapi/issues/14498" }, { "source_type": "issue", "path": "issues/14497.json", "url": "https://github.com/fastapi/fastapi/issues/14497" }, { "source_type": "issue", "path": "issues/14494.json", "url": "https://github.com/fastapi/fastapi/issues/14494" }, { "source_type": "issue", "path": "issues/14493.json", "url": "https://github.com/fastapi/fastapi/issues/14493" }, { "source_type": "issue", "path": "issues/14312.json", "url": "https://github.com/fastapi/fastapi/issues/14312" }, { "source_type": "issue", "path": "issues/14225.json", "url": "https://github.com/fastapi/fastapi/issues/14225" }, { "source_type": "issue", "path": "issues/14199.json", "url": "https://github.com/fastapi/fastapi/issues/14199" }, { "source_type": "issue", "path": "issues/14114.json", "url": "https://github.com/fastapi/fastapi/issues/14114" }, { "source_type": "issue", "path": "issues/14078.json", "url": "https://github.com/fastapi/fastapi/issues/14078" }, { "source_type": "issue", "path": "issues/14010.json", "url": "https://github.com/fastapi/fastapi/issues/14010" }, { "source_type": "issue", "path": "issues/13839.json", "url": "https://github.com/fastapi/fastapi/issues/13839" }, { "source_type": "issue", "path": "issues/13715.json", "url": "https://github.com/fastapi/fastapi/issues/13715" }, { "source_type": "issue", "path": "issues/13316.json", "url": "https://github.com/fastapi/fastapi/issues/13316" }, { "source_type": "issue", "path": "issues/13119.json", "url": "https://github.com/fastapi/fastapi/issues/13119" }, { "source_type": "issue", "path": "issues/13023.json", "url": "https://github.com/fastapi/fastapi/issues/13023" }, { "source_type": "issue", "path": "issues/12987.json", "url": "https://github.com/fastapi/fastapi/issues/12987" }, { "source_type": "issue", "path": "issues/12963.json", "url": "https://github.com/fastapi/fastapi/issues/12963" }, { "source_type": "issue", "path": "issues/12936.json", "url": "https://github.com/fastapi/fastapi/issues/12936" }, { "source_type": "issue", "path": "issues/12924.json", "url": "https://github.com/fastapi/fastapi/issues/12924" }, { "source_type": "issue", "path": "issues/12765.json", "url": "https://github.com/fastapi/fastapi/issues/12765" }, { "source_type": "issue", "path": "issues/12497.json", "url": "https://github.com/fastapi/fastapi/issues/12497" }, { "source_type": "issue", "path": "issues/12425.json", "url": "https://github.com/fastapi/fastapi/issues/12425" }, { "source_type": "issue", "path": "issues/12382.json", "url": "https://github.com/fastapi/fastapi/issues/12382" }, { "source_type": "issue", "path": "issues/12111.json", "url": "https://github.com/fastapi/fastapi/issues/12111" }, { "source_type": "issue", "path": "issues/12039.json", "url": "https://github.com/fastapi/fastapi/issues/12039" }, { "source_type": "issue", "path": "issues/12010.json", "url": "https://github.com/fastapi/fastapi/issues/12010" }, { "source_type": "issue", "path": "issues/11989.json", "url": "https://github.com/fastapi/fastapi/issues/11989" }, { "source_type": "issue", "path": "issues/11941.json", "url": "https://github.com/fastapi/fastapi/issues/11941" }, { "source_type": "issue", "path": "issues/11812.json", "url": "https://github.com/fastapi/fastapi/issues/11812" } ]}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155
import argparseimport jsonimport osimport subprocessfrom datetime import datetime, timedelta, timezonefrom pathlib import Path from github import Auth, Github DATA_DIR = Path("data") # Directories that add noise, not knowledge. Extend as you inspect results.SKIP_DIRS = {".git", ".github", "__pycache__", "node_modules", "tests", "test", "scripts"}CODE_EXTS = {".py"}DOC_EXTS = {".md"}MAX_FILE_BYTES = 100_000 # skip generated/vendored monstersISSUE_LOOKBACK_DAYS = 730 # ~2 years def clone_repo(repo: str) -> Path: """Shallow-clone the repo into data/repo/ (we only need current state).""" dest = DATA_DIR / "repo" if dest.exists(): print(f"[clone] {dest} already exists, skipping clone") return dest url = f"https://github.com/{repo}.git" print(f"[clone] {url} -> {dest}") subprocess.run(["git", "clone", "--depth", "1", url, str(dest)], check=True) return dest def collect_files(repo_dir: Path) -> list[dict]: """Walk the clone and collect code + doc files worth indexing.""" records = [] for path in sorted(repo_dir.rglob("*")): if not path.is_file(): continue rel = path.relative_to(repo_dir) if any(part in SKIP_DIRS for part in rel.parts): continue # FastAPI-specific: keep only English docs, skip tutorial snippets if rel.parts[0] == "docs" and rel.parts[1] != "en": continue if rel.parts[0] == "docs_src": continue ext = path.suffix.lower() if ext in CODE_EXTS: source_type = "code" elif ext in DOC_EXTS: source_type = "doc" else: continue size = path.stat().st_size if size == 0 or size > MAX_FILE_BYTES: continue records.append({ "source_type": source_type, "path": str(rel), "size_bytes": size, }) return records def fetch_issues(repo: str, max_issues: int) -> list[dict]: """Pull recent closed issues (not PRs) and save each as JSON. Resumable: issues already saved to disk are skipped (no API calls), so a crashed or interrupted run can simply be re-run. """ token = os.environ.get("GITHUB_TOKEN") if not token: print("[warn] no GITHUB_TOKEN set - unauthenticated limit is 60 req/hr") gh = Github(auth=Auth.Token(token)) if token else Github() since = datetime.now(timezone.utc) - timedelta(days=ISSUE_LOOKBACK_DAYS) issues_dir = DATA_DIR / "issues" issues_dir.mkdir(parents=True, exist_ok=True) records = [] # sort="comments" surfaces the most-discussed (usually most useful) issues first issues = gh.get_repo(repo).get_issues(state="closed", since=since, sort="comments", direction="desc") for issue in issues: if issue.pull_request is not None: # PRs come through the same API; skip continue if len(records) >= max_issues: break # Resume support: skip issues already saved from a previous run out_path = issues_dir / f"{issue.number}.json" if out_path.exists(): records.append({"source_type": "issue", "path": f"issues/{issue.number}.json", "url": issue.html_url}) continue # Keep up to 3 comments, favoring the most 👍-reacted (often the answer) comments = [] if issue.comments > 0: all_comments = list(issue.get_comments()) all_comments.sort(key=lambda c: c.reactions.get("+1", 0), reverse=True) comments = [c.body for c in all_comments[:3] if c.body] record = { "number": issue.number, "title": issue.title, "body": issue.body or "", "labels": [label.name for label in issue.labels], "url": issue.html_url, "comments": comments, } out_path.write_text( json.dumps(record, ensure_ascii=False, indent=2), encoding="utf-8") records.append({"source_type": "issue", "path": f"issues/{issue.number}.json", "url": issue.html_url}) if len(records) % 50 == 0: print(f"[issues] fetched {len(records)}...") return records def main() -> None: parser = argparse.ArgumentParser() parser.add_argument("--repo", required=True, help="e.g. fastapi/fastapi") parser.add_argument("--max-issues", type=int, default=300) parser.add_argument("--skip-issues", action="store_true", help="only clone + collect files (useful while iterating)") args = parser.parse_args() DATA_DIR.mkdir(exist_ok=True) repo_dir = clone_repo(args.repo) file_records = collect_files(repo_dir) issue_records = [] if args.skip_issues else fetch_issues(args.repo, args.max_issues) manifest = { "repo": args.repo, "ingested_at": datetime.now(timezone.utc).isoformat(), "files": file_records, "issues": issue_records, } (DATA_DIR / "manifest.json").write_text( json.dumps(manifest, ensure_ascii=False, indent=2), encoding="utf-8") n_code = sum(1 for r in file_records if r["source_type"] == "code") n_docs = sum(1 for r in file_records if r["source_type"] == "doc") print(f"\n[done] {n_code} code files, {n_docs} docs, {len(issue_records)} issues") print(f"[done] manifest -> {DATA_DIR / 'manifest.json'}") if __name__ == "__main__": main() data/manifest.jsonAdded+1908
src/ingest.pyAdded+155