Repository Analysis

python-pillow/Pillow

Python Imaging Library (fork)

10.6 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,679 GitHub stars. SynthScan v2.0 examined 133,908 lines of code across 499 source files, recording 1143 pattern matches distributed across 14 syntactic categories. The overall adjusted score of 10.6 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.6
Adjusted Score
10.6
Raw Score
100%
Time Factor
2026-07-08
Last Push
13.7K
Stars
Python
Language
133.9K
Lines of Code
499
Files
1.1K
Pattern Hits
2026-07-14
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 1014

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 1143 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 Identifiers395 hits · 406 pts
SeverityFileLineSnippetContext
LOWsetup.py169def _find_library_dirs_ldconfig() -> list[str]:CODE
LOWchecks/check_large_memory.py51def 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.py607def test_preserve_auxiliary_channels_rgba() -> None:CODE
LOWTests/test_imagecms.py613def test_preserve_auxiliary_channels_rgba_in_place() -> None:CODE
LOWTests/test_imagecms.py619def test_preserve_auxiliary_channels_rgbx() -> None:CODE
LOWTests/test_imagecms.py625def test_preserve_auxiliary_channels_rgbx_in_place() -> None:CODE
LOWTests/test_imagecms.py631def test_auxiliary_channels_isolated() -> None:CODE
LOWTests/test_image_paste.py374 def test_incorrect_abbreviated_form(self) -> None:CODE
LOWTests/test_file_msp.py84def test_cannot_save_wrong_mode(tmp_path: Path) -> None:CODE
LOWTests/test_image_array.py101def test_fromarray_strides_without_tobytes() -> None:CODE
LOWTests/test_file_xbm.py55def test_open_filename_with_underscore() -> None:STRING
LOWTests/test_file_psd.py124def test_open_after_exclusive_load() -> None:CODE
LOWTests/test_file_psd.py136def test_negative_top_left_layer() -> None:CODE
LOWTests/test_file_psd.py176def test_combined_larger_than_size() -> None:CODE
LOWTests/test_file_psd.py231def test_bounds_crash_overflow() -> None:CODE
LOWTests/test_imagewin.py104 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.py55def test_not_enough_image_data() -> None:CODE
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.py137def test_break_in_count_overflow(CODE
LOWTests/test_file_png.py245 def test_load_transparent_rgb(self) -> None:CODE
LOWTests/test_file_png.py259 def test_save_p_transparent_palette(self, tmp_path: Path) -> None:CODE
LOWTests/test_file_png.py282 def test_save_p_single_transparency(self, tmp_path: Path) -> None:CODE
LOWTests/test_file_png.py307 def test_save_p_transparent_black(self, tmp_path: Path) -> None:CODE
LOWTests/test_file_png.py325 def test_save_grayscale_transparency(self, tmp_path: Path) -> None:CODE
LOWTests/test_file_png.py359 def test_save_rgb_single_transparency(self, tmp_path: Path) -> None:CODE
LOWTests/test_file_png.py396 def test_verify_ignores_crc_error(self, monkeypatch: pytest.MonkeyPatch) -> None:CODE
LOWTests/test_file_png.py410 def test_verify_not_ignores_crc_error_in_required_chunk(CODE
LOWTests/test_file_png.py578 def test_roundtrip_icc_profile(self) -> None:CODE
LOWTests/test_file_png.py585 def test_roundtrip_no_icc_profile(self) -> None:CODE
LOWTests/test_file_png.py601 def test_repr_png_error_returns_none(self) -> None:CODE
LOWTests/test_file_png.py638 def test_roundtrip_private_chunk(self) -> None:CODE
LOWTests/test_file_png.py656 def test_textual_chunks_after_idat(self, monkeypatch: pytest.MonkeyPatch) -> None:CODE
LOWTests/test_file_png.py687 def test_unknown_compression_method(self) -> None:CODE
LOWTests/test_imagegrab.py65 def test_grab_invalid_xdisplay(self) -> None:CODE
LOWTests/test_imagegrab.py170 def test_grabclipboard_wl_clipboard(self, ext: str) -> None:CODE
LOWTests/test_imagegrab.py186 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.py41def test_fallback_if_mmap_errors() -> None:CODE
LOWTests/test_file_bmp.py266def test_unsupported_bmp_bitfields_layout() -> None:CODE
LOWTests/test_file_im.py110def 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.py87def test_pickle_la_mode_with_palette(tmp_path: Path) -> None:CODE
LOWTests/test_pickle.py116def helper_assert_pickled_font_images(CODE
LOWTests/test_nanoarrow.py267def test_image_nested_metadata(mode: str, metadata: list[str]) -> None:CODE
LOWTests/test_imagefont.py459def test_free_type_font_get_name(font: ImageFont.FreeTypeFont) -> None:CODE
LOWTests/test_imagefont.py463def test_free_type_font_get_metrics(font: ImageFont.FreeTypeFont) -> None:CODE
335 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.py191# ---------------------------------------------------------------------COMMENT
MEDIUMsrc/PIL/PngImagePlugin.py157# --------------------------------------------------------------------COMMENT
MEDIUMsrc/PIL/PngImagePlugin.py374# --------------------------------------------------------------------COMMENT
MEDIUMsrc/PIL/PngImagePlugin.py748# --------------------------------------------------------------------COMMENT
MEDIUMsrc/PIL/PngImagePlugin.py1103# --------------------------------------------------------------------COMMENT
MEDIUMsrc/PIL/PngImagePlugin.py1536# --------------------------------------------------------------------COMMENT
MEDIUMsrc/PIL/PngImagePlugin.py1562# --------------------------------------------------------------------COMMENT
MEDIUMsrc/PIL/PcxImagePlugin.py135# --------------------------------------------------------------------COMMENT
MEDIUMsrc/PIL/PcxImagePlugin.py223# --------------------------------------------------------------------COMMENT
MEDIUMsrc/PIL/ImageFile.py82# --------------------------------------------------------------------COMMENT
MEDIUMsrc/PIL/ImageFile.py110# --------------------------------------------------------------------COMMENT
MEDIUMsrc/PIL/ImageFile.py641# --------------------------------------------------------------------COMMENT
MEDIUMsrc/PIL/SpiderImagePlugin.py213# --------------------------------------------------------------------COMMENT
MEDIUMsrc/PIL/SpiderImagePlugin.py241# --------------------------------------------------------------------COMMENT
MEDIUMsrc/PIL/SpiderImagePlugin.py299# --------------------------------------------------------------------COMMENT
MEDIUMsrc/PIL/MpegImagePlugin.py77# --------------------------------------------------------------------COMMENT
MEDIUMsrc/PIL/GribStubImagePlugin.py31# --------------------------------------------------------------------COMMENT
MEDIUMsrc/PIL/GribStubImagePlugin.py66# --------------------------------------------------------------------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.py103# --------------------------------------------------------------------COMMENT
MEDIUMsrc/PIL/PalmImagePlugin.py111# --------------------------------------------------------------------COMMENT
MEDIUMsrc/PIL/PalmImagePlugin.py211# --------------------------------------------------------------------COMMENT
MEDIUMsrc/PIL/FpxImagePlugin.py41# --------------------------------------------------------------------COMMENT
MEDIUMsrc/PIL/FpxImagePlugin.py257# --------------------------------------------------------------------COMMENT
MEDIUMsrc/PIL/BufrStubImagePlugin.py31# --------------------------------------------------------------------COMMENT
MEDIUMsrc/PIL/BufrStubImagePlugin.py66# --------------------------------------------------------------------COMMENT
MEDIUMsrc/PIL/PSDraw.py146# --------------------------------------------------------------------COMMENT
MEDIUMsrc/PIL/Hdf5StubImagePlugin.py31# --------------------------------------------------------------------COMMENT
MEDIUMsrc/PIL/Hdf5StubImagePlugin.py66# --------------------------------------------------------------------COMMENT
MEDIUMsrc/PIL/IcoImagePlugin.py52# --------------------------------------------------------------------COMMENT
MEDIUMsrc/PIL/IcoImagePlugin.py389# --------------------------------------------------------------------COMMENT
MEDIUMsrc/PIL/EpsImagePlugin.py35# --------------------------------------------------------------------COMMENT
MEDIUMsrc/PIL/EpsImagePlugin.py423# --------------------------------------------------------------------COMMENT
MEDIUMsrc/PIL/EpsImagePlugin.py475# --------------------------------------------------------------------COMMENT
MEDIUMsrc/PIL/TgaImagePlugin.py31# --------------------------------------------------------------------COMMENT
MEDIUMsrc/PIL/TgaImagePlugin.py181# --------------------------------------------------------------------COMMENT
MEDIUMsrc/PIL/TgaImagePlugin.py275# --------------------------------------------------------------------COMMENT
MEDIUMsrc/PIL/Jpeg2KImagePlugin.py384# ------------------------------------------------------------COMMENT
MEDIUMsrc/PIL/Jpeg2KImagePlugin.py455# ------------------------------------------------------------COMMENT
MEDIUMsrc/PIL/PcfFontFile.py34# --------------------------------------------------------------------COMMENT
MEDIUMsrc/PIL/ImageTk.py39# --------------------------------------------------------------------COMMENT
MEDIUMsrc/PIL/ImageTk.py69# --------------------------------------------------------------------COMMENT
MEDIUMsrc/PIL/ImageTk.py191# --------------------------------------------------------------------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_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
LOWTests/test_nanoarrow.py1CODE
239 more matches not shown…
Over-Commented Block133 hits · 132 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_apng.py121 with Image.open("Tests/images/apng/dispose_op_previous_region.png") as im:COMMENT
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.py141COMMENT
LOWdocs/conf.py181# If true, SmartyPants will be used to convert quotes and dashes toCOMMENT
LOWdocs/conf.py201# If true, links to the reST sources are added to the pages.COMMENT
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(PIL_NO_INLINE)COMMENT
LOWsrc/libImaging/ImPlatform.h41#else /* not WIN */COMMENT
LOWsrc/libImaging/ImPlatform.h61#define FLOAT64 doubleCOMMENT
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_array(Imaging im, struct ArrowArray *array);COMMENT
LOWsrc/libImaging/Imaging.h761#define MUTEX_UNLOCK(m) PyMutex_Unlock(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 # cc-by-attribution -- That page references is taken from theCOMMENT
LOWsrc/PIL/MspImagePlugin.py101 # Write the RunValue byte RunCount timesCOMMENT
LOWsrc/PIL/MicImagePlugin.py1#COMMENT
LOWsrc/PIL/ImtImagePlugin.py1#COMMENT
LOWsrc/PIL/GifImagePlugin.py1#COMMENT
LOWsrc/PIL/ImageQt.py1#COMMENT
73 more matches not shown…
Deep Nesting125 hits · 120 pts
SeverityFileLineSnippetContext
LOWsetup.py385CODE
LOWsetup.py496CODE
LOWwinbuild/build_prepare.py475CODE
LOWTests/test_imagecms.py631CODE
LOWTests/test_pyarrow.py26CODE
LOWTests/test_features.py27CODE
LOWTests/test_features.py31CODE
LOWTests/test_file_png.py71CODE
LOWTests/test_imagegrab.py109CODE
LOWTests/test_nanoarrow.py26CODE
LOWTests/test_bmp_reference.py19CODE
LOWTests/test_bmp_reference.py64CODE
LOWTests/test_arro3.py34CODE
LOWTests/test_file_tiff.py599CODE
LOWTests/test_file_jpeg2k.py527CODE
LOWTests/test_file_libtiff.py160CODE
LOWTests/test_file_libtiff.py207CODE
LOWTests/test_imageops.py409CODE
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.py41CODE
LOWsrc/PIL/PngImagePlugin.py1172CODE
LOWsrc/PIL/PngImagePlugin.py1323CODE
LOWsrc/PIL/PngImagePlugin.py500CODE
LOWsrc/PIL/PngImagePlugin.py630CODE
LOWsrc/PIL/PngImagePlugin.py879CODE
LOWsrc/PIL/PngImagePlugin.py1026CODE
LOWsrc/PIL/AvifImagePlugin.py147CODE
LOWsrc/PIL/PcxImagePlugin.py53CODE
LOWsrc/PIL/SunImagePlugin.py36CODE
LOWsrc/PIL/ImageFile.py672CODE
LOWsrc/PIL/ImageFile.py117CODE
LOWsrc/PIL/ImageFile.py291CODE
LOWsrc/PIL/ImageFile.py531CODE
LOWsrc/PIL/ImageText.py23CODE
LOWsrc/PIL/ImageText.py173CODE
LOWsrc/PIL/ImageText.py325CODE
LOWsrc/PIL/QoiImagePlugin.py54CODE
LOWsrc/PIL/QoiImagePlugin.py154CODE
LOWsrc/PIL/MspImagePlugin.py115CODE
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.py117CODE
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.py410CODE
65 more matches not shown…
Excessive Try-Catch Wrapping39 hits · 44 pts
SeverityFileLineSnippetContext
LOWsetup.py304 except Exception: # noqa: PERF203CODE
LOWsetup.py469 except Exception:CODE
LOWsetup.py492 except Exception:CODE
LOWsetup.py609 except Exception:CODE
LOWsetup.py749 except Exception:CODE
MEDIUMsetup.py462def get_macos_sdk_path(self) -> str | None:CODE
MEDIUMsetup.py483def 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.py30 except Exception: # as msg:CODE
LOWTests/test_bmp_reference.py59 except Exception: # noqa: PERF203CODE
LOWTests/test_bmp_reference.py109 except Exception as msg: # noqa: PERF203CODE
LOWTests/test_image_access.py277 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/oss-fuzz/fuzz_font.py30 except Exception:CODE
LOWTests/oss-fuzz/fuzz_pillow.py28 except Exception:CODE
LOWsrc/PIL/ImageFile.py208 except Exception as msg:CODE
LOWsrc/PIL/SpiderImagePlugin.py232 except Exception:CODE
LOWsrc/PIL/EpsImagePlugin.py247 except Exception:CODE
LOWsrc/PIL/Jpeg2KImagePlugin.py303 except Exception:CODE
LOWsrc/PIL/Jpeg2KImagePlugin.py310 except Exception:CODE
LOWsrc/PIL/Jpeg2KImagePlugin.py430 except Exception:CODE
LOWsrc/PIL/ImageTk.py142 except Exception:CODE
LOWsrc/PIL/ImageTk.py230 except Exception:CODE
MEDIUMsrc/PIL/ImageTk.py134def __del__(self) -> None:CODE
MEDIUMsrc/PIL/ImageTk.py222def __del__(self) -> None:CODE
LOWsrc/PIL/TiffImagePlugin.py1764 except Exception:CODE
LOWsrc/PIL/Image.py786 except Exception:CODE
LOWsrc/PIL/Image.py1201 except Exception:CODE
LOWsrc/PIL/Image.py2701 except Exception:CODE
LOWsrc/PIL/Image.py4078 except Exception:CODE
LOWsrc/PIL/JpegImagePlugin.py91 except Exception:CODE
LOWsrc/PIL/JpegImagePlugin.py563 except Exception as e:CODE
LOWsrc/PIL/ImageFont.py131 except Exception:CODE
Self-Referential Comments13 hits · 35 pts
SeverityFileLineSnippetContext
MEDIUMTests/test_imagemorph.py165 # 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.py218 # Create the low-end valuesCOMMENT
MEDIUMsrc/PIL/ImageOps.py224 # Create the mapping (2-color)COMMENT
MEDIUMsrc/PIL/ImageOps.py239 # Create the mapping (3-color)COMMENT
MEDIUMsrc/PIL/ImageOps.py261 # 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.py521 """This class represents a TIFF tag directory. To speed things up, weSTRING
MEDIUMsrc/PIL/TiffImagePlugin.py1062 """This class represents the **legacy** interface to a TIFF tag directory.STRING
MEDIUMsrc/PIL/SgiImagePlugin.py147 # Define the file as SGI File FormatCOMMENT
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.py38logger = logging.getLogger(__name__)CODE
LOWsrc/PIL/ImageFile.py46logger = logging.getLogger(__name__)CODE
LOWsrc/PIL/_typing.py45__all__ = ["Buffer", "IntegralLike", "StrOrBytesPath", "SupportsRead"]CODE
LOWsrc/PIL/ImageMorph.py311 def set_lut(self, lut: bytearray | None) -> None:CODE
LOWsrc/PIL/TiffImagePlugin.py69logger = logging.getLogger(__name__)CODE
LOWsrc/PIL/TiffImagePlugin.py677 def _setitem(self, tag: int, value: Any, legacy_api: bool) -> None:CODE
LOWsrc/PIL/TiffImagePlugin.py1429 def _setup(self) -> None:CODE
LOWsrc/PIL/Image.py72logger = logging.getLogger(__name__)CODE
LOWsrc/PIL/ImageFont.py709 def set_variation_by_name(self, name: str | bytes) -> None:CODE
LOWsrc/PIL/ImageFont.py739 def set_variation_by_axes(self, axes: list[float]) -> None:CODE
Redundant / Tautological Comments8 hits · 11 pts
SeverityFileLineSnippetContext
LOWTests/test_file_png.py694 # 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/Image.py2003 # Return resultSTRING
LOWsrc/PIL/Image.py2935 # Return resultSTRING
Cross-Language Confusion2 hits · 10 pts
SeverityFileLineSnippetContext
HIGHsrc/PIL/PngImagePlugin.py1004 self.png.push(cid, pos, length)CODE
HIGHsrc/PIL/PngImagePlugin.py1045 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.py2258 # We're going to leverage the convert mechanism to use theCOMMENT
AI Structural Patterns6 hits · 6 pts
SeverityFileLineSnippetContext
LOWsrc/PIL/ImageDraw.py530CODE
LOWsrc/PIL/ImageDraw.py649CODE
LOWsrc/PIL/ImageDraw.py710CODE
LOWsrc/PIL/ImageDraw.py738CODE
LOWsrc/PIL/ImageFont.py471CODE
LOWsrc/PIL/ImageFont.py562CODE
Docstring Block Structure1 hit · 5 pts
SeverityFileLineSnippetContext
HIGHsrc/PIL/Image.py3284 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