AI Slop Code RIsk Monitor

dottxt-ai/outlines

Structured Outputs

28.3 Elevated pattern signal View on GitHub

Maintenance and Governance Review

This report summarizes scanner evidence for dottxt-ai/outlines, a Python project with 15,915 GitHub stars. SynthScan examined 40,927 lines of code across 230 source files, recording 858 pattern matches distributed across 17 syntactic categories. The legacy adjusted pattern signal is 28.3 (Elevated pattern signal); it is not an authorship estimate.

Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.

28.3
Adjusted Signal
28.3
Raw Pattern Score
100%
Time Factor
2026-09-21
Last Push
15.9K
Stars
Python
Language
40.9K
Lines of Code
230
Files
858
Pattern Hits
2026-10-12
Scan Date
0.25
HC Hit Rate

Risk Review · v3

Use each vector to guide manual verification of the underlying findings.

Cognitive Ownership Risk 56.7/100 · HIGH

Can maintainers explain intent, assumptions, and trade-offs? 651 finding(s).

Hallucinated Dependency & Supply Chain Risk 13.5/100 · LOW

Are imports declared and package/API names verified? 104 finding(s).

Agent Over-Engineering Ratio 69.5/100 · HIGH

Are wrappers, guards, and repeated structures necessary? 710 finding(s).

PR Review Velocity Impact 76.8/100 · CRITICAL

Which changes need focused human review? 858 finding(s).

What These Metrics Mean

Adjusted Signal
Legacy pattern score normalized per 1,000 scanned lines and multiplied by the repository-level time factor. It is not an estimate of AI authorship.
Raw Pattern Score
Sum of severity- and context-weighted pattern findings before applying the time factor.
Time Factor
A coarse multiplier based on repository last-push metadata. It does not identify when individual code was written.
Pattern Hits
Count of configured pattern findings. Review each location and surrounding code before acting.
HC Hit Rate
High- and critical-severity findings per scanned file. Severity is a configured detector weight, not proof of a vulnerability or authorship.
Lines / Files
Scan coverage denominators used by the legacy normalized score.

Pattern-Signal History

This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.

Severity Breakdown

Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.

CRITICAL 0HIGH 57MEDIUM 26LOW 775

Directory Score Breakdown

This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.

Pattern Findings

The scanner identified 858 distinct pattern matches across 17 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. 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 configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.

Hyper-Verbose Identifiers605 hits · 618 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
LOW⚡tests/test_generator.py90def test_steerable_generator_init_valid_processor(steerable_model, sample_processor):CODE
LOW⚡tests/test_generator.py96def test_steerable_generator_init_cfg_output_type(steerable_model):CODE
LOW⚡tests/test_generator.py102def test_steerable_generator_init_other_output_type(steerable_model):CODE
LOW⚡tests/test_generator.py108def test_steerable_generator_init_invalid_output_type(steerable_model, sample_processor):CODE
LOW⚡tests/test_generator.py113def test_steerable_generator_call(steerable_model):CODE
LOW⚡tests/test_generator.py119def test_steerable_generator_stream(steerable_model):CODE
LOW⚡tests/test_generator.py130def test_black_box_generator_init(black_box_sync_model):CODE
LOW⚡tests/test_generator.py135def test_black_box_generator_call(black_box_sync_model):CODE
LOW⚡tests/test_generator.py141def test_black_box_generator_stream(black_box_sync_model):CODE
LOW⚡tests/test_generator.py151def test_async_black_box_generator_init(black_box_async_model):CODE
LOW⚡tests/test_generator.py158async def test_async_black_box_generator_call(black_box_async_model):CODE
LOW⚡tests/test_generator.py165async def test_async_black_box_generator_stream(black_box_async_model):CODE
LOW⚡tests/test_generator.py177def test_generator_init_no_model():CODE
LOW⚡tests/test_generator.py182def test_generator_init_multiple_output_type(steerable_model, sample_processor):CODE
LOW⚡tests/test_generator.py187def test_generator_steerable_output_type(steerable_model):CODE
LOW⚡tests/test_generator.py194def test_generator_steerable_processor(steerable_model, sample_processor):CODE
LOW⚡tests/test_generator.py201def test_generator_black_box_sync_output_type(black_box_sync_model):CODE
LOW⚡tests/test_generator.py208def test_generator_black_box_sync_processor(black_box_sync_model, sample_processor):CODE
LOW⚡tests/test_generator.py213def test_generator_black_box_async_output_type(black_box_async_model):CODE
LOW⚡tests/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
LOW⚡tests/test_templates.py77def test_vision_initialization():CODE
LOWtests/test_templates.py102def test_vision_invalid_image_format():CODE
LOWtests/test_templates.py152def test_render_escaped_linebreak():STRING
LOWtests/test_templates.py341def test_template_from_str_with_extra_linebreaks():STRING
LOWtests/test_templates.py436def test_render_trailing_whitespace_preserves_linebreak():CODE
LOWtests/test_templates.py441def test_render_trailing_whitespace_keeps_next_line_indentation():CODE
LOW⚡tests/test_exceptions.py88 def test_api_error_stores_provider_and_original(self):CODE
LOW⚡tests/test_exceptions.py94 def test_api_error_status_code_param(self):CODE
LOW⚡tests/test_exceptions.py98 def test_api_error_default_message(self):CODE
LOW⚡tests/test_exceptions.py102 def test_api_error_provider_message(self):CODE
LOW⚡tests/test_exceptions.py106 def test_hint_stored_in_notes_or_attribute(self):CODE
LOW⚡tests/test_exceptions.py113 def test_hint_note_uses_arrow_format(self):CODE
LOW⚡tests/test_exceptions.py120 def test_hint_note_fallback_without_add_note(self):CODE
LOW⚡tests/test_exceptions.py163 def test_response_status_code(self):CODE
LOW⚡tests/test_exceptions.py170 def test_sentinel_minus_one_filtered(self):CODE
LOW⚡tests/test_exceptions.py180 def test_response_with_non_int_status_code_returns_none(self):CODE
LOW⚡tests/test_exceptions.py187 def test_response_with_out_of_range_status_code_returns_none(self):CODE
LOW⚡tests/test_exceptions.py226 def test_no_status_code_fallback_to_api_error(self):CODE
LOW⚡tests/test_exceptions.py230 def test_original_exception_preserved(self):CODE
LOW⚡tests/test_exceptions.py238 def test_unknown_provider_uses_status_code_fallback(self):CODE
LOW⚡tests/test_exceptions.py247 def test_request_id_propagated_through_normalize(self):CODE
LOW⚡tests/test_exceptions.py257 def test_request_id_from_response_headers_propagated(self):CODE
LOW⚡tests/test_exceptions.py275 def test_type_error_is_not_provider(self):CODE
LOW⚡tests/test_exceptions.py278 def test_attribute_error_is_not_provider(self):CODE
LOW⚡tests/test_exceptions.py281 def test_key_error_is_not_provider(self):CODE
LOW⚡tests/test_exceptions.py284 def test_name_error_is_not_provider(self):CODE
LOW⚡tests/test_exceptions.py287 def test_assertion_error_is_not_provider(self):CODE
LOW⚡tests/test_exceptions.py290 def test_plain_exception_no_status_code_is_not_provider(self):CODE
LOW⚡tests/test_exceptions.py301 def test_status_code_on_response_is_provider(self):CODE
LOW⚡tests/test_exceptions.py308 def test_sentinel_minus_one_is_not_provider(self):CODE
545 more matches not shown…
Cross-File Repetition49 hits · 245 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 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/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.py10CODE
LOWsrc/outlines/types/utils.py10CODE
LOWsrc/outlines/types/utils.py10CODE
LOWsrc/outlines/types/utils.py10CODE
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.py1079# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/types/test_dsl.py1082# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/models/test_openai.py344# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/models/test_openai.py348# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/models/test_provider_exceptions.py329# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/models/test_provider_exceptions.py332# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/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
Deep Nesting24 hits · 24 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
LOWtests/processors/test_tensor_adapters.py247CODE
LOWsrc/outlines/templates.py321CODE
LOWsrc/outlines/exceptions.py68CODE
LOWsrc/outlines/types/dsl.py730CODE
LOWsrc/outlines/types/dsl.py925CODE
LOWsrc/outlines/types/dsl.py978CODE
LOWsrc/outlines/types/dsl.py293CODE
LOWsrc/outlines/types/dsl.py362CODE
LOWsrc/outlines/types/json_schema_utils.py15CODE
LOWsrc/outlines/backends/xgrammar.py92CODE
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.py466CODE
LOWsrc/outlines/models/transformers.py627CODE
LOWsrc/outlines/models/gemini.py163CODE
LOWsrc/outlines/models/dottxt.py43CODE
LOWsrc/outlines/models/ollama.py112CODE
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
MEDIUM⚡tests/test_templates.py78 # Create a simple image for testingCOMMENT
MEDIUM⚡tests/test_templates.py82 # Initialize the Vision objectCOMMENT
MEDIUMtests/test_templates.py103 # 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
Empty Error Handlers3 hits · 15 pts
SeverityFileLineSnippetContext
HIGHtests/test_cache.py36except KeyError:CODE
HIGHsrc/outlines/models/vllm_offline.py264except Exception:CODE
HIGHsrc/outlines/models/vllm_offline.py272except Exception:CODE
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
LOW⚡docs/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.py210 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
LOW⚡docs/guide/fastapi_vllm_deployment.md187### Step 1: Start your vLLM serverCOMMENT
LOW⚡docs/guide/fastapi_vllm_deployment.md193### Step 2: Run the FastAPI applicationCOMMENT
Cross-Language Confusion2 hits · 5 pts
SeverityFileLineSnippetContext
HIGHtests/types/test_dsl.py447 assert schema.schema == '{"properties": {"foo": {"title": "Foo", "type": "string"}, "bar": {"anyOf": [{"type": "inteSTRING
HIGHtests/types/test_dsl.py455 assert schema.schema == '{"properties": {"foo": {"title": "Foo", "type": "string"}, "bar": {"anyOf": [{"type": "inteSTRING
Over-Commented Block5 hits · 5 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
LOWsrc/outlines/types/__init__.py221COMMENT
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
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