:zap: A Fast, Extensible Progress Bar for Python and CLI
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).
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.
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.
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.
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.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/tests_tqdm.py | 40 | CODE | |
| LOW | tests/tests_main.py | 65 | CODE | |
| LOW | tqdm/_main.py | 3 | CODE | |
| LOW | tqdm/_main.py | 4 | CODE | |
| LOW | tqdm/_tqdm_gui.py | 3 | CODE | |
| LOW | tqdm/_tqdm_gui.py | 4 | CODE | |
| LOW | tqdm/_tqdm_notebook.py | 3 | CODE | |
| LOW | tqdm/_tqdm_notebook.py | 4 | CODE | |
| LOW | tqdm/__init__.py | 1 | CODE | |
| LOW | tqdm/__init__.py | 1 | CODE | |
| LOW | tqdm/__init__.py | 2 | CODE | |
| LOW | tqdm/__init__.py | 3 | CODE | |
| LOW | tqdm/__init__.py | 4 | CODE | |
| LOW | tqdm/__init__.py | 5 | CODE | |
| LOW | tqdm/__init__.py | 6 | CODE | |
| LOW | tqdm/__init__.py | 6 | CODE | |
| LOW | tqdm/__init__.py | 6 | CODE | |
| LOW | tqdm/__init__.py | 6 | CODE | |
| LOW | tqdm/__init__.py | 6 | CODE | |
| LOW | tqdm/__init__.py | 6 | CODE | |
| LOW | tqdm/__init__.py | 6 | CODE | |
| LOW | tqdm/__init__.py | 9 | CODE | |
| LOW | tqdm/utils.py | 80 | CODE | |
| LOW | tqdm/_tqdm.py | 3 | CODE | |
| LOW | tqdm/_tqdm.py | 4 | CODE | |
| LOW | tqdm/autonotebook.py | 33 | CODE | |
| LOW | tqdm/autonotebook.py | 33 | CODE | |
| LOW | tqdm/autonotebook.py | 31 | CODE | |
| LOW | tqdm/autonotebook.py | 31 | CODE | |
| LOW | tqdm/_utils.py | 4 | CODE | |
| LOW | tqdm/_utils.py | 4 | CODE | |
| LOW | tqdm/_utils.py | 4 | CODE | |
| LOW | tqdm/_utils.py | 4 | CODE | |
| LOW | tqdm/_utils.py | 4 | CODE | |
| LOW | tqdm/_utils.py | 4 | CODE | |
| LOW | tqdm/_utils.py | 4 | CODE | |
| LOW | tqdm/_utils.py | 4 | CODE | |
| LOW | tqdm/_utils.py | 4 | CODE | |
| LOW | tqdm/_utils.py | 4 | CODE | |
| LOW | tqdm/_utils.py | 4 | CODE | |
| LOW | tqdm/_utils.py | 4 | CODE | |
| LOW | tqdm/_utils.py | 4 | CODE | |
| LOW | tqdm/_utils.py | 4 | CODE | |
| LOW | tqdm/_utils.py | 4 | CODE | |
| LOW | tqdm/_utils.py | 4 | CODE | |
| LOW | tqdm/_utils.py | 4 | CODE | |
| LOW | tqdm/contrib/logging.py | 9 | CODE | |
| LOW | tqdm/contrib/logging.py | 9 | CODE | |
| LOW | tqdm/contrib/logging.py | 9 | CODE | |
| LOW | tqdm/contrib/logging.py | 9 | CODE | |
| LOW | tqdm/contrib/bells.py | 18 | CODE | |
| LOW | tqdm/contrib/bells.py | 20 | CODE | |
| LOW | tqdm/contrib/bells.py | 22 | CODE | |
| LOW | tqdm/contrib/bells.py | 24 | CODE | |
| LOW | examples/include_no_requirements.py | 3 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/tests_tqdm.py | 366 | def test_native_string_io_for_default_file(): | CODE |
| LOW | tests/tests_tqdm.py | 380 | def test_unicode_string_io_for_specified_file(): | CODE |
| LOW | tests/tests_tqdm.py | 402 | def test_iterate_over_csv_rows(): | CODE |
| LOW | tests/tests_tqdm.py | 711 | def test_smoothed_dynamic_min_iters(): | CODE |
| LOW | tests/tests_tqdm.py | 741 | def test_smoothed_dynamic_min_iters_with_min_interval(): | CODE |
| LOW | tests/tests_tqdm.py | 1559 | def test_deprecation_exception(): | CODE |
| LOW | tests/tests_tqdm.py | 1654 | def std_out_err_redirect_tqdm(tqdm_file=sys.stderr): | CODE |
| LOW | tests/tests_contrib_logging.py | 39 | def test_should_call_tqdm_write(self): | CODE |
| LOW | tests/tests_contrib_logging.py | 46 | def test_should_call_handle_error_if_exception_was_thrown(self): | CODE |
| LOW⚡ | tests/tests_contrib_logging.py | 60 | def test_should_not_swallow_certain_exceptions(self, exception_class): | CODE |
| LOW⚡ | tests/tests_contrib_logging.py | 70 | def test_should_return_none_for_no_handlers(self): | CODE |
| LOW⚡ | tests/tests_contrib_logging.py | 73 | def test_should_return_none_without_stream_handler(self): | CODE |
| LOW⚡ | tests/tests_contrib_logging.py | 77 | def test_should_return_none_for_stream_handler_not_stdout_or_stderr(self): | CODE |
| LOW⚡ | tests/tests_contrib_logging.py | 81 | def test_should_return_stream_handler_if_stream_is_stdout(self): | CODE |
| LOW⚡ | tests/tests_contrib_logging.py | 85 | def test_should_return_stream_handler_if_stream_is_stderr(self): | CODE |
| LOW⚡ | tests/tests_contrib_logging.py | 91 | def test_should_add_and_remove_tqdm_handler(self): | CODE |
| LOW⚡ | tests/tests_contrib_logging.py | 98 | def test_should_remove_and_restore_console_handlers(self): | CODE |
| LOW⚡ | tests/tests_contrib_logging.py | 108 | def test_should_inherit_console_logger_formatter(self): | CODE |
| LOW⚡ | tests/tests_contrib_logging.py | 117 | def test_should_not_remove_stream_handlers_not_for_stdout_or_stderr(self): | CODE |
| LOW⚡ | tests/tests_contrib_logging.py | 129 | def test_should_add_and_remove_handler_from_root_logger_by_default(self): | CODE |
| LOW⚡ | tests/tests_contrib_logging.py | 137 | def test_should_add_and_remove_handler_from_custom_logger(self): | CODE |
| LOW⚡ | tests/tests_contrib_logging.py | 146 | def test_should_not_fail_with_logger_without_console_handler(self): | CODE |
| LOW⚡ | tests/tests_contrib_logging.py | 153 | def test_should_format_message(self): | CODE |
| LOW | tests/tests_contrib_logging.py | 165 | def test_use_root_logger_by_default_and_write_to_custom_tqdm(self): | CODE |
| LOW⚡ | tests/tests_pandas.py | 24 | def test_pandas_rolling_expanding(): | CODE |
| LOW | tests/tests_pandas.py | 114 | def test_pandas_groupby_apply(): | CODE |
| LOW | tests/tests_pandas.py | 182 | def test_pandas_apply_args_deprecation(): | CODE |
| LOW | tests/tests_perf.py | 174 | def test_manual_basic_overhead(): | CODE |
| LOW | tests/tests_perf.py | 250 | def test_manual_overhead_hard(): | CODE |
| LOW | tests/tests_perf.py | 272 | def test_iter_overhead_simplebar_hard(): | CODE |
| LOW | tests/tests_perf.py | 295 | def test_manual_overhead_simplebar_hard(): | CODE |
| LOW | tests/tests_itertools.py | 81 | def test_combinations_with_replacement(capsys): | CODE |
| LOW | tests/tests_synchronisation.py | 111 | def test_monitoring_and_cleanup(): | CODE |
| LOW | tests/tests_synchronisation.py | 211 | def test_monitor_atexit_does_not_deadlock_on_stuck_get_lock(): | CODE |
| LOW | tests/tests_notebook.py | 4 | def test_notebook_disabled_description(): | CODE |
| LOW⚡ | tqdm/keras.py | 114 | def _implements_train_batch_hooks(): | CODE |
| LOW⚡ | tqdm/keras.py | 118 | def _implements_test_batch_hooks(): | CODE |
| LOW⚡ | tqdm/keras.py | 122 | def _implements_predict_batch_hooks(): | CODE |
| LOW | tqdm/contrib/logging.py | 35 | def _is_console_logging_handler(handler): | CODE |
| LOW | tqdm/contrib/logging.py | 40 | def _get_first_found_console_logging_handler(handlers): | CODE |
| LOW | tqdm/contrib/itertools.py | 67 | def combinations_with_replacement(iterable, r, total=None, tqdm_class=tqdm_auto, **kwargs): | CODE |
| LOW | examples/redirect_print.py | 22 | def std_out_err_redirect_tqdm(): | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH⚡ | tests/tests_pandas.py | 32 | assert res1.equals(res2) | CODE |
| HIGH⚡ | tests/tests_pandas.py | 36 | assert res3.equals(res4) | CODE |
| HIGH | tests/tests_pandas.py | 55 | assert res1.equals(res2) | CODE |
| HIGH | tests/tests_pandas.py | 59 | assert res3.equals(res4) | CODE |
| HIGH | tests/tests_pandas.py | 84 | assert res1.equals(res2) | CODE |
| HIGH | tests/tests_pandas.py | 90 | assert res1.equals(res2) | CODE |
| HIGH | tests/tests_pandas.py | 102 | assert res3.equals(res4) | CODE |
| HIGH | tests/tests_pandas.py | 128 | assert res1.equals(res2) | CODE |
| HIGH | examples/tqdm_requests.py | 14 | The local file path in which to save the url [default: /dev/null]. | STRING |
| HIGH | examples/tqdm_wget.py | 20 | The local file path in which to save the url [default: /dev/null]. | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tqdm/_monitor.py | 6 | __all__ = ["TMonitor", "TqdmSynchronisationWarning"] | CODE |
| LOW | tqdm/keras.py | 14 | __all__ = ['TqdmCallback'] | CODE |
| LOW | tqdm/asyncio.py | 16 | __all__ = ['tqdm_asyncio', 'tarange', 'tqdm', 'trange'] | CODE |
| LOW | tqdm/std.py | 26 | __all__ = ['tqdm', 'trange', | CODE |
| LOW | tqdm/__init__.py | 11 | __all__ = ['tqdm', 'tqdm_gui', 'trange', 'tgrange', 'tqdm_pandas', | CODE |
| LOW | tqdm/rich.py | 18 | __all__ = ['tqdm_rich', 'trrange', 'tqdm', 'trange'] | CODE |
| LOW | tqdm/tk.py | 19 | __all__ = ['tqdm_tk', 'ttkrange', 'tqdm', 'trange'] | CODE |
| LOW | tqdm/cli.py | 13 | __all__ = ["main"] | CODE |
| LOW | tqdm/dask.py | 8 | __all__ = ['TqdmCallback'] | CODE |
| LOW | tqdm/_tqdm_pandas.py | 4 | __all__ = ['tqdm_pandas'] | CODE |
| LOW | tqdm/autonotebook.py | 38 | __all__ = ["tqdm", "trange"] | CODE |
| LOW | tqdm/notebook.py | 65 | __all__ = ['tqdm_notebook', 'tnrange', 'tqdm', 'trange'] | CODE |
| LOW | tqdm/gui.py | 21 | __all__ = ['tqdm_gui', 'tgrange', 'tqdm', 'trange'] | CODE |
| LOW | tqdm/auto.py | 40 | __all__ = ["tqdm", "trange"] | CODE |
| LOW | tqdm/contrib/concurrent.py | 12 | __all__ = ['thread_map', 'process_map'] | CODE |
| LOW | tqdm/contrib/bells.py | 13 | __all__ = ['tqdm', 'trange'] | CODE |
| LOW | tqdm/contrib/telegram.py | 21 | __all__ = ['TelegramIO', 'tqdm_telegram', 'ttgrange', 'tqdm', 'trange'] | CODE |
| LOW | tqdm/contrib/discord.py | 23 | __all__ = ['DiscordIO', 'tqdm_discord', 'tdrange', 'tqdm', 'trange'] | CODE |
| LOW | tqdm/contrib/__init__.py | 13 | __all__ = ['tenumerate', 'tzip', 'tmap'] | CODE |
| LOW | tqdm/contrib/slack.py | 23 | __all__ = ['SlackIO', 'tqdm_slack', 'tsrange', 'tqdm', 'trange'] | CODE |
| LOW | tqdm/contrib/itertools.py | 10 | __all__ = [ | CODE |
| LOW | tqdm/contrib/utils_worker.py | 10 | __all__ = ['MonoWorker'] | CODE |
| LOW | examples/include_no_requirements.py | 11 | __all__ = ['tqdm'] | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/tests_tqdm.py | 1660 | except Exception as exc: | CODE |
| LOW | tests/tests_perf.py | 77 | except Exception: | CODE |
| LOW | tqdm/std.py | 672 | except Exception as e: # pragma: nocover | CODE |
| LOW | tqdm/cli.py | 239 | except Exception: | STRING |
| LOW | tqdm/utils.py | 64 | except Exception: # nosec B110 | CODE |
| LOW | tqdm/utils.py | 240 | except Exception: | CODE |
| LOW | tqdm/utils.py | 243 | except Exception: | CODE |
| LOW | tqdm/utils.py | 275 | except Exception: | CODE |
| MEDIUM | tqdm/utils.py | 235 | def _is_utf(encoding): | CODE |
| MEDIUM | tqdm/utils.py | 270 | def inner(fp): | CODE |
| LOW | tqdm/autonotebook.py | 30 | except Exception: | CODE |
| LOW | tqdm/contrib/telegram.py | 48 | except Exception as e: | CODE |
| LOW | tqdm/contrib/telegram.py | 74 | except Exception as e: | CODE |
| LOW | tqdm/contrib/telegram.py | 85 | except Exception as e: | CODE |
| LOW | tqdm/contrib/discord.py | 51 | except Exception as e: | CODE |
| LOW | tqdm/contrib/discord.py | 78 | except Exception as e: | CODE |
| LOW | tqdm/contrib/discord.py | 90 | except Exception as e: | CODE |
| LOW | tqdm/contrib/slack.py | 35 | except Exception as e: | CODE |
| LOW | tqdm/contrib/slack.py | 53 | except Exception as e: | CODE |
| LOW | tqdm/contrib/utils_worker.py | 34 | except Exception as e: | CODE |
| LOW | examples/redirect_print.py | 29 | except Exception as exc: | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/tests_tqdm.py | 148 | CODE | |
| LOW | tests/tests_tqdm.py | 463 | CODE | |
| LOW | tests/tests_tqdm.py | 741 | CODE | |
| LOW | tests/tests_tqdm.py | 938 | CODE | |
| LOW | tests/tests_tqdm.py | 1634 | CODE | |
| LOW | tests/tests_tqdm.py | 1816 | CODE | |
| LOW | tests/tests_tqdm.py | 1829 | CODE | |
| LOW | tests/tests_synchronisation.py | 154 | CODE | |
| LOW | tests/tests_asyncio.py | 90 | CODE | |
| LOW | tqdm/_monitor.py | 62 | CODE | |
| LOW | tqdm/std.py | 368 | CODE | |
| LOW | tqdm/std.py | 773 | CODE | |
| LOW | tqdm/std.py | 959 | CODE | |
| LOW | tqdm/std.py | 1166 | CODE | |
| LOW | tqdm/std.py | 1204 | CODE | |
| LOW | tqdm/std.py | 854 | CODE | |
| LOW | tqdm/std.py | 855 | CODE | |
| LOW | tqdm/cli.py | 55 | CODE | |
| LOW | tqdm/cli.py | 156 | CODE | |
| LOW | tqdm/utils.py | 34 | CODE | |
| LOW | tqdm/utils.py | 53 | CODE | |
| LOW | examples/7zx.py | 38 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | tqdm/asyncio.py | 0 | ipython/jupyter notebook progress bar decorator for iterators. includes a default `range` iterator printing to `stderr`. | STRING |
| HIGH | tqdm/std.py | 0 | ipython/jupyter notebook progress bar decorator for iterators. includes a default `range` iterator printing to `stderr`. | STRING |
| HIGH | tqdm/notebook.py | 0 | ipython/jupyter notebook progress bar decorator for iterators. includes a default `range` iterator printing to `stderr`. | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | tests/tests_tqdm.py | 404 | # Create a test csv pseudo file | COMMENT |
| MEDIUM | tests/tests_rlock.py | 29 | # Creating a progress bar should initialize the lock | COMMENT |
| MEDIUM | tests/tests_rlock.py | 34 | # Creating a progress bar again should reuse the lock | COMMENT |
| MEDIUM | tqdm/notebook.py | 219 | # Initialize parent class + avoid printing by using gui=True | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | tqdm/std.py | 799 | >>> # Now you can use `progress_apply` instead of `apply` | STRING |
| MEDIUM | examples/pandas_progress_apply.py | 12 | # Now you can use `progress_apply` instead of `apply` | COMMENT |
| LOW | examples/tqdm_wget.py | 34 | Don't forget to close() or __exit__() | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/tests_perf.py | 86 | CODE | |
| LOW | tqdm/std.py | 463 | CODE | |
| LOW | tqdm/std.py | 959 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/tests_tqdm.py | 221 | rate=7.33) == " 10% 100/1000 [00:12<02:02, 7.33it/s]" | COMMENT |
| LOW | examples/pandas_progress_apply.py | 21 | # def inner(df, func, *args, **kwargs): | COMMENT |