Repository Analysis

python-pillow/Pillow

Python Imaging Library (fork)

10.7 Low AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of python-pillow/Pillow, a Python project with 13,780 GitHub stars. SynthScan v2.0 examined 135,195 lines of code across 499 source files, recording 1159 pattern matches distributed across 14 syntactic categories. The overall adjusted score of 10.7 places this repository in the Low 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).

10.7
Adjusted Score
10.7
Raw Score
100%
Time Factor
2026-08-28
Last Push
13.8K
Stars
Python
Language
135.2K
Lines of Code
499
Files
1.2K
Pattern Hits
2026-08-29
Scan Date
0.01
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

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.

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 3MEDIUM 126LOW 1030

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 1159 distinct pattern matches across 14 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.

Hyper-Verbose Identifiers405 hits · 416 pts
SeverityFileLineSnippetContext
LOWsetup.py170def _find_library_dirs_ldconfig() -> list[str]:CODE
LOWchecks/check_large_memory.py54def test_size_greater_than_int() -> None:CODE
LOWTests/test_imagecms.py239def test_unsupported_color_space() -> None:CODE
LOWTests/test_imagecms.py249def test_invalid_color_temperature() -> None:CODE
LOWTests/test_imagecms.py353def test_extended_information() -> None:CODE
LOWTests/test_imagecms.py358 def assert_truncated_tuple_equal(CODE
LOWTests/test_imagecms.py540def test_transform_typesafety() -> None:CODE
LOWTests/test_imagecms.py548def assert_aux_channel_preserved(CODE
LOWTests/test_imagecms.py605def test_preserve_auxiliary_channels_rgba() -> None:CODE
LOWTests/test_imagecms.py611def test_preserve_auxiliary_channels_rgba_in_place() -> None:CODE
LOWTests/test_imagecms.py617def test_preserve_auxiliary_channels_rgbx() -> None:CODE
LOWTests/test_imagecms.py623def test_preserve_auxiliary_channels_rgbx_in_place() -> None:CODE
LOWTests/test_imagecms.py629def test_auxiliary_channels_isolated() -> None:CODE
LOWTests/test_image_paste.py376 def test_incorrect_abbreviated_form(self) -> None:CODE
LOWTests/test_file_msp.py87def test_cannot_save_wrong_mode(tmp_path: Path) -> None:CODE
LOWTests/test_image_array.py96def test_fromarray_strides_without_tobytes() -> None:CODE
LOWTests/test_file_xbm.py58def test_open_filename_with_underscore() -> None:STRING
LOWTests/test_file_psd.py120def test_open_after_exclusive_load() -> None:CODE
LOWTests/test_file_psd.py132def test_negative_top_left_layer() -> None:CODE
LOWTests/test_file_psd.py172def test_combined_larger_than_size() -> None:CODE
LOWTests/test_file_psd.py227def test_bounds_crash_overflow() -> None:CODE
LOWTests/test_imagewin.py107 def test_dib_frombytes_tobytes_roundtrip(self) -> None:CODE
LOWTests/test_imageshow.py62def test_show_without_viewers(monkeypatch: pytest.MonkeyPatch) -> None:CODE
LOWTests/test_features.py54def test_libjpeg_turbo_version() -> None:CODE
LOWTests/test_features.py61def test_libimagequant_version() -> None:CODE
LOWTests/test_features.py77def test_check_warns_on_nonexistent() -> None:CODE
LOWTests/test_file_xpm.py92def test_not_enough_image_data() -> None:STRING
LOWTests/test_core_resources.py87 def test_set_block_size_stats(self) -> None:CODE
LOWTests/test_core_resources.py120 def test_set_blocks_max_stats(self) -> None:CODE
LOWTests/test_file_pcx.py141def test_break_in_count_overflow(CODE
LOWTests/test_file_png.py248 def test_load_transparent_rgb(self) -> None:CODE
LOWTests/test_file_png.py262 def test_save_p_transparent_palette(self, tmp_path: Path) -> None:CODE
LOWTests/test_file_png.py285 def test_save_p_single_transparency(self, tmp_path: Path) -> None:CODE
LOWTests/test_file_png.py310 def test_save_p_transparent_black(self, tmp_path: Path) -> None:CODE
LOWTests/test_file_png.py328 def test_save_grayscale_transparency(self, tmp_path: Path) -> None:CODE
LOWTests/test_file_png.py362 def test_save_rgb_single_transparency(self, tmp_path: Path) -> None:CODE
LOWTests/test_file_png.py397 def test_verify_ignores_crc_error(self, monkeypatch: pytest.MonkeyPatch) -> None:CODE
LOWTests/test_file_png.py411 def test_verify_not_ignores_crc_error_in_required_chunk(CODE
LOWTests/test_file_png.py579 def test_roundtrip_icc_profile(self) -> None:CODE
LOWTests/test_file_png.py586 def test_roundtrip_no_icc_profile(self) -> None:CODE
LOWTests/test_file_png.py602 def test_repr_png_error_returns_none(self) -> None:CODE
LOWTests/test_file_png.py639 def test_roundtrip_private_chunk(self) -> None:CODE
LOWTests/test_file_png.py657 def test_textual_chunks_after_idat(self, monkeypatch: pytest.MonkeyPatch) -> None:CODE
LOWTests/test_file_png.py688 def test_unknown_compression_method(self) -> None:CODE
LOWTests/test_imagegrab.py65 def test_grab_invalid_xdisplay(self) -> None:CODE
LOWTests/test_imagegrab.py172 def test_grabclipboard_wl_clipboard(self, ext: str) -> None:CODE
LOWTests/test_imagegrab.py188 def test_grabclipboard_wl_clipboard_errors(self, arg: str) -> None:CODE
LOWTests/test_shell_injection.py26 def assert_save_filename_check(CODE
LOWTests/test_shell_injection.py50 def test_save_netpbm_filename_bmp_mode(self, tmp_path: Path) -> None:CODE
LOWTests/test_shell_injection.py58 def test_save_netpbm_filename_l_mode(self, tmp_path: Path) -> None:CODE
LOWTests/test_file_bmp.py44def test_fallback_if_mmap_errors() -> None:CODE
LOWTests/test_file_bmp.py296def test_unsupported_bmp_bitfields_layout() -> None:CODE
LOWTests/test_file_im.py109def test_save_unsupported_mode(tmp_path: Path) -> None:CODE
LOWTests/test_image_rotate.py143def test_alpha_rotate_no_fill() -> None:CODE
LOWTests/test_image_rotate.py151def test_alpha_rotate_with_fill() -> None:CODE
LOWTests/test_pickle.py90def test_pickle_la_mode_with_palette(tmp_path: Path) -> None:CODE
LOWTests/test_pickle.py119def helper_assert_pickled_font_images(CODE
LOWTests/test_nanoarrow.py267def test_image_nested_metadata(mode: str, metadata: list[str]) -> None:CODE
LOWTests/test_imagefont.py462def test_free_type_font_get_name(font: ImageFont.FreeTypeFont) -> None:CODE
LOWTests/test_imagefont.py466def test_free_type_font_get_metrics(font: ImageFont.FreeTypeFont) -> None:CODE
345 more matches not shown…
Decorative Section Separators106 hits · 336 pts
SeverityFileLineSnippetContext
MEDIUMsetup.py2# ------------------------------COMMENT
MEDIUMsetup.py5# ------------------------------COMMENT
MEDIUMsetup.py8# ------------------------------COMMENT
MEDIUMTests/test_image_getcolors.py39# --------------------------------------------------------------------COMMENT
MEDIUM.github/workflows/wheels.yml5 # ┌───────────── minute (0 - 59)COMMENT
MEDIUM.github/workflows/wheels.yml6 # │ ┌───────────── hour (0 - 23)COMMENT
MEDIUM.github/workflows/wheels.yml7 # │ │ ┌───────────── day of the month (1 - 31)COMMENT
MEDIUM.github/workflows/wheels.yml8 # │ │ │ ┌───────────── month (1 - 12 or JAN-DEC)COMMENT
MEDIUM.github/workflows/wheels.yml9 # │ │ │ │ ┌───────────── day of the week (0 - 6 or SUN-SAT)COMMENT
MEDIUMsrc/PIL/MpoImagePlugin.py195# ---------------------------------------------------------------------COMMENT
MEDIUMsrc/PIL/PngImagePlugin.py157# --------------------------------------------------------------------COMMENT
MEDIUMsrc/PIL/PngImagePlugin.py374# --------------------------------------------------------------------COMMENT
MEDIUMsrc/PIL/PngImagePlugin.py755# --------------------------------------------------------------------COMMENT
MEDIUMsrc/PIL/PngImagePlugin.py1110# --------------------------------------------------------------------COMMENT
MEDIUMsrc/PIL/PngImagePlugin.py1562# --------------------------------------------------------------------COMMENT
MEDIUMsrc/PIL/PngImagePlugin.py1588# --------------------------------------------------------------------COMMENT
MEDIUMsrc/PIL/PcxImagePlugin.py138# --------------------------------------------------------------------COMMENT
MEDIUMsrc/PIL/PcxImagePlugin.py226# --------------------------------------------------------------------COMMENT
MEDIUMsrc/PIL/ImageFile.py84# --------------------------------------------------------------------COMMENT
MEDIUMsrc/PIL/ImageFile.py112# --------------------------------------------------------------------COMMENT
MEDIUMsrc/PIL/ImageFile.py640# --------------------------------------------------------------------COMMENT
MEDIUMsrc/PIL/SpiderImagePlugin.py207# --------------------------------------------------------------------COMMENT
MEDIUMsrc/PIL/SpiderImagePlugin.py235# --------------------------------------------------------------------COMMENT
MEDIUMsrc/PIL/SpiderImagePlugin.py293# --------------------------------------------------------------------COMMENT
MEDIUMsrc/PIL/MpegImagePlugin.py80# --------------------------------------------------------------------COMMENT
MEDIUMsrc/PIL/GribStubImagePlugin.py34# --------------------------------------------------------------------COMMENT
MEDIUMsrc/PIL/GribStubImagePlugin.py69# --------------------------------------------------------------------COMMENT
MEDIUMsrc/PIL/PixarImagePlugin.py68# --------------------------------------------------------------------COMMENT
MEDIUMsrc/PIL/MicImagePlugin.py25# --------------------------------------------------------------------COMMENT
MEDIUMsrc/PIL/MicImagePlugin.py99# --------------------------------------------------------------------COMMENT
MEDIUMsrc/PIL/ImtImagePlugin.py23# --------------------------------------------------------------------COMMENT
MEDIUMsrc/PIL/ImtImagePlugin.py98# --------------------------------------------------------------------COMMENT
MEDIUMsrc/PIL/GifImagePlugin.py69# --------------------------------------------------------------------COMMENT
MEDIUMsrc/PIL/GifImagePlugin.py509# --------------------------------------------------------------------COMMENT
MEDIUMsrc/PIL/GifImagePlugin.py1139# --------------------------------------------------------------------COMMENT
MEDIUMsrc/PIL/GifImagePlugin.py1210# --------------------------------------------------------------------COMMENT
MEDIUMsrc/PIL/PalmImagePlugin.py104# --------------------------------------------------------------------COMMENT
MEDIUMsrc/PIL/PalmImagePlugin.py112# --------------------------------------------------------------------COMMENT
MEDIUMsrc/PIL/PalmImagePlugin.py212# --------------------------------------------------------------------COMMENT
MEDIUMsrc/PIL/FpxImagePlugin.py41# --------------------------------------------------------------------COMMENT
MEDIUMsrc/PIL/FpxImagePlugin.py257# --------------------------------------------------------------------COMMENT
MEDIUMsrc/PIL/BufrStubImagePlugin.py34# --------------------------------------------------------------------COMMENT
MEDIUMsrc/PIL/BufrStubImagePlugin.py69# --------------------------------------------------------------------COMMENT
MEDIUMsrc/PIL/PSDraw.py147# --------------------------------------------------------------------COMMENT
MEDIUMsrc/PIL/Hdf5StubImagePlugin.py34# --------------------------------------------------------------------COMMENT
MEDIUMsrc/PIL/Hdf5StubImagePlugin.py69# --------------------------------------------------------------------COMMENT
MEDIUMsrc/PIL/IcoImagePlugin.py56# --------------------------------------------------------------------COMMENT
MEDIUMsrc/PIL/IcoImagePlugin.py393# --------------------------------------------------------------------COMMENT
MEDIUMsrc/PIL/EpsImagePlugin.py38# --------------------------------------------------------------------COMMENT
MEDIUMsrc/PIL/EpsImagePlugin.py426# --------------------------------------------------------------------COMMENT
MEDIUMsrc/PIL/EpsImagePlugin.py478# --------------------------------------------------------------------COMMENT
MEDIUMsrc/PIL/TgaImagePlugin.py34# --------------------------------------------------------------------COMMENT
MEDIUMsrc/PIL/TgaImagePlugin.py184# --------------------------------------------------------------------COMMENT
MEDIUMsrc/PIL/TgaImagePlugin.py278# --------------------------------------------------------------------COMMENT
MEDIUMsrc/PIL/Jpeg2KImagePlugin.py390# ------------------------------------------------------------COMMENT
MEDIUMsrc/PIL/Jpeg2KImagePlugin.py461# ------------------------------------------------------------COMMENT
MEDIUMsrc/PIL/PcfFontFile.py34# --------------------------------------------------------------------COMMENT
MEDIUMsrc/PIL/ImageTk.py40# --------------------------------------------------------------------COMMENT
MEDIUMsrc/PIL/ImageTk.py70# --------------------------------------------------------------------COMMENT
MEDIUMsrc/PIL/ImageTk.py192# --------------------------------------------------------------------COMMENT
46 more matches not shown…
Unused Imports299 hits · 296 pts
SeverityFileLineSnippetContext
LOWconftest.py1CODE
LOWselftest.py3CODE
LOWsetup.py9CODE
LOWchecks/check_libtiff_segfault.py1CODE
LOWchecks/check_large_memory.py1CODE
LOWchecks/check_j2k_overflow.py1CODE
LOWchecks/check_j2k_leaks.py1CODE
LOWchecks/32bit_segfault_check.py1CODE
LOWchecks/check_release_notes.py1CODE
LOWchecks/check_jpeg_leaks.py1CODE
LOWchecks/check_large_memory_numpy.py1CODE
LOWchecks/check_wheel.py1CODE
LOWchecks/check_fli_oob.py1CODE
LOWchecks/check_png_dos.py1CODE
LOWchecks/check_j2k_dos.py3CODE
LOWchecks/check_fli_overflow.py1CODE
LOWchecks/check_jp2_overflow.py13CODE
LOWchecks/check_imaging_leaks.py1CODE
LOWchecks/check_icns_dos.py3CODE
LOWwinbuild/build_prepare.py1CODE
LOWTests/test_imagecms.py1CODE
LOWTests/test_imagecms.py9CODE
LOWTests/test_fontfile.py1CODE
LOWTests/test_image_fromqimage.py1CODE
LOWTests/test_qt_image_toqimage.py1CODE
LOWTests/test_pyarrow.py1CODE
LOWTests/test_tiff_ifdrational.py1CODE
LOWTests/test_image_paste.py1CODE
LOWTests/test_file_msp.py1CODE
LOWTests/test_image_array.py1CODE
LOWTests/test_file_xbm.py1CODE
LOWTests/conftest.py1CODE
LOWTests/test_font_pcf.py1CODE
LOWTests/test_tiff_crashes.py13CODE
LOWTests/test_file_psd.py1CODE
LOWTests/test_file_dcx.py1CODE
LOWTests/test_imagewin.py1CODE
LOWTests/test_imageshow.py1CODE
LOWTests/test_font_leaks.py1CODE
LOWTests/test_qt_image_qapplication.py1CODE
LOWTests/test_file_gimppalette.py1CODE
LOWTests/test_features.py1CODE
LOWTests/test_image_putalpha.py1CODE
LOWTests/test_image_draft.py1CODE
LOWTests/test_file_xpm.py1CODE
LOWTests/test_webp_leaks.py1CODE
LOWTests/test_core_resources.py1CODE
LOWTests/test_file_pcx.py1CODE
LOWTests/test_file_png.py1CODE
LOWTests/test_imagegrab.py1CODE
LOWTests/test_uploader.py1CODE
LOWTests/test_shell_injection.py1CODE
LOWTests/test_locale.py1CODE
LOWTests/test_file_pcd.py1CODE
LOWTests/test_file_bmp.py1CODE
LOWTests/test_file_im.py1CODE
LOWTests/test_image_rotate.py1CODE
LOWTests/test_pickle.py1CODE
LOWTests/test_file_cur.py1CODE
LOWTests/test_file_blp.py1CODE
239 more matches not shown…
Over-Commented Block136 hits · 135 pts
SeverityFileLineSnippetContext
LOWchecks/check_jp2_overflow.py1# Reproductions/tests for OOB read errors in FliDecode.cCOMMENT
LOWTests/test_tiff_crashes.py1# Reproductions/tests for crashes/read errors in TiffDecode.cCOMMENT
LOWTests/test_image_transform.py221 sz, Image.Transform.EXTENT, (0, 0, w, h), Image.Resampling.NEARESTCOMMENT
LOWTests/test_file_jpeg.py841 # ArrangeCOMMENT
LOWTests/test_file_jpeg.py861 # Act / AssertCOMMENT
LOWTests/oss-fuzz/fuzz_font.py1#!/usr/bin/python3COMMENT
LOWTests/oss-fuzz/build.sh1#!/bin/bash -euCOMMENT
LOWTests/oss-fuzz/fuzz_pillow.py1# Copyright 2020 Google LLCCOMMENT
LOWTests/oss-fuzz/build_dictionaries.sh1#!/bin/bash -euCOMMENT
LOWdocs/conf.py1#COMMENT
LOWdocs/conf.py61COMMENT
LOWdocs/conf.py81# Else, today_fmt is used as the format for a strftime call.COMMENT
LOWdocs/conf.py101# show_authors = FalseCOMMENT
LOWdocs/conf.py141html_theme_options = {COMMENT
LOWdocs/conf.py181# If not '', a 'Last updated on:' timestamp is inserted at every page bottom,COMMENT
LOWdocs/conf.py201COMMENT
LOWdocs/conf.py221COMMENT
LOWsrc/_imagingft.c21#define PY_SSIZE_T_CLEANCOMMENT
LOWsrc/_imagingft.c41#undef __FTERRORS_H__COMMENT
LOWsrc/_webp.c1#define PY_SSIZE_T_CLEANCOMMENT
LOWsrc/_imagingmath.c61COMMENT
LOWsrc/_imaging.c81#ifdef __CYGWIN__COMMENT
LOWsrc/libImaging/ImPlatform.h21#if defined(_WIN32) || defined(__CYGWIN__) /* WIN */COMMENT
LOWsrc/libImaging/ImPlatform.h41#define INT8 int8_tCOMMENT
LOWsrc/libImaging/ImagingUtils.h1#ifdef WORDS_BIGENDIANCOMMENT
LOWsrc/libImaging/JpegDecode.c21 * See the README file for details on usage and redistribution.COMMENT
LOWsrc/libImaging/Pack.c61 out[3] = tmp[4], \COMMENT
LOWsrc/libImaging/Imaging.h121};COMMENT
LOWsrc/libImaging/Imaging.h741export_imaging_schema(Imaging im, struct ArrowSchema *schema);COMMENT
LOWsrc/libImaging/Imaging.h761#define MUTEX_LOCK(m)COMMENT
LOWsrc/libImaging/JpegEncode.c21COMMENT
LOWsrc/libImaging/Quant.c21#include "Imaging.h"COMMENT
LOWsrc/libImaging/Arrow.h1#include <stdint.h>COMMENT
LOWsrc/libImaging/QuantOctree.c1/* Copyright (c) 2010 Oliver Tonnhofer <olt@bogosoft.com>, OmniscaleCOMMENT
LOWsrc/PIL/MpoImagePlugin.py1#COMMENT
LOWsrc/PIL/ImageMode.py1#COMMENT
LOWsrc/PIL/PngImagePlugin.py1#COMMENT
LOWsrc/PIL/PngImagePlugin.py21# 2004-09-20 fl Added PngInfo chunk containerCOMMENT
LOWsrc/PIL/XbmImagePlugin.py1#COMMENT
LOWsrc/PIL/PcxImagePlugin.py1#COMMENT
LOWsrc/PIL/SunImagePlugin.py1#COMMENT
LOWsrc/PIL/SunImagePlugin.py41 # {COMMENT
LOWsrc/PIL/SunImagePlugin.py101 if self.mode == "L":COMMENT
LOWsrc/PIL/ImageFile.py1#COMMENT
LOWsrc/PIL/SpiderImagePlugin.py1#COMMENT
LOWsrc/PIL/SpiderImagePlugin.py21##COMMENT
LOWsrc/PIL/TarIO.py1#COMMENT
LOWsrc/PIL/MpegImagePlugin.py1#COMMENT
LOWsrc/PIL/BdfFontFile.py1#COMMENT
LOWsrc/PIL/ImageStat.py1#COMMENT
LOWsrc/PIL/PixarImagePlugin.py1#COMMENT
LOWsrc/PIL/GimpPaletteFile.py1#COMMENT
LOWsrc/PIL/ImageColor.py1#COMMENT
LOWsrc/PIL/ContainerIO.py1#COMMENT
LOWsrc/PIL/MspImagePlugin.py1#COMMENT
LOWsrc/PIL/MspImagePlugin.py81 # The algo for the MSP decoder is fromCOMMENT
LOWsrc/PIL/MspImagePlugin.py101 # Read next byte as the RunCountCOMMENT
LOWsrc/PIL/MicImagePlugin.py1#COMMENT
LOWsrc/PIL/ImtImagePlugin.py1#COMMENT
LOWsrc/PIL/GifImagePlugin.py1#COMMENT
76 more matches not shown…
Deep Nesting126 hits · 120 pts
SeverityFileLineSnippetContext
LOWsetup.py387CODE
LOWsetup.py498CODE
LOWwinbuild/build_prepare.py471CODE
LOWTests/test_imagecms.py629CODE
LOWTests/test_pyarrow.py26CODE
LOWTests/test_features.py27CODE
LOWTests/test_features.py31CODE
LOWTests/test_file_png.py74CODE
LOWTests/test_imagegrab.py111CODE
LOWTests/test_nanoarrow.py26CODE
LOWTests/test_bmp_reference.py19CODE
LOWTests/test_bmp_reference.py62CODE
LOWTests/test_arro3.py34CODE
LOWTests/test_file_tiff.py606CODE
LOWTests/test_file_jpeg2k.py543CODE
LOWTests/test_file_libtiff.py164CODE
LOWTests/test_file_libtiff.py211CODE
LOWTests/test_imageops.py391CODE
LOWTests/test_imagedraw.py1444CODE
LOWdocs/example/DdsImagePlugin.py117CODE
LOWdocs/example/DdsImagePlugin.py155CODE
LOWdocs/example/DdsImagePlugin.py179CODE
LOW.github/compare-dist-sizes.py120CODE
LOWsrc/PIL/MpoImagePlugin.py45CODE
LOWsrc/PIL/PngImagePlugin.py1179CODE
LOWsrc/PIL/PngImagePlugin.py1330CODE
LOWsrc/PIL/PngImagePlugin.py497CODE
LOWsrc/PIL/PngImagePlugin.py637CODE
LOWsrc/PIL/PngImagePlugin.py886CODE
LOWsrc/PIL/PngImagePlugin.py1033CODE
LOWsrc/PIL/AvifImagePlugin.py147CODE
LOWsrc/PIL/PcxImagePlugin.py56CODE
LOWsrc/PIL/SunImagePlugin.py36CODE
LOWsrc/PIL/ImageFile.py671CODE
LOWsrc/PIL/ImageFile.py119CODE
LOWsrc/PIL/ImageFile.py290CODE
LOWsrc/PIL/ImageFile.py530CODE
LOWsrc/PIL/ImageText.py26CODE
LOWsrc/PIL/ImageText.py176CODE
LOWsrc/PIL/ImageText.py328CODE
LOWsrc/PIL/QoiImagePlugin.py54CODE
LOWsrc/PIL/QoiImagePlugin.py165CODE
LOWsrc/PIL/MspImagePlugin.py117CODE
LOWsrc/PIL/ImtImagePlugin.py36CODE
LOWsrc/PIL/GifImagePlugin.py516CODE
LOWsrc/PIL/GifImagePlugin.py545CODE
LOWsrc/PIL/GifImagePlugin.py663CODE
LOWsrc/PIL/GifImagePlugin.py876CODE
LOWsrc/PIL/GifImagePlugin.py929CODE
LOWsrc/PIL/GifImagePlugin.py1027CODE
LOWsrc/PIL/GifImagePlugin.py175CODE
LOWsrc/PIL/PalmImagePlugin.py118CODE
LOWsrc/PIL/ImageQt.py132CODE
LOWsrc/PIL/PdfParser.py342CODE
LOWsrc/PIL/PdfParser.py178CODE
LOWsrc/PIL/PdfParser.py990CODE
LOWsrc/PIL/PdfParser.py1028CODE
LOWsrc/PIL/ImageCms.py229CODE
LOWsrc/PIL/FpxImagePlugin.py124CODE
LOWsrc/PIL/ImageFilter.py388CODE
66 more matches not shown…
Excessive Try-Catch Wrapping40 hits · 44 pts
SeverityFileLineSnippetContext
LOWsetup.py305 except Exception:CODE
LOWsetup.py471 except Exception:CODE
LOWsetup.py494 except Exception:CODE
LOWsetup.py611 except Exception:CODE
LOWsetup.py751 except Exception:CODE
MEDIUMsetup.py464def get_macos_sdk_path(self) -> str | None:CODE
MEDIUMsetup.py485def get_ios_sdk_path(self) -> str:CODE
LOWchecks/check_fli_oob.py67 except Exception as msg:CODE
LOWchecks/check_jp2_overflow.py23 except Exception as msg:CODE
LOWTests/conftest.py23 except Exception as e:CODE
LOWTests/conftest.py60 except Exception:CODE
LOWTests/test_bmp_reference.py28 except Exception: # as msg:CODE
LOWTests/test_bmp_reference.py57 except Exception:CODE
LOWTests/test_bmp_reference.py107 except Exception as msg:CODE
LOWTests/test_image_access.py280 except Exception:CODE
LOWTests/helper.py69 except Exception:CODE
LOWTests/helper.py95 except Exception:CODE
LOWTests/helper.py133 except Exception as e:CODE
LOWTests/helper.py138 except Exception:CODE
LOWTests/benchmarks.py100 except Exception as e:CODE
LOWTests/oss-fuzz/fuzz_font.py30 except Exception:CODE
LOWTests/oss-fuzz/fuzz_pillow.py28 except Exception:CODE
LOWsrc/PIL/ImageFile.py207 except Exception as msg:CODE
LOWsrc/PIL/SpiderImagePlugin.py226 except Exception:CODE
LOWsrc/PIL/EpsImagePlugin.py250 except Exception:CODE
LOWsrc/PIL/Jpeg2KImagePlugin.py309 except Exception:CODE
LOWsrc/PIL/Jpeg2KImagePlugin.py316 except Exception:CODE
LOWsrc/PIL/Jpeg2KImagePlugin.py436 except Exception:CODE
LOWsrc/PIL/ImageTk.py143 except Exception:CODE
LOWsrc/PIL/ImageTk.py231 except Exception:CODE
MEDIUMsrc/PIL/ImageTk.py135def __del__(self) -> None:CODE
MEDIUMsrc/PIL/ImageTk.py223def __del__(self) -> None:CODE
LOWsrc/PIL/TiffImagePlugin.py1765 except Exception:CODE
LOWsrc/PIL/Image.py786 except Exception:CODE
LOWsrc/PIL/Image.py1199 except Exception:CODE
LOWsrc/PIL/Image.py2700 except Exception:CODE
LOWsrc/PIL/Image.py4077 except Exception:CODE
LOWsrc/PIL/JpegImagePlugin.py91 except Exception:CODE
LOWsrc/PIL/JpegImagePlugin.py563 except Exception as e:CODE
LOWsrc/PIL/ImageFont.py133 except Exception:CODE
Self-Referential Comments13 hits · 35 pts
SeverityFileLineSnippetContext
MEDIUMTests/test_imagemorph.py167 # Create a corner detector patternCOMMENT
MEDIUMTests/test_000_sanity.py10 # Create an image and do stuff with it.COMMENT
MEDIUMTests/test_file_xvthumb.py18 # Create a Hopper image with a similar XV paletteCOMMENT
MEDIUMdocs/conf.py5# This file is execfile()d with the current directory set to itsCOMMENT
MEDIUMsrc/PIL/ImageOps.py226 # Create the low-end valuesCOMMENT
MEDIUMsrc/PIL/ImageOps.py232 # Create the mapping (2-color)COMMENT
MEDIUMsrc/PIL/ImageOps.py247 # Create the mapping (3-color)COMMENT
MEDIUMsrc/PIL/ImageOps.py269 # Create the high-end valuesCOMMENT
MEDIUMsrc/PIL/TiffTags.py7# This module provides clear-text names for various well-knownCOMMENT
MEDIUMsrc/PIL/TiffTags.py16# This module provides constants and clear-text names for variousCOMMENT
MEDIUMsrc/PIL/TiffImagePlugin.py517 """This class represents a TIFF tag directory. To speed things up, weSTRING
MEDIUMsrc/PIL/TiffImagePlugin.py1061 """This class represents the **legacy** interface to a TIFF tag directory.STRING
MEDIUMsrc/PIL/SgiImagePlugin.py150 # Define the file as SGI File FormatCOMMENT
Redundant / Tautological Comments9 hits · 12 pts
SeverityFileLineSnippetContext
LOWTests/test_file_png.py695 # Set MAXBLOCK to the length of the actual dataCOMMENT
LOWTests/test_decompression_bomb.py34 # Set limit to trigger warning on the test fileCOMMENT
LOWTests/test_decompression_bomb.py43 # Set limit to trigger exception on the test fileCOMMENT
LOWTests/test_decompression_bomb.py67 # Set limit to trigger exception on the test fileCOMMENT
LOWsrc/PIL/WebPImagePlugin.py105 # Check if an error occurredCOMMENT
LOWsrc/PIL/TiffImagePlugin.py71# Set these to true to force use of libtiff for reading or writing.COMMENT
LOWsrc/PIL/ImagePalette.py140 # Set it to black, so that the new color can be written afterwards.COMMENT
LOWsrc/PIL/Image.py2002 # Return resultSTRING
LOWsrc/PIL/Image.py2934 # Return resultSTRING
Modern Structural Boilerplate12 hits · 12 pts
SeverityFileLineSnippetContext
LOWTests/helper.py27logger = logging.getLogger(__name__)CODE
LOWsrc/PIL/PngImagePlugin.py60logger = logging.getLogger(__name__)CODE
LOWsrc/PIL/PcxImagePlugin.py41logger = logging.getLogger(__name__)CODE
LOWsrc/PIL/ImageFile.py48logger = logging.getLogger(__name__)CODE
LOWsrc/PIL/_typing.py44__all__ = ["Buffer", "IntegralLike", "StrOrBytesPath", "SupportsRead"]CODE
LOWsrc/PIL/ImageMorph.py309 def set_lut(self, lut: bytearray | None) -> None:CODE
LOWsrc/PIL/TiffImagePlugin.py69logger = logging.getLogger(__name__)CODE
LOWsrc/PIL/TiffImagePlugin.py673 def _setitem(self, tag: int, value: Any, legacy_api: bool) -> None:CODE
LOWsrc/PIL/TiffImagePlugin.py1428 def _setup(self) -> None:CODE
LOWsrc/PIL/Image.py72logger = logging.getLogger(__name__)CODE
LOWsrc/PIL/ImageFont.py711 def set_variation_by_name(self, name: str | bytes) -> None:CODE
LOWsrc/PIL/ImageFont.py741 def set_variation_by_axes(self, axes: list[float]) -> None:CODE
Cross-Language Confusion2 hits · 10 pts
SeverityFileLineSnippetContext
HIGHsrc/PIL/PngImagePlugin.py1011 self.png.push(cid, pos, length)CODE
HIGHsrc/PIL/PngImagePlugin.py1052 self.png.push(cid, pos, length)CODE
AI Slop Vocabulary3 hits · 9 pts
SeverityFileLineSnippetContext
MEDIUMsrc/PIL/PcxImagePlugin.py18# 2002-06-09 fl Made 2-bit and 4-bit support a bit more robustCOMMENT
MEDIUMsrc/PIL/ImageFile.py22# 2004-02-25 fl Made incremental parser more robustCOMMENT
MEDIUMsrc/PIL/Image.py2257 # We're going to leverage the convert mechanism to use theCOMMENT
AI Structural Patterns6 hits · 6 pts
SeverityFileLineSnippetContext
LOWsrc/PIL/ImageDraw.py529CODE
LOWsrc/PIL/ImageDraw.py648CODE
LOWsrc/PIL/ImageDraw.py709CODE
LOWsrc/PIL/ImageDraw.py737CODE
LOWsrc/PIL/ImageFont.py473CODE
LOWsrc/PIL/ImageFont.py564CODE
Docstring Block Structure1 hit · 5 pts
SeverityFileLineSnippetContext
HIGHsrc/PIL/Image.py3283 Creates an image memory referencing pixel data in a byte buffer. This function is similar to :py:func:`~PIL.ImSTRING
Slop Phrases1 hit · 2 pts
SeverityFileLineSnippetContext
LOWsrc/PIL/TiffImagePlugin.py13# progressive decoding, make sure to use TIFF files where the tagCOMMENT