docTR (Document Text Recognition) - a seamless, high-performing & accessible library for OCR-related tasks powered by Deep Learning. Ongoing development and maintenance by t2k.
This report presents the forensic synthetic code analysis of mindee/doctr, a Python project with 6,323 GitHub stars. SynthScan v2.0 examined 51,969 lines of code across 300 source files, recording 622 pattern matches distributed across 15 syntactic categories. The overall adjusted score of 15.8 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 622 distinct pattern matches across 15 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 | references/classification/train_orientation.py | 0 | gridsearch the optimal learning rate for the training. adapted from https://github.com/frgfm/holocron/blob/master/holocr | STRING |
| HIGH | references/classification/train_character.py | 0 | gridsearch the optimal learning rate for the training. adapted from https://github.com/frgfm/holocron/blob/master/holocr | STRING |
| HIGH | references/layout/train.py | 0 | gridsearch the optimal learning rate for the training. adapted from https://github.com/frgfm/holocron/blob/master/holocr | STRING |
| HIGH | references/table/train.py | 0 | gridsearch the optimal learning rate for the training. adapted from https://github.com/frgfm/holocron/blob/master/holocr | STRING |
| HIGH | references/recognition/train.py | 0 | gridsearch the optimal learning rate for the training. adapted from https://github.com/frgfm/holocron/blob/master/holocr | STRING |
| HIGH | references/detection/train.py | 0 | gridsearch the optimal learning rate for the training. adapted from https://github.com/frgfm/holocron/blob/master/holocr | STRING |
| HIGH | references/classification/utils.py | 0 | display the results of the lr grid search. adapted from https://github.com/frgfm/holocron/blob/master/holocron/trainer/c | STRING |
| HIGH | references/layout/utils.py | 0 | display the results of the lr grid search. adapted from https://github.com/frgfm/holocron/blob/master/holocron/trainer/c | STRING |
| HIGH | references/detection/utils.py | 0 | display the results of the lr grid search. adapted from https://github.com/frgfm/holocron/blob/master/holocron/trainer/c | STRING |
| HIGH | references/recognition/utils.py | 0 | display the results of the lr grid search. adapted from https://github.com/frgfm/holocron/blob/master/holocron/trainer/c | STRING |
| HIGH | doctr/models/classification/mobilenet/pytorch.py | 0 | load pretrained parameters onto the model args: path_or_url: the path or url to the model parameters (checkpoint) **kwar | STRING |
| HIGH | doctr/models/classification/vip/pytorch.py | 0 | load pretrained parameters onto the model args: path_or_url: the path or url to the model parameters (checkpoint) **kwar | STRING |
| HIGH | doctr/models/classification/starnet/pytorch.py | 0 | load pretrained parameters onto the model args: path_or_url: the path or url to the model parameters (checkpoint) **kwar | STRING |
| HIGH | doctr/models/classification/vit_det/pytorch.py | 0 | load pretrained parameters onto the model args: path_or_url: the path or url to the model parameters (checkpoint) **kwar | STRING |
| HIGH | doctr/models/classification/resnet/pytorch.py | 0 | load pretrained parameters onto the model args: path_or_url: the path or url to the model parameters (checkpoint) **kwar | STRING |
| HIGH | doctr/models/classification/vit/pytorch.py | 0 | load pretrained parameters onto the model args: path_or_url: the path or url to the model parameters (checkpoint) **kwar | STRING |
| HIGH | doctr/models/classification/textnet/pytorch.py | 0 | load pretrained parameters onto the model args: path_or_url: the path or url to the model parameters (checkpoint) **kwar | STRING |
| HIGH | doctr/models/classification/vgg/pytorch.py | 0 | load pretrained parameters onto the model args: path_or_url: the path or url to the model parameters (checkpoint) **kwar | STRING |
| HIGH | doctr/models/layout/lw_detr/pytorch.py | 0 | load pretrained parameters onto the model args: path_or_url: the path or url to the model parameters (checkpoint) **kwar | STRING |
| HIGH | doctr/models/table_structure/tablecenternet/pytorch.py | 0 | load pretrained parameters onto the model args: path_or_url: the path or url to the model parameters (checkpoint) **kwar | STRING |
| HIGH | doctr/models/recognition/crnn/pytorch.py | 0 | load pretrained parameters onto the model args: path_or_url: the path or url to the model parameters (checkpoint) **kwar | STRING |
| HIGH | doctr/models/recognition/vitstr/pytorch.py | 0 | load pretrained parameters onto the model args: path_or_url: the path or url to the model parameters (checkpoint) **kwar | STRING |
| HIGH | doctr/models/recognition/viptr/pytorch.py | 0 | load pretrained parameters onto the model args: path_or_url: the path or url to the model parameters (checkpoint) **kwar | STRING |
| HIGH | doctr/models/recognition/master/pytorch.py | 0 | load pretrained parameters onto the model args: path_or_url: the path or url to the model parameters (checkpoint) **kwar | STRING |
| HIGH | doctr/models/recognition/sar/pytorch.py | 0 | load pretrained parameters onto the model args: path_or_url: the path or url to the model parameters (checkpoint) **kwar | STRING |
| HIGH | doctr/models/recognition/parseq/pytorch.py | 0 | load pretrained parameters onto the model args: path_or_url: the path or url to the model parameters (checkpoint) **kwar | STRING |
| HIGH | …odels/detection/differentiable_binarization/pytorch.py | 0 | load pretrained parameters onto the model args: path_or_url: the path or url to the model parameters (checkpoint) **kwar | STRING |
| HIGH | doctr/models/detection/linknet/pytorch.py | 0 | load pretrained parameters onto the model args: path_or_url: the path or url to the model parameters (checkpoint) **kwar | STRING |
| HIGH | doctr/models/detection/fast/pytorch.py | 0 | load pretrained parameters onto the model args: path_or_url: the path or url to the model parameters (checkpoint) **kwar | STRING |
| HIGH | doctr/models/recognition/core.py | 0 | encode a list of gts sequences into a np array and gives the corresponding* sequence lengths. args: gts: list of ground- | STRING |
| HIGH | doctr/models/recognition/vitstr/base.py | 0 | encode a list of gts sequences into a np array and gives the corresponding* sequence lengths. args: gts: list of ground- | STRING |
| HIGH | doctr/models/recognition/master/base.py | 0 | encode a list of gts sequences into a np array and gives the corresponding* sequence lengths. args: gts: list of ground- | STRING |
| HIGH | doctr/models/recognition/parseq/base.py | 0 | encode a list of gts sequences into a np array and gives the corresponding* sequence lengths. args: gts: list of ground- | STRING |
| HIGH | doctr/models/recognition/core.py | 0 | abstract class to postprocess the raw output of the model args: vocab: string containing the ordered sequence of support | STRING |
| HIGH | doctr/models/recognition/vitstr/base.py | 0 | abstract class to postprocess the raw output of the model args: vocab: string containing the ordered sequence of support | STRING |
| HIGH | doctr/models/recognition/master/base.py | 0 | abstract class to postprocess the raw output of the model args: vocab: string containing the ordered sequence of support | STRING |
| HIGH | doctr/models/recognition/parseq/base.py | 0 | abstract class to postprocess the raw output of the model args: vocab: string containing the ordered sequence of support | STRING |
| HIGH | doctr/models/recognition/vitstr/pytorch.py | 0 | compute categorical cross-entropy loss for the model. sequences are masked after the eos character. args: gt: the encode | STRING |
| HIGH | doctr/models/recognition/sar/pytorch.py | 0 | compute categorical cross-entropy loss for the model. sequences are masked after the eos character. args: gt: the encode | STRING |
| HIGH | doctr/models/recognition/master/pytorch.py | 0 | compute categorical cross-entropy loss for the model. sequences are masked after the eos character. args: gt: the encode | STRING |
| HIGH | …r/models/detection/differentiable_binarization/base.py | 0 | expand a polygon (points) by a factor unclip_ratio, and returns a polygon args: points: the first parameter. returns: a | STRING |
| HIGH | doctr/models/detection/linknet/base.py | 0 | expand a polygon (points) by a factor unclip_ratio, and returns a polygon args: points: the first parameter. returns: a | STRING |
| HIGH | doctr/models/detection/fast/base.py | 0 | expand a polygon (points) by a factor unclip_ratio, and returns a polygon args: points: the first parameter. returns: a | STRING |
| HIGH | …r/models/detection/differentiable_binarization/base.py | 0 | compute boxes from a bitmap/pred_map: find connected components then filter boxes args: pred: pred map from differentiab | STRING |
| HIGH | doctr/models/detection/linknet/base.py | 0 | compute boxes from a bitmap/pred_map: find connected components then filter boxes args: pred: pred map from differentiab | STRING |
| HIGH | doctr/models/detection/fast/base.py | 0 | compute boxes from a bitmap/pred_map: find connected components then filter boxes args: pred: pred map from differentiab | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | references/detection/train.py | 39 | def convert_to_multiclass_targets(targets: list) -> list[dict[str, np.ndarray]]: | CODE |
| LOW | tests/conftest.py | 87 | def mock_artefact_image_stream(): | CODE |
| LOW | tests/common/test_utils_fonts.py | 26 | def test_get_font_respects_size(): | CODE |
| LOW | tests/common/test_utils_fonts.py | 33 | def test_get_font_explicit_family(): | CODE |
| LOW | tests/common/test_utils_fonts.py | 46 | def test_get_font_resolution_is_cached(): | CODE |
| LOW | tests/common/test_models_builder.py | 194 | def test_documentbuilder_layout(): | CODE |
| LOW | tests/common/test_models_builder.py | 269 | def test_documentbuilder_tables(): | CODE |
| LOW | tests/common/test_models_builder.py | 366 | def test_kiedocumentbuilder_layout(): | CODE |
| LOW | tests/common/test_models_builder.py | 482 | def test_documentbuilder_tables_straight_geometry(): | CODE |
| LOW | tests/common/test_models_builder.py | 529 | def test_documentbuilder_argument_length_validation(): | CODE |
| LOW | tests/common/test_models_builder.py | 561 | def test_sort_boxes_degenerate_heights(): | CODE |
| LOW | tests/common/test_models_builder.py | 569 | def test_documentbuilder_tables_empty_cells(): | CODE |
| LOW | tests/common/test_models_builder.py | 588 | def test_documentbuilder_keep_reading_order(): | CODE |
| LOW | tests/common/test_models_builder.py | 655 | def test_documentbuilder_keep_reading_order_rotated(): | CODE |
| LOW | tests/common/test_models_builder.py | 722 | def test_documentbuilder_keep_reading_order_all_flag_combinations(): | CODE |
| LOW | tests/common/test_models_builder.py | 743 | def test_documentbuilder_keep_reading_order_without_resolve_lines(): | CODE |
| LOW | tests/common/test_models_builder.py | 754 | def test_documentbuilder_keep_reading_order_prefers_layout_furniture(): | CODE |
| LOW | tests/common/test_models_builder.py | 779 | def test_documentbuilder_keep_reading_order_without_resolve_lines_rotated(): | CODE |
| LOW | tests/common/test_models_builder.py | 804 | def test_documentbuilder_keep_reading_order_no_double_sort_across_exports(): | CODE |
| LOW | tests/common/test_models_builder.py | 838 | def test_documentbuilder_tables_multi_word_cells(): | CODE |
| LOW | tests/common/test_models_builder.py | 871 | def test_documentbuilder_tables_nearest_cell_fallback(): | CODE |
| LOW | tests/common/test_models_builder.py | 896 | def test_documentbuilder_tables_rotated_geometry(): | CODE |
| LOW | tests/common/test_models_builder.py | 933 | def test_documentbuilder_tables_without_words(): | CODE |
| LOW | tests/common/test_models_builder.py | 950 | def test_documentbuilder_sort_boxes_mixed_rotation(): | CODE |
| LOW | tests/common/test_models_builder.py | 967 | def test_documentbuilder_tables_skips_empty_grids(): | CODE |
| LOW | tests/common/test_utils_geometry.py | 81 | def test_resolve_enclosing_bbox(): | CODE |
| LOW | tests/common/test_utils_geometry.py | 87 | def test_resolve_enclosing_rbbox(): | CODE |
| LOW | tests/common/test_utils_geometry.py | 186 | def test_remove_image_padding(): | CODE |
| LOW | tests/common/test_utils_geometry.py | 226 | def test_convert_to_relative_coords(abs_geoms, img_size, rel_geoms): | CODE |
| LOW | tests/common/test_utils_geometry.py | 333 | def test_straighten_page_inverse(angle, shape): | CODE |
| LOW | tests/common/test_utils_geometry.py | 362 | def test_straighten_page_projected_corner_clamp(): | CODE |
| LOW | tests/common/test_datasets_utils.py | 24 | def test_translate_unknown_vocab(): | CODE |
| LOW | tests/common/test_datasets_utils.py | 46 | def test_encode_string_unknown_char(): | CODE |
| LOW | tests/common/test_datasets_utils.py | 51 | def test_encode_string_duplicate_vocab_chars(): | CODE |
| LOW | tests/common/test_datasets_utils.py | 108 | def test_convert_target_to_relative(target, mock_image_stream): | CODE |
| LOW | tests/common/test_datasets_utils.py | 125 | def test_crop_bboxes_from_image(geoms, mock_image_path): | CODE |
| LOW | tests/common/test_models_reading_order.py | 35 | def test_detect_text_direction(texts, language, expected): | CODE |
| LOW | tests/common/test_models_reading_order.py | 39 | def test_normalize_layout_label(): | CODE |
| LOW | tests/common/test_models_reading_order.py | 69 | def test_sort_reading_order_basic(): | CODE |
| LOW | tests/common/test_models_reading_order.py | 81 | def test_sort_reading_order_columns(): | CODE |
| LOW | tests/common/test_models_reading_order.py | 95 | def test_sort_reading_order_input_formats(): | CODE |
| LOW | tests/common/test_models_reading_order.py | 108 | def test_sort_reading_order_vertical(): | CODE |
| LOW | tests/common/test_models_reading_order.py | 118 | def test_sort_reading_order_labels(): | CODE |
| LOW | tests/common/test_models_reading_order.py | 147 | def test_sort_reading_order_degenerate_geometries(): | CODE |
| LOW | tests/common/test_models_reading_order.py | 154 | def test_resolve_reading_segments(): | CODE |
| LOW | tests/common/test_models_reading_order.py | 171 | def test_assign_layout_labels(): | CODE |
| LOW | tests/common/test_models_reading_order.py | 184 | def test_reading_order_predictor(): | CODE |
| LOW | tests/common/test_models_reading_order.py | 214 | def test_sort_reading_order_rotated_pages(): | CODE |
| LOW | tests/common/test_models_reading_order.py | 229 | def test_deskew_reading_geometries(): | CODE |
| LOW | tests/common/test_models_reading_order.py | 251 | def test_reading_order_predictor_rotated(): | CODE |
| LOW | tests/common/test_models_reading_order.py | 258 | def test_deskew_strong_rotation_non_square_page(): | CODE |
| LOW | tests/common/test_models_reading_order.py | 280 | def test_sort_reading_order_fragmented_columns(): | CODE |
| LOW | tests/common/test_models_reading_order.py | 295 | def test_fragmented_row_with_merged_column_components(): | CODE |
| LOW | tests/common/test_models_reading_order.py | 309 | def test_sort_reading_order_keeps_key_value_rows_together(): | CODE |
| LOW | tests/common/test_models_reading_order.py | 326 | def test_sort_reading_order_follows_columns_when_a_gutter_exists(): | CODE |
| LOW | tests/common/test_models_detection.py | 65 | def test_linknet_postprocessor(): | CODE |
| LOW | tests/common/test_utils_data.py | 22 | def test_download_from_url_customizing_cache_dir(mkdir_mock, urlretrieve_mock): | CODE |
| LOW | tests/common/test_utils_data.py | 29 | def test_download_from_url_error_creating_directory(mkdir_mock, caplog): | CODE |
| LOW | tests/common/test_utils_data.py | 41 | def test_download_from_url_error_creating_directory_with_env_var(mkdir_mock, caplog): | CODE |
| LOW | tests/common/test_io.py | 103 | def test_read_img_as_numpy_exif_orientation(tmpdir_factory): | CODE |
| 160 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | doctr/__init__.py | 1 | CODE | |
| LOW | doctr/__init__.py | 1 | CODE | |
| LOW | doctr/__init__.py | 1 | CODE | |
| LOW | doctr/__init__.py | 1 | CODE | |
| LOW | doctr/__init__.py | 1 | CODE | |
| LOW | doctr/__init__.py | 1 | CODE | |
| LOW | doctr/__init__.py | 2 | CODE | |
| LOW | doctr/datasets/__init__.py | 1 | CODE | |
| LOW | doctr/datasets/__init__.py | 2 | CODE | |
| LOW | doctr/datasets/__init__.py | 3 | CODE | |
| LOW | doctr/datasets/__init__.py | 4 | CODE | |
| LOW | doctr/datasets/__init__.py | 5 | CODE | |
| LOW | doctr/datasets/__init__.py | 6 | CODE | |
| LOW | doctr/datasets/__init__.py | 7 | CODE | |
| LOW | doctr/datasets/__init__.py | 8 | CODE | |
| LOW | doctr/datasets/__init__.py | 9 | CODE | |
| LOW | doctr/datasets/__init__.py | 10 | CODE | |
| LOW | doctr/datasets/__init__.py | 11 | CODE | |
| LOW | doctr/datasets/__init__.py | 12 | CODE | |
| LOW | doctr/datasets/__init__.py | 13 | CODE | |
| LOW | doctr/datasets/__init__.py | 14 | CODE | |
| LOW | doctr/datasets/__init__.py | 15 | CODE | |
| LOW | doctr/datasets/__init__.py | 16 | CODE | |
| LOW | doctr/datasets/__init__.py | 17 | CODE | |
| LOW | doctr/datasets/__init__.py | 18 | CODE | |
| LOW | doctr/datasets/__init__.py | 19 | CODE | |
| LOW | doctr/datasets/__init__.py | 20 | CODE | |
| LOW | doctr/datasets/__init__.py | 21 | CODE | |
| LOW | doctr/datasets/__init__.py | 22 | CODE | |
| LOW | doctr/datasets/__init__.py | 23 | CODE | |
| LOW | doctr/datasets/__init__.py | 24 | CODE | |
| LOW | doctr/datasets/datasets/__init__.py | 1 | CODE | |
| LOW | doctr/datasets/generator/__init__.py | 1 | CODE | |
| LOW | doctr/io/__init__.py | 1 | CODE | |
| LOW | doctr/io/__init__.py | 2 | CODE | |
| LOW | doctr/io/__init__.py | 3 | CODE | |
| LOW | doctr/io/__init__.py | 4 | CODE | |
| LOW | doctr/io/__init__.py | 5 | CODE | |
| LOW | doctr/io/__init__.py | 6 | CODE | |
| LOW | doctr/io/exporters.py | 18 | CODE | |
| LOW | doctr/io/exporters.py | 18 | CODE | |
| LOW | doctr/io/image/__init__.py | 1 | CODE | |
| LOW | doctr/io/image/__init__.py | 2 | CODE | |
| LOW | doctr/utils/__init__.py | 1 | CODE | |
| LOW | doctr/utils/__init__.py | 2 | CODE | |
| LOW | doctr/utils/__init__.py | 3 | CODE | |
| LOW | doctr/utils/__init__.py | 4 | CODE | |
| LOW | doctr/models/__init__.py | 1 | CODE | |
| LOW | doctr/models/__init__.py | 2 | CODE | |
| LOW | doctr/models/__init__.py | 3 | CODE | |
| LOW | doctr/models/__init__.py | 4 | CODE | |
| LOW | doctr/models/__init__.py | 5 | CODE | |
| LOW | doctr/models/__init__.py | 6 | CODE | |
| LOW | doctr/models/__init__.py | 7 | CODE | |
| LOW | doctr/models/classification/__init__.py | 1 | CODE | |
| LOW | doctr/models/classification/__init__.py | 2 | CODE | |
| LOW | doctr/models/classification/__init__.py | 3 | CODE | |
| LOW | doctr/models/classification/__init__.py | 4 | CODE | |
| LOW | doctr/models/classification/__init__.py | 5 | CODE | |
| LOW | doctr/models/classification/__init__.py | 6 | CODE | |
| 71 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | doctr/file_utils.py | 9 | __all__ = ["requires_package", "CLASS_NAME"] | CODE |
| LOW | doctr/file_utils.py | 11 | logger = logging.getLogger(__name__) | CODE |
| LOW | doctr/datasets/recognition.py | 13 | __all__ = ["RecognitionDataset"] | CODE |
| LOW | doctr/datasets/synthtext.py | 18 | __all__ = ["SynthText"] | CODE |
| LOW | doctr/datasets/detection.py | 17 | __all__ = ["DetectionDataset"] | CODE |
| LOW | doctr/datasets/coco_text.py | 17 | __all__ = ["COCOTEXT"] | CODE |
| LOW | doctr/datasets/orientation.py | 13 | __all__ = ["OrientationDataset"] | CODE |
| LOW | doctr/datasets/table_structure.py | 19 | __all__ = ["TableStructureDataset"] | CODE |
| LOW | doctr/datasets/layout.py | 15 | __all__ = ["LayoutDataset"] | CODE |
| LOW | doctr/datasets/cord.py | 17 | __all__ = ["CORD"] | CODE |
| LOW | doctr/datasets/mjsynth.py | 13 | __all__ = ["MJSynth"] | CODE |
| LOW | doctr/datasets/wildreceipt.py | 17 | __all__ = ["WILDRECEIPT"] | CODE |
| LOW | doctr/datasets/doc_artefacts.py | 14 | __all__ = ["DocArtefacts"] | CODE |
| LOW | doctr/datasets/svhn.py | 16 | __all__ = ["SVHN"] | CODE |
| LOW | doctr/datasets/iiit5k.py | 17 | __all__ = ["IIIT5K"] | CODE |
| LOW | doctr/datasets/imgur5k.py | 20 | __all__ = ["IMGUR5K"] | CODE |
| LOW | doctr/datasets/ic13.py | 17 | __all__ = ["IC13"] | CODE |
| LOW | doctr/datasets/ocr.py | 15 | __all__ = ["OCRDataset"] | CODE |
| LOW | doctr/datasets/ic03.py | 16 | __all__ = ["IC03"] | CODE |
| LOW | doctr/datasets/utils.py | 22 | __all__ = [ | CODE |
| LOW | doctr/datasets/vocabs.py | 9 | __all__ = ["VOCABS"] | CODE |
| LOW | doctr/datasets/funsd.py | 17 | __all__ = ["FUNSD"] | CODE |
| LOW | doctr/datasets/sroie.py | 17 | __all__ = ["SROIE"] | CODE |
| LOW | doctr/datasets/iiithws.py | 14 | __all__ = ["IIITHWS"] | CODE |
| LOW | doctr/datasets/svt.py | 16 | __all__ = ["SVT"] | CODE |
| LOW | doctr/datasets/datasets/pytorch.py | 18 | __all__ = ["AbstractDataset", "VisionDataset"] | CODE |
| LOW | doctr/datasets/datasets/base.py | 15 | __all__ = ["_AbstractDataset", "_VisionDataset"] | CODE |
| LOW | doctr/datasets/generator/pytorch.py | 8 | __all__ = ["CharacterGenerator", "WordGenerator"] | CODE |
| LOW | doctr/io/elements.py | 22 | __all__ = [ | CODE |
| LOW | doctr/io/html.py | 8 | __all__ = ["read_html"] | CODE |
| LOW | doctr/io/pdf.py | 13 | __all__ = ["read_pdf"] | CODE |
| LOW | doctr/io/reader.py | 18 | __all__ = ["DocumentFile"] | CODE |
| LOW | doctr/io/exporters.py | 20 | __all__ = [ | CODE |
| LOW | doctr/io/image/pytorch.py | 15 | __all__ = ["tensor_from_pil", "read_img_as_tensor", "decode_img_as_tensor", "tensor_from_numpy", "get_img_shape"] | CODE |
| LOW | doctr/io/image/base.py | 13 | __all__ = ["read_img_as_numpy"] | CODE |
| LOW | doctr/utils/metrics.py | 12 | __all__ = [ | CODE |
| LOW | doctr/utils/common_types.py | 12 | __all__ = ["Point2D", "BoundingBox", "Polygon4P", "Polygon", "Bbox", "Sample"] | CODE |
| LOW | doctr/utils/visualization.py | 17 | __all__ = ["visualize_page", "visualize_kie_page", "draw_boxes"] | CODE |
| LOW | doctr/utils/repr.py | 9 | __all__ = ["NestedObject"] | CODE |
| LOW | doctr/utils/geometry.py | 13 | __all__ = [ | CODE |
| LOW | doctr/utils/reconstitution.py | 16 | __all__ = ["synthesize_page", "synthesize_kie_page"] | CODE |
| LOW | doctr/utils/reconstitution.py | 18 | logger = logging.getLogger(__name__) | CODE |
| LOW | doctr/utils/fonts.py | 12 | __all__ = ["get_font"] | CODE |
| LOW | doctr/utils/fonts.py | 14 | logger = logging.getLogger(__name__) | CODE |
| LOW | doctr/utils/data.py | 18 | __all__ = ["download_from_url"] | CODE |
| LOW | doctr/utils/data.py | 20 | logger = logging.getLogger(__name__) | CODE |
| LOW | doctr/utils/multithreading.py | 15 | __all__ = ["multithread_exec"] | CODE |
| LOW | doctr/models/zoo.py | 15 | __all__ = ["ocr_predictor", "kie_predictor"] | CODE |
| LOW | doctr/models/core.py | 11 | __all__ = ["BaseModel"] | CODE |
| LOW | doctr/models/builder.py | 35 | __all__ = ["DocumentBuilder"] | CODE |
| LOW | doctr/models/_utils.py | 17 | __all__ = [ | CODE |
| LOW | doctr/models/classification/zoo.py | 14 | __all__ = ["crop_orientation_predictor", "page_orientation_predictor"] | CODE |
| LOW | doctr/models/classification/magc_resnet/pytorch.py | 19 | __all__ = ["magc_resnet31"] | CODE |
| LOW | doctr/models/classification/mobilenet/pytorch.py | 19 | __all__ = [ | CODE |
| LOW | doctr/models/classification/vip/pytorch.py | 26 | __all__ = ["VIPNet", "vip_tiny", "vip_base"] | CODE |
| LOW | doctr/models/classification/vip/layers/pytorch.py | 13 | __all__ = [ | CODE |
| LOW | doctr/models/classification/starnet/pytorch.py | 21 | __all__ = ["StarNet", "starnet_s3"] | CODE |
| LOW | doctr/models/classification/vit_det/pytorch.py | 20 | __all__ = ["VisionDetectionTransformer", "vit_det_s", "vit_det_m"] | CODE |
| LOW | doctr/models/classification/vit_det/layers/pytorch.py | 12 | __all__ = ["PatchEmbed", "MLP", "AttentionWithCAE", "WindowedCAETransformerBlock"] | CODE |
| LOW | doctr/models/classification/resnet/pytorch.py | 23 | __all__ = ["ResNet", "resnet18", "resnet31", "resnet34", "resnet50", "resnet34_wide", "resnet_stage"] | CODE |
| 56 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | demo/app.py | 20 | CODE | |
| LOW | references/layout/utils.py | 40 | CODE | |
| LOW | references/recognition/train.py | 193 | CODE | |
| LOW | references/recognition/evaluate.py | 27 | CODE | |
| LOW | references/detection/utils.py | 12 | CODE | |
| LOW | references/detection/train.py | 174 | CODE | |
| LOW | references/detection/train.py | 213 | CODE | |
| LOW | tests/common/test_models_detection_utils.py | 29 | CODE | |
| LOW | tests/common/test_headers.py | 7 | CODE | |
| LOW | tests/common/test_io_elements.py | 566 | CODE | |
| LOW | tests/common/test_io_elements.py | 610 | CODE | |
| LOW | doctr/datasets/synthtext.py | 51 | CODE | |
| LOW | doctr/datasets/coco_text.py | 47 | CODE | |
| LOW | doctr/datasets/cord.py | 52 | CODE | |
| LOW | doctr/datasets/wildreceipt.py | 50 | CODE | |
| LOW | doctr/datasets/svhn.py | 51 | CODE | |
| LOW | doctr/datasets/iiit5k.py | 45 | CODE | |
| LOW | doctr/datasets/imgur5k.py | 54 | CODE | |
| LOW | doctr/datasets/ic13.py | 46 | CODE | |
| LOW | doctr/datasets/ic03.py | 50 | CODE | |
| LOW | doctr/datasets/funsd.py | 44 | CODE | |
| LOW | doctr/datasets/sroie.py | 51 | CODE | |
| LOW | doctr/datasets/svt.py | 42 | CODE | |
| LOW | doctr/io/exporters.py | 114 | CODE | |
| LOW | doctr/utils/metrics.py | 731 | CODE | |
| LOW | doctr/utils/visualization.py | 155 | CODE | |
| LOW | doctr/utils/visualization.py | 308 | CODE | |
| LOW | doctr/utils/repr.py | 32 | CODE | |
| LOW | doctr/utils/reconstitution.py | 571 | CODE | |
| LOW | doctr/utils/data.py | 28 | CODE | |
| LOW | doctr/models/builder.py | 424 | CODE | |
| LOW | doctr/models/builder.py | 829 | CODE | |
| LOW | doctr/models/_utils.py | 42 | CODE | |
| LOW | doctr/models/classification/vit_det/pytorch.py | 231 | CODE | |
| LOW | doctr/models/layout/lw_detr/pytorch.py | 269 | CODE | |
| LOW | doctr/models/layout/lw_detr/base.py | 89 | CODE | |
| LOW | doctr/models/layout/lw_detr/base.py | 216 | CODE | |
| LOW | doctr/models/reading_order/base.py | 83 | CODE | |
| LOW | doctr/models/reading_order/base.py | 180 | CODE | |
| LOW | doctr/models/table_structure/tablecenternet/base.py | 295 | CODE | |
| LOW | doctr/models/table_structure/tablecenternet/base.py | 112 | CODE | |
| LOW | doctr/models/recognition/sar/pytorch.py | 113 | CODE | |
| LOW | doctr/models/recognition/parseq/pytorch.py | 125 | CODE | |
| LOW | doctr/models/recognition/parseq/pytorch.py | 323 | CODE | |
| LOW | doctr/models/predictor/base.py | 257 | CODE | |
| LOW | doctr/models/detection/_utils/base.py | 12 | CODE | |
| LOW | …r/models/detection/differentiable_binarization/base.py | 270 | CODE | |
| LOW | doctr/models/detection/linknet/base.py | 159 | CODE | |
| LOW | doctr/models/detection/fast/base.py | 156 | CODE | |
| LOW | doctr/models/factory/hub.py | 192 | CODE | |
| LOW | doctr/cli/main.py | 95 | CODE | |
| LOW | doctr/cli/main.py | 279 | CODE | |
| LOW | doctr/contrib/artefacts.py | 68 | CODE | |
| LOW | doctr/transforms/modules/pytorch.py | 97 | CODE | |
| LOW | scripts/evaluate_kie.py | 23 | CODE | |
| LOW | scripts/collect_env.py | 167 | CODE | |
| LOW | scripts/evaluate.py | 23 | CODE | |
| LOW | api/tests/routes/test_ocr.py | 5 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | doctr/models/zoo.py | 18 | CODE | |
| LOW | doctr/models/zoo.py | 100 | CODE | |
| LOW | doctr/models/zoo.py | 184 | CODE | |
| LOW | doctr/models/zoo.py | 250 | CODE | |
| LOW | doctr/models/classification/starnet/pytorch.py | 95 | CODE | |
| LOW | doctr/models/classification/vit_det/pytorch.py | 164 | CODE | |
| LOW | doctr/models/kie_predictor/pytorch.py | 45 | CODE | |
| LOW | doctr/models/layout/lw_detr/pytorch.py | 269 | CODE | |
| LOW | doctr/models/layout/lw_detr/layers/pytorch.py | 372 | CODE | |
| LOW | doctr/models/layout/lw_detr/layers/pytorch.py | 500 | CODE | |
| LOW | doctr/models/reading_order/base.py | 460 | CODE | |
| LOW | doctr/models/table_structure/tablecenternet/pytorch.py | 157 | CODE | |
| LOW | doctr/models/recognition/master/pytorch.py | 54 | CODE | |
| LOW | doctr/models/recognition/sar/pytorch.py | 180 | CODE | |
| LOW | doctr/models/recognition/parseq/pytorch.py | 125 | CODE | |
| LOW | doctr/models/predictor/pytorch.py | 50 | CODE | |
| LOW | …odels/detection/differentiable_binarization/pytorch.py | 111 | CODE | |
| LOW | doctr/models/detection/linknet/pytorch.py | 85 | CODE | |
| LOW | doctr/models/detection/fast/pytorch.py | 117 | CODE | |
| LOW | doctr/transforms/functional/pytorch.py | 41 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | doctr/utils/reconstitution.py | 37 | except Exception: # pragma: no cover | CODE |
| LOW | doctr/utils/reconstitution.py | 168 | except Exception: # pragma: no cover | CODE |
| LOW | doctr/utils/reconstitution.py | 172 | except Exception: | CODE |
| LOW | doctr/utils/reconstitution.py | 250 | except Exception: # pragma: no cover - a bitmap font may not measure a space | CODE |
| LOW | doctr/utils/reconstitution.py | 562 | except Exception as exc: | CODE |
| LOW | doctr/utils/reconstitution.py | 603 | except Exception as exc: | CODE |
| LOW | doctr/utils/reconstitution.py | 667 | except Exception as exc: | CODE |
| LOW | doctr/models/table_structure/tablecenternet/base.py | 270 | except Exception: | CODE |
| LOW | doctr/cli/main.py | 122 | except Exception as e: | CODE |
| LOW | doctr/cli/main.py | 289 | except Exception as e: | CODE |
| LOW | doctr/cli/main.py | 310 | except Exception as e: | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | tests/common/test_io_exporters.py | 812 | doc.render(page_break=" || ") == "left col\n\nright col\n\nPage 1 of 2 || left col\n\nright col\n\nPage 1 of 2" | CODE |
| HIGH | docs/source/conf.py | 133 | function gtag(){{dataLayer.push(arguments);}} | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | tests/pytorch/test_models_zoo_pt.py | 26 | # Create a dummy callback | COMMENT |
| MEDIUM | doctr/models/builder.py | 168 | # Define a mean y-center for the line | COMMENT |
| MEDIUM | doctr/models/layout/lw_detr/layers/pytorch.py | 116 | """This module implements the self-attention mechanism used in LW-DETR. | STRING |
| MEDIUM | doctr/models/layout/lw_detr/layers/pytorch.py | 196 | """This module implements MultiScaleDeformableAttention from Deformable DETR. | STRING |
| MEDIUM | doctr/models/layout/lw_detr/layers/pytorch.py | 358 | """This module implements a single decoder layer of LW-DETR, | STRING |
| MEDIUM | doctr/models/layout/lw_detr/layers/pytorch.py | 485 | """This module implements the decoder of LW-DETR, | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | tests/pytorch/test_transforms_pt.py | 666 | # ---------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/pytorch/test_transforms_pt.py | 668 | # ---------------------------------------------------------------------------- | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | doctr/models/recognition/vitstr/pytorch.py | 153 | # Compute loss: don't forget to shift gt! Otherwise the model learns to output the gt[t-1]! | COMMENT |
| LOW | doctr/models/recognition/vitstr/pytorch.py | 153 | # Compute loss: don't forget to shift gt! Otherwise the model learns to output the gt[t-1]! | COMMENT |
| LOW | doctr/models/recognition/master/pytorch.py | 144 | # Compute loss: don't forget to shift gt! Otherwise the model learns to output the gt[t-1]! | COMMENT |
| LOW | doctr/models/recognition/master/pytorch.py | 144 | # Compute loss: don't forget to shift gt! Otherwise the model learns to output the gt[t-1]! | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | doctr/utils/multithreading.py | 19 | Execute a given function in parallel for each element of a given sequence >>> from doctr.utils.multithreading impor | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/conftest.py | 321 | # third = np.array([[51], [46], [112], [110], [103]], dtype=np.int16) # 3.png | COMMENT |
| LOW | tests/pytorch/test_models_layout.py | 181 | COMMENT | |
| LOW | docs/source/conf.py | 1 | # Copyright (C) 2021-2026, Mindee. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | doctr/utils/geometry.py | 623 | # Add the crop to the list of crops | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | doctr/models/factory/hub.py | 126 | ### Example usage: | COMMENT |