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 ('print_function',) IMPORT_NAME __future__ IMPORT_FROM print_function STORE_NAME print_function POP_TOP LOAD_CONST 0 LOAD_CONST None IMPORT_NAME zeep STORE_NAME zeep LOAD_NAME zeep LOAD_ATTR Client LOAD_CONST 'http://ec.europa.eu/taxation_customs/vies/checkVatService.wsdl' LOAD_CONST ('wsdl',...
from __future__ import print_function import zeep client = zeep.Client( wsdl="http://ec.europa.eu/taxation_customs/vies/checkVatService.wsdl" ) print(client.service.checkVat("NL", "123456789B01"))
data/zeep-4.2.1/examples/eu_vat_service.py
142
86
156,580
LOAD_CONST 0 LOAD_CONST ('Member', 'CalculatedMember', 'MdxBuilder', 'MdxTuple', 'MdxHierarchySet', 'normalize', 'MdxSet', 'ElementType', 'Order', 'MdxPropertiesTuple', 'DimensionProperty', 'MdxLevelExpression') IMPORT_NAME mdxpy.mdx IMPORT_FROM Member STORE_NAME Member IMPORT_FROM CalculatedMember STORE_NAME Calculate...
from mdxpy.mdx import ( Member, CalculatedMember, MdxBuilder, MdxTuple, MdxHierarchySet, normalize, MdxSet, ElementType, Order, MdxPropertiesTuple, DimensionProperty, MdxLevelExpression, )
data/mdxpy-1.3.2/mdxpy/__init__.py
204
86
204,345
LOAD_CONST 'txAWS' STORE_NAME display_name LOAD_CONST 'txaws' STORE_NAME library_name LOAD_CONST 'txAWS Developers' STORE_NAME author LOAD_CONST 'txaws-dev@lists.launchpad.net' STORE_NAME author_email LOAD_CONST 'MIT' STORE_NAME license LOAD_CONST 'http://launchpad.net/txaws' STORE_NAME url LOAD_CONST '\nTwisted-...
display_name = "txAWS" library_name = "txaws" author = "txAWS Developers" author_email = "txaws-dev@lists.launchpad.net" license = "MIT" url = "http://launchpad.net/txaws" description = """ Twisted-based Asynchronous Libraries for Amazon Web Services """
data/txAWS-0.5.0/txaws/meta.py
111
86
173,282
LOAD_CONST 0 LOAD_CONST ('provider_net',) IMPORT_NAME neutron_lib.api.definitions IMPORT_FROM provider_net STORE_NAME provider_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 ProviderNetT...
from neutron_lib.api.definitions import provider_net from neutron_lib.tests.unit.api.definitions import base class ProviderNetTestCase(base.DefinitionBaseTestCase): extension_module = provider_net extension_resources = (provider_net.COLLECTION_NAME,) extension_attributes = provider_net.ATTRIBUTES
data/neutron-lib-3.10.0/neutron_lib/tests/unit/api/definitions/test_provider_net.py
218
86
385,017
LOAD_CONST 'Play sound commands.' STORE_NAME __doc__ LOAD_CONST 0 LOAD_CONST ('annotations',) IMPORT_NAME __future__ IMPORT_FROM annotations STORE_NAME annotations POP_TOP LOAD_CONST 1 LOAD_CONST ('ExecuteCommand',) IMPORT_NAME common IMPORT_FROM ExecuteCommand STORE_NAME ExecuteCommand POP_TOP LOAD_BUILD_CLASS LOAD...
"""Play sound commands.""" from __future__ import annotations from .common import ExecuteCommand class PlaySound(ExecuteCommand): """Play sound command.""" name = "playSound" def __init__(self) -> None: super().__init__({"count": 1, "sid": 30})
data/deebot-client-5.2.1/deebot_client/commands/json/play_sound.py
303
86
357,747
LOAD_CONST <code object is_affirmative at 0x7faa5f4bc930, file "f.py", line 1> LOAD_CONST 'is_affirmative' MAKE_FUNCTION STORE_NAME is_affirmative LOAD_NAME is_affirmative STORE_NAME _is_affirmative LOAD_CONST None RETURN_VALUE LOAD_GLOBAL isinstance LOAD_FAST value LOAD_GLOBAL str CALL_FUNCTION POP_JUMP_IF_FALSE LO...
def is_affirmative(value): """ Attempt to convert different type of values to a meaningful boolean """ if isinstance(value, str): return value.lower() in {"yes", "true", "1", "y", "on"} return not not value _is_affirmative = is_affirmative
data/datadog_checks_base-36.1.0/datadog_checks/base/config.py
135
86
442,792
LOAD_CONST 0 LOAD_CONST ('TestCase', 'min_sdk_level') IMPORT_NAME PyObjCTools.TestSupport IMPORT_FROM TestCase STORE_NAME TestCase IMPORT_FROM min_sdk_level STORE_NAME min_sdk_level POP_TOP LOAD_CONST 0 LOAD_CONST None IMPORT_NAME GameplayKit STORE_NAME GameplayKit LOAD_BUILD_CLASS LOAD_CONST <code object TestGKAgent...
from PyObjCTools.TestSupport import TestCase, min_sdk_level import GameplayKit # noqa: F401 class TestGKAgent(TestCase): @min_sdk_level("10.12") def testProtocols(self): self.assertProtocolExists("GKSceneRootNodeType")
data/pyobjc-framework-GameplayKit-10.1/PyObjCTest/test_gkscene.py
274
86
57,615
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 Virtualization STORE_NAME Virtualization LOAD_BUILD_CLASS LOAD_CONST <code object TestVZVirtioSocketDevice at 0x7fab700e4a50, file "f.py", line 6> LOAD_CO...
from PyObjCTools.TestSupport import TestCase import Virtualization class TestVZVirtioSocketDevice(TestCase): def test_methods(self): self.assertArgIsBlock( Virtualization.VZVirtioSocketDevice.connectToPort_completionHandler_, 1, b"v@@", )
data/pyobjc-framework-Virtualization-10.1/PyObjCTest/test_vzvirtiosocketdevice.py
282
86
187,838
LOAD_CONST 'Per-prefix data, mapping each prefix to a name.\n\nAuto-generated file, do not edit by hand.\n' STORE_NAME __doc__ LOAD_CONST 0 LOAD_CONST ('u',) IMPORT_NAME phonenumbers.util IMPORT_FROM u STORE_NAME u POP_TOP BUILD_MAP STORE_NAME TIMEZONE_DATA LOAD_CONST 1 LOAD_CONST ('data',) IMPORT_NAME data0 IMPORT_...
"""Per-prefix data, mapping each prefix to a name. Auto-generated file, do not edit by hand. """ from phonenumbers.util import u TIMEZONE_DATA = {} from .data0 import data TIMEZONE_DATA.update(data) del data TIMEZONE_LONGEST_PREFIX = 7
data/phonenumberslite-8.13.30/tests/testtzdata/__init__.py
143
86
440,081
LOAD_CONST './fovea_r50_fpn_4xb4-2x_coco.py' STORE_NAME _base_ LOAD_NAME dict LOAD_NAME dict LOAD_CONST 101 LOAD_NAME dict LOAD_CONST 'Pretrained' LOAD_CONST 'torchvision://resnet101' LOAD_CONST ('type', 'checkpoint') CALL_FUNCTION LOAD_CONST ('depth', 'init_cfg') CALL_FUNCTION LOAD_CONST ('backbone',) CALL_FUNCTIO...
_base_ = "./fovea_r50_fpn_4xb4-2x_coco.py" model = dict( backbone=dict( depth=101, init_cfg=dict(type="Pretrained", checkpoint="torchvision://resnet101"), ) )
data/mmdet-3.3.0/mmdet/.mim/configs/foveabox/fovea_r101_fpn_4xb4-2x_coco.py
111
86
151,860
LOAD_CONST './fovea_r50_fpn_4xb4-1x_coco.py' STORE_NAME _base_ LOAD_NAME dict LOAD_NAME dict LOAD_CONST 101 LOAD_NAME dict LOAD_CONST 'Pretrained' LOAD_CONST 'torchvision://resnet101' LOAD_CONST ('type', 'checkpoint') CALL_FUNCTION LOAD_CONST ('depth', 'init_cfg') CALL_FUNCTION LOAD_CONST ('backbone',) CALL_FUNCTIO...
_base_ = "./fovea_r50_fpn_4xb4-1x_coco.py" model = dict( backbone=dict( depth=101, init_cfg=dict(type="Pretrained", checkpoint="torchvision://resnet101"), ) )
data/mmdet-3.3.0/mmdet/.mim/configs/foveabox/fovea_r101_fpn_4xb4-1x_coco.py
111
86
151,858
LOAD_CONST "Dataset definition for math_dataset.\n\nDEPRECATED!\nIf you want to use the MathDataset dataset builder class, use:\ntfds.builder_cls('math_dataset')\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_b...
"""Dataset definition for math_dataset. DEPRECATED! If you want to use the MathDataset dataset builder class, use: tfds.builder_cls('math_dataset') """ from tensorflow_datasets.core import lazy_builder_import MathDataset = lazy_builder_import.LazyBuilderImport("math_dataset")
data/tfds-nightly-4.9.4.dev202402210044/tensorflow_datasets/text/math_dataset.py
130
86
211,119
LOAD_CONST 0 LOAD_CONST None IMPORT_NAME ctypes STORE_NAME ctypes LOAD_CONST 0 LOAD_CONST None IMPORT_NAME pytest STORE_NAME pytest LOAD_CONST 0 LOAD_CONST ('lib',) IMPORT_NAME awkward_cpp.cpu_kernels IMPORT_FROM lib STORE_NAME lib POP_TOP LOAD_NAME pytest LOAD_ATTR mark LOAD_ATTR skip LOAD_CONST 'Unable to generate...
import ctypes import pytest from awkward_cpp.cpu_kernels import lib @pytest.mark.skip(reason="Unable to generate any tests for kernel") def test_cpuawkward_reduce_argmin_float32_64_1(): raise NotImplementedError("Unable to generate any tests for kernel")
data/awkward-cpp-29/tests-cpu-kernels/test_cpuawkward_reduce_argmin_float32_64.py
225
86
221,630
LOAD_CONST 0 LOAD_CONST ('*',) IMPORT_NAME azure.cli.core.aaz IMPORT_STAR LOAD_NAME register_command_group LOAD_CONST 'network virtual-appliance' LOAD_CONST True LOAD_CONST ('is_preview',) CALL_FUNCTION LOAD_BUILD_CLASS LOAD_CONST <code object __CMDGroup at 0x7fab82197d20, file "f.py", line 4> LOAD_CONST '__CMDGroup...
from azure.cli.core.aaz import * @register_command_group( "network virtual-appliance", is_preview=True, ) class __CMDGroup(AAZCommandGroup): """Manage Azure Network Virtual Appliance.""" pass __all__ = ["__CMDGroup"]
data/azure-cli-2.57.0/azure/cli/command_modules/network/aaz/latest/network/virtual_appliance/__cmd_group.py
200
86
378,021
LOAD_CONST 0 LOAD_CONST None IMPORT_NAME sys STORE_NAME sys LOAD_CONST 0 LOAD_CONST None IMPORT_NAME uwsgi STORE_NAME uwsgi LOAD_NAME sys LOAD_ATTR meta_path LOAD_METHOD insert LOAD_CONST 0 LOAD_NAME uwsgi LOAD_METHOD SymbolsZipImporter LOAD_CONST 'django_zip:djenv/lib/python2.6/site-packages' CALL_METHOD CALL_METHO...
import sys import uwsgi sys.meta_path.insert( 0, uwsgi.SymbolsZipImporter("django_zip:djenv/lib/python2.6/site-packages") ) sys.meta_path.insert(0, uwsgi.SymbolsZipImporter("djapp_zip"))
data/uwsgi-2.0.24/examples/bootstrap3.py
142
86
398,221
LOAD_CONST 0 LOAD_CONST None IMPORT_NAME argparse STORE_NAME argparse LOAD_CONST 0 LOAD_CONST ('contents', 'where') IMPORT_NAME pipenv.patched.pip._vendor.certifi IMPORT_FROM contents STORE_NAME contents IMPORT_FROM where STORE_NAME where POP_TOP LOAD_NAME argparse LOAD_METHOD ArgumentParser CALL_METHOD STORE_NAME pa...
import argparse from pipenv.patched.pip._vendor.certifi import contents, where parser = argparse.ArgumentParser() parser.add_argument("-c", "--contents", action="store_true") args = parser.parse_args() if args.contents: print(contents()) else: print(where())
data/pipenv-2023.12.1/pipenv/patched/pip/_vendor/certifi/__main__.py
168
86
402,018
LOAD_CONST '\nSet of SQLAlchemy database schemas supported in MLflow for tracking server backends.\n' STORE_NAME __doc__ LOAD_CONST 'postgresql' STORE_NAME POSTGRES LOAD_CONST 'mysql' STORE_NAME MYSQL LOAD_CONST 'sqlite' STORE_NAME SQLITE LOAD_CONST 'mssql' STORE_NAME MSSQL LOAD_NAME POSTGRES LOAD_NAME MYSQL LOAD_...
""" Set of SQLAlchemy database schemas supported in MLflow for tracking server backends. """ POSTGRES = "postgresql" MYSQL = "mysql" SQLITE = "sqlite" MSSQL = "mssql" DATABASE_ENGINES = [POSTGRES, MYSQL, SQLITE, MSSQL]
data/mlflow-skinny-2.10.2/mlflow/store/db/db_types.py
112
86
291,762
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 MailKit STORE_NAME MailKit LOAD_BUILD_CLASS LOAD_CONST <code object TestMEDecodedMessageBanner at 0x7fab4299cd20, file "f.py", line 5> LOAD_CONST 'TestMED...
from PyObjCTools.TestSupport import TestCase import MailKit class TestMEDecodedMessageBanner(TestCase): def test_classes(self): self.assertArgIsBOOL( MailKit.MEDecodedMessageBanner.initWithTitle_primaryActionTitle_dismissable_, 2, )
data/pyobjc-framework-MailKit-10.1/PyObjCTest/test_medecodedmessagebanner.py
285
86
94,105
LOAD_CONST 0 LOAD_CONST None IMPORT_NAME ctypes STORE_NAME ctypes LOAD_CONST 0 LOAD_CONST None IMPORT_NAME pytest STORE_NAME pytest LOAD_CONST 0 LOAD_CONST ('lib',) IMPORT_NAME awkward_cpp.cpu_kernels IMPORT_FROM lib STORE_NAME lib POP_TOP LOAD_NAME pytest LOAD_ATTR mark LOAD_ATTR skip LOAD_CONST 'Unable to generate...
import ctypes import pytest from awkward_cpp.cpu_kernels import lib @pytest.mark.skip(reason="Unable to generate any tests for kernel") def test_cpuawkward_reduce_argmin_int64_64_1(): raise NotImplementedError("Unable to generate any tests for kernel")
data/awkward-cpp-29/tests-cpu-kernels/test_cpuawkward_reduce_argmin_int64_64.py
225
86
221,637
LOAD_CONST 0 LOAD_CONST ('path',) IMPORT_NAME django.urls IMPORT_FROM path STORE_NAME path POP_TOP LOAD_CONST 0 LOAD_CONST ('required_urlpatterns',) IMPORT_NAME testproj.urls IMPORT_FROM required_urlpatterns STORE_NAME required_urlpatterns POP_TOP LOAD_CONST <code object dummy at 0x7fab703f7b70, file "f.py", line 6> ...
from django.urls import path from testproj.urls import required_urlpatterns def dummy(request): pass urlpatterns = required_urlpatterns + [ path("test/login", dummy, name="login"), path("test/logout", dummy, name="logout"), ]
data/drf-yasg-1.21.7/tests/urlconfs/login_test_urls.py
195
86
352,383
LOAD_CONST "Dataset definition for so2sat.\n\nDEPRECATED!\nIf you want to use the So2sat dataset builder class, use:\ntfds.builder_cls('so2sat')\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...
"""Dataset definition for so2sat. DEPRECATED! If you want to use the So2sat dataset builder class, use: tfds.builder_cls('so2sat') """ from tensorflow_datasets.core import lazy_builder_import So2sat = lazy_builder_import.LazyBuilderImport("so2sat")
data/tfds-nightly-4.9.4.dev202402210044/tensorflow_datasets/image_classification/so2sat.py
130
86
238,433
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 CallKit STORE_NAME CallKit LOAD_BUILD_CLASS LOAD_CONST <code object TestCXStartCallAction at 0x7fab8237f780, file "f.py", line 5> LOAD_CONST 'TestCXStartC...
from PyObjCTools.TestSupport import TestCase import CallKit class TestCXStartCallAction(TestCase): def test_methods(self): self.assertResultIsBOOL(CallKit.CXStartCallAction.isVideo) self.assertArgIsBOOL(CallKit.CXStartCallAction.setVideo_, 0)
data/pyobjc-framework-CallKit-10.1/PyObjCTest/test_cxstartcallaction.py
284
86
57,881
LOAD_CONST "Dataset definition for cityscapes.\n\nDEPRECATED!\nIf you want to use the Cityscapes dataset builder class, use:\ntfds.builder_cls('cityscapes')\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_builde...
"""Dataset definition for cityscapes. DEPRECATED! If you want to use the Cityscapes dataset builder class, use: tfds.builder_cls('cityscapes') """ from tensorflow_datasets.core import lazy_builder_import Cityscapes = lazy_builder_import.LazyBuilderImport("cityscapes")
data/tfds-nightly-4.9.4.dev202402210044/tensorflow_datasets/image/cityscapes.py
130
86
238,315
LOAD_CONST 0 LOAD_CONST ('HUB_API_ROOT', 'HUB_WEB_ROOT') IMPORT_NAME hub_sdk.config IMPORT_FROM HUB_API_ROOT STORE_NAME HUB_API_ROOT IMPORT_FROM HUB_WEB_ROOT STORE_NAME HUB_WEB_ROOT POP_TOP LOAD_CONST 0 LOAD_CONST ('HUBClient',) IMPORT_NAME hub_sdk.hub_client IMPORT_FROM HUBClient STORE_NAME HUBClient POP_TOP LOAD_CO...
from hub_sdk.config import HUB_API_ROOT, HUB_WEB_ROOT from hub_sdk.hub_client import HUBClient __version__ = "0.0.3" __all__ = "__version__", "HUBClient", "HUB_API_ROOT", "HUB_WEB_ROOT"
data/hub-sdk-0.0.3/hub_sdk/__init__.py
164
86
356,119
LOAD_CONST 0 LOAD_CONST ('unique',) IMPORT_NAME enum IMPORT_FROM unique STORE_NAME unique POP_TOP LOAD_CONST 4 LOAD_CONST ('StrEnum',) IMPORT_NAME _base_enum IMPORT_FROM StrEnum STORE_NAME StrEnum POP_TOP LOAD_NAME unique LOAD_BUILD_CLASS LOAD_CONST <code object Format at 0x7fab700e4390, file "f.py", line 6> LOAD_CON...
from enum import unique from ...._base_enum import StrEnum @unique class Format(StrEnum): """ The enumerate that specifies whether the calculated volatilities """ LIST = "List" MATRIX = "Matrix" N_DIMENSIONAL_ARRAY = "NDimensionalArray"
data/refinitiv-data-1.6.0/refinitiv/data/content/ipa/_enums/_format.py
210
86
195,578
LOAD_CONST 1 LOAD_CONST ('FeatureMetadata',) IMPORT_NAME features.feature_metadata IMPORT_FROM FeatureMetadata STORE_NAME FeatureMetadata POP_TOP LOAD_CONST 1 LOAD_CONST ('_add_stream_handler',) IMPORT_NAME utils.log_utils IMPORT_FROM _add_stream_handler STORE_NAME _add_stream_handler POP_TOP LOAD_CONST 1 LOAD_CONST ...
from .features.feature_metadata import FeatureMetadata from .utils.log_utils import _add_stream_handler from .utils.log_utils import fix_logging_if_kaggle as __fix_logging_if_kaggle from .version import __version__ __fix_logging_if_kaggle() _add_stream_handler()
data/autogluon.common-1.0.0/src/autogluon/common/__init__.py
185
86
389,056
LOAD_CONST 1 LOAD_CONST ('GlobusAuthorizationCodeFlowManager',) IMPORT_NAME authorization_code IMPORT_FROM GlobusAuthorizationCodeFlowManager STORE_NAME GlobusAuthorizationCodeFlowManager POP_TOP LOAD_CONST 1 LOAD_CONST ('GlobusOAuthFlowManager',) IMPORT_NAME base IMPORT_FROM GlobusOAuthFlowManager STORE_NAME GlobusOA...
from .authorization_code import GlobusAuthorizationCodeFlowManager from .base import GlobusOAuthFlowManager from .native_app import GlobusNativeAppFlowManager __all__ = ( "GlobusAuthorizationCodeFlowManager", "GlobusOAuthFlowManager", "GlobusNativeAppFlowManager", )
data/globus-sdk-3.37.0/src/globus_sdk/services/auth/flow_managers/__init__.py
168
86
217,533
LOAD_CONST 0 LOAD_CONST ('SmartCardProtocol', 'ApplicationNotAvailableError') IMPORT_NAME yubikit.core.smartcard IMPORT_FROM SmartCardProtocol STORE_NAME SmartCardProtocol IMPORT_FROM ApplicationNotAvailableError STORE_NAME ApplicationNotAvailableError POP_TOP LOAD_CONST 0 LOAD_CONST None IMPORT_NAME pytest STORE_NAME...
from yubikit.core.smartcard import SmartCardProtocol, ApplicationNotAvailableError import pytest def test_select_wrong_app(ccid_connection): p = SmartCardProtocol(ccid_connection) with pytest.raises(ApplicationNotAvailableError): p.select(b"not_a_real_aid")
data/yubikey_manager-5.3.0/tests/device/test_ccid.py
218
86
63,451
LOAD_CONST 0 LOAD_CONST ('create_app',) IMPORT_NAME flaskr IMPORT_FROM create_app STORE_NAME create_app POP_TOP LOAD_CONST <code object test_config at 0x7faa74640db0, file "f.py", line 4> LOAD_CONST 'test_config' MAKE_FUNCTION STORE_NAME test_config LOAD_CONST <code object test_hello at 0x7fab6413e5d0, file "f.py", l...
from flaskr import create_app def test_config(): """Test create_app without passing test config.""" assert not create_app().testing assert create_app({"TESTING": True}).testing def test_hello(client): response = client.get("/hello") assert response.data == b"Hello, World!"
data/flask-3.0.2/examples/tutorial/tests/test_factory.py
237
86
251,629
LOAD_CONST '\nTwisted Web: HTTP clients and servers, plus tools for implementing them.\n\nContains a L{web server<twisted.web.server>} (including an\nL{HTTP implementation<twisted.web.http>}, a\nL{resource model<twisted.web.resource>}), and\na L{web client<twisted.web.client>}.\n' STORE_NAME __doc__ LOAD_CONST None RET...
""" Twisted Web: HTTP clients and servers, plus tools for implementing them. Contains a L{web server<twisted.web.server>} (including an L{HTTP implementation<twisted.web.http>}, a L{resource model<twisted.web.resource>}), and a L{web client<twisted.web.client>}. """
data/twisted-23.10.0/src/twisted/web/__init__.py
100
86
384,149
LOAD_CONST 0 LOAD_CONST ('main',) IMPORT_NAME unittest IMPORT_FROM main STORE_NAME main POP_TOP LOAD_CONST 0 LOAD_CONST ('is_native',) IMPORT_NAME libcst._parser.entrypoints IMPORT_FROM is_native STORE_NAME is_native POP_TOP LOAD_NAME __name__ LOAD_CONST '__main__' COMPARE_OP == POP_JUMP_IF_FALSE LOAD_NAME is_native...
from unittest import main from libcst._parser.entrypoints import is_native if __name__ == "__main__": parser_type = "native" if is_native() else "pure" print(f"running tests with {parser_type!r} parser") main(module=None, verbosity=2)
data/libcst-1.2.0/libcst/tests/__main__.py
167
86
46,563
LOAD_CONST 1 LOAD_CONST ('collect_results_cpu', 'collect_results_gpu', 'multi_gpu_test', 'single_gpu_test') IMPORT_NAME test IMPORT_FROM collect_results_cpu STORE_NAME collect_results_cpu IMPORT_FROM collect_results_gpu STORE_NAME collect_results_gpu IMPORT_FROM multi_gpu_test STORE_NAME multi_gpu_test IMPORT_FROM sing...
from .test import ( collect_results_cpu, collect_results_gpu, multi_gpu_test, single_gpu_test, ) __all__ = [ "collect_results_cpu", "collect_results_gpu", "multi_gpu_test", "single_gpu_test", ]
data/mmcv-full-1.7.2/mmcv/engine/__init__.py
147
86
257,063
LOAD_CONST 'URL views for help-tokens.' STORE_NAME __doc__ LOAD_CONST 0 LOAD_CONST ('HttpResponseRedirect',) IMPORT_NAME django.http IMPORT_FROM HttpResponseRedirect STORE_NAME HttpResponseRedirect POP_TOP LOAD_CONST 1 LOAD_CONST ('core',) IMPORT_NAME IMPORT_FROM core STORE_NAME core POP_TOP LOAD_CONST (None,) LOAD_...
"""URL views for help-tokens.""" from django.http import HttpResponseRedirect from . import core def help_token_redirect(request, token=None): """Redirect to the URL for a help token.""" return HttpResponseRedirect(core.HelpUrlExpert.the_one().url_for_token(token))
data/help-tokens-2.3.0/help_tokens/views.py
178
86
203,177
LOAD_CONST 0 LOAD_CONST ('FastAPI',) IMPORT_NAME fastapi IMPORT_FROM FastAPI STORE_NAME FastAPI POP_TOP LOAD_CONST 0 LOAD_CONST ('StreamingResponse',) IMPORT_NAME fastapi.responses IMPORT_FROM StreamingResponse STORE_NAME StreamingResponse POP_TOP LOAD_NAME FastAPI CALL_FUNCTION STORE_NAME app LOAD_CONST <code objec...
from fastapi import FastAPI from fastapi.responses import StreamingResponse app = FastAPI() async def fake_video_streamer(): for i in range(10): yield b"some fake video bytes" @app.get("/") async def main(): return StreamingResponse(fake_video_streamer())
data/fastapi-0.109.2/docs_src/custom_response/tutorial007.py
258
86
142,679
SETUP_EXCEPT to 18 LOAD_CONST 0 LOAD_CONST ('url',) IMPORT_NAME django.conf.urls IMPORT_FROM url STORE_NAME url POP_TOP POP_BLOCK JUMP_FORWARD to 50 DUP_TOP LOAD_NAME ImportError COMPARE_OP exception match POP_JUMP_IF_FALSE POP_TOP POP_TOP POP_TOP LOAD_CONST 0 LOAD_CONST ('re_path',) IMPORT_NAME django.urls IMPORT_F...
try: from django.conf.urls import url except ImportError: from django.urls import re_path as url from django.views.generic import View urlpatterns = [ url(r"^test_changed_urlconf/$", View.as_view(), name="test_changed_urlconf"), ]
data/django-js-reverse-0.10.2/django_js_reverse/tests/test_urlconf_urls.py
185
86
203,289
LOAD_CONST 0 LOAD_CONST ('DeprecationRule',) IMPORT_NAME saltlint.linter.rule IMPORT_FROM DeprecationRule STORE_NAME DeprecationRule POP_TOP LOAD_BUILD_CLASS LOAD_CONST <code object StateDeprecationVirtUnpoweredRule at 0x7faa761ee660, file "f.py", line 4> LOAD_CONST 'StateDeprecationVirtUnpoweredRule' MAKE_FUNCTION LO...
from saltlint.linter.rule import DeprecationRule class StateDeprecationVirtUnpoweredRule(DeprecationRule): id = "905" state = "virt.unpowered" deprecated_since = "2016.3.0" version_added = "v0.5.0"
data/salt-lint-0.9.2/saltlint/rules/StateDeprecationVirtUnpoweredRule.py
225
86
436,343
LOAD_CONST "Dataset definition for mctaco.\n\nDEPRECATED!\nIf you want to use the Mctaco dataset builder class, use:\ntfds.builder_cls('mctaco')\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...
"""Dataset definition for mctaco. DEPRECATED! If you want to use the Mctaco dataset builder class, use: tfds.builder_cls('mctaco') """ from tensorflow_datasets.core import lazy_builder_import Mctaco = lazy_builder_import.LazyBuilderImport("mctaco")
data/tfds-nightly-4.9.4.dev202402210044/tensorflow_datasets/question_answering/mctaco.py
130
86
238,354
LOAD_CONST 2 LOAD_CONST ('Provider',) IMPORT_NAME IMPORT_FROM Provider STORE_NAME BarcodeProvider POP_TOP LOAD_BUILD_CLASS LOAD_CONST <code object Provider at 0x7fab4290d660, file "f.py", line 4> LOAD_CONST 'Provider' MAKE_FUNCTION LOAD_CONST 'Provider' LOAD_NAME BarcodeProvider CALL_FUNCTION STORE_NAME Provider LOAD_...
from .. import Provider as BarcodeProvider class Provider(BarcodeProvider): """Implement barcode provider for ``es_ES`` locale. Sources: - https://gs1.org/standards/id-keys/company-prefix """ local_prefixes = ((8, 4),)
data/Faker-23.2.1/faker/providers/barcode/es_ES/__init__.py
185
86
16,406
LOAD_CONST '\nThis import enables the import path of the django-jinja template backend\nto have a sane default NAME in your TEMPLATES setting.\nSee: https://github.com/niwinz/django-jinja/pull/303\n' STORE_NAME __doc__ LOAD_CONST 1 LOAD_CONST ('Jinja2',) IMPORT_NAME backend IMPORT_FROM Jinja2 STORE_NAME Jinja2 POP_TOP...
""" This import enables the import path of the django-jinja template backend to have a sane default NAME in your TEMPLATES setting. See: https://github.com/niwinz/django-jinja/pull/303 """ from .backend import Jinja2 __all__ = ["Jinja2"]
data/django-jinja-2.11.0/django_jinja/jinja2.py
122
86
436,216
LOAD_CONST "Dataset definition for assin2.\n\nDEPRECATED!\nIf you want to use the Assin2 dataset builder class, use:\ntfds.builder_cls('assin2')\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...
"""Dataset definition for assin2. DEPRECATED! If you want to use the Assin2 dataset builder class, use: tfds.builder_cls('assin2') """ from tensorflow_datasets.core import lazy_builder_import Assin2 = lazy_builder_import.LazyBuilderImport("assin2")
data/tfds-nightly-4.9.4.dev202402210044/tensorflow_datasets/text/assin2/assin2.py
130
86
211,229
LOAD_CONST "Dataset definition for aeslc.\n\nDEPRECATED!\nIf you want to use the Aeslc dataset builder class, use:\ntfds.builder_cls('aeslc')\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 aeslc. DEPRECATED! If you want to use the Aeslc dataset builder class, use: tfds.builder_cls('aeslc') """ from tensorflow_datasets.core import lazy_builder_import Aeslc = lazy_builder_import.LazyBuilderImport("aeslc")
data/tfds-nightly-4.9.4.dev202402210044/tensorflow_datasets/summarization/aeslc.py
130
86
211,328
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 ('LoadBalancerClient',) IMPORT_NAME load_balancer_client IMPORT_FROM LoadBalancerClient STORE_NAME LoadBalancerClient POP_TOP LOAD_CONST 1 LOAD_CONST ('LoadBalance...
from __future__ import absolute_import from .load_balancer_client import LoadBalancerClient from .load_balancer_client_composite_operations import ( LoadBalancerClientCompositeOperations, ) from . import models __all__ = ["LoadBalancerClient", "LoadBalancerClientCompositeOperations", "models"]
data/oci-2.122.0/src/oci/load_balancer/__init__.py
179
86
407,379
LOAD_CONST 1 LOAD_CONST ('ConvFCBBoxNHead', 'Shared2FCBBoxNHead', 'Shared4Conv1FCBBoxNHead') IMPORT_NAME convfc_bbox_head IMPORT_FROM ConvFCBBoxNHead STORE_NAME ConvFCBBoxNHead IMPORT_FROM Shared2FCBBoxNHead STORE_NAME Shared2FCBBoxNHead IMPORT_FROM Shared4Conv1FCBBoxNHead STORE_NAME Shared4Conv1FCBBoxNHead POP_TOP LO...
from .convfc_bbox_head import ( ConvFCBBoxNHead, Shared2FCBBoxNHead, Shared4Conv1FCBBoxNHead, ) __all__ = ["ConvFCBBoxNHead", "Shared2FCBBoxNHead", "Shared4Conv1FCBBoxNHead"]
data/modelscope-1.12.0/modelscope/models/cv/object_detection/mmdet_ms/roi_heads/bbox_heads/__init__.py
160
86
314,537
LOAD_CONST "Dataset definition for simpte.\n\nDEPRECATED!\nIf you want to use the Simpte dataset builder class, use:\ntfds.builder_cls('simpte')\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...
"""Dataset definition for simpte. DEPRECATED! If you want to use the Simpte dataset builder class, use: tfds.builder_cls('simpte') """ from tensorflow_datasets.core import lazy_builder_import Simpte = lazy_builder_import.LazyBuilderImport("simpte")
data/tensorflow-datasets-4.9.4/tensorflow_datasets/recommendation/simPTE/simPTE.py
130
86
255,134
LOAD_CONST 'adipisci aliquam amet consectetur dolor dolore dolorem eius est etincidunt ipsum labore magnam modi neque non numquam porro quaerat quiquia quisquam sed sit tempora ut velit voluptatem' LOAD_METHOD split CALL_METHOD STORE_NAME WORDS LOAD_CONST None RETURN_VALUE
WORDS = ( "adipisci aliquam amet consectetur dolor dolore dolorem eius est et" "incidunt ipsum labore magnam modi neque non numquam porro quaerat qui" "quia quisquam sed sit tempora ut velit voluptatem" ).split()
data/lorem-0.1.1/lorem/data.py
84
86
434,898
LOAD_CONST "Dataset definition for math_dataset.\n\nDEPRECATED!\nIf you want to use the MathDataset dataset builder class, use:\ntfds.builder_cls('math_dataset')\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_b...
"""Dataset definition for math_dataset. DEPRECATED! If you want to use the MathDataset dataset builder class, use: tfds.builder_cls('math_dataset') """ from tensorflow_datasets.core import lazy_builder_import MathDataset = lazy_builder_import.LazyBuilderImport("math_dataset")
data/tensorflow-datasets-4.9.4/tensorflow_datasets/text/math_dataset.py
130
86
256,162
LOAD_CONST 0 LOAD_CONST ('Literal',) IMPORT_NAME typing IMPORT_FROM Literal STORE_NAME Literal POP_TOP LOAD_NAME Literal LOAD_CONST ('1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '11', '12', 'none') BINARY_SUBSCR STORE_NAME GridTemplateColumns LOAD_CONST None RETURN_VALUE
from typing import Literal GridTemplateColumns = Literal[ "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "none", ]
data/nicegui-1.4.15/nicegui/tailwind_types/grid_template_columns.py
85
86
223,397
LOAD_CONST 1 LOAD_CONST ('BundledDocumentMetadata', 'BundledQuery', 'BundleElement', 'BundleMetadata', 'NamedQuery') IMPORT_NAME bundle IMPORT_FROM BundledDocumentMetadata STORE_NAME BundledDocumentMetadata IMPORT_FROM BundledQuery STORE_NAME BundledQuery IMPORT_FROM BundleElement STORE_NAME BundleElement IMPORT_FROM B...
from .bundle import ( BundledDocumentMetadata, BundledQuery, BundleElement, BundleMetadata, NamedQuery, ) __all__ = ( "BundledDocumentMetadata", "BundledQuery", "BundleElement", "BundleMetadata", "NamedQuery", )
data/google-cloud-firestore-2.15.0/google/cloud/firestore_bundle/types/__init__.py
130
86
198,698
LOAD_CONST 1 LOAD_CONST ('BaseClientParser',) IMPORT_NAME IMPORT_FROM BaseClientParser STORE_NAME BaseClientParser POP_TOP LOAD_BUILD_CLASS LOAD_CONST <code object VPNProxy at 0x7f8e2fd4e0c0, file "f.py", line 4> LOAD_CONST 'VPNProxy' MAKE_FUNCTION LOAD_CONST 'VPNProxy' LOAD_NAME BaseClientParser CALL_FUNCTION STORE_N...
from . import BaseClientParser class VPNProxy(BaseClientParser): fixture_files = [ "local/client/vpnproxy.yml", ] def dtype(self): return self.calculated_dtype or "vpnproxy" __all__ = [ "VPNProxy", ]
data/device_detector-5.0.1/device_detector/parser/client/vpnproxy.py
231
86
336,765
LOAD_CONST 'POST' LOAD_NAME uri LOAD_CONST '/post_chunked_all_your_base' CALL_FUNCTION LOAD_CONST (1, 1) LOAD_CONST ('TRANSFER-ENCODING', 'chunked') BUILD_LIST LOAD_CONST b'all your base are belong to us' LOAD_CONST ('method', 'uri', 'version', 'headers', 'body') BUILD_CONST_KEY_MAP STORE_NAME request LOAD_CONST No...
request = { "method": "POST", "uri": uri("/post_chunked_all_your_base"), "version": (1, 1), "headers": [ ("TRANSFER-ENCODING", "chunked"), ], "body": b"all your base are belong to us", }
data/gunicorn-21.2.0/tests/requests/valid/010.py
95
86
343,442
LOAD_CONST "Dataset definition for summscreen.\n\nDEPRECATED!\nIf you want to use the Summscreen dataset builder class, use:\ntfds.builder_cls('summscreen')\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_builde...
"""Dataset definition for summscreen. DEPRECATED! If you want to use the Summscreen dataset builder class, use: tfds.builder_cls('summscreen') """ from tensorflow_datasets.core import lazy_builder_import Summscreen = lazy_builder_import.LazyBuilderImport("summscreen")
data/tfds-nightly-4.9.4.dev202402210044/tensorflow_datasets/summarization/summscreen/summscreen.py
130
86
211,349
LOAD_CONST 0 LOAD_CONST ('*',) IMPORT_NAME types IMPORT_STAR LOAD_CONST 1 LOAD_CONST ('passthrough_module',) IMPORT_NAME compat_utils IMPORT_FROM passthrough_module STORE_NAME passthrough_module POP_TOP LOAD_NAME passthrough_module LOAD_NAME __name__ LOAD_CONST 'types' CALL_FUNCTION POP_TOP DELETE_NAME passthrough_m...
from types import * # noqa: F403 from .compat_utils import passthrough_module passthrough_module(__name__, "types") del passthrough_module try: from types import NoneType # >= 3.10 except ImportError: NoneType = type(None)
data/yt-dlp-2023.12.30/yt_dlp/compat/types.py
174
86
158,569
LOAD_CONST 1 LOAD_CONST ('ClusterEnv',) IMPORT_NAME cluster IMPORT_FROM ClusterEnv STORE_NAME ClusterEnv POP_TOP LOAD_CONST 1 LOAD_CONST ('OmpiCluster',) IMPORT_NAME ompi_cluster IMPORT_FROM OmpiCluster STORE_NAME OmpiCluster POP_TOP LOAD_CONST 1 LOAD_CONST ('SlurmCluster',) IMPORT_NAME slurm_cluster IMPORT_FROM Slur...
from .cluster import ClusterEnv from .ompi_cluster import OmpiCluster from .slurm_cluster import SlurmCluster from .cloud_tpu_cluster import GkeTpuCluster from .cloud_tpu_cluster import MultisliceGceTpuCluster from .cloud_tpu_cluster import SingleSliceGceTpuCluster
data/jax-0.4.24/jax/_src/clusters/__init__.py
236
86
328,771
LOAD_CONST 0 LOAD_CONST None IMPORT_NAME array STORE_NAME array LOAD_CONST <code object application at 0x7fab42b03810, file "f.py", line 4> LOAD_CONST 'application' MAKE_FUNCTION STORE_NAME application LOAD_CONST None RETURN_VALUE LOAD_FAST sr LOAD_CONST '200 OK' LOAD_CONST ('Content-Type', 'text/html') BUILD_LIST CA...
import array def application(e, sr): sr("200 OK", [("Content-Type", "text/html")]) a = array.array("b", [54, 55, 56, 57]) yield a yield bytearray(b"abcdef") yield b"ciao"
data/pyuwsgi-2.0.23.post0/t/python/testba.py
174
86
293,929
LOAD_CONST 0 LOAD_CONST ('RegionInfo',) IMPORT_NAME boto.regioninfo IMPORT_FROM RegionInfo STORE_NAME RegionInfo POP_TOP LOAD_BUILD_CLASS LOAD_CONST <code object RDSRegionInfo at 0x7fab41686930, file "f.py", line 4> LOAD_CONST 'RDSRegionInfo' MAKE_FUNCTION LOAD_CONST 'RDSRegionInfo' LOAD_NAME RegionInfo CALL_FUNCTION ...
from boto.regioninfo import RegionInfo class RDSRegionInfo(RegionInfo): def __init__(self, connection=None, name=None, endpoint=None, connection_cls=None): from boto.rds import RDSConnection super(RDSRegionInfo, self).__init__(connection, name, endpoint, RDSConnection)
data/boto-2.49.0/boto/rds/regioninfo.py
287
86
346,791
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 ('ServiceMeshClient',) IMPORT_NAME service_mesh_client IMPORT_FROM ServiceMeshClient STORE_NAME ServiceMeshClient POP_TOP LOAD_CONST 1 LOAD_CONST ('ServiceMeshClie...
from __future__ import absolute_import from .service_mesh_client import ServiceMeshClient from .service_mesh_client_composite_operations import ( ServiceMeshClientCompositeOperations, ) from . import models __all__ = ["ServiceMeshClient", "ServiceMeshClientCompositeOperations", "models"]
data/oci-2.122.0/src/oci/service_mesh/__init__.py
179
86
407,496
LOAD_CONST 1 LOAD_CONST ('EthAddress', 'Fixed', 'Wei') IMPORT_NAME datatypes IMPORT_FROM EthAddress STORE_NAME EthAddress IMPORT_FROM Fixed STORE_NAME Fixed IMPORT_FROM Wei STORE_NAME Wei POP_TOP LOAD_CONST 1 LOAD_CONST ('to_address', 'to_bool', 'to_bytes', 'to_decimal', 'to_int', 'to_string', 'to_uint') IMPORT_NAME m...
from .datatypes import EthAddress, Fixed, Wei # NOQA: F401 from .main import ( # NOQA: F401 to_address, to_bool, to_bytes, to_decimal, to_int, to_string, to_uint, )
data/eth-brownie-1.20.1/brownie/convert/__init__.py
172
86
211,745
LOAD_BUILD_CLASS LOAD_CONST <code object OpenTypeLibError at 0x7f8a3d6199c0, file "f.py", line 1> LOAD_CONST 'OpenTypeLibError' MAKE_FUNCTION LOAD_CONST 'OpenTypeLibError' LOAD_NAME Exception CALL_FUNCTION STORE_NAME OpenTypeLibError LOAD_CONST None RETURN_VALUE LOAD_NAME __name__ STORE_NAME __module__ LOAD_CONST 'Ope...
class OpenTypeLibError(Exception): def __init__(self, message, location): Exception.__init__(self, message) self.location = location def __str__(self): message = Exception.__str__(self) if self.location: return f"{self.location}: {message}" else: ...
data/fonttools-4.49.0/Lib/fontTools/otlLib/error.py
303
86
334,673
LOAD_CONST 0 LOAD_CONST ('dirname',) IMPORT_NAME os.path IMPORT_FROM dirname STORE_NAME dirname POP_TOP LOAD_CONST 0 LOAD_CONST None IMPORT_NAME unittest STORE_NAME unittest LOAD_CONST 0 LOAD_CONST ('TestSuite',) IMPORT_NAME unittest.suite IMPORT_FROM TestSuite STORE_NAME TestSuite POP_TOP LOAD_CONST 0 LOAD_CONST ('...
from os.path import dirname import unittest from unittest.suite import TestSuite from numba.testing import load_testsuite def load_tests(loader, tests, pattern): suite = TestSuite() suite.addTests(load_testsuite(loader, dirname(__file__))) return suite
data/numba-0.59.0/numba/tests/npyufunc/__init__.py
219
86
134,226
LOAD_CONST 1 LOAD_CONST ('BaseClientParser',) IMPORT_NAME IMPORT_FROM BaseClientParser STORE_NAME BaseClientParser POP_TOP LOAD_BUILD_CLASS LOAD_CONST <code object FeedReader at 0x7f8e2fc18e40, file "f.py", line 4> LOAD_CONST 'FeedReader' MAKE_FUNCTION LOAD_CONST 'FeedReader' LOAD_NAME BaseClientParser CALL_FUNCTION S...
from . import BaseClientParser class FeedReader(BaseClientParser): def dtype(self): return self.calculated_dtype or "feed reader" fixture_files = [ "upstream/client/feed_readers.yml", ] __all__ = [ "FeedReader", ]
data/device_detector-5.0.1/device_detector/parser/client/feed_reader.py
227
86
336,763
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 ('DashxApisClient',) IMPORT_NAME dashx_apis_client IMPORT_FROM DashxApisClient STORE_NAME DashxApisClient POP_TOP LOAD_CONST 1 LOAD_CONST ('DashxApisClientComposit...
from __future__ import absolute_import from .dashx_apis_client import DashxApisClient from .dashx_apis_client_composite_operations import DashxApisClientCompositeOperations from . import models __all__ = ["DashxApisClient", "DashxApisClientCompositeOperations", "models"]
data/oci-2.122.0/src/oci/management_dashboard/__init__.py
191
86
413,965
LOAD_CONST 'DO NOT EDIT.\n\nThis file was autogenerated. Do not edit it by hand,\nsince your modifications would be overwritten.\n' STORE_NAME __doc__ LOAD_CONST 0 LOAD_CONST ('ResNet50',) IMPORT_NAME keras.src.applications.resnet IMPORT_FROM ResNet50 STORE_NAME ResNet50 POP_TOP LOAD_CONST 0 LOAD_CONST ('decode_predi...
"""DO NOT EDIT. This file was autogenerated. Do not edit it by hand, since your modifications would be overwritten. """ from keras.src.applications.resnet import ResNet50 from keras.src.applications.resnet import decode_predictions from keras.src.applications.resnet import preprocess_input
data/keras-3.0.5/keras/applications/resnet50/__init__.py
166
86
349,118
LOAD_CONST "Dataset definition for div2k.\n\nDEPRECATED!\nIf you want to use the Div2k dataset builder class, use:\ntfds.builder_cls('div2k')\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 div2k. DEPRECATED! If you want to use the Div2k dataset builder class, use: tfds.builder_cls('div2k') """ from tensorflow_datasets.core import lazy_builder_import Div2k = lazy_builder_import.LazyBuilderImport("div2k")
data/tfds-nightly-4.9.4.dev202402210044/tensorflow_datasets/image/div2k.py
130
86
238,328
LOAD_CONST 0 LOAD_CONST None IMPORT_NAME sys STORE_NAME sys LOAD_CONST 0 LOAD_CONST None IMPORT_NAME uwsgi STORE_NAME uwsgi LOAD_NAME sys LOAD_ATTR meta_path LOAD_METHOD insert LOAD_CONST 0 LOAD_NAME uwsgi LOAD_METHOD SymbolsZipImporter LOAD_CONST 'django_zip:djenv/lib/python2.6/site-packages' CALL_METHOD CALL_METHO...
import sys import uwsgi sys.meta_path.insert( 0, uwsgi.SymbolsZipImporter("django_zip:djenv/lib/python2.6/site-packages") ) sys.meta_path.insert(0, uwsgi.SymbolsZipImporter("djapp_zip"))
data/pyuwsgi-2.0.23.post0/examples/bootstrap3.py
142
86
293,944
LOAD_CONST "Dataset definition for asqa.\n\nDEPRECATED!\nIf you want to use the Asqa dataset builder class, use:\ntfds.builder_cls('asqa')\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_TOP ...
"""Dataset definition for asqa. DEPRECATED! If you want to use the Asqa dataset builder class, use: tfds.builder_cls('asqa') """ from tensorflow_datasets.core import lazy_builder_import Asqa = lazy_builder_import.LazyBuilderImport("asqa")
data/tfds-nightly-4.9.4.dev202402210044/tensorflow_datasets/question_answering/asqa/asqa.py
130
86
238,375
LOAD_CONST 0 LOAD_CONST ('aes', 'geom_blank', 'ggplot') IMPORT_NAME plotnine IMPORT_FROM aes STORE_NAME aes IMPORT_FROM geom_blank STORE_NAME geom_blank IMPORT_FROM ggplot STORE_NAME ggplot POP_TOP LOAD_CONST 0 LOAD_CONST ('mtcars',) IMPORT_NAME plotnine.data IMPORT_FROM mtcars STORE_NAME mtcars POP_TOP LOAD_CONST <c...
from plotnine import aes, geom_blank, ggplot from plotnine.data import mtcars def test_blank(): gg = ggplot(mtcars, aes(x="wt", y="mpg")) gg = gg + geom_blank() assert gg == "blank"
data/plotnine-0.13.0/tests/test_geom_blank.py
228
86
443,913
LOAD_CONST 'Tests for tensorflow_datasets.import_testing.' STORE_NAME __doc__ LOAD_CONST 0 LOAD_CONST None IMPORT_NAME tensorflow_datasets.public_api IMPORT_FROM public_api STORE_NAME tfds POP_TOP LOAD_BUILD_CLASS LOAD_CONST <code object ImportTestingTest at 0x7fab70027780, file "f.py", line 6> LOAD_CONST 'ImportTest...
"""Tests for tensorflow_datasets.import_testing.""" import tensorflow_datasets.public_api as tfds class ImportTestingTest(tfds.testing.TestCase): def test_import(self): pass if __name__ == "__main__": tfds.testing.test_main()
data/tensorflow-datasets-4.9.4/tensorflow_datasets/import_public_api_test.py
260
86
255,037
LOAD_CONST 0 LOAD_CONST None IMPORT_NAME abc STORE_NAME abc LOAD_CONST 0 LOAD_CONST ('Tuple', 'Union') IMPORT_NAME typing IMPORT_FROM Tuple STORE_NAME Tuple IMPORT_FROM Union STORE_NAME Union POP_TOP LOAD_CONST 0 LOAD_CONST ('PreparedRequest',) IMPORT_NAME requests.models IMPORT_FROM PreparedRequest STORE_NAME Prepar...
import abc from typing import Tuple, Union from requests.models import PreparedRequest from ..models import Integration class IntegrationParser: @abc.abstractmethod def invoke( self, request: PreparedRequest, integration: Integration ) -> Tuple[int, Union[str, bytes]]: pass
data/moto-5.0.2/moto/apigateway/integration_parsers/__init__.py
310
86
198,451
LOAD_CONST 1 LOAD_CONST ('BarPlot', 'CodeComparer', 'CustomChart', 'LinePlot', 'MarkdownPanel', 'MediaBrowser', 'ParallelCoordinatesPlot', 'ParameterImportancePlot', 'RunComparer', 'ScalarChart', 'ScatterPlot', 'WeavePanel') IMPORT_NAME interface IMPORT_FROM BarPlot STORE_NAME BarPlot IMPORT_FROM CodeComparer STORE_NAM...
from .interface import ( BarPlot, CodeComparer, CustomChart, LinePlot, MarkdownPanel, MediaBrowser, ParallelCoordinatesPlot, ParameterImportancePlot, RunComparer, ScalarChart, ScatterPlot, WeavePanel, )
data/wandb-0.16.3/wandb/apis/reports/v2/panels.py
210
86
360,670
LOAD_CONST 'Per-prefix data, mapping each prefix to a name.\n\nAuto-generated file, do not edit by hand.\n' STORE_NAME __doc__ LOAD_CONST 0 LOAD_CONST ('u',) IMPORT_NAME phonenumbers.util IMPORT_FROM u STORE_NAME u POP_TOP BUILD_MAP STORE_NAME TIMEZONE_DATA LOAD_CONST 1 LOAD_CONST ('data',) IMPORT_NAME data0 IMPORT_...
"""Per-prefix data, mapping each prefix to a name. Auto-generated file, do not edit by hand. """ from phonenumbers.util import u TIMEZONE_DATA = {} from .data0 import data TIMEZONE_DATA.update(data) del data TIMEZONE_LONGEST_PREFIX = 7
data/phonenumbers-8.13.30/tests/testtzdata/__init__.py
143
86
122,369
LOAD_CONST '\nThe modules in the accuracy testing subpackage are primarily intended for\ncomparison with "known-good" (or at least "known-familiar") datasets. More\nbasic functionality and sanity checks are in the main ``coordinates/tests``\ntesting modules.\n' STORE_NAME __doc__ LOAD_CONST 10 STORE_NAME N_ACCURACY_TE...
""" The modules in the accuracy testing subpackage are primarily intended for comparison with "known-good" (or at least "known-familiar") datasets. More basic functionality and sanity checks are in the main ``coordinates/tests`` testing modules. """ N_ACCURACY_TESTS = 10 # the number of samples to use per accuracy te...
data/astropy-6.0.0/astropy/coordinates/tests/accuracy/__init__.py
93
86
21,381
LOAD_CONST "Dataset definition for penguins.\n\nDEPRECATED!\nIf you want to use the Penguins dataset builder class, use:\ntfds.builder_cls('penguins')\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_impo...
"""Dataset definition for penguins. DEPRECATED! If you want to use the Penguins dataset builder class, use: tfds.builder_cls('penguins') """ from tensorflow_datasets.core import lazy_builder_import Penguins = lazy_builder_import.LazyBuilderImport("penguins")
data/tfds-nightly-4.9.4.dev202402210044/tensorflow_datasets/structured/penguins/penguins.py
130
86
238,268
LOAD_CONST 'Generated API for package: tensorflow_examples.lite.model_maker.core.task.metadata_writers.text_classifier.metadata_writer_for_text_classifier.' STORE_NAME __doc__ LOAD_CONST 0 LOAD_CONST ('*',) IMPORT_NAME tensorflow_examples.lite.model_maker.core.task.metadata_writers.text_classifier.metadata_writer_for_...
"""Generated API for package: tensorflow_examples.lite.model_maker.core.task.metadata_writers.text_classifier.metadata_writer_for_text_classifier.""" from tensorflow_examples.lite.model_maker.core.task.metadata_writers.text_classifier.metadata_writer_for_text_classifier import *
data/tflite-model-maker-0.4.3/src/tflite_model_maker/python/core/task/metadata_writers/text_classifier/metadata_writer_for_text_classifier.py
106
86
401,323
LOAD_CONST "Dataset definition for titanic.\n\nDEPRECATED!\nIf you want to use the Titanic dataset builder class, use:\ntfds.builder_cls('titanic')\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 ...
"""Dataset definition for titanic. DEPRECATED! If you want to use the Titanic dataset builder class, use: tfds.builder_cls('titanic') """ from tensorflow_datasets.core import lazy_builder_import Titanic = lazy_builder_import.LazyBuilderImport("titanic")
data/tfds-nightly-4.9.4.dev202402210044/tensorflow_datasets/structured/titanic.py
130
86
238,257
LOAD_CONST 0 LOAD_CONST None IMPORT_NAME argparse STORE_NAME argparse LOAD_CONST 0 LOAD_CONST None IMPORT_NAME platform STORE_NAME platform LOAD_NAME argparse LOAD_METHOD ArgumentParser CALL_METHOD STORE_NAME parser LOAD_NAME parser LOAD_METHOD add_argument LOAD_CONST '--my_arg' LOAD_CONST '-a' CALL_METHOD POP_TOP ...
import argparse import platform parser = argparse.ArgumentParser() parser.add_argument("--my_arg", "-a") args = parser.parse_args() answer = ( platform.system() == "Windows" and args.my_arg == "/dev/null" and "ERROR" ) or "OK" print(answer)
data/lit-17.0.6/tests/Inputs/shtest-shell/check_args.py
155
86
299,417
LOAD_CONST 0 LOAD_CONST ('Enum',) IMPORT_NAME enum IMPORT_FROM Enum STORE_NAME Enum POP_TOP LOAD_BUILD_CLASS LOAD_CONST <code object TeamsAsyncOperationStatus at 0x7fab4298e540, file "f.py", line 4> LOAD_CONST 'TeamsAsyncOperationStatus' MAKE_FUNCTION LOAD_CONST 'TeamsAsyncOperationStatus' LOAD_NAME str LOAD_NAME Enum...
from enum import Enum class TeamsAsyncOperationStatus(str, Enum): Invalid = ("invalid",) NotStarted = ("notStarted",) InProgress = ("inProgress",) Succeeded = ("succeeded",) Failed = ("failed",) UnknownFutureValue = ("unknownFutureValue",)
data/msgraph-sdk-1.1.0/msgraph/generated/models/teams_async_operation_status.py
210
86
259,998
LOAD_CONST "Dataset definition for scicite.\n\nDEPRECATED!\nIf you want to use the Scicite dataset builder class, use:\ntfds.builder_cls('scicite')\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 ...
"""Dataset definition for scicite. DEPRECATED! If you want to use the Scicite dataset builder class, use: tfds.builder_cls('scicite') """ from tensorflow_datasets.core import lazy_builder_import Scicite = lazy_builder_import.LazyBuilderImport("scicite")
data/tensorflow-datasets-4.9.4/tensorflow_datasets/text/scicite.py
130
86
256,143
LOAD_CONST 0 LOAD_CONST ('dirname',) IMPORT_NAME os.path IMPORT_FROM dirname STORE_NAME dirname POP_TOP LOAD_CONST 0 LOAD_CONST None IMPORT_NAME unittest STORE_NAME unittest LOAD_CONST 0 LOAD_CONST ('TestSuite',) IMPORT_NAME unittest.suite IMPORT_FROM TestSuite STORE_NAME TestSuite POP_TOP LOAD_CONST 0 LOAD_CONST ('...
from os.path import dirname import unittest from unittest.suite import TestSuite from numba.testing import load_testsuite def load_tests(loader, tests, pattern): suite = TestSuite() suite.addTests(load_testsuite(loader, dirname(__file__))) return suite
data/numba-0.59.0/numba/tests/gdb/__init__.py
219
86
134,247
LOAD_CONST 0 LOAD_CONST ('allowedaddresspairs',) IMPORT_NAME neutron_lib.api.definitions IMPORT_FROM allowedaddresspairs STORE_NAME allowedaddresspairs 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 <cod...
from neutron_lib.api.definitions import allowedaddresspairs from neutron_lib.tests.unit.api.definitions import base class AllowedAddressPairsDefinitionTestCase(base.DefinitionBaseTestCase): extension_module = allowedaddresspairs extension_resources = () extension_attributes = (allowedaddresspairs.ADDRESS_...
data/neutron-lib-3.10.0/neutron_lib/tests/unit/api/definitions/test_allowedaddresspairs.py
235
86
384,957
LOAD_CONST 0 LOAD_CONST ('annotations',) IMPORT_NAME __future__ IMPORT_FROM annotations STORE_NAME annotations POP_TOP LOAD_CONST 0 LOAD_CONST ('dataclass', 'field') IMPORT_NAME dataclasses IMPORT_FROM dataclass STORE_NAME dataclass IMPORT_FROM field STORE_NAME field POP_TOP LOAD_CONST 1 LOAD_CONST ('guide',) IMPORT_...
from __future__ import annotations from dataclasses import dataclass, field from .guide import guide @dataclass class guide_axis(guide): """ Axis """ available_aes: set[str] = field(init=False, default_factory=lambda: {"x", "y"})
data/plotnine-0.13.0/plotnine/guides/guide_axis.py
320
86
444,101
LOAD_CONST "Dataset definition for simpte.\n\nDEPRECATED!\nIf you want to use the Simpte dataset builder class, use:\ntfds.builder_cls('simpte')\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...
"""Dataset definition for simpte. DEPRECATED! If you want to use the Simpte dataset builder class, use: tfds.builder_cls('simpte') """ from tensorflow_datasets.core import lazy_builder_import Simpte = lazy_builder_import.LazyBuilderImport("simpte")
data/tfds-nightly-4.9.4.dev202402210044/tensorflow_datasets/recommendation/simPTE/simPTE.py
130
86
238,194
LOAD_CONST 0 LOAD_CONST ('dirname',) IMPORT_NAME os.path IMPORT_FROM dirname STORE_NAME dirname POP_TOP LOAD_CONST 0 LOAD_CONST None IMPORT_NAME unittest STORE_NAME unittest LOAD_CONST 0 LOAD_CONST ('TestSuite',) IMPORT_NAME unittest.suite IMPORT_FROM TestSuite STORE_NAME TestSuite POP_TOP LOAD_CONST 0 LOAD_CONST ('...
from os.path import dirname import unittest from unittest.suite import TestSuite from numba.testing import load_testsuite def load_tests(loader, tests, pattern): suite = TestSuite() suite.addTests(load_testsuite(loader, dirname(__file__))) return suite
data/numba-0.59.0/numba/tests/doc_examples/__init__.py
219
86
134,238
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 ('VbsInstanceClient',) IMPORT_NAME vbs_instance_client IMPORT_FROM VbsInstanceClient STORE_NAME VbsInstanceClient POP_TOP LOAD_CONST 1 LOAD_CONST ('VbsInstanceClie...
from __future__ import absolute_import from .vbs_instance_client import VbsInstanceClient from .vbs_instance_client_composite_operations import ( VbsInstanceClientCompositeOperations, ) from . import models __all__ = ["VbsInstanceClient", "VbsInstanceClientCompositeOperations", "models"]
data/oci-2.122.0/src/oci/vbs_inst/__init__.py
179
86
409,353
LOAD_CONST <code object shared at 0x7fab42324a50, file "f.py", line 1> LOAD_CONST 'shared' MAKE_FUNCTION STORE_NAME shared LOAD_CONST <code object instance at 0x7faa74c1b0c0, file "f.py", line 7> LOAD_CONST 'instance' MAKE_FUNCTION STORE_NAME instance LOAD_CONST None RETURN_VALUE LOAD_CONST 'deprecated' LOAD_CONST '8...
def shared(): return { "deprecated": {"Agent_Version": "8.0.0", "Migration": "do this\nand that\n"} } def instance(): return { "deprecated": {"Agent version": "9.0.0", "Migration": "do this\nand that\n"} }
data/datadog_checks_base-36.1.0/tests/models/config_models/deprecations.py
177
86
442,649
LOAD_CONST 0 LOAD_CONST ('Enum',) IMPORT_NAME enum IMPORT_FROM Enum STORE_NAME Enum POP_TOP LOAD_BUILD_CLASS LOAD_CONST <code object StickerFormat at 0x7fa6f3491d20, file "f.py", line 4> LOAD_CONST 'StickerFormat' MAKE_FUNCTION LOAD_CONST 'StickerFormat' LOAD_NAME str LOAD_NAME Enum CALL_FUNCTION STORE_NAME StickerFor...
from enum import Enum class StickerFormat(str, Enum): """ Format of the sticker Source: https://core.telegram.org/bots/api#createnewstickerset """ STATIC = "static" ANIMATED = "animated" VIDEO = "video"
data/aiogram-3.4.1/aiogram/enums/sticker_format.py
201
86
54,014
LOAD_CONST '\n"with check.check:" - bad\n"with check:" - good\n\nHowever, we want both to work.\n' STORE_NAME __doc__ LOAD_CONST <code object test_check at 0x7fab7002bf60, file "f.py", line 9> LOAD_CONST 'test_check' MAKE_FUNCTION STORE_NAME test_check LOAD_CONST <code object test_check_check at 0x7fab7002b9c0, file ...
""" "with check.check:" - bad "with check:" - good However, we want both to work. """ def test_check(check): with check: assert True def test_check_check(check): "Deprecated, but should still work for now" with check.check: assert True
data/pytest_check-2.3.1/examples/test_example_check_check.py
233
86
186,439
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 GameCenter STORE_NAME GameCenter LOAD_BUILD_CLASS LOAD_CONST <code object TestGKSavedGameL...
from PyObjCTools.TestSupport import TestCase, min_os_level import GameCenter # noqa: F401 class TestGKSavedGameListener(TestCase): @min_os_level("10.10") def testProtocols(self): self.assertProtocolExists("GKSavedGameListener")
data/pyobjc-framework-GameCenter-10.1/PyObjCTest/test_gksavedgamelistener.py
284
86
304,954
LOAD_CONST 1 LOAD_CONST ('Base',) IMPORT_NAME base IMPORT_FROM Base STORE_NAME Base POP_TOP LOAD_BUILD_CLASS LOAD_CONST <code object Brand at 0x7fab80232810, file "f.py", line 4> LOAD_CONST 'Brand' MAKE_FUNCTION LOAD_CONST 'Brand' LOAD_NAME Base CALL_FUNCTION STORE_NAME Brand LOAD_CONST None RETURN_VALUE LOAD_NAME __...
from .base import Base class Brand(Base): endpoint = "/brand" def get_brand_image(self): return self.client.get(self.endpoint + "/image") def upload_brand_image(self, files): return self.client.post(self.endpoint + "/image", files=files)
data/mattermostdriver-7.3.2/src/mattermostdriver/endpoints/brand.py
300
86
384,676
LOAD_CONST 1 LOAD_CONST ('BaseResource',) IMPORT_NAME IMPORT_FROM BaseResource STORE_NAME BaseResource POP_TOP LOAD_BUILD_CLASS LOAD_CONST <code object SourceBlob at 0x7fab7002bf60, file "f.py", line 4> LOAD_CONST 'SourceBlob' MAKE_FUNCTION LOAD_CONST 'SourceBlob' LOAD_NAME BaseResource CALL_FUNCTION STORE_NAME Source...
from . import BaseResource class SourceBlob(BaseResource): _strs = ["checksum", "url", "version"] def __init__(self): super(SourceBlob, self).__init__() def __repr__(self): return "<sourceblob '{}'>".format(self.version)
data/heroku3-5.2.1/heroku3/models/sourceblob.py
323
86
187,642
LOAD_CONST 0 LOAD_CONST None IMPORT_NAME uwsgi STORE_NAME uwsgi LOAD_CONST 5 STORE_NAME sleepvalue LOAD_CONST <code object application at 0x7fab8214d8a0, file "f.py", line 6> LOAD_CONST 'application' MAKE_FUNCTION STORE_NAME application LOAD_CONST None RETURN_VALUE LOAD_FAST start_response LOAD_CONST '200 Ok' LOAD_C...
import uwsgi sleepvalue = 5 def application(env, start_response): start_response("200 Ok", [("Content-type", "text/html")]) yield uwsgi.async_sleep(sleepvalue) yield "<h1>Hello World after %d seconds</h1>" % sleepvalue
data/pyuwsgi-2.0.23.post0/tests/sleeping_async.py
165
86
293,910
LOAD_CONST 0 LOAD_CONST ('replace_llama_attn_with_flash_attn',) IMPORT_NAME fastchat.train.llama2_flash_attn_monkey_patch IMPORT_FROM replace_llama_attn_with_flash_attn STORE_NAME replace_llama_attn_with_flash_attn POP_TOP LOAD_NAME replace_llama_attn_with_flash_attn CALL_FUNCTION POP_TOP LOAD_CONST 0 LOAD_CONST ('tr...
from fastchat.train.llama2_flash_attn_monkey_patch import ( replace_llama_attn_with_flash_attn, ) replace_llama_attn_with_flash_attn() from fastchat.train.train import train if __name__ == "__main__": train()
data/fschat-0.2.36/fastchat/train/train_mem.py
156
86
152,813
LOAD_CONST 0 LOAD_CONST ('admin',) IMPORT_NAME django.contrib IMPORT_FROM admin STORE_NAME admin POP_TOP LOAD_CONST 0 LOAD_CONST ('Client', 'Domain') IMPORT_NAME customers.models IMPORT_FROM Client STORE_NAME Client IMPORT_FROM Domain STORE_NAME Domain POP_TOP LOAD_BUILD_CLASS LOAD_CONST <code object DomainInline at ...
from django.contrib import admin from customers.models import Client, Domain class DomainInline(admin.TabularInline): model = Domain @admin.register(Client) class ClientAdmin(admin.ModelAdmin): inlines = [DomainInline] list_display = ("schema_name", "name")
data/django-tenants-3.6.1/examples/tenant_tutorial/customers/admin.py
306
86
224,931
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 ('ServiceCatalogClient',) IMPORT_NAME service_catalog_client IMPORT_FROM ServiceCatalogClient STORE_NAME ServiceCatalogClient POP_TOP LOAD_CONST 1 LOAD_CONST ('Ser...
from __future__ import absolute_import from .service_catalog_client import ServiceCatalogClient from .service_catalog_client_composite_operations import ( ServiceCatalogClientCompositeOperations, ) from . import models __all__ = ["ServiceCatalogClient", "ServiceCatalogClientCompositeOperations", "models"]
data/oci-2.122.0/src/oci/service_catalog/__init__.py
179
86
414,330
LOAD_CONST 0 LOAD_CONST None IMPORT_NAME Foundation STORE_NAME Foundation 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_BUILD_CLASS LOAD_CONST <code object TestNSInflection...
import Foundation from PyObjCTools.TestSupport import TestCase, min_os_level class TestNSInflectionRule(TestCase): @min_os_level("12.0") def test_methods(self): self.assertResultIsBOOL( Foundation.NSInflectionRule.canInflectPreferredLocalization )
data/pyobjc-framework-Cocoa-10.1/PyObjCTest/test_nsinflectionrule.py
284
86
64,208
LOAD_CONST 0 LOAD_CONST ('admin',) IMPORT_NAME django.contrib IMPORT_FROM admin STORE_NAME admin POP_TOP LOAD_CONST 0 LOAD_CONST ('Client', 'Domain') IMPORT_NAME customers.models IMPORT_FROM Client STORE_NAME Client IMPORT_FROM Domain STORE_NAME Domain POP_TOP LOAD_BUILD_CLASS LOAD_CONST <code object DomainInline at ...
from django.contrib import admin from customers.models import Client, Domain class DomainInline(admin.TabularInline): model = Domain @admin.register(Client) class ClientAdmin(admin.ModelAdmin): inlines = [DomainInline] list_display = ("schema_name", "name")
data/django-tenants-3.6.1/examples/tenant_subfolder_tutorial/customers/admin.py
306
86
224,915
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 ('ComputedUsageClient',) IMPORT_NAME computed_usage_client IMPORT_FROM ComputedUsageClient STORE_NAME ComputedUsageClient POP_TOP LOAD_CONST 1 LOAD_CONST ('Compute...
from __future__ import absolute_import from .computed_usage_client import ComputedUsageClient from .computed_usage_client_composite_operations import ( ComputedUsageClientCompositeOperations, ) from . import models __all__ = ["ComputedUsageClient", "ComputedUsageClientCompositeOperations", "models"]
data/oci-2.122.0/src/oci/osub_usage/__init__.py
177
86
409,276
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 0 LOAD_CONST ...
from __future__ import absolute_import, division, print_function __metaclass__ = type from ansible.plugins.action import ActionBase from ansible.plugins.action.template import ActionModule as TemplateActionModule class ActionModule(TemplateActionModule, ActionBase): DEFAULT_NEWLINE_SEQUENCE = "\r\n"
data/ansible-core-2.16.3/test/support/windows-integration/plugins/action/win_template.py
245
86
437,644
LOAD_CONST 1 LOAD_CONST ('get_messages',) IMPORT_NAME api IMPORT_FROM get_messages STORE_NAME get_messages POP_TOP LOAD_BUILD_CLASS LOAD_CONST <code object MessagesTestMixin at 0x7f8b2000b420, file "f.py", line 4> LOAD_CONST 'MessagesTestMixin' MAKE_FUNCTION LOAD_CONST 'MessagesTestMixin' CALL_FUNCTION STORE_NAME Mess...
from .api import get_messages class MessagesTestMixin: def assertMessages(self, response, expected_messages, *, ordered=True): request_messages = list(get_messages(response.wsgi_request)) assertion = self.assertEqual if ordered else self.assertCountEqual assertion(request_messages, expecte...
data/Django-5.0.2/django/contrib/messages/test.py
271
86
326,791
LOAD_CONST 0 LOAD_CONST None IMPORT_NAME sys STORE_NAME sys LOAD_CONST 0 LOAD_CONST None IMPORT_NAME subprocess STORE_NAME subprocess LOAD_CONST 0 LOAD_CONST None IMPORT_NAME os STORE_NAME os LOAD_NAME __name__ LOAD_CONST '__main__' COMPARE_OP == POP_JUMP_IF_FALSE LOAD_NAME os LOAD_ATTR environ LOAD_METHOD copy CAL...
import sys import subprocess import os if __name__ == "__main__": env = os.environ.copy() env["ASAN_OPTIONS"] = "detect_leaks=0" subprocess.check_call(sys.argv[sys.argv.index("--") + 1 :], env=env)
data/catboost-1.2.2/catboost_all_src/build/scripts/run_tool.py
168
86
176,429
LOAD_CONST 'Factory function for Cost classes.' STORE_NAME __doc__ LOAD_CONST 0 LOAD_CONST ('BaseCost',) IMPORT_NAME ruptures.base IMPORT_FROM BaseCost STORE_NAME BaseCost POP_TOP LOAD_CONST <code object cost_factory at 0x7fadb5811c00, file "f.py", line 6> LOAD_CONST 'cost_factory' MAKE_FUNCTION STORE_NAME cost_facto...
"""Factory function for Cost classes.""" from ruptures.base import BaseCost def cost_factory(model, *args, **kwargs): for cls in BaseCost.__subclasses__(): if cls.model == model: return cls(*args, **kwargs) raise ValueError("Not such model: {}".format(model))
data/ruptures-1.1.9/src/ruptures/costs/factory.py
196
86
146,598