Repository Analysis

mikf/gallery-dl

Command-line program to download image galleries and collections from several image hosting sites

5.9 Low AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of mikf/gallery-dl, a Python project with 18,849 GitHub stars. SynthScan v2.0 examined 139,051 lines of code across 738 source files, recording 705 pattern matches distributed across 15 syntactic categories. The overall adjusted score of 5.9 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).

5.9
Adjusted Score
5.9
Raw Score
100%
Time Factor
2026-07-11
Last Push
18.8K
Stars
Python
Language
139.1K
Lines of Code
738
Files
705
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 10MEDIUM 71LOW 624

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

Excessive Try-Catch Wrapping329 hits · 380 pts
SeverityFileLineSnippetContext
LOWtest/test_results.py357 except Exception as exc:CODE
LOWtest/test_results.py379 except Exception:CODE
LOWtest/test_results.py401 except Exception as exc:CODE
LOWtest/test_results.py594 except Exception as exc:CODE
MEDIUMtest/test_results.py585def load_test_config():CODE
LOWtest/test_ytdl.py276 except Exception:CODE
MEDIUMtest/test_ytdl.py23def setUpClass(cls):CODE
LOWscripts/run_tests.py37 except Exception as exc:CODE
LOWscripts/util.py54 except Exception:CODE
LOWscripts/supportedsites.py616 except Exception:CODE
LOWscripts/docs_compare.py19 except Exception as exc:CODE
LOWscripts/rm.py24 except Exception:CODE
MEDIUMscripts/rm.py21def remove_file(args, path):CODE
LOWscripts/init.py61 except Exception as exc:STRING
LOWscripts/hook-gallery_dl.py29except Exception:CODE
LOWscripts/pyprint.py64 except Exception:CODE
MEDIUMgallery_dl/cookies.py311def _safari_cookies_database():CODE
MEDIUMgallery_dl/cookies.py778def _get_gnome_keyring_password(browser_keyring_name):CODE
MEDIUMgallery_dl/cookies.py934def __enter__(self):CODE
LOWgallery_dl/cookies.py151 except Exception as exc:CODE
LOWgallery_dl/cookies.py724 except Exception as exc:CODE
LOWgallery_dl/cookies.py772 except Exception as exc:CODE
LOWgallery_dl/cookies.py841 except Exception as exc:CODE
LOWgallery_dl/cookies.py945 except Exception as exc:CODE
LOWgallery_dl/formatter.py44 except Exception as exc:CODE
LOWgallery_dl/formatter.py163 except Exception:CODE
LOWgallery_dl/formatter.py173 except Exception:CODE
LOWgallery_dl/formatter.py191 except Exception:CODE
MEDIUMgallery_dl/formatter.py158def wrap(_):CODE
MEDIUMgallery_dl/formatter.py168def wrap(kwdict):CODE
LOWgallery_dl/config.py150 except Exception as exc:STRING
LOWgallery_dl/config.py176 except Exception as exc:STRING
LOWgallery_dl/config.py230 except Exception as exc:CODE
LOWgallery_dl/config.py260 except Exception:CODE
LOWgallery_dl/config.py273 except Exception:CODE
LOWgallery_dl/config.py291 except Exception:CODE
LOWgallery_dl/config.py303 except Exception:CODE
LOWgallery_dl/config.py328 except Exception:CODE
LOWgallery_dl/config.py359 except Exception:CODE
LOWgallery_dl/option.py993 except Exception:CODE
LOWgallery_dl/util.py233 except Exception:CODE
LOWgallery_dl/util.py408 except Exception:CODE
LOWgallery_dl/util.py823 except Exception:CODE
LOWgallery_dl/util.py1040 except Exception as exc:CODE
MEDIUMgallery_dl/util.py363def git_head():CODE
MEDIUMgallery_dl/util.py548def __getitem__(self, key, modules=sys.modules):CODE
MEDIUMgallery_dl/util.py1035def _pred(_, kwdict):CODE
LOWgallery_dl/dt.py58 except Exception:CODE
LOWgallery_dl/dt.py74 except Exception:CODE
LOWgallery_dl/dt.py86 except Exception:CODE
LOWgallery_dl/dt.py101 except Exception:CODE
LOWgallery_dl/dt.py114 except Exception:CODE
LOWgallery_dl/aes.py17except Exception as exc:CODE
LOWgallery_dl/job.py187 except Exception as exc:CODE
LOWgallery_dl/job.py366 except Exception as exc:CODE
LOWgallery_dl/job.py731 except Exception as exc:CODE
LOWgallery_dl/job.py837 except Exception as exc:CODE
LOWgallery_dl/job.py1094 except Exception as exc:CODE
LOWgallery_dl/job.py1113 except Exception:CODE
LOWgallery_dl/cache.py32 except Exception as exc:CODE
269 more matches not shown…
Deep Nesting199 hits · 190 pts
SeverityFileLineSnippetContext
LOWtest/test_results.py620CODE
LOWtest/test_results.py113CODE
LOWtest/test_results.py332CODE
LOWscripts/generate_test_result.py53CODE
LOWscripts/generate_test_result.py112CODE
LOWscripts/generate_test_result.py196CODE
LOWscripts/supportedsites.py676CODE
LOWscripts/man.py111CODE
LOWscripts/man.py229CODE
LOWscripts/rm.py28CODE
LOWscripts/rm.py47CODE
LOWscripts/requirements.py20CODE
LOWscripts/requirements.py106CODE
LOWscripts/requirements.py133CODE
LOWscripts/requirements.py157CODE
LOWscripts/init.py32CODE
LOWgallery_dl/update.py162CODE
LOWgallery_dl/cookies.py127CODE
LOWgallery_dl/cookies.py216CODE
LOWgallery_dl/cookies.py356CODE
LOWgallery_dl/cookies.py1002CODE
LOWgallery_dl/cookies.py1113CODE
LOWgallery_dl/formatter.py296CODE
LOWgallery_dl/formatter.py156CODE
LOWgallery_dl/config.py33CODE
LOWgallery_dl/config.py216CODE
LOWgallery_dl/config.py278CODE
LOWgallery_dl/config.py310CODE
LOWgallery_dl/option.py95CODE
LOWgallery_dl/ytdl.py81CODE
LOWgallery_dl/util.py337CODE
LOWgallery_dl/util.py980CODE
LOWgallery_dl/util.py1077CODE
LOWgallery_dl/util.py1208CODE
LOWgallery_dl/aes.py557CODE
LOWgallery_dl/job.py210CODE
LOWgallery_dl/job.py339CODE
LOWgallery_dl/job.py418CODE
LOWgallery_dl/job.py530CODE
LOWgallery_dl/job.py620CODE
LOWgallery_dl/job.py695CODE
LOWgallery_dl/job.py948CODE
LOWgallery_dl/actions.py36CODE
LOWgallery_dl/__init__.py22CODE
LOWgallery_dl/__init__.py485CODE
LOWgallery_dl/text.py321CODE
LOWgallery_dl/text.py342CODE
LOWgallery_dl/path.py28CODE
LOWgallery_dl/path.py258CODE
LOWgallery_dl/path.py273CODE
LOWgallery_dl/path.py318CODE
LOWgallery_dl/path.py350CODE
LOWgallery_dl/path.py385CODE
LOWgallery_dl/output.py352CODE
LOWgallery_dl/output.py193CODE
LOWgallery_dl/postprocessor/metadata.py20CODE
LOWgallery_dl/postprocessor/ugoira.py30CODE
LOWgallery_dl/postprocessor/ugoira.py138CODE
LOWgallery_dl/postprocessor/ugoira.py168CODE
LOWgallery_dl/postprocessor/ugoira.py246CODE
139 more matches not shown…
Hyper-Verbose Identifiers118 hits · 104 pts
SeverityFileLineSnippetContext
LOWtest/test_postprocessor.py615 def test_metadata_json_options(self):STRING
LOWtest/test_postprocessor.py684 def test_metadata_tags_tagstring(self):STRING
LOWtest/test_postprocessor.py693 def test_metadata_tags_list_of_dict(self):STRING
LOWtest/test_postprocessor.py782 def test_metadata_directory_format(self):STRING
LOWtest/test_postprocessor.py794 def test_metadata_directory_empty(self):STRING
LOWtest/test_postprocessor.py805 def test_metadata_basedirectory(self):STRING
LOWtest/test_postprocessor.py814 def test_metadata_basedirectory_custom(self):STRING
LOWtest/test_postprocessor.py914 def test_metadata_option_skip(self):STRING
LOWtest/test_postprocessor.py938 def test_metadata_option_skip_false(self):STRING
LOWtest/test_postprocessor.py948 def test_metadata_option_newline(self):STRING
LOWtest/test_postprocessor.py970 def test_metadata_option_include(self):STRING
LOWtest/test_postprocessor.py985 def test_metadata_option_exclude(self):STRING
LOWtest/test_job.py94 def test_parent_metadata_extractor(self):CODE
LOWtest/test_cookies.py146 def test_check_cookies_domain(self):STRING
LOWtest/test_cookies.py171 def test_check_cookies_domain_sub(self):STRING
LOWtest/test_cookies.py198 def test_check_cookies_expires(self):STRING
LOWtest/test_ytdl.py63 def test_authentication_options(self):CODE
LOWtest/test_ytdl.py332 def test_process_entries_restart_propagation(self):CODE
LOWtest/test_ytdl.py345 def test_process_entries_ignoreerrors_true(self):CODE
LOWtest/test_ytdl.py361 def test_process_entries_ignoreerrors_false(self):CODE
LOWtest/test_output.py118 def test_shorten_eaw_separator(self, f=output.shorten_string_eaw):CODE
LOWtest/test_output.py130 def test_shorten_eaw_separator_wide(self, f=output.shorten_string_eaw):CODE
LOWtest/test_output.py142 def test_shorten_eaw_separator_mix_(self, f=output.shorten_string_eaw):CODE
LOWtest/test_util.py204 def test_predicate_tags_negate(self):CODE
LOWtest/test_util.py269 def test_predicate_tags_multi(self):CODE
LOWtest/test_util.py296 def test_predicate_tags_minus(self):CODE
LOWtest/test_util.py410 def test_predicate_date_before(self):CODE
LOWtest/test_util.py433 def test_predicate_date_after(self):CODE
LOWtest/test_util.py622 def test_compile_expression_raw(self):CODE
LOWtest/test_util.py633 def test_compile_expression_tryexcept(self):CODE
LOWtest/test_util.py641 def test_compile_expression_defaultdict(self):CODE
LOWtest/test_util.py868 def test_build_selection_func(self, f=util.build_selection_func):STRING
LOWtest/test_util.py908 def test_build_duration_func_ex(self, f=util.build_duration_func_ex):STRING
LOWtest/test_text.py235 def test_filename_from_contentdisposition(CODE
LOWtest/test_text.py467 def test_parse_unicode_escapes(self, f=text.parse_unicode_escapes):CODE
LOWtest/test_formatter.py151 def test_missing_custom_default(self):CODE
LOWtest/test_formatter.py286 def test_specifier_maxlen_bytes(self):CODE
LOWtest/test_formatter.py336 def test_specifier_offset_local(self):CODE
LOWtest/test_formatter.py366 def test_specifier_arithmetic(self):CODE
LOWtest/test_formatter.py371 def test_specifier_conversions(self):CODE
LOWtest/test_formatter.py383 def test_specifier_limit_bytes(self):CODE
LOWtest/test_extractor.py306 def test_date_min_max_default(self):CODE
LOWtest/test_extractor.py317 def test_date_min_max_timestamp(self):CODE
LOWtest/test_extractor.py335 def test_date_min_max_iso_invalid(self):CODE
LOWtest/test_path.py135 def test_generate_path_windows(self):CODE
LOWtest/test_path.py216 def test_option_basedirectory(self):CODE
LOWtest/test_path.py229 def test_option_keywordsdefault(self):CODE
LOWtest/test_path.py244 def test_option_extensionmap_default(self):CODE
LOWtest/test_path.py267 def test_option_extensionmap_custom(self):CODE
LOWtest/test_path.py320 def test_option_pathrestrict_custom(self):CODE
LOWtest/test_downloader.py278 def test_http_adjust_extension(self):CODE
LOWtest/test_downloader.py328class HttpRequestHandler(http.server.BaseHTTPRequestHandler):CODE
LOWtest/test_cache.py163 def test_invalidate_mem_simple(self):CODE
LOWscripts/rm.py28def remove_from_docs_configurationrst(args, path):CODE
LOWscripts/rm.py47def remove_from_docs_gallerydlconf(args, path):CODE
LOWscripts/rm.py62def remove_from_extractor_init(args, path):CODE
LOWscripts/rm.py72def remove_from_scripts_supportedsites(args, path):CODE
LOWscripts/rm.py84def update_docs_supportedsites(args, path):CODE
LOWscripts/init.py92def generate_extractors_basic(args):STRING
LOWscripts/init.py124def generate_extractors_manga(args):STRING
58 more matches not shown…
Decorative Section Separators19 hits · 58 pts
SeverityFileLineSnippetContext
MEDIUMsnap/snapcraft.yaml4# ------------------------------COMMENT
MEDIUMgallery_dl/cookies.py213# --------------------------------------------------------------------COMMENT
MEDIUMgallery_dl/cookies.py307# --------------------------------------------------------------------COMMENT
MEDIUMgallery_dl/cookies.py408# --------------------------------------------------------------------COMMENT
MEDIUMgallery_dl/cookies.py680# --------------------------------------------------------------------COMMENT
MEDIUMgallery_dl/cookies.py868# --------------------------------------------------------------------COMMENT
MEDIUMgallery_dl/config.py19# --------------------------------------------------------------------COMMENT
MEDIUMgallery_dl/config.py29# --------------------------------------------------------------------COMMENT
MEDIUMgallery_dl/actions.py175# --------------------------------------------------------------------COMMENT
MEDIUMgallery_dl/output.py17# --------------------------------------------------------------------COMMENT
MEDIUMgallery_dl/output.py63# --------------------------------------------------------------------COMMENT
MEDIUMgallery_dl/output.py325# --------------------------------------------------------------------COMMENT
MEDIUMgallery_dl/output.py369# --------------------------------------------------------------------COMMENT
MEDIUMgallery_dl/postprocessor/__init__.py46# --------------------------------------------------------------------COMMENT
MEDIUMgallery_dl/downloader/__init__.py43# --------------------------------------------------------------------COMMENT
MEDIUMgallery_dl/extractor/__init__.py304# --------------------------------------------------------------------COMMENT
MEDIUMgallery_dl/extractor/oauth.py248# --------------------------------------------------------------------COMMENT
MEDIUMgallery_dl/extractor/oauth.py308# --------------------------------------------------------------------COMMENT
MEDIUMgallery_dl/extractor/oauth.py410# --------------------------------------------------------------------COMMENT
Cross-Language Confusion7 hits · 35 pts
SeverityFileLineSnippetContext
HIGHtest/test_dt.py97 self.assertEqual(f(0) , null)CODE
HIGHtest/test_dt.py98 self.assertEqual(f("0") , null)CODE
HIGHscripts/completion_zsh.py23%(opts)s && rc=0CODE
HIGHgallery_dl/option.py978 "Example: --exec \"convert {} {}.png && rm {}\""),CODE
HIGHgallery_dl/util.py1007 return trueCODE
HIGHgallery_dl/util.py1144 return trueCODE
HIGHgallery_dl/extractor/facebook.py134 photo_page, '{"node":{"id"', '"cursor":null}'CODE
Synthetic Comment Markers2 hits · 10 pts
SeverityFileLineSnippetContext
HIGHCONTRIBUTING.md11Do not submit code that was primarily generated by AI tools.CODE
HIGH.github/PULL_REQUEST_TEMPLATE.md9Do not submit code that was primarily generated by AI tools.CODE
Fake / Example Data7 hits · 9 pts
SeverityFileLineSnippetContext
LOWtest/test_text.py447 <a href="http://www.example.com">Lorem ipsum dolor sit amet</a>.CODE
LOWtest/test_text.py447 <a href="http://www.example.com">Lorem ipsum dolor sit amet</a>.CODE
LOWtest/test_formatter.py40 {"name": "John Doe" , "age": 42, "email": "jd@example.org"},CODE
LOWtest/test_formatter.py40 {"name": "John Doe" , "age": 42, "email": "jd@example.org"},CODE
LOWtest/test_formatter.py49 <a href="http://www.example.com">Lorem ipsum dolor sit amet</a>.CODE
LOWtest/test_formatter.py49 <a href="http://www.example.com">Lorem ipsum dolor sit amet</a>.CODE
LOWtest/test_formatter.py396 "['John Doe', 'Jane Smith', 'Max Mustermann']")CODE
Unused Imports7 hits · 7 pts
SeverityFileLineSnippetContext
LOWtest/test_ytdl.py15CODE
LOWtest/test_text.py15CODE
LOWtest/test_formatter.py18CODE
LOWtest/test_extractor.py20CODE
LOWtest/test_extractor.py22CODE
LOWtest/test_downloader.py25CODE
LOWgallery_dl/dt.py13CODE
Dead Code3 hits · 6 pts
SeverityFileLineSnippetContext
MEDIUMtest/test_oauth.py149CODE
MEDIUMtest/test_oauth.py153CODE
MEDIUMgallery_dl/extractor/common.py112CODE
Self-Referential Comments2 hits · 6 pts
SeverityFileLineSnippetContext
MEDIUMsnap/snapcraft.yaml5# This file is in the YAML data serialization format:COMMENT
MEDIUMgallery_dl/extractor/generic.py214 # Create the image metadata dict and add imageurl to itCOMMENT
Over-Commented Block5 hits · 5 pts
SeverityFileLineSnippetContext
LOWtest/results/discord.py21},COMMENT
LOWtest/results/discord.py41# "#parent_id" : "1306705919916249098",COMMENT
LOWsnap/snapcraft.yaml1%YAML 1.1COMMENT
LOWgallery_dl/version.py1# -*- coding: utf-8 -*-COMMENT
LOWgallery_dl/extractor/utils/twitter_transaction_id.py1# -*- coding: utf-8 -*-COMMENT
Docstring Block Structure1 hit · 5 pts
SeverityFileLineSnippetContext
HIGHgallery_dl/text.py167Extract the text between 'begin' and 'end' from 'txt' Args: txt: String to search in begin: First sSTRING
AI Structural Patterns4 hits · 4 pts
SeverityFileLineSnippetContext
LOWgallery_dl/aes.py296CODE
LOWgallery_dl/aes.py524CODE
LOWgallery_dl/extractor/common.py147CODE
LOWgallery_dl/extractor/sexcom.py190CODE
AI Slop Vocabulary1 hit · 2 pts
SeverityFileLineSnippetContext
MEDIUMtest/results/mangareader.py117 "description" : """To everyone else in his magic-dominated world, the young and powerless Mash Vandead is a threatCODE
Redundant / Tautological Comments1 hit · 2 pts
SeverityFileLineSnippetContext
LOWgallery_dl/extractor/cfake.py112 # Check if next page link exists anywhere in the pageCOMMENT