AI Slop Code RIsk Monitor

open-edge-platform/anomalib

An anomaly detection library comprising state-of-the-art algorithms and features such as experiment management, hyper-parameter optimization, and edge inference.

26.3 Elevated pattern signal View on GitHub

Maintenance and Governance Review

This report summarizes scanner evidence for open-edge-platform/anomalib, a Python project with 6,236 GitHub stars. SynthScan examined 190,992 lines of code across 1540 source files, recording 2803 pattern matches distributed across 27 syntactic categories. The legacy adjusted pattern signal is 26.3 (Elevated pattern signal); it is not an authorship estimate.

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

26.3
Adjusted Signal
26.3
Raw Pattern Score
100%
Time Factor
2026-10-10
Last Push
6.2K
Stars
Python
Language
191.0K
Lines of Code
1.5K
Files
2.8K
Pattern Hits
2026-10-12
Scan Date
0.29
HC Hit Rate

Risk Review · v3

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

Cognitive Ownership Risk 56.4/100 · HIGH

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

Hallucinated Dependency & Supply Chain Risk 16.1/100 · LOW

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

Agent Over-Engineering Ratio 45.0/100 · MEDIUM

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

PR Review Velocity Impact 75.5/100 · CRITICAL

Which changes need focused human review? 2803 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 4HIGH 441MEDIUM 164LOW 2194

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 2803 distinct pattern matches across 27 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.

Docstring Block Structure332 hits · 1645 pts
SeverityFileLineSnippetContext
HIGHtools/inference/gradio_inference.py45Parse args and open inferencer. Args: weight_path (Path): Path to model weights. metadata (Path | NSTRING
HIGHapplication/backend/src/core/logging/utils.py176Validate job_id to prevent path traversal attacks. Args: job_id: The job identifier to validate ReturnSTRING
HIGHapplication/backend/src/core/logging/utils.py197Get the path to the logs folder for a specific job. Args: job_id: Unique identifier for the job ReturnSTRING
HIGHapplication/backend/src/core/logging/utils.py223Add a temporary log sink for a specific job. Captures all logs emitted during the context to logs/jobs/{job_id}.logSTRING
HIGHapplication/backend/src/api/media_rest_validator.py18 Validates a request to upload an image, if the file is not present, returns None. Args: reSTRING
HIGH…plication/backend/src/api/endpoints/video_endpoints.py29Validate the uploaded video file. Args: file: The uploaded video file. Returns: The validated STRING
HIGHapplication/backend/src/webrtc/stream.py24 Asynchronously receive the next video frame from the internal queue. This coroutine attempts to obtainSTRING
HIGHapplication/backend/src/services/training_service.py204Execute CPU-intensive model training using anomalib. This synchronous function runs in a separate thread via asSTRING
HIGHapplication/backend/src/services/video_service.py22 Validate that a filename is safe and doesn't allow path traversal. Args: filename: The filename to valSTRING
HIGHapplication/backend/src/services/video_service.py100 Upload a video file to the server. Keeps the original filename. If a file with the same name exists, STRING
HIGHapplication/backend/src/services/video_service.py208 Get a video by its filename. Args: project_id: ID of the project. filename: NaSTRING
HIGHapplication/backend/src/services/model_service.py155Export a trained model to a zip file. Args: project_id: ID of the project model_id: ID STRING
HIGH…cation/backend/src/services/active_pipeline_service.py38Factory method to create and initialize the service asynchronously. Args: config_changed_condition:STRING
HIGHapplication/backend/src/services/media_service.py194Create and persist a PNG thumbnail for a media item. Resizes the input image to fit within width_px x height_pxSTRING
HIGHsrc/anomalib/visualization/image/item_visualizer.py79Visualize specified fields of an ``ImageItem`` or ``NumpyImageItem`` with configurable options. This function creatSTRING
HIGHsrc/anomalib/visualization/image/functional.py48Calculate a dynamic font size based on image dimensions. This function determines an appropriate font size based onSTRING
HIGHsrc/anomalib/visualization/image/functional.py99Add text to an image with configurable parameters. This function adds text to a PIL Image with customizable font, sSTRING
HIGHsrc/anomalib/visualization/image/functional.py188Apply a colormap to a single-channel PIL Image using torch and PIL. This function converts a grayscale image to a cSTRING
HIGHsrc/anomalib/visualization/image/functional.py281Overlay an image on top of another image with a specified alpha value. This function takes a base image and overlaySTRING
HIGHsrc/anomalib/visualization/image/functional.py346Overlay multiple images on top of a base image with specified transparency. This function overlays one or more imagSTRING
HIGHsrc/anomalib/visualization/image/functional.py405Convert a NumPy array to a PIL Image with proper normalization. This function handles various NumPy array types andSTRING
HIGHsrc/anomalib/visualization/image/functional.py490Visualize an image from various input types. This function handles different input types (file path, PIL Image, PyTSTRING
HIGHsrc/anomalib/visualization/image/functional.py557Visualize an anomaly map by applying normalization and/or colormap. This function takes an anomaly map and convertsSTRING
HIGHsrc/anomalib/visualization/image/functional.py649Visualize a mask with different modes. This function takes a binary mask and visualizes it in different styles baseSTRING
HIGHsrc/anomalib/visualization/image/functional.py786Visualize a ground truth mask. This is a convenience wrapper around :func:`visualize_mask` specifically for groSTRING
HIGHsrc/anomalib/visualization/image/functional.py847Visualize a prediction mask. This is a convenience wrapper around :func:`visualize_mask` specifically for prediSTRING
HIGHsrc/anomalib/visualization/image/functional.py901Create a grid of images using PIL. This function arranges a list of PIL images into a grid layout with a specified STRING
HIGHsrc/anomalib/visualization/image/functional.py968Get the keyword arguments for a visualization function. This function retrieves the default keyword arguments for aSTRING
HIGHsrc/anomalib/visualization/image/functional.py1054Get the visualization function for a given field. This function retrieves the visualization function corresponding STRING
HIGHsrc/anomalib/visualization/image/visualizer.py193Visualize image predictions. This method visualizes anomaly detection predictions intelligently: - For STRING
HIGHsrc/anomalib/visualization/image/visualizer.py323Make the visualizer callable. This method allows the visualizer to be used as a callable object. It behSTRING
HIGHsrc/anomalib/metrics/anomaly_score_distribution.py142Generate a histogram of scores. Args: bins (int, optional): Number of histogram bins. Defaults to 3STRING
HIGHsrc/anomalib/metrics/base.py195Create an Anomalib version of a torchmetrics metric. Factory function that creates a new class inheriting from bothSTRING
HIGHsrc/anomalib/metrics/pimo/pimo.py290Compute PIMO curves and AUPIMO scores. Args: force: If provided, override instance ``force`` settinSTRING
HIGHsrc/anomalib/metrics/pimo/functional.py63Compute the Per-IMage Overlap (PIMO) curves. PIMO curves plot True Positive Rate (TPR) values for each image acrossSTRING
HIGHsrc/anomalib/metrics/pimo/functional.py159Compute PIMO curves and their Area Under the Curve (AUPIMO) scores. AUPIMO scores are computed by integrating PIMO STRING
HIGHsrc/anomalib/metrics/pimo/functional.py340Return the threshold and its index at the given shared FPR level. Three cases are possible: - ``fpr_level =STRING
HIGH…c/anomalib/metrics/pimo/binary_classification_curve.py131Get linearly spaced thresholds between min and max anomaly scores. Args: anomaly_maps: Anomaly score maps STRING
HIGHsrc/anomalib/metrics/pimo/dataclasses.py289Create AUPIMO result from PIMO result. Args: pimo_result: Source PIMO result object. fpSTRING
HIGHsrc/anomalib/post_processing/post_processor.py247Post-process model predictions. Args: predictions (InferenceBatch): Batch containing model predictiSTRING
HIGHsrc/anomalib/post_processing/mebin_post_processor.py110Post-process model predictions using MEBin adaptive thresholding. When normalization statistics (``pixel_min`` STRING
HIGHsrc/anomalib/post_processing/one_class.py194Post-process model predictions. Args: predictions (InferenceBatch): Batch containing model predictiSTRING
HIGHsrc/anomalib/callbacks/tiler_configuration.py44Callback for configuring image tiling operations. This callback configures the tiling operation for models that supSTRING
HIGHsrc/anomalib/callbacks/visualizer.py48Callback for visualization that is used internally by the Engine. This callback handles the generation and managemeSTRING
HIGHsrc/anomalib/callbacks/nncf/utils.py243Compose NNCF config by selected options. This function merges different parts of the NNCF configuration based on enSTRING
HIGHsrc/anomalib/callbacks/nncf/utils.py349Recursively merge two configuration dictionaries or lists. This function implements the following merge behavior: STRING
HIGHsrc/anomalib/deploy/inferencers/openvino_inferencer.py107Load OpenVINO model from file or bytes. Args: path (str | Path | tuple[bytes, bytes]): Path to modeSTRING
HIGHsrc/anomalib/deploy/inferencers/openvino_inferencer.py197Run inference on an input image. Args: image (str | Path | np.ndarray | PILImage | torch.Tensor): ISTRING
HIGHsrc/anomalib/deploy/inferencers/base_inferencer.py49Load a model from the specified path. Args: path (str | Path): Path to the model file. RetSTRING
HIGHsrc/anomalib/deploy/inferencers/base_inferencer.py64Pre-process an input image. Args: image (np.ndarray): Input image to pre-process. Returns:STRING
HIGHsrc/anomalib/deploy/inferencers/base_inferencer.py79Perform a forward pass on the model. Args: image (np.ndarray | torch.Tensor): Pre-processed input iSTRING
HIGHsrc/anomalib/deploy/inferencers/base_inferencer.py94Post-process model predictions. Args: predictions (np.ndarray | torch.Tensor): Raw model predictionSTRING
HIGHsrc/anomalib/deploy/inferencers/base_inferencer.py110Run inference on an image. Args: image (str | Path | np.ndarray | torch.Tensor): Input image. STRING
HIGHsrc/anomalib/deploy/inferencers/torch_inferencer.py128Get the device to use for inference. Args: device (str): Device to use for inference. STRING
HIGHsrc/anomalib/deploy/inferencers/torch_inferencer.py178Load the model checkpoint. Args: path (str | Path): Path to the PyTorch checkpoint file. RSTRING
HIGHsrc/anomalib/deploy/inferencers/torch_inferencer.py224Load the PyTorch model. Args: path (str | Path): Path to the PyTorch model file. Returns: STRING
HIGHsrc/anomalib/pipelines/benchmark/pipeline.py92Set up the appropriate runners for benchmark execution. This method configures either serial or parallel runnerSTRING
HIGHsrc/anomalib/pipelines/components/runners/serial.py77Execute jobs sequentially and gather results. This method runs each job one at a time, collecting results and hSTRING
HIGHsrc/anomalib/utils/logging.py62Hide output of a function by redirecting stdout and stderr. This decorator captures and discards any output that woSTRING
HIGHsrc/anomalib/utils/config.py26Convert all path values to strings recursively in a configuration object. This function traverses a configuration oSTRING
272 more matches not shown…
Hyper-Verbose Identifiers921 hits · 1031 pts
SeverityFileLineSnippetContext
LOWtests/conftest.py67def pytest_collection_modifyitems(items: list[pytest.Item]) -> None:CODE
LOWtests/unit/visualization/image/test_functional.py23 def test_grayscale_conversion(rng: np.random.Generator) -> None:CODE
LOWtests/unit/visualization/image/test_functional.py81 def test_singleton_dimensions(rng: np.random.Generator) -> None:CODE
LOWtests/unit/metrics/test_adaptive_threshold.py45 def test_no_anomalous_samples_warning(caplog: pytest.LogCaptureFixture) -> None:CODE
LOWtests/unit/metrics/test_adaptive_threshold.py61 def test_no_normal_samples_warning(caplog: pytest.LogCaptureFixture) -> None:CODE
LOWtests/unit/metrics/test_adaptive_threshold.py89 def test_compute_returns_expected_threshold(CODE
LOWtests/unit/metrics/test_adaptive_threshold.py112 def test_no_anomalous_samples_warning(caplog: pytest.LogCaptureFixture) -> None:CODE
LOWtests/unit/metrics/test_adaptive_threshold.py127 def test_no_anomalous_samples_returns_max_threshold(caplog: pytest.LogCaptureFixture) -> None:CODE
LOWtests/unit/metrics/test_adaptive_threshold.py142 def test_no_normal_samples_warning(caplog: pytest.LogCaptureFixture) -> None:CODE
LOWtests/unit/metrics/test_adaptive_threshold.py159 def test_anomalous_samples_no_warning(caplog: pytest.LogCaptureFixture) -> None:CODE
LOWtests/unit/metrics/test_binning.py11def test_thresholds_between_min_and_max() -> None:CODE
LOWtests/unit/metrics/test_binning.py23def test_thresholds_between_min_and_max_device() -> None:CODE
LOWtests/unit/metrics/test_pro.py74def test_connected_component_labeling() -> None:CODE
LOWtests/unit/metrics/test_min_max.py30def test_update_multiple_batches() -> None:CODE
LOWtests/unit/metrics/test_anomalib_metric.py28 def test_create_anomalib_metric_function() -> None:CODE
LOWtests/unit/metrics/test_anomalib_metric.py35 def test_create_anomalib_metric_subclass() -> None:CODE
LOWtests/unit/metrics/test_anomalib_metric.py49 def test_raises_error_on_missing_fields() -> None:CODE
LOWtests/unit/metrics/test_anomalib_metric.py61 def test_raises_error_when_field_is_none() -> None:CODE
LOWtests/unit/metrics/test_anomalib_metric.py73 def test_no_error_on_missing_fields() -> None:CODE
LOWtests/unit/metrics/test_anomalib_metric.py85 def test_no_error_when_field_is_none() -> None:CODE
LOW⚡tests/unit/metrics/test_aupr.py34def test_aupr_perfect_ranking() -> None:CODE
LOW⚡tests/unit/metrics/test_aupr.py41def test_aupr_docstring_example() -> None:CODE
LOW⚡tests/unit/metrics/test_aupr.py49def test_aupr_uninformative_detectors_score_the_anomaly_rate(detector: str, target: torch.Tensor) -> None:CODE
LOW⚡tests/unit/metrics/test_aupr.py59def test_aupr_matches_average_precision(target: torch.Tensor, random_preds: torch.Tensor) -> None:CODE
LOW⚡tests/unit/metrics/test_aupr.py64def test_aupr_binned_thresholds(target: torch.Tensor, random_preds: torch.Tensor) -> None:CODE
LOW⚡tests/unit/metrics/test_aupr.py71def test_aupr_incremental_update(target: torch.Tensor, random_preds: torch.Tensor) -> None:CODE
LOW…/unit/metrics/pimo/test_binary_classification_curve.py278def test_binclf_multiple_curves(CODE
LOW…/unit/metrics/pimo/test_binary_classification_curve.py310def test_binclf_multiple_curves_validations(args: list, kwargs: dict, exception: Exception) -> None:CODE
LOW…/unit/metrics/pimo/test_binary_classification_curve.py316def test_per_image_binclf_curve(CODE
LOW…/unit/metrics/pimo/test_binary_classification_curve.py345def test_per_image_binclf_curve_validations(args: list, kwargs: dict, exception: Exception) -> None:CODE
LOW…/unit/metrics/pimo/test_binary_classification_curve.py351def test_per_image_binclf_curve_validations_alt(args: list, kwargs: dict, exception: Exception) -> None:CODE
LOWtests/unit/metrics/threshold/test_threshold.py16 def test_threshold_abstract_methods() -> None:CODE
LOW⚡tests/unit/metrics/threshold/test_threshold.py27 def test_threshold_initialization() -> None:CODE
LOW⚡tests/unit/metrics/threshold/test_threshold.py37 def test_base_threshold_inheritance() -> None:CODE
LOW⚡tests/unit/metrics/threshold/test_threshold.py43 def test_base_threshold_abstract_methods() -> None:CODE
LOWtests/unit/post_processing/test_mebin_post_processor.py64 def test_small_region_removed() -> None:CODE
LOWtests/unit/post_processing/test_mebin_post_processor.py72 def test_large_region_survives() -> None:CODE
LOWtests/unit/post_processing/test_mebin_post_processor.py84 def test_clear_stable_interval() -> None:CODE
LOWtests/unit/post_processing/test_mebin_post_processor.py111 def test_multiple_plateaus_picks_longest() -> None:CODE
LOW⚡tests/unit/post_processing/test_mebin_post_processor.py139 def test_uniform_maps_no_anomaly() -> None:CODE
LOW⚡tests/unit/post_processing/test_mebin_post_processor.py146 def test_clear_anomaly_detected() -> None:CODE
LOWtests/unit/post_processing/test_mebin_post_processor.py186 def test_initialization_default_params() -> None:CODE
LOWtests/unit/post_processing/test_mebin_post_processor.py203 def test_initialization_custom_params(CODE
LOWtests/unit/post_processing/test_mebin_post_processor.py222 def test_inherits_post_processor() -> None:CODE
LOWtests/unit/post_processing/test_mebin_post_processor.py230 def test_forward_produces_valid_output() -> None:CODE
LOW⚡tests/unit/post_processing/test_mebin_post_processor.py247 def test_forward_without_pred_score() -> None:CODE
LOW⚡tests/unit/post_processing/test_mebin_post_processor.py256 def test_forward_raises_on_missing_inputs() -> None:CODE
LOW⚡tests/unit/post_processing/test_mebin_post_processor.py264 def test_forward_no_thresholding() -> None:CODE
LOWtests/unit/post_processing/test_mebin_post_processor.py292 def test_post_process_batch_with_normalization() -> None:CODE
LOWtests/unit/post_processing/test_mebin_post_processor.py314 def test_on_test_batch_end_calls_post_process() -> None:CODE
LOWtests/unit/post_processing/test_mebin_post_processor.py327 def test_forward_pred_score_only_with_normalization() -> None:CODE
LOWtests/unit/post_processing/test_post_processor.py50 def test_normalize_returns_predictions_when_stats_are_unset() -> None:CODE
LOWtests/unit/post_processing/test_post_processor.py62 def test_normalize_uses_midpoint_when_threshold_is_unset() -> None:CODE
LOWtests/unit/post_processing/test_post_processor.py90 def test_apply_threshold_returns_predictions_when_threshold_is_unset() -> None:CODE
LOWtests/unit/post_processing/test_post_processor.py113 def test_pixel_threshold_matching() -> None:CODE
LOWtests/unit/post_processing/test_post_processor.py127 def test_image_threshold_matching() -> None:CODE
LOWtests/unit/callbacks/test_rich_progress_bar.py13def test_max_steps_progress_callback_is_picklable() -> None:CODE
LOWtests/unit/deploy/test_onnx_export.py51 def test_forward_resamples_without_antialiasing(monkeypatch: pytest.MonkeyPatch) -> None:CODE
LOWtests/unit/deploy/test_export_mixin.py48def test_to_onnx_uses_dynamo_exporter_by_default(mocker: pytest.MockFixture, tmp_path: Path) -> None:CODE
LOWtests/unit/deploy/test_export_mixin.py63def test_to_onnx_treats_none_dynamo_as_true(mocker: pytest.MockFixture, tmp_path: Path) -> None:CODE
861 more matches not shown…
Unused Imports658 hits · 607 pts
SeverityFileLineSnippetContext
LOWtools/benchmark_mebin.py16CODE
LOWtests/unit/deploy/test_export_mixin.py6CODE
LOWtests/unit/models/image/l2bt/test_l2bt.py6CODE
LOWtests/unit/models/image/cfm/test_cfm.py6CODE
LOWtests/unit/models/image/cfm/test_cfm.py21CODE
LOWtests/unit/data/datamodule/base/__init__.py6CODE
LOWtests/unit/data/datamodule/base/__init__.py7CODE
LOWtests/unit/data/datamodule/base/__init__.py8CODE
LOWtests/unit/data/utils/test_enum_compat.py15CODE
LOWapplication/backend/src/core/__init__.py4CODE
LOWapplication/backend/src/core/__init__.py5CODE
LOWapplication/backend/src/core/mjpeg_broadcaster.py6CODE
LOWapplication/backend/src/core/logging/__init__.py4CODE
LOWapplication/backend/src/core/logging/__init__.py5CODE
LOWapplication/backend/src/core/logging/__init__.py5CODE
LOWapplication/backend/src/core/logging/__init__.py5CODE
LOWapplication/backend/src/core/logging/__init__.py6CODE
LOWapplication/backend/src/core/logging/setup.py22CODE
LOWapplication/backend/src/utils/__init__.py4CODE
LOWapplication/backend/src/utils/__init__.py5CODE
LOWapplication/backend/src/utils/callbacks.py6CODE
LOWapplication/backend/src/repositories/__init__.py4CODE
LOWapplication/backend/src/repositories/__init__.py5CODE
LOWapplication/backend/src/repositories/__init__.py6CODE
LOWapplication/backend/src/repositories/__init__.py7CODE
LOWapplication/backend/src/repositories/__init__.py8CODE
LOWapplication/backend/src/repositories/__init__.py9CODE
LOWapplication/backend/src/repositories/__init__.py10CODE
LOWapplication/backend/src/repositories/__init__.py11CODE
LOWapplication/backend/src/repositories/binary_repo.py4CODE
LOW…plication/backend/src/repositories/mappers/__init__.py4CODE
LOW…plication/backend/src/repositories/mappers/__init__.py5CODE
LOW…plication/backend/src/repositories/mappers/__init__.py6CODE
LOW…plication/backend/src/repositories/mappers/__init__.py7CODE
LOW…plication/backend/src/repositories/mappers/__init__.py8CODE
LOW…plication/backend/src/repositories/mappers/__init__.py9CODE
LOWapplication/backend/src/db/__init__.py4CODE
LOWapplication/backend/src/db/__init__.py4CODE
LOWapplication/backend/src/db/__init__.py4CODE
LOWapplication/backend/src/db/__init__.py4CODE
LOWapplication/backend/src/db/__init__.py5CODE
LOWapplication/backend/src/api/dependencies/__init__.py4CODE
LOWapplication/backend/src/api/dependencies/__init__.py4CODE
LOWapplication/backend/src/api/dependencies/__init__.py4CODE
LOWapplication/backend/src/api/dependencies/__init__.py4CODE
LOWapplication/backend/src/api/dependencies/__init__.py4CODE
LOWapplication/backend/src/api/dependencies/__init__.py4CODE
LOWapplication/backend/src/api/dependencies/__init__.py4CODE
LOWapplication/backend/src/api/dependencies/__init__.py4CODE
LOWapplication/backend/src/api/dependencies/__init__.py4CODE
LOWapplication/backend/src/api/dependencies/__init__.py4CODE
LOWapplication/backend/src/api/dependencies/__init__.py4CODE
LOWapplication/backend/src/api/dependencies/__init__.py4CODE
LOWapplication/backend/src/api/dependencies/__init__.py4CODE
LOWapplication/backend/src/api/dependencies/__init__.py4CODE
LOWapplication/backend/src/api/dependencies/__init__.py4CODE
LOWapplication/backend/src/api/dependencies/__init__.py4CODE
LOWapplication/backend/src/api/dependencies/__init__.py4CODE
LOWapplication/backend/src/api/dependencies/__init__.py4CODE
LOWapplication/backend/src/api/dependencies/__init__.py4CODE
598 more matches not shown…
Cross-File Repetition98 hits · 490 pts
SeverityFileLineSnippetContext
HIGHtests/unit/models/image/patchflow/test_torch_model.py0test forward pass in eval mode returns inferencebatch.STRING
HIGH…s/unit/models/image/patchflow/test_torch_model_dino.py0test forward pass in eval mode returns inferencebatch.STRING
HIGHtests/unit/models/image/rad/test_torch_model.py0test forward pass in eval mode returns inferencebatch.STRING
HIGHtests/unit/data/validators/torch/test_depth.py0test validation of a ground truth label with invalid type.STRING
HIGHtests/unit/data/validators/torch/test_image.py0test validation of a ground truth label with invalid type.STRING
HIGHtests/unit/data/validators/torch/test_video.py0test validation of a ground truth label with invalid type.STRING
HIGHtests/unit/data/validators/numpy/test_image.py0test validation of a ground truth label with invalid type.STRING
HIGHtests/unit/data/validators/torch/test_depth.py0test validation of a ground truth mask with invalid type.STRING
HIGHtests/unit/data/validators/torch/test_image.py0test validation of a ground truth mask with invalid type.STRING
HIGHtests/unit/data/validators/torch/test_video.py0test validation of a ground truth mask with invalid type.STRING
HIGHtests/unit/data/validators/numpy/test_image.py0test validation of a ground truth mask with invalid type.STRING
HIGHtests/unit/data/validators/torch/test_depth.py0test validation of a ground truth mask with invalid shape.STRING
HIGHtests/unit/data/validators/torch/test_image.py0test validation of a ground truth mask with invalid shape.STRING
HIGHtests/unit/data/validators/torch/test_video.py0test validation of a ground truth mask with invalid shape.STRING
HIGHtests/unit/data/validators/numpy/test_image.py0test validation of a ground truth mask with invalid shape.STRING
HIGHtests/unit/data/validators/torch/test_depth.py0test validation of an anomaly map with invalid type.STRING
HIGHtests/unit/data/validators/torch/test_image.py0test validation of an anomaly map with invalid type.STRING
HIGHtests/unit/data/validators/torch/test_video.py0test validation of an anomaly map with invalid type.STRING
HIGHtests/unit/data/validators/torch/test_depth.py0test validation of an anomaly map batch with invalid shape.STRING
HIGHtests/unit/data/validators/torch/test_image.py0test validation of an anomaly map batch with invalid shape.STRING
HIGHtests/unit/data/validators/torch/test_video.py0test validation of an anomaly map batch with invalid shape.STRING
HIGHtests/unit/data/validators/torch/test_depth.py0test validation of ground truth labels with invalid type.STRING
HIGHtests/unit/data/validators/torch/test_image.py0test validation of ground truth labels with invalid type.STRING
HIGHtests/unit/data/validators/torch/test_video.py0test validation of ground truth labels with invalid type.STRING
HIGHtests/unit/data/validators/numpy/test_video.py0test validation of ground truth labels with invalid type.STRING
HIGHtests/unit/data/validators/torch/test_depth.py0test validation of ground truth labels with invalid dimensions.STRING
HIGHtests/unit/data/validators/torch/test_image.py0test validation of ground truth labels with invalid dimensions.STRING
HIGHtests/unit/data/validators/numpy/test_image.py0test validation of ground truth labels with invalid dimensions.STRING
HIGHtests/unit/data/validators/numpy/test_video.py0test validation of ground truth labels with invalid dimensions.STRING
HIGHtests/unit/data/validators/torch/test_depth.py0test validation of ground truth masks with invalid type.STRING
HIGHtests/unit/data/validators/torch/test_image.py0test validation of ground truth masks with invalid type.STRING
HIGHtests/unit/data/validators/torch/test_video.py0test validation of ground truth masks with invalid type.STRING
HIGHtests/unit/data/validators/numpy/test_image.py0test validation of ground truth masks with invalid type.STRING
HIGHtests/unit/data/validators/torch/test_depth.py0test validation of ground truth masks with invalid dimensions.STRING
HIGHtests/unit/data/validators/torch/test_image.py0test validation of ground truth masks with invalid dimensions.STRING
HIGHtests/unit/data/validators/numpy/test_image.py0test validation of ground truth masks with invalid dimensions.STRING
HIGHtests/unit/data/validators/torch/test_depth.py0test validation of prediction labels with invalid shape.STRING
HIGHtests/unit/data/validators/torch/test_image.py0test validation of prediction labels with invalid shape.STRING
HIGHtests/unit/data/validators/torch/test_video.py0test validation of prediction labels with invalid shape.STRING
HIGHtests/unit/data/validators/torch/test_image.py0test validation of an image batch with invalid number of channels.STRING
HIGHtests/unit/data/validators/numpy/test_image.py0test validation of an image batch with invalid number of channels.STRING
HIGHtests/unit/data/validators/numpy/test_video.py0test validation of an image batch with invalid number of channels.STRING
HIGHtests/unit/data/validators/torch/test_image.py0test validation of an image batch with invalid type.STRING
HIGHtests/unit/data/validators/numpy/test_image.py0test validation of an image batch with invalid type.STRING
HIGHtests/unit/data/validators/numpy/test_video.py0test validation of an image batch with invalid type.STRING
HIGHtests/integration/tools/test_lightning_entrypoint.py0this tests whether the entrypoints run without errors without quantitative measure of the outputs.STRING
HIGHtests/integration/tools/test_torch_entrypoint.py0this tests whether the entrypoints run without errors without quantitative measure of the outputs.STRING
HIGHtests/integration/tools/test_openvino_entrypoint.py0this tests whether the entrypoints run without errors without quantitative measure of the outputs.STRING
HIGH…les/api/01_getting_started/basic_openvino_inference.py0getting started with anomalib inference using the python api. this example shows how to perform inference on a trained mSTRING
HIGH…amples/api/01_getting_started/basic_torch_inference.py0getting started with anomalib inference using the python api. this example shows how to perform inference on a trained mSTRING
HIGHexamples/api/01_getting_started/basic_inference.py0getting started with anomalib inference using the python api. this example shows how to perform inference on a trained mSTRING
HIGH…ib/pipelines/tiled_ensemble/components/thresholding.py0nothing to collect in this job. returns: list[any]: unchanged list of predictions.STRING
HIGH…malib/pipelines/tiled_ensemble/components/smoothing.py0nothing to collect in this job. returns: list[any]: unchanged list of predictions.STRING
HIGH…b/pipelines/tiled_ensemble/components/normalization.py0nothing to collect in this job. returns: list[any]: unchanged list of predictions.STRING
HIGH…nomalib/pipelines/tiled_ensemble/components/merging.py0nothing to collect in this job. returns: list[any]: unchanged list of predictions.STRING
HIGH…lines/tiled_ensemble/components/metrics_calculation.py0nothing to collect in this job. returns: list[any]: unchanged list of predictions.STRING
HIGH…b/pipelines/tiled_ensemble/components/visualization.py0nothing to collect in this job. returns: list[any]: unchanged list of predictions.STRING
HIGHsrc/anomalib/models/video/fuvas/lightning_model.py0get the learning type of the model. returns: learningtype: the model uses one-class learning.STRING
HIGHsrc/anomalib/models/image/stfpm/lightning_model.py0get the learning type of the model. returns: learningtype: the model uses one-class learning.STRING
HIGHsrc/anomalib/models/image/l2bt/lightning_model.py0get the learning type of the model. returns: learningtype: the model uses one-class learning.STRING
38 more matches not shown…
Decorative Section Separators90 hits · 309 pts
SeverityFileLineSnippetContext
MEDIUM…/unit/metrics/pimo/test_binary_classification_curve.py274# ==================================================================================================COMMENT
MEDIUM⚡tests/unit/data/datamodule/image/test_kaputt.py50 # ------------------------------------------------------------------COMMENT
MEDIUM⚡tests/unit/data/datamodule/image/test_kaputt.py52 # ------------------------------------------------------------------COMMENT
MEDIUM⚡tests/unit/data/datamodule/image/test_kaputt.py156 # ------------------------------------------------------------------COMMENT
MEDIUM⚡tests/unit/data/datamodule/image/test_kaputt.py158 # ------------------------------------------------------------------COMMENT
MEDIUM.semgrep/path-traversal.py15# ---------------------------------------------------------------------------COMMENT
MEDIUM.semgrep/path-traversal.py17# ---------------------------------------------------------------------------COMMENT
MEDIUM.semgrep/path-traversal.py39# ===========================================================================COMMENT
MEDIUM.semgrep/path-traversal.py42# ===========================================================================COMMENT
MEDIUM⚡.semgrep/path-traversal.py131# ===========================================================================COMMENT
MEDIUM⚡.semgrep/path-traversal.py134# ===========================================================================COMMENT
MEDIUM⚡.semgrep/path-traversal.py230# ===========================================================================COMMENT
MEDIUM⚡.semgrep/path-traversal.py233# ===========================================================================COMMENT
MEDIUM⚡.semgrep/path-traversal.py312# ===========================================================================COMMENT
MEDIUM⚡.semgrep/path-traversal.py315# ===========================================================================COMMENT
MEDIUM.semgrep/path-traversal.yaml7 # =========================================================================COMMENT
MEDIUM.semgrep/path-traversal.yaml11 # =========================================================================COMMENT
MEDIUM.semgrep/path-traversal.yaml59 # =========================================================================COMMENT
MEDIUM.semgrep/path-traversal.yaml63 # =========================================================================COMMENT
MEDIUM.semgrep/path-traversal.yaml87 # =========================================================================COMMENT
MEDIUM.semgrep/path-traversal.yaml91 # =========================================================================COMMENT
MEDIUM.semgrep/path-traversal.yaml123 # =========================================================================COMMENT
MEDIUM.semgrep/path-traversal.yaml127 # =========================================================================COMMENT
MEDIUMexamples/cli/04_advanced/custom_components.sh7# ---------------------------------------COMMENT
MEDIUMexamples/cli/04_advanced/custom_pipeline.sh7# -------------------------------------COMMENT
MEDIUMexamples/cli/04_advanced/loggers.sh7# -------------------------------COMMENT
MEDIUM⚡examples/cli/05_pipelines/complete_pipeline.sh7# ------------------------------COMMENT
MEDIUM⚡examples/cli/05_pipelines/complete_pipeline.sh15# ----------------COMMENT
MEDIUM⚡examples/cli/05_pipelines/complete_pipeline.sh25# --------------COMMENT
MEDIUM⚡examples/cli/05_pipelines/complete_pipeline.sh35# ----------------COMMENT
MEDIUMexamples/cli/05_pipelines/complete_pipeline.sh55# ----------------COMMENT
MEDIUMexamples/cli/03_models/patchcore.sh7# ------------------------------------COMMENT
MEDIUMexamples/cli/03_models/efficient_ad.sh7# --------------------------------------COMMENT
MEDIUMexamples/cli/03_models/padim.sh7# ---------------------------------COMMENT
MEDIUMexamples/cli/01_getting_started/basic_training.sh7# ------------------------------------COMMENT
MEDIUMexamples/cli/02_data/mvtec.sh7# -----------------------------------COMMENT
MEDIUMexamples/cli/02_data/folder.sh7# ------------------------------------------COMMENT
MEDIUMexamples/api/05_pipelines/complete_pipeline.py20# ----------------COMMENT
MEDIUMexamples/api/05_pipelines/complete_pipeline.py43# ----------------COMMENT
MEDIUMexamples/api/05_pipelines/complete_pipeline.py71# --------------COMMENT
MEDIUM⚡.github/workflows/trivy-cve-guard.yaml61 # ---------------------------------------------------------------------------COMMENT
MEDIUM⚡.github/workflows/trivy-cve-guard.yaml63 # ---------------------------------------------------------------------------COMMENT
MEDIUM⚡.github/workflows/trivy-cve-guard.yaml71 # ---------------------------------------------------------------------------COMMENT
MEDIUM⚡application/backend/run.sh4# -----------------------------------------------------------------------------COMMENT
MEDIUMapplication/backend/run.sh23# -----------------------------------------------------------------------------COMMENT
MEDIUM…kend/tests/unit/endpoints/test_video_path_traversal.py26# ---------------------------------------------------------------------------COMMENT
MEDIUM…kend/tests/unit/endpoints/test_video_path_traversal.py28# ---------------------------------------------------------------------------COMMENT
MEDIUM…kend/tests/unit/endpoints/test_video_path_traversal.py40# ---------------------------------------------------------------------------COMMENT
MEDIUM…kend/tests/unit/endpoints/test_video_path_traversal.py42# ---------------------------------------------------------------------------COMMENT
MEDIUM…kend/tests/unit/endpoints/test_video_path_traversal.py80# ---------------------------------------------------------------------------COMMENT
MEDIUM…kend/tests/unit/endpoints/test_video_path_traversal.py82# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡…kend/tests/unit/endpoints/test_video_path_traversal.py114# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡…kend/tests/unit/endpoints/test_video_path_traversal.py116# ---------------------------------------------------------------------------COMMENT
MEDIUM…s/unit/repositories/test_binary_repo_path_traversal.py18# ---------------------------------------------------------------------------COMMENT
MEDIUM…s/unit/repositories/test_binary_repo_path_traversal.py20# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡…s/unit/repositories/test_binary_repo_path_traversal.py43# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡…s/unit/repositories/test_binary_repo_path_traversal.py45# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡…s/unit/repositories/test_binary_repo_path_traversal.py107# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡…s/unit/repositories/test_binary_repo_path_traversal.py109# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡…s/unit/repositories/test_binary_repo_path_traversal.py134# ---------------------------------------------------------------------------COMMENT
30 more matches not shown…
Modern Structural Boilerplate281 hits · 280 pts
SeverityFileLineSnippetContext
LOWtools/benchmark_mebin.py30logger = logging.getLogger(__name__)CODE
LOWtools/experimental/benchmarking/benchmark.py10logger = logging.getLogger(__name__)CODE
LOWtools/inference/torch_inference.py21logger = logging.getLogger(__name__)CODE
LOWtools/inference/openvino_inference.py21logger = logging.getLogger(__name__)CODE
LOWtests/unit/metrics/aupro/aupro_reference.py21logger = logging.getLogger(__name__)CODE
LOWtests/unit/data/datamodule/base/__init__.py10__all__ = ["_TestAnomalibDepthDatamodule", "_TestAnomalibImageDatamodule", "_TestAnomalibVideoDatamodule"]CODE
LOWapplication/backend/src/core/__init__.py7__all__ = ["Scheduler", "lifespan"]CODE
LOWapplication/backend/src/core/logging/__init__.py8__all__ = ["CaptureOutput", "LogConfig", "global_log_config", "setup_logging", "setup_uvicorn_logging"]CODE
LOWapplication/backend/src/utils/__init__.py7__all__ = ["Singleton", "flush_queue"]CODE
LOWapplication/backend/src/utils/callbacks.py47 def set_cancel_training_event(self) -> None:CODE
LOWapplication/backend/src/repositories/project_repo.py39 async def update_dataset_timestamp(self, project_id: str | UUID) -> None:CODE
LOWapplication/backend/src/repositories/__init__.py13__all__ = [CODE
LOW…plication/backend/src/repositories/mappers/__init__.py11__all__ = [CODE
LOWapplication/backend/src/db/__init__.py7__all__ = ["MigrationManager", "get_async_db_session", "get_async_db_session_ctx", "init_models", "sync_engine"]CODE
LOWapplication/backend/src/db/engine.py42def set_sqlite_pragma(dbapi_connection: Connection, _: Any) -> None:CODE
LOWapplication/backend/src/api/dependencies/__init__.py29__all__ = [CODE
LOWapplication/backend/src/workers/__init__.py9__all__ = [CODE
LOWapplication/backend/src/pydantic_models/__init__.py17__all__ = [CODE
LOWapplication/backend/src/webrtc/sdp_handler.py10logger = logging.getLogger(__name__)CODE
LOWapplication/backend/src/webrtc/manager.py81 def set_input(self, data: InputData) -> None:CODE
LOWapplication/backend/src/services/__init__.py23__all__ = [CODE
LOWapplication/backend/src/services/job_service.py22logger = logging.getLogger(__name__)CODE
LOWapplication/backend/src/services/metrics_service.py42 def update_max_age(self, max_age_seconds: int) -> None:CODE
LOW…plication/backend/src/services/dispatchers/__init__.py10__all__ = ["Dispatcher", "FolderDispatcher", "MqttDispatcher", "WebhookDispatcher"]CODE
LOWsrc/anomalib/visualization/__init__.py36__all__ = [CODE
LOWsrc/anomalib/visualization/image/item_visualizer.py47logger = logging.getLogger(__name__)CODE
LOWsrc/anomalib/visualization/image/__init__.py37__all__ = [CODE
LOWsrc/anomalib/visualization/image/functional.py44logger = logging.getLogger(__name__)CODE
LOWsrc/anomalib/metrics/__init__.py67__all__ = [CODE
LOWsrc/anomalib/metrics/evaluator.py65logger = logging.getLogger(__name__)CODE
LOWsrc/anomalib/metrics/pimo/__init__.py31__all__ = [CODE
LOWsrc/anomalib/metrics/pimo/pimo.py67logger = logging.getLogger(__name__)CODE
LOWsrc/anomalib/metrics/pimo/functional.py55logger = logging.getLogger(__name__)CODE
LOWsrc/anomalib/metrics/pimo/utils.py26logger = logging.getLogger(__name__)CODE
LOWsrc/anomalib/metrics/pimo/_validate.py40logger = logging.getLogger(__name__)CODE
LOW…c/anomalib/metrics/pimo/binary_classification_curve.py40logger = logging.getLogger(__name__)CODE
LOWsrc/anomalib/metrics/threshold/__init__.py27__all__ = ["Threshold", "F1AdaptiveThreshold", "ManualThreshold"]CODE
LOWsrc/anomalib/metrics/threshold/f1_adaptive_threshold.py48logger = logging.getLogger(__name__)CODE
LOWsrc/anomalib/post_processing/__init__.py25__all__ = ["PostProcessor", "MEBinPostProcessor"]CODE
LOWsrc/anomalib/loggers/__init__.py32__all__ = ["configure_logger"]CODE
LOWsrc/anomalib/callbacks/timer.py33logger = logging.getLogger(__name__)CODE
LOWsrc/anomalib/callbacks/__init__.py58__all__ = [CODE
LOWsrc/anomalib/callbacks/__init__.py68logger = logging.getLogger(__name__)CODE
LOWsrc/anomalib/callbacks/model_loader.py33logger = logging.getLogger(__name__)CODE
LOWsrc/anomalib/callbacks/tiler_configuration.py40__all__ = ["TilerConfigurationCallback"]CODE
LOWsrc/anomalib/callbacks/visualizer.py44logger = logging.getLogger(__name__)CODE
LOWsrc/anomalib/deploy/__init__.py31__all__ = ["Inferencer", "OpenVINOInferencer", "TorchInferencer", "ExportType", "CompressionType"]CODE
LOWsrc/anomalib/deploy/inferencers/__init__.py23__all__ = ["Inferencer", "OpenVINOInferencer", "TorchInferencer"]CODE
LOWsrc/anomalib/deploy/inferencers/torch_inferencer.py70logger = logging.getLogger(__name__)CODE
LOWsrc/anomalib/pipelines/__init__.py31__all__ = ["Benchmark"]CODE
LOWsrc/anomalib/pipelines/benchmark/job.py52logger = logging.getLogger(__name__)CODE
LOWsrc/anomalib/pipelines/benchmark/__init__.py27__all__ = ["Benchmark"]CODE
LOWsrc/anomalib/pipelines/tiled_ensemble/train_pipeline.py30logger = logging.getLogger(__name__)CODE
LOWsrc/anomalib/pipelines/tiled_ensemble/__init__.py41__all__ = [CODE
LOWsrc/anomalib/pipelines/tiled_ensemble/test_pipeline.py25logger = logging.getLogger(__name__)CODE
LOW…pelines/tiled_ensemble/components/stats_calculation.py18logger = logging.getLogger(__name__)CODE
LOW…/pipelines/tiled_ensemble/components/model_training.py27logger = logging.getLogger(__name__)CODE
LOW…omalib/pipelines/tiled_ensemble/components/__init__.py38__all__ = [CODE
LOW…ib/pipelines/tiled_ensemble/components/thresholding.py19logger = logging.getLogger(__name__)CODE
LOW…b/pipelines/tiled_ensemble/components/visualization.py23logger = logging.getLogger(__name__)CODE
221 more matches not shown…
Self-Referential Comments52 hits · 142 pts
SeverityFileLineSnippetContext
MEDIUMtools/inference/torch_inference.py78 # Create the inferencer and visualizer.COMMENT
MEDIUMtests/conftest.py33 # Create the temporary directory in the root directory of the project.COMMENT
MEDIUM⚡tests/unit/post_processing/test_mebin_post_processor.py149 # Create a clear anomaly regionCOMMENT
MEDIUMtests/unit/models/components/clustering/test_gmm.py16 # Create a GaussianMixture modelCOMMENT
MEDIUMtests/unit/models/components/clustering/test_gmm.py41 # Create a GaussianMixture modelCOMMENT
MEDIUM⚡tests/unit/data/validators/numpy/test_image.py35 # Create a 2D image without channel dimensionCOMMENT
MEDIUM⚡tests/unit/data/validators/numpy/test_image.py124 # Create a 3D image batch without channel dimensionCOMMENT
MEDIUM⚡tests/unit/data/validators/numpy/test_image.py145 # Create a 3D image without batch dimensionCOMMENT
MEDIUM⚡tests/unit/data/validators/numpy/test_video.py35 # Create a 3D image without time dimensionCOMMENT
MEDIUM⚡tests/unit/data/validators/numpy/test_video.py106 # Create a 4D image batch without time dimensionCOMMENT
MEDIUM⚡tests/helpers/data.py603 # Create the resolution directoryCOMMENT
MEDIUMexamples/cli/04_advanced/custom_components.sh22# Create a comprehensive set of metricsCOMMENT
MEDIUMexamples/cli/00_installation/uv_install.sh37# Create a virtual environment and sync with the lockfile for a specific backend:COMMENT
MEDIUM.github/workflows/_reusable-pr-title-check.yaml101 # Create a temporary file to store the clean PR title for checkingCOMMENT
MEDIUMapplication/backend/tests/unit/conftest.py159 # Create a valid image for testingCOMMENT
MEDIUM…ication/backend/tests/unit/endpoints/test_pipelines.py163 # Create a valid RUNNING pipeline with required fieldsCOMMENT
MEDIUM…ication/backend/tests/unit/endpoints/test_pipelines.py215 # Create a valid RUNNING pipeline with required fieldsCOMMENT
MEDIUM…tion/backend/tests/unit/services/test_video_service.py128 # Create a non-video file (should be ignored)COMMENT
MEDIUM…d/tests/unit/services/test_dataset_snapshot_service.py131 # Create a dummy dataframe batchCOMMENT
MEDIUM⚡…kend/tests/unit/services/test_configuration_service.py171 # Create a new event loop and run the coroutineCOMMENT
MEDIUM…tion/backend/tests/unit/services/test_model_service.py339 # Create a test anomaly mapCOMMENT
MEDIUM…tion/backend/tests/unit/services/test_model_service.py372 # Create a test anomaly mapCOMMENT
MEDIUM…cation/backend/tests/unit/services/test_job_service.py182 # Create an updated job object that the repository would returnCOMMENT
MEDIUM…cation/backend/tests/unit/services/test_job_service.py254 # Create an async context managerCOMMENT
MEDIUM…tion/backend/tests/unit/services/test_media_service.py142 # Create a random numpy image (100x100 RGB)COMMENT
MEDIUM…ary/tauri/src-tauri/install_scripts/macos_patch_dmg.sh50# Create a temporary directory for the workCOMMENT
MEDIUMsrc/anomalib/visualization/image/item_visualizer.py17 >>> # Create an ImageItem or NumpyImageItemSTRING
MEDIUM⚡src/anomalib/visualization/image/functional.py751 # Create a background imageCOMMENT
MEDIUM⚡src/anomalib/visualization/image/functional.py759 # Create a colored version of the edgesCOMMENT
MEDIUM⚡src/anomalib/visualization/image/functional.py767 # Create a solid color image for the overlayCOMMENT
MEDIUMsrc/anomalib/visualization/image/functional.py157 # Create a new RGBA image as a transparent overlayCOMMENT
MEDIUMsrc/anomalib/visualization/image/functional.py263 # Create a linear interpolation of the colormapCOMMENT
MEDIUMsrc/anomalib/visualization/image/functional.py632 # Create a normalized imageCOMMENT
MEDIUMsrc/anomalib/visualization/image/functional.py955 # Create a new image with white backgroundCOMMENT
MEDIUMsrc/anomalib/visualization/image/functional.py210 >>> # Create a sample grayscale imageSTRING
MEDIUMsrc/anomalib/visualization/image/functional.py814 >>> # Create a sample binary maskSTRING
MEDIUMsrc/anomalib/visualization/image/functional.py875 >>> # Create a sample binary maskSTRING
MEDIUMsrc/anomalib/callbacks/checkpoint.py61 >>> # Create a checkpoint callbackSTRING
MEDIUMsrc/anomalib/utils/path.py366 # Create the new version directoryCOMMENT
MEDIUMsrc/anomalib/utils/serialization.py17 """This class is used only for typing."""STRING
MEDIUMsrc/anomalib/utils/cv/connected_components.py14 >>> # Create a binary mask tensor (1 for anomaly, 0 for normal)STRING
MEDIUMsrc/anomalib/utils/cv/connected_components.py16 >>> mask[0, 0, 1:3, 1:3] = 1 # Create a 2x2 square anomalySTRING
MEDIUMsrc/anomalib/utils/cv/connected_components.py52 >>> # Create a binary mask with a 2x2 square anomalySTRING
MEDIUMsrc/anomalib/utils/cv/connected_components.py94 >>> # Create a binary mask with a 2x2 square anomalySTRING
MEDIUMsrc/anomalib/models/image/inp_former/lightning_model.py364 # Create a scheduler config with dynamically determined total stepsCOMMENT
MEDIUMsrc/anomalib/models/image/dinomaly/lightning_model.py371 # Create a scheduler config with dynamically determined total stepsCOMMENT
MEDIUM…c/anomalib/models/image/foundad/components/cutpaste.py203 # Create a mask for the rotated patch (non-zero pixels)COMMENT
MEDIUMsrc/anomalib/models/components/filters/__init__.py15 >>> # Create a Gaussian blur filterSTRING
MEDIUMsrc/anomalib/models/components/filters/blur.py12 >>> # Create a Gaussian blur filterSTRING
MEDIUMsrc/anomalib/models/components/base/buffer_list.py9 >>> # Create a module that uses the buffer list mixinSTRING
MEDIUMsrc/anomalib/cli/utils/installation.py382 # Create the PyTorch Index URL to download the correct wheel.COMMENT
MEDIUMsrc/anomalib/pre_processing/pre_processor.py70 >>> # Define a custom set of transformsSTRING
Excessive Try-Catch Wrapping82 hits · 84 pts
SeverityFileLineSnippetContext
LOWtools/benchmark_mebin.py126 except Exception:CODE
LOW…end/tests/unit/services/test_job_service_pagination.py38 except Exception:CODE
LOWapplication/backend/src/cli.py136 except Exception:CODE
LOWapplication/backend/src/cli.py151 except Exception as e:CODE
LOWapplication/backend/src/core/scheduler.py153 except Exception as e:CODE
LOWapplication/backend/src/core/scheduler.py174 except Exception as e:CODE
LOWapplication/backend/src/core/scheduler.py186 except Exception as e:CODE
LOWapplication/backend/src/core/logging/setup.py85 except Exception as e:CODE
LOWapplication/backend/src/core/logging/utils.py256 except Exception as e:CODE
LOWapplication/backend/src/utils/queue.py25 except Exception as e:CODE
LOWapplication/backend/src/utils/visualization.py37 except Exception as e: # continue other overlays even if one failsCODE
LOWapplication/backend/src/utils/visualization.py41 except Exception as e:CODE
LOWapplication/backend/src/utils/visualization.py68 except Exception as e:CODE
LOWapplication/backend/src/utils/visualization.py100 except Exception as e:CODE
LOWapplication/backend/src/utils/callbacks.py93 except Exception as e:CODE
LOWapplication/backend/src/repositories/binary_repo.py118 except Exception as e:CODE
LOWapplication/backend/src/db/engine.py62 except Exception:CODE
LOWapplication/backend/src/db/engine.py73 except Exception:CODE
LOWapplication/backend/src/db/engine.py84 except Exception:CODE
LOWapplication/backend/src/db/migration.py37 except Exception as e:CODE
LOWapplication/backend/src/db/migration.py56 except Exception as e:CODE
LOWapplication/backend/src/db/migration.py84 except Exception as e:CODE
LOWapplication/backend/src/db/migration.py112 except Exception as e:CODE
LOWapplication/backend/src/db/migration.py133 except Exception as e:CODE
LOWapplication/backend/src/api/endpoints/webrtc.py28 except Exception as e:CODE
LOWapplication/backend/src/workers/dispatching.py145 except Exception as e:CODE
LOW⚡application/backend/src/workers/stream_loading.py89 except Exception as e:CODE
LOW⚡application/backend/src/workers/stream_loading.py93 except Exception as e:CODE
LOWapplication/backend/src/workers/inference.py83 except Exception as e:CODE
LOWapplication/backend/src/workers/inference.py111 except Exception as e:CODE
LOWapplication/backend/src/workers/inference.py129 except Exception as e:CODE
LOWapplication/backend/src/workers/inference.py151 except Exception as e:CODE
LOWapplication/backend/src/workers/inference.py162 except Exception as e:CODE
LOWapplication/backend/src/workers/inference.py181 except Exception as e:CODE
LOW⚡application/backend/src/workers/inference.py199 except Exception as e:CODE
LOW⚡application/backend/src/workers/inference.py206 except Exception as e:CODE
LOWapplication/backend/src/workers/inference.py270 except Exception as e:CODE
LOWapplication/backend/src/workers/inference.py292 except Exception as e:CODE
MEDIUMapplication/backend/src/workers/inference.py67def _get_active_model(self) -> LoadedModel | None:CODE
LOW⚡application/backend/src/workers/base.py136 except Exception as e:CODE
LOWapplication/backend/src/workers/base.py182 except Exception as e:CODE
LOWapplication/backend/src/workers/training.py44 except Exception as e:CODE
LOWapplication/backend/src/workers/training.py59 except Exception as e:CODE
LOWapplication/backend/src/webrtc/stream.py79 except Exception as e:CODE
LOWapplication/backend/src/webrtc/sdp_handler.py28 except Exception as exc:CODE
LOWapplication/backend/src/webrtc/sdp_handler.py64 except Exception as exc:CODE
LOWapplication/backend/src/services/project_service.py107 except Exception as e:CODE
LOWapplication/backend/src/services/training_service.py145 except Exception as e:CODE
LOWapplication/backend/src/services/training_service.py164 except Exception as e:CODE
LOWapplication/backend/src/services/training_service.py410 except Exception as e:CODE
LOW…lication/backend/src/services/configuration_service.py189 except Exception as error:CODE
LOWapplication/backend/src/services/video_service.py146 except Exception as e:CODE
LOWapplication/backend/src/services/video_service.py274 except Exception as e:CODE
LOWapplication/backend/src/services/model_service.py73 except Exception as e:CODE
LOWapplication/backend/src/services/model_service.py151 except Exception as e:CODE
LOWapplication/backend/src/services/model_service.py270 except Exception as e:CODE
LOW…ation/backend/src/services/dataset_snapshot_service.py98 except Exception as e:CODE
LOW⚡…ation/backend/src/services/dataset_snapshot_service.py160 except Exception as e:CODE
LOW⚡…ation/backend/src/services/dataset_snapshot_service.py177 except Exception as e:CODE
LOWapplication/backend/src/services/media_service.py130 except Exception as e:CODE
22 more matches not shown…
AI Structural Patterns76 hits · 76 pts
SeverityFileLineSnippetContext
LOWtests/helpers/data.py321CODE
LOWsrc/anomalib/loggers/comet.py99CODE
LOWsrc/anomalib/loggers/wandb.py112CODE
LOWsrc/anomalib/models/video/fuvas/lightning_model.py85CODE
LOWsrc/anomalib/models/video/ai_vad/torch_model.py99CODE
LOWsrc/anomalib/models/video/ai_vad/lightning_model.py128CODE
LOWsrc/anomalib/models/video/ai_vad/clip/model.py68CODE
LOW…b/models/image/reverse_distillation/lightning_model.py87CODE
LOW…nomalib/models/image/supersimplenet/lightning_model.py87CODE
LOWsrc/anomalib/models/image/patchflow/torch_model.py75CODE
LOWsrc/anomalib/models/image/patchflow/lightning_model.py88CODE
LOWsrc/anomalib/models/image/winclip/lightning_model.py101CODE
LOWsrc/anomalib/models/image/fastflow/lightning_model.py100CODE
LOWsrc/anomalib/models/image/super_add/torch_model.py290CODE
LOWsrc/anomalib/models/image/super_add/lightning_model.py123CODE
LOWsrc/anomalib/models/image/inp_former/lightning_model.py155CODE
LOW…/anomalib/models/image/inp_former/components/layers.py111CODE
LOWsrc/anomalib/models/image/uflow/lightning_model.py108CODE
LOWsrc/anomalib/models/image/cflow/lightning_model.py80CODE
LOWsrc/anomalib/models/image/cfa/lightning_model.py91CODE
LOWsrc/anomalib/models/image/general_ad/torch_model.py274CODE
LOWsrc/anomalib/models/image/general_ad/lightning_model.py57CODE
LOWsrc/anomalib/models/image/csflow/lightning_model.py73CODE
LOWsrc/anomalib/models/image/l2bt/torch_model.py26CODE
LOWsrc/anomalib/models/image/l2bt/lightning_model.py122CODE
LOWsrc/anomalib/models/image/mh_patchcore/torch_model.py149CODE
LOW…/anomalib/models/image/mh_patchcore/lightning_model.py63CODE
LOWsrc/anomalib/models/image/glass/torch_model.py69CODE
LOWsrc/anomalib/models/image/glass/lightning_model.py110CODE
LOWsrc/anomalib/models/image/draem/lightning_model.py86CODE
LOWsrc/anomalib/models/image/fre/lightning_model.py103CODE
LOWsrc/anomalib/models/image/ganomaly/lightning_model.py119CODE
LOWsrc/anomalib/models/image/padim/lightning_model.py109CODE
LOWsrc/anomalib/models/image/dfm/lightning_model.py87CODE
LOW…/anomalib/models/image/efficient_ad/lightning_model.py128CODE
LOW…/anomalib/models/image/anomaly_dino/lightning_model.py150CODE
LOWsrc/anomalib/models/image/dfkde/lightning_model.py92CODE
LOWsrc/anomalib/models/image/patchcore/lightning_model.py141CODE
LOWsrc/anomalib/models/image/rad/torch_model.py67CODE
LOWsrc/anomalib/models/image/rad/lightning_model.py105CODE
LOWsrc/anomalib/models/image/cfm/lightning_model.py57CODE
LOWsrc/anomalib/models/image/dinomaly/torch_model.py103CODE
LOWsrc/anomalib/models/image/dinomaly/torch_model.py425CODE
LOWsrc/anomalib/models/image/dinomaly/lightning_model.py157CODE
LOWsrc/anomalib/models/image/dinomaly/components/layers.py204CODE
LOWsrc/anomalib/models/image/foundad/torch_model.py81CODE
LOWsrc/anomalib/models/image/foundad/lightning_model.py117CODE
LOW…/anomalib/models/components/base/export_mixin/mixin.py222CODE
LOWsrc/anomalib/models/components/dinov2/layers/block.py52CODE
LOWsrc/anomalib/models/components/flow/all_in_one_block.py166CODE
LOWsrc/anomalib/data/datasets/depth/folder_3d.py135CODE
LOWsrc/anomalib/data/datasets/depth/folder_3d.py83CODE
LOWsrc/anomalib/data/datamodules/video/shanghaitech.py146CODE
LOWsrc/anomalib/data/datamodules/video/ucsd_ped.py72CODE
LOWsrc/anomalib/data/datamodules/video/avenue.py141CODE
LOWsrc/anomalib/data/datamodules/depth/adam_3d.py83CODE
LOWsrc/anomalib/data/datamodules/depth/folder_3d.py81CODE
LOWsrc/anomalib/data/datamodules/depth/mvtec_3d.py88CODE
LOWsrc/anomalib/data/datamodules/image/autovi.py125CODE
LOWsrc/anomalib/data/datamodules/image/btech.py141CODE
16 more matches not shown…
Over-Commented Block70 hits · 70 pts
SeverityFileLineSnippetContext
LOWtests/unit/metrics/pimo/__init__.py1# Original CodeCOMMENT
LOW…rce/snippets/data/transforms/datamodule_train_eval.txt21COMMENT
LOWdocs/source/snippets/data/transforms/model_fit.txt21# Resize(size=[256, 256], interpolation=InterpolationMode.BILINEAR, antialias=True)COMMENT
LOW…/source/markdown/guides/how_to/models/pre_processor.md141# Resize(size=[256, 256], interpolation=InterpolationMode.BILINEAR, antialias=False)COMMENT
LOWexamples/cli/01_getting_started/basic_training.sh1#!/bin/bashCOMMENT
LOWexamples/api/02_data/folder.py21 root=Path("./datasets/my_dataset"),COMMENT
LOW.github/workflows/renovate.yml1# Dependencies Management WorkflowCOMMENT
LOW.github/workflows/renovate.yml21# - RENOVATE_APP_ID: application IDCOMMENT
LOW.github/workflows/release-lib.yaml1# Release WorkflowCOMMENT
LOW.github/workflows/release-lib.yaml21# - Environment approval gate (production)COMMENT
LOW.github/workflows/_reusable-code-quality.yaml1# Code Quality WorkflowCOMMENT
LOW.github/workflows/_reusable-code-quality.yaml21# - Type checkingCOMMENT
LOW.github/workflows/pr.yaml1# Pull Request WorkflowCOMMENT
LOW.github/workflows/pr.yaml21#COMMENT
LOW.github/workflows/pr.yaml41#COMMENT
LOW.github/workflows/_reusable-docker-build.yaml1# Docker Image Build WorkflowCOMMENT
LOW.github/workflows/renovate-config-validator.yml1# Renovate configuration validatorCOMMENT
LOW.github/workflows/scorecards.yml1# OpenSSF Scorecard Checks WorkflowCOMMENT
LOW.github/workflows/_reusable-version-bump.yaml1# Version Bump WorkflowCOMMENT
LOW.github/workflows/_reusable-version-bump.yaml21# - Version increment calculationCOMMENT
LOW.github/workflows/_reusable-version-bump.yaml41# Example Usage:COMMENT
LOW.github/workflows/_reusable-test-suite.yaml1# Test Suite WorkflowCOMMENT
LOW.github/workflows/_reusable-test-suite.yaml21# - Test executionCOMMENT
LOW.github/workflows/_reusable-test-suite.yaml41#COMMENT
LOW.github/workflows/tauri-build.yaml1# Tauri Application Build WorkflowCOMMENT
LOW.github/workflows/tauri-build.yaml81 # strategy:COMMENT
LOW.github/workflows/tauri-build.yaml101 # - name: Install uvCOMMENT
LOW.github/workflows/tauri-build.yaml121 # ~/.cargo/git/db/COMMENT
LOW.github/workflows/tauri-build.yaml141 # run: npm ciCOMMENT
LOW.github/workflows/tauri-build.yaml341 name: anomalib-studio-windows-msix-${{ matrix.accelerator }}COMMENT
LOW.github/workflows/tauri-build.yaml361COMMENT
LOW.github/workflows/tauri-build.yaml381 # ~/.cargo/registry/cache/COMMENT
LOW.github/workflows/tauri-build.yaml401 # working-directory: application/binary/tauriCOMMENT
LOW.github/workflows/cleanup-old-app-images.yml1name: Cleanup Old Application Container ImagesCOMMENT
LOW.github/workflows/_reusable-version-check.yaml1# Version Check WorkflowCOMMENT
LOW.github/workflows/_reusable-version-check.yaml21# - Pre-release detectionCOMMENT
LOW.github/workflows/_reusable-version-check.yaml41# uses: ./.github/workflows/_reusable-version-check.yamlCOMMENT
LOW.github/workflows/security-checks.yaml1# Security Checks WorkflowCOMMENT
LOW.github/workflows/security-checks.yaml21# - Adjustable scan scopeCOMMENT
LOW.github/workflows/issue-management.yaml1# Issue Management WorkflowCOMMENT
LOW.github/workflows/issue-management.yaml21# - Applies a 'stale' label and posts a notification comment.COMMENT
LOW.github/workflows/_reusable-security-scan.yaml1# Reusable Security Scan WorkflowCOMMENT
LOW.github/workflows/_reusable-security-scan.yaml21# - tools: Comma-separated list of tools to runCOMMENT
LOW.github/workflows/_reusable-artifact-builder.yaml1# Artifact Builder WorkflowCOMMENT
LOW.github/workflows/_reusable-artifact-builder.yaml21# - Distribution creationCOMMENT
LOW.github/workflows/_reusable-artifact-builder.yaml41# with:COMMENT
LOW.github/workflows/_reusable-pr-title-check.yaml1# PR Title Check WorkflowCOMMENT
LOW.github/workflows/_reusable-pr-title-check.yaml21# 3. Validation Results:COMMENT
LOW.github/scripts/apply-issue-triage.sh1#!/usr/bin/env bashCOMMENT
LOW.github/actions/pytest/action.yaml1# Test Runner ActionCOMMENT
LOW.github/actions/pytest/action.yaml21# - Parallel processingCOMMENT
LOW.github/actions/pytest/action.yaml41# - test-duration: Execution timeCOMMENT
LOW.github/actions/docker-build/action.yml61 file: application/docker/DockerfileCOMMENT
LOWapplication/backend/run.sh1#!/bin/bashCOMMENT
LOW…ication/backend/tests/unit/endpoints/test_pipelines.py121 fxt_pipeline_service.update_pipeline.assert_not_called()COMMENT
LOWapplication/backend/tests/unit/repositories/__init__.py1# Copyright (C) 2026 Intel CorporationCOMMENT
LOWapplication/backend/src/alembic.ini1# A generic, single database configuration.COMMENT
LOWapplication/backend/src/alembic.ini21COMMENT
LOWapplication/backend/src/alembic.ini41COMMENT
LOWapplication/backend/src/alembic.ini61# behavior of splitting on spaces and/or commas.COMMENT
10 more matches not shown…
Redundant / Tautological Comments35 hits · 50 pts
SeverityFileLineSnippetContext
LOW⚡tests/unit/data/validators/numpy/test_image.py40 # Check if channel dimension is addedCOMMENT
LOW⚡tests/unit/data/validators/numpy/test_image.py129 # Check if channel dimension is addedCOMMENT
LOW⚡tests/unit/data/validators/numpy/test_image.py151 # Check if batch dimension is addedCOMMENT
LOW⚡tests/unit/data/validators/numpy/test_video.py40 # Check if time dimension is addedCOMMENT
LOW⚡tests/unit/data/validators/numpy/test_video.py111 # Check if time dimension is addedCOMMENT
LOWexamples/api/04_advanced/training_modes.py79# Print resultsCOMMENT
LOW.github/workflows/_reusable-version-bump.yaml150 # Check if there are commits that would trigger a version bumpCOMMENT
LOWapplication/backend/src/db/migration.py71 # Check if current_rev is in Alembic's tracked revisionsCOMMENT
LOWapplication/backend/src/db/migration.py94 # Check if we can connectCOMMENT
LOWapplication/backend/src/services/system_service.py136 # Check if Apple MPS is availableCOMMENT
LOWapplication/backend/src/services/system_service.py203 # Check if desired device is among available devicesCOMMENT
LOWapplication/backend/src/services/video_service.py82 # Check if file existsCOMMENT
LOWsrc/anomalib/visualization/image/functional.py1043 # Check if the parameter is a keyword argumentCOMMENT
LOWsrc/anomalib/models/image/winclip/torch_model.py109 # Check if open_clip is availableCOMMENT
LOWsrc/anomalib/models/image/inp_former/lightning_model.py337 # Check if the trainer has valid max_epochs and max_steps setCOMMENT
LOWsrc/anomalib/models/image/dinomaly/lightning_model.py344 # Check if the trainer has valid max_epochs and max_steps setCOMMENT
LOW…alib/models/components/stats/multi_variate_gaussian.py157 # Check if the device is MPS and fallback to CPU if necessaryCOMMENT
LOWsrc/anomalib/data/datasets/image/tabular.py285 # Check if anomalous samples are in training setCOMMENT
LOWsrc/anomalib/data/datamodules/image/tabular.py241 # Check if file existsCOMMENT
LOWsrc/anomalib/data/datamodules/image/tabular.py262 # Read the file and return Tabular datasetCOMMENT
LOWsrc/anomalib/data/utils/download.py247 # Read the file in chunks to avoid loading it all into memoryCOMMENT
LOW⚡src/anomalib/data/utils/path.py249 # Check if the path is of an appropriate typeSTRING
LOW⚡src/anomalib/data/utils/path.py253 # Check if the path is too longSTRING
LOW⚡src/anomalib/data/utils/path.py258 # Check if the path contains non-printable charactersSTRING
LOWsrc/anomalib/data/utils/path.py276 # Check if the path existsSTRING
LOWsrc/anomalib/data/utils/path.py286 # Check if the path has one of the accepted extensionsSTRING
LOWsrc/anomalib/data/validators/numpy/image.py119 # Check if the image is in torch style (C, H, W) and rearrange if necessaryCOMMENT
LOWsrc/anomalib/data/validators/numpy/image.py553 # Check if the image is a numpy arrayCOMMENT
LOWsrc/anomalib/data/validators/numpy/image.py562 # Check if the image has the correct number of dimensionsCOMMENT
LOWsrc/anomalib/data/validators/numpy/image.py575 # Check if the image has the correct number of channelsCOMMENT
LOWsrc/anomalib/data/validators/numpy/image.py676 # Check if the mask is in [N, H, W, 1] format and rearrange if necessaryCOMMENT
LOWsrc/anomalib/data/validators/numpy/image.py762 # Check if the anomaly map is in [N, C, H, W] format and rearrange if necessaryCOMMENT
LOWsrc/anomalib/data/dataclasses/generic.py800 # Check if all images have the same shape. If not, resize before collatingCOMMENT
LOW⚡src/anomalib/engine/engine.py291 # Check if category is None and set it to empty stringCOMMENT
LOW⚡src/anomalib/engine/engine.py303 # Check if the cache requires an updateCOMMENT
Modern AI Meta-Vocabulary15 hits · 42 pts
SeverityFileLineSnippetContext
MEDIUM.agents/skills/agentic-actions-auditor/README.md11- **Upstream**: <https://github.com/trailofbits/skills> (`plugins/agentic-actions-auditor`)CODE
MEDIUM.github/workflows/pr.yaml3# This workflow orchestrates quality checks, tests, and security scans forCOMMENT
MEDIUM.github/workflows/security-checks.yaml3# This workflow orchestrates comprehensive security scanning using multiple tools andCOMMENT
MEDIUM.github/workflows/_reusable-security-scan.yaml3# This reusable workflow orchestrates multiple security scanning tools to provideCOMMENT
MEDIUMapplication/backend/src/workers/base.py109 # Internal + final run orchestrationCOMMENT
MEDIUM⚡application/backend/src/workers/base.py139 def run(self) -> None: # final orchestration; should not be overridden in subclassesCODE
MEDIUMapplication/backend/src/workers/base.py175 # final run orchestrationCOMMENT
MEDIUMsrc/anomalib/models/image/vlm_ad/backends/chat_gpt.py150 # few-shotCOMMENT
MEDIUMsrc/anomalib/models/image/vlm_ad/backends/ollama.py168 # few-shotCOMMENT
MEDIUMsrc/anomalib/models/image/winclip/torch_model.py313 # get zero-shot scoresCOMMENT
MEDIUMsrc/anomalib/models/image/winclip/torch_model.py317 # get few-shot scoresCOMMENT
MEDIUMsrc/anomalib/engine/engine.py418 # validation before predict is only necessary for zero-/few-shot modelsCOMMENT
MEDIUMsrc/anomalib/engine/engine.py472 # if the model is zero-shot or few-shot, we only need to run validate for normalization and thresholdingCOMMENT
MEDIUMsrc/anomalib/engine/engine.py581 # Test a zero-shot modelSTRING
MEDIUMsrc/anomalib/engine/engine.py798 # if the model is zero-shot or few-shot, we only need to run validate for normalization and thresholdingCOMMENT
Hallucination Indicators4 hits · 40 pts
SeverityFileLineSnippetContext
CRITICALsrc/anomalib/models/image/draem/lightning_model.py147 self.model.reconstructive_subnetwork.encoder.mp4.register_forward_hook(get_activation("input"))CODE
CRITICALsrc/anomalib/models/image/draem/lightning_model.py148 self.model.reconstructive_subnetwork.encoder.block5.register_forward_hook(get_activation("output"))CODE
CRITICAL…/models/image/foundad/components/manifold_projector.py243 layer.attn.proj.weight.data.div_(math.sqrt(2.0 * (layer_id + 1)))CODE
CRITICAL…/models/image/foundad/components/manifold_projector.py244 layer.mlp.fc2.weight.data.div_(math.sqrt(2.0 * (layer_id + 1)))CODE
Deep Nesting40 hits · 39 pts
SeverityFileLineSnippetContext
LOWtools/benchmark_mebin.py72CODE
LOW…/unit/pipelines/tiled_ensemble/test_prediction_data.py41CODE
LOWapplication/backend/src/core/scheduler.py118CODE
LOWapplication/backend/src/workers/stream_loading.py55CODE
LOWapplication/backend/src/workers/inference.py87CODE
LOWapplication/backend/src/services/system_service.py53CODE
LOW…ation/backend/src/services/dataset_snapshot_service.py181CODE
LOWsrc/anomalib/visualization/image/item_visualizer.py70CODE
LOWsrc/anomalib/callbacks/visualizer.py98CODE
LOWsrc/anomalib/callbacks/visualizer.py175CODE
LOWsrc/anomalib/deploy/inferencers/openvino_inferencer.py106CODE
LOW…es/tiled_ensemble/components/utils/helper_functions.py61CODE
LOWsrc/anomalib/utils/path.py233CODE
LOWsrc/anomalib/utils/path.py593CODE
LOWsrc/anomalib/models/__init__.py268CODE
LOWsrc/anomalib/models/video/fuvas/torch_model.py143CODE
LOWsrc/anomalib/models/video/ai_vad/clip/model.py324CODE
LOWsrc/anomalib/models/video/ai_vad/clip/clip.py141CODE
LOWsrc/anomalib/models/video/ai_vad/clip/clip.py226CODE
LOW…models/image/uninet/components/attention_bottleneck.py303CODE
LOWsrc/anomalib/models/image/inp_former/lightning_model.py411CODE
LOWsrc/anomalib/models/image/glass/loss.py94CODE
LOW…/anomalib/models/image/glass/components/init_weight.py9CODE
LOWsrc/anomalib/models/image/rad/torch_model.py469CODE
LOW…anomalib/models/image/dinomaly/components/optimizer.py144CODE
LOW…/anomalib/models/components/feature_extractors/timm.py161CODE
LOW…/anomalib/models/components/backbone/resnet_decoder.py322CODE
LOW…/anomalib/models/components/base/export_mixin/utils.py98CODE
LOWsrc/anomalib/cli/cli.py452CODE
LOWsrc/anomalib/cli/utils/installation.py148CODE
LOWsrc/anomalib/data/datasets/image/mvtecad2.py164CODE
LOWsrc/anomalib/data/datasets/base/image.py248CODE
LOWsrc/anomalib/data/datamodules/image/kaputt.py285CODE
LOWsrc/anomalib/data/datamodules/image/visa.py218CODE
LOWsrc/anomalib/data/datamodules/base/image.py182CODE
LOWsrc/anomalib/data/datamodules/base/image.py327CODE
LOWsrc/anomalib/data/utils/download.py188CODE
LOWsrc/anomalib/data/utils/download.py277CODE
LOWsrc/anomalib/data/dataclasses/generic.py789CODE
LOWsrc/anomalib/engine/engine.py232CODE
Structural Annotation Overuse13 hits · 22 pts
SeverityFileLineSnippetContext
LOW.agents/skills/agentic-actions-auditor/SKILL.md47### Step 0: Determine Analysis ModeCOMMENT
LOW.agents/skills/agentic-actions-auditor/SKILL.md114### Step 1: Discover Workflow FilesCOMMENT
LOW.agents/skills/agentic-actions-auditor/SKILL.md127### Step 2: Identify AI Action StepsCOMMENT
LOW.agents/skills/agentic-actions-auditor/SKILL.md167### Step 3: Capture Security ContextCOMMENT
LOW.agents/skills/agentic-actions-auditor/SKILL.md238### Step 4: Analyze for Attack VectorsCOMMENT
LOW.agents/skills/agentic-actions-auditor/SKILL.md258### Step 5: Report FindingsCOMMENT
LOW…ions-auditor/references/vector-d-pr-target-checkout.md65 pull_request_target: # Step 1: Runs in base branch contextCODE
LOW…ions-auditor/references/vector-d-pr-target-checkout.md74 ref: ${{ github.event.pull_request.head.sha }} # Step 2: Checks out ATTACKER's codeCODE
LOW⚡…ary/tauri/src-tauri/install_scripts/macos_patch_dmg.sh63# Step 1: Convert to read-writeCOMMENT
LOW⚡…ary/tauri/src-tauri/install_scripts/macos_patch_dmg.sh67# Step 2: Mount the read-write DMGCOMMENT
LOW⚡…ary/tauri/src-tauri/install_scripts/macos_patch_dmg.sh71# Step 3: Rearrange directories inside the .app bundleCOMMENT
LOW⚡…ary/tauri/src-tauri/install_scripts/macos_patch_dmg.sh144# Step 4: UnmountCOMMENT
LOW⚡…ary/tauri/src-tauri/install_scripts/macos_patch_dmg.sh148# Step 5: Convert back to compressed read-only DMG, replacing the originalCOMMENT
AI Slop Vocabulary7 hits · 20 pts
SeverityFileLineSnippetContext
MEDIUMexamples/cli/04_advanced/custom_components.sh22# Create a comprehensive set of metricsCOMMENT
MEDIUM.github/workflows/scorecards.yml4# OpenSSF Scorecard requirements / best practicesCOMMENT
MEDIUM.github/workflows/_reusable-test-suite.yaml3# This reusable workflow executes comprehensive test suites with configurableCOMMENT
MEDIUM.github/workflows/security-checks.yaml3# This workflow orchestrates comprehensive security scanning using multiple tools andCOMMENT
MEDIUM.github/workflows/_reusable-security-scan.yaml4# comprehensive security analysis of the codebase.COMMENT
MEDIUM.github/actions/pytest/action.yaml4# comprehensive test execution and reporting capabilities.COMMENT
LOW⚡…kend/tests/unit/services/test_configuration_service.py169 # Mock asyncio.run to just call the coroutine directlyCOMMENT
Empty Error Handlers3 hits · 15 pts
SeverityFileLineSnippetContext
HIGH…tion/backend/tests/unit/workers/test_stream_loading.py113except RuntimeError:CODE
HIGH…ation/backend/src/services/dataset_snapshot_service.py158except FileNotFoundError:CODE
HIGHsrc/anomalib/utils/path.py690except ValueError:CODE
Verbosity Indicators5 hits · 11 pts
SeverityFileLineSnippetContext
LOW⚡…ary/tauri/src-tauri/install_scripts/macos_patch_dmg.sh63# Step 1: Convert to read-writeCOMMENT
LOW⚡…ary/tauri/src-tauri/install_scripts/macos_patch_dmg.sh67# Step 2: Mount the read-write DMGCOMMENT
LOW⚡…ary/tauri/src-tauri/install_scripts/macos_patch_dmg.sh71# Step 3: Rearrange directories inside the .app bundleCOMMENT
LOW⚡…ary/tauri/src-tauri/install_scripts/macos_patch_dmg.sh144# Step 4: UnmountCOMMENT
LOW⚡…ary/tauri/src-tauri/install_scripts/macos_patch_dmg.sh148# Step 5: Convert back to compressed read-only DMG, replacing the originalCOMMENT
Cross-Language Confusion2 hits · 10 pts
SeverityFileLineSnippetContext
HIGHapplication/backend/src/core/logging/utils.py137 self._stdout_wrapper.push(self._log_writer) # type: ignore[arg-type]CODE
HIGHapplication/backend/src/core/logging/utils.py138 self._stderr_wrapper.push(self._log_writer) # type: ignore[arg-type]CODE
Magic Placeholder Names4 hits · 10 pts
SeverityFileLineSnippetContext
HIGHsrc/anomalib/models/image/vlm_ad/__init__.py19 ... api_key="YOUR_API_KEY"STRING
HIGHsrc/anomalib/models/image/vlm_ad/lightning_model.py22 ... api_key="YOUR_API_KEY",STRING
HIGHsrc/anomalib/models/image/vlm_ad/lightning_model.py87 ... api_key="YOUR_API_KEY"STRING
HIGHsrc/anomalib/models/image/vlm_ad/lightning_model.py92 ... api_key="YOUR_API_KEY",STRING
Synthetic Comment Markers1 hit · 8 pts
SeverityFileLineSnippetContext
HIGH…tions-auditor/references/vector-g-eval-of-ai-output.md78 # eval expands shell metacharacters in AI-generated label valuesCOMMENT
AI Response Leakage1 hit · 8 pts
SeverityFileLineSnippetContext
HIGHsrc/anomalib/metrics/pimo/dataclasses.py1# Based on the code: https://github.com/jpcbertoldo/aupimoCOMMENT
Example Usage Blocks2 hits · 4 pts
SeverityFileLineSnippetContext
LOW⚡application/backend/run.sh11# Usage:COMMENT
LOW…ary/tauri/src-tauri/install_scripts/macos_patch_dmg.sh23# Usage:COMMENT
Slop Phrases2 hits · 3 pts
SeverityFileLineSnippetContext
LOW⚡application/backend/run.sh12# SEED_DB=true ./run.sh # Seed database before launching server (make sure to pre-upload model artifacts)COMMENT
LOWsrc/anomalib/metrics/utils.py138 idx = [0] # make sure to start at first pointCODE
Fake / Example Data3 hits · 3 pts
SeverityFileLineSnippetContext
LOW.agents/skills/anomalib-adding-a-datamodule/SKILL.md309 `anomalib.data.utils.image.read_image()` path before trusting dummy-data tests — e.g.CODE
LOW…rc/features/inspect/dataset/dataset-list.component.tsx64 mediaItem.filename === 'placeholder' ? (CODE
LOW…ures/inspect/dataset/dataset-item-placeholder/util.tsx3const PLACEHOLDER_FILENAME = 'placeholder';CODE
Overly Generic Function Names5 hits · 2 pts
SeverityFileLineSnippetContext
LOWsrc/anomalib/utils/logging.py15 >>> def my_function():STRING
LOWsrc/anomalib/utils/logging.py83 ... def my_function():STRING
LOWsrc/anomalib/utils/logging.py90 ... def my_function():STRING
LOWsrc/anomalib/utils/deprecation.py44 ... def my_function(new_param=None, old_param=None):STRING
LOWsrc/anomalib/utils/deprecation.py310 ... def my_function(new_param=None, old_param=None):STRING
TODO Padding1 hit · 2 pts
SeverityFileLineSnippetContext
LOWapplication/backend/src/services/training_service.py239 # TODO: implement Parquet datamodule in anomalib to avoid folder extraction stepCOMMENT