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 ('Union',)
IMPORT_NAME typing
IMPORT_FROM Union
STORE_NAME Union
POP_TOP
LOAD_CONST 0
LOAD_CONST ('FastAPI', 'Header')
IMPORT_NAME fastapi
IMPORT_FROM FastAPI
STORE_NAME FastAPI
IMPORT_FROM Header
STORE_NAME Header
POP_TOP
LOAD_CONST 0
LOAD_CONST ('Annotated',)
IMPORT_NAME typing_extensions
IM... | from typing import Union
from fastapi import FastAPI, Header
from typing_extensions import Annotated
app = FastAPI()
@app.get("/items/")
async def read_items(user_agent: Annotated[Union[str, None], Header()] = None):
return {"User-Agent": user_agent}
| data/fastapi-0.109.2/docs_src/header_params/tutorial001_an.py | 229 | 85 | 142,697 |
LOAD_CONST "Dataset definition for imagenette.\n\nDEPRECATED!\nIf you want to use the Imagenette dataset builder class, use:\ntfds.builder_cls('imagenette')\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 imagenette.
DEPRECATED!
If you want to use the Imagenette dataset builder class, use:
tfds.builder_cls('imagenette')
"""
from tensorflow_datasets.core import lazy_builder_import
Imagenette = lazy_builder_import.LazyBuilderImport("imagenette")
| data/tfds-nightly-4.9.4.dev202402210044/tensorflow_datasets/image_classification/imagenette.py | 129 | 85 | 238,460 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME typer
STORE_NAME typer
LOAD_CONST <code object main at 0x7fab41d24270, file "f.py", line 4>
LOAD_CONST 'main'
MAKE_FUNCTION
STORE_NAME main
LOAD_NAME __name__
LOAD_CONST '__main__'
COMPARE_OP ==
POP_JUMP_IF_FALSE
LOAD_NAME typer
LOAD_METHOD run
LOAD_NAME main
CALL_METHOD
POP_... | import typer
def main():
delete = typer.confirm("Are you sure you want to delete it?")
if not delete:
print("Not deleting")
raise typer.Abort()
print("Deleting it!")
if __name__ == "__main__":
typer.run(main)
| data/typer-0.9.0/docs_src/prompt/tutorial002.py | 175 | 85 | 224,523 |
LOAD_CONST "Dataset definition for kitti.\n\nDEPRECATED!\nIf you want to use the Kitti dataset builder class, use:\ntfds.builder_cls('kitti')\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 kitti.
DEPRECATED!
If you want to use the Kitti dataset builder class, use:
tfds.builder_cls('kitti')
"""
from tensorflow_datasets.core import lazy_builder_import
Kitti = lazy_builder_import.LazyBuilderImport("kitti")
| data/tfds-nightly-4.9.4.dev202402210044/tensorflow_datasets/object_detection/kitti.py | 128 | 85 | 238,185 |
LOAD_CONST './retinanet_r50_fpn_ghm-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_FUNC... | _base_ = "./retinanet_r50_fpn_ghm-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/ghm/retinanet_r101_fpn_ghm-1x_coco.py | 110 | 85 | 151,741 |
LOAD_CONST '1.0.0'
STORE_NAME __version__
LOAD_CONST (None,)
LOAD_CONST <code object get_cache at 0x7faac0274ae0, file "f.py", line 4>
LOAD_CONST 'get_cache'
MAKE_FUNCTION
STORE_NAME get_cache
LOAD_CONST None
RETURN_VALUE
LOAD_FAST cache_cls
LOAD_CONST None
COMPARE_OP is
POP_JUMP_IF_FALSE
LOAD_CONST 0
LOAD_CONST ('J... | __version__ = "1.0.0"
def get_cache(path, cache_cls=None):
"""Return a cache, with a given folder path."""
if cache_cls is None:
from jupyter_cache.cache.main import JupyterCacheBase as cache_cls
return cache_cls(path)
| data/jupyter_cache-1.0.0/jupyter_cache/__init__.py | 141 | 85 | 356,372 |
LOAD_CONST 'py-moneyed'
STORE_NAME project
LOAD_CONST '2021, Kai Wu'
STORE_NAME copyright
LOAD_CONST 'Kai Wu'
STORE_NAME author
LOAD_CONST '3.0'
STORE_NAME release
BUILD_LIST
STORE_NAME extensions
LOAD_CONST '_templates'
BUILD_LIST
STORE_NAME templates_path
LOAD_CONST '_build'
LOAD_CONST 'Thumbs.db'
LOAD_CONST '.... | project = "py-moneyed"
copyright = "2021, Kai Wu"
author = "Kai Wu"
release = "3.0"
extensions = []
templates_path = ["_templates"]
exclude_patterns = ["_build", "Thumbs.db", ".DS_Store"]
| data/py-moneyed-3.0/docs/conf.py | 106 | 85 | 58,189 |
LOAD_CONST 0
LOAD_CONST ('*',)
IMPORT_NAME django.conf.urls.defaults
IMPORT_STAR
LOAD_NAME patterns
LOAD_CONST 'djopenid.consumer.views'
LOAD_CONST ('^$', 'startOpenID')
LOAD_CONST ('^finish/$', 'finishOpenID')
LOAD_CONST ('^xrds/$', 'rpXRDS')
CALL_FUNCTION
STORE_NAME urlpatterns
LOAD_CONST None
RETURN_VALUE | from django.conf.urls.defaults import *
urlpatterns = patterns(
"djopenid.consumer.views",
(r"^$", "startOpenID"),
(r"^finish/$", "finishOpenID"),
(r"^xrds/$", "rpXRDS"),
)
| data/python-openid-2.2.5/examples/djopenid/consumer/urls.py | 98 | 85 | 84,461 |
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 WebKit
STORE_NAME WebKit
LOAD_BUILD_CLASS
LOAD_CONST <code object TestWKFrameInfo at 0x7fa... | from PyObjCTools.TestSupport import TestCase, min_os_level
import WebKit
class TestWKFrameInfo(TestCase):
@min_os_level("10.10")
def testMethods10_10(self):
self.assertResultIsBOOL(WebKit.WKFrameInfo.isMainFrame)
| data/pyobjc-framework-WebKit-10.1/PyObjCTest/test_wkframeinfo.py | 295 | 85 | 418,795 |
LOAD_CONST 0
LOAD_CONST ('CBC',)
IMPORT_NAME cryptography.hazmat.primitives.ciphers.modes
IMPORT_FROM CBC
STORE_NAME CBC
POP_TOP
LOAD_CONST 0
LOAD_CONST ('ECB',)
IMPORT_NAME cryptography.hazmat.primitives.ciphers.modes
IMPORT_FROM ECB
STORE_NAME ECB
POP_TOP
LOAD_NAME ECB
LOAD_NAME iv
CALL_FUNCTION
STORE_NAME mode
LO... | from cryptography.hazmat.primitives.ciphers.modes import CBC
from cryptography.hazmat.primitives.ciphers.modes import ECB
mode = ECB(iv)
cipher = AES.new(key, blockalgo.MODE_CTR, iv)
mode = CBC(iv)
| data/bandit-1.7.7/examples/cipher-modes.py | 142 | 85 | 56,689 |
LOAD_CONST 1
LOAD_CONST ('*',)
IMPORT_NAME asset
IMPORT_STAR
LOAD_CONST 1
LOAD_CONST ('*',)
IMPORT_NAME inventoryitem_type
IMPORT_STAR
LOAD_CONST 1
LOAD_CONST ('*',)
IMPORT_NAME inventoryitem_group
IMPORT_STAR
LOAD_CONST 1
LOAD_CONST ('*',)
IMPORT_NAME supplier
IMPORT_STAR
LOAD_CONST 1
LOAD_CONST ('*',)
IMPORT_NAME... | from .asset import *
from .inventoryitem_type import *
from .inventoryitem_group import *
from .supplier import *
from .purchase import *
from .delivery import *
from .asset_create import *
from .asset_assign import *
from .asset_reassign import *
from .tabs import *
| data/netbox-inventory-1.5.2/netbox_inventory/views/__init__.py | 177 | 85 | 330,799 |
LOAD_CONST 0
LOAD_CONST ('l3_ext_ndp_proxy',)
IMPORT_NAME neutron_lib.api.definitions
IMPORT_FROM l3_ext_ndp_proxy
STORE_NAME l3_ext_ndp_proxy
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 ... | from neutron_lib.api.definitions import l3_ext_ndp_proxy
from neutron_lib.tests.unit.api.definitions import base
class RouterNDPProxyDefinitionTestCase(base.DefinitionBaseTestCase):
extension_module = l3_ext_ndp_proxy
extension_attributes = ("enable_ndp_proxy",)
| data/neutron-lib-3.10.0/neutron_lib/tests/unit/api/definitions/test_l3_ext_ndp_proxy.py | 241 | 85 | 384,977 |
LOAD_CONST 0
LOAD_CONST ('migrations',)
IMPORT_NAME django.db
IMPORT_FROM migrations
STORE_NAME migrations
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object Migration at 0x7f8e2fec36f0, file "f.py", line 4>
LOAD_CONST 'Migration'
MAKE_FUNCTION
LOAD_CONST 'Migration'
LOAD_NAME migrations
LOAD_ATTR Migration
CALL_FUNCTIO... | from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
("migrations", "0001_initial"),
]
operations = [
migrations.RemoveField(
model_name="ipaddressfield",
name="ip",
),
]
| data/Django-5.0.2/tests/migrations/deprecated_field_migrations/0002_remove_ipaddressfield_ip.py | 186 | 85 | 325,725 |
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_int8_64_1():
raise NotImplementedError("Unable to generate any tests for kernel")
| data/awkward-cpp-29/tests-cpu-kernels/test_cpuawkward_reduce_argmin_int8_64.py | 222 | 85 | 221,245 |
LOAD_CONST 'String distance evaluators.'
STORE_NAME __doc__
LOAD_CONST 0
LOAD_CONST ('PairwiseStringDistanceEvalChain', 'StringDistance', 'StringDistanceEvalChain')
IMPORT_NAME langchain.evaluation.string_distance.base
IMPORT_FROM PairwiseStringDistanceEvalChain
STORE_NAME PairwiseStringDistanceEvalChain
IMPORT_FROM S... | """String distance evaluators."""
from langchain.evaluation.string_distance.base import (
PairwiseStringDistanceEvalChain,
StringDistance,
StringDistanceEvalChain,
)
__all__ = [
"PairwiseStringDistanceEvalChain",
"StringDistance",
"StringDistanceEvalChain",
]
| data/langchain-0.1.8/langchain/evaluation/string_distance/__init__.py | 138 | 85 | 368,751 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME hubspot.crm.extensions.videoconferencing
IMPORT_FROM crm
ROT_TWO
POP_TOP
IMPORT_FROM extensions
ROT_TWO
POP_TOP
IMPORT_FROM videoconferencing
STORE_NAME api_client
POP_TOP
LOAD_CONST 4
LOAD_CONST ('DiscoveryBase',)
IMPORT_NAME discovery_base
IMPORT_FROM DiscoveryBase
STORE_NAME... | import hubspot.crm.extensions.videoconferencing as api_client
from ....discovery_base import DiscoveryBase
class Discovery(DiscoveryBase):
@property
def settings_api(self) -> api_client.SettingsApi:
return self._configure_api_client(api_client, "SettingsApi")
| data/hubspot-api-client-8.2.1/hubspot/discovery/crm/extensions/videoconferencing/discovery.py | 281 | 85 | 320,773 |
LOAD_CONST 'Archive commands for the lzip program.'
STORE_NAME __doc__
LOAD_CONST 1
LOAD_CONST ('extract_singlefile_standard', 'test_singlefile_standard', 'create_singlefile_standard')
IMPORT_NAME
IMPORT_FROM extract_singlefile_standard
STORE_NAME extract_singlefile_standard
IMPORT_FROM test_singlefile_standard
STORE_... | """Archive commands for the lzip program."""
from . import (
extract_singlefile_standard,
test_singlefile_standard,
create_singlefile_standard,
)
extract_lzip = extract_singlefile_standard
test_lzip = test_singlefile_standard
create_lzip = create_singlefile_standard
| data/patool-2.2.0/patoolib/programs/lzip.py | 151 | 85 | 441,660 |
LOAD_CONST 'Module of annotators for text tokenization.'
STORE_NAME __doc__
LOAD_CONST 0
LOAD_CONST ('*',)
IMPORT_NAME sparknlp.annotator.token.chunk_tokenizer
IMPORT_STAR
LOAD_CONST 0
LOAD_CONST ('*',)
IMPORT_NAME sparknlp.annotator.token.recursive_tokenizer
IMPORT_STAR
LOAD_CONST 0
LOAD_CONST ('*',)
IMPORT_NAME sp... | """Module of annotators for text tokenization."""
from sparknlp.annotator.token.chunk_tokenizer import *
from sparknlp.annotator.token.recursive_tokenizer import *
from sparknlp.annotator.token.regex_tokenizer import *
from sparknlp.annotator.token.tokenizer import *
| data/spark-nlp-5.2.3/sparknlp/annotator/token/__init__.py | 139 | 85 | 418,030 |
LOAD_CONST 0
LOAD_CONST ('Optional',)
IMPORT_NAME typing
IMPORT_FROM Optional
STORE_NAME Optional
POP_TOP
LOAD_CONST 0
LOAD_CONST ('NotRequired', 'TypedDict', 'Literal')
IMPORT_NAME typing_extensions
IMPORT_FROM NotRequired
STORE_NAME NotRequired
IMPORT_FROM TypedDict
STORE_NAME TypedDict
IMPORT_FROM Literal
STORE_NAM... | from typing import Optional
from typing_extensions import NotRequired, TypedDict, Literal
BaseAddress = Literal["api", "files", "connect"]
class BaseAddresses(TypedDict):
api: NotRequired[Optional[str]]
connect: NotRequired[Optional[str]]
files: NotRequired[Optional[str]]
| data/stripe-8.3.0/stripe/_base_address.py | 283 | 85 | 11,914 |
LOAD_CONST 1
LOAD_CONST ('KeyVaultManagementClient',)
IMPORT_NAME _key_vault_management_client
IMPORT_FROM KeyVaultManagementClient
STORE_NAME KeyVaultManagementClient
POP_TOP
LOAD_CONST 'KeyVaultManagementClient'
BUILD_LIST
STORE_NAME __all__
SETUP_EXCEPT to 42
LOAD_CONST 1
LOAD_CONST ('patch_sdk',)
IMPORT_NAME _pa... | from ._key_vault_management_client import KeyVaultManagementClient
__all__ = ["KeyVaultManagementClient"]
try:
from ._patch import patch_sdk # type: ignore
patch_sdk()
except ImportError:
pass
from ._version import VERSION
__version__ = VERSION
| data/azure-mgmt-keyvault-10.3.0/azure/mgmt/keyvault/__init__.py | 185 | 85 | 292,181 |
LOAD_CONST 0
LOAD_CONST ('Enum',)
IMPORT_NAME enum
IMPORT_FROM Enum
STORE_NAME Enum
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object DataSourceHoldStatus at 0x7fab4298ed20, file "f.py", line 4>
LOAD_CONST 'DataSourceHoldStatus'
MAKE_FUNCTION
LOAD_CONST 'DataSourceHoldStatus'
LOAD_NAME str
LOAD_NAME Enum
CALL_FUNCTION
... | from enum import Enum
class DataSourceHoldStatus(str, Enum):
NotApplied = ("notApplied",)
Applied = ("applied",)
Applying = ("applying",)
Removing = ("removing",)
Partial = ("partial",)
UnknownFutureValue = ("unknownFutureValue",)
| data/msgraph-sdk-1.1.0/msgraph/generated/models/security/data_source_hold_status.py | 208 | 85 | 262,115 |
LOAD_CONST 0
LOAD_CONST ('print_function', 'division', 'absolute_import', 'annotations')
IMPORT_NAME __future__
IMPORT_FROM print_function
STORE_NAME print_function
IMPORT_FROM division
STORE_NAME division
IMPORT_FROM absolute_import
STORE_NAME absolute_import
IMPORT_FROM annotations
STORE_NAME annotations
POP_TOP
LOA... | from __future__ import print_function, division, absolute_import, annotations
from ..message import BackendMessage
class EmptyQueryResponse(BackendMessage):
message_id = b"I"
def __init__(self, data):
BackendMessage.__init__(self)
BackendMessage.register(EmptyQueryResponse)
| data/vertica-python-1.3.8/vertica_python/vertica/messages/backend_messages/empty_query_response.py | 299 | 85 | 287,024 |
LOAD_CONST 0
LOAD_CONST ('App', 'ComposeResult')
IMPORT_NAME textual.app
IMPORT_FROM App
STORE_NAME App
IMPORT_FROM ComposeResult
STORE_NAME ComposeResult
POP_TOP
LOAD_CONST 0
LOAD_CONST ('Static',)
IMPORT_NAME textual.widgets
IMPORT_FROM Static
STORE_NAME Static
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object Stati... | from textual.app import App, ComposeResult
from textual.widgets import Static
class StaticApp(App):
def compose(self) -> ComposeResult:
yield Static("Hello, world!")
if __name__ == "__main__":
app = StaticApp()
app.run()
| data/textual-0.52.1/docs/examples/widgets/static.py | 285 | 85 | 26,357 |
SETUP_EXCEPT to 24
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME tensorflow_probability.substrates.jax
IMPORT_FROM substrates
ROT_TWO
POP_TOP
IMPORT_FROM jax
STORE_NAME tfp
POP_TOP
POP_BLOCK
JUMP_FORWARD to 68
DUP_TOP
LOAD_NAME ImportError
COMPARE_OP exception match
POP_JUMP_IF_FALSE
POP_TOP
STORE_NAME e
POP_TOP
SETUP_FIN... | try:
import tensorflow_probability.substrates.jax as tfp # noqa: F401
except ImportError as e:
raise ImportError(
"To use this module, please install TensorFlow Probability. It can be"
" installed with `pip install tensorflow_probability`"
) from e
| data/numpyro-0.13.2/numpyro/contrib/tfp/__init__.py | 156 | 85 | 141,047 |
LOAD_CONST 1
LOAD_CONST ('SimpleSystemManagerResponse',)
IMPORT_NAME responses
IMPORT_FROM SimpleSystemManagerResponse
STORE_NAME SimpleSystemManagerResponse
POP_TOP
LOAD_CONST 'https?://ssm\\.(.+)\\.amazonaws\\.com'
LOAD_CONST 'https?://ssm\\.(.+)\\.amazonaws\\.com\\.cn'
BUILD_LIST
STORE_NAME url_bases
LOAD_CONST '... | from .responses import SimpleSystemManagerResponse
url_bases = [
r"https?://ssm\.(.+)\.amazonaws\.com",
r"https?://ssm\.(.+)\.amazonaws\.com\.cn",
]
url_paths = {"{0}/$": SimpleSystemManagerResponse.dispatch}
| data/moto-5.0.2/moto/ssm/urls.py | 113 | 85 | 197,920 |
LOAD_CONST 0
LOAD_CONST ('*',)
IMPORT_NAME django.conf.urls.defaults
IMPORT_STAR
LOAD_NAME patterns
LOAD_CONST 'djopenid.consumer.views'
LOAD_CONST ('^$', 'startOpenID')
LOAD_CONST ('^finish/$', 'finishOpenID')
LOAD_CONST ('^xrds/$', 'rpXRDS')
CALL_FUNCTION
STORE_NAME urlpatterns
LOAD_CONST None
RETURN_VALUE | from django.conf.urls.defaults import *
urlpatterns = patterns(
"djopenid.consumer.views",
(r"^$", "startOpenID"),
(r"^finish/$", "finishOpenID"),
(r"^xrds/$", "rpXRDS"),
)
| data/python3-openid-3.2.0/examples/djopenid/consumer/urls.py | 98 | 85 | 246,190 |
LOAD_CONST 0
LOAD_CONST ('AsyncHumanApprovalCallbackHandler', 'HumanApprovalCallbackHandler', 'HumanRejectedException')
IMPORT_NAME langchain_community.callbacks.human
IMPORT_FROM AsyncHumanApprovalCallbackHandler
STORE_NAME AsyncHumanApprovalCallbackHandler
IMPORT_FROM HumanApprovalCallbackHandler
STORE_NAME HumanAppr... | from langchain_community.callbacks.human import (
AsyncHumanApprovalCallbackHandler,
HumanApprovalCallbackHandler,
HumanRejectedException,
)
__all__ = [
"HumanRejectedException",
"HumanApprovalCallbackHandler",
"AsyncHumanApprovalCallbackHandler",
]
| data/langchain-0.1.8/langchain/callbacks/human.py | 142 | 85 | 368,308 |
LOAD_BUILD_CLASS
LOAD_CONST <code object Test at 0x7fab423bd1e0, file "f.py", line 1>
LOAD_CONST 'Test'
MAKE_FUNCTION
LOAD_CONST 'Test'
CALL_FUNCTION
STORE_NAME Test
LOAD_CONST None
RETURN_VALUE
LOAD_NAME __name__
STORE_NAME __module__
LOAD_CONST 'Test'
STORE_NAME __qualname__
LOAD_CONST <code object test at 0x7fab80... | class Test:
def test(self):
pass
def test_gen(self):
def check(a):
pass
for i in range(0, 5):
yield check, i
def test_params(self, a):
pass
test_params.paramList = (1, 2)
| data/nose2-0.14.1/nose2/tests/functional/support/scenario/test_classes/test_classes.py | 370 | 85 | 310,241 |
LOAD_CONST 0
LOAD_CONST ('Any', 'Callable', 'Dict', 'Iterable', 'Sequence', 'Union')
IMPORT_NAME typing
IMPORT_FROM Any
STORE_NAME Any
IMPORT_FROM Callable
STORE_NAME Callable
IMPORT_FROM Dict
STORE_NAME Dict
IMPORT_FROM Iterable
STORE_NAME Iterable
IMPORT_FROM Sequence
STORE_NAME Sequence
IMPORT_FROM Union
STORE_NAME ... | from typing import Any, Callable, Dict, Iterable, Sequence, Union
Transformer = Callable
TransformerFactory = Callable[
[Dict[str, Transformer], str, Dict[str, Any]], Transformer
]
QueriesExecutor = Callable[[str], Union[Sequence, Iterable]]
QueriesSubmitter = object
| data/datadog_checks_base-36.1.0/datadog_checks/base/utils/db/types.py | 189 | 85 | 442,842 |
LOAD_CONST '\nThe module outliers includes classes to remove or cap outliers.\n'
STORE_NAME __doc__
LOAD_CONST 1
LOAD_CONST ('ArbitraryOutlierCapper',)
IMPORT_NAME artbitrary
IMPORT_FROM ArbitraryOutlierCapper
STORE_NAME ArbitraryOutlierCapper
POP_TOP
LOAD_CONST 1
LOAD_CONST ('OutlierTrimmer',)
IMPORT_NAME trimmer
IM... | """
The module outliers includes classes to remove or cap outliers.
"""
from .artbitrary import ArbitraryOutlierCapper
from .trimmer import OutlierTrimmer
from .winsorizer import Winsorizer
__all__ = ["Winsorizer", "ArbitraryOutlierCapper", "OutlierTrimmer"]
| data/feature_engine-1.6.2/feature_engine/outliers/__init__.py | 173 | 85 | 203,547 |
LOAD_CONST '../_base_/models/mask-rcnn_r50_fpn.py'
LOAD_CONST '../_base_/datasets/coco_instance.py'
LOAD_CONST '../_base_/schedules/schedule_1x.py'
LOAD_CONST '../_base_/default_runtime.py'
BUILD_LIST
STORE_NAME _base_
LOAD_CONST None
RETURN_VALUE | _base_ = [
"../_base_/models/mask-rcnn_r50_fpn.py",
"../_base_/datasets/coco_instance.py",
"../_base_/schedules/schedule_1x.py",
"../_base_/default_runtime.py",
]
| data/mmdet-3.3.0/mmdet/.mim/configs/mask_rcnn/mask-rcnn_r50_fpn_1x_coco.py | 91 | 85 | 151,273 |
LOAD_CONST 'Error classes for PostgreSQL error codes\n'
STORE_NAME __doc__
LOAD_CONST <code object lookup at 0x7fab543e7150, file "f.py", line 5>
LOAD_CONST 'lookup'
MAKE_FUNCTION
STORE_NAME lookup
LOAD_CONST None
RETURN_VALUE
LOAD_CONST 0
LOAD_CONST ('sqlstate_errors',)
IMPORT_NAME psycopg2._psycopg
IMPORT_FROM sqls... | """Error classes for PostgreSQL error codes
"""
def lookup(code):
"""Lookup an error code and return its exception class.
Raise `!KeyError` if the code is not found.
"""
from psycopg2._psycopg import sqlstate_errors # avoid circular import
return sqlstate_errors[code]
| data/aws-psycopg2-1.3.8/psycopg2/errors.py | 118 | 85 | 141,325 |
LOAD_CONST 0
LOAD_CONST ('*',)
IMPORT_NAME azure.cli.core.aaz
IMPORT_STAR
LOAD_NAME register_command_group
LOAD_CONST 'monitor log-analytics workspace table search-job'
CALL_FUNCTION
LOAD_BUILD_CLASS
LOAD_CONST <code object __CMDGroup at 0x7fab70055270, file "f.py", line 4>
LOAD_CONST '__CMDGroup'
MAKE_FUNCTION
LOAD_... | from azure.cli.core.aaz import *
@register_command_group(
"monitor log-analytics workspace table search-job",
)
class __CMDGroup(AAZCommandGroup):
"""Manage tables for log analytics workspace search results table."""
pass
__all__ = ["__CMDGroup"]
| data/azure-cli-2.57.0/azure/cli/command_modules/monitor/aaz/latest/monitor/log_analytics/workspace/table/search_job/__cmd_group.py | 195 | 85 | 374,976 |
LOAD_CONST 0
LOAD_CONST ('Union',)
IMPORT_NAME typing
IMPORT_FROM Union
STORE_NAME Union
POP_TOP
LOAD_CONST 0
LOAD_CONST ('Cookie', 'FastAPI')
IMPORT_NAME fastapi
IMPORT_FROM Cookie
STORE_NAME Cookie
IMPORT_FROM FastAPI
STORE_NAME FastAPI
POP_TOP
LOAD_CONST 0
LOAD_CONST ('Annotated',)
IMPORT_NAME typing_extensions
IM... | from typing import Union
from fastapi import Cookie, FastAPI
from typing_extensions import Annotated
app = FastAPI()
@app.get("/items/")
async def read_items(ads_id: Annotated[Union[str, None], Cookie()] = None):
return {"ads_id": ads_id}
| data/fastapi-0.109.2/docs_src/cookie_params/tutorial001_an.py | 230 | 85 | 142,558 |
LOAD_CONST '../_base_/models/mask-rcnn_r50_fpn.py'
LOAD_CONST '../_base_/datasets/coco_instance.py'
LOAD_CONST '../_base_/schedules/schedule_2x.py'
LOAD_CONST '../_base_/default_runtime.py'
BUILD_LIST
STORE_NAME _base_
LOAD_CONST None
RETURN_VALUE | _base_ = [
"../_base_/models/mask-rcnn_r50_fpn.py",
"../_base_/datasets/coco_instance.py",
"../_base_/schedules/schedule_2x.py",
"../_base_/default_runtime.py",
]
| data/mmdet-3.3.0/mmdet/.mim/configs/mask_rcnn/mask-rcnn_r50_fpn_2x_coco.py | 91 | 85 | 151,283 |
LOAD_CONST 1
LOAD_CONST ('_OnPrem',)
IMPORT_NAME
IMPORT_FROM _OnPrem
STORE_NAME _OnPrem
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object _Proxmox at 0x7fab702466f0, file "f.py", line 4>
LOAD_CONST '_Proxmox'
MAKE_FUNCTION
LOAD_CONST '_Proxmox'
LOAD_NAME _OnPrem
CALL_FUNCTION
STORE_NAME _Proxmox
LOAD_BUILD_CLASS
LOAD_... | from . import _OnPrem
class _Proxmox(_OnPrem):
_type = "proxmox"
_icon_dir = "resources/onprem/proxmox"
class Pve(_Proxmox):
_icon = "pve.png"
ProxmoxVE = Pve
| data/diagrams-0.23.4/diagrams/onprem/proxmox.py | 282 | 85 | 205,973 |
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_IndexedArray32_numnull_parents_1():
raise NotImplementedError("Unable to generate any tests for kernel")
| data/awkward-cpp-29/tests-cpu-kernels/test_cpuawkward_IndexedArray32_numnull_parents.py | 222 | 85 | 221,392 |
LOAD_CONST 0
LOAD_CONST ('*',)
IMPORT_NAME azure.cli.core.aaz
IMPORT_STAR
LOAD_NAME register_command_group
LOAD_CONST 'network lb inbound-nat-pool'
CALL_FUNCTION
LOAD_BUILD_CLASS
LOAD_CONST <code object __CMDGroup at 0x7fab82197c90, file "f.py", line 4>
LOAD_CONST '__CMDGroup'
MAKE_FUNCTION
LOAD_CONST '__CMDGroup'
L... | from azure.cli.core.aaz import *
@register_command_group(
"network lb inbound-nat-pool",
)
class __CMDGroup(AAZCommandGroup):
"""Manage inbound NAT address pools of a load balancer."""
pass
__all__ = ["__CMDGroup"]
| data/azure-cli-2.57.0/azure/cli/command_modules/network/aaz/profile_2017_03_09_profile/network/lb/inbound_nat_pool/__cmd_group.py | 195 | 85 | 377,618 |
LOAD_CONST 0
LOAD_CONST ('onetrading',)
IMPORT_NAME ccxt.pro.onetrading
IMPORT_FROM onetrading
STORE_NAME onetrading
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object bitpanda at 0x7fab823b2c00, file "f.py", line 4>
LOAD_CONST 'bitpanda'
MAKE_FUNCTION
LOAD_CONST 'bitpanda'
LOAD_NAME onetrading
CALL_FUNCTION
STORE_NAME ... | from ccxt.pro.onetrading import onetrading
class bitpanda(onetrading):
def describe(self):
return self.deep_extend(
super(bitpanda, self).describe(),
{
"alias": True,
"id": "bitpanda",
},
)
| data/ccxt-4.2.48/ccxt/pro/bitpanda.py | 257 | 85 | 316,717 |
LOAD_CONST 0
LOAD_CONST ('light_suncg_scene',)
IMPORT_NAME blenderproc.python.lighting.SuncgLighting
IMPORT_FROM light_suncg_scene
STORE_NAME light_suncg_scene
POP_TOP
LOAD_CONST 0
LOAD_CONST ('light_surface',)
IMPORT_NAME blenderproc.python.lighting.SurfaceLighting
IMPORT_FROM light_surface
STORE_NAME light_surface
P... | from blenderproc.python.lighting.SuncgLighting import light_suncg_scene
from blenderproc.python.lighting.SurfaceLighting import light_surface
from blenderproc.python.lighting.IntersectingSpotLight import (
add_intersecting_spot_lights_to_camera_poses,
)
| data/blenderproc-2.7.0/blenderproc/api/lighting/__init__.py | 181 | 85 | 349,678 |
LOAD_CONST 'InternalError'
STORE_NAME INTERNALERROR
LOAD_CONST 'InvalidParameter'
STORE_NAME INVALIDPARAMETER
LOAD_CONST 'InvalidParameterValue'
STORE_NAME INVALIDPARAMETERVALUE
LOAD_CONST 'LimitExceeded'
STORE_NAME LIMITEXCEEDED
LOAD_CONST 'OperationDenied'
STORE_NAME OPERATIONDENIED
LOAD_CONST 'UnauthorizedOpera... | INTERNALERROR = "InternalError"
INVALIDPARAMETER = "InvalidParameter"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
LIMITEXCEEDED = "LimitExceeded"
OPERATIONDENIED = "OperationDenied"
UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
| data/tencentcloud-sdk-python-3.0.1092/tencentcloud/irp/v20220805/errorcodes.py | 100 | 85 | 119,068 |
LOAD_CONST 0
LOAD_CONST ('*',)
IMPORT_NAME azure.cli.core.aaz
IMPORT_STAR
LOAD_NAME register_command_group
LOAD_CONST 'network nic ip-config inbound-nat-rule'
CALL_FUNCTION
LOAD_BUILD_CLASS
LOAD_CONST <code object __CMDGroup at 0x7fab41637300, file "f.py", line 4>
LOAD_CONST '__CMDGroup'
MAKE_FUNCTION
LOAD_CONST '__C... | from azure.cli.core.aaz import *
@register_command_group(
"network nic ip-config inbound-nat-rule",
)
class __CMDGroup(AAZCommandGroup):
"""Manage inbound NAT rules of an IP configuration."""
pass
__all__ = ["__CMDGroup"]
| data/azure-cli-2.57.0/azure/cli/command_modules/network/aaz/profile_2017_03_09_profile/network/nic/ip_config/inbound_nat_rule/__cmd_group.py | 195 | 85 | 377,651 |
LOAD_CONST 0
LOAD_CONST ('User',)
IMPORT_NAME django.contrib.auth.models
IMPORT_FROM User
STORE_NAME User
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object AutoAuthenticationMiddleware at 0x7fab5433ddb0, file "f.py", line 4>
LOAD_CONST 'AutoAuthenticationMiddleware'
MAKE_FUNCTION
LOAD_CONST 'AutoAuthenticationMiddlewar... | from django.contrib.auth.models import User
class AutoAuthenticationMiddleware(object):
def __init__(self, get_response):
self.get_response = get_response
def __call__(self, request):
request.user = User.objects.filter()[0]
return self.get_response(request)
| data/django-ordered-model-3.7.4/tests/autoauth.py | 301 | 85 | 304,985 |
LOAD_CONST 0
LOAD_CONST ('*',)
IMPORT_NAME azure.cli.core.aaz
IMPORT_STAR
LOAD_NAME register_command_group
LOAD_CONST 'snapshot'
CALL_FUNCTION
LOAD_BUILD_CLASS
LOAD_CONST <code object __CMDGroup at 0x7fab42736540, file "f.py", line 4>
LOAD_CONST '__CMDGroup'
MAKE_FUNCTION
LOAD_CONST '__CMDGroup'
LOAD_NAME AAZCommand... | from azure.cli.core.aaz import *
@register_command_group(
"snapshot",
)
class __CMDGroup(AAZCommandGroup):
"""Manage point-in-time copies of managed disks, native blobs, or other snapshots."""
pass
__all__ = ["__CMDGroup"]
| data/azure-cli-2.57.0/azure/cli/command_modules/vm/aaz/profile_2019_03_01_hybrid/snapshot/__cmd_group.py | 195 | 85 | 376,469 |
LOAD_CONST 1
LOAD_CONST ('ASGIServer',)
IMPORT_NAME asgi_server
IMPORT_FROM ASGIServer
STORE_NAME ASGIServer
POP_TOP
LOAD_CONST 1
LOAD_CONST ('WebsocketProvider',)
IMPORT_NAME websocket_provider
IMPORT_FROM WebsocketProvider
STORE_NAME WebsocketProvider
POP_TOP
LOAD_CONST 1
LOAD_CONST ('WebsocketServer', 'YRoom')
IMP... | from .asgi_server import ASGIServer # noqa
from .websocket_provider import WebsocketProvider # noqa
from .websocket_server import WebsocketServer, YRoom # noqa
from .yutils import YMessageType # noqa
__version__ = "0.12.4"
| data/ypy_websocket-0.12.4/ypy_websocket/__init__.py | 162 | 85 | 104,716 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME os
STORE_NAME os
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME sys
STORE_NAME sys
LOAD_NAME __name__
LOAD_CONST '__main__'
COMPARE_OP ==
POP_JUMP_IF_FALSE
LOAD_NAME os
LOAD_ATTR environ
LOAD_METHOD setdefault
LOAD_CONST 'DJANGO_SETTINGS_MODULE'
LOAD_CONST 'auditlog_tests.test_sett... | import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "auditlog_tests.test_settings")
from django.core.management import execute_from_command_line
execute_from_command_line(sys.argv)
| data/django-auditlog-2.3.0/auditlog_tests/manage.py | 159 | 85 | 419,807 |
LOAD_CONST 'A mock extension named `mockext_both` for testing purposes.\n'
STORE_NAME __doc__
LOAD_CONST <code object _jupyter_server_extension_paths at 0x7f8aefbbba50, file "f.py", line 5>
LOAD_CONST '_jupyter_server_extension_paths'
MAKE_FUNCTION
STORE_NAME _jupyter_server_extension_paths
LOAD_CONST <code object _l... | """A mock extension named `mockext_both` for testing purposes.
"""
def _jupyter_server_extension_paths():
return [{"module": "tests.extension.mockextensions.mockext_both"}]
def _load_jupyter_server_extension(serverapp):
pass
| data/jupyter_server-2.12.5/tests/extension/mockextensions/mockext_both.py | 211 | 85 | 433,269 |
LOAD_BUILD_CLASS
LOAD_CONST <code object Test at 0x7fab423bdc90, file "f.py", line 1>
LOAD_CONST 'Test'
MAKE_FUNCTION
LOAD_CONST 'Test'
CALL_FUNCTION
STORE_NAME Test
LOAD_CONST None
RETURN_VALUE
LOAD_NAME __name__
STORE_NAME __module__
LOAD_CONST 'Test'
STORE_NAME __qualname__
LOAD_CONST <code object test at 0x7fab80... | class Test:
def test(self):
pass
def test_gen(self):
def check(a):
pass
for i in range(0, 5):
yield check, i
def test_params(self, a):
pass
test_params.paramList = (1, 2)
| data/nose2-0.14.1/nose2/tests/functional/support/scenario/test_classes_mp/test_classes_mp.py | 373 | 85 | 310,234 |
LOAD_CONST "Dataset definition for imagenette.\n\nDEPRECATED!\nIf you want to use the Imagenette dataset builder class, use:\ntfds.builder_cls('imagenette')\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 imagenette.
DEPRECATED!
If you want to use the Imagenette dataset builder class, use:
tfds.builder_cls('imagenette')
"""
from tensorflow_datasets.core import lazy_builder_import
Imagenette = lazy_builder_import.LazyBuilderImport("imagenette")
| data/tensorflow-datasets-4.9.4/tensorflow_datasets/image_classification/imagenette.py | 129 | 85 | 255,399 |
SETUP_ANNOTATIONS
LOAD_CONST 'Backend modules to load and dump python code holding data.\n\n- python.builtin: builtin parser [default]\n\nChangelog:\n\n.. versionadded:: 0.14.0\n'
STORE_NAME __doc__
LOAD_CONST 1
LOAD_CONST ('builtin',)
IMPORT_NAME
IMPORT_FROM builtin
STORE_NAME builtin
POP_TOP
LOAD_CONST 2
LOAD_CONST... | """Backend modules to load and dump python code holding data.
- python.builtin: builtin parser [default]
Changelog:
.. versionadded:: 0.14.0
"""
from . import builtin
from ..base import ParserClssT
PARSERS: ParserClssT = [builtin.Parser]
| data/anyconfig-0.14.0/src/anyconfig/backend/python/__init__.py | 161 | 85 | 390,967 |
LOAD_CONST 0
LOAD_CONST ('*',)
IMPORT_NAME azure.cli.core.aaz
IMPORT_STAR
LOAD_NAME register_command_group
LOAD_CONST 'snapshot'
CALL_FUNCTION
LOAD_BUILD_CLASS
LOAD_CONST <code object __CMDGroup at 0x7fab70055ed0, file "f.py", line 4>
LOAD_CONST '__CMDGroup'
MAKE_FUNCTION
LOAD_CONST '__CMDGroup'
LOAD_NAME AAZCommand... | from azure.cli.core.aaz import *
@register_command_group(
"snapshot",
)
class __CMDGroup(AAZCommandGroup):
"""Manage point-in-time copies of managed disks, native blobs, or other snapshots."""
pass
__all__ = ["__CMDGroup"]
| data/azure-cli-2.57.0/azure/cli/command_modules/vm/aaz/profile_2020_09_01_hybrid/snapshot/__cmd_group.py | 194 | 85 | 376,801 |
LOAD_CONST 'Archive commands for the clzip program.'
STORE_NAME __doc__
LOAD_CONST 1
LOAD_CONST ('extract_singlefile_standard', 'test_singlefile_standard', 'create_singlefile_standard')
IMPORT_NAME
IMPORT_FROM extract_singlefile_standard
STORE_NAME extract_singlefile_standard
IMPORT_FROM test_singlefile_standard
STORE... | """Archive commands for the clzip program."""
from . import (
extract_singlefile_standard,
test_singlefile_standard,
create_singlefile_standard,
)
extract_lzip = extract_singlefile_standard
test_lzip = test_singlefile_standard
create_lzip = create_singlefile_standard
| data/patool-2.2.0/patoolib/programs/pdlzip.py | 151 | 85 | 441,627 |
LOAD_CONST 0
LOAD_CONST ('*',)
IMPORT_NAME azure.cli.core.aaz
IMPORT_STAR
LOAD_NAME register_command_group
LOAD_CONST 'network nic ip-config inbound-nat-rule'
CALL_FUNCTION
LOAD_BUILD_CLASS
LOAD_CONST <code object __CMDGroup at 0x7fab8204a390, file "f.py", line 4>
LOAD_CONST '__CMDGroup'
MAKE_FUNCTION
LOAD_CONST '__C... | from azure.cli.core.aaz import *
@register_command_group(
"network nic ip-config inbound-nat-rule",
)
class __CMDGroup(AAZCommandGroup):
"""Manage inbound NAT rules of an IP configuration."""
pass
__all__ = ["__CMDGroup"]
| data/azure-cli-2.57.0/azure/cli/command_modules/network/aaz/profile_2020_09_01_hybrid/network/nic/ip_config/inbound_nat_rule/__cmd_group.py | 195 | 85 | 378,773 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME torch
STORE_NAME torch
LOAD_BUILD_CLASS
LOAD_CONST <code object GradMultiply at 0x7f8aefeafa50, file "f.py", line 4>
LOAD_CONST 'GradMultiply'
MAKE_FUNCTION
LOAD_CONST 'GradMultiply'
LOAD_NAME torch
LOAD_ATTR autograd
LOAD_ATTR Function
CALL_FUNCTION
STORE_NAME GradMultiply
LOA... | import torch
class GradMultiply(torch.autograd.Function):
@staticmethod
def forward(ctx, x, scale):
ctx.scale = scale
res = x.new(x)
return res
@staticmethod
def backward(ctx, grad):
return grad * ctx.scale, None
| data/fairseq-0.12.2/fairseq/modules/grad_multiply.py | 280 | 85 | 120,572 |
LOAD_CONST '\nuix.layout tests\n================\nLayout class is Abstract Base Class.\n'
STORE_NAME __doc__
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME unittest
STORE_NAME unittest
LOAD_CONST 0
LOAD_CONST ('Layout',)
IMPORT_NAME kivy.uix.layout
IMPORT_FROM Layout
STORE_NAME Layout
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <... | """
uix.layout tests
================
Layout class is Abstract Base Class.
"""
import unittest
from kivy.uix.layout import Layout
class UixLayoutTest(unittest.TestCase):
def test_instantiation(self):
with self.assertRaises(Exception):
layout = Layout()
| data/Kivy-2.3.0/kivy/tests/test_uix_layout.py | 290 | 85 | 47,491 |
LOAD_CONST 0
LOAD_CONST ('Repair',)
IMPORT_NAME pymoo.core.repair
IMPORT_FROM Repair
STORE_NAME Repair
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object TypeRepair at 0x7fab42ba9390, file "f.py", line 4>
LOAD_CONST 'TypeRepair'
MAKE_FUNCTION
LOAD_CONST 'TypeRepair'
LOAD_NAME Repair
CALL_FUNCTION
STORE_NAME TypeRepair
L... | from pymoo.core.repair import Repair
class TypeRepair(Repair):
def __init__(self, vtype) -> None:
super().__init__()
self.vtype = vtype
def _do(self, problem, X, **kwargs):
return X.astype(self.vtype)
| data/pymoo-0.6.1.1/pymoo/operators/repair/vtype.py | 304 | 85 | 93,137 |
LOAD_CONST 0
LOAD_CONST ('*',)
IMPORT_NAME azure.cli.core.aaz
IMPORT_STAR
LOAD_NAME register_command_group
LOAD_CONST 'network lb inbound-nat-pool'
CALL_FUNCTION
LOAD_BUILD_CLASS
LOAD_CONST <code object __CMDGroup at 0x7faa5dedb540, file "f.py", line 4>
LOAD_CONST '__CMDGroup'
MAKE_FUNCTION
LOAD_CONST '__CMDGroup'
L... | from azure.cli.core.aaz import *
@register_command_group(
"network lb inbound-nat-pool",
)
class __CMDGroup(AAZCommandGroup):
"""Manage inbound NAT address pools of a load balancer."""
pass
__all__ = ["__CMDGroup"]
| data/azure-cli-2.57.0/azure/cli/command_modules/network/aaz/profile_2020_09_01_hybrid/network/lb/inbound_nat_pool/__cmd_group.py | 193 | 85 | 378,738 |
LOAD_CONST "Dataset definition for bool_q.\n\nDEPRECATED!\nIf you want to use the BoolQ dataset builder class, use:\ntfds.builder_cls('bool_q')\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 bool_q.
DEPRECATED!
If you want to use the BoolQ dataset builder class, use:
tfds.builder_cls('bool_q')
"""
from tensorflow_datasets.core import lazy_builder_import
BoolQ = lazy_builder_import.LazyBuilderImport("bool_q")
| data/tfds-nightly-4.9.4.dev202402210044/tensorflow_datasets/text/bool_q/bool_q.py | 130 | 85 | 211,199 |
LOAD_CONST 0
LOAD_CONST ('admin',)
IMPORT_NAME django.contrib
IMPORT_FROM admin
STORE_NAME admin
POP_TOP
LOAD_CONST 0
LOAD_CONST ('FrontendEditableAdminMixin',)
IMPORT_NAME cms.admin.placeholderadmin
IMPORT_FROM FrontendEditableAdminMixin
STORE_NAME FrontendEditableAdminMixin
POP_TOP
LOAD_CONST 1
LOAD_CONST ('FancyPo... | from django.contrib import admin
from cms.admin.placeholderadmin import FrontendEditableAdminMixin
from .models import FancyPoll
class FancyPollAdmin(FrontendEditableAdminMixin, admin.ModelAdmin):
pass
admin.site.register(FancyPoll, FancyPollAdmin)
| data/django-cms-4.1.0/cms/test_utils/project/placeholder_relation_field_app/admin.py | 251 | 85 | 87,045 |
LOAD_CONST 'High-performance, pure-Python HTTP server used by CherryPy.'
STORE_NAME __doc__
SETUP_EXCEPT to 22
LOAD_CONST 0
LOAD_CONST ('metadata',)
IMPORT_NAME importlib
IMPORT_FROM metadata
STORE_NAME metadata
POP_TOP
POP_BLOCK
JUMP_FORWARD to 50
DUP_TOP
LOAD_NAME ImportError
COMPARE_OP exception match
POP_JUMP_IF... | """High-performance, pure-Python HTTP server used by CherryPy."""
try:
from importlib import metadata
except ImportError:
import importlib_metadata as metadata # noqa: WPS440
try:
__version__ = metadata.version("cheroot")
except Exception:
__version__ = "unknown"
| data/cheroot-10.0.0/cheroot/__init__.py | 186 | 85 | 121,089 |
LOAD_CONST 0
LOAD_CONST ('assert_equal',)
IMPORT_NAME delocate.tests.pytest_tools
IMPORT_FROM assert_equal
STORE_NAME assert_equal
POP_TOP
LOAD_CONST 2
LOAD_CONST ('func1',)
IMPORT_NAME module1
IMPORT_FROM func1
STORE_NAME func1
POP_TOP
LOAD_CONST 2
LOAD_CONST ('func2', 'func3')
IMPORT_NAME subpkg.module2
IMPORT_FROM... | from delocate.tests.pytest_tools import assert_equal
from ..module1 import func1
from ..subpkg.module2 import func2, func3
def test_fakepkg():
assert_equal(func1(), 1)
assert_equal(func2(), 2)
assert_equal(func3(), 3)
| data/delocate-0.10.7/wheel_makers/fakepkg_rpath/fakepkg/tests/test_fakepkg.py | 225 | 85 | 400,430 |
LOAD_CONST 0
LOAD_CONST ('assert_equal',)
IMPORT_NAME delocate.tests.pytest_tools
IMPORT_FROM assert_equal
STORE_NAME assert_equal
POP_TOP
LOAD_CONST 2
LOAD_CONST ('func1',)
IMPORT_NAME module1
IMPORT_FROM func1
STORE_NAME func1
POP_TOP
LOAD_CONST 2
LOAD_CONST ('func2', 'func3')
IMPORT_NAME subpkg.module2
IMPORT_FROM... | from delocate.tests.pytest_tools import assert_equal
from ..module1 import func1
from ..subpkg.module2 import func2, func3
def test_fakepkg():
assert_equal(func1(), 1)
assert_equal(func2(), 2)
assert_equal(func3(), 3)
| data/delocate-0.10.7/wheel_makers/fakepkg1/fakepkg1/tests/test_fakepkg.py | 224 | 85 | 400,426 |
LOAD_CONST 0
LOAD_CONST ('Enum',)
IMPORT_NAME enum
IMPORT_FROM Enum
STORE_NAME Enum
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object AclType at 0x7fab820f4a50, file "f.py", line 4>
LOAD_CONST 'AclType'
MAKE_FUNCTION
LOAD_CONST 'AclType'
LOAD_NAME str
LOAD_NAME Enum
CALL_FUNCTION
STORE_NAME AclType
LOAD_CONST None
RETU... | from enum import Enum
class AclType(str, Enum):
User = ("user",)
Group = ("group",)
Everyone = ("everyone",)
EveryoneExceptGuests = ("everyoneExceptGuests",)
ExternalGroup = ("externalGroup",)
UnknownFutureValue = ("unknownFutureValue",)
| data/msgraph-sdk-1.1.0/msgraph/generated/models/external_connectors/acl_type.py | 201 | 85 | 262,306 |
LOAD_CONST 0
LOAD_CONST ('testserver',)
IMPORT_NAME django.core.management.commands
IMPORT_FROM testserver
STORE_NAME testserver
POP_TOP
LOAD_CONST 0
LOAD_CONST ('patch_for_test_db_setup',)
IMPORT_NAME south.management.commands
IMPORT_FROM patch_for_test_db_setup
STORE_NAME patch_for_test_db_setup
POP_TOP
LOAD_BUILD_... | from django.core.management.commands import testserver
from south.management.commands import patch_for_test_db_setup
class Command(testserver.Command):
def handle(self, *args, **kwargs):
patch_for_test_db_setup()
super(Command, self).handle(*args, **kwargs)
| data/South-1.0.2/south/management/commands/testserver.py | 280 | 85 | 392,297 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME os
STORE_NAME os
LOAD_CONST 2
LOAD_CONST ('MPLD3_LOCAL', 'MPLD3MIN_LOCAL', 'D3_LOCAL')
IMPORT_NAME urls
IMPORT_FROM MPLD3_LOCAL
STORE_NAME MPLD3_LOCAL
IMPORT_FROM MPLD3MIN_LOCAL
STORE_NAME MPLD3MIN_LOCAL
IMPORT_FROM D3_LOCAL
STORE_NAME D3_LOCAL
POP_TOP
LOAD_CONST <code object ... | import os
from ..urls import MPLD3_LOCAL, MPLD3MIN_LOCAL, D3_LOCAL
def test_js_libs_exist():
for jsfile in [MPLD3_LOCAL, MPLD3MIN_LOCAL, D3_LOCAL]:
assert os.path.exists(jsfile)
| data/mpld3-0.5.10/mpld3/tests/test_js_libs.py | 249 | 85 | 104,649 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME base64
STORE_NAME base64
LOAD_NAME str
LOAD_NAME str
LOAD_CONST ('input_string', 'return')
BUILD_CONST_KEY_MAP
LOAD_CONST <code object base64_encode_string at 0x7f8e2fec3c00, file "f.py", line 4>
LOAD_CONST 'base64_encode_string'
MAKE_FUNCTION
STORE_NAME base64_encode_string
LO... | import base64
def base64_encode_string(input_string: str) -> str:
input_bytes = input_string.encode()
base64_bytes = base64.b64encode(input_bytes)
base64_string = base64_bytes.decode()
return base64_string
| data/scrapingant-client-2.0.1/scrapingant_client/utils.py | 174 | 85 | 330,559 |
LOAD_CONST 0
LOAD_CONST ('assert_equal',)
IMPORT_NAME delocate.tests.pytest_tools
IMPORT_FROM assert_equal
STORE_NAME assert_equal
POP_TOP
LOAD_CONST 2
LOAD_CONST ('func1',)
IMPORT_NAME module1
IMPORT_FROM func1
STORE_NAME func1
POP_TOP
LOAD_CONST 2
LOAD_CONST ('func2', 'func3')
IMPORT_NAME subpkg.module2
IMPORT_FROM... | from delocate.tests.pytest_tools import assert_equal
from ..module1 import func1
from ..subpkg.module2 import func2, func3
def test_fakepkg():
assert_equal(func1(), 1)
assert_equal(func2(), 2)
assert_equal(func3(), 3)
| data/delocate-0.10.7/wheel_makers/fakepkg2/fakepkg2/tests/test_fakepkg.py | 225 | 85 | 400,420 |
LOAD_CONST 0
LOAD_CONST ('print_function',)
IMPORT_NAME __future__
IMPORT_FROM print_function
STORE_NAME print_function
POP_TOP
SETUP_EXCEPT to 22
LOAD_NAME raw_input
POP_TOP
POP_BLOCK
JUMP_FORWARD to 46
DUP_TOP
LOAD_NAME NameError
COMPARE_OP exception match
POP_JUMP_IF_FALSE
POP_TOP
POP_TOP
POP_TOP
LOAD_NAME input... | from __future__ import print_function
try:
raw_input
except NameError:
raw_input = input
while True:
try:
a = raw_input("<in >")
except EOFError:
print("<eof>")
break
print("<out>", a, sep="")
| data/pexpect-4.9.0/tests/echo_w_prompt.py | 216 | 85 | 24,575 |
LOAD_CONST 'Auto-generated file, do not edit by hand. 506 metadata'
STORE_NAME __doc__
LOAD_CONST 2
LOAD_CONST ('NumberFormat',)
IMPORT_NAME phonemetadata
IMPORT_FROM NumberFormat
STORE_NAME NumberFormat
POP_TOP
LOAD_NAME NumberFormat
LOAD_CONST '(\\d{4})(\\d{2})(\\d{2})'
LOAD_CONST '\\1 \\2 \\3'
LOAD_CONST ('pattern... | """Auto-generated file, do not edit by hand. 506 metadata"""
from ..phonemetadata import NumberFormat
PHONE_ALT_FORMAT_506 = [
NumberFormat(pattern="(\\d{4})(\\d{2})(\\d{2})", format="\\1 \\2 \\3")
]
| data/phonenumbers-8.13.30/phonenumbers/data/alt_format_506.py | 119 | 85 | 122,652 |
LOAD_CONST 0
LOAD_CONST ('*',)
IMPORT_NAME azure.cli.core.aaz
IMPORT_STAR
LOAD_NAME register_command_group
LOAD_CONST 'monitor private-link-scope'
LOAD_CONST True
LOAD_CONST ('is_preview',)
CALL_FUNCTION
LOAD_BUILD_CLASS
LOAD_CONST <code object __CMDGroup at 0x7faa5dedb1e0, file "f.py", line 4>
LOAD_CONST '__CMDGrou... | from azure.cli.core.aaz import *
@register_command_group(
"monitor private-link-scope",
is_preview=True,
)
class __CMDGroup(AAZCommandGroup):
"""Manage monitor private link scope resource."""
pass
__all__ = ["__CMDGroup"]
| data/azure-cli-2.57.0/azure/cli/command_modules/monitor/aaz/latest/monitor/private_link_scope/__cmd_group.py | 197 | 85 | 375,039 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME sys
STORE_NAME sys
LOAD_CONST 0
LOAD_CONST ('path',)
IMPORT_NAME os
IMPORT_FROM path
STORE_NAME path
POP_TOP
LOAD_CONST 0
LOAD_CONST ('*',)
IMPORT_NAME os
IMPORT_STAR
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME time
STORE_NAME time1
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME os
ST... | import sys
from os import path
from os import *
import time as time1, os as os1
import http.client as httpclient
from sys import stdin, stdout, stderr
if len(__file__) == 0:
import a.b.c as d
import stuff0.stuff1.stuff2.stuff3 as stuff3
| data/xdis-6.0.5/test/simple_source/stmts/00_import.py | 255 | 85 | 85,385 |
LOAD_CONST 1
LOAD_CONST ('GmpCreateHostTestMixin',)
IMPORT_NAME test_create_host
IMPORT_FROM GmpCreateHostTestMixin
STORE_NAME GmpCreateHostTestMixin
POP_TOP
LOAD_CONST 1
LOAD_CONST ('GmpDeleteHostTestMixin',)
IMPORT_NAME test_delete_host
IMPORT_FROM GmpDeleteHostTestMixin
STORE_NAME GmpDeleteHostTestMixin
POP_TOP
LO... | from .test_create_host import GmpCreateHostTestMixin
from .test_delete_host import GmpDeleteHostTestMixin
from .test_get_host import GmpGetHostTestMixin
from .test_get_hosts import GmpGetHostsTestMixin
from .test_modify_host import GmpModifyHostTestMixin
| data/python_gvm-24.1.0/tests/protocols/gmpv208/entities/hosts/__init__.py | 232 | 85 | 371,847 |
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_argmax_int8_64_1():
raise NotImplementedError("Unable to generate any tests for kernel")
| data/awkward-cpp-29/tests-cpu-kernels/test_cpuawkward_reduce_argmax_int8_64.py | 222 | 85 | 221,448 |
LOAD_CONST 0
LOAD_CONST ('namedtuple',)
IMPORT_NAME collections
IMPORT_FROM namedtuple
STORE_NAME namedtuple
POP_TOP
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME cv2
STORE_NAME cv2
LOAD_NAME namedtuple
LOAD_CONST 'NativeMethodPatchedResult'
LOAD_CONST ('py', 'native')
CALL_FUNCTION
STORE_NAME NativeMethodPatchedResult
L... | from collections import namedtuple
import cv2
NativeMethodPatchedResult = namedtuple("NativeMethodPatchedResult", ("py", "native"))
def testOverwriteNativeMethod(arg):
return NativeMethodPatchedResult(
arg + 1, cv2.utils._native.testOverwriteNativeMethod(arg)
)
| data/opencv-contrib-python-4.9.0.80/opencv/modules/core/misc/python/package/utils/__init__.py | 184 | 85 | 146,983 |
LOAD_CONST 0
LOAD_CONST ('parse',)
IMPORT_NAME packaging.version
IMPORT_FROM parse
STORE_NAME version
POP_TOP
LOAD_NAME str
LOAD_NAME bool
LOAD_CONST ('ver', 'return')
BUILD_CONST_KEY_MAP
LOAD_CONST <code object numpy_older_than at 0x7fab42728390, file "f.py", line 4>
LOAD_CONST 'numpy_older_than'
MAKE_FUNCTION
STORE_... | from packaging.version import parse as version
def numpy_older_than(ver: str) -> bool:
"""Returns True if the numpy version is older than the given version."""
import numpy # pylint: disable=import-outside-toplevel
return version(numpy.__version__) < version(ver)
| data/onnx-1.15.0/onnx/test/version_utils.py | 150 | 85 | 111,501 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME AddressBook
STORE_NAME AddressBook
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_BUILD_CLASS
LOAD_CONST <code object TestABPerso... | import AddressBook # noqa: F401
from PyObjCTools.TestSupport import TestCase, min_sdk_level
class TestABPersonPickerDelegate(TestCase):
@min_sdk_level("10.9")
def test_protocols(self):
self.assertProtocolExists("ABPersonPickerDelegate")
| data/pyobjc-framework-AddressBook-10.1/PyObjCTest/test_abpersonpickerdelegate.py | 285 | 85 | 439,106 |
LOAD_BUILD_CLASS
LOAD_CONST <code object WebhookResponse at 0x7fab82343b70, file "f.py", line 1>
LOAD_CONST 'WebhookResponse'
MAKE_FUNCTION
LOAD_CONST 'WebhookResponse'
CALL_FUNCTION
STORE_NAME WebhookResponse
LOAD_CONST None
RETURN_VALUE
LOAD_NAME __name__
STORE_NAME __module__
LOAD_CONST 'WebhookResponse'
STORE_NAME... | class WebhookResponse:
def __init__(
self,
*,
url: str,
status_code: int,
body: str,
headers: dict,
):
self.api_url = url
self.status_code = status_code
self.body = body
self.headers = headers
| data/slack_sdk-3.27.0/slack/webhook/webhook_response.py | 229 | 85 | 206,984 |
LOAD_CONST './yolact_r50_1xb8-55e_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_FUNCTION
... | _base_ = "./yolact_r50_1xb8-55e_coco.py"
model = dict(
backbone=dict(
depth=101,
init_cfg=dict(type="Pretrained", checkpoint="torchvision://resnet101"),
)
)
| data/mmdet-3.3.0/mmdet/.mim/configs/yolact/yolact_r101_1xb8-55e_coco.py | 109 | 85 | 151,139 |
LOAD_CONST "Dataset definition for accentdb.\n\nDEPRECATED!\nIf you want to use the Accentdb dataset builder class, use:\ntfds.builder_cls('accentdb')\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 accentdb.
DEPRECATED!
If you want to use the Accentdb dataset builder class, use:
tfds.builder_cls('accentdb')
"""
from tensorflow_datasets.core import lazy_builder_import
Accentdb = lazy_builder_import.LazyBuilderImport("accentdb")
| data/tfds-nightly-4.9.4.dev202402210044/tensorflow_datasets/audio/accentdb.py | 129 | 85 | 238,223 |
LOAD_CONST 0
LOAD_CONST ('*',)
IMPORT_NAME azure.cli.core.aaz
IMPORT_STAR
LOAD_NAME register_command_group
LOAD_CONST 'network lb inbound-nat-pool'
CALL_FUNCTION
LOAD_BUILD_CLASS
LOAD_CONST <code object __CMDGroup at 0x7fab82197930, file "f.py", line 4>
LOAD_CONST '__CMDGroup'
MAKE_FUNCTION
LOAD_CONST '__CMDGroup'
L... | from azure.cli.core.aaz import *
@register_command_group(
"network lb inbound-nat-pool",
)
class __CMDGroup(AAZCommandGroup):
"""Manage inbound NAT address pools of a load balancer."""
pass
__all__ = ["__CMDGroup"]
| data/azure-cli-2.57.0/azure/cli/command_modules/network/aaz/latest/network/lb/inbound_nat_pool/__cmd_group.py | 195 | 85 | 378,146 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME braintree
STORE_NAME braintree
LOAD_CONST 0
LOAD_CONST ('Configuration',)
IMPORT_NAME braintree.configuration
IMPORT_FROM Configuration
STORE_NAME Configuration
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object WebhookTesting at 0x7f8e2fe41b70, file "f.py", line 5>
LOAD_CONST '... | import braintree
from braintree.configuration import Configuration
class WebhookTesting(object):
@staticmethod
def sample_notification(kind, id, source_merchant_id=None):
return Configuration.gateway().webhook_testing.sample_notification(
kind, id, source_merchant_id
)
| data/braintree-4.26.0/braintree/webhook_testing.py | 254 | 85 | 327,676 |
LOAD_CONST 0
LOAD_CONST ('*',)
IMPORT_NAME azure.cli.core.aaz
IMPORT_STAR
LOAD_NAME register_command_group
LOAD_CONST 'eventhubs eventhub authorization-rule'
CALL_FUNCTION
LOAD_BUILD_CLASS
LOAD_CONST <code object __CMDGroup at 0x7fab8204aed0, file "f.py", line 4>
LOAD_CONST '__CMDGroup'
MAKE_FUNCTION
LOAD_CONST '__CM... | from azure.cli.core.aaz import *
@register_command_group(
"eventhubs eventhub authorization-rule",
)
class __CMDGroup(AAZCommandGroup):
"""Manage Azure Service Bus Authorizationrule for Eventhub."""
pass
__all__ = ["__CMDGroup"]
| data/azure-cli-2.57.0/azure/cli/command_modules/eventhubs/aaz/profile_2019_03_01_hybrid/eventhubs/eventhub/authorization_rule/__cmd_group.py | 194 | 85 | 374,709 |
LOAD_CONST 0
LOAD_CONST ('annotations',)
IMPORT_NAME __future__
IMPORT_FROM annotations
STORE_NAME annotations
POP_TOP
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME os
STORE_NAME os
LOAD_CONST <code object get_hook_dirs at 0x7fadb5811c00, file "f.py", line 6>
LOAD_CONST 'get_hook_dirs'
MAKE_FUNCTION
STORE_NAME get_hook_di... | from __future__ import annotations
import os
def get_hook_dirs():
"""Get hooks directories for pyinstaller.
More info about the hooks:
https://pyinstaller.readthedocs.io/en/stable/hooks.html
"""
return [os.path.dirname(__file__)]
| data/b2sdk-1.31.0/b2sdk/_pyinstaller/__init__.py | 125 | 85 | 28,128 |
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_sum_bool_bool_64_1():
raise NotImplementedError("Unable to generate any tests for kernel")
| data/awkward-cpp-29/tests-cpu-kernels/test_cpuawkward_reduce_sum_bool_bool_64.py | 222 | 85 | 221,423 |
LOAD_CONST 0
LOAD_CONST ('Resource',)
IMPORT_NAME intercom.traits.api_resource
IMPORT_FROM Resource
STORE_NAME Resource
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object Notification at 0x7f8e2fe149c0, file "f.py", line 4>
LOAD_CONST 'Notification'
MAKE_FUNCTION
LOAD_CONST 'Notification'
LOAD_NAME Resource
CALL_FUNCTIO... | from intercom.traits.api_resource import Resource
class Notification(Resource):
@property
def model(self):
return self.data.item
@property
def model_type(self):
return self.model.__class__
@property
def load(self):
return self.model.load
| data/python-intercom-3.1.0/intercom/notification.py | 312 | 85 | 396,815 |
LOAD_CONST 'route53resolver base URL and path.'
STORE_NAME __doc__
LOAD_CONST 1
LOAD_CONST ('Route53ResolverResponse',)
IMPORT_NAME responses
IMPORT_FROM Route53ResolverResponse
STORE_NAME Route53ResolverResponse
POP_TOP
LOAD_CONST 'https?://route53resolver\\.(.+)\\.amazonaws\\.com'
BUILD_LIST
STORE_NAME url_bases
L... | """route53resolver base URL and path."""
from .responses import Route53ResolverResponse
url_bases = [
r"https?://route53resolver\.(.+)\.amazonaws\.com",
]
url_paths = {
"{0}/$": Route53ResolverResponse.dispatch,
}
| data/moto-5.0.2/moto/route53resolver/urls.py | 115 | 85 | 198,562 |
LOAD_CONST 0
LOAD_CONST ('SQLAlchemy',)
IMPORT_NAME flask_sqlalchemy
IMPORT_FROM SQLAlchemy
STORE_NAME SQLAlchemy
POP_TOP
LOAD_CONST 0
LOAD_CONST ('UUIDType',)
IMPORT_NAME sqlalchemy_utils
IMPORT_FROM UUIDType
STORE_NAME UUIDType
POP_TOP
LOAD_NAME SQLAlchemy
CALL_FUNCTION
STORE_NAME db
LOAD_NAME UUIDType
LOAD_NAME d... | from flask_sqlalchemy import SQLAlchemy
from sqlalchemy_utils import UUIDType
db = SQLAlchemy()
db.UUID = UUIDType
def init_app(app):
app.config["SQLALCHEMY_TRACK_MODIFICATIONS"] = True
db.init_app(app)
| data/hiddifypanel-8.8.96/hiddifypanel/panel/database.py | 193 | 85 | 215,149 |
LOAD_CONST 0
LOAD_CONST ('WeeklyJob',)
IMPORT_NAME django_extensions.management.jobs
IMPORT_FROM WeeklyJob
STORE_NAME WeeklyJob
POP_TOP
LOAD_CONST 0
LOAD_CONST ('mock',)
IMPORT_NAME unittest
IMPORT_FROM mock
STORE_NAME mock
POP_TOP
LOAD_NAME mock
LOAD_METHOD MagicMock
CALL_METHOD
STORE_NAME WEEKLY_JOB_MOCK
LOAD_BUIL... | from django_extensions.management.jobs import WeeklyJob
from unittest import mock
WEEKLY_JOB_MOCK = mock.MagicMock()
class Job(WeeklyJob):
help = "My sample weekly job."
def execute(self):
WEEKLY_JOB_MOCK()
| data/django-extensions-3.2.3/tests/testapp/jobs/weekly/test_weekly_job.py | 250 | 85 | 300,197 |
LOAD_CONST 'This module includes exceptions used in the package.'
STORE_NAME __doc__
LOAD_BUILD_CLASS
LOAD_CONST <code object PytestWarning at 0x7f8af04b80c0, file "f.py", line 4>
LOAD_CONST 'PytestWarning'
MAKE_FUNCTION
LOAD_CONST 'PytestWarning'
LOAD_NAME UserWarning
CALL_FUNCTION
STORE_NAME PytestWarning
LOAD_CONST... | """This module includes exceptions used in the package."""
class PytestWarning(UserWarning):
"""Pytest warning exception.
This exception is about to stub absent PytestWarning in Pytest versions
up to 3.8.0. Get rid of this code once we drop support for Pytest versions
below 3.8.0.
"""
| data/pytest-reportportal-5.3.2/pytest_reportportal/errors.py | 182 | 85 | 328,175 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME asyncio
STORE_NAME asyncio
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME pyperf
STORE_NAME pyperf
LOAD_CONST <code object loop_factory at 0x7f8af162ee40, file "f.py", line 5>
LOAD_CONST 'loop_factory'
MAKE_FUNCTION
STORE_NAME loop_factory
LOAD_CONST <code object func at 0x7f8af162... | import asyncio
import pyperf
def loop_factory():
return asyncio.new_event_loop()
async def func():
await asyncio.sleep(0.001)
runner = pyperf.Runner()
runner.bench_async_func("async_sleep", func, loop_factory=loop_factory)
| data/pyperf-2.6.2/doc/examples/bench_async_func_with_loop_factory.py | 230 | 85 | 123,059 |
LOAD_CONST 0
LOAD_CONST ('*',)
IMPORT_NAME azure.cli.core.aaz
IMPORT_STAR
LOAD_NAME register_command_group
LOAD_CONST 'network public-ip ddos-protection-statu'
CALL_FUNCTION
LOAD_BUILD_CLASS
LOAD_CONST <code object __CMDGroup at 0x7faa5e81ff60, file "f.py", line 4>
LOAD_CONST '__CMDGroup'
MAKE_FUNCTION
LOAD_CONST '__... | from azure.cli.core.aaz import *
@register_command_group(
"network public-ip ddos-protection-statu",
)
class __CMDGroup(AAZCommandGroup):
"""Manage public IP ddos protection statu."""
pass
__all__ = ["__CMDGroup"]
| data/azure-cli-2.57.0/azure/cli/command_modules/network/aaz/latest/network/public_ip/ddos_protection_statu/__cmd_group.py | 194 | 85 | 378,053 |
LOAD_CONST 0
LOAD_CONST ('annotations',)
IMPORT_NAME __future__
IMPORT_FROM annotations
STORE_NAME annotations
POP_TOP
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME importlib.metadata
STORE_NAME importlib
LOAD_CONST '.pre-commit-config.yaml'
STORE_NAME CONFIG_FILE
LOAD_CONST '.pre-commit-hooks.yaml'
STORE_NAME MANIFEST_F... | from __future__ import annotations
import importlib.metadata
CONFIG_FILE = ".pre-commit-config.yaml"
MANIFEST_FILE = ".pre-commit-hooks.yaml"
LOCAL_REPO_VERSION = "1"
VERSION = importlib.metadata.version("pre_commit")
DEFAULT = "default"
| data/pre_commit-3.6.2/pre_commit/constants.py | 138 | 85 | 391,826 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME sys
STORE_NAME sys
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME os
STORE_NAME os
LOAD_NAME open
LOAD_NAME sys
LOAD_ATTR argv
LOAD_CONST 1
BINARY_SUBSCR
CALL_FUNCTION
SETUP_WITH to 58
STORE_NAME fh
LOAD_NAME fh
LOAD_METHOD read
CALL_METHOD
LOAD_METHOD replace
LOAD_CONST '{NAME}'
L... | import sys
import os
with open(sys.argv[1]) as fh:
content = fh.read().replace("{NAME}", sys.argv[2])
with open(os.path.join(sys.argv[3]), "w", errors="replace") as fh:
fh.write(content)
| data/meson-1.3.2/test cases/common/179 escape and unicode/file.py | 192 | 85 | 82,007 |
LOAD_BUILD_CLASS
LOAD_CONST <code object _DummyLock at 0x7f8e2ff25810, file "f.py", line 1>
LOAD_CONST '_DummyLock'
MAKE_FUNCTION
LOAD_CONST '_DummyLock'
LOAD_NAME object
CALL_FUNCTION
STORE_NAME _DummyLock
LOAD_NAME _DummyLock
CALL_FUNCTION
STORE_NAME _dummy_lock
LOAD_CONST <code object allocate_lock at 0x7f8e2ff250... | class _DummyLock(object):
def __init__(self):
self.acquire = self.release = self.locked = self.__noop
def __noop(self, *args):
return
_dummy_lock = _DummyLock()
def allocate_lock():
return _dummy_lock
| data/python-xlib-0.33/Xlib/support/lock.py | 330 | 85 | 116,406 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME sys
STORE_NAME sys
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME os
STORE_NAME os
LOAD_NAME open
LOAD_NAME sys
LOAD_ATTR argv
LOAD_CONST 1
BINARY_SUBSCR
CALL_FUNCTION
SETUP_WITH to 58
STORE_NAME fh
LOAD_NAME fh
LOAD_METHOD read
CALL_METHOD
LOAD_METHOD replace
LOAD_CONST '{NAME}'
L... | import sys
import os
with open(sys.argv[1]) as fh:
content = fh.read().replace("{NAME}", sys.argv[2])
with open(os.path.join(sys.argv[3]), "w", errors="replace") as fh:
fh.write(content)
| data/numpy-1.26.4/vendored-meson/meson/test cases/common/179 escape and unicode/file.py | 192 | 85 | 363,736 |
LOAD_CONST 0
LOAD_CONST ('manage',)
IMPORT_NAME pyxnat
IMPORT_FROM manage
STORE_NAME manage
POP_TOP
LOAD_CONST 0
LOAD_CONST ('Interface',)
IMPORT_NAME pyxnat
IMPORT_FROM Interface
STORE_NAME Interface
POP_TOP
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME os.path
IMPORT_FROM path
STORE_NAME op
POP_TOP
LOAD_NAME Interface
... | from pyxnat import manage
from pyxnat import Interface
import os.path as op
central = Interface("https://www.nitrc.org/ir", anonymous=True)
def test_project_manager():
mgmt = manage.ProjectManager("ABIDE", central)
assert mgmt.accessibility().decode() == "protected"
| data/pyxnat-1.6.2/pyxnat/tests/project_manager_test.py | 225 | 85 | 169,598 |
LOAD_CONST 1
LOAD_CONST ('_Elastic',)
IMPORT_NAME
IMPORT_FROM _Elastic
STORE_NAME _Elastic
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object _Saas at 0x7fab81fc6b70, file "f.py", line 4>
LOAD_CONST '_Saas'
MAKE_FUNCTION
LOAD_CONST '_Saas'
LOAD_NAME _Elastic
CALL_FUNCTION
STORE_NAME _Saas
LOAD_BUILD_CLASS
LOAD_CONST <c... | from . import _Elastic
class _Saas(_Elastic):
_type = "saas"
_icon_dir = "resources/elastic/saas"
class Cloud(_Saas):
_icon = "cloud.png"
class Elastic(_Saas):
_icon = "elastic.png"
| data/diagrams-0.23.4/diagrams/elastic/saas.py | 353 | 85 | 206,009 |
LOAD_CONST 'Sources for configuration files.'
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 ('IniConfig',)
IMPORT_NAME ini
IMPORT_FROM IniConfig
STORE_NAME IniConfig
POP_TOP
LOAD_CONST 1
LOAD_CONST ('P... | """Sources for configuration files."""
from __future__ import annotations
from .ini import IniConfig
from .pyproject import PyProject
from .pytool import PyTool
from .setup_cfg import SetupConfig
from .source import Source
__all__ = ["PyProject", "PyTool", "IniConfig", "SetupConfig", "Source"]
| data/pytoolconfig-1.3.1/src/pytoolconfig/sources/__init__.py | 216 | 85 | 404,457 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME unittest
STORE_NAME unittest
LOAD_CONST 0
LOAD_CONST ('clear_kaggle_credentials',)
IMPORT_NAME kagglehub.config
IMPORT_FROM clear_kaggle_credentials
STORE_NAME clear_kaggle_credentials
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object BaseTestCase at 0x7faa74756270, file "f.py"... | import unittest
from kagglehub.config import clear_kaggle_credentials
class BaseTestCase(unittest.TestCase):
def setUp(self) -> None:
clear_kaggle_credentials()
def tearDown(self) -> None:
clear_kaggle_credentials()
| data/kagglehub-0.1.9/tests/fixtures.py | 326 | 85 | 20,330 |
LOAD_CONST 'ShaderLib\n\nAutogenerated by generate-shader-utils.js\n'
STORE_NAME __doc__
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME json
STORE_NAME json
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME os
STORE_NAME os
LOAD_NAME os
LOAD_ATTR path
LOAD_METHOD dirname
LOAD_NAME __file__
CALL_METHOD
STORE_NAME here
LOAD_NAME op... | """ShaderLib
Autogenerated by generate-shader-utils.js
"""
import json
import os
here = os.path.dirname(__file__)
with open(os.path.join(here, "ShaderLib.autogen.json")) as data_file:
ShaderLib = json.load(data_file)
| data/pythreejs-2.4.2/pythreejs/renderers/shaders/ShaderLib_autogen.py | 158 | 85 | 286,297 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.