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 '\nThis is an extension of lizard, that counts the complexity outside functions\n'
STORE_NAME __doc__
LOAD_BUILD_CLASS
LOAD_CONST <code object LizardExtension at 0x7fab41499ed0, file "f.py", line 6>
LOAD_CONST 'LizardExtension'
MAKE_FUNCTION
LOAD_CONST 'LizardExtension'
LOAD_NAME object
CALL_FUNCTION
STORE_... | """
This is an extension of lizard, that counts the complexity outside functions
"""
class LizardExtension(object): # pylint: disable=R0903
def __call__(self, tokens, reader):
for token in tokens:
yield token
reader.context.end_of_function()
| data/lizard-1.17.10/lizard_ext/lizardoutside.py | 229 | 78 | 360,509 |
LOAD_CONST 0
LOAD_CONST ('current_audit_info',)
IMPORT_NAME prowler.providers.aws.lib.audit_info.audit_info
IMPORT_FROM current_audit_info
STORE_NAME current_audit_info
POP_TOP
LOAD_CONST 0
LOAD_CONST ('CodeArtifact',)
IMPORT_NAME prowler.providers.aws.services.codeartifact.codeartifact_service
IMPORT_FROM CodeArtifac... | from prowler.providers.aws.lib.audit_info.audit_info import current_audit_info
from prowler.providers.aws.services.codeartifact.codeartifact_service import (
CodeArtifact,
)
codeartifact_client = CodeArtifact(current_audit_info)
| data/prowler-3.14.0/prowler/providers/aws/services/codeartifact/codeartifact_client.py | 127 | 78 | 183,287 |
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 RepoCurveType at 0x7fab700e4c90, file "f.py", line 6>
L... | from enum import unique
from ...._base_enum import StrEnum
@unique
class RepoCurveType(StrEnum):
DEPOSIT_CURVE = "DepositCurve"
LIBOR_FIXING = "LiborFixing"
REPO_CURVE = "RepoCurve"
| data/refinitiv-data-1.6.0/refinitiv/data/content/ipa/_enums/_repo_curve_type.py | 214 | 78 | 195,502 |
LOAD_CONST 0
LOAD_CONST ('decorator',)
IMPORT_NAME tests.fixtures
IMPORT_FROM decorator
STORE_NAME decorator
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object Super at 0x7fab802dd0c0, file "f.py", line 4>
LOAD_CONST 'Super'
MAKE_FUNCTION
LOAD_CONST 'Super'
LOAD_NAME object
CALL_FUNCTION
STORE_NAME Super
LOAD_BUILD_CLA... | from tests.fixtures import decorator
class Super(object): # pragma: no cover
@decorator()
def classname(self):
pass
@decorator()
def boo(self):
pass
class Sub(Super): # pragma: no cover
pass
| data/venusian-3.1.0/tests/fixtures/subclassing.py | 318 | 78 | 76,624 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME talib._ta_lib
IMPORT_FROM _ta_lib
STORE_NAME _ta_lib
POP_TOP
LOAD_CONST 1
LOAD_CONST ('__TA_FUNCTION_NAMES__',)
IMPORT_NAME _ta_lib
IMPORT_FROM __TA_FUNCTION_NAMES__
STORE_NAME __TA_FUNCTION_NAMES__
POP_TOP
SETUP_LOOP to 58
LOAD_NAME __TA_FUNCTION_NAMES__
GET_ITER
FOR_ITER to ... | import talib._ta_lib as _ta_lib
from ._ta_lib import __TA_FUNCTION_NAMES__
for func_name in __TA_FUNCTION_NAMES__:
globals()[func_name] = getattr(_ta_lib, "stream_%s" % func_name)
| data/TA-Lib-0.4.28/talib/stream.py | 159 | 78 | 185,963 |
LOAD_CONST 1
LOAD_CONST ('BaseWrapperDataset',)
IMPORT_NAME
IMPORT_FROM BaseWrapperDataset
STORE_NAME BaseWrapperDataset
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object OffsetTokensDataset at 0x7f8af11f1270, file "f.py", line 4>
LOAD_CONST 'OffsetTokensDataset'
MAKE_FUNCTION
LOAD_CONST 'OffsetTokensDataset'
LOAD_NAME... | from . import BaseWrapperDataset
class OffsetTokensDataset(BaseWrapperDataset):
def __init__(self, dataset, offset):
super().__init__(dataset)
self.offset = offset
def __getitem__(self, idx):
return self.dataset[idx] + self.offset
| data/fairseq-0.12.2/fairseq/data/offset_tokens_dataset.py | 324 | 78 | 119,965 |
LOAD_CONST 'Graph connection package.\n\nThis package provides classes for determining coarsened graph connections in\ngraph pooling scenarios.\n'
STORE_NAME __doc__
LOAD_CONST 1
LOAD_CONST ('Connect', 'ConnectOutput')
IMPORT_NAME base
IMPORT_FROM Connect
STORE_NAME Connect
IMPORT_FROM ConnectOutput
STORE_NAME Connect... | r"""Graph connection package.
This package provides classes for determining coarsened graph connections in
graph pooling scenarios.
"""
from .base import Connect, ConnectOutput
from .filter_edges import FilterEdges
__all__ = [
"Connect",
"ConnectOutput",
"FilterEdges",
]
| data/torch_geometric-2.5.0/torch_geometric/nn/pool/connect/__init__.py | 133 | 78 | 7,579 |
LOAD_CONST 0
LOAD_CONST ('HttpUser', 'task')
IMPORT_NAME locust
IMPORT_FROM HttpUser
STORE_NAME HttpUser
IMPORT_FROM task
STORE_NAME task
POP_TOP
LOAD_CONST 0
LOAD_CONST ('constant_total_ips',)
IMPORT_NAME locust_plugins
IMPORT_FROM constant_total_ips
STORE_NAME constant_total_ips
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST ... | from locust import HttpUser, task
from locust_plugins import constant_total_ips
class MyUser(HttpUser):
wait_time = constant_total_ips(5)
@task
def t(self):
self.client.get("/1")
self.client.get("/2")
| data/locust-plugins-4.4.0/examples/constant_total_ips_ex.py | 276 | 78 | 419,897 |
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 0x7faa7c16a270, 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 = [
("customuser", "0002_added_file_field"),
]
operations = [
migrations.DeleteModel(
name="EmailUser",
),
]
| data/wagtail-6.0.1/wagtail/test/customuser/migrations/0003_delete_emailuser.py | 178 | 78 | 200,587 |
LOAD_CONST 'PyGitGuardian API Client'
STORE_NAME __doc__
LOAD_CONST 1
LOAD_CONST ('ContentTooLarge', 'GGClient', 'GGClientCallbacks')
IMPORT_NAME client
IMPORT_FROM ContentTooLarge
STORE_NAME ContentTooLarge
IMPORT_FROM GGClient
STORE_NAME GGClient
IMPORT_FROM GGClientCallbacks
STORE_NAME GGClientCallbacks
POP_TOP
LO... | """PyGitGuardian API Client"""
from .client import ContentTooLarge, GGClient, GGClientCallbacks
__version__ = "1.13.0"
GGClient._version = __version__
__all__ = ["GGClient", "GGClientCallbacks", "ContentTooLarge"]
| data/pygitguardian-1.13.0/pygitguardian/__init__.py | 147 | 78 | 252,411 |
LOAD_CONST 0
LOAD_CONST ('ApiForget',)
IMPORT_NAME onelogin.paths.api_1_privileges.get
IMPORT_FROM ApiForget
STORE_NAME ApiForget
POP_TOP
LOAD_CONST 0
LOAD_CONST ('ApiForpost',)
IMPORT_NAME onelogin.paths.api_1_privileges.post
IMPORT_FROM ApiForpost
STORE_NAME ApiForpost
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code obje... | from onelogin.paths.api_1_privileges.get import ApiForget
from onelogin.paths.api_1_privileges.post import ApiForpost
class Api1Privileges(
ApiForget,
ApiForpost,
):
pass
| data/onelogin-3.1.6/onelogin/apis/paths/api_1_privileges.py | 215 | 78 | 397,285 |
LOAD_CONST 0
LOAD_CONST ('base_model_optimizer', 'optimization_config', 'palettization', 'pruning', 'quantization')
IMPORT_NAME coremltools.optimize.torch
IMPORT_FROM base_model_optimizer
STORE_NAME base_model_optimizer
IMPORT_FROM optimization_config
STORE_NAME optimization_config
IMPORT_FROM palettization
STORE_NAME ... | from coremltools.optimize.torch import (
base_model_optimizer,
optimization_config,
palettization,
pruning,
quantization,
)
from ._logging import init_root_logger as _init_root_logger
_logger = _init_root_logger()
| data/coremltools-7.1/coremltools/optimize/torch/__init__.py | 154 | 78 | 447,008 |
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 ('CloudGuardClient',)
IMPORT_NAME cloud_guard_client
IMPORT_FROM CloudGuardClient
STORE_NAME CloudGuardClient
POP_TOP
LOAD_CONST 1
LOAD_CONST ('CloudGuardClientCom... | from __future__ import absolute_import
from .cloud_guard_client import CloudGuardClient
from .cloud_guard_client_composite_operations import CloudGuardClientCompositeOperations
from . import models
__all__ = ["CloudGuardClient", "CloudGuardClientCompositeOperations", "models"]
| data/oci-2.122.0/src/oci/cloud_guard/__init__.py | 177 | 78 | 413,301 |
LOAD_NAME index
BUILD_SET
BUILD_SET
POP_TOP
LOAD_NAME summary
BUILD_SET
BUILD_SET
POP_TOP
LOAD_NAME extended_summary
BUILD_SET
BUILD_SET
POP_TOP
LOAD_NAME parameters
BUILD_SET
BUILD_SET
POP_TOP
LOAD_NAME returns
BUILD_SET
BUILD_SET
POP_TOP
LOAD_NAME yields
BUILD_SET
BUILD_SET
POP_TOP
LOAD_NAME other_parameters
BU... | {{index}}
{{summary}}
{{extended_summary}}
{{parameters}}
{{returns}}
{{yields}}
{{other_parameters}}
{{attributes}}
{{raises}}
{{warns}}
{{warnings}}
{{see_also}}
{{notes}}
{{references}}
{{examples}}
{{methods}}
| data/scikit-learn-extra-0.3.0/doc/_templates/numpydoc_docstring.py | 171 | 78 | 307,438 |
LOAD_CONST ('v4', 'v4-query', 'v4a', 's3v4', 's3v4-query', 's3v4a', 's3v4a-query')
STORE_NAME CRT_SUPPORTED_AUTH_TYPES
LOAD_CONST None
RETURN_VALUE | CRT_SUPPORTED_AUTH_TYPES = (
"v4",
"v4-query",
"v4a",
"s3v4",
"s3v4-query",
"s3v4a",
"s3v4a-query",
)
| data/ibm-cos-sdk-core-2.13.4/ibm_botocore/crt/__init__.py | 67 | 78 | 287,280 |
LOAD_CONST 0
LOAD_CONST ('SSL1',)
IMPORT_NAME data
IMPORT_FROM SSL1
STORE_NAME SSL1
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object MyConnection at 0x7fab823341e0, file "f.py", line 4>
LOAD_CONST 'MyConnection'
MAKE_FUNCTION
LOAD_CONST 'MyConnection'
LOAD_NAME SSL1
LOAD_ATTR Connection
CALL_FUNCTION
STORE_NAME MyConn... | from data import SSL1
class MyConnection(SSL1.Connection):
"""An SSL connection."""
def __init__(self, dummy):
print("MyConnection init")
if __name__ == "__main__":
myConnection = MyConnection(" ")
input("Press Enter to continue...")
| data/astroid-3.0.3/tests/testdata/python3/data/appl/myConnection.py | 253 | 78 | 388,613 |
LOAD_CONST 0
LOAD_CONST ('decorators',)
IMPORT_NAME IPython.testing
IMPORT_FROM decorators
STORE_NAME dec
POP_TOP
LOAD_CONST <code object test_import_backgroundjobs at 0x7fab823ace40, file "f.py", line 4>
LOAD_CONST 'test_import_backgroundjobs'
MAKE_FUNCTION
STORE_NAME test_import_backgroundjobs
LOAD_CONST <code obje... | from IPython.testing import decorators as dec
def test_import_backgroundjobs():
from IPython.lib import backgroundjobs
def test_import_deepreload():
from IPython.lib import deepreload
def test_import_demo():
from IPython.lib import demo
| data/ipython-8.21.0/IPython/lib/tests/test_imports.py | 309 | 78 | 154,714 |
LOAD_CONST 0
LOAD_CONST ('migrations',)
IMPORT_NAME server.db
IMPORT_FROM migrations
STORE_NAME migrations
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object Migration at 0x7fab823b5ed0, file "f.py", line 4>
LOAD_CONST 'Migration'
MAKE_FUNCTION
LOAD_CONST 'Migration'
LOAD_NAME migrations
LOAD_ATTR Migration
CALL_FUNCTIO... | from server.db import migrations
class Migration(migrations.Migration):
dependencies = [
("auth", "0005_alter_user_last_login_null"),
("contenttypes", "0002_remove_content_type_name"),
]
operations = []
| data/os_sys-2.1.4/server/contrib/auth/migrations/0006_require_contenttypes_0002.py | 177 | 78 | 247,507 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME numpy
STORE_NAME np
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME imgviz
STORE_NAME imgviz
LOAD_CONST <code object test_trajectory at 0x7fab7002b660, file "f.py", line 6>
LOAD_CONST 'test_trajectory'
MAKE_FUNCTION
STORE_NAME test_trajectory
LOAD_CONST None
RETURN_VALUE
LOAD_GLOBAL... | import numpy as np
import imgviz
def test_trajectory():
data = imgviz.data.kitti_odometry()
img = imgviz.trajectory.plot_trajectory(data["transforms"])
assert isinstance(img, np.ndarray)
| data/imgviz-1.7.5/tests/test_trajectory.py | 178 | 78 | 186,934 |
LOAD_CONST 0
LOAD_CONST ('AsyncioDispatcher',)
IMPORT_NAME pysnmp.carrier.asyncio.dispatch
IMPORT_FROM AsyncioDispatcher
STORE_NAME AsyncioDispatcher
POP_TOP
LOAD_CONST 0
LOAD_CONST ('AbstractTransport',)
IMPORT_NAME pysnmp.carrier.base
IMPORT_FROM AbstractTransport
STORE_NAME AbstractTransport
POP_TOP
LOAD_BUILD_CLA... | from pysnmp.carrier.asyncio.dispatch import AsyncioDispatcher
from pysnmp.carrier.base import AbstractTransport
class AbstractAsyncioTransport(AbstractTransport):
protoTransportDispatcher = AsyncioDispatcher
"""Base Asyncio Transport, to be used with AsyncioDispatcher"""
| data/pysnmp-4.4.12/pysnmp/carrier/asyncio/base.py | 194 | 78 | 222,314 |
LOAD_CONST 0
LOAD_CONST ('backend_to_check', 'prog_check')
IMPORT_NAME bt
IMPORT_FROM backend_to_check
STORE_NAME backend_to_check
IMPORT_FROM prog_check
STORE_NAME prog_check
POP_TOP
LOAD_CONST 0
LOAD_CONST ('use_x_display',)
IMPORT_NAME pyscreenshot.util
IMPORT_FROM use_x_display
STORE_NAME use_x_display
POP_TOP
LO... | from bt import backend_to_check, prog_check
from pyscreenshot.util import use_x_display
if use_x_display():
if prog_check(["import", "-version"]):
def test_imagemagick():
backend_to_check("imagemagick")
| data/pyscreenshot-3.1/tests/test_imagemagick.py | 212 | 78 | 12,411 |
LOAD_CONST 0
LOAD_CONST ('Variable', 'VariableDoesNotExist')
IMPORT_NAME django.template
IMPORT_FROM Variable
STORE_NAME Variable
IMPORT_FROM VariableDoesNotExist
STORE_NAME VariableDoesNotExist
POP_TOP
LOAD_NAME Variable
LOAD_CONST 'action_form'
CALL_FUNCTION
STORE_NAME action_form_var
LOAD_CONST <code object needs_... | from django.template import Variable, VariableDoesNotExist
action_form_var = Variable("action_form")
def needs_checkboxes(context):
try:
return action_form_var.resolve(context) is not None
except VariableDoesNotExist:
return False
| data/django-treebeard-4.7.1/treebeard/templatetags/__init__.py | 194 | 78 | 82,998 |
LOAD_CONST 0
LOAD_CONST ('*',)
IMPORT_NAME azure.cli.core.aaz
IMPORT_STAR
LOAD_NAME register_command_group
LOAD_CONST 'network lb address-pool'
CALL_FUNCTION
LOAD_BUILD_CLASS
LOAD_CONST <code object __CMDGroup at 0x7fab8204a390, file "f.py", line 4>
LOAD_CONST '__CMDGroup'
MAKE_FUNCTION
LOAD_CONST '__CMDGroup'
LOAD_... | from azure.cli.core.aaz import *
@register_command_group(
"network lb address-pool",
)
class __CMDGroup(AAZCommandGroup):
"""Manage address pools of a load balancer."""
pass
__all__ = ["__CMDGroup"]
| data/azure-cli-2.57.0/azure/cli/command_modules/network/aaz/profile_2020_09_01_hybrid/network/lb/address_pool/__cmd_group.py | 188 | 78 | 378,722 |
LOAD_CONST 0
LOAD_CONST ('Local',)
IMPORT_NAME django_datadog_logger.local
IMPORT_FROM Local
STORE_NAME Local
POP_TOP
LOAD_NAME Local
CALL_FUNCTION
STORE_NAME local
LOAD_CONST <code object get_wsgi_request at 0x7fab822c5300, file "f.py", line 6>
LOAD_CONST 'get_wsgi_request'
MAKE_FUNCTION
STORE_NAME get_wsgi_request
... | from django_datadog_logger.local import Local # NOQA
local = Local()
def get_wsgi_request():
try:
return local.request
except AttributeError:
return None
__all__ = ["local", "get_wsgi_request"]
| data/django-datadog-logger-0.6.3/django_datadog_logger/wsgi.py | 177 | 78 | 196,718 |
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_CONST 0
LOAD_CONST None
IMPORT_NAME sysconfig
STORE_NAME sysconfig
LOAD_NAME os
LOAD_ATTR path
LOAD_METHOD abspath
LOAD_NAME os
LOAD_ATTR path
LOAD_METHOD join
LOAD_NAME os
LOAD_ATTR path
LOAD_M... | import os
import sys
import sysconfig
usersite = os.path.abspath(os.path.join(os.path.dirname(__file__), "usersite"))
sys.path.append(usersite)
sysconfig._INSTALL_SCHEMES["posix_user"]["purelib"] = usersite
| data/loguru-0.7.2/tests/exceptions/source/ownership/_init.py | 155 | 78 | 143,323 |
LOAD_CONST 0
LOAD_CONST ('Decimal',)
IMPORT_NAME decimal
IMPORT_FROM Decimal
STORE_NAME Decimal
POP_TOP
LOAD_CONST 0
LOAD_CONST ('Resource',)
IMPORT_NAME braintree.resource
IMPORT_FROM Resource
STORE_NAME Resource
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object SubscriptionStatusEvent at 0x7f8e2fec3c90, file "f.py",... | from decimal import Decimal
from braintree.resource import Resource
class SubscriptionStatusEvent(Resource):
def __init__(self, gateway, attributes):
Resource.__init__(self, gateway, attributes)
self.balance = Decimal(self.balance)
self.price = Decimal(self.price)
| data/braintree-4.26.0/braintree/subscription_status_event.py | 270 | 78 | 327,795 |
LOAD_CONST 1
LOAD_CONST ('MessageStream', 'MessageStreamT', 'AsyncMessageStream', 'AsyncMessageStreamT', 'MessageStreamManager', 'AsyncMessageStreamManager')
IMPORT_NAME _messages
IMPORT_FROM MessageStream
STORE_NAME MessageStream
IMPORT_FROM MessageStreamT
STORE_NAME MessageStreamT
IMPORT_FROM AsyncMessageStream
STORE... | from ._messages import (
MessageStream as MessageStream,
MessageStreamT as MessageStreamT,
AsyncMessageStream as AsyncMessageStream,
AsyncMessageStreamT as AsyncMessageStreamT,
MessageStreamManager as MessageStreamManager,
AsyncMessageStreamManager as AsyncMessageStreamManager,
)
| data/anthropic-0.16.0/src/anthropic/lib/streaming/__init__.py | 116 | 78 | 222,030 |
SETUP_EXCEPT to 18
LOAD_CONST 1
LOAD_CONST ('_logical_readers',)
IMPORT_NAME
IMPORT_FROM _logical_readers
STORE_NAME _logical_readers
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 1
LOAD_CONST ('_logical_readers_py',... | try:
from . import _logical_readers
except ImportError:
from . import _logical_readers_py as _logical_readers # type: ignore
LOGICAL_READERS = _logical_readers.LOGICAL_READERS
__all__ = ["LOGICAL_READERS"]
| data/fastavro-1.9.4/fastavro/logical_readers.py | 164 | 78 | 210,068 |
LOAD_CONST 0
LOAD_CONST ('base',)
IMPORT_NAME keystoneauth1.exceptions
IMPORT_FROM base
STORE_NAME base
POP_TOP
LOAD_CONST ('InvalidResponse',)
STORE_NAME __all__
LOAD_BUILD_CLASS
LOAD_CONST <code object InvalidResponse at 0x7fab4133e660, file "f.py", line 7>
LOAD_CONST 'InvalidResponse'
MAKE_FUNCTION
LOAD_CONST 'Inv... | from keystoneauth1.exceptions import base
__all__ = ("InvalidResponse",)
class InvalidResponse(base.ClientException):
message = "Invalid response from server."
def __init__(self, response):
super(InvalidResponse, self).__init__()
self.response = response
| data/keystoneauth1-5.5.0/keystoneauth1/exceptions/response.py | 254 | 78 | 80,253 |
LOAD_CONST "Dataset definition for arc.\n\nDEPRECATED!\nIf you want to use the ARC dataset builder class, use:\ntfds.builder_cls('arc')\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
LOA... | """Dataset definition for arc.
DEPRECATED!
If you want to use the ARC dataset builder class, use:
tfds.builder_cls('arc')
"""
from tensorflow_datasets.core import lazy_builder_import
ARC = lazy_builder_import.LazyBuilderImport("arc")
| data/tfds-nightly-4.9.4.dev202402210044/tensorflow_datasets/image/arc.py | 122 | 78 | 238,329 |
LOAD_CONST 0
LOAD_CONST ('*',)
IMPORT_NAME azure.cli.core.aaz
IMPORT_STAR
LOAD_NAME register_command_group
LOAD_CONST 'network lb address-pool'
CALL_FUNCTION
LOAD_BUILD_CLASS
LOAD_CONST <code object __CMDGroup at 0x7fab8204a390, file "f.py", line 4>
LOAD_CONST '__CMDGroup'
MAKE_FUNCTION
LOAD_CONST '__CMDGroup'
LOAD_... | from azure.cli.core.aaz import *
@register_command_group(
"network lb address-pool",
)
class __CMDGroup(AAZCommandGroup):
"""Manage address pools of a load balancer."""
pass
__all__ = ["__CMDGroup"]
| data/azure-cli-2.57.0/azure/cli/command_modules/network/aaz/profile_2018_03_01_hybrid/network/lb/address_pool/__cmd_group.py | 188 | 78 | 378,942 |
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 ('VaultsClient',)
IMPORT_NAME vaults_client
IMPORT_FROM VaultsClient
STORE_NAME VaultsClient
POP_TOP
LOAD_CONST 1
LOAD_CONST ('VaultsClientCompositeOperations',)
I... | from __future__ import absolute_import
from .vaults_client import VaultsClient
from .vaults_client_composite_operations import VaultsClientCompositeOperations
from . import models
__all__ = ["VaultsClient", "VaultsClientCompositeOperations", "models"]
| data/oci-2.122.0/src/oci/vault/__init__.py | 175 | 78 | 410,774 |
LOAD_CONST 0
LOAD_CONST ('VERSION',)
IMPORT_NAME django
IMPORT_FROM VERSION
STORE_NAME DJANGO_VERSION
POP_TOP
LOAD_CONST 0
LOAD_CONST ('*',)
IMPORT_NAME elasticapm.contrib.django.client
IMPORT_STAR
LOAD_NAME DJANGO_VERSION
LOAD_CONST (3, 2)
COMPARE_OP <
POP_JUMP_IF_FALSE
LOAD_CONST 'elasticapm.contrib.django.apps.El... | from django import VERSION as DJANGO_VERSION
from elasticapm.contrib.django.client import * # noqa E401
if DJANGO_VERSION < (3, 2):
default_app_config = "elasticapm.contrib.django.apps.ElasticAPMConfig"
| data/elastic-apm-6.20.0/elasticapm/contrib/django/__init__.py | 105 | 78 | 144,228 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME json
STORE_NAME json
LOAD_CONST 0
LOAD_CONST ('Delta',)
IMPORT_NAME deltacat.storage
IMPORT_FROM Delta
STORE_NAME Delta
POP_TOP
LOAD_NAME open
LOAD_CONST 'deltacat/tests/test_utils/resources/test_delta.json'
CALL_FUNCTION
STORE_NAME test_delta_file
LOAD_NAME json
LOAD_METHOD ... | import json
from deltacat.storage import Delta
test_delta_file = open("deltacat/tests/test_utils/resources/test_delta.json")
test_delta_dict = json.load(test_delta_file)
TEST_DELTA = Delta(test_delta_dict)
| data/deltacat-0.2.10/deltacat/tests/test_utils/constants.py | 127 | 78 | 307,185 |
LOAD_CONST 0
LOAD_CONST ('wraps',)
IMPORT_NAME functools
IMPORT_FROM wraps
STORE_NAME wraps
POP_TOP
LOAD_CONST 1
LOAD_CONST ('deprecated',)
IMPORT_NAME deprecated
IMPORT_FROM deprecated
STORE_NAME deprecated
POP_TOP
LOAD_NAME deprecated
LOAD_CONST 'This function is deprecated'
CALL_FUNCTION
LOAD_CONST <code object re... | from functools import wraps
from .deprecated import deprecated
@deprecated("This function is deprecated")
def resolve_only_args(func):
@wraps(func)
def wrapped_func(root, info, **args):
return func(root, **args)
return wrapped_func
| data/graphene-3.3/graphene/utils/resolve_only_args.py | 227 | 78 | 46,961 |
LOAD_CONST 'ColumnConverter'
LOAD_CONST 'AstropyTableConverter'
LOAD_CONST 'AsdfTableConverter'
LOAD_CONST 'NdarrayMixinConverter'
BUILD_LIST
STORE_NAME __all__
LOAD_CONST 1
LOAD_CONST ('AsdfTableConverter', 'AstropyTableConverter', 'ColumnConverter', 'NdarrayMixinConverter')
IMPORT_NAME table
IMPORT_FROM AsdfTable... | __all__ = [
"ColumnConverter",
"AstropyTableConverter",
"AsdfTableConverter",
"NdarrayMixinConverter",
]
from .table import (
AsdfTableConverter,
AstropyTableConverter,
ColumnConverter,
NdarrayMixinConverter,
)
| data/asdf-astropy-0.5.0/asdf_astropy/converters/table/__init__.py | 131 | 78 | 332,747 |
LOAD_CONST 0
LOAD_CONST ('open_workbook',)
IMPORT_NAME xlrd
IMPORT_FROM open_workbook
STORE_NAME open_workbook
POP_TOP
LOAD_CONST 0
LOAD_CONST ('Book',)
IMPORT_NAME xlrd.book
IMPORT_FROM Book
STORE_NAME Book
POP_TOP
LOAD_CONST 1
LOAD_CONST ('from_this_dir',)
IMPORT_NAME base
IMPORT_FROM from_this_dir
STORE_NAME from_... | from xlrd import open_workbook
from xlrd.book import Book
from .base import from_this_dir
def test_open_workbook():
book = open_workbook(from_this_dir("sharedstrings_alt_location.xlsx"))
assert isinstance(book, Book)
| data/xlrd3-1.1.0/tests/test_alt_sharedstrings_loc.py | 217 | 78 | 379,070 |
LOAD_CONST 1
LOAD_CONST ('Deck',)
IMPORT_NAME deck
IMPORT_FROM Deck
STORE_NAME Deck
POP_TOP
LOAD_CONST 1
LOAD_CONST ('Layer',)
IMPORT_NAME layer
IMPORT_FROM Layer
STORE_NAME Layer
POP_TOP
LOAD_CONST 1
LOAD_CONST ('LightSettings',)
IMPORT_NAME light_settings
IMPORT_FROM LightSettings
STORE_NAME LightSettings
POP_TOP
... | from .deck import Deck # noqa
from .layer import Layer # noqa
from .light_settings import LightSettings # noqa
from .view import View # noqa
from .view_state import ViewState # noqa
from . import map_styles # noqa
| data/pydeck-0.8.0/pydeck/bindings/__init__.py | 156 | 78 | 348,061 |
LOAD_CONST 0
LOAD_CONST ('hooks',)
IMPORT_NAME localstack.runtime
IMPORT_FROM hooks
STORE_NAME hooks
POP_TOP
LOAD_CONST 0
LOAD_CONST ('config',)
IMPORT_NAME localstack_ext
IMPORT_FROM config
STORE_NAME ext_config
POP_TOP
LOAD_NAME hooks
LOAD_ATTR on_infra_start
LOAD_NAME ext_config
LOAD_ATTR ACTIVATE_PRO
LOAD_CONST (... | from localstack.runtime import hooks
from localstack_ext import config as ext_config
@hooks.on_infra_start(should_load=ext_config.ACTIVATE_PRO)
def register_pickle_patches_runtime():
from .reducers import register as A
A()
| data/localstack-ext-3.1.0/localstack_ext/persistence/pickling/plugins.py | 201 | 78 | 441,308 |
LOAD_CONST ' Distributor init file\n\nDistributors: you can add custom code here to support particular distributions\nof numpy.\n\nFor example, this is a good place to put any checks for hardware requirements.\n\nThe numpy standard source distribution will not put code in this file, so you\ncan safely replace this file... | """ Distributor init file
Distributors: you can add custom code here to support particular distributions
of numpy.
For example, this is a good place to put any checks for hardware requirements.
The numpy standard source distribution will not put code in this file, so you
can safely replace this file with your own ve... | data/catboost-1.2.2/catboost_all_src/contrib/python/numpy/py2/numpy/_distributor_init.py | 94 | 78 | 176,440 |
LOAD_CONST 0
LOAD_CONST ('*',)
IMPORT_NAME ppft.__main__
IMPORT_STAR
LOAD_CONST 0
LOAD_CONST ('_WorkerProcess', '__version__', '__doc__')
IMPORT_NAME ppft.__main__
IMPORT_FROM _WorkerProcess
STORE_NAME _WorkerProcess
IMPORT_FROM __version__
STORE_NAME __version__
IMPORT_FROM __doc__
STORE_NAME __doc__
POP_TOP
LOAD_NA... | from ppft.__main__ import *
from ppft.__main__ import _WorkerProcess, __version__, __doc__
if __name__ == "__main__":
sys.path.append(os.path.dirname(__file__))
wp = _WorkerProcess()
wp.run()
| data/ppft-1.7.6.8/pp/__main__.py | 162 | 78 | 347,985 |
LOAD_CONST 0
LOAD_CONST ('Variable',)
IMPORT_NAME pandas_profiling.report.presentation.core
IMPORT_FROM Variable
STORE_NAME Variable
POP_TOP
LOAD_CONST 0
LOAD_CONST ('templates',)
IMPORT_NAME pandas_profiling.report.presentation.flavours.html
IMPORT_FROM templates
STORE_NAME templates
POP_TOP
LOAD_BUILD_CLASS
LOAD_CO... | from pandas_profiling.report.presentation.core import Variable
from pandas_profiling.report.presentation.flavours.html import templates
class HTMLVariable(Variable):
def render(self) -> str:
return templates.template("variable.html").render(**self.content)
| data/pandas-profiling-3.6.6/src/pandas_profiling/report/presentation/flavours/html/variable.py | 255 | 78 | 305,480 |
LOAD_CONST 0
LOAD_CONST ('absolute_import',)
IMPORT_NAME __future__
IMPORT_FROM absolute_import
STORE_NAME absolute_import
POP_TOP
LOAD_CONST 0
LOAD_CONST ('division',)
IMPORT_NAME __future__
IMPORT_FROM division
STORE_NAME division
POP_TOP
LOAD_CONST 0
LOAD_CONST ('print_function',)
IMPORT_NAME __future__
IMPORT_FRO... | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
__metaclass__ = type
import json
def lambda_handler(event, context):
return {"statusCode": 200, "body": json.dumps("Hello from Lambda!")}
| data/ansible-9.2.0/ansible_collections/community/aws/tests/integration/targets/s3_bucket_notification/files/mini_lambda.py | 203 | 78 | 273,756 |
LOAD_CONST 0
LOAD_CONST ('EntityType',)
IMPORT_NAME google.cloud.aiplatform.featurestore.entity_type
IMPORT_FROM EntityType
STORE_NAME EntityType
POP_TOP
LOAD_CONST 0
LOAD_CONST ('Feature',)
IMPORT_NAME google.cloud.aiplatform.featurestore.feature
IMPORT_FROM Feature
STORE_NAME Feature
POP_TOP
LOAD_CONST 0
LOAD_CONST... | from google.cloud.aiplatform.featurestore.entity_type import EntityType
from google.cloud.aiplatform.featurestore.feature import Feature
from google.cloud.aiplatform.featurestore.featurestore import Featurestore
__all__ = (
"EntityType",
"Feature",
"Featurestore",
)
| data/google-cloud-aiplatform-1.42.1/google/cloud/aiplatform/featurestore/__init__.py | 130 | 78 | 168,433 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME ibis
STORE_NAME ibis
LOAD_NAME ibis
LOAD_ATTR table
LOAD_CONST 't'
LOAD_CONST 'int64'
LOAD_CONST 'string'
LOAD_CONST ('a', 'b')
BUILD_CONST_KEY_MAP
LOAD_CONST ('name', 'schema')
CALL_FUNCTION
STORE_NAME t
LOAD_NAME t
LOAD_METHOD order_by
LOAD_NAME t
LOAD_ATTR b
LOAD_METHOD asc... | import ibis
t = ibis.table(name="t", schema={"a": "int64", "b": "string"})
proj = t.order_by(t.b.asc())
union = proj.union(proj)
result = union.select([union.a, union.b])
| data/ibis_framework-8.0.0/ibis/tests/sql/snapshots/test_compiler/test_union_order_by/decompiled.py | 137 | 78 | 161,210 |
LOAD_CONST "Dataset definition for arc.\n\nDEPRECATED!\nIf you want to use the ARC dataset builder class, use:\ntfds.builder_cls('arc')\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
LOA... | """Dataset definition for arc.
DEPRECATED!
If you want to use the ARC dataset builder class, use:
tfds.builder_cls('arc')
"""
from tensorflow_datasets.core import lazy_builder_import
ARC = lazy_builder_import.LazyBuilderImport("arc")
| data/tensorflow-datasets-4.9.4/tensorflow_datasets/image/arc.py | 122 | 78 | 255,269 |
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 sys
STORE_NAME sys
LOAD_CONST 0
LOAD_CONST ('Path',)
IMPORT_NAME pathlib
IMPORT_FROM Path
STORE_NAME Path
POP_TOP
SETUP_LOOP to 88
LOAD_NAME Path
LOAD_CONST ... | from __future__ import annotations
import sys
from pathlib import Path
for rst in Path("docs/releasenotes").glob("[1-9]*.rst"):
if "TODO" in open(rst).read():
sys.exit(f"Error: remove TODO from {rst}")
| data/pillow-10.2.0/Tests/check_release_notes.py | 177 | 78 | 142,913 |
LOAD_CONST 0
LOAD_CONST ('EditableBuilder',)
IMPORT_NAME pdm.builders.editable
IMPORT_FROM EditableBuilder
STORE_NAME EditableBuilder
POP_TOP
LOAD_CONST 0
LOAD_CONST ('SdistBuilder',)
IMPORT_NAME pdm.builders.sdist
IMPORT_FROM SdistBuilder
STORE_NAME SdistBuilder
POP_TOP
LOAD_CONST 0
LOAD_CONST ('WheelBuilder',)
IMPO... | from pdm.builders.editable import EditableBuilder
from pdm.builders.sdist import SdistBuilder
from pdm.builders.wheel import WheelBuilder
__all__ = (
EditableBuilder.__name__,
SdistBuilder.__name__,
WheelBuilder.__name__,
)
| data/pdm-2.12.3/src/pdm/builders/__init__.py | 148 | 78 | 354,372 |
LOAD_CONST 0
LOAD_CONST ('react',)
IMPORT_NAME twisted.internet.task
IMPORT_FROM react
STORE_NAME react
POP_TOP
LOAD_CONST 0
LOAD_CONST ('print_response',)
IMPORT_NAME _utils
IMPORT_FROM print_response
STORE_NAME print_response
POP_TOP
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME treq
STORE_NAME treq
LOAD_CONST <code ob... | from twisted.internet.task import react
from _utils import print_response
import treq
def main(reactor, *args):
d = treq.get("https://httpbin.org/get")
d.addCallback(print_response)
return d
react(main, [])
| data/treq-23.11.0/docs/examples/basic_get.py | 180 | 78 | 415,473 |
LOAD_CONST 0
LOAD_CONST ('List',)
IMPORT_NAME typing
IMPORT_FROM List
STORE_NAME List
POP_TOP
LOAD_CONST 0
LOAD_CONST ('BaseModel',)
IMPORT_NAME pydantic
IMPORT_FROM BaseModel
STORE_NAME BaseModel
POP_TOP
LOAD_CONST 0
LOAD_CONST ('PendingAlertSchema',)
IMPORT_NAME elementary.monitor.fetchers.alerts.schema.pending_ale... | from typing import List
from pydantic import BaseModel
from elementary.monitor.fetchers.alerts.schema.pending_alerts import PendingAlertSchema
class SortedAlertsSchema(BaseModel):
send: List[PendingAlertSchema]
skip: List[PendingAlertSchema]
| data/elementary_data-0.14.0/elementary/monitor/data_monitoring/alerts/schema.py | 260 | 78 | 19,490 |
LOAD_CONST 1
LOAD_CONST ('unittest',)
IMPORT_NAME compat
IMPORT_FROM unittest
STORE_NAME unittest
POP_TOP
LOAD_CONST 0
LOAD_CONST ('sel',)
IMPORT_NAME webtest
IMPORT_FROM sel
STORE_NAME sel
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object TestSelenium at 0x7faac02beae0, file "f.py", line 5>
LOAD_CONST 'TestSelenium'
... | from .compat import unittest
from webtest import sel
class TestSelenium(unittest.TestCase):
def test_raises(self):
self.assertRaises(ImportError, sel.SeleniumApp)
self.assertRaises(ImportError, sel.selenium)
| data/WebTest-3.0.0/tests/test_sel.py | 273 | 78 | 87,416 |
LOAD_CONST "Dataset definition for beans.\n\nDEPRECATED!\nIf you want to use the Beans dataset builder class, use:\ntfds.builder_cls('beans')\n"
STORE_NAME __doc__
LOAD_CONST 0
LOAD_CONST ('lazy_builder_import',)
IMPORT_NAME tensorflow_datasets.core
IMPORT_FROM lazy_builder_import
STORE_NAME lazy_builder_import
POP_TO... | """Dataset definition for beans.
DEPRECATED!
If you want to use the Beans dataset builder class, use:
tfds.builder_cls('beans')
"""
from tensorflow_datasets.core import lazy_builder_import
Beans = lazy_builder_import.LazyBuilderImport("beans")
| data/tensorflow-datasets-4.9.4/tensorflow_datasets/image_classification/beans.py | 122 | 78 | 255,451 |
LOAD_CONST 0
LOAD_CONST ('LogEntry', 'LogStreamCallbackHandler', 'RunLog', 'RunLogPatch', 'RunState')
IMPORT_NAME langchain_core.tracers.log_stream
IMPORT_FROM LogEntry
STORE_NAME LogEntry
IMPORT_FROM LogStreamCallbackHandler
STORE_NAME LogStreamCallbackHandler
IMPORT_FROM RunLog
STORE_NAME RunLog
IMPORT_FROM RunLogPat... | from langchain_core.tracers.log_stream import (
LogEntry,
LogStreamCallbackHandler,
RunLog,
RunLogPatch,
RunState,
)
__all__ = ["LogEntry", "RunState", "RunLogPatch", "RunLog", "LogStreamCallbackHandler"]
| data/langchain-0.1.8/langchain/schema/callbacks/tracers/log_stream.py | 141 | 78 | 369,146 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME sys
STORE_NAME sys
LOAD_CONST 0
LOAD_CONST ('Widget',)
IMPORT_NAME widget_module
IMPORT_FROM Widget
STORE_NAME Widget
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object DerivedWidget at 0x7f8ab739ee40, file "f.py", line 6>
LOAD_CONST 'DerivedWidget'
MAKE_FUNCTION
LOAD_CONST 'Der... | import sys
from widget_module import Widget
class DerivedWidget(Widget):
def __init__(self, message):
super().__init__(message)
def the_answer(self):
return 42
def argv0(self):
return sys.argv[0]
| data/correctionlib-2.5.0/pybind11/tests/test_embed/test_interpreter.py | 359 | 78 | 330,111 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME numpy
STORE_NAME np
LOAD_CONST 0
LOAD_CONST ('OpRun',)
IMPORT_NAME onnx.reference.op_run
IMPORT_FROM OpRun
STORE_NAME OpRun
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object NonZero at 0x7fab82053810, file "f.py", line 6>
LOAD_CONST 'NonZero'
MAKE_FUNCTION
LOAD_CONST 'NonZero'
... | import numpy as np
from onnx.reference.op_run import OpRun
class NonZero(OpRun):
def _run(self, x): # type: ignore
res = np.vstack(np.nonzero(x)).astype(np.int64)
return (res,)
| data/onnx-simplifier-0.4.35/third_party/onnx-optimizer/third_party/onnx/onnx/reference/ops/op_non_zero.py | 235 | 78 | 309,536 |
LOAD_CONST 0
LOAD_CONST ('*',)
IMPORT_NAME ppft.__main__
IMPORT_STAR
LOAD_CONST 0
LOAD_CONST ('_WorkerProcess', '__version__', '__doc__')
IMPORT_NAME ppft.__main__
IMPORT_FROM _WorkerProcess
STORE_NAME _WorkerProcess
IMPORT_FROM __version__
STORE_NAME __version__
IMPORT_FROM __doc__
STORE_NAME __doc__
POP_TOP
LOAD_NA... | from ppft.__main__ import *
from ppft.__main__ import _WorkerProcess, __version__, __doc__
if __name__ == "__main__":
sys.path.append(os.path.dirname(__file__))
wp = _WorkerProcess()
wp.run()
| data/ppft-1.7.6.8/ppft/worker.py | 162 | 78 | 347,969 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME warnings
STORE_NAME warnings
LOAD_CONST 0
LOAD_CONST ('apiconfig',)
IMPORT_NAME facebook_business
IMPORT_FROM apiconfig
STORE_NAME apiconfig
POP_TOP
LOAD_CONST 0
LOAD_CONST ('FacebookBadObjectError',)
IMPORT_NAME facebook_business.exceptions
IMPORT_FROM FacebookBadObjectError
... | import warnings
from facebook_business import apiconfig
from facebook_business.exceptions import FacebookBadObjectError
def warning(message):
if apiconfig.ads_api_config["STRICT_MODE"]:
raise FacebookBadObjectError(message)
else:
warnings.warn(message)
| data/facebook_business-19.0.0/facebook_business/utils/api_utils.py | 194 | 78 | 127,354 |
LOAD_CONST 0
LOAD_CONST ('Image',)
IMPORT_NAME pandas_profiling.report.presentation.core
IMPORT_FROM Image
STORE_NAME Image
POP_TOP
LOAD_CONST 0
LOAD_CONST ('templates',)
IMPORT_NAME pandas_profiling.report.presentation.flavours.html
IMPORT_FROM templates
STORE_NAME templates
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code... | from pandas_profiling.report.presentation.core import Image
from pandas_profiling.report.presentation.flavours.html import templates
class HTMLImage(Image):
def render(self) -> str:
return templates.template("diagram.html").render(**self.content)
| data/pandas-profiling-3.6.6/src/pandas_profiling/report/presentation/flavours/html/image.py | 253 | 78 | 305,475 |
LOAD_CONST 0
LOAD_CONST ('mock_random',)
IMPORT_NAME moto.moto_api._internal
IMPORT_FROM mock_random
STORE_NAME mock_random
POP_TOP
LOAD_NAME str
LOAD_NAME str
LOAD_NAME str
LOAD_CONST ('account_id', 'region_name', 'return')
BUILD_CONST_KEY_MAP
LOAD_CONST <code object make_arn_for_certificate at 0x7fab823a6c00, file "... | from moto.moto_api._internal import mock_random
def make_arn_for_certificate(account_id: str, region_name: str) -> str:
return f"arn:aws:acm:{region_name}:{account_id}:certificate/{mock_random.uuid4()}"
| data/moto-5.0.2/moto/acm/utils.py | 184 | 78 | 198,570 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME os.path
IMPORT_FROM path
STORE_NAME osp
POP_TOP
LOAD_CONST 3
LOAD_CONST ('imread',)
IMPORT_NAME _io
IMPORT_FROM imread
STORE_NAME imread
POP_TOP
LOAD_NAME osp
LOAD_METHOD dirname
LOAD_NAME osp
LOAD_METHOD abspath
LOAD_NAME __file__
CALL_METHOD
CALL_METHOD
STORE_NAME here
LOAD... | import os.path as osp
from ..._io import imread
here = osp.dirname(osp.abspath(__file__))
def lena():
image_file = osp.join(here, "lena.png")
image = imread(image_file)
return image
| data/imgviz-1.7.5/imgviz/data/lena/__init__.py | 175 | 78 | 186,954 |
LOAD_CONST 0
LOAD_CONST ('Final',)
IMPORT_NAME typing
IMPORT_FROM Final
STORE_NAME Final
POP_TOP
LOAD_CONST 0
LOAD_CONST ('Member',)
IMPORT_NAME localstack.services.stepfunctions.asl.component.intrinsic.member
IMPORT_FROM Member
STORE_NAME Member
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object MemberAccess at 0x7fab... | from typing import Final
from localstack.services.stepfunctions.asl.component.intrinsic.member import Member
class MemberAccess(Member):
def __init__(self, subject: Member, target: Member):
self.subject: Final[Member] = subject
self.target: Final[Member] = target
| data/localstack-core-3.1.0/localstack/services/stepfunctions/asl/component/intrinsic/member_access.py | 244 | 78 | 225,228 |
LOAD_CONST 0
LOAD_CONST ('Error',)
IMPORT_NAME flake8_plugin_utils
IMPORT_FROM Error
STORE_NAME Error
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object BreakpointFound at 0x7fab000fc150, file "f.py", line 4>
LOAD_CONST 'BreakpointFound'
MAKE_FUNCTION
LOAD_CONST 'BreakpointFound'
LOAD_NAME Error
CALL_FUNCTION
STORE_NAME... | from flake8_plugin_utils import Error
class BreakpointFound(Error):
code = "B601"
message = 'builtin function "breakpoint" found'
class DebugModuleImportFound(Error):
code = "B602"
message = "import of debug module found"
| data/flake8-breakpoint-1.1.0/flake8_breakpoint/errors.py | 273 | 78 | 244,100 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME typer
STORE_NAME typer
LOAD_NAME str
LOAD_CONST ('username',)
BUILD_CONST_KEY_MAP
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... | import typer
def main(username: str):
if username == "root":
print("The root user is reserved")
raise typer.Abort()
print(f"New user created: {username}")
if __name__ == "__main__":
typer.run(main)
| data/typer-0.9.0/docs_src/terminating/tutorial003.py | 179 | 78 | 224,528 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME pytest
STORE_NAME pytest
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME kernels
STORE_NAME kernels
LOAD_NAME pytest
LOAD_ATTR mark
LOAD_ATTR skip
LOAD_CONST 'Unable to generate any tests for kernel'
LOAD_CONST ('reason',)
CALL_FUNCTION
LOAD_CONST <code object test_pyawkward_UnionArr... | import pytest
import kernels
@pytest.mark.skip(reason="Unable to generate any tests for kernel")
def test_pyawkward_UnionArray8_32_nestedfill_tags_index_64_1():
raise NotImplementedError("Unable to generate any tests for kernel")
| data/awkward-cpp-29/tests-spec/test_pyawkward_UnionArray8_32_nestedfill_tags_index_64.py | 213 | 78 | 220,360 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME sys
STORE_NAME sys
LOAD_CONST 0
LOAD_CONST ('logger',)
IMPORT_NAME loguru
IMPORT_FROM logger
STORE_NAME logger
POP_TOP
LOAD_NAME logger
LOAD_METHOD remove
CALL_METHOD
POP_TOP
LOAD_NAME logger
LOAD_ATTR add
LOAD_NAME sys
LOAD_ATTR stderr
LOAD_CONST ''
LOAD_CONST False
LOAD_CON... | import sys
from loguru import logger
logger.remove()
logger.add(sys.stderr, format="", diagnose=False, backtrace=False, colorize=False)
@logger.catch()
def c(a, b):
a / b
c(5, b=0)
| data/loguru-0.7.2/tests/exceptions/source/others/catch_as_decorator_with_parentheses.py | 190 | 78 | 143,250 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME pytest
STORE_NAME pytest
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME kernels
STORE_NAME kernels
LOAD_NAME pytest
LOAD_ATTR mark
LOAD_ATTR skip
LOAD_CONST 'Unable to generate any tests for kernel'
LOAD_CONST ('reason',)
CALL_FUNCTION
LOAD_CONST <code object test_pyawkward_ListOffs... | import pytest
import kernels
@pytest.mark.skip(reason="Unable to generate any tests for kernel")
def test_pyawkward_ListOffsetArray32_rpad_and_clip_axis1_64_1():
raise NotImplementedError("Unable to generate any tests for kernel")
| data/awkward-cpp-29/tests-spec/test_pyawkward_ListOffsetArray32_rpad_and_clip_axis1_64.py | 213 | 78 | 220,348 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME CoreMotion
STORE_NAME CoreMotion
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 TestCMErrorDomai... | import CoreMotion
from PyObjCTools.TestSupport import TestCase, min_os_level
class TestCMErrorDomain(TestCase):
@min_os_level("10.15")
def test_constants(self):
self.assertIsInstance(CoreMotion.CMErrorDomain, str)
| data/pyobjc-framework-CoreMotion-10.1/PyObjCTest/test_cmerrordomain.py | 277 | 78 | 244,116 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME warnings
STORE_NAME warnings
LOAD_CONST 0
LOAD_CONST ('solve',)
IMPORT_NAME aesara.tensor.slinalg
IMPORT_FROM solve
STORE_NAME solve
POP_TOP
LOAD_CONST 'The module aesara.sandbox.solve will soon be deprecated.\nPlease use tensor.slinalg.solve instead.'
STORE_NAME message
LOAD... | import warnings
from aesara.tensor.slinalg import solve # noqa
message = (
"The module aesara.sandbox.solve will soon be deprecated.\n"
"Please use tensor.slinalg.solve instead."
)
warnings.warn(message)
| data/aesara-2.9.3/aesara/sandbox/solve.py | 101 | 78 | 323,498 |
LOAD_CONST 0
LOAD_CONST ('ClientValue',)
IMPORT_NAME office365.runtime.client_value
IMPORT_FROM ClientValue
STORE_NAME ClientValue
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object SpecialFolder at 0x7fab7002b540, file "f.py", line 4>
LOAD_CONST 'SpecialFolder'
MAKE_FUNCTION
LOAD_CONST 'SpecialFolder'
LOAD_NAME ClientV... | from office365.runtime.client_value import ClientValue
class SpecialFolder(ClientValue):
"""The SpecialFolder resource groups special folder-related data items into a single structure."""
def __init__(self, name=None):
"""
:param str name:
"""
self.name = name
| data/Office365-REST-Python-Client-2.5.5/office365/onedrive/driveitems/special_folder.py | 222 | 78 | 188,585 |
LOAD_CONST '\nScatterplot Matrix\n==================\n\n_thumb: .3, .2\n'
STORE_NAME __doc__
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME seaborn
STORE_NAME sns
LOAD_NAME sns
LOAD_ATTR set_theme
LOAD_CONST 'ticks'
LOAD_CONST ('style',)
CALL_FUNCTION
POP_TOP
LOAD_NAME sns
LOAD_METHOD load_dataset
LOAD_CONST 'penguins'
CA... | """
Scatterplot Matrix
==================
_thumb: .3, .2
"""
import seaborn as sns
sns.set_theme(style="ticks")
df = sns.load_dataset("penguins")
sns.pairplot(df, hue="species")
| data/seaborn-0.13.2/examples/scatterplot_matrix.py | 131 | 78 | 140,869 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME numpy
STORE_NAME np
LOAD_NAME np
LOAD_ATTR interp
STORE_NAME interp
LOAD_NAME isinstance
LOAD_NAME interp
LOAD_CONST 1.0
LOAD_CONST 0.0
LOAD_CONST 2.0
BUILD_LIST
LOAD_CONST 10.0
LOAD_CONST 20.0
BUILD_LIST
CALL_FUNCTION
LOAD_NAME float
CALL_FUNCTION
POP_JUMP_IF_FALSE
LOAD_CONS... | import numpy as np
interp = np.interp
if isinstance(interp(1.0, [0.0, 2.0], [10.0, 20.0]), float):
def interp(*args):
return np.array(np.interp(*args))
| data/skyfield-1.48/skyfield/_compatibility.py | 153 | 78 | 379,231 |
LOAD_CONST 0
LOAD_CONST ('Package',)
IMPORT_NAME localstack.packages
IMPORT_FROM Package
STORE_NAME Package
POP_TOP
LOAD_CONST 0
LOAD_CONST ('pro_package',)
IMPORT_NAME localstack_ext.packages.core
IMPORT_FROM pro_package
STORE_NAME pro_package
POP_TOP
LOAD_NAME pro_package
LOAD_CONST 'pysiddhi'
LOAD_CONST ('name',)
... | from localstack.packages import Package
from localstack_ext.packages.core import pro_package
@pro_package(name="pysiddhi")
def pysiddhi_package():
from localstack_ext.services.kinesisanalytics.packages import siddhi_package as A
return A
| data/localstack-ext-3.1.0/localstack_ext/services/kinesisanalytics/plugins.py | 193 | 78 | 441,266 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME os
STORE_NAME os
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME sys
STORE_NAME sys
LOAD_NAME __name__
LOAD_CONST '__main__'
COMPARE_OP ==
POP_JUMP_IF_FALSE
LOAD_NAME os
LOAD_ATTR environ
LOAD_METHOD setdefault
LOAD_CONST 'DJANGO_SETTINGS_MODULE'
LOAD_CONST 'tests.settings'
CALL_MET... | import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "tests.settings")
from django.core.management import execute_from_command_line
execute_from_command_line(sys.argv)
| data/dynamic-rest-2.1.2/manage.py | 153 | 78 | 47,344 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME numpy
STORE_NAME np
LOAD_CONST 0
LOAD_CONST ('OpRun',)
IMPORT_NAME onnx.reference.op_run
IMPORT_FROM OpRun
STORE_NAME OpRun
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object NonZero at 0x7fab821a15d0, file "f.py", line 6>
LOAD_CONST 'NonZero'
MAKE_FUNCTION
LOAD_CONST 'NonZero'
... | import numpy as np
from onnx.reference.op_run import OpRun
class NonZero(OpRun):
def _run(self, x): # type: ignore
res = np.vstack(np.nonzero(x)).astype(np.int64)
return (res,)
| data/onnx-1.15.0/onnx/reference/ops/op_non_zero.py | 235 | 78 | 111,125 |
LOAD_CONST 0
LOAD_CONST ('MeanSquaredError',)
IMPORT_NAME torcheval.metrics.regression.mean_squared_error
IMPORT_FROM MeanSquaredError
STORE_NAME MeanSquaredError
POP_TOP
LOAD_CONST 0
LOAD_CONST ('R2Score',)
IMPORT_NAME torcheval.metrics.regression.r2_score
IMPORT_FROM R2Score
STORE_NAME R2Score
POP_TOP
LOAD_CONST 'M... | from torcheval.metrics.regression.mean_squared_error import MeanSquaredError
from torcheval.metrics.regression.r2_score import R2Score
__all__ = ["MeanSquaredError", "R2Score"]
__doc_name__ = "Regression Metrics"
| data/torcheval-0.0.7/torcheval/metrics/regression/__init__.py | 138 | 78 | 247,142 |
LOAD_BUILD_CLASS
LOAD_CONST <code object RevertError at 0x7fab8234adb0, file "f.py", line 1>
LOAD_CONST 'RevertError'
MAKE_FUNCTION
LOAD_CONST 'RevertError'
LOAD_NAME Exception
CALL_FUNCTION
STORE_NAME RevertError
LOAD_BUILD_CLASS
LOAD_CONST <code object RevisionManagementError at 0x7fab8234ae40, file "f.py", line 5>
... | class RevertError(Exception):
"""Exception thrown when something goes wrong with reverting a model."""
class RevisionManagementError(Exception):
"""Exception that is thrown when something goes wrong with revision managment."""
class RegistrationError(Exception):
"""Exception thrown when registration wit... | data/django-reversion-5.0.12/reversion/errors.py | 353 | 78 | 141,306 |
LOAD_CONST 0
LOAD_CONST ('job', 'op', 'repository')
IMPORT_NAME dagster._core.definitions
IMPORT_FROM job
STORE_NAME job
IMPORT_FROM op
STORE_NAME op
IMPORT_FROM repository
STORE_NAME repository
POP_TOP
LOAD_NAME op
LOAD_CONST <code object hello_world at 0x7fa6a5dab150, file "f.py", line 4>
LOAD_CONST 'hello_world'
MA... | from dagster._core.definitions import job, op, repository
@op
def hello_world(_):
pass
@job
def hello_world_job():
hello_world()
@repository
def hello_world_repository():
return [hello_world_job]
| data/dagster-1.6.5/dagster/_utils/test/hello_world_repository.py | 262 | 78 | 55,046 |
LOAD_CONST 0
LOAD_CONST ('temp_table_keyword_args',)
IMPORT_NAME sqlalchemy.testing.provision
IMPORT_FROM temp_table_keyword_args
STORE_NAME temp_table_keyword_args
POP_TOP
LOAD_NAME temp_table_keyword_args
LOAD_METHOD for_db
LOAD_CONST 'spanner'
CALL_METHOD
LOAD_CONST <code object _spanner_temp_table_keyword_args at ... | from sqlalchemy.testing.provision import temp_table_keyword_args
@temp_table_keyword_args.for_db("spanner") # pragma: no cover
def _spanner_temp_table_keyword_args(cfg, eng):
return {"prefixes": ["TEMPORARY"]}
| data/sqlalchemy-spanner-1.6.2/google/cloud/sqlalchemy_spanner/provision.py | 168 | 78 | 123,721 |
LOAD_CONST 1
LOAD_CONST ('MonitorManagementClient',)
IMPORT_NAME _monitor_management_client
IMPORT_FROM MonitorManagementClient
STORE_NAME MonitorManagementClient
POP_TOP
LOAD_CONST 'MonitorManagementClient'
BUILD_LIST
STORE_NAME __all__
SETUP_EXCEPT to 42
LOAD_CONST 1
LOAD_CONST ('patch_sdk',)
IMPORT_NAME _patch
IM... | from ._monitor_management_client import MonitorManagementClient
__all__ = ["MonitorManagementClient"]
try:
from ._patch import patch_sdk # type: ignore
patch_sdk()
except ImportError:
pass
from ._version import VERSION
__version__ = VERSION
| data/azure-mgmt-monitor-6.0.2/azure/mgmt/monitor/__init__.py | 174 | 78 | 379,723 |
LOAD_CONST 0
LOAD_CONST ('TopicPartition',)
IMPORT_NAME aiokafka.structs
IMPORT_FROM TopicPartition
STORE_NAME TopicPartition
POP_TOP
LOAD_CONST 0
LOAD_CONST ('TP',)
IMPORT_NAME faust.types
IMPORT_FROM TP
STORE_NAME TP
POP_TOP
LOAD_CONST <code object test_TP_TopicPartition_hashability at 0x7fab42aab4b0, file "f.py", ... | from aiokafka.structs import TopicPartition
from faust.types import TP
def test_TP_TopicPartition_hashability():
d = {}
d[TP("foo", 33)] = 33
assert d[TopicPartition("foo", 33)] == 33
| data/faust-streaming-0.10.22/tests/functional/test_aiokafka.py | 213 | 78 | 77,246 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME warnings
STORE_NAME warnings
LOAD_NAME warnings
LOAD_METHOD warn
LOAD_CONST 'memory_utils has been reorganized to utils.memory. Import `find_executable_batchsize` from the main `__init__`: `from accelerate import find_executable_batch_size` to avoid this warning.'
LOAD_NAME F... | import warnings
warnings.warn(
"memory_utils has been reorganized to utils.memory. Import `find_executable_batchsize` from the main `__init__`: "
"`from accelerate import find_executable_batch_size` to avoid this warning.",
FutureWarning,
)
| data/accelerate-0.27.2/src/accelerate/memory_utils.py | 90 | 78 | 442,510 |
LOAD_CONST '\nThis module exists only to simplify retrieving the version number of chardet\nfrom within setuptools and from chardet subpackages.\n\n:author: Dan Blanchard (dan.blanchard@gmail.com)\n'
STORE_NAME __doc__
LOAD_CONST '5.2.0'
STORE_NAME __version__
LOAD_NAME __version__
LOAD_METHOD split
LOAD_CONST '.'
CA... | """
This module exists only to simplify retrieving the version number of chardet
from within setuptools and from chardet subpackages.
:author: Dan Blanchard (dan.blanchard@gmail.com)
"""
__version__ = "5.2.0"
VERSION = __version__.split(".")
| data/chardet-5.2.0/chardet/version.py | 102 | 78 | 382,993 |
LOAD_CONST '\nMobile Detect - Python detection mobile phone and tablet devices\n\nThanks to:\n https://github.com/serbanghita/Mobile-Detect/blob/master/Mobile_Detect.php\n'
STORE_NAME __doc__
LOAD_CONST 1
LOAD_CONST ('version',)
IMPORT_NAME version
IMPORT_FROM version
STORE_NAME version
POP_TOP
LOAD_CONST 1
LOAD_CONS... | """
Mobile Detect - Python detection mobile phone and tablet devices
Thanks to:
https://github.com/serbanghita/Mobile-Detect/blob/master/Mobile_Detect.php
"""
from .version import version
from .detect import MobileDetect # NOQA
__version__ = version
| data/pymobiledetect-1.3.2/mobiledetect/__init__.py | 121 | 78 | 219,747 |
LOAD_CONST '\nTransliteration.\n'
STORE_NAME __doc__
LOAD_CONST 'romanize'
LOAD_CONST 'transliterate'
LOAD_CONST 'pronunciate'
LOAD_CONST 'puan'
BUILD_LIST
STORE_NAME __all__
LOAD_CONST 0
LOAD_CONST ('romanize', 'transliterate', 'pronunciate')
IMPORT_NAME pythainlp.transliterate.core
IMPORT_FROM romanize
STORE_NAME r... | """
Transliteration.
"""
__all__ = ["romanize", "transliterate", "pronunciate", "puan"]
from pythainlp.transliterate.core import romanize, transliterate, pronunciate
from pythainlp.transliterate.spoonerism import puan
| data/pythainlp-5.0.1/pythainlp/transliterate/__init__.py | 158 | 78 | 43,223 |
LOAD_CONST 0
LOAD_CONST ('AssignChecker',)
IMPORT_NAME pylint_plugins.assign_checker
IMPORT_FROM AssignChecker
STORE_NAME AssignChecker
POP_TOP
LOAD_CONST 0
LOAD_CONST ('ImportChecker',)
IMPORT_NAME pylint_plugins.import_checker
IMPORT_FROM ImportChecker
STORE_NAME ImportChecker
POP_TOP
LOAD_CONST <code object regist... | from pylint_plugins.assign_checker import AssignChecker
from pylint_plugins.import_checker import ImportChecker
def register(linter):
linter.register_checker(ImportChecker(linter))
linter.register_checker(AssignChecker(linter))
| data/mlflow-2.10.2/pylint_plugins/__init__.py | 182 | 78 | 44,119 |
LOAD_BUILD_CLASS
LOAD_CONST <code object PackageNotFoundException at 0x7fab640fa540, file "f.py", line 1>
LOAD_CONST 'PackageNotFoundException'
MAKE_FUNCTION
LOAD_CONST 'PackageNotFoundException'
LOAD_NAME Exception
CALL_FUNCTION
STORE_NAME PackageNotFoundException
LOAD_BUILD_CLASS
LOAD_CONST <code object KeyNotFoundE... | class PackageNotFoundException(Exception):
pass
class KeyNotFoundException(Exception):
pass
class UpdateDBException(Exception):
pass
class TableNotFoundException(Exception):
pass
class DBModuleNotFoundException(Exception):
pass
class ModuleNotFoundException(Exception):
pass
| data/refinitiv-data-1.6.0/refinitiv/data/content/esg/bulk/_errors.py | 568 | 78 | 195,889 |
LOAD_CONST 0
LOAD_CONST ('AssignChecker',)
IMPORT_NAME pylint_plugins.assign_checker
IMPORT_FROM AssignChecker
STORE_NAME AssignChecker
POP_TOP
LOAD_CONST 0
LOAD_CONST ('ImportChecker',)
IMPORT_NAME pylint_plugins.import_checker
IMPORT_FROM ImportChecker
STORE_NAME ImportChecker
POP_TOP
LOAD_CONST <code object regist... | from pylint_plugins.assign_checker import AssignChecker
from pylint_plugins.import_checker import ImportChecker
def register(linter):
linter.register_checker(ImportChecker(linter))
linter.register_checker(AssignChecker(linter))
| data/mlflow-skinny-2.10.2/pylint_plugins/__init__.py | 182 | 78 | 291,941 |
LOAD_NAME frozenset
LOAD_CONST 429
LOAD_CONST 500
LOAD_CONST 502
LOAD_CONST 503
BUILD_LIST
CALL_FUNCTION
STORE_NAME MLFLOW_DEPLOYMENT_CLIENT_REQUEST_RETRY_CODES
LOAD_CONST None
RETURN_VALUE | MLFLOW_DEPLOYMENT_CLIENT_REQUEST_RETRY_CODES = frozenset(
[
429, # Too many requests
500, # Server Error
502, # Bad Gateway
503, # Service Unavailable
]
)
| data/mlflow-skinny-2.10.2/mlflow/deployments/constants.py | 64 | 78 | 291,915 |
LOAD_CONST 0
LOAD_CONST ('config',)
IMPORT_NAME keras_nlp.src.backend
IMPORT_FROM config
STORE_NAME config
POP_TOP
LOAD_NAME config
LOAD_METHOD keras_3
CALL_METHOD
POP_JUMP_IF_FALSE
LOAD_CONST 0
LOAD_CONST ('*',)
IMPORT_NAME keras.random
IMPORT_STAR
JUMP_FORWARD to 38
LOAD_CONST 0
LOAD_CONST ('*',)
IMPORT_NAME keras... | from keras_nlp.src.backend import config
if config.keras_3():
from keras.random import * # noqa: F403, F401
else:
from keras_core.random import * # noqa: F403, F401
| data/keras-nlp-0.8.0/keras_nlp/src/backend/random.py | 95 | 78 | 111,812 |
LOAD_CONST 0
LOAD_CONST ('Attachment',)
IMPORT_NAME office365.outlook.mail.attachments.attachment
IMPORT_FROM Attachment
STORE_NAME Attachment
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object ReferenceAttachment at 0x7fab640faae0, file "f.py", line 4>
LOAD_CONST 'ReferenceAttachment'
MAKE_FUNCTION
LOAD_CONST 'Referenc... | from office365.outlook.mail.attachments.attachment import Attachment
class ReferenceAttachment(Attachment):
"""A link to a file (such as a text file or Word document) on a OneDrive for Business cloud drive or other
supported storage locations, attached to an event, message, or post."""
| data/Office365-REST-Python-Client-2.5.5/office365/outlook/mail/attachments/reference.py | 186 | 78 | 188,995 |
LOAD_CONST 1
LOAD_CONST ('Ceil',)
IMPORT_NAME ceil
IMPORT_FROM Ceil
STORE_NAME Ceil
POP_TOP
LOAD_CONST 1
LOAD_CONST ('PhilipsBulb', 'PhilipsWhiteBulb')
IMPORT_NAME philips_bulb
IMPORT_FROM PhilipsBulb
STORE_NAME PhilipsBulb
IMPORT_FROM PhilipsWhiteBulb
STORE_NAME PhilipsWhiteBulb
POP_TOP
LOAD_CONST 1
LOAD_CONST ('Phi... | from .ceil import Ceil
from .philips_bulb import PhilipsBulb, PhilipsWhiteBulb
from .philips_eyecare import PhilipsEyecare
from .philips_moonlight import PhilipsMoonlight
from .philips_rwread import PhilipsRwread
| data/python-miio-0.5.12/miio/integrations/light/philips/__init__.py | 211 | 78 | 24,480 |
LOAD_CONST '\n僧伽罗语\n'
STORE_NAME __doc__
BUILD_LIST
STORE_NAME ACCURATE_REGEX_LIST
LOAD_CONST ('අප්\u200dරේල්', '4月')
BUILD_LIST
STORE_NAME SUB_TRANSLATE
BUILD_LIST
STORE_NAME FUZZY_REGEX_LIST
LOAD_CONST None
RETURN_VALUE | """
僧伽罗语
"""
ACCURATE_REGEX_LIST = []
SUB_TRANSLATE = [(r"අප්රේල්", "4月")]
FUZZY_REGEX_LIST = []
| data/gggdtparser-0.1.5/gggdtparser/langs/si.py | 98 | 78 | 153,233 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME sys
STORE_NAME sys
LOAD_CONST 0
LOAD_CONST ('Widget',)
IMPORT_NAME widget_module
IMPORT_FROM Widget
STORE_NAME Widget
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object DerivedWidget at 0x7fab41c96c00, file "f.py", line 6>
LOAD_CONST 'DerivedWidget'
MAKE_FUNCTION
LOAD_CONST 'Der... | import sys
from widget_module import Widget
class DerivedWidget(Widget):
def __init__(self, message):
super().__init__(message)
def the_answer(self):
return 42
def argv0(self):
return sys.argv[0]
| data/onnx-1.15.0/third_party/pybind11/tests/test_embed/test_interpreter.py | 361 | 78 | 111,590 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME sys
STORE_NAME sys
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME test_cmake_build
STORE_NAME test_cmake_build
LOAD_NAME isinstance
LOAD_NAME __file__
LOAD_NAME str
CALL_FUNCTION
POP_JUMP_IF_TRUE
LOAD_GLOBAL AssertionError
RAISE_VARARGS
LOAD_NAME test_cmake_build
LOAD_METHOD add
LO... | import sys
import test_cmake_build
assert isinstance(__file__, str) # Test this is properly set
assert test_cmake_build.add(1, 2) == 3
print(f"{sys.argv[1]} imports, runs, and adds: 1 + 2 = 3")
| data/onnx-1.15.0/third_party/pybind11/tests/test_cmake_build/test.py | 147 | 78 | 111,589 |
LOAD_CONST 'pytest configuration for doctest_test.py.'
STORE_NAME __doc__
LOAD_CONST <code object pytest_addoption at 0x7fab422316f0, file "f.py", line 4>
LOAD_CONST 'pytest_addoption'
MAKE_FUNCTION
STORE_NAME pytest_addoption
LOAD_CONST None
RETURN_VALUE
LOAD_FAST parser
LOAD_ATTR addoption
LOAD_CONST '--doctests'
... | """pytest configuration for doctest_test.py."""
def pytest_addoption(parser):
parser.addoption(
"--doctests",
action="append",
nargs="*",
default=[],
help="Doctest sources to execute.",
)
| data/tensorstore-0.1.53/docs/conftest.py | 147 | 78 | 346,300 |
LOAD_CONST 0
LOAD_CONST ('*',)
IMPORT_NAME pyspark.cloudpickle.cloudpickle
IMPORT_STAR
LOAD_CONST 0
LOAD_CONST ('CloudPickler', 'dumps', 'dump')
IMPORT_NAME pyspark.cloudpickle.cloudpickle_fast
IMPORT_FROM CloudPickler
STORE_NAME CloudPickler
IMPORT_FROM dumps
STORE_NAME dumps
IMPORT_FROM dump
STORE_NAME dump
POP_TOP
... | from pyspark.cloudpickle.cloudpickle import * # noqa
from pyspark.cloudpickle.cloudpickle_fast import CloudPickler, dumps, dump # noqa
Pickler = CloudPickler
__version__ = "2.2.1"
| data/pyspark-3.5.0/pyspark/cloudpickle/__init__.py | 123 | 78 | 382,800 |
LOAD_CONST 0
LOAD_CONST ('Enum',)
IMPORT_NAME enum
IMPORT_FROM Enum
STORE_NAME Enum
POP_TOP
LOAD_CONST 0
LOAD_CONST ('CaseInsensitiveEnumMeta',)
IMPORT_NAME azure.core
IMPORT_FROM CaseInsensitiveEnumMeta
STORE_NAME CaseInsensitiveEnumMeta
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object NamespaceClassification at 0x7... | from enum import Enum
from azure.core import CaseInsensitiveEnumMeta
class NamespaceClassification(str, Enum, metaclass=CaseInsensitiveEnumMeta):
"""Kind of namespace."""
PLATFORM = "Platform"
CUSTOM = "Custom"
QOS = "Qos"
| data/azure-mgmt-monitor-6.0.2/azure/mgmt/monitor/v2017_12_01_preview/models/_monitor_management_client_enums.py | 224 | 78 | 380,004 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME typer
STORE_NAME typer
LOAD_NAME typer
LOAD_METHOD Typer
CALL_METHOD
STORE_NAME app
LOAD_NAME app
LOAD_METHOD command
CALL_METHOD
LOAD_NAME typer
LOAD_ATTR Option
LOAD_CONST 'World'
LOAD_CONST 'The name to say hi to.'
LOAD_CONST ('help',)
CALL_FUNCTION
BUILD_TUPLE
LOAD_NAME s... | import typer
app = typer.Typer()
@app.command()
def main(name: str = typer.Option("World", help="The name to say hi to.")):
print(f"Hello {name}")
if __name__ == "__main__":
app()
| data/typer-0.9.0/docs_src/options_autocompletion/tutorial001.py | 180 | 78 | 224,383 |
LOAD_CONST ('v4', 'v4-query', 'v4a', 's3v4', 's3v4-query', 's3v4a', 's3v4a-query')
STORE_NAME CRT_SUPPORTED_AUTH_TYPES
LOAD_CONST None
RETURN_VALUE | CRT_SUPPORTED_AUTH_TYPES = (
"v4",
"v4-query",
"v4a",
"s3v4",
"s3v4-query",
"s3v4a",
"s3v4a-query",
)
| data/botocore/botocore/crt/__init__.py | 67 | 78 | 55,460 |
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 SpriteKit
STORE_NAME SpriteKit
LOAD_BUILD_CLASS
LOAD_CONST <code object TestSKRegion at 0x... | from PyObjCTools.TestSupport import TestCase, min_os_level
import SpriteKit
class TestSKRegion(TestCase):
@min_os_level("10.10")
def testMethods(self):
self.assertResultIsBOOL(SpriteKit.SKRegion.containsPoint_)
| data/pyobjc-framework-SpriteKit-10.1/PyObjCTest/test_skregion.py | 265 | 78 | 81,414 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.