input
stringlengths
28
198k
output
stringlengths
3
71k
file
stringlengths
19
330
input_tokens
int64
5
159k
output_tokens
int64
3
9.07k
__index_level_0__
int64
2
449k
LOAD_CONST 'aaa' LOAD_CONST 'bbbccc' BUILD_LIST STORE_NAME a LOAD_CONST ('lllmmm', 'nnn') STORE_NAME b LOAD_CONST <code object f at 0x7fab82363ed0, file "f.py", line 6> LOAD_CONST 'f' MAKE_FUNCTION STORE_NAME f LOAD_NAME print LOAD_CONST 'abcdef' LOAD_CONST 'ghi' CALL_FUNCTION POP_TOP LOAD_CONST None RETURN_VALUE L...
a = ["aaa", "bbb" "ccc"] b = ("lll" "mmm", "nnn") def f(): a = ["aaa", "bbb" "ccc"] return a print("abc" "def", "ghi")
data/flake8-no-implicit-concat-0.3.5/tests/run_flake8/multiline.py
126
70
387,809
LOAD_CONST 0 LOAD_CONST ('current_audit_info',) IMPORT_NAME prowler.providers.aws.lib.audit_info.audit_info IMPORT_FROM current_audit_info STORE_NAME current_audit_info POP_TOP LOAD_CONST 0 LOAD_CONST ('VPC',) IMPORT_NAME prowler.providers.aws.services.vpc.vpc_service IMPORT_FROM VPC STORE_NAME VPC POP_TOP LOAD_NAME ...
from prowler.providers.aws.lib.audit_info.audit_info import current_audit_info from prowler.providers.aws.services.vpc.vpc_service import VPC vpc_client = VPC(current_audit_info)
data/prowler-3.14.0/prowler/providers/aws/services/vpc/vpc_client.py
123
70
183,004
LOAD_CONST 'DEPRECATED - This module is kept here only as a backward compatibility shim\nfor the old ufoLib.pointPen module, which was moved to fontTools.pens.pointPen.\nPlease use the latter instead.\n' STORE_NAME __doc__ LOAD_CONST 0 LOAD_CONST ('*',) IMPORT_NAME fontTools.pens.pointPen IMPORT_STAR LOAD_CONST None R...
"""DEPRECATED - This module is kept here only as a backward compatibility shim for the old ufoLib.pointPen module, which was moved to fontTools.pens.pointPen. Please use the latter instead. """ from fontTools.pens.pointPen import *
data/fonttools-4.49.0/Lib/fontTools/ufoLib/pointPen.py
91
70
334,479
LOAD_CONST 0 LOAD_CONST ('Optional', 'Any') IMPORT_NAME typing IMPORT_FROM Optional STORE_NAME Optional IMPORT_FROM Any STORE_NAME Any POP_TOP LOAD_NAME Any LOAD_NAME Optional LOAD_NAME str BINARY_SUBSCR LOAD_NAME bool LOAD_CONST ('self', 'channel', 'return') BUILD_CONST_KEY_MAP LOAD_CONST <code object _can_say at 0x7...
from typing import Optional, Any def _can_say(self: Any, channel: Optional[str]) -> bool: return ( hasattr(self, "client") and self.client is not None and (channel or self.channel) is not None )
data/slack_bolt-1.18.1/slack_bolt/context/say/internals.py
166
70
171,722
LOAD_CONST 'The errors of Epson integration.' STORE_NAME __doc__ LOAD_CONST 0 LOAD_CONST ('exceptions',) IMPORT_NAME homeassistant IMPORT_FROM exceptions STORE_NAME exceptions POP_TOP LOAD_BUILD_CLASS LOAD_CONST <code object CannotConnect at 0x7fab81f874b0, file "f.py", line 6> LOAD_CONST 'CannotConnect' MAKE_FUNCTIO...
"""The errors of Epson integration.""" from homeassistant import exceptions class CannotConnect(exceptions.HomeAssistantError): """Error to indicate we cannot connect.""" class PoweredOff(exceptions.HomeAssistantError): """Error to indicate projector is off."""
data/homeassistant-2024.2.2/homeassistant/components/epson/exceptions.py
273
70
296,958
LOAD_CONST 0 LOAD_CONST ('Plugin',) IMPORT_NAME flake8_plugin_utils IMPORT_FROM Plugin STORE_NAME Plugin POP_TOP LOAD_CONST 1 LOAD_CONST ('__version__',) IMPORT_NAME IMPORT_FROM __version__ STORE_NAME __version__ POP_TOP LOAD_CONST 1 LOAD_CONST ('BreakpointVisitor',) IMPORT_NAME visitors IMPORT_FROM BreakpointVisitor...
from flake8_plugin_utils import Plugin from . import __version__ from .visitors import BreakpointVisitor class BreakpointPlugin(Plugin): name = "flake8-breakpoint" version = __version__ visitors = [BreakpointVisitor]
data/flake8-breakpoint-1.1.0/flake8_breakpoint/plugin.py
219
70
244,098
LOAD_CONST 0 LOAD_CONST ('ExampleTitleSortKey',) IMPORT_NAME sphinx_gallery.sorting IMPORT_FROM ExampleTitleSortKey STORE_NAME ExampleTitleSortKey POP_TOP LOAD_BUILD_CLASS LOAD_CONST <code object CustomSortKey at 0x7fab8026cc00, file "f.py", line 4> LOAD_CONST 'CustomSortKey' MAKE_FUNCTION LOAD_CONST 'CustomSortKey' L...
from sphinx_gallery.sorting import ExampleTitleSortKey class CustomSortKey(ExampleTitleSortKey): def __call__(self, filename): return ( "" if filename == "basic.py" else super().__call__(filename) # goes first )
data/mplcursors-0.5.3/doc/source/_local_ext.py
244
70
223,067
LOAD_CONST 0 LOAD_CONST ('Enum',) IMPORT_NAME enum IMPORT_FROM Enum STORE_NAME Enum POP_TOP LOAD_BUILD_CLASS LOAD_CONST <code object EnrollmentState at 0x7fab70027420, file "f.py", line 4> LOAD_CONST 'EnrollmentState' MAKE_FUNCTION LOAD_CONST 'EnrollmentState' LOAD_NAME str LOAD_NAME Enum CALL_FUNCTION STORE_NAME Enro...
from enum import Enum class EnrollmentState(str, Enum): Unknown = ("unknown",) Enrolled = ("enrolled",) PendingReset = ("pendingReset",) Failed = ("failed",) NotContacted = ("notContacted",)
data/msgraph-sdk-1.1.0/msgraph/generated/models/enrollment_state.py
188
70
261,101
LOAD_CONST 0 LOAD_CONST ('*',) IMPORT_NAME azure.cli.core.aaz IMPORT_STAR LOAD_NAME register_command_group LOAD_CONST 'storage' CALL_FUNCTION LOAD_BUILD_CLASS LOAD_CONST <code object __CMDGroup at 0x7fab41503810, file "f.py", line 4> LOAD_CONST '__CMDGroup' MAKE_FUNCTION LOAD_CONST '__CMDGroup' LOAD_NAME AAZCommandG...
from azure.cli.core.aaz import * @register_command_group( "storage", ) class __CMDGroup(AAZCommandGroup): """Manage Azure Cloud Storage resources.""" pass __all__ = ["__CMDGroup"]
data/azure-cli-2.57.0/azure/cli/command_modules/storage/aaz/latest/storage/__cmd_group.py
180
70
374,666
LOAD_CONST 1 LOAD_CONST ('State',) IMPORT_NAME state IMPORT_FROM State STORE_NAME State POP_TOP LOAD_CONST 1 LOAD_CONST ('StateMachine',) IMPORT_NAME statemachine IMPORT_FROM StateMachine STORE_NAME StateMachine POP_TOP LOAD_CONST 'Fernando Macedo' STORE_NAME __author__ LOAD_CONST 'fgmacedo@gmail.com' STORE_NAME __e...
from .state import State from .statemachine import StateMachine __author__ = """Fernando Macedo""" __email__ = "fgmacedo@gmail.com" __version__ = "2.1.2" __all__ = ["StateMachine", "State"]
data/python_statemachine-2.1.2/statemachine/__init__.py
121
70
384,411
LOAD_CONST 1 LOAD_CONST ('init', 'deinit', 'reinit', 'colorama_text', 'just_fix_windows_console') IMPORT_NAME initialise IMPORT_FROM init STORE_NAME init IMPORT_FROM deinit STORE_NAME deinit IMPORT_FROM reinit STORE_NAME reinit IMPORT_FROM colorama_text STORE_NAME colorama_text IMPORT_FROM just_fix_windows_console STOR...
from .initialise import init, deinit, reinit, colorama_text, just_fix_windows_console from .ansi import Fore, Back, Style, Cursor from .ansitowin32 import AnsiToWin32 __version__ = "0.4.6"
data/pigar-2.1.3/pigar/_vendor/pip/_vendor/colorama/__init__.py
203
70
241,380
LOAD_CONST '_dict example.' STORE_NAME __doc__ LOAD_CONST 0 LOAD_CONST None IMPORT_NAME collections STORE_NAME collections LOAD_NAME collections LOAD_METHOD OrderedDict LOAD_CONST 'x' LOAD_NAME collections LOAD_METHOD OrderedDict LOAD_CONST ('a0', 0) LOAD_CONST ('a1', 1) LOAD_CONST ('a2', 42) LOAD_CONST ('a3', -17) ...
"""_dict example.""" import collections DATA = collections.OrderedDict( [("x", collections.OrderedDict([("a0", 0), ("a1", 1), ("a2", 42), ("a3", -17)]))] )
data/anyconfig-0.14.0/tests/res/1/loaders/toml.toml/20/e/200_simple_map.toml.py
107
70
390,482
LOAD_CONST '\nSpacy contains hidden imports and data files which are needed to import it\n' STORE_NAME __doc__ LOAD_CONST 0 LOAD_CONST ('collect_data_files', 'collect_submodules') IMPORT_NAME PyInstaller.utils.hooks IMPORT_FROM collect_data_files STORE_NAME collect_data_files IMPORT_FROM collect_submodules STORE_NAME ...
""" Spacy contains hidden imports and data files which are needed to import it """ from PyInstaller.utils.hooks import collect_data_files, collect_submodules datas = collect_data_files("spacy") hiddenimports = collect_submodules("spacy")
data/pyinstaller-hooks-contrib-2024.1/src/_pyinstaller_hooks_contrib/hooks/stdhooks/hook-spacy.py
129
70
282,442
LOAD_CONST 0 LOAD_CONST ('absolute_import', 'division', 'print_function') IMPORT_NAME __future__ IMPORT_FROM absolute_import STORE_NAME absolute_import IMPORT_FROM division STORE_NAME division IMPORT_FROM print_function STORE_NAME print_function POP_TOP LOAD_NAME type STORE_NAME __metaclass__ LOAD_CONST <code object ...
from __future__ import absolute_import, division, print_function __metaclass__ = type def testtest(data): return data == "from_user" class TestModule(object): def tests(self): return {"testtest": testtest}
data/ansible-core-2.16.3/test/integration/targets/collections/collection_root_user/ansible_collections/testns/testcoll/plugins/test/mytests.py
279
70
437,322
LOAD_CONST 0 LOAD_CONST ('SQLStatementParser',) IMPORT_NAME sqlvalidator.grammar.lexer IMPORT_FROM SQLStatementParser STORE_NAME SQLStatementParser POP_TOP LOAD_CONST 0 LOAD_CONST ('to_tokens',) IMPORT_NAME sqlvalidator.grammar.tokeniser IMPORT_FROM to_tokens STORE_NAME to_tokens POP_TOP LOAD_NAME str LOAD_NAME str L...
from sqlvalidator.grammar.lexer import SQLStatementParser from sqlvalidator.grammar.tokeniser import to_tokens def format_sql(sql_string: str) -> str: return SQLStatementParser.parse(to_tokens(sql_string)).transform()
data/sqlvalidator-0.0.20/sqlvalidator/sql_formatter.py
177
70
396,855
LOAD_CONST 0 LOAD_CONST ('Foo',) IMPORT_NAME autosummary_dummy_module IMPORT_FROM Foo STORE_NAME Foo POP_TOP LOAD_BUILD_CLASS LOAD_CONST <code object InheritedAttrClass at 0x7fab800abc90, file "f.py", line 4> LOAD_CONST 'InheritedAttrClass' MAKE_FUNCTION LOAD_CONST 'InheritedAttrClass' LOAD_NAME Foo CALL_FUNCTION STOR...
from autosummary_dummy_module import Foo class InheritedAttrClass(Foo): def __init__(self): self.subclassattr = "subclassattr" super().__init__() __all__ = ["InheritedAttrClass"]
data/sphinx-7.2.6/tests/roots/test-ext-autosummary/autosummary_dummy_inherited_module.py
254
70
381,127
LOAD_CONST 0 LOAD_CONST ('absolute_import',) IMPORT_NAME __future__ IMPORT_FROM absolute_import STORE_NAME absolute_import POP_TOP LOAD_CONST 1 LOAD_CONST ('LoggingClient',) IMPORT_NAME logging_client IMPORT_FROM LoggingClient STORE_NAME LoggingClient POP_TOP LOAD_CONST 1 LOAD_CONST ('LoggingClientCompositeOperations...
from __future__ import absolute_import from .logging_client import LoggingClient from .logging_client_composite_operations import LoggingClientCompositeOperations from . import models __all__ = ["LoggingClient", "LoggingClientCompositeOperations", "models"]
data/oci-2.122.0/src/oci/loggingingestion/__init__.py
165
70
413,552
LOAD_CONST 0 LOAD_CONST ('rust',) IMPORT_NAME rust_with_cffi IMPORT_FROM rust STORE_NAME rust POP_TOP LOAD_CONST 0 LOAD_CONST ('lib',) IMPORT_NAME rust_with_cffi.cffi IMPORT_FROM lib STORE_NAME lib POP_TOP LOAD_CONST <code object test_rust at 0x7f8e2ff25390, file "f.py", line 5> LOAD_CONST 'test_rust' MAKE_FUNCTION S...
from rust_with_cffi import rust from rust_with_cffi.cffi import lib def test_rust(): assert rust.rust_func() == 14 def test_cffi(): assert lib.cffi_func() == 15
data/setuptools-rust-1.8.1/examples/rust_with_cffi/tests/test_rust_with_cffi.py
236
71
118,518
LOAD_CONST '\nScheduled circuit visualization module.\n' STORE_NAME __doc__ LOAD_CONST 0 LOAD_CONST ('draw',) IMPORT_NAME qiskit.visualization.timeline.interface IMPORT_FROM draw STORE_NAME draw POP_TOP LOAD_CONST 0 LOAD_CONST ('IQXStandard', 'IQXSimple', 'IQXDebugging') IMPORT_NAME qiskit.visualization.timeline.styl...
""" Scheduled circuit visualization module. """ from qiskit.visualization.timeline.interface import draw from qiskit.visualization.timeline.stylesheet import ( IQXStandard, IQXSimple, IQXDebugging, )
data/qiskit-1.0.0/qiskit/visualization/timeline/__init__.py
136
71
282,698
LOAD_CONST 1 LOAD_CONST ('*',) IMPORT_NAME archs IMPORT_STAR LOAD_CONST 1 LOAD_CONST ('*',) IMPORT_NAME data IMPORT_STAR LOAD_CONST 1 LOAD_CONST ('*',) IMPORT_NAME losses IMPORT_STAR LOAD_CONST 1 LOAD_CONST ('*',) IMPORT_NAME metrics IMPORT_STAR LOAD_CONST 1 LOAD_CONST ('*',) IMPORT_NAME models IMPORT_STAR LOAD_CO...
from .archs import * from .data import * from .losses import * from .metrics import * from .models import * from .ops import * from .test import * from .train import * from .utils import * from .version import __gitsha__, __version__
data/basicsr-1.4.2/basicsr/__init__.py
196
71
285,628
LOAD_CONST 0 LOAD_CONST None IMPORT_NAME unittest STORE_NAME unittest LOAD_CONST 0 LOAD_CONST ('install_tests_in_module_dict',) IMPORT_NAME multiprocess.tests IMPORT_FROM install_tests_in_module_dict STORE_NAME install_tests_in_module_dict POP_TOP LOAD_NAME install_tests_in_module_dict LOAD_NAME globals CALL_FUNCTION...
import unittest from multiprocess.tests import install_tests_in_module_dict install_tests_in_module_dict(globals(), "forkserver", only_type="threads") if __name__ == "__main__": unittest.main()
data/multiprocess-0.70.16/py3.11/multiprocess/tests/test_multiprocessing_forkserver/test_threads.py
146
71
144,861
LOAD_CONST 0 LOAD_CONST None IMPORT_NAME warnings STORE_NAME warnings LOAD_CONST 0 LOAD_CONST ('nanotube', 'graphene_nanoribbon', 'molecule') IMPORT_NAME ase.build IMPORT_FROM nanotube STORE_NAME nanotube IMPORT_FROM graphene_nanoribbon STORE_NAME graphene_nanoribbon IMPORT_FROM molecule STORE_NAME molecule POP_TOP L...
import warnings from ase.build import nanotube, graphene_nanoribbon, molecule __all__ = ["nanotube", "graphene_nanoribbon", "molecule"] warnings.warn("Moved to ase.build")
data/ase-3.22.1/ase/structure.py
155
71
45,399
LOAD_CONST 0 LOAD_CONST None IMPORT_NAME unittest STORE_NAME unittest LOAD_CONST 0 LOAD_CONST ('install_tests_in_module_dict',) IMPORT_NAME multiprocess.tests IMPORT_FROM install_tests_in_module_dict STORE_NAME install_tests_in_module_dict POP_TOP LOAD_NAME install_tests_in_module_dict LOAD_NAME globals CALL_FUNCTION...
import unittest from multiprocess.tests import install_tests_in_module_dict install_tests_in_module_dict(globals(), "forkserver", only_type="processes") if __name__ == "__main__": unittest.main()
data/multiprocess-0.70.16/py3.11/multiprocess/tests/test_multiprocessing_forkserver/test_processes.py
146
71
144,860
LOAD_CONST 0 LOAD_CONST ('ip_substring_port_filtering',) IMPORT_NAME neutron_lib.api.definitions IMPORT_FROM ip_substring_port_filtering STORE_NAME ip_substring_port_filtering POP_TOP LOAD_CONST 0 LOAD_CONST ('base',) IMPORT_NAME neutron_lib.tests.unit.api.definitions IMPORT_FROM base STORE_NAME base POP_TOP LOAD_BUI...
from neutron_lib.api.definitions import ip_substring_port_filtering from neutron_lib.tests.unit.api.definitions import base class IPSubstringFilteringDefinitionTestCase(base.DefinitionBaseTestCase): extension_module = ip_substring_port_filtering
data/neutron-lib-3.10.0/neutron_lib/tests/unit/api/definitions/test_ip_substring_port_filtering.py
225
71
385,009
LOAD_CONST 'AUTOGENERATED. DO NOT EDIT.' STORE_NAME __doc__ LOAD_CONST 0 LOAD_CONST ('Xception',) IMPORT_NAME tf_keras.src.applications.xception IMPORT_FROM Xception STORE_NAME Xception POP_TOP LOAD_CONST 0 LOAD_CONST ('decode_predictions',) IMPORT_NAME tf_keras.src.applications.xception IMPORT_FROM decode_prediction...
"""AUTOGENERATED. DO NOT EDIT.""" from tf_keras.src.applications.xception import Xception from tf_keras.src.applications.xception import decode_predictions from tf_keras.src.applications.xception import preprocess_input
data/tf_keras-nightly-2.17.0.dev2024022110/tf_keras/api/_v2/keras/applications/xception/__init__.py
146
71
165,261
LOAD_CONST 0 LOAD_CONST None IMPORT_NAME numpy STORE_NAME np LOAD_CONST 0 LOAD_CONST ('OpRunUnaryNum',) IMPORT_NAME onnx.reference.ops._op IMPORT_FROM OpRunUnaryNum STORE_NAME OpRunUnaryNum POP_TOP LOAD_BUILD_CLASS LOAD_CONST <code object Exp at 0x7fab82053e40, file "f.py", line 6> LOAD_CONST 'Exp' MAKE_FUNCTION LOAD...
import numpy as np from onnx.reference.ops._op import OpRunUnaryNum class Exp(OpRunUnaryNum): def _run(self, x): # type: ignore return (np.exp(x).astype(x.dtype),)
data/onnx-simplifier-0.4.35/third_party/onnx-optimizer/third_party/onnx/onnx/reference/ops/op_exp.py
223
71
309,624
LOAD_CONST '\nInternal module configuring ACE as a Django app.\n' STORE_NAME __doc__ LOAD_CONST 0 LOAD_CONST ('AppConfig',) IMPORT_NAME django.apps IMPORT_FROM AppConfig STORE_NAME AppConfig POP_TOP LOAD_BUILD_CLASS LOAD_CONST <code object EdxAceConfig at 0x7fab41b73030, file "f.py", line 8> LOAD_CONST 'EdxAceConfig'...
""" Internal module configuring ACE as a Django app. """ from django.apps import AppConfig class EdxAceConfig(AppConfig): """ Configuration for the edx_ace Django application. """ name = "edx_ace"
data/edx-ace-1.7.0/edx_ace/apps.py
194
71
234,221
LOAD_CONST 0 LOAD_CONST None IMPORT_NAME sys STORE_NAME sys SETUP_EXCEPT to 46 LOAD_CONST 0 LOAD_CONST None IMPORT_NAME pyomo STORE_NAME pyomo LOAD_CONST 0 LOAD_CONST None IMPORT_NAME pyomo.environ STORE_NAME pyomo LOAD_CONST 0 LOAD_CONST None IMPORT_NAME pyomo.core STORE_NAME pyomo LOAD_NAME print LOAD_CONST 'OK'...
import sys try: import pyomo import pyomo.environ import pyomo.core print("OK") except Exception: e = sys.exc_info()[1] print("Pyomo package error: " + str(e))
data/Pyomo-6.7.0/pyomo/version/tests/check.py
181
71
23,297
LOAD_CONST 0 LOAD_CONST None IMPORT_NAME pytest STORE_NAME pytest LOAD_CONST 0 LOAD_CONST None IMPORT_NAME kernels STORE_NAME kernels LOAD_NAME pytest LOAD_ATTR mark LOAD_ATTR skip LOAD_CONST 'Unable to generate any tests for kernel' LOAD_CONST ('reason',) CALL_FUNCTION LOAD_CONST <code object test_pyawkward_reduce_s...
import pytest import kernels @pytest.mark.skip(reason="Unable to generate any tests for kernel") def test_pyawkward_reduce_sum_bool_bool_64_1(): raise NotImplementedError("Unable to generate any tests for kernel")
data/awkward-cpp-29/tests-spec/test_pyawkward_reduce_sum_bool_bool_64.py
192
71
220,656
LOAD_CONST 0 LOAD_CONST ('models',) IMPORT_NAME django.db IMPORT_FROM models STORE_NAME models POP_TOP LOAD_BUILD_CLASS LOAD_CONST <code object Article at 0x7f8e2fc18b70, file "f.py", line 4> LOAD_CONST 'Article' MAKE_FUNCTION LOAD_CONST 'Article' LOAD_NAME models LOAD_ATTR Model CALL_FUNCTION STORE_NAME Article LOAD_...
from django.db import models class Article(models.Model): headline = models.CharField(max_length=100, default="Default headline") pub_date = models.DateTimeField() def __str__(self): return self.headline
data/Django-5.0.2/tests/pagination/models.py
229
71
326,354
LOAD_CONST 'imagenet2012_multilabel dataset.' STORE_NAME __doc__ LOAD_CONST 0 LOAD_CONST ('Imagenet2012Multilabel',) IMPORT_NAME tensorflow_datasets.image_classification.imagenet2012_multilabel.imagenet2012_multilabel IMPORT_FROM Imagenet2012Multilabel STORE_NAME Imagenet2012Multilabel POP_TOP LOAD_CONST None RETURN_V...
"""imagenet2012_multilabel dataset.""" from tensorflow_datasets.image_classification.imagenet2012_multilabel.imagenet2012_multilabel import ( Imagenet2012Multilabel, )
data/tensorflow-datasets-4.9.4/tensorflow_datasets/image_classification/imagenet2012_multilabel/__init__.py
109
71
255,481
LOAD_CONST '\nScheduled circuit visualization module.\n' STORE_NAME __doc__ LOAD_CONST 0 LOAD_CONST ('draw',) IMPORT_NAME qiskit.visualization.timeline.interface IMPORT_FROM draw STORE_NAME draw POP_TOP LOAD_CONST 0 LOAD_CONST ('IQXStandard', 'IQXSimple', 'IQXDebugging') IMPORT_NAME qiskit.visualization.timeline.styl...
""" Scheduled circuit visualization module. """ from qiskit.visualization.timeline.interface import draw from qiskit.visualization.timeline.stylesheet import ( IQXStandard, IQXSimple, IQXDebugging, )
data/qiskit-terra-0.46.0/qiskit/visualization/timeline/__init__.py
136
71
430,234
LOAD_CONST '\nTODO: add a docstring.\n\n' STORE_NAME __doc__ LOAD_CONST 0 LOAD_CONST ('Renderer', 'TemplateSpec', 'parse', 'render') IMPORT_NAME pystache.init IMPORT_FROM Renderer STORE_NAME Renderer IMPORT_FROM TemplateSpec STORE_NAME TemplateSpec IMPORT_FROM parse STORE_NAME parse IMPORT_FROM render STORE_NAME rende...
""" TODO: add a docstring. """ from pystache.init import Renderer, TemplateSpec, parse, render from ._version import __version__ version = __version__ __all__ = ["parse", "render", "Renderer", "TemplateSpec"]
data/pystache-0.6.5/pystache/__init__.py
152
71
366,276
LOAD_CONST '\nURL definitions for enterprise_learner_portal API endpoint.\n' STORE_NAME __doc__ LOAD_CONST 0 LOAD_CONST ('include', 'path') IMPORT_NAME django.urls IMPORT_FROM include STORE_NAME include IMPORT_FROM path STORE_NAME path POP_TOP LOAD_NAME path LOAD_CONST 'v1/' LOAD_NAME include LOAD_CONST 'enterprise_l...
""" URL definitions for enterprise_learner_portal API endpoint. """ from django.urls import include, path urlpatterns = [path("v1/", include("enterprise_learner_portal.api.v1.urls"), name="v1")]
data/edx-enterprise-4.12.1/enterprise_learner_portal/api/urls.py
122
71
91,390
LOAD_CONST 'imagenet2012_multilabel dataset.' STORE_NAME __doc__ LOAD_CONST 0 LOAD_CONST ('Imagenet2012Multilabel',) IMPORT_NAME tensorflow_datasets.image_classification.imagenet2012_multilabel.imagenet2012_multilabel IMPORT_FROM Imagenet2012Multilabel STORE_NAME Imagenet2012Multilabel POP_TOP LOAD_CONST None RETURN_V...
"""imagenet2012_multilabel dataset.""" from tensorflow_datasets.image_classification.imagenet2012_multilabel.imagenet2012_multilabel import ( Imagenet2012Multilabel, )
data/tfds-nightly-4.9.4.dev202402210044/tensorflow_datasets/image_classification/imagenet2012_multilabel/__init__.py
109
71
238,542
LOAD_CONST 0 LOAD_CONST ('import_module',) IMPORT_NAME importlib IMPORT_FROM import_module STORE_NAME import_module POP_TOP LOAD_CONST 1 LOAD_CONST ('types', 'functions', 'base', 'core') IMPORT_NAME IMPORT_FROM types STORE_NAME types IMPORT_FROM functions STORE_NAME functions IMPORT_FROM base STORE_NAME base IMPORT_FR...
from importlib import import_module from . import types, functions, base, core from .all import objects for k, v in objects.items(): path, name = v.rsplit(".", 1) objects[k] = getattr(import_module(path), name)
data/Pyrogram-2.0.106/pyrogram/raw/__init__.py
193
71
273,005
LOAD_CONST 'double quote string' STORE_NAME this_should_be_linted LOAD_CONST 'double quote string' STORE_NAME this_should_be_linted LOAD_CONST b'double quote string' STORE_NAME this_should_be_linted LOAD_CONST None RETURN_VALUE
this_should_be_linted = "double quote string" this_should_be_linted = "double quote string" this_should_be_linted = ( rb"double quote string" # use b instead of u, as ur is invalid in Py3 )
data/flake8-quotes-3.4.0/test/data/doubles.py
62
71
396,902
LOAD_CONST 'Xarray index objects for label-based selection and alignment of Dataset /\nDataArray objects.\n\n' STORE_NAME __doc__ LOAD_CONST 0 LOAD_CONST ('Index', 'PandasIndex', 'PandasMultiIndex') IMPORT_NAME xarray.core.indexes IMPORT_FROM Index STORE_NAME Index IMPORT_FROM PandasIndex STORE_NAME PandasIndex IMPORT...
"""Xarray index objects for label-based selection and alignment of Dataset / DataArray objects. """ from xarray.core.indexes import Index, PandasIndex, PandasMultiIndex __all__ = ["Index", "PandasIndex", "PandasMultiIndex"]
data/xarray-2024.2.0/xarray/indexes/__init__.py
134
71
8,181
LOAD_CONST 0 LOAD_CONST ('parse_file',) IMPORT_NAME stem.descriptor IMPORT_FROM parse_file STORE_NAME parse_file POP_TOP LOAD_NAME parse_file LOAD_CONST '/tmp/descriptor_dump' LOAD_CONST 'server-descriptor 1.0' LOAD_CONST ('descriptor_type',) CALL_FUNCTION STORE_NAME server_descriptors SETUP_LOOP to 48 LOAD_NAME ser...
from stem.descriptor import parse_file server_descriptors = parse_file( "/tmp/descriptor_dump", descriptor_type="server-descriptor 1.0" ) for relay in server_descriptors: print(relay.fingerprint)
data/stem-1.8.2/docs/_static/example/read_with_parse_file.py
126
71
308,170
LOAD_CONST 0 LOAD_CONST ('ChargePoint',) IMPORT_NAME ocpp.charge_point IMPORT_FROM ChargePoint STORE_NAME cp POP_TOP LOAD_CONST 0 LOAD_CONST ('call', 'call_result') IMPORT_NAME ocpp.v201 IMPORT_FROM call STORE_NAME call IMPORT_FROM call_result STORE_NAME call_result POP_TOP LOAD_BUILD_CLASS LOAD_CONST <code object Ch...
from ocpp.charge_point import ChargePoint as cp from ocpp.v201 import call, call_result class ChargePoint(cp): _call = call _call_result = call_result _ocpp_version = "2.0.1"
data/ocpp-0.26.0/ocpp/v201/__init__.py
206
71
131,174
LOAD_CONST 1 LOAD_CONST ('Apply',) IMPORT_NAME base IMPORT_FROM Apply STORE_NAME Apply POP_TOP LOAD_CONST 1 LOAD_CONST ('Literal',) IMPORT_NAME base IMPORT_FROM Literal STORE_NAME Literal POP_TOP LOAD_CONST 1 LOAD_CONST ('as_apply',) IMPORT_NAME base IMPORT_FROM as_apply STORE_NAME as_apply POP_TOP LOAD_CONST 1 LOAD...
from .base import Apply from .base import Literal from .base import as_apply from .base import scope from .base import rec_eval from .base import clone from .base import clone_merge from .base import dfs from .base import toposort from . import stochastic
data/hyperopt-0.2.7/hyperopt/pyll/__init__.py
253
71
209,771
LOAD_CONST 0 LOAD_CONST None IMPORT_NAME numpy STORE_NAME np LOAD_CONST 0 LOAD_CONST ('OpRunBinaryComparison',) IMPORT_NAME onnx.reference.ops._op IMPORT_FROM OpRunBinaryComparison STORE_NAME OpRunBinaryComparison POP_TOP LOAD_BUILD_CLASS LOAD_CONST <code object GreaterOrEqual at 0x7fab820538a0, file "f.py", line 6> ...
import numpy as np from onnx.reference.ops._op import OpRunBinaryComparison class GreaterOrEqual(OpRunBinaryComparison): def _run(self, a, b): # type: ignore return (np.greater_equal(a, b),)
data/onnx-simplifier-0.4.35/third_party/onnx-optimizer/third_party/onnx/onnx/reference/ops/op_greater_or_equal.py
229
71
309,644
LOAD_CONST 0 LOAD_CONST ('ExpectationsStore',) IMPORT_NAME great_expectations.data_context.store IMPORT_FROM ExpectationsStore STORE_NAME ExpectationsStore POP_TOP LOAD_BUILD_CLASS LOAD_CONST <code object MyCustomExpectationsStore at 0x7faa51b82db0, file "f.py", line 4> LOAD_CONST 'MyCustomExpectationsStore' MAKE_FUNC...
from great_expectations.data_context.store import ExpectationsStore class MyCustomExpectationsStore(ExpectationsStore): """ This class is used only for testing. E.g. ensuring appropriate usage stats messaging when using plugin functionality. """ pass
data/great_expectations-0.18.9/tests/data_context/fixtures/plugins/my_custom_expectations_store.py
190
71
18,613
LOAD_CONST 0 LOAD_CONST ('i18n_patterns',) IMPORT_NAME django.conf.urls.i18n IMPORT_FROM i18n_patterns STORE_NAME i18n_patterns POP_TOP LOAD_CONST 0 LOAD_CONST ('HttpResponse',) IMPORT_NAME django.http IMPORT_FROM HttpResponse STORE_NAME HttpResponse POP_TOP LOAD_CONST 0 LOAD_CONST ('path',) IMPORT_NAME django.urls I...
from django.conf.urls.i18n import i18n_patterns from django.http import HttpResponse from django.urls import path urlpatterns = i18n_patterns( path("exists/", lambda r: HttpResponse()), )
data/Django-5.0.2/tests/logging_tests/urls_i18n.py
190
71
325,163
LOAD_CONST 1 LOAD_CONST ('CSRFProtect',) IMPORT_NAME csrf IMPORT_FROM CSRFProtect STORE_NAME CSRFProtect POP_TOP LOAD_CONST 1 LOAD_CONST ('FlaskForm',) IMPORT_NAME form IMPORT_FROM FlaskForm STORE_NAME FlaskForm POP_TOP LOAD_CONST 1 LOAD_CONST ('Form',) IMPORT_NAME form IMPORT_FROM Form STORE_NAME Form POP_TOP LOAD_...
from .csrf import CSRFProtect from .form import FlaskForm from .form import Form from .recaptcha import Recaptcha from .recaptcha import RecaptchaField from .recaptcha import RecaptchaWidget __version__ = "1.2.1"
data/flask_wtf-1.2.1/src/flask_wtf/__init__.py
200
71
386,645
LOAD_CONST 0 LOAD_CONST ('admin',) IMPORT_NAME django.contrib IMPORT_FROM admin STORE_NAME admin POP_TOP LOAD_CONST 0 LOAD_CONST ('ModelAdmin',) IMPORT_NAME django.contrib.gis.admin IMPORT_FROM ModelAdmin STORE_NAME GeoModelAdmin POP_TOP LOAD_CONST 1 LOAD_CONST ('Location',) IMPORT_NAME models IMPORT_FROM Location ST...
from django.contrib import admin from django.contrib.gis.admin import ModelAdmin as GeoModelAdmin from .models import Location class LocationAdmin(GeoModelAdmin): list_display = ("name", "geometry") admin.site.register(Location, LocationAdmin)
data/djangorestframework-gis-1.0/tests/django_restframework_gis_tests/admin.py
207
71
242,812
LOAD_CONST <code object pytest_make_parametrize_id at 0x7faa5ec5eb70, file "f.py", line 1> LOAD_CONST 'pytest_make_parametrize_id' MAKE_FUNCTION STORE_NAME pytest_make_parametrize_id LOAD_CONST None RETURN_VALUE LOAD_CONST '{}={}' LOAD_METHOD format LOAD_FAST argname LOAD_GLOBAL str LOAD_FAST val CALL_FUNCTION CALL_ME...
def pytest_make_parametrize_id(config, val, argname): """ This function is a hook into pytest. It generates a user friendly string representation of the parameterized values. """ return "{}={}".format(argname, str(val))
data/coremltools-7.1/coremltools/converters/mil/conftest.py
102
71
447,109
LOAD_CONST '\nCollects in-repo dask.yaml and dask-schema.yaml data files.\n' STORE_NAME __doc__ LOAD_CONST 0 LOAD_CONST ('collect_data_files',) IMPORT_NAME PyInstaller.utils.hooks IMPORT_FROM collect_data_files STORE_NAME collect_data_files POP_TOP LOAD_NAME collect_data_files LOAD_CONST 'dask' LOAD_CONST '*.yml' LOA...
""" Collects in-repo dask.yaml and dask-schema.yaml data files. """ from PyInstaller.utils.hooks import collect_data_files datas = collect_data_files("dask", includes=["*.yml", "*.yaml"])
data/pyinstaller-hooks-contrib-2024.1/src/_pyinstaller_hooks_contrib/hooks/stdhooks/hook-dask.py
119
71
282,309
LOAD_CONST 0 LOAD_CONST None IMPORT_NAME numpy STORE_NAME np LOAD_CONST 0 LOAD_CONST ('OpRunUnaryNum',) IMPORT_NAME onnx.reference.ops._op IMPORT_FROM OpRunUnaryNum STORE_NAME OpRunUnaryNum POP_TOP LOAD_BUILD_CLASS LOAD_CONST <code object Log at 0x7fab823b2420, file "f.py", line 6> LOAD_CONST 'Log' MAKE_FUNCTION LOAD...
import numpy as np from onnx.reference.ops._op import OpRunUnaryNum class Log(OpRunUnaryNum): def _run(self, x): # type: ignore return (np.log(x).astype(x.dtype),)
data/onnx-simplifier-0.4.35/third_party/onnx-optimizer/third_party/onnx/onnx/reference/ops/op_log.py
223
71
309,562
LOAD_CONST 0 LOAD_CONST None IMPORT_NAME numpy STORE_NAME np LOAD_CONST 0 LOAD_CONST ('OpRunBinaryComparison',) IMPORT_NAME onnx.reference.ops._op IMPORT_FROM OpRunBinaryComparison STORE_NAME OpRunBinaryComparison POP_TOP LOAD_BUILD_CLASS LOAD_CONST <code object GreaterOrEqual at 0x7f8e2ff25ae0, file "f.py", line 6> ...
import numpy as np from onnx.reference.ops._op import OpRunBinaryComparison class GreaterOrEqual(OpRunBinaryComparison): def _run(self, a, b): # type: ignore return (np.greater_equal(a, b),)
data/onnxsim-0.4.35/third_party/onnx-optimizer/third_party/onnx/onnx/reference/ops/op_greater_or_equal.py
227
71
114,315
LOAD_CONST 0 LOAD_CONST None IMPORT_NAME pytest STORE_NAME pytest LOAD_CONST 0 LOAD_CONST None IMPORT_NAME kernels STORE_NAME kernels LOAD_NAME pytest LOAD_ATTR mark LOAD_ATTR skip LOAD_CONST 'Unable to generate any tests for kernel' LOAD_CONST ('reason',) CALL_FUNCTION LOAD_CONST <code object test_pyawkward_reduce_p...
import pytest import kernels @pytest.mark.skip(reason="Unable to generate any tests for kernel") def test_pyawkward_reduce_prod_bool_bool_64_1(): raise NotImplementedError("Unable to generate any tests for kernel")
data/awkward-cpp-29/tests-spec/test_pyawkward_reduce_prod_bool_bool_64.py
191
71
220,539
LOAD_CONST 'sphinxext.opengraph' BUILD_LIST STORE_NAME extensions LOAD_CONST 'index' STORE_NAME master_doc LOAD_CONST '_build' BUILD_LIST STORE_NAME exclude_patterns LOAD_CONST 'basic' STORE_NAME html_theme LOAD_CONST 'http://example.org/en/latest/' STORE_NAME ogp_site_url LOAD_CONST 'article' STORE_NAME ogp_type ...
extensions = ["sphinxext.opengraph"] master_doc = "index" exclude_patterns = ["_build"] html_theme = "basic" ogp_site_url = "http://example.org/en/latest/" ogp_type = "article"
data/sphinxext-opengraph-0.9.1/tests/roots/test-type/conf.py
92
71
346,020
SETUP_EXCEPT to 46 LOAD_CONST 0 LOAD_CONST ('Tack',) IMPORT_NAME tack.structures.Tack IMPORT_FROM Tack STORE_NAME Tack POP_TOP LOAD_CONST 0 LOAD_CONST ('TackExtension',) IMPORT_NAME tack.structures.TackExtension IMPORT_FROM TackExtension STORE_NAME TackExtension POP_TOP LOAD_CONST 0 LOAD_CONST ('TlsCertificate',) IM...
try: from tack.structures.Tack import Tack from tack.structures.TackExtension import TackExtension from tack.tls.TlsCertificate import TlsCertificate tackpyLoaded = True except ImportError: tackpyLoaded = False
data/tlslite-ng-0.7.6/tlslite/utils/tackwrapper.py
173
71
7,222
LOAD_CONST <code object geo_mean_canon at 0x7faac0322390, file "f.py", line 1> LOAD_CONST 'geo_mean_canon' MAKE_FUNCTION STORE_NAME geo_mean_canon LOAD_CONST None RETURN_VALUE LOAD_CONST 0.0 STORE_FAST out SETUP_LOOP to 46 LOAD_GLOBAL zip LOAD_FAST args LOAD_CONST 0 BINARY_SUBSCR LOAD_FAST expr LOAD_ATTR p CALL_FUNCT...
def geo_mean_canon(expr, args): out = 0.0 for x_i, p_i in zip(args[0], expr.p): out += p_i * x_i return (1 / sum(expr.p)) * out, []
data/cvxpy-1.4.2/cvxpy/reductions/dgp2dcp/canonicalizers/geo_mean_canon.py
176
71
273,591
LOAD_CONST 0 LOAD_CONST ('IntEnum',) IMPORT_NAME enum IMPORT_FROM IntEnum STORE_NAME IntEnum POP_TOP LOAD_BUILD_CLASS LOAD_CONST <code object SymmetrizationLevel at 0x7fab821bf5d0, file "f.py", line 4> LOAD_CONST 'SymmetrizationLevel' MAKE_FUNCTION LOAD_CONST 'SymmetrizationLevel' LOAD_NAME IntEnum CALL_FUNCTION STORE...
from enum import IntEnum class SymmetrizationLevel(IntEnum): EXHAUSTIVE = -1 NONE = 0 OA_STRENGTH_1 = 1 OA_STRENGTH_2 = 2 OA_STRENGTH_3 = 3
data/pyquil-4.6.2/pyquil/experiment/_symmetrization.py
196
71
351,503
LOAD_CONST 'Defines an enum for classifying RPC methods by control flow semantics.' STORE_NAME __doc__ LOAD_CONST 0 LOAD_CONST None IMPORT_NAME enum STORE_NAME enum LOAD_NAME enum LOAD_ATTR unique LOAD_BUILD_CLASS LOAD_CONST <code object Service at 0x7faa75f60c90, file "f.py", line 6> LOAD_CONST 'Service' MAKE_FUNCTI...
"""Defines an enum for classifying RPC methods by control flow semantics.""" import enum @enum.unique class Service(enum.Enum): """Describes the control flow style of RPC method implementation.""" INLINE = "inline" EVENT = "event"
data/grpcio-1.60.1/src/python/grpcio/grpc/framework/common/style.py
180
71
272,746
LOAD_CONST 0 LOAD_CONST ('ClientValue',) IMPORT_NAME office365.runtime.client_value IMPORT_FROM ClientValue STORE_NAME ClientValue POP_TOP LOAD_BUILD_CLASS LOAD_CONST <code object Endpoint at 0x7fab81f0b8a0, file "f.py", line 4> LOAD_CONST 'Endpoint' MAKE_FUNCTION LOAD_CONST 'Endpoint' LOAD_NAME ClientValue CALL_FUNCT...
from office365.runtime.client_value import ClientValue class Endpoint(ClientValue): """Represents an endpoint in a call. The endpoint could be a user's device, a meeting, an application/bot, etc. The participantEndpoint and serviceEndpoint types inherit from this type."""
data/Office365-REST-Python-Client-2.5.5/office365/communications/callrecords/endpoint.py
173
71
188,665
LOAD_CONST 0 LOAD_CONST ('AppConfig',) IMPORT_NAME django.apps IMPORT_FROM AppConfig STORE_NAME AppConfig POP_TOP LOAD_BUILD_CLASS LOAD_CONST <code object PythonSocialAuthConfig at 0x7faa51b820c0, file "f.py", line 4> LOAD_CONST 'PythonSocialAuthConfig' MAKE_FUNCTION LOAD_CONST 'PythonSocialAuthConfig' LOAD_NAME AppCo...
from django.apps import AppConfig class PythonSocialAuthConfig(AppConfig): default_auto_field = "django.db.models.BigAutoField" name = "social_django" label = "social_django" verbose_name = "Python Social Auth"
data/social-auth-app-django-5.4.0/social_django/apps.py
187
71
20,108
LOAD_CONST 1 LOAD_CONST ('ExternalTaskSensorDecorator',) IMPORT_NAME external_task_sensor IMPORT_FROM ExternalTaskSensorDecorator STORE_NAME ExternalTaskSensorDecorator POP_TOP LOAD_CONST 1 LOAD_CONST ('S3KeySensorDecorator',) IMPORT_NAME s3_sensor IMPORT_FROM S3KeySensorDecorator STORE_NAME S3KeySensorDecorator POP_T...
from .external_task_sensor import ExternalTaskSensorDecorator from .s3_sensor import S3KeySensorDecorator SUPPORTED_SENSORS = [ ExternalTaskSensorDecorator, S3KeySensorDecorator, ]
data/metaflow-2.11.3/metaflow/plugins/airflow/sensors/__init__.py
131
71
347,952
LOAD_CONST 0 LOAD_CONST None IMPORT_NAME numpy STORE_NAME np LOAD_CONST 0 LOAD_CONST ('OpRunUnaryNum',) IMPORT_NAME onnx.reference.ops._op IMPORT_FROM OpRunUnaryNum STORE_NAME OpRunUnaryNum POP_TOP LOAD_BUILD_CLASS LOAD_CONST <code object Round at 0x7fab823b2810, file "f.py", line 6> LOAD_CONST 'Round' MAKE_FUNCTION ...
import numpy as np from onnx.reference.ops._op import OpRunUnaryNum class Round(OpRunUnaryNum): def _run(self, x): # type: ignore return (np.round(x).astype(x.dtype),)
data/onnx-simplifier-0.4.35/third_party/onnx-optimizer/third_party/onnx/onnx/reference/ops/op_round.py
227
71
309,561
LOAD_CONST 1 LOAD_CONST ('PriorityQueue',) IMPORT_NAME priorityqueue IMPORT_FROM PriorityQueue STORE_NAME PriorityQueue POP_TOP LOAD_CONST 1 LOAD_CONST ('noop', 'default_error', 'default_comparer') IMPORT_NAME basic IMPORT_FROM noop STORE_NAME noop IMPORT_FROM default_error STORE_NAME default_error IMPORT_FROM default...
from .priorityqueue import PriorityQueue from .basic import noop, default_error, default_comparer from .exceptions import ( SequenceContainsNoElementsError, ArgumentOutOfRangeException, DisposedException, ) from . import concurrency from . import constants
data/Rx-3.2.0/rx/internal/__init__.py
208
71
187,259
LOAD_CONST 0 LOAD_CONST None IMPORT_NAME gevent STORE_NAME gevent LOAD_CONST 0 LOAD_CONST ('SysHandler',) IMPORT_NAME circus.sighandler IMPORT_FROM SysHandler STORE_NAME _SysHandler POP_TOP LOAD_BUILD_CLASS LOAD_CONST <code object SysHandler at 0x7fab542ad810, file "f.py", line 6> LOAD_CONST 'SysHandler' MAKE_FUNCTIO...
import gevent from circus.sighandler import SysHandler as _SysHandler class SysHandler(_SysHandler): def _register(self): for sig in self.SIGNALS: gevent.signal(sig, self.signal, sig)
data/circus-0.18.0/circus/green/sighandler.py
257
71
388,475
LOAD_CONST 0 LOAD_CONST None IMPORT_NAME unittest STORE_NAME unittest LOAD_BUILD_CLASS LOAD_CONST <code object Layer at 0x7fab8019b0c0, file "f.py", line 4> LOAD_CONST 'Layer' MAKE_FUNCTION LOAD_CONST 'Layer' CALL_FUNCTION STORE_NAME Layer LOAD_BUILD_CLASS LOAD_CONST <code object Test at 0x7fab8019b390, file "f.py", ...
import unittest class Layer: @classmethod def setUp(cls): raise RuntimeError("Bad Error in Layer setUp!") class Test(unittest.TestCase): layer = Layer def testPass(self): pass
data/nose2-0.14.1/nose2/tests/functional/support/scenario/layers_with_errors/test_layer_setup_fail.py
332
71
310,204
LOAD_CONST 1 LOAD_CONST ('FileAdapter',) IMPORT_NAME file_adapter IMPORT_FROM FileAdapter STORE_NAME FileAdapter POP_TOP LOAD_CONST 1 LOAD_CONST ('FilteredFileAdapter',) IMPORT_NAME filtered_file_adapter IMPORT_FROM FilteredFileAdapter STORE_NAME FilteredFileAdapter POP_TOP LOAD_CONST 2 LOAD_CONST ('UpdateAdapter',) ...
from .file_adapter import FileAdapter from .filtered_file_adapter import FilteredFileAdapter from ..update_adapter import UpdateAdapter FilteredAdapter = FilteredFileAdapter __all__ = ["FileAdapter", "FilteredFileAdapter", "FilteredAdapter", "UpdateAdapter"]
data/casbin-1.36.0/casbin/persist/adapters/__init__.py
143
71
175,862
LOAD_CONST 0 LOAD_CONST ('Resource',) IMPORT_NAME braintree.resource IMPORT_FROM Resource STORE_NAME Resource POP_TOP LOAD_BUILD_CLASS LOAD_CONST <code object LocalPaymentReversed at 0x7f8b2000bd20, file "f.py", line 4> LOAD_CONST 'LocalPaymentReversed' MAKE_FUNCTION LOAD_CONST 'LocalPaymentReversed' LOAD_NAME Resourc...
from braintree.resource import Resource class LocalPaymentReversed(Resource): """ A class representing Braintree LocalPaymentReversed webhook. """ def __init__(self, gateway, attributes): Resource.__init__(self, gateway, attributes)
data/braintree-4.26.0/braintree/local_payment_reversed.py
247
71
327,777
LOAD_CONST 'single quote string' STORE_NAME this_should_be_linted LOAD_CONST 'double quote string' STORE_NAME this_should_be_linted LOAD_CONST b'double quote string' STORE_NAME this_should_be_linted LOAD_CONST None RETURN_VALUE
this_should_be_linted = "single quote string" this_should_be_linted = "double quote string" this_should_be_linted = ( rb"double quote string" # use b instead of u, as ur is invalid in Py3 )
data/flake8-quotes-3.4.0/test/data/singles.py
62
71
396,913
LOAD_CONST 'sphinxcontrib.bibtex' BUILD_LIST STORE_NAME extensions LOAD_CONST '_build' BUILD_LIST STORE_NAME exclude_patterns LOAD_CONST 'test.bib' BUILD_LIST STORE_NAME bibtex_bibfiles LOAD_CONST '4.0' STORE_NAME needs_sphinx LOAD_CONST 'root' STORE_NAME root_doc LOAD_CONST None RETURN_VALUE
extensions = ["sphinxcontrib.bibtex"] exclude_patterns = ["_build"] bibtex_bibfiles = ["test.bib"] needs_sphinx = "4.0" root_doc = "root" # only supported on Sphinx 4.0 and higher
data/sphinxcontrib-bibtex-2.6.2/test/roots/test-root_doc/conf.py
79
71
136,743
LOAD_CONST 0 LOAD_CONST ('ChatAnthropic', 'convert_messages_to_prompt_anthropic') IMPORT_NAME langchain_community.chat_models.anthropic IMPORT_FROM ChatAnthropic STORE_NAME ChatAnthropic IMPORT_FROM convert_messages_to_prompt_anthropic STORE_NAME convert_messages_to_prompt_anthropic POP_TOP LOAD_CONST 'convert_message...
from langchain_community.chat_models.anthropic import ( ChatAnthropic, convert_messages_to_prompt_anthropic, ) __all__ = [ "convert_messages_to_prompt_anthropic", "ChatAnthropic", ]
data/langchain-0.1.8/langchain/chat_models/anthropic.py
115
71
368,818
LOAD_CONST 0 LOAD_CONST None IMPORT_NAME duckdb STORE_NAME duckdb LOAD_CONST 0 LOAD_CONST None IMPORT_NAME numpy STORE_NAME numpy LOAD_BUILD_CLASS LOAD_CONST <code object TestBoolean at 0x7f8e2faa8420, file "f.py", line 5> LOAD_CONST 'TestBoolean' MAKE_FUNCTION LOAD_CONST 'TestBoolean' LOAD_NAME object CALL_FUNCTION ...
import duckdb import numpy class TestBoolean(object): def test_bool(self, duckdb_cursor): duckdb_cursor.execute("SELECT TRUE") results = duckdb_cursor.fetchall() assert results[0][0] == True
data/duckdb-0.10.0/tests/fast/types/test_boolean.py
251
71
423,588
LOAD_CONST 0 LOAD_CONST ('add_qt6_dependencies', 'pyside6_library_info') IMPORT_NAME PyInstaller.utils.hooks.qt IMPORT_FROM add_qt6_dependencies STORE_NAME add_qt6_dependencies IMPORT_FROM pyside6_library_info STORE_NAME pyside6_library_info POP_TOP LOAD_NAME add_qt6_dependencies LOAD_NAME __file__ CALL_FUNCTION UNPAC...
from PyInstaller.utils.hooks.qt import add_qt6_dependencies, pyside6_library_info hiddenimports, binaries, datas = add_qt6_dependencies(__file__) binaries += pyside6_library_info.collect_qtnetwork_files()
data/pyinstaller-6.4.0/PyInstaller/hooks/hook-PySide6.QtNetwork.py
144
71
185,458
LOAD_CONST <code object pytest_configure at 0x7fab7038a780, file "f.py", line 1> LOAD_CONST 'pytest_configure' MAKE_FUNCTION STORE_NAME pytest_configure LOAD_CONST None RETURN_VALUE LOAD_FAST config LOAD_METHOD addinivalue_line LOAD_CONST 'markers' LOAD_CONST 'integration_tests: mark test to be an integration test' C...
def pytest_configure(config): config.addinivalue_line( "markers", "integration_tests: mark test to be an integration test" ) config.addinivalue_line("markers", "unit_tests: mark test to be an unit test")
data/vertica-python-1.3.8/vertica_python/tests/conftest.py
137
71
287,048
LOAD_CONST 0 LOAD_CONST None IMPORT_NAME pytest STORE_NAME pytest LOAD_CONST 0 LOAD_CONST None IMPORT_NAME kernels STORE_NAME kernels LOAD_NAME pytest LOAD_ATTR mark LOAD_ATTR skip LOAD_CONST 'Unable to generate any tests for kernel' LOAD_CONST ('reason',) CALL_FUNCTION LOAD_CONST <code object test_pyawkward_IndexedA...
import pytest import kernels @pytest.mark.skip(reason="Unable to generate any tests for kernel") def test_pyawkward_IndexedArray32_numnull_parents_1(): raise NotImplementedError("Unable to generate any tests for kernel")
data/awkward-cpp-29/tests-spec/test_pyawkward_IndexedArray32_numnull_parents.py
191
71
220,617
LOAD_CONST 'vvv' STORE_NAME v LOAD_CONST 'aaa' LOAD_NAME v FORMAT_VALUE LOAD_CONST 'bbb' BUILD_STRING BUILD_LIST STORE_NAME a LOAD_CONST 'cccddd' LOAD_NAME v FORMAT_VALUE BUILD_STRING BUILD_LIST STORE_NAME b LOAD_CONST 'eee' LOAD_NAME v FORMAT_VALUE LOAD_CONST 'fff' LOAD_NAME v FORMAT_VALUE BUILD_STRING BUILD_LIST S...
v = "vvv" a = [f"aaa{v}" "bbb"] b = ["ccc" f"ddd{v}"] c = [f"eee{v}" f"fff{v}"] d = f"" print(a, b, c, d)
data/flake8-no-implicit-concat-0.3.5/tests/run_flake8/fstring.py
114
71
387,811
LOAD_CONST 0 LOAD_CONST ('*',) IMPORT_NAME numpy IMPORT_STAR LOAD_CONST 0 LOAD_CONST ('*',) IMPORT_NAME osgeo.gdal_array IMPORT_STAR LOAD_CONST 0 LOAD_CONST ('warn',) IMPORT_NAME warnings IMPORT_FROM warn STORE_NAME warn POP_TOP LOAD_NAME warn LOAD_CONST 'instead of `import gdalnumeric`, please consider `import num...
from numpy import * from osgeo.gdal_array import * from warnings import warn warn( "instead of `import gdalnumeric`, please consider `import numpy` and/or `from osgeo import gdal_array`", DeprecationWarning, )
data/GDAL-3.8.4/osgeo/gdalnumeric.py
115
71
205,155
LOAD_CONST 0 LOAD_CONST ('_',) IMPORT_NAME neutron_lib._i18n IMPORT_FROM _ STORE_NAME _ POP_TOP LOAD_CONST 0 LOAD_CONST ('exceptions',) IMPORT_NAME neutron_lib IMPORT_FROM exceptions STORE_NAME exceptions POP_TOP LOAD_BUILD_CLASS LOAD_CONST <code object VlanTransparencyDriverError at 0x7fab542adc90, file "f.py", line...
from neutron_lib._i18n import _ from neutron_lib import exceptions class VlanTransparencyDriverError(exceptions.NeutronException): """Vlan Transparency not supported by all mechanism drivers.""" message = _("Backend does not support VLAN Transparency.")
data/neutron-lib-3.10.0/neutron_lib/exceptions/vlantransparent.py
213
71
385,080
LOAD_CONST '\nOCI provides a set of services for Oracle Cloud Infrastructure provider.\n' STORE_NAME __doc__ LOAD_CONST 0 LOAD_CONST ('Node',) IMPORT_NAME diagrams IMPORT_FROM Node STORE_NAME Node POP_TOP LOAD_BUILD_CLASS LOAD_CONST <code object _OCI at 0x7fab81fc6b70, file "f.py", line 8> LOAD_CONST '_OCI' MAKE_FUNC...
""" OCI provides a set of services for Oracle Cloud Infrastructure provider. """ from diagrams import Node class _OCI(Node): _provider = "oci" _icon_dir = "resources/oci" fontcolor = "#312D2A"
data/diagrams-0.23.4/diagrams/oci/__init__.py
180
71
206,018
LOAD_CONST 0 LOAD_CONST None IMPORT_NAME pytest STORE_NAME pytest LOAD_CONST 0 LOAD_CONST None IMPORT_NAME kernels STORE_NAME kernels LOAD_NAME pytest LOAD_ATTR mark LOAD_ATTR skip LOAD_CONST 'Unable to generate any tests for kernel' LOAD_CONST ('reason',) CALL_FUNCTION LOAD_CONST <code object test_pyawkward_reduce_a...
import pytest import kernels @pytest.mark.skip(reason="Unable to generate any tests for kernel") def test_pyawkward_reduce_argmin_int8_64_1(): raise NotImplementedError("Unable to generate any tests for kernel")
data/awkward-cpp-29/tests-spec/test_pyawkward_reduce_argmin_int8_64.py
191
71
220,620
LOAD_CONST 0 LOAD_CONST ('annotations',) IMPORT_NAME __future__ IMPORT_FROM annotations STORE_NAME annotations POP_TOP LOAD_CONST 0 LOAD_CONST None IMPORT_NAME io STORE_NAME io LOAD_CONST 0 LOAD_CONST None IMPORT_NAME xarray STORE_NAME xarray LOAD_CONST 'None' LOAD_CONST ('return',) BUILD_CONST_KEY_MAP LOAD_CONST <c...
from __future__ import annotations import io import xarray def test_show_versions() -> None: f = io.StringIO() xarray.show_versions(file=f) assert "INSTALLED VERSIONS" in f.getvalue()
data/xarray-2024.2.0/xarray/tests/test_print_versions.py
202
71
8,121
LOAD_CONST 0 LOAD_CONST ('sidedata',) IMPORT_NAME mercurial.revlogutils IMPORT_FROM sidedata STORE_NAME sidedata POP_TOP LOAD_CONST <code object reposetup at 0x7fab82132660, file "f.py", line 4> LOAD_CONST 'reposetup' MAKE_FUNCTION STORE_NAME reposetup LOAD_CONST None RETURN_VALUE LOAD_FAST repo LOAD_METHOD register_...
from mercurial.revlogutils import sidedata def reposetup(ui, repo): repo.register_wanted_sidedata(sidedata.SD_TEST2) repo.register_wanted_sidedata(sidedata.SD_TEST3)
data/mercurial-6.6.3/tests/testlib/ext-sidedata-4.py
153
71
365,342
LOAD_CONST 0 LOAD_CONST None IMPORT_NAME numpy STORE_NAME np LOAD_CONST 0 LOAD_CONST ('OpRunUnaryNum',) IMPORT_NAME onnx.reference.ops._op IMPORT_FROM OpRunUnaryNum STORE_NAME OpRunUnaryNum POP_TOP LOAD_BUILD_CLASS LOAD_CONST <code object Exp at 0x7f8e2ff25f60, file "f.py", line 6> LOAD_CONST 'Exp' MAKE_FUNCTION LOAD...
import numpy as np from onnx.reference.ops._op import OpRunUnaryNum class Exp(OpRunUnaryNum): def _run(self, x): # type: ignore return (np.exp(x).astype(x.dtype),)
data/onnxsim-0.4.35/third_party/onnx-optimizer/third_party/onnx/onnx/reference/ops/op_exp.py
222
71
114,295
LOAD_CONST 'Deprecated symbols.' STORE_NAME __doc__ LOAD_CONST 0 LOAD_CONST ('text',) IMPORT_NAME tensorflow_datasets.core.deprecated IMPORT_FROM text STORE_NAME text POP_TOP LOAD_CONST 0 LOAD_CONST ('add_checksums_dir',) IMPORT_NAME tensorflow_datasets.core.download.checksums IMPORT_FROM add_checksums_dir STORE_NAME...
"""Deprecated symbols.""" from tensorflow_datasets.core.deprecated import text from tensorflow_datasets.core.download.checksums import add_checksums_dir __all__ = [ "add_checksums_dir", "text", ]
data/tensorflow-datasets-4.9.4/tensorflow_datasets/core/deprecated/__init__.py
126
71
256,083
SETUP_EXCEPT to 14 LOAD_CONST 0 LOAD_CONST None IMPORT_NAME pyglet STORE_NAME pyglet POP_BLOCK JUMP_FORWARD to 38 DUP_TOP LOAD_NAME ImportError COMPARE_OP exception match POP_JUMP_IF_FALSE POP_TOP POP_TOP POP_TOP LOAD_CONST None STORE_NAME pyglet POP_EXCEPT JUMP_FORWARD to 38 END_FINALLY LOAD_CONST <code object che...
try: import pyglet except ImportError: pyglet = None def check_pyglet_available(): if pyglet is None: raise ImportError("pyglet is not installed, run following: pip install pyglet") return pyglet
data/imgviz-1.7.5/imgviz/_io/_pyglet/base.py
186
71
186,973
LOAD_CONST '\nTests for the array API namespace.\n\nNote, full compliance with the array API can be tested with the official array API test\nsuite https://github.com/data-apis/array-api-tests. This test suite primarily\nfocuses on those things that are not tested by the official test suite.\n' STORE_NAME __doc__ LOAD_C...
""" Tests for the array API namespace. Note, full compliance with the array API can be tested with the official array API test suite https://github.com/data-apis/array-api-tests. This test suite primarily focuses on those things that are not tested by the official test suite. """
data/catboost-1.2.2/catboost_all_src/contrib/python/numpy/py3/numpy/array_api/tests/__init__.py
84
71
176,754
LOAD_CONST 0 LOAD_CONST None IMPORT_NAME pytest STORE_NAME pytest LOAD_CONST 1 LOAD_CONST ('fastq_dir', 'results_dir') IMPORT_NAME fixtures.dirs_of_files IMPORT_FROM fastq_dir STORE_NAME fastq_dir IMPORT_FROM results_dir STORE_NAME results_dir POP_TOP LOAD_CONST 1 LOAD_CONST ('fastq_file_fwd', 'fastq_file_single_end'...
import pytest from .fixtures.dirs_of_files import fastq_dir, results_dir from .fixtures.fastq_file import fastq_file_fwd, fastq_file_single_end from .fixtures.sample_sheets import mocker_samplesheet
data/code_ocean_aux_tools-1.1.3/tests/conftest.py
191
71
199,658
LOAD_CONST 0 LOAD_CONST ('GiModuleInfo',) IMPORT_NAME PyInstaller.utils.hooks.gi IMPORT_FROM GiModuleInfo STORE_NAME GiModuleInfo POP_TOP LOAD_NAME GiModuleInfo LOAD_CONST 'GstVulkanXCB' LOAD_CONST '1.0' CALL_FUNCTION STORE_NAME module_info LOAD_NAME module_info LOAD_ATTR available POP_JUMP_IF_FALSE LOAD_NAME module...
from PyInstaller.utils.hooks.gi import GiModuleInfo module_info = GiModuleInfo("GstVulkanXCB", "1.0") if module_info.available: binaries, datas, hiddenimports = module_info.collect_typelib_data()
data/pyinstaller-6.4.0/PyInstaller/hooks/hook-gi.repository.GstVulkanXCB.py
115
71
185,377
LOAD_CONST 'Aborted' STORE_NAME ABORTED LOAD_CONST 'Failed' STORE_NAME FAILED LOAD_CONST 'NotProcessed' STORE_NAME NOT_PROCESSED LOAD_CONST 'Completed' STORE_NAME COMPLETED LOAD_NAME ABORTED LOAD_NAME FAILED LOAD_NAME NOT_PROCESSED BUILD_TUPLE STORE_NAME ERROR_STATES LOAD_CONST None RETURN_VALUE
ABORTED = "Aborted" FAILED = "Failed" NOT_PROCESSED = "NotProcessed" COMPLETED = "Completed" ERROR_STATES = ( ABORTED, FAILED, NOT_PROCESSED, )
data/salesforce-bulk-2.2.0/salesforce_bulk/bulk_states.py
85
71
208,811
LOAD_CONST 0 LOAD_CONST ('add_qt5_dependencies', 'pyside2_library_info') IMPORT_NAME PyInstaller.utils.hooks.qt IMPORT_FROM add_qt5_dependencies STORE_NAME add_qt5_dependencies IMPORT_FROM pyside2_library_info STORE_NAME pyside2_library_info POP_TOP LOAD_NAME add_qt5_dependencies LOAD_NAME __file__ CALL_FUNCTION UNPAC...
from PyInstaller.utils.hooks.qt import add_qt5_dependencies, pyside2_library_info hiddenimports, binaries, datas = add_qt5_dependencies(__file__) binaries += pyside2_library_info.collect_qtnetwork_files()
data/pyinstaller-6.4.0/PyInstaller/hooks/hook-PySide2.QtNetwork.py
144
71
185,137
LOAD_CONST 'IBM Cloud Secrets Manager Python SDK' STORE_NAME __doc__ LOAD_CONST 0 LOAD_CONST ('IAMTokenManager', 'DetailedResponse', 'BaseService', 'ApiException') IMPORT_NAME ibm_cloud_sdk_core IMPORT_FROM IAMTokenManager STORE_NAME IAMTokenManager IMPORT_FROM DetailedResponse STORE_NAME DetailedResponse IMPORT_FROM ...
"""IBM Cloud Secrets Manager Python SDK""" from ibm_cloud_sdk_core import ( IAMTokenManager, DetailedResponse, BaseService, ApiException, ) from .common import get_sdk_headers from .version import __version__
data/ibm-secrets-manager-sdk-2.1.3/ibm_secrets_manager_sdk/__init__.py
163
71
156,078
LOAD_CONST 1 LOAD_CONST ('_GCP',) IMPORT_NAME IMPORT_FROM _GCP STORE_NAME _GCP POP_TOP LOAD_BUILD_CLASS LOAD_CONST <code object _Migration at 0x7fab70246db0, file "f.py", line 4> LOAD_CONST '_Migration' MAKE_FUNCTION LOAD_CONST '_Migration' LOAD_NAME _GCP CALL_FUNCTION STORE_NAME _Migration LOAD_BUILD_CLASS LOAD_CONS...
from . import _GCP class _Migration(_GCP): _type = "migration" _icon_dir = "resources/gcp/migration" class TransferAppliance(_Migration): _icon = "transfer-appliance.png"
data/diagrams-0.23.4/diagrams/gcp/migration.py
269
71
205,906
LOAD_CONST 0 LOAD_CONST None IMPORT_NAME typer STORE_NAME typer LOAD_NAME typer LOAD_ATTR Typer LOAD_CONST False LOAD_CONST ('pretty_exceptions_enable',) CALL_FUNCTION STORE_NAME app LOAD_NAME app LOAD_METHOD command CALL_METHOD LOAD_CONST ('morty',) LOAD_NAME str LOAD_CONST ('name',) BUILD_CONST_KEY_MAP LOAD_CONST ...
import typer app = typer.Typer(pretty_exceptions_enable=False) @app.command() def main(name: str = "morty"): print(name + 3) if __name__ == "__main__": app()
data/typer-0.9.0/docs_src/exceptions/tutorial004.py
169
71
224,518
LOAD_CONST 0 LOAD_CONST ('ClientValue',) IMPORT_NAME office365.runtime.client_value IMPORT_FROM ClientValue STORE_NAME ClientValue POP_TOP LOAD_BUILD_CLASS LOAD_CONST <code object SystemFacet at 0x7fab7002ba50, file "f.py", line 4> LOAD_CONST 'SystemFacet' MAKE_FUNCTION LOAD_CONST 'SystemFacet' LOAD_NAME ClientValue C...
from office365.runtime.client_value import ClientValue class SystemFacet(ClientValue): """ The System facet indicates that the object is managed by the system for its own operation. Most apps should ignore items that have a System facet. """ pass
data/Office365-REST-Python-Client-2.5.5/office365/onedrive/driveitems/system_facet.py
174
71
188,588
LOAD_CONST 0 LOAD_CONST ('ArgumentError', 'ArgumentTypeError') IMPORT_NAME argparse IMPORT_FROM ArgumentError STORE_NAME ArgumentError IMPORT_FROM ArgumentTypeError STORE_NAME ArgumentTypeError POP_TOP LOAD_CONST 0 LOAD_CONST ('__version__',) IMPORT_NAME tap._version IMPORT_FROM __version__ STORE_NAME __version__ POP_...
from argparse import ArgumentError, ArgumentTypeError from tap._version import __version__ from tap.tap import Tap from tap.tapify import tapify __all__ = ["ArgumentError", "ArgumentTypeError", "Tap", "tapify", "__version__"]
data/typed-argument-parser-1.9.0/tap/__init__.py
177
71
251,540
LOAD_BUILD_CLASS LOAD_CONST <code object RobocorpTasksError at 0x7fa6dd4d4270, file "f.py", line 1> LOAD_CONST 'RobocorpTasksError' MAKE_FUNCTION LOAD_CONST 'RobocorpTasksError' LOAD_NAME RuntimeError CALL_FUNCTION STORE_NAME RobocorpTasksError LOAD_BUILD_CLASS LOAD_CONST <code object RobocorpTasksCollectError at 0x7f...
class RobocorpTasksError(RuntimeError): pass class RobocorpTasksCollectError(RobocorpTasksError): """ Exception given if there was some issue collecting tasks. """ class InvalidArgumentsError(RobocorpTasksError): pass
data/robocorp_tasks-2.9.1/src/robocorp/tasks/_exceptions.py
346
71
45,178
LOAD_CONST 0 LOAD_CONST ('null_renderer',) IMPORT_NAME pyramid.renderers IMPORT_FROM null_renderer STORE_NAME null_renderer POP_TOP LOAD_CONST 0 LOAD_CONST ('view_config',) IMPORT_NAME pyramid.view IMPORT_FROM view_config STORE_NAME view_config POP_TOP LOAD_NAME view_config LOAD_CONST 'pod_notinit' LOAD_NAME null_ren...
from pyramid.renderers import null_renderer from pyramid.view import view_config @view_config(name="pod_notinit", renderer=null_renderer) def subpackage_notinit(context, request): return "pod_notinit"
data/pyramid-2.0.2/tests/test_config/pkgs/scannable/pod/notinit.py
171
71
19,702
LOAD_CONST 0 LOAD_CONST ('collect_data_files', 'is_module_satisfies') IMPORT_NAME PyInstaller.utils.hooks IMPORT_FROM collect_data_files STORE_NAME collect_data_files IMPORT_FROM is_module_satisfies STORE_NAME is_module_satisfies POP_TOP LOAD_NAME is_module_satisfies LOAD_CONST 'scikit-image >= 0.20' CALL_FUNCTION POP...
from PyInstaller.utils.hooks import collect_data_files, is_module_satisfies if is_module_satisfies("scikit-image >= 0.20"): datas = collect_data_files("skimage.morphology", includes=["*.npy"])
data/pyinstaller-hooks-contrib-2024.1/src/_pyinstaller_hooks_contrib/hooks/stdhooks/hook-skimage.morphology.py
133
71
282,462
LOAD_CONST 0 LOAD_CONST None IMPORT_NAME logging STORE_NAME logging LOAD_CONST 0 LOAD_CONST None IMPORT_NAME sys STORE_NAME sys LOAD_CONST 0 LOAD_CONST ('EasyProcess',) IMPORT_NAME easyprocess IMPORT_FROM EasyProcess STORE_NAME EasyProcess POP_TOP LOAD_NAME sys LOAD_ATTR executable STORE_NAME python LOAD_NAME loggi...
import logging import sys from easyprocess import EasyProcess python = sys.executable logging.basicConfig(level=logging.DEBUG) EasyProcess([python, "--version"]).call() EasyProcess(["ping", "localhost"]).start().sleep(1).stop()
data/EasyProcess-1.1/easyprocess/examples/log.py
158
71
396,768
LOAD_CONST 0 LOAD_CONST ('FastAPI', 'Query') IMPORT_NAME fastapi IMPORT_FROM FastAPI STORE_NAME FastAPI IMPORT_FROM Query STORE_NAME Query POP_TOP LOAD_NAME FastAPI CALL_FUNCTION STORE_NAME app LOAD_NAME app LOAD_METHOD get LOAD_CONST '/items/' CALL_METHOD LOAD_NAME Query LOAD_CONST 'foo' LOAD_CONST 'bar' BUILD_LIST...
from fastapi import FastAPI, Query app = FastAPI() @app.get("/items/") async def read_items(q: list[str] = Query(default=["foo", "bar"])): query_items = {"q": q} return query_items
data/fastapi-0.109.2/docs_src/query_params_str_validations/tutorial012_py39.py
179
71
142,590
LOAD_CONST 0 LOAD_CONST ('extraroute',) IMPORT_NAME neutron_lib.api.definitions IMPORT_FROM extraroute STORE_NAME extraroute POP_TOP LOAD_CONST 0 LOAD_CONST ('base',) IMPORT_NAME neutron_lib.tests.unit.api.definitions IMPORT_FROM base STORE_NAME base POP_TOP LOAD_BUILD_CLASS LOAD_CONST <code object ExtrarouteDefiniti...
from neutron_lib.api.definitions import extraroute from neutron_lib.tests.unit.api.definitions import base class ExtrarouteDefinitionTestCase(base.DefinitionBaseTestCase): extension_module = extraroute extension_attributes = (extraroute.ROUTES,)
data/neutron-lib-3.10.0/neutron_lib/tests/unit/api/definitions/test_extraroute.py
206
71
384,885
LOAD_CONST 0 LOAD_CONST ('template',) IMPORT_NAME django IMPORT_FROM template STORE_NAME template POP_TOP LOAD_NAME template LOAD_METHOD Library CALL_METHOD STORE_NAME register LOAD_NAME register LOAD_ATTR tag LOAD_CONST <code object badtag at 0x7f8b2000bae0, file "f.py", line 6> LOAD_CONST 'badtag' MAKE_FUNCTION CAL...
from django import template register = template.Library() @register.tag def badtag(parser, token): raise RuntimeError("I am a bad tag") @register.simple_tag def badsimpletag(): raise RuntimeError("I am a bad simpletag")
data/Django-5.0.2/tests/template_tests/templatetags/bad_tag.py
201
71
326,195
LOAD_CONST 0 LOAD_CONST ('notfound_view_config',) IMPORT_NAME pyramid.view IMPORT_FROM notfound_view_config STORE_NAME notfound_view_config POP_TOP LOAD_NAME notfound_view_config LOAD_CONST 'cc_starter:templates/404.jinja2' LOAD_CONST ('renderer',) CALL_FUNCTION LOAD_CONST <code object notfound_view at 0x7faa754c68a0,...
from pyramid.view import notfound_view_config @notfound_view_config(renderer="cc_starter:templates/404.jinja2") def notfound_view(request): request.response.status = 404 return {}
data/pyramid-2.0.2/docs/quick_tutorial/cookiecutters/cc_starter/views/notfound.py
157
71
19,740