Repository Analysis

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.

25.1 Moderate AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of open-edge-platform/anomalib, a Python project with 5,940 GitHub stars. SynthScan v2.0 examined 177,045 lines of code across 1430 source files, recording 2486 pattern matches distributed across 26 syntactic categories. The overall adjusted score of 25.1 places this repository in the Moderate AI signal band.

The scanner applied 160+ deterministic lexical heuristics, multi-line block detectors, abstract syntax tree depth profilers, and a cross-file Jaccard similarity matrix to construct a statistically normalised synthetic code estimate. All matches are individually weighted by severity coefficient and contextual multiplier before summation, and the resulting headline score is temporally discounted to account for the repository's development history relative to the commercial emergence of large language model coding tooling (November 2022 onward).

25.1
Adjusted Score
25.1
Raw Score
100%
Time Factor
2026-07-14
Last Push
5.9K
Stars
Python
Language
177.0K
Lines of Code
1.4K
Files
2.5K
Pattern Hits
2026-07-14
Scan Date
0.28
HC Hit Rate

What These Metrics Mean

Adjusted Score
Primary synthetic code indicator. Raw score normalised per 1,000 lines of code and multiplied by the temporal discount factor. This is the definitive comparative metric — use it to rank repositories by AI authorship density.
Raw Score
The unmodified sum of all severity-weighted, context-multiplied pattern match scores before temporal discounting. Reflects the absolute signal strength independent of when the repository was last active.
Time Factor
The temporal discount multiplier (0–100%) applied to the raw score. Repositories last updated before ChatGPT's launch (Nov 2022) receive a 5% factor. Full signal is only assigned to repositories active in the post-adoption era (Jan 2024+).
Pattern Hits
Total count of individual pattern matches across all files and categories. A high hit count with a low score may indicate a very large codebase with isolated AI snippets; a low count with a high score indicates dense, concentrated AI signatures.
HC Hit Rate
High+Critical pattern hits per file, averaged across the repository. This orthogonal signal catches repositories where a few files are densely packed with high-severity AI tells — a strong indicator even when the normalised score appears moderate due to codebase size.
Lines of Code / Files
Total lines and files analysed. The scanner examines 94 file extensions. These denominators are used to normalise the score, enabling fair comparison between repositories of vastly different sizes.

Score History

This chart maps the temporal evolution of the adjusted synthetic code score across successive scan runs. An upward trajectory indicates ongoing incorporation of AI-generated code or expanding LLM-assisted scaffolding; a stable or declining trajectory may reflect active human refactoring, code removal, or the adoption of stricter authorship policies. The dashed secondary line (right axis) independently tracks total raw pattern hit count, which can diverge from the normalised score when codebase size changes significantly between scans.

Severity Breakdown

Classifies detected patterns by their diagnostic confidence and structural impact. CRITICAL patterns (coefficient 10) represent definitive synthetic signatures — hallucinated imports, explicit LLM attribution metadata — virtually never produced by human authors. HIGH (5) indicates strong structural tells such as cross-file repetition or cross-linguistic idioms. MEDIUM (2) covers recognisable conversational padding and AI-specific vocabulary. LOW (1) captures subtle indicators like tautological comments and generic boilerplate that require density to carry independent signal.

CRITICAL 2HIGH 405MEDIUM 130LOW 1949

Directory Score Breakdown

This horizontal bar chart decomposes the repository's raw synthetic code score by top-level directory, allowing you to pinpoint precisely which modules or components carry the highest AI authorship density. Directories with disproportionately high scores relative to their size warrant targeted manual review: concentrated AI signatures often trace back to mass-generated configuration layers, auto-ported test suites, LLM-scaffolded boilerplate classes, or entire subsystems authored under heavy copilot assistance. Use this view to prioritise your human code-review effort.

Pattern Findings

The scanner identified 2486 distinct pattern matches across 26 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a statistically significant AI authorship indicator. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.

Reading the findings table: The Severity column indicates the diagnostic confidence level (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — comment-context matches receive a ×1.5 weight because LLMs systematically over-annotate. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier as dense clusters constitute far stronger evidence of synthetic authorship than isolated hits.

Docstring Block Structure309 hits · 1530 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.py27Validate 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.py183Execute 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.py96 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.py201 Get a video by its filename. Args: project_id: ID of the project. filename: NaSTRING
HIGHapplication/backend/src/services/model_service.py158Export 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.py183Get 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.py198Post-process model predictions. Args: predictions (InferenceBatch): Batch containing model predictiSTRING
HIGHsrc/anomalib/post_processing/mebin_post_processor.py91Post-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
249 more matches not shown…
Hyper-Verbose Identifiers737 hits · 819 pts
SeverityFileLineSnippetContext
LOWtests/conftest.py112def 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_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…/unit/metrics/pimo/test_binary_classification_curve.py314def test__binclf_multiple_curves(CODE
LOW…/unit/metrics/pimo/test_binary_classification_curve.py330def test_binclf_multiple_curves(CODE
LOW…/unit/metrics/pimo/test_binary_classification_curve.py362def test_binclf_multiple_curves_validations(args: list, kwargs: dict, exception: Exception) -> None:CODE
LOW…/unit/metrics/pimo/test_binary_classification_curve.py368def test_per_image_binclf_curve(CODE
LOW…/unit/metrics/pimo/test_binary_classification_curve.py397def test_per_image_binclf_curve_validations(args: list, kwargs: dict, exception: Exception) -> None:CODE
LOW…/unit/metrics/pimo/test_binary_classification_curve.py403def 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
LOWtests/unit/metrics/threshold/test_threshold.py27 def test_threshold_initialization() -> None:CODE
LOWtests/unit/metrics/threshold/test_threshold.py37 def test_base_threshold_inheritance() -> None:CODE
LOWtests/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
LOWtests/unit/post_processing/test_mebin_post_processor.py139 def test_uniform_maps_no_anomaly() -> None:CODE
LOWtests/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
LOWtests/unit/post_processing/test_mebin_post_processor.py247 def test_forward_without_pred_score() -> None:CODE
LOWtests/unit/post_processing/test_mebin_post_processor.py256 def test_forward_raises_on_missing_inputs() -> None:CODE
LOWtests/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.py83 def test_pixel_threshold_matching() -> None:CODE
LOWtests/unit/post_processing/test_post_processor.py97 def test_image_threshold_matching() -> None:CODE
LOWtests/unit/deploy/test_onnx_export.py51 def test_forward_resamples_without_antialiasing(monkeypatch: pytest.MonkeyPatch) -> None:CODE
LOWtests/unit/deploy/test_inferencer.py158def test_inference_similarity(CODE
LOWtests/unit/deploy/test_ov_export.py43 def test_export_openvino_no_compression(setup_model_and_data: tuple) -> None:CODE
LOWtests/unit/deploy/test_ov_export.py334 def test_export_openvino_max_drop_warning_wrong_compression(CODE
LOWtests/unit/deploy/test_ov_export.py365 def test_export_openvino_max_drop_large_value_warning(CODE
LOWtests/unit/deploy/test_ov_export.py400 def test_export_openvino_with_ov_kwargs(setup_model_and_data: tuple) -> None:CODE
LOWtests/unit/pipelines/tiled_ensemble/test_components.py55 def test_label_and_score_merging(get_merging_mechanism: PredictionMergingMechanism) -> None:CODE
LOW…unit/pipelines/tiled_ensemble/test_helper_functions.py27 def test_ensemble_datamodule_collate_attr(get_ensemble_config: dict, get_tiler: EnsembleTiler) -> None:CODE
LOW…unit/pipelines/tiled_ensemble/test_helper_functions.py36 def test_ensemble_datamodule_img_size(get_ensemble_config: dict, get_tiler: EnsembleTiler) -> None:CODE
LOWtests/unit/pipelines/tiled_ensemble/test_tiler.py44 def test_basic_tile_for_ensemble(input_shape: torch.Size, config: dict, expected_shape: torch.Size) -> None:CODE
LOWtests/unit/pipelines/tiled_ensemble/test_tiler.py65 def test_basic_tile_reconstruction(input_shape: torch.Size, config: dict) -> None:CODE
LOWtests/unit/pipelines/tiled_ensemble/test_tiler.py87 def test_untile_different_instance(input_shape: torch.Size, config: dict) -> None:CODE
LOWtests/unit/utils/test_visualizer.py19def test_visualize_fully_defected_masks() -> None:CODE
677 more matches not shown…
Unused Imports627 hits · 582 pts
SeverityFileLineSnippetContext
LOWtools/benchmark_mebin.py16CODE
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/short_uuid.py4CODE
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
567 more matches not shown…
Cross-File Repetition88 hits · 440 pts
SeverityFileLineSnippetContext
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
HIGHsrc/anomalib/models/image/dfm/lightning_model.py0get the learning type of the model. returns: learningtype: the model uses one-class learning.STRING
HIGH…b/models/image/reverse_distillation/lightning_model.py0return the learning type of the model. returns: learningtype: learning type of the model.STRING
HIGHsrc/anomalib/models/image/fastflow/lightning_model.py0return the learning type of the model. returns: learningtype: learning type of the model.STRING
28 more matches not shown…
Modern Structural Boilerplate268 hits · 268 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 | ShortUUID) -> 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.py43 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.py43logger = 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
208 more matches not shown…
Decorative Section Separators58 hits · 196 pts
SeverityFileLineSnippetContext
MEDIUM…/unit/metrics/pimo/test_binary_classification_curve.py298# ==================================================================================================COMMENT
MEDIUM…/unit/metrics/pimo/test_binary_classification_curve.py326# ==================================================================================================COMMENT
MEDIUMtests/unit/data/datamodule/image/test_kaputt.py44 # ------------------------------------------------------------------COMMENT
MEDIUMtests/unit/data/datamodule/image/test_kaputt.py47 # ------------------------------------------------------------------COMMENT
MEDIUMtests/unit/data/datamodule/image/test_kaputt.py99 # ------------------------------------------------------------------COMMENT
MEDIUMtests/unit/data/datamodule/image/test_kaputt.py101 # ------------------------------------------------------------------COMMENT
MEDIUMtests/unit/data/datamodule/image/test_kaputt.py165 # ------------------------------------------------------------------COMMENT
MEDIUMtests/unit/data/datamodule/image/test_kaputt.py167 # ------------------------------------------------------------------COMMENT
MEDIUMtests/unit/data/datamodule/image/test_kaputt.py182 # ------------------------------------------------------------------COMMENT
MEDIUMtests/unit/data/datamodule/image/test_kaputt.py184 # ------------------------------------------------------------------COMMENT
MEDIUMtests/unit/data/datamodule/image/test_kaputt.py254 # ------------------------------------------------------------------COMMENT
MEDIUMtests/unit/data/datamodule/image/test_kaputt.py256 # ------------------------------------------------------------------COMMENT
MEDIUMexamples/cli/04_advanced/custom_components.sh7# ---------------------------------------COMMENT
MEDIUMexamples/cli/04_advanced/custom_pipeline.sh7# -------------------------------------COMMENT
MEDIUMexamples/cli/04_advanced/loggers.sh7# -------------------------------COMMENT
MEDIUMexamples/cli/05_pipelines/complete_pipeline.sh7# ------------------------------COMMENT
MEDIUMexamples/cli/05_pipelines/complete_pipeline.sh15# ----------------COMMENT
MEDIUMexamples/cli/05_pipelines/complete_pipeline.sh25# --------------COMMENT
MEDIUMexamples/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
MEDIUMapplication/backend/run.sh4# -----------------------------------------------------------------------------COMMENT
MEDIUMapplication/backend/run.sh23# -----------------------------------------------------------------------------COMMENT
MEDIUMapplication/backend/src/core/model_metadata.yaml24# =============================================================================COMMENT
MEDIUMapplication/backend/src/core/model_metadata.yaml26# =============================================================================COMMENT
MEDIUMapplication/backend/src/core/model_metadata.yaml58# =============================================================================COMMENT
MEDIUMapplication/backend/src/core/model_metadata.yaml60# =============================================================================COMMENT
MEDIUMapplication/backend/src/core/model_metadata.yaml103# =============================================================================COMMENT
MEDIUMapplication/backend/src/core/model_metadata.yaml105# =============================================================================COMMENT
MEDIUMapplication/backend/src/core/model_metadata.yaml147# =============================================================================COMMENT
MEDIUMapplication/backend/src/core/model_metadata.yaml149# =============================================================================COMMENT
MEDIUMapplication/backend/src/core/model_metadata.yaml190# =============================================================================COMMENT
MEDIUMapplication/backend/src/core/model_metadata.yaml192# =============================================================================COMMENT
MEDIUMapplication/backend/src/core/model_metadata.yaml224# =============================================================================COMMENT
MEDIUMapplication/backend/src/core/model_metadata.yaml226# =============================================================================COMMENT
MEDIUMapplication/backend/src/core/model_metadata.yaml238# =============================================================================COMMENT
MEDIUMapplication/backend/src/core/model_metadata.yaml240# =============================================================================COMMENT
MEDIUMapplication/backend/src/core/model_metadata.yaml262# =============================================================================COMMENT
MEDIUMapplication/backend/src/core/model_metadata.yaml264# =============================================================================COMMENT
MEDIUMapplication/backend/src/core/logging/handlers.py11# Example: "Epoch 3/199 ━━━━━━━━━━━━━━━━━━ 4/4 0:00:10 …" → groups ("4", "4")COMMENT
MEDIUMapplication/backend/src/pydantic_models/sink.py164# ---------------------------------COMMENT
MEDIUMapplication/backend/src/pydantic_models/sink.py166# ---------------------------------COMMENT
MEDIUMapplication/backend/src/pydantic_models/source.py139# ---------------------------------COMMENT
MEDIUMapplication/backend/src/pydantic_models/source.py141# ---------------------------------COMMENT
MEDIUMsrc/anomalib/models/image/patchflow/torch_model.py172 # ------------------------------------------------------------------COMMENT
MEDIUMsrc/anomalib/models/image/patchflow/torch_model.py174 # ------------------------------------------------------------------COMMENT
MEDIUMsrc/anomalib/models/image/patchflow/torch_model.py224 # ------------------------------------------------------------------COMMENT
MEDIUMsrc/anomalib/models/image/patchflow/torch_model.py226 # ------------------------------------------------------------------COMMENT
MEDIUMsrc/anomalib/models/image/patchflow/torch_model.py241 # ------------------------------------------------------------------COMMENT
MEDIUMsrc/anomalib/models/image/patchflow/torch_model.py243 # ------------------------------------------------------------------COMMENT
Self-Referential Comments50 hits · 138 pts
SeverityFileLineSnippetContext
MEDIUMtools/inference/torch_inference.py78 # Create the inferencer and visualizer.COMMENT
MEDIUMtests/conftest.py29 # Create the temporary directory in the root directory of the project.COMMENT
MEDIUMtests/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
MEDIUMtests/unit/data/validators/numpy/test_image.py35 # Create a 2D image without channel dimensionCOMMENT
MEDIUMtests/unit/data/validators/numpy/test_image.py124 # Create a 3D image batch without channel dimensionCOMMENT
MEDIUMtests/unit/data/validators/numpy/test_image.py145 # Create a 3D image without batch dimensionCOMMENT
MEDIUMtests/unit/data/validators/numpy/test_video.py35 # Create a 3D image without time dimensionCOMMENT
MEDIUMtests/unit/data/validators/numpy/test_video.py106 # Create a 4D image batch without time dimensionCOMMENT
MEDIUMtests/helpers/data.py565 # 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.py157 # 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.py213 # 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.py340 # Create a test anomaly mapCOMMENT
MEDIUM…tion/backend/tests/unit/services/test_model_service.py373 # 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
MEDIUMsrc/anomalib/visualization/image/functional.py751 # Create a background imageCOMMENT
MEDIUMsrc/anomalib/visualization/image/functional.py759 # Create a colored version of the edgesCOMMENT
MEDIUMsrc/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.py363 # Create the new version directoryCOMMENT
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.py379 # Create a scheduler config with dynamically determined total stepsCOMMENT
MEDIUMsrc/anomalib/models/image/dinomaly/lightning_model.py385 # Create a scheduler config with dynamically determined total stepsCOMMENT
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.py381 # Create the PyTorch Index URL to download the correct wheel.COMMENT
MEDIUMsrc/anomalib/pre_processing/pre_processor.py50 >>> # 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.py135 except Exception:CODE
LOWapplication/backend/src/cli.py150 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.py100 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
LOWapplication/backend/src/workers/stream_loading.py89 except Exception as e:CODE
LOWapplication/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
LOWapplication/backend/src/workers/inference.py199 except Exception as e:CODE
LOWapplication/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
LOWapplication/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.py106 except Exception as e:CODE
LOWapplication/backend/src/services/training_service.py135 except Exception as e:CODE
LOWapplication/backend/src/services/training_service.py154 except Exception as e:CODE
LOWapplication/backend/src/services/training_service.py366 except Exception as e:CODE
LOW…lication/backend/src/services/configuration_service.py189 except Exception as error:CODE
LOWapplication/backend/src/services/video_service.py139 except Exception as e:CODE
LOWapplication/backend/src/services/video_service.py267 except Exception as e:CODE
LOWapplication/backend/src/services/model_service.py74 except Exception as e:CODE
LOWapplication/backend/src/services/model_service.py152 except Exception as e:CODE
LOWapplication/backend/src/services/model_service.py289 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.py179 except Exception as e:CODE
LOWapplication/backend/src/services/media_service.py130 except Exception as e:CODE
22 more matches not shown…
AI Structural Patterns68 hits · 68 pts
SeverityFileLineSnippetContext
LOWtests/helpers/data.py317CODE
LOWsrc/anomalib/loggers/comet.py99CODE
LOWsrc/anomalib/loggers/wandb.py113CODE
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.py82CODE
LOW…nomalib/models/image/supersimplenet/lightning_model.py87CODE
LOWsrc/anomalib/models/image/patchflow/torch_model.py75CODE
LOWsrc/anomalib/models/image/patchflow/lightning_model.py89CODE
LOWsrc/anomalib/models/image/winclip/lightning_model.py101CODE
LOWsrc/anomalib/models/image/fastflow/lightning_model.py100CODE
LOWsrc/anomalib/models/image/inp_former/lightning_model.py156CODE
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.py123CODE
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.py122CODE
LOW…/anomalib/models/image/anomaly_dino/lightning_model.py151CODE
LOWsrc/anomalib/models/image/dfkde/lightning_model.py87CODE
LOWsrc/anomalib/models/image/patchcore/lightning_model.py141CODE
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.py158CODE
LOWsrc/anomalib/models/image/dinomaly/components/layers.py204CODE
LOWsrc/anomalib/models/components/base/export_mixin.py188CODE
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/datasets/image/kaputt.py215CODE
LOWsrc/anomalib/data/datamodules/video/shanghaitech.py109CODE
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/btech.py141CODE
LOWsrc/anomalib/data/datamodules/image/tabular.py101CODE
LOWsrc/anomalib/data/datamodules/image/folder.py115CODE
LOWsrc/anomalib/data/datamodules/image/mvtecad2.py113CODE
LOWsrc/anomalib/data/datamodules/image/mvtecad.py133CODE
LOWsrc/anomalib/data/datamodules/image/kolektor.py92CODE
LOWsrc/anomalib/data/datamodules/image/realiad.py156CODE
LOWsrc/anomalib/data/datamodules/image/datumaro.py101CODE
LOWsrc/anomalib/data/datamodules/image/kaputt.py153CODE
8 more matches not shown…
Over-Commented Block66 hits · 66 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/_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/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/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
LOWapplication/backend/src/alembic.ini81# are written from script.py.makoCOMMENT
LOWapplication/backend/src/alembic.ini101COMMENT
LOWapplication/backend/src/core/model_metadata.yaml1# Model metadata for the trainable models endpoint.COMMENT
6 more matches not shown…
Redundant / Tautological Comments35 hits · 50 pts
SeverityFileLineSnippetContext
LOWtests/unit/data/validators/numpy/test_image.py40 # Check if channel dimension is addedCOMMENT
LOWtests/unit/data/validators/numpy/test_image.py129 # Check if channel dimension is addedCOMMENT
LOWtests/unit/data/validators/numpy/test_image.py151 # Check if batch dimension is addedCOMMENT
LOWtests/unit/data/validators/numpy/test_video.py40 # Check if time dimension is addedCOMMENT
LOWtests/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.py78 # 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.py352 # Check if the trainer has valid max_epochs and max_steps setCOMMENT
LOWsrc/anomalib/models/image/dinomaly/lightning_model.py358 # 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.py279 # Check if anomalous samples are in training setCOMMENT
LOWsrc/anomalib/data/datamodules/image/tabular.py220 # Check if file existsCOMMENT
LOWsrc/anomalib/data/datamodules/image/tabular.py235 # Read the file and return Tabular datasetCOMMENT
LOWsrc/anomalib/data/utils/download.py223 # Read the file in chunks to avoid loading it all into memoryCOMMENT
LOWsrc/anomalib/data/utils/path.py225 # Check if the path is of an appropriate typeSTRING
LOWsrc/anomalib/data/utils/path.py229 # Check if the path is too longSTRING
LOWsrc/anomalib/data/utils/path.py234 # Check if the path contains non-printable charactersSTRING
LOWsrc/anomalib/data/utils/path.py246 # Check if the path existsSTRING
LOWsrc/anomalib/data/utils/path.py256 # 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
LOWsrc/anomalib/engine/engine.py289 # Check if category is None and set it to empty stringCOMMENT
LOWsrc/anomalib/engine/engine.py301 # 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
MEDIUMapplication/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.py311 # get zero-shot scoresCOMMENT
MEDIUMsrc/anomalib/models/image/winclip/torch_model.py315 # get few-shot scoresCOMMENT
MEDIUMsrc/anomalib/engine/engine.py360 # validation before predict is only necessary for zero-/few-shot modelsCOMMENT
MEDIUMsrc/anomalib/engine/engine.py414 # if the model is zero-shot or few-shot, we only need to run validate for normalization and thresholdingCOMMENT
MEDIUMsrc/anomalib/engine/engine.py524 # Test a zero-shot modelSTRING
MEDIUMsrc/anomalib/engine/engine.py742 # if the model is zero-shot or few-shot, we only need to run validate for normalization and thresholdingCOMMENT
Deep Nesting36 hits · 35 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.py183CODE
LOWsrc/anomalib/visualization/image/item_visualizer.py70CODE
LOWsrc/anomalib/callbacks/visualizer.py98CODE
LOWsrc/anomalib/callbacks/visualizer.py162CODE
LOWsrc/anomalib/deploy/inferencers/openvino_inferencer.py106CODE
LOW…es/tiled_ensemble/components/utils/helper_functions.py61CODE
LOW…es/tiled_ensemble/components/utils/helper_functions.py96CODE
LOWsrc/anomalib/utils/path.py230CODE
LOWsrc/anomalib/utils/path.py590CODE
LOWsrc/anomalib/models/__init__.py256CODE
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.py138CODE
LOWsrc/anomalib/models/video/ai_vad/clip/clip.py223CODE
LOW…models/image/uninet/components/attention_bottleneck.py303CODE
LOWsrc/anomalib/models/image/inp_former/lightning_model.py426CODE
LOWsrc/anomalib/models/image/glass/loss.py94CODE
LOW…/anomalib/models/image/glass/components/init_weight.py9CODE
LOW…anomalib/models/image/dinomaly/components/optimizer.py144CODE
LOW…/anomalib/models/components/feature_extractors/timm.py161CODE
LOW…/anomalib/models/components/backbone/resnet_decoder.py322CODE
LOWsrc/anomalib/cli/cli.py452CODE
LOWsrc/anomalib/cli/utils/installation.py149CODE
LOWsrc/anomalib/data/datasets/image/mvtecad2.py164CODE
LOWsrc/anomalib/data/datasets/base/image.py248CODE
LOWsrc/anomalib/data/datamodules/base/image.py182CODE
LOWsrc/anomalib/data/datamodules/base/image.py327CODE
LOWsrc/anomalib/data/utils/download.py253CODE
LOWsrc/anomalib/data/dataclasses/generic.py789CODE
LOWsrc/anomalib/engine/engine.py230CODE
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
Hallucination Indicators2 hits · 20 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
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.py85 ... api_key="YOUR_API_KEY"STRING
HIGHsrc/anomalib/models/image/vlm_ad/lightning_model.py90 ... 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
LOWapplication/backend/run.sh11# Usage:COMMENT
LOW…ary/tauri/src-tauri/install_scripts/macos_patch_dmg.sh23# Usage:COMMENT
Slop Phrases2 hits · 3 pts
SeverityFileLineSnippetContext
LOWapplication/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
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
Fake / Example Data2 hits · 2 pts
SeverityFileLineSnippetContext
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
TODO Padding1 hit · 2 pts
SeverityFileLineSnippetContext
LOWapplication/backend/src/services/training_service.py218 # TODO: implement Parquet datamodule in anomalib to avoid folder extraction stepCOMMENT