AI Slop Code RIsk Monitor

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.

17.6 Elevated pattern signal View on GitHub

Maintenance and Governance Review

This report summarizes scanner evidence for pdfarranger/pdfarranger, a Python project with 5,971 GitHub stars. SynthScan examined 12,655 lines of code across 35 source files, recording 139 pattern matches distributed across 11 syntactic categories. The legacy adjusted pattern signal is 17.6 (Elevated pattern signal); it is not an authorship estimate.

Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.

17.6
Adjusted Signal
17.6
Raw Pattern Score
100%
Time Factor
2026-10-01
Last Push
6.0K
Stars
Python
Language
12.7K
Lines of Code
35
Files
139
Pattern Hits
2026-10-12
Scan Date
0.31
HC Hit Rate

Risk Review · v3

Use each vector to guide manual verification of the underlying findings.

Cognitive Ownership Risk 30.1/100 · MEDIUM

Can maintainers explain intent, assumptions, and trade-offs? 104 finding(s).

Hallucinated Dependency & Supply Chain Risk 9.0/100 · LOW

Are imports declared and package/API names verified? 5 finding(s).

Agent Over-Engineering Ratio 43.0/100 · MEDIUM

Are wrappers, guards, and repeated structures necessary? 78 finding(s).

PR Review Velocity Impact 62.2/100 · HIGH

Which changes need focused human review? 139 finding(s).

What These Metrics Mean

Adjusted Signal
Legacy pattern score normalized per 1,000 scanned lines and multiplied by the repository-level time factor. It is not an estimate of AI authorship.
Raw Pattern Score
Sum of severity- and context-weighted pattern findings before applying the time factor.
Time Factor
A coarse multiplier based on repository last-push metadata. It does not identify when individual code was written.
Pattern Hits
Count of configured pattern findings. Review each location and surrounding code before acting.
HC Hit Rate
High- and critical-severity findings per scanned file. Severity is a configured detector weight, not proof of a vulnerability or authorship.
Lines / Files
Scan coverage denominators used by the legacy normalized score.

Pattern-Signal History

This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.

Severity Breakdown

Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.

CRITICAL 0HIGH 11MEDIUM 26LOW 102

Directory Score Breakdown

This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.

Pattern Findings

The scanner identified 139 distinct pattern matches across 11 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. 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 configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.

Decorative Section Separators18 hits · 72 pts
SeverityFileLineSnippetContext
MEDIUM⚡tests/test_exporter_outlines.py230# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/test_exporter_outlines.py232# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/test_exporter_outlines.py321# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/test_exporter_outlines.py323# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/test_exporter_outlines.py391# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/test_exporter_outlines.py393# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/test_exporter_outlines.py486# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/test_exporter_outlines.py488# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/test_exporter_outlines.py816# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/test_exporter_outlines.py818# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/test_exporter_outlines.py859# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/test_exporter_outlines.py861# ---------------------------------------------------------------------------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 · 33 pts
SeverityFileLineSnippetContext
LOW⚡tests/test_exporter_outlines.py236 def test_nested_children_preserved(self):CODE
LOW⚡tests/test_exporter_outlines.py327 def test_named_dest_bookmark_remapped(self):CODE
LOW⚡tests/test_exporter_outlines.py397 def test_bookmarks_from_both_files_appear(self):CODE
LOW⚡tests/test_exporter_outlines.py492 def test_bookmark_targets_first_copy_of_duplicated_page(self):CODE
LOW⚡tests/test_exporter_outlines.py566 def test_write_named_dests_no_op_on_empty_list(self):CODE
LOW⚡tests/test_exporter_outlines.py571 def test_write_named_dests_creates_name_tree_when_absent(self):CODE
LOW⚡tests/test_exporter_outlines.py580 def test_write_named_dests_merges_into_existing_name_tree(self):CODE
LOW⚡tests/test_exporter_outlines.py824 def test_styles_and_closed_state_preserved(self):CODE
LOW⚡tests/test_exporter_outlines.py864def 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.py934def test_rebuild_outlines_preserves_nested_hierarchy(sample_input_pdf):CODE
LOWtests/test_exporter_outlines.py977def 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.py974 def set_text_renderer_cell_height(iconview):CODE
LOWpdfarranger/pdfarranger.py1163 def hide_horizontal_scrollbar(self):CODE
LOWpdfarranger/pdfarranger.py1630 def choose_export_selection_pdf_name(self, _action, mode, _unknown):CODE
LOWpdfarranger/pdfarranger.py1862 def convert_page_data_to_layerpage_lists(self, data, laypos):CODE
LOWpdfarranger/pdfarranger.py2149 def on_action_explode_into_images(self, _action, _param, _unknown):CODE
LOWpdfarranger/pdfarranger.py2617 def window_focus_in_out_event(self, _widget=None, _event=None):CODE
LOWpdfarranger/pdfarranger.py3083 def apply_hide_margins_on_pages(self, pages):CODE
LOWpdfarranger/pdfarranger.py3106 def apply_hide_margins_on_layerpages(self, layerpages, hide):CODE
LOWpdfarranger/pdfarranger.py3374 def set_password_from_input_files(self):CODE
Empty Error Handlers6 hits · 30 pts
SeverityFileLineSnippetContext
HIGHpdfarranger/metadata.py90except KeyError:CODE
HIGHpdfarranger/exporter.py42except locale.Error:CODE
HIGHpdfarranger/pdfarranger.py64except locale.Error:CODE
HIGHpdfarranger/pdfarranger.py24except AttributeError:CODE
HIGHpdfarranger/pdfarranger.py393except AttributeError:CODE
HIGHpdfarranger/pdfarranger.py380except FileNotFoundError:CODE
Cross-Language Confusion5 hits · 24 pts
SeverityFileLineSnippetContext
HIGH⚡tests/test_exporter_outlines.py866 XYZ destinations with null coordinates (e.g. [page /XYZ null null null])STRING
HIGHpdfarranger/pdfarranger.py1008 self.status_bar2.push(ctxt_id, _('Rendering…'))CODE
HIGHpdfarranger/pdfarranger.py1618 self.status_bar2.push(ctxt_id, message)CODE
HIGHpdfarranger/pdfarranger.py3321 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.py769CODE
LOWpdfarranger/core.py836CODE
LOWpdfarranger/pageutils.py813CODE
LOWpdfarranger/pdfarranger.py369CODE
LOWpdfarranger/pdfarranger.py570CODE
LOWpdfarranger/pdfarranger.py710CODE
LOWpdfarranger/pdfarranger.py921CODE
LOWpdfarranger/pdfarranger.py1262CODE
LOWpdfarranger/pdfarranger.py1299CODE
LOWpdfarranger/pdfarranger.py1372CODE
LOWpdfarranger/pdfarranger.py1488CODE
LOWpdfarranger/pdfarranger.py1807CODE
LOWpdfarranger/pdfarranger.py1962CODE
LOWpdfarranger/pdfarranger.py2090CODE
LOWpdfarranger/pdfarranger.py2173CODE
LOWpdfarranger/pdfarranger.py2259CODE
LOWpdfarranger/pdfarranger.py2335CODE
LOWpdfarranger/pdfarranger.py2485CODE
LOWpdfarranger/pdfarranger.py2657CODE
LOWpdfarranger/pdfarranger.py2967CODE
LOWpdfarranger/iconview.py173CODE
LOWpdfarranger/iconview.py226CODE
LOWpdfarranger/iconview.py328CODE
LOWpdfarranger/iconview.py367CODE
LOWpdfarranger/exporter_outlines.py266CODE
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.py939 # Create an output PDF contextCOMMENT
MEDIUMpdfarranger/core.py403 # Create a new cropped pageCOMMENT
MEDIUMpdfarranger/pageutils.py382 # Create the temporary document without crops. They will be applied laterCOMMENT
MEDIUMpdfarranger/pdfarranger.py269 # Create the temporary directoryCOMMENT
MEDIUMpdfarranger/pdfarranger.py785 # Create a scrolled window to hold the thumbnails-containerCOMMENT
Over-Commented Block16 hits · 15 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.py581 # | 2 | .-------. | 2 |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.py501 except Exception:CODE
MEDIUMtests/test.py67def check_img2pdf(version):CODE
LOWpdfarranger/exporter.py250 except Exception as e:CODE
LOWpdfarranger/pdfarranger.py931 except Exception:CODE
Redundant / Tautological Comments3 hits · 3 pts
SeverityFileLineSnippetContext
LOWtests/test_exporter_outlines.py839 # Set color to red [1.0, 0.0, 0.0] and font to bold-italic (3)COMMENT
LOWpdfarranger/pdfarranger.py3007 # Check if the element is in the range of all pagesCOMMENT
LOWpdfarranger/pdfarranger.py1403 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