Repository Analysis

dottxt-ai/outlines

Structured Outputs

28.4 Moderate AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of dottxt-ai/outlines, a Python project with 14,500 GitHub stars. SynthScan v2.0 examined 40,043 lines of code across 228 source files, recording 832 pattern matches distributed across 16 syntactic categories. The overall adjusted score of 28.4 places this repository in the Moderate 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).

28.4
Adjusted Score
28.4
Raw Score
100%
Time Factor
2026-07-13
Last Push
14.5K
Stars
Python
Language
40.0K
Lines of Code
228
Files
832
Pattern Hits
2026-07-14
Scan Date
0.25
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 0HIGH 58MEDIUM 26LOW 748

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 832 distinct pattern matches across 16 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.

Hyper-Verbose Identifiers582 hits · 598 pts
SeverityFileLineSnippetContext
LOWtests/conftest.py6def pytest_collection_modifyitems(config, items):CODE
LOWtests/test_inputs.py23def test_image_initialization():CODE
LOWtests/test_inputs.py47def test_image_initialization_invalid():CODE
LOWtests/test_inputs.py61def test_video_initialization():CODE
LOWtests/test_inputs.py67def test_audio_initialization():CODE
LOWtests/test_inputs.py129def test_chat_add_system_message(image_input):CODE
LOWtests/test_inputs.py152def test_add_user_message_string(image_input):CODE
LOWtests/test_inputs.py175def test_add_assistant_message_string(image_input):CODE
LOWtests/test_generator.py90def test_steerable_generator_init_valid_processor(steerable_model, sample_processor):CODE
LOWtests/test_generator.py96def test_steerable_generator_init_cfg_output_type(steerable_model):CODE
LOWtests/test_generator.py102def test_steerable_generator_init_other_output_type(steerable_model):CODE
LOWtests/test_generator.py108def test_steerable_generator_init_invalid_output_type(steerable_model, sample_processor):CODE
LOWtests/test_generator.py113def test_steerable_generator_call(steerable_model):CODE
LOWtests/test_generator.py119def test_steerable_generator_stream(steerable_model):CODE
LOWtests/test_generator.py130def test_black_box_generator_init(black_box_sync_model):CODE
LOWtests/test_generator.py135def test_black_box_generator_call(black_box_sync_model):CODE
LOWtests/test_generator.py141def test_black_box_generator_stream(black_box_sync_model):CODE
LOWtests/test_generator.py151def test_async_black_box_generator_init(black_box_async_model):CODE
LOWtests/test_generator.py158async def test_async_black_box_generator_call(black_box_async_model):CODE
LOWtests/test_generator.py165async def test_async_black_box_generator_stream(black_box_async_model):CODE
LOWtests/test_generator.py177def test_generator_init_no_model():CODE
LOWtests/test_generator.py182def test_generator_init_multiple_output_type(steerable_model, sample_processor):CODE
LOWtests/test_generator.py187def test_generator_steerable_output_type(steerable_model):CODE
LOWtests/test_generator.py194def test_generator_steerable_processor(steerable_model, sample_processor):CODE
LOWtests/test_generator.py201def test_generator_black_box_sync_output_type(black_box_sync_model):CODE
LOWtests/test_generator.py208def test_generator_black_box_sync_processor(black_box_sync_model, sample_processor):CODE
LOWtests/test_generator.py213def test_generator_black_box_async_output_type(black_box_async_model):CODE
LOWtests/test_generator.py220def test_generator_black_box_async_processor(black_box_async_model, sample_processor):CODE
LOWtests/test_templates.py30def function_with_annotations(x: int, y: str) -> str:CODE
LOWtests/test_templates.py34def function_with_no_docstring(x, y):CODE
LOWtests/test_templates.py61def test_vision_initialization():CODE
LOWtests/test_templates.py86def test_vision_invalid_image_format():CODE
LOWtests/test_templates.py136def test_render_escaped_linebreak():STRING
LOWtests/test_templates.py325def test_template_from_str_with_extra_linebreaks():STRING
LOWtests/test_exceptions.py88 def test_api_error_stores_provider_and_original(self):CODE
LOWtests/test_exceptions.py94 def test_api_error_status_code_param(self):CODE
LOWtests/test_exceptions.py98 def test_api_error_default_message(self):CODE
LOWtests/test_exceptions.py102 def test_api_error_provider_message(self):CODE
LOWtests/test_exceptions.py106 def test_hint_stored_in_notes_or_attribute(self):CODE
LOWtests/test_exceptions.py113 def test_hint_note_uses_arrow_format(self):CODE
LOWtests/test_exceptions.py120 def test_hint_note_fallback_without_add_note(self):CODE
LOWtests/test_exceptions.py163 def test_response_status_code(self):CODE
LOWtests/test_exceptions.py170 def test_sentinel_minus_one_filtered(self):CODE
LOWtests/test_exceptions.py180 def test_response_with_non_int_status_code_returns_none(self):CODE
LOWtests/test_exceptions.py187 def test_response_with_out_of_range_status_code_returns_none(self):CODE
LOWtests/test_exceptions.py226 def test_no_status_code_fallback_to_api_error(self):CODE
LOWtests/test_exceptions.py230 def test_original_exception_preserved(self):CODE
LOWtests/test_exceptions.py238 def test_unknown_provider_uses_status_code_fallback(self):CODE
LOWtests/test_exceptions.py247 def test_request_id_propagated_through_normalize(self):CODE
LOWtests/test_exceptions.py257 def test_request_id_from_response_headers_propagated(self):CODE
LOWtests/test_exceptions.py275 def test_type_error_is_not_provider(self):CODE
LOWtests/test_exceptions.py278 def test_attribute_error_is_not_provider(self):CODE
LOWtests/test_exceptions.py281 def test_key_error_is_not_provider(self):CODE
LOWtests/test_exceptions.py284 def test_name_error_is_not_provider(self):CODE
LOWtests/test_exceptions.py287 def test_assertion_error_is_not_provider(self):CODE
LOWtests/test_exceptions.py290 def test_plain_exception_no_status_code_is_not_provider(self):CODE
LOWtests/test_exceptions.py301 def test_status_code_on_response_is_provider(self):CODE
LOWtests/test_exceptions.py308 def test_sentinel_minus_one_is_not_provider(self):CODE
LOWtests/test_exceptions.py316 def test_openai_sdk_exception_is_provider(self):CODE
LOWtests/test_exceptions.py320 def test_anthropic_sdk_exception_is_provider(self):CODE
522 more matches not shown…
Cross-File Repetition53 hits · 265 pts
SeverityFileLineSnippetContext
HIGHtests/backends/test_outlines_core.py0?start: sum ?sum: product | sum "+" product -> add | sum "-" product -> sub ?product: atom | product "*" atom -> mul | pSTRING
HIGHtests/backends/test_llguidance.py0?start: sum ?sum: product | sum "+" product -> add | sum "-" product -> sub ?product: atom | product "*" atom -> mul | pSTRING
HIGHtests/backends/test_backends.py0?start: sum ?sum: product | sum "+" product -> add | sum "-" product -> sub ?product: atom | product "*" atom -> mul | pSTRING
HIGHtests/models/test_llamacpp.py0?start: sum ?sum: product | sum "+" product -> add | sum "-" product -> sub ?product: atom | product "*" atom -> mul | pSTRING
HIGHdocs/guide/getting_started.md0?start: sum ?sum: product | sum "+" product -> add | sum "-" product -> sub ?product: atom | product "*" atom -> mul | pSTRING
HIGHdocs/features/models/mlxlm.md0?start: sum ?sum: product | sum "+" product -> add | sum "-" product -> sub ?product: atom | product "*" atom -> mul | pSTRING
HIGHdocs/features/models/vllm.md0?start: sum ?sum: product | sum "+" product -> add | sum "-" product -> sub ?product: atom | product "*" atom -> mul | pSTRING
HIGHdocs/features/models/transformers.md0?start: sum ?sum: product | sum "+" product -> add | sum "-" product -> sub ?product: atom | product "*" atom -> mul | pSTRING
HIGHdocs/features/models/vllm_offline.md0?start: sum ?sum: product | sum "+" product -> add | sum "-" product -> sub ?product: atom | product "*" atom -> mul | pSTRING
HIGHtests/models/test_sglang_type_adapter.py0{ "type": "object", "properties": { "answer": {"type": "number"} } }STRING
HIGHtests/models/test_vllm_type_adapter.py0{ "type": "object", "properties": { "answer": {"type": "number"} } }STRING
HIGHtests/models/test_vllm_offline_type_adapter.py0{ "type": "object", "properties": { "answer": {"type": "number"} } }STRING
HIGHtests/models/test_tgi_model_adapter.py0{ "type": "object", "properties": { "answer": {"type": "number"} } }STRING
HIGHtests/models/test_mistral.py0get the dottxt api key from the environment, providing a default value if not found. this fixture should be used for tesSTRING
HIGHtests/models/test_openai.py0get the dottxt api key from the environment, providing a default value if not found. this fixture should be used for tesSTRING
HIGHtests/models/test_dottxt.py0get the dottxt api key from the environment, providing a default value if not found. this fixture should be used for tesSTRING
HIGHdocs/examples/deploy-using-modal.md0{ "title": "character", "type": "object", "properties": { "name": { "title": "name", "maxlength": 10, "type": "string" }STRING
HIGHdocs/examples/deploy-using-bentoml.md0{ "title": "character", "type": "object", "properties": { "name": { "title": "name", "maxlength": 10, "type": "string" }STRING
HIGHdocs/examples/deploy-using-cerebrium.md0{ "title": "character", "type": "object", "properties": { "name": { "title": "name", "maxlength": 10, "type": "string" }STRING
HIGHexamples/modal_example.py0{ "title": "character", "type": "object", "properties": { "name": { "title": "name", "maxlength": 10, "type": "string" }STRING
HIGHexamples/bentoml/service.py0{ "title": "character", "type": "object", "properties": { "name": { "title": "name", "maxlength": 10, "type": "string" }STRING
HIGHsrc/outlines/backends/outlines_core.py0parameters ---------- model the outlines model of the user.STRING
HIGHsrc/outlines/backends/llguidance.py0parameters ---------- model the outlines model of the user.STRING
HIGHsrc/outlines/backends/xgrammar.py0parameters ---------- model the outlines model of the user.STRING
HIGHsrc/outlines/backends/outlines_core.py0create a logits processor from a json schema. parameters ---------- json_schema: str the json schema to create a logits STRING
HIGHsrc/outlines/backends/llguidance.py0create a logits processor from a json schema. parameters ---------- json_schema: str the json schema to create a logits STRING
HIGHsrc/outlines/backends/xgrammar.py0create a logits processor from a json schema. parameters ---------- json_schema: str the json schema to create a logits STRING
HIGHsrc/outlines/backends/outlines_core.py0create a logits processor from a regex. parameters ---------- regex: str the regex to create a logits processor from. reSTRING
HIGHsrc/outlines/backends/llguidance.py0create a logits processor from a regex. parameters ---------- regex: str the regex to create a logits processor from. reSTRING
HIGHsrc/outlines/backends/xgrammar.py0create a logits processor from a regex. parameters ---------- regex: str the regex to create a logits processor from. reSTRING
HIGHsrc/outlines/models/mistral.py0generate the `messages` argument to pass to the client. parameters ---------- model_input the input provided by the userSTRING
HIGHsrc/outlines/models/gemini.py0generate the `messages` argument to pass to the client. parameters ---------- model_input the input provided by the userSTRING
HIGHsrc/outlines/models/openai.py0generate the `messages` argument to pass to the client. parameters ---------- model_input the input provided by the userSTRING
HIGHsrc/outlines/models/anthropic.py0generate the `messages` argument to pass to the client. parameters ---------- model_input the input provided by the userSTRING
HIGHsrc/outlines/models/vllm.py0stream text using tgi. parameters ---------- model_input the prompt based on which the model will generate a response. oSTRING
HIGHsrc/outlines/models/tgi.py0stream text using tgi. parameters ---------- model_input the prompt based on which the model will generate a response. oSTRING
HIGHsrc/outlines/models/sglang.py0stream text using tgi. parameters ---------- model_input the prompt based on which the model will generate a response. oSTRING
HIGHsrc/outlines/models/lmstudio.py0async thin wrapper around the `dottxt.client.asyncdottxt` client. this wrapper is used to convert the input and output tSTRING
HIGHsrc/outlines/models/gemini.py0async thin wrapper around the `dottxt.client.asyncdottxt` client. this wrapper is used to convert the input and output tSTRING
HIGHsrc/outlines/models/openai.py0async thin wrapper around the `dottxt.client.asyncdottxt` client. this wrapper is used to convert the input and output tSTRING
HIGHsrc/outlines/models/anthropic.py0async thin wrapper around the `dottxt.client.asyncdottxt` client. this wrapper is used to convert the input and output tSTRING
HIGHsrc/outlines/models/dottxt.py0async thin wrapper around the `dottxt.client.asyncdottxt` client. this wrapper is used to convert the input and output tSTRING
HIGHsrc/outlines/models/ollama.py0async thin wrapper around the `dottxt.client.asyncdottxt` client. this wrapper is used to convert the input and output tSTRING
HIGHsrc/outlines/models/lmstudio.py0generate text using dottxt asynchronously. parameters ---------- model_input the prompt based on which the model will geSTRING
HIGHsrc/outlines/models/dottxt.py0generate text using dottxt asynchronously. parameters ---------- model_input the prompt based on which the model will geSTRING
HIGHsrc/outlines/models/ollama.py0generate text using dottxt asynchronously. parameters ---------- model_input the prompt based on which the model will geSTRING
HIGHsrc/outlines/models/transformers.py0generate the prompt argument to pass to the model. parameters ---------- model_input the input provided by the user. retSTRING
HIGHsrc/outlines/models/mlxlm.py0generate the prompt argument to pass to the model. parameters ---------- model_input the input provided by the user. retSTRING
HIGHsrc/outlines/models/llamacpp.py0generate the prompt argument to pass to the model. parameters ---------- model_input the input provided by the user. retSTRING
HIGHsrc/outlines/models/gemini.py0generate the `messages` argument to pass to the client when the user passes a chat instance.STRING
HIGHsrc/outlines/models/openai.py0generate the `messages` argument to pass to the client when the user passes a chat instance.STRING
HIGHsrc/outlines/models/ollama.py0generate the `messages` argument to pass to the client when the user passes a chat instance.STRING
HIGHsrc/outlines/models/anthropic.py0generate the `messages` argument to pass to the client when the user passes a chat instance.STRING
Unused Imports99 hits · 99 pts
SeverityFileLineSnippetContext
LOWtests/test_inputs.py4CODE
LOWtests/test_inputs.py6CODE
LOWtests/test_inputs.py6CODE
LOWtests/test_inputs.py6CODE
LOWtests/test_applications.py1CODE
LOWtests/test_cache.py8CODE
LOWtests/test_cache.py9CODE
LOWtests/types/test_types_utils.py13CODE
LOWtests/types/test_to_regex.py4CODE
LOWtests/models/test_vllm.py5CODE
LOWtests/models/test_dottxt_type_adapter.py11CODE
LOWtests/models/test_llamacpp_tokenizer.py4CODE
LOWtests/processors/test_tensor_adapters.py14CODE
LOWtests/processors/test_base_processor.py1CODE
LOWexamples/dating_profile.py4CODE
LOWsrc/outlines/__init__.py4CODE
LOWsrc/outlines/__init__.py5CODE
LOWsrc/outlines/__init__.py6CODE
LOWsrc/outlines/__init__.py7CODE
LOWsrc/outlines/__init__.py8CODE
LOWsrc/outlines/__init__.py9CODE
LOWsrc/outlines/__init__.py10CODE
LOWsrc/outlines/__init__.py11CODE
LOWsrc/outlines/__init__.py12CODE
LOWsrc/outlines/__init__.py13CODE
LOWsrc/outlines/__init__.py14CODE
LOWsrc/outlines/__init__.py15CODE
LOWsrc/outlines/__init__.py16CODE
LOWsrc/outlines/__init__.py17CODE
LOWsrc/outlines/__init__.py18CODE
LOWsrc/outlines/__init__.py19CODE
LOWsrc/outlines/__init__.py20CODE
LOWsrc/outlines/__init__.py21CODE
LOWsrc/outlines/__init__.py22CODE
LOWsrc/outlines/templates.py11CODE
LOWsrc/outlines/inputs.py6CODE
LOWsrc/outlines/types/__init__.py3CODE
LOWsrc/outlines/types/__init__.py3CODE
LOWsrc/outlines/types/__init__.py3CODE
LOWsrc/outlines/types/__init__.py3CODE
LOWsrc/outlines/types/__init__.py3CODE
LOWsrc/outlines/types/__init__.py3CODE
LOWsrc/outlines/types/__init__.py3CODE
LOWsrc/outlines/types/__init__.py3CODE
LOWsrc/outlines/types/__init__.py3CODE
LOWsrc/outlines/types/__init__.py3CODE
LOWsrc/outlines/types/__init__.py3CODE
LOWsrc/outlines/types/__init__.py3CODE
LOWsrc/outlines/types/__init__.py3CODE
LOWsrc/outlines/types/__init__.py3CODE
LOWsrc/outlines/types/__init__.py21CODE
LOWsrc/outlines/types/utils.py9CODE
LOWsrc/outlines/types/utils.py9CODE
LOWsrc/outlines/types/utils.py9CODE
LOWsrc/outlines/types/utils.py9CODE
LOWsrc/outlines/types/locale/__init__.py3CODE
LOWsrc/outlines/backends/llguidance.py14CODE
LOWsrc/outlines/models/lmstudio.py23CODE
LOWsrc/outlines/models/transformers.py19CODE
LOWsrc/outlines/models/transformers.py20CODE
39 more matches not shown…
Decorative Section Separators16 hits · 56 pts
SeverityFileLineSnippetContext
MEDIUMtests/types/test_dsl.py1010# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/types/test_dsl.py1013# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/models/test_openai.py344# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/models/test_openai.py348# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/models/test_provider_exceptions.py329# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/models/test_provider_exceptions.py332# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/models/test_dottxt.py66# ── Sync tests ────────────────────────────────────────────────────────────────COMMENT
MEDIUMtests/models/test_dottxt.py144# ── Async tests ───────────────────────────────────────────────────────────────COMMENT
MEDIUMtests/models/test_ollama.py295# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/models/test_ollama.py298# ---------------------------------------------------------------------------COMMENT
MEDIUMsrc/outlines/exceptions.py170# ---------------------------------------------------------------------------COMMENT
MEDIUMsrc/outlines/exceptions.py172# ---------------------------------------------------------------------------COMMENT
MEDIUMsrc/outlines/exceptions.py210# ---------------------------------------------------------------------------COMMENT
MEDIUMsrc/outlines/exceptions.py212# ---------------------------------------------------------------------------COMMENT
MEDIUMsrc/outlines/exceptions.py224# ---------------------------------------------------------------------------COMMENT
MEDIUMsrc/outlines/exceptions.py226# ---------------------------------------------------------------------------COMMENT
Modern Structural Boilerplate24 hits · 24 pts
SeverityFileLineSnippetContext
LOWsrc/outlines/exceptions.py14__all__ = [CODE
LOWsrc/outlines/types/__init__.py49__all__ = [CODE
LOWsrc/outlines/types/locale/__init__.py5__all__ = [CODE
LOWsrc/outlines/backends/outlines_core.py42 def _setup(self, batch_size: int, vocab_size: int) -> None:CODE
LOWsrc/outlines/backends/llguidance.py50 def _setup(self, batch_size: int) -> None:CODE
LOWsrc/outlines/backends/__init__.py12__all__ = [CODE
LOWsrc/outlines/backends/xgrammar.py38 def _setup(self, batch_size: int, vocab_size: int) -> None:CODE
LOWsrc/outlines/models/mistral.py35__all__ = ["AsyncMistral", "Mistral", "from_mistral"]CODE
LOWsrc/outlines/models/vllm.py17__all__ = ["VLLM", "AsyncVLLM", "from_vllm"]CODE
LOWsrc/outlines/models/lmstudio.py25__all__ = ["LMStudio", "AsyncLMStudio", "from_lmstudio"]CODE
LOWsrc/outlines/models/transformers.py27__all__ = ["Transformers", "TransformersMultiModal", "from_transformers"]CODE
LOWsrc/outlines/models/vllm_offline.py20__all__ = ["VLLMOffline", "from_vllm_offline"]CODE
LOWsrc/outlines/models/__init__.py57__all__ = [CODE
LOWsrc/outlines/models/gemini.py31__all__ = ["Gemini", "from_gemini"]CODE
LOWsrc/outlines/models/mlxlm.py28__all__ = ["MLXLM", "from_mlxlm"]CODE
LOWsrc/outlines/models/tgi.py23__all__ = ["AsyncTGI", "TGI", "from_tgi"]CODE
LOWsrc/outlines/models/openai.py33__all__ = ["AsyncOpenAI", "OpenAI", "from_openai"]CODE
LOWsrc/outlines/models/anthropic.py15__all__ = ["Anthropic", "from_anthropic"]CODE
LOWsrc/outlines/models/dottxt.py16__all__ = ["AsyncDottxt", "Dottxt", "from_dottxt"]CODE
LOWsrc/outlines/models/sglang.py25__all__ = ["AsyncSGLang", "SGLang", "from_sglang"]CODE
LOWsrc/outlines/models/ollama.py25__all__ = ["AsyncOllama", "Ollama", "from_ollama"]CODE
LOWsrc/outlines/models/llamacpp.py25__all__ = ["LlamaCpp", "from_llamacpp"]CODE
LOWsrc/outlines/processors/__init__.py5__all__ = [CODE
LOWsrc/outlines/processors/tensor_adapters/__init__.py21__all__ = [CODE
Self-Referential Comments6 hits · 21 pts
SeverityFileLineSnippetContext
MEDIUMtests/test_templates.py62 # Create a simple image for testingCOMMENT
MEDIUMtests/test_templates.py66 # Initialize the Vision objectCOMMENT
MEDIUMtests/test_templates.py87 # Create an image without a formatCOMMENT
MEDIUMdocs/examples/extract_event_details.py14# Define the event schema using PydanticCOMMENT
MEDIUMdocs/examples/extract_event_details.py41# Create the generatorCOMMENT
MEDIUMdocs/examples/extract_event_details.py44# Create the promptCOMMENT
Deep Nesting21 hits · 21 pts
SeverityFileLineSnippetContext
LOWtests/test_utils/mock_lmstudio_client.py42CODE
LOWtests/processors/test_tensor_adapters.py31CODE
LOWtests/processors/test_tensor_adapters.py41CODE
LOWtests/processors/test_tensor_adapters.py223CODE
LOWsrc/outlines/exceptions.py68CODE
LOWsrc/outlines/types/dsl.py704CODE
LOWsrc/outlines/types/dsl.py873CODE
LOWsrc/outlines/types/dsl.py923CODE
LOWsrc/outlines/types/dsl.py293CODE
LOWsrc/outlines/types/dsl.py362CODE
LOWsrc/outlines/types/json_schema_utils.py15CODE
LOWsrc/outlines/models/mistral.py106CODE
LOWsrc/outlines/models/mistral.py140CODE
LOWsrc/outlines/models/mistral.py192CODE
LOWsrc/outlines/models/lmstudio.py86CODE
LOWsrc/outlines/models/lmstudio.py126CODE
LOWsrc/outlines/models/transformers.py453CODE
LOWsrc/outlines/models/transformers.py614CODE
LOWsrc/outlines/models/gemini.py147CODE
LOWsrc/outlines/models/dottxt.py43CODE
LOWsrc/outlines/models/ollama.py112CODE
Magic Placeholder Names3 hits · 15 pts
SeverityFileLineSnippetContext
HIGHdocs/features/models/openai_compatible.md24 api_key="your-api-key"CODE
HIGHdocs/features/models/openai_compatible.md60 api_key="your-api-key"CODE
HIGHdocs/features/models/openai_compatible.md74 api_key="your-api-key",CODE
Excessive Try-Catch Wrapping10 hits · 10 pts
SeverityFileLineSnippetContext
LOWdocs/guide/fastapi_vllm_deployment.md153 except Exception as e:CODE
LOWdocs/guide/fastapi_vllm_deployment.md181 except Exception as e:CODE
MEDIUMdocs/examples/structured_generation_workflow.md183 print(f"Error {matched_string} != {phone_number}")STRING
LOWdocs/examples/react_agent.md175 except Exception as e:CODE
LOWdocs/examples/react_agent.md180 except Exception as e:CODE
LOWsrc/outlines/exceptions.py417 except Exception as exc:CODE
LOWsrc/outlines/types/dsl.py430 except Exception as e: # pragma: no coverCODE
LOWsrc/outlines/types/utils.py188 except Exception as e:CODE
LOWsrc/outlines/models/vllm_offline.py264 except Exception:CODE
LOWsrc/outlines/models/vllm_offline.py272 except Exception:CODE
Structural Annotation Overuse5 hits · 9 pts
SeverityFileLineSnippetContext
LOWdocs/guide/fastapi_vllm_deployment.md19### Step 1: Define Data ModelsCOMMENT
LOWdocs/guide/fastapi_vllm_deployment.md57### Step 2: Define the promptsCOMMENT
LOWdocs/guide/fastapi_vllm_deployment.md83### Step 3: Create the FastAPI ApplicationCOMMENT
LOWdocs/guide/fastapi_vllm_deployment.md187### Step 1: Start your vLLM serverCOMMENT
LOWdocs/guide/fastapi_vllm_deployment.md193### Step 2: Run the FastAPI applicationCOMMENT
Cross-Language Confusion2 hits · 5 pts
SeverityFileLineSnippetContext
HIGHtests/types/test_dsl.py435 assert schema.schema == '{"properties": {"foo": {"title": "Foo", "type": "string"}, "bar": {"anyOf": [{"type": "inteSTRING
HIGHtests/types/test_dsl.py443 assert schema.schema == '{"properties": {"foo": {"title": "Foo", "type": "string"}, "bar": {"anyOf": [{"type": "inteSTRING
Modern AI Meta-Vocabulary2 hits · 4 pts
SeverityFileLineSnippetContext
MEDIUMREADME.md575# Use with examples for few-shot learningSTRING
MEDIUMexamples/dating_profile.py88# Motivation: Reasonably large model that fits on a single GPU and has been fine-tuned for a larger context windowCOMMENT
Over-Commented Block4 hits · 4 pts
SeverityFileLineSnippetContext
LOWdocs/examples/qa-with-citations.md81# {'id': 5, 'first_name': 'John', 'last_name': 'Smith', 'age': 20}]COMMENT
LOWdocs/examples/qa-with-citations.md241# 'Which companies did Robert intern at?'COMMENT
LOWdocs/examples/react_agent.md221# Thought: To answer this question, I will use the 'wikipedia' action to gather information about England's geographicalCOMMENT
LOWdocs/examples/chain_of_density.md81# },COMMENT
AI Slop Vocabulary2 hits · 3 pts
SeverityFileLineSnippetContext
LOWscripts/gen_ref_pages.py48 # For root module, just use the package nameCOMMENT
LOWsrc/outlines/types/dsl.py394 # just return itCOMMENT
AI Structural Patterns2 hits · 2 pts
SeverityFileLineSnippetContext
LOWexamples/math_generate_code.py37CODE
LOWsrc/outlines/processors/tensor_adapters/mlx.py57CODE
Dead Code1 hit · 2 pts
SeverityFileLineSnippetContext
MEDIUMsrc/outlines/models/dottxt.py270CODE