Repository Analysis

tqdm/tqdm

:zap: A Fast, Extensible Progress Bar for Python and CLI

24.1 Moderate AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of tqdm/tqdm, a Python project with 31,227 GitHub stars. SynthScan v2.0 examined 10,809 lines of code across 94 source files, recording 188 pattern matches distributed across 11 syntactic categories. The overall adjusted score of 24.1 places this repository in the Moderate 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).

24.1
Adjusted Score
24.1
Raw Score
100%
Time Factor
2026-07-13
Last Push
31.2K
Stars
Python
Language
10.8K
Lines of Code
94
Files
188
Pattern Hits
2026-07-14
Scan Date
0.14
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 13MEDIUM 8LOW 167

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 188 distinct pattern matches across 11 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.

Unused Imports55 hits · 55 pts
SeverityFileLineSnippetContext
LOWtests/tests_tqdm.py40CODE
LOWtests/tests_main.py65CODE
LOWtqdm/_main.py3CODE
LOWtqdm/_main.py4CODE
LOWtqdm/_tqdm_gui.py3CODE
LOWtqdm/_tqdm_gui.py4CODE
LOWtqdm/_tqdm_notebook.py3CODE
LOWtqdm/_tqdm_notebook.py4CODE
LOWtqdm/__init__.py1CODE
LOWtqdm/__init__.py1CODE
LOWtqdm/__init__.py2CODE
LOWtqdm/__init__.py3CODE
LOWtqdm/__init__.py4CODE
LOWtqdm/__init__.py5CODE
LOWtqdm/__init__.py6CODE
LOWtqdm/__init__.py6CODE
LOWtqdm/__init__.py6CODE
LOWtqdm/__init__.py6CODE
LOWtqdm/__init__.py6CODE
LOWtqdm/__init__.py6CODE
LOWtqdm/__init__.py6CODE
LOWtqdm/__init__.py9CODE
LOWtqdm/utils.py80CODE
LOWtqdm/_tqdm.py3CODE
LOWtqdm/_tqdm.py4CODE
LOWtqdm/autonotebook.py33CODE
LOWtqdm/autonotebook.py33CODE
LOWtqdm/autonotebook.py31CODE
LOWtqdm/autonotebook.py31CODE
LOWtqdm/_utils.py4CODE
LOWtqdm/_utils.py4CODE
LOWtqdm/_utils.py4CODE
LOWtqdm/_utils.py4CODE
LOWtqdm/_utils.py4CODE
LOWtqdm/_utils.py4CODE
LOWtqdm/_utils.py4CODE
LOWtqdm/_utils.py4CODE
LOWtqdm/_utils.py4CODE
LOWtqdm/_utils.py4CODE
LOWtqdm/_utils.py4CODE
LOWtqdm/_utils.py4CODE
LOWtqdm/_utils.py4CODE
LOWtqdm/_utils.py4CODE
LOWtqdm/_utils.py4CODE
LOWtqdm/_utils.py4CODE
LOWtqdm/_utils.py4CODE
LOWtqdm/contrib/logging.py9CODE
LOWtqdm/contrib/logging.py9CODE
LOWtqdm/contrib/logging.py9CODE
LOWtqdm/contrib/logging.py9CODE
LOWtqdm/contrib/bells.py18CODE
LOWtqdm/contrib/bells.py20CODE
LOWtqdm/contrib/bells.py22CODE
LOWtqdm/contrib/bells.py24CODE
LOWexamples/include_no_requirements.py3CODE
Hyper-Verbose Identifiers42 hits · 51 pts
SeverityFileLineSnippetContext
LOWtests/tests_tqdm.py366def test_native_string_io_for_default_file():CODE
LOWtests/tests_tqdm.py380def test_unicode_string_io_for_specified_file():CODE
LOWtests/tests_tqdm.py402def test_iterate_over_csv_rows():CODE
LOWtests/tests_tqdm.py711def test_smoothed_dynamic_min_iters():CODE
LOWtests/tests_tqdm.py741def test_smoothed_dynamic_min_iters_with_min_interval():CODE
LOWtests/tests_tqdm.py1559def test_deprecation_exception():CODE
LOWtests/tests_tqdm.py1654def std_out_err_redirect_tqdm(tqdm_file=sys.stderr):CODE
LOWtests/tests_contrib_logging.py39 def test_should_call_tqdm_write(self):CODE
LOWtests/tests_contrib_logging.py46 def test_should_call_handle_error_if_exception_was_thrown(self):CODE
LOWtests/tests_contrib_logging.py60 def test_should_not_swallow_certain_exceptions(self, exception_class):CODE
LOWtests/tests_contrib_logging.py70 def test_should_return_none_for_no_handlers(self):CODE
LOWtests/tests_contrib_logging.py73 def test_should_return_none_without_stream_handler(self):CODE
LOWtests/tests_contrib_logging.py77 def test_should_return_none_for_stream_handler_not_stdout_or_stderr(self):CODE
LOWtests/tests_contrib_logging.py81 def test_should_return_stream_handler_if_stream_is_stdout(self):CODE
LOWtests/tests_contrib_logging.py85 def test_should_return_stream_handler_if_stream_is_stderr(self):CODE
LOWtests/tests_contrib_logging.py91 def test_should_add_and_remove_tqdm_handler(self):CODE
LOWtests/tests_contrib_logging.py98 def test_should_remove_and_restore_console_handlers(self):CODE
LOWtests/tests_contrib_logging.py108 def test_should_inherit_console_logger_formatter(self):CODE
LOWtests/tests_contrib_logging.py117 def test_should_not_remove_stream_handlers_not_for_stdout_or_stderr(self):CODE
LOWtests/tests_contrib_logging.py129 def test_should_add_and_remove_handler_from_root_logger_by_default(self):CODE
LOWtests/tests_contrib_logging.py137 def test_should_add_and_remove_handler_from_custom_logger(self):CODE
LOWtests/tests_contrib_logging.py146 def test_should_not_fail_with_logger_without_console_handler(self):CODE
LOWtests/tests_contrib_logging.py153 def test_should_format_message(self):CODE
LOWtests/tests_contrib_logging.py165 def test_use_root_logger_by_default_and_write_to_custom_tqdm(self):CODE
LOWtests/tests_pandas.py24def test_pandas_rolling_expanding():CODE
LOWtests/tests_pandas.py114def test_pandas_groupby_apply():CODE
LOWtests/tests_pandas.py182def test_pandas_apply_args_deprecation():CODE
LOWtests/tests_perf.py174def test_manual_basic_overhead():CODE
LOWtests/tests_perf.py250def test_manual_overhead_hard():CODE
LOWtests/tests_perf.py272def test_iter_overhead_simplebar_hard():CODE
LOWtests/tests_perf.py295def test_manual_overhead_simplebar_hard():CODE
LOWtests/tests_itertools.py81def test_combinations_with_replacement(capsys):CODE
LOWtests/tests_synchronisation.py111def test_monitoring_and_cleanup():CODE
LOWtests/tests_synchronisation.py211def test_monitor_atexit_does_not_deadlock_on_stuck_get_lock():CODE
LOWtests/tests_notebook.py4def test_notebook_disabled_description():CODE
LOWtqdm/keras.py114 def _implements_train_batch_hooks():CODE
LOWtqdm/keras.py118 def _implements_test_batch_hooks():CODE
LOWtqdm/keras.py122 def _implements_predict_batch_hooks():CODE
LOWtqdm/contrib/logging.py35def _is_console_logging_handler(handler):CODE
LOWtqdm/contrib/logging.py40def _get_first_found_console_logging_handler(handlers):CODE
LOWtqdm/contrib/itertools.py67def combinations_with_replacement(iterable, r, total=None, tqdm_class=tqdm_auto, **kwargs):CODE
LOWexamples/redirect_print.py22def std_out_err_redirect_tqdm():CODE
Cross-Language Confusion10 hits · 50 pts
SeverityFileLineSnippetContext
HIGHtests/tests_pandas.py32 assert res1.equals(res2)CODE
HIGHtests/tests_pandas.py36 assert res3.equals(res4)CODE
HIGHtests/tests_pandas.py55 assert res1.equals(res2)CODE
HIGHtests/tests_pandas.py59 assert res3.equals(res4)CODE
HIGHtests/tests_pandas.py84 assert res1.equals(res2)CODE
HIGHtests/tests_pandas.py90 assert res1.equals(res2)CODE
HIGHtests/tests_pandas.py102 assert res3.equals(res4)CODE
HIGHtests/tests_pandas.py128 assert res1.equals(res2)CODE
HIGHexamples/tqdm_requests.py14 The local file path in which to save the url [default: /dev/null].STRING
HIGHexamples/tqdm_wget.py20 The local file path in which to save the url [default: /dev/null].STRING
Modern Structural Boilerplate23 hits · 23 pts
SeverityFileLineSnippetContext
LOWtqdm/_monitor.py6__all__ = ["TMonitor", "TqdmSynchronisationWarning"]CODE
LOWtqdm/keras.py14__all__ = ['TqdmCallback']CODE
LOWtqdm/asyncio.py16__all__ = ['tqdm_asyncio', 'tarange', 'tqdm', 'trange']CODE
LOWtqdm/std.py26__all__ = ['tqdm', 'trange',CODE
LOWtqdm/__init__.py11__all__ = ['tqdm', 'tqdm_gui', 'trange', 'tgrange', 'tqdm_pandas',CODE
LOWtqdm/rich.py18__all__ = ['tqdm_rich', 'trrange', 'tqdm', 'trange']CODE
LOWtqdm/tk.py19__all__ = ['tqdm_tk', 'ttkrange', 'tqdm', 'trange']CODE
LOWtqdm/cli.py13__all__ = ["main"]CODE
LOWtqdm/dask.py8__all__ = ['TqdmCallback']CODE
LOWtqdm/_tqdm_pandas.py4__all__ = ['tqdm_pandas']CODE
LOWtqdm/autonotebook.py38__all__ = ["tqdm", "trange"]CODE
LOWtqdm/notebook.py65__all__ = ['tqdm_notebook', 'tnrange', 'tqdm', 'trange']CODE
LOWtqdm/gui.py21__all__ = ['tqdm_gui', 'tgrange', 'tqdm', 'trange']CODE
LOWtqdm/auto.py40__all__ = ["tqdm", "trange"]CODE
LOWtqdm/contrib/concurrent.py12__all__ = ['thread_map', 'process_map']CODE
LOWtqdm/contrib/bells.py13__all__ = ['tqdm', 'trange']CODE
LOWtqdm/contrib/telegram.py21__all__ = ['TelegramIO', 'tqdm_telegram', 'ttgrange', 'tqdm', 'trange']CODE
LOWtqdm/contrib/discord.py23__all__ = ['DiscordIO', 'tqdm_discord', 'tdrange', 'tqdm', 'trange']CODE
LOWtqdm/contrib/__init__.py13__all__ = ['tenumerate', 'tzip', 'tmap']CODE
LOWtqdm/contrib/slack.py23__all__ = ['SlackIO', 'tqdm_slack', 'tsrange', 'tqdm', 'trange']CODE
LOWtqdm/contrib/itertools.py10__all__ = [CODE
LOWtqdm/contrib/utils_worker.py10__all__ = ['MonoWorker']CODE
LOWexamples/include_no_requirements.py11__all__ = ['tqdm']CODE
Excessive Try-Catch Wrapping21 hits · 22 pts
SeverityFileLineSnippetContext
LOWtests/tests_tqdm.py1660 except Exception as exc:CODE
LOWtests/tests_perf.py77 except Exception:CODE
LOWtqdm/std.py672 except Exception as e: # pragma: nocoverCODE
LOWtqdm/cli.py239 except Exception:STRING
LOWtqdm/utils.py64 except Exception: # nosec B110CODE
LOWtqdm/utils.py240 except Exception:CODE
LOWtqdm/utils.py243 except Exception:CODE
LOWtqdm/utils.py275 except Exception:CODE
MEDIUMtqdm/utils.py235def _is_utf(encoding):CODE
MEDIUMtqdm/utils.py270def inner(fp):CODE
LOWtqdm/autonotebook.py30except Exception:CODE
LOWtqdm/contrib/telegram.py48 except Exception as e:CODE
LOWtqdm/contrib/telegram.py74 except Exception as e:CODE
LOWtqdm/contrib/telegram.py85 except Exception as e:CODE
LOWtqdm/contrib/discord.py51 except Exception as e:CODE
LOWtqdm/contrib/discord.py78 except Exception as e:CODE
LOWtqdm/contrib/discord.py90 except Exception as e:CODE
LOWtqdm/contrib/slack.py35 except Exception as e:CODE
LOWtqdm/contrib/slack.py53 except Exception as e:CODE
LOWtqdm/contrib/utils_worker.py34 except Exception as e:CODE
LOWexamples/redirect_print.py29 except Exception as exc:CODE
Deep Nesting22 hits · 22 pts
SeverityFileLineSnippetContext
LOWtests/tests_tqdm.py148CODE
LOWtests/tests_tqdm.py463CODE
LOWtests/tests_tqdm.py741CODE
LOWtests/tests_tqdm.py938CODE
LOWtests/tests_tqdm.py1634CODE
LOWtests/tests_tqdm.py1816CODE
LOWtests/tests_tqdm.py1829CODE
LOWtests/tests_synchronisation.py154CODE
LOWtests/tests_asyncio.py90CODE
LOWtqdm/_monitor.py62CODE
LOWtqdm/std.py368CODE
LOWtqdm/std.py773CODE
LOWtqdm/std.py959CODE
LOWtqdm/std.py1166CODE
LOWtqdm/std.py1204CODE
LOWtqdm/std.py854CODE
LOWtqdm/std.py855CODE
LOWtqdm/cli.py55CODE
LOWtqdm/cli.py156CODE
LOWtqdm/utils.py34CODE
LOWtqdm/utils.py53CODE
LOWexamples/7zx.py38CODE
Cross-File Repetition3 hits · 15 pts
SeverityFileLineSnippetContext
HIGHtqdm/asyncio.py0ipython/jupyter notebook progress bar decorator for iterators. includes a default `range` iterator printing to `stderr`.STRING
HIGHtqdm/std.py0ipython/jupyter notebook progress bar decorator for iterators. includes a default `range` iterator printing to `stderr`.STRING
HIGHtqdm/notebook.py0ipython/jupyter notebook progress bar decorator for iterators. includes a default `range` iterator printing to `stderr`.STRING
Self-Referential Comments4 hits · 12 pts
SeverityFileLineSnippetContext
MEDIUMtests/tests_tqdm.py404 # Create a test csv pseudo fileCOMMENT
MEDIUMtests/tests_rlock.py29 # Creating a progress bar should initialize the lockCOMMENT
MEDIUMtests/tests_rlock.py34 # Creating a progress bar again should reuse the lockCOMMENT
MEDIUMtqdm/notebook.py219 # Initialize parent class + avoid printing by using gui=TrueCOMMENT
Slop Phrases3 hits · 4 pts
SeverityFileLineSnippetContext
MEDIUMtqdm/std.py799 >>> # Now you can use `progress_apply` instead of `apply`STRING
MEDIUMexamples/pandas_progress_apply.py12# Now you can use `progress_apply` instead of `apply`COMMENT
LOWexamples/tqdm_wget.py34 Don't forget to close() or __exit__()STRING
AI Structural Patterns3 hits · 3 pts
SeverityFileLineSnippetContext
LOWtests/tests_perf.py86CODE
LOWtqdm/std.py463CODE
LOWtqdm/std.py959CODE
Over-Commented Block2 hits · 2 pts
SeverityFileLineSnippetContext
LOWtests/tests_tqdm.py221 rate=7.33) == " 10% 100/1000 [00:12<02:02, 7.33it/s]"COMMENT
LOWexamples/pandas_progress_apply.py21# def inner(df, func, *args, **kwargs):COMMENT