AI Slop Code RIsk Monitor

roboflow/supervision

We write your reusable computer vision tools. 💜

30.1 High pattern signal View on GitHub

Maintenance and Governance Review

This report summarizes scanner evidence for roboflow/supervision, a Python project with 51,170 GitHub stars. SynthScan examined 134,079 lines of code across 396 source files, recording 2819 pattern matches distributed across 18 syntactic categories. The legacy adjusted pattern signal is 30.1 (High 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.

30.1
Adjusted Signal
30.1
Raw Pattern Score
100%
Time Factor
2026-10-09
Last Push
51.2K
Stars
Python
Language
134.1K
Lines of Code
396
Files
2.8K
Pattern Hits
2026-10-12
Scan Date
0.78
HC Hit Rate

Risk Review · v3

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

Cognitive Ownership Risk 67.3/100 · HIGH

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

Hallucinated Dependency & Supply Chain Risk 9.2/100 · LOW

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

Agent Over-Engineering Ratio 61.0/100 · HIGH

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

PR Review Velocity Impact 82.2/100 · CRITICAL

Which changes need focused human review? 2819 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 310MEDIUM 127LOW 2382

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 2819 distinct pattern matches across 18 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 Identifiers2014 hits · 1730 pts
SeverityFileLineSnippetContext
LOWtests/test_public_api.py12def test_all_symbols_are_importable(symbol_name: str) -> None:CODE
LOWtests/test_public_api.py29def test_shipped_imports_are_listed_in_all(symbol_name: str) -> None:CODE
LOWtests/test_validate_deprecations.py88def test_validate_public_shims_warn(call: Callable[[], object], version: str) -> None:CODE
LOWtests/test_validate_deprecations.py93def test_private_validation_paths_do_not_warn() -> None:CODE
LOWtests/helpers.py646def create_predictions_with_class_iou_tests(CODE
LOW⚡tests/classification/test_core.py95def test_top_k_rejects_negative_count() -> None:CODE
LOW⚡tests/classification/test_core.py105def test_from_clip_empty_output_dtypes() -> None:CODE
LOW⚡tests/classification/test_core.py114def test_from_timm_empty_output_dtypes() -> None:CODE
LOW⚡tests/classification/test_core.py123def test_from_timm_softmaxes_logits() -> None:CODE
LOWtests/classification/test_core.py136def test_classifications_compare_numpy_fields_by_value() -> None:CODE
LOWtests/metrics/test_size_bucket_regressions.py48def test_size_bucket_match_is_not_stolen(CODE
LOWtests/metrics/test_size_bucket_regressions.py77def test_small_bucket_mar_returns_zero_without_bucket_targets() -> None:CODE
LOWtests/metrics/test_size_bucket_regressions.py102def test_medium_bucket_mar_counts_global_rank_budget() -> None:CODE
LOWtests/metrics/test_size_bucket_regressions.py158def test_perfect_detector_scores_full_marks_in_every_bucket(CODE
LOWtests/metrics/test_size_bucket_regressions.py196def test_unmatched_out_of_bucket_prediction_does_not_penalize_bucket(CODE
LOWtests/metrics/test_size_bucket_regressions.py232def test_explicit_area_metadata_controls_bucket_assignment(CODE
LOWtests/metrics/test_size_bucket_regressions.py268def test_mask_bucket_ignores_out_of_bucket_predictions(CODE
LOWtests/metrics/test_size_bucket_regressions.py306def test_obb_bucket_ignores_out_of_bucket_predictions(CODE
LOWtests/metrics/test_size_bucket_regressions.py359def test_mask_target_requires_masks(metric_cls, missing_side) -> None:CODE
LOWtests/metrics/test_mean_average_recall.py147def complex_scenario_predictions():CODE
LOWtests/metrics/test_mean_average_recall.py285def two_class_two_image_detections():CODE
LOWtests/metrics/test_mean_average_recall.py324def three_class_single_image_detections():CODE
LOWtests/metrics/test_mean_average_recall.py364def test_compute_value_error_for_missing_required_fields_after_update(CODE
LOWtests/metrics/test_mean_average_recall.py400def test_mask_content_preserves_compact_mask() -> None:CODE
LOWtests/metrics/test_mean_average_recall.py416def test_compute_with_compact_mask_matches_dense() -> None:CODE
LOWtests/metrics/test_mean_average_recall.py437def test_single_perfect_detection() -> None:CODE
LOWtests/metrics/test_mean_average_recall.py453def test_recall_per_class_keeps_each_max_detection_cutoff() -> None:CODE
LOWtests/metrics/test_mean_average_recall.py480def test_empty_inputs_keep_max_detection_axis() -> None:CODE
LOWtests/metrics/test_mean_average_recall.py502def test_medium_bucket_scores_target_matched_small_prediction() -> None:CODE
LOWtests/metrics/test_mean_average_recall.py533def test_compute_value_error_for_missing_required_fields(missing_attribute) -> None:CODE
LOWtests/metrics/test_mean_average_recall.py567def test_complex_integration_scenario(CODE
LOWtests/metrics/test_mean_average_recall.py595def test_mar_at_k_limits_per_image_not_per_class(CODE
LOWtests/metrics/test_mean_average_recall.py651def test_three_class_single_image_scenario(three_class_single_image_detections) -> None:CODE
LOWtests/metrics/test_mean_average_recall.py698def test_dataset_split_integration(yolo_dataset_two_classes) -> None:CODE
LOWtests/metrics/test_mean_average_recall.py779def test_mar_at_k_ignores_predictions_ranked_below_each_limit() -> None:CODE
LOWtests/metrics/test_mean_average_recall.py812def test_greedy_matching_two_valid_pairs():CODE
LOWtests/metrics/test_f1_score.py15 def predictions_multiple_classes(self):CODE
LOW⚡tests/metrics/test_f1_score.py42 def test_initialization_default(self):CODE
LOW⚡tests/metrics/test_f1_score.py50 def test_initialization_custom(self):CODE
LOW⚡tests/metrics/test_f1_score.py59 def test_mask_content_preserves_compact_mask(self) -> None:CODE
LOWtests/metrics/test_f1_score.py74 def test_compute_with_compact_mask_matches_dense(self) -> None:CODE
LOWtests/metrics/test_f1_score.py165 def test_medium_bucket_scores_target_matched_small_prediction(self) -> None:CODE
LOWtests/metrics/test_f1_score.py182 def test_false_positives_on_background_image_counted(self):CODE
LOWtests/metrics/test_f1_score.py225 def test_false_positives_of_absent_class_counted(self, method, expected):CODE
LOWtests/metrics/test_f1_score.py248 def test_false_positives_on_background_image_weighted_returns_zero(self):CODE
LOWtests/metrics/test_f1_score.py262 def test_single_class_mixed_results(CODE
LOWtests/metrics/test_f1_score.py277 def test_precision_recall_imbalance(CODE
LOWtests/metrics/test_f1_score.py310 def test_different_iou_thresholds(self, predictions_iou_064, targets_iou_064):CODE
LOWtests/metrics/test_f1_score.py346 def test_mismatched_list_lengths(self, detections_50_50, targets_50_50):CODE
LOWtests/metrics/test_f1_score.py358 def test_compute_value_error_for_missing_required_fields(CODE
LOWtests/metrics/test_f1_score.py445 def test_greedy_matching_two_valid_pairs(self):CODE
LOWtests/metrics/test_f1_score.py465 def test_compute_no_runtime_warning_for_zero_denominator_bucket(self) -> None:CODE
LOWtests/metrics/test_lazy_imports.py50def test_metrics_package_import_keeps_pyplot_lazy() -> None:CODE
LOWtests/metrics/test_lazy_imports.py60def test_precision_plot_imports_pyplot_on_demand(monkeypatch) -> None:CODE
LOWtests/metrics/conftest.py65def predictions_multiple_classes():CODE
LOWtests/metrics/conftest.py112def predictions_confidence_ranking():CODE
LOWtests/metrics/test_mean_average_precision.py119 def test_class_agnostic_missing_class_ids(CODE
LOWtests/metrics/test_mean_average_precision.py147 def test_class_agnostic_unlabeled_inputs_ignore_unused_class_mapping(self) -> None:CODE
LOWtests/metrics/test_mean_average_precision.py161 def test_class_agnostic_normalizes_across_updates(self) -> None:CODE
LOWtests/metrics/test_mean_average_precision.py180 def test_class_agnostic_state_sequence(self) -> None:CODE
1954 more matches not shown…
Docstring Block Structure232 hits · 1160 pts
SeverityFileLineSnippetContext
HIGHtests/helpers.py45Create a Detections object from list-based inputs. This is a helper function primarily used for testing purposes toSTRING
HIGHtests/helpers.py104Create a KeyPoints object from list-based inputs. This is a helper function primarily used for testing purposes to STRING
HIGHtests/helpers.py167Generate random bounding boxes within given image dimensions and size constraints. Creates `count` bounding boxSTRING
HIGHtests/helpers.py437Create a synthetic YOLO-format dataset on disk. Generates dummy images with YOLO-format annotations, `data.yaml` fiSTRING
HIGHtests/geometry/test_utils.py9Generate a semicircle with a given number of points. Parameters: n (int): amount of points in polygon STRING
HIGHsrc/supervision/classification/core.py178Retrieve the top k class IDs and confidences, ordered in descending order by confidence. Args: STRING
HIGHsrc/supervision/metrics/detection.py279Convert Supervision Detections to a numpy tensor for metric computation. Args: detections: Detections/TargeSTRING
HIGHsrc/supervision/metrics/detection.py662Render detections onto a copy of ``scene`` with a title overlay. Args: scene: Source image panel (not mutatSTRING
HIGHsrc/supervision/metrics/detection.py930Calculate confusion matrix based on predicted and ground-truth detections. Args: targets: DetectionSTRING
HIGHsrc/supervision/metrics/detection.py1089Calculate confusion matrix based on predicted and ground-truth detections. Args: predictions: Each STRING
HIGHsrc/supervision/metrics/mean_average_precision.py578 Calculate the IoU between detection masks (dt) and ground-truth masks (gt), following the COCO convention: a deSTRING
HIGH…supervision/metrics/keypoint_mean_average_precision.py431Add predictions and targets of one or more images to the metric. Args: predictions: The predicted kSTRING
HIGH…supervision/metrics/keypoint_mean_average_precision.py495Check that a skeleton matches earlier ones and the given sigmas. Args: key_points: The skeletons ofSTRING
HIGHsrc/supervision/metrics/utils/aggregate.py21Combine several :class:`MetricResult` objects into a single DataFrame. Each row corresponds to one result (one modeSTRING
HIGHsrc/supervision/metrics/utils/object_size.py131Get object size categories from per-detection pixel areas. Args: areas: One-dimensional pixel areas shaped STRING
HIGHsrc/supervision/metrics/utils/object_size.py257Get the size category of each detection. Explicit area metadata takes precedence for every metric target, matching STRING
HIGHsrc/supervision/key_points/core.py443 Create a `sv.KeyPoints` object from the [Roboflow](https://roboflow.com/) API inference result or the [STRING
HIGHsrc/supervision/key_points/core.py555 Creates a `sv.KeyPoints` instance from a [MediaPipe](https://github.com/google-ai-edge/mediapipe) STRING
HIGHsrc/supervision/key_points/core.py769 Creates a `sv.KeyPoints` instance from a [YOLOv8](https://github.com/ultralytics/ultralytics) pose infeSTRING
HIGHsrc/supervision/key_points/core.py817 Create a `sv.KeyPoints` instance from a [YOLO-NAS](https://github.com/Deci-AI/super-gradients/blob/master/YOLONSTRING
HIGHsrc/supervision/key_points/core.py875 Create a `sv.KeyPoints` object from the [Detectron2](https://github.com/facebookresearch/detectron2) inSTRING
HIGHsrc/supervision/key_points/core.py929 Create a `sv.KeyPoints` object from the [Transformers](https://github.com/huggingface/transformers) infSTRING
HIGHsrc/supervision/key_points/core.py1018Filter keypoints using a 2D boolean mask of shape `(n, m)`. This method selects the **same set of keypoints froSTRING
HIGHsrc/supervision/key_points/core.py1257Get a subset of the KeyPoints object or access an item from its data field. Supports detection-level (skeleton)STRING
HIGHsrc/supervision/key_points/core.py1413Merge a list of KeyPoints objects into a single KeyPoints object. This method takes a list of KeyPoints objectsSTRING
HIGHsrc/supervision/key_points/core.py1536Performs non-max suppression on the keypoint detections. Bounding boxes are derived from valid keypoints of eachSTRING
HIGHsrc/supervision/key_points/core.py1654Convert a KeyPoints object to a Detections object. This approximates the bounding box of the detected object by STRING
HIGHsrc/supervision/key_points/annotators.py75Annotates the given scene with skeleton vertices based on the provided key points. It draws circles at each key STRING
HIGHsrc/supervision/key_points/annotators.py168Annotates the given scene by drawing lines between specified key points to form edges. Edges where either endpoiSTRING
HIGHsrc/supervision/key_points/annotators.py436Draws filled semi-transparent covariance ellipses around each keypoint. Keypoints marked as not visible via ``keSTRING
HIGHsrc/supervision/key_points/annotators.py536Draws stroke-only covariance ellipse outlines around each keypoint. Keypoints marked as not visible via ``key_poSTRING
HIGHsrc/supervision/key_points/annotators.py640Draws radially-fading covariance ellipses around each keypoint. Keypoints marked as not visible via ``key_pointsSTRING
HIGHsrc/supervision/key_points/annotators.py788Draws labels at skeleton vertex positions on the image. Vertices marked not visible via ``key_points.visible``, STRING
HIGHsrc/supervision/depth/core.py60Resolve a kind from an enum member or its case-insensitive value. Args: value: A `DepthKind` memberSTRING
HIGHsrc/supervision/depth/core.py118Resolve a resize method from an enum member or its case-insensitive value. Args: value: A `DepthResSTRING
HIGHsrc/supervision/depth/core.py164Resolve a scale from an enum member or its case-insensitive value. Args: value: A `DepthScale` membSTRING
HIGHsrc/supervision/depth/core.py592Return the values in the kind's unit as a new float32 array. Args: no_depth_value: The value writteSTRING
HIGHsrc/supervision/depth/core.py616Create a `sv.DepthMap` from a depth model served by Roboflow Inference. Reads the `normalized_depth` that InferSTRING
HIGHsrc/supervision/depth/core.py682Create a `sv.DepthMap` from an Ultralytics YOLO26 depth result. `result.depth.data` holds metric depth in metreSTRING
HIGHsrc/supervision/depth/core.py726Create a `sv.DepthMap` from a Hugging Face depth estimation result. Reads `predicted_depth` from a `depth-estimSTRING
HIGHsrc/supervision/depth/core.py781Load a depth map from a 16-bit grayscale PNG. Values load as float32 `code / scale`. Code 0 is no depth (`NaN`)STRING
HIGHsrc/supervision/depth/core.py828Load a single-channel PFM file, the Middlebury and SceneFlow format. Rows are flipped to top first. Infinite vaSTRING
HIGHsrc/supervision/depth/core.py901Return the map resized to `resolution_wh` without blending any pixels. Blending would mix no-depth pixels into STRING
HIGHsrc/supervision/depth/core.py976Return the part of the map inside a box. Coordinates are rounded and clipped to the map, as in `sv.crop_image`.STRING
HIGHsrc/supervision/depth/core.py1027Return the value in the kind's unit under a point, or `None`. The unit is the map's own: metres for `depth_m`, STRING
HIGHsrc/supervision/depth/core.py1092Return the detections with the median depth under each object in `data`. For each detection, the median of the STRING
HIGHsrc/supervision/depth/colormaps.py54Resolve a colormap from an enum member or its case-insensitive name. Args: value: A `DepthColormap`STRING
HIGHsrc/supervision/depth/annotators.py106Colour the depth map over the scene. A map whose size differs from the scene's is stretched over the whole scenSTRING
HIGHsrc/supervision/depth/annotators.py260Compute a clip's percentile range in one pass. Each map contributes up to about 65,536 valid values, thinned atSTRING
HIGHsrc/supervision/depth/annotators.py442Return the nearest-rank percentile range of a map's valid values. It is the range `display_range="auto"` uses, convSTRING
HIGHsrc/supervision/dataset/core.py212Splits the dataset into two parts (training and testing) using the provided split_ratio. The input dataset is noSTRING
HIGHsrc/supervision/dataset/core.py285Merge a list of `DetectionDataset` objects into a single `DetectionDataset` object. This method takes aSTRING
HIGHsrc/supervision/dataset/core.py464Creates a Dataset instance from PASCAL VOC formatted data. Args: images_directory_path: Path to theSTRING
HIGHsrc/supervision/dataset/core.py523Creates a Dataset instance from YOLO formatted data. When `data.yaml` declares `kpt_shape: [K, D]`, as UltralytSTRING
HIGHsrc/supervision/dataset/core.py705Creates a Dataset instance from LabelMe formatted data. LabelMe stores one JSON file per image, each containingSTRING
HIGHsrc/supervision/dataset/core.py809Creates a Dataset instance from CreateML formatted data. CreateML stores object-detection annotations in a singSTRING
HIGHsrc/supervision/dataset/core.py862Exports the dataset to CreateML format. This method saves the images and their corresponding annotations in CreaSTRING
HIGHsrc/supervision/dataset/core.py908Creates a Dataset instance from COCO formatted data. Args: images_directory_path: The path to the STRING
HIGHsrc/supervision/dataset/core.py1161Splits the dataset into two parts (training and testing) using the provided split_ratio. Args: STRING
HIGHsrc/supervision/dataset/core.py1294Load data from a multiclass folder structure into a ClassificationDataset. Args: root_directory_patSTRING
172 more matches not shown…
Decorative Section Separators118 hits · 426 pts
SeverityFileLineSnippetContext
MEDIUM⚡tests/dataset/test_core.py781# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/dataset/test_core.py783# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/dataset/test_core.py840# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/dataset/test_core.py842# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/dataset/test_core.py681# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/dataset/test_core.py683# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/dataset/test_progress.py169# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/dataset/test_progress.py171# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/dataset/test_progress.py110# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/dataset/test_progress.py112# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/dataset/test_progress.py133# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/dataset/test_progress.py135# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/draw/test_utils.py172# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/draw/test_utils.py174# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/draw/test_utils.py205# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/draw/test_utils.py207# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/draw/test_utils.py237# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/draw/test_utils.py239# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/draw/test_utils.py269# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/draw/test_utils.py271# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/draw/test_utils.py299# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/draw/test_utils.py301# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/detection/test_from_adapters.py174# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/detection/test_from_adapters.py176# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/detection/test_from_adapters.py309# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/detection/test_from_adapters.py311# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/detection/test_from_adapters.py369# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/detection/test_from_adapters.py371# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/detection/test_from_adapters.py430# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/detection/test_from_adapters.py432# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/detection/test_from_adapters.py476# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/detection/test_from_adapters.py478# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/detection/test_from_adapters.py533# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/detection/test_from_adapters.py535# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/detection/test_from_adapters.py598# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/detection/test_from_adapters.py600# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/detection/test_from_adapters.py705# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/detection/test_from_adapters.py707# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/detection/test_compact_mask_iou.py23# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/detection/test_compact_mask_iou.py25# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/detection/test_compact_mask_iou.py383# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/detection/test_compact_mask_iou.py385# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/detection/test_compact_mask.py1160# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/detection/test_compact_mask.py1162# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/detection/tools/test_transformers.py21# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/detection/tools/test_transformers.py23# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/detection/tools/test_transformers.py26# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/detection/tools/test_transformers.py28# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/detection/tools/test_transformers.py148# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/detection/tools/test_transformers.py150# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/detection/tools/test_transformers.py202# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/detection/tools/test_transformers.py204# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/detection/tools/test_transformers.py339# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/detection/tools/test_transformers.py341# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/detection/tools/test_transformers.py431# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/detection/tools/test_transformers.py433# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/detection/tools/test_transformers.py65# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/detection/tools/test_transformers.py67# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/detection/tools/test_transformers.py109# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/detection/tools/test_transformers.py111# ---------------------------------------------------------------------------COMMENT
58 more matches not shown…
Cross-File Repetition59 hits · 295 pts
SeverityFileLineSnippetContext
HIGHtests/metrics/test_mean_average_recall.py0test compute raises valueerror when required fields are missing.STRING
HIGHtests/metrics/test_f1_score.py0test compute raises valueerror when required fields are missing.STRING
HIGHtests/metrics/test_precision.py0test compute raises valueerror when required fields are missing.STRING
HIGHtests/metrics/test_recall.py0test compute raises valueerror when required fields are missing.STRING
HIGHtests/metrics/test_f1_score.py0test that mismatched prediction/target list lengths raise error.STRING
HIGHtests/metrics/test_precision.py0test that mismatched prediction/target list lengths raise error.STRING
HIGHtests/metrics/test_recall.py0test that mismatched prediction/target list lengths raise error.STRING
HIGHtests/metrics/test_f1_score.py0greedy matching finds both tps; np.unique style missed the second pair. iou matrix: [[1.0, 0.667], [0.333, 0.538]]. at iSTRING
HIGHtests/metrics/test_precision.py0greedy matching finds both tps; np.unique style missed the second pair. iou matrix: [[1.0, 0.667], [0.333, 0.538]]. at iSTRING
HIGHtests/metrics/test_recall.py0greedy matching finds both tps; np.unique style missed the second pair. iou matrix: [[1.0, 0.667], [0.333, 0.538]]. at iSTRING
HIGHexamples/time_in_zone/rfdetr_file_example.py0calculating detections dwell time in zones, using rtsp stream. args: rtsp_url: complete rtsp url for the video stream zoSTRING
HIGHexamples/time_in_zone/rfdetr_stream_example.py0calculating detections dwell time in zones, using rtsp stream. args: rtsp_url: complete rtsp url for the video stream zoSTRING
HIGHexamples/time_in_zone/rfdetr_naive_stream_example.py0calculating detections dwell time in zones, using rtsp stream. args: rtsp_url: complete rtsp url for the video stream zoSTRING
HIGHexamples/time_in_zone/utils/general.py0load polygon zone configurations from a json file. this function reads a json file which contains polygon coordinates, aSTRING
HIGHexamples/count_people_in_zone/ultralytics_example.py0load polygon zone configurations from a json file. this function reads a json file which contains polygon coordinates, aSTRING
HIGHexamples/count_people_in_zone/inference_example.py0load polygon zone configurations from a json file. this function reads a json file which contains polygon coordinates, aSTRING
HIGHexamples/count_people_in_zone/rfdetr_example.py0load polygon zone configurations from a json file. this function reads a json file which contains polygon coordinates, aSTRING
HIGHexamples/count_people_in_zone/rfdetr_example.py0detect objects in a frame using inference model, filtering detections by class id and confidence threshold. args: frame STRING
HIGHexamples/count_people_in_zone/ultralytics_example.py0detect objects in a frame using inference model, filtering detections by class id and confidence threshold. args: frame STRING
HIGHexamples/count_people_in_zone/inference_example.py0detect objects in a frame using inference model, filtering detections by class id and confidence threshold. args: frame STRING
HIGHexamples/count_people_in_zone/rfdetr_example.py0annotate a frame with zone and box annotations based on given detections. args: frame (np.ndarray): the original frame tSTRING
HIGHexamples/count_people_in_zone/ultralytics_example.py0annotate a frame with zone and box annotations based on given detections. args: frame (np.ndarray): the original frame tSTRING
HIGHexamples/count_people_in_zone/inference_example.py0annotate a frame with zone and box annotations based on given detections. args: frame (np.ndarray): the original frame tSTRING
HIGHexamples/speed_estimation/rfdetr_example.py0convert displacement over source-frame intervals to kilometres per hour.STRING
HIGHexamples/speed_estimation/ultralytics_example.py0convert displacement over source-frame intervals to kilometres per hour.STRING
HIGHexamples/speed_estimation/yolo_nas_example.py0convert displacement over source-frame intervals to kilometres per hour.STRING
HIGHexamples/speed_estimation/inference_example.py0convert displacement over source-frame intervals to kilometres per hour.STRING
HIGHsrc/supervision/metrics/recall.py0reset the metric to its initial state, clearing all stored data.STRING
HIGHsrc/supervision/metrics/mean_average_recall.py0reset the metric to its initial state, clearing all stored data.STRING
HIGHsrc/supervision/metrics/f1_score.py0reset the metric to its initial state, clearing all stored data.STRING
HIGHsrc/supervision/metrics/precision.py0reset the metric to its initial state, clearing all stored data.STRING
HIGHsrc/supervision/metrics/mean_average_precision.py0reset the metric to its initial state, clearing all stored data.STRING
HIGH…supervision/metrics/keypoint_mean_average_precision.py0reset the metric to its initial state, clearing all stored data.STRING
HIGHsrc/supervision/metrics/recall.py0add new predictions and targets to the metric, but do not compute the result. args: predictions: the predicted detectionSTRING
HIGHsrc/supervision/metrics/mean_average_recall.py0add new predictions and targets to the metric, but do not compute the result. args: predictions: the predicted detectionSTRING
HIGHsrc/supervision/metrics/f1_score.py0add new predictions and targets to the metric, but do not compute the result. args: predictions: the predicted detectionSTRING
HIGHsrc/supervision/metrics/precision.py0add new predictions and targets to the metric, but do not compute the result. args: predictions: the predicted detectionSTRING
HIGHsrc/supervision/metrics/mean_average_precision.py0add new predictions and targets to the metric, but do not compute the result. args: predictions: the predicted detectionSTRING
HIGHsrc/supervision/metrics/recall.py0broadcastable function, computing the precision from the confusion matrix. args: confusion_matrix: shape (n, ..., 3), whSTRING
HIGHsrc/supervision/metrics/mean_average_recall.py0broadcastable function, computing the precision from the confusion matrix. args: confusion_matrix: shape (n, ..., 3), whSTRING
HIGHsrc/supervision/metrics/f1_score.py0broadcastable function, computing the precision from the confusion matrix. args: confusion_matrix: shape (n, ..., 3), whSTRING
HIGHsrc/supervision/metrics/precision.py0broadcastable function, computing the precision from the confusion matrix. args: confusion_matrix: shape (n, ..., 3), whSTRING
HIGHsrc/supervision/metrics/recall.py0the results of the precision metric calculation. defaults to `0` if no detections or targets were provided. attributes: STRING
HIGHsrc/supervision/metrics/f1_score.py0the results of the precision metric calculation. defaults to `0` if no detections or targets were provided. attributes: STRING
HIGHsrc/supervision/metrics/precision.py0the results of the precision metric calculation. defaults to `0` if no detections or targets were provided. attributes: STRING
HIGHsrc/supervision/metrics/recall.py0describe this result in the form the shared renderers consume.STRING
HIGHsrc/supervision/metrics/f1_score.py0describe this result in the form the shared renderers consume.STRING
HIGHsrc/supervision/metrics/precision.py0describe this result in the form the shared renderers consume.STRING
HIGHsrc/supervision/metrics/recall.py0convert the result to a pandas dataframe. returns: the result as a dataframe.STRING
HIGHsrc/supervision/metrics/mean_average_recall.py0convert the result to a pandas dataframe. returns: the result as a dataframe.STRING
HIGHsrc/supervision/metrics/f1_score.py0convert the result to a pandas dataframe. returns: the result as a dataframe.STRING
HIGHsrc/supervision/metrics/precision.py0convert the result to a pandas dataframe. returns: the result as a dataframe.STRING
HIGHsrc/supervision/metrics/mean_average_precision.py0convert the result to a pandas dataframe. returns: the result as a dataframe.STRING
HIGH…supervision/metrics/keypoint_mean_average_precision.py0convert the result to a pandas dataframe. returns: the result as a dataframe.STRING
HIGHsrc/supervision/metrics/recall.py0return bar-chart data for map scores. args: include_object_sizes: when ``true``, include bars for small / medium / largeSTRING
HIGHsrc/supervision/metrics/mean_average_recall.py0return bar-chart data for map scores. args: include_object_sizes: when ``true``, include bars for small / medium / largeSTRING
HIGHsrc/supervision/metrics/f1_score.py0return bar-chart data for map scores. args: include_object_sizes: when ``true``, include bars for small / medium / largeSTRING
HIGHsrc/supervision/metrics/precision.py0return bar-chart data for map scores. args: include_object_sizes: when ``true``, include bars for small / medium / largeSTRING
HIGHsrc/supervision/metrics/mean_average_precision.py0return bar-chart data for map scores. args: include_object_sizes: when ``true``, include bars for small / medium / largeSTRING
Unused Imports257 hits · 190 pts
SeverityFileLineSnippetContext
LOWtests/helpers.py8CODE
LOWtests/classification/test_core.py1CODE
LOWtests/metrics/test_lazy_imports.py3CODE
LOWtests/metrics/test_core.py3CODE
LOWtests/metrics/test_keypoint_mean_average_precision.py1CODE
LOWtests/metrics/utils/test_utils.py3CODE
LOWtests/metrics/utils/test_object_size.py3CODE
LOWtests/metrics/utils/test_aggregate.py3CODE
LOWtests/depth/test_colormaps.py1CODE
LOWtests/depth/test_core.py1CODE
LOWtests/depth/test_annotators.py1CODE
LOWtests/cv2/test_release.py3CODE
LOWtests/cv2/test_components.py3CODE
LOWtests/cv2/test_transform.py3CODE
LOWtests/cv2/test_contours.py3CODE
LOWtests/cv2/test_image.py3CODE
LOWtests/cv2/test_video.py3CODE
LOWtests/cv2/test_drawing.py3CODE
LOWtests/cv2/test_text.py3CODE
LOWtests/cv2/test_color.py3CODE
LOWtests/cv2/test_cv2.py3CODE
LOWtests/cv2/test_integration.py3CODE
LOWtests/cv2/test_geometry.py3CODE
LOWtests/cv2/test_constants.py3CODE
LOWtests/utils/test_image.py1CODE
LOWtests/detection/test_geometry_dispatch.py1CODE
LOWtests/detection/test_geometry_contract.py25CODE
LOWtests/detection/tools/test_transformers.py3CODE
LOWtests/detection/utils/test_matching.py3CODE
LOWtests/detection/utils/test_iou_and_nms.py1CODE
LOWexamples/time_in_zone/rfdetr_file_example.py1CODE
LOWexamples/time_in_zone/rfdetr_stream_example.py1CODE
LOWexamples/time_in_zone/rfdetr_naive_stream_example.py1CODE
LOWexamples/compact_mask/bench_inference_api.py10CODE
LOW.github/_tests/conftest.py8CODE
LOW.github/_tests/test_update_docs_stats.py3CODE
LOW.github/_tests/test_compute_is_latest_release.py3CODE
LOW.github/_tests/test_ci_helpers.py3CODE
LOW.github/scripts/compute_is_latest_release.py23CODE
LOW.github/scripts/inject_outdated_banner.py45CODE
LOW.github/scripts/inject_tracking_carrier.py43CODE
LOW.github/scripts/verify_clean_wheel.py4CODE
LOW.github/scripts/check_doctest_fences.py4CODE
LOW.github/scripts/update_docs_stats.py26CODE
LOWsrc/supervision/__init__.py9CODE
LOWsrc/supervision/__init__.py9CODE
LOWsrc/supervision/__init__.py9CODE
LOWsrc/supervision/__init__.py9CODE
LOWsrc/supervision/__init__.py9CODE
LOWsrc/supervision/__init__.py9CODE
LOWsrc/supervision/__init__.py9CODE
LOWsrc/supervision/__init__.py9CODE
LOWsrc/supervision/__init__.py9CODE
LOWsrc/supervision/__init__.py9CODE
LOWsrc/supervision/__init__.py9CODE
LOWsrc/supervision/__init__.py9CODE
LOWsrc/supervision/__init__.py9CODE
LOWsrc/supervision/__init__.py9CODE
LOWsrc/supervision/__init__.py9CODE
LOWsrc/supervision/__init__.py9CODE
197 more matches not shown…
Deep Nesting62 hits · 58 pts
SeverityFileLineSnippetContext
LOWtests/annotators/test_docs.py38CODE
LOWexamples/time_in_zone/scripts/draw_zones.py130CODE
LOWexamples/speed_estimation/ultralytics_example.py48CODE
LOWexamples/speed_estimation/yolo_nas_example.py49CODE
LOWexamples/speed_estimation/inference_example.py49CODE
LOW.github/scripts/check_doctest_fences.py15CODE
LOWsrc/supervision/metrics/detection.py1306CODE
LOWsrc/supervision/metrics/detection.py1414CODE
LOWsrc/supervision/metrics/mean_average_recall.py379CODE
LOWsrc/supervision/metrics/mean_average_precision.py462CODE
LOWsrc/supervision/metrics/mean_average_precision.py875CODE
LOWsrc/supervision/metrics/mean_average_precision.py1000CODE
LOWsrc/supervision/metrics/mean_average_precision.py1530CODE
LOWsrc/supervision/metrics/mean_average_precision.py1616CODE
LOW…supervision/metrics/keypoint_mean_average_precision.py562CODE
LOWsrc/supervision/metrics/_confusion_matrix_metric.py95CODE
LOWsrc/supervision/metrics/_confusion_matrix_metric.py292CODE
LOWsrc/supervision/key_points/core.py552CODE
LOWsrc/supervision/key_points/core.py1136CODE
LOWsrc/supervision/key_points/annotators.py167CODE
LOWsrc/supervision/key_points/annotators.py361CODE
LOWsrc/supervision/key_points/annotators.py782CODE
LOWsrc/supervision/dataset/formats/coco.py185CODE
LOWsrc/supervision/dataset/formats/coco.py271CODE
LOWsrc/supervision/annotators/core.py2155CODE
LOWsrc/supervision/annotators/core.py2954CODE
LOWsrc/supervision/annotators/core.py3146CODE
LOWsrc/supervision/annotators/utils.py38CODE
LOWsrc/supervision/annotators/utils.py78CODE
LOWsrc/supervision/utils/file.py53CODE
LOWsrc/supervision/utils/file.py112CODE
LOWsrc/supervision/utils/video.py208CODE
LOWsrc/supervision/utils/video.py329CODE
LOWsrc/supervision/utils/video.py396CODE
LOWsrc/supervision/utils/video.py346CODE
LOWsrc/supervision/validators/__init__.py197CODE
LOWsrc/supervision/detection/line_zone.py857CODE
LOWsrc/supervision/detection/compact_mask.py418CODE
LOWsrc/supervision/detection/compact_mask.py615CODE
LOWsrc/supervision/detection/core.py908CODE
LOWsrc/supervision/detection/core.py2185CODE
LOWsrc/supervision/detection/vlm.py647CODE
LOWsrc/supervision/detection/tools/inference_slicer.py312CODE
LOWsrc/supervision/detection/tools/inference_slicer.py597CODE
LOWsrc/supervision/detection/tools/inference_slicer.py677CODE
LOWsrc/supervision/detection/utils/internal.py167CODE
LOWsrc/supervision/detection/utils/internal.py289CODE
LOWsrc/supervision/detection/utils/internal.py550CODE
LOWsrc/supervision/detection/utils/internal.py642CODE
LOWsrc/supervision/detection/utils/internal.py687CODE
LOWsrc/supervision/detection/utils/internal.py742CODE
LOWsrc/supervision/detection/utils/iou_and_nms.py473CODE
LOWsrc/supervision/detection/utils/iou_and_nms.py1817CODE
LOWsrc/supervision/detection/utils/iou_and_nms.py1944CODE
LOWsrc/supervision/detection/utils/masks.py365CODE
LOWsrc/supervision/detection/utils/converters.py323CODE
LOWsrc/supervision/_cv2/_drawing.py295CODE
LOWsrc/supervision/_cv2/_drawing.py307CODE
LOWsrc/supervision/_cv2/_image.py269CODE
LOWsrc/supervision/_cv2/_video.py391CODE
2 more matches not shown…
Cross-Language Confusion8 hits · 50 pts
SeverityFileLineSnippetContext
HIGHtests/metrics/test_recall.py151 Recall for such a class is 0.0 rather than undefined, which is what sklearnSTRING
HIGHtests/detection/test_compact_mask_iou.py193 # Ensure no all-false mask (diagonal would be undefined).COMMENT
HIGHtests/detection/test_vlm.py451 _QWEN_DOG_AND_CAT + ", null,]\nNote {x}",CODE
HIGH⚡.github/_tests/test_docs_theme.py128 addEventListener(_event, listener) {{ this.listeners.push(listener); }},CODE
HIGH⚡.github/_tests/test_docs_theme.py134 addEventListener(_event, listener) {{ this.listeners.push(listener); }},CODE
HIGH⚡.github/_tests/test_docs_theme.py143 return selector === ".md-sidebar__scrollwrap" ? scrollwrap : null;CODE
HIGH.github/_tests/test_docs_theme.py170 mutationObservers.push(this);CODE
HIGHsrc/supervision/metrics/_confusion_matrix_metric.py345 # undefined, so report 0 as the empty case did before.COMMENT
Empty Error Handlers7 hits · 35 pts
SeverityFileLineSnippetContext
HIGHsrc/supervision/depth/core.py310except (TypeError, ValueError):CODE
HIGHsrc/supervision/depth/core.py84except ValueError:CODE
HIGHsrc/supervision/depth/core.py134except ValueError:CODE
HIGHsrc/supervision/depth/core.py180except ValueError:CODE
HIGHsrc/supervision/depth/colormaps.py78except ValueError:CODE
HIGHsrc/supervision/dataset/formats/yolo.py304except ValueError:CODE
HIGHsrc/supervision/utils/video.py373except Full:CODE
Magic Placeholder Names4 hits · 20 pts
SeverityFileLineSnippetContext
HIGHdocs/how_to/benchmark_a_model.md53rf = Roboflow(api_key="<YOUR_API_KEY>")CODE
HIGHdocs/how_to/benchmark_a_model.md53rf = Roboflow(api_key="<YOUR_API_KEY>")CODE
HIGHdocs/how_to/benchmark_a_model.md67rf = Roboflow(api_key="<YOUR_API_KEY>")CODE
HIGHdocs/how_to/benchmark_a_model.md67rf = Roboflow(api_key="<YOUR_API_KEY>")CODE
Modern Structural Boilerplate13 hits · 13 pts
SeverityFileLineSnippetContext
LOWsrc/supervision/__init__.py174__all__ = [CODE
LOWsrc/supervision/metrics/__init__.py32__all__ = [CODE
LOWsrc/supervision/key_points/core.py29logger = logging.getLogger(__name__)CODE
LOWsrc/supervision/dataset/utils.py3__all__ = ["check_no_basename_collisions", "train_test_split"]CODE
LOWsrc/supervision/dataset/formats/labelme.py31__all__ = [CODE
LOWsrc/supervision/utils/image_window.py146 def set_mouse_callback(self, callback: MouseCallback | None) -> None:CODE
LOWsrc/supervision/utils/image_window.py203 def _update_display(self) -> None:CODE
LOWsrc/supervision/utils/image_window.py215 def _update_display_transform(self, fitted: Image.Image) -> None:CODE
LOWsrc/supervision/assets/__init__.py4__all__ = ["ImageAssets", "VideoAssets", "download_assets"]CODE
LOWsrc/supervision/detection/line_zone.py384 def _update_class_id_to_name(self, detections: Detections) -> None:CODE
LOWsrc/supervision/detection/utils/internal.py16logger = logging.getLogger(__name__)CODE
LOWsrc/supervision/_cv2/__init__.py247__all__ = [CODE
LOWsrc/supervision/_cv2/_video.py26logger = logging.getLogger(__name__)CODE
Self-Referential Comments5 hits · 13 pts
SeverityFileLineSnippetContext
MEDIUMsrc/supervision/metrics/mean_average_precision.py471 # Create an empty EvaluationDataset object for the predictionsCOMMENT
MEDIUMsrc/supervision/metrics/mean_average_precision.py1708 # Create a coco object with the targetsCOMMENT
MEDIUMsrc/supervision/metrics/mean_average_precision.py1712 # Create a coco evaluator with the predictionsCOMMENT
MEDIUMsrc/supervision/metrics/mean_average_precision.py1758 # Create the final MeanAveragePrecisionResult objectCOMMENT
MEDIUMsrc/supervision/detection/line_zone.py26 """This class is responsible for counting the number of objects that cross aSTRING
Excessive Try-Catch Wrapping13 hits · 13 pts
SeverityFileLineSnippetContext
LOWsrc/supervision/utils/image_window.py276 except Exception:CODE
LOWsrc/supervision/utils/image_window.py284 except Exception:CODE
LOWsrc/supervision/utils/video.py366 except Exception as exc:CODE
LOWsrc/supervision/utils/video.py511 except Exception as exc:CODE
LOWsrc/supervision/utils/video.py536 except Exception as exc:CODE
LOWsrc/supervision/utils/video.py578 except Exception as exc:CODE
LOWsrc/supervision/detection/vlm.py302 except Exception:CODE
LOWsrc/supervision/detection/vlm.py997 except Exception:CODE
LOWsrc/supervision/_cv2/_video.py143 except Exception as exc:CODE
LOWsrc/supervision/_cv2/_video.py242 except Exception as exc:CODE
LOWsrc/supervision/_cv2/_video.py328 except Exception as exc:CODE
LOWsrc/supervision/_cv2/_video.py387 except Exception as exc:CODE
LOWsrc/supervision/_cv2/_video.py470 except Exception as exc:CODE
AI Structural Patterns12 hits · 10 pts
SeverityFileLineSnippetContext
LOWexamples/heatmap_and_track/rfdetr_example.py19CODE
LOWexamples/heatmap_and_track/script.py14CODE
LOWsrc/supervision/dataset/core.py600CODE
LOWsrc/supervision/dataset/core.py955CODE
LOWsrc/supervision/annotators/core.py130CODE
LOWsrc/supervision/annotators/core.py1286CODE
LOWsrc/supervision/annotators/core.py1644CODE
LOWsrc/supervision/annotators/core.py3292CODE
LOWsrc/supervision/detection/line_zone.py413CODE
LOWsrc/supervision/detection/line_zone.py803CODE
LOWsrc/supervision/detection/tools/inference_slicer.py263CODE
LOWsrc/supervision/detection/tools/polygon_zone.py197CODE
Modern AI Meta-Vocabulary3 hits · 8 pts
SeverityFileLineSnippetContext
MEDIUMdocs/llms.txt111- Zero-shot object detection with YOLO-World: https://supervision.roboflow.com/latest/cookbooks/#zero-shot-object-detectCODE
MEDIUMdocs/llms.full.txt120- Zero-shot object detection with YOLO-World: https://supervision.roboflow.com/latest/cookbooks/#zero-shot-object-detectCODE
MEDIUM⚡examples/compact_mask/benchmark.py621# Scenario runner — orchestrates stagesCOMMENT
Redundant / Tautological Comments5 hits · 7 pts
SeverityFileLineSnippetContext
LOWexamples/traffic_analysis/setup.sh6# Check if 'data' directory does not exist and then create itCOMMENT
LOWexamples/count_people_in_zone/setup.sh6# Check if 'data' directory does not exist and then create itCOMMENT
LOWsrc/supervision/metrics/mean_average_precision.py491 # Check if the predictions contain any unsupported keysCOMMENT
LOWsrc/supervision/metrics/mean_average_precision.py1137 # Set recall to either the final recall value or 0 (when thereCOMMENT
LOWsrc/supervision/detection/compact_mask.py524 # Check if last run has same parity (True/False) as current chunk.COMMENT
Over-Commented Block5 hits · 5 pts
SeverityFileLineSnippetContext
LOWmkdocs.yml21 analytics:COMMENT
LOW.github/workflows/docs-backfill.yml1# One-shot backfill: canonicals, the outdated-version banner, and the tracking carrier.COMMENT
LOWsrc/supervision/config.py1CLASS_NAME_DATA_FIELD: str = "class_name"COMMENT
LOWsrc/supervision/config.py21#: this score at ``0.5`` — it rates confidence in the ``Left``/``Right`` label, notCOMMENT
LOWsrc/supervision/config.py41#: (``is_obb=True``) andCOMMENT
AI Slop Vocabulary1 hit · 3 pts
SeverityFileLineSnippetContext
MEDIUMpyproject.toml148# Enable linting rules for code style, imports, and best practices.COMMENT
Overly Generic Function Names1 hit · 0 pts
SeverityFileLineSnippetContext
LOWsrc/supervision/utils/internal.py147 def my_method(cls):STRING