An anomaly detection library comprising state-of-the-art algorithms and features such as experiment management, hyper-parameter optimization, and edge inference.
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).
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.
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.
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.
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.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | tools/inference/gradio_inference.py | 45 | Parse args and open inferencer. Args: weight_path (Path): Path to model weights. metadata (Path | N | STRING |
| HIGH | application/backend/src/core/logging/utils.py | 176 | Validate job_id to prevent path traversal attacks. Args: job_id: The job identifier to validate Return | STRING |
| HIGH | application/backend/src/core/logging/utils.py | 197 | Get the path to the logs folder for a specific job. Args: job_id: Unique identifier for the job Return | STRING |
| HIGH | application/backend/src/core/logging/utils.py | 223 | Add a temporary log sink for a specific job. Captures all logs emitted during the context to logs/jobs/{job_id}.log | STRING |
| HIGH | application/backend/src/api/media_rest_validator.py | 18 | Validates a request to upload an image, if the file is not present, returns None. Args: re | STRING |
| HIGH | …plication/backend/src/api/endpoints/video_endpoints.py | 27 | Validate the uploaded video file. Args: file: The uploaded video file. Returns: The validated | STRING |
| HIGH | application/backend/src/webrtc/stream.py | 24 | Asynchronously receive the next video frame from the internal queue. This coroutine attempts to obtain | STRING |
| HIGH | application/backend/src/services/training_service.py | 183 | Execute CPU-intensive model training using anomalib. This synchronous function runs in a separate thread via as | STRING |
| HIGH | application/backend/src/services/video_service.py | 22 | Validate that a filename is safe and doesn't allow path traversal. Args: filename: The filename to val | STRING |
| HIGH | application/backend/src/services/video_service.py | 96 | Upload a video file to the server. Keeps the original filename. If a file with the same name exists, | STRING |
| HIGH | application/backend/src/services/video_service.py | 201 | Get a video by its filename. Args: project_id: ID of the project. filename: Na | STRING |
| HIGH | application/backend/src/services/model_service.py | 158 | Export 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.py | 38 | Factory method to create and initialize the service asynchronously. Args: config_changed_condition: | STRING |
| HIGH | application/backend/src/services/media_service.py | 194 | Create and persist a PNG thumbnail for a media item. Resizes the input image to fit within width_px x height_px | STRING |
| HIGH | src/anomalib/visualization/image/item_visualizer.py | 79 | Visualize specified fields of an ``ImageItem`` or ``NumpyImageItem`` with configurable options. This function creat | STRING |
| HIGH | src/anomalib/visualization/image/functional.py | 48 | Calculate a dynamic font size based on image dimensions. This function determines an appropriate font size based on | STRING |
| HIGH | src/anomalib/visualization/image/functional.py | 99 | Add text to an image with configurable parameters. This function adds text to a PIL Image with customizable font, s | STRING |
| HIGH | src/anomalib/visualization/image/functional.py | 188 | Apply a colormap to a single-channel PIL Image using torch and PIL. This function converts a grayscale image to a c | STRING |
| HIGH | src/anomalib/visualization/image/functional.py | 281 | Overlay an image on top of another image with a specified alpha value. This function takes a base image and overlay | STRING |
| HIGH | src/anomalib/visualization/image/functional.py | 346 | Overlay multiple images on top of a base image with specified transparency. This function overlays one or more imag | STRING |
| HIGH | src/anomalib/visualization/image/functional.py | 405 | Convert a NumPy array to a PIL Image with proper normalization. This function handles various NumPy array types and | STRING |
| HIGH | src/anomalib/visualization/image/functional.py | 490 | Visualize an image from various input types. This function handles different input types (file path, PIL Image, PyT | STRING |
| HIGH | src/anomalib/visualization/image/functional.py | 557 | Visualize an anomaly map by applying normalization and/or colormap. This function takes an anomaly map and converts | STRING |
| HIGH | src/anomalib/visualization/image/functional.py | 649 | Visualize a mask with different modes. This function takes a binary mask and visualizes it in different styles base | STRING |
| HIGH | src/anomalib/visualization/image/functional.py | 786 | Visualize a ground truth mask. This is a convenience wrapper around :func:`visualize_mask` specifically for gro | STRING |
| HIGH | src/anomalib/visualization/image/functional.py | 847 | Visualize a prediction mask. This is a convenience wrapper around :func:`visualize_mask` specifically for predi | STRING |
| HIGH | src/anomalib/visualization/image/functional.py | 901 | Create a grid of images using PIL. This function arranges a list of PIL images into a grid layout with a specified | STRING |
| HIGH | src/anomalib/visualization/image/functional.py | 968 | Get the keyword arguments for a visualization function. This function retrieves the default keyword arguments for a | STRING |
| HIGH | src/anomalib/visualization/image/functional.py | 1054 | Get the visualization function for a given field. This function retrieves the visualization function corresponding | STRING |
| HIGH | src/anomalib/visualization/image/visualizer.py | 193 | Visualize image predictions. This method visualizes anomaly detection predictions intelligently: - For | STRING |
| HIGH | src/anomalib/visualization/image/visualizer.py | 323 | Make the visualizer callable. This method allows the visualizer to be used as a callable object. It beh | STRING |
| HIGH | src/anomalib/metrics/anomaly_score_distribution.py | 142 | Generate a histogram of scores. Args: bins (int, optional): Number of histogram bins. Defaults to 3 | STRING |
| HIGH | src/anomalib/metrics/base.py | 195 | Create an Anomalib version of a torchmetrics metric. Factory function that creates a new class inheriting from both | STRING |
| HIGH | src/anomalib/metrics/pimo/pimo.py | 290 | Compute PIMO curves and AUPIMO scores. Args: force: If provided, override instance ``force`` settin | STRING |
| HIGH | src/anomalib/metrics/pimo/functional.py | 63 | Compute the Per-IMage Overlap (PIMO) curves. PIMO curves plot True Positive Rate (TPR) values for each image across | STRING |
| HIGH | src/anomalib/metrics/pimo/functional.py | 159 | Compute PIMO curves and their Area Under the Curve (AUPIMO) scores. AUPIMO scores are computed by integrating PIMO | STRING |
| HIGH | src/anomalib/metrics/pimo/functional.py | 340 | Return 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.py | 183 | Get linearly spaced thresholds between min and max anomaly scores. Args: anomaly_maps: Anomaly score maps | STRING |
| HIGH | src/anomalib/metrics/pimo/dataclasses.py | 289 | Create AUPIMO result from PIMO result. Args: pimo_result: Source PIMO result object. fp | STRING |
| HIGH | src/anomalib/post_processing/post_processor.py | 198 | Post-process model predictions. Args: predictions (InferenceBatch): Batch containing model predicti | STRING |
| HIGH | src/anomalib/post_processing/mebin_post_processor.py | 91 | Post-process model predictions using MEBin adaptive thresholding. When normalization statistics (``pixel_min`` | STRING |
| HIGH | src/anomalib/post_processing/one_class.py | 194 | Post-process model predictions. Args: predictions (InferenceBatch): Batch containing model predicti | STRING |
| HIGH | src/anomalib/callbacks/tiler_configuration.py | 44 | Callback for configuring image tiling operations. This callback configures the tiling operation for models that sup | STRING |
| HIGH | src/anomalib/callbacks/visualizer.py | 48 | Callback for visualization that is used internally by the Engine. This callback handles the generation and manageme | STRING |
| HIGH | src/anomalib/callbacks/nncf/utils.py | 243 | Compose NNCF config by selected options. This function merges different parts of the NNCF configuration based on en | STRING |
| HIGH | src/anomalib/callbacks/nncf/utils.py | 349 | Recursively merge two configuration dictionaries or lists. This function implements the following merge behavior: | STRING |
| HIGH | src/anomalib/deploy/inferencers/openvino_inferencer.py | 107 | Load OpenVINO model from file or bytes. Args: path (str | Path | tuple[bytes, bytes]): Path to mode | STRING |
| HIGH | src/anomalib/deploy/inferencers/openvino_inferencer.py | 197 | Run inference on an input image. Args: image (str | Path | np.ndarray | PILImage | torch.Tensor): I | STRING |
| HIGH | src/anomalib/deploy/inferencers/base_inferencer.py | 49 | Load a model from the specified path. Args: path (str | Path): Path to the model file. Ret | STRING |
| HIGH | src/anomalib/deploy/inferencers/base_inferencer.py | 64 | Pre-process an input image. Args: image (np.ndarray): Input image to pre-process. Returns: | STRING |
| HIGH | src/anomalib/deploy/inferencers/base_inferencer.py | 79 | Perform a forward pass on the model. Args: image (np.ndarray | torch.Tensor): Pre-processed input i | STRING |
| HIGH | src/anomalib/deploy/inferencers/base_inferencer.py | 94 | Post-process model predictions. Args: predictions (np.ndarray | torch.Tensor): Raw model prediction | STRING |
| HIGH | src/anomalib/deploy/inferencers/base_inferencer.py | 110 | Run inference on an image. Args: image (str | Path | np.ndarray | torch.Tensor): Input image. | STRING |
| HIGH | src/anomalib/deploy/inferencers/torch_inferencer.py | 128 | Get the device to use for inference. Args: device (str): Device to use for inference. | STRING |
| HIGH | src/anomalib/deploy/inferencers/torch_inferencer.py | 178 | Load the model checkpoint. Args: path (str | Path): Path to the PyTorch checkpoint file. R | STRING |
| HIGH | src/anomalib/deploy/inferencers/torch_inferencer.py | 224 | Load the PyTorch model. Args: path (str | Path): Path to the PyTorch model file. Returns: | STRING |
| HIGH | src/anomalib/pipelines/benchmark/pipeline.py | 92 | Set up the appropriate runners for benchmark execution. This method configures either serial or parallel runner | STRING |
| HIGH | src/anomalib/pipelines/components/runners/serial.py | 77 | Execute jobs sequentially and gather results. This method runs each job one at a time, collecting results and h | STRING |
| HIGH | src/anomalib/utils/logging.py | 62 | Hide output of a function by redirecting stdout and stderr. This decorator captures and discards any output that wo | STRING |
| HIGH | src/anomalib/utils/config.py | 26 | Convert all path values to strings recursively in a configuration object. This function traverses a configuration o | STRING |
| 249 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/conftest.py | 112 | def pytest_collection_modifyitems(items: list[pytest.Item]) -> None: | CODE |
| LOW | tests/unit/visualization/image/test_functional.py | 23 | def test_grayscale_conversion(rng: np.random.Generator) -> None: | CODE |
| LOW | tests/unit/visualization/image/test_functional.py | 81 | def test_singleton_dimensions(rng: np.random.Generator) -> None: | CODE |
| LOW | tests/unit/metrics/test_adaptive_threshold.py | 45 | def test_no_anomalous_samples_warning(caplog: pytest.LogCaptureFixture) -> None: | CODE |
| LOW | tests/unit/metrics/test_adaptive_threshold.py | 61 | def test_no_normal_samples_warning(caplog: pytest.LogCaptureFixture) -> None: | CODE |
| LOW | tests/unit/metrics/test_adaptive_threshold.py | 89 | def test_compute_returns_expected_threshold( | CODE |
| LOW | tests/unit/metrics/test_adaptive_threshold.py | 112 | def test_no_anomalous_samples_warning(caplog: pytest.LogCaptureFixture) -> None: | CODE |
| LOW | tests/unit/metrics/test_adaptive_threshold.py | 127 | def test_no_anomalous_samples_returns_max_threshold(caplog: pytest.LogCaptureFixture) -> None: | CODE |
| LOW | tests/unit/metrics/test_adaptive_threshold.py | 142 | def test_no_normal_samples_warning(caplog: pytest.LogCaptureFixture) -> None: | CODE |
| LOW | tests/unit/metrics/test_adaptive_threshold.py | 159 | def test_anomalous_samples_no_warning(caplog: pytest.LogCaptureFixture) -> None: | CODE |
| LOW | tests/unit/metrics/test_binning.py | 11 | def test_thresholds_between_min_and_max() -> None: | CODE |
| LOW | tests/unit/metrics/test_pro.py | 74 | def test_connected_component_labeling() -> None: | CODE |
| LOW | tests/unit/metrics/test_min_max.py | 30 | def test_update_multiple_batches() -> None: | CODE |
| LOW | tests/unit/metrics/test_anomalib_metric.py | 28 | def test_create_anomalib_metric_function() -> None: | CODE |
| LOW | tests/unit/metrics/test_anomalib_metric.py | 35 | def test_create_anomalib_metric_subclass() -> None: | CODE |
| LOW | tests/unit/metrics/test_anomalib_metric.py | 49 | def test_raises_error_on_missing_fields() -> None: | CODE |
| LOW | tests/unit/metrics/test_anomalib_metric.py | 61 | def test_raises_error_when_field_is_none() -> None: | CODE |
| LOW | tests/unit/metrics/test_anomalib_metric.py | 73 | def test_no_error_on_missing_fields() -> None: | CODE |
| LOW | tests/unit/metrics/test_anomalib_metric.py | 85 | def test_no_error_when_field_is_none() -> None: | CODE |
| LOW | …/unit/metrics/pimo/test_binary_classification_curve.py | 314 | def test__binclf_multiple_curves( | CODE |
| LOW | …/unit/metrics/pimo/test_binary_classification_curve.py | 330 | def test_binclf_multiple_curves( | CODE |
| LOW | …/unit/metrics/pimo/test_binary_classification_curve.py | 362 | def test_binclf_multiple_curves_validations(args: list, kwargs: dict, exception: Exception) -> None: | CODE |
| LOW | …/unit/metrics/pimo/test_binary_classification_curve.py | 368 | def test_per_image_binclf_curve( | CODE |
| LOW | …/unit/metrics/pimo/test_binary_classification_curve.py | 397 | def test_per_image_binclf_curve_validations(args: list, kwargs: dict, exception: Exception) -> None: | CODE |
| LOW | …/unit/metrics/pimo/test_binary_classification_curve.py | 403 | def test_per_image_binclf_curve_validations_alt(args: list, kwargs: dict, exception: Exception) -> None: | CODE |
| LOW | tests/unit/metrics/threshold/test_threshold.py | 16 | def test_threshold_abstract_methods() -> None: | CODE |
| LOW⚡ | tests/unit/metrics/threshold/test_threshold.py | 27 | def test_threshold_initialization() -> None: | CODE |
| LOW⚡ | tests/unit/metrics/threshold/test_threshold.py | 37 | def test_base_threshold_inheritance() -> None: | CODE |
| LOW⚡ | tests/unit/metrics/threshold/test_threshold.py | 43 | def test_base_threshold_abstract_methods() -> None: | CODE |
| LOW | tests/unit/post_processing/test_mebin_post_processor.py | 64 | def test_small_region_removed() -> None: | CODE |
| LOW | tests/unit/post_processing/test_mebin_post_processor.py | 72 | def test_large_region_survives() -> None: | CODE |
| LOW | tests/unit/post_processing/test_mebin_post_processor.py | 84 | def test_clear_stable_interval() -> None: | CODE |
| LOW | tests/unit/post_processing/test_mebin_post_processor.py | 111 | def test_multiple_plateaus_picks_longest() -> None: | CODE |
| LOW⚡ | tests/unit/post_processing/test_mebin_post_processor.py | 139 | def test_uniform_maps_no_anomaly() -> None: | CODE |
| LOW⚡ | tests/unit/post_processing/test_mebin_post_processor.py | 146 | def test_clear_anomaly_detected() -> None: | CODE |
| LOW | tests/unit/post_processing/test_mebin_post_processor.py | 186 | def test_initialization_default_params() -> None: | CODE |
| LOW | tests/unit/post_processing/test_mebin_post_processor.py | 203 | def test_initialization_custom_params( | CODE |
| LOW | tests/unit/post_processing/test_mebin_post_processor.py | 222 | def test_inherits_post_processor() -> None: | CODE |
| LOW | tests/unit/post_processing/test_mebin_post_processor.py | 230 | def test_forward_produces_valid_output() -> None: | CODE |
| LOW⚡ | tests/unit/post_processing/test_mebin_post_processor.py | 247 | def test_forward_without_pred_score() -> None: | CODE |
| LOW⚡ | tests/unit/post_processing/test_mebin_post_processor.py | 256 | def test_forward_raises_on_missing_inputs() -> None: | CODE |
| LOW⚡ | tests/unit/post_processing/test_mebin_post_processor.py | 264 | def test_forward_no_thresholding() -> None: | CODE |
| LOW | tests/unit/post_processing/test_mebin_post_processor.py | 292 | def test_post_process_batch_with_normalization() -> None: | CODE |
| LOW | tests/unit/post_processing/test_mebin_post_processor.py | 314 | def test_on_test_batch_end_calls_post_process() -> None: | CODE |
| LOW | tests/unit/post_processing/test_mebin_post_processor.py | 327 | def test_forward_pred_score_only_with_normalization() -> None: | CODE |
| LOW | tests/unit/post_processing/test_post_processor.py | 83 | def test_pixel_threshold_matching() -> None: | CODE |
| LOW | tests/unit/post_processing/test_post_processor.py | 97 | def test_image_threshold_matching() -> None: | CODE |
| LOW | tests/unit/deploy/test_onnx_export.py | 51 | def test_forward_resamples_without_antialiasing(monkeypatch: pytest.MonkeyPatch) -> None: | CODE |
| LOW | tests/unit/deploy/test_inferencer.py | 158 | def test_inference_similarity( | CODE |
| LOW | tests/unit/deploy/test_ov_export.py | 43 | def test_export_openvino_no_compression(setup_model_and_data: tuple) -> None: | CODE |
| LOW | tests/unit/deploy/test_ov_export.py | 334 | def test_export_openvino_max_drop_warning_wrong_compression( | CODE |
| LOW | tests/unit/deploy/test_ov_export.py | 365 | def test_export_openvino_max_drop_large_value_warning( | CODE |
| LOW | tests/unit/deploy/test_ov_export.py | 400 | def test_export_openvino_with_ov_kwargs(setup_model_and_data: tuple) -> None: | CODE |
| LOW | tests/unit/pipelines/tiled_ensemble/test_components.py | 55 | def test_label_and_score_merging(get_merging_mechanism: PredictionMergingMechanism) -> None: | CODE |
| LOW | …unit/pipelines/tiled_ensemble/test_helper_functions.py | 27 | def test_ensemble_datamodule_collate_attr(get_ensemble_config: dict, get_tiler: EnsembleTiler) -> None: | CODE |
| LOW | …unit/pipelines/tiled_ensemble/test_helper_functions.py | 36 | def test_ensemble_datamodule_img_size(get_ensemble_config: dict, get_tiler: EnsembleTiler) -> None: | CODE |
| LOW | tests/unit/pipelines/tiled_ensemble/test_tiler.py | 44 | def test_basic_tile_for_ensemble(input_shape: torch.Size, config: dict, expected_shape: torch.Size) -> None: | CODE |
| LOW | tests/unit/pipelines/tiled_ensemble/test_tiler.py | 65 | def test_basic_tile_reconstruction(input_shape: torch.Size, config: dict) -> None: | CODE |
| LOW | tests/unit/pipelines/tiled_ensemble/test_tiler.py | 87 | def test_untile_different_instance(input_shape: torch.Size, config: dict) -> None: | CODE |
| LOW | tests/unit/utils/test_visualizer.py | 19 | def test_visualize_fully_defected_masks() -> None: | CODE |
| 677 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tools/benchmark_mebin.py | 16 | CODE | |
| LOW | tests/unit/models/image/l2bt/test_l2bt.py | 6 | CODE | |
| LOW | tests/unit/models/image/cfm/test_cfm.py | 6 | CODE | |
| LOW | tests/unit/models/image/cfm/test_cfm.py | 21 | CODE | |
| LOW | tests/unit/data/datamodule/base/__init__.py | 6 | CODE | |
| LOW | tests/unit/data/datamodule/base/__init__.py | 7 | CODE | |
| LOW | tests/unit/data/datamodule/base/__init__.py | 8 | CODE | |
| LOW | tests/unit/data/utils/test_enum_compat.py | 15 | CODE | |
| LOW | application/backend/src/core/__init__.py | 4 | CODE | |
| LOW | application/backend/src/core/__init__.py | 5 | CODE | |
| LOW | application/backend/src/core/mjpeg_broadcaster.py | 6 | CODE | |
| LOW | application/backend/src/core/logging/__init__.py | 4 | CODE | |
| LOW | application/backend/src/core/logging/__init__.py | 5 | CODE | |
| LOW | application/backend/src/core/logging/__init__.py | 5 | CODE | |
| LOW | application/backend/src/core/logging/__init__.py | 5 | CODE | |
| LOW | application/backend/src/core/logging/__init__.py | 6 | CODE | |
| LOW | application/backend/src/core/logging/setup.py | 22 | CODE | |
| LOW | application/backend/src/utils/short_uuid.py | 4 | CODE | |
| LOW | application/backend/src/utils/__init__.py | 4 | CODE | |
| LOW | application/backend/src/utils/__init__.py | 5 | CODE | |
| LOW | application/backend/src/utils/callbacks.py | 6 | CODE | |
| LOW | application/backend/src/repositories/__init__.py | 4 | CODE | |
| LOW | application/backend/src/repositories/__init__.py | 5 | CODE | |
| LOW | application/backend/src/repositories/__init__.py | 6 | CODE | |
| LOW | application/backend/src/repositories/__init__.py | 7 | CODE | |
| LOW | application/backend/src/repositories/__init__.py | 8 | CODE | |
| LOW | application/backend/src/repositories/__init__.py | 9 | CODE | |
| LOW | application/backend/src/repositories/__init__.py | 10 | CODE | |
| LOW | application/backend/src/repositories/__init__.py | 11 | CODE | |
| LOW | application/backend/src/repositories/binary_repo.py | 4 | CODE | |
| LOW | …plication/backend/src/repositories/mappers/__init__.py | 4 | CODE | |
| LOW | …plication/backend/src/repositories/mappers/__init__.py | 5 | CODE | |
| LOW | …plication/backend/src/repositories/mappers/__init__.py | 6 | CODE | |
| LOW | …plication/backend/src/repositories/mappers/__init__.py | 7 | CODE | |
| LOW | …plication/backend/src/repositories/mappers/__init__.py | 8 | CODE | |
| LOW | …plication/backend/src/repositories/mappers/__init__.py | 9 | CODE | |
| LOW | application/backend/src/db/__init__.py | 4 | CODE | |
| LOW | application/backend/src/db/__init__.py | 4 | CODE | |
| LOW | application/backend/src/db/__init__.py | 4 | CODE | |
| LOW | application/backend/src/db/__init__.py | 4 | CODE | |
| LOW | application/backend/src/db/__init__.py | 5 | CODE | |
| LOW | application/backend/src/api/dependencies/__init__.py | 4 | CODE | |
| LOW | application/backend/src/api/dependencies/__init__.py | 4 | CODE | |
| LOW | application/backend/src/api/dependencies/__init__.py | 4 | CODE | |
| LOW | application/backend/src/api/dependencies/__init__.py | 4 | CODE | |
| LOW | application/backend/src/api/dependencies/__init__.py | 4 | CODE | |
| LOW | application/backend/src/api/dependencies/__init__.py | 4 | CODE | |
| LOW | application/backend/src/api/dependencies/__init__.py | 4 | CODE | |
| LOW | application/backend/src/api/dependencies/__init__.py | 4 | CODE | |
| LOW | application/backend/src/api/dependencies/__init__.py | 4 | CODE | |
| LOW | application/backend/src/api/dependencies/__init__.py | 4 | CODE | |
| LOW | application/backend/src/api/dependencies/__init__.py | 4 | CODE | |
| LOW | application/backend/src/api/dependencies/__init__.py | 4 | CODE | |
| LOW | application/backend/src/api/dependencies/__init__.py | 4 | CODE | |
| LOW | application/backend/src/api/dependencies/__init__.py | 4 | CODE | |
| LOW | application/backend/src/api/dependencies/__init__.py | 4 | CODE | |
| LOW | application/backend/src/api/dependencies/__init__.py | 4 | CODE | |
| LOW | application/backend/src/api/dependencies/__init__.py | 4 | CODE | |
| LOW | application/backend/src/api/dependencies/__init__.py | 4 | CODE | |
| LOW | application/backend/src/api/dependencies/__init__.py | 4 | CODE | |
| 567 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | tests/unit/data/validators/torch/test_depth.py | 0 | test validation of a ground truth label with invalid type. | STRING |
| HIGH | tests/unit/data/validators/torch/test_image.py | 0 | test validation of a ground truth label with invalid type. | STRING |
| HIGH | tests/unit/data/validators/torch/test_video.py | 0 | test validation of a ground truth label with invalid type. | STRING |
| HIGH | tests/unit/data/validators/numpy/test_image.py | 0 | test validation of a ground truth label with invalid type. | STRING |
| HIGH | tests/unit/data/validators/torch/test_depth.py | 0 | test validation of a ground truth mask with invalid type. | STRING |
| HIGH | tests/unit/data/validators/torch/test_image.py | 0 | test validation of a ground truth mask with invalid type. | STRING |
| HIGH | tests/unit/data/validators/torch/test_video.py | 0 | test validation of a ground truth mask with invalid type. | STRING |
| HIGH | tests/unit/data/validators/numpy/test_image.py | 0 | test validation of a ground truth mask with invalid type. | STRING |
| HIGH | tests/unit/data/validators/torch/test_depth.py | 0 | test validation of a ground truth mask with invalid shape. | STRING |
| HIGH | tests/unit/data/validators/torch/test_image.py | 0 | test validation of a ground truth mask with invalid shape. | STRING |
| HIGH | tests/unit/data/validators/torch/test_video.py | 0 | test validation of a ground truth mask with invalid shape. | STRING |
| HIGH | tests/unit/data/validators/numpy/test_image.py | 0 | test validation of a ground truth mask with invalid shape. | STRING |
| HIGH | tests/unit/data/validators/torch/test_depth.py | 0 | test validation of an anomaly map with invalid type. | STRING |
| HIGH | tests/unit/data/validators/torch/test_image.py | 0 | test validation of an anomaly map with invalid type. | STRING |
| HIGH | tests/unit/data/validators/torch/test_video.py | 0 | test validation of an anomaly map with invalid type. | STRING |
| HIGH | tests/unit/data/validators/torch/test_depth.py | 0 | test validation of an anomaly map batch with invalid shape. | STRING |
| HIGH | tests/unit/data/validators/torch/test_image.py | 0 | test validation of an anomaly map batch with invalid shape. | STRING |
| HIGH | tests/unit/data/validators/torch/test_video.py | 0 | test validation of an anomaly map batch with invalid shape. | STRING |
| HIGH | tests/unit/data/validators/torch/test_depth.py | 0 | test validation of ground truth labels with invalid type. | STRING |
| HIGH | tests/unit/data/validators/torch/test_image.py | 0 | test validation of ground truth labels with invalid type. | STRING |
| HIGH | tests/unit/data/validators/torch/test_video.py | 0 | test validation of ground truth labels with invalid type. | STRING |
| HIGH | tests/unit/data/validators/numpy/test_video.py | 0 | test validation of ground truth labels with invalid type. | STRING |
| HIGH | tests/unit/data/validators/torch/test_depth.py | 0 | test validation of ground truth labels with invalid dimensions. | STRING |
| HIGH | tests/unit/data/validators/torch/test_image.py | 0 | test validation of ground truth labels with invalid dimensions. | STRING |
| HIGH | tests/unit/data/validators/numpy/test_image.py | 0 | test validation of ground truth labels with invalid dimensions. | STRING |
| HIGH | tests/unit/data/validators/numpy/test_video.py | 0 | test validation of ground truth labels with invalid dimensions. | STRING |
| HIGH | tests/unit/data/validators/torch/test_depth.py | 0 | test validation of ground truth masks with invalid type. | STRING |
| HIGH | tests/unit/data/validators/torch/test_image.py | 0 | test validation of ground truth masks with invalid type. | STRING |
| HIGH | tests/unit/data/validators/torch/test_video.py | 0 | test validation of ground truth masks with invalid type. | STRING |
| HIGH | tests/unit/data/validators/numpy/test_image.py | 0 | test validation of ground truth masks with invalid type. | STRING |
| HIGH | tests/unit/data/validators/torch/test_depth.py | 0 | test validation of ground truth masks with invalid dimensions. | STRING |
| HIGH | tests/unit/data/validators/torch/test_image.py | 0 | test validation of ground truth masks with invalid dimensions. | STRING |
| HIGH | tests/unit/data/validators/numpy/test_image.py | 0 | test validation of ground truth masks with invalid dimensions. | STRING |
| HIGH | tests/unit/data/validators/torch/test_depth.py | 0 | test validation of prediction labels with invalid shape. | STRING |
| HIGH | tests/unit/data/validators/torch/test_image.py | 0 | test validation of prediction labels with invalid shape. | STRING |
| HIGH | tests/unit/data/validators/torch/test_video.py | 0 | test validation of prediction labels with invalid shape. | STRING |
| HIGH | tests/unit/data/validators/torch/test_image.py | 0 | test validation of an image batch with invalid number of channels. | STRING |
| HIGH | tests/unit/data/validators/numpy/test_image.py | 0 | test validation of an image batch with invalid number of channels. | STRING |
| HIGH | tests/unit/data/validators/numpy/test_video.py | 0 | test validation of an image batch with invalid number of channels. | STRING |
| HIGH | tests/unit/data/validators/torch/test_image.py | 0 | test validation of an image batch with invalid type. | STRING |
| HIGH | tests/unit/data/validators/numpy/test_image.py | 0 | test validation of an image batch with invalid type. | STRING |
| HIGH | tests/unit/data/validators/numpy/test_video.py | 0 | test validation of an image batch with invalid type. | STRING |
| HIGH | tests/integration/tools/test_lightning_entrypoint.py | 0 | this tests whether the entrypoints run without errors without quantitative measure of the outputs. | STRING |
| HIGH | tests/integration/tools/test_torch_entrypoint.py | 0 | this tests whether the entrypoints run without errors without quantitative measure of the outputs. | STRING |
| HIGH | tests/integration/tools/test_openvino_entrypoint.py | 0 | this tests whether the entrypoints run without errors without quantitative measure of the outputs. | STRING |
| HIGH | …les/api/01_getting_started/basic_openvino_inference.py | 0 | getting started with anomalib inference using the python api. this example shows how to perform inference on a trained m | STRING |
| HIGH | …amples/api/01_getting_started/basic_torch_inference.py | 0 | getting started with anomalib inference using the python api. this example shows how to perform inference on a trained m | STRING |
| HIGH | examples/api/01_getting_started/basic_inference.py | 0 | getting started with anomalib inference using the python api. this example shows how to perform inference on a trained m | STRING |
| HIGH | …ib/pipelines/tiled_ensemble/components/thresholding.py | 0 | nothing to collect in this job. returns: list[any]: unchanged list of predictions. | STRING |
| HIGH | …malib/pipelines/tiled_ensemble/components/smoothing.py | 0 | nothing to collect in this job. returns: list[any]: unchanged list of predictions. | STRING |
| HIGH | …b/pipelines/tiled_ensemble/components/normalization.py | 0 | nothing to collect in this job. returns: list[any]: unchanged list of predictions. | STRING |
| HIGH | …nomalib/pipelines/tiled_ensemble/components/merging.py | 0 | nothing to collect in this job. returns: list[any]: unchanged list of predictions. | STRING |
| HIGH | …lines/tiled_ensemble/components/metrics_calculation.py | 0 | nothing to collect in this job. returns: list[any]: unchanged list of predictions. | STRING |
| HIGH | …b/pipelines/tiled_ensemble/components/visualization.py | 0 | nothing to collect in this job. returns: list[any]: unchanged list of predictions. | STRING |
| HIGH | src/anomalib/models/video/fuvas/lightning_model.py | 0 | get the learning type of the model. returns: learningtype: the model uses one-class learning. | STRING |
| HIGH | src/anomalib/models/image/stfpm/lightning_model.py | 0 | get the learning type of the model. returns: learningtype: the model uses one-class learning. | STRING |
| HIGH | src/anomalib/models/image/l2bt/lightning_model.py | 0 | get the learning type of the model. returns: learningtype: the model uses one-class learning. | STRING |
| HIGH | src/anomalib/models/image/dfm/lightning_model.py | 0 | get the learning type of the model. returns: learningtype: the model uses one-class learning. | STRING |
| HIGH | …b/models/image/reverse_distillation/lightning_model.py | 0 | return the learning type of the model. returns: learningtype: learning type of the model. | STRING |
| HIGH | src/anomalib/models/image/fastflow/lightning_model.py | 0 | return the learning type of the model. returns: learningtype: learning type of the model. | STRING |
| 28 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tools/benchmark_mebin.py | 30 | logger = logging.getLogger(__name__) | CODE |
| LOW | tools/experimental/benchmarking/benchmark.py | 10 | logger = logging.getLogger(__name__) | CODE |
| LOW | tools/inference/torch_inference.py | 21 | logger = logging.getLogger(__name__) | CODE |
| LOW | tools/inference/openvino_inference.py | 21 | logger = logging.getLogger(__name__) | CODE |
| LOW | tests/unit/metrics/aupro/aupro_reference.py | 21 | logger = logging.getLogger(__name__) | CODE |
| LOW | tests/unit/data/datamodule/base/__init__.py | 10 | __all__ = ["_TestAnomalibDepthDatamodule", "_TestAnomalibImageDatamodule", "_TestAnomalibVideoDatamodule"] | CODE |
| LOW | application/backend/src/core/__init__.py | 7 | __all__ = ["Scheduler", "lifespan"] | CODE |
| LOW | application/backend/src/core/logging/__init__.py | 8 | __all__ = ["CaptureOutput", "LogConfig", "global_log_config", "setup_logging", "setup_uvicorn_logging"] | CODE |
| LOW | application/backend/src/utils/__init__.py | 7 | __all__ = ["Singleton", "flush_queue"] | CODE |
| LOW | application/backend/src/utils/callbacks.py | 47 | def set_cancel_training_event(self) -> None: | CODE |
| LOW | application/backend/src/repositories/project_repo.py | 39 | async def update_dataset_timestamp(self, project_id: str | ShortUUID) -> None: | CODE |
| LOW | application/backend/src/repositories/__init__.py | 13 | __all__ = [ | CODE |
| LOW | …plication/backend/src/repositories/mappers/__init__.py | 11 | __all__ = [ | CODE |
| LOW | application/backend/src/db/__init__.py | 7 | __all__ = ["MigrationManager", "get_async_db_session", "get_async_db_session_ctx", "init_models", "sync_engine"] | CODE |
| LOW | application/backend/src/db/engine.py | 42 | def set_sqlite_pragma(dbapi_connection: Connection, _: Any) -> None: | CODE |
| LOW | application/backend/src/api/dependencies/__init__.py | 29 | __all__ = [ | CODE |
| LOW | application/backend/src/workers/__init__.py | 9 | __all__ = [ | CODE |
| LOW | application/backend/src/pydantic_models/__init__.py | 17 | __all__ = [ | CODE |
| LOW | application/backend/src/webrtc/sdp_handler.py | 10 | logger = logging.getLogger(__name__) | CODE |
| LOW | application/backend/src/webrtc/manager.py | 81 | def set_input(self, data: InputData) -> None: | CODE |
| LOW | application/backend/src/services/__init__.py | 23 | __all__ = [ | CODE |
| LOW | application/backend/src/services/job_service.py | 22 | logger = logging.getLogger(__name__) | CODE |
| LOW | application/backend/src/services/metrics_service.py | 43 | def update_max_age(self, max_age_seconds: int) -> None: | CODE |
| LOW | …plication/backend/src/services/dispatchers/__init__.py | 10 | __all__ = ["Dispatcher", "FolderDispatcher", "MqttDispatcher", "WebhookDispatcher"] | CODE |
| LOW | src/anomalib/visualization/__init__.py | 36 | __all__ = [ | CODE |
| LOW | src/anomalib/visualization/image/item_visualizer.py | 47 | logger = logging.getLogger(__name__) | CODE |
| LOW | src/anomalib/visualization/image/__init__.py | 37 | __all__ = [ | CODE |
| LOW | src/anomalib/visualization/image/functional.py | 44 | logger = logging.getLogger(__name__) | CODE |
| LOW | src/anomalib/metrics/__init__.py | 67 | __all__ = [ | CODE |
| LOW | src/anomalib/metrics/evaluator.py | 65 | logger = logging.getLogger(__name__) | CODE |
| LOW | src/anomalib/metrics/pimo/__init__.py | 31 | __all__ = [ | CODE |
| LOW | src/anomalib/metrics/pimo/pimo.py | 67 | logger = logging.getLogger(__name__) | CODE |
| LOW | src/anomalib/metrics/pimo/functional.py | 55 | logger = logging.getLogger(__name__) | CODE |
| LOW | src/anomalib/metrics/pimo/utils.py | 26 | logger = logging.getLogger(__name__) | CODE |
| LOW | src/anomalib/metrics/pimo/_validate.py | 40 | logger = logging.getLogger(__name__) | CODE |
| LOW | …c/anomalib/metrics/pimo/binary_classification_curve.py | 43 | logger = logging.getLogger(__name__) | CODE |
| LOW | src/anomalib/metrics/threshold/__init__.py | 27 | __all__ = ["Threshold", "F1AdaptiveThreshold", "ManualThreshold"] | CODE |
| LOW | src/anomalib/metrics/threshold/f1_adaptive_threshold.py | 48 | logger = logging.getLogger(__name__) | CODE |
| LOW | src/anomalib/post_processing/__init__.py | 25 | __all__ = ["PostProcessor", "MEBinPostProcessor"] | CODE |
| LOW | src/anomalib/loggers/__init__.py | 32 | __all__ = ["configure_logger"] | CODE |
| LOW | src/anomalib/callbacks/timer.py | 33 | logger = logging.getLogger(__name__) | CODE |
| LOW | src/anomalib/callbacks/__init__.py | 58 | __all__ = [ | CODE |
| LOW | src/anomalib/callbacks/__init__.py | 68 | logger = logging.getLogger(__name__) | CODE |
| LOW | src/anomalib/callbacks/model_loader.py | 33 | logger = logging.getLogger(__name__) | CODE |
| LOW | src/anomalib/callbacks/tiler_configuration.py | 40 | __all__ = ["TilerConfigurationCallback"] | CODE |
| LOW | src/anomalib/callbacks/visualizer.py | 44 | logger = logging.getLogger(__name__) | CODE |
| LOW | src/anomalib/deploy/__init__.py | 31 | __all__ = ["Inferencer", "OpenVINOInferencer", "TorchInferencer", "ExportType", "CompressionType"] | CODE |
| LOW | src/anomalib/deploy/inferencers/__init__.py | 23 | __all__ = ["Inferencer", "OpenVINOInferencer", "TorchInferencer"] | CODE |
| LOW | src/anomalib/deploy/inferencers/torch_inferencer.py | 70 | logger = logging.getLogger(__name__) | CODE |
| LOW | src/anomalib/pipelines/__init__.py | 31 | __all__ = ["Benchmark"] | CODE |
| LOW | src/anomalib/pipelines/benchmark/job.py | 52 | logger = logging.getLogger(__name__) | CODE |
| LOW | src/anomalib/pipelines/benchmark/__init__.py | 27 | __all__ = ["Benchmark"] | CODE |
| LOW | src/anomalib/pipelines/tiled_ensemble/train_pipeline.py | 30 | logger = logging.getLogger(__name__) | CODE |
| LOW | src/anomalib/pipelines/tiled_ensemble/__init__.py | 41 | __all__ = [ | CODE |
| LOW | src/anomalib/pipelines/tiled_ensemble/test_pipeline.py | 25 | logger = logging.getLogger(__name__) | CODE |
| LOW | …pelines/tiled_ensemble/components/stats_calculation.py | 18 | logger = logging.getLogger(__name__) | CODE |
| LOW | …/pipelines/tiled_ensemble/components/model_training.py | 27 | logger = logging.getLogger(__name__) | CODE |
| LOW | …omalib/pipelines/tiled_ensemble/components/__init__.py | 38 | __all__ = [ | CODE |
| LOW | …ib/pipelines/tiled_ensemble/components/thresholding.py | 19 | logger = logging.getLogger(__name__) | CODE |
| LOW | …b/pipelines/tiled_ensemble/components/visualization.py | 23 | logger = logging.getLogger(__name__) | CODE |
| 208 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | …/unit/metrics/pimo/test_binary_classification_curve.py | 298 | # ================================================================================================== | COMMENT |
| MEDIUM | …/unit/metrics/pimo/test_binary_classification_curve.py | 326 | # ================================================================================================== | COMMENT |
| MEDIUM⚡ | tests/unit/data/datamodule/image/test_kaputt.py | 44 | # ------------------------------------------------------------------ | COMMENT |
| MEDIUM⚡ | tests/unit/data/datamodule/image/test_kaputt.py | 47 | # ------------------------------------------------------------------ | COMMENT |
| MEDIUM⚡ | tests/unit/data/datamodule/image/test_kaputt.py | 99 | # ------------------------------------------------------------------ | COMMENT |
| MEDIUM⚡ | tests/unit/data/datamodule/image/test_kaputt.py | 101 | # ------------------------------------------------------------------ | COMMENT |
| MEDIUM⚡ | tests/unit/data/datamodule/image/test_kaputt.py | 165 | # ------------------------------------------------------------------ | COMMENT |
| MEDIUM⚡ | tests/unit/data/datamodule/image/test_kaputt.py | 167 | # ------------------------------------------------------------------ | COMMENT |
| MEDIUM⚡ | tests/unit/data/datamodule/image/test_kaputt.py | 182 | # ------------------------------------------------------------------ | COMMENT |
| MEDIUM⚡ | tests/unit/data/datamodule/image/test_kaputt.py | 184 | # ------------------------------------------------------------------ | COMMENT |
| MEDIUM⚡ | tests/unit/data/datamodule/image/test_kaputt.py | 254 | # ------------------------------------------------------------------ | COMMENT |
| MEDIUM⚡ | tests/unit/data/datamodule/image/test_kaputt.py | 256 | # ------------------------------------------------------------------ | COMMENT |
| MEDIUM | examples/cli/04_advanced/custom_components.sh | 7 | # --------------------------------------- | COMMENT |
| MEDIUM | examples/cli/04_advanced/custom_pipeline.sh | 7 | # ------------------------------------- | COMMENT |
| MEDIUM | examples/cli/04_advanced/loggers.sh | 7 | # ------------------------------- | COMMENT |
| MEDIUM⚡ | examples/cli/05_pipelines/complete_pipeline.sh | 7 | # ------------------------------ | COMMENT |
| MEDIUM⚡ | examples/cli/05_pipelines/complete_pipeline.sh | 15 | # ---------------- | COMMENT |
| MEDIUM⚡ | examples/cli/05_pipelines/complete_pipeline.sh | 25 | # -------------- | COMMENT |
| MEDIUM⚡ | examples/cli/05_pipelines/complete_pipeline.sh | 35 | # ---------------- | COMMENT |
| MEDIUM | examples/cli/05_pipelines/complete_pipeline.sh | 55 | # ---------------- | COMMENT |
| MEDIUM | examples/cli/03_models/patchcore.sh | 7 | # ------------------------------------ | COMMENT |
| MEDIUM | examples/cli/03_models/efficient_ad.sh | 7 | # -------------------------------------- | COMMENT |
| MEDIUM | examples/cli/03_models/padim.sh | 7 | # --------------------------------- | COMMENT |
| MEDIUM | examples/cli/01_getting_started/basic_training.sh | 7 | # ------------------------------------ | COMMENT |
| MEDIUM | examples/cli/02_data/mvtec.sh | 7 | # ----------------------------------- | COMMENT |
| MEDIUM | examples/cli/02_data/folder.sh | 7 | # ------------------------------------------ | COMMENT |
| MEDIUM | examples/api/05_pipelines/complete_pipeline.py | 20 | # ---------------- | COMMENT |
| MEDIUM | examples/api/05_pipelines/complete_pipeline.py | 43 | # ---------------- | COMMENT |
| MEDIUM | examples/api/05_pipelines/complete_pipeline.py | 71 | # -------------- | COMMENT |
| MEDIUM⚡ | application/backend/run.sh | 4 | # ----------------------------------------------------------------------------- | COMMENT |
| MEDIUM | application/backend/run.sh | 23 | # ----------------------------------------------------------------------------- | COMMENT |
| MEDIUM | application/backend/src/core/model_metadata.yaml | 24 | # ============================================================================= | COMMENT |
| MEDIUM | application/backend/src/core/model_metadata.yaml | 26 | # ============================================================================= | COMMENT |
| MEDIUM | application/backend/src/core/model_metadata.yaml | 58 | # ============================================================================= | COMMENT |
| MEDIUM | application/backend/src/core/model_metadata.yaml | 60 | # ============================================================================= | COMMENT |
| MEDIUM | application/backend/src/core/model_metadata.yaml | 103 | # ============================================================================= | COMMENT |
| MEDIUM | application/backend/src/core/model_metadata.yaml | 105 | # ============================================================================= | COMMENT |
| MEDIUM | application/backend/src/core/model_metadata.yaml | 147 | # ============================================================================= | COMMENT |
| MEDIUM | application/backend/src/core/model_metadata.yaml | 149 | # ============================================================================= | COMMENT |
| MEDIUM | application/backend/src/core/model_metadata.yaml | 190 | # ============================================================================= | COMMENT |
| MEDIUM | application/backend/src/core/model_metadata.yaml | 192 | # ============================================================================= | COMMENT |
| MEDIUM | application/backend/src/core/model_metadata.yaml | 224 | # ============================================================================= | COMMENT |
| MEDIUM | application/backend/src/core/model_metadata.yaml | 226 | # ============================================================================= | COMMENT |
| MEDIUM | application/backend/src/core/model_metadata.yaml | 238 | # ============================================================================= | COMMENT |
| MEDIUM | application/backend/src/core/model_metadata.yaml | 240 | # ============================================================================= | COMMENT |
| MEDIUM | application/backend/src/core/model_metadata.yaml | 262 | # ============================================================================= | COMMENT |
| MEDIUM | application/backend/src/core/model_metadata.yaml | 264 | # ============================================================================= | COMMENT |
| MEDIUM | application/backend/src/core/logging/handlers.py | 11 | # Example: "Epoch 3/199 ━━━━━━━━━━━━━━━━━━ 4/4 0:00:10 …" → groups ("4", "4") | COMMENT |
| MEDIUM | application/backend/src/pydantic_models/sink.py | 164 | # --------------------------------- | COMMENT |
| MEDIUM | application/backend/src/pydantic_models/sink.py | 166 | # --------------------------------- | COMMENT |
| MEDIUM | application/backend/src/pydantic_models/source.py | 139 | # --------------------------------- | COMMENT |
| MEDIUM | application/backend/src/pydantic_models/source.py | 141 | # --------------------------------- | COMMENT |
| MEDIUM | src/anomalib/models/image/patchflow/torch_model.py | 172 | # ------------------------------------------------------------------ | COMMENT |
| MEDIUM | src/anomalib/models/image/patchflow/torch_model.py | 174 | # ------------------------------------------------------------------ | COMMENT |
| MEDIUM | src/anomalib/models/image/patchflow/torch_model.py | 224 | # ------------------------------------------------------------------ | COMMENT |
| MEDIUM | src/anomalib/models/image/patchflow/torch_model.py | 226 | # ------------------------------------------------------------------ | COMMENT |
| MEDIUM | src/anomalib/models/image/patchflow/torch_model.py | 241 | # ------------------------------------------------------------------ | COMMENT |
| MEDIUM | src/anomalib/models/image/patchflow/torch_model.py | 243 | # ------------------------------------------------------------------ | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | tools/inference/torch_inference.py | 78 | # Create the inferencer and visualizer. | COMMENT |
| MEDIUM | tests/conftest.py | 29 | # Create the temporary directory in the root directory of the project. | COMMENT |
| MEDIUM⚡ | tests/unit/post_processing/test_mebin_post_processor.py | 149 | # Create a clear anomaly region | COMMENT |
| MEDIUM | tests/unit/models/components/clustering/test_gmm.py | 16 | # Create a GaussianMixture model | COMMENT |
| MEDIUM | tests/unit/models/components/clustering/test_gmm.py | 41 | # Create a GaussianMixture model | COMMENT |
| MEDIUM⚡ | tests/unit/data/validators/numpy/test_image.py | 35 | # Create a 2D image without channel dimension | COMMENT |
| MEDIUM⚡ | tests/unit/data/validators/numpy/test_image.py | 124 | # Create a 3D image batch without channel dimension | COMMENT |
| MEDIUM⚡ | tests/unit/data/validators/numpy/test_image.py | 145 | # Create a 3D image without batch dimension | COMMENT |
| MEDIUM⚡ | tests/unit/data/validators/numpy/test_video.py | 35 | # Create a 3D image without time dimension | COMMENT |
| MEDIUM⚡ | tests/unit/data/validators/numpy/test_video.py | 106 | # Create a 4D image batch without time dimension | COMMENT |
| MEDIUM⚡ | tests/helpers/data.py | 565 | # Create the resolution directory | COMMENT |
| MEDIUM | examples/cli/04_advanced/custom_components.sh | 22 | # Create a comprehensive set of metrics | COMMENT |
| MEDIUM | examples/cli/00_installation/uv_install.sh | 37 | # Create a virtual environment and sync with the lockfile for a specific backend: | COMMENT |
| MEDIUM | .github/workflows/_reusable-pr-title-check.yaml | 101 | # Create a temporary file to store the clean PR title for checking | COMMENT |
| MEDIUM | application/backend/tests/unit/conftest.py | 157 | # Create a valid image for testing | COMMENT |
| MEDIUM | …ication/backend/tests/unit/endpoints/test_pipelines.py | 163 | # Create a valid RUNNING pipeline with required fields | COMMENT |
| MEDIUM | …ication/backend/tests/unit/endpoints/test_pipelines.py | 213 | # Create a valid RUNNING pipeline with required fields | COMMENT |
| MEDIUM | …tion/backend/tests/unit/services/test_video_service.py | 128 | # Create a non-video file (should be ignored) | COMMENT |
| MEDIUM | …d/tests/unit/services/test_dataset_snapshot_service.py | 131 | # Create a dummy dataframe batch | COMMENT |
| MEDIUM⚡ | …kend/tests/unit/services/test_configuration_service.py | 171 | # Create a new event loop and run the coroutine | COMMENT |
| MEDIUM | …tion/backend/tests/unit/services/test_model_service.py | 340 | # Create a test anomaly map | COMMENT |
| MEDIUM | …tion/backend/tests/unit/services/test_model_service.py | 373 | # Create a test anomaly map | COMMENT |
| MEDIUM | …cation/backend/tests/unit/services/test_job_service.py | 182 | # Create an updated job object that the repository would return | COMMENT |
| MEDIUM | …cation/backend/tests/unit/services/test_job_service.py | 254 | # Create an async context manager | COMMENT |
| MEDIUM | …tion/backend/tests/unit/services/test_media_service.py | 142 | # Create a random numpy image (100x100 RGB) | COMMENT |
| MEDIUM | …ary/tauri/src-tauri/install_scripts/macos_patch_dmg.sh | 50 | # Create a temporary directory for the work | COMMENT |
| MEDIUM | src/anomalib/visualization/image/item_visualizer.py | 17 | >>> # Create an ImageItem or NumpyImageItem | STRING |
| MEDIUM⚡ | src/anomalib/visualization/image/functional.py | 751 | # Create a background image | COMMENT |
| MEDIUM⚡ | src/anomalib/visualization/image/functional.py | 759 | # Create a colored version of the edges | COMMENT |
| MEDIUM⚡ | src/anomalib/visualization/image/functional.py | 767 | # Create a solid color image for the overlay | COMMENT |
| MEDIUM | src/anomalib/visualization/image/functional.py | 157 | # Create a new RGBA image as a transparent overlay | COMMENT |
| MEDIUM | src/anomalib/visualization/image/functional.py | 263 | # Create a linear interpolation of the colormap | COMMENT |
| MEDIUM | src/anomalib/visualization/image/functional.py | 632 | # Create a normalized image | COMMENT |
| MEDIUM | src/anomalib/visualization/image/functional.py | 955 | # Create a new image with white background | COMMENT |
| MEDIUM | src/anomalib/visualization/image/functional.py | 210 | >>> # Create a sample grayscale image | STRING |
| MEDIUM | src/anomalib/visualization/image/functional.py | 814 | >>> # Create a sample binary mask | STRING |
| MEDIUM | src/anomalib/visualization/image/functional.py | 875 | >>> # Create a sample binary mask | STRING |
| MEDIUM | src/anomalib/callbacks/checkpoint.py | 61 | >>> # Create a checkpoint callback | STRING |
| MEDIUM | src/anomalib/utils/path.py | 363 | # Create the new version directory | COMMENT |
| MEDIUM | src/anomalib/utils/cv/connected_components.py | 14 | >>> # Create a binary mask tensor (1 for anomaly, 0 for normal) | STRING |
| MEDIUM | src/anomalib/utils/cv/connected_components.py | 16 | >>> mask[0, 0, 1:3, 1:3] = 1 # Create a 2x2 square anomaly | STRING |
| MEDIUM | src/anomalib/utils/cv/connected_components.py | 52 | >>> # Create a binary mask with a 2x2 square anomaly | STRING |
| MEDIUM | src/anomalib/utils/cv/connected_components.py | 94 | >>> # Create a binary mask with a 2x2 square anomaly | STRING |
| MEDIUM | src/anomalib/models/image/inp_former/lightning_model.py | 379 | # Create a scheduler config with dynamically determined total steps | COMMENT |
| MEDIUM | src/anomalib/models/image/dinomaly/lightning_model.py | 385 | # Create a scheduler config with dynamically determined total steps | COMMENT |
| MEDIUM | src/anomalib/models/components/filters/__init__.py | 15 | >>> # Create a Gaussian blur filter | STRING |
| MEDIUM | src/anomalib/models/components/filters/blur.py | 12 | >>> # Create a Gaussian blur filter | STRING |
| MEDIUM | src/anomalib/models/components/base/buffer_list.py | 9 | >>> # Create a module that uses the buffer list mixin | STRING |
| MEDIUM | src/anomalib/cli/utils/installation.py | 381 | # Create the PyTorch Index URL to download the correct wheel. | COMMENT |
| MEDIUM | src/anomalib/pre_processing/pre_processor.py | 50 | >>> # Define a custom set of transforms | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tools/benchmark_mebin.py | 126 | except Exception: | CODE |
| LOW | …end/tests/unit/services/test_job_service_pagination.py | 38 | except Exception: | CODE |
| LOW | application/backend/src/cli.py | 135 | except Exception: | CODE |
| LOW | application/backend/src/cli.py | 150 | except Exception as e: | CODE |
| LOW | application/backend/src/core/scheduler.py | 153 | except Exception as e: | CODE |
| LOW | application/backend/src/core/scheduler.py | 174 | except Exception as e: | CODE |
| LOW | application/backend/src/core/scheduler.py | 186 | except Exception as e: | CODE |
| LOW | application/backend/src/core/logging/setup.py | 85 | except Exception as e: | CODE |
| LOW | application/backend/src/core/logging/utils.py | 256 | except Exception as e: | CODE |
| LOW | application/backend/src/utils/queue.py | 25 | except Exception as e: | CODE |
| LOW | application/backend/src/utils/visualization.py | 37 | except Exception as e: # continue other overlays even if one fails | CODE |
| LOW | application/backend/src/utils/visualization.py | 41 | except Exception as e: | CODE |
| LOW | application/backend/src/utils/visualization.py | 68 | except Exception as e: | CODE |
| LOW | application/backend/src/utils/visualization.py | 100 | except Exception as e: | CODE |
| LOW | application/backend/src/utils/callbacks.py | 93 | except Exception as e: | CODE |
| LOW | application/backend/src/repositories/binary_repo.py | 100 | except Exception as e: | CODE |
| LOW | application/backend/src/db/engine.py | 62 | except Exception: | CODE |
| LOW | application/backend/src/db/engine.py | 73 | except Exception: | CODE |
| LOW | application/backend/src/db/engine.py | 84 | except Exception: | CODE |
| LOW | application/backend/src/db/migration.py | 37 | except Exception as e: | CODE |
| LOW | application/backend/src/db/migration.py | 56 | except Exception as e: | CODE |
| LOW | application/backend/src/db/migration.py | 84 | except Exception as e: | CODE |
| LOW | application/backend/src/db/migration.py | 112 | except Exception as e: | CODE |
| LOW | application/backend/src/db/migration.py | 133 | except Exception as e: | CODE |
| LOW | application/backend/src/api/endpoints/webrtc.py | 28 | except Exception as e: | CODE |
| LOW | application/backend/src/workers/dispatching.py | 145 | except Exception as e: | CODE |
| LOW⚡ | application/backend/src/workers/stream_loading.py | 89 | except Exception as e: | CODE |
| LOW⚡ | application/backend/src/workers/stream_loading.py | 93 | except Exception as e: | CODE |
| LOW | application/backend/src/workers/inference.py | 83 | except Exception as e: | CODE |
| LOW | application/backend/src/workers/inference.py | 111 | except Exception as e: | CODE |
| LOW | application/backend/src/workers/inference.py | 129 | except Exception as e: | CODE |
| LOW | application/backend/src/workers/inference.py | 151 | except Exception as e: | CODE |
| LOW | application/backend/src/workers/inference.py | 162 | except Exception as e: | CODE |
| LOW | application/backend/src/workers/inference.py | 181 | except Exception as e: | CODE |
| LOW⚡ | application/backend/src/workers/inference.py | 199 | except Exception as e: | CODE |
| LOW⚡ | application/backend/src/workers/inference.py | 206 | except Exception as e: | CODE |
| LOW | application/backend/src/workers/inference.py | 270 | except Exception as e: | CODE |
| LOW | application/backend/src/workers/inference.py | 292 | except Exception as e: | CODE |
| MEDIUM | application/backend/src/workers/inference.py | 67 | def _get_active_model(self) -> LoadedModel | None: | CODE |
| LOW⚡ | application/backend/src/workers/base.py | 136 | except Exception as e: | CODE |
| LOW | application/backend/src/workers/base.py | 182 | except Exception as e: | CODE |
| LOW | application/backend/src/workers/training.py | 44 | except Exception as e: | CODE |
| LOW | application/backend/src/workers/training.py | 59 | except Exception as e: | CODE |
| LOW | application/backend/src/webrtc/stream.py | 79 | except Exception as e: | CODE |
| LOW | application/backend/src/webrtc/sdp_handler.py | 28 | except Exception as exc: | CODE |
| LOW | application/backend/src/webrtc/sdp_handler.py | 64 | except Exception as exc: | CODE |
| LOW | application/backend/src/services/project_service.py | 106 | except Exception as e: | CODE |
| LOW | application/backend/src/services/training_service.py | 135 | except Exception as e: | CODE |
| LOW | application/backend/src/services/training_service.py | 154 | except Exception as e: | CODE |
| LOW | application/backend/src/services/training_service.py | 366 | except Exception as e: | CODE |
| LOW | …lication/backend/src/services/configuration_service.py | 189 | except Exception as error: | CODE |
| LOW | application/backend/src/services/video_service.py | 139 | except Exception as e: | CODE |
| LOW | application/backend/src/services/video_service.py | 267 | except Exception as e: | CODE |
| LOW | application/backend/src/services/model_service.py | 74 | except Exception as e: | CODE |
| LOW | application/backend/src/services/model_service.py | 152 | except Exception as e: | CODE |
| LOW | application/backend/src/services/model_service.py | 289 | except Exception as e: | CODE |
| LOW | …ation/backend/src/services/dataset_snapshot_service.py | 98 | except Exception as e: | CODE |
| LOW⚡ | …ation/backend/src/services/dataset_snapshot_service.py | 160 | except Exception as e: | CODE |
| LOW⚡ | …ation/backend/src/services/dataset_snapshot_service.py | 179 | except Exception as e: | CODE |
| LOW | application/backend/src/services/media_service.py | 130 | except Exception as e: | CODE |
| 22 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/helpers/data.py | 317 | CODE | |
| LOW | src/anomalib/loggers/comet.py | 99 | CODE | |
| LOW | src/anomalib/loggers/wandb.py | 113 | CODE | |
| LOW | src/anomalib/models/video/fuvas/lightning_model.py | 85 | CODE | |
| LOW | src/anomalib/models/video/ai_vad/torch_model.py | 99 | CODE | |
| LOW | src/anomalib/models/video/ai_vad/lightning_model.py | 128 | CODE | |
| LOW | src/anomalib/models/video/ai_vad/clip/model.py | 68 | CODE | |
| LOW | …b/models/image/reverse_distillation/lightning_model.py | 82 | CODE | |
| LOW | …nomalib/models/image/supersimplenet/lightning_model.py | 87 | CODE | |
| LOW | src/anomalib/models/image/patchflow/torch_model.py | 75 | CODE | |
| LOW | src/anomalib/models/image/patchflow/lightning_model.py | 89 | CODE | |
| LOW | src/anomalib/models/image/winclip/lightning_model.py | 101 | CODE | |
| LOW | src/anomalib/models/image/fastflow/lightning_model.py | 100 | CODE | |
| LOW | src/anomalib/models/image/inp_former/lightning_model.py | 156 | CODE | |
| LOW | …/anomalib/models/image/inp_former/components/layers.py | 111 | CODE | |
| LOW | src/anomalib/models/image/uflow/lightning_model.py | 108 | CODE | |
| LOW | src/anomalib/models/image/cflow/lightning_model.py | 80 | CODE | |
| LOW | src/anomalib/models/image/cfa/lightning_model.py | 91 | CODE | |
| LOW | src/anomalib/models/image/general_ad/torch_model.py | 274 | CODE | |
| LOW | src/anomalib/models/image/general_ad/lightning_model.py | 57 | CODE | |
| LOW | src/anomalib/models/image/csflow/lightning_model.py | 73 | CODE | |
| LOW | src/anomalib/models/image/l2bt/torch_model.py | 26 | CODE | |
| LOW | src/anomalib/models/image/l2bt/lightning_model.py | 123 | CODE | |
| LOW | src/anomalib/models/image/glass/torch_model.py | 69 | CODE | |
| LOW | src/anomalib/models/image/glass/lightning_model.py | 110 | CODE | |
| LOW | src/anomalib/models/image/draem/lightning_model.py | 86 | CODE | |
| LOW | src/anomalib/models/image/fre/lightning_model.py | 103 | CODE | |
| LOW | src/anomalib/models/image/ganomaly/lightning_model.py | 119 | CODE | |
| LOW | src/anomalib/models/image/padim/lightning_model.py | 109 | CODE | |
| LOW | src/anomalib/models/image/dfm/lightning_model.py | 87 | CODE | |
| LOW | …/anomalib/models/image/efficient_ad/lightning_model.py | 122 | CODE | |
| LOW | …/anomalib/models/image/anomaly_dino/lightning_model.py | 151 | CODE | |
| LOW | src/anomalib/models/image/dfkde/lightning_model.py | 87 | CODE | |
| LOW | src/anomalib/models/image/patchcore/lightning_model.py | 141 | CODE | |
| LOW | src/anomalib/models/image/cfm/lightning_model.py | 57 | CODE | |
| LOW | src/anomalib/models/image/dinomaly/torch_model.py | 103 | CODE | |
| LOW | src/anomalib/models/image/dinomaly/torch_model.py | 425 | CODE | |
| LOW | src/anomalib/models/image/dinomaly/lightning_model.py | 158 | CODE | |
| LOW | src/anomalib/models/image/dinomaly/components/layers.py | 204 | CODE | |
| LOW | src/anomalib/models/components/base/export_mixin.py | 188 | CODE | |
| LOW | src/anomalib/models/components/dinov2/layers/block.py | 52 | CODE | |
| LOW | src/anomalib/models/components/flow/all_in_one_block.py | 166 | CODE | |
| LOW | src/anomalib/data/datasets/depth/folder_3d.py | 135 | CODE | |
| LOW | src/anomalib/data/datasets/depth/folder_3d.py | 83 | CODE | |
| LOW | src/anomalib/data/datasets/image/kaputt.py | 215 | CODE | |
| LOW | src/anomalib/data/datamodules/video/shanghaitech.py | 109 | CODE | |
| LOW | src/anomalib/data/datamodules/video/ucsd_ped.py | 72 | CODE | |
| LOW | src/anomalib/data/datamodules/video/avenue.py | 141 | CODE | |
| LOW | src/anomalib/data/datamodules/depth/adam_3d.py | 83 | CODE | |
| LOW | src/anomalib/data/datamodules/depth/folder_3d.py | 81 | CODE | |
| LOW | src/anomalib/data/datamodules/depth/mvtec_3d.py | 88 | CODE | |
| LOW | src/anomalib/data/datamodules/image/btech.py | 141 | CODE | |
| LOW | src/anomalib/data/datamodules/image/tabular.py | 101 | CODE | |
| LOW | src/anomalib/data/datamodules/image/folder.py | 115 | CODE | |
| LOW | src/anomalib/data/datamodules/image/mvtecad2.py | 113 | CODE | |
| LOW | src/anomalib/data/datamodules/image/mvtecad.py | 133 | CODE | |
| LOW | src/anomalib/data/datamodules/image/kolektor.py | 92 | CODE | |
| LOW | src/anomalib/data/datamodules/image/realiad.py | 156 | CODE | |
| LOW | src/anomalib/data/datamodules/image/datumaro.py | 101 | CODE | |
| LOW | src/anomalib/data/datamodules/image/kaputt.py | 153 | CODE | |
| 8 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/unit/metrics/pimo/__init__.py | 1 | # Original Code | COMMENT |
| LOW | …rce/snippets/data/transforms/datamodule_train_eval.txt | 21 | COMMENT | |
| LOW | docs/source/snippets/data/transforms/model_fit.txt | 21 | # Resize(size=[256, 256], interpolation=InterpolationMode.BILINEAR, antialias=True) | COMMENT |
| LOW | …/source/markdown/guides/how_to/models/pre_processor.md | 141 | # Resize(size=[256, 256], interpolation=InterpolationMode.BILINEAR, antialias=False) | COMMENT |
| LOW | examples/cli/01_getting_started/basic_training.sh | 1 | #!/bin/bash | COMMENT |
| LOW | examples/api/02_data/folder.py | 21 | root=Path("./datasets/my_dataset"), | COMMENT |
| LOW | .github/workflows/renovate.yml | 1 | # Dependencies Management Workflow | COMMENT |
| LOW | .github/workflows/renovate.yml | 21 | # - RENOVATE_APP_ID: application ID | COMMENT |
| LOW | .github/workflows/release-lib.yaml | 1 | # Release Workflow | COMMENT |
| LOW | .github/workflows/release-lib.yaml | 21 | # - Environment approval gate (production) | COMMENT |
| LOW | .github/workflows/_reusable-code-quality.yaml | 1 | # Code Quality Workflow | COMMENT |
| LOW | .github/workflows/_reusable-code-quality.yaml | 21 | # - Type checking | COMMENT |
| LOW | .github/workflows/pr.yaml | 1 | # Pull Request Workflow | COMMENT |
| LOW | .github/workflows/pr.yaml | 21 | # | COMMENT |
| LOW | .github/workflows/pr.yaml | 41 | # | COMMENT |
| LOW | .github/workflows/_reusable-docker-build.yaml | 1 | # Docker Image Build Workflow | COMMENT |
| LOW | .github/workflows/renovate-config-validator.yml | 1 | # Renovate configuration validator | COMMENT |
| LOW | .github/workflows/scorecards.yml | 1 | # OpenSSF Scorecard Checks Workflow | COMMENT |
| LOW | .github/workflows/_reusable-version-bump.yaml | 1 | # Version Bump Workflow | COMMENT |
| LOW | .github/workflows/_reusable-version-bump.yaml | 21 | # - Version increment calculation | COMMENT |
| LOW | .github/workflows/_reusable-version-bump.yaml | 41 | # Example Usage: | COMMENT |
| LOW | .github/workflows/_reusable-test-suite.yaml | 1 | # Test Suite Workflow | COMMENT |
| LOW | .github/workflows/_reusable-test-suite.yaml | 21 | # - Test execution | COMMENT |
| LOW | .github/workflows/_reusable-test-suite.yaml | 41 | # | COMMENT |
| LOW | .github/workflows/tauri-build.yaml | 1 | # Tauri Application Build Workflow | COMMENT |
| LOW | .github/workflows/tauri-build.yaml | 81 | # strategy: | COMMENT |
| LOW | .github/workflows/tauri-build.yaml | 101 | # - name: Install uv | COMMENT |
| LOW | .github/workflows/tauri-build.yaml | 121 | # ~/.cargo/git/db/ | COMMENT |
| LOW | .github/workflows/tauri-build.yaml | 141 | # run: npm ci | COMMENT |
| LOW | .github/workflows/tauri-build.yaml | 341 | name: anomalib-studio-windows-msix-${{ matrix.accelerator }} | COMMENT |
| LOW | .github/workflows/tauri-build.yaml | 361 | COMMENT | |
| LOW | .github/workflows/tauri-build.yaml | 381 | # ~/.cargo/registry/cache/ | COMMENT |
| LOW | .github/workflows/tauri-build.yaml | 401 | # working-directory: application/binary/tauri | COMMENT |
| LOW | .github/workflows/_reusable-version-check.yaml | 1 | # Version Check Workflow | COMMENT |
| LOW | .github/workflows/_reusable-version-check.yaml | 21 | # - Pre-release detection | COMMENT |
| LOW | .github/workflows/_reusable-version-check.yaml | 41 | # uses: ./.github/workflows/_reusable-version-check.yaml | COMMENT |
| LOW | .github/workflows/security-checks.yaml | 1 | # Security Checks Workflow | COMMENT |
| LOW | .github/workflows/security-checks.yaml | 21 | # - Adjustable scan scope | COMMENT |
| LOW | .github/workflows/issue-management.yaml | 1 | # Issue Management Workflow | COMMENT |
| LOW | .github/workflows/issue-management.yaml | 21 | # - Applies a 'stale' label and posts a notification comment. | COMMENT |
| LOW | .github/workflows/_reusable-security-scan.yaml | 1 | # Reusable Security Scan Workflow | COMMENT |
| LOW | .github/workflows/_reusable-security-scan.yaml | 21 | # - tools: Comma-separated list of tools to run | COMMENT |
| LOW | .github/workflows/_reusable-artifact-builder.yaml | 1 | # Artifact Builder Workflow | COMMENT |
| LOW | .github/workflows/_reusable-artifact-builder.yaml | 21 | # - Distribution creation | COMMENT |
| LOW | .github/workflows/_reusable-artifact-builder.yaml | 41 | # with: | COMMENT |
| LOW | .github/workflows/_reusable-pr-title-check.yaml | 1 | # PR Title Check Workflow | COMMENT |
| LOW | .github/workflows/_reusable-pr-title-check.yaml | 21 | # 3. Validation Results: | COMMENT |
| LOW | .github/actions/pytest/action.yaml | 1 | # Test Runner Action | COMMENT |
| LOW | .github/actions/pytest/action.yaml | 21 | # - Parallel processing | COMMENT |
| LOW | .github/actions/pytest/action.yaml | 41 | # - test-duration: Execution time | COMMENT |
| LOW | .github/actions/docker-build/action.yml | 61 | file: application/docker/Dockerfile | COMMENT |
| LOW | application/backend/run.sh | 1 | #!/bin/bash | COMMENT |
| LOW | …ication/backend/tests/unit/endpoints/test_pipelines.py | 121 | fxt_pipeline_service.update_pipeline.assert_not_called() | COMMENT |
| LOW | application/backend/src/alembic.ini | 1 | # A generic, single database configuration. | COMMENT |
| LOW | application/backend/src/alembic.ini | 21 | COMMENT | |
| LOW | application/backend/src/alembic.ini | 41 | COMMENT | |
| LOW | application/backend/src/alembic.ini | 61 | # behavior of splitting on spaces and/or commas. | COMMENT |
| LOW | application/backend/src/alembic.ini | 81 | # are written from script.py.mako | COMMENT |
| LOW | application/backend/src/alembic.ini | 101 | COMMENT | |
| LOW | application/backend/src/core/model_metadata.yaml | 1 | # Model metadata for the trainable models endpoint. | COMMENT |
| 6 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | tests/unit/data/validators/numpy/test_image.py | 40 | # Check if channel dimension is added | COMMENT |
| LOW⚡ | tests/unit/data/validators/numpy/test_image.py | 129 | # Check if channel dimension is added | COMMENT |
| LOW⚡ | tests/unit/data/validators/numpy/test_image.py | 151 | # Check if batch dimension is added | COMMENT |
| LOW⚡ | tests/unit/data/validators/numpy/test_video.py | 40 | # Check if time dimension is added | COMMENT |
| LOW⚡ | tests/unit/data/validators/numpy/test_video.py | 111 | # Check if time dimension is added | COMMENT |
| LOW | examples/api/04_advanced/training_modes.py | 79 | # Print results | COMMENT |
| LOW | .github/workflows/_reusable-version-bump.yaml | 150 | # Check if there are commits that would trigger a version bump | COMMENT |
| LOW | application/backend/src/db/migration.py | 71 | # Check if current_rev is in Alembic's tracked revisions | COMMENT |
| LOW | application/backend/src/db/migration.py | 94 | # Check if we can connect | COMMENT |
| LOW | application/backend/src/services/system_service.py | 136 | # Check if Apple MPS is available | COMMENT |
| LOW | application/backend/src/services/system_service.py | 203 | # Check if desired device is among available devices | COMMENT |
| LOW | application/backend/src/services/video_service.py | 78 | # Check if file exists | COMMENT |
| LOW | src/anomalib/visualization/image/functional.py | 1043 | # Check if the parameter is a keyword argument | COMMENT |
| LOW | src/anomalib/models/image/winclip/torch_model.py | 109 | # Check if open_clip is available | COMMENT |
| LOW | src/anomalib/models/image/inp_former/lightning_model.py | 352 | # Check if the trainer has valid max_epochs and max_steps set | COMMENT |
| LOW | src/anomalib/models/image/dinomaly/lightning_model.py | 358 | # Check if the trainer has valid max_epochs and max_steps set | COMMENT |
| LOW | …alib/models/components/stats/multi_variate_gaussian.py | 157 | # Check if the device is MPS and fallback to CPU if necessary | COMMENT |
| LOW | src/anomalib/data/datasets/image/tabular.py | 279 | # Check if anomalous samples are in training set | COMMENT |
| LOW | src/anomalib/data/datamodules/image/tabular.py | 220 | # Check if file exists | COMMENT |
| LOW | src/anomalib/data/datamodules/image/tabular.py | 235 | # Read the file and return Tabular dataset | COMMENT |
| LOW | src/anomalib/data/utils/download.py | 223 | # Read the file in chunks to avoid loading it all into memory | COMMENT |
| LOW⚡ | src/anomalib/data/utils/path.py | 225 | # Check if the path is of an appropriate type | STRING |
| LOW⚡ | src/anomalib/data/utils/path.py | 229 | # Check if the path is too long | STRING |
| LOW⚡ | src/anomalib/data/utils/path.py | 234 | # Check if the path contains non-printable characters | STRING |
| LOW⚡ | src/anomalib/data/utils/path.py | 246 | # Check if the path exists | STRING |
| LOW⚡ | src/anomalib/data/utils/path.py | 256 | # Check if the path has one of the accepted extensions | STRING |
| LOW | src/anomalib/data/validators/numpy/image.py | 119 | # Check if the image is in torch style (C, H, W) and rearrange if necessary | COMMENT |
| LOW | src/anomalib/data/validators/numpy/image.py | 553 | # Check if the image is a numpy array | COMMENT |
| LOW | src/anomalib/data/validators/numpy/image.py | 562 | # Check if the image has the correct number of dimensions | COMMENT |
| LOW | src/anomalib/data/validators/numpy/image.py | 575 | # Check if the image has the correct number of channels | COMMENT |
| LOW | src/anomalib/data/validators/numpy/image.py | 676 | # Check if the mask is in [N, H, W, 1] format and rearrange if necessary | COMMENT |
| LOW | src/anomalib/data/validators/numpy/image.py | 762 | # Check if the anomaly map is in [N, C, H, W] format and rearrange if necessary | COMMENT |
| LOW | src/anomalib/data/dataclasses/generic.py | 800 | # Check if all images have the same shape. If not, resize before collating | COMMENT |
| LOW⚡ | src/anomalib/engine/engine.py | 289 | # Check if category is None and set it to empty string | COMMENT |
| LOW⚡ | src/anomalib/engine/engine.py | 301 | # Check if the cache requires an update | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | .agents/skills/agentic-actions-auditor/README.md | 11 | - **Upstream**: <https://github.com/trailofbits/skills> (`plugins/agentic-actions-auditor`) | CODE |
| MEDIUM | .github/workflows/pr.yaml | 3 | # This workflow orchestrates quality checks, tests, and security scans for | COMMENT |
| MEDIUM | .github/workflows/security-checks.yaml | 3 | # This workflow orchestrates comprehensive security scanning using multiple tools and | COMMENT |
| MEDIUM | .github/workflows/_reusable-security-scan.yaml | 3 | # This reusable workflow orchestrates multiple security scanning tools to provide | COMMENT |
| MEDIUM | application/backend/src/workers/base.py | 109 | # Internal + final run orchestration | COMMENT |
| MEDIUM⚡ | application/backend/src/workers/base.py | 139 | def run(self) -> None: # final orchestration; should not be overridden in subclasses | CODE |
| MEDIUM | application/backend/src/workers/base.py | 175 | # final run orchestration | COMMENT |
| MEDIUM | src/anomalib/models/image/vlm_ad/backends/chat_gpt.py | 150 | # few-shot | COMMENT |
| MEDIUM | src/anomalib/models/image/vlm_ad/backends/ollama.py | 168 | # few-shot | COMMENT |
| MEDIUM | src/anomalib/models/image/winclip/torch_model.py | 311 | # get zero-shot scores | COMMENT |
| MEDIUM | src/anomalib/models/image/winclip/torch_model.py | 315 | # get few-shot scores | COMMENT |
| MEDIUM | src/anomalib/engine/engine.py | 360 | # validation before predict is only necessary for zero-/few-shot models | COMMENT |
| MEDIUM | src/anomalib/engine/engine.py | 414 | # if the model is zero-shot or few-shot, we only need to run validate for normalization and thresholding | COMMENT |
| MEDIUM | src/anomalib/engine/engine.py | 524 | # Test a zero-shot model | STRING |
| MEDIUM | src/anomalib/engine/engine.py | 742 | # if the model is zero-shot or few-shot, we only need to run validate for normalization and thresholding | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tools/benchmark_mebin.py | 72 | CODE | |
| LOW | …/unit/pipelines/tiled_ensemble/test_prediction_data.py | 41 | CODE | |
| LOW | application/backend/src/core/scheduler.py | 118 | CODE | |
| LOW | application/backend/src/workers/stream_loading.py | 55 | CODE | |
| LOW | application/backend/src/workers/inference.py | 87 | CODE | |
| LOW | application/backend/src/services/system_service.py | 53 | CODE | |
| LOW | …ation/backend/src/services/dataset_snapshot_service.py | 183 | CODE | |
| LOW | src/anomalib/visualization/image/item_visualizer.py | 70 | CODE | |
| LOW | src/anomalib/callbacks/visualizer.py | 98 | CODE | |
| LOW | src/anomalib/callbacks/visualizer.py | 162 | CODE | |
| LOW | src/anomalib/deploy/inferencers/openvino_inferencer.py | 106 | CODE | |
| LOW | …es/tiled_ensemble/components/utils/helper_functions.py | 61 | CODE | |
| LOW | …es/tiled_ensemble/components/utils/helper_functions.py | 96 | CODE | |
| LOW | src/anomalib/utils/path.py | 230 | CODE | |
| LOW | src/anomalib/utils/path.py | 590 | CODE | |
| LOW | src/anomalib/models/__init__.py | 256 | CODE | |
| LOW | src/anomalib/models/video/fuvas/torch_model.py | 143 | CODE | |
| LOW | src/anomalib/models/video/ai_vad/clip/model.py | 324 | CODE | |
| LOW | src/anomalib/models/video/ai_vad/clip/clip.py | 138 | CODE | |
| LOW | src/anomalib/models/video/ai_vad/clip/clip.py | 223 | CODE | |
| LOW | …models/image/uninet/components/attention_bottleneck.py | 303 | CODE | |
| LOW | src/anomalib/models/image/inp_former/lightning_model.py | 426 | CODE | |
| LOW | src/anomalib/models/image/glass/loss.py | 94 | CODE | |
| LOW | …/anomalib/models/image/glass/components/init_weight.py | 9 | CODE | |
| LOW | …anomalib/models/image/dinomaly/components/optimizer.py | 144 | CODE | |
| LOW | …/anomalib/models/components/feature_extractors/timm.py | 161 | CODE | |
| LOW | …/anomalib/models/components/backbone/resnet_decoder.py | 322 | CODE | |
| LOW | src/anomalib/cli/cli.py | 452 | CODE | |
| LOW | src/anomalib/cli/utils/installation.py | 149 | CODE | |
| LOW | src/anomalib/data/datasets/image/mvtecad2.py | 164 | CODE | |
| LOW | src/anomalib/data/datasets/base/image.py | 248 | CODE | |
| LOW | src/anomalib/data/datamodules/base/image.py | 182 | CODE | |
| LOW | src/anomalib/data/datamodules/base/image.py | 327 | CODE | |
| LOW | src/anomalib/data/utils/download.py | 253 | CODE | |
| LOW | src/anomalib/data/dataclasses/generic.py | 789 | CODE | |
| LOW | src/anomalib/engine/engine.py | 230 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | .agents/skills/agentic-actions-auditor/SKILL.md | 47 | ### Step 0: Determine Analysis Mode | COMMENT |
| LOW | .agents/skills/agentic-actions-auditor/SKILL.md | 114 | ### Step 1: Discover Workflow Files | COMMENT |
| LOW | .agents/skills/agentic-actions-auditor/SKILL.md | 127 | ### Step 2: Identify AI Action Steps | COMMENT |
| LOW | .agents/skills/agentic-actions-auditor/SKILL.md | 167 | ### Step 3: Capture Security Context | COMMENT |
| LOW | .agents/skills/agentic-actions-auditor/SKILL.md | 238 | ### Step 4: Analyze for Attack Vectors | COMMENT |
| LOW | .agents/skills/agentic-actions-auditor/SKILL.md | 258 | ### Step 5: Report Findings | COMMENT |
| LOW | …ions-auditor/references/vector-d-pr-target-checkout.md | 65 | pull_request_target: # Step 1: Runs in base branch context | CODE |
| LOW | …ions-auditor/references/vector-d-pr-target-checkout.md | 74 | ref: ${{ github.event.pull_request.head.sha }} # Step 2: Checks out ATTACKER's code | CODE |
| LOW⚡ | …ary/tauri/src-tauri/install_scripts/macos_patch_dmg.sh | 63 | # Step 1: Convert to read-write | COMMENT |
| LOW⚡ | …ary/tauri/src-tauri/install_scripts/macos_patch_dmg.sh | 67 | # Step 2: Mount the read-write DMG | COMMENT |
| LOW⚡ | …ary/tauri/src-tauri/install_scripts/macos_patch_dmg.sh | 71 | # Step 3: Rearrange directories inside the .app bundle | COMMENT |
| LOW⚡ | …ary/tauri/src-tauri/install_scripts/macos_patch_dmg.sh | 144 | # Step 4: Unmount | COMMENT |
| LOW⚡ | …ary/tauri/src-tauri/install_scripts/macos_patch_dmg.sh | 148 | # Step 5: Convert back to compressed read-only DMG, replacing the original | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | examples/cli/04_advanced/custom_components.sh | 22 | # Create a comprehensive set of metrics | COMMENT |
| MEDIUM | .github/workflows/scorecards.yml | 4 | # OpenSSF Scorecard requirements / best practices | COMMENT |
| MEDIUM | .github/workflows/_reusable-test-suite.yaml | 3 | # This reusable workflow executes comprehensive test suites with configurable | COMMENT |
| MEDIUM | .github/workflows/security-checks.yaml | 3 | # This workflow orchestrates comprehensive security scanning using multiple tools and | COMMENT |
| MEDIUM | .github/workflows/_reusable-security-scan.yaml | 4 | # comprehensive security analysis of the codebase. | COMMENT |
| MEDIUM | .github/actions/pytest/action.yaml | 4 | # comprehensive test execution and reporting capabilities. | COMMENT |
| LOW⚡ | …kend/tests/unit/services/test_configuration_service.py | 169 | # Mock asyncio.run to just call the coroutine directly | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| CRITICAL | src/anomalib/models/image/draem/lightning_model.py | 147 | self.model.reconstructive_subnetwork.encoder.mp4.register_forward_hook(get_activation("input")) | CODE |
| CRITICAL | src/anomalib/models/image/draem/lightning_model.py | 148 | self.model.reconstructive_subnetwork.encoder.block5.register_forward_hook(get_activation("output")) | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | …ary/tauri/src-tauri/install_scripts/macos_patch_dmg.sh | 63 | # Step 1: Convert to read-write | COMMENT |
| LOW⚡ | …ary/tauri/src-tauri/install_scripts/macos_patch_dmg.sh | 67 | # Step 2: Mount the read-write DMG | COMMENT |
| LOW⚡ | …ary/tauri/src-tauri/install_scripts/macos_patch_dmg.sh | 71 | # Step 3: Rearrange directories inside the .app bundle | COMMENT |
| LOW⚡ | …ary/tauri/src-tauri/install_scripts/macos_patch_dmg.sh | 144 | # Step 4: Unmount | COMMENT |
| LOW⚡ | …ary/tauri/src-tauri/install_scripts/macos_patch_dmg.sh | 148 | # Step 5: Convert back to compressed read-only DMG, replacing the original | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | application/backend/src/core/logging/utils.py | 137 | self._stdout_wrapper.push(self._log_writer) # type: ignore[arg-type] | CODE |
| HIGH | application/backend/src/core/logging/utils.py | 138 | self._stderr_wrapper.push(self._log_writer) # type: ignore[arg-type] | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | src/anomalib/models/image/vlm_ad/__init__.py | 19 | ... api_key="YOUR_API_KEY" | STRING |
| HIGH | src/anomalib/models/image/vlm_ad/lightning_model.py | 22 | ... api_key="YOUR_API_KEY", | STRING |
| HIGH | src/anomalib/models/image/vlm_ad/lightning_model.py | 85 | ... api_key="YOUR_API_KEY" | STRING |
| HIGH | src/anomalib/models/image/vlm_ad/lightning_model.py | 90 | ... api_key="YOUR_API_KEY", | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | …tions-auditor/references/vector-g-eval-of-ai-output.md | 78 | # eval expands shell metacharacters in AI-generated label values | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | src/anomalib/metrics/pimo/dataclasses.py | 1 | # Based on the code: https://github.com/jpcbertoldo/aupimo | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | application/backend/run.sh | 11 | # Usage: | COMMENT |
| LOW | …ary/tauri/src-tauri/install_scripts/macos_patch_dmg.sh | 23 | # Usage: | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | application/backend/run.sh | 12 | # SEED_DB=true ./run.sh # Seed database before launching server (make sure to pre-upload model artifacts) | COMMENT |
| LOW | src/anomalib/metrics/utils.py | 138 | idx = [0] # make sure to start at first point | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | src/anomalib/utils/logging.py | 15 | >>> def my_function(): | STRING |
| LOW | src/anomalib/utils/logging.py | 83 | ... def my_function(): | STRING |
| LOW | src/anomalib/utils/logging.py | 90 | ... def my_function(): | STRING |
| LOW | src/anomalib/utils/deprecation.py | 44 | ... def my_function(new_param=None, old_param=None): | STRING |
| LOW | src/anomalib/utils/deprecation.py | 310 | ... def my_function(new_param=None, old_param=None): | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …rc/features/inspect/dataset/dataset-list.component.tsx | 64 | mediaItem.filename === 'placeholder' ? ( | CODE |
| LOW | …ures/inspect/dataset/dataset-item-placeholder/util.tsx | 3 | const PLACEHOLDER_FILENAME = 'placeholder'; | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | application/backend/src/services/training_service.py | 218 | # TODO: implement Parquet datamodule in anomalib to avoid folder extraction step | COMMENT |