Repository Analysis

ipython/ipython

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

47.5 Strong AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of ipython/ipython, a Python project with 16,773 GitHub stars. SynthScan v2.0 examined 99,780 lines of code across 363 source files, recording 2560 pattern matches distributed across 19 syntactic categories. The overall adjusted score of 47.5 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).

47.5
Adjusted Score
47.5
Raw Score
100%
Time Factor
2026-08-28
Last Push
16.8K
Stars
Python
Language
99.8K
Lines of Code
363
Files
2.6K
Pattern Hits
2026-08-29
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 797LOW 1734

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 2560 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 · 2776 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.py40# -----------------------------------------------------------------------------COMMENT
MEDIUMIPython/core/magic.py42# -----------------------------------------------------------------------------COMMENT
MEDIUMIPython/core/magic.py68# -----------------------------------------------------------------------------COMMENT
MEDIUMIPython/core/magic.py70# -----------------------------------------------------------------------------COMMENT
MEDIUMIPython/core/magic.py102# -----------------------------------------------------------------------------COMMENT
MEDIUMIPython/core/magic.py104# -----------------------------------------------------------------------------COMMENT
686 more matches not shown…
Hyper-Verbose Identifiers1115 hits · 1102 pts
SeverityFileLineSnippetContext
LOWconftest.py7def stop_script_magics_event_loop():CODE
LOWIPython/core/profiledir.py181 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.py254def find_end_of_continued_line(lines, start_line: int):STRING
LOWIPython/core/tbtools.py221def _simple_format_traceback_lines(CODE
LOWIPython/core/tbtools.py346 def variables_in_executing_piece(self) -> list[Any]:CODE
LOWIPython/core/tbtools.py491 def get_parts_of_chained_exception(CODE
LOWIPython/core/tbtools.py504 def prepare_chained_exception_message(CODE
LOWIPython/core/guarded_eval.py155def _has_original_dunder_external(CODE
LOWIPython/core/guarded_eval.py505 def _ipython_key_completions_(self):CODE
LOWIPython/core/guarded_eval.py518def _validate_policy_overrides(CODE
LOWIPython/core/guarded_eval.py703def _is_instance_attribute_assignment(CODE
LOWIPython/core/guarded_eval.py716def _get_coroutine_attributes() -> dict[str, object | None]:CODE
LOWIPython/core/guarded_eval.py1444def _create_duck_for_heap_type(duck_type):CODE
LOWIPython/core/doctb.py291 def format_exception_as_a_whole(CODE
LOWIPython/core/completer.py2679 def _is_completing_in_system_assignment(self, text: str) -> bool:CODE
LOWIPython/core/completer.py1471def _match_number_in_dict_key_prefix(prefix: str) -> str | None:CODE
LOWIPython/core/completer.py1748def back_unicode_name_matcher(context: CompletionContext):CODE
LOWIPython/core/completer.py1759def back_unicode_name_matches(text: str) -> tuple[str, Sequence[str]]:CODE
LOWIPython/core/completer.py2611 def _determine_completion_context(self, line):CODE
LOWIPython/core/completer.py2642 def _is_completing_in_cli_context(self, text: str) -> bool:CODE
LOWIPython/core/completer.py2861 def _default_arguments_from_docstring(self, doc):CODE
LOWIPython/core/completer.py1079 def _policy_overrides_changed(self, _change):STRING
LOWIPython/core/completer.py1235 def _strip_code_before_operator(self, code: str) -> str:STRING
LOWIPython/core/completer.py3245 def dispatch_custom_completer(self, text: str) -> list[str] | None:STRING
LOWIPython/core/ultratb.py422 def structured_traceback_doctest(CODE
LOWIPython/core/ultratb.py796 def format_exception_as_a_whole(CODE
LOWIPython/core/debugger.py649 def _pdbcmd_print_frame_status(self, arg):CODE
LOWIPython/core/debugger.py1134 def _is_in_decorator_internal_and_should_skip(self, frame):CODE
LOWIPython/core/debugger.py1145 def _cached_one_parent_frame_debuggerskip(self, frame):CODE
LOWIPython/core/application.py150 def _config_file_name_default(self):CODE
LOWIPython/core/application.py153 def _config_file_name_changed(self, change):CODE
LOWIPython/core/application.py164 def _config_file_paths_default(self):CODE
LOWIPython/core/application.py172 def _extra_config_file_changed(self, change):STRING
LOWIPython/core/application.py476 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.py443def _matplotlib_manages_backends() -> bool:CODE
LOWIPython/core/pylabtools.py469def _list_matplotlib_backends_and_gui_loops() -> list[str]:CODE
LOWIPython/core/pylabtools.py491def _convert_gui_to_matplotlib(gui: str | None) -> str | None:CODE
LOWIPython/core/pylabtools.py497def _convert_gui_from_matplotlib(gui: str | None) -> str | None:CODE
LOWIPython/core/interactiveshell.py3541 def _format_exception_for_storage(CODE
LOWIPython/core/interactiveshell.py464 def _sphinxify_docstring_changed(self, change):STRING
LOWIPython/core/interactiveshell.py475 def _enable_html_pager_changed(self, change):STRING
LOWIPython/core/interactiveshell.py498 def input_transformers_cleanup(self):STRING
LOWIPython/core/oinspect.py1074 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.py98 def semicolon_at_end_of_expression(expression):CODE
LOWIPython/core/magic_arguments.py105 def _format_action_invocation(self, action):CODE
LOWIPython/core/history.py329 def _default_connection_options(self) -> dict[str, bool]:STRING
LOWIPython/core/history.py820 def _switch_to_memory_history(self) -> None:CODE
LOWIPython/core/history.py860 def _restart_thread_if_stopped(self) -> None:CODE
LOWIPython/core/magics/basic.py705 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.py94def _adjust_completion_text_based_on_context(text, body, offset):CODE
LOWIPython/terminal/prompts.py56 def continuation_prompt_tokens(CODE
1055 more matches not shown…
Unused Imports213 hits · 198 pts
SeverityFileLineSnippetContext
LOWsetupbase.py20CODE
LOWsetupbase.py22CODE
LOWsetupbase.py25CODE
LOWsetupbase.py26CODE
LOWsetup.py19CODE
LOW_build_meta.py2CODE
LOWtools/importtime_average.py35CODE
LOWtools/tests/embed/embed_flufl.py2CODE
LOWIPython/paths.py3CODE
LOWIPython/__init__.py22CODE
LOWIPython/__init__.py64CODE
LOWIPython/__init__.py65CODE
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/async_helpers.py13CODE
LOWIPython/core/magic.py1CODE
LOWIPython/core/magic.py27CODE
LOWIPython/core/hooks.py38CODE
LOWIPython/core/alias.py9CODE
LOWIPython/core/tbtools.py1CODE
LOWIPython/core/events.py16CODE
LOWIPython/core/splitinput.py15CODE
LOWIPython/core/doctb.py1CODE
LOWIPython/core/shellapp.py9CODE
LOWIPython/core/logger.py12CODE
LOWIPython/core/logger.py19CODE
LOWIPython/core/completer.py180CODE
LOWIPython/core/ultratb.py61CODE
LOWIPython/core/display.py6CODE
LOWIPython/core/display.py9CODE
LOWIPython/core/display.py19CODE
LOWIPython/core/debugger.py124CODE
LOWIPython/core/tips.py1CODE
LOWIPython/core/extensions.py6CODE
LOWIPython/core/extensions.py7CODE
LOWIPython/core/extensions.py12CODE
153 more matches not shown…
Excessive Try-Catch Wrapping147 hits · 156 pts
SeverityFileLineSnippetContext
LOWtools/update_whatsnew.py45 except Exception as e:CODE
LOWIPython/core/prefilter.py625 except Exception:CODE
LOWIPython/core/magic.py597 except Exception:CODE
MEDIUMIPython/core/magic.py818 print("Error in arguments:")CODE
LOWIPython/core/completerlib.py93 except Exception:CODE
LOWIPython/core/formatters.py265 except Exception as e:CODE
LOWIPython/core/formatters.py282 except Exception:CODE
LOWIPython/core/formatters.py708 except Exception as e:STRING
MEDIUMIPython/core/formatters.py276def wrapper(self, *args, **kwargs):CODE
LOWIPython/core/tbtools.py66 except Exception:CODE
LOWIPython/core/tbtools.py137 except Exception:CODE
LOWIPython/core/tbtools.py142 except Exception:CODE
LOWIPython/core/tbtools.py156 except Exception:CODE
LOWIPython/core/guarded_eval.py1185 except Exception as e:CODE
LOWIPython/core/guarded_eval.py1191 except Exception as e:CODE
LOWIPython/core/guarded_eval.py1193 except Exception as e:CODE
LOWIPython/core/guarded_eval.py641 except Exception:CODE
LOWIPython/core/guarded_eval.py872 except Exception:CODE
LOWIPython/core/guarded_eval.py880 except Exception:CODE
LOWIPython/core/guarded_eval.py892 except Exception:CODE
LOWIPython/core/guarded_eval.py1094 except Exception:CODE
LOWIPython/core/guarded_eval.py1242 except Exception:CODE
LOWIPython/core/page.py276 except Exception:CODE
LOWIPython/core/page.py281 except Exception:CODE
LOWIPython/core/doctb.py224 except Exception:CODE
LOWIPython/core/doctb.py270 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.py2588 print("Error detecting if completing a non-finished string :", e, '|')CODE
LOWIPython/core/completer.py2585 except Exception as e:CODE
LOWIPython/core/completer.py2594 except Exception as e:CODE
LOWIPython/core/completer.py2676 except Exception:CODE
LOWIPython/core/completer.py2683 except Exception:CODE
LOWIPython/core/completer.py1320 except Exception:CODE
LOWIPython/core/completer.py1416 except Exception as e:CODE
LOWIPython/core/completer.py1437 except Exception:CODE
LOWIPython/core/completer.py1605 except Exception:CODE
MEDIUMIPython/core/completer.py3438 print("Error in Jedi getting type of ", jm)STRING
LOWIPython/core/completer.py1194 except Exception as e:STRING
LOWIPython/core/completer.py3004 except Exception:STRING
LOWIPython/core/completer.py3021 except Exception:STRING
LOWIPython/core/completer.py3026 except Exception:STRING
LOWIPython/core/completer.py3436 except Exception:STRING
LOWIPython/core/ultratb.py483 except Exception:CODE
LOWIPython/core/ultratb.py655 except Exception:CODE
LOWIPython/core/ultratb.py770 except Exception:CODE
LOWIPython/core/display.py62 except Exception:CODE
LOWIPython/core/application.py383 except Exception:CODE
LOWIPython/core/interactiveshell.py835 except Exception:CODE
LOWIPython/core/interactiveshell.py1661 except Exception:CODE
LOWIPython/core/interactiveshell.py2283 except Exception:CODE
87 more matches not shown…
Deep Nesting141 hits · 122 pts
SeverityFileLineSnippetContext
LOWIPython/paths.py19CODE
LOWIPython/core/prefilter.py605CODE
LOWIPython/core/magic.py507CODE
LOWIPython/core/magic.py833CODE
LOWIPython/core/formatters.py457CODE
LOWIPython/core/formatters.py572CODE
LOWIPython/core/inputtransformer2.py236CODE
LOWIPython/core/inputtransformer2.py636CODE
LOWIPython/core/inputtransformer2.py681CODE
LOWIPython/core/inputtransformer2.py92CODE
LOWIPython/core/inputtransformer2.py131CODE
LOWIPython/core/inputtransformer2.py387CODE
LOWIPython/core/tbtools.py128CODE
LOWIPython/core/guarded_eval.py155CODE
LOWIPython/core/guarded_eval.py557CODE
LOWIPython/core/guarded_eval.py727CODE
LOWIPython/core/guarded_eval.py1168CODE
LOWIPython/core/guarded_eval.py1231CODE
LOWIPython/core/guarded_eval.py1317CODE
LOWIPython/core/page.py123CODE
LOWIPython/core/doctb.py339CODE
LOWIPython/core/shellapp.py318CODE
LOWIPython/core/shellapp.py386CODE
LOWIPython/core/shellapp.py459CODE
LOWIPython/core/logger.py66CODE
LOWIPython/core/completer.py1513CODE
LOWIPython/core/completer.py1154CODE
LOWIPython/core/completer.py1235CODE
LOWIPython/core/completer.py1281CODE
LOWIPython/core/completer.py2333CODE
LOWIPython/core/completer.py2523CODE
LOWIPython/core/completer.py2699CODE
LOWIPython/core/completer.py2816CODE
LOWIPython/core/completer.py2887CODE
LOWIPython/core/completer.py2927CODE
LOWIPython/core/completer.py3245CODE
LOWIPython/core/completer.py3377CODE
LOWIPython/core/completer.py3600CODE
LOWIPython/core/ultratb.py295CODE
LOWIPython/core/ultratb.py873CODE
LOWIPython/core/ultratb.py1154CODE
LOWIPython/core/display.py367CODE
LOWIPython/core/display.py885CODE
LOWIPython/core/debugger.py947CODE
LOWIPython/core/debugger.py1228CODE
LOWIPython/core/debugger.py1294CODE
LOWIPython/core/debugger.py445CODE
LOWIPython/core/application.py390CODE
LOWIPython/core/interactiveshell.py1498CODE
LOWIPython/core/interactiveshell.py1608CODE
LOWIPython/core/interactiveshell.py1630CODE
LOWIPython/core/interactiveshell.py1700CODE
LOWIPython/core/interactiveshell.py1744CODE
LOWIPython/core/interactiveshell.py1968CODE
LOWIPython/core/interactiveshell.py2219CODE
LOWIPython/core/interactiveshell.py2604CODE
LOWIPython/core/interactiveshell.py2994CODE
LOWIPython/core/interactiveshell.py3069CODE
LOWIPython/core/interactiveshell.py3541CODE
LOWIPython/core/interactiveshell.py3662CODE
81 more matches not shown…
Self-Referential Comments29 hits · 84 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.py331# Create the actual decorators for public useCOMMENT
MEDIUMIPython/core/magic.py696 # 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.py3257 # 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.py1285 # 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.py220 # Create the event loop in which to run script magicsSTRING
MEDIUMIPython/terminal/ipapp.py296 # Create an InteractiveShell instance.COMMENT
MEDIUMIPython/testing/plugin/ipdoctest.py189 # Create an Example, and add it to the list.STRING
MEDIUMtests/test_zzz_autoreload.py1038 # Create a test module with only 'foo' attributeCOMMENT
MEDIUMtests/test_zzz_autoreload.py1047 # Create a trackerCOMMENT
MEDIUMtests/test_zzz_autoreload.py945 # Create a test module with both 'foo' and 'bar' attributesCOMMENT
MEDIUMtests/test_zzz_autoreload.py962 # Create a trackerCOMMENT
MEDIUMtests/test_zzz_autoreload.py993 # Create a test moduleCOMMENT
MEDIUMtests/test_zzz_autoreload.py1010 # Create a trackerCOMMENT
MEDIUMtests/test_zzz_autoreload.py1072 # Create a test moduleCOMMENT
MEDIUMtests/test_zzz_autoreload.py1115 # Create a test moduleCOMMENT
MEDIUMtests/test_zzz_autoreload.py1158 # Create a trackerCOMMENT
MEDIUMtests/test_zzz_autoreload.py1191 # Create a trackerCOMMENT
MEDIUMtests/test_prefilter.py112 # Create a callable broken objectCOMMENT
MEDIUMtests/test_completer.py1576 # Create a subclass in __main__ (untrusted namespace)COMMENT
MEDIUMtests/test_application.py82 # Create the config file, so it tries to load it.COMMENT
MEDIUMtests/test_application.py108 # Create the config file, so it tries to load it.COMMENT
MEDIUMtests/test_history.py289 # Create the on-disk database, then release it so we can lock it below.COMMENT
MEDIUMtests/test_history.py432 # Create the database file first.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.py232 self.shell.push({'_':self._,CODE
HIGHIPython/core/displayhook.py241 self.shell.push(to_main, interactive=False)CODE
HIGHIPython/core/history.py1143 self.shell.push(to_main, interactive=False)CODE
HIGHIPython/extensions/autoreload.py844 self.shell.push({alias if alias else top_name: top_module})STRING
HIGHtests/test_page.py281 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 # "C4", # flake8-comprehensionsCOMMENT
LOWpyproject.toml441 # "UP006", #182 [*] Use `...` instead of `...` for type annotationCOMMENT
LOWsetup.py1# -*- coding: utf-8 -*-COMMENT
LOWtools/configure-git-blame-ignore-revs.sh1#!/bin/shCOMMENT
LOWIPython/__init__.py1# PYTHON_ARGCOMPLETE_OKCOMMENT
LOWIPython/__init__.py21COMMENT
LOWIPython/__init__.py41# - `embed` drags in the whole terminal / prompt_toolkit stack, by farCOMMENT
LOWIPython/__init__.py61# used from here.COMMENT
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/doctb.py181 call = theme_table[self._theme_name].format(COMMENT
LOWIPython/core/completer.py641 # prone to errors; by explicitly passing `cursor_position` we can decouple the matchersCOMMENT
LOWIPython/core/ultratb.py621 # best we can do is report the failure and move on. HereCOMMENT
LOWIPython/core/tips.py21 # [2/8/25, 23:29:05] Fernando Perez: Which is also archived here:COMMENT
LOWIPython/core/interactiveshell.py1281 #-------------------------------------------------------------------------COMMENT
LOWIPython/core/interactiveshell.py1301 # Datum: Freitag 01 Oktober 2004 04:45:34 nachmittags/abendsCOMMENT
LOWIPython/core/interactiveshell.py1321 if (user_ns is not None) or (user_module is not None):COMMENT
LOWIPython/core/interactiveshell.py1341 # To avoid keeping stale modules around (we only need the one from theCOMMENT
LOWIPython/core/interactiveshell.py1401 user_module.__dict__.setdefault('__builtin__', builtin_mod)COMMENT
LOWIPython/core/interactiveshell.py1441 # user_ns, and we sync that contents into user_ns_hidden so that theseCOMMENT
LOWIPython/core/interactiveshell.py1881 # property.__get__(self, None, cls) -> selfCOMMENT
LOWIPython/core/displayhook.py181 """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/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 "never": Never(),COMMENT
LOWIPython/terminal/shortcuts/filters.py241 #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.py81 # Note, in all conditional cases, I use True instead ofCOMMENT
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
Modern Structural Boilerplate31 hits · 32 pts
SeverityFileLineSnippetContext
LOWIPython/__init__.py68__all__ = ["start_ipython", "embed", "embed_kernel"]CODE
LOWIPython/core/hooks.py51__all__ = [CODE
LOWIPython/core/tbtools.py456 def _set_ostream(self, val) -> None: # type:ignore[no-untyped-def]CODE
LOWIPython/core/tbtools.py477 def _set_debugger_cls(self, val) -> None: # type:ignore[no-untyped-def]CODE
LOWIPython/core/tbtools.py525 def set_theme_name(self, name: str) -> None:CODE
LOWIPython/core/tbtools.py533 def set_colors(self, name: str) -> None:CODE
LOWIPython/core/_dunder_ops.py16__all__ = [CODE
LOWIPython/core/guarded_eval.py1619__all__ = [CODE
LOWIPython/core/display_functions.py11__all__ = ['display', 'clear_output', 'publish_display_data', 'update_display', 'DisplayHandle']CODE
LOWIPython/core/completer.py293__all__ = ["Completer", "IPCompleter"]CODE
LOWIPython/core/ultratb.py1201 def set_mode(self, mode: str | None = None) -> None:CODE
LOWIPython/core/display.py26__all__ = [CODE
LOWIPython/core/interactiveshell.py2448 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.py326__all__ = ["KEYBINDING_FILTERS", "filter_from_string"]CODE
LOWIPython/utils/terminal.py60def _set_term_title(title: str) -> None:CODE
LOWIPython/utils/terminal.py72def _set_term_title_xterm(title: str) -> None:CODE
LOWIPython/utils/terminal.py109 def _set_term_title(title: str) -> None:CODE
LOWIPython/utils/terminal.py114def set_term_title(title: str) -> None:CODE
LOWIPython/utils/_process_posix.py20__all__ = ["getoutput", "arg_split", "system", "check_pid"]CODE
LOWIPython/utils/ipstruct.py22__all__ = ['Struct']CODE
LOWIPython/utils/PyColorize.py27__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.py12__all__ = ['Audio', 'IFrame', 'YouTubeVideo', 'VimeoVideo', 'ScribdDocument',CODE
LOWIPython/lib/pretty.py114__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.py879 # Check if we have more than one argument to warrant extra processing:COMMENT
LOWIPython/core/guarded_eval.py197 # Check if the method comes from this trusted base classCOMMENT
LOWIPython/core/completer.py2662 # Check if first token is a known aliasCOMMENT
LOWIPython/core/tips.py117# Check if argcomplete is installed and add tip.COMMENT
LOWIPython/core/interactiveshell.py3571 # Check if the exception (or its context) is an ExceptionGroup.COMMENT
LOWIPython/core/interactiveshell.py4137 if os.path.isfile(tgt): # Read fileCODE
LOWIPython/core/interactiveshell.py635 # Check if we're in a virtualenv, and set up sys.path.STRING
LOWIPython/core/magics/basic.py657 # 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.py1039 # 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.py582 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.py1326 # Note: ideally we would just return words here and the prefixCOMMENT
LOWIPython/core/interactiveshell.py990 # but others can symlink *to* the venv Python, so we can't just use sys.executable.COMMENT
LOWIPython/core/interactiveshell.py2714 # pexpect or pipes to read from. Users can always just callCOMMENT
LOWIPython/core/magics/script.py225 # 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 Patterns9 hits · 8 pts
SeverityFileLineSnippetContext
LOWIPython/core/doctb.py105CODE
LOWIPython/core/ultratb.py505CODE
LOWIPython/core/ultratb.py1117CODE
LOWIPython/core/display.py885CODE
LOWIPython/core/display.py1134CODE
LOWIPython/core/display.py1259CODE
LOWIPython/core/interactiveshell.py2948CODE
LOWIPython/core/magic_arguments.py140CODE
LOWIPython/lib/display.py111CODE
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.py56def test_function():CODE
LOWtests/test_completer.py2133 " def my_method(self) -> str:",CODE
LOWtests/test_completer.py2145 " def my_method(self) -> str:",CODE
LOWtests/test_completer.py2157 " def my_method(self) -> str:",CODE
LOWtests/test_completer.py2169 " def my_method(self):",CODE
LOWtests/test_completer.py2255 " 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.py407 """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.py751 The purpose of this function is to guard against unwanted side-effects;STRING