Repository Analysis

pdfarranger/pdfarranger

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.

15.6 Moderate AI signal View on GitHub

Analysis Overview

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).

15.6
Adjusted Score
15.6
Raw Score
100%
Time Factor
2026-08-01
Last Push
5.7K
Stars
Python
Language
12.6K
Lines of Code
35
Files
134
Pattern Hits
2026-08-02
Scan Date
0.14
HC Hit Rate

What These Metrics Mean

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

Score History

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.

No multi-scan history yet — run the scanner again to build trend data.

Severity Breakdown

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

CRITICAL 0HIGH 5MEDIUM 26LOW 103

Directory Score Breakdown

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

Pattern Findings

The scanner identified 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.

Decorative Section Separators18 hits · 72 pts
SeverityFileLineSnippetContext
MEDIUMtests/test_exporter_outlines.py230# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_exporter_outlines.py232# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_exporter_outlines.py321# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_exporter_outlines.py323# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_exporter_outlines.py391# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_exporter_outlines.py393# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_exporter_outlines.py486# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_exporter_outlines.py488# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_exporter_outlines.py816# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_exporter_outlines.py818# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_exporter_outlines.py856# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_exporter_outlines.py858# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_exporter_outlines.py24# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_exporter_outlines.py26# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_exporter_outlines.py119# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_exporter_outlines.py121# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_exporter_outlines.py511# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_exporter_outlines.py513# ---------------------------------------------------------------------------COMMENT
Hyper-Verbose Identifiers48 hits · 34 pts
SeverityFileLineSnippetContext
LOWtests/test_exporter_outlines.py236 def test_nested_children_preserved(self):CODE
LOWtests/test_exporter_outlines.py327 def test_named_dest_bookmark_remapped(self):CODE
LOWtests/test_exporter_outlines.py397 def test_bookmarks_from_both_files_appear(self):CODE
LOWtests/test_exporter_outlines.py492 def test_bookmark_targets_first_copy_of_duplicated_page(self):CODE
LOWtests/test_exporter_outlines.py566 def test_write_named_dests_no_op_on_empty_list(self):CODE
LOWtests/test_exporter_outlines.py571 def test_write_named_dests_creates_name_tree_when_absent(self):CODE
LOWtests/test_exporter_outlines.py580 def test_write_named_dests_merges_into_existing_name_tree(self):CODE
LOWtests/test_exporter_outlines.py824 def test_styles_and_closed_state_preserved(self):CODE
LOWtests/test_exporter_outlines.py861def test_null_coordinates_in_xyz_destination():CODE
LOWtests/test_exporter_outlines.py147 def test_no_outline_produces_no_outline(self):CODE
LOWtests/test_exporter_outlines.py163 def test_bookmark_to_excluded_page_is_dropped(self):CODE
LOWtests/test_exporter_outlines.py179 def test_bookmark_targets_remapped_to_new_positions(self):CODE
LOWtests/test_exporter_outlines.py194 def test_all_bookmarks_excluded_leaves_empty_outline(self):CODE
LOWtests/test_exporter_outlines.py255 def test_parent_dropped_but_valid_children_promoted(self):CODE
LOWtests/test_exporter_outlines.py282 def test_parent_and_all_children_excluded_produces_nothing(self):CODE
LOWtests/test_exporter_outlines.py295 def test_parent_without_destination_is_kept_if_child_survives(self):CODE
LOWtests/test_exporter_outlines.py345 def test_named_dest_to_excluded_page_is_dropped(self):CODE
LOWtests/test_exporter_outlines.py359 def test_named_dest_target_follows_reordering(self):CODE
LOWtests/test_exporter_outlines.py374 def test_unknown_named_dest_is_dropped(self):CODE
LOWtests/test_exporter_outlines.py418 def test_bookmarks_point_to_correct_output_pages_after_merge(self):CODE
LOWtests/test_exporter_outlines.py440 def test_file_with_no_outline_is_skipped_gracefully(self):CODE
LOWtests/test_exporter_outlines.py457 def test_named_dest_collision_across_files_both_survive(self):CODE
LOWtests/test_exporter_outlines.py529 def test_none_pdf_in_input_list_is_skipped(self):CODE
LOWtests/test_exporter_outlines.py543 def test_warning_emitted_on_corrupt_outline(self):CODE
LOWtests/test_exporter_outlines.py616 def test_invalid_destinations_dropped(self):CODE
LOWtests/test_exporter_outlines.py646 def test_missing_objgen_dropped(self):CODE
LOWtests/test_exporter_outlines.py690 def test_pdf_error_warning_during_copy(self):CODE
LOWtests/test_exporter_outlines.py710 def test_various_fit_types_scaling(self):CODE
LOWtests/test_exporter_outlines.py738 def test_invalid_destination_structures(self):CODE
LOWtests/test_exporter_outlines.py761 def test_named_dest_with_d_attribute(self):CODE
LOWtests/test_exporter_outlines.py785 def test_destination_coordinate_scaling(self):CODE
LOWtests/test_exporter_outlines.py931def test_rebuild_outlines_preserves_nested_hierarchy(sample_input_pdf):CODE
LOWtests/test_exporter_outlines.py974def test_vacon_low_level_structure_regression(tmp_path):CODE
LOWpdfarranger/exporter.py205def _apply_geom_transform_job(pdf_output:pikepdf.Pdf, new_page:pikepdf.Page, page:Page) -> None:CODE
LOWpdfarranger/exporter.py220def _remove_unreferenced_resources(pdfdoc):CODE
LOWpdfarranger/exporter.py568def get_in_memory_poppler_doc(pages, pdfqueue):CODE
LOWpdfarranger/pageutils.py228 def select_paper_and_orientation(self):CODE
LOWpdfarranger/pageutils.py314 def set_spinb_changed_callback(self, callback):CODE
LOWpdfarranger/pageutils.py581 def set_spinb_changed_callback(self, callback):CODE
LOWpdfarranger/pdfarranger.py968 def set_text_renderer_cell_height(iconview):CODE
LOWpdfarranger/pdfarranger.py1157 def hide_horizontal_scrollbar(self):CODE
LOWpdfarranger/pdfarranger.py1623 def choose_export_selection_pdf_name(self, _action, mode, _unknown):CODE
LOWpdfarranger/pdfarranger.py1855 def convert_page_data_to_layerpage_lists(self, data, laypos):CODE
LOWpdfarranger/pdfarranger.py2142 def on_action_explode_into_images(self, _action, _param, _unknown):CODE
LOWpdfarranger/pdfarranger.py2610 def window_focus_in_out_event(self, _widget=None, _event=None):CODE
LOWpdfarranger/pdfarranger.py3076 def apply_hide_margins_on_pages(self, pages):CODE
LOWpdfarranger/pdfarranger.py3099 def apply_hide_margins_on_layerpages(self, layerpages, hide):CODE
LOWpdfarranger/pdfarranger.py3367 def set_password_from_input_files(self):CODE
Cross-Language Confusion5 hits · 24 pts
SeverityFileLineSnippetContext
HIGHtests/test_exporter_outlines.py863 XYZ destinations with null coordinates (e.g. [page /XYZ null null null])STRING
HIGHpdfarranger/pdfarranger.py1002 self.status_bar2.push(ctxt_id, _('Rendering…'))CODE
HIGHpdfarranger/pdfarranger.py1611 self.status_bar2.push(ctxt_id, message)CODE
HIGHpdfarranger/pdfarranger.py3314 self.status_bar.push(ctxt_id, msg)CODE
HIGHpdfarranger/exporter_outlines.py125 items.append(val) # None (PDF null) is fine hereCODE
Deep Nesting30 hits · 22 pts
SeverityFileLineSnippetContext
LOWtests/test_exporter.py53CODE
LOWpdfarranger/config.py115CODE
LOWpdfarranger/metadata.py95CODE
LOWpdfarranger/splitter.py106CODE
LOWpdfarranger/core.py750CODE
LOWpdfarranger/core.py817CODE
LOWpdfarranger/pageutils.py813CODE
LOWpdfarranger/pdfarranger.py363CODE
LOWpdfarranger/pdfarranger.py564CODE
LOWpdfarranger/pdfarranger.py704CODE
LOWpdfarranger/pdfarranger.py915CODE
LOWpdfarranger/pdfarranger.py1256CODE
LOWpdfarranger/pdfarranger.py1293CODE
LOWpdfarranger/pdfarranger.py1366CODE
LOWpdfarranger/pdfarranger.py1481CODE
LOWpdfarranger/pdfarranger.py1800CODE
LOWpdfarranger/pdfarranger.py1955CODE
LOWpdfarranger/pdfarranger.py2083CODE
LOWpdfarranger/pdfarranger.py2166CODE
LOWpdfarranger/pdfarranger.py2252CODE
LOWpdfarranger/pdfarranger.py2328CODE
LOWpdfarranger/pdfarranger.py2478CODE
LOWpdfarranger/pdfarranger.py2650CODE
LOWpdfarranger/pdfarranger.py2960CODE
LOWpdfarranger/iconview.py173CODE
LOWpdfarranger/iconview.py226CODE
LOWpdfarranger/iconview.py328CODE
LOWpdfarranger/iconview.py367CODE
LOWpdfarranger/exporter_outlines.py221CODE
LOWpdfarranger/search.py77CODE
Self-Referential Comments6 hits · 16 pts
SeverityFileLineSnippetContext
MEDIUMtests/test_exporter_outlines.py299 # Create a parent with no destination or action (this hits line 148)COMMENT
MEDIUMtests/test_exporter_outlines.py936 # Create an output PDF contextCOMMENT
MEDIUMpdfarranger/core.py401 # Create a new cropped pageCOMMENT
MEDIUMpdfarranger/pageutils.py382 # Create the temporary document without crops. They will be applied laterCOMMENT
MEDIUMpdfarranger/pdfarranger.py263 # Create the temporary directoryCOMMENT
MEDIUMpdfarranger/pdfarranger.py779 # Create a scrolled window to hold the thumbnails-containerCOMMENT
Over-Commented Block16 hits · 16 pts
SeverityFileLineSnippetContext
LOWsetup.py1#!/usr/bin/env python3COMMENT
LOWpo/updatepo.sh1#!/bin/bashCOMMENT
LOWpo/genpot.sh1#!/bin/shCOMMENT
LOWpdfarranger/image_exporter.py1# Copyright (C) 2025 pdfarranger contributorsCOMMENT
LOWpdfarranger/config.py1# Copyright (C) 2020 pdfarranger contributorsCOMMENT
LOWpdfarranger/metadata.py1# Copyright (C) 2020 Jerome RobertCOMMENT
LOWpdfarranger/exporter.py1# Copyright (C) 2008-2017 Konstantinos Poulios, 2018-2019 Jerome RobertCOMMENT
LOWpdfarranger/splitter.py1# Copyright (C) 2020 pdfarranger contributorsCOMMENT
LOWpdfarranger/core.py1# Copyright (C) 2020 pdfarranger contributorsCOMMENT
LOWpdfarranger/pageutils.py1# Copyright (C) 2020 pdfarranger contributorsCOMMENT
LOWpdfarranger/pdfarranger.py1# Copyright (C) 2008-2017 Konstantinos Poulios, 2018-2019 Jerome RobertCOMMENT
LOWpdfarranger/pdfarranger.py561 if second_id < len(data):COMMENT
LOWpdfarranger/iconview.py1# Copyright (C) 2008-2017 Konstantinos Poulios, 2018-2019 Jerome RobertCOMMENT
LOWpdfarranger/exporter_outlines.py1# pdfarranger is free software; you can redistribute it and/or modifyCOMMENT
LOWpdfarranger/undo.py1# Copyright (C) 2018-2019 Jerome RobertCOMMENT
LOWpdfarranger/search.py1# Copyright (C) 2025 pdfarranger contributorsCOMMENT
Excessive Try-Catch Wrapping5 hits · 6 pts
SeverityFileLineSnippetContext
LOWtests/test.py72 except Exception:CODE
LOWtests/test.py486 except Exception:CODE
MEDIUMtests/test.py67def check_img2pdf(version):CODE
LOWpdfarranger/exporter.py250 except Exception as e:CODE
LOWpdfarranger/pdfarranger.py925 except Exception:CODE
Redundant / Tautological Comments4 hits · 5 pts
SeverityFileLineSnippetContext
LOWtests/test_exporter_outlines.py831 # Set color to red [1.0, 0.0, 0.0] and font to bold-italic (3)COMMENT
LOWpdfarranger/pdfarranger.py3000 # Check if the element is in the range of all pagesCOMMENT
LOWpdfarranger/pdfarranger.py1382 chooser.set_filename(f) # Set name to existing fileCODE
LOWpdfarranger/pdfarranger.py1396 chooser.set_current_name(f) # Set name to new fileCODE
Modern Structural Boilerplate1 hit · 1 pts
SeverityFileLineSnippetContext
LOWpdfarranger/core.py17__all__ = [CODE
AI Slop Vocabulary1 hit · 1 pts
SeverityFileLineSnippetContext
MEDIUMpdfarranger/iconview.py252 """Scroll in order to keep cursor visible in window."""STRING