AI Slop Code RIsk Monitor

python-pillow/Pillow

Python Imaging Library (fork)

13.0 Moderate pattern signal View on GitHub

Maintenance and Governance Review

This report summarizes scanner evidence for python-pillow/Pillow, a Python project with 13,887 GitHub stars. SynthScan examined 137,210 lines of code across 498 source files, recording 1255 pattern matches distributed across 15 syntactic categories. The legacy adjusted pattern signal is 13.0 (Moderate 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.

13.0
Adjusted Signal
13.0
Raw Pattern Score
100%
Time Factor
2026-10-11
Last Push
13.9K
Stars
Python
Language
137.2K
Lines of Code
498
Files
1.3K
Pattern Hits
2026-10-12
Scan Date
0.14
HC Hit Rate

Risk Review · v3

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

Cognitive Ownership Risk 24.4/100 · LOW

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

Hallucinated Dependency & Supply Chain Risk 10.6/100 · LOW

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

Agent Over-Engineering Ratio 34.5/100 · MEDIUM

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

PR Review Velocity Impact 49.1/100 · MEDIUM

Which changes need focused human review? 1255 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 69MEDIUM 126LOW 1060

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 1255 distinct pattern matches across 15 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.

Hyper-Verbose Identifiers432 hits · 438 pts
SeverityFileLineSnippetContext
LOWsetup.py171def _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
LOW⚡Tests/test_imagecms.py605def test_preserve_auxiliary_channels_rgba() -> None:CODE
LOW⚡Tests/test_imagecms.py611def test_preserve_auxiliary_channels_rgba_in_place() -> None:CODE
LOW⚡Tests/test_imagecms.py617def test_preserve_auxiliary_channels_rgbx() -> None:CODE
LOW⚡Tests/test_imagecms.py623def test_preserve_auxiliary_channels_rgbx_in_place() -> None:CODE
LOW⚡Tests/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.py114def test_seek_back_to_initial_frame() -> None:CODE
LOWTests/test_file_psd.py142def test_open_after_exclusive_load() -> None:CODE
LOWTests/test_file_psd.py154def test_negative_top_left_layer() -> None:CODE
LOWTests/test_file_psd.py208def test_combined_larger_than_size() -> None:CODE
LOWTests/test_file_psd.py263def test_bounds_crash_overflow() -> None:CODE
LOWTests/test_file_dcx.py140def test_seek_decompression_bomb() -> None:CODE
LOWTests/test_imagewin.py122 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.py247 def test_load_transparent_rgb(self) -> None:CODE
LOWTests/test_file_png.py261 def test_save_p_transparent_palette(self, tmp_path: Path) -> None:CODE
LOWTests/test_file_png.py284 def test_save_p_single_transparency(self, tmp_path: Path) -> None:CODE
LOWTests/test_file_png.py309 def test_save_p_transparent_black(self, tmp_path: Path) -> None:CODE
LOWTests/test_file_png.py327 def test_save_grayscale_transparency(self, tmp_path: Path) -> None:CODE
LOWTests/test_file_png.py361 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_file_png.py720 def test_truncated_trns_chunk(CODE
LOWTests/test_file_png.py732 def test_truncated_trns_chunk_in_file(CODE
LOWTests/test_file_png.py760 def test_specify_bits_fewer_palette_entries(self, tmp_path: Path) -> 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.py25 def assert_save_filename_check(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.py125def 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
372 more matches not shown…
Empty Error Handlers66 hits · 330 pts
SeverityFileLineSnippetContext
HIGHselftest.py14except AttributeError:CODE
HIGHsetup.py306except Exception:CODE
HIGHsetup.py402except TypeError:CODE
HIGHTests/test_imagecms.py34except ImportError:CODE
HIGHTests/conftest.py60except Exception:CODE
HIGHTests/test_font_pcf.py40except OSError:CODE
HIGHTests/test_tiff_crashes.py53except OSError:CODE
HIGHTests/test_imageshow.py104except NotImplementedError:CODE
HIGHTests/test_bmp_reference.py28except Exception: # as msg:CODE
HIGHTests/test_image_access.py328except FileNotFoundError:CODE
HIGHTests/test_font_pcf_charsets.py62except OSError:CODE
HIGHTests/helper.py102except Exception:CODE
HIGHTests/helper.py145except Exception:CODE
HIGHTests/test_file_jpeg2k.py548except OSError:CODE
HIGHTests/benchmarks.py77except LookupError:CODE
HIGHTests/benchmarks.py83except LookupError:CODE
HIGHTests/test_file_gif.py505except EOFError:CODE
HIGHTests/test_file_gif.py529except EOFError:CODE
HIGHTests/test_file_gif.py585except EOFError:CODE
HIGHTests/test_file_gif.py872except EOFError:CODE
HIGHTests/test_file_gif.py884except EOFError:CODE
HIGHTests/oss-fuzz/test_fuzzers.py40except (CODE
HIGHTests/oss-fuzz/test_fuzzers.py66except (Image.DecompressionBombError, Image.DecompressionBombWarning, OSError):CODE
HIGHTests/oss-fuzz/fuzz_font.py30except Exception:CODE
HIGHTests/oss-fuzz/fuzz_pillow.py28except Exception:CODE
HIGHsrc/PIL/PngImagePlugin.py473except KeyError:CODE
HIGHsrc/PIL/PngImagePlugin.py1031except EOFError:CODE
HIGHsrc/PIL/ImageFile.py590except OSError:CODE
HIGHsrc/PIL/_typing.py17except ImportError:CODE
HIGHsrc/PIL/GifImagePlugin.py408except AttributeError:CODE
HIGHsrc/PIL/GifImagePlugin.py731except ValueError:CODE
HIGHsrc/PIL/ImageFilter.py414except ImportError:CODE
HIGHsrc/PIL/ImageDraw.py849except (ValueError, IndexError):CODE
HIGHsrc/PIL/EpsImagePlugin.py178except OSError:CODE
HIGHsrc/PIL/EpsImagePlugin.py257except Exception:CODE
HIGHsrc/PIL/TgaImagePlugin.py163except KeyError:CODE
HIGHsrc/PIL/PcfFontFile.py254except UnicodeDecodeError:CODE
HIGHsrc/PIL/ImageTk.py145except Exception:CODE
HIGHsrc/PIL/ImageTk.py233except Exception:CODE
HIGHsrc/PIL/ImageShow.py360except ImportError:CODE
HIGHsrc/PIL/TiffImagePlugin.py1786except Exception:CODE
HIGHsrc/PIL/TiffImagePlugin.py1944except io.UnsupportedOperation:CODE
HIGHsrc/PIL/IptcImagePlugin.py225except (IndexError, KeyError):CODE
HIGHsrc/PIL/IptcImagePlugin.py205except KeyError:CODE
HIGHsrc/PIL/ImagePalette.py307except (SyntaxError, ValueError):CODE
HIGHsrc/PIL/IcnsImagePlugin.py248except KeyError:CODE
HIGHsrc/PIL/Image.py445except ImportError:CODE
HIGHsrc/PIL/Image.py451except ImportError:CODE
HIGHsrc/PIL/Image.py457except ImportError:CODE
HIGHsrc/PIL/Image.py463except ImportError:CODE
HIGHsrc/PIL/Image.py469except ImportError:CODE
HIGHsrc/PIL/Image.py515except KeyError:CODE
HIGHsrc/PIL/Image.py540except KeyError:CODE
HIGHsrc/PIL/Image.py491except ImportError:CODE
HIGHsrc/PIL/Image.py4110except Exception:CODE
HIGHsrc/PIL/Image.py2725except PermissionError:CODE
HIGHsrc/PIL/Image.py4333except struct.error:CODE
HIGHsrc/PIL/ImImagePlugin.py274except ValueError:CODE
HIGHsrc/PIL/JpegImagePlugin.py894except (TypeError, IndexError):CODE
HIGHsrc/PIL/JpegImagePlugin.py102except Exception:CODE
6 more matches not shown…
Decorative Section Separators106 hits · 330 pts
SeverityFileLineSnippetContext
MEDIUM⚡setup.py2# ------------------------------COMMENT
MEDIUM⚡setup.py5# ------------------------------COMMENT
MEDIUM⚡setup.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.py199# ---------------------------------------------------------------------COMMENT
MEDIUMsrc/PIL/PngImagePlugin.py167# --------------------------------------------------------------------COMMENT
MEDIUMsrc/PIL/PngImagePlugin.py384# --------------------------------------------------------------------COMMENT
MEDIUMsrc/PIL/PngImagePlugin.py772# --------------------------------------------------------------------COMMENT
MEDIUMsrc/PIL/PngImagePlugin.py1124# --------------------------------------------------------------------COMMENT
MEDIUMsrc/PIL/PngImagePlugin.py1576# --------------------------------------------------------------------COMMENT
MEDIUMsrc/PIL/PngImagePlugin.py1602# --------------------------------------------------------------------COMMENT
MEDIUMsrc/PIL/PcxImagePlugin.py140# --------------------------------------------------------------------COMMENT
MEDIUMsrc/PIL/PcxImagePlugin.py228# --------------------------------------------------------------------COMMENT
MEDIUMsrc/PIL/ImageFile.py86# --------------------------------------------------------------------COMMENT
MEDIUMsrc/PIL/ImageFile.py114# --------------------------------------------------------------------COMMENT
MEDIUMsrc/PIL/ImageFile.py647# --------------------------------------------------------------------COMMENT
MEDIUMsrc/PIL/SpiderImagePlugin.py210# --------------------------------------------------------------------COMMENT
MEDIUMsrc/PIL/SpiderImagePlugin.py238# --------------------------------------------------------------------COMMENT
MEDIUMsrc/PIL/SpiderImagePlugin.py296# --------------------------------------------------------------------COMMENT
MEDIUMsrc/PIL/MpegImagePlugin.py82# --------------------------------------------------------------------COMMENT
MEDIUMsrc/PIL/GribStubImagePlugin.py31# --------------------------------------------------------------------COMMENT
MEDIUMsrc/PIL/GribStubImagePlugin.py64# --------------------------------------------------------------------COMMENT
MEDIUMsrc/PIL/PixarImagePlugin.py70# --------------------------------------------------------------------COMMENT
MEDIUMsrc/PIL/MicImagePlugin.py27# --------------------------------------------------------------------COMMENT
MEDIUMsrc/PIL/MicImagePlugin.py103# --------------------------------------------------------------------COMMENT
MEDIUMsrc/PIL/ImtImagePlugin.py23# --------------------------------------------------------------------COMMENT
MEDIUMsrc/PIL/ImtImagePlugin.py98# --------------------------------------------------------------------COMMENT
MEDIUMsrc/PIL/GifImagePlugin.py73# --------------------------------------------------------------------COMMENT
MEDIUMsrc/PIL/GifImagePlugin.py509# --------------------------------------------------------------------COMMENT
MEDIUMsrc/PIL/GifImagePlugin.py1074# --------------------------------------------------------------------COMMENT
MEDIUMsrc/PIL/GifImagePlugin.py1145# --------------------------------------------------------------------COMMENT
MEDIUMsrc/PIL/PalmImagePlugin.py106# --------------------------------------------------------------------COMMENT
MEDIUMsrc/PIL/PalmImagePlugin.py114# --------------------------------------------------------------------COMMENT
MEDIUMsrc/PIL/PalmImagePlugin.py214# --------------------------------------------------------------------COMMENT
MEDIUMsrc/PIL/FpxImagePlugin.py43# --------------------------------------------------------------------COMMENT
MEDIUMsrc/PIL/FpxImagePlugin.py259# --------------------------------------------------------------------COMMENT
MEDIUMsrc/PIL/BufrStubImagePlugin.py31# --------------------------------------------------------------------COMMENT
MEDIUMsrc/PIL/BufrStubImagePlugin.py64# --------------------------------------------------------------------COMMENT
MEDIUMsrc/PIL/PSDraw.py157# --------------------------------------------------------------------COMMENT
MEDIUMsrc/PIL/Hdf5StubImagePlugin.py31# --------------------------------------------------------------------COMMENT
MEDIUMsrc/PIL/Hdf5StubImagePlugin.py64# --------------------------------------------------------------------COMMENT
MEDIUMsrc/PIL/IcoImagePlugin.py58# --------------------------------------------------------------------COMMENT
MEDIUMsrc/PIL/IcoImagePlugin.py411# --------------------------------------------------------------------COMMENT
MEDIUMsrc/PIL/EpsImagePlugin.py39# --------------------------------------------------------------------COMMENT
MEDIUMsrc/PIL/EpsImagePlugin.py433# --------------------------------------------------------------------COMMENT
MEDIUMsrc/PIL/EpsImagePlugin.py485# --------------------------------------------------------------------COMMENT
MEDIUMsrc/PIL/TgaImagePlugin.py36# --------------------------------------------------------------------COMMENT
MEDIUMsrc/PIL/TgaImagePlugin.py186# --------------------------------------------------------------------COMMENT
MEDIUMsrc/PIL/TgaImagePlugin.py280# --------------------------------------------------------------------COMMENT
MEDIUMsrc/PIL/Jpeg2KImagePlugin.py390# ------------------------------------------------------------COMMENT
MEDIUMsrc/PIL/Jpeg2KImagePlugin.py461# ------------------------------------------------------------COMMENT
MEDIUMsrc/PIL/PcfFontFile.py36# --------------------------------------------------------------------COMMENT
MEDIUMsrc/PIL/ImageTk.py42# --------------------------------------------------------------------COMMENT
MEDIUMsrc/PIL/ImageTk.py72# --------------------------------------------------------------------COMMENT
MEDIUMsrc/PIL/ImageTk.py194# --------------------------------------------------------------------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 Block138 hits · 138 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 )COMMENT
LOWTests/test_file_jpeg.py901 with Image.open("Tests/images/truncated_exif_dpi.jpg") 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.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#define JCONFIG_INCLUDEDCOMMENT
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.h281#define IMAGING_TRANSFORM_AFFINE 0COMMENT
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/Arrow.h1// Licensed to the Apache Software Foundation (ASF) under oneCOMMENT
LOWsrc/libImaging/Arrow.h21// This product includes software developed atCOMMENT
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.py41COMMENT
LOWsrc/PIL/SunImagePlugin.py101 offset = offset + palette_lengthCOMMENT
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.py81class MspDecoder(ImageFile.PyDecoder):COMMENT
LOWsrc/PIL/MspImagePlugin.py101 # If the RunType value is zeroCOMMENT
LOWsrc/PIL/MicImagePlugin.py1#COMMENT
LOWsrc/PIL/ImtImagePlugin.py1#COMMENT
LOWsrc/PIL/GifImagePlugin.py1#COMMENT
78 more matches not shown…
Deep Nesting128 hits · 122 pts
SeverityFileLineSnippetContext
LOWsetup.py388CODE
LOWsetup.py499CODE
LOWwinbuild/build_prepare.py476CODE
LOWTests/test_imagecms.py629CODE
LOWTests/test_pyarrow.py26CODE
LOWTests/test_features.py27CODE
LOWTests/test_features.py31CODE
LOWTests/test_file_png.py73CODE
LOWTests/test_imagegrab.py111CODE
LOWTests/test_nanoarrow.py26CODE
LOWTests/test_bmp_reference.py19CODE
LOWTests/test_bmp_reference.py62CODE
LOWTests/test_file_wmf.py121CODE
LOWTests/test_arro3.py34CODE
LOWTests/test_file_tiff.py606CODE
LOWTests/test_file_jpeg2k.py553CODE
LOWTests/test_file_libtiff.py163CODE
LOWTests/test_file_libtiff.py210CODE
LOWTests/test_imageops.py423CODE
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.py47CODE
LOWsrc/PIL/PngImagePlugin.py1193CODE
LOWsrc/PIL/PngImagePlugin.py1349CODE
LOWsrc/PIL/PngImagePlugin.py507CODE
LOWsrc/PIL/PngImagePlugin.py654CODE
LOWsrc/PIL/PngImagePlugin.py903CODE
LOWsrc/PIL/PngImagePlugin.py1047CODE
LOWsrc/PIL/AvifImagePlugin.py151CODE
LOWsrc/PIL/XbmImagePlugin.py55CODE
LOWsrc/PIL/PcxImagePlugin.py58CODE
LOWsrc/PIL/SunImagePlugin.py38CODE
LOWsrc/PIL/ImageFile.py678CODE
LOWsrc/PIL/ImageFile.py296CODE
LOWsrc/PIL/ImageFile.py537CODE
LOWsrc/PIL/ImageText.py28CODE
LOWsrc/PIL/ImageText.py178CODE
LOWsrc/PIL/ImageText.py328CODE
LOWsrc/PIL/QoiImagePlugin.py56CODE
LOWsrc/PIL/QoiImagePlugin.py167CODE
LOWsrc/PIL/MspImagePlugin.py118CODE
LOWsrc/PIL/ImtImagePlugin.py36CODE
LOWsrc/PIL/GifImagePlugin.py516CODE
LOWsrc/PIL/GifImagePlugin.py545CODE
LOWsrc/PIL/GifImagePlugin.py663CODE
LOWsrc/PIL/GifImagePlugin.py865CODE
LOWsrc/PIL/GifImagePlugin.py963CODE
LOWsrc/PIL/GifImagePlugin.py179CODE
LOWsrc/PIL/PalmImagePlugin.py120CODE
LOWsrc/PIL/ImageQt.py136CODE
LOWsrc/PIL/PdfParser.py347CODE
LOWsrc/PIL/PdfParser.py183CODE
LOWsrc/PIL/PdfParser.py999CODE
LOWsrc/PIL/PdfParser.py1037CODE
LOWsrc/PIL/ImageCms.py229CODE
LOWsrc/PIL/FpxImagePlugin.py126CODE
LOWsrc/PIL/_deprecate.py10CODE
68 more matches not shown…
Excessive Try-Catch Wrapping40 hits · 43 pts
SeverityFileLineSnippetContext
LOWsetup.py306 except Exception:CODE
LOWsetup.py472 except Exception:CODE
LOWsetup.py495 except Exception:CODE
LOWsetup.py620 except Exception:CODE
LOWsetup.py760 except Exception:CODE
MEDIUMsetup.py465def get_macos_sdk_path(self) -> str | None:CODE
MEDIUMsetup.py486def 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.py284 except Exception:CODE
LOWTests/helper.py76 except Exception:CODE
LOWTests/helper.py102 except Exception:CODE
LOW⚡Tests/helper.py140 except Exception as e:CODE
LOW⚡Tests/helper.py145 except Exception:CODE
LOWTests/benchmarks.py101 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.py213 except Exception as msg:CODE
LOWsrc/PIL/SpiderImagePlugin.py229 except Exception:CODE
LOWsrc/PIL/EpsImagePlugin.py257 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.py145 except Exception:CODE
LOWsrc/PIL/ImageTk.py233 except Exception:CODE
MEDIUMsrc/PIL/ImageTk.py137def __del__(self) -> None:CODE
MEDIUMsrc/PIL/ImageTk.py225def __del__(self) -> None:CODE
LOWsrc/PIL/TiffImagePlugin.py1786 except Exception:CODE
LOWsrc/PIL/Image.py791 except Exception:CODE
LOWsrc/PIL/Image.py1207 except Exception:CODE
LOWsrc/PIL/Image.py2719 except Exception:CODE
LOWsrc/PIL/Image.py4110 except Exception:CODE
LOWsrc/PIL/JpegImagePlugin.py102 except Exception:CODE
LOWsrc/PIL/JpegImagePlugin.py581 except Exception as e:CODE
LOWsrc/PIL/ImageFont.py135 except Exception:CODE
Self-Referential Comments13 hits · 35 pts
SeverityFileLineSnippetContext
MEDIUMTests/test_imagemorph.py179 # 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.py228 # Create the low-end valuesCOMMENT
MEDIUMsrc/PIL/ImageOps.py234 # Create the mapping (2-color)COMMENT
MEDIUMsrc/PIL/ImageOps.py249 # Create the mapping (3-color)COMMENT
MEDIUMsrc/PIL/ImageOps.py271 # 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.py530 """This class represents a TIFF tag directory. To speed things up, weSTRING
MEDIUMsrc/PIL/TiffImagePlugin.py1073 """This class represents the **legacy** interface to a TIFF tag directory.STRING
MEDIUMsrc/PIL/SgiImagePlugin.py152 # Define the file as SGI File FormatCOMMENT
Redundant / Tautological Comments9 hits · 12 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
LOW⚡Tests/test_decompression_bomb.py68 # Set limit to trigger exception on the test fileCOMMENT
LOWsrc/PIL/WebPImagePlugin.py109 # Check if an error occurredCOMMENT
LOW⚡src/PIL/TiffImagePlugin.py80# Set these to true to force use of libtiff for reading or writing.COMMENT
LOWsrc/PIL/ImagePalette.py149 # Set it to black, so that the new color can be written afterwards.COMMENT
LOWsrc/PIL/Image.py2025 # Return resultSTRING
LOWsrc/PIL/Image.py2960 # Return resultSTRING
Modern Structural Boilerplate11 hits · 12 pts
SeverityFileLineSnippetContext
LOWTests/helper.py34logger = logging.getLogger(__name__)CODE
LOWsrc/PIL/PngImagePlugin.py70logger = logging.getLogger(__name__)CODE
LOWsrc/PIL/PcxImagePlugin.py43logger = logging.getLogger(__name__)CODE
LOWsrc/PIL/ImageFile.py50logger = logging.getLogger(__name__)CODE
LOWsrc/PIL/_typing.py46__all__ = ["Buffer", "IntegralLike", "StrOrBytesPath", "SupportsRead"]CODE
LOWsrc/PIL/ImageMorph.py311 def set_lut(self, lut: bytearray | None) -> None:CODE
LOW⚡src/PIL/TiffImagePlugin.py78logger = logging.getLogger(__name__)CODE
LOWsrc/PIL/TiffImagePlugin.py686 def _setitem(self, tag: int, value: Any, legacy_api: bool) -> None:CODE
LOWsrc/PIL/TiffImagePlugin.py1438 def _setup(self) -> None:CODE
LOWsrc/PIL/ImageFont.py713 def set_variation_by_name(self, name: str | bytes) -> None:CODE
LOWsrc/PIL/ImageFont.py743 def set_variation_by_axes(self, axes: list[float]) -> None:CODE
Cross-Language Confusion2 hits · 10 pts
SeverityFileLineSnippetContext
HIGHsrc/PIL/PngImagePlugin.py1025 self.png.push(cid, pos, length)CODE
HIGHsrc/PIL/PngImagePlugin.py1066 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.py2279 # We're going to leverage the convert mechanism to use theCOMMENT
AI Structural Patterns6 hits · 6 pts
SeverityFileLineSnippetContext
LOWsrc/PIL/ImageDraw.py531CODE
LOWsrc/PIL/ImageDraw.py650CODE
LOWsrc/PIL/ImageDraw.py711CODE
LOWsrc/PIL/ImageDraw.py739CODE
LOWsrc/PIL/ImageFont.py475CODE
LOWsrc/PIL/ImageFont.py566CODE
Docstring Block Structure1 hit · 5 pts
SeverityFileLineSnippetContext
HIGHsrc/PIL/Image.py3316 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