Repository Analysis

openai/openai-python

The official Python library for the OpenAI API

168.9 Strong AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of openai/openai-python, a Python project with 31,490 GitHub stars. SynthScan v2.0 examined 259,829 lines of code across 1852 source files, recording 13227 pattern matches distributed across 17 syntactic categories. The overall adjusted score of 168.9 places this repository in the Strong AI signal band.

The scanner applied 160+ deterministic lexical heuristics, multi-line block detectors, abstract syntax tree depth profilers, and a cross-file Jaccard similarity matrix to construct a statistically normalised synthetic code estimate. All matches are individually weighted by severity coefficient and contextual multiplier before summation, and the resulting headline score is temporally discounted to account for the repository's development history relative to the commercial emergence of large language model coding tooling (November 2022 onward).

168.9
Adjusted Score
168.9
Raw Score
100%
Time Factor
2026-08-28
Last Push
31.5K
Stars
Python
Language
259.8K
Lines of Code
1.9K
Files
13.2K
Pattern Hits
2026-08-29
Scan Date
3.32
HC Hit Rate

What These Metrics Mean

Adjusted Score
Primary synthetic code indicator. Raw score normalised per 1,000 lines of code and multiplied by the temporal discount factor. This is the definitive comparative metric — use it to rank repositories by AI authorship density.
Raw Score
The unmodified sum of all severity-weighted, context-multiplied pattern match scores before temporal discounting. Reflects the absolute signal strength independent of when the repository was last active.
Time Factor
The temporal discount multiplier (0–100%) applied to the raw score. Repositories last updated before ChatGPT's launch (Nov 2022) receive a 5% factor. Full signal is only assigned to repositories active in the post-adoption era (Jan 2024+).
Pattern Hits
Total count of individual pattern matches across all files and categories. A high hit count with a low score may indicate a very large codebase with isolated AI snippets; a low count with a high score indicates dense, concentrated AI signatures.
HC Hit Rate
High+Critical pattern hits per file, averaged across the repository. This orthogonal signal catches repositories where a few files are densely packed with high-severity AI tells — a strong indicator even when the normalised score appears moderate due to codebase size.
Lines of Code / Files
Total lines and files analysed. The scanner examines 94 file extensions. These denominators are used to normalise the score, enabling fair comparison between repositories of vastly different sizes.

Score History

This chart maps the temporal evolution of the adjusted synthetic code score across successive scan runs. An upward trajectory indicates ongoing incorporation of AI-generated code or expanding LLM-assisted scaffolding; a stable or declining trajectory may reflect active human refactoring, code removal, or the adoption of stricter authorship policies. The dashed secondary line (right axis) independently tracks total raw pattern hit count, which can diverge from the normalised score when codebase size changes significantly between scans.

Severity Breakdown

Classifies detected patterns by their diagnostic confidence and structural impact. CRITICAL patterns (coefficient 10) represent definitive synthetic signatures — hallucinated imports, explicit LLM attribution metadata — virtually never produced by human authors. HIGH (5) indicates strong structural tells such as cross-file repetition or cross-linguistic idioms. MEDIUM (2) covers recognisable conversational padding and AI-specific vocabulary. LOW (1) captures subtle indicators like tautological comments and generic boilerplate that require density to carry independent signal.

CRITICAL 1142HIGH 5003MEDIUM 21LOW 7061

Directory Score Breakdown

This horizontal bar chart decomposes the repository's raw synthetic code score by top-level directory, allowing you to pinpoint precisely which modules or components carry the highest AI authorship density. Directories with disproportionately high scores relative to their size warrant targeted manual review: concentrated AI signatures often trace back to mass-generated configuration layers, auto-ported test suites, LLM-scaffolded boilerplate classes, or entire subsystems authored under heavy copilot assistance. Use this view to prioritise your human code-review effort.

Pattern Findings

The scanner identified 13227 distinct pattern matches across 17 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a statistically significant AI authorship indicator. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.

Reading the findings table: The Severity column indicates the diagnostic confidence level (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — comment-context matches receive a ×1.5 weight because LLMs systematically over-annotate. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier as dense clusters constitute far stronger evidence of synthetic authorship than isolated hits.

Cross-File Repetition4971 hits · 24855 pts
SeverityFileLineSnippetContext
HIGHsrc/openai/_response.py0close the response and release the connection. automatically called if the response body is read to completion.STRING
HIGHsrc/openai/_streaming.py0close the response and release the connection. automatically called if the response body is read to completion.STRING
HIGHsrc/openai/lib/streaming/chat/_completions.py0close the response and release the connection. automatically called if the response body is read to completion.STRING
HIGHsrc/openai/lib/streaming/responses/_responses.py0close the response and release the connection. automatically called if the response body is read to completion.STRING
HIGHsrc/openai/_client.py0use uploads to upload large files in multiple parts.STRING
HIGHsrc/openai/resources/uploads/parts.py0use uploads to upload large files in multiple parts.STRING
HIGHsrc/openai/resources/uploads/uploads.py0use uploads to upload large files in multiple parts.STRING
HIGHsrc/openai/types/eval_retrieve_response.py0a logsdatasourceconfig which specifies the metadata property of your logs query. this is usually metadata like `usecase=STRING
HIGHsrc/openai/types/eval_list_response.py0a logsdatasourceconfig which specifies the metadata property of your logs query. this is usually metadata like `usecase=STRING
HIGHsrc/openai/types/eval_update_response.py0a logsdatasourceconfig which specifies the metadata property of your logs query. this is usually metadata like `usecase=STRING
HIGHsrc/openai/types/eval_create_response.py0a logsdatasourceconfig which specifies the metadata property of your logs query. this is usually metadata like `usecase=STRING
HIGHsrc/openai/types/eval_retrieve_response.py0the json schema for the run data source items. learn how to build json schemas [here](https://json-schema.org/).STRING
HIGHsrc/openai/types/eval_list_response.py0the json schema for the run data source items. learn how to build json schemas [here](https://json-schema.org/).STRING
HIGHsrc/openai/types/eval_update_response.py0the json schema for the run data source items. learn how to build json schemas [here](https://json-schema.org/).STRING
HIGHsrc/openai/types/eval_custom_data_source_config.py0the json schema for the run data source items. learn how to build json schemas [here](https://json-schema.org/).STRING
HIGHsrc/openai/types/eval_create_response.py0the json schema for the run data source items. learn how to build json schemas [here](https://json-schema.org/).STRING
HIGH…ai/types/eval_stored_completions_data_source_config.py0the json schema for the run data source items. learn how to build json schemas [here](https://json-schema.org/).STRING
HIGHsrc/openai/types/eval_retrieve_response.py0set of 16 key-value pairs that can be attached to an object. this can be useful for storing additional information aboutSTRING
HIGHsrc/openai/types/vector_store_create_params.py0set of 16 key-value pairs that can be attached to an object. this can be useful for storing additional information aboutSTRING
HIGHsrc/openai/types/batch_create_params.py0set of 16 key-value pairs that can be attached to an object. this can be useful for storing additional information aboutSTRING
HIGHsrc/openai/types/eval_update_params.py0set of 16 key-value pairs that can be attached to an object. this can be useful for storing additional information aboutSTRING
HIGHsrc/openai/types/vector_store.py0set of 16 key-value pairs that can be attached to an object. this can be useful for storing additional information aboutSTRING
HIGHsrc/openai/types/eval_create_params.py0set of 16 key-value pairs that can be attached to an object. this can be useful for storing additional information aboutSTRING
HIGHsrc/openai/types/batch.py0set of 16 key-value pairs that can be attached to an object. this can be useful for storing additional information aboutSTRING
HIGHsrc/openai/types/vector_store_update_params.py0set of 16 key-value pairs that can be attached to an object. this can be useful for storing additional information aboutSTRING
HIGHsrc/openai/types/eval_list_response.py0set of 16 key-value pairs that can be attached to an object. this can be useful for storing additional information aboutSTRING
HIGHsrc/openai/types/eval_update_response.py0set of 16 key-value pairs that can be attached to an object. this can be useful for storing additional information aboutSTRING
HIGHsrc/openai/types/eval_create_response.py0set of 16 key-value pairs that can be attached to an object. this can be useful for storing additional information aboutSTRING
HIGH…ai/types/eval_stored_completions_data_source_config.py0set of 16 key-value pairs that can be attached to an object. this can be useful for storing additional information aboutSTRING
HIGHsrc/openai/types/beta/thread.py0set of 16 key-value pairs that can be attached to an object. this can be useful for storing additional information aboutSTRING
HIGHsrc/openai/types/beta/thread_update_params.py0set of 16 key-value pairs that can be attached to an object. this can be useful for storing additional information aboutSTRING
HIGHsrc/openai/types/beta/thread_create_params.py0set of 16 key-value pairs that can be attached to an object. this can be useful for storing additional information aboutSTRING
HIGHsrc/openai/types/beta/assistant.py0set of 16 key-value pairs that can be attached to an object. this can be useful for storing additional information aboutSTRING
HIGHsrc/openai/types/beta/beta_responses_client_event.py0set of 16 key-value pairs that can be attached to an object. this can be useful for storing additional information aboutSTRING
HIGH…openai/types/beta/beta_responses_client_event_param.py0set of 16 key-value pairs that can be attached to an object. this can be useful for storing additional information aboutSTRING
HIGHsrc/openai/types/beta/response_create_params.py0set of 16 key-value pairs that can be attached to an object. this can be useful for storing additional information aboutSTRING
HIGHsrc/openai/types/beta/assistant_create_params.py0set of 16 key-value pairs that can be attached to an object. this can be useful for storing additional information aboutSTRING
HIGHsrc/openai/types/beta/beta_response.py0set of 16 key-value pairs that can be attached to an object. this can be useful for storing additional information aboutSTRING
HIGHsrc/openai/types/beta/assistant_update_params.py0set of 16 key-value pairs that can be attached to an object. this can be useful for storing additional information aboutSTRING
HIGHsrc/openai/types/beta/thread_create_and_run_params.py0set of 16 key-value pairs that can be attached to an object. this can be useful for storing additional information aboutSTRING
HIGHsrc/openai/types/beta/realtime/realtime_response.py0set of 16 key-value pairs that can be attached to an object. this can be useful for storing additional information aboutSTRING
HIGH…nai/types/beta/realtime/response_create_event_param.py0set of 16 key-value pairs that can be attached to an object. this can be useful for storing additional information aboutSTRING
HIGHsrc/openai/types/beta/realtime/response_create_event.py0set of 16 key-value pairs that can be attached to an object. this can be useful for storing additional information aboutSTRING
HIGHsrc/openai/types/beta/threads/run.py0set of 16 key-value pairs that can be attached to an object. this can be useful for storing additional information aboutSTRING
HIGHsrc/openai/types/beta/threads/message_update_params.py0set of 16 key-value pairs that can be attached to an object. this can be useful for storing additional information aboutSTRING
HIGHsrc/openai/types/beta/threads/run_create_params.py0set of 16 key-value pairs that can be attached to an object. this can be useful for storing additional information aboutSTRING
HIGHsrc/openai/types/beta/threads/run_update_params.py0set of 16 key-value pairs that can be attached to an object. this can be useful for storing additional information aboutSTRING
HIGHsrc/openai/types/beta/threads/message.py0set of 16 key-value pairs that can be attached to an object. this can be useful for storing additional information aboutSTRING
HIGHsrc/openai/types/beta/threads/message_create_params.py0set of 16 key-value pairs that can be attached to an object. this can be useful for storing additional information aboutSTRING
HIGHsrc/openai/types/beta/threads/runs/run_step.py0set of 16 key-value pairs that can be attached to an object. this can be useful for storing additional information aboutSTRING
HIGHsrc/openai/types/evals/run_retrieve_response.py0set of 16 key-value pairs that can be attached to an object. this can be useful for storing additional information aboutSTRING
HIGHsrc/openai/types/evals/run_create_params.py0set of 16 key-value pairs that can be attached to an object. this can be useful for storing additional information aboutSTRING
HIGH…types/evals/create_eval_completions_run_data_source.py0set of 16 key-value pairs that can be attached to an object. this can be useful for storing additional information aboutSTRING
HIGH…evals/create_eval_completions_run_data_source_param.py0set of 16 key-value pairs that can be attached to an object. this can be useful for storing additional information aboutSTRING
HIGHsrc/openai/types/evals/run_cancel_response.py0set of 16 key-value pairs that can be attached to an object. this can be useful for storing additional information aboutSTRING
HIGHsrc/openai/types/evals/run_list_response.py0set of 16 key-value pairs that can be attached to an object. this can be useful for storing additional information aboutSTRING
HIGHsrc/openai/types/evals/run_create_response.py0set of 16 key-value pairs that can be attached to an object. this can be useful for storing additional information aboutSTRING
HIGHsrc/openai/types/fine_tuning/fine_tuning_job.py0set of 16 key-value pairs that can be attached to an object. this can be useful for storing additional information aboutSTRING
HIGHsrc/openai/types/fine_tuning/job_create_params.py0set of 16 key-value pairs that can be attached to an object. this can be useful for storing additional information aboutSTRING
HIGHsrc/openai/types/chat/completion_update_params.py0set of 16 key-value pairs that can be attached to an object. this can be useful for storing additional information aboutSTRING
4911 more matches not shown…
Hallucination Indicators1142 hits · 12735 pts
SeverityFileLineSnippetContext
CRITICALtests/lib/test_fine_tuning_positional_arguments.py35 response = client.fine_tuning.jobs.checkpoints.with_raw_response.list(CODE
CRITICALtests/lib/test_fine_tuning_positional_arguments.py46 with client.fine_tuning.jobs.checkpoints.with_streaming_response.list(CODE
CRITICALtests/lib/test_fine_tuning_positional_arguments.py60 client.fine_tuning.jobs.checkpoints.with_raw_response.list(CODE
CRITICALtests/lib/test_fine_tuning_positional_arguments.py88 response = await async_client.fine_tuning.jobs.checkpoints.with_raw_response.list(CODE
CRITICALtests/lib/test_fine_tuning_positional_arguments.py99 async with async_client.fine_tuning.jobs.checkpoints.with_streaming_response.list(CODE
CRITICALtests/lib/test_fine_tuning_positional_arguments.py113 await async_client.fine_tuning.jobs.checkpoints.with_raw_response.list(CODE
CRITICALtests/api_resources/beta/responses/test_input_items.py42 response = client.beta.responses.input_items.with_raw_response.list(CODE
CRITICALtests/api_resources/beta/responses/test_input_items.py53 with client.beta.responses.input_items.with_streaming_response.list(CODE
CRITICALtests/api_resources/beta/responses/test_input_items.py67 client.beta.responses.input_items.with_raw_response.list(CODE
CRITICALtests/api_resources/beta/responses/test_input_items.py98 response = await async_client.beta.responses.input_items.with_raw_response.list(CODE
CRITICALtests/api_resources/beta/responses/test_input_items.py109 async with async_client.beta.responses.input_items.with_streaming_response.list(CODE
CRITICALtests/api_resources/beta/responses/test_input_items.py123 await async_client.beta.responses.input_items.with_raw_response.list(CODE
CRITICALtests/api_resources/beta/responses/test_input_tokens.py66 response = client.beta.responses.input_tokens.with_raw_response.count()CODE
CRITICALtests/api_resources/beta/responses/test_input_tokens.py75 with client.beta.responses.input_tokens.with_streaming_response.count() as response:CODE
CRITICALtests/api_resources/beta/responses/test_input_tokens.py136 response = await async_client.beta.responses.input_tokens.with_raw_response.count()CODE
CRITICALtests/api_resources/beta/responses/test_input_tokens.py145 async with async_client.beta.responses.input_tokens.with_streaming_response.count() as response:CODE
CRITICALtests/api_resources/beta/chatkit/test_sessions.py62 response = client.beta.chatkit.sessions.with_raw_response.create(CODE
CRITICALtests/api_resources/beta/chatkit/test_sessions.py74 with client.beta.chatkit.sessions.with_streaming_response.create(CODE
CRITICALtests/api_resources/beta/chatkit/test_sessions.py95 response = client.beta.chatkit.sessions.with_raw_response.cancel(CODE
CRITICALtests/api_resources/beta/chatkit/test_sessions.py106 with client.beta.chatkit.sessions.with_streaming_response.cancel(CODE
CRITICALtests/api_resources/beta/chatkit/test_sessions.py120 client.beta.chatkit.sessions.with_raw_response.cancel(CODE
CRITICALtests/api_resources/beta/chatkit/test_sessions.py170 response = await async_client.beta.chatkit.sessions.with_raw_response.create(CODE
CRITICALtests/api_resources/beta/chatkit/test_sessions.py182 async with async_client.beta.chatkit.sessions.with_streaming_response.create(CODE
CRITICALtests/api_resources/beta/chatkit/test_sessions.py203 response = await async_client.beta.chatkit.sessions.with_raw_response.cancel(CODE
CRITICALtests/api_resources/beta/chatkit/test_sessions.py214 async with async_client.beta.chatkit.sessions.with_streaming_response.cancel(CODE
CRITICALtests/api_resources/beta/chatkit/test_sessions.py228 await async_client.beta.chatkit.sessions.with_raw_response.cancel(CODE
CRITICALtests/api_resources/beta/chatkit/test_threads.py31 response = client.beta.chatkit.threads.with_raw_response.retrieve(CODE
CRITICALtests/api_resources/beta/chatkit/test_threads.py42 with client.beta.chatkit.threads.with_streaming_response.retrieve(CODE
CRITICALtests/api_resources/beta/chatkit/test_threads.py56 client.beta.chatkit.threads.with_raw_response.retrieve(CODE
CRITICALtests/api_resources/beta/chatkit/test_threads.py78 response = client.beta.chatkit.threads.with_raw_response.list()CODE
CRITICALtests/api_resources/beta/chatkit/test_threads.py87 with client.beta.chatkit.threads.with_streaming_response.list() as response:CODE
CRITICALtests/api_resources/beta/chatkit/test_threads.py105 response = client.beta.chatkit.threads.with_raw_response.delete(CODE
CRITICALtests/api_resources/beta/chatkit/test_threads.py116 with client.beta.chatkit.threads.with_streaming_response.delete(CODE
CRITICALtests/api_resources/beta/chatkit/test_threads.py154 response = client.beta.chatkit.threads.with_raw_response.list_items(CODE
CRITICALtests/api_resources/beta/chatkit/test_threads.py165 with client.beta.chatkit.threads.with_streaming_response.list_items(CODE
CRITICALtests/api_resources/beta/chatkit/test_threads.py198 response = await async_client.beta.chatkit.threads.with_raw_response.retrieve(CODE
CRITICALtests/api_resources/beta/chatkit/test_threads.py209 async with async_client.beta.chatkit.threads.with_streaming_response.retrieve(CODE
CRITICALtests/api_resources/beta/chatkit/test_threads.py223 await async_client.beta.chatkit.threads.with_raw_response.retrieve(CODE
CRITICALtests/api_resources/beta/chatkit/test_threads.py245 response = await async_client.beta.chatkit.threads.with_raw_response.list()CODE
CRITICALtests/api_resources/beta/chatkit/test_threads.py254 async with async_client.beta.chatkit.threads.with_streaming_response.list() as response:CODE
CRITICALtests/api_resources/beta/chatkit/test_threads.py272 response = await async_client.beta.chatkit.threads.with_raw_response.delete(CODE
CRITICALtests/api_resources/beta/chatkit/test_threads.py283 async with async_client.beta.chatkit.threads.with_streaming_response.delete(CODE
CRITICALtests/api_resources/beta/chatkit/test_threads.py321 response = await async_client.beta.chatkit.threads.with_raw_response.list_items(CODE
CRITICALtests/api_resources/beta/chatkit/test_threads.py332 async with async_client.beta.chatkit.threads.with_streaming_response.list_items(CODE
CRITICALtests/api_resources/beta/chatkit/test_threads.py130 client.beta.chatkit.threads.with_raw_response.delete(CODE
CRITICALtests/api_resources/beta/chatkit/test_threads.py179 client.beta.chatkit.threads.with_raw_response.list_items(CODE
CRITICALtests/api_resources/beta/chatkit/test_threads.py297 await async_client.beta.chatkit.threads.with_raw_response.delete(CODE
CRITICALtests/api_resources/beta/chatkit/test_threads.py346 await async_client.beta.chatkit.threads.with_raw_response.list_items(CODE
CRITICALtests/api_resources/beta/threads/test_runs.py248 client.beta.threads.runs.with_raw_response.retrieve(CODE
CRITICALtests/api_resources/beta/threads/test_runs.py254 client.beta.threads.runs.with_raw_response.retrieve(CODE
CRITICALtests/api_resources/beta/threads/test_runs.py348 response = client.beta.threads.runs.with_raw_response.list(CODE
CRITICALtests/api_resources/beta/threads/test_runs.py360 with client.beta.threads.runs.with_streaming_response.list(CODE
CRITICALtests/api_resources/beta/threads/test_runs.py798 await async_client.beta.threads.runs.with_raw_response.retrieve(CODE
CRITICALtests/api_resources/beta/threads/test_runs.py804 await async_client.beta.threads.runs.with_raw_response.retrieve(CODE
CRITICALtests/api_resources/beta/threads/test_runs.py898 response = await async_client.beta.threads.runs.with_raw_response.list(CODE
CRITICALtests/api_resources/beta/threads/test_runs.py910 async with async_client.beta.threads.runs.with_streaming_response.list(CODE
CRITICALtests/api_resources/beta/threads/test_runs.py80 response = client.beta.threads.runs.with_raw_response.create(CODE
CRITICALtests/api_resources/beta/threads/test_runs.py93 with client.beta.threads.runs.with_streaming_response.create(CODE
CRITICALtests/api_resources/beta/threads/test_runs.py109 client.beta.threads.runs.with_raw_response.create(CODE
CRITICALtests/api_resources/beta/threads/test_runs.py170 response = client.beta.threads.runs.with_raw_response.create(CODE
1082 more matches not shown…
Unused Imports3127 hits · 2482 pts
SeverityFileLineSnippetContext
LOWtests/test_x509_host_authority.py1CODE
LOWtests/test_httpx_compat.py1CODE
LOWtests/test_data_residency_regressions.py1CODE
LOWtests/test_dependency_constraints.py1CODE
LOWtests/test_x509_security_boundaries.py1CODE
LOWtests/conftest.py1CODE
LOWtests/test_module_client.py1CODE
LOWtests/test_transform.py1CODE
LOWtests/test_send_queue_reconnect.py1CODE
LOWtests/test_x509_workload_identity.py1CODE
LOWtests/test_large_payload_contract.py1CODE
LOWtests/test_httpx2.py1CODE
LOWtests/test_x509_workload_identity_regressions.py1CODE
LOWtests/test_tls_hostname.py1CODE
LOWtests/test_httpx2_workload.py1CODE
LOWtests/test_sse_framing.py1CODE
LOWtests/test_debug_logging.py1CODE
LOWtests/test_streaming.py1CODE
LOWtests/test_mtls_http_client.py1CODE
LOWtests/test_x509_workload_identity_transport.py1CODE
LOWtests/test_upload_examples.py1CODE
LOWtests/test_httpx2_respx.py1CODE
LOWtests/utils.py1CODE
LOWtests/test_send_queue.py1CODE
LOWtests/test_x509_workload_identity_hardening.py1CODE
LOWtests/test_required_args.py1CODE
LOWtests/test_httpx2_base.py1CODE
LOWtests/test_platform.py1CODE
LOWtests/test_uv_workflows.py1CODE
LOWtests/test_client.py1CODE
LOWtests/test_client.py37CODE
LOWtests/test_data_residency_contract.py3CODE
LOWtests/test_extract_files.py1CODE
LOWtests/test_readme_metadata.py1CODE
LOWtests/test_multipart_encoding.py3CODE
LOWtests/test_utils/test_typing.py1CODE
LOWtests/test_utils/test_json.py1CODE
LOWtests/test_utils/test_path.py1CODE
LOWtests/lib/test_file_processing.py1CODE
LOWtests/lib/snapshots.py1CODE
LOWtests/lib/test_bedrock_auth_conformance.py1CODE
LOWtests/lib/test_vector_store_polling.py1CODE
LOWtests/lib/test_pydantic.py1CODE
LOWtests/lib/test_audio.py1CODE
LOWtests/lib/test_bedrock_runtime.py1CODE
LOWtests/lib/test_realtime_calls.py1CODE
LOWtests/lib/test_embeddings.py1CODE
LOWtests/lib/test_websocket_redirects.py1CODE
LOWtests/lib/test_azure_auth.py1CODE
LOWtests/lib/test_webhooks.py1CODE
LOWtests/lib/test_bedrock_provider.py1CODE
LOWtests/lib/bedrock_live.py17CODE
LOWtests/lib/test_azure_provider_diagnostics.py1CODE
LOWtests/lib/utils.py1CODE
LOWtests/lib/utils.py4CODE
LOWtests/lib/utils.py4CODE
LOWtests/lib/test_vector_store_files.py1CODE
LOWtests/lib/test_bedrock_credential_chain.py1CODE
LOWtests/lib/test_audio_response_format.py1CODE
LOWtests/lib/test_fine_tuning_positional_arguments.py1CODE
3067 more matches not shown…
Hyper-Verbose Identifiers2002 hits · 1728 pts
SeverityFileLineSnippetContext
LOWhelpers.md480def current_run_step_snapshot() -> RunStep | NoneCODE
LOWtests/test_httpx_compat.py20def test_external_legacy_httpx_client_is_supported() -> None:CODE
LOWtests/test_httpx_compat.py38async def test_external_legacy_async_httpx_client_is_supported() -> None:CODE
LOWtests/test_httpx_compat.py56async def test_external_legacy_aiohttp_client_is_supported() -> None:CODE
LOWtests/test_data_residency_regressions.py33def test_provider_conflicts_and_explicit_switch(client_type: type[OpenAI] | type[AsyncOpenAI]) -> None:CODE
LOWtests/test_data_residency_regressions.py51def test_legacy_azure_rejects_residency(client_type: type[AzureOpenAI] | type[AsyncAzureOpenAI]) -> None:CODE
LOWtests/test_data_residency_regressions.py59def test_legacy_bedrock_rejects_residency(client_type: type[BedrockOpenAI] | type[AsyncBedrockOpenAI]) -> None:CODE
LOWtests/test_data_residency_regressions.py74def test_sync_request_only_changes_destination() -> None:CODE
LOWtests/test_data_residency_regressions.py82async def test_async_request_only_changes_destination() -> None:CODE
LOWtests/test_data_residency_regressions.py92def test_residency_replaces_inherited_websocket_routing(CODE
LOWtests/test_dependency_constraints.py16def test_optional_network_dependency_security_floors(name: str, extra: str, affected: str, patched: str) -> None:CODE
LOWtests/test_x509_security_boundaries.py222def test_api_key_clients_keep_supported_plaintext_local_origins(client_type: type[OpenAI] | type[AsyncOpenAI]) -> None:CODE
LOWtests/conftest.py26def pytest_collection_modifyitems(items: list[pytest.Function]) -> None:CODE
LOWtests/test_module_client.py72def test_default_headers_option() -> None:CODE
LOWtests/test_module_client.py81def test_default_query_option() -> None:CODE
LOWtests/test_module_client.py122def test_only_api_key_results_in_openai_api() -> None:CODE
LOWtests/test_module_client.py130def test_azure_api_key_env_without_api_version() -> None:CODE
LOWtests/test_module_client.py142def test_azure_api_key_and_version_env() -> None:CODE
LOWtests/test_module_client.py155def test_azure_api_key_version_and_endpoint_env() -> None:CODE
LOWtests/test_module_client.py167def test_azure_azure_ad_token_version_and_endpoint_env() -> None:CODE
LOWtests/test_module_client.py179def test_azure_azure_ad_token_provider_version_and_endpoint_env() -> None:CODE
LOWtests/test_module_client.py194def test_azure_module_explicit_auth_precedence(forced: bool, mode: str) -> None:CODE
LOWtests/test_module_client.py231def test_azure_module_rejects_conflicting_explicit_auth(forced: bool) -> None:CODE
LOWtests/test_module_client.py242def test_azure_module_import_does_not_make_ambient_token_explicit() -> None:CODE
LOWtests/test_module_client.py268def test_azure_module_preserves_provider_ambiguity() -> None:CODE
LOWtests/test_module_client.py277def test_bedrock_token_and_region_env() -> None:CODE
LOWtests/test_module_client.py288def test_bedrock_api_type_env() -> None:CODE
LOWtests/test_module_client.py300def test_bedrock_api_type_uses_bedrock_credentials() -> None:CODE
LOWtests/test_module_client.py313def test_bedrock_api_type_uses_explicit_module_api_key() -> None:CODE
LOWtests/test_module_client.py326def test_bedrock_module_api_key_overrides_cached_env_token_after_load() -> None:CODE
LOWtests/test_module_client.py341def test_bedrock_module_api_key_switches_cached_aws_client_to_bearer() -> None:CODE
LOWtests/test_module_client.py365def test_bedrock_api_type_uses_token_provider_without_mutating_module_api_key() -> None:CODE
LOWtests/test_module_client.py377def test_bedrock_module_api_key_overrides_cached_token_provider() -> None:CODE
LOWtests/test_transform.py141async def test_includes_unknown_keys(use_async: bool) -> None:CODE
LOWtests/test_transform.py159async def test_ignores_invalid_input(use_async: bool) -> None:CODE
LOWtests/test_transform.py251async def test_datetime_custom_format(use_async: bool) -> None:CODE
LOWtests/test_transform.py277async def test_pydantic_model_to_dictionary(use_async: bool) -> None:CODE
LOWtests/test_transform.py284async def test_pydantic_empty_model(use_async: bool) -> None:CODE
LOWtests/test_transform.py290async def test_pydantic_unknown_field(use_async: bool) -> None:CODE
LOWtests/test_transform.py298async def test_pydantic_mismatched_types(use_async: bool) -> None:CODE
LOWtests/test_transform.py310async def test_pydantic_mismatched_object_type(use_async: bool) -> None:CODE
LOWtests/test_transform.py326async def test_pydantic_nested_objects(use_async: bool) -> None:CODE
LOWtests/test_transform.py340async def test_pydantic_default_field(use_async: bool) -> None:CODE
LOWtests/test_transform.py374async def test_iterable_of_dictionaries(use_async: bool) -> None:CODE
LOWtests/test_response.py33def test_extract_response_type_direct_classes() -> None:CODE
LOWtests/test_response.py39def test_extract_response_type_direct_class_missing_type_arg() -> None:CODE
LOWtests/test_response.py47def test_extract_response_type_concrete_subclasses() -> None:CODE
LOWtests/test_response.py53def test_extract_response_type_binary_response() -> None:CODE
LOWtests/test_response.py61def test_response_parse_mismatched_basemodel(client: OpenAI) -> None:CODE
LOWtests/test_response.py79async def test_async_response_parse_mismatched_basemodel(async_client: AsyncOpenAI) -> None:CODE
LOWtests/test_response.py96def test_response_parse_custom_stream(client: OpenAI) -> None:CODE
LOWtests/test_response.py111async def test_async_response_parse_custom_stream(async_client: AsyncOpenAI) -> None:CODE
LOWtests/test_response.py130def test_response_parse_custom_model(client: OpenAI) -> None:CODE
LOWtests/test_response.py146async def test_async_response_parse_custom_model(async_client: AsyncOpenAI) -> None:CODE
LOWtests/test_response.py161def test_response_basemodel_request_id(client: OpenAI) -> None:CODE
LOWtests/test_response.py185async def test_async_response_basemodel_request_id(client: OpenAI) -> None:CODE
LOWtests/test_response.py206def test_response_parse_annotated_type(client: OpenAI) -> None:CODE
LOWtests/test_response.py223async def test_async_response_parse_annotated_type(async_client: AsyncOpenAI) -> None:CODE
LOWtests/test_response.py276async def test_async_response_parse_bool(client: AsyncOpenAI, content: str, expected: bool) -> None:CODE
LOWtests/test_response.py295def test_response_parse_expect_model_union_non_json_content(client: OpenAI) -> None:CODE
1942 more matches not shown…
Modern Structural Boilerplate1419 hits · 1420 pts
SeverityFileLineSnippetContext
LOWtests/respx2/__init__.py29__all__ = [CODE
LOWtests/respx2/mocks.py18__all__ = ["Mocker", "HTTPCoreMocker"]CODE
LOWsrc/openai/_httpx2.py117def _set_httpx2_defaults(kwargs: dict[str, Any]) -> None:CODE
LOWsrc/openai/__init__.py46__all__ = [CODE
LOWsrc/openai/_client.py105__all__ = ["Timeout", "Transport", "ProxiesTypes", "RequestOptions", "OpenAI", "AsyncOpenAI", "Client", "AsyncClient"]CODE
LOWsrc/openai/_models.py96__all__ = ["BaseModel", "GenericModel"]CODE
LOWsrc/openai/_models.py846def set_pydantic_config(typ: Any, config: pydantic.ConfigDict) -> None:CODE
LOWsrc/openai/pagination.py6__all__ = [CODE
LOWsrc/openai/_exceptions.py15__all__ = [CODE
LOWsrc/openai/types/other_file_chunking_strategy_object.py7__all__ = ["OtherFileChunkingStrategyObject"]CODE
LOWsrc/openai/types/upload_complete_params.py9__all__ = ["UploadCompleteParams"]CODE
LOWsrc/openai/types/skill.py7__all__ = ["Skill"]CODE
LOWsrc/openai/types/video_create_error.py5__all__ = ["VideoCreateError"]CODE
LOWsrc/openai/types/file_purpose.py5__all__ = ["FilePurpose"]CODE
LOWsrc/openai/types/eval_retrieve_response.py19__all__ = [CODE
LOWsrc/openai/types/image_model.py5__all__ = ["ImageModel"]CODE
LOWsrc/openai/types/vector_store_search_params.py12__all__ = ["VectorStoreSearchParams", "Filters", "RankingOptions"]CODE
LOWsrc/openai/types/batch_usage.py5__all__ = ["BatchUsage", "InputTokensDetails", "OutputTokensDetails"]CODE
LOWsrc/openai/types/model_deleted.py5__all__ = ["ModelDeleted"]CODE
LOWsrc/openai/types/container_create_params.py14__all__ = ["ContainerCreateParams", "ExpiresAfter", "NetworkPolicy", "Skill"]CODE
LOWsrc/openai/types/moderation_text_input_param.py7__all__ = ["ModerationTextInputParam"]CODE
LOWsrc/openai/types/vector_store_create_params.py12__all__ = ["VectorStoreCreateParams", "ExpiresAfter"]CODE
LOWsrc/openai/types/batch_create_params.py10__all__ = ["BatchCreateParams", "OutputExpiresAfter"]CODE
LOWsrc/openai/types/video_size.py5__all__ = ["VideoSize"]CODE
LOWsrc/openai/types/eval_list_params.py7__all__ = ["EvalListParams"]CODE
LOWsrc/openai/types/skill_update_params.py7__all__ = ["SkillUpdateParams"]CODE
LOWsrc/openai/types/moderation_create_params.py12__all__ = ["ModerationCreateParams"]CODE
LOWsrc/openai/types/eval_update_params.py10__all__ = ["EvalUpdateParams"]CODE
LOWsrc/openai/types/video_delete_response.py7__all__ = ["VideoDeleteResponse"]CODE
LOWsrc/openai/types/embedding_model.py5__all__ = ["EmbeddingModel"]CODE
LOWsrc/openai/types/upload.py9__all__ = ["Upload"]CODE
LOWsrc/openai/types/completion.py10__all__ = ["Completion"]CODE
LOWsrc/openai/types/video_model.py6__all__ = ["VideoModel"]CODE
LOWsrc/openai/types/file_chunking_strategy.py10__all__ = ["FileChunkingStrategy"]CODE
LOWsrc/openai/types/file_chunking_strategy_param.py11__all__ = ["FileChunkingStrategyParam"]CODE
LOWsrc/openai/types/embedding.py8__all__ = ["Embedding"]CODE
LOWsrc/openai/types/vector_store.py9__all__ = ["VectorStore", "FileCounts", "ExpiresAfter"]CODE
LOWsrc/openai/types/video_get_character_response.py7__all__ = ["VideoGetCharacterResponse"]CODE
LOWsrc/openai/types/file_create_params.py10__all__ = ["FileCreateParams", "ExpiresAfter"]CODE
LOWsrc/openai/types/video_create_character_params.py9__all__ = ["VideoCreateCharacterParams"]CODE
LOWsrc/openai/types/video_download_content_params.py7__all__ = ["VideoDownloadContentParams"]CODE
LOWsrc/openai/types/skill_create_params.py10__all__ = ["SkillCreateParams"]CODE
LOWsrc/openai/types/moderation.py10__all__ = ["Moderation", "Categories", "CategoryAppliedInputTypes", "CategoryScores"]CODE
LOWsrc/openai/types/image_gen_completed_event.py7__all__ = ["ImageGenCompletedEvent", "Usage", "UsageInputTokensDetails"]CODE
LOWsrc/openai/types/image_edit_partial_image_event.py7__all__ = ["ImageEditPartialImageEvent"]CODE
LOWsrc/openai/types/eval_create_params.py18__all__ = [CODE
LOWsrc/openai/types/batch.py12__all__ = ["Batch", "Errors"]CODE
LOWsrc/openai/types/video_edit_params.py10__all__ = ["VideoEditParams", "Video", "VideoVideoReferenceInputParam"]CODE
LOWsrc/openai/types/image_input_reference_param.py7__all__ = ["ImageInputReferenceParam"]CODE
LOWsrc/openai/types/skill_list_params.py7__all__ = ["SkillListParams"]CODE
LOWsrc/openai/types/image_edit_stream_event.py10__all__ = ["ImageEditStreamEvent"]CODE
LOWsrc/openai/types/completion_create_params.py11__all__ = ["CompletionCreateParamsBase", "CompletionCreateParamsNonStreaming", "CompletionCreateParamsStreaming"]CODE
LOWsrc/openai/types/auto_file_chunking_strategy_param.py7__all__ = ["AutoFileChunkingStrategyParam"]CODE
LOWsrc/openai/types/video_create_params.py14__all__ = ["VideoCreateParams", "InputReference"]CODE
LOWsrc/openai/types/vector_store_update_params.py10__all__ = ["VectorStoreUpdateParams", "ExpiresAfter"]CODE
LOWsrc/openai/types/image_gen_partial_image_event.py7__all__ = ["ImageGenPartialImageEvent"]CODE
LOWsrc/openai/types/moderation_image_url_input_param.py7__all__ = ["ModerationImageURLInputParam", "ImageURL"]CODE
LOWsrc/openai/types/batch_list_params.py7__all__ = ["BatchListParams"]CODE
LOWsrc/openai/types/embedding_create_params.py11__all__ = ["EmbeddingCreateParams"]CODE
LOWsrc/openai/types/audio_response_format.py5__all__ = ["AudioResponseFormat"]CODE
1359 more matches not shown…
AI Structural Patterns281 hits · 254 pts
SeverityFileLineSnippetContext
LOWtests/test_uv_workflows.py94CODE
LOWtests/test_uv_workflows.py1359CODE
LOWtests/lib/test_bedrock.py955CODE
LOWtests/respx2/models.py45CODE
LOWtests/respx2/models.py271CODE
LOWtests/respx2/models.py428CODE
LOWtests/respx2/utils.py113CODE
LOWtests/respx2/mocks.py184CODE
LOWtests/respx2/mocks.py193CODE
LOWsrc/openai/_base_client.py2073CODE
LOWsrc/openai/_client.py157CODE
LOWsrc/openai/_client.py678CODE
LOWsrc/openai/_client.py899CODE
LOWsrc/openai/_client.py1433CODE
LOWsrc/openai/_models.py303CODE
LOWsrc/openai/_models.py374CODE
LOWsrc/openai/_vendor/httpx_aiohttp/transport.py77CODE
LOWsrc/openai/providers/bedrock.py383CODE
LOWsrc/openai/resources/files.py194CODE
LOWsrc/openai/resources/files.py535CODE
LOWsrc/openai/resources/completions.py50CODE
LOWsrc/openai/resources/completions.py208CODE
LOWsrc/openai/resources/completions.py366CODE
LOWsrc/openai/resources/completions.py524CODE
LOWsrc/openai/resources/completions.py617CODE
LOWsrc/openai/resources/completions.py775CODE
LOWsrc/openai/resources/completions.py933CODE
LOWsrc/openai/resources/completions.py1091CODE
LOWsrc/openai/resources/images.py50CODE
LOWsrc/openai/resources/images.py129CODE
LOWsrc/openai/resources/images.py254CODE
LOWsrc/openai/resources/images.py379CODE
LOWsrc/openai/resources/images.py504CODE
LOWsrc/openai/resources/images.py575CODE
LOWsrc/openai/resources/images.py696CODE
LOWsrc/openai/resources/images.py817CODE
LOWsrc/openai/resources/images.py938CODE
LOWsrc/openai/resources/images.py1025CODE
LOWsrc/openai/resources/images.py1104CODE
LOWsrc/openai/resources/images.py1229CODE
LOWsrc/openai/resources/images.py1354CODE
LOWsrc/openai/resources/images.py1479CODE
LOWsrc/openai/resources/images.py1550CODE
LOWsrc/openai/resources/images.py1671CODE
LOWsrc/openai/resources/images.py1792CODE
LOWsrc/openai/resources/images.py1913CODE
LOWsrc/openai/resources/videos.py71CODE
LOWsrc/openai/resources/videos.py140CODE
LOWsrc/openai/resources/videos.py662CODE
LOWsrc/openai/resources/videos.py731CODE
LOWsrc/openai/resources/beta/assistants.py58CODE
LOWsrc/openai/resources/beta/assistants.py227CODE
LOWsrc/openai/resources/beta/assistants.py408CODE
LOWsrc/openai/resources/beta/assistants.py537CODE
LOWsrc/openai/resources/beta/assistants.py706CODE
LOWsrc/openai/resources/beta/assistants.py887CODE
LOWsrc/openai/resources/beta/responses/responses.py107CODE
LOWsrc/openai/resources/beta/responses/responses.py503CODE
LOWsrc/openai/resources/beta/responses/responses.py899CODE
LOWsrc/openai/resources/beta/responses/responses.py1294CODE
221 more matches not shown…
Cross-Language Confusion27 hits · 135 pts
SeverityFileLineSnippetContext
HIGHtests/test_utils/test_json.py121 assert json_bytes == b'{"model":{"name":"Eve","email":null,"phone":null}}'CODE
HIGHtests/test_utils/test_json.py126 assert json_bytes == b'{"model":{"name":"Frank","email":"frank@example.com","phone":null}}'CODE
HIGHtests/lib/chat/test_completions.py44 '{"id": "chatcmpl-ABfvaueLEMLNYbT8YzpJxsmiQ6HSY", "object": "chat.completion", "created": 1727346142, "modelCODE
HIGHtests/lib/chat/test_completions.py118 '{"id": "chatcmpl-ABfvbtVnTu5DeC4EFnRYj8mtfOM99", "object": "chat.completion", "created": 1727346143, "modelCODE
HIGHtests/lib/chat/test_completions.py193 '{"id": "chatcmpl-ABfvcC8grKYsRkSoMp9CCAhbXAd0b", "object": "chat.completion", "created": 1727346144, "modelCODE
HIGHtests/lib/chat/test_completions.py272 '{"id": "chatcmpl-ABfvjIatz0zrZu50gRbMtlp0asZpz", "object": "chat.completion", "created": 1727346151, "modelCODE
HIGHtests/lib/chat/test_completions.py322 '{"id": "chatcmpl-ABfvp8qzboW92q8ONDF4DPHlI7ckC", "object": "chat.completion", "created": 1727346157, "modelCODE
HIGHtests/lib/chat/test_completions.py403 '{"id": "chatcmpl-ABfvqhz4uUUWsw8Ohw2Mp9B4sKKV8", "object": "chat.completion", "created": 1727346158, "modelCODE
HIGHtests/lib/chat/test_completions.py474 '{"id": "chatcmpl-ABfvtNiaTNUF6OymZUnEFc9lPq9p1", "object": "chat.completion", "created": 1727346161, "modelCODE
HIGHtests/lib/chat/test_completions.py560 '{"id": "chatcmpl-ABfvvX7eB1KsfeZj8VcF3z7G7SbaA", "object": "chat.completion", "created": 1727346163, "mCODE
HIGHtests/lib/chat/test_completions.py587 '{"id": "chatcmpl-ABfvwoKVWPQj2UPlAcAKM7s40GsRx", "object": "chat.completion", "created": 1727346164, "modelCODE
HIGHtests/lib/chat/test_completions.py638 '{"id": "chatcmpl-ABfvx6Z4dchiW2nya1N8KMsHFrQRE", "object": "chat.completion", "created": 1727346165, "modelCODE
HIGHtests/lib/chat/test_completions.py714 '{"id": "chatcmpl-ABfvyvfNWKcl7Ohqos4UFrmMs1v4C", "object": "chat.completion", "created": 1727346166, "modelCODE
HIGHtests/lib/chat/test_completions.py797 '{"id": "chatcmpl-ABfvzdvCI6RaIkiEFNjqGXCSYnlzf", "object": "chat.completion", "created": 1727346167, "modelCODE
HIGHtests/lib/chat/test_completions.py875 '{"id": "chatcmpl-ABrDYCa8W1w66eUxKDO8TQF1m6trT", "object": "chat.completion", "created": 1727389540, "modelCODE
HIGHtests/lib/chat/test_completions.py956 '{"id": "chatcmpl-ABrDQWOiw0PK5JOsxl1D9ooeQgznq", "object": "chat.completion", "created": 1727389532, "modelCODE
HIGHtests/lib/responses/test_responses.py36 '{"id": "resp_689a0b2545288193953c892439b42e2800b2e36c65a1fd4b", "object": "response", "created_at": 1754925CODE
HIGHscripts/castiron/test_custom_code_report.py309 await check(true, true, 10, null);CODE
HIGHscripts/castiron/test_custom_code_report.py310 await check(false, true, 21, null);CODE
HIGHscripts/castiron/test_custom_code_report.py294 issues: {listComments() {}, updateComment: async x => writes.push(['update', x]),CODE
HIGHscripts/castiron/test_custom_code_report.py295 createComment: async x => writes.push(['create', x])}}};CODE
HIGHscripts/castiron/custom_code_report.py6Hash v1: SHA256(domain || u64(entry count) || entries), where each entry isSTRING
HIGHscripts/castiron/custom_code_report.py7u64(path length) || path bytes || six ASCII Git mode bytes || u64(blob length)STRING
HIGHscripts/castiron/test_custom_code_budget.py158 '{"schema_version":1,"max_custom_patch_lines":null}',CODE
HIGHscripts/castiron/test_custom_code_budget.py358 repos: {createCommitStatus: async value => published.push(value)},CODE
HIGH…ta/chatkit/chat_session_chatkit_configuration_param.py42 When omitted, history is enabled by default with no limit on recent_threads (null).STRING
HIGH…ta/chatkit/chat_session_chatkit_configuration_param.py75 (null).STRING
Deep Nesting127 hits · 95 pts
SeverityFileLineSnippetContext
LOWtests/test_module_client.py194CODE
LOWtests/test_tls_hostname.py197CODE
LOWtests/test_debug_logging.py31CODE
LOWtests/test_debug_logging.py155CODE
LOWtests/test_debug_logging.py229CODE
LOWtests/test_debug_logging.py275CODE
LOWtests/utils.py56CODE
LOWtests/test_uv_workflows.py394CODE
LOWtests/test_uv_workflows.py494CODE
LOWtests/test_uv_workflows.py580CODE
LOWtests/test_uv_workflows.py689CODE
LOWtests/test_uv_workflows.py769CODE
LOWtests/test_uv_workflows.py881CODE
LOWtests/test_uv_workflows.py2307CODE
LOWtests/test_uv_workflows.py2493CODE
LOWtests/test_uv_workflows.py2582CODE
LOWtests/test_uv_workflows.py2659CODE
LOWtests/test_uv_workflows.py2775CODE
LOWtests/test_uv_workflows.py2945CODE
LOWtests/test_uv_workflows.py3068CODE
LOWtests/test_uv_workflows.py3146CODE
LOWtests/test_uv_workflows.py3458CODE
LOWtests/test_uv_workflows.py3584CODE
LOWtests/test_uv_workflows.py3697CODE
LOWtests/test_uv_workflows.py3848CODE
LOWtests/test_uv_workflows.py3994CODE
LOWtests/test_uv_workflows.py4171CODE
LOWtests/test_uv_workflows.py4238CODE
LOWtests/test_uv_workflows.py4328CODE
LOWtests/test_uv_workflows.py4428CODE
LOWtests/test_uv_workflows.py4502CODE
LOWtests/test_uv_workflows.py4564CODE
LOWtests/test_uv_workflows.py4804CODE
LOWtests/test_uv_workflows.py4909CODE
LOWtests/test_uv_workflows.py4994CODE
LOWtests/test_uv_workflows.py5060CODE
LOWtests/test_uv_workflows.py5136CODE
LOWtests/test_uv_workflows.py5192CODE
LOWtests/test_uv_workflows.py5258CODE
LOWtests/test_uv_workflows.py5345CODE
LOWtests/test_uv_workflows.py5428CODE
LOWtests/test_uv_workflows.py6402CODE
LOWtests/test_uv_workflows.py6498CODE
LOWtests/lib/test_bedrock_auth_conformance.py151CODE
LOWtests/lib/test_bedrock_auth_conformance.py542CODE
LOWtests/lib/test_audio.py19CODE
LOWtests/lib/test_audio.py54CODE
LOWtests/lib/test_realtime_calls.py21CODE
LOWtests/lib/bedrock_live.py114CODE
LOWtests/lib/test_azure_provider_diagnostics.py132CODE
LOWtests/lib/test_azure_websocket_redirects.py94CODE
LOWtests/respx2/patterns.py754CODE
LOWtests/respx2/models.py477CODE
LOWtests/respx2/router.py290CODE
LOWexamples/image_stream.py11CODE
LOWexamples/responses/websocket.py267CODE
LOWexamples/realtime/realtime.py13CODE
LOWexamples/realtime/azure_realtime.py15CODE
LOWexamples/realtime/audio_util.py95CODE
LOWscripts/check-dependency-security.py134CODE
67 more matches not shown…
Excessive Try-Catch Wrapping71 hits · 84 pts
SeverityFileLineSnippetContext
LOWREADME.md606 except Exception as e:CODE
LOWREADME.md642 except Exception as e:CODE
LOWtests/respx2/patterns.py152 except Exception:CODE
LOWtests/respx2/models.py342 except Exception as error:CODE
LOWtests/respx2/router.py299 except Exception as error:CODE
LOWexamples/image_stream.py52 except Exception as error:CODE
MEDIUMexamples/image_stream.py53 print(f"Error generating image: {error}")CODE
LOWscripts/utils/ruffen-docs.py42 except Exception as e:CODE
MEDIUMsrc/openai/_base_client.py2147def get_platform() -> Platform:CODE
MEDIUMsrc/openai/_base_client.py2222def get_python_runtime() -> str:CODE
MEDIUMsrc/openai/_base_client.py2229def get_python_version() -> str:CODE
MEDIUMsrc/openai/_base_client.py2236def get_architecture() -> Arch:CODE
LOWsrc/openai/_base_client.py2225 except Exception:CODE
LOWsrc/openai/_base_client.py2232 except Exception:CODE
LOWsrc/openai/_base_client.py2239 except Exception:CODE
LOWsrc/openai/_base_client.py441 except Exception:CODE
LOWsrc/openai/_base_client.py890 except Exception:CODE
LOWsrc/openai/_base_client.py1098 except Exception as err:CODE
LOWsrc/openai/_base_client.py1512 except Exception:CODE
LOWsrc/openai/_base_client.py1721 except Exception as err:CODE
LOWsrc/openai/_base_client.py2151 except Exception:CODE
LOWsrc/openai/_response.py249 except Exception as exc:CODE
LOWsrc/openai/_legacy_response.py316 except Exception as exc:CODE
LOWsrc/openai/_models.py622 except Exception:CODE
LOWsrc/openai/_models.py651 except Exception:CODE
LOWsrc/openai/_models.py696 except Exception:CODE
LOWsrc/openai/_models.py702 except Exception:CODE
LOWsrc/openai/_utils/_proxy.py51 except Exception:CODE
LOWsrc/openai/_utils/_utils.py410 except Exception:CODE
MEDIUMsrc/openai/_utils/_utils.py407def get_async_library() -> str:CODE
LOWsrc/openai/_vendor/httpx_aiohttp/transport.py44 except Exception as exc:CODE
MEDIUMsrc/openai/_vendor/httpx_aiohttp/transport.py41def map_aiohttp_exceptions() -> typing.Iterator[None]:CODE
LOWsrc/openai/auth/_workload.py97 except Exception as e:CODE
LOWsrc/openai/auth/_workload.py157 except Exception as e:CODE
LOWsrc/openai/auth/_workload.py201 except Exception as e:CODE
MEDIUMsrc/openai/auth/_workload.py90def get_token() -> str:CODE
MEDIUMsrc/openai/auth/_workload.py128def get_token() -> str:CODE
MEDIUMsrc/openai/auth/_workload.py181def get_token() -> str:CODE
LOWsrc/openai/providers/bedrock.py158 except Exception as exc:CODE
LOWsrc/openai/providers/bedrock.py177 except Exception as exc:CODE
MEDIUMsrc/openai/providers/bedrock.py153def _resolve_token(self) -> str:CODE
MEDIUMsrc/openai/providers/bedrock.py170def _resolve_token_async(self) -> str:CODE
LOWsrc/openai/resources/beta/responses/responses.py4192 except Exception:CODE
LOWsrc/openai/resources/beta/responses/responses.py4256 except Exception:CODE
LOWsrc/openai/resources/beta/responses/responses.py4288 except Exception:CODE
LOWsrc/openai/resources/beta/responses/responses.py4302 except Exception:CODE
LOWsrc/openai/resources/beta/responses/responses.py4649 except Exception:CODE
LOWsrc/openai/resources/beta/responses/responses.py4711 except Exception:CODE
LOWsrc/openai/resources/beta/responses/responses.py4743 except Exception:CODE
LOWsrc/openai/resources/beta/responses/responses.py4753 except Exception:CODE
LOWsrc/openai/resources/responses/responses.py4087 except Exception:CODE
LOWsrc/openai/resources/responses/responses.py4151 except Exception:CODE
LOWsrc/openai/resources/responses/responses.py4183 except Exception:CODE
LOWsrc/openai/resources/responses/responses.py4197 except Exception:CODE
LOWsrc/openai/resources/responses/responses.py4544 except Exception:CODE
LOWsrc/openai/resources/responses/responses.py4606 except Exception:CODE
LOWsrc/openai/resources/responses/responses.py4638 except Exception:CODE
LOWsrc/openai/resources/responses/responses.py4648 except Exception:CODE
LOWsrc/openai/resources/realtime/realtime.py357 except Exception:CODE
LOWsrc/openai/resources/realtime/realtime.py420 except Exception:CODE
11 more matches not shown…
Fake / Example Data33 hits · 40 pts
SeverityFileLineSnippetContext
LOWtests/test_tls_hostname.py40 return http.Response(200, json={"access_token": "fake-token", "expires_in": 3600})CODE
LOWtests/test_tls_hostname.py84 return http.Response(200, json={"access_token": "fake-token", "expires_in": 3600})CODE
LOWtests/test_utils/test_json.py98 address = Address(street="123 Main St")CODE
LOWtests/test_utils/test_json.py102 assert json_bytes == b'{"user":{"name":"Diana","address":{"street":"123 Main St"}}}'CODE
LOWtests/lib/test_embeddings.py116 "user": "fake-user",CODE
LOWtests/lib/test_embeddings.py139 "user": "fake-user",CODE
LOWtests/lib/test_embeddings.py171 "user": "fake-user",CODE
LOWtests/lib/test_websocket_redirects.py21EXTRA_HEADERS = {"api-key": "fake-key", "Cookie": "fake-cookie", "X-Custom": "fake-private-header"}CODE
LOWtests/lib/test_websocket_redirects.py142 api_key="fake-key", websocket_base_url="wss://origin.test", http_client=async_http_client()CODE
LOWtests/lib/test_websocket_redirects.py160 api_key="fake-key", websocket_base_url="wss://origin.test", http_client=async_http_client()CODE
LOWtests/lib/test_websocket_redirects.py174 assert headers["Authorization"] == "Bearer fake-key"CODE
LOWtests/lib/test_websocket_redirects.py183 api_key="fake-key",CODE
LOWtests/lib/test_websocket_redirects.py198 assert all(uri.host == "origin.test" and headers["api-key"] == "fake-key" for uri, headers in handshakes.attempts)CODE
LOWtests/lib/test_websocket_redirects.py207 api_key="fake-key",CODE
LOWtests/lib/test_websocket_redirects.py220 assert connect_mock.call_args.kwargs["additional_headers"]["Authorization"] == "Bearer fake-key"CODE
LOWtests/lib/test_azure_auth.py160 return f"fake-token-{calls}"CODE
LOWtests/lib/test_azure_auth.py182 expected_auth("azure_ad_token", "fake-token-1"),CODE
LOWtests/lib/test_azure_auth.py183 expected_auth("azure_ad_token", "fake-token-2"),CODE
LOWtests/lib/test_azure_auth.py186 assert auth(headers) == expected_auth("azure_ad_token", "fake-token-3")CODE
LOWtests/lib/test_azure_auth.py218 return f"fake-key-{calls}"CODE
LOWtests/lib/test_azure_auth.py262 assert websocket_headers == [expected_auth("api_key", f"fake-key-{i}") for i in (4, 5)]CODE
LOWtests/lib/test_azure_auth.py264 expected_auth("api_key", f"fake-key-{i}") for i in (1, 2, 3)CODE
LOWtests/lib/test_azure_auth.py277 assert auth(requests[-1].headers) == expected_auth("api_key", "fake-key-6")CODE
LOWtests/lib/test_azure_deployment_path.py47 client = client_type(api_key="fake-key", api_version=_API_VERSION, azure_endpoint=_ENDPOINT)CODE
LOWtests/lib/test_azure_deployment_path.py60 client = client_type(api_key="fake-key", api_version=_API_VERSION, azure_endpoint=_ENDPOINT)CODE
LOWtests/lib/test_azure_deployment_path.py72 api_key="fake-key", api_version=_API_VERSION, azure_endpoint=_ENDPOINT, azure_deployment=deploymentCODE
LOWtests/lib/test_azure_deployment_path.py91 api_key="fake-key",CODE
LOWtests/lib/test_azure_deployment_path.py111 api_key="fake-key",CODE
LOWtests/lib/test_azure_deployment_path.py128 api_key="fake-key",CODE
LOWtests/lib/test_azure_deployment_path.py143 api_key="fake-key",CODE
LOWtests/lib/test_azure_redirects.py101 result = client.models.with_raw_response.list(extra_headers={"Authorization": "Bearer fake-token"})CODE
LOWtests/lib/test_azure_redirects.py120 result = await client.models.with_raw_response.list(extra_headers={"Authorization": "Bearer fake-token"})CODE
LOWtests/lib/test_azure.py934 json_data={"model": "placeholder"},CODE
Slop Phrases7 hits · 14 pts
SeverityFileLineSnippetContext
MEDIUMtests/lib/chat/test_completions_streaming.py73 content="I'm unable to provide real-time weather updates. To get the current weather in San Francisco, ISTRING
MEDIUMtests/lib/chat/test_completions_streaming.py88 content="I'm unable to provide real-time weather updates. To get the current weather in San Francisco, I recommendSTRING
MEDIUMtests/lib/chat/test_completions_streaming.py1100 content="I'm unable to provide real-time weather updates. To get the current weather in San Francisco, ICODE
MEDIUMtests/lib/chat/test_completions.py62 content="I'm unable to provide real-time weather updates. To get the current weather in San Francisco, ISTRING
MEDIUMexamples/streaming.py44 # In Python 3.10+ you can also use the `await anext(response)` builtin insteadCOMMENT
MEDIUM…c/openai/types/evals/runs/output_item_list_response.py38 # To access properties that are not valid identifiers you can use `getattr`, e.g.COMMENT
MEDIUM…enai/types/evals/runs/output_item_retrieve_response.py38 # To access properties that are not valid identifiers you can use `getattr`, e.g.COMMENT
Synthetic Comment Markers4 hits · 10 pts
SeverityFileLineSnippetContext
HIGHsrc/openai/types/content_provenance_check.py29 file. The content could still have been generated by OpenAI if the metadata wasSTRING
HIGHsrc/openai/types/content_provenance_check.py57 could still have been generated by OpenAI if the metadata was stripped or hasSTRING
HIGHsrc/openai/resources/content_provenance_checks.py59 uploaded file. The content could still have been generated by OpenAI if theSTRING
HIGHsrc/openai/resources/content_provenance_checks.py133 uploaded file. The content could still have been generated by OpenAI if theSTRING
AI Slop Vocabulary4 hits · 6 pts
SeverityFileLineSnippetContext
LOWpyproject.toml193# it's fine to just use Pyright.COMMENT
LOWsrc/openai/_response.py265 # If the API responds with content that isn't JSON then we just returnCOMMENT
LOWsrc/openai/_legacy_response.py332 # If the API responds with content that isn't JSON then we just returnCOMMENT
LOWsrc/openai/_models.py491 # If the type cannot be reconstructed, just return the validated listCOMMENT
Overly Generic Function Names5 hits · 5 pts
SeverityFileLineSnippetContext
LOWtests/test_x509_workload_identity.py700 def handle_request(self, request: httpx2.Request) -> httpx2.Response:CODE
LOWtests/test_x509_workload_identity_regressions.py537 def handle_request(self, request: httpx2.Request) -> httpx2.Response:CODE
LOWtests/test_client.py80 def handle_request(CODE
LOWtests/respx2/transports.py75 def handle_request(self, request: httpx.Request) -> httpx.Response:CODE
LOWsrc/openai/auth/_x509.py146 def handle_request(self, request: httpx2.Request) -> httpx2.Response:CODE
Docstring Block Structure1 hit · 5 pts
SeverityFileLineSnippetContext
HIGHsrc/openai/_utils/_path.py79Interpolate {name} placeholders in `template` from keyword arguments. Args: template: The template string cSTRING
Over-Commented Block4 hits · 4 pts
SeverityFileLineSnippetContext
LOW.devcontainer/devcontainer.json41 // Configure tool-specific properties.COMMENT
LOWexamples/realtime/push_to_talk_app.py1#!/usr/bin/env uv runCOMMENT
LOWsrc/openai/_types.py101# method that uses `ResponseT` which would lead to an unacceptableCOMMENT
LOWsrc/openai/_models.py621 return validate_type(type_=cast("type[object]", original_type or type_), value=value)COMMENT
Self-Referential Comments2 hits · 2 pts
SeverityFileLineSnippetContext
MEDIUMsrc/openai/_base_client.py985 """This method is used as a callback for mutating the `Request` objectSTRING
MEDIUMsrc/openai/_base_client.py1604 """This method is used as a callback for mutating the `Request` objectSTRING