Repository Analysis

roboflow/inference

Turn any computer or edge device into a command center for your computer vision projects.

20.1 Moderate AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of roboflow/inference, a Python project with 2,374 GitHub stars. SynthScan v2.0 examined 682,164 lines of code across 3149 source files, recording 11699 pattern matches distributed across 24 syntactic categories. The overall adjusted score of 20.1 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).

20.1
Adjusted Score
20.1
Raw Score
100%
Time Factor
2026-07-14
Last Push
2.4K
Stars
Python
Language
682.2K
Lines of Code
3.1K
Files
11.7K
Pattern Hits
2026-07-14
Scan Date
0.14
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 49HIGH 380MEDIUM 394LOW 10876

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 11699 distinct pattern matches across 24 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 Identifiers8968 hits · 8119 pts
SeverityFileLineSnippetContext
LOWinference_sdk/config.py79 def snapshot_cold_start_entries(self) -> list:CODE
LOWinference_sdk/config.py83 def snapshot_cold_start_total_load_time(self) -> float:CODE
LOWinference_sdk/config.py87 def snapshot_cold_start_count(self) -> int:CODE
LOWinference_sdk/http/client.py111def _collect_processing_time_from_response(CODE
LOWinference_sdk/http/client.py541 def _execute_infer_from_api_request(CODE
LOWinference_sdk/http/client.py873 async def get_model_description_async(CODE
LOWinference_sdk/http/client.py1271 def get_clip_image_embeddings(CODE
LOWinference_sdk/http/client.py1301 async def get_clip_image_embeddings_async(CODE
LOWinference_sdk/http/client.py1369 async def get_clip_text_embeddings_async(CODE
LOWinference_sdk/http/client.py1548 def get_perception_encoder_image_embeddings(CODE
LOWinference_sdk/http/client.py1565 def get_perception_encoder_text_embeddings(CODE
LOWinference_sdk/http/client.py2388 def _execute_workflow_request(CODE
LOWinference_sdk/http/client.py2509 async def infer_from_yolo_world_async(CODE
LOWinference_sdk/http/client.py2565 def start_inference_pipeline_with_workflow(CODE
LOWinference_sdk/http/client.py2693 def get_inference_pipeline_status(self, pipeline_id: str) -> dict:CODE
LOWinference_sdk/http/client.py2750 def resume_inference_pipeline(self, pipeline_id: str) -> dict:CODE
LOWinference_sdk/http/client.py2780 def terminate_inference_pipeline(self, pipeline_id: str) -> dict:CODE
LOWinference_sdk/http/client.py2810 def consume_inference_pipeline_result(CODE
LOWinference_sdk/http/client.py2841 def _ensure_pipeline_id_not_empty(self, pipeline_id: str) -> None:CODE
LOWinference_sdk/http/client.py2925def _determine_client_downsizing_parameters(CODE
LOWinference_sdk/http/client.py2947def _ensure_model_is_selected(model_id: Optional[str]) -> None:CODE
LOWinference_sdk/http/entities.py198 def to_object_detection_parameters(self) -> Dict[str, Any]:CODE
LOWinference_sdk/http/entities.py229 def to_keypoints_detection_parameters(self) -> Dict[str, Any]:CODE
LOWinference_sdk/http/entities.py239 def to_instance_segmentation_parameters(self) -> Dict[str, Any]:CODE
LOWinference_sdk/http/entities.py255 def to_classification_parameters(self) -> Dict[str, Any]:CODE
LOWinference_sdk/http/entities.py279 def to_legacy_call_parameters(self) -> Dict[str, Any]:CODE
LOWinference_sdk/http/utils/profilling.py7def save_workflows_profiler_trace(CODE
LOWinference_sdk/http/utils/loaders.py27def load_stream_inference_input(CODE
LOWinference_sdk/http/utils/loaders.py48def load_directory_inference_input(CODE
LOWinference_sdk/http/utils/loaders.py74def load_nested_batches_of_inference_input(CODE
LOWinference_sdk/http/utils/loaders.py107def load_static_inference_input(CODE
LOWinference_sdk/http/utils/loaders.py158async def load_static_inference_input_async(CODE
LOWinference_sdk/http/utils/loaders.py255async def load_image_from_string_async(CODE
LOWinference_sdk/http/utils/loaders.py329async def load_image_from_url_async(CODE
LOWinference_sdk/http/utils/aliases.py182def resolve_roboflow_model_alias(model_id: str) -> str:CODE
LOWinference_sdk/http/utils/executors.py55def execute_requests_packages(CODE
LOWinference_sdk/http/utils/executors.py89def _extract_model_id_from_request_data(request_data: RequestData) -> str:CODE
LOWinference_sdk/http/utils/executors.py103def _extract_model_ids_from_headers(CODE
LOWinference_sdk/http/utils/executors.py128def _parse_model_load_details(CODE
LOWinference_sdk/http/utils/executors.py151def _collect_remote_processing_times(CODE
LOWinference_sdk/http/utils/executors.py170def collect_remote_processing_metadata_from_response(CODE
LOWinference_sdk/http/utils/executors.py180def collect_remote_processing_metadata_from_headers(CODE
LOWinference_sdk/http/utils/executors.py242def _extract_cold_start_count_from_headers(headers: Mapping[str, str]) -> int:CODE
LOWinference_sdk/http/utils/executors.py314def _get_thread_local_requests_session() -> requests.Session:CODE
LOWinference_sdk/http/utils/executors.py322def _reset_thread_local_requests_session() -> None:CODE
LOWinference_sdk/http/utils/executors.py373async def execute_requests_packages_async(CODE
LOWinference_sdk/http/utils/executors.py402async def make_parallel_requests_async(CODE
LOWinference_sdk/http/utils/executors.py509def response_is_not_retryable_error(response: ClientResponse) -> bool:CODE
LOWinference_sdk/http/utils/post_processing.py78def decode_workflow_output_list(CODE
LOWinference_sdk/http/utils/post_processing.py123def decode_workflow_output_image(CODE
LOWinference_sdk/http/utils/post_processing.py144def response_contains_jpeg_image(response: Response) -> bool:CODE
LOWinference_sdk/http/utils/post_processing.py182def transform_visualisation_bytes(CODE
LOWinference_sdk/http/utils/post_processing.py203def adjust_prediction_to_client_scaling_factor(CODE
LOWinference_sdk/http/utils/post_processing.py251def predictions_should_not_be_post_processed(prediction: dict) -> bool:CODE
LOWinference_sdk/http/utils/post_processing.py267def adjust_object_detection_predictions_to_client_scaling_factor(CODE
LOWinference_sdk/http/utils/post_processing.py290def adjust_prediction_with_bbox_and_points_to_client_scaling_factor(CODE
LOWinference_sdk/http/utils/post_processing.py319def adjust_bbox_coordinates_to_client_scaling_factor(CODE
LOWinference_sdk/http/utils/post_processing.py339def adjust_points_coordinates_to_client_scaling_factor(CODE
LOWinference_sdk/http/utils/post_processing.py386def filter_model_descriptions(CODE
LOWinference_sdk/http/utils/requests.py11def api_key_safe_raise_for_status(response: Response) -> None:CODE
8908 more matches not shown…
Decorative Section Separators305 hits · 1166 pts
SeverityFileLineSnippetContext
MEDIUMinference_sdk/http/utils/url_utils.py86# ---------------------------------------------------------------------------COMMENT
MEDIUMinference_sdk/http/utils/url_utils.py88# ---------------------------------------------------------------------------COMMENT
MEDIUMinference_sdk/http/utils/url_utils.py134# ---------------------------------------------------------------------------COMMENT
MEDIUMinference_sdk/http/utils/url_utils.py136# ---------------------------------------------------------------------------COMMENT
MEDIUMinference_sdk/http/utils/url_utils.py199# ---------------------------------------------------------------------------COMMENT
MEDIUMinference_sdk/http/utils/url_utils.py201# ---------------------------------------------------------------------------COMMENT
MEDIUMinference_sdk/http/utils/url_utils.py431# ---------------------------------------------------------------------------COMMENT
MEDIUMinference_sdk/http/utils/url_utils.py433# ---------------------------------------------------------------------------COMMENT
MEDIUMdevelopment/codex/setup.sh4# --------------------------COMMENT
MEDIUMdevelopment/codex/setup.sh6# --------------------------COMMENT
MEDIUMdevelopment/codex/setup.sh11# --------------------------COMMENT
MEDIUMdevelopment/codex/setup.sh13# --------------------------COMMENT
MEDIUM…development/profiling/profile_yolov8_trt_cudagraphs.py36 # ── Warmup ──────────────────────────────────────────────────────────COMMENT
MEDIUM…development/profiling/profile_yolov8_trt_cudagraphs.py44 # ── (1) Cycling batch sizes, no CUDA graphs ─────────────────────────COMMENT
MEDIUM…development/profiling/profile_yolov8_trt_cudagraphs.py54 # ── (2) Cycling batch sizes, CUDA graphs with forced recapture ──────COMMENT
MEDIUM…development/profiling/profile_yolov8_trt_cudagraphs.py68 # ── (3) Cycling batch sizes, CUDA graphs with normal caching ────────COMMENT
MEDIUM…development/profiling/profile_yolov8_trt_cudagraphs.py82 # ── Results ─────────────────────────────────────────────────────────COMMENT
MEDIUM…els/development/profiling/profile_cuda_memory_leaks.py170# ---------------------------------------------------------------------------COMMENT
MEDIUM…els/development/profiling/profile_cuda_memory_leaks.py172# ---------------------------------------------------------------------------COMMENT
MEDIUM…els/development/profiling/profile_cuda_memory_leaks.py49# ---------------------------------------------------------------------------COMMENT
MEDIUM…els/development/profiling/profile_cuda_memory_leaks.py51# ---------------------------------------------------------------------------COMMENT
MEDIUM…els/development/profiling/profile_cuda_memory_leaks.py111# ---------------------------------------------------------------------------COMMENT
MEDIUM…els/development/profiling/profile_cuda_memory_leaks.py113# ---------------------------------------------------------------------------COMMENT
MEDIUM…els/development/profiling/profile_cuda_memory_leaks.py132# ---------------------------------------------------------------------------COMMENT
MEDIUM…els/development/profiling/profile_cuda_memory_leaks.py134# ---------------------------------------------------------------------------COMMENT
MEDIUM…els/development/profiling/profile_cuda_memory_leaks.py248# ---------------------------------------------------------------------------COMMENT
MEDIUM…els/development/profiling/profile_cuda_memory_leaks.py250# ---------------------------------------------------------------------------COMMENT
MEDIUM…els/development/profiling/profile_cuda_memory_leaks.py353# ---------------------------------------------------------------------------COMMENT
MEDIUM…els/development/profiling/profile_cuda_memory_leaks.py355# ---------------------------------------------------------------------------COMMENT
MEDIUM…els/development/profiling/profile_cuda_memory_leaks.py434# ---------------------------------------------------------------------------COMMENT
MEDIUM…els/development/profiling/profile_cuda_memory_leaks.py436# ---------------------------------------------------------------------------COMMENT
MEDIUM…els/development/profiling/profile_cuda_memory_leaks.py522# ---------------------------------------------------------------------------COMMENT
MEDIUM…els/development/profiling/profile_cuda_memory_leaks.py524# ---------------------------------------------------------------------------COMMENT
MEDIUM…els/development/profiling/profile_cuda_memory_leaks.py659# ---------------------------------------------------------------------------COMMENT
MEDIUM…els/development/profiling/profile_cuda_memory_leaks.py661# ---------------------------------------------------------------------------COMMENT
MEDIUM…els/development/profiling/profile_cuda_memory_leaks.py954# ---------------------------------------------------------------------------COMMENT
MEDIUM…els/development/profiling/profile_cuda_memory_leaks.py956# ---------------------------------------------------------------------------COMMENT
MEDIUM…els/development/profiling/profile_cuda_memory_leaks.py1036# ---------------------------------------------------------------------------COMMENT
MEDIUM…els/development/profiling/profile_cuda_memory_leaks.py1038# ---------------------------------------------------------------------------COMMENT
MEDIUM…s/inference_models/models/common/hf_streaming_video.py78 # ------------------------------------------------------------------COMMENT
MEDIUM…s/inference_models/models/common/hf_streaming_video.py80 # ------------------------------------------------------------------COMMENT
MEDIUM…s/inference_models/models/common/hf_streaming_video.py126 # ------------------------------------------------------------------COMMENT
MEDIUM…s/inference_models/models/common/hf_streaming_video.py128 # ------------------------------------------------------------------COMMENT
MEDIUM…s/inference_models/models/common/hf_streaming_video.py160 # ------------------------------------------------------------------COMMENT
MEDIUM…s/inference_models/models/common/hf_streaming_video.py163 # ------------------------------------------------------------------COMMENT
MEDIUM…s/inference_models/models/common/hf_streaming_video.py275 # ------------------------------------------------------------------COMMENT
MEDIUM…s/inference_models/models/common/hf_streaming_video.py277 # ------------------------------------------------------------------COMMENT
MEDIUM…s/inference_models/models/common/hf_streaming_video.py309# ---------------------------------------------------------------------------COMMENT
MEDIUM…s/inference_models/models/common/hf_streaming_video.py311# ---------------------------------------------------------------------------COMMENT
MEDIUM…odels/inference_models/models/rfdetr/ms_deform_attn.py1# ------------------------------------------------------------------------COMMENT
MEDIUM…odels/inference_models/models/rfdetr/ms_deform_attn.py5# ------------------------------------------------------------------------COMMENT
MEDIUM…odels/inference_models/models/rfdetr/ms_deform_attn.py8# ------------------------------------------------------------------------------------------------COMMENT
MEDIUM…odels/inference_models/models/rfdetr/ms_deform_attn.py11# ------------------------------------------------------------------------------------------------COMMENT
MEDIUM…odels/inference_models/models/rfdetr/ms_deform_attn.py13# ------------------------------------------------------------------------------------------------COMMENT
MEDIUM…ence_models/models/rfdetr/dinov2_with_windowed_attn.py1# ------------------------------------------------------------------------COMMENT
MEDIUM…ence_models/models/rfdetr/dinov2_with_windowed_attn.py5# ------------------------------------------------------------------------COMMENT
MEDIUM…ence_models/models/rfdetr/dinov2_with_windowed_attn.py8# ------------------------------------------------------------------------COMMENT
MEDIUM…/inference_models/models/rfdetr/ms_deform_attn_func.py1# ------------------------------------------------------------------------COMMENT
MEDIUM…/inference_models/models/rfdetr/ms_deform_attn_func.py5# ------------------------------------------------------------------------COMMENT
MEDIUM…/inference_models/models/rfdetr/ms_deform_attn_func.py8# ------------------------------------------------------------------------------------------------COMMENT
245 more matches not shown…
Cross-File Repetition187 hits · 935 pts
SeverityFileLineSnippetContext
HIGH…models/inference_models/models/qwen25vl/qwen25vl_hf.py0use flash_attention_2 if available, otherwise eager. sdpa has dtype mismatch issues with some transformers versions.STRING
HIGH…e_models/inference_models/models/smolvlm/smolvlm_hf.py0use flash_attention_2 if available, otherwise eager. sdpa has dtype mismatch issues with some transformers versions.STRING
HIGH…e_models/inference_models/models/qwen3vl/qwen3vl_hf.py0use flash_attention_2 if available, otherwise eager. sdpa has dtype mismatch issues with some transformers versions.STRING
HIGH…dels/models/yolact/yolact_instance_segmentation_trt.py0`conf_thresh`: scalar applies to all classes; 1-d tensor of shape (num_classes,) indexed by class_id for per-class thresSTRING
HIGH…els/models/yolact/yolact_instance_segmentation_onnx.py0`conf_thresh`: scalar applies to all classes; 1-d tensor of shape (num_classes,) indexed by class_id for per-class thresSTRING
HIGHinference_models/inference_models/models/yolonas/nms.py0`conf_thresh`: scalar applies to all classes; 1-d tensor of shape (num_classes,) indexed by class_id for per-class thresSTRING
HIGHinference_models/inference_models/models/yolov5/nms.py0`conf_thresh`: scalar applies to all classes; 1-d tensor of shape (num_classes,) indexed by class_id for per-class thresSTRING
HIGH…rence_models/models/common/roboflow/post_processing.py0`conf_thresh`: scalar applies to all classes; 1-d tensor of shape (num_classes,) indexed by class_id for per-class thresSTRING
HIGH…ests/models/test_resnet_classifier_predictions_onnx.py0baseline (see `test_multi_label_onnx_dynamic_bs_package_numpy` above) returns class_ids=[2] (class 2 at conf 0.968). setSTRING
HIGH…sts/models/test_resnet_classifier_predictions_torch.py0baseline (see `test_multi_label_onnx_dynamic_bs_package_numpy` above) returns class_ids=[2] (class 2 at conf 0.968). setSTRING
HIGH…_tests/models/test_vit_classifier_predictions_torch.py0baseline (see `test_multi_label_onnx_dynamic_bs_package_numpy` above) returns class_ids=[2] (class 2 at conf 0.968). setSTRING
HIGH…n_tests/models/test_vit_classifier_predictions_onnx.py0baseline (see `test_multi_label_onnx_dynamic_bs_package_numpy` above) returns class_ids=[2] (class 2 at conf 0.968). setSTRING
HIGH…ws/unit_tests/core_steps/trackers/sort/test_sort_v1.py0trackers are pass-through: output kinds must equal input kinds.STRING
HIGH…ts/core_steps/trackers/bytetrack/test_byte_track_v1.py0trackers are pass-through: output kinds must equal input kinds.STRING
HIGH…nit_tests/core_steps/trackers/ocsort/test_ocsort_v1.py0trackers are pass-through: output kinds must equal input kinds.STRING
HIGH…ion_tests/execution/test_workflow_with_llama_vision.py0in this example, gpt model is used as multi-label classifier. output from the model is parsed by special `roboflow_core/STRING
HIGH…on_tests/execution/test_workflow_with_gemini_models.py0in this example, gpt model is used as multi-label classifier. output from the model is parsed by special `roboflow_core/STRING
HIGH…on_tests/execution/test_workflow_with_claude_models.py0in this example, gpt model is used as multi-label classifier. output from the model is parsed by special `roboflow_core/STRING
HIGH…n_tests/execution/test_workflow_with_open_ai_models.py0in this example, gpt model is used as multi-label classifier. output from the model is parsed by special `roboflow_core/STRING
HIGH…ion_tests/execution/test_workflow_with_llama_vision.py0in this example, gpt model is expected to provide structured output in json, which can later be parsed by dedicated `robSTRING
HIGH…on_tests/execution/test_workflow_with_gemini_models.py0in this example, gpt model is expected to provide structured output in json, which can later be parsed by dedicated `robSTRING
HIGH…on_tests/execution/test_workflow_with_claude_models.py0in this example, gpt model is expected to provide structured output in json, which can later be parsed by dedicated `robSTRING
HIGH…n_tests/execution/test_workflow_with_open_ai_models.py0in this example, gpt model is expected to provide structured output in json, which can later be parsed by dedicated `robSTRING
HIGH…ion_tests/execution/test_workflow_with_llama_vision.py0in this example, gpt model is used as secondary classifier - first, yolo model detects dogs, then for each dog we run clSTRING
HIGH…on_tests/execution/test_workflow_with_gemini_models.py0in this example, gpt model is used as secondary classifier - first, yolo model detects dogs, then for each dog we run clSTRING
HIGH…on_tests/execution/test_workflow_with_claude_models.py0in this example, gpt model is used as secondary classifier - first, yolo model detects dogs, then for each dog we run clSTRING
HIGH…n_tests/execution/test_workflow_with_open_ai_models.py0in this example, gpt model is used as secondary classifier - first, yolo model detects dogs, then for each dog we run clSTRING
HIGH…ts/execution/test_workflow_with_custom_python_block.py0def run(self, predictions: batch[sv.detections]) -> blockresult: result = [] for prediction in predictions: result.appenSTRING
HIGH…inference/integration_tests/test_workflow_endpoints.py0def run(self, predictions: batch[sv.detections]) -> blockresult: result = [] for prediction in predictions: result.appenSTRING
HIGHtests/inference/hosted_platform_tests/test_workflows.py0def run(self, predictions: batch[sv.detections]) -> blockresult: result = [] for prediction in predictions: result.appenSTRING
HIGH…ts/execution/test_workflow_with_custom_python_block.py0def my_function(self, prediction: sv.detections, crops: batch[workflowimagedata]) -> blockresult: detection_id2bbox = { STRING
HIGH…inference/integration_tests/test_workflow_endpoints.py0def my_function(self, prediction: sv.detections, crops: batch[workflowimagedata]) -> blockresult: detection_id2bbox = { STRING
HIGHtests/inference/hosted_platform_tests/test_workflows.py0def my_function(self, prediction: sv.detections, crops: batch[workflowimagedata]) -> blockresult: detection_id2bbox = { STRING
HIGH…on_tests/execution/test_workflow_with_gemini_models.py0in this example, gpt model is used as ocr system. user just points task type and do not need to provide any prompt.STRING
HIGH…on_tests/execution/test_workflow_with_claude_models.py0in this example, gpt model is used as ocr system. user just points task type and do not need to provide any prompt.STRING
HIGH…n_tests/execution/test_workflow_with_open_ai_models.py0in this example, gpt model is used as ocr system. user just points task type and do not need to provide any prompt.STRING
HIGH…tion/stub_plugins/input_free_blocks_plugin/__init__.py0this is just example, test implementation, please do not assume it being fully functional.STRING
HIGH…execution/stub_plugins/flow_control_plugin/__init__.py0this is just example, test implementation, please do not assume it being fully functional.STRING
HIGH…ity_manipulation_plugin/stitch_detections_non_batch.py0this is just example, test implementation, please do not assume it being fully functional.STRING
HIGH…ation_plugin/detections_to_parent_coordinates_batch.py0this is just example, test implementation, please do not assume it being fully functional.STRING
HIGH…sionality_manipulation_plugin/tile_detections_batch.py0this is just example, test implementation, please do not assume it being fully functional.STRING
HIGH…n_plugin/detections_to_parent_coordinates_non_batch.py0this is just example, test implementation, please do not assume it being fully functional.STRING
HIGH…ality_manipulation_plugin/tile_detections_non_batch.py0this is just example, test implementation, please do not assume it being fully functional.STRING
HIGH…onality_manipulation_plugin/stitch_detections_batch.py0this is just example, test implementation, please do not assume it being fully functional.STRING
HIGH…manager/manager_app/test_inference_pipeline_manager.py0unit tests in this module are realised using `inferencepipelinemanager` mock - and within single process, submitting comSTRING
HIGH…_management/manager/test_inference_pipeline_manager.py0unit tests in this module are realised using `inferencepipelinemanager` mock - and within single process, submitting comSTRING
HIGH…tests/enterprise/stream_management/manager/test_app.py0unit tests in this module are realised using `inferencepipelinemanager` mock - and within single process, submitting comSTRING
HIGHinference/core/managers/stub_loader.py0adds a model to the manager. args: model_id (str): the identifier of the model. model (model): the model instance. endpoSTRING
HIGHinference/core/managers/base.py0adds a model to the manager. args: model_id (str): the identifier of the model. model (model): the model instance. endpoSTRING
HIGHinference/core/managers/decorators/base.py0adds a model to the manager. args: model_id (str): the identifier of the model. model (model): the model instance. endpoSTRING
HIGH…/core_steps/models/foundation/qwen3_6_openrouter/v1.py0ask a question to qwen 3.5 vision-language models served via openrouter. you can specify arbitrary text prompts or predeSTRING
HIGH…ows/core_steps/models/foundation/kimi_openrouter/v1.py0ask a question to qwen 3.5 vision-language models served via openrouter. you can specify arbitrary text prompts or predeSTRING
HIGH…/core_steps/models/foundation/qwen3_5_openrouter/v1.py0ask a question to qwen 3.5 vision-language models served via openrouter. you can specify arbitrary text prompts or predeSTRING
HIGH…orkflows/core_steps/models/foundation/moondream2/v1.py0return list of model_id variants that can satisfy this block.STRING
HIGH…ows/core_steps/models/foundation/clip_comparison/v1.py0return list of model_id variants that can satisfy this block.STRING
HIGH…ows/core_steps/models/foundation/clip_comparison/v2.py0return list of model_id variants that can satisfy this block.STRING
HIGH…core/workflows/core_steps/models/foundation/clip/v1.py0return list of model_id variants that can satisfy this block.STRING
HIGH…/workflows/core_steps/models/foundation/easy_ocr/v1.py0return list of model_id variants that can satisfy this block.STRING
HIGH…/core/workflows/core_steps/models/foundation/ocr/v1.py0return list of model_id variants that can satisfy this block.STRING
HIGH…core/workflows/core_steps/models/foundation/qwen/v1.py0return list of model_id variants that can satisfy this block.STRING
127 more matches not shown…
Unused Imports798 hits · 772 pts
SeverityFileLineSnippetContext
LOWdebugrun.py4CODE
LOWinference_sdk/__init__.py5CODE
LOWinference_sdk/__init__.py6CODE
LOWinference_sdk/__init__.py6CODE
LOWinference_sdk/http/entities.py9CODE
LOWinference_sdk/http/utils/loaders.py5CODE
LOWinference_sdk/http/utils/loaders.py8CODE
LOWinference_sdk/webrtc/model_workflows.py10CODE
LOWinference_sdk/webrtc/client.py3CODE
LOWinference_sdk/webrtc/datachannel.py14CODE
LOWinference_sdk/webrtc/session.py12CODE
LOWinference_sdk/webrtc/session.py36CODE
LOWinference_sdk/webrtc/session.py42CODE
LOWinference_sdk/webrtc/session.py43CODE
LOWinference_sdk/webrtc/__init__.py3CODE
LOWinference_sdk/webrtc/__init__.py4CODE
LOWinference_sdk/webrtc/__init__.py5CODE
LOWinference_sdk/webrtc/__init__.py5CODE
LOWinference_sdk/webrtc/__init__.py6CODE
LOWinference_sdk/webrtc/__init__.py6CODE
LOWinference_sdk/webrtc/__init__.py6CODE
LOWinference_sdk/webrtc/__init__.py6CODE
LOWinference_sdk/webrtc/__init__.py6CODE
LOWinference_sdk/webrtc/__init__.py6CODE
LOWinference_sdk/webrtc/__init__.py6CODE
LOWinference_sdk/webrtc/__init__.py6CODE
LOWinference_sdk/webrtc/sources.py11CODE
LOWinference_sdk/webrtc/sources.py29CODE
LOWinference_sdk/webrtc/sources.py31CODE
LOWdocker/config/lambda.py1CODE
LOW…les/video_analysis/aggregating_objects_passing_data.py10CODE
LOW…les/video_analysis/aggregating_objects_passing_data.py10CODE
LOWdevelopment/docs/write_openapi_spec.py4CODE
LOWdevelopment/docs/write_openapi_spec.py5CODE
LOWdevelopment/docs/write_openapi_spec.py7CODE
LOWdevelopment/docs/write_openapi_spec.py9CODE
LOWdevelopment/docs/write_openapi_spec.py10CODE
LOWdevelopment/docs/write_openapi_spec.py10CODE
LOWdevelopment/stream_interface/multiplexer.py1CODE
LOWdevelopment/stream_interface/multiplexer.py3CODE
LOWdevelopment/stream_interface/multiplexer.py5CODE
LOWdevelopment/stream_interface/multiplexer.py5CODE
LOW…opment/stream_interface/old_inference_pipeline_demo.py3CODE
LOW…opment/stream_interface/old_inference_pipeline_demo.py4CODE
LOW…opment/stream_interface/old_inference_pipeline_demo.py5CODE
LOW…opment/stream_interface/old_inference_pipeline_demo.py6CODE
LOW…opment/stream_interface/old_inference_pipeline_demo.py7CODE
LOW…opment/stream_interface/old_inference_pipeline_demo.py7CODE
LOW…opment/stream_interface/old_inference_pipeline_demo.py14CODE
LOW…opment/stream_interface/old_inference_pipeline_demo.py15CODE
LOW…opment/stream_interface/old_inference_pipeline_demo.py16CODE
LOW…opment/stream_interface/old_inference_pipeline_demo.py16CODE
LOW…opment/stream_interface/old_inference_pipeline_demo.py17CODE
LOW…opment/stream_interface/old_inference_pipeline_demo.py17CODE
LOW…opment/stream_interface/old_inference_pipeline_demo.py21CODE
LOWdevelopment/stream_interface/time_in_zone_demo.py6CODE
LOW…pment/stream_interface/inference_pipeline_on_camera.py2CODE
LOW…pment/stream_interface/inference_pipeline_on_camera.py3CODE
LOW…pment/stream_interface/inference_pipeline_on_camera.py4CODE
LOW…pment/stream_interface/inference_pipeline_on_camera.py7CODE
738 more matches not shown…
Excessive Try-Catch Wrapping593 hits · 591 pts
SeverityFileLineSnippetContext
LOWdebugrun.py68 except Exception as e:CODE
MEDIUMdebugrun.py69 print("Error starting server:", e)CODE
LOWinference_sdk/http/utils/executors.py99 except Exception:CODE
LOWinference_sdk/webrtc/model_workflows.py130 except Exception as e:CODE
LOWinference_sdk/webrtc/session.py858 except Exception:CODE
LOWinference_sdk/webrtc/session.py862 except Exception:CODE
LOWinference_sdk/webrtc/session.py940 except Exception:CODE
LOWinference_sdk/webrtc/session.py946 except Exception:CODE
LOWinference_sdk/webrtc/session.py965 except Exception:CODE
LOWinference_sdk/webrtc/session.py984 except Exception:CODE
LOWinference_sdk/webrtc/session.py987 except Exception as e:CODE
LOWinference_sdk/webrtc/session.py995 except Exception:CODE
LOWinference_sdk/webrtc/session.py298 except Exception as e:CODE
LOWinference_sdk/webrtc/session.py367 except Exception:CODE
LOWinference_sdk/webrtc/session.py416 except Exception:CODE
LOWinference_sdk/webrtc/session.py595 except Exception:CODE
LOWinference_sdk/webrtc/session.py620 except Exception:CODE
LOWinference_sdk/webrtc/session.py676 except Exception:CODE
LOWinference_sdk/webrtc/session.py727 except Exception as e:CODE
LOWinference_sdk/webrtc/session.py893 except Exception:CODE
LOWinference_sdk/webrtc/session.py1059 except Exception:CODE
LOWinference_sdk/webrtc/session.py1077 except Exception:CODE
LOWinference_sdk/webrtc/session.py1118 except Exception:CODE
LOWinference_sdk/webrtc/session.py1132 except Exception:CODE
LOWinference_sdk/webrtc/sources.py82 except Exception:CODE
LOWinference_sdk/webrtc/sources.py188 except Exception:CODE
LOWinference_sdk/webrtc/sources.py648 except Exception:CODE
LOW…nt/workflows_examples/video_analysis/webhook_server.py48 except Exception:CODE
LOW…nt/workflows_examples/video_analysis/webhook_server.py63 except Exception:CODE
LOW…nt/workflows_examples/video_analysis/webhook_server.py78 except Exception:CODE
LOWdevelopment/docs/build_block_docs.py513 except Exception:STRING
LOWdevelopment/docs/build_block_docs.py618 except Exception:STRING
LOWdevelopment/docs/build_block_docs.py637 except Exception:STRING
LOWdevelopment/docs/validate_docs_jinja2.py39 except Exception as exc:CODE
MEDIUMdevelopment/docs/validate_docs_jinja2.py54 print(f"Error: {docs_dir} is not a directory", file=sys.stderr)CODE
LOW…codeflash-optimization-compare-visualization-parity.py209 except Exception:CODE
LOW…codeflash-optimization-compare-visualization-parity.py231 except Exception:CODE
LOW…ent/stream_interface/multiplexer_inference_pipeline.py60 except Exception as e:CODE
LOWdevelopment/stream_interface/multiplexer_demo.py120 except Exception as e:CODE
LOWinference_models/development/compile_large.py42 except Exception as error:CODE
LOWinference_models/development/compile_small.py35 except Exception as error:CODE
LOWinference_models/development/compile_all.py57 except Exception as error:CODE
LOWinference_models/development/compile_medium.py38 except Exception as error:CODE
LOWinference_models/development/compile_rfdetr.py24 except Exception as error:CODE
LOW…els/development/profiling/profile_cuda_memory_leaks.py207 except Exception as e:CODE
LOW…els/development/profiling/profile_cuda_memory_leaks.py273 except Exception as e:CODE
LOW…els/development/profiling/profile_cuda_memory_leaks.py281 except Exception:CODE
LOW…els/development/profiling/profile_cuda_memory_leaks.py469 except Exception as e:CODE
LOW…els/development/profiling/profile_cuda_memory_leaks.py576 except Exception as e:CODE
LOW…els/development/profiling/profile_cuda_memory_leaks.py765 except Exception as e:CODE
LOW…els/development/profiling/profile_cuda_memory_leaks.py862 except Exception as e:CODE
LOWinference_models/development/compilation/core.py78 except Exception as e:CODE
LOW…ference_models/weights_providers/local_trt_packages.py66 except Exception as error:CODE
LOW…ference_models/weights_providers/local_trt_packages.py112 except Exception as error:CODE
LOW…_models/inference_models/weights_providers/roboflow.py183 except Exception as error:CODE
LOW…_models/inference_models/weights_providers/roboflow.py425 except Exception as error:CODE
MEDIUM…_models/inference_models/runtime_introspection/core.py293def _get_cuda_version_with_dpkg() -> Optional[Version]:CODE
MEDIUM…_models/inference_models/runtime_introspection/core.py305def _get_cuda_version_loading_shared_library() -> Optional[Version]:CODE
MEDIUM…_models/inference_models/runtime_introspection/core.py318def _get_cuda_version_from_torch() -> Optional[Version]:CODE
MEDIUM…_models/inference_models/runtime_introspection/core.py339def get_trt_version_from_libnvinfer() -> Optional[Version]:CODE
533 more matches not shown…
Docstring Block Structure115 hits · 538 pts
SeverityFileLineSnippetContext
HIGHinference_sdk/utils/environment.py5Convert a string or boolean value to a boolean. Args: value (Union[str, bool]): The value to convert. Can bSTRING
HIGHinference_sdk/http/client.py441Run inference on one or more images. Args: inference_input (Union[ImagesReference, List[ImagesReferSTRING
HIGHinference_sdk/http/client.py470Run inference asynchronously on one or more images. Args: inference_input (Union[ImagesReference, LSTRING
HIGHinference_sdk/http/client.py498Run inference using API v0. Args: inference_input (Union[ImagesReference, List[ImagesReference]]): STRING
HIGHinference_sdk/http/client.py603Run inference using API v0 asynchronously. Args: inference_input (Union[ImagesReference, List[ImageSTRING
HIGHinference_sdk/http/client.py840Get the description of a model. Args: model_id (str): The identifier of the model. alloSTRING
HIGHinference_sdk/http/client.py876Get the description of a model asynchronously. Args: model_id (str): The identifier of the model. STRING
HIGHinference_sdk/http/client.py956Load a model onto the server. Args: model_id (str): The identifier of the model to load. STRING
HIGHinference_sdk/http/client.py990Load a model onto the server asynchronously. Args: model_id (str): The identifier of the model to lSTRING
HIGHinference_sdk/http/client.py1024Unload a model from the server. Args: model_id (str): The identifier of the model to unload. STRING
HIGHinference_sdk/http/client.py1105Run OCR on input image(s). Args: inference_input (Union[ImagesReference, List[ImagesReference]]): ISTRING
HIGHinference_sdk/http/client.py1174Run OCR on input image(s) asynchronously. Args: inference_input (Union[ImagesReference, List[ImagesSTRING
HIGHinference_sdk/http/client.py1276Get CLIP embeddings for input image(s). Args: inference_input (Union[ImagesReference, List[ImagesReSTRING
HIGHinference_sdk/http/client.py1306Get CLIP embeddings for input image(s) asynchronously. Args: inference_input (Union[ImagesReferenceSTRING
HIGHinference_sdk/http/client.py1336Get CLIP embeddings for input text(s). Args: text (Union[str, List[str]]): Input text(s) to embed. STRING
HIGHinference_sdk/http/client.py1374Get CLIP embeddings for input text(s) asynchronously. Args: text (Union[str, List[str]]): Input texSTRING
HIGHinference_sdk/http/client.py1414Compare a subject against prompts using CLIP embeddings. Args: subject (Union[str, ImagesReference]STRING
HIGHinference_sdk/http/client.py1486Compare a subject against prompts using CLIP embeddings asynchronously. Args: subject (Union[str, ISTRING
HIGHinference_sdk/http/client.py1604Run inference using a Large Multimodal Model (LMM). This method supports various vision-language models includiSTRING
HIGHinference_sdk/http/client.py1665Run inference using a Large Multimodal Model (LMM) asynchronously. This method supports various vision-languageSTRING
HIGHinference_sdk/http/client.py1717Run depth estimation on input image(s). This method estimates depth maps from images using models like Depth AnSTRING
HIGHinference_sdk/http/client.py1763Run depth estimation on input image(s) asynchronously. Args: inference_input (Union[ImagesReferenceSTRING
HIGHinference_sdk/http/client.py1802Run Segment Anything 2 (SAM2) segmentation on input image(s). This method performs instance segmentation using STRING
HIGHinference_sdk/http/client.py1854Run Segment Anything 2 (SAM2) segmentation on input image(s) asynchronously. Args: inference_input STRING
HIGHinference_sdk/http/client.py1899Generate 3D meshes and Gaussian splatting from a 2D image with mask prompts. This method uses SAM3 3D to generaSTRING
HIGHinference_sdk/http/client.py1977Generate 3D meshes and Gaussian splatting from a 2D image asynchronously. Args: inference_input (ImSTRING
HIGHinference_sdk/http/client.py2241Run inference using a workflow specification. Triggers inference from workflow specification at the inference HSTRING
HIGHinference_sdk/http/client.py2298Run inference using a workflow specification. Triggers inference from workflow specification at the inference HSTRING
HIGHinference_sdk/http/client.py2462Run inference using YOLO-World model. Args: inference_input: Input image(s) to run inference on. CaSTRING
HIGHinference_sdk/http/client.py2516Run inference using YOLO-World model asynchronously. Args: inference_input: Input image(s) to run iSTRING
HIGHinference_sdk/http/client.py2585Starts an inference pipeline using a workflow specification. Args: video_reference: Path to video fSTRING
HIGHinference_sdk/http/client.py2694Gets the current status of a specific inference pipeline. Args: pipeline_id: The unique identifier STRING
HIGHinference_sdk/http/client.py2721Pauses a running inference pipeline. Sends a request to pause the specified inference pipeline. The pipeline muSTRING
HIGHinference_sdk/http/client.py2751Resumes a paused inference pipeline. Sends a request to resume the specified inference pipeline. The pipeline mSTRING
HIGHinference_sdk/http/client.py2781Terminates a running inference pipeline. Sends a request to terminate the specified inference pipeline. This wiSTRING
HIGHinference_sdk/http/client.py2815Consumes and returns the next available result from an inference pipeline. Args: pipeline_id: The uSTRING
HIGHinference_sdk/http/utils/request_building.py54Prepare requests data. Args: url: The URL of the request. encoded_inference_inputs: The encoded infSTRING
HIGHinference_sdk/http/utils/request_building.py96Assemble request data. Args: url: The URL of the request. batch_inference_inputs: The batch inferenSTRING
HIGHinference_sdk/webrtc/model_workflows.py87Resolve a model's task type, either from ``task_type`` or the API. When ``task_type`` is provided it is validated aSTRING
HIGHinference_sdk/webrtc/model_workflows.py150Build a minimal single-model workflow spec wrapping a model ID. The Workflow model block is chosen from ``TASK_TYPESTRING
HIGHinference_sdk/webrtc/client.py52Create a WebRTC streaming session. Exactly one of ``workflow`` or ``model_id`` must be provided. When STRING
HIGHinference_sdk/webrtc/client.py213Parse workflow configuration from inputs. Args: workflow: Either workflow ID (str) or specificationSTRING
HIGHinference_sdk/webrtc/session.py445Decorator to register frame callback handlers. The registered handlers will be called for each video frame receSTRING
HIGHinference_sdk/webrtc/session.py470Decorator to register data channel callback handlers. Can be used with or without parentheses: @sesSTRING
HIGHinference_sdk/webrtc/sources.py117Get parameters to send to server in /initialise_webrtc_worker payload. Args: config: Stream configuSTRING
HIGHdevelopment/profiling/config.py59Validate target name. Args: value (str): Provided target name. Returns: NormalSTRING
HIGHdevelopment/profiling/config.py92Validate data source name. Args: value (str): Provided data source name. Returns: STRING
HIGHdevelopment/profiling/config.py168Validate required string fields. Args: value (str): Provided string value. Returns: STRING
HIGHdevelopment/profiling/config.py188Validate warmup pass count. Args: value (int): Provided warmup count. Returns: STRING
HIGHdevelopment/profiling/config.py207Validate measured iteration count. Args: value (int): Provided measured iteration count. RSTRING
HIGHdevelopment/profiling/config.py224Load a YAML profiling config. Args: path (str | Path): Path to the YAML config file. Returns: STRING
HIGHdevelopment/profiling/config.py247Parse raw YAML config values into a profile config. Args: raw_config (Mapping[str, Any]): Raw mapping loadeSTRING
HIGHdevelopment/profiling/registry.py77Resolve a built-in or explicitly imported profiling target. Args: name (str): Target lookup name. iSTRING
HIGHdevelopment/profiling/data/__init__.py17Build a profiling data source by name. Args: name (str): Registered data source name. config (MappiSTRING
HIGH…ence_models/inference_models/weights_providers/core.py19Retrieve model metadata from a registered weights provider. Fetches model metadata (including available packages, dSTRING
HIGHinference_models/inference_models/utils/download.py111Download multiple files to a directory with parallel downloads and hash verification. Downloads files from URLs to STRING
HIGH…ce_models/inference_models/models/auto_loaders/core.py131Display comprehensive metadata and available packages for a model. Shows detailed information about a model witSTRING
HIGH…ce_models/inference_models/models/auto_loaders/core.py259Display detailed information about a specific model package. Shows comprehensive details for a single model pacSTRING
HIGH…ce_models/inference_models/models/auto_loaders/core.py467Load and initialize a computer vision model with automatic backend selection. This is the primary entry point fSTRING
HIGH…rence_models/inference_models/models/common/streams.py10Get a CUDA stream shared by all models within the calling thread. Streams are cached per (thread, device, purpose) STRING
55 more matches not shown…
Hallucination Indicators49 hits · 505 pts
SeverityFileLineSnippetContext
CRITICAL…lows/unit_tests/core_steps/sinks/test_twilio_sms_v2.py272 from inference.core.exceptions import RoboflowAPIUnsuccessfulRequestErrorCODE
CRITICAL…lows/unit_tests/core_steps/sinks/test_twilio_sms_v2.py305 from inference.core.exceptions import RoboflowAPIUnsuccessfulRequestErrorCODE
CRITICAL…s/core_steps/models/foundation/test_gaze_deprecated.py7from inference.core.exceptions import FeatureDeprecatedErrorCODE
CRITICAL…ore_steps/models/foundation/test_cog_vlm_deprecated.py7from inference.core.exceptions import FeatureDeprecatedErrorCODE
CRITICAL…_tests/execution/test_workflow_with_gaze_deprecated.py15from inference.core.exceptions import FeatureDeprecatedErrorCODE
CRITICAL…rence/unit_tests/core/test_feature_deprecated_error.py3from inference.core.exceptions import FeatureDeprecatedErrorCODE
CRITICAL…inference/unit_tests/core/active_learning/test_core.py28from inference.core.exceptions import RoboflowAPIConnectionErrorCODE
CRITICAL…core/active_learning/samplers/test_contains_classes.py13from inference.core.exceptions import ActiveLearningConfigurationErrorCODE
CRITICAL…/active_learning/samplers/test_number_of_detections.py15from inference.core.exceptions import ActiveLearningConfigurationErrorCODE
CRITICAL…re/active_learning/samplers/test_close_to_threshold.py21from inference.core.exceptions import ActiveLearningConfigurationErrorCODE
CRITICAL…nit_tests/core/active_learning/samplers/test_random.py9from inference.core.exceptions import ActiveLearningConfigurationErrorCODE
CRITICALtests/inference/unit_tests/core/registries/test_base.py5from inference.core.exceptions import ModelNotRecognisedErrorCODE
CRITICAL…ts/inference/unit_tests/core/utils/test_postprocess.py7from inference.core.exceptions import PostProcessingErrorCODE
CRITICAL…sts/inference/unit_tests/core/utils/test_preprocess.py7from inference.core.exceptions import PreProcessingErrorCODE
CRITICAL…ts/inference/unit_tests/core/utils/test_environment.py5from inference.core.exceptions import InvalidEnvironmentVariableErrorCODE
CRITICALtests/inference/unit_tests/core/utils/test_roboflow.py5from inference.core.exceptions import InvalidModelIDErrorCODE
CRITICAL…it_tests/core/models/test_inference_models_adapters.py14from inference.core.exceptions import PostProcessingErrorCODE
CRITICALtests/inference/unit_tests/core/models/test_roboflow.py8from inference.core.exceptions import ModelArtefactErrorCODE
CRITICAL…/webrtc_worker/test_start_worker_region_enforcement.py14from inference.core.exceptions import WebRTCConfigurationErrorCODE
CRITICAL…rence/unit_tests/core/interfaces/http/test_http_api.py14from inference.core.exceptions import RoboflowAPINotAuthorizedErrorCODE
CRITICALtests/inference/unit_tests/models/test_gaze_stub.py5from inference.core.exceptions import FeatureDeprecatedErrorCODE
CRITICALinference/core/active_learning/entities.py8from inference.core.exceptions import ActiveLearningConfigurationDecodingErrorCODE
CRITICAL…ce/core/active_learning/samplers/close_to_threshold.py18from inference.core.exceptions import ActiveLearningConfigurationErrorCODE
CRITICAL…/core/active_learning/samplers/number_of_detections.py21from inference.core.exceptions import ActiveLearningConfigurationErrorCODE
CRITICALinference/core/active_learning/samplers/random.py12from inference.core.exceptions import ActiveLearningConfigurationErrorCODE
CRITICAL…ence/core/active_learning/samplers/contains_classes.py15from inference.core.exceptions import ActiveLearningConfigurationErrorCODE
CRITICALinference/core/registries/base.py3from inference.core.exceptions import ModelNotRecognisedErrorCODE
CRITICALinference/core/cache/model_artifacts.py13from inference.core.exceptions import ModelArtefactErrorCODE
CRITICAL…e/workflows/core_steps/models/foundation/cog_vlm/v1.py7from inference.core.exceptions import FeatureDeprecatedErrorCODE
CRITICAL…core/workflows/core_steps/models/foundation/gaze/v1.py6from inference.core.exceptions import FeatureDeprecatedErrorCODE
CRITICAL…xecution_engine/v1/dynamic_blocks/block_scaffolding.py14from inference.core.exceptions import WorkspaceLoadErrorCODE
CRITICALinference/core/utils/preprocess.py19from inference.core.exceptions import PreProcessingErrorCODE
CRITICALinference/core/utils/postprocess.py7from inference.core.exceptions import PostProcessingErrorCODE
CRITICALinference/core/utils/roboflow.py4from inference.core.exceptions import InvalidModelIDErrorCODE
CRITICALinference/core/utils/environment.py4from inference.core.exceptions import InvalidEnvironmentVariableErrorCODE
CRITICALinference/core/models/inference_models_adapters.py51from inference.core.exceptions import PostProcessingErrorCODE
CRITICALinference/core/models/utils/keypoints.py4from inference.core.exceptions import ModelArtefactErrorCODE
CRITICALinference/core/interfaces/stream/inference_pipeline.py27from inference.core.exceptions import CannotInitialiseModelError, MissingApiKeyErrorCODE
CRITICALinference/core/interfaces/http/dependencies.py6from inference.core.exceptions import InputImageLoadErrorCODE
CRITICALinference/models/yolov8/yolov8_keypoints_detection.py5from inference.core.exceptions import ModelArtefactErrorCODE
CRITICALinference/models/sam3_3d/segment_anything_3d.py27from inference.core.exceptions import ModelArtefactErrorCODE
CRITICALinference/models/vllm_proxy/errors.py12from inference.core.exceptions import ModelDeploymentNotSupportedErrorCODE
CRITICALinference/models/transformers/transformers.py22from inference.core.exceptions import ModelArtefactErrorCODE
CRITICALinference/models/trocr/trocr.py11from inference.core.exceptions import InvalidModelIDErrorCODE
CRITICALinference/models/gaze/gaze.py1from inference.core.exceptions import FeatureDeprecatedErrorCODE
CRITICALinference/models/gaze/gaze_inference_models.py1from inference.core.exceptions import FeatureDeprecatedErrorCODE
CRITICALinference/models/sam3/visual_segmentation.py40from inference.core.exceptions import ModelArtefactError, RoboflowAPINotAuthorizedErrorCODE
CRITICALinference/models/sam3/segment_anything3.py55from inference.core.exceptions import ModelArtefactError, RoboflowAPINotAuthorizedErrorCODE
CRITICALinference/models/owlv2/owlv2.py39from inference.core.exceptions import InvalidModelIDError, ModelArtefactErrorCODE
Magic Placeholder Names69 hits · 370 pts
SeverityFileLineSnippetContext
HIGHinference_models/README.md69 api_key="<your-api-key>" # model access secured with API keyCODE
HIGH…ce_models/inference_models/models/auto_loaders/core.py197 ... api_key="your_api_key"STRING
HIGH…ce_models/inference_models/models/auto_loaders/core.py633 ... api_key="your_api_key"STRING
HIGHinference_models/docs/index.md79 api_key="<your-api-key>" # model access secured with API keyCODE
HIGH…ce_models/docs/models/sam2-interactive-segmentation.md59model = AutoModel.from_pretrained("sam2/hiera_b_plus", api_key="your_api_key")CODE
HIGH…ce_models/docs/models/sam2-interactive-segmentation.md167 api_key="your_api_key",CODE
HIGH…ce_models/docs/models/sam2-interactive-segmentation.md202 api_key="your_api_key",CODE
HIGH…ence_models/docs/models/sam3-video-concept-tracking.md76model = AutoModel.from_pretrained("sam3video", api_key="your_api_key")CODE
HIGH…ence_models/docs/models/sam3-video-concept-tracking.md162model = AutoModel.from_pretrained("sam3trackervideo", api_key="your_api_key")CODE
HIGHinference_models/docs/models/deeplabv3plus.md59 api_key="<your-api-key>"CODE
HIGHinference_models/docs/models/deeplabv3plus.md83 api_key="<your-api-key>"CODE
HIGHinference_models/docs/models/deeplabv3plus.md114 api_key="<your-api-key>"CODE
HIGH…nce_models/docs/models/sam-interactive-segmentation.md56model = AutoModel.from_pretrained("sam/vit_b", api_key="your_api_key")CODE
HIGH…nce_models/docs/models/sam-interactive-segmentation.md146 api_key="your_api_key",CODE
HIGH…nce_models/docs/models/sam-interactive-segmentation.md181 api_key="your_api_key",CODE
HIGHinference_models/docs/how-to/debug-model-loading.md173 api_key="your_api_key"CODE
HIGH…ference_models/docs/getting-started/trt-compilation.md73 --api-key <your_api_key>CODE
HIGH…ference_models/docs/getting-started/trt-compilation.md168 api_key="your_api_key"CODE
HIGHdocs/enterprise/stream_management_api.md266 "api_key": "YOUR-API-KEY",CODE
HIGHdocs/workflows/workflows_compiler.md299 "workflows_core.api_key": "<YOUR-API-KEY>,CODE
HIGHdocs/workflows/workflows_compiler.md299 "workflows_core.api_key": "<YOUR-API-KEY>,CODE
HIGHdocs/workflows/modes_of_running.md48 "api_key": "<YOUR-API-KEY>",CODE
HIGHdocs/workflows/modes_of_running.md48 "api_key": "<YOUR-API-KEY>",CODE
HIGHdocs/workflows/modes_of_running.md58 - `<your-workspace-name>`, `<your-workflow-id>`, `<YOUR-API-KEY>` must be replaced with actual values -CODE
HIGHdocs/workflows/modes_of_running.md58 - `<your-workspace-name>`, `<your-workflow-id>`, `<YOUR-API-KEY>` must be replaced with actual values -CODE
HIGHdocs/workflows/modes_of_running.md77 api_key="<YOUR-API-KEY>",CODE
HIGHdocs/workflows/modes_of_running.md77 api_key="<YOUR-API-KEY>",CODE
HIGHdocs/workflows/modes_of_running.md94 - `<your-workspace-name>`, `<your-workflow-id>`, `<YOUR-API-KEY>` must be replaced with actual values -CODE
HIGHdocs/workflows/modes_of_running.md94 - `<your-workspace-name>`, `<your-workflow-id>`, `<YOUR-API-KEY>` must be replaced with actual values -CODE
HIGHdocs/workflows/modes_of_running.md121 api_key="<YOUR-API-KEY>",CODE
HIGHdocs/workflows/modes_of_running.md121 api_key="<YOUR-API-KEY>",CODE
HIGHdocs/workflows/modes_of_running.md138 - `<your-workspace-name>`, `<your-workflow-id>`, `<YOUR-API-KEY>` must be replaced with actual values -CODE
HIGHdocs/workflows/modes_of_running.md138 - `<your-workspace-name>`, `<your-workflow-id>`, `<YOUR-API-KEY>` must be replaced with actual values -CODE
HIGHdocs/workflows/modes_of_running.md196 api_key="<YOUR-API-KEY>",CODE
HIGHdocs/workflows/modes_of_running.md196 api_key="<YOUR-API-KEY>",CODE
HIGHdocs/workflows/modes_of_running.md210 - `<your-workspace-name>`, `<your-workflow-id>`, `<YOUR-API-KEY>` must be replaced with actual values -CODE
HIGHdocs/workflows/modes_of_running.md210 - `<your-workspace-name>`, `<your-workflow-id>`, `<YOUR-API-KEY>` must be replaced with actual values -CODE
HIGHdocs/workflows/modes_of_running.md324 "workflows_core.api_key": "<YOUR-API-KEY>,CODE
HIGHdocs/workflows/modes_of_running.md324 "workflows_core.api_key": "<YOUR-API-KEY>,CODE
HIGHdocs/workflows/video_processing/overview.md125 api_key="<YOUR-API-KEY>",CODE
HIGHdocs/workflows/video_processing/overview.md125 api_key="<YOUR-API-KEY>",CODE
HIGHdocs/start/overview.md72 api_key="YOUR_API_KEY", # For private/fine-tuned modelsCODE
HIGHdocs/foundation/qwen2.5-vl.md35 api_key="YOUR_API_KEY" # Optional if your model requires an API keyCODE
HIGHdocs/foundation/qwen2.5-vl.md79 api_key="YOUR_API_KEY"CODE
HIGHdocs/foundation/qwen2.5-vl.md149 api_key="YOUR_API_KEY"CODE
HIGHdocs/foundation/sam2.md64os.environ["API_KEY"] = "<YOUR-API-KEY>"CODE
HIGHdocs/foundation/sam2.md64os.environ["API_KEY"] = "<YOUR-API-KEY>"CODE
HIGHdocs/foundation/sam2.md309 api_key="<YOUR-API-KEY>",CODE
HIGHdocs/foundation/sam2.md309 api_key="<YOUR-API-KEY>",CODE
HIGHdocs/foundation/sam3.md134curl -X POST 'http://localhost:9001/sam3/concept_segment?api_key=<YOUR_API_KEY>' \CODE
HIGHdocs/foundation/sam3.md134curl -X POST 'http://localhost:9001/sam3/concept_segment?api_key=<YOUR_API_KEY>' \CODE
HIGHdocs/foundation/sam3.md151curl -X POST 'http://localhost:9001/sam3/concept_segment?api_key=<YOUR_API_KEY>' \CODE
HIGHdocs/foundation/sam3.md151curl -X POST 'http://localhost:9001/sam3/concept_segment?api_key=<YOUR_API_KEY>' \CODE
HIGHdocs/foundation/sam3.md179curl -X POST 'http://localhost:9001/sam3/embed_image?api_key=<YOUR_API_KEY>' \CODE
HIGHdocs/foundation/sam3.md179curl -X POST 'http://localhost:9001/sam3/embed_image?api_key=<YOUR_API_KEY>' \CODE
HIGHdocs/foundation/sam3.md193curl -X POST 'http://localhost:9001/sam3/visual_segment?api_key=<YOUR_API_KEY>' \CODE
HIGHdocs/foundation/sam3.md193curl -X POST 'http://localhost:9001/sam3/visual_segment?api_key=<YOUR_API_KEY>' \CODE
HIGHdocs/foundation/sam3.md294 api_key="<YOUR-API-KEY>",CODE
HIGHdocs/foundation/sam3.md294 api_key="<YOUR-API-KEY>",CODE
HIGHdocs/server_configuration/accepted_input_formats.md35 "api_key": "YOUR-API-KEY",CODE
9 more matches not shown…
Deep Nesting267 hits · 244 pts
SeverityFileLineSnippetContext
LOWinference_sdk/http/utils/post_processing.py45CODE
LOWinference_sdk/http/utils/post_processing.py78CODE
LOWinference_sdk/http/utils/url_utils.py341CODE
LOWinference_sdk/webrtc/datachannel.py140CODE
LOWinference_sdk/webrtc/session.py554CODE
LOWinference_sdk/webrtc/session.py865CODE
LOWinference_sdk/webrtc/session.py900CODE
LOWinference_sdk/webrtc/session.py1022CODE
LOW…les/video_analysis/aggregating_objects_passing_data.py157CODE
LOW…orkflows_examples/video_analysis/using_webhook_sink.py243CODE
LOWdevelopment/stream_interface/time_in_zone_demo.py92CODE
LOW…pment/stream_interface/inference_pipeline_on_camera.py54CODE
LOW…codeflash-optimization-compare-visualization-parity.py177CODE
LOWdevelopment/stream_interface/workflows_demo.py68CODE
LOWdevelopment/stream_interface/yolo_world_demo.py31CODE
LOW…elopment/stream_interface/objects_passing_line_demo.py93CODE
LOW…ent/stream_interface/multiplexer_inference_pipeline.py44CODE
LOWdevelopment/stream_interface/camera_demo.py58CODE
LOW…ment/stream_interface/rfdetr_coco_same_shape_parity.py283CODE
LOW…ment/stream_interface/rfdetr_coco_same_shape_parity.py437CODE
LOWdevelopment/stream_interface/multiplexer_demo.py100CODE
LOW…els/development/profiling/profile_cuda_memory_leaks.py525CODE
LOW…els/development/profiling/profile_cuda_memory_leaks.py662CODE
LOWinference_models/inference_models/utils/download.py96CODE
LOWinference_models/inference_models/utils/download.py629CODE
LOWinference_models/inference_models/utils/download.py858CODE
LOW…ce_models/inference_models/models/auto_loaders/core.py968CODE
LOW…ce_models/inference_models/models/auto_loaders/core.py1470CODE
LOW…ce_models/inference_models/models/auto_loaders/core.py428CODE
LOW…ference_models/models/auto_loaders/auto_negotiation.py848CODE
LOW…models/models/depth_anything_v3/architecture/dinov2.py223CODE
LOW…erence_models/inference_models/models/sam/sam_torch.py200CODE
LOW…erence_models/inference_models/models/sam/sam_torch.py283CODE
LOW…ls/inference_models/models/pp_ocrv6/pp_ocrv6_common.py164CODE
LOW…ce_models/inference_models/models/doctr/doctr_torch.py191CODE
LOWinference_models/inference_models/models/common/onnx.py496CODE
LOW…s/inference_models/models/common/hf_streaming_video.py376CODE
LOWinference_models/inference_models/models/common/trt.py687CODE
LOW…erence_models/models/common/roboflow/model_packages.py64CODE
LOW…erence_models/models/common/roboflow/pre_processing.py113CODE
LOW…erence_models/models/common/roboflow/pre_processing.py573CODE
LOW…erence_models/models/common/roboflow/pre_processing.py869CODE
LOW…ence_models/models/rfdetr/dinov2_with_windowed_attn.py1226CODE
LOW…ence_models/models/rfdetr/dinov2_with_windowed_attn.py1330CODE
LOW…dels/models/rfdetr/rfdetr_instance_segmentation_trt.py421CODE
LOW…nce_models/inference_models/models/rfdetr/projector.py72CODE
LOW…nce_models/inference_models/models/rfdetr/projector.py213CODE
LOW…s/inference_models/models/rfdetr/triton_postprocess.py978CODE
LOW…s/inference_models/models/rfdetr/triton_postprocess.py1497CODE
LOW…odels/inference_models/models/rfdetr/pre_processing.py44CODE
LOW…ence_models/inference_models/models/sam3/sam3_torch.py947CODE
LOW…ence_models/inference_models/models/sam3/sam3_torch.py297CODE
LOW…ence_models/inference_models/models/sam3/sam3_torch.py527CODE
LOW…erence_models/inference_models/models/sam3/entities.py13CODE
LOW…erence_models/inference_models/models/sam3/entities.py14CODE
LOW…ence_models/inference_models/models/sam2/sam2_torch.py230CODE
LOW…ence_models/inference_models/models/sam2/sam2_torch.py313CODE
LOW…odels/models/perception_encoder/vision_encoder/rope.py81CODE
LOW…_models/models/perception_encoder/vision_encoder/pe.py482CODE
LOWinference_models/tests/e2e_platform_tests/conftest.py86CODE
207 more matches not shown…
Self-Referential Comments42 hits · 132 pts
SeverityFileLineSnippetContext
MEDIUM…nt/benchmark_scripts/benchmark_owlv2_inference_time.py19# Create a temporary fileCOMMENT
MEDIUM…erence_models/models/rfdetr/rfdetr_backbone_pytorch.py76 # Create the encoderCOMMENT
MEDIUM…erence_models/models/rfdetr/rfdetr_backbone_pytorch.py188 # Create a new Parameter with the new sizeCOMMENT
MEDIUMtests/unit/core/cache/test_air_gapped.py164 # Create a cache directory for the model variant with a file.COMMENT
MEDIUMtests/unit/core/cache/test_air_gapped.py227 # Create a cache directory for one of the variants with a file.COMMENT
MEDIUMtests/unit/core/cache/test_air_gapped.py281 # Create a cache directory but with no files in it.COMMENT
MEDIUM…workflows/unit_tests/core_steps/sinks/test_email_v2.py286 # Create a small numpy image for ExtractImageProperty (width/height)COMMENT
MEDIUM…ws/unit_tests/core_steps/sinks/test_event_writer_v1.py333 # Create a filled square mask — findContours will produce a polygonCOMMENT
MEDIUM…sts/core_steps/sinks/roboflow/vision_events/test_v1.py108 # Create a simple square maskCOMMENT
MEDIUM…s/unit_tests/core_steps/models/foundation/test_clip.py30 # Create a mock WorkflowImageData instanceCOMMENT
MEDIUM…nit_tests/core_steps/visualizations/test_icon_alpha.py22 # Create a test background image (white)COMMENT
MEDIUM…nit_tests/core_steps/visualizations/test_icon_alpha.py29 # Create an icon with alpha channel (red circle with transparent background)COMMENT
MEDIUM…nit_tests/core_steps/visualizations/test_icon_alpha.py96 # Create a test background image (white)COMMENT
MEDIUM…nit_tests/core_steps/visualizations/test_icon_alpha.py103 # Create an icon with alpha channelCOMMENT
MEDIUM…t_tests/core_steps/classical_cv/test_mask_edge_snap.py90 # Create a single mask (e.g., from instance segmentation model)COMMENT
MEDIUM…t_tests/core_steps/classical_cv/test_mask_edge_snap.py169 # Create a maskCOMMENT
MEDIUM…s/core_steps/classical_cv/test_distance_measurement.py59 tolerance = 1e-5 # Define a tolerance levelCODE
MEDIUM…s/core_steps/classical_cv/test_distance_measurement.py119 tolerance = 1e-3 # Define a tolerance levelCODE
MEDIUM…s/core_steps/classical_cv/test_distance_measurement.py185 tolerance = 1e-3 # Define a tolerance levelCODE
MEDIUM…s/core_steps/classical_cv/test_distance_measurement.py243 tolerance = 1e-3 # Define a tolerance levelCODE
MEDIUM…s/core_steps/classical_cv/test_contrast_enhancement.py41 # Create a test BGR image with low contrastCOMMENT
MEDIUM…s/core_steps/classical_cv/test_contrast_enhancement.py66 # Create a test grayscale imageCOMMENT
MEDIUM…s/core_steps/classical_cv/test_contrast_enhancement.py89 # Create a test BGRA imageCOMMENT
MEDIUM…s/core_steps/classical_cv/test_contrast_enhancement.py115 # Create a test image with some outliersCOMMENT
MEDIUM…ows/integration_tests/execution/test_mask_edge_snap.py131 # Create a single maskCOMMENT
MEDIUM…ows/integration_tests/execution/test_mask_edge_snap.py245 # Create a maskCOMMENT
MEDIUM…ows/integration_tests/execution/test_mask_edge_snap.py297 # Create a maskCOMMENT
MEDIUM…ows/integration_tests/execution/test_mask_edge_snap.py454 # Create a maskCOMMENT
MEDIUM…cution/test_workflow_with_custom_python_block_modal.py108 # Create a temporary Python script that runs the workflowCOMMENT
MEDIUM…ation_tests/execution/test_workflow_with_opc_writer.py232 # Create a variable with a string-based NodeId directly (like Ignition does)COMMENT
MEDIUM…ation_tests/execution/test_workflow_with_opc_writer.py719 # Create a connectionCOMMENT
MEDIUM…/execution/test_existing_blocks_modal_compatibility.py37 # Create a temporary Python script that runs the workflowCOMMENT
MEDIUM…erence/unit_tests/core/interfaces/http/test_builder.py112 # Create a workflowCOMMENT
MEDIUM…ce/models_predictions_tests/test_perception_encoder.py21 # Create a simple test imageCOMMENT
MEDIUMexamples/inference-client/udp.py18 # Create a datagram (UDP) socketCOMMENT
MEDIUM…lows/core_steps/transformations/detections_merge/v1.py164 # Create a new detection with the union bbox and ensure numpy arrays for all fieldsCOMMENT
MEDIUM…xecution_engine/v1/dynamic_blocks/block_scaffolding.py298 # Create a stub module for local referenceCOMMENT
MEDIUM…xecution_engine/v1/dynamic_blocks/block_scaffolding.py333 # Create a stub module for local referenceCOMMENT
MEDIUMinference/core/models/roboflow.py938 # Create an ONNX Runtime Session with a list of execution providers in priority order. ORT attempts to load COMMENT
MEDIUMinference/models/clip/clip_model.py63 # Create an ONNX Runtime Session with a list of execution providers in priority order. ORT attempts to load provCOMMENT
MEDIUMmodal/deploy_modal_app.py89 # Create an instance to get the methodCOMMENT
MEDIUMmodal/modal_app.py67# Create the Modal AppCOMMENT
AI Structural Patterns131 hits · 122 pts
SeverityFileLineSnippetContext
LOWinference_sdk/http/client.py1653CODE
LOWinference_sdk/http/client.py1708CODE
LOWinference_sdk/http/client.py1754CODE
LOWinference_sdk/http/client.py1791CODE
LOWinference_sdk/http/client.py1843CODE
LOWinference_sdk/http/client.py1884CODE
LOWinference_sdk/http/client.py2229CODE
LOWinference_sdk/http/client.py2286CODE
LOWinference_sdk/http/client.py2350CODE
LOWinference_sdk/http/client.py2452CODE
LOWinference_sdk/http/client.py2388CODE
LOWinference_sdk/http/client.py2565CODE
LOW…nterface/codeflash-optimization-compare-percentiles.py125CODE
LOWdevelopment/profiling/config.py328CODE
LOWinference_models/development/compilation/core.py27CODE
LOWinference_models/inference_models/utils/download.py96CODE
LOW…ce_models/inference_models/models/auto_loaders/core.py968CODE
LOW…ce_models/inference_models/models/auto_loaders/core.py1118CODE
LOW…ce_models/inference_models/models/auto_loaders/core.py1242CODE
LOW…ce_models/inference_models/models/auto_loaders/core.py428CODE
LOW…ference_models/models/auto_loaders/auto_negotiation.py59CODE
LOW…models/models/depth_anything_v3/architecture/dinov2.py31CODE
LOW…odels/models/depth_anything_v3/architecture/dualdpt.py38CODE
LOW…els/depth_anything_v3/architecture/layers/attention.py16CODE
LOW…/models/depth_anything_v3/architecture/layers/block.py28CODE
LOW…els/depth_anything_v3/architecture/layers/drop_path.py24CODE
LOW…erence_models/inference_models/models/sam/sam_torch.py283CODE
LOW…ls/inference_models/models/rfdetr/triton_preprocess.py570CODE
LOW…odels/inference_models/models/rfdetr/ms_deform_attn.py180CODE
LOW…ence_models/models/rfdetr/dinov2_with_windowed_attn.py799CODE
LOW…ence_models/models/rfdetr/dinov2_with_windowed_attn.py298CODE
LOW…erence_models/models/rfdetr/rfdetr_backbone_pytorch.py51CODE
LOW…erence_models/models/rfdetr/rfdetr_backbone_pytorch.py223CODE
LOW…/inference_models/models/rfdetr/rfdetr_base_pytorch.py723CODE
LOW…nce_models/inference_models/models/rfdetr/projector.py127CODE
LOW…e_models/inference_models/models/rfdetr/transformer.py165CODE
LOW…e_models/inference_models/models/rfdetr/transformer.py460CODE
LOW…e_models/inference_models/models/rfdetr/transformer.py586CODE
LOW…e_models/inference_models/models/rfdetr/transformer.py636CODE
LOW…e_models/inference_models/models/rfdetr/transformer.py698CODE
LOW…ence_models/inference_models/models/sam3/sam3_torch.py70CODE
LOW…ence_models/inference_models/models/sam3/sam3_torch.py297CODE
LOW…ence_models/inference_models/models/sam2/sam2_torch.py313CODE
LOW…rence_models/inference_models/models/owlv2/owlv2_hf.py139CODE
LOW…odels/models/perception_encoder/vision_encoder/rope.py81CODE
LOW…_models/models/perception_encoder/vision_encoder/pe.py298CODE
LOW…_models/models/perception_encoder/vision_encoder/pe.py541CODE
LOW…/inference_models/model_pipelines/auto_loaders/core.py59CODE
LOWinference/core/nms.py6CODE
LOWinference/core/workflows/errors.py167CODE
LOW…orkflows/core_steps/sinks/roboflow/vision_events/v1.py599CODE
LOW…orkflows/core_steps/sinks/roboflow/vision_events/v1.py474CODE
LOW…rence/core/workflows/core_steps/trackers/botsort/v1.py290CODE
LOW…e/workflows/core_steps/classical_cv/camera_focus/v2.py563CODE
LOW…ce/core/workflows/execution_engine/v1/executor/core.py385CODE
LOWinference/core/models/object_detection_base.py42CODE
LOWinference/core/models/instance_segmentation_base.py48CODE
LOWinference/core/interfaces/udp/udp_stream.py68CODE
LOWinference/core/interfaces/camera/video_source.py199CODE
LOWinference/core/interfaces/webrtc_worker/webrtc.py221CODE
71 more matches not shown…
Structural Annotation Overuse30 hits · 56 pts
SeverityFileLineSnippetContext
LOW…ce_models/docs/models/sam2-interactive-segmentation.md62# Step 1: Embed the image (optional but recommended for multiple segmentations)COMMENT
LOW…ce_models/docs/models/sam2-interactive-segmentation.md65# Step 2: Segment with point promptsCOMMENT
LOW…nce_models/docs/models/rfdetr-instance-segmentation.md82### Step 1: Train Your ModelCOMMENT
LOW…nce_models/docs/models/rfdetr-instance-segmentation.md100### Step 2: Deploy Instantly with inference-modelsCOMMENT
LOWinference_models/docs/models/rfdetr-object-detection.md96### Step 1: Train Your ModelCOMMENT
LOWinference_models/docs/models/rfdetr-object-detection.md114### Step 2: Deploy Instantly with inference-modelsCOMMENT
LOW…nce_models/docs/models/sam-interactive-segmentation.md59# Step 1: Embed the image (optional but recommended for multiple segmentations)COMMENT
LOW…nce_models/docs/models/sam-interactive-segmentation.md62# Step 2: Segment with point promptsCOMMENT
LOWinference_models/docs/how-to/local-packages.md52#### Step 1: Create `model_config.json`COMMENT
LOWinference_models/docs/how-to/local-packages.md68#### Step 2: Implement Your Model ClassCOMMENT
LOWinference_models/docs/contributors/adding-model.md16## Step 1: Understanding Model Implementation PhilosophyCOMMENT
LOWinference_models/docs/contributors/adding-model.md77## Step 2: Create Model ImplementationCOMMENT
LOWinference_models/docs/contributors/adding-model.md196## Step 3: Register Model in RegistryCOMMENT
LOWinference_models/docs/contributors/adding-model.md324## Step 4: Prepare Model Packages for RegistrationCOMMENT
LOWinference_models/docs/contributors/adding-model.md363## Step 5: Add TestsCOMMENT
LOWinference_models/docs/contributors/adding-model.md367## Step 6: Write DocumentationCOMMENT
LOWdocs/workflows/create_and_run.md8## Step 1: Create a WorkflowCOMMENT
LOWdocs/workflows/create_and_run.md16## Step 2: Add an object detection modelCOMMENT
LOWdocs/workflows/create_and_run.md21## Step 3: Crop each detected object to run breed classificationCOMMENT
LOWdocs/workflows/create_and_run.md27## Step 4: Classify dog breeds with second stage modelCOMMENT
LOWdocs/workflows/create_and_run.md36## Step 5: Replace Bounding Box classes with classification model predictionsCOMMENT
LOWdocs/workflows/create_and_run.md45## Step 6: Visualise predictionsCOMMENT
LOWdocs/workflows/create_and_run.md56## Step 7: Construct outputCOMMENT
LOWdocs/workflows/create_and_run.md62## Step 8: Running the workflowCOMMENT
LOW…orkflows/core_steps/sinks/roboflow/vision_events/v1.py693 # Step 1: Convert predictions to vision events annotation formatCOMMENT
LOW…orkflows/core_steps/sinks/roboflow/vision_events/v1.py696 # Step 2: Upload images and build a single image entryCOMMENT
LOW…orkflows/core_steps/sinks/roboflow/vision_events/v1.py716 # Step 3: Build and send eventCOMMENT
LOWinference/core/interfaces/webrtc_worker/utils.py385 # Step 1: we remove expired entriesCOMMENT
LOWinference/core/interfaces/webrtc_worker/utils.py388 # Step 2: we return what is still validCOMMENT
LOWinference/usage_tracking/payload_helpers.py6# NOTE: This module is used in isolation, no imports from inference are allowedCOMMENT
Redundant / Tautological Comments40 hits · 50 pts
SeverityFileLineSnippetContext
LOWinference_sdk/webrtc/datachannel.py68 # Check if all chunks receivedCOMMENT
LOWinference_sdk/webrtc/session.py132 # Check if session was closed (e.g., from a handler)COMMENT
LOWinference_sdk/webrtc/session.py505 # Check if being used without parentheses: @session.on_dataCOMMENT
LOWinference_sdk/webrtc/session.py1026 # Check if it's a chunked binary messageCOMMENT
LOWinference_sdk/webrtc/session.py1207 # Check if video is will be sent through datachannel instead of video trackCOMMENT
LOWdevelopment/otel/start-otel-dev.sh40# Check if already runningCOMMENT
LOW…nference_models/models/auto_loaders/models_registry.py611 # Check if implementation requires features that package doesn't haveCOMMENT
LOW…nference_models/models/auto_loaders/models_registry.py618 # Check if package has features that implementation doesn't supportCOMMENT
LOW…execution/test_workflow_with_background_subtraction.py163 # Check if there are any non-zero pixels (indicating detected motion)STRING
LOW…integration_tests/populate_expected_responses_batch.py25 # Iterate through list of testsCOMMENT
LOW…e/integration_tests/populate_expected_responses_sam.py21 # Iterate through list of testsCOMMENT
LOW…/integration_tests/populate_expected_responses_clip.py21 # Iterate through list of testsCOMMENT
LOW…rence/integration_tests/populate_expected_responses.py33 # Iterate through list of testsCOMMENT
LOWinference/core/nms.py47 # Assign directly to the viewCOMMENT
LOWinference/core/workflows/core_steps/loader.py786 # Check if block type category is disabledCOMMENT
LOW…core_steps/fusion/detections_classes_replacement/v1.py227 # Check if predictions are string-based (e.g. from OCR/LMM models)STRING
LOW…rkflows/core_steps/fusion/detections_list_rollup/v1.py345 # Check if we have instance segmentation (with masks) or object detection (without masks)STRING
LOW…core_steps/transformations/stitch_ocr_detections/v2.py476 # Check if distribution is bimodal using several heuristics:COMMENT
LOW…re/workflows/core_steps/sinks/email_notification/v2.py510 # Check if using Roboflow Managed API KeySTRING
LOW…re/workflows/core_steps/sinks/email_notification/v2.py906 # Check if it's a workspace member restrictionCOMMENT
LOW…re/workflows/core_steps/sinks/email_notification/v2.py931 # Check if it's a rate limit errorCOMMENT
LOW…rence/core/workflows/core_steps/sinks/twilio/sms/v2.py395 # Check if using Roboflow Managed API KeySTRING
LOW…kflows/core_steps/classical_cv/pixel_color_count/v1.py186 # Check if color is in hex formatSTRING
LOW…kflows/core_steps/classical_cv/pixel_color_count/v1.py200 # Check if color is in tuple formatSTRING
LOW…workflows/core_steps/classical_cv/dominant_color/v1.py165 # Assign pixels to nearest centroidSTRING
LOW…orkflows/core_steps/classical_cv/sift_comparison/v1.py136 # Check if both descriptor arrays have at least 2 descriptorsSTRING
LOW…orkflows/core_steps/classical_cv/sift_comparison/v2.py230 # Check if both descriptor arrays have at least 2 descriptorsSTRING
LOW…rkflows/core_steps/analytics/detection_event_log/v1.py349 # Check if it's time to run cleanupCOMMENT
LOW…s/execution_engine/v1/dynamic_blocks/modal_executor.py57# Check if Modal credentials are availableCOMMENT
LOW…s/execution_engine/v1/dynamic_blocks/modal_executor.py555 # Check if Modal is availableCOMMENT
LOW…/execution_engine/v1/dynamic_blocks/block_assembler.py97 # Check if we're using Modal for secure remote executionCOMMENT
LOWinference/core/interfaces/http/http_api.py1611 # Check if in-memory logging is enabledCOMMENT
LOW…ise/workflows/enterprise_blocks/sinks/opc_writer/v1.py242 # Check if we have an existing connectionCOMMENT
LOWinference/models/sam3_3d/segment_anything_3d.py85 # Check if already in correct format (uint8, 0/255 range, correct size)COMMENT
LOWapp_bundles/osx/build.py164 # Check if file is executable or matches .dylib/.so extensionCOMMENT
LOWapp_bundles/osx/build.py288 # Check if make_dmg.sh created the unversioned fileCOMMENT
LOWmodal/modal_app.py455 # Check if function expects a 'self' parameterCOMMENT
LOWmodal/utils.py35 # Check if modal is installedCOMMENT
LOWmodal/utils.py132 # Check if this is the active profileCOMMENT
LOW…_cli/lib/roboflow_cloud/data_staging/api_operations.py2203 # Check if any errors occurred during processingCOMMENT
Modern Structural Boilerplate40 hits · 44 pts
SeverityFileLineSnippetContext
LOWinference_sdk/webrtc/__init__.py17__all__ = [CODE
LOWinference_models/inference_models/developer_tools.py97__all__ = [CODE
LOW…ference_models/weights_providers/local_trt_packages.py41logger = logging.getLogger(__name__)CODE
LOW…dels/models/depth_anything_v3/architecture/__init__.py26__all__ = ["DepthAnything3Net"]CODE
LOW…dels/depth_anything_v3/architecture/layers/__init__.py20__all__ = [CODE
LOW…ence_models/models/rfdetr/dinov2_with_windowed_attn.py1450__all__ = [CODE
LOW…/inference_models/models/rfdetr/triton_jit_fallback.py9logger = logging.getLogger(__name__)CODE
LOW…rence/unit_tests/core/interfaces/http/test_http_api.py24 def set_stream_manager_client(self, stream_manager_client) -> None:CODE
LOW…ttp/test_legacy_http_route_accepts_confidence_modes.py26 def set_stream_manager_client(self, stream_manager_client) -> None:CODE
LOW…e/interfaces/http/test_workflow_debug_logs_contract.py26 def set_stream_manager_client(self, stream_manager_client) -> None:CODE
LOWinference/__init__.py36__all__ = [CODE
LOWinference/core/telemetry.py102def set_span_attribute(key: str, value: Any) -> None:CODE
LOWinference/core/cache/air_gapped.py19logger = logging.getLogger(__name__)CODE
LOWinference/core/managers/prometheus.py32 def set_stream_manager_client(self, stream_manager_client) -> None:CODE
LOWinference/core/workflows/core_steps/common/entities.py14__all__ = ["StepExecutionMode"]CODE
LOW…rkflows/execution_engine/v1/inner_workflow/__init__.py27__all__ = [CODE
LOW…_engine/v1/inner_workflow/dynamic_blocks_collection.py17logger = logging.getLogger(__name__)CODE
LOW…kflows/execution_engine/introspection/blocks_loader.py52logger = logging.getLogger(__name__)CODE
LOWinference/core/utils/cuda_health.py13logger = logging.getLogger(__name__)CODE
LOWinference/core/logging/memory_handler.py20logger = logging.getLogger(__name__)CODE
LOWinference/core/interfaces/camera/video_source.py677 def _set_file_mode_consumption_strategies(self) -> None:CODE
LOWinference/core/interfaces/camera/video_source.py681 def _set_stream_mode_consumption_strategies(self) -> None:CODE
LOWinference/core/interfaces/camera/video_source.py936 def _set_file_mode_buffering_strategies(self) -> None:CODE
LOWinference/core/interfaces/camera/video_source.py940 def _set_stream_mode_buffering_strategies(self) -> None:CODE
LOW…ence/core/interfaces/webrtc_worker/sources/__init__.py6__all__ = ["ThreadedVideoFileTrack", "VideoFileUploadHandler"]CODE
LOWinference/core/interfaces/http/http_api.py438def _set_request_header(request: Request, header_name: str, header_value: str) -> None:CODE
LOWinference/core/interfaces/http/http_api.py446def _set_optional_context_var(context_var: Optional[Any], value: Optional[str]) -> None:CODE
LOWinference/core/interfaces/http/builder/routes.py26logger = logging.getLogger(__name__)CODE
LOW…ows/enterprise_blocks/sinks/microsoft_sql_server/v1.py34logger = logging.getLogger(__name__)CODE
LOW…ence/models/depth_anything_v3/architecture/__init__.py26__all__ = ["DepthAnything3Net"]CODE
LOW…dels/depth_anything_v3/architecture/layers/__init__.py20__all__ = [CODE
LOWinference/models/easy_ocr/__init__.py3__all__ = ["EasyOCR"]CODE
LOWinference/models/vllm_proxy/qwen3_5_vllm.py48__all__ = [CODE
LOWinference/models/vllm_proxy/__init__.py16__all__ = ["VLLM_PROXY_ENABLED"]CODE
LOWinference/models/vllm_proxy/qwen3vl_vllm.py54__all__ = [CODE
LOWinference/models/rfdetr_nas/__init__.py6__all__ = ["RFDETRNasObjectDetection", "RFDETRNasInstanceSegmentation"]CODE
LOWinference/models/rfdetr/__init__.py6__all__ = ["RFDETRObjectDetection", "RFDETRInstanceSegmentation"]CODE
LOWinference/models/sam3/__init__.py6__all__ = ["SegmentAnything3", "Sam3ForInteractiveImageSegmentation"]CODE
LOWinference/models/perception_encoder/__init__.py3__all__ = ["PerceptionEncoder"]CODE
LOW…e_compiler/core/compilation_handlers/engine_builder.py42 def set_timing_cache_manager(self, cache_manager: TimingCacheManager) -> None:CODE
Over-Commented Block37 hits · 36 pts
SeverityFileLineSnippetContext
LOWmkdocs.yml61 - Securing Your Server: install/security.mdCOMMENT
LOWinference_sdk/webrtc/model_workflows.py21 deduct_api_key_from_string,COMMENT
LOWdocker/entrypoint/run_uvicorn.sh1#!/bin/shCOMMENT
LOWdevelopment/otel/start-otel-dev.sh1#!/usr/bin/env bashCOMMENT
LOW…converters/convert_florence2_original_pytorch_to_hf.py1# coding=utf-8COMMENT
LOW…ls/models/depth_anything_v3/depth_anything_v3_torch.py1# Copyright (c) 2025 Roboflow, Inc.COMMENT
LOW…ce_models/models/depth_anything_v3/architecture/dpt.py1# Copyright (c) 2025 ByteDance Ltd. and/or its affiliatesCOMMENT
LOW…odels/models/depth_anything_v3/architecture/dualdpt.py1# Copyright (c) 2025 ByteDance Ltd. and/or its affiliatesCOMMENT
LOW…dels/models/depth_anything_v3/architecture/__init__.py1# Copyright (c) 2025 ByteDance Ltd. and/or its affiliatesCOMMENT
LOW…ce_models/models/depth_anything_v3/architecture/da3.py1# Copyright (c) 2025 ByteDance Ltd. and/or its affiliatesCOMMENT
LOW…ls/models/depth_anything_v3/architecture/head_utils.py1# Copyright (c) 2025 ByteDance Ltd. and/or its affiliatesCOMMENT
LOW…odels/inference_models/models/rfdetr/ms_deform_attn.py1# ------------------------------------------------------------------------COMMENT
LOW…/inference_models/models/rfdetr/ms_deform_attn_func.py1# ------------------------------------------------------------------------COMMENT
LOW…ls/inference_models/models/rfdetr/position_encoding.py1# ------------------------------------------------------------------------COMMENT
LOW…nce_models/inference_models/models/rfdetr/projector.py1# ------------------------------------------------------------------------COMMENT
LOW…e_models/inference_models/models/rfdetr/transformer.py1# ------------------------------------------------------------------------COMMENT
LOW…/unit_tests/core_steps/fusion/test_overlap_analysis.py241 )COMMENT
LOWdocs/javascript/init_kapa_widget.js1// Interaction-gated loader for the Kapa.ai "Ask AI" widget.COMMENT
LOW.github/workflows/claude-pr-review-notice.yml1name: Claude PR Review — PR NoticeCOMMENT
LOW.github/workflows/test.nvidia_t4.yml141# if: ${{ github.event.inputs.test_name == '' || github.event.inputs.test_name == 'qwen25' }}COMMENT
LOWinference/core/env.py61# re-validated (scheme / FQDN / allow-list / block-list) instead of beingCOMMENT
LOW…/workflows/core_steps/models/foundation/qwen_vlm/v1.py181 "Qwen 3.5 VL 2B",COMMENT
LOW…ows/core_steps/visualizations/common/base_colorable.py61 # "Matplotlib gnuplot2",COMMENT
LOWinference/enterprise/parallel/build.sh1#!/bin/bashCOMMENT
LOWinference/models/depth_anything_v3/depth_anything_v3.py1# Copyright (c) 2025 Roboflow, Inc.COMMENT
LOW…epth_anything_v3/depth_anything_v3_inference_models.py1# Copyright (c) 2025 Roboflow, Inc.COMMENT
LOWinference/models/depth_anything_v3/architecture/dpt.py1# Copyright (c) 2025 ByteDance Ltd. and/or its affiliatesCOMMENT
LOW…rence/models/depth_anything_v3/architecture/dualdpt.py1# Copyright (c) 2025 ByteDance Ltd. and/or its affiliatesCOMMENT
LOW…ence/models/depth_anything_v3/architecture/__init__.py1# Copyright (c) 2025 ByteDance Ltd. and/or its affiliatesCOMMENT
LOWinference/models/depth_anything_v3/architecture/da3.py1# Copyright (c) 2025 ByteDance Ltd. and/or its affiliatesCOMMENT
LOW…ce/models/depth_anything_v3/architecture/head_utils.py1# Copyright (c) 2025 ByteDance Ltd. and/or its affiliatesCOMMENT
LOWapp_bundles/osx/run_inference.py121COMMENT
LOWapp_bundles/osx/run_inference.py141COMMENT
LOWapp_bundles/osx/launcher.c.txt1// this is the source code for the binary checked in to the repo. COMMENT
LOWapp_bundles/osx/hooks/hook-inference.models.py1# ── hooks/hook-inference.models.py ────────────────────────────────COMMENT
LOWapp_bundles/windows/run_inference.py121# import inference.models.gaze as _gazeCOMMENT
LOWapp_bundles/windows/hooks/hook-inference.models.py1# ── hooks/hook-inference.models.py ────────────────────────────────COMMENT
Cross-Language Confusion (JS/TS)4 hits · 20 pts
SeverityFileLineSnippetContext
HIGHinference/landing/src/app/components/Examples.tsx38print(res.json())CODE
HIGHinference/landing/src/app/components/Examples.tsx55print(results)CODE
HIGHinference/landing/src/app/components/Examples.tsx69print(embeddings)CODE
HIGHinference/landing/src/app/components/Examples.tsx83print(embeddings)CODE
Cross-Language Confusion5 hits · 18 pts
SeverityFileLineSnippetContext
HIGHinference_models/inference_models/models/common/cuda.py98 context.push()CODE
HIGH…e/interfaces/http/test_workflow_debug_logs_contract.py11- no `debug` flag -> `python_blocks_output_streams` is null,STRING
HIGH…e/interfaces/http/test_workflow_debug_logs_contract.py308 # then - empty capture serializes as null, not {}STRING
HIGH…core_steps/formatters/first_non_empty_or_default/v1.py38 - Default value can be any type (string, number, object, null, etc.)CODE
HIGH…core_steps/formatters/first_non_empty_or_default/v1.py114 description="Default value to return when all data inputs are empty (None). This ensures the output is always noSTRING
Verbosity Indicators5 hits · 10 pts
SeverityFileLineSnippetContext
LOW…orkflows/core_steps/sinks/roboflow/vision_events/v1.py693 # Step 1: Convert predictions to vision events annotation formatCOMMENT
LOW…orkflows/core_steps/sinks/roboflow/vision_events/v1.py696 # Step 2: Upload images and build a single image entryCOMMENT
LOW…orkflows/core_steps/sinks/roboflow/vision_events/v1.py716 # Step 3: Build and send eventCOMMENT
LOWinference/core/interfaces/webrtc_worker/utils.py385 # Step 1: we remove expired entriesCOMMENT
LOWinference/core/interfaces/webrtc_worker/utils.py388 # Step 2: we return what is still validCOMMENT
AI Slop Vocabulary4 hits · 5 pts
SeverityFileLineSnippetContext
MEDIUM…ce_models/inference_models/models/auto_loaders/core.py131 """Display comprehensive metadata and available packages for a model.STRING
LOWinference/core/roboflow_api.py277 # remaining aiohttp.ClientError seems to qualify to simply pass-through raiseCOMMENT
LOW…s/execution_engine/v1/dynamic_blocks/modal_executor.py603 # For validation, we don't need complex inputs, just pass empty JSONSTRING
MEDIUM…ise/workflows/enterprise_blocks/sinks/opc_writer/v1.py407[asyncua](https://github.com/FreeOpcUa/opcua-asyncio) library for seamless communication.CODE
Dead Code2 hits · 4 pts
SeverityFileLineSnippetContext
MEDIUM…erence_sdk/unit_tests/webrtc/test_session_lifecycle.py150CODE
MEDIUM…erence_sdk/unit_tests/webrtc/test_session_lifecycle.py167CODE
Overly Generic Function Names4 hits · 4 pts
SeverityFileLineSnippetContext
LOW…ts/execution/test_workflow_with_custom_python_block.py453def my_function(self, prediction: sv.Detections, crops: Batch[WorkflowImageData]) -> BlockResult:CODE
LOW…inference/integration_tests/test_workflow_endpoints.py131def my_function(self, prediction: sv.Detections, crops: Batch[WorkflowImageData]) -> BlockResult:CODE
LOW…inference/integration_tests/test_workflow_endpoints.py235def my_function(self, prediction: sv.Detections, crops: Batch[WorkflowImageData]) -> BlockResult:CODE
LOWtests/inference/hosted_platform_tests/test_workflows.py136def my_function(self, prediction: sv.Detections, crops: Batch[WorkflowImageData]) -> BlockResult:CODE
Modern AI Meta-Vocabulary1 hit · 3 pts
SeverityFileLineSnippetContext
MEDIUM.claude/skills/add-inference-model/SKILL.md32## Before scaffolding — survey existing modelsCOMMENT
Fake / Example Data2 hits · 2 pts
SeverityFileLineSnippetContext
LOW…ce/unit_tests/core/interfaces/stream/test_workflows.py349 response = _FakeResponse("placeholder")CODE
LOW…/inference/unit_tests/usage_tracking/test_collector.py955 api_key = "fake-key"CODE
Example Usage Blocks1 hit · 2 pts
SeverityFileLineSnippetContext
LOWdevelopment/otel/start-otel-dev.sh6# Usage:COMMENT