Fast and accurate AI powered file content types detection
237 matches across 8 categories. Click a row to expand file-level details.
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | python/tests/test_features_extraction_vs_reference.py | 59 | def test_features_extraction_vs_reference(debug: bool = False) -> None: |
| LOW | python/tests/test_features_extraction_vs_reference.py | 81 | def test_reference_generation() -> None: |
| LOW | python/tests/test_features_extraction_vs_reference.py | 85 | def _generate_reference_features_extraction(test_mode: bool) -> None: |
| LOW | python/tests/test_features_extraction_vs_reference.py | 92 | def _dump_reference_features_extraction_examples( |
| LOW | python/tests/test_features_extraction_vs_reference.py | 114 | def _generate_reference_features_extraction_tests_cases() -> List[ |
| LOW | python/tests/test_features_extraction_vs_reference.py | 145 | def _generate_reference_features_extraction_tests_cases_inputs() -> List[ |
| LOW | python/tests/test_features_extraction_vs_reference.py | 211 | def _generate_content_from_metadata( |
| LOW | python/tests/test_features_extraction_vs_reference.py | 238 | def _get_examples_from_reference() -> List[FeaturesExtractionExample]: |
| LOW | python/tests/test_features_extraction_vs_reference.py | 253 | def _check_features_vs_reference_example_features( |
| LOW | python/tests/test_magika_python_module.py | 76 | def test_magika_module_with_basic_tests_by_paths() -> None: |
| LOW | python/tests/test_magika_python_module.py | 84 | def test_magika_module_with_basic_tests_by_path() -> None: |
| LOW | python/tests/test_magika_python_module.py | 94 | def test_magika_module_with_basic_tests_by_bytes() -> None: |
| LOW | python/tests/test_magika_python_module.py | 36 | def test_magika_module_check_version() -> None: |
| LOW | python/tests/test_magika_python_module.py | 50 | def test_magika_module_with_one_test_file() -> None: |
| LOW | python/tests/test_magika_python_module.py | 63 | def test_magika_module_with_explicit_model_dir() -> None: |
| LOW | python/tests/test_magika_python_module.py | 107 | def test_magika_module_with_basic_tests_by_stream() -> None: |
| LOW | python/tests/test_magika_python_module.py | 120 | def test_magika_module_with_all_models() -> None: |
| LOW | python/tests/test_magika_python_module.py | 131 | def test_magika_module_with_previously_missdetected_samples() -> None: |
| LOW | python/tests/test_magika_python_module.py | 140 | def test_magika_module_with_empty_content() -> None: |
| LOW | python/tests/test_magika_python_module.py | 170 | def test_magika_module_with_short_content() -> None: |
| LOW | python/tests/test_magika_python_module.py | 208 | def test_magika_module_with_python_and_non_python_content() -> None: |
| LOW | python/tests/test_magika_python_module.py | 225 | def test_magika_module_identify_stream_does_not_alter_position() -> None: |
| LOW | python/tests/test_magika_python_module.py | 245 | def test_magika_module_with_whitespaces() -> None: |
| LOW | python/tests/test_magika_python_module.py | 302 | def test_magika_module_with_different_prediction_modes() -> None: |
| LOW | python/tests/test_magika_python_module.py | 401 | def test_magika_module_overwrite_reason() -> None: |
| LOW | python/tests/test_magika_python_module.py | 470 | def test_magika_module_with_directory() -> None: |
| LOW | python/tests/test_magika_python_module.py | 483 | def test_magika_module_multiple_copies_of_the_same_file() -> None: |
| LOW | python/tests/test_magika_python_module.py | 499 | def test_magika_module_with_symlink() -> None: |
| LOW | python/tests/test_magika_python_module.py | 528 | def test_magika_module_with_non_existing_file() -> None: |
| LOW | python/tests/test_magika_python_module.py | 540 | def test_magika_module_with_permission_error() -> None: |
| LOW | python/tests/test_magika_python_module.py | 573 | def test_magika_module_with_really_many_files() -> None: |
| LOW | python/tests/test_magika_python_module.py | 588 | def test_magika_module_with_big_file() -> None: |
| LOW | python/tests/test_magika_python_module.py | 612 | def test_api_call_with_bad_types() -> None: |
| LOW | python/tests/test_magika_python_module.py | 645 | def test_access_magika_result_and_prediction(): |
| LOW | python/tests/test_magika_python_module.py | 692 | def test_access_backward_compatibility_layer() -> None: |
| LOW | python/tests/test_magika_python_module.py | 721 | def test_get_model_and_output_content_types() -> None: |
| LOW | python/tests/test_magika_python_module.py | 795 | def get_expected_content_type_label_from_test_file_path( |
| LOW | python/tests/test_magika_python_module.py | 801 | def check_result_vs_expected_result( |
| LOW | python/tests/test_magika_python_module.py | 812 | def check_results_vs_expected_results( |
| LOW | python/tests/utils.py | 39 | def get_basic_tests_files_dir() -> Path: |
| LOW | python/tests/utils.py | 45 | def get_mitra_tests_files_dir() -> Path: |
| LOW | python/tests/utils.py | 51 | def get_previously_missdetected_files_dir() -> Path: |
| LOW | python/tests/utils.py | 57 | def get_basic_test_files_paths() -> List[Path]: |
| LOW | python/tests/utils.py | 63 | def get_mitra_test_files_paths() -> List[Path]: |
| LOW | python/tests/utils.py | 69 | def get_previously_missdetected_files_paths() -> List[Path]: |
| LOW | python/tests/utils.py | 75 | def get_reference_features_extraction_examples_path() -> Path: |
| LOW | python/tests/utils.py | 79 | def get_reference_for_inference_examples_by_path_path(model_name: str) -> Path: |
| LOW | python/tests/utils.py | 87 | def get_reference_for_inference_examples_by_content_path(model_name: str) -> Path: |
| LOW | python/tests/utils.py | 95 | def get_one_basic_test_file_path() -> Path: |
| LOW | python/tests/utils.py | 123 | def write_random_file_with_size(sample_path: Path, sample_size: int) -> None: |
| LOW | python/tests/utils.py | 177 | def get_imported_objects_after_wildcard() -> Dict[str, Any]: |
| LOW | python/tests/test_python_magika_client.py | 19 | def test_python_magika_client() -> None: |
| LOW | python/tests/test_inference_vs_reference.py | 63 | def test_inference_vs_reference(debug: bool = False) -> None: |
| LOW | python/tests/test_inference_vs_reference.py | 129 | def test_reference_generation() -> None: |
| LOW | python/tests/test_inference_vs_reference.py | 175 | def _generate_reference_for_inference(test_mode: bool) -> None: |
| LOW | python/tests/test_inference_vs_reference.py | 183 | def _generate_examples_by_path( |
| LOW | python/tests/test_inference_vs_reference.py | 226 | def _generate_examples_by_content( |
| LOW | python/tests/test_inference_vs_reference.py | 367 | def _dump_examples_by_content( |
| LOW | python/tests/test_inference_vs_reference.py | 476 | def _get_cornern_case_example( |
| LOW | python/tests/test_inference_vs_reference.py | 526 | def get_corner_case_candidates_generator( |
| 34 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | python/tests/test_features_extraction_vs_reference.py | 1 | # Copyright 2024 Google LLC |
| LOW | python/tests/test_magika_python_module.py | 1 | # Copyright 2024 Google LLC |
| LOW | python/tests/utils.py | 1 | # Copyright 2024 Google LLC |
| LOW | python/tests/test_python_magika_client.py | 1 | # Copyright 2024 Google LLC |
| LOW | python/tests/test_inference_vs_reference.py | 1 | # Copyright 2024 Google LLC |
| LOW | python/scripts/sync.py | 1 | #!/usr/bin/env python3 |
| LOW | python/scripts/sync.py | 121 | python_model_dir = PYTHON_MODELS_DIR / model_name |
| LOW | python/scripts/sync.py | 181 | + "\n" |
| LOW | python/scripts/check_copyright.py | 1 | # Copyright 2025 Google LLC |
| LOW | python/scripts/run_quick_test_magika_module.py | 1 | #!/usr/bin/env python |
| LOW | python/scripts/check_source.sh | 1 | #!/bin/bash |
| LOW | python/scripts/check_changelog.sh | 1 | #!/bin/bash |
| LOW | python/scripts/pre_release_check.py | 1 | # Copyright 2025 Google LLC |
| LOW | python/scripts/test_magika_model.py | 1 | #!/usr/bin/env python3 |
| LOW | python/scripts/run_quick_test_magika_cli.py | 1 | #!/usr/bin/env python |
| LOW | python/scripts/generate_reference.py | 1 | # Copyright 2025 Google LLC |
| LOW | …hon/scripts/prepare_pyproject_for_pure_python_wheel.py | 1 | # Copyright 2024 Google LLC |
| LOW | python/scripts/check_documentation.py | 1 | # Copyright 2025 Google LLC |
| LOW | python/src/magika/magika.py | 1 | # Copyright 2024 Google LLC |
| LOW | python/src/magika/__init__.py | 1 | # Copyright 2024 Google LLC |
| LOW | python/src/magika/logger.py | 1 | # Copyright 2024 Google LLC |
| LOW | python/src/magika/colors.py | 1 | # Copyright 2024 Google LLC |
| LOW | python/src/magika/types/prediction_mode.py | 1 | # Copyright 2024 Google LLC |
| LOW | python/src/magika/types/magika_error.py | 1 | # Copyright 2025 Google LLC |
| LOW | python/src/magika/types/content_type_info.py | 1 | # Copyright 2025 Google LLC |
| LOW | python/src/magika/types/__init__.py | 1 | # Copyright 2024 Google LLC |
| LOW | python/src/magika/types/model.py | 1 | # Copyright 2024 Google LLC |
| LOW | python/src/magika/types/content_type_label.py | 1 | # Copyright 2024 Google LLC |
| LOW | python/src/magika/types/overwrite_reason.py | 1 | # Copyright 2024 Google LLC |
| LOW | python/src/magika/types/magika_prediction.py | 1 | # Copyright 2024 Google LLC |
| LOW | python/src/magika/types/magika_result.py | 1 | # Copyright 2024 Google LLC |
| LOW | python/src/magika/types/seekable.py | 1 | # Copyright 2024 Google LLC |
| LOW | python/src/magika/types/strenum.py | 1 | # Copyright 2025 Google LLC |
| LOW | python/src/magika/types/status.py | 1 | # Copyright 2024 Google LLC |
| LOW | python/src/magika/cli/magika_client.py | 1 | #!/usr/bin/env python3 |
| LOW | …src/magika/cli/magika_rust_client_not_found_warning.py | 1 | #!/usr/bin/env python |
| LOW | js/magika-cli.ts | 1 | #! /usr/bin/env node |
| LOW | js/magika-node.ts | 1 | // Copyright 2024 Google LLC |
| LOW | js/magika.ts | 1 | // Copyright 2024 Google LLC |
| LOW | js/test/tfnHook.ts | 1 | // Copyright 2024 Google LLC |
| LOW | js/test/magika-cli.test.ts | 1 | // Copyright 2024 Google LLC |
| LOW | js/test/inference-vs-reference.test.ts | 1 | // Copyright 2024 Google LLC |
| LOW | js/test/utils.ts | 1 | // Copyright 2024 Google LLC |
| LOW | js/test/features-extraction-vs-reference.test.ts | 1 | // Copyright 2024 Google LLC |
| LOW | js/test/magika.test.ts | 1 | // Copyright 2024 Google LLC |
| LOW | js/src/model-prediction.ts | 1 | // Copyright 2024 Google LLC |
| LOW | js/src/content-type-info.ts | 1 | // Copyright 2024 Google LLC |
| LOW | js/src/status.ts | 1 | // Copyright 2024 Google LLC |
| LOW | js/src/magika-prediction.ts | 1 | // Copyright 2024 Google LLC |
| LOW | js/src/model-node.ts | 1 | // Copyright 2024 Google LLC |
| LOW | js/src/magika-result.ts | 1 | // Copyright 2024 Google LLC |
| LOW | js/src/overwrite-reason.ts | 1 | // Copyright 2024 Google LLC |
| LOW | js/src/model.ts | 1 | // Copyright 2024 Google LLC |
| LOW | js/src/content-types-infos.ts | 1 | // Copyright 2024 Google LLC |
| LOW | js/src/prediction-mode.ts | 1 | // Copyright 2024 Google LLC |
| LOW | js/src/magika-options.ts | 1 | // Copyright 2024 Google LLC |
| LOW | js/src/content-type-label.ts | 1 | // Copyright 2024 Google LLC |
| LOW | js/src/model-config-node.ts | 1 | // Copyright 2024 Google LLC |
| LOW | js/src/model-features.ts | 1 | // Copyright 2024 Google LLC |
| LOW | js/src/model-config.ts | 1 | // Copyright 2024 Google LLC |
| 32 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | python/tests/test_features_extraction_vs_reference.py | 15 | |
| LOW | python/tests/test_inference_vs_reference.py | 15 | |
| LOW | python/scripts/check_documentation.py | 18 | |
| LOW | python/src/magika/__init__.py | 20 | |
| LOW | python/src/magika/__init__.py | 21 | |
| LOW | python/src/magika/__init__.py | 22 | |
| LOW | python/src/magika/__init__.py | 23 | |
| LOW | python/src/magika/__init__.py | 24 | |
| LOW | python/src/magika/__init__.py | 25 | |
| LOW | python/src/magika/__init__.py | 26 | |
| LOW | python/src/magika/__init__.py | 27 | |
| LOW | python/src/magika/__init__.py | 28 | |
| LOW | python/src/magika/logger.py | 17 | |
| LOW | python/src/magika/types/prediction_mode.py | 17 | |
| LOW | python/src/magika/types/__init__.py | 18 | |
| LOW | python/src/magika/types/__init__.py | 19 | |
| LOW | python/src/magika/types/__init__.py | 20 | |
| LOW | python/src/magika/types/__init__.py | 21 | |
| LOW | python/src/magika/types/__init__.py | 22 | |
| LOW | python/src/magika/types/__init__.py | 23 | |
| LOW | python/src/magika/types/__init__.py | 23 | |
| LOW | python/src/magika/types/__init__.py | 23 | |
| LOW | python/src/magika/types/__init__.py | 28 | |
| LOW | python/src/magika/types/__init__.py | 29 | |
| LOW | python/src/magika/types/__init__.py | 30 | |
| LOW | python/src/magika/types/__init__.py | 31 | |
| LOW | python/src/magika/types/magika_prediction.py | 17 | |
| LOW | python/src/magika/types/strenum.py | 26 |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | tests_data/basic/txt/lorem-small.txt | 2 | Lorem ipsum dolor sit amet, consectetur adipiscing elit. Collatio igitur ista te nihil iuvat. Honesta oratio, Socratica, |
| LOW | tests_data/basic/txt/lorem-small.txt | 2 | Lorem ipsum dolor sit amet, consectetur adipiscing elit. Collatio igitur ista te nihil iuvat. Honesta oratio, Socratica, |
| LOW | tests_data/basic/txt/lorem-big.txt | 1 | Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer aliquam dui sit amet justo eleifend ullamcorper. Class |
| LOW | tests_data/basic/txt/lorem-big.txt | 1 | Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer aliquam dui sit amet justo eleifend ullamcorper. Class |
| LOW | tests_data/basic/txt/lorem-big.txt | 7 | Ut eleifend lectus et ullamcorper interdum. Sed laoreet, quam at placerat viverra, ipsum erat rhoncus dolor, sit amet el |
| LOW | tests_data/basic/txt/lorem-big.txt | 7 | Ut eleifend lectus et ullamcorper interdum. Sed laoreet, quam at placerat viverra, ipsum erat rhoncus dolor, sit amet el |
| LOW | tests_data/basic/markdown/simple.md | 9 | Lorem ipsum? |
| Severity | File | Line | Snippet |
|---|---|---|---|
| MEDIUM | python/CHANGELOG.md | 82 | print(f"Error: {result.status}") |
| LOW | python/scripts/pre_release_check.py | 81 | except Exception: |
| LOW | python/scripts/pre_release_check.py | 174 | except Exception: |
| LOW | python/scripts/run_quick_test_magika_cli.py | 52 | except Exception as e: |
| MEDIUM | website-ng/src/content/docs/cli-and-bindings/python.md | 92 | ... print(f"Error: {result.status.message}") |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | python/scripts/run_quick_test_magika_module.py | 35 | |
| LOW | python/scripts/pre_release_check.py | 147 | |
| LOW | python/scripts/run_quick_test_magika_cli.py | 37 | |
| LOW | python/scripts/check_documentation.py | 163 | |
| LOW | python/scripts/check_documentation.py | 220 | |
| LOW | python/src/magika/magika.py | 578 | |
| LOW | python/src/magika/cli/magika_client.py | 133 |
| Severity | File | Line | Snippet |
|---|---|---|---|
| MEDIUM | python/src/magika/magika.py | 588 | # The following code checks whether the score is "high enough", where |
| MEDIUM | .github/workflows/cli-release.yml | 270 | # Create a GitHub Release while uploading all files to it |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | python/scripts/pre_release_check.py | 166 | # Check if it is a python script |
| LOW | python/src/magika/magika.py | 234 | # Check if we would overwrite this target label; if not, use the |