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 ('gapic_version',) IMPORT_NAME google.events.firebase.firebasealerts_v1 IMPORT_FROM gapic_version STORE_NAME package_version POP_TOP LOAD_NAME package_version LOAD_ATTR __version__ STORE_NAME __version__ LOAD_CONST 1 LOAD_CONST ('AlertData',) IMPORT_NAME types.data IMPORT_FROM AlertData STORE_...
from google.events.firebase.firebasealerts_v1 import gapic_version as package_version __version__ = package_version.__version__ from .types.data import AlertData __all__ = ("AlertData",)
data/google-events-0.11.0/src/google/events/firebase/firebasealerts_v1/__init__.py
107
62
13,217
LOAD_CONST 0 LOAD_CONST ('AdminSite',) IMPORT_NAME django.contrib.admin.sites IMPORT_FROM AdminSite STORE_NAME AdminSite POP_TOP LOAD_CONST 0 LOAD_CONST ('SimpleHistoryAdmin',) IMPORT_NAME simple_history.admin IMPORT_FROM SimpleHistoryAdmin STORE_NAME SimpleHistoryAdmin POP_TOP LOAD_CONST 1 LOAD_CONST ('State',) IMPO...
from django.contrib.admin.sites import AdminSite from simple_history.admin import SimpleHistoryAdmin from .models import State site = AdminSite(name="other_admin") site.register(State, SimpleHistoryAdmin)
data/django-simple-history-3.4.0/simple_history/tests/other_admin.py
136
62
194,446
LOAD_CONST "\nThe :mod:`sklearn.experimental` module provides importable modules that enable\nthe use of experimental features or estimators.\n\nThe features and estimators that are experimental aren't subject to\ndeprecation cycles. Use them at your own risks!\n" STORE_NAME __doc__ LOAD_CONST None RETURN_VALUE
""" The :mod:`sklearn.experimental` module provides importable modules that enable the use of experimental features or estimators. The features and estimators that are experimental aren't subject to deprecation cycles. Use them at your own risks! """
data/scikit-learn-1.4.1.post1/sklearn/experimental/__init__.py
75
62
107,965
LOAD_CONST 0 LOAD_CONST ('gapic_version',) IMPORT_NAME google.events.cloud.scheduler_v1 IMPORT_FROM gapic_version STORE_NAME package_version POP_TOP LOAD_NAME package_version LOAD_ATTR __version__ STORE_NAME __version__ LOAD_CONST 1 LOAD_CONST ('SchedulerJobData',) IMPORT_NAME types.data IMPORT_FROM SchedulerJobData ...
from google.events.cloud.scheduler_v1 import gapic_version as package_version __version__ = package_version.__version__ from .types.data import SchedulerJobData __all__ = ("SchedulerJobData",)
data/google-events-0.11.0/src/google/events/cloud/scheduler_v1/__init__.py
110
62
13,317
LOAD_CONST 0 LOAD_CONST None IMPORT_NAME tempfile STORE_NAME tempfile LOAD_CONST 0 LOAD_CONST ('Path',) IMPORT_NAME pathlib IMPORT_FROM Path STORE_NAME Path POP_TOP LOAD_NAME Path LOAD_NAME __file__ CALL_FUNCTION LOAD_ATTR parent LOAD_ATTR parent STORE_NAME root LOAD_NAME root LOAD_METHOD joinpath LOAD_CONST 'tests/...
import tempfile from pathlib import Path root = Path(__file__).parent.parent fixtures_dir = root.joinpath("tests/fixtures") xsdata_temp_dir = Path(tempfile.gettempdir()).joinpath("xsdata")
data/xsdata-24.2.1/tests/__init__.py
125
62
111,909
LOAD_CONST 0 LOAD_CONST ('PostmarkClient',) IMPORT_NAME postmarker.core IMPORT_FROM PostmarkClient STORE_NAME PostmarkClient POP_TOP LOAD_CONST <code object test_postmark_client at 0x7fab5408f150, file "f.py", line 4> LOAD_CONST 'test_postmark_client' MAKE_FUNCTION STORE_NAME test_postmark_client LOAD_CONST None RETUR...
from postmarker.core import PostmarkClient def test_postmark_client(postmark_client, postmark_request): assert isinstance(postmark_client, PostmarkClient) assert postmark_client.mock is postmark_request
data/postmarker-1.0/test/test_pytest.py
154
62
285,736
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 AccountsConfig at 0x7fab80234660, file "f.py", line 4> LOAD_CONST 'AccountsConfig' MAKE_FUNCTION LOAD_CONST 'AccountsConfig' LOAD_NAME AppConfig CALL_FUNCTION STORE...
from django.apps import AppConfig class AccountsConfig(AppConfig): name = "impersonate" default_auto_field = "django.db.models.AutoField" def ready(self): from . import signals
data/django-impersonate-1.9.2/impersonate/apps.py
230
62
162,216
LOAD_CONST 'Bi-directional communications between JS and Python.' STORE_NAME __doc__ LOAD_CONST 0 LOAD_CONST ('js_import',) IMPORT_NAME etils.ecolab.pyjs_com.py_js_com IMPORT_FROM js_import STORE_NAME js_import POP_TOP LOAD_CONST 0 LOAD_CONST ('register_js_fn',) IMPORT_NAME etils.ecolab.pyjs_com.py_js_com IMPORT_FROM...
"""Bi-directional communications between JS and Python.""" from etils.ecolab.pyjs_com.py_js_com import js_import from etils.ecolab.pyjs_com.py_js_com import register_js_fn
data/etils-1.7.0/etils/ecolab/pyjs_com/__init__.py
117
62
184,165
LOAD_CONST 1 LOAD_CONST ('JsonControl',) IMPORT_NAME control IMPORT_FROM JsonControl STORE_NAME JsonControl POP_TOP LOAD_CONST 1 LOAD_CONST ('JsonlParser', 'JsonParser') IMPORT_NAME parsers IMPORT_FROM JsonlParser STORE_NAME JsonlParser IMPORT_FROM JsonParser STORE_NAME JsonParser POP_TOP LOAD_CONST 1 LOAD_CONST ('Js...
from .control import JsonControl from .parsers import JsonlParser, JsonParser from .plugin import JsonPlugin __all__ = [ "JsonControl", "JsonParser", "JsonPlugin", "JsonlParser", ]
data/frictionless-5.16.1/frictionless/formats/json/__init__.py
131
62
41,930
LOAD_CONST 0 LOAD_CONST None IMPORT_NAME sys STORE_NAME sys LOAD_CONST 0 LOAD_CONST ('run_exit',) IMPORT_NAME nose.core IMPORT_FROM run_exit STORE_NAME run_exit POP_TOP LOAD_NAME sys LOAD_ATTR argv LOAD_CONST 0 BINARY_SUBSCR LOAD_METHOD endswith LOAD_CONST '__main__.py' CALL_METHOD POP_JUMP_IF_FALSE LOAD_CONST '%s -...
import sys from nose.core import run_exit if sys.argv[0].endswith("__main__.py"): sys.argv[0] = "%s -m nose" % sys.executable run_exit()
data/pynose-1.4.8/nose/__main__.py
120
62
286,189
LOAD_BUILD_CLASS LOAD_CONST <code object GmpSyncScanConfigTestMixin at 0x7fab82132b70, file "f.py", line 1> LOAD_CONST 'GmpSyncScanConfigTestMixin' MAKE_FUNCTION LOAD_CONST 'GmpSyncScanConfigTestMixin' CALL_FUNCTION STORE_NAME GmpSyncScanConfigTestMixin LOAD_CONST None RETURN_VALUE LOAD_NAME __name__ STORE_NAME __modu...
class GmpSyncScanConfigTestMixin: def test_sync_scan_config(self): self.gmp.sync_scan_config() self.connection.send.has_been_called_with("<sync_config/>")
data/python_gvm-24.1.0/tests/protocols/gmpv208/entities/scan_configs/test_sync_scan_config.py
245
62
371,643
LOAD_CONST 0 LOAD_CONST None IMPORT_NAME openstack STORE_NAME openstack LOAD_NAME openstack LOAD_ATTR enable_logging LOAD_CONST True LOAD_CONST ('http_debug',) CALL_FUNCTION POP_TOP LOAD_NAME openstack LOAD_ATTR connect LOAD_CONST 'datacentred' LOAD_CONST 'AmazingApp' LOAD_CONST '1.0' LOAD_CONST ('cloud', 'app_name',...
import openstack openstack.enable_logging(http_debug=True) cloud = openstack.connect(cloud="datacentred", app_name="AmazingApp", app_version="1.0") cloud.list_networks()
data/openstacksdk-2.1.0/examples/cloud/user-agent.py
108
62
284,791
LOAD_CONST 'Files in this directory are generated by running:\n\n python -m dagster._grpc.compile\n' STORE_NAME __doc__ LOAD_CONST 1 LOAD_CONST ('api_pb2',) IMPORT_NAME IMPORT_FROM api_pb2 STORE_NAME api_pb2 POP_TOP LOAD_CONST 1 LOAD_CONST ('DagsterApiServicer', 'DagsterApiStub') IMPORT_NAME api_pb2_grpc IMPORT_FROM ...
"""Files in this directory are generated by running: python -m dagster._grpc.compile """ from . import api_pb2 from .api_pb2_grpc import DagsterApiServicer, DagsterApiStub
data/dagster-1.6.5/dagster/_grpc/__generated__/__init__.py
138
62
54,931
LOAD_CONST 0 LOAD_CONST ('setup', 'find_packages') IMPORT_NAME setuptools IMPORT_FROM setup STORE_NAME setup IMPORT_FROM find_packages STORE_NAME find_packages POP_TOP LOAD_NAME setup LOAD_CONST 'hookutils_egg' LOAD_CONST True LOAD_NAME find_packages CALL_FUNCTION LOAD_CONST 'hookutils_package' LOAD_CONST 'pyexten...
from setuptools import setup, find_packages setup( name="hookutils_egg", zip_safe=True, packages=find_packages(), package_data={"hookutils_package": ["pyextension.*"]}, )
data/pyinstaller-6.4.0/tests/unit/hookutils_files/setup.py
109
62
184,974
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 PageCopyResponse at 0x7fab700e41e0, file "f.py", line 4> LOAD_CONST 'PageCopyResponse' MAKE_FUNCTION LOAD_CONST 'PageCopyResponse' LOAD_NAME Entity CALL_FUNC...
from office365.sharepoint.entity import Entity class PageCopyResponse(Entity): @property def entity_type_name(self): return "Microsoft.SharePoint.Publishing.PageCopyWithAssets.PageCopyResponse"
data/Office365-REST-Python-Client-2.5.5/office365/sharepoint/publishing/pagecopywithassets/response.py
215
62
189,133
LOAD_CONST 'controlled_noisy_web_labels dataset.' STORE_NAME __doc__ LOAD_CONST 0 LOAD_CONST ('ControlledNoisyWebLabels',) IMPORT_NAME tensorflow_datasets.image_classification.controlled_noisy_web_labels.controlled_noisy_web_labels IMPORT_FROM ControlledNoisyWebLabels STORE_NAME ControlledNoisyWebLabels POP_TOP LOAD_C...
"""controlled_noisy_web_labels dataset.""" from tensorflow_datasets.image_classification.controlled_noisy_web_labels.controlled_noisy_web_labels import ( ControlledNoisyWebLabels, )
data/tensorflow-datasets-4.9.4/tensorflow_datasets/image_classification/controlled_noisy_web_labels/__init__.py
94
62
255,465
LOAD_CONST 0 LOAD_CONST ('*',) IMPORT_NAME dvc.testing.fixtures IMPORT_STAR LOAD_CONST 1 LOAD_CONST ('*',) IMPORT_NAME fixtures IMPORT_STAR LOAD_CONST None RETURN_VALUE
from dvc.testing.fixtures import * # noqa, pylint: disable=wildcard-import,unused-import from .fixtures import * # noqa, pylint: disable=wildcard-import,unused-import
data/dvc-s3-3.0.1/dvc_s3/tests/conftest.py
43
62
108,381
LOAD_CONST 'A set of common utilities used within the environments.\n\nThese are not intended as API functions, and will not remain stable over time.\n' STORE_NAME __doc__ LOAD_CONST 0 LOAD_CONST ('colorize',) IMPORT_NAME gym.utils.colorize IMPORT_FROM colorize STORE_NAME colorize POP_TOP LOAD_CONST 0 LOAD_CONST ('Ez...
"""A set of common utilities used within the environments. These are not intended as API functions, and will not remain stable over time. """ from gym.utils.colorize import colorize from gym.utils.ezpickle import EzPickle
data/gym-0.26.2/gym/utils/__init__.py
116
62
219,885
LOAD_CONST 'Preconfigured converters for msgpack.' STORE_NAME __doc__ LOAD_CONST 0 LOAD_CONST ('MsgpackConverter', 'configure_converter', 'make_converter') IMPORT_NAME cattrs.preconf.msgpack IMPORT_FROM MsgpackConverter STORE_NAME MsgpackConverter IMPORT_FROM configure_converter STORE_NAME configure_converter IMPORT_F...
"""Preconfigured converters for msgpack.""" from cattrs.preconf.msgpack import MsgpackConverter, configure_converter, make_converter __all__ = ["configure_converter", "make_converter", "MsgpackConverter"]
data/cattrs-23.2.3/src/cattr/preconf/msgpack.py
126
62
194,761
LOAD_CONST 0 LOAD_CONST ('TestCase',) IMPORT_NAME PyObjCTools.TestSupport IMPORT_FROM TestCase STORE_NAME TestCase POP_TOP LOAD_CONST 0 LOAD_CONST None IMPORT_NAME PhotosUI STORE_NAME PhotosUI LOAD_BUILD_CLASS LOAD_CONST <code object TestCallableMetadata at 0x7fab41cb4030, file "f.py", line 6> LOAD_CONST 'TestCallabl...
from PyObjCTools.TestSupport import TestCase import PhotosUI class TestCallableMetadata(TestCase): def test_callable_metadata_is_sane(self): self.assertCallableMetadataIsSane(PhotosUI)
data/pyobjc-framework-PhotosUI-10.1/PyObjCTest/test_photosui.py
251
62
220,007
LOAD_CONST 'Customization of zope.i18n for the Zope application server\n' STORE_NAME __doc__ LOAD_CONST 'restructuredtext' STORE_NAME __docformat__ LOAD_CONST 0 LOAD_CONST ('MessageFactory',) IMPORT_NAME zope.i18nmessageid IMPORT_FROM MessageFactory STORE_NAME MessageFactory POP_TOP LOAD_NAME MessageFactory LOAD_CON...
"""Customization of zope.i18n for the Zope application server """ __docformat__ = "restructuredtext" from zope.i18nmessageid import MessageFactory ZopeMessageFactory = MessageFactory("zope")
data/zope.container-5.2/src/zope/container/i18n.py
99
62
328,422
LOAD_CONST 0 LOAD_CONST ('TestCase',) IMPORT_NAME PyObjCTools.TestSupport IMPORT_FROM TestCase STORE_NAME TestCase POP_TOP LOAD_CONST 0 LOAD_CONST None IMPORT_NAME Quartz STORE_NAME Quartz LOAD_BUILD_CLASS LOAD_CONST <code object TestCIFilterShape at 0x7faa5017f300, file "f.py", line 5> LOAD_CONST 'TestCIFilterShape'...
from PyObjCTools.TestSupport import TestCase import Quartz class TestCIFilterShape(TestCase): def testMethods(self): self.assertArgIsBOOL(Quartz.CIFilterShape.transformBy_interior_, 1)
data/pyobjc-framework-Quartz-10.1/PyObjCTest/test_cifiltershape.py
239
62
133,469
LOAD_CONST 0 LOAD_CONST ('TPLinkJetStreamSSH', 'TPLinkJetStreamTelnet') IMPORT_NAME netmiko.tplink.tplink_jetstream IMPORT_FROM TPLinkJetStreamSSH STORE_NAME TPLinkJetStreamSSH IMPORT_FROM TPLinkJetStreamTelnet STORE_NAME TPLinkJetStreamTelnet POP_TOP LOAD_CONST 'TPLinkJetStreamSSH' LOAD_CONST 'TPLinkJetStreamTelnet' ...
from netmiko.tplink.tplink_jetstream import TPLinkJetStreamSSH, TPLinkJetStreamTelnet __all__ = ["TPLinkJetStreamSSH", "TPLinkJetStreamTelnet"]
data/netmiko-4.3.0/netmiko/tplink/__init__.py
122
62
302,409
LOAD_CONST 1 LOAD_CONST ('EddyStone',) IMPORT_NAME eddystone IMPORT_FROM EddyStone STORE_NAME EddyStone POP_TOP LOAD_CONST 1 LOAD_CONST ('RuuviWeather',) IMPORT_NAME ruuviweather IMPORT_FROM RuuviWeather STORE_NAME RuuviWeather POP_TOP LOAD_CONST 1 LOAD_CONST ('ATCMiThermometer',) IMPORT_NAME atcmithermometer IMPORT_...
from .eddystone import EddyStone from .ruuviweather import RuuviWeather from .atcmithermometer import ATCMiThermometer from .thermobeacon import ThermoBeacon from .tilt import Tilt
data/aioblescan-0.2.14/aioblescan/plugins/__init__.py
180
62
28,496
LOAD_CONST ('headlines', 'story', 'Urgency', 'top_news', 'images', 'online_reports') STORE_NAME __all__ LOAD_CONST 1 LOAD_CONST ('Urgency',) IMPORT_NAME _urgency IMPORT_FROM Urgency STORE_NAME Urgency POP_TOP LOAD_CONST 1 LOAD_CONST ('headlines', 'story', 'top_news', 'images', 'online_reports') IMPORT_NAME IMPORT_FRO...
__all__ = ("headlines", "story", "Urgency", "top_news", "images", "online_reports") from ._urgency import Urgency from . import headlines, story, top_news, images, online_reports
data/refinitiv-data-1.6.0/refinitiv/data/content/news/__init__.py
142
62
195,729
LOAD_CONST 'Historical Pricing events.\n\nThe Historical pricing events module provides access to the historical pricing data and lets you filter events by\ntypes including trade, quote or correction.\n' STORE_NAME __doc__ LOAD_CONST ('Definition',) STORE_NAME __all__ LOAD_CONST 1 LOAD_CONST ('Definition',) IMPORT_NA...
"""Historical Pricing events. The Historical pricing events module provides access to the historical pricing data and lets you filter events by types including trade, quote or correction. """ __all__ = ("Definition",) from ._events_definition import Definition
data/refinitiv-data-1.6.0/refinitiv/data/content/historical_pricing/events.py
91
62
195,721
LOAD_CONST 0 LOAD_CONST ('Enum',) IMPORT_NAME enum IMPORT_FROM Enum STORE_NAME Enum POP_TOP LOAD_BUILD_CLASS LOAD_CONST <code object SignInFrequencyAuthenticationType at 0x7fab820f48a0, file "f.py", line 4> LOAD_CONST 'SignInFrequencyAuthenticationType' MAKE_FUNCTION LOAD_CONST 'SignInFrequencyAuthenticationType' LOAD...
from enum import Enum class SignInFrequencyAuthenticationType(str, Enum): PrimaryAndSecondaryAuthentication = ("primaryAndSecondaryAuthentication",) SecondaryAuthentication = ("secondaryAuthentication",) UnknownFutureValue = ("unknownFutureValue",)
data/msgraph-sdk-1.1.0/msgraph/generated/models/sign_in_frequency_authentication_type.py
184
62
260,928
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 'one' LOAD_CONST 'json' LOAD_CONST ('name', 'renderer') CALL_FUNCTION LOAD_CONST <code object one at 0x7faa75df4660, file "f.py", line 4> LOAD_CONST 'one' MAKE_FUNCT...
from pyramid.view import view_config @view_config(name="one", renderer="json") def one(request): return {"name": "One!"} def includeme(config): config.scan()
data/pyramid-2.0.2/tests/pkgs/rendererscanapp/__init__.py
182
62
19,669
LOAD_CONST 0 LOAD_CONST ('SimpleAdminConfig',) IMPORT_NAME django.contrib.admin.apps IMPORT_FROM SimpleAdminConfig STORE_NAME SimpleAdminConfig POP_TOP LOAD_BUILD_CLASS LOAD_CONST <code object MyCustomAdminConfig at 0x7f8e2fc181e0, file "f.py", line 4> LOAD_CONST 'MyCustomAdminConfig' MAKE_FUNCTION LOAD_CONST 'MyCusto...
from django.contrib.admin.apps import SimpleAdminConfig class MyCustomAdminConfig(SimpleAdminConfig): verbose_name = "My custom default admin site." default_site = "admin_default_site.sites.CustomAdminSite"
data/Django-5.0.2/tests/admin_default_site/apps.py
176
62
326,380
LOAD_CONST 0 LOAD_CONST ('TestCase',) IMPORT_NAME PyObjCTools.TestSupport IMPORT_FROM TestCase STORE_NAME TestCase POP_TOP LOAD_CONST 0 LOAD_CONST None IMPORT_NAME AuthenticationServices STORE_NAME AuthenticationServices LOAD_BUILD_CLASS LOAD_CONST <code object TestCallableMetadata at 0x7fa90e62b150, file "f.py", lin...
from PyObjCTools.TestSupport import TestCase import AuthenticationServices class TestCallableMetadata(TestCase): def test_callable_metadata_is_sane(self): self.assertCallableMetadataIsSane(AuthenticationServices)
data/pyobjc-framework-AuthenticationServices-10.1/PyObjCTest/test_authenticationservices.py
255
62
129,396
LOAD_CONST ' Dummy Module\n' STORE_NAME __doc__ LOAD_CONST 0 LOAD_CONST ('moduleProvides',) IMPORT_NAME zope.interface IMPORT_FROM moduleProvides STORE_NAME moduleProvides POP_TOP LOAD_CONST 0 LOAD_CONST ('IDummyModule',) IMPORT_NAME zope.interface.tests.idummy IMPORT_FROM IDummyModule STORE_NAME IDummyModule POP_TOP...
""" Dummy Module """ from zope.interface import moduleProvides from zope.interface.tests.idummy import IDummyModule moduleProvides(IDummyModule) def bar(baz): raise NotImplementedError()
data/zope.interface-6.2/src/zope/interface/tests/dummy.py
162
62
187,535
LOAD_CONST '\nModule for parsing sql queries and returning columns,\ntables, names of with statements etc.\n' STORE_NAME __doc__ LOAD_CONST 0 LOAD_CONST ('Parser',) IMPORT_NAME sql_metadata.parser IMPORT_FROM Parser STORE_NAME Parser POP_TOP LOAD_CONST 0 LOAD_CONST ('QueryType',) IMPORT_NAME sql_metadata.keywords_lis...
""" Module for parsing sql queries and returning columns, tables, names of with statements etc. """ from sql_metadata.parser import Parser from sql_metadata.keywords_lists import QueryType __all__ = ["Parser", "QueryType"]
data/sql_metadata-2.10.0/sql_metadata/__init__.py
114
62
405,780
LOAD_CONST 0 LOAD_CONST ('Enum',) IMPORT_NAME enum IMPORT_FROM Enum STORE_NAME Enum POP_TOP LOAD_BUILD_CLASS LOAD_CONST <code object QuantumProcessorAccessorType at 0x7fab81f3b540, file "f.py", line 4> LOAD_CONST 'QuantumProcessorAccessorType' MAKE_FUNCTION LOAD_CONST 'QuantumProcessorAccessorType' LOAD_NAME str LOAD_...
from enum import Enum class QuantumProcessorAccessorType(str, Enum): GATEWAY_V1 = "gateway.v1" def __str__(self) -> str: return str(self.value)
data/qcs_api_client-0.23.1/qcs_api_client/models/quantum_processor_accessor_type.py
237
62
128,906
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 '2.16.3' STOR...
from __future__ import absolute_import, division, print_function __metaclass__ = type __version__ = "2.16.3" __author__ = "Ansible, Inc." __codename__ = "All My Love"
data/ansible-core-2.16.3/lib/ansible/release.py
114
62
436,793
LOAD_CONST 1 LOAD_CONST ('BaseConvRFSearchOp', 'Conv2dRFSearchOp') IMPORT_NAME operator IMPORT_FROM BaseConvRFSearchOp STORE_NAME BaseConvRFSearchOp IMPORT_FROM Conv2dRFSearchOp STORE_NAME Conv2dRFSearchOp POP_TOP LOAD_CONST 1 LOAD_CONST ('RFSearchHook',) IMPORT_NAME search IMPORT_FROM RFSearchHook STORE_NAME RFSearch...
from .operator import BaseConvRFSearchOp, Conv2dRFSearchOp from .search import RFSearchHook __all__ = ["BaseConvRFSearchOp", "Conv2dRFSearchOp", "RFSearchHook"]
data/mmcv-full-1.7.2/mmcv/cnn/rfsearch/__init__.py
143
62
257,018
LOAD_CONST 'Python Bugsnag Notifier' LOAD_CONST 'https://github.com/bugsnag/bugsnag-python' LOAD_CONST '4.6.1' LOAD_CONST ('name', 'url', 'version') BUILD_CONST_KEY_MAP STORE_NAME _NOTIFIER_INFORMATION LOAD_CONST None RETURN_VALUE
_NOTIFIER_INFORMATION = { "name": "Python Bugsnag Notifier", "url": "https://github.com/bugsnag/bugsnag-python", "version": "4.6.1", }
data/bugsnag-4.6.1/bugsnag/notifier.py
69
62
184,423
LOAD_CONST 1 LOAD_CONST ('*',) IMPORT_NAME __cmd_group IMPORT_STAR LOAD_CONST 1 LOAD_CONST ('*',) IMPORT_NAME _create IMPORT_STAR LOAD_CONST 1 LOAD_CONST ('*',) IMPORT_NAME _delete IMPORT_STAR LOAD_CONST 1 LOAD_CONST ('*',) IMPORT_NAME _generate_loa IMPORT_STAR LOAD_CONST 1 LOAD_CONST ('*',) IMPORT_NAME _list IMPOR...
from .__cmd_group import * from ._create import * from ._delete import * from ._generate_loa import * from ._list import * from ._show import * from ._update import * from ._wait import *
data/azure-cli-2.57.0/azure/cli/command_modules/network/aaz/latest/network/express_route/port/__init__.py
145
62
377,836
LOAD_CONST 0 LOAD_CONST None IMPORT_NAME django STORE_NAME django LOAD_CONST '2024.2.1' STORE_NAME __version__ LOAD_NAME django LOAD_ATTR VERSION LOAD_CONST (3, 2) COMPARE_OP < POP_JUMP_IF_FALSE LOAD_CONST 'drf_spectacular_sidecar.apps.SpectacularSidecarConfig' STORE_NAME default_app_config LOAD_CONST None RETURN_VA...
import django __version__ = "2024.2.1" if django.VERSION < (3, 2): default_app_config = "drf_spectacular_sidecar.apps.SpectacularSidecarConfig"
data/drf-spectacular-sidecar-2024.2.1/drf_spectacular_sidecar/__init__.py
90
62
214,811
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 '2.16.3' STOR...
from __future__ import absolute_import, division, print_function __metaclass__ = type __version__ = "2.16.3" __author__ = "Ansible, Inc." __codename__ = "All My Love"
data/ansible-core-2.16.3/lib/ansible/module_utils/ansible_release.py
114
62
436,833
LOAD_CONST 0 LOAD_CONST None IMPORT_NAME Automator STORE_NAME Automator LOAD_CONST 0 LOAD_CONST ('TestCase',) IMPORT_NAME PyObjCTools.TestSupport IMPORT_FROM TestCase STORE_NAME TestCase POP_TOP LOAD_BUILD_CLASS LOAD_CONST <code object TestAMShellScriptAction at 0x7fab8231bae0, file "f.py", line 5> LOAD_CONST 'TestAM...
import Automator from PyObjCTools.TestSupport import TestCase class TestAMShellScriptAction(TestCase): def testMethods(self): self.assertResultIsBOOL(Automator.AMShellScriptAction.remapLineEndings)
data/pyobjc-framework-Automator-10.1/PyObjCTest/test_amshellscriptaction.py
241
62
131,230
LOAD_CONST <code object test_model at 0x7fab82097660, file "f.py", line 1> LOAD_CONST 'test_model' MAKE_FUNCTION STORE_NAME test_model LOAD_CONST None RETURN_VALUE LOAD_CONST 0 LOAD_CONST ('Model', 'Models') IMPORT_NAME elevenlabs IMPORT_FROM Model STORE_FAST Model IMPORT_FROM Models STORE_FAST Models POP_TOP LOAD_FA...
def test_model(): from elevenlabs import Model, Models models = Models.from_api() assert isinstance(models, Models) assert len(models) > 0 assert isinstance(models[0], Model)
data/elevenlabs-0.2.27/elevenlabs/tests/api/test_model.py
183
62
104,728
LOAD_CONST 'CLI_TEST_RUN_LIVE' STORE_NAME ENV_LIVE_TEST LOAD_CONST 'CLI_TEST_SKIP_ASSERT' STORE_NAME ENV_SKIP_ASSERT LOAD_CONST 'CLI_TEST_DIAGNOSE' STORE_NAME ENV_TEST_DIAGNOSE LOAD_CONST None RETURN_VALUE
ENV_LIVE_TEST = "CLI_TEST_RUN_LIVE" ENV_SKIP_ASSERT = "CLI_TEST_SKIP_ASSERT" ENV_TEST_DIAGNOSE = "CLI_TEST_DIAGNOSE"
data/knack-0.11.0/knack/testsdk/const.py
77
62
434,128
LOAD_CONST '\nPublic API of this package.\n' STORE_NAME __doc__ LOAD_CONST 1 LOAD_CONST ('Path',) IMPORT_NAME pathlib2 IMPORT_FROM Path STORE_NAME Path POP_TOP LOAD_CONST 1 LOAD_CONST ('WindowsPath',) IMPORT_NAME pathlib2 IMPORT_FROM WindowsPath STORE_NAME WindowsPath POP_TOP LOAD_CONST 1 LOAD_CONST ('PosixPath',) I...
""" Public API of this package. """ from .pathlib2 import Path from .pathlib2 import WindowsPath from .pathlib2 import PosixPath from .pathlib2 import PathCls from .pathlib2 import T_PATH_ARG
data/pathlib_mate-1.3.2/pathlib_mate/api.py
169
62
187,802
LOAD_CONST 0 LOAD_CONST ('ErrorClass', 'ErrorClassPlugin') IMPORT_NAME nose.plugins.errorclass IMPORT_FROM ErrorClass STORE_NAME ErrorClass IMPORT_FROM ErrorClassPlugin STORE_NAME ErrorClassPlugin POP_TOP LOAD_BUILD_CLASS LOAD_CONST <code object Todo at 0x7f8af15c29c0, file "f.py", line 4> LOAD_CONST 'Todo' MAKE_FUNCT...
from nose.plugins.errorclass import ErrorClass, ErrorClassPlugin class Todo(Exception): pass class TodoPlugin(ErrorClassPlugin): todo = ErrorClass(Todo, label="TODO", isfailure=True)
data/nose-1.3.7/functional_tests/support/todo/todoplug.py
263
62
401,792
LOAD_CONST 0 LOAD_CONST ('NetIQProvider',) IMPORT_NAME allauth.socialaccount.providers.netiq.provider IMPORT_FROM NetIQProvider STORE_NAME NetIQProvider POP_TOP LOAD_CONST 0 LOAD_CONST ('default_urlpatterns',) IMPORT_NAME allauth.socialaccount.providers.oauth2.urls IMPORT_FROM default_urlpatterns STORE_NAME default_ur...
from allauth.socialaccount.providers.netiq.provider import NetIQProvider from allauth.socialaccount.providers.oauth2.urls import default_urlpatterns urlpatterns = default_urlpatterns(NetIQProvider)
data/django-allauth-0.61.1/allauth/socialaccount/providers/netiq/urls.py
116
62
336,448
LOAD_CONST <code object test_person_awards at 0x7fabdc1d0c00, file "f.py", line 1> LOAD_CONST 'test_person_awards' MAKE_FUNCTION STORE_NAME test_person_awards LOAD_CONST None RETURN_VALUE LOAD_FAST ia LOAD_ATTR get_person LOAD_CONST '0000206' LOAD_CONST 'awards' BUILD_LIST LOAD_CONST ('info',) CALL_FUNCTION STORE_FAST...
def test_person_awards(ia): person = ia.get_person("0000206", info=["awards"]) awards = person.get("awards", []) assert len(awards) > 20
data/cinemagoer-2023.5.1/tests/test_http_person_awards.py
152
62
155,144
LOAD_CONST 0 LOAD_CONST ('TestCase',) IMPORT_NAME PyObjCTools.TestSupport IMPORT_FROM TestCase STORE_NAME TestCase POP_TOP LOAD_CONST 0 LOAD_CONST None IMPORT_NAME HealthKit STORE_NAME HealthKit LOAD_BUILD_CLASS LOAD_CONST <code object TestHKActivitySummary at 0x7fab80232a50, file "f.py", line 5> LOAD_CONST 'TestHKAc...
from PyObjCTools.TestSupport import TestCase import HealthKit class TestHKActivitySummary(TestCase): def test_constants(self): self.assertIsInstance(HealthKit.HKPredicateKeyPathDateComponents, str)
data/pyobjc-framework-HealthKit-10.1/PyObjCTest/test_hkactivitysummary.py
247
62
385,358
LOAD_CONST 0 LOAD_CONST ('TestCase',) IMPORT_NAME PyObjCTools.TestSupport IMPORT_FROM TestCase STORE_NAME TestCase POP_TOP LOAD_CONST 0 LOAD_CONST None IMPORT_NAME HealthKit STORE_NAME HealthKit LOAD_BUILD_CLASS LOAD_CONST <code object TestHKQuantity at 0x7fab82363ed0, file "f.py", line 5> LOAD_CONST 'TestHKQuantity'...
from PyObjCTools.TestSupport import TestCase import HealthKit class TestHKQuantity(TestCase): def test_methods(self): self.assertResultIsBOOL(HealthKit.HKQuantity.isCompatibleWithUnit_)
data/pyobjc-framework-HealthKit-10.1/PyObjCTest/test_hkquantity.py
245
62
385,344
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 None RETURN_VALUE
extensions = ["sphinxext.opengraph"] master_doc = "index" exclude_patterns = ["_build"] html_theme = "basic" ogp_site_url = "http://example.org/en/latest/"
data/sphinxext-opengraph-0.9.1/tests/roots/test-nested-lists/conf.py
80
62
346,022
LOAD_CONST 0 LOAD_CONST ('AppConfig',) IMPORT_NAME server.apps IMPORT_FROM AppConfig STORE_NAME AppConfig POP_TOP LOAD_CONST 0 LOAD_CONST ('gettext_lazy',) IMPORT_NAME server.utils.translation IMPORT_FROM gettext_lazy STORE_NAME _ POP_TOP LOAD_BUILD_CLASS LOAD_CONST <code object RedirectsConfig at 0x7fae2f3b3930, fil...
from server.apps import AppConfig from server.utils.translation import gettext_lazy as _ class RedirectsConfig(AppConfig): name = "server.contrib.redirects" verbose_name = _("Redirects")
data/os_sys-2.1.4/server/contrib/redirects/apps.py
197
62
247,407
LOAD_CONST '\nPackage where Open edX Events and the necessary tooling are implemented.\n\nThese definitions are part of the Hooks Extension Framework, see OEP-50 for\nmore information about the project.\n' STORE_NAME __doc__ LOAD_CONST '9.5.2' STORE_NAME __version__ LOAD_CONST None RETURN_VALUE
""" Package where Open edX Events and the necessary tooling are implemented. These definitions are part of the Hooks Extension Framework, see OEP-50 for more information about the project. """ __version__ = "9.5.2"
data/openedx-events-9.5.2/openedx_events/__init__.py
76
62
115,016
LOAD_CONST 0 LOAD_CONST ('TestCase',) IMPORT_NAME PyObjCTools.TestSupport IMPORT_FROM TestCase STORE_NAME TestCase POP_TOP LOAD_CONST 0 LOAD_CONST None IMPORT_NAME Quartz STORE_NAME Quartz LOAD_BUILD_CLASS LOAD_CONST <code object TestPDFAnnotationLink at 0x7faa503bb150, file "f.py", line 5> LOAD_CONST 'TestPDFAnnotat...
from PyObjCTools.TestSupport import TestCase import Quartz class TestPDFAnnotationLink(TestCase): def testMethods(self): self.assertArgIsBOOL(Quartz.PDFAnnotationLink.setHighlighted_, 0)
data/pyobjc-framework-Quartz-10.1/PyObjCTest/test_pdfannotationlink.py
237
62
133,583
LOAD_CONST 0 LOAD_CONST ('TestCase',) IMPORT_NAME PyObjCTools.TestSupport IMPORT_FROM TestCase STORE_NAME TestCase POP_TOP LOAD_CONST 0 LOAD_CONST None IMPORT_NAME iTunesLibrary STORE_NAME iTunesLibrary LOAD_BUILD_CLASS LOAD_CONST <code object TestCallableMetadata at 0x7f8e447b25d0, file "f.py", line 6> LOAD_CONST 'T...
from PyObjCTools.TestSupport import TestCase import iTunesLibrary class TestCallableMetadata(TestCase): def test_callable_metadata_is_sane(self): self.assertCallableMetadataIsSane(iTunesLibrary)
data/pyobjc-framework-iTunesLibrary-10.1/PyObjCTest/test_ituneslibrary.py
254
62
115,008
LOAD_CONST 0 LOAD_CONST ('annotations',) IMPORT_NAME __future__ IMPORT_FROM annotations STORE_NAME annotations POP_TOP LOAD_CONST 1 LOAD_CONST ('BoundPrimaryIP', 'PrimaryIPsClient', 'PrimaryIPsPageResult') IMPORT_NAME client IMPORT_FROM BoundPrimaryIP STORE_NAME BoundPrimaryIP IMPORT_FROM PrimaryIPsClient STORE_NAME P...
from __future__ import annotations from .client import BoundPrimaryIP, PrimaryIPsClient, PrimaryIPsPageResult # noqa: F401 from .domain import CreatePrimaryIPResponse, PrimaryIP # noqa: F401
data/ansible-9.2.0/ansible_collections/hetzner/hcloud/plugins/module_utils/vendor/hcloud/primary_ips/__init__.py
141
62
280,169
LOAD_CONST 1 LOAD_CONST ('S3Location',) IMPORT_NAME s3_location IMPORT_FROM S3Location STORE_NAME S3Location POP_TOP LOAD_CONST 1 LOAD_CONST ('S3List', 'LoadPartitions', 'LoadPartitions') IMPORT_NAME load_partitions IMPORT_FROM S3List STORE_NAME S3List IMPORT_FROM LoadPartitions STORE_NAME LoadPartitions IMPORT_FROM L...
from .s3_location import S3Location from .load_partitions import S3List, LoadPartitions, LoadPartitions as AthenaPartition __all__ = ["S3Location", "S3List", "LoadPartitions", "AthenaPartition"]
data/newtools-2.2.489/newtools/aws/__init__.py
132
62
114,941
LOAD_CONST 0 LOAD_CONST None IMPORT_NAME pycurl STORE_NAME pycurl LOAD_NAME pycurl LOAD_METHOD Curl CALL_METHOD STORE_NAME c LOAD_NAME c LOAD_METHOD setopt LOAD_NAME c LOAD_ATTR URL LOAD_CONST 'http://www.python.org/' CALL_METHOD POP_TOP LOAD_NAME c LOAD_METHOD setopt LOAD_NAME c LOAD_ATTR FOLLOWLOCATION LOAD_CONST ...
import pycurl c = pycurl.Curl() c.setopt(c.URL, "http://www.python.org/") c.setopt(c.FOLLOWLOCATION, True) c.perform() c.close()
data/pycurl-7.45.3/examples/quickstart/follow_redirect.py
111
62
174,017
LOAD_CONST 1 LOAD_CONST ('UTC', 'FixedOffset', 'ParseError', 'is_iso8601', 'parse_date') IMPORT_NAME iso8601 IMPORT_FROM UTC STORE_NAME UTC IMPORT_FROM FixedOffset STORE_NAME FixedOffset IMPORT_FROM ParseError STORE_NAME ParseError IMPORT_FROM is_iso8601 STORE_NAME is_iso8601 IMPORT_FROM parse_date STORE_NAME parse_dat...
from .iso8601 import UTC, FixedOffset, ParseError, is_iso8601, parse_date __all__ = ["parse_date", "is_iso8601", "ParseError", "UTC", "FixedOffset"]
data/iso8601-2.1.0/iso8601/__init__.py
143
62
206,324
LOAD_CONST 0 LOAD_CONST None IMPORT_NAME pickle STORE_NAME pickle LOAD_CONST 0 LOAD_CONST None IMPORT_NAME pandas STORE_NAME pd LOAD_NAME pd LOAD_METHOD DataFrame LOAD_CONST 'col_A' LOAD_CONST 1 LOAD_CONST 2 BUILD_LIST BUILD_MAP CALL_METHOD STORE_NAME df LOAD_NAME pickle LOAD_METHOD dumps LOAD_NAME df CALL_METHOD ST...
import pickle import pandas as pd df = pd.DataFrame({"col_A": [1, 2]}) pick = pickle.dumps(df) print(pd.read_pickle(pick))
data/bandit-1.7.7/examples/pandas_read_pickle.py
110
62
56,734
LOAD_CONST 'Generated API for package: tensorflow_examples.lite.model_maker.third_party.recommendation.ml.data.' STORE_NAME __doc__ LOAD_CONST 0 LOAD_CONST ('*',) IMPORT_NAME tensorflow_examples.lite.model_maker.third_party.recommendation.ml.data IMPORT_STAR LOAD_CONST None RETURN_VALUE
"""Generated API for package: tensorflow_examples.lite.model_maker.third_party.recommendation.ml.data.""" from tensorflow_examples.lite.model_maker.third_party.recommendation.ml.data import *
data/tflite-model-maker-0.4.3/src/tflite_model_maker/python/third_party/recommendation/ml/data/__init__.py
82
62
401,194
LOAD_CONST 1 LOAD_CONST ('MessagesV1Beta3AsyncClient',) IMPORT_NAME async_client IMPORT_FROM MessagesV1Beta3AsyncClient STORE_NAME MessagesV1Beta3AsyncClient POP_TOP LOAD_CONST 1 LOAD_CONST ('MessagesV1Beta3Client',) IMPORT_NAME client IMPORT_FROM MessagesV1Beta3Client STORE_NAME MessagesV1Beta3Client POP_TOP LOAD_CO...
from .async_client import MessagesV1Beta3AsyncClient from .client import MessagesV1Beta3Client __all__ = ( "MessagesV1Beta3Client", "MessagesV1Beta3AsyncClient", )
data/google-cloud-dataflow-client-0.8.8/google/cloud/dataflow_v1beta3/services/messages_v1_beta3/__init__.py
120
62
346,226
LOAD_CONST 0 LOAD_CONST ('Enum',) IMPORT_NAME enum IMPORT_FROM Enum STORE_NAME Enum POP_TOP LOAD_BUILD_CLASS LOAD_CONST <code object SystemColumnType at 0x7fab41f12ae0, file "f.py", line 4> LOAD_CONST 'SystemColumnType' MAKE_FUNCTION LOAD_CONST 'SystemColumnType' LOAD_NAME Enum CALL_FUNCTION STORE_NAME SystemColumnTyp...
from enum import Enum class SystemColumnType(Enum): AUTO_NUMBER = 1 MODIFIED_DATE = 2 MODIFIED_BY = 3 CREATED_DATE = 4 CREATED_BY = 5
data/smartsheet-python-sdk-3.0.2/smartsheet/models/enums/system_column_type.py
180
62
92,975
LOAD_CONST 0 LOAD_CONST ('Callable', 'Union') IMPORT_NAME typing IMPORT_FROM Callable STORE_NAME Callable IMPORT_FROM Union STORE_NAME Union POP_TOP LOAD_NAME bytes STORE_NAME Bytes LOAD_NAME Union LOAD_NAME str LOAD_NAME Bytes BUILD_TUPLE BINARY_SUBSCR STORE_NAME StrOrBytes LOAD_NAME Union LOAD_NAME int LOAD_NAME f...
from typing import Callable, Union Bytes = bytes StrOrBytes = Union[str, Bytes] IntOrFloat = Union[int, float] TimeFunc = Callable[[], IntOrFloat] RandFunc = Callable[[int], bytes]
data/cyksuid-2.0.2/cyksuid/hints.py
126
62
387,769
LOAD_CONST 1 LOAD_CONST ('MetricsV1Beta3AsyncClient',) IMPORT_NAME async_client IMPORT_FROM MetricsV1Beta3AsyncClient STORE_NAME MetricsV1Beta3AsyncClient POP_TOP LOAD_CONST 1 LOAD_CONST ('MetricsV1Beta3Client',) IMPORT_NAME client IMPORT_FROM MetricsV1Beta3Client STORE_NAME MetricsV1Beta3Client POP_TOP LOAD_CONST ('...
from .async_client import MetricsV1Beta3AsyncClient from .client import MetricsV1Beta3Client __all__ = ( "MetricsV1Beta3Client", "MetricsV1Beta3AsyncClient", )
data/google-cloud-dataflow-client-0.8.8/google/cloud/dataflow_v1beta3/services/metrics_v1_beta3/__init__.py
120
62
346,217
LOAD_CONST 0 LOAD_CONST ('Enum',) IMPORT_NAME enum IMPORT_FROM Enum STORE_NAME Enum POP_TOP LOAD_BUILD_CLASS LOAD_CONST <code object AccountTargetContentType at 0x7fae471296f0, file "f.py", line 4> LOAD_CONST 'AccountTargetContentType' MAKE_FUNCTION LOAD_CONST 'AccountTargetContentType' LOAD_NAME str LOAD_NAME Enum CA...
from enum import Enum class AccountTargetContentType(str, Enum): Unknown = ("unknown",) IncludeAll = ("includeAll",) AddressBook = ("addressBook",) UnknownFutureValue = ("unknownFutureValue",)
data/msgraph-sdk-1.1.0/msgraph/generated/models/account_target_content_type.py
178
62
259,610
LOAD_CONST 'GL Extrusion Routine Library (GLE) wrapper for OpenGL-ctypes' STORE_NAME __doc__ LOAD_CONST 0 LOAD_CONST ('*',) IMPORT_NAME OpenGL.raw.GLE IMPORT_STAR LOAD_CONST 0 LOAD_CONST ('*',) IMPORT_NAME OpenGL.raw.GLE.annotations IMPORT_STAR LOAD_CONST 0 LOAD_CONST ('*',) IMPORT_NAME OpenGL.GLE.exceptional IMPORT...
"""GL Extrusion Routine Library (GLE) wrapper for OpenGL-ctypes""" from OpenGL.raw.GLE import * from OpenGL.raw.GLE.annotations import * from OpenGL.GLE.exceptional import *
data/PyOpenGL-3.1.7/OpenGL/GLE/__init__.py
103
62
59,556
LOAD_CONST 0 LOAD_CONST ('test_read_main', 'test_websocket') IMPORT_NAME docs_src.app_testing.tutorial002 IMPORT_FROM test_read_main STORE_NAME test_read_main IMPORT_FROM test_websocket STORE_NAME test_websocket POP_TOP LOAD_CONST <code object test_main at 0x7fab8234adb0, file "f.py", line 4> LOAD_CONST 'test_main' MA...
from docs_src.app_testing.tutorial002 import test_read_main, test_websocket def test_main(): test_read_main() def test_ws(): test_websocket()
data/fastapi-0.109.2/tests/test_tutorial/test_testing/test_tutorial002.py
203
62
141,837
LOAD_CONST 1 LOAD_CONST ('Object3DLayer', 'IntegratedMeshLayer', 'Point3DLayer') IMPORT_NAME _lyrs IMPORT_FROM Object3DLayer STORE_NAME Object3DLayer IMPORT_FROM IntegratedMeshLayer STORE_NAME IntegratedMeshLayer IMPORT_FROM Point3DLayer STORE_NAME Point3DLayer POP_TOP LOAD_CONST 1 LOAD_CONST ('PointCloudLayer', 'Buil...
from ._lyrs import Object3DLayer, IntegratedMeshLayer, Point3DLayer from ._lyrs import PointCloudLayer, BuildingLayer, VoxelLayer from ._lyrs import SceneLayer, SceneLayerManager, EnterpriseSceneLayerManager
data/arcgis-2.2.0.2/arcgis/mapping/_scenelyrs/__init__.py
203
62
216,097
LOAD_CONST 1 LOAD_CONST ('_OnPrem',) IMPORT_NAME IMPORT_FROM _OnPrem STORE_NAME _OnPrem POP_TOP LOAD_BUILD_CLASS LOAD_CONST <code object _Search at 0x7fab70246e40, file "f.py", line 4> LOAD_CONST '_Search' MAKE_FUNCTION LOAD_CONST '_Search' LOAD_NAME _OnPrem CALL_FUNCTION STORE_NAME _Search LOAD_BUILD_CLASS LOAD_CONS...
from . import _OnPrem class _Search(_OnPrem): _type = "search" _icon_dir = "resources/onprem/search" class Solr(_Search): _icon = "solr.png"
data/diagrams-0.23.4/diagrams/onprem/search.py
245
62
205,982
LOAD_CONST 1 LOAD_CONST ('_OnPrem',) IMPORT_NAME IMPORT_FROM _OnPrem STORE_NAME _OnPrem POP_TOP LOAD_BUILD_CLASS LOAD_CONST <code object _Identity at 0x7fab70246e40, file "f.py", line 4> LOAD_CONST '_Identity' MAKE_FUNCTION LOAD_CONST '_Identity' LOAD_NAME _OnPrem CALL_FUNCTION STORE_NAME _Identity LOAD_BUILD_CLASS L...
from . import _OnPrem class _Identity(_OnPrem): _type = "identity" _icon_dir = "resources/onprem/identity" class Dex(_Identity): _icon = "dex.png"
data/diagrams-0.23.4/diagrams/onprem/identity.py
245
62
206,000
LOAD_CONST '\nThis file holds various configuration options used for all of the examples.\n' STORE_NAME __doc__ 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 sys LOAD_ATTR path LOAD_METHOD insert LOAD_CONST 0 LOAD_NAME os LOAD_ATTR pat...
""" This file holds various configuration options used for all of the examples. """ import os import sys sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
data/colormath-3.0.0/examples/example_config.py
117
62
428,807
LOAD_CONST 0 LOAD_CONST ('Enum',) IMPORT_NAME enum IMPORT_FROM Enum STORE_NAME Enum POP_TOP LOAD_BUILD_CLASS LOAD_CONST <code object MobileThreatPartnerTenantState at 0x7fab70027420, file "f.py", line 4> LOAD_CONST 'MobileThreatPartnerTenantState' MAKE_FUNCTION LOAD_CONST 'MobileThreatPartnerTenantState' LOAD_NAME str...
from enum import Enum class MobileThreatPartnerTenantState(str, Enum): Unavailable = ("unavailable",) Available = ("available",) Enabled = ("enabled",) Unresponsive = ("unresponsive",)
data/msgraph-sdk-1.1.0/msgraph/generated/models/mobile_threat_partner_tenant_state.py
194
62
260,312
LOAD_CONST 0 LOAD_CONST None IMPORT_NAME trio STORE_NAME trio LOAD_CONST 0 LOAD_CONST None IMPORT_NAME typing_extensions STORE_NAME typing_extensions LOAD_NAME trio LOAD_ATTR SocketStream LOAD_CONST None LOAD_CONST ('s', 'return') BUILD_CONST_KEY_MAP LOAD_CONST <code object fn at 0x7f8a3d619150, file "f.py", line 5> ...
import trio import typing_extensions async def fn(s: trio.SocketStream) -> None: result = await s.socket.sendto(b"a", "h") typing_extensions.assert_type(result, int)
data/trio-0.24.0/src/trio/_tests/type_tests/check_wraps.py
164
62
330,714
LOAD_CONST 0 LOAD_CONST ('datetime',) IMPORT_NAME datetime IMPORT_FROM datetime STORE_NAME datetime POP_TOP LOAD_CONST 0 LOAD_CONST ('UUID',) IMPORT_NAME uuid IMPORT_FROM UUID STORE_NAME UUID POP_TOP LOAD_CONST 0 LOAD_CONST ('BaseModel',) IMPORT_NAME argilla.pydantic_v1 IMPORT_FROM BaseModel STORE_NAME BaseModel POP_...
from datetime import datetime from uuid import UUID from argilla.pydantic_v1 import BaseModel class WorkspaceModel(BaseModel): id: UUID name: str inserted_at: datetime updated_at: datetime
data/argilla-1.24.0/src/argilla/client/sdk/workspaces/models.py
250
62
249,169
LOAD_CONST 0 LOAD_CONST ('Enum',) IMPORT_NAME enum IMPORT_FROM Enum STORE_NAME Enum POP_TOP LOAD_BUILD_CLASS LOAD_CONST <code object FeatureTargetType at 0x7fab4298e420, file "f.py", line 4> LOAD_CONST 'FeatureTargetType' MAKE_FUNCTION LOAD_CONST 'FeatureTargetType' LOAD_NAME str LOAD_NAME Enum CALL_FUNCTION STORE_NAM...
from enum import Enum class FeatureTargetType(str, Enum): Group = ("group",) AdministrativeUnit = ("administrativeUnit",) Role = ("role",) UnknownFutureValue = ("unknownFutureValue",)
data/msgraph-sdk-1.1.0/msgraph/generated/models/feature_target_type.py
174
62
260,387
LOAD_CONST 'Motif command line tool wrappers (OBSOLETE).\n\nWe have decided to remove this module in future, and instead recommend\nbuilding your command and invoking it via the subprocess module directly.\n' STORE_NAME __doc__ LOAD_CONST 1 LOAD_CONST ('XXmotifCommandline',) IMPORT_NAME _xxmotif IMPORT_FROM XXmotifCom...
"""Motif command line tool wrappers (OBSOLETE). We have decided to remove this module in future, and instead recommend building your command and invoking it via the subprocess module directly. """ from ._xxmotif import XXmotifCommandline
data/biopython-1.83/Bio/motifs/applications/__init__.py
98
62
387,411
LOAD_CONST 0 LOAD_CONST ('gettext_lazy',) IMPORT_NAME django.utils.translation IMPORT_FROM gettext_lazy STORE_NAME _ POP_TOP LOAD_NAME _ LOAD_CONST 'Two columns' CALL_FUNCTION LOAD_NAME _ LOAD_CONST 'Three columns' CALL_FUNCTION LOAD_CONST ('wrong_col_two.html', 'wrong_col_three.html') BUILD_CONST_KEY_MAP STORE_NAME ...
from django.utils.translation import gettext_lazy as _ TEMPLATES = { "wrong_col_two.html": _("Two columns"), "wrong_col_three.html": _("Three columns"), }
data/django-cms-4.1.0/cms/test_utils/project/custom_templates/__init__.py
94
62
86,964
LOAD_CONST 0 LOAD_CONST None IMPORT_NAME sys STORE_NAME sys LOAD_NAME sys LOAD_ATTR version_info LOAD_CONST (3,) COMPARE_OP < STORE_NAME IS_PYTHON_2 LOAD_NAME IS_PYTHON_2 POP_JUMP_IF_FALSE LOAD_NAME unicode LOAD_NAME str BUILD_TUPLE STORE_NAME STRING_TYPES JUMP_FORWARD to 36 LOAD_NAME str STORE_NAME STRING_TYPES LO...
import sys IS_PYTHON_2 = sys.version_info < (3,) if IS_PYTHON_2: STRING_TYPES = (unicode, str) else: STRING_TYPES = str
data/RESTinstance-1.3.0/src/REST/compat.py
92
62
155,610
LOAD_CONST 0 LOAD_CONST ('datetime',) IMPORT_NAME datetime IMPORT_FROM datetime STORE_NAME datetime POP_TOP LOAD_CONST 0 LOAD_CONST ('UUID',) IMPORT_NAME uuid IMPORT_FROM UUID STORE_NAME UUID POP_TOP LOAD_CONST 0 LOAD_CONST ('BaseModel',) IMPORT_NAME argilla.pydantic_v1 IMPORT_FROM BaseModel STORE_NAME BaseModel POP_...
from datetime import datetime from uuid import UUID from argilla.pydantic_v1 import BaseModel class WorkspaceModel(BaseModel): id: UUID name: str inserted_at: datetime updated_at: datetime
data/argilla-1.24.0/src/argilla/client/sdk/v1/workspaces/models.py
249
62
249,171
LOAD_CONST 1 LOAD_CONST ('*',) IMPORT_NAME cloudpickle IMPORT_STAR LOAD_CONST 1 LOAD_CONST ('CloudPickler', 'dumps', 'dump') IMPORT_NAME cloudpickle_fast IMPORT_FROM CloudPickler STORE_NAME CloudPickler IMPORT_FROM dumps STORE_NAME dumps IMPORT_FROM dump STORE_NAME dump POP_TOP LOAD_NAME CloudPickler STORE_NAME Pickl...
from .cloudpickle import * # noqa from .cloudpickle_fast import CloudPickler, dumps, dump # noqa Pickler = CloudPickler __version__ = "2.2.0"
data/joblib-1.3.2/joblib/externals/cloudpickle/__init__.py
105
62
386,799
LOAD_CONST <code object message_says_hello at 0x7fab64179780, file "f.py", line 1> LOAD_CONST 'message_says_hello' MAKE_FUNCTION STORE_NAME message_says_hello LOAD_CONST (None,) LOAD_CONST <code object return_hello at 0x7fab64179c00, file "f.py", line 6> LOAD_CONST 'return_hello' MAKE_FUNCTION STORE_NAME return_hello ...
def message_says_hello(msg): """Make sure that the response was friendly""" assert msg.msg.payload.get("message") == "hello world" def return_hello(_=None): return {"hello": "there"}
data/tavern-2.9.3/example/mqtt/testing_utils.py
174
62
187,334
LOAD_CONST 1 LOAD_CONST ('JobsV1Beta3AsyncClient',) IMPORT_NAME async_client IMPORT_FROM JobsV1Beta3AsyncClient STORE_NAME JobsV1Beta3AsyncClient POP_TOP LOAD_CONST 1 LOAD_CONST ('JobsV1Beta3Client',) IMPORT_NAME client IMPORT_FROM JobsV1Beta3Client STORE_NAME JobsV1Beta3Client POP_TOP LOAD_CONST ('JobsV1Beta3Client'...
from .async_client import JobsV1Beta3AsyncClient from .client import JobsV1Beta3Client __all__ = ( "JobsV1Beta3Client", "JobsV1Beta3AsyncClient", )
data/google-cloud-dataflow-client-0.8.8/google/cloud/dataflow_v1beta3/services/jobs_v1_beta3/__init__.py
120
62
346,192
LOAD_CONST '\nTaxonomies API URLs.\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_CONST 1 LOAD_CONST ('urls',) IMPORT_NAME v1 IMPORT_FROM urls STORE_NAME v1_urls POP_TOP LOAD_NAME path LOAD...
""" Taxonomies API URLs. """ from django.urls import include, path from .v1 import urls as v1_urls urlpatterns = [path("v1/", include(v1_urls))]
data/openedx-learning-0.6.2/openedx_tagging/core/tagging/rest_api/urls.py
118
62
155,520
LOAD_CONST '\nTagging API URLs.\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_CONST 1 LOAD_CONST ('urls',) IMPORT_NAME rest_api IMPORT_FROM urls STORE_NAME urls POP_TOP LOAD_CONST 'oel_tag...
""" Tagging API URLs. """ from django.urls import include, path from .rest_api import urls app_name = "oel_tagging" urlpatterns = [path("", include(urls))]
data/openedx-learning-0.6.2/openedx_tagging/core/tagging/urls.py
123
62
155,494
LOAD_CONST 0 LOAD_CONST ('sum',) IMPORT_NAME cvxpy.atoms.affine.sum IMPORT_FROM sum STORE_NAME sum_func POP_TOP LOAD_CONST <code object prod_canon at 0x7faac0322ed0, file "f.py", line 4> LOAD_CONST 'prod_canon' MAKE_FUNCTION STORE_NAME prod_canon LOAD_CONST None RETURN_VALUE LOAD_GLOBAL sum_func LOAD_FAST args LOAD_C...
from cvxpy.atoms.affine.sum import sum as sum_func def prod_canon(expr, args): return sum_func(args[0], axis=expr.axis, keepdims=expr.keepdims), []
data/cvxpy-1.4.2/cvxpy/reductions/dgp2dcp/canonicalizers/prod_canon.py
138
62
273,589
LOAD_CONST 0 LOAD_CONST None IMPORT_NAME sys STORE_NAME sys SETUP_EXCEPT to 22 LOAD_NAME sys LOAD_ATTR modules LOAD_CONST 'System.IO' DELETE_SUBSCR POP_BLOCK JUMP_FORWARD to 42 DUP_TOP LOAD_NAME KeyError COMPARE_OP exception match POP_JUMP_IF_FALSE POP_TOP POP_TOP POP_TOP POP_EXCEPT JUMP_FORWARD to 42 END_FINALLY ...
import sys try: del sys.modules["System.IO"] except KeyError: pass assert "FileStream" not in globals() import System.IO from System.IO import * assert "FileStream" in globals()
data/pythonnet-3.0.3/tests/importtest.py
164
62
343,248
LOAD_CONST 0 LOAD_CONST None IMPORT_NAME sys STORE_NAME sys LOAD_NAME sys LOAD_ATTR version_info LOAD_CONST (3, 10) COMPARE_OP < POP_JUMP_IF_FALSE LOAD_CONST 0 LOAD_CONST None IMPORT_NAME importlib_metadata STORE_NAME importlib_metadata JUMP_FORWARD to 40 LOAD_CONST 0 LOAD_CONST None IMPORT_NAME importlib.metadata I...
import sys if sys.version_info < (3, 10): import importlib_metadata # noqa: F401 else: import importlib.metadata as importlib_metadata # noqa: F401
data/ansible-runner-2.3.5/ansible_runner/utils/importlib_compat.py
92
62
215,243
LOAD_CONST 0 LOAD_CONST ('GlobusProvider',) IMPORT_NAME allauth.socialaccount.providers.globus.provider IMPORT_FROM GlobusProvider STORE_NAME GlobusProvider POP_TOP LOAD_CONST 0 LOAD_CONST ('default_urlpatterns',) IMPORT_NAME allauth.socialaccount.providers.oauth2.urls IMPORT_FROM default_urlpatterns STORE_NAME defaul...
from allauth.socialaccount.providers.globus.provider import GlobusProvider from allauth.socialaccount.providers.oauth2.urls import default_urlpatterns urlpatterns = default_urlpatterns(GlobusProvider)
data/django-allauth-0.61.1/allauth/socialaccount/providers/globus/urls.py
116
62
336,368
LOAD_CONST 0 LOAD_CONST ('AppConfig',) IMPORT_NAME server.apps IMPORT_FROM AppConfig STORE_NAME AppConfig POP_TOP LOAD_CONST 0 LOAD_CONST ('gettext_lazy',) IMPORT_NAME server.utils.translation IMPORT_FROM gettext_lazy STORE_NAME _ POP_TOP LOAD_BUILD_CLASS LOAD_CONST <code object SiteMapsConfig at 0x7fae2f3b3270, file...
from server.apps import AppConfig from server.utils.translation import gettext_lazy as _ class SiteMapsConfig(AppConfig): name = "server.contrib.sitemaps" verbose_name = _("Site Maps")
data/os_sys-2.1.4/server/contrib/sitemaps/apps.py
197
62
247,413
LOAD_CONST 'Helper tests for EQL.' STORE_NAME __doc__ LOAD_CONST 1 LOAD_CONST ('TestEngine', 'QUERIES_FILE', 'EVENTS_FILE') IMPORT_NAME base IMPORT_FROM TestEngine STORE_NAME TestEngine IMPORT_FROM QUERIES_FILE STORE_NAME QUERIES_FILE IMPORT_FROM EVENTS_FILE STORE_NAME EVENTS_FILE POP_TOP LOAD_CONST ('TestEngine', 'Q...
"""Helper tests for EQL.""" from .base import TestEngine, QUERIES_FILE, EVENTS_FILE __all__ = ( "TestEngine", "QUERIES_FILE", "EVENTS_FILE", )
data/eql-0.9.19/eql/tests/__init__.py
109
62
230,212
LOAD_CONST 0 LOAD_CONST None IMPORT_NAME traitlets.traitlets STORE_NAME traitlets LOAD_CONST <code object _disabled_deprecation_warnings at 0x7fab823c2420, file "f.py", line 4> LOAD_CONST '_disabled_deprecation_warnings' MAKE_FUNCTION STORE_NAME _disabled_deprecation_warnings LOAD_NAME _disabled_deprecation_warnings ...
import traitlets.traitlets def _disabled_deprecation_warnings(method, cls, method_name, msg): pass traitlets.traitlets._deprecated_method = _disabled_deprecation_warnings
data/pyinstaller-hooks-contrib-2024.1/src/_pyinstaller_hooks_contrib/hooks/rthooks/pyi_rth_traitlets.py
126
62
282,051
LOAD_CONST 'Test `tqdm.gui`.' STORE_NAME __doc__ LOAD_CONST 1 LOAD_CONST ('importorskip',) IMPORT_NAME tests_tqdm IMPORT_FROM importorskip STORE_NAME importorskip POP_TOP LOAD_CONST <code object test_gui_import at 0x7fab82053ed0, file "f.py", line 6> LOAD_CONST 'test_gui_import' MAKE_FUNCTION STORE_NAME test_gui_impo...
"""Test `tqdm.gui`.""" from .tests_tqdm import importorskip def test_gui_import(): """Test `tqdm.gui` import""" importorskip("tqdm.gui")
data/tqdm-4.66.2/tests/tests_gui.py
136
62
310,452
LOAD_CONST 'Test `tqdm.rich`.' STORE_NAME __doc__ LOAD_CONST 1 LOAD_CONST ('importorskip',) IMPORT_NAME tests_tqdm IMPORT_FROM importorskip STORE_NAME importorskip POP_TOP LOAD_CONST <code object test_rich_import at 0x7fab82053ed0, file "f.py", line 6> LOAD_CONST 'test_rich_import' MAKE_FUNCTION STORE_NAME test_rich_...
"""Test `tqdm.rich`.""" from .tests_tqdm import importorskip def test_rich_import(): """Test `tqdm.rich` import""" importorskip("tqdm.rich")
data/tqdm-4.66.2/tests/tests_rich.py
136
62
310,451
LOAD_CONST 'Module to define custom errors.' STORE_NAME __doc__ LOAD_BUILD_CLASS LOAD_CONST <code object NoSchemaError at 0x7fab700a70c0, file "f.py", line 4> LOAD_CONST 'NoSchemaError' MAKE_FUNCTION LOAD_CONST 'NoSchemaError' LOAD_NAME Exception CALL_FUNCTION STORE_NAME NoSchemaError LOAD_BUILD_CLASS LOAD_CONST <cod...
"""Module to define custom errors.""" class NoSchemaError(Exception): """Raised when validation is attempted but no schema has been provided.""" class BadTomlError(Exception): """Raised when loading from an invalid toml source is attempted."""
data/maison-1.4.3/src/maison/errors.py
252
62
281,835
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 sys LOAD_ATTR path LOAD_METHOD insert LOAD_CONST 0 LOAD_NAME os LOAD_ATTR path LOAD_METHOD dirname LOAD_NAME os LOAD_ATTR path LOAD_METHOD abspath LOAD_NAME __file__ CALL_METHOD CALL_METHOD ...
import os import sys sys.path.insert(0, os.path.dirname(os.path.abspath(__file__))) extensions = ["sphinx_click"] autodoc_mock_imports = ["fake_dependency"]
data/sphinx-click-5.1.0/tests/roots/basics/conf.py
115
62
42,207
LOAD_CONST 0 LOAD_CONST ('extraroute_atomic',) IMPORT_NAME neutron_lib.api.definitions IMPORT_FROM extraroute_atomic STORE_NAME extraroute_atomic 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 obje...
from neutron_lib.api.definitions import extraroute_atomic from neutron_lib.tests.unit.api.definitions import base class ExtrarouteAtomicDefinitionTestCase(base.DefinitionBaseTestCase): extension_module = extraroute_atomic
data/neutron-lib-3.10.0/neutron_lib/tests/unit/api/definitions/test_extraroute_atomic.py
206
62
384,894
LOAD_CONST 0 LOAD_CONST ('TestCase',) IMPORT_NAME PyObjCTools.TestSupport IMPORT_FROM TestCase STORE_NAME TestCase POP_TOP LOAD_CONST 0 LOAD_CONST None IMPORT_NAME NotificationCenter STORE_NAME NotificationCenter LOAD_BUILD_CLASS LOAD_CONST <code object TestCallableMetadata at 0x7f8ece8a8c00, file "f.py", line 6> LOA...
from PyObjCTools.TestSupport import TestCase import NotificationCenter class TestCallableMetadata(TestCase): def test_callable_metadata_is_sane(self): self.assertCallableMetadataIsSane(NotificationCenter)
data/pyobjc-framework-NotificationCenter-10.1/PyObjCTest/test_notificationcenter.py
255
62
125,038
LOAD_CONST 0 LOAD_CONST ('backend_to_check',) IMPORT_NAME bt IMPORT_FROM backend_to_check STORE_NAME backend_to_check POP_TOP LOAD_CONST 0 LOAD_CONST ('platform_is_osx',) IMPORT_NAME pyscreenshot.util IMPORT_FROM platform_is_osx STORE_NAME platform_is_osx POP_TOP LOAD_NAME platform_is_osx CALL_FUNCTION POP_JUMP_IF_FA...
from bt import backend_to_check from pyscreenshot.util import platform_is_osx if platform_is_osx(): def test_mac_quartz(): backend_to_check("mac_quartz")
data/pyscreenshot-3.1/tests/test_mac_quartz.py
180
62
12,428
LOAD_CONST <code object baz at 0x7fab425bf5d0, file "f.py", line 1> LOAD_CONST 'baz' MAKE_FUNCTION STORE_NAME baz LOAD_CONST <code object foo at 0x7fab425bfc00, file "f.py", line 7> LOAD_CONST 'foo' MAKE_FUNCTION STORE_NAME foo LOAD_CONST <code object bar at 0x7fab425bf660, file "f.py", line 13> LOAD_CONST 'bar' MAKE...
def baz(): if baz is str: print("something else that doesn't happen") pass def foo(): if foo is None: print("I never happen") pass def bar(): pass
data/pycobertura-3.3.1/tests/dummy.uncovered.addcode/dummy/dummy.py
211
62
353,418
LOAD_CONST 0 LOAD_CONST None IMPORT_NAME os STORE_NAME os LOAD_NAME open LOAD_NAME os LOAD_ATTR path LOAD_METHOD join LOAD_NAME os LOAD_ATTR path LOAD_METHOD dirname LOAD_NAME __file__ CALL_METHOD LOAD_CONST 'VERSION' CALL_METHOD LOAD_CONST 'r' LOAD_CONST 'utf-8' LOAD_CONST ('encoding',) CALL_FUNCTION SETUP_WITH to 5...
import os with open( os.path.join(os.path.dirname(__file__), "VERSION"), "r", encoding="utf-8" ) as f: version = f.read().strip() __version__ = version
data/TTS-0.22.0/TTS/__init__.py
123
62
246,821
LOAD_CONST <code object test_scaled_positions at 0x7fa6dd2956f0, file "f.py", line 1> LOAD_CONST 'test_scaled_positions' MAKE_FUNCTION STORE_NAME test_scaled_positions LOAD_CONST None RETURN_VALUE LOAD_CONST 0 LOAD_CONST ('Atoms',) IMPORT_NAME ase IMPORT_FROM Atoms STORE_FAST Atoms POP_TOP LOAD_FAST Atoms LOAD_CONST ...
def test_scaled_positions(): from ase import Atoms assert Atoms("X", [(-1e-35, 0, 0)], pbc=True).get_scaled_positions()[0, 0] < 1
data/ase-3.22.1/ase/test/atoms/test_scaled_positions.py
167
62
46,085