content stringlengths 1 103k ⌀ | path stringlengths 8 216 | filename stringlengths 2 179 | language stringclasses 15
values | size_bytes int64 2 189k | quality_score float64 0.5 0.95 | complexity float64 0 1 | documentation_ratio float64 0 1 | repository stringclasses 5
values | stars int64 0 1k | created_date stringdate 2023-07-10 19:21:08 2025-07-09 19:11:45 | license stringclasses 4
values | is_test bool 2
classes | file_hash stringlengths 32 32 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
\n\n | .venv\Lib\site-packages\IPython\core\__pycache__\pylabtools.cpython-313.pyc | pylabtools.cpython-313.pyc | Other | 16,363 | 0.95 | 0.052863 | 0.005051 | node-utils | 952 | 2024-07-26T10:14:40.621307 | Apache-2.0 | false | 8fa1d52e142852d8a868ca24ff7fc3ef |
\n\n | .venv\Lib\site-packages\IPython\core\__pycache__\release.cpython-313.pyc | release.cpython-313.pyc | Other | 855 | 0.7 | 0.1 | 0 | python-kit | 383 | 2024-10-26T21:12:43.640307 | Apache-2.0 | false | d39c4ea64fa0326198e379e8b4c8b107 |
\n\n | .venv\Lib\site-packages\IPython\core\__pycache__\shellapp.cpython-313.pyc | shellapp.cpython-313.pyc | Other | 24,072 | 0.95 | 0.042308 | 0.008584 | python-kit | 828 | 2025-01-20T20:40:54.453969 | Apache-2.0 | false | 3b60e57784ca3541eda77f177b943737 |
\n\n | .venv\Lib\site-packages\IPython\core\__pycache__\splitinput.cpython-313.pyc | splitinput.cpython-313.pyc | Other | 4,920 | 0.95 | 0.130952 | 0.042857 | python-kit | 118 | 2024-06-20T09:12:40.862338 | GPL-3.0 | false | 83a0eb6d5a0704ba9cb6f4dba46c1201 |
\n\n | .venv\Lib\site-packages\IPython\core\__pycache__\tbtools.cpython-313.pyc | tbtools.cpython-313.pyc | Other | 20,537 | 0.8 | 0.018116 | 0.004032 | node-utils | 629 | 2025-05-22T08:18:18.287802 | GPL-3.0 | false | 2acfa9b4efc8fc220858c3ff7bc6512d |
\n\n | .venv\Lib\site-packages\IPython\core\__pycache__\tips.cpython-313.pyc | tips.cpython-313.pyc | Other | 4,160 | 0.95 | 0.142857 | 0 | awesome-app | 617 | 2024-10-23T21:38:32.336227 | Apache-2.0 | false | b14f02a35509cc97ea52a4655955cce9 |
\n\n | .venv\Lib\site-packages\IPython\core\__pycache__\ultratb.cpython-313.pyc | ultratb.cpython-313.pyc | Other | 47,227 | 0.95 | 0.050654 | 0.012844 | python-kit | 334 | 2024-02-29T05:26:30.468094 | GPL-3.0 | false | 6c22c02a900c30a691be308d4ec9843a |
\n\n | .venv\Lib\site-packages\IPython\core\__pycache__\usage.cpython-313.pyc | usage.cpython-313.pyc | Other | 13,507 | 0.95 | 0.108025 | 0.064655 | python-kit | 841 | 2024-01-10T08:12:22.653811 | MIT | false | 2a3c7be7259c557d42de40f7035fc456 |
\n\n | .venv\Lib\site-packages\IPython\core\__pycache__\__init__.cpython-313.pyc | __init__.cpython-313.pyc | Other | 187 | 0.7 | 0 | 0 | python-kit | 212 | 2025-02-05T12:57:01.642883 | Apache-2.0 | false | 109fb524c8f0e4c5d3e65a35190b1efe |
# -*- coding: utf-8 -*-\n"""\n%store magic for lightweight persistence.\n\nStores variables, aliases and macros in IPython's database.\n\nTo automatically restore stored variables at startup, add this to your\n:file:`ipython_config.py` file::\n\n c.StoreMagics.autorestore = True\n"""\n\n# Copyright (c) IPython Develop... | .venv\Lib\site-packages\IPython\extensions\storemagic.py | storemagic.py | Python | 8,168 | 0.95 | 0.152542 | 0.123711 | awesome-app | 883 | 2023-08-17T09:46:56.880759 | GPL-3.0 | false | a327c075d0c6b382877a65d7e92b6a9b |
# -*- coding: utf-8 -*-\n"""This directory is meant for IPython extensions."""\n | .venv\Lib\site-packages\IPython\extensions\__init__.py | __init__.py | Python | 78 | 0.6 | 0.5 | 0.5 | awesome-app | 592 | 2025-02-04T17:49:36.909287 | MIT | false | 23d2cb54131f0dfc5f9c5155fc142226 |
from __future__ import annotations\nimport ctypes\nimport sys\nfrom typing import Any\n\nNOT_FOUND: object = object()\n_MAX_FIELD_SEARCH_OFFSET = 50\n\nif sys.maxsize > 2**32:\n WORD_TYPE: type[ctypes.c_int32] | type[ctypes.c_int64] = ctypes.c_int64\n WORD_N_BYTES = 8\nelse:\n WORD_TYPE = ctypes.c_int32\n W... | .venv\Lib\site-packages\IPython\extensions\deduperreload\deduperreload_patching.py | deduperreload_patching.py | Python | 4,934 | 0.95 | 0.205674 | 0.007576 | node-utils | 328 | 2025-02-05T15:10:31.518008 | Apache-2.0 | false | 941f2a2085a7d42bbb8b5bc4799a8dbc |
\n\n | .venv\Lib\site-packages\IPython\extensions\deduperreload\__pycache__\deduperreload.cpython-313.pyc | deduperreload.cpython-313.pyc | Other | 32,031 | 0.95 | 0.111524 | 0.007813 | vue-tools | 531 | 2024-11-11T16:57:06.591593 | MIT | false | 8f7353913d20daebb7e952024ac23656 |
\n\n | .venv\Lib\site-packages\IPython\extensions\deduperreload\__pycache__\deduperreload_patching.cpython-313.pyc | deduperreload_patching.cpython-313.pyc | Other | 6,978 | 0.95 | 0 | 0.016393 | vue-tools | 409 | 2024-03-15T00:48:24.637713 | GPL-3.0 | false | bbc003b97d97bac95eba2c4093232670 |
\n\n | .venv\Lib\site-packages\IPython\extensions\deduperreload\__pycache__\__init__.cpython-313.pyc | __init__.cpython-313.pyc | Other | 207 | 0.7 | 0 | 0 | awesome-app | 966 | 2023-11-16T14:24:17.039862 | GPL-3.0 | false | 548983ace3279513305069152363d630 |
\n\n | .venv\Lib\site-packages\IPython\extensions\__pycache__\autoreload.cpython-313.pyc | autoreload.cpython-313.pyc | Other | 33,900 | 0.95 | 0.06747 | 0 | python-kit | 77 | 2023-10-15T03:06:28.819919 | BSD-3-Clause | false | 6eb6c1eab32116e1987cb0b00e6b6084 |
\n\n | .venv\Lib\site-packages\IPython\extensions\__pycache__\storemagic.cpython-313.pyc | storemagic.cpython-313.pyc | Other | 10,012 | 0.8 | 0.039063 | 0.072072 | awesome-app | 812 | 2023-11-23T06:42:37.757886 | MIT | false | 8b454548ca5fc19e2d3ec3daf7eaa432 |
\n\n | .venv\Lib\site-packages\IPython\extensions\__pycache__\__init__.cpython-313.pyc | __init__.cpython-313.pyc | Other | 255 | 0.7 | 0.5 | 0 | awesome-app | 651 | 2024-09-06T09:03:42.404746 | BSD-3-Clause | false | 92934fbf602fabcaa063dc01cf83e054 |
"""\nThis module contains factory functions that attempt\nto return Qt submodules from the various python Qt bindings.\n\nIt also protects against double-importing Qt with different\nbindings, which is unstable and likely to crash\n\nThis is used primarily by qt and qt_for_kernel, and shouldn't\nbe accessed directly fr... | .venv\Lib\site-packages\IPython\external\qt_loaders.py | qt_loaders.py | Python | 11,863 | 0.95 | 0.172577 | 0.099099 | python-kit | 505 | 2024-06-07T18:50:19.522209 | MIT | false | be69091ad28e28852a64d7fc3801f3d9 |
"""\nThis package contains all third-party modules bundled with IPython.\n"""\n\nfrom typing import List\n\n__all__: List[str] = []\n | .venv\Lib\site-packages\IPython\external\__init__.py | __init__.py | Python | 126 | 0.85 | 0 | 0 | python-kit | 395 | 2025-01-07T05:58:36.481624 | Apache-2.0 | false | a82fcdd726ca2549f9f365bedb8e3171 |
\n\n | .venv\Lib\site-packages\IPython\external\__pycache__\pickleshare.cpython-313.pyc | pickleshare.cpython-313.pyc | Other | 15,054 | 0.95 | 0.076923 | 0 | vue-tools | 354 | 2024-01-19T09:27:36.857973 | BSD-3-Clause | false | fb222b9fde7a2154a00b240f2b55c0bb |
\n\n | .venv\Lib\site-packages\IPython\external\__pycache__\qt_for_kernel.cpython-313.pyc | qt_for_kernel.cpython-313.pyc | Other | 3,725 | 0.95 | 0.109589 | 0.016129 | python-kit | 871 | 2023-08-19T02:14:24.878614 | BSD-3-Clause | false | 543ab316b2c4697f230b33c103ef3e0d |
\n\n | .venv\Lib\site-packages\IPython\external\__pycache__\qt_loaders.cpython-313.pyc | qt_loaders.cpython-313.pyc | Other | 14,195 | 0.95 | 0.086022 | 0.006211 | python-kit | 221 | 2024-10-02T14:30:59.096785 | BSD-3-Clause | false | ecb19f07117592b87db78f306d5049c5 |
\n\n | .venv\Lib\site-packages\IPython\external\__pycache__\__init__.cpython-313.pyc | __init__.cpython-313.pyc | Other | 392 | 0.7 | 0 | 0 | node-utils | 225 | 2024-02-08T12:34:21.597102 | Apache-2.0 | false | 528bc1e46bee9703269af17c66aa9c8a |
# -*- coding: utf-8 -*-\n"""\nProvides a reload() function that acts recursively.\n\nPython's normal :func:`python:reload` function only reloads the module that it's\npassed. The :func:`reload` function in this module also reloads everything\nimported from that module, which is useful when you're changing files deep\ni... | .venv\Lib\site-packages\IPython\lib\deepreload.py | deepreload.py | Python | 9,431 | 0.95 | 0.212903 | 0.125 | awesome-app | 530 | 2025-04-08T04:48:42.394140 | GPL-3.0 | false | 545db3f468f974c4fefd27c7a864d9db |
# coding: utf-8\n"""\nSupport for creating GUI apps and starting event loops.\n\nIPython's GUI integration allows interactive plotting and GUI usage in IPython\nsession. IPython has two different types of GUI integration:\n\n1. The terminal based IPython supports GUI event loops through Python's\n PyOS_InputHook. PyO... | .venv\Lib\site-packages\IPython\lib\guisupport.py | guisupport.py | Python | 6,300 | 0.95 | 0.23871 | 0.204545 | node-utils | 104 | 2024-02-13T21:36:35.567585 | BSD-3-Clause | false | d71a3768fbb9886f3cfc8636f1de283f |
# -*- coding: utf-8 -*-\n"""\nThe IPython lexers are now a separate package, ipython-pygments-lexers.\n\nImporting from here is deprecated and may break in the future.\n"""\n# -----------------------------------------------------------------------------\n# Copyright (c) 2013, the IPython Development Team.\n#\n# Distrib... | .venv\Lib\site-packages\IPython\lib\lexers.py | lexers.py | Python | 865 | 0.95 | 0 | 0.285714 | awesome-app | 751 | 2025-03-08T11:44:13.543044 | GPL-3.0 | false | b1d835b94ee94c984552a1420f606509 |
"""\nPython advanced pretty printer. This pretty printer is intended to\nreplace the old `pprint` python module which does not allow developers\nto provide their own pretty print callbacks.\n\nThis module is based on ruby's `prettyprint.rb` library by `Tanaka Akira`.\n\n\nExample Usage\n-------------\n\nTo directly pr... | .venv\Lib\site-packages\IPython\lib\pretty.py | pretty.py | Python | 30,721 | 0.95 | 0.263103 | 0.053885 | vue-tools | 823 | 2023-08-29T12:59:46.956271 | GPL-3.0 | false | 5f57e771d8f2b2a46887cf7ad3e63b3e |
# encoding: utf-8\n"""\nExtra capabilities for IPython\n"""\n\n# -----------------------------------------------------------------------------\n# Copyright (C) 2008-2011 The IPython Development Team\n#\n# Distributed under the terms of the BSD License. The full license is in\n# the file COPYING, distributed as par... | .venv\Lib\site-packages\IPython\lib\__init__.py | __init__.py | Python | 411 | 0.8 | 0.090909 | 0.7 | python-kit | 799 | 2024-06-13T02:34:15.063192 | GPL-3.0 | false | eaa66a9a23cd5dee96abbf7e40cf19fe |
\n\n | .venv\Lib\site-packages\IPython\lib\__pycache__\backgroundjobs.cpython-313.pyc | backgroundjobs.cpython-313.pyc | Other | 21,143 | 0.95 | 0.119342 | 0 | python-kit | 585 | 2024-08-28T15:17:05.032914 | MIT | false | bbac9cca5a2820e548394a3dcc3ec551 |
\n\n | .venv\Lib\site-packages\IPython\lib\__pycache__\clipboard.cpython-313.pyc | clipboard.cpython-313.pyc | Other | 5,010 | 0.95 | 0.018519 | 0 | react-lib | 475 | 2025-05-15T04:43:04.085825 | MIT | false | 0bc363ad11ae7ccdaf5fe30895e31957 |
\n\n | .venv\Lib\site-packages\IPython\lib\__pycache__\deepreload.cpython-313.pyc | deepreload.cpython-313.pyc | Other | 9,256 | 0.95 | 0.062992 | 0.008547 | vue-tools | 793 | 2024-11-05T05:49:37.951305 | BSD-3-Clause | false | 17200e96d6e6a43ff208889dc0be26d7 |
\n\n | .venv\Lib\site-packages\IPython\lib\__pycache__\demo.cpython-313.pyc | demo.cpython-313.pyc | Other | 29,274 | 0.95 | 0.08776 | 0.056548 | vue-tools | 876 | 2024-01-30T09:54:40.775356 | GPL-3.0 | false | 1adad0fc4ab5f3a241b32e436331dac7 |
\n\n | .venv\Lib\site-packages\IPython\lib\__pycache__\display.cpython-313.pyc | display.cpython-313.pyc | Other | 28,809 | 0.95 | 0.111399 | 0.018237 | awesome-app | 543 | 2025-02-26T16:57:02.339571 | Apache-2.0 | false | 6394a790681934f828a57bf6bf8bb85f |
\n\n | .venv\Lib\site-packages\IPython\lib\__pycache__\editorhooks.cpython-313.pyc | editorhooks.cpython-313.pyc | Other | 4,935 | 0.8 | 0.058824 | 0 | node-utils | 606 | 2023-09-17T15:42:43.366333 | Apache-2.0 | false | 27447cd062ec39ef26869a326f71c252 |
\n\n | .venv\Lib\site-packages\IPython\lib\__pycache__\guisupport.cpython-313.pyc | guisupport.cpython-313.pyc | Other | 6,012 | 0.95 | 0.172414 | 0.066667 | react-lib | 165 | 2024-12-29T05:31:05.263901 | Apache-2.0 | false | 86824d48c723f7ae82db9d293f993e45 |
\n\n | .venv\Lib\site-packages\IPython\lib\__pycache__\latextools.cpython-313.pyc | latextools.cpython-313.pyc | Other | 10,414 | 0.8 | 0.061224 | 0 | vue-tools | 313 | 2023-10-08T00:23:30.634936 | MIT | false | 214af12b2110d65aa9b28c6082b57adb |
\n\n | .venv\Lib\site-packages\IPython\lib\__pycache__\lexers.cpython-313.pyc | lexers.cpython-313.pyc | Other | 611 | 0.7 | 0 | 0 | awesome-app | 587 | 2025-01-26T11:01:18.534681 | Apache-2.0 | false | 902ee3cd3676d80965ebba01a2c1beea |
\n\n | .venv\Lib\site-packages\IPython\lib\__pycache__\pretty.cpython-313.pyc | pretty.cpython-313.pyc | Other | 44,500 | 0.95 | 0.141827 | 0 | node-utils | 584 | 2024-04-16T02:47:59.757254 | Apache-2.0 | false | 32744974f2e2d25d5cdf3098bb200ad6 |
\n\n | .venv\Lib\site-packages\IPython\lib\__pycache__\__init__.cpython-313.pyc | __init__.cpython-313.pyc | Other | 235 | 0.7 | 0.2 | 0 | node-utils | 833 | 2025-05-14T13:21:59.391285 | GPL-3.0 | false | 5570f3e0c71a4085a85fd28db3cf2d04 |
"""\nreST directive for syntax-highlighting ipython interactive sessions.\n\n"""\n\nfrom sphinx import highlighting\nfrom ipython_pygments_lexers import IPyLexer\n\n\ndef setup(app):\n """Setup as a sphinx extension."""\n\n # This is only a lexer, so adding it below to pygments appears sufficient.\n # But if s... | .venv\Lib\site-packages\IPython\sphinxext\ipython_console_highlighting.py | ipython_console_highlighting.py | Python | 895 | 0.95 | 0.107143 | 0.368421 | awesome-app | 324 | 2024-04-01T14:36:36.350329 | Apache-2.0 | false | 312cecbd7f3e1fa09304061d14d21772 |
\n\n | .venv\Lib\site-packages\IPython\sphinxext\__pycache__\custom_doctests.cpython-313.pyc | custom_doctests.cpython-313.pyc | Other | 4,806 | 0.95 | 0.04918 | 0 | react-lib | 848 | 2025-03-23T05:22:29.647061 | GPL-3.0 | true | 2a6380ea9d6607dfe5287364db3c9a4e |
\n\n | .venv\Lib\site-packages\IPython\sphinxext\__pycache__\ipython_console_highlighting.cpython-313.pyc | ipython_console_highlighting.cpython-313.pyc | Other | 769 | 0.7 | 0.111111 | 0 | awesome-app | 161 | 2024-10-30T15:09:47.939693 | BSD-3-Clause | false | 53154ee06681e48f58133571130d69d0 |
\n\n | .venv\Lib\site-packages\IPython\sphinxext\__pycache__\ipython_directive.cpython-313.pyc | ipython_directive.cpython-313.pyc | Other | 40,666 | 0.95 | 0.025105 | 0.021127 | node-utils | 502 | 2024-02-21T04:48:24.504979 | MIT | false | 482212f7a589886e8cf30de10a94e312 |
\n\n | .venv\Lib\site-packages\IPython\sphinxext\__pycache__\__init__.cpython-313.pyc | __init__.cpython-313.pyc | Other | 192 | 0.7 | 0 | 0 | python-kit | 894 | 2025-03-16T18:34:04.177056 | Apache-2.0 | false | 86419d4e4021ecebcdd3e1adb81adc4d |
import asyncio\nimport os\nimport sys\n\nfrom IPython.core.debugger import Pdb\nfrom IPython.core.completer import IPCompleter\nfrom .ptutils import IPythonPTCompleter\nfrom .shortcuts import create_ipython_shortcuts\nfrom . import embed\n\nfrom pathlib import Path\nfrom pygments.token import Token\nfrom prompt_toolkit... | .venv\Lib\site-packages\IPython\terminal\debugger.py | debugger.py | Python | 6,937 | 0.95 | 0.176796 | 0.098684 | node-utils | 240 | 2025-04-25T09:26:44.804890 | GPL-3.0 | false | 37e2f7f70005a744b8aad03ca316a796 |
"""Terminal input and output prompts."""\n\nfrom pygments.token import Token\nimport sys\n\nfrom IPython.core.displayhook import DisplayHook\n\nfrom prompt_toolkit.formatted_text import fragment_list_width, PygmentsTokens\nfrom prompt_toolkit.shortcuts import print_formatted_text\nfrom prompt_toolkit.enums import Editi... | .venv\Lib\site-packages\IPython\terminal\prompts.py | prompts.py | Python | 4,555 | 0.95 | 0.219858 | 0.042373 | python-kit | 372 | 2024-07-14T14:23:23.098969 | GPL-3.0 | false | 4fb4ea1dc789d83a75532550def2d4b7 |
"""prompt-toolkit utilities\n\nEverything in this module is a private API,\nnot to be used outside IPython.\n"""\n\n# Copyright (c) IPython Development Team.\n# Distributed under the terms of the Modified BSD License.\n\nimport unicodedata\nfrom wcwidth import wcwidth\n\nfrom IPython.core.completer import (\n provis... | .venv\Lib\site-packages\IPython\terminal\ptutils.py | ptutils.py | Python | 8,067 | 0.95 | 0.169565 | 0.084211 | python-kit | 527 | 2024-10-25T04:03:43.554597 | MIT | false | 7c14e44dd794a144e64be59f9d7ac4c8 |
"""\nInputhook for running the original asyncio event loop while we're waiting for\ninput.\n\nBy default, in IPython, we run the prompt with a different asyncio event loop,\nbecause otherwise we risk that people are freezing the prompt by scheduling bad\ncoroutines. E.g., a coroutine that does a while/true and never yi... | .venv\Lib\site-packages\IPython\terminal\pt_inputhooks\asyncio.py | asyncio.py | Python | 1,271 | 0.95 | 0.325 | 0.137931 | node-utils | 576 | 2024-04-08T21:06:59.213773 | MIT | false | 0bb992dce0d6bdb10fa5f9255e402797 |
"""GLUT Input hook for interactive use with prompt_toolkit\n"""\n\n\n# GLUT is quite an old library and it is difficult to ensure proper\n# integration within IPython since original GLUT does not allow to handle\n# events one by one. Instead, it requires for the mainloop to be entered\n# and never returned (there is no... | .venv\Lib\site-packages\IPython\terminal\pt_inputhooks\glut.py | glut.py | Python | 4,999 | 0.95 | 0.185714 | 0.355372 | vue-tools | 865 | 2023-07-29T21:43:07.739848 | BSD-3-Clause | false | 7a097f2ac6626eb7ded6f2c9f121eff9 |
"""prompt_toolkit input hook for GTK 3"""\n\nfrom gi.repository import Gtk, GLib\n\n\ndef _main_quit(*args, **kwargs):\n Gtk.main_quit()\n return False\n\n\ndef inputhook(context):\n GLib.io_add_watch(context.fileno(), GLib.PRIORITY_DEFAULT, GLib.IO_IN, _main_quit)\n Gtk.main()\n | .venv\Lib\site-packages\IPython\terminal\pt_inputhooks\gtk3.py | gtk3.py | Python | 279 | 0.85 | 0.230769 | 0 | vue-tools | 611 | 2025-07-03T18:15:12.477480 | BSD-3-Clause | false | ac932eaf16d991a2fbd9f0c18397fc26 |
"""\nprompt_toolkit input hook for GTK 4.\n"""\n\nfrom gi.repository import GLib\n\n\nclass _InputHook:\n def __init__(self, context):\n self._quit = False\n GLib.io_add_watch(\n context.fileno(), GLib.PRIORITY_DEFAULT, GLib.IO_IN, self.quit\n )\n\n def quit(self, *args, **kwargs):... | .venv\Lib\site-packages\IPython\terminal\pt_inputhooks\gtk4.py | gtk4.py | Python | 557 | 0.85 | 0.259259 | 0 | awesome-app | 722 | 2024-11-01T20:22:57.367260 | BSD-3-Clause | false | d087594f1893eda9a751732b51822ac4 |
"""Inputhook for OS X\n\nCalls NSApp / CoreFoundation APIs via ctypes.\n"""\n\n# obj-c boilerplate from appnope, used under BSD 2-clause\n\nimport ctypes\nimport ctypes.util\nfrom threading import Event\n\nobjc = ctypes.cdll.LoadLibrary(ctypes.util.find_library("objc")) # type: ignore\n\nvoid_p = ctypes.c_void_p\n\nob... | .venv\Lib\site-packages\IPython\terminal\pt_inputhooks\osx.py | osx.py | Python | 4,448 | 0.95 | 0.081633 | 0.034783 | awesome-app | 385 | 2025-07-06T14:58:51.756330 | MIT | false | cf7b031b4badd1ba02435d5d252de5c3 |
"""Enable pyglet to be used interactively with prompt_toolkit"""\n\nimport sys\nimport time\nfrom timeit import default_timer as clock\nimport pyglet\n\n# On linux only, window.flip() has a bug that causes an AttributeError on\n# window close. For details, see:\n# http://groups.google.com/group/pyglet-users/browse_thr... | .venv\Lib\site-packages\IPython\terminal\pt_inputhooks\pyglet.py | pyglet.py | Python | 2,371 | 0.95 | 0.208955 | 0.327586 | vue-tools | 201 | 2024-09-09T02:27:43.901388 | BSD-3-Clause | false | 714e01595189e9352e3cb34398653d6d |
"""Enable wxPython to be used interactively in prompt_toolkit\n"""\n\nimport sys\nimport signal\nimport time\nfrom timeit import default_timer as clock\nimport wx\n\n\ndef ignore_keyboardinterrupts(func):\n """Decorator which causes KeyboardInterrupt exceptions to be ignored during\n execution of the decorated fu... | .venv\Lib\site-packages\IPython\terminal\pt_inputhooks\wx.py | wx.py | Python | 7,126 | 0.95 | 0.200913 | 0.198864 | awesome-app | 258 | 2024-04-04T06:40:16.972197 | BSD-3-Clause | false | 277f8f23302e80c6a4a98d3edfe9dab9 |
import importlib\nimport os\nfrom typing import Tuple, Callable\n\naliases = {\n 'qt4': 'qt',\n 'gtk2': 'gtk',\n}\n\nbackends = [\n "qt",\n "qt5",\n "qt6",\n "gtk",\n "gtk2",\n "gtk3",\n "gtk4",\n "tk",\n "wx",\n "pyglet",\n "glut",\n "osx",\n "asyncio",\n]\n\nregistered = {... | .venv\Lib\site-packages\IPython\terminal\pt_inputhooks\__init__.py | __init__.py | Python | 3,606 | 0.95 | 0.18705 | 0.017699 | react-lib | 639 | 2025-06-12T15:35:06.476974 | GPL-3.0 | false | 9021ca15d34a69f5aeb6acd509ba908d |
\n\n | .venv\Lib\site-packages\IPython\terminal\pt_inputhooks\__pycache__\asyncio.cpython-313.pyc | asyncio.cpython-313.pyc | Other | 1,246 | 0.85 | 0.34375 | 0 | awesome-app | 117 | 2023-12-23T05:04:24.052685 | Apache-2.0 | false | e9086b95a97637de6458d61da4bb2369 |
\n\n | .venv\Lib\site-packages\IPython\terminal\pt_inputhooks\__pycache__\glut.cpython-313.pyc | glut.cpython-313.pyc | Other | 4,290 | 0.8 | 0.040816 | 0 | node-utils | 882 | 2024-04-04T10:04:33.690299 | MIT | false | 0b84793679a3d4327086dc446adc4f58 |
\n\n | .venv\Lib\site-packages\IPython\terminal\pt_inputhooks\__pycache__\gtk.cpython-313.pyc | gtk.cpython-313.pyc | Other | 1,257 | 0.7 | 0.1 | 0 | node-utils | 360 | 2023-09-26T00:38:57.772460 | MIT | false | 9264ca5d5523a37a739996bc998d3709 |
\n\n | .venv\Lib\site-packages\IPython\terminal\pt_inputhooks\__pycache__\gtk3.cpython-313.pyc | gtk3.cpython-313.pyc | Other | 899 | 0.8 | 0.111111 | 0 | awesome-app | 172 | 2024-09-06T11:39:09.391424 | GPL-3.0 | false | 22b65d1243ceb013ca04879e5b68f05d |
\n\n | .venv\Lib\site-packages\IPython\terminal\pt_inputhooks\__pycache__\gtk4.cpython-313.pyc | gtk4.cpython-313.pyc | Other | 1,662 | 0.8 | 0.071429 | 0 | react-lib | 491 | 2024-08-04T20:26:59.884663 | BSD-3-Clause | false | fcb4a5e5c4b06f18a5ea41364c874918 |
\n\n | .venv\Lib\site-packages\IPython\terminal\pt_inputhooks\__pycache__\osx.cpython-313.pyc | osx.cpython-313.pyc | Other | 5,691 | 0.8 | 0.050847 | 0 | node-utils | 950 | 2024-01-08T03:36:33.716773 | GPL-3.0 | false | fbac7d84ff966068d00d45a386fe3e5c |
\n\n | .venv\Lib\site-packages\IPython\terminal\pt_inputhooks\__pycache__\pyglet.cpython-313.pyc | pyglet.cpython-313.pyc | Other | 2,292 | 0.8 | 0.030303 | 0 | python-kit | 594 | 2025-04-08T23:21:53.817499 | BSD-3-Clause | false | ac84a4a28abab2a9bb0f7a9a291ade1c |
\n\n | .venv\Lib\site-packages\IPython\terminal\pt_inputhooks\__pycache__\qt.cpython-313.pyc | qt.cpython-313.pyc | Other | 4,054 | 0.95 | 0 | 0.051282 | vue-tools | 760 | 2024-05-09T03:23:00.102261 | MIT | false | 5d79e285c36f8d1d0f98cdcdb0d60639 |
\n\n | .venv\Lib\site-packages\IPython\terminal\pt_inputhooks\__pycache__\tk.cpython-313.pyc | tk.cpython-313.pyc | Other | 2,926 | 0.8 | 0.151515 | 0 | awesome-app | 273 | 2025-02-24T18:59:46.727240 | BSD-3-Clause | false | 7909c042c1fb95c57820ba407a072261 |
\n\n | .venv\Lib\site-packages\IPython\terminal\pt_inputhooks\__pycache__\wx.cpython-313.pyc | wx.cpython-313.pyc | Other | 8,660 | 0.95 | 0.071429 | 0 | node-utils | 569 | 2024-04-03T10:22:56.739025 | GPL-3.0 | false | eea4b102ac3b204bd695502d3fe85e04 |
\n\n | .venv\Lib\site-packages\IPython\terminal\pt_inputhooks\__pycache__\__init__.cpython-313.pyc | __init__.cpython-313.pyc | Other | 4,556 | 0.95 | 0.095238 | 0 | awesome-app | 657 | 2023-11-01T01:26:40.708904 | Apache-2.0 | false | cba0963e5b619366f05b0e715f27e110 |
"""\nUtilities function for keybinding with prompt toolkit.\n\nThis will be bound to specific key press and filter modes,\nlike whether we are in edit mode, and whether the completer is open.\n"""\n\nimport re\nfrom prompt_toolkit.key_binding import KeyPressEvent\n\n\ndef parenthesis(event: KeyPressEvent):\n """Auto... | .venv\Lib\site-packages\IPython\terminal\shortcuts\auto_match.py | auto_match.py | Python | 3,066 | 0.85 | 0.161905 | 0 | vue-tools | 456 | 2025-02-09T12:06:39.873846 | MIT | false | ec65eb25825a9c3819397e72bb1147f1 |
import re\nimport asyncio\nimport tokenize\nfrom io import StringIO\nfrom typing import Callable, List, Optional, Union, Generator, Tuple, ClassVar, Any\nimport warnings\n\nimport prompt_toolkit\nfrom prompt_toolkit.buffer import Buffer\nfrom prompt_toolkit.key_binding import KeyPressEvent\nfrom prompt_toolkit.key_bind... | .venv\Lib\site-packages\IPython\terminal\shortcuts\auto_suggest.py | auto_suggest.py | Python | 23,803 | 0.95 | 0.187215 | 0.043396 | node-utils | 504 | 2024-10-01T05:47:56.237937 | GPL-3.0 | false | 9d3a6e53b5271a2b9bc306c1e422ef53 |
"""\nModule to define and register Terminal IPython shortcuts with\n:mod:`prompt_toolkit`\n"""\n\n# Copyright (c) IPython Development Team.\n# Distributed under the terms of the Modified BSD License.\n\nimport os\nimport signal\nimport sys\nimport warnings\nfrom dataclasses import dataclass\nfrom typing import Callable... | .venv\Lib\site-packages\IPython\terminal\shortcuts\__init__.py | __init__.py | Python | 18,563 | 0.95 | 0.106918 | 0.050542 | node-utils | 176 | 2025-05-03T12:33:58.238157 | GPL-3.0 | false | b3f2a1d27d1540b6392d6f450e8d3094 |
\n\n | .venv\Lib\site-packages\IPython\terminal\shortcuts\__pycache__\auto_match.cpython-313.pyc | auto_match.cpython-313.pyc | Other | 4,848 | 0.95 | 0.074074 | 0 | node-utils | 515 | 2024-10-15T14:16:03.412161 | Apache-2.0 | false | 03bb0524818e2e16cc9fd45f2ed09e4e |
\n\n | .venv\Lib\site-packages\IPython\terminal\shortcuts\__pycache__\auto_suggest.cpython-313.pyc | auto_suggest.cpython-313.pyc | Other | 30,033 | 0.95 | 0.029605 | 0.014981 | node-utils | 753 | 2025-05-27T21:08:19.899421 | MIT | false | be047a5071aea2d9159ba619b3045290 |
\n\n | .venv\Lib\site-packages\IPython\terminal\shortcuts\__pycache__\filters.cpython-313.pyc | filters.cpython-313.pyc | Other | 13,881 | 0.95 | 0.009709 | 0 | node-utils | 554 | 2025-05-24T21:02:09.982081 | MIT | false | e172544d53745f8cd03e3bcc2c77c3a1 |
\n\n | .venv\Lib\site-packages\IPython\terminal\shortcuts\__pycache__\__init__.cpython-313.pyc | __init__.cpython-313.pyc | Other | 22,266 | 0.95 | 0.02451 | 0 | python-kit | 532 | 2023-08-30T22:52:20.220331 | GPL-3.0 | false | df4ab9c940a506736c988f6bd92bf56d |
\n\n | .venv\Lib\site-packages\IPython\terminal\__pycache__\debugger.cpython-313.pyc | debugger.cpython-313.pyc | Other | 9,171 | 0.8 | 0.025316 | 0.027397 | node-utils | 470 | 2023-07-18T19:05:04.197525 | MIT | false | d5a243c7a1c4b6fd5d05313e17d6fb7b |
\n\n | .venv\Lib\site-packages\IPython\terminal\__pycache__\embed.cpython-313.pyc | embed.cpython-313.pyc | Other | 17,454 | 0.95 | 0.087719 | 0.005051 | react-lib | 412 | 2024-10-25T13:20:24.172396 | BSD-3-Clause | false | 7071e0fe34aca8a63b896c825885830c |
\n\n | .venv\Lib\site-packages\IPython\terminal\__pycache__\interactiveshell.cpython-313.pyc | interactiveshell.cpython-313.pyc | Other | 47,393 | 0.95 | 0.071121 | 0.009456 | awesome-app | 138 | 2024-09-08T00:04:31.297303 | MIT | false | 840cc87155a6389b1671864331db09f2 |
\n\n | .venv\Lib\site-packages\IPython\terminal\__pycache__\ipapp.cpython-313.pyc | ipapp.cpython-313.pyc | Other | 14,455 | 0.8 | 0.072 | 0.008547 | awesome-app | 259 | 2025-01-14T01:10:25.921138 | Apache-2.0 | false | 71df078d283788b5415256f9768a4cd5 |
\n\n | .venv\Lib\site-packages\IPython\terminal\__pycache__\magics.cpython-313.pyc | magics.cpython-313.pyc | Other | 9,796 | 0.8 | 0.038217 | 0 | node-utils | 612 | 2023-11-13T07:15:23.576239 | MIT | false | 3ab1ec4389f79b3a91db5afa4b12e3e9 |
\n\n | .venv\Lib\site-packages\IPython\terminal\__pycache__\prompts.cpython-313.pyc | prompts.cpython-313.pyc | Other | 8,333 | 0.95 | 0 | 0 | node-utils | 75 | 2024-05-16T23:17:31.947101 | GPL-3.0 | false | 3dbc234aebddc8659ff463807faa9c1c |
\n\n | .venv\Lib\site-packages\IPython\terminal\__pycache__\ptutils.cpython-313.pyc | ptutils.cpython-313.pyc | Other | 9,877 | 0.95 | 0.017699 | 0 | react-lib | 717 | 2025-03-13T10:44:03.194121 | Apache-2.0 | false | 3a521c07985567f3e5d6a92326b01758 |
\n\n | .venv\Lib\site-packages\IPython\terminal\__pycache__\__init__.cpython-313.pyc | __init__.cpython-313.pyc | Other | 191 | 0.7 | 0 | 0 | python-kit | 808 | 2025-05-22T19:39:54.369249 | Apache-2.0 | false | 20704c169a73d3a5af1bf6a2641b6caf |
import os\nimport shutil\nimport sys\nimport tempfile\nfrom importlib import import_module\n\nimport pytest\n\n# Expose the unittest-driven decorators\nfrom .ipunittest import ipdoctest, ipdocstring\n\ndef skipif(skip_condition, msg=None):\n """Make function raise SkipTest exception if skip_condition is true\n\n ... | .venv\Lib\site-packages\IPython\testing\decorators.py | decorators.py | Python | 4,430 | 0.95 | 0.182432 | 0.141593 | awesome-app | 567 | 2024-08-11T12:59:06.508214 | BSD-3-Clause | true | 31d9698adde1bf6a4553e405cbe9d0f4 |
"""Global IPython app to support test running.\n\nWe must start our own ipython object and heavily muck with it so that all the\nmodifications IPython makes to system behavior don't send the doctest machinery\ninto a fit. This code should be considered a gross hack, but it gets the job\ndone.\n"""\n\n# Copyright (c) I... | .venv\Lib\site-packages\IPython\testing\globalipapp.py | globalipapp.py | Python | 3,948 | 0.95 | 0.131579 | 0.309524 | python-kit | 16 | 2023-08-08T05:43:07.870644 | Apache-2.0 | true | 6e71fdb689758487e1ebfea97cdbfdcd |
"""Decorators marks that a doctest should be skipped.\n\nThe IPython.testing.decorators module triggers various extra imports, including\nnumpy and sympy if they're present. Since this decorator is used in core parts\nof IPython, it's in a separate module so that running IPython doesn't trigger\nthose imports."""\n\n# ... | .venv\Lib\site-packages\IPython\testing\skipdoctest.py | skipdoctest.py | Python | 717 | 0.95 | 0.368421 | 0.142857 | react-lib | 836 | 2023-11-24T21:17:06.191502 | BSD-3-Clause | true | 3540711af58a730a414efa4e8e66fc21 |
"""Testing support (tools to test IPython itself).\n"""\n\n#-----------------------------------------------------------------------------\n# Copyright (C) 2009-2011 The IPython Development Team\n#\n# Distributed under the terms of the BSD License. The full license is in\n# the file COPYING, distributed as part of ... | .venv\Lib\site-packages\IPython\testing\__init__.py | __init__.py | Python | 784 | 0.95 | 0 | 0.666667 | react-lib | 345 | 2024-02-04T12:43:13.554241 | Apache-2.0 | true | 722ac16e04858cd6f12a1c41061cf566 |
"""Simple example using doctests.\n\nThis file just contains doctests both using plain python and IPython prompts.\nAll tests should be loaded by nose.\n"""\n\nimport os\n\n\ndef pyfunc():\n """Some pure python tests...\n\n >>> pyfunc()\n 'pyfunc'\n\n >>> import os\n\n >>> 2+3\n 5\n\n >>> for i in ... | .venv\Lib\site-packages\IPython\testing\plugin\dtexample.py | dtexample.py | Python | 2,921 | 0.95 | 0.095808 | 0.034783 | python-kit | 367 | 2025-04-15T03:13:29.555379 | GPL-3.0 | true | 7eaf930e8855aa596ab9a1d9d747d7df |
"""Nose Plugin that supports IPython doctests.\n\nLimitations:\n\n- When generating examples for use as doctests, make sure that you have\n pretty-printing OFF. This can be done either by setting the\n ``PlainTextFormatter.pprint`` option in your configuration file to False, or\n by interactively disabling it with... | .venv\Lib\site-packages\IPython\testing\plugin\ipdoctest.py | ipdoctest.py | Python | 11,881 | 0.95 | 0.150502 | 0.235043 | python-kit | 527 | 2024-01-20T09:35:24.645345 | MIT | true | 201c7f0236c8619724029523625517bd |
"""Simple example using doctests.\n\nThis file just contains doctests both using plain python and IPython prompts.\nAll tests should be loaded by Pytest.\n"""\n\n\ndef pyfunc():\n """Some pure python tests...\n\n >>> pyfunc()\n 'pyfunc'\n\n >>> import os\n\n >>> 2+3\n 5\n\n >>> for i in range(3):\n... | .venv\Lib\site-packages\IPython\testing\plugin\simple.py | simple.py | Python | 727 | 0.85 | 0.088889 | 0 | python-kit | 646 | 2025-01-05T22:28:39.326834 | GPL-3.0 | true | 41a2ea0aa50547fcb209923dea66bfc8 |
x = 1\nprint("x is:", x)\n | .venv\Lib\site-packages\IPython\testing\plugin\simplevars.py | simplevars.py | Python | 24 | 0.5 | 0 | 0 | node-utils | 280 | 2024-01-15T03:35:48.418159 | Apache-2.0 | true | 5edd8c95466e000ac9c2a9fb31c81132 |
=======================\n Combo testing example\n=======================\n\nThis is a simple example that mixes ipython doctests::\n\n In [1]: import code\n\n In [2]: 2**12\n Out[2]: 4096\n\nwith command-line example information that does *not* get executed::\n\n $ mpirun -n 4 ipengine --controller-port=100... | .venv\Lib\site-packages\IPython\testing\plugin\test_combo.txt | test_combo.txt | Other | 923 | 0.95 | 0.027778 | 0.08 | awesome-app | 443 | 2024-11-14T14:28:04.893720 | Apache-2.0 | true | 24c5983ae106ab4dd2348bc3ac0b95b2 |
=====================================\n Tests in example form - pure python\n=====================================\n\nThis file contains doctest examples embedded as code blocks, using normal\nPython prompts. See the accompanying file for similar examples using IPython\nprompts (you can't mix both types within one fil... | .venv\Lib\site-packages\IPython\testing\plugin\test_example.txt | test_example.txt | Other | 730 | 0.7 | 0.041667 | 0 | python-kit | 524 | 2024-12-16T11:35:17.399847 | MIT | true | 5ed6e05370d8cee9e332dcd284ff8282 |
=================================\n Tests in example form - IPython\n=================================\n\nYou can write text files with examples that use IPython prompts (as long as you\nuse the nose ipython doctest plugin), but you can not mix and match prompt\nstyles in a single file. That is, you either use all ``>... | .venv\Lib\site-packages\IPython\testing\plugin\test_exampleip.txt | test_exampleip.txt | Other | 814 | 0.7 | 0 | 0 | react-lib | 569 | 2025-03-24T04:44:32.883623 | MIT | true | d28dcdce0933b1045a8dcdacfc545319 |
"""Tests for the ipdoctest machinery itself.\n\nNote: in a file named test_X, functions whose only test is their docstring (as\na doctest) and which have no test functionality of their own, should be called\n'doctest_foo' instead of 'test_foo', otherwise they get double-counted (the\nempty function call is counted as a... | .venv\Lib\site-packages\IPython\testing\plugin\test_ipdoctest.py | test_ipdoctest.py | Python | 1,907 | 0.95 | 0.141304 | 0 | awesome-app | 646 | 2024-05-18T23:21:21.479091 | Apache-2.0 | true | 75d03012dce819e31097a3e92a0f705e |
"""Some simple tests for the plugin while running scripts.\n"""\n# Module imports\n# Std lib\nimport inspect\n\n# Our own\n\n#-----------------------------------------------------------------------------\n# Testing functions\n\ndef test_trivial():\n """A trivial passing test."""\n pass\n\ndef doctest_run():\n ... | .venv\Lib\site-packages\IPython\testing\plugin\test_refs.py | test_refs.py | Python | 715 | 0.95 | 0.153846 | 0.172414 | node-utils | 109 | 2025-03-28T03:54:09.172541 | Apache-2.0 | true | b26390f79728476442c08b518f6fe17a |
\n\n | .venv\Lib\site-packages\IPython\testing\plugin\__pycache__\dtexample.cpython-313.pyc | dtexample.cpython-313.pyc | Other | 3,231 | 0.95 | 0.064748 | 0.040404 | awesome-app | 293 | 2025-03-13T09:05:00.256315 | GPL-3.0 | true | 1e7d0bcbd6474d7c75bd29a6a46aff82 |
\n\n | .venv\Lib\site-packages\IPython\testing\plugin\__pycache__\ipdoctest.cpython-313.pyc | ipdoctest.cpython-313.pyc | Other | 11,784 | 0.95 | 0.07362 | 0.027027 | python-kit | 875 | 2024-07-23T09:53:33.964940 | MIT | true | 13fd3a0f28af9d18778346ba8a45fcbb |
\n\n | .venv\Lib\site-packages\IPython\testing\plugin\__pycache__\pytest_ipdoctest.cpython-313.pyc | pytest_ipdoctest.cpython-313.pyc | Other | 38,902 | 0.95 | 0.021798 | 0.011561 | vue-tools | 778 | 2025-04-21T03:46:46.584378 | GPL-3.0 | true | 23d1979990f58c89b02ad45e867193fc |
\n\n | .venv\Lib\site-packages\IPython\testing\plugin\__pycache__\setup.cpython-313.pyc | setup.cpython-313.pyc | Other | 665 | 0.8 | 0 | 0 | python-kit | 598 | 2025-02-24T01:49:05.030894 | Apache-2.0 | true | 9ca9c258381b3a3cc90933472b61b937 |
\n\n | .venv\Lib\site-packages\IPython\testing\plugin\__pycache__\simple.cpython-313.pyc | simple.cpython-313.pyc | Other | 967 | 0.85 | 0.054054 | 0 | python-kit | 93 | 2023-10-14T12:07:54.070431 | BSD-3-Clause | true | 7139130cb72f8309d8855c71cf24c961 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.