Repository Analysis

ipython/ipython

Official repository for IPython itself. Other repos in the IPython organization contain things like the website, documentation builds, etc.

48.0 Strong AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of ipython/ipython, a Python project with 16,745 GitHub stars. SynthScan v2.0 examined 97,124 lines of code across 358 source files, recording 2496 pattern matches distributed across 19 syntactic categories. The overall adjusted score of 48.0 places this repository in the Strong 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).

48.0
Adjusted Score
48.0
Raw Score
100%
Time Factor
2026-07-13
Last Push
16.7K
Stars
Python
Language
97.1K
Lines of Code
358
Files
2.5K
Pattern Hits
2026-07-14
Scan Date
0.08
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 29MEDIUM 794LOW 1673

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 2496 distinct pattern matches across 19 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.

Decorative Section Separators746 hits · 2780 pts
SeverityFileLineSnippetContext
MEDIUMsetupbase.py29#-------------------------------------------------------------------------------COMMENT
MEDIUMsetupbase.py31#-------------------------------------------------------------------------------COMMENT
MEDIUMsetupbase.py41#---------------------------------------------------------------------------COMMENT
MEDIUMsetupbase.py43#---------------------------------------------------------------------------COMMENT
MEDIUMsetupbase.py56#---------------------------------------------------------------------------COMMENT
MEDIUMsetupbase.py58#---------------------------------------------------------------------------COMMENT
MEDIUMsetupbase.py85#---------------------------------------------------------------------------COMMENT
MEDIUMsetupbase.py87#---------------------------------------------------------------------------COMMENT
MEDIUMsetupbase.py151#---------------------------------------------------------------------------COMMENT
MEDIUMsetupbase.py153#---------------------------------------------------------------------------COMMENT
MEDIUMsetup.py8#-----------------------------------------------------------------------------COMMENT
MEDIUMsetup.py17#-----------------------------------------------------------------------------COMMENT
MEDIUMsetup.py56#-------------------------------------------------------------------------------STRING
MEDIUMsetup.py58#-------------------------------------------------------------------------------STRING
MEDIUMsetup.py76#---------------------------------------------------------------------------STRING
MEDIUMsetup.py78#---------------------------------------------------------------------------STRING
MEDIUMsetup.py84#---------------------------------------------------------------------------STRING
MEDIUMsetup.py86#---------------------------------------------------------------------------STRING
MEDIUMsetup.py96#---------------------------------------------------------------------------STRING
MEDIUMsetup.py98#---------------------------------------------------------------------------STRING
MEDIUMIPython/__init__.py7#-----------------------------------------------------------------------------COMMENT
MEDIUMIPython/__init__.py16#-----------------------------------------------------------------------------COMMENT
MEDIUMIPython/__init__.py18#-----------------------------------------------------------------------------COMMENT
MEDIUMIPython/__init__.py20#-----------------------------------------------------------------------------COMMENT
MEDIUMIPython/__init__.py26#-----------------------------------------------------------------------------COMMENT
MEDIUMIPython/__init__.py28#-----------------------------------------------------------------------------COMMENT
MEDIUMIPython/display.py3# -----------------------------------------------------------------------------COMMENT
MEDIUMIPython/display.py8# -----------------------------------------------------------------------------COMMENT
MEDIUMIPython/display.py10# -----------------------------------------------------------------------------COMMENT
MEDIUMIPython/display.py12# -----------------------------------------------------------------------------COMMENT
MEDIUMIPython/__main__.py3# -----------------------------------------------------------------------------COMMENT
MEDIUMIPython/__main__.py9# -----------------------------------------------------------------------------COMMENT
MEDIUMIPython/core/prefilter.py29#-----------------------------------------------------------------------------COMMENT
MEDIUMIPython/core/prefilter.py31#-----------------------------------------------------------------------------COMMENT
MEDIUMIPython/core/prefilter.py72#-----------------------------------------------------------------------------COMMENT
MEDIUMIPython/core/prefilter.py74#-----------------------------------------------------------------------------COMMENT
MEDIUMIPython/core/prefilter.py126 #-------------------------------------------------------------------------COMMENT
MEDIUMIPython/core/prefilter.py128 #-------------------------------------------------------------------------COMMENT
MEDIUMIPython/core/prefilter.py154 #-------------------------------------------------------------------------COMMENT
MEDIUMIPython/core/prefilter.py156 #-------------------------------------------------------------------------COMMENT
MEDIUMIPython/core/prefilter.py190 #-------------------------------------------------------------------------COMMENT
MEDIUMIPython/core/prefilter.py192 #-------------------------------------------------------------------------COMMENT
MEDIUMIPython/core/prefilter.py233 #-------------------------------------------------------------------------COMMENT
MEDIUMIPython/core/prefilter.py235 #-------------------------------------------------------------------------COMMENT
MEDIUMIPython/core/prefilter.py330#-----------------------------------------------------------------------------COMMENT
MEDIUMIPython/core/prefilter.py332#-----------------------------------------------------------------------------COMMENT
MEDIUMIPython/core/prefilter.py360#-----------------------------------------------------------------------------COMMENT
MEDIUMIPython/core/prefilter.py362#-----------------------------------------------------------------------------COMMENT
MEDIUMIPython/core/prefilter.py524#-----------------------------------------------------------------------------COMMENT
MEDIUMIPython/core/prefilter.py526#-----------------------------------------------------------------------------COMMENT
MEDIUMIPython/core/prefilter.py685#-----------------------------------------------------------------------------COMMENT
MEDIUMIPython/core/prefilter.py687#-----------------------------------------------------------------------------COMMENT
MEDIUMIPython/core/magic.py5# -----------------------------------------------------------------------------COMMENT
MEDIUMIPython/core/magic.py12# -----------------------------------------------------------------------------COMMENT
MEDIUMIPython/core/magic.py43# -----------------------------------------------------------------------------COMMENT
MEDIUMIPython/core/magic.py45# -----------------------------------------------------------------------------COMMENT
MEDIUMIPython/core/magic.py59# -----------------------------------------------------------------------------COMMENT
MEDIUMIPython/core/magic.py61# -----------------------------------------------------------------------------COMMENT
MEDIUMIPython/core/magic.py93# -----------------------------------------------------------------------------COMMENT
MEDIUMIPython/core/magic.py95# -----------------------------------------------------------------------------COMMENT
686 more matches not shown…
Hyper-Verbose Identifiers1072 hits · 1052 pts
SeverityFileLineSnippetContext
LOWIPython/core/profiledir.py180 def create_profile_dir_by_name(cls, path, name='default', config=None):CODE
LOWIPython/core/formatters.py736 def _singleton_printers_default(self):STRING
LOWIPython/core/formatters.py751 def _deferred_printers_default(self):STRING
LOWIPython/core/inputtransformer2.py234def find_end_of_continued_line(lines, start_line: int):STRING
LOWIPython/core/tbtools.py218def _simple_format_traceback_lines(CODE
LOWIPython/core/tbtools.py342 def variables_in_executing_piece(self) -> list[Any]:CODE
LOWIPython/core/tbtools.py467 def get_parts_of_chained_exception(CODE
LOWIPython/core/tbtools.py480 def prepare_chained_exception_message(CODE
LOWIPython/core/guarded_eval.py149def _has_original_dunder_external(CODE
LOWIPython/core/guarded_eval.py534 def _ipython_key_completions_(self):CODE
LOWIPython/core/guarded_eval.py555def _validate_policy_overrides(CODE
LOWIPython/core/guarded_eval.py740def _is_instance_attribute_assignment(CODE
LOWIPython/core/guarded_eval.py753def _get_coroutine_attributes() -> dict[str, object | None]:CODE
LOWIPython/core/guarded_eval.py1474def _create_duck_for_heap_type(duck_type):CODE
LOWIPython/core/doctb.py279 def format_exception_as_a_whole(CODE
LOWIPython/core/completer.py1444def _match_number_in_dict_key_prefix(prefix: str) -> str | None:CODE
LOWIPython/core/completer.py1721def back_unicode_name_matcher(context: CompletionContext):CODE
LOWIPython/core/completer.py1732def back_unicode_name_matches(text: str) -> tuple[str, Sequence[str]]:CODE
LOWIPython/core/completer.py2586 def _determine_completion_context(self, line):CODE
LOWIPython/core/completer.py2617 def _is_completing_in_cli_context(self, text: str) -> bool:CODE
LOWIPython/core/completer.py2840 def _default_arguments_from_docstring(self, doc):CODE
LOWIPython/core/completer.py1054 def _policy_overrides_changed(self, _change):STRING
LOWIPython/core/completer.py1207 def _strip_code_before_operator(self, code: str) -> str:STRING
LOWIPython/core/completer.py3219 def dispatch_custom_completer(self, text: str) -> list[str] | None:STRING
LOWIPython/core/ultratb.py414 def structured_traceback_doctest(CODE
LOWIPython/core/ultratb.py780 def format_exception_as_a_whole(CODE
LOWIPython/core/debugger.py637 def _pdbcmd_print_frame_status(self, arg):CODE
LOWIPython/core/debugger.py1107 def _is_in_decorator_internal_and_should_skip(self, frame):CODE
LOWIPython/core/debugger.py1119 def _cached_one_parent_frame_debuggerskip(self, frame):CODE
LOWIPython/core/application.py143 def _config_file_name_default(self):CODE
LOWIPython/core/application.py146 def _config_file_name_changed(self, change):CODE
LOWIPython/core/application.py157 def _config_file_paths_default(self):CODE
LOWIPython/core/application.py166 def _extra_config_file_changed(self, change):STRING
LOWIPython/core/application.py469 def stage_default_config_file(self):CODE
LOWIPython/core/extensions.py126 def _call_load_ipython_extension(self, mod):CODE
LOWIPython/core/extensions.py131 def _call_unload_ipython_extension(self, mod):CODE
LOWIPython/core/displaypub.py67 def _setup_execution_tracking(self):CODE
LOWIPython/core/pylabtools.py454def _matplotlib_manages_backends() -> bool:CODE
LOWIPython/core/pylabtools.py480def _list_matplotlib_backends_and_gui_loops() -> list[str]:CODE
LOWIPython/core/pylabtools.py504def _convert_gui_to_matplotlib(gui: str | None) -> str | None:CODE
LOWIPython/core/pylabtools.py510def _convert_gui_from_matplotlib(gui: str | None) -> str | None:CODE
LOWIPython/core/interactiveshell.py3503 def _format_exception_for_storage(CODE
LOWIPython/core/interactiveshell.py470 def _sphinxify_docstring_changed(self, change):STRING
LOWIPython/core/interactiveshell.py481 def _enable_html_pager_changed(self, change):STRING
LOWIPython/core/interactiveshell.py504 def input_transformers_cleanup(self):STRING
LOWIPython/core/oinspect.py1087 def _source_contains_docstring(src, doc):CODE
LOWIPython/core/profileapp.py215 def _copy_config_files_default(self):CODE
LOWIPython/core/profileapp.py288 def stage_default_config_file(self):CODE
LOWIPython/core/displayhook.py99 def semicolon_at_end_of_expression(expression):CODE
LOWIPython/core/magic_arguments.py105 def _format_action_invocation(self, action):CODE
LOWIPython/core/history.py259 def _default_connection_options(self) -> dict[str, bool]:STRING
LOWIPython/core/history.py721 def _switch_to_memory_history(self) -> None:CODE
LOWIPython/core/history.py743 def _restart_thread_if_stopped(self) -> None:CODE
LOWIPython/core/magics/basic.py675 def _get_kernel_language_info(self) -> dict | None:CODE
LOWIPython/core/magics/packaging.py36def _get_conda_like_executable(command):CODE
LOWIPython/sphinxext/tests/test_ansi_stripping.py14def test_strip_ansi_multiple_codes():CODE
LOWIPython/terminal/ptutils.py95def _adjust_completion_text_based_on_context(text, body, offset):CODE
LOWIPython/terminal/prompts.py56 def continuation_prompt_tokens(CODE
LOWIPython/terminal/prompts.py106 def continuation_prompt_tokens(self, width=None):CODE
LOWIPython/terminal/interactiveshell.py76def _backward_compat_continuation_prompt_tokens(CODE
1012 more matches not shown…
Unused Imports205 hits · 194 pts
SeverityFileLineSnippetContext
LOWsetupbase.py20CODE
LOWsetupbase.py22CODE
LOWsetupbase.py25CODE
LOWsetupbase.py26CODE
LOWsetup.py19CODE
LOW_build_meta.py2CODE
LOWtools/tests/embed/embed_flufl.py2CODE
LOWIPython/paths.py3CODE
LOWIPython/__init__.py22CODE
LOWIPython/__init__.py31CODE
LOWIPython/__init__.py33CODE
LOWIPython/__init__.py34CODE
LOWIPython/__init__.py36CODE
LOWIPython/__init__.py37CODE
LOWIPython/display.py14CODE
LOWIPython/display.py15CODE
LOWIPython/display.py15CODE
LOWIPython/display.py15CODE
LOWIPython/display.py15CODE
LOWIPython/display.py15CODE
LOWIPython/display.py15CODE
LOWIPython/display.py15CODE
LOWIPython/display.py15CODE
LOWIPython/display.py15CODE
LOWIPython/display.py15CODE
LOWIPython/display.py15CODE
LOWIPython/display.py15CODE
LOWIPython/display.py15CODE
LOWIPython/display.py15CODE
LOWIPython/display.py15CODE
LOWIPython/display.py15CODE
LOWIPython/display.py15CODE
LOWIPython/display.py15CODE
LOWIPython/display.py15CODE
LOWIPython/display.py15CODE
LOWIPython/display.py15CODE
LOWIPython/display.py15CODE
LOWIPython/display.py15CODE
LOWIPython/display.py15CODE
LOWIPython/display.py41CODE
LOWIPython/core/magic.py1CODE
LOWIPython/core/magic.py27CODE
LOWIPython/core/magic.py30CODE
LOWIPython/core/hooks.py38CODE
LOWIPython/core/alias.py9CODE
LOWIPython/core/tbtools.py1CODE
LOWIPython/core/events.py16CODE
LOWIPython/core/shellapp.py9CODE
LOWIPython/core/logger.py12CODE
LOWIPython/core/logger.py19CODE
LOWIPython/core/completer.py180CODE
LOWIPython/core/display.py6CODE
LOWIPython/core/display.py9CODE
LOWIPython/core/display.py23CODE
LOWIPython/core/debugger.py124CODE
LOWIPython/core/tips.py1CODE
LOWIPython/core/tips.py119CODE
LOWIPython/core/extensions.py6CODE
LOWIPython/core/extensions.py7CODE
LOWIPython/core/extensions.py12CODE
145 more matches not shown…
Excessive Try-Catch Wrapping147 hits · 153 pts
SeverityFileLineSnippetContext
LOWtools/update_whatsnew.py45 except Exception as e:CODE
LOWIPython/core/prefilter.py625 except Exception:CODE
MEDIUMIPython/core/magic.py661 print("Error in arguments:")CODE
LOWIPython/core/completerlib.py93 except Exception:CODE
LOWIPython/core/formatters.py238 except Exception:CODE
LOWIPython/core/formatters.py270 except Exception as e:CODE
LOWIPython/core/formatters.py285 except Exception:CODE
LOWIPython/core/formatters.py708 except Exception as e:STRING
LOWIPython/core/tbtools.py68 except Exception:CODE
LOWIPython/core/tbtools.py135 except Exception:CODE
LOWIPython/core/tbtools.py140 except Exception:CODE
LOWIPython/core/tbtools.py154 except Exception:CODE
LOWIPython/core/guarded_eval.py1227 except Exception as e:CODE
LOWIPython/core/guarded_eval.py1233 except Exception as e:CODE
LOWIPython/core/guarded_eval.py1235 except Exception as e:CODE
LOWIPython/core/guarded_eval.py678 except Exception:CODE
LOWIPython/core/guarded_eval.py909 except Exception:CODE
LOWIPython/core/guarded_eval.py917 except Exception:CODE
LOWIPython/core/guarded_eval.py929 except Exception:CODE
LOWIPython/core/guarded_eval.py1136 except Exception:CODE
LOWIPython/core/guarded_eval.py1284 except Exception:CODE
LOWIPython/core/page.py277 except Exception:CODE
LOWIPython/core/page.py282 except Exception:CODE
LOWIPython/core/doctb.py214 except Exception:CODE
LOWIPython/core/doctb.py258 except Exception:CODE
MEDIUMIPython/core/shellapp.py386def _exec_file(self, fname, shell_futures=False):CODE
LOWIPython/core/shellapp.py302 except Exception:CODE
LOWIPython/core/shellapp.py333 except Exception:CODE
LOWIPython/core/shellapp.py342 except Exception:CODE
LOWIPython/core/shellapp.py378 except Exception:CODE
LOWIPython/core/shellapp.py382 except Exception:CODE
LOWIPython/core/shellapp.py429 except Exception:CODE
LOWIPython/core/shellapp.py442 except Exception:CODE
LOWIPython/core/shellapp.py455 except Exception:CODE
LOWIPython/core/shellapp.py467 except Exception:CODE
LOWIPython/core/shellapp.py485 except Exception:CODE
MEDIUMIPython/core/completer.py2563 print("Error detecting if completing a non-finished string :", e, '|')CODE
LOWIPython/core/completer.py2560 except Exception as e:CODE
LOWIPython/core/completer.py2569 except Exception as e:CODE
LOWIPython/core/completer.py1295 except Exception:CODE
LOWIPython/core/completer.py1389 except Exception as e:CODE
LOWIPython/core/completer.py1410 except Exception:CODE
LOWIPython/core/completer.py1578 except Exception:CODE
LOWIPython/core/completer.py2649 except Exception:CODE
MEDIUMIPython/core/completer.py3410 print("Error in Jedi getting type of ", jm)STRING
LOWIPython/core/completer.py1165 except Exception as e:STRING
LOWIPython/core/completer.py2983 except Exception:STRING
LOWIPython/core/completer.py3000 except Exception:STRING
LOWIPython/core/completer.py3005 except Exception:STRING
LOWIPython/core/completer.py3408 except Exception:STRING
LOWIPython/core/ultratb.py475 except Exception:CODE
LOWIPython/core/ultratb.py643 except Exception:CODE
LOWIPython/core/ultratb.py754 except Exception:CODE
LOWIPython/core/display.py66 except Exception:CODE
LOWIPython/core/application.py376 except Exception:CODE
LOWIPython/core/interactiveshell.py826 except Exception:CODE
LOWIPython/core/interactiveshell.py1627 except Exception:CODE
LOWIPython/core/interactiveshell.py2233 except Exception:CODE
LOWIPython/core/interactiveshell.py3223 except Exception:CODE
LOWIPython/core/interactiveshell.py3308 except Exception:CODE
87 more matches not shown…
Deep Nesting135 hits · 118 pts
SeverityFileLineSnippetContext
LOWIPython/paths.py20CODE
LOWIPython/core/prefilter.py605CODE
LOWIPython/core/magic.py429CODE
LOWIPython/core/magic.py688CODE
LOWIPython/core/formatters.py457CODE
LOWIPython/core/formatters.py572CODE
LOWIPython/core/inputtransformer2.py217CODE
LOWIPython/core/inputtransformer2.py598CODE
LOWIPython/core/inputtransformer2.py646CODE
LOWIPython/core/inputtransformer2.py89CODE
LOWIPython/core/inputtransformer2.py115CODE
LOWIPython/core/inputtransformer2.py359CODE
LOWIPython/core/tbtools.py128CODE
LOWIPython/core/guarded_eval.py149CODE
LOWIPython/core/guarded_eval.py594CODE
LOWIPython/core/guarded_eval.py764CODE
LOWIPython/core/guarded_eval.py1210CODE
LOWIPython/core/guarded_eval.py1273CODE
LOWIPython/core/guarded_eval.py1347CODE
LOWIPython/core/page.py126CODE
LOWIPython/core/doctb.py325CODE
LOWIPython/core/shellapp.py318CODE
LOWIPython/core/shellapp.py386CODE
LOWIPython/core/shellapp.py459CODE
LOWIPython/core/logger.py71CODE
LOWIPython/core/completer.py1486CODE
LOWIPython/core/completer.py1127CODE
LOWIPython/core/completer.py1207CODE
LOWIPython/core/completer.py1253CODE
LOWIPython/core/completer.py2310CODE
LOWIPython/core/completer.py2498CODE
LOWIPython/core/completer.py2652CODE
LOWIPython/core/completer.py2769CODE
LOWIPython/core/completer.py2815CODE
LOWIPython/core/completer.py2866CODE
LOWIPython/core/completer.py2906CODE
LOWIPython/core/completer.py3219CODE
LOWIPython/core/completer.py3349CODE
LOWIPython/core/completer.py3572CODE
LOWIPython/core/ultratb.py289CODE
LOWIPython/core/ultratb.py853CODE
LOWIPython/core/ultratb.py1126CODE
LOWIPython/core/display.py371CODE
LOWIPython/core/display.py884CODE
LOWIPython/core/debugger.py920CODE
LOWIPython/core/debugger.py1183CODE
LOWIPython/core/debugger.py1249CODE
LOWIPython/core/debugger.py438CODE
LOWIPython/core/application.py383CODE
LOWIPython/core/interactiveshell.py1464CODE
LOWIPython/core/interactiveshell.py1574CODE
LOWIPython/core/interactiveshell.py1596CODE
LOWIPython/core/interactiveshell.py1666CODE
LOWIPython/core/interactiveshell.py1710CODE
LOWIPython/core/interactiveshell.py1927CODE
LOWIPython/core/interactiveshell.py2170CODE
LOWIPython/core/interactiveshell.py2560CODE
LOWIPython/core/interactiveshell.py2946CODE
LOWIPython/core/interactiveshell.py3021CODE
LOWIPython/core/interactiveshell.py3503CODE
75 more matches not shown…
Self-Referential Comments27 hits · 79 pts
SeverityFileLineSnippetContext
MEDIUMsetupbase.py48# Create a dict with the basic informationCOMMENT
MEDIUMtools/gen_latex_symbols.py79# This file is autogenerated from the file:COMMENT
MEDIUMIPython/core/magic.py322# Create the actual decorators for public useCOMMENT
MEDIUMIPython/core/magic.py541 # Create the new method in the user_magics and register it in theCOMMENT
MEDIUMIPython/core/historyapp.py76 # Create the new history database.STRING
MEDIUMIPython/core/completer.py3231 # Create a little structure to pass all the relevant information aboutSTRING
MEDIUMIPython/core/debugger.py116# This file is licensed under the PSF license.COMMENT
MEDIUMIPython/core/interactiveshell.py1251 # Create the namespace where the user will operate. user_ns isCOMMENT
MEDIUMIPython/core/latex_symbols.py5# This file is autogenerated from the file:COMMENT
MEDIUMIPython/core/magics/script.py201 # Create the event loop in which to run script magicsSTRING
MEDIUMIPython/terminal/ipapp.py295 # Create an InteractiveShell instance.COMMENT
MEDIUMIPython/testing/plugin/ipdoctest.py189 # Create an Example, and add it to the list.STRING
MEDIUMtests/test_zzz_autoreload.py1027 # Create a test module with only 'foo' attributeCOMMENT
MEDIUMtests/test_zzz_autoreload.py1036 # Create a trackerCOMMENT
MEDIUMtests/test_zzz_autoreload.py934 # Create a test module with both 'foo' and 'bar' attributesCOMMENT
MEDIUMtests/test_zzz_autoreload.py951 # Create a trackerCOMMENT
MEDIUMtests/test_zzz_autoreload.py982 # Create a test moduleCOMMENT
MEDIUMtests/test_zzz_autoreload.py999 # Create a trackerCOMMENT
MEDIUMtests/test_zzz_autoreload.py1061 # Create a test moduleCOMMENT
MEDIUMtests/test_zzz_autoreload.py1104 # Create a test moduleCOMMENT
MEDIUMtests/test_zzz_autoreload.py1147 # Create a trackerCOMMENT
MEDIUMtests/test_zzz_autoreload.py1180 # Create a trackerCOMMENT
MEDIUMtests/test_prefilter.py112 # Create a callable broken objectCOMMENT
MEDIUMtests/test_completer.py1546 # Create a subclass in __main__ (untrusted namespace)COMMENT
MEDIUMtests/test_application.py63 # Create the config file, so it tries to load it.COMMENT
MEDIUMtests/test_application.py89 # Create the config file, so it tries to load it.COMMENT
MEDIUMexamples/Embedding/embed_class_short.py43 # Define a dummy ipshell() so the same code doesn't crash inside anCOMMENT
Cross-File Repetition15 hits · 75 pts
SeverityFileLineSnippetContext
HIGHIPython/core/historyapp.py0create table if not exists sessions (session integer primary key autoincrement, start timestamp, end timestamp, num_cmdsSTRING
HIGHIPython/core/history.py0create table if not exists sessions (session integer primary key autoincrement, start timestamp, end timestamp, num_cmdsSTRING
HIGHtests/test_historyapp.py0create table if not exists sessions (session integer primary key autoincrement, start timestamp, end timestamp, num_cmdsSTRING
HIGHIPython/core/historyapp.py0create table if not exists history (session integer, line integer, source text, source_raw text, primary key (session, lSTRING
HIGHIPython/core/history.py0create table if not exists history (session integer, line integer, source text, source_raw text, primary key (session, lSTRING
HIGHtests/test_historyapp.py0create table if not exists history (session integer, line integer, source text, source_raw text, primary key (session, lSTRING
HIGHIPython/core/historyapp.py0create table if not exists output_history (session integer, line integer, output text, primary key (session, line))STRING
HIGHIPython/core/history.py0create table if not exists output_history (session integer, line integer, output text, primary key (session, line))STRING
HIGHtests/test_historyapp.py0create table if not exists output_history (session integer, line integer, output text, primary key (session, line))STRING
HIGHIPython/terminal/pt_inputhooks/glut.py0run the wx event loop by processing pending events only. this is like inputhook_wx1, but it keeps processing pending eveSTRING
HIGHIPython/terminal/pt_inputhooks/pyglet.py0run the wx event loop by processing pending events only. this is like inputhook_wx1, but it keeps processing pending eveSTRING
HIGHIPython/terminal/pt_inputhooks/wx.py0run the wx event loop by processing pending events only. this is like inputhook_wx1, but it keeps processing pending eveSTRING
HIGHIPython/utils/_process_posix.py0emscripten-specific implementation of process utilities. this file is only meant to be imported by process.py, not by enSTRING
HIGHIPython/utils/_process_win32.py0emscripten-specific implementation of process utilities. this file is only meant to be imported by process.py, not by enSTRING
HIGHIPython/utils/_process_emscripten.py0emscripten-specific implementation of process utilities. this file is only meant to be imported by process.py, not by enSTRING
Cross-Language Confusion14 hits · 71 pts
SeverityFileLineSnippetContext
HIGHsetup.py69 "cd docs/man && python -m gzip --best ipython.1",STRING
HIGHIPython/core/displayhook.py233 self.shell.push({'_':self._,CODE
HIGHIPython/core/displayhook.py242 self.shell.push(to_main, interactive=False)CODE
HIGHIPython/core/history.py1026 self.shell.push(to_main, interactive=False)CODE
HIGHIPython/extensions/autoreload.py840 self.shell.push({top_name: top_module})STRING
HIGHtests/test_page.py272 page_mod.pager_page(text, screen_lines=10, pager_cmd="cat > /dev/null; exit 3")CODE
HIGHtests/test_interactiveshell.py873 ip.push({"f": f})CODE
HIGHtests/test_interactiveshell.py258 ip.push(myvars, interactive=False)CODE
HIGHtests/test_interactiveshell.py891 ip.push({"f": f})CODE
HIGHtests/test_interactiveshell.py906 ip.push({"a": 10})CODE
HIGHtests/test_interactiveshell.py969 ip.push({"Integer": Integer})CODE
HIGHtests/test_interactiveshell.py1000 ip.push({"f": f})CODE
HIGHtests/test_interactiveshell.py1018 ip.push({"f": f})CODE
HIGHtests/fake_ext_dir/daft_extension.py10 ip.push(some_vars)CODE
Over-Commented Block59 hits · 54 pts
SeverityFileLineSnippetContext
LOWpyproject.toml421 # that will be a problem for pytest fixture unless you swap with the usefixture decorator https://docs.pytest.org/enCOMMENT
LOWpyproject.toml441 "UP011", # 1 [*] Unnecessary parentheses to `functools.lru_cache`COMMENT
LOWpyproject.toml461 # "UP035", # 2 [*] Import from `typing` insteadCOMMENT
LOWsetup.py1# -*- coding: utf-8 -*-COMMENT
LOWtools/configure-git-blame-ignore-revs.sh1#!/bin/shCOMMENT
LOWIPython/__init__.py1# PYTHON_ARGCOMPLETE_OKCOMMENT
LOWIPython/__main__.py1# PYTHON_ARGCOMPLETE_OKCOMMENT
LOWIPython/core/prefilter.py41# RegExp to exclude strings with this start from autocalling. InCOMMENT
LOWIPython/core/completerlib.py1"""Implementations for various useful completers.COMMENT
LOWIPython/core/completerlib.py261 # 'from xyz import abc<tab>'COMMENT
LOWIPython/core/release.py1"""Release data for the IPython project."""COMMENT
LOWIPython/core/completer.py621 # prone to errors; by explicitly passing `cursor_position` we can decouple the matchersCOMMENT
LOWIPython/core/completer.py3781 """COMMENT
LOWIPython/core/ultratb.py601 [(Token, "in "), (Token.VName, func), (Token.ValEm, scope)]COMMENT
LOWIPython/core/tips.py21 # [2/8/25, 23:29:05] Fernando Perez: Which is also archived here:COMMENT
LOWIPython/core/interactiveshell.py641 # Check if we're in a virtualenv, and set up sys.path.COMMENT
LOWIPython/core/interactiveshell.py1241 returnCOMMENT
LOWIPython/core/interactiveshell.py1261 # should really track down where the problem is coming from. AlexCOMMENT
LOWIPython/core/interactiveshell.py1281 # should start with "import __builtin__" (note, no 's') which willCOMMENT
LOWIPython/core/interactiveshell.py1301 # script survive, because the user_ns is updated with them. However,COMMENT
LOWIPython/core/interactiveshell.py1401 -----COMMENT
LOWIPython/core/interactiveshell.py1841 try:COMMENT
LOWIPython/core/interactiveshell.py2721 else:COMMENT
LOWIPython/core/displayhook.py181 The metadata dict to be associated with the display data.COMMENT
LOWIPython/core/compilerop.py161 # Save the execution countCOMMENT
LOWIPython/core/magics/logging.py1"""Implementation of magic functions for IPython's own logging.COMMENT
LOWIPython/core/magics/execution.py881 # being a module to becoming a dict missing some key data afterCOMMENT
LOWIPython/core/magics/config.py1"""Implementation of configuration-related magic functions.COMMENT
LOWIPython/core/magics/pylab.py1"""Implementation of magic functions for matplotlib/pylab support.COMMENT
LOWIPython/core/magics/code.py1"""Implementation of code management magic functions.COMMENT
LOWIPython/core/magics/display.py1"""Simple magics for display formats"""COMMENT
LOWIPython/core/magics/extension.py1"""Implementation of magic functions for the extension machinery.COMMENT
LOWIPython/core/magics/namespace.py1"""Implementation of namespace-related magic functions.COMMENT
LOWIPython/core/magics/auto.py1"""Implementation of magic functions that control various automatic behaviors.COMMENT
LOWIPython/core/magics/history.py1"""Implementation of magic functions related to History.COMMENT
LOWIPython/sphinxext/ipython_directive.py521 # combined such that '' entries correspond to newlines. So ifCOMMENT
LOWIPython/sphinxext/ipython_directive.py541 # tail end, and so this ensures proper spacing as well. E.g.:COMMENT
LOWIPython/terminal/pt_inputhooks/glut.py1"""GLUT Input hook for interactive use with prompt_toolkitCOMMENT
LOWIPython/terminal/pt_inputhooks/glut.py121 # and switch between a short and long sleep time. Here are someCOMMENT
LOWIPython/terminal/pt_inputhooks/gtk.py1# Code borrowed from python-prompt-toolkit examplesCOMMENT
LOWIPython/terminal/pt_inputhooks/tk.py1# Code borrowed from ptpythonCOMMENT
LOWIPython/terminal/pt_inputhooks/pyglet.py41 window.dispatch_events()COMMENT
LOWIPython/terminal/pt_inputhooks/wx.py121 ea = wx.EventLoopActivator(evtloop)COMMENT
LOWIPython/terminal/shortcuts/filters.py221 "has_selection": has_selection,COMMENT
LOWIPython/utils/module_paths.py1"""Utility functions for finding modulesCOMMENT
LOWIPython/utils/_process_posix.py101 enc = DEFAULT_ENCODINGCOMMENT
LOWIPython/extensions/autoreload.py141# Copyright (C) 2008 Pauli Virtanen <pav@iki.fi>COMMENT
LOWIPython/lib/__init__.py1"""COMMENT
LOWtests/test_pycolorize.py1# coding: utf-8COMMENT
LOWtests/test_debug_magic.py1"""Test embedding of IPython"""COMMENT
LOWtests/test_backgroundjobs.py1"""Tests for pylab tools module."""COMMENT
LOWtests/test_async_helpers.py61def _get_top_level_cases():COMMENT
LOWtests/nonascii.py1# coding: iso-8859-5COMMENT
LOWtests/nonascii2.py1# coding: iso-8859-5COMMENT
LOWdocs/source/conf.py61# ---------------------COMMENT
LOWdocs/source/conf.py101# -----------------------COMMENT
LOWexamples/Embedding/embed_class_long.py81COMMENT
LOW.github/workflows/downstream.yml61 python -m pip install --upgrade --upgrade-strategy eager flaky ipyparallelCOMMENT
LOW.github/workflows/python-package.yml41 # echo " darker -r 60625f241f298b5039cb2debc365db38aa7bb522 ."COMMENT
Modern Structural Boilerplate25 hits · 26 pts
SeverityFileLineSnippetContext
LOWIPython/__init__.py40__all__ = ["start_ipython", "embed", "embed_kernel"]CODE
LOWIPython/core/hooks.py51__all__ = [CODE
LOWIPython/core/tbtools.py452 def _set_ostream(self, val) -> None: # type:ignore[no-untyped-def]CODE
LOWIPython/core/tbtools.py501 def set_theme_name(self, name: str) -> None:CODE
LOWIPython/core/tbtools.py509 def set_colors(self, name: str) -> None:CODE
LOWIPython/core/guarded_eval.py1649__all__ = [CODE
LOWIPython/core/display_functions.py11__all__ = ['display', 'clear_output', 'publish_display_data', 'update_display', 'DisplayHandle']CODE
LOWIPython/core/completer.py279__all__ = ["Completer", "IPCompleter"]CODE
LOWIPython/core/ultratb.py1173 def set_mode(self, mode: str | None = None) -> None:CODE
LOWIPython/core/display.py30__all__ = [CODE
LOWIPython/core/interactiveshell.py2396 def set_custom_completer(self, completer, pos=0) -> None:CODE
LOWIPython/core/oinspect.py13__all__ = ["Inspector"]CODE
LOWIPython/core/magic_arguments.py310__all__ = ['magic_arguments', 'argument', 'argument_group', 'kwds',CODE
LOWIPython/terminal/shortcuts/__init__.py35__all__ = ["create_ipython_shortcuts"]CODE
LOWIPython/terminal/shortcuts/filters.py322__all__ = ["KEYBINDING_FILTERS", "filter_from_string"]CODE
LOWIPython/utils/_process_posix.py20__all__ = ["getoutput", "arg_split", "system", "check_pid"]CODE
LOWIPython/utils/ipstruct.py22__all__ = ['Struct']CODE
LOWIPython/utils/PyColorize.py23__all__ = ["Parser", "Theme"]CODE
LOWIPython/utils/_process_emscripten.py22__all__ = ["system", "getoutput", "check_pid", "arg_split"]CODE
LOWIPython/extensions/deduperreload/deduperreload.py200 def update_sources(self) -> None:CODE
LOWIPython/lib/display.py13__all__ = ['Audio', 'IFrame', 'YouTubeVideo', 'VimeoVideo', 'ScribdDocument',CODE
LOWIPython/lib/pretty.py115__all__ = ['pretty', 'pprint', 'PrettyPrinter', 'RepresentationPrinter',CODE
LOWIPython/lib/demo.py191__all__ = ['Demo','IPythonDemo','LineDemo','IPythonLineDemo','DemoError']CODE
LOWIPython/lib/lexers.py24__all__ = [CODE
LOWtests/bad_all.py15__all__ = [CODE
Redundant / Tautological Comments13 hits · 16 pts
SeverityFileLineSnippetContext
LOWIPython/core/magic.py734 # Check if we have more than one argument to warrant extra processing:COMMENT
LOWIPython/core/guarded_eval.py191 # Check if the method comes from this trusted base classCOMMENT
LOWIPython/core/completer.py2635 # Check if first token is a known aliasCOMMENT
LOWIPython/core/tips.py117# Check if argcomplete is installed and add tipCOMMENT
LOWIPython/core/interactiveshell.py3531 # Check if the exception (or its context) is an ExceptionGroup.COMMENT
LOWIPython/core/interactiveshell.py4093 if os.path.isfile(tgt): # Read fileCODE
LOWIPython/core/interactiveshell.py641 # Check if we're in a virtualenv, and set up sys.path.STRING
LOWIPython/core/magics/basic.py636 # Check if this execution_count is in exceptions (current session)COMMENT
LOWIPython/core/magics/packaging.py55 # Check if there is a conda executable in the same directory as the Python executable.COMMENT
LOWIPython/core/magics/history.py164 # Check if output to specific file was requested.COMMENT
LOWIPython/utils/text.py409 # Check if all characters in this position are the sameCOMMENT
LOWIPython/extensions/autoreload.py500 # Check if there's already a different mapping for the same resolved_name from a different original_nameCOMMENT
LOWtests/test_magic.py1030 # Check if notebook is trustedCOMMENT
Slop Phrases8 hits · 15 pts
SeverityFileLineSnippetContext
LOWsetup.py24# This check is also made in IPython/__init__, don't forget to update both whenCOMMENT
LOWsetup.py24# This check is also made in IPython/__init__, don't forget to update both whenCOMMENT
LOWIPython/__init__.py30# Don't forget to also update setup.py when this changes!COMMENT
MEDIUMIPython/core/formatters.py636 how to write pretty printers. Here is a simple example::STRING
LOWIPython/core/magics/code.py571 close it (don't forget to save it!).STRING
MEDIUMIPython/terminal/embed.py427 Here is a simple example::STRING
MEDIUMIPython/lib/latextools.py38 # unicode pretty printing is used, you can use ["matplotlib"].COMMENT
MEDIUMexamples/Embedding/embed_class_long.py91# - A call-specific header string, which you can use to indicate where in theCOMMENT
AI Slop Vocabulary10 hits · 12 pts
SeverityFileLineSnippetContext
MEDIUMIPython/core/tbtools.py129 """Hopefully pretty robust repr equivalent."""STRING
LOWIPython/core/completer.py1301 # Note: ideally we would just return words here and the prefixCOMMENT
LOWIPython/core/interactiveshell.py962 # but others can symlink *to* the venv Python, so we can't just use sys.executable.COMMENT
LOWIPython/core/interactiveshell.py2670 # pexpect or pipes to read from. Users can always just callCOMMENT
LOWIPython/core/magics/script.py206 # just create an event loopSTRING
LOWIPython/sphinxext/ipython_directive.py791 # exception, but for now, we just set the backend to 'agg'.COMMENT
LOWIPython/terminal/embed.py147 # Ask-exit does not really ask, it just set internals flags to exitCOMMENT
LOWIPython/utils/ipstruct.py110 # I can't simply call hasattr here because it calls getattr, whichCOMMENT
LOWIPython/utils/timing.py69 # There is no distinction of user/system time under windows, so we just useCOMMENT
MEDIUMtests/test_debugger.py752 """Create a comprehensive module hierarchy for testing all debugger commands."""STRING
AI Structural Patterns10 hits · 9 pts
SeverityFileLineSnippetContext
LOWIPython/core/doctb.py100CODE
LOWIPython/core/ultratb.py497CODE
LOWIPython/core/ultratb.py1089CODE
LOWIPython/core/display.py884CODE
LOWIPython/core/display.py1132CODE
LOWIPython/core/display.py1254CODE
LOWIPython/core/interactiveshell.py2493CODE
LOWIPython/core/interactiveshell.py2900CODE
LOWIPython/core/magic_arguments.py140CODE
LOWIPython/lib/display.py112CODE
Modern AI Meta-Vocabulary1 hit · 4 pts
SeverityFileLineSnippetContext
MEDIUMtests/test_debugger_backport.py93 # the internal evaluation scaffolding must not leak into the localsCOMMENT
Overly Generic Function Names6 hits · 4 pts
SeverityFileLineSnippetContext
LOWtests/test_tokenutil.py48def test_function():CODE
LOWtests/test_completer.py2103 " def my_method(self) -> str:",CODE
LOWtests/test_completer.py2115 " def my_method(self) -> str:",CODE
LOWtests/test_completer.py2127 " def my_method(self) -> str:",CODE
LOWtests/test_completer.py2139 " def my_method(self):",CODE
LOWtests/test_completer.py2225 " def my_method(self):",CODE
Dead Code1 hit · 2 pts
SeverityFileLineSnippetContext
MEDIUMtests/test_shortcuts.py650CODE
Fake / Example Data1 hit · 0 pts
SeverityFileLineSnippetContext
LOWtests/test_display_2.py406 """use a tempfile, with dummy-data, to ensure that video embedding doesn't crash"""STRING
Verbosity Indicators1 hit · 0 pts
SeverityFileLineSnippetContext
LOWIPython/core/guarded_eval.py788 The purpose of this function is to guard against unwanted side-effects;STRING