Small python-gtk application, which helps the user to merge or split PDF documents and rotate, crop and rearrange their pages using an interactive and intuitive graphical interface.
This report presents the forensic synthetic code analysis of pdfarranger/pdfarranger, a Python project with 5,747 GitHub stars. SynthScan v2.0 examined 12,580 lines of code across 35 source files, recording 134 pattern matches distributed across 10 syntactic categories. The overall adjusted score of 15.6 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).
Longitudinal tracking requires multiple scan runs. Once this repository is re-scanned after new commits land, this chart will visualise how the synthetic code signal evolves over time — enabling you to detect whether AI authorship is growing, stabilising, or being actively corrected by human engineers.
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 134 distinct pattern matches across 10 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 |
|---|---|---|---|---|
| MEDIUM⚡ | tests/test_exporter_outlines.py | 230 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/test_exporter_outlines.py | 232 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/test_exporter_outlines.py | 321 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/test_exporter_outlines.py | 323 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/test_exporter_outlines.py | 391 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/test_exporter_outlines.py | 393 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/test_exporter_outlines.py | 486 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/test_exporter_outlines.py | 488 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/test_exporter_outlines.py | 816 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/test_exporter_outlines.py | 818 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/test_exporter_outlines.py | 856 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/test_exporter_outlines.py | 858 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/test_exporter_outlines.py | 24 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/test_exporter_outlines.py | 26 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/test_exporter_outlines.py | 119 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/test_exporter_outlines.py | 121 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/test_exporter_outlines.py | 511 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/test_exporter_outlines.py | 513 | # --------------------------------------------------------------------------- | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | tests/test_exporter_outlines.py | 236 | def test_nested_children_preserved(self): | CODE |
| LOW⚡ | tests/test_exporter_outlines.py | 327 | def test_named_dest_bookmark_remapped(self): | CODE |
| LOW⚡ | tests/test_exporter_outlines.py | 397 | def test_bookmarks_from_both_files_appear(self): | CODE |
| LOW⚡ | tests/test_exporter_outlines.py | 492 | def test_bookmark_targets_first_copy_of_duplicated_page(self): | CODE |
| LOW⚡ | tests/test_exporter_outlines.py | 566 | def test_write_named_dests_no_op_on_empty_list(self): | CODE |
| LOW⚡ | tests/test_exporter_outlines.py | 571 | def test_write_named_dests_creates_name_tree_when_absent(self): | CODE |
| LOW⚡ | tests/test_exporter_outlines.py | 580 | def test_write_named_dests_merges_into_existing_name_tree(self): | CODE |
| LOW⚡ | tests/test_exporter_outlines.py | 824 | def test_styles_and_closed_state_preserved(self): | CODE |
| LOW⚡ | tests/test_exporter_outlines.py | 861 | def test_null_coordinates_in_xyz_destination(): | CODE |
| LOW | tests/test_exporter_outlines.py | 147 | def test_no_outline_produces_no_outline(self): | CODE |
| LOW | tests/test_exporter_outlines.py | 163 | def test_bookmark_to_excluded_page_is_dropped(self): | CODE |
| LOW | tests/test_exporter_outlines.py | 179 | def test_bookmark_targets_remapped_to_new_positions(self): | CODE |
| LOW | tests/test_exporter_outlines.py | 194 | def test_all_bookmarks_excluded_leaves_empty_outline(self): | CODE |
| LOW | tests/test_exporter_outlines.py | 255 | def test_parent_dropped_but_valid_children_promoted(self): | CODE |
| LOW | tests/test_exporter_outlines.py | 282 | def test_parent_and_all_children_excluded_produces_nothing(self): | CODE |
| LOW | tests/test_exporter_outlines.py | 295 | def test_parent_without_destination_is_kept_if_child_survives(self): | CODE |
| LOW | tests/test_exporter_outlines.py | 345 | def test_named_dest_to_excluded_page_is_dropped(self): | CODE |
| LOW | tests/test_exporter_outlines.py | 359 | def test_named_dest_target_follows_reordering(self): | CODE |
| LOW | tests/test_exporter_outlines.py | 374 | def test_unknown_named_dest_is_dropped(self): | CODE |
| LOW | tests/test_exporter_outlines.py | 418 | def test_bookmarks_point_to_correct_output_pages_after_merge(self): | CODE |
| LOW | tests/test_exporter_outlines.py | 440 | def test_file_with_no_outline_is_skipped_gracefully(self): | CODE |
| LOW | tests/test_exporter_outlines.py | 457 | def test_named_dest_collision_across_files_both_survive(self): | CODE |
| LOW | tests/test_exporter_outlines.py | 529 | def test_none_pdf_in_input_list_is_skipped(self): | CODE |
| LOW | tests/test_exporter_outlines.py | 543 | def test_warning_emitted_on_corrupt_outline(self): | CODE |
| LOW | tests/test_exporter_outlines.py | 616 | def test_invalid_destinations_dropped(self): | CODE |
| LOW | tests/test_exporter_outlines.py | 646 | def test_missing_objgen_dropped(self): | CODE |
| LOW | tests/test_exporter_outlines.py | 690 | def test_pdf_error_warning_during_copy(self): | CODE |
| LOW | tests/test_exporter_outlines.py | 710 | def test_various_fit_types_scaling(self): | CODE |
| LOW | tests/test_exporter_outlines.py | 738 | def test_invalid_destination_structures(self): | CODE |
| LOW | tests/test_exporter_outlines.py | 761 | def test_named_dest_with_d_attribute(self): | CODE |
| LOW | tests/test_exporter_outlines.py | 785 | def test_destination_coordinate_scaling(self): | CODE |
| LOW | tests/test_exporter_outlines.py | 931 | def test_rebuild_outlines_preserves_nested_hierarchy(sample_input_pdf): | CODE |
| LOW | tests/test_exporter_outlines.py | 974 | def test_vacon_low_level_structure_regression(tmp_path): | CODE |
| LOW | pdfarranger/exporter.py | 205 | def _apply_geom_transform_job(pdf_output:pikepdf.Pdf, new_page:pikepdf.Page, page:Page) -> None: | CODE |
| LOW | pdfarranger/exporter.py | 220 | def _remove_unreferenced_resources(pdfdoc): | CODE |
| LOW | pdfarranger/exporter.py | 568 | def get_in_memory_poppler_doc(pages, pdfqueue): | CODE |
| LOW | pdfarranger/pageutils.py | 228 | def select_paper_and_orientation(self): | CODE |
| LOW | pdfarranger/pageutils.py | 314 | def set_spinb_changed_callback(self, callback): | CODE |
| LOW | pdfarranger/pageutils.py | 581 | def set_spinb_changed_callback(self, callback): | CODE |
| LOW | pdfarranger/pdfarranger.py | 968 | def set_text_renderer_cell_height(iconview): | CODE |
| LOW | pdfarranger/pdfarranger.py | 1157 | def hide_horizontal_scrollbar(self): | CODE |
| LOW | pdfarranger/pdfarranger.py | 1623 | def choose_export_selection_pdf_name(self, _action, mode, _unknown): | CODE |
| LOW | pdfarranger/pdfarranger.py | 1855 | def convert_page_data_to_layerpage_lists(self, data, laypos): | CODE |
| LOW | pdfarranger/pdfarranger.py | 2142 | def on_action_explode_into_images(self, _action, _param, _unknown): | CODE |
| LOW | pdfarranger/pdfarranger.py | 2610 | def window_focus_in_out_event(self, _widget=None, _event=None): | CODE |
| LOW | pdfarranger/pdfarranger.py | 3076 | def apply_hide_margins_on_pages(self, pages): | CODE |
| LOW | pdfarranger/pdfarranger.py | 3099 | def apply_hide_margins_on_layerpages(self, layerpages, hide): | CODE |
| LOW | pdfarranger/pdfarranger.py | 3367 | def set_password_from_input_files(self): | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH⚡ | tests/test_exporter_outlines.py | 863 | XYZ destinations with null coordinates (e.g. [page /XYZ null null null]) | STRING |
| HIGH | pdfarranger/pdfarranger.py | 1002 | self.status_bar2.push(ctxt_id, _('Rendering…')) | CODE |
| HIGH | pdfarranger/pdfarranger.py | 1611 | self.status_bar2.push(ctxt_id, message) | CODE |
| HIGH | pdfarranger/pdfarranger.py | 3314 | self.status_bar.push(ctxt_id, msg) | CODE |
| HIGH | pdfarranger/exporter_outlines.py | 125 | items.append(val) # None (PDF null) is fine here | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/test_exporter.py | 53 | CODE | |
| LOW | pdfarranger/config.py | 115 | CODE | |
| LOW | pdfarranger/metadata.py | 95 | CODE | |
| LOW | pdfarranger/splitter.py | 106 | CODE | |
| LOW | pdfarranger/core.py | 750 | CODE | |
| LOW | pdfarranger/core.py | 817 | CODE | |
| LOW | pdfarranger/pageutils.py | 813 | CODE | |
| LOW | pdfarranger/pdfarranger.py | 363 | CODE | |
| LOW | pdfarranger/pdfarranger.py | 564 | CODE | |
| LOW | pdfarranger/pdfarranger.py | 704 | CODE | |
| LOW | pdfarranger/pdfarranger.py | 915 | CODE | |
| LOW | pdfarranger/pdfarranger.py | 1256 | CODE | |
| LOW | pdfarranger/pdfarranger.py | 1293 | CODE | |
| LOW | pdfarranger/pdfarranger.py | 1366 | CODE | |
| LOW | pdfarranger/pdfarranger.py | 1481 | CODE | |
| LOW | pdfarranger/pdfarranger.py | 1800 | CODE | |
| LOW | pdfarranger/pdfarranger.py | 1955 | CODE | |
| LOW | pdfarranger/pdfarranger.py | 2083 | CODE | |
| LOW | pdfarranger/pdfarranger.py | 2166 | CODE | |
| LOW | pdfarranger/pdfarranger.py | 2252 | CODE | |
| LOW | pdfarranger/pdfarranger.py | 2328 | CODE | |
| LOW | pdfarranger/pdfarranger.py | 2478 | CODE | |
| LOW | pdfarranger/pdfarranger.py | 2650 | CODE | |
| LOW | pdfarranger/pdfarranger.py | 2960 | CODE | |
| LOW | pdfarranger/iconview.py | 173 | CODE | |
| LOW | pdfarranger/iconview.py | 226 | CODE | |
| LOW | pdfarranger/iconview.py | 328 | CODE | |
| LOW | pdfarranger/iconview.py | 367 | CODE | |
| LOW | pdfarranger/exporter_outlines.py | 221 | CODE | |
| LOW | pdfarranger/search.py | 77 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | tests/test_exporter_outlines.py | 299 | # Create a parent with no destination or action (this hits line 148) | COMMENT |
| MEDIUM | tests/test_exporter_outlines.py | 936 | # Create an output PDF context | COMMENT |
| MEDIUM | pdfarranger/core.py | 401 | # Create a new cropped page | COMMENT |
| MEDIUM | pdfarranger/pageutils.py | 382 | # Create the temporary document without crops. They will be applied later | COMMENT |
| MEDIUM | pdfarranger/pdfarranger.py | 263 | # Create the temporary directory | COMMENT |
| MEDIUM | pdfarranger/pdfarranger.py | 779 | # Create a scrolled window to hold the thumbnails-container | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | setup.py | 1 | #!/usr/bin/env python3 | COMMENT |
| LOW | po/updatepo.sh | 1 | #!/bin/bash | COMMENT |
| LOW | po/genpot.sh | 1 | #!/bin/sh | COMMENT |
| LOW | pdfarranger/image_exporter.py | 1 | # Copyright (C) 2025 pdfarranger contributors | COMMENT |
| LOW | pdfarranger/config.py | 1 | # Copyright (C) 2020 pdfarranger contributors | COMMENT |
| LOW | pdfarranger/metadata.py | 1 | # Copyright (C) 2020 Jerome Robert | COMMENT |
| LOW | pdfarranger/exporter.py | 1 | # Copyright (C) 2008-2017 Konstantinos Poulios, 2018-2019 Jerome Robert | COMMENT |
| LOW | pdfarranger/splitter.py | 1 | # Copyright (C) 2020 pdfarranger contributors | COMMENT |
| LOW | pdfarranger/core.py | 1 | # Copyright (C) 2020 pdfarranger contributors | COMMENT |
| LOW | pdfarranger/pageutils.py | 1 | # Copyright (C) 2020 pdfarranger contributors | COMMENT |
| LOW | pdfarranger/pdfarranger.py | 1 | # Copyright (C) 2008-2017 Konstantinos Poulios, 2018-2019 Jerome Robert | COMMENT |
| LOW | pdfarranger/pdfarranger.py | 561 | if second_id < len(data): | COMMENT |
| LOW | pdfarranger/iconview.py | 1 | # Copyright (C) 2008-2017 Konstantinos Poulios, 2018-2019 Jerome Robert | COMMENT |
| LOW | pdfarranger/exporter_outlines.py | 1 | # pdfarranger is free software; you can redistribute it and/or modify | COMMENT |
| LOW | pdfarranger/undo.py | 1 | # Copyright (C) 2018-2019 Jerome Robert | COMMENT |
| LOW | pdfarranger/search.py | 1 | # Copyright (C) 2025 pdfarranger contributors | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/test.py | 72 | except Exception: | CODE |
| LOW | tests/test.py | 486 | except Exception: | CODE |
| MEDIUM | tests/test.py | 67 | def check_img2pdf(version): | CODE |
| LOW | pdfarranger/exporter.py | 250 | except Exception as e: | CODE |
| LOW | pdfarranger/pdfarranger.py | 925 | except Exception: | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | tests/test_exporter_outlines.py | 831 | # Set color to red [1.0, 0.0, 0.0] and font to bold-italic (3) | COMMENT |
| LOW | pdfarranger/pdfarranger.py | 3000 | # Check if the element is in the range of all pages | COMMENT |
| LOW | pdfarranger/pdfarranger.py | 1382 | chooser.set_filename(f) # Set name to existing file | CODE |
| LOW | pdfarranger/pdfarranger.py | 1396 | chooser.set_current_name(f) # Set name to new file | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | pdfarranger/core.py | 17 | __all__ = [ | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | pdfarranger/iconview.py | 252 | """Scroll in order to keep cursor visible in window.""" | STRING |