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 0 LOAD_CONST None IMPORT_NAME importlib STORE_NAME importlib LOAD_CONST 1 LOAD_CONST ('FUGUE_CONTRIB',) IMPORT_NAME contrib IMPORT_FROM FUGUE_CONTRIB STORE_NAME FUGUE_CONTRIB POP_TOP LOAD_NAME str LOAD_CONST None LOAD_CONST ('namespace', 'return') BUILD_CONST_KEY_MAP LOAD_CONST <code object load_namespace ...
import importlib from .contrib import FUGUE_CONTRIB def load_namespace(namespace: str) -> None: if namespace in FUGUE_CONTRIB: path = FUGUE_CONTRIB[namespace]["module"] importlib.import_module(path)
data/fugue-0.8.7/fugue_contrib/__init__.py
195
78
7,925
SETUP_LOOP to 32 LOAD_NAME __file__ POP_JUMP_IF_FALSE SETUP_LOOP to 28 LOAD_NAME __file__ POP_JUMP_IF_FALSE BREAK_LOOP LOAD_NAME RuntimeError RAISE_VARARGS JUMP_ABSOLUTE POP_BLOCK JUMP_ABSOLUTE LOAD_NAME RuntimeError RAISE_VARARGS JUMP_ABSOLUTE POP_BLOCK LOAD_CONST <code object _parseparam at 0x7fab700b4e40, fil...
while 1: if __file__: while 1: if __file__: break raise RuntimeError else: raise RuntimeError def _parseparam(s, end): while end > 0 and s.count(""): end = s.find(";")
data/uncompyle6-3.9.0/test/simple_source/bug30/02_while1_if_while1.py
168
78
442,012
LOAD_CONST 1 LOAD_CONST ('StorageManagementClient',) IMPORT_NAME _storage_management_client IMPORT_FROM StorageManagementClient STORE_NAME StorageManagementClient POP_TOP LOAD_CONST 'StorageManagementClient' BUILD_LIST STORE_NAME __all__ SETUP_EXCEPT to 42 LOAD_CONST 1 LOAD_CONST ('patch_sdk',) IMPORT_NAME _patch IM...
from ._storage_management_client import StorageManagementClient __all__ = ["StorageManagementClient"] try: from ._patch import patch_sdk # type: ignore patch_sdk() except ImportError: pass from ._version import VERSION __version__ = VERSION
data/azure-mgmt-storage-21.1.0/azure/mgmt/storage/__init__.py
174
78
340,729
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 KeyConstructorUserProperty at 0x7fab82034ae0, file "f.py", line 4> LOAD_CONST 'KeyConstructorUserProperty' MAKE_FUNCTION LOAD_CONST 'KeyConstructorUserProperty' LOAD_NAME mode...
from django.db import models class KeyConstructorUserProperty(models.Model): name = models.CharField(max_length=100) class KeyConstructorUserModel(models.Model): property = models.ForeignKey(KeyConstructorUserProperty, on_delete=models.CASCADE)
data/drf-extensions-0.7.1/tests_app/tests/functional/key_constructor/bits/models.py
291
78
68,868
LOAD_CONST 0 LOAD_CONST ('RTMClient',) IMPORT_NAME slack_sdk.rtm IMPORT_FROM RTMClient STORE_NAME RTMClient POP_TOP LOAD_CONST 0 LOAD_CONST ('LegacyWebClient',) IMPORT_NAME slack_sdk.web.legacy_client IMPORT_FROM LegacyWebClient STORE_NAME WebClient POP_TOP LOAD_CONST 0 LOAD_CONST ('deprecation',) IMPORT_NAME slack I...
from slack_sdk.rtm import RTMClient # noqa from slack_sdk.web.legacy_client import LegacyWebClient as WebClient # noqa from slack import deprecation deprecation.show_message(__name__, "slack_sdk.rtm.client")
data/slack_sdk-3.27.0/slack/rtm/client.py
139
78
206,987
LOAD_CONST 0 LOAD_CONST ('TestCase', 'min_os_level') IMPORT_NAME PyObjCTools.TestSupport IMPORT_FROM TestCase STORE_NAME TestCase IMPORT_FROM min_os_level STORE_NAME min_os_level POP_TOP LOAD_CONST 0 LOAD_CONST None IMPORT_NAME Intents STORE_NAME Intents LOAD_BUILD_CLASS LOAD_CONST <code object TestINParameter at 0x7...
from PyObjCTools.TestSupport import TestCase, min_os_level import Intents class TestINParameter(TestCase): @min_os_level("10.14") def test_methods(self): self.assertResultIsBOOL(Intents.INParameter.isEqualToParameter_)
data/pyobjc-framework-Intents-10.1/PyObjCTest/test_inparameter.py
268
78
246,721
LOAD_CONST 0 LOAD_CONST ('RTMClient',) IMPORT_NAME slack_sdk.rtm IMPORT_FROM RTMClient STORE_NAME RTMClient POP_TOP LOAD_CONST 0 LOAD_CONST ('LegacyWebClient',) IMPORT_NAME slack_sdk.web.legacy_client IMPORT_FROM LegacyWebClient STORE_NAME WebClient POP_TOP LOAD_CONST 0 LOAD_CONST ('deprecation',) IMPORT_NAME slack I...
from slack_sdk.rtm import RTMClient # noqa from slack_sdk.web.legacy_client import LegacyWebClient as WebClient # noqa from slack import deprecation deprecation.show_message(__name__, "slack_sdk.web/rtm")
data/slack_sdk-3.27.0/slack/rtm/__init__.py
139
78
206,988
LOAD_CONST 'Free Google Translate API for Python. Translates totally free of charge.' STORE_NAME __doc__ LOAD_CONST ('Translator',) STORE_NAME __all__ LOAD_CONST '3.0.0' STORE_NAME __version__ LOAD_CONST 0 LOAD_CONST ('Translator',) IMPORT_NAME googletrans.client IMPORT_FROM Translator STORE_NAME Translator POP_TOP ...
"""Free Google Translate API for Python. Translates totally free of charge.""" __all__ = ("Translator",) __version__ = "3.0.0" from googletrans.client import Translator from googletrans.constants import LANGCODES, LANGUAGES # noqa
data/googletrans-3.0.0/googletrans/__init__.py
144
78
110,642
BUILD_MAP BUILD_TUPLE LOAD_CONST <code object start_new_thread at 0x7fab54336f60, file "f.py", line 1> LOAD_CONST 'start_new_thread' MAKE_FUNCTION STORE_NAME start_new_thread LOAD_CONST <code object interact at 0x7fab700b4150, file "f.py", line 10> LOAD_CONST 'interact' MAKE_FUNCTION STORE_NAME interact LOAD_CONST Non...
def start_new_thread(function, args, kwargs={}): try: function() except SystemExit: pass except: args() def interact(): while 1: try: more = 1 except KeyboardInterrupt: more = 0
data/uncompyle6-3.9.0/test/simple_source/bug30/02_try_except_except.py
258
78
442,004
LOAD_CONST 0 LOAD_CONST ('run',) IMPORT_NAME robot.run IMPORT_FROM run STORE_NAME run POP_TOP LOAD_NAME run LOAD_CONST '.' LOAD_CONST 'logs' LOAD_CONST 'RobotStackTracer' LOAD_CONST 'performanceORfailingORfiltered' LOAD_CONST 'TRACE:INFO' LOAD_CONST 'robot' LOAD_CONST ('outputdir', 'listener', 'exclude', 'loglev...
from robot.run import run result = run( ".", outputdir="logs", listener="RobotStackTracer", exclude="performanceORfailingORfiltered", loglevel="TRACE:INFO", extension="robot", ) print(result)
data/robotframework-datadriver-1.11.0/atest/run_atest.py
119
78
191,004
LOAD_CONST 'Third party libraries and modules bundled with PyVISA.\n\nThis file is part of PyVISA.\n\n:copyright: 2014-2022 by PyVISA Authors, see AUTHORS for more details.\n:license: MIT, see LICENSE for more details.\n\n' STORE_NAME __doc__ LOAD_CONST None RETURN_VALUE
"""Third party libraries and modules bundled with PyVISA. This file is part of PyVISA. :copyright: 2014-2022 by PyVISA Authors, see AUTHORS for more details. :license: MIT, see LICENSE for more details. """
data/PyVISA-1.14.1/pyvisa/thirdparty/__init__.py
91
78
182,802
LOAD_CONST 2 LOAD_CONST ('ParseModel',) IMPORT_NAME objectmodel IMPORT_FROM ParseModel STORE_NAME ParseModel POP_TOP LOAD_CONST 1 LOAD_CONST ('PythonCodeGenerator',) IMPORT_NAME python IMPORT_FROM PythonCodeGenerator STORE_NAME PythonCodeGenerator POP_TOP LOAD_CONST ('',) LOAD_NAME ParseModel LOAD_NAME str LOAD_NAME ...
from ..objectmodel import ParseModel from .python import PythonCodeGenerator def codegen(model: ParseModel, parser_name: str = "") -> str: generator = PythonCodeGenerator(parser_name=parser_name) generator.walk(model) return generator.printed_text()
data/TatSu-5.11.3/tatsu/ngcodegen/__init__.py
191
78
352,666
LOAD_CONST 0 LOAD_CONST None IMPORT_NAME logging STORE_NAME logging LOAD_CONST 0 LOAD_CONST None IMPORT_NAME os.path STORE_NAME os LOAD_CONST 0 LOAD_CONST None IMPORT_NAME sys STORE_NAME sys SETUP_EXCEPT to 38 LOAD_CONST 0 LOAD_CONST None IMPORT_NAME unittest2 STORE_NAME unittest POP_BLOCK JUMP_FORWARD to 66 DUP_T...
import logging import os.path import sys try: import unittest2 as unittest except ImportError: import unittest logging.basicConfig( format="%(levelname)s:%(funcName)s:%(message)s", level=logging.DEBUG )
data/M2Crypto-0.41.0/tests/__init__.py
178
78
131,929
LOAD_CONST 0 LOAD_CONST ('_proxy',) IMPORT_NAME openstack.accelerator.v2 IMPORT_FROM _proxy STORE_NAME _proxy_v2 POP_TOP LOAD_CONST 0 LOAD_CONST ('service_description',) IMPORT_NAME openstack IMPORT_FROM service_description STORE_NAME service_description POP_TOP LOAD_BUILD_CLASS LOAD_CONST <code object AcceleratorSer...
from openstack.accelerator.v2 import _proxy as _proxy_v2 from openstack import service_description class AcceleratorService(service_description.ServiceDescription): """The accelerator service.""" supported_versions = { "2": _proxy_v2.Proxy, }
data/openstacksdk-2.1.0/openstack/accelerator/accelerator_service.py
210
78
284,478
LOAD_CONST 'Time series averaging metrics.' STORE_NAME __doc__ LOAD_CONST 'dba' LOAD_CONST 'mean_average' LOAD_CONST '_resolve_average_callable' BUILD_LIST STORE_NAME __all__ LOAD_CONST 0 LOAD_CONST ('_resolve_average_callable', 'dba', 'mean_average') IMPORT_NAME sktime.clustering.metrics.averaging._averaging IMPORT_...
"""Time series averaging metrics.""" __all__ = ["dba", "mean_average", "_resolve_average_callable"] from sktime.clustering.metrics.averaging._averaging import ( _resolve_average_callable, dba, mean_average, )
data/sktime-0.26.0/sktime/clustering/metrics/averaging/__init__.py
138
78
65,997
LOAD_CONST 0 LOAD_CONST ('DataSource',) IMPORT_NAME intake.source.base IMPORT_FROM DataSource STORE_NAME DataSource POP_TOP LOAD_BUILD_CLASS LOAD_CONST <code object Ex2Plugin at 0x7fab5434b930, file "f.py", line 4> LOAD_CONST 'Ex2Plugin' MAKE_FUNCTION LOAD_CONST 'Ex2Plugin' LOAD_NAME DataSource CALL_FUNCTION STORE_NAM...
from intake.source.base import DataSource class Ex2Plugin(DataSource): name = "example2" version = "0.1" container = "dataframe" partition_access = True def __init__(self): super(Ex2Plugin, self).__init__()
data/intake-2.0.1/intake/catalog/tests/example_plugin_dir/example2_source.py
264
78
141,585
LOAD_CONST 'data/math.txt' STORE_NAME test_source LOAD_CONST 'math_output_html.html' STORE_NAME test_destination LOAD_CONST 'html4' STORE_NAME writer_name LOAD_CONST 'HTML math.css' LOAD_CONST ('functional/input/data',) LOAD_CONST ('math_output', 'stylesheet_dirs') BUILD_CONST_KEY_MAP STORE_NAME settings_overrides ...
test_source = "data/math.txt" test_destination = "math_output_html.html" writer_name = "html4" settings_overrides = { "math_output": "HTML math.css", "stylesheet_dirs": ("functional/input/data",), }
data/docutils-0.20.1/test/functional/tests/math_output_html.py
92
78
83,250
LOAD_CONST ' Distributor init file\n\nDistributors: you can add custom code here to support particular distributions\nof numpy.\n\nFor example, this is a good place to put any checks for hardware requirements.\n\nThe numpy standard source distribution will not put code in this file, so you\ncan safely replace this file...
""" Distributor init file Distributors: you can add custom code here to support particular distributions of numpy. For example, this is a good place to put any checks for hardware requirements. The numpy standard source distribution will not put code in this file, so you can safely replace this file with your own ve...
data/catboost-1.2.2/catboost_all_src/contrib/python/numpy/py3/numpy/_distributor_init.py
94
78
176,635
LOAD_CONST 0 LOAD_CONST ('Redis', 'RedisVectorStoreRetriever', 'check_index_exists') IMPORT_NAME langchain_community.vectorstores.redis.base IMPORT_FROM Redis STORE_NAME Redis IMPORT_FROM RedisVectorStoreRetriever STORE_NAME RedisVectorStoreRetriever IMPORT_FROM check_index_exists STORE_NAME check_index_exists POP_TOP ...
from langchain_community.vectorstores.redis.base import ( Redis, RedisVectorStoreRetriever, check_index_exists, ) __all__ = [ "check_index_exists", "Redis", "RedisVectorStoreRetriever", ]
data/langchain-0.1.8/langchain/vectorstores/redis/base.py
124
78
368,721
LOAD_CONST '\n**Steam engine**\nTest data standard library\n' STORE_NAME __doc__ LOAD_CONST 0 LOAD_CONST ('absolute_import',) IMPORT_NAME __future__ IMPORT_FROM absolute_import STORE_NAME absolute_import POP_TOP LOAD_CONST 0 LOAD_CONST ('Engine',) IMPORT_NAME tests.testdata.parents IMPORT_FROM Engine STORE_NAME Engin...
""" **Steam engine** Test data standard library """ from __future__ import absolute_import from tests.testdata.parents import Engine class Steam(Engine): """Dummy steam engine""" _alias_ = "steam" def start(self): return "toot"
data/pluginlib-0.9.1/tests/testdata/lib/engines/steam.py
254
78
292,613
LOAD_CONST 0 LOAD_CONST ('Dataproc', 'InitializationAction') IMPORT_NAME yandexcloud._wrappers.dataproc IMPORT_FROM Dataproc STORE_NAME Dataproc IMPORT_FROM InitializationAction STORE_NAME InitializationAction POP_TOP LOAD_BUILD_CLASS LOAD_CONST <code object Wrappers at 0x7faac02ab5d0, file "f.py", line 4> LOAD_CONST ...
from yandexcloud._wrappers.dataproc import Dataproc, InitializationAction class Wrappers(object): def __init__(self, sdk): self.Dataproc = Dataproc self.Dataproc.sdk = sdk self.InitializationAction = InitializationAction
data/yandexcloud-0.260.0/yandexcloud/_wrappers/__init__.py
247
78
90,785
LOAD_CONST 0 LOAD_CONST ('migrations', 'models') IMPORT_NAME django.db IMPORT_FROM migrations STORE_NAME migrations IMPORT_FROM models STORE_NAME models POP_TOP LOAD_BUILD_CLASS LOAD_CONST <code object Migration at 0x7f8e2fec31e0, file "f.py", line 4> LOAD_CONST 'Migration' MAKE_FUNCTION LOAD_CONST 'Migration' LOAD_NA...
from django.db import migrations, models class Migration(migrations.Migration): initial = True operations = [ migrations.CreateModel( "Author", [ ("id", models.AutoField(primary_key=True)), ], ), ]
data/Django-5.0.2/tests/migrations/test_migrations_conflict_long_name/0001_initial.py
192
78
325,779
LOAD_CONST '\n**Electric engine**\nTest data standard library\n' STORE_NAME __doc__ LOAD_CONST 0 LOAD_CONST ('absolute_import',) IMPORT_NAME __future__ IMPORT_FROM absolute_import STORE_NAME absolute_import POP_TOP LOAD_CONST 0 LOAD_CONST ('Engine',) IMPORT_NAME tests.testdata.parents IMPORT_FROM Engine STORE_NAME En...
""" **Electric engine** Test data standard library """ from __future__ import absolute_import from tests.testdata.parents import Engine class Electric(Engine): """Dummy electric engine""" _alias_ = "electric" def start(self): return "beep"
data/pluginlib-0.9.1/tests/testdata/bare/engines/electric.py
254
78
292,607
LOAD_CONST 0 LOAD_CONST ('*',) IMPORT_NAME pymysqlreplication.tests.test_basic IMPORT_STAR LOAD_CONST 0 LOAD_CONST ('*',) IMPORT_NAME pymysqlreplication.tests.test_data_type IMPORT_STAR LOAD_CONST 0 LOAD_CONST ('*',) IMPORT_NAME pymysqlreplication.tests.test_data_objects IMPORT_STAR LOAD_CONST 0 LOAD_CONST None IMPO...
from pymysqlreplication.tests.test_basic import * from pymysqlreplication.tests.test_data_type import * from pymysqlreplication.tests.test_data_objects import * import unittest if __name__ == "__main__": unittest.main()
data/mysql-replication-1.0.6/pymysqlreplication/tests/__init__.py
138
78
49,345
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 locale STORE_NAME locale LOAD_CONST 0 LOAD_CONST ('secho',) IMPORT_NAME click IMPORT_FROM secho STORE_NAME secho POP_TOP SETUP_EXCEPT to 52 LOAD_NAME locale...
from __future__ import annotations import locale from click import secho try: locale.setlocale(locale.LC_ALL, "") except locale.Error as e: # pragma: no cover secho(f"Ignoring error when setting locale: {e}", fg="red")
data/pip-tools-7.4.0/piptools/__init__.py
202
78
438,757
LOAD_CONST 0 LOAD_CONST ('include',) IMPORT_NAME django.urls IMPORT_FROM include STORE_NAME include POP_TOP LOAD_CONST 0 LOAD_CONST ('path',) IMPORT_NAME django.urls IMPORT_FROM path STORE_NAME path POP_TOP LOAD_CONST 0 LOAD_CONST ('admin',) IMPORT_NAME django.contrib IMPORT_FROM admin STORE_NAME admin POP_TOP LOAD_...
from django.urls import include from django.urls import path from django.contrib import admin admin.autodiscover() urlpatterns = [ path("admin/", admin.site.urls), path("test-app/", include("test_app.urls")), ]
data/django-reversion-5.0.12/tests/test_project/urls.py
153
78
141,285
LOAD_NAME frozenset LOAD_CONST 429 LOAD_CONST 500 LOAD_CONST 502 LOAD_CONST 503 BUILD_LIST CALL_FUNCTION STORE_NAME MLFLOW_DEPLOYMENT_CLIENT_REQUEST_RETRY_CODES LOAD_CONST None RETURN_VALUE
MLFLOW_DEPLOYMENT_CLIENT_REQUEST_RETRY_CODES = frozenset( [ 429, # Too many requests 500, # Server Error 502, # Bad Gateway 503, # Service Unavailable ] )
data/mlflow-2.10.2/mlflow/deployments/constants.py
64
78
44,093
LOAD_CONST 0 LOAD_CONST None IMPORT_NAME typer STORE_NAME typer LOAD_NAME typer LOAD_ATTR Option LOAD_CONST Ellipsis LOAD_CONST 'Please tell me your last name' LOAD_CONST ('prompt',) CALL_FUNCTION BUILD_TUPLE LOAD_NAME str LOAD_NAME str LOAD_CONST ('name', 'lastname') BUILD_CONST_KEY_MAP LOAD_CONST <code object main a...
import typer def main( name: str, lastname: str = typer.Option(..., prompt="Please tell me your last name") ): print(f"Hello {name} {lastname}") if __name__ == "__main__": typer.run(main)
data/typer-0.9.0/docs_src/options/prompt/tutorial002.py
181
78
224,409
LOAD_CONST 'latex_cornercases.txt' STORE_NAME test_source LOAD_CONST 'latex_cornercases.tex' STORE_NAME test_destination LOAD_CONST 'latex' STORE_NAME writer_name LOAD_CONST False LOAD_CONST True LOAD_CONST ('legacy_column_widths', 'use_latex_citations') BUILD_CONST_KEY_MAP STORE_NAME settings_overrides LOAD_CONST ...
test_source = "latex_cornercases.txt" test_destination = "latex_cornercases.tex" writer_name = "latex" settings_overrides = { "legacy_column_widths": False, "use_latex_citations": True, }
data/docutils-0.20.1/test/functional/tests/latex_cornercases.py
90
78
83,268
LOAD_CONST 0 LOAD_CONST ('*',) IMPORT_NAME azure.cli.core.aaz IMPORT_STAR LOAD_NAME register_command_group LOAD_CONST 'network lb address-pool' CALL_FUNCTION LOAD_BUILD_CLASS LOAD_CONST <code object __CMDGroup at 0x7fab82197d20, file "f.py", line 4> LOAD_CONST '__CMDGroup' MAKE_FUNCTION LOAD_CONST '__CMDGroup' LOAD_...
from azure.cli.core.aaz import * @register_command_group( "network lb address-pool", ) class __CMDGroup(AAZCommandGroup): """Manage address pools of a load balancer.""" pass __all__ = ["__CMDGroup"]
data/azure-cli-2.57.0/azure/cli/command_modules/network/aaz/latest/network/lb/address_pool/__cmd_group.py
188
78
378,110
LOAD_CONST 0 LOAD_CONST None IMPORT_NAME typer STORE_NAME typer LOAD_CONST 0 LOAD_CONST ('Annotated',) IMPORT_NAME typing_extensions IMPORT_FROM Annotated STORE_NAME Annotated POP_TOP LOAD_NAME Annotated LOAD_NAME str LOAD_NAME typer LOAD_ATTR Argument LOAD_CONST 'The name of the user to greet' LOAD_CONST ('help',) C...
import typer from typing_extensions import Annotated def main(name: Annotated[str, typer.Argument(help="The name of the user to greet")]): print(f"Hello {name}") if __name__ == "__main__": typer.run(main)
data/typer-0.9.0/docs_src/arguments/help/tutorial001_an.py
198
78
224,547
LOAD_CONST 0 LOAD_CONST ('Literal',) IMPORT_NAME typing IMPORT_FROM Literal STORE_NAME Literal POP_TOP LOAD_NAME Literal LOAD_CONST ('auto', 'contain', 'none', 'y-auto', 'y-contain', 'y-none', 'x-auto', 'x-contain', 'x-none') BINARY_SUBSCR STORE_NAME OverscrollBehavior LOAD_CONST None RETURN_VALUE
from typing import Literal OverscrollBehavior = Literal[ "auto", "contain", "none", "y-auto", "y-contain", "y-none", "x-auto", "x-contain", "x-none", ]
data/nicegui-1.4.15/nicegui/tailwind_types/overscroll_behavior.py
85
78
223,342
LOAD_CONST 'Generated API for package: tensorflow_examples.lite.model_maker.third_party.recommendation.ml.configs.input_config_pb2.' STORE_NAME __doc__ LOAD_CONST 0 LOAD_CONST ('*',) IMPORT_NAME tensorflow_examples.lite.model_maker.third_party.recommendation.ml.configs.input_config_pb2 IMPORT_STAR LOAD_CONST None RETU...
"""Generated API for package: tensorflow_examples.lite.model_maker.third_party.recommendation.ml.configs.input_config_pb2.""" from tensorflow_examples.lite.model_maker.third_party.recommendation.ml.configs.input_config_pb2 import *
data/tflite-model-maker-0.4.3/src/tflite_model_maker/python/third_party/recommendation/ml/configs/input_config_pb2.py
98
78
401,196
LOAD_CONST 'Generated API for package: tensorflow_examples.lite.model_maker.third_party.recommendation.ml.configs.input_config_pb2.' STORE_NAME __doc__ LOAD_CONST 0 LOAD_CONST ('*',) IMPORT_NAME tensorflow_examples.lite.model_maker.third_party.recommendation.ml.configs.input_config_pb2 IMPORT_STAR LOAD_CONST None RETU...
"""Generated API for package: tensorflow_examples.lite.model_maker.third_party.recommendation.ml.configs.input_config_pb2.""" from tensorflow_examples.lite.model_maker.third_party.recommendation.ml.configs.input_config_pb2 import *
data/tflite-model-maker-nightly-0.4.4.dev202402210609/src/tflite_model_maker/python/third_party/recommendation/ml/configs/input_config_pb2.py
98
78
389,289
LOAD_CONST '\nThis module exists only to simplify retrieving the version number of chardet\nfrom within setuptools and from chardet subpackages.\n\n:author: Dan Blanchard (dan.blanchard@gmail.com)\n' STORE_NAME __doc__ LOAD_CONST '5.1.0' STORE_NAME __version__ LOAD_NAME __version__ LOAD_METHOD split LOAD_CONST '.' CA...
""" This module exists only to simplify retrieving the version number of chardet from within setuptools and from chardet subpackages. :author: Dan Blanchard (dan.blanchard@gmail.com) """ __version__ = "5.1.0" VERSION = __version__.split(".")
data/pipenv-2023.12.1/pipenv/patched/pip/_vendor/chardet/version.py
102
78
402,099
LOAD_CONST 'Models for laundrify platform.' STORE_NAME __doc__ LOAD_CONST 0 LOAD_CONST ('annotations',) IMPORT_NAME __future__ IMPORT_FROM annotations STORE_NAME annotations POP_TOP LOAD_CONST 0 LOAD_CONST ('TypedDict',) IMPORT_NAME typing IMPORT_FROM TypedDict STORE_NAME TypedDict POP_TOP LOAD_BUILD_CLASS LOAD_CONS...
"""Models for laundrify platform.""" from __future__ import annotations from typing import TypedDict class LaundrifyDevice(TypedDict): """laundrify Power Plug.""" _id: str name: str status: str firmwareVersion: str
data/homeassistant-2024.2.2/homeassistant/components/laundrify/model.py
281
78
407,102
LOAD_CONST 0 LOAD_CONST None IMPORT_NAME sys STORE_NAME sys LOAD_CONST 0 LOAD_CONST ('Widget',) IMPORT_NAME widget_module IMPORT_FROM Widget STORE_NAME Widget POP_TOP LOAD_BUILD_CLASS LOAD_CONST <code object DerivedWidget at 0x7fab6407aa50, file "f.py", line 6> LOAD_CONST 'DerivedWidget' MAKE_FUNCTION LOAD_CONST 'Der...
import sys from widget_module import Widget class DerivedWidget(Widget): def __init__(self, message): super().__init__(message) def the_answer(self): return 42 def argv0(self): return sys.argv[0]
data/onnx-simplifier-0.4.35/third_party/onnx-optimizer/third_party/onnx/third_party/pybind11/tests/test_embed/test_interpreter.py
358
78
309,990
LOAD_CONST 0 LOAD_CONST ('Script',) IMPORT_NAME DIRAC.Core.Base.Script IMPORT_FROM Script STORE_NAME Script POP_TOP LOAD_CONST 0 LOAD_CONST ('deprecated',) IMPORT_NAME DIRAC.Core.Utilities.Decorators IMPORT_FROM deprecated STORE_NAME deprecated POP_TOP LOAD_NAME deprecated LOAD_CONST "DIRACScript is deprecated, use ...
from DIRAC.Core.Base.Script import Script from DIRAC.Core.Utilities.Decorators import deprecated @deprecated( "DIRACScript is deprecated, use 'from DIRAC.Core.Base.Script import Script' instead." ) class DIRACScript(Script): pass
data/DIRAC-8.0.38/src/DIRAC/Core/Utilities/DIRACScript.py
201
78
429,175
LOAD_CONST 0 LOAD_CONST None IMPORT_NAME sys STORE_NAME sys LOAD_CONST 0 LOAD_CONST ('Widget',) IMPORT_NAME widget_module IMPORT_FROM Widget STORE_NAME Widget POP_TOP LOAD_BUILD_CLASS LOAD_CONST <code object DerivedWidget at 0x7fab800c7300, file "f.py", line 6> LOAD_CONST 'DerivedWidget' MAKE_FUNCTION LOAD_CONST 'Der...
import sys from widget_module import Widget class DerivedWidget(Widget): def __init__(self, message): super().__init__(message) def the_answer(self): return 42 def argv0(self): return sys.argv[0]
data/osmium-3.7.0/contrib/pybind11/tests/test_embed/test_interpreter.py
361
78
170,026
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_ListOffs...
import pytest import kernels @pytest.mark.skip(reason="Unable to generate any tests for kernel") def test_pyawkward_ListOffsetArray_reduce_nonlocal_outstartsstops_64_1(): raise NotImplementedError("Unable to generate any tests for kernel")
data/awkward-cpp-29/tests-spec/test_pyawkward_ListOffsetArray_reduce_nonlocal_outstartsstops_64.py
213
78
220,679
LOAD_CONST 'list_job_executions_for_thing' LOAD_CONST 'next_token' LOAD_CONST 'max_results' LOAD_CONST 100 LOAD_CONST 'jobId' LOAD_CONST ('input_token', 'limit_key', 'limit_default', 'unique_attribute') BUILD_CONST_KEY_MAP BUILD_MAP STORE_NAME PAGINATION_MODEL LOAD_CONST None RETURN_VALUE
PAGINATION_MODEL = { "list_job_executions_for_thing": { "input_token": "next_token", "limit_key": "max_results", "limit_default": 100, "unique_attribute": "jobId", } }
data/moto-5.0.2/moto/iot/utils.py
84
78
197,943
LOAD_CONST 0 LOAD_CONST ('Config',) IMPORT_NAME parsl.config IMPORT_FROM Config STORE_NAME Config POP_TOP LOAD_CONST 0 LOAD_CONST ('ThreadPoolExecutor',) IMPORT_NAME parsl.executors.threads IMPORT_FROM ThreadPoolExecutor STORE_NAME ThreadPoolExecutor POP_TOP LOAD_NAME Config LOAD_NAME ThreadPoolExecutor LOAD_CONST ...
from parsl.config import Config from parsl.executors.threads import ThreadPoolExecutor config = Config( executors=[ ThreadPoolExecutor( label="local_threads_checkpoint_task_exit", ) ], checkpoint_mode="task_exit", )
data/parsl-2024.2.19/parsl/tests/configs/local_threads_checkpoint_task_exit.py
125
78
123,268
LOAD_CONST 0 LOAD_CONST None IMPORT_NAME sys STORE_NAME sys LOAD_CONST 0 LOAD_CONST None IMPORT_NAME test_cmake_build STORE_NAME test_cmake_build LOAD_NAME isinstance LOAD_NAME __file__ LOAD_NAME str CALL_FUNCTION POP_JUMP_IF_TRUE LOAD_GLOBAL AssertionError RAISE_VARARGS LOAD_NAME test_cmake_build LOAD_METHOD add LO...
import sys import test_cmake_build assert isinstance(__file__, str) # Test this is properly set assert test_cmake_build.add(1, 2) == 3 print(f"{sys.argv[1]} imports, runs, and adds: 1 + 2 = 3")
data/onnx-simplifier-0.4.35/third_party/onnx-optimizer/third_party/onnx/third_party/pybind11/tests/test_cmake_build/test.py
147
78
309,989
LOAD_CONST 'Module of classes for handling training data.' STORE_NAME __doc__ LOAD_CONST 0 LOAD_CONST ('*',) IMPORT_NAME sparknlp.training.conll IMPORT_STAR LOAD_CONST 0 LOAD_CONST ('*',) IMPORT_NAME sparknlp.training.conllu IMPORT_STAR LOAD_CONST 0 LOAD_CONST ('*',) IMPORT_NAME sparknlp.training.pos IMPORT_STAR LO...
"""Module of classes for handling training data.""" from sparknlp.training.conll import * from sparknlp.training.conllu import * from sparknlp.training.pos import * from sparknlp.training.pub_tator import * from sparknlp.training.spacy_to_annotation import *
data/spark-nlp-5.2.3/sparknlp/training/__init__.py
142
78
418,100
LOAD_CONST 0 LOAD_CONST ('l3_ext_gw_multihoming',) IMPORT_NAME neutron_lib.api.definitions IMPORT_FROM l3_ext_gw_multihoming STORE_NAME l3_ext_gw_multihoming 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_CONS...
from neutron_lib.api.definitions import l3_ext_gw_multihoming from neutron_lib.tests.unit.api.definitions import base class L3ExternalGatewayMultihomingDefinitionTestCase(base.DefinitionBaseTestCase): extension_module = l3_ext_gw_multihoming
data/neutron-lib-3.10.0/neutron_lib/tests/unit/api/definitions/test_l3_multi_ext_gw.py
252
78
384,919
LOAD_CONST '\nThis module exists only to simplify retrieving the version number of chardet\nfrom within setuptools and from chardet subpackages.\n\n:author: Dan Blanchard (dan.blanchard@gmail.com)\n' STORE_NAME __doc__ LOAD_CONST '5.1.0' STORE_NAME __version__ LOAD_NAME __version__ LOAD_METHOD split LOAD_CONST '.' CA...
""" This module exists only to simplify retrieving the version number of chardet from within setuptools and from chardet subpackages. :author: Dan Blanchard (dan.blanchard@gmail.com) """ __version__ = "5.1.0" VERSION = __version__.split(".")
data/clvm_rs-0.6.0/venv/lib/python3.7/site-packages/pip/_vendor/chardet/version.py
102
78
288,465
LOAD_CONST 0 LOAD_CONST None IMPORT_NAME numpy STORE_NAME np LOAD_CONST 0 LOAD_CONST ('OpRun',) IMPORT_NAME onnx.reference.op_run IMPORT_FROM OpRun STORE_NAME OpRun POP_TOP LOAD_BUILD_CLASS LOAD_CONST <code object NonZero at 0x7f8ece8a89c0, file "f.py", line 6> LOAD_CONST 'NonZero' MAKE_FUNCTION LOAD_CONST 'NonZero' ...
import numpy as np from onnx.reference.op_run import OpRun class NonZero(OpRun): def _run(self, x): # type: ignore res = np.vstack(np.nonzero(x)).astype(np.int64) return (res,)
data/onnxsim-0.4.35/third_party/onnx-optimizer/third_party/onnx/onnx/reference/ops/op_non_zero.py
235
78
114,207
LOAD_CONST 0 LOAD_CONST None IMPORT_NAME sys STORE_NAME sys LOAD_NAME sys LOAD_ATTR version_info LOAD_CONST 0 BINARY_SUBSCR LOAD_CONST 2 COMPARE_OP == POP_JUMP_IF_FALSE LOAD_CONST 1 LOAD_CONST ('raise_from',) IMPORT_NAME py2 IMPORT_FROM raise_from STORE_NAME raise_from POP_TOP JUMP_FORWARD to 48 LOAD_CONST 1 LOAD_CO...
import sys """ Decorating and re-raising an exception is a pain in Python 2 Python 3 "fixes" this pain by introducing new syntax! """ if sys.version_info[0] == 2: from .py2 import raise_from else: from .py3 import raise_from
data/pgcopy-1.5.0/pgcopy/errors/__init__.py
106
78
137,400
LOAD_CONST 1 LOAD_CONST ('Type',) IMPORT_NAME type_spec IMPORT_FROM Type STORE_NAME Type POP_TOP LOAD_BUILD_CLASS LOAD_CONST <code object unknown at 0x7faa75305d20, file "f.py", line 4> LOAD_CONST 'unknown' MAKE_FUNCTION LOAD_CONST 'unknown' CALL_FUNCTION STORE_NAME unknown LOAD_CONST None RETURN_VALUE LOAD_NAME __na...
from .type_spec import Type class unknown: """ unknown is basically Any type. """ @classmethod def __type_info__(cls): return Type("unknown", python_class=cls) def __init__(self, val=None): self.val = val
data/coremltools-7.1/coremltools/converters/mil/mil/types/type_unknown.py
282
78
447,327
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 ExpandedQueryParameters at 0x7fab541051e0, file "f.py", line 4> LOAD_CONST 'ExpandedQueryParameters' MAKE_FUNCTION LOAD_CONST 'ExpandedQuer...
from office365.runtime.client_value import ClientValue class ExpandedQueryParameters(ClientValue): """This object contains the dictionary of the expanded query parameters.""" @property def entity_type_name(self): return "Microsoft.Office.Server.Search.REST.ExpandedQueryParameters"
data/Office365-REST-Python-Client-2.5.5/office365/sharepoint/search/query/expanded_parameters.py
243
78
189,475
LOAD_CONST 0 LOAD_CONST None IMPORT_NAME pandas STORE_NAME pd LOAD_CONST 0 LOAD_CONST ('types',) IMPORT_NAME pandas.api IMPORT_FROM types STORE_NAME pdt POP_TOP LOAD_CONST 0 LOAD_CONST ('Sparse',) IMPORT_NAME visions.types.sparse IMPORT_FROM Sparse STORE_NAME Sparse POP_TOP LOAD_NAME Sparse LOAD_ATTR contains_op LOA...
import pandas as pd from pandas.api import types as pdt from visions.types.sparse import Sparse @Sparse.contains_op.register def sparse_contains(series: pd.Series, state: dict) -> bool: return pdt.is_sparse(series)
data/visions-0.7.6/src/visions/backends/pandas/types/sparse.py
185
78
78,104
LOAD_CONST 0 LOAD_CONST ('AsyncioDispatcher',) IMPORT_NAME pysnmp.carrier.asyncio.dispatch IMPORT_FROM AsyncioDispatcher STORE_NAME AsyncioDispatcher POP_TOP LOAD_CONST 0 LOAD_CONST ('AbstractTransport',) IMPORT_NAME pysnmp.carrier.base IMPORT_FROM AbstractTransport STORE_NAME AbstractTransport POP_TOP LOAD_BUILD_CLA...
from pysnmp.carrier.asyncio.dispatch import AsyncioDispatcher from pysnmp.carrier.base import AbstractTransport class AbstractAsyncioTransport(AbstractTransport): protoTransportDispatcher = AsyncioDispatcher """Base Asyncio Transport, to be used with AsyncioDispatcher"""
data/pysnmp_lextudio-6.0.2/pysnmp/carrier/asyncio/base.py
194
78
343,814
LOAD_BUILD_CLASS LOAD_CONST <code object ValidationError at 0x7faa53d20540, file "f.py", line 1> LOAD_CONST 'ValidationError' MAKE_FUNCTION LOAD_CONST 'ValidationError' LOAD_NAME Exception CALL_FUNCTION STORE_NAME ValidationError LOAD_BUILD_CLASS LOAD_CONST <code object ConfigurationError at 0x7faa53d20780, file "f.py...
class ValidationError(Exception): """Thrown when a configuration value can not be coerced into the expected type by a validator. """ pass class ConfigurationError(Exception): """Thrown when there is an error loading configuration from a file or object. """ pass
data/PyStaticConfiguration-0.11.1/staticconf/errors.py
244
78
136,301
LOAD_CONST 0 LOAD_CONST ('Entity',) IMPORT_NAME office365.sharepoint.entity IMPORT_FROM Entity STORE_NAME Entity POP_TOP LOAD_BUILD_CLASS LOAD_CONST <code object ReorderingRuleCollection at 0x7fab7002b540, file "f.py", line 4> LOAD_CONST 'ReorderingRuleCollection' MAKE_FUNCTION LOAD_CONST 'ReorderingRuleCollection' LO...
from office365.sharepoint.entity import Entity class ReorderingRuleCollection(Entity): """Contains information about how to reorder the search results.""" @property def entity_type_name(self): return "Microsoft.SharePoint.Client.Search.Query.ReorderingRuleCollection"
data/Office365-REST-Python-Client-2.5.5/office365/sharepoint/search/reordering_rule_collection.py
248
78
189,451
LOAD_CONST 1 LOAD_CONST ('AugMix',) IMPORT_NAME augmix IMPORT_FROM AugMix STORE_NAME AugMix POP_TOP LOAD_CONST 1 LOAD_CONST ('CutMix', 'MixUp', 'MixVideo') IMPORT_NAME mix IMPORT_FROM CutMix STORE_NAME CutMix IMPORT_FROM MixUp STORE_NAME MixUp IMPORT_FROM MixVideo STORE_NAME MixVideo POP_TOP LOAD_CONST 1 LOAD_CONST (...
from .augmix import AugMix # noqa from .mix import CutMix, MixUp, MixVideo # noqa from .rand_augment import RandAugment # noqa from .transforms import * # noqa from .transforms_factory import create_video_transform # noqa
data/pytorchvideo-0.1.5/pytorchvideo/transforms/__init__.py
166
78
166,873
LOAD_CONST 0 LOAD_CONST ('external_net',) IMPORT_NAME neutron_lib.api.definitions IMPORT_FROM external_net STORE_NAME external_net 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 ExternalNetD...
from neutron_lib.api.definitions import external_net from neutron_lib.tests.unit.api.definitions import base class ExternalNetDefinitionTestCase(base.DefinitionBaseTestCase): extension_module = external_net extension_resources = () extension_attributes = (external_net.EXTERNAL,)
data/neutron-lib-3.10.0/neutron_lib/tests/unit/api/definitions/test_external_net.py
212
78
384,897
LOAD_CONST 0 LOAD_CONST None IMPORT_NAME os STORE_NAME os LOAD_CONST 0 LOAD_CONST None IMPORT_NAME sys STORE_NAME sys LOAD_NAME __name__ LOAD_CONST '__main__' COMPARE_OP == POP_JUMP_IF_FALSE LOAD_NAME os LOAD_ATTR environ LOAD_METHOD setdefault LOAD_CONST 'DJANGO_SETTINGS_MODULE' LOAD_CONST 'testsettings' CALL_METHO...
import os import sys if __name__ == "__main__": os.environ.setdefault("DJANGO_SETTINGS_MODULE", "testsettings") from django.core.management import execute_from_command_line execute_from_command_line(sys.argv)
data/django-netfields-1.3.2/manage.py
152
78
388,928
LOAD_CONST 0 LOAD_CONST ('GFKManagerTestCase',) IMPORT_NAME actstream.tests.test_gfk IMPORT_FROM GFKManagerTestCase STORE_NAME GFKManagerTestCase POP_TOP LOAD_CONST 0 LOAD_CONST ('ZombieTest',) IMPORT_NAME actstream.tests.test_zombies IMPORT_FROM ZombieTest STORE_NAME ZombieTest POP_TOP LOAD_CONST 0 LOAD_CONST ('Acti...
from actstream.tests.test_gfk import GFKManagerTestCase from actstream.tests.test_zombies import ZombieTest from actstream.tests.test_activity import ActivityTestCase from actstream.tests.test_feeds import FeedsTestCase from actstream.tests.test_views import ViewsTest
data/django-activity-stream-2.0.0/actstream/tests/__init__.py
189
78
98,682
LOAD_CONST 0 LOAD_CONST ('router_interface_fip',) IMPORT_NAME neutron_lib.api.definitions IMPORT_FROM router_interface_fip STORE_NAME router_interface_fip 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 <...
from neutron_lib.api.definitions import router_interface_fip from neutron_lib.tests.unit.api.definitions import base class RouterInterfaceFipDefinitionTestCase(base.DefinitionBaseTestCase): extension_module = router_interface_fip extension_resources = () extension_attributes = ()
data/neutron-lib-3.10.0/neutron_lib/tests/unit/api/definitions/test_router_interface_fip.py
228
78
384,887
SETUP_ANNOTATIONS LOAD_NAME tuple LOAD_NAME int BUILD_TUPLE BINARY_SUBSCR LOAD_NAME __annotations__ LOAD_CONST 'a' STORE_SUBSCR LOAD_NAME tuple LOAD_NAME int BUILD_TUPLE BINARY_SUBSCR STORE_NAME b LOAD_NAME tuple LOAD_NAME int LOAD_NAME int BUILD_TUPLE BINARY_SUBSCR LOAD_NAME __annotations__ LOAD_CONST 'c' STORE_SU...
a: tuple[int,] b = tuple[int,] c: tuple[ int, int, ] d = tuple[ int, int, ] small_list = [ 1, ] list_of_types = [ tuple[int,], ]
data/ruff-0.2.2/crates/ruff_python_formatter/resources/test/fixtures/black/cases/one_element_subscript.py
124
78
342,154
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_BUILD_CLASS LOAD_CO...
from __future__ import absolute_import, division, print_function __metaclass__ = type class ModuleDocFragment(object): DOCUMENTATION = """ options: name: description: - Retrieve information about this specific object instead of listing all objects. type: str """
data/ansible-9.2.0/ansible_collections/sensu/sensu_go/plugins/doc_fragments/info.py
203
78
6,931
LOAD_CONST 0 LOAD_CONST None IMPORT_NAME torch STORE_NAME torch LOAD_CONST <code object autodetect_device at 0x7fab4205fe40, file "f.py", line 4> LOAD_CONST 'autodetect_device' MAKE_FUNCTION STORE_NAME autodetect_device LOAD_CONST None RETURN_VALUE LOAD_GLOBAL torch LOAD_ATTR cuda LOAD_METHOD is_available CALL_METHOD...
import torch def autodetect_device(): """ Autodetects the device to use for inference. Returns ------- str The device to use for inference. """ return "cuda" if torch.cuda.is_available() else "cpu"
data/swarms-4.1.6/swarms/utils/torch_utils.py
110
78
307,712
LOAD_CONST 0 LOAD_CONST None IMPORT_NAME numpy STORE_NAME np LOAD_CONST 1 LOAD_CONST ('OpRunUnaryNum',) IMPORT_NAME _op IMPORT_FROM OpRunUnaryNum STORE_NAME OpRunUnaryNum POP_TOP LOAD_BUILD_CLASS LOAD_CONST <code object Reciprocal at 0x7fab70078930, file "f.py", line 6> LOAD_CONST 'Reciprocal' MAKE_FUNCTION LOAD_CONS...
import numpy as np from ._op import OpRunUnaryNum class Reciprocal(OpRunUnaryNum): def _run(self, x): # type: ignore with np.errstate(divide="ignore"): return (np.reciprocal(x),)
data/onnxoptimizer-0.3.13/third_party/onnx/onnx/reference/ops/op_reciprocal.py
264
78
85,651
LOAD_CONST 0 LOAD_CONST None IMPORT_NAME os STORE_NAME os LOAD_CONST 0 LOAD_CONST None IMPORT_NAME sys STORE_NAME sys LOAD_NAME __name__ LOAD_CONST '__main__' COMPARE_OP == POP_JUMP_IF_FALSE LOAD_NAME os LOAD_ATTR environ LOAD_METHOD setdefault LOAD_CONST 'DJANGO_SETTINGS_MODULE' LOAD_CONST 'tests.settings' CALL_MET...
import os import sys if __name__ == "__main__": os.environ.setdefault("DJANGO_SETTINGS_MODULE", "tests.settings") from django.core.management import execute_from_command_line execute_from_command_line(sys.argv)
data/social-auth-app-django-5.4.0/manage.py
153
78
20,096
LOAD_CONST 1 LOAD_CONST ('read_nwchem_out',) IMPORT_NAME nwreader IMPORT_FROM read_nwchem_out STORE_NAME read_nwchem_out POP_TOP LOAD_CONST 1 LOAD_CONST ('write_nwchem_in',) IMPORT_NAME nwwriter IMPORT_FROM write_nwchem_in STORE_NAME write_nwchem_in POP_TOP LOAD_CONST 1 LOAD_CONST ('read_nwchem_in',) IMPORT_NAME nwre...
from .nwreader import read_nwchem_out from .nwwriter import write_nwchem_in from .nwreader_in import read_nwchem_in __all__ = ["read_nwchem_out", "write_nwchem_in", "read_nwchem_in"]
data/ase-3.22.1/ase/io/nwchem/__init__.py
173
78
45,580
LOAD_CONST 0 LOAD_CONST ('ApiForget',) IMPORT_NAME onelogin.paths.api_2_apps_app_id_rules_conditions_rule_condition_value_operators.get IMPORT_FROM ApiForget STORE_NAME ApiForget POP_TOP LOAD_BUILD_CLASS LOAD_CONST <code object Api2AppsAppIdRulesConditionsRuleConditionValueOperators at 0x7f8e2ff5e6f0, file "f.py", lin...
from onelogin.paths.api_2_apps_app_id_rules_conditions_rule_condition_value_operators.get import ( ApiForget, ) class Api2AppsAppIdRulesConditionsRuleConditionValueOperators( ApiForget, ): pass
data/onelogin-3.1.6/onelogin/apis/paths/api_2_apps_app_id_rules_conditions_rule_condition_value_operators.py
223
78
397,227
BUILD_LIST STORE_NAME THINGS LOAD_CONST <code object setUpModule at 0x7fab8019b5d0, file "f.py", line 4> LOAD_CONST 'setUpModule' MAKE_FUNCTION STORE_NAME setUpModule LOAD_CONST <code object tearDownModule at 0x7fab8019bc00, file "f.py", line 8> LOAD_CONST 'tearDownModule' MAKE_FUNCTION STORE_NAME tearDownModule LOA...
THINGS = [] def setUpModule(): THINGS.append(1) def tearDownModule(): while THINGS: THINGS.pop() def test(p): assert THINGS, "setup didn't run I think" test.paramList = (1,)
data/nose2-0.14.1/nose2/tests/functional/support/scenario/module_fixtures/test_mf_param_func.py
253
78
310,229
LOAD_CONST 0 LOAD_CONST None IMPORT_NAME logging STORE_NAME logging LOAD_CONST 0 LOAD_CONST ('ABCMeta',) IMPORT_NAME abc IMPORT_FROM ABCMeta STORE_NAME ABCMeta POP_TOP LOAD_CONST 0 LOAD_CONST ('VaultApiBase',) IMPORT_NAME hvac.api.vault_api_base IMPORT_FROM VaultApiBase STORE_NAME VaultApiBase POP_TOP LOAD_NAME logg...
import logging from abc import ABCMeta from hvac.api.vault_api_base import VaultApiBase logger = logging.getLogger(__name__) class SystemBackendMixin(VaultApiBase, metaclass=ABCMeta): """Base class for System Backend API endpoints."""
data/hvac-2.1.0/hvac/api/system_backend/system_backend_mixin.py
241
78
389,224
LOAD_CONST 0 LOAD_CONST None IMPORT_NAME sys STORE_NAME sys LOAD_CONST 0 LOAD_CONST ('Widget',) IMPORT_NAME widget_module IMPORT_FROM Widget STORE_NAME Widget POP_TOP LOAD_BUILD_CLASS LOAD_CONST <code object DerivedWidget at 0x7f8e447b2540, file "f.py", line 6> LOAD_CONST 'DerivedWidget' MAKE_FUNCTION LOAD_CONST 'Der...
import sys from widget_module import Widget class DerivedWidget(Widget): def __init__(self, message): super().__init__(message) def the_answer(self): return 42 def argv0(self): return sys.argv[0]
data/onnxsim-0.4.35/third_party/onnx-optimizer/third_party/onnx/third_party/pybind11/tests/test_embed/test_interpreter.py
362
78
114,661
LOAD_CONST 0 LOAD_CONST None IMPORT_NAME sys STORE_NAME sys LOAD_CONST 0 LOAD_CONST None IMPORT_NAME test_cmake_build STORE_NAME test_cmake_build LOAD_NAME isinstance LOAD_NAME __file__ LOAD_NAME str CALL_FUNCTION POP_JUMP_IF_TRUE LOAD_GLOBAL AssertionError RAISE_VARARGS LOAD_NAME test_cmake_build LOAD_METHOD add LO...
import sys import test_cmake_build assert isinstance(__file__, str) # Test this is properly set assert test_cmake_build.add(1, 2) == 3 print(f"{sys.argv[1]} imports, runs, and adds: 1 + 2 = 3")
data/onnxsim-0.4.35/third_party/onnx-optimizer/third_party/onnx/third_party/pybind11/tests/test_cmake_build/test.py
147
78
114,660
LOAD_CONST '\nThis module exists only to simplify retrieving the version number of chardet\nfrom within setuptools and from chardet subpackages.\n\n:author: Dan Blanchard (dan.blanchard@gmail.com)\n' STORE_NAME __doc__ LOAD_CONST '5.1.0' STORE_NAME __version__ LOAD_NAME __version__ LOAD_METHOD split LOAD_CONST '.' CA...
""" This module exists only to simplify retrieving the version number of chardet from within setuptools and from chardet subpackages. :author: Dan Blanchard (dan.blanchard@gmail.com) """ __version__ = "5.1.0" VERSION = __version__.split(".")
data/pip-24.0/src/pip/_vendor/chardet/version.py
102
78
324,813
LOAD_CONST 0 LOAD_CONST None IMPORT_NAME jaxlib.mlir.ir IMPORT_FROM mlir ROT_TWO POP_TOP IMPORT_FROM ir STORE_NAME ir POP_TOP LOAD_CONST 0 LOAD_CONST None IMPORT_NAME jaxlib.mlir.passmanager IMPORT_FROM mlir ROT_TWO POP_TOP IMPORT_FROM passmanager STORE_NAME passmanager POP_TOP SETUP_EXCEPT to 54 LOAD_CONST 0 LOAD_C...
import jaxlib.mlir.ir as ir import jaxlib.mlir.passmanager as passmanager try: from jaxlib.mlir._mlir_libs import register_jax_dialects # type: ignore except ImportError: register_jax_dialects = None
data/jax-0.4.24/jax/_src/lib/mlir/__init__.py
192
78
328,860
LOAD_CONST 0 LOAD_CONST ('Optional',) IMPORT_NAME typing IMPORT_FROM Optional STORE_NAME Optional POP_TOP LOAD_CONST 0 LOAD_CONST None IMPORT_NAME warnings STORE_NAME warnings LOAD_NAME str LOAD_NAME str LOAD_NAME str LOAD_CONST ('description', 'deprecated_in', 'removal_in') BUILD_CONST_KEY_MAP LOAD_CONST <code objec...
from typing import Optional import warnings def warn_deprecated(description: str, deprecated_in: str, removal_in: str): message = f"DEPRECATED since v{deprecated_in} [Will be removed in v{removal_in}]: {description}" warnings.warn(message, FutureWarning)
data/pinecone_client-3.0.3/pinecone/utils/deprecation_notice.py
189
78
251,323
LOAD_CONST 0 LOAD_CONST ('Vibrations',) IMPORT_NAME ase.vibrations.vibrations IMPORT_FROM Vibrations STORE_NAME Vibrations POP_TOP LOAD_CONST 0 LOAD_CONST ('VibrationsData',) IMPORT_NAME ase.vibrations.data IMPORT_FROM VibrationsData STORE_NAME VibrationsData POP_TOP LOAD_CONST 0 LOAD_CONST ('Infrared',) IMPORT_NAME ...
from ase.vibrations.vibrations import Vibrations from ase.vibrations.data import VibrationsData from ase.vibrations.infrared import Infrared __all__ = ["Vibrations", "VibrationsData", "Infrared"]
data/ase-3.22.1/ase/vibrations/__init__.py
158
78
45,713
LOAD_CONST 0 LOAD_CONST ('TenantTypeTwoView',) IMPORT_NAME tenant_type_two_only.views IMPORT_FROM TenantTypeTwoView STORE_NAME TenantTypeTwoView POP_TOP LOAD_CONST 0 LOAD_CONST ('path',) IMPORT_NAME django.urls IMPORT_FROM path STORE_NAME path POP_TOP LOAD_CONST 0 LOAD_CONST ('admin',) IMPORT_NAME django.contrib IMPO...
from tenant_type_two_only.views import TenantTypeTwoView from django.urls import path from django.contrib import admin urlpatterns = [ path("", TenantTypeTwoView.as_view(), name="index"), path("admin/", admin.site.urls), ]
data/django-tenants-3.6.1/examples/tenant_multi_types/tenant_multi_types_tutorial/urls_type2.py
160
78
224,867
LOAD_CONST 0 LOAD_CONST None IMPORT_NAME secrets STORE_NAME secrets LOAD_CONST 0 LOAD_CONST None IMPORT_NAME string STORE_NAME string LOAD_NAME string LOAD_ATTR ascii_letters LOAD_NAME string LOAD_ATTR digits BINARY_ADD LOAD_CONST '$%*,-./:=>?@^_~' BINARY_ADD STORE_NAME chars LOAD_CONST (64,) LOAD_NAME int LOAD_CONS...
import secrets import string chars = string.ascii_letters + string.digits + "$%*,-./:=>?@^_~" def random_secret(length: int = 64): return "".join((secrets.choice(chars) for i in range(length)))
data/chainlit-1.0.301/chainlit/secret.py
253
78
171,445
LOAD_CONST '\nProvides towncrier version information.\n' STORE_NAME __doc__ LOAD_CONST 0 LOAD_CONST ('Version',) IMPORT_NAME incremental IMPORT_FROM Version STORE_NAME Version POP_TOP LOAD_NAME Version LOAD_CONST 'towncrier' LOAD_CONST 23 LOAD_CONST 11 LOAD_CONST 0 CALL_FUNCTION STORE_NAME __version__ LOAD_NAME __ve...
""" Provides towncrier version information. """ from incremental import Version __version__ = Version("towncrier", 23, 11, 0) _hatchling_version = __version__.short() __all__ = ["__version__", "_hatchling_version"]
data/towncrier-23.11.0/src/towncrier/_version.py
122
78
305,141
LOAD_CONST 0 LOAD_CONST ('gcp_audit_info',) IMPORT_NAME prowler.providers.gcp.lib.audit_info.audit_info IMPORT_FROM gcp_audit_info STORE_NAME gcp_audit_info POP_TOP LOAD_CONST 0 LOAD_CONST ('EssentialContacts',) IMPORT_NAME prowler.providers.gcp.services.iam.iam_service IMPORT_FROM EssentialContacts STORE_NAME Essenti...
from prowler.providers.gcp.lib.audit_info.audit_info import gcp_audit_info from prowler.providers.gcp.services.iam.iam_service import EssentialContacts essentialcontacts_client = EssentialContacts(gcp_audit_info)
data/prowler-3.14.0/prowler/providers/gcp/services/iam/essentialcontacts_client.py
137
78
182,943
LOAD_CONST 0 LOAD_CONST ('params',) IMPORT_NAME nose2.tools.params IMPORT_FROM params STORE_NAME params POP_TOP LOAD_CONST <code object test_demo at 0x7fab8019b4b0, file "f.py", line 4> LOAD_CONST 'test_demo' MAKE_FUNCTION STORE_NAME test_demo LOAD_NAME params LOAD_CONST ('foo',) LOAD_CONST ('bar',) CALL_FUNCTION LOA...
from nose2.tools.params import params def test_demo(): x = 1 y = 2 assert x > y, "oh noez, x <= y" @params(("foo",), ("bar",)) def test_multiline_deco(value): assert not value
data/nose2-0.14.1/nose2/tests/functional/support/scenario/pretty_asserts/multiline_funcdef/test_multiline_funcdef.py
237
78
310,252
LOAD_CONST 0 LOAD_CONST ('FileItem', 'FileItemDict', 'fsspec_filesystem', 'glob_files') IMPORT_NAME dlt.common.storages.fsspec_filesystem IMPORT_FROM FileItem STORE_NAME FileItem IMPORT_FROM FileItemDict STORE_NAME FileItemDict IMPORT_FROM fsspec_filesystem STORE_NAME fsspec_filesystem IMPORT_FROM glob_files STORE_NAME...
from dlt.common.storages.fsspec_filesystem import ( FileItem, FileItemDict, fsspec_filesystem, glob_files, ) __all__ = ["FileItem", "FileItemDict", "fsspec_filesystem", "glob_files"]
data/dlt-0.4.4/dlt/sources/filesystem.py
138
78
56,237
LOAD_BUILD_CLASS LOAD_CONST <code object LocalstackExit at 0x7fab82258030, file "f.py", line 1> LOAD_CONST 'LocalstackExit' MAKE_FUNCTION LOAD_CONST 'LocalstackExit' LOAD_NAME Exception CALL_FUNCTION STORE_NAME LocalstackExit LOAD_CONST None RETURN_VALUE LOAD_NAME __name__ STORE_NAME __module__ LOAD_CONST 'LocalstackE...
class LocalstackExit(Exception): """ This exception can be raised during the startup procedure to terminate localstack with an exit code and a reason. """ def __init__(self, reason: str = None, code: int = 0): super().__init__(reason) self.code = code
data/localstack-core-3.1.0/localstack/runtime/exceptions.py
258
78
225,737
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 ('CertificatesClient',) IMPORT_NAME certificates_client IMPORT_FROM CertificatesClient STORE_NAME CertificatesClient POP_TOP LOAD_CONST 1 LOAD_CONST ('Certificates...
from __future__ import absolute_import from .certificates_client import CertificatesClient from .certificates_client_composite_operations import ( CertificatesClientCompositeOperations, ) from . import models __all__ = ["CertificatesClient", "CertificatesClientCompositeOperations", "models"]
data/oci-2.122.0/src/oci/certificates/__init__.py
167
78
409,261
LOAD_CONST ('schema', 'io', 'datafile', 'protocol', 'ipc') STORE_NAME __all__ LOAD_CONST 0 LOAD_CONST None IMPORT_NAME pkgutil STORE_NAME pkgutil LOAD_NAME pkgutil LOAD_METHOD get_data LOAD_NAME __name__ LOAD_CONST 'VERSION.txt' CALL_METHOD JUMP_IF_TRUE_OR_POP LOAD_CONST b'0.0.1+unknown' LOAD_METHOD decode CALL_METHO...
__all__ = ("schema", "io", "datafile", "protocol", "ipc") import pkgutil __version__ = ( (pkgutil.get_data(__name__, "VERSION.txt") or b"0.0.1+unknown").decode().strip() ) VERSION = __version__
data/avro-python3-1.10.2/avro/__init__.py
113
78
87,341
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_UnionArr...
import pytest import kernels @pytest.mark.skip(reason="Unable to generate any tests for kernel") def test_pyawkward_UnionArray8_64_nestedfill_tags_index_64_1(): raise NotImplementedError("Unable to generate any tests for kernel")
data/awkward-cpp-29/tests-spec/test_pyawkward_UnionArray8_64_nestedfill_tags_index_64.py
212
78
220,646
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 ExternalNetworkInUse at 0x7fab542add20, file "f.py", line 5> LOA...
from neutron_lib._i18n import _ from neutron_lib import exceptions class ExternalNetworkInUse(exceptions.InUse): message = _( "External network %(net_id)s cannot be updated to be made " "non-external, since it has existing gateway ports." )
data/neutron-lib-3.10.0/neutron_lib/exceptions/external_net.py
198
78
385,071
LOAD_CONST '\nURLS for organizations\n' STORE_NAME __doc__ LOAD_CONST 0 LOAD_CONST ('include', 're_path') IMPORT_NAME django.urls IMPORT_FROM include STORE_NAME include IMPORT_FROM re_path STORE_NAME re_path POP_TOP LOAD_CONST 'organizations' STORE_NAME app_name LOAD_NAME re_path LOAD_CONST '^v0/' LOAD_NAME include ...
""" URLS for organizations """ from django.urls import include, re_path app_name = "organizations" # pylint: disable=invalid-name urlpatterns = [ re_path(r"^v0/", include("organizations.v0.urls")), ]
data/edx-organizations-6.12.1/organizations/urls.py
113
78
321,505
LOAD_CONST 0 LOAD_CONST None IMPORT_NAME logging STORE_NAME logging LOAD_CONST 'Cloudreach' STORE_NAME __author__ LOAD_CONST 'sceptre@cloudreach.com' STORE_NAME __email__ LOAD_BUILD_CLASS LOAD_CONST <code object NullHandler at 0x7fab4158edb0, file "f.py", line 8> LOAD_CONST 'NullHandler' MAKE_FUNCTION LOAD_CONST 'Nu...
import logging __author__ = "Cloudreach" __email__ = "sceptre@cloudreach.com" class NullHandler(logging.Handler): # pragma: no cover def emit(self, record): pass logging.getLogger("sceptre").addHandler(NullHandler())
data/sceptre-4.4.2/sceptre/plan/__init__.py
221
78
357,637
LOAD_CONST "Dataset definition for beans.\n\nDEPRECATED!\nIf you want to use the Beans dataset builder class, use:\ntfds.builder_cls('beans')\n" STORE_NAME __doc__ LOAD_CONST 0 LOAD_CONST ('lazy_builder_import',) IMPORT_NAME tensorflow_datasets.core IMPORT_FROM lazy_builder_import STORE_NAME lazy_builder_import POP_TO...
"""Dataset definition for beans. DEPRECATED! If you want to use the Beans dataset builder class, use: tfds.builder_cls('beans') """ from tensorflow_datasets.core import lazy_builder_import Beans = lazy_builder_import.LazyBuilderImport("beans")
data/tfds-nightly-4.9.4.dev202402210044/tensorflow_datasets/image_classification/beans.py
122
78
238,512
LOAD_CONST 0 LOAD_CONST None IMPORT_NAME logging STORE_NAME logging LOAD_CONST 'Cloudreach' STORE_NAME __author__ LOAD_CONST 'sceptre@cloudreach.com' STORE_NAME __email__ LOAD_BUILD_CLASS LOAD_CONST <code object NullHandler at 0x7faa75c44390, file "f.py", line 8> LOAD_CONST 'NullHandler' MAKE_FUNCTION LOAD_CONST 'Nu...
import logging __author__ = "Cloudreach" __email__ = "sceptre@cloudreach.com" class NullHandler(logging.Handler): # pragma: no cover def emit(self, record): pass logging.getLogger("sceptre").addHandler(NullHandler())
data/sceptre-4.4.2/sceptre/config/__init__.py
222
78
357,624
LOAD_CONST 1 LOAD_CONST ('BaseImportRewrite',) IMPORT_NAME base IMPORT_FROM BaseImportRewrite STORE_NAME BaseImportRewrite POP_TOP LOAD_BUILD_CLASS LOAD_CONST <code object ImportPathlibTransformer at 0x7faa5de0d030, file "f.py", line 4> LOAD_CONST 'ImportPathlibTransformer' MAKE_FUNCTION LOAD_CONST 'ImportPathlibTrans...
from .base import BaseImportRewrite class ImportPathlibTransformer(BaseImportRewrite): """Replaces pathlib with backported pathlib2.""" target = (3, 3) rewrites = [("pathlib", "pathlib2")] dependencies = ["pathlib2"]
data/py-backwards-0.7/py_backwards/transformers/import_pathlib.py
208
78
22,976
LOAD_CONST 1 LOAD_CONST ('*',) IMPORT_NAME generated.custom IMPORT_STAR SETUP_EXCEPT to 22 LOAD_CONST 1 LOAD_CONST ('*',) IMPORT_NAME manual.custom IMPORT_STAR POP_BLOCK JUMP_FORWARD to 74 DUP_TOP LOAD_NAME ImportError COMPARE_OP exception match POP_JUMP_IF_FALSE POP_TOP STORE_NAME e POP_TOP SETUP_FINALLY to 60 LOA...
from .generated.custom import * # noqa: F403 try: from .manual.custom import * # noqa: F403 except ImportError as e: if e.name.endswith("manual.custom"): pass else: raise e
data/azure-cli-2.57.0/azure/cli/command_modules/marketplaceordering/custom.py
144
78
377,324
LOAD_CONST 1 LOAD_CONST ('*',) IMPORT_NAME generated.action IMPORT_STAR SETUP_EXCEPT to 22 LOAD_CONST 1 LOAD_CONST ('*',) IMPORT_NAME manual.action IMPORT_STAR POP_BLOCK JUMP_FORWARD to 74 DUP_TOP LOAD_NAME ImportError COMPARE_OP exception match POP_JUMP_IF_FALSE POP_TOP STORE_NAME e POP_TOP SETUP_FINALLY to 60 LOA...
from .generated.action import * # noqa: F403 try: from .manual.action import * # noqa: F403 except ImportError as e: if e.name.endswith("manual.action"): pass else: raise e
data/azure-cli-2.57.0/azure/cli/command_modules/marketplaceordering/action.py
144
78
377,325
LOAD_CONST 0 LOAD_CONST ('annotations',) IMPORT_NAME __future__ IMPORT_FROM annotations STORE_NAME annotations POP_TOP LOAD_CONST 0 LOAD_CONST ('TYPE_CHECKING',) IMPORT_NAME typing IMPORT_FROM TYPE_CHECKING STORE_NAME TYPE_CHECKING POP_TOP LOAD_NAME TYPE_CHECKING POP_JUMP_IF_FALSE LOAD_CONST 0 LOAD_CONST ('Solution'...
from __future__ import annotations from typing import TYPE_CHECKING if TYPE_CHECKING: from crashtest.contracts.solution import Solution class ProvidesSolution: @property def solution(self) -> Solution: raise NotImplementedError()
data/crashtest-0.4.1/crashtest/contracts/provides_solution.py
287
78
49,500
LOAD_CONST ' Configuration for py.test test run\n' STORE_NAME __doc__ LOAD_CONST <code object pytest_ignore_collect at 0x7fab416c6030, file "f.py", line 5> LOAD_CONST 'pytest_ignore_collect' MAKE_FUNCTION STORE_NAME pytest_ignore_collect LOAD_CONST None RETURN_VALUE LOAD_FAST path LOAD_ATTR basename LOAD_CONST '_gohl...
""" Configuration for py.test test run """ def pytest_ignore_collect(path, config): """Skip the origin Gohlke transforms for doctests. That file needs some specific doctest setup. """ return path.basename == "_gohlketransforms.py"
data/transforms3d-0.4.1/transforms3d/conftest.py
106
78
371,308
LOAD_CONST 0 LOAD_CONST ('Dict', 'Type') IMPORT_NAME typing IMPORT_FROM Dict STORE_NAME Dict IMPORT_FROM Type STORE_NAME Type POP_TOP LOAD_CONST 1 LOAD_CONST ('PoeExecutor',) IMPORT_NAME base IMPORT_FROM PoeExecutor STORE_NAME PoeExecutor POP_TOP LOAD_BUILD_CLASS LOAD_CONST <code object SimpleExecutor at 0x7fab702a69...
from typing import Dict, Type from .base import PoeExecutor class SimpleExecutor(PoeExecutor): """ A poe executor implementation that executes tasks without doing any special setup. """ __key__ = "simple" __options__: Dict[str, Type] = {}
data/poethepoet-0.24.4/poethepoet/executor/simple.py
232
78
363,127
LOAD_CONST 0 LOAD_CONST None IMPORT_NAME abc STORE_NAME abc LOAD_CONST 1 LOAD_CONST ('AbstractFileSystem',) IMPORT_NAME filesystem IMPORT_FROM AbstractFileSystem STORE_NAME AbstractFileSystem POP_TOP LOAD_BUILD_CLASS LOAD_CONST <code object AbstractPackageFinder at 0x7fab800c76f0, file "f.py", line 6> LOAD_CONST 'Abs...
import abc from .filesystem import AbstractFileSystem class AbstractPackageFinder(abc.ABC): @abc.abstractmethod def determine_package_directory( self, package_name: str, file_system: AbstractFileSystem ) -> str: raise NotImplementedError
data/grimp-3.2/src/grimp/application/ports/packagefinder.py
265
78
177,417
LOAD_CONST <code object includeme at 0x7faa74756ae0, file "f.py", line 1> LOAD_CONST 'includeme' MAKE_FUNCTION STORE_NAME includeme LOAD_CONST None RETURN_VALUE LOAD_FAST config LOAD_METHOD add_static_view LOAD_CONST '/' LOAD_CONST 'tests:fixtures/static' CALL_METHOD POP_TOP LOAD_FAST config LOAD_METHOD add_static_vi...
def includeme(config): config.add_static_view("/", "tests:fixtures/static") config.add_static_view("/sub", "tests:fixtures/static/subdir") config.override_asset("tests:fixtures/static/subdir", "tests:fixtures/static")
data/pyramid-2.0.2/tests/pkgs/static_assetspec_nulbyte/__init__.py
153
78
19,680
LOAD_CONST 0 LOAD_CONST ('List', 'Union') IMPORT_NAME typing IMPORT_FROM List STORE_NAME List IMPORT_FROM Union STORE_NAME Union POP_TOP 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 ST...
from typing import List, Union from fastapi import FastAPI, Query app = FastAPI() @app.get("/items/") async def read_items(q: Union[List[str], None] = Query(default=None)): query_items = {"q": q} return query_items
data/fastapi-0.109.2/docs_src/query_params_str_validations/tutorial011.py
211
78
142,624
LOAD_CONST 0 LOAD_CONST None IMPORT_NAME pip_api STORE_NAME pip_api LOAD_CONST <code object test_version at 0x7fab800c7030, file "f.py", line 4> LOAD_CONST 'test_version' MAKE_FUNCTION STORE_NAME test_version LOAD_CONST None RETURN_VALUE LOAD_GLOBAL pip_api LOAD_METHOD version CALL_METHOD STORE_FAST from_api LOAD_FA...
import pip_api def test_version(pip): from_api = pip_api.version() from_call = pip.run("--version").split()[1] from_import = str(pip_api.PIP_VERSION) assert from_api == from_call == from_import
data/pip-api-0.0.33/tests/test_version.py
190
78
173,131
LOAD_CONST 0 LOAD_CONST ('Any',) IMPORT_NAME typing IMPORT_FROM Any STORE_NAME Any POP_TOP LOAD_CONST 0 LOAD_CONST ('Dict',) IMPORT_NAME typing IMPORT_FROM Dict STORE_NAME Dict POP_TOP LOAD_CONST 0 LOAD_CONST ('SchemaPath',) IMPORT_NAME jsonschema_path IMPORT_FROM SchemaPath STORE_NAME SchemaPath POP_TOP LOAD_NAME S...
from typing import Any from typing import Dict from jsonschema_path import SchemaPath def get_properties(schema: SchemaPath) -> Dict[str, Any]: properties = schema.get("properties", {}) properties_dict = dict(list(properties.items())) return properties_dict
data/openapi_core-0.19.0/openapi_core/schema/schemas.py
210
78
271,289