Never use print for debugging again
This report presents the forensic synthetic code analysis of cool-RR/PySnooper, a Python project with 16,581 GitHub stars. SynthScan v2.0 examined 6,960 lines of code across 37 source files, recording 181 pattern matches distributed across 11 syntactic categories. The overall adjusted score of 26.3 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 181 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 | pysnooper/__init__.py | 20 | CODE | |
| LOW | pysnooper/__init__.py | 21 | CODE | |
| LOW | pysnooper/__init__.py | 21 | CODE | |
| LOW | pysnooper/__init__.py | 21 | CODE | |
| LOW | pysnooper/__init__.py | 21 | CODE | |
| LOW | pysnooper/utils.py | 8 | CODE | |
| LOW | pysnooper/pycompat.py | 68 | CODE | |
| LOW | pysnooper/pycompat.py | 70 | CODE | |
| LOW | pysnooper/tracer.py | 14 | CODE | |
| LOW | tests/test_pysnooper.py | 8 | CODE | |
| LOW | tests/test_pysnooper.py | 18 | CODE | |
| LOW | tests/test_chinese.py | 5 | CODE | |
| LOW | tests/test_chinese.py | 6 | CODE | |
| LOW | tests/test_chinese.py | 7 | CODE | |
| LOW | tests/test_chinese.py | 8 | CODE | |
| LOW | tests/test_chinese.py | 9 | CODE | |
| LOW | tests/test_chinese.py | 11 | CODE | |
| LOW | tests/test_chinese.py | 12 | CODE | |
| LOW | tests/test_chinese.py | 16 | CODE | |
| LOW | tests/test_chinese.py | 17 | CODE | |
| LOW | tests/test_chinese.py | 17 | CODE | |
| LOW | tests/test_chinese.py | 17 | CODE | |
| LOW | tests/test_chinese.py | 17 | CODE | |
| LOW | tests/test_chinese.py | 17 | CODE | |
| LOW | tests/test_not_implemented.py | 4 | CODE | |
| LOW | tests/test_not_implemented.py | 6 | CODE | |
| LOW | tests/test_not_implemented.py | 7 | CODE | |
| LOW | tests/test_not_implemented.py | 8 | CODE | |
| LOW | tests/test_not_implemented.py | 9 | CODE | |
| LOW | tests/test_not_implemented.py | 12 | CODE | |
| LOW | tests/test_not_implemented.py | 16 | CODE | |
| LOW | tests/test_not_implemented.py | 18 | CODE | |
| LOW | tests/test_not_implemented.py | 18 | CODE | |
| LOW | tests/test_not_implemented.py | 18 | CODE | |
| LOW | tests/test_not_implemented.py | 18 | CODE | |
| LOW | tests/test_not_implemented.py | 18 | CODE | |
| LOW | tests/test_not_implemented.py | 18 | CODE | |
| LOW | tests/test_not_implemented.py | 18 | CODE | |
| LOW | tests/test_not_implemented.py | 18 | CODE | |
| LOW | tests/test_not_implemented.py | 18 | CODE | |
| LOW | tests/test_not_implemented.py | 18 | CODE | |
| LOW | tests/test_not_implemented.py | 18 | CODE | |
| LOW | tests/test_not_implemented.py | 18 | CODE | |
| LOW | tests/test_not_implemented.py | 18 | CODE | |
| LOW | tests/test_not_implemented.py | 23 | CODE | |
| LOW | tests/test_utils/test_regex.py | 4 | CODE | |
| LOW | tests/test_multiple_files/test_multiple_files.py | 4 | CODE | |
| LOW | tests/test_multiple_files/test_multiple_files.py | 5 | CODE | |
| LOW | tests/test_multiple_files/test_multiple_files.py | 6 | CODE | |
| LOW | tests/test_multiple_files/test_multiple_files.py | 7 | CODE | |
| LOW | tests/test_multiple_files/test_multiple_files.py | 8 | CODE | |
| LOW | tests/test_multiple_files/test_multiple_files.py | 9 | CODE | |
| LOW | tests/test_multiple_files/test_multiple_files.py | 11 | CODE | |
| LOW | tests/test_multiple_files/test_multiple_files.py | 12 | CODE | |
| LOW | tests/test_multiple_files/test_multiple_files.py | 14 | CODE | |
| LOW | tests/test_multiple_files/test_multiple_files.py | 15 | CODE | |
| LOW | tests/test_multiple_files/test_multiple_files.py | 16 | CODE | |
| LOW | tests/test_multiple_files/test_multiple_files.py | 16 | CODE | |
| LOW | tests/test_multiple_files/test_multiple_files.py | 16 | CODE | |
| LOW | tests/test_multiple_files/test_multiple_files.py | 16 | CODE | |
| 1 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/test_pysnooper.py | 30 | def my_function(foo): | CODE |
| LOW | tests/test_pysnooper.py | 43 | CallEntry('def my_function(foo):'), | CODE |
| LOW | tests/test_pysnooper.py | 191 | def my_function(foo): | CODE |
| LOW | tests/test_pysnooper.py | 206 | CallEntry('def my_function(foo):'), | CODE |
| LOW | tests/test_pysnooper.py | 222 | def my_function(foo): | CODE |
| LOW | tests/test_pysnooper.py | 250 | CallEntry('def my_function(foo):', | CODE |
| LOW | tests/test_pysnooper.py | 268 | CallEntry('def my_function(foo):', | CODE |
| LOW | tests/test_pysnooper.py | 286 | CallEntry('def my_function(foo):', | CODE |
| LOW | tests/test_pysnooper.py | 311 | def my_function(foo): | CODE |
| LOW | tests/test_pysnooper.py | 324 | CallEntry('def my_function(foo):'), | CODE |
| LOW | tests/test_pysnooper.py | 352 | def my_function(): | CODE |
| LOW | tests/test_pysnooper.py | 368 | CallEntry('def my_function():'), | CODE |
| LOW | tests/test_pysnooper.py | 401 | def my_function(): | CODE |
| LOW | tests/test_pysnooper.py | 417 | CallEntry('def my_function():'), | CODE |
| LOW | tests/test_pysnooper.py | 460 | def my_function(): | CODE |
| LOW | tests/test_pysnooper.py | 475 | CallEntry('def my_function():'), | CODE |
| LOW | tests/test_pysnooper.py | 507 | def my_function(): | CODE |
| LOW | tests/test_pysnooper.py | 522 | CallEntry('def my_function():'), | CODE |
| LOW | tests/test_pysnooper.py | 543 | def my_function(): | CODE |
| LOW | tests/test_pysnooper.py | 557 | CallEntry('def my_function():'), | CODE |
| LOW | tests/test_pysnooper.py | 572 | def my_function(): | CODE |
| LOW | tests/test_pysnooper.py | 586 | CallEntry('def my_function():'), | CODE |
| LOW | tests/test_pysnooper.py | 601 | def my_function(): | CODE |
| LOW | tests/test_pysnooper.py | 615 | CallEntry('def my_function():'), | CODE |
| LOW | tests/test_pysnooper.py | 634 | def my_function(): | CODE |
| LOW | tests/test_pysnooper.py | 647 | CallEntry('def my_function():'), | CODE |
| LOW | tests/test_pysnooper.py | 769 | def my_function(_foo): | CODE |
| LOW | tests/test_pysnooper.py | 783 | CallEntry('def my_function(_foo):'), | CODE |
| LOW | tests/test_pysnooper.py | 809 | def my_function(foo): | CODE |
| LOW | tests/test_pysnooper.py | 822 | CallEntry('def my_function(foo):'), | CODE |
| LOW | tests/test_pysnooper.py | 905 | def my_function(foo): | STRING |
| LOW | tests/test_pysnooper.py | 920 | CallEntry('def my_function(foo):'), | STRING |
| LOW | tests/test_pysnooper.py | 939 | def my_function(foo): | STRING |
| LOW | tests/test_pysnooper.py | 954 | CallEntry('def my_function(foo):'), | STRING |
| LOW | tests/test_pysnooper.py | 965 | CallEntry('def my_function(foo):'), | STRING |
| LOW | tests/test_pysnooper.py | 982 | def my_function(foo): | STRING |
| LOW | tests/test_pysnooper.py | 1508 | def my_function(foo): | STRING |
| LOW | tests/test_pysnooper.py | 1533 | def my_method(self, foo): | STRING |
| LOW | tests/test_pysnooper.py | 1553 | CallEntry('def my_method(self, foo):'), | STRING |
| LOW | tests/test_pysnooper.py | 1581 | def my_method(self, foo): | STRING |
| LOW | tests/test_pysnooper.py | 1631 | def my_method(self, foo): | STRING |
| LOW | tests/test_pysnooper.py | 1657 | CallEntry('def my_method(self, foo):'), | STRING |
| LOW | tests/mini_toolbox/contextlib.py | 155 | def helper(*args, **kwds): | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | misc/generate_authors.py | 36 | def iterate_authors_by_chronological_order(branch): | CODE |
| LOW | pysnooper/tracer.py | 73 | def get_path_and_source_from_frame(frame): | CODE |
| LOW | tests/test_mini_toolbox.py | 9 | def test_output_capturer_doesnt_swallow_exceptions(): | CODE |
| LOW⚡ | tests/test_ended_by_exception.py | 23 | def test_negative_f_lasti_is_not_an_exception(): | CODE |
| LOW⚡ | tests/test_ended_by_exception.py | 31 | def test_last_opcode_return_is_normal_return(): | CODE |
| LOW⚡ | tests/test_ended_by_exception.py | 36 | def test_last_opcode_not_return_is_exception(): | CODE |
| LOW⚡ | tests/test_ended_by_exception.py | 41 | def test_non_return_event_is_never_exception(): | CODE |
| LOW⚡ | tests/test_ended_by_exception.py | 46 | def test_unstarted_generator_close_is_not_an_exception(): | CODE |
| LOW | tests/utils.py | 43 | def is_compatible_with_current_python_version(self): | CODE |
| LOW | tests/test_pysnooper.py | 498 | def test_single_watch_no_comma(normalize): | CODE |
| LOW | tests/test_pysnooper.py | 570 | def test_long_variable_with_custom_max_variable_length(normalize): | CODE |
| LOW | tests/test_pysnooper.py | 599 | def test_long_variable_with_infinite_max_variable_length(normalize): | CODE |
| LOW | tests/test_pysnooper.py | 798 | def test_confusing_decorator_lines(normalize): | CODE |
| LOW | tests/test_pysnooper.py | 899 | def test_no_overwrite_by_default(): | STRING |
| LOW | tests/test_pysnooper.py | 978 | def test_error_in_overwrite_argument(): | STRING |
| LOW | tests/test_pysnooper.py | 1566 | def test_class_with_decorated_method(normalize): | STRING |
| LOW | tests/test_pysnooper.py | 1615 | def test_class_with_decorated_method_and_snoop_applied_to_method(normalize): | STRING |
| LOW | tests/test_pysnooper.py | 1756 | def test_snooping_on_class_does_not_cause_base_class_to_be_snooped(normalize): | STRING |
| LOW | tests/test_pysnooper.py | 1866 | def test_normalize_thread_info(): | STRING |
| LOW | tests/test_pysnooper.py | 1943 | def test_nested_exception_group(): | STRING |
| LOW | tests/test_pysnooper.py | 2082 | def test_valid_damaged_zipfile(): | STRING |
| LOW | tests/test_not_implemented.py | 26 | def test_rejecting_coroutine_functions(): | CODE |
| LOW | tests/test_not_implemented.py | 44 | def test_rejecting_async_generator_functions(): | STRING |
| LOW | tests/mini_toolbox/contextlib.py | 274 | def _reraise_with_existing_context(exc_details): | CODE |
| LOW | tests/mini_toolbox/contextlib.py | 290 | def _reraise_with_existing_context(exc_details): | CODE |
| LOW | tests/mini_toolbox/pathlib.py | 68 | def _try_except_fileexistserror(try_func, except_func, else_func=None): | CODE |
| LOW | tests/mini_toolbox/pathlib.py | 90 | def _try_except_filenotfounderror(try_func, except_func): | CODE |
| LOW | tests/mini_toolbox/pathlib.py | 106 | def _try_except_permissionerror_iter(try_iter, except_iter): | CODE |
| LOW | tests/test_utils/test_regex.py | 7 | def test_ansible_filename_pattern(): | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | pysnooper/variables.py | 33 | except Exception: | CODE |
| LOW | pysnooper/variables.py | 61 | except Exception: | CODE |
| LOW | pysnooper/variables.py | 73 | except Exception: | CODE |
| MEDIUM | pysnooper/variables.py | 30 | def items(self, frame, normalize=False): | CODE |
| MEDIUM | pysnooper/variables.py | 69 | def _safe_keys(self, main_value): | CODE |
| LOW | pysnooper/utils.py | 72 | except Exception: | CODE |
| LOW⚡ | pysnooper/tracer.py | 101 | except Exception: | CODE |
| LOW⚡ | pysnooper/tracer.py | 111 | except Exception: | CODE |
| LOW⚡ | pysnooper/tracer.py | 118 | except Exception: | CODE |
| LOW | pysnooper/tracer.py | 351 | except Exception as e: | CODE |
| LOW | tests/mini_toolbox/__init__.py | 97 | except Exception: | CODE |
| LOW | tests/samples/exception.py | 11 | except Exception: | CODE |
| MEDIUM | tests/samples/exception.py | 8 | def bar(): | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | tests/mini_toolbox/contextlib.py | 336 | self.push(_exit_wrapper) | CODE |
| HIGH | tests/mini_toolbox/contextlib.py | 368 | self.push(_exit_wrapper) | CODE |
| HIGH | tests/mini_toolbox/contextlib.py | 430 | return self.push(callback) | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | pysnooper/utils.py | 11 | CODE | |
| LOW | pysnooper/tracer.py | 73 | CODE | |
| LOW | pysnooper/tracer.py | 420 | CODE | |
| LOW | tests/mini_toolbox/pathlib.py | 106 | CODE | |
| LOW | tests/mini_toolbox/pathlib.py | 202 | CODE | |
| LOW | tests/mini_toolbox/pathlib.py | 286 | CODE | |
| LOW | tests/mini_toolbox/pathlib.py | 331 | CODE | |
| LOW | tests/mini_toolbox/pathlib.py | 395 | CODE | |
| LOW | tests/mini_toolbox/pathlib.py | 688 | CODE | |
| LOW | tests/mini_toolbox/pathlib.py | 733 | CODE | |
| LOW | tests/mini_toolbox/pathlib.py | 818 | CODE | |
| LOW | tests/mini_toolbox/pathlib.py | 689 | CODE | |
| LOW | tests/mini_toolbox/pathlib.py | 734 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | tests/mini_toolbox/pathlib.py | 676 | CODE | |
| MEDIUM | tests/mini_toolbox/pathlib.py | 704 | CODE | |
| MEDIUM | tests/mini_toolbox/pathlib.py | 728 | CODE | |
| MEDIUM | tests/mini_toolbox/pathlib.py | 750 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | tests/utils.py | 123 | # Todo: Looking at this class, we could rework the hierarchy. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | pysnooper/tracer.py | 253 | CODE | |
| LOW | tests/utils.py | 136 | CODE | |
| LOW | tests/utils.py | 418 | CODE | |
| LOW | tests/test_pysnooper.py | 1805 | CODE | |
| LOW | tests/test_pysnooper.py | 1842 | CODE | |
| LOW | tests/test_pysnooper.py | 1878 | CODE | |
| LOW | tests/test_pysnooper.py | 1572 | CODE | |
| LOW | tests/test_pysnooper.py | 1621 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | requirements.txt | 1 | # | COMMENT |
| LOW | .travis.yml | 41 | # script: skip | COMMENT |
| LOW | tests/mini_toolbox/contextlib.py | 101 | # was passed to throw(). This prevents a StopIteration | COMMENT |
| LOW | tests/mini_toolbox/contextlib.py | 241 | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/mini_toolbox/contextlib.py | 8 | __all__ = ["contextmanager", "closing", "ContextDecorator", "ExitStack", | CODE |
| LOW | tests/mini_toolbox/pathlib.py | 51 | __all__ = [ | CODE |