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 1
LOAD_CONST ('*',)
IMPORT_NAME __cmd_group
IMPORT_STAR
LOAD_CONST 1
LOAD_CONST ('*',)
IMPORT_NAME _delete
IMPORT_STAR
LOAD_CONST 1
LOAD_CONST ('*',)
IMPORT_NAME _list
IMPORT_STAR
LOAD_CONST 1
LOAD_CONST ('*',)
IMPORT_NAME _list_connection
IMPORT_STAR
LOAD_CONST 1
LOAD_CONST ('*',)
IMPORT_NAME _show
IMPO... | from .__cmd_group import *
from ._delete import *
from ._list import *
from ._list_connection import *
from ._show import *
from ._show_device_config_script import *
from ._update import *
from ._wait import *
| data/azure-cli-2.57.0/azure/cli/command_modules/network/aaz/profile_2020_09_01_hybrid/network/vpn_connection/__init__.py | 150 | 67 | 378,589 |
LOAD_CONST 0
LOAD_CONST ('rbac_subnetpool',)
IMPORT_NAME neutron_lib.api.definitions
IMPORT_FROM rbac_subnetpool
STORE_NAME rbac_subnetpool
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 Rba... | from neutron_lib.api.definitions import rbac_subnetpool
from neutron_lib.tests.unit.api.definitions import base
class RbacSubnetPoolDefinitionTestCase(base.DefinitionBaseTestCase):
extension_module = rbac_subnetpool
| data/neutron-lib-3.10.0/neutron_lib/tests/unit/api/definitions/test_rbac_subnetpool.py | 220 | 67 | 384,943 |
LOAD_CONST 0
LOAD_CONST ('TestCase',)
IMPORT_NAME PyObjCTools.TestSupport
IMPORT_FROM TestCase
STORE_NAME TestCase
POP_TOP
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME AutomaticAssessmentConfiguration
STORE_NAME AutomaticAssessmentConfiguration
LOAD_BUILD_CLASS
LOAD_CONST <code object TestCallableMetadata at 0x7faa516339... | from PyObjCTools.TestSupport import TestCase
import AutomaticAssessmentConfiguration
class TestCallableMetadata(TestCase):
def test_callable_metadata_is_sane(self):
self.assertCallableMetadataIsSane(AutomaticAssessmentConfiguration)
| data/pyobjc-framework-AutomaticAssessmentConfiguration-10.1/PyObjCTest/test_automaticassessmentconfiguration.py | 261 | 67 | 237,209 |
LOAD_CONST 'ModelVersionStage'
BUILD_LIST
STORE_NAME __all__
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME enum
STORE_NAME enum
LOAD_BUILD_CLASS
LOAD_CONST <code object ModelVersionStage at 0x7f8aefeafc90, file "f.py", line 6>
LOAD_CONST 'ModelVersionStage'
MAKE_FUNCTION
LOAD_CONST 'ModelVersionStage'
LOAD_NAME enum
LOAD_... | __all__ = ["ModelVersionStage"]
import enum
class ModelVersionStage(enum.Enum):
NONE = "none"
STAGING = "staging"
PRODUCTION = "production"
ARCHIVED = "archived"
| data/neptune-1.9.1/src/neptune/types/model_version_stage.py | 179 | 67 | 117,449 |
LOAD_CONST 0
LOAD_CONST ('ExtensionBuilderFactory',)
IMPORT_NAME pyomo.common.extensions
IMPORT_FROM ExtensionBuilderFactory
STORE_NAME ExtensionBuilderFactory
POP_TOP
LOAD_CONST 0
LOAD_CONST ('AMPLFunctionDemoBuilder',)
IMPORT_NAME pyomo.contrib.ampl_function_demo.build
IMPORT_FROM AMPLFunctionDemoBuilder
STORE_NAME ... | from pyomo.common.extensions import ExtensionBuilderFactory
from pyomo.contrib.ampl_function_demo.build import AMPLFunctionDemoBuilder
def load():
ExtensionBuilderFactory.register("ampl_function_demo")(AMPLFunctionDemoBuilder)
| data/Pyomo-6.7.0/pyomo/contrib/ampl_function_demo/plugins.py | 171 | 67 | 23,370 |
LOAD_CONST 1
LOAD_CONST ('*',)
IMPORT_NAME __cmd_group
IMPORT_STAR
LOAD_CONST 1
LOAD_CONST ('*',)
IMPORT_NAME _delete
IMPORT_STAR
LOAD_CONST 1
LOAD_CONST ('*',)
IMPORT_NAME _list
IMPORT_STAR
LOAD_CONST 1
LOAD_CONST ('*',)
IMPORT_NAME _list_connection
IMPORT_STAR
LOAD_CONST 1
LOAD_CONST ('*',)
IMPORT_NAME _show
IMPO... | from .__cmd_group import *
from ._delete import *
from ._list import *
from ._list_connection import *
from ._show import *
from ._show_device_config_script import *
from ._update import *
from ._wait import *
| data/azure-cli-2.57.0/azure/cli/command_modules/network/aaz/profile_2018_03_01_hybrid/network/vpn_connection/__init__.py | 150 | 67 | 378,826 |
LOAD_CONST 'The programming interfaces which 3rd party application can depend on.'
STORE_NAME __doc__
LOAD_CONST 1
LOAD_CONST ('get_config_dir',)
IMPORT_NAME _environment
IMPORT_FROM get_config_dir
STORE_NAME get_config_dir
POP_TOP
LOAD_CONST 1
LOAD_CONST ('load_subscriptions',)
IMPORT_NAME _profile
IMPORT_FROM load_... | """The programming interfaces which 3rd party application can depend on."""
from ._environment import get_config_dir
from ._profile import load_subscriptions
from ._completers import get_subscription_id_list
from .decorators import suppress_all_exceptions
| data/azure-cli-core-2.57.0/azure/cli/core/api.py | 177 | 67 | 293,822 |
LOAD_CONST 'apply_patches'
BUILD_LIST
STORE_NAME __all__
LOAD_CONST 0
LOAD_CONST ('patch',)
IMPORT_NAME neptune.common.patches.bravado
IMPORT_FROM patch
STORE_NAME bravado_patch
POP_TOP
LOAD_NAME bravado_patch
BUILD_LIST
STORE_NAME patches
LOAD_CONST <code object apply_patches at 0x7f8aefeaf540, file "f.py", line 8>... | __all__ = ["apply_patches"]
from neptune.common.patches.bravado import patch as bravado_patch
patches = [bravado_patch]
def apply_patches():
for patch in patches:
patch()
| data/neptune-1.9.1/src/neptune/common/patches/__init__.py | 158 | 67 | 117,434 |
LOAD_CONST 0
LOAD_CONST ('_',)
IMPORT_NAME neutron_lib._i18n
IMPORT_FROM _
STORE_NAME _
POP_TOP
LOAD_CONST 0
LOAD_CONST ('exceptions',)
IMPORT_NAME neutron_lib
IMPORT_FROM exceptions
STORE_NAME exceptions
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object DVRMacAddressNotFound at 0x7fab542adc00, file "f.py", line 5>
LO... | from neutron_lib._i18n import _
from neutron_lib import exceptions
class DVRMacAddressNotFound(exceptions.NotFound):
message = _(
"Distributed Virtual Router Mac Address for " "host %(host)s does not exist."
)
| data/neutron-lib-3.10.0/neutron_lib/exceptions/dvr.py | 194 | 67 | 385,068 |
LOAD_CONST 0
LOAD_CONST ('AudioBytes',)
IMPORT_NAME docarray.typing.bytes.audio_bytes
IMPORT_FROM AudioBytes
STORE_NAME AudioBytes
POP_TOP
LOAD_CONST 0
LOAD_CONST ('ImageBytes',)
IMPORT_NAME docarray.typing.bytes.image_bytes
IMPORT_FROM ImageBytes
STORE_NAME ImageBytes
POP_TOP
LOAD_CONST 0
LOAD_CONST ('VideoBytes',)
... | from docarray.typing.bytes.audio_bytes import AudioBytes
from docarray.typing.bytes.image_bytes import ImageBytes
from docarray.typing.bytes.video_bytes import VideoBytes
__all__ = ["ImageBytes", "VideoBytes", "AudioBytes"]
| data/docarray-0.40.0/docarray/typing/bytes/__init__.py | 135 | 67 | 250,094 |
LOAD_CONST ('access_token', 'api_key', 'apikey', 'auth_token', 'credentials', 'passwd', 'password', 'secret', 'stripetoken')
STORE_NAME DEFAULT_BLACKLIST
LOAD_CONST None
RETURN_VALUE | DEFAULT_BLACKLIST = (
"access_token",
"api_key",
"apikey",
"auth_token",
"credentials",
"passwd",
"password",
"secret",
"stripetoken",
)
| data/datadog_checks_base-36.1.0/datadog_checks/base/utils/metadata/constants.py | 52 | 67 | 442,833 |
LOAD_CONST 'The :mod:`imblearn.keras` provides utilities to deal with imbalanced dataset\nin keras.'
STORE_NAME __doc__
LOAD_CONST 1
LOAD_CONST ('BalancedBatchGenerator', 'balanced_batch_generator')
IMPORT_NAME _generator
IMPORT_FROM BalancedBatchGenerator
STORE_NAME BalancedBatchGenerator
IMPORT_FROM balanced_batch_g... | """The :mod:`imblearn.keras` provides utilities to deal with imbalanced dataset
in keras."""
from ._generator import BalancedBatchGenerator, balanced_batch_generator
__all__ = ["BalancedBatchGenerator", "balanced_batch_generator"]
| data/imbalanced-learn-0.12.0/imblearn/keras/__init__.py | 120 | 67 | 395,939 |
LOAD_CONST 1
LOAD_CONST ('BaseFileHandler',)
IMPORT_NAME base
IMPORT_FROM BaseFileHandler
STORE_NAME BaseFileHandler
POP_TOP
LOAD_CONST 1
LOAD_CONST ('JsonHandler',)
IMPORT_NAME json_handler
IMPORT_FROM JsonHandler
STORE_NAME JsonHandler
POP_TOP
LOAD_CONST 1
LOAD_CONST ('PickleHandler',)
IMPORT_NAME pickle_handler
IM... | from .base import BaseFileHandler
from .json_handler import JsonHandler
from .pickle_handler import PickleHandler
from .yaml_handler import YamlHandler
__all__ = ["BaseFileHandler", "JsonHandler", "PickleHandler", "YamlHandler"]
| data/mmcv-full-1.7.2/mmcv/fileio/handlers/__init__.py | 158 | 67 | 257,004 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME numpy
STORE_NAME np
LOAD_CONST 0
LOAD_CONST ('OpRunUnaryNum',)
IMPORT_NAME onnx.reference.ops._op
IMPORT_FROM OpRunUnaryNum
STORE_NAME OpRunUnaryNum
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object Asinh at 0x7f8e2ff25d20, file "f.py", line 6>
LOAD_CONST 'Asinh'
MAKE_FUNCTION
... | import numpy as np
from onnx.reference.ops._op import OpRunUnaryNum
class Asinh(OpRunUnaryNum):
def _run(self, x): # type: ignore
return (np.arcsinh(x),)
| data/onnxsim-0.4.35/third_party/onnx-optimizer/third_party/onnx/onnx/reference/ops/op_asinh.py | 223 | 67 | 114,304 |
LOAD_CONST 'Internal utilities used by the gRPC Aio module.'
STORE_NAME __doc__
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME time
STORE_NAME time
LOAD_CONST 0
LOAD_CONST ('Optional',)
IMPORT_NAME typing
IMPORT_FROM Optional
STORE_NAME Optional
POP_TOP
LOAD_NAME Optional
LOAD_NAME float
BINARY_SUBSCR
LOAD_NAME Optional
L... | """Internal utilities used by the gRPC Aio module."""
import time
from typing import Optional
def _timeout_to_deadline(timeout: Optional[float]) -> Optional[float]:
if timeout is None:
return None
return time.time() + timeout
| data/grpcio-1.60.1/src/python/grpcio/grpc/aio/_utils.py | 181 | 67 | 272,727 |
LOAD_CONST ' AppConfig for API app. '
STORE_NAME __doc__
LOAD_CONST 0
LOAD_CONST ('AppConfig',)
IMPORT_NAME django.apps
IMPORT_FROM AppConfig
STORE_NAME AppConfig
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object ApiConfig at 0x7fab8214dc90, file "f.py", line 6>
LOAD_CONST 'ApiConfig'
MAKE_FUNCTION
LOAD_CONST 'ApiConf... | """ AppConfig for API app. """
from django.apps import AppConfig
class ApiConfig(AppConfig):
name = "blockstore.apps.api"
label = "blockstore_apps_api"
verbose_name = "Blockstore API"
| data/openedx-blockstore-1.4.0/blockstore/apps/api/apps.py | 179 | 67 | 293,268 |
LOAD_CONST 0
LOAD_CONST ('TestCase',)
IMPORT_NAME PyObjCTools.TestSupport
IMPORT_FROM TestCase
STORE_NAME TestCase
POP_TOP
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME AudioVideoBridging
STORE_NAME AudioVideoBridging
LOAD_BUILD_CLASS
LOAD_CONST <code object TestCallableMetadata at 0x7faa5f523c90, file "f.py", line 6>
LOA... | from PyObjCTools.TestSupport import TestCase
import AudioVideoBridging
class TestCallableMetadata(TestCase):
def test_callable_metadata_is_sane(self):
self.assertCallableMetadataIsSane(AudioVideoBridging)
| data/pyobjc-framework-AudioVideoBridging-10.1/PyObjCTest/test_audiovideobridging.py | 261 | 67 | 237,180 |
LOAD_CONST 0
LOAD_CONST ('Factory', 'AsynchronousActionManager', 'SolverManagerFactory', 'AsynchronousSolverManager')
IMPORT_NAME pyomo.opt.parallel.async_solver
IMPORT_FROM Factory
STORE_NAME Factory
IMPORT_FROM AsynchronousActionManager
STORE_NAME AsynchronousActionManager
IMPORT_FROM SolverManagerFactory
STORE_NAME ... | from pyomo.opt.parallel.async_solver import (
Factory,
AsynchronousActionManager,
SolverManagerFactory,
AsynchronousSolverManager,
)
import pyomo.opt.parallel.manager
import pyomo.opt.parallel.local
| data/Pyomo-6.7.0/pyomo/opt/parallel/__init__.py | 141 | 67 | 23,270 |
LOAD_CONST 0
LOAD_CONST ('FilterAction',)
IMPORT_NAME ormar.queryset.actions.filter_action
IMPORT_FROM FilterAction
STORE_NAME FilterAction
POP_TOP
LOAD_CONST 0
LOAD_CONST ('OrderAction',)
IMPORT_NAME ormar.queryset.actions.order_action
IMPORT_FROM OrderAction
STORE_NAME OrderAction
POP_TOP
LOAD_CONST 0
LOAD_CONST ('... | from ormar.queryset.actions.filter_action import FilterAction
from ormar.queryset.actions.order_action import OrderAction
from ormar.queryset.actions.select_action import SelectAction
__all__ = ["FilterAction", "OrderAction", "SelectAction"]
| data/ormar-0.12.2/ormar/queryset/actions/__init__.py | 135 | 67 | 281,549 |
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 ('FailToCreateError', 'create_from_dict', 'create_from_yaml', 'create_from_directory')
IMPORT_NAME create_from_yaml
IMPORT_FROM FailToCreateError
STORE_NAME FailToC... | from __future__ import absolute_import
from .create_from_yaml import (
FailToCreateError,
create_from_dict,
create_from_yaml,
create_from_directory,
)
from .quantity import parse_quantity
| data/kubernetes-29.0.0/kubernetes/utils/__init__.py | 169 | 67 | 25,184 |
LOAD_CONST 0
LOAD_CONST ('view_config',)
IMPORT_NAME pyramid.view
IMPORT_FROM view_config
STORE_NAME view_config
POP_TOP
LOAD_CONST 2
LOAD_CONST ('MyModel',)
IMPORT_NAME models
IMPORT_FROM MyModel
STORE_NAME MyModel
POP_TOP
LOAD_NAME view_config
LOAD_NAME MyModel
LOAD_CONST 'tutorial:templates/mytemplate.pt'
LOAD_CON... | from pyramid.view import view_config
from ..models import MyModel
@view_config(context=MyModel, renderer="tutorial:templates/mytemplate.pt")
def my_view(request):
return {"project": "myproj"}
| data/pyramid-2.0.2/docs/tutorials/wiki/src/models/tutorial/views/default.py | 163 | 67 | 19,940 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME subprocess
STORE_NAME subprocess
LOAD_CONST 0
LOAD_CONST ('to_text',)
IMPORT_NAME eth_utils
IMPORT_FROM to_text
STORE_NAME to_text
POP_TOP
LOAD_NAME str
LOAD_CONST ('return',)
BUILD_CONST_KEY_MAP
LOAD_CONST <code object get_version_from_git at 0x7fab8203a6f0, file "f.py", line... | import subprocess
from eth_utils import (
to_text,
)
def get_version_from_git() -> str:
version = subprocess.check_output(["git", "describe"]).strip()
return to_text(version)
| data/py-evm-0.9.0b1/eth/tools/_utils/git.py | 168 | 67 | 107,098 |
LOAD_CONST 'TotalBandwidth'
LOAD_CONST 'TotalHits'
LOAD_CONST 'HitRatio'
BUILD_LIST
LOAD_CONST 1.0
LOAD_CONST 3
LOAD_CONST 2.0
BUILD_LIST
LOAD_CONST 'TOTALS'
LOAD_CONST ('names', 'totals', 'type')
BUILD_CONST_KEY_MAP
BUILD_LIST
STORE_NAME getMappingUsageMetrics
LOAD_CONST None
RETURN_VALUE | getMappingUsageMetrics = [
{
"names": ["TotalBandwidth", "TotalHits", "HitRatio"],
"totals": [1.0, 3, 2.0],
"type": "TOTALS",
}
]
| data/SoftLayer-6.1.11/SoftLayer/fixtures/SoftLayer_Network_CdnMarketplace_Metrics.py | 79 | 67 | 291,525 |
LOAD_CONST 0
LOAD_CONST ('annotations',)
IMPORT_NAME __future__
IMPORT_FROM annotations
STORE_NAME annotations
POP_TOP
LOAD_CONST 0
LOAD_CONST ('B2SimpleError',)
IMPORT_NAME b2sdk.exception
IMPORT_FROM B2SimpleError
STORE_NAME B2SimpleError
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object UnboundStreamBufferTimeout a... | from __future__ import annotations
from b2sdk.exception import B2SimpleError
class UnboundStreamBufferTimeout(B2SimpleError):
"""
Raised when there is no space for a new buffer for a certain amount of time.
"""
pass
| data/b2sdk-1.31.0/b2sdk/transfer/emerge/exception.py | 202 | 67 | 28,156 |
LOAD_CONST 0
LOAD_CONST ('TestCase',)
IMPORT_NAME django.test
IMPORT_FROM TestCase
STORE_NAME TestCase
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object TestNothing at 0x7fab802488a0, file "f.py", line 4>
LOAD_CONST 'TestNothing'
MAKE_FUNCTION
LOAD_CONST 'TestNothing'
LOAD_NAME TestCase
CALL_FUNCTION
STORE_NAME TestNot... | from django.test import TestCase
class TestNothing(TestCase):
"""Test Nothing (placeholder)."""
def test_nothing_at_all(self):
"""Test that the tests are running and that's it."""
self.assertTrue(True)
| data/pulpcore-3.46.0/pulp_certguard/tests/unit/test_models.py | 219 | 67 | 218,334 |
LOAD_CONST 'pilkit'
STORE_NAME __title__
LOAD_CONST 'Matthew Tretter'
STORE_NAME __author__
LOAD_CONST '3.0'
STORE_NAME __version__
LOAD_CONST 'BSD'
STORE_NAME __license__
LOAD_CONST '__title__'
LOAD_CONST '__author__'
LOAD_CONST '__version__'
LOAD_CONST '__license__'
BUILD_LIST
STORE_NAME __all__
LOAD_CONST None
R... | __title__ = "pilkit"
__author__ = "Matthew Tretter"
__version__ = "3.0"
__license__ = "BSD"
__all__ = ["__title__", "__author__", "__version__", "__license__"]
| data/pilkit-3.0/pilkit/pkgmeta.py | 93 | 67 | 184,091 |
LOAD_CONST '!\n\n@brief pyclustering module for graph coloring algorithms.\n\n@authors Andrei Novikov (pyclustering@yandex.ru)\n@date 2014-2020\n@copyright BSD-3-Clause\n\n'
STORE_NAME __doc__
LOAD_CONST None
RETURN_VALUE | """!
@brief pyclustering module for graph coloring algorithms.
@authors Andrei Novikov (pyclustering@yandex.ru)
@date 2014-2020
@copyright BSD-3-Clause
"""
| data/pyclustering-0.10.1.2/pyclustering/gcolor/__init__.py | 82 | 67 | 23,144 |
LOAD_CONST 0
LOAD_CONST ('notfound_view_config',)
IMPORT_NAME pyramid.view
IMPORT_FROM notfound_view_config
STORE_NAME notfound_view_config
POP_TOP
LOAD_NAME notfound_view_config
LOAD_CONST 'tutorial:templates/404.pt'
LOAD_CONST ('renderer',)
CALL_FUNCTION
LOAD_CONST <code object notfound_view at 0x7faa754c68a0, file ... | from pyramid.view import notfound_view_config
@notfound_view_config(renderer="tutorial:templates/404.pt")
def notfound_view(request):
request.response.status = 404
return {}
| data/pyramid-2.0.2/docs/tutorials/wiki/src/installation/tutorial/views/notfound.py | 153 | 67 | 19,949 |
LOAD_CONST 'A module providing interface classes to ease use of the data\n structures and modeling utilities provided elsewhere in mpc.\n\n Code in this module may import from mpc.data and mpc.modeling\n and should not be imported into these other modules.\n\n '
STORE_NAME __doc__
LOAD_CONST None
RETURN_VALUE | __doc__ = """A module providing interface classes to ease use of the data
structures and modeling utilities provided elsewhere in mpc.
Code in this module may import from mpc.data and mpc.modeling
and should not be imported into these other modules.
"""
| data/Pyomo-6.7.0/pyomo/contrib/mpc/interfaces/__init__.py | 73 | 67 | 23,473 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME iTunesLibrary
STORE_NAME iTunesLibrary
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME objc
STORE_NAME objc
LOAD_CONST 0
LOAD_CONST ('TestCase',)
IMPORT_NAME PyObjCTools.TestSupport
IMPORT_FROM TestCase
STORE_NAME TestCase
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object TestITLibAr... | import iTunesLibrary
import objc
from PyObjCTools.TestSupport import TestCase
class TestITLibArtist(TestCase):
def test_classes(self):
self.assertIsInstance(iTunesLibrary.ITLibArtist, objc.objc_class)
| data/pyobjc-framework-iTunesLibrary-10.1/PyObjCTest/test_itlibartist.py | 264 | 67 | 115,006 |
LOAD_CONST 0
LOAD_CONST ('Entity',)
IMPORT_NAME office365.sharepoint.entity
IMPORT_FROM Entity
STORE_NAME Entity
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object SPMachineLearningModel at 0x7fab64179e40, file "f.py", line 4>
LOAD_CONST 'SPMachineLearningModel'
MAKE_FUNCTION
LOAD_CONST 'SPMachineLearningModel'
LOAD_NAM... | from office365.sharepoint.entity import Entity
class SPMachineLearningModel(Entity):
""""""
@property
def entity_type_name(self):
return "Microsoft.Office.Server.ContentCenter.SPMachineLearningModel"
| data/Office365-REST-Python-Client-2.5.5/office365/sharepoint/contentcenter/machinelearning/models/model.py | 237 | 67 | 189,701 |
LOAD_CONST 1
LOAD_CONST ('Snapshot',)
IMPORT_NAME snapshot
IMPORT_FROM Snapshot
STORE_NAME Snapshot
POP_TOP
LOAD_CONST 1
LOAD_CONST ('GenericRepr',)
IMPORT_NAME generic_repr
IMPORT_FROM GenericRepr
STORE_NAME GenericRepr
POP_TOP
LOAD_CONST 1
LOAD_CONST ('assert_match_snapshot',)
IMPORT_NAME module
IMPORT_FROM assert_... | from .snapshot import Snapshot
from .generic_repr import GenericRepr
from .module import assert_match_snapshot
from .unittest import TestCase
__all__ = ["Snapshot", "GenericRepr", "assert_match_snapshot", "TestCase"]
| data/snapshottest-0.6.0/snapshottest/__init__.py | 159 | 67 | 396,094 |
LOAD_CONST (3, 4, 5)
UNPACK_SEQUENCE
STORE_NAME a
STORE_NAME b
STORE_NAME c
LOAD_NAME a
LOAD_CONST 3
COMPARE_OP ==
POP_JUMP_IF_FALSE
LOAD_NAME b
LOAD_CONST 9
COMPARE_OP !=
POP_JUMP_IF_FALSE
LOAD_NAME c
LOAD_CONST None
COMPARE_OP is not
POP_JUMP_IF_FALSE
LOAD_NAME print
LOAD_CONST "I'm good!"
CALL_FUNCTION
POP_TOP
J... | a, b, c = 3, 4, 5
if (
a == 3
and b != 9 # fmt: skip
and c is not None
):
print("I'm good!")
else:
print("I'm bad")
| data/ruff-0.2.2/crates/ruff_python_formatter/resources/test/fixtures/black/cases/fmtskip5.py | 105 | 67 | 342,081 |
LOAD_CONST 0
LOAD_CONST ('annotations',)
IMPORT_NAME __future__
IMPORT_FROM annotations
STORE_NAME annotations
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object TransferManager at 0x7fab700f11e0, file "f.py", line 4>
LOAD_CONST 'TransferManager'
MAKE_FUNCTION
LOAD_CONST 'TransferManager'
CALL_FUNCTION
STORE_NAME Transf... | from __future__ import annotations
class TransferManager:
"""
Base class for manager classes (copy, upload, download)
"""
def __init__(self, services, **kwargs):
self.services = services
super().__init__(**kwargs)
| data/b2sdk-1.31.0/b2sdk/transfer/transfer_manager.py | 247 | 67 | 28,146 |
LOAD_CONST 0
LOAD_CONST ('view_config',)
IMPORT_NAME pyramid.view
IMPORT_FROM view_config
STORE_NAME view_config
POP_TOP
LOAD_CONST 2
LOAD_CONST ('MyModel',)
IMPORT_NAME models
IMPORT_FROM MyModel
STORE_NAME MyModel
POP_TOP
LOAD_NAME view_config
LOAD_NAME MyModel
LOAD_CONST 'tutorial:templates/mytemplate.pt'
LOAD_CON... | from pyramid.view import view_config
from ..models import MyModel
@view_config(context=MyModel, renderer="tutorial:templates/mytemplate.pt")
def my_view(request):
return {"project": "myproj"}
| data/pyramid-2.0.2/docs/tutorials/wiki/src/installation/tutorial/views/default.py | 162 | 67 | 19,950 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME objc
STORE_NAME objc
LOAD_CONST 0
LOAD_CONST ('NSObject',)
IMPORT_NAME Foundation
IMPORT_FROM NSObject
STORE_NAME NSObject
POP_TOP
LOAD_CONST 0
LOAD_CONST ('InfoWindowController',)
IMPORT_NAME InfoWindowController
IMPORT_FROM InfoWindowController
STORE_NAME InfoWindowControlle... | import objc
from Foundation import NSObject
from InfoWindowController import InfoWindowController
class ToDoAppDelegate(NSObject):
@objc.IBAction
def showInfo_(self, sender):
InfoWindowController.sharedInfoWindowController().showWindow_(sender)
| data/pyobjc-framework-Cocoa-10.1/Examples/AppKit/Todo/TodoAppDelegate.py | 269 | 67 | 64,587 |
LOAD_CONST 0
LOAD_CONST ('Celery',)
IMPORT_NAME celery
IMPORT_FROM Celery
STORE_NAME Celery
POP_TOP
LOAD_NAME Celery
LOAD_CONST 'tasks'
LOAD_CONST 'amqp://'
LOAD_CONST ('broker',)
CALL_FUNCTION
STORE_NAME app
LOAD_NAME app
LOAD_METHOD task
CALL_METHOD
LOAD_CONST <code object add at 0x7fab81fc4d20, file "f.py", line 6... | from celery import Celery
app = Celery("tasks", broker="amqp://")
@app.task()
def add(x, y):
return x + y
if __name__ == "__main__":
app.start()
| data/celery-5.3.6/examples/tutorial/tasks.py | 154 | 67 | 69,819 |
LOAD_CONST 1
LOAD_CONST ('BaseFileHandler',)
IMPORT_NAME base
IMPORT_FROM BaseFileHandler
STORE_NAME BaseFileHandler
POP_TOP
LOAD_CONST 1
LOAD_CONST ('JsonHandler',)
IMPORT_NAME json_handler
IMPORT_FROM JsonHandler
STORE_NAME JsonHandler
POP_TOP
LOAD_CONST 1
LOAD_CONST ('PickleHandler',)
IMPORT_NAME pickle_handler
IM... | from .base import BaseFileHandler
from .json_handler import JsonHandler
from .pickle_handler import PickleHandler
from .yaml_handler import YamlHandler
__all__ = ["BaseFileHandler", "JsonHandler", "PickleHandler", "YamlHandler"]
| data/utilsd-0.0.18.post0/utilsd/fileio/handlers/__init__.py | 158 | 67 | 190,472 |
LOAD_CONST 0
LOAD_CONST ('DeviceEnrollmentConfiguration',)
IMPORT_NAME office365.intune.devices.enrollment.configuration
IMPORT_FROM DeviceEnrollmentConfiguration
STORE_NAME DeviceEnrollmentConfiguration
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object DeviceEnrollmentLimitConfiguration at 0x7fab700e4c90, file "f.py",... | from office365.intune.devices.enrollment.configuration import (
DeviceEnrollmentConfiguration,
)
class DeviceEnrollmentLimitConfiguration(DeviceEnrollmentConfiguration):
"""Device Enrollment Configuration that restricts the number of devices a user can enroll"""
| data/Office365-REST-Python-Client-2.5.5/office365/intune/devices/enrollment/limit_configuration.py | 189 | 67 | 189,898 |
LOAD_CONST 0
LOAD_CONST ('OpRunUnaryNum',)
IMPORT_NAME onnx.reference.ops._op
IMPORT_FROM OpRunUnaryNum
STORE_NAME OpRunUnaryNum
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object Identity at 0x7fab82053540, file "f.py", line 4>
LOAD_CONST 'Identity'
MAKE_FUNCTION
LOAD_CONST 'Identity'
LOAD_NAME OpRunUnaryNum
CALL_FUNCT... | from onnx.reference.ops._op import OpRunUnaryNum
class Identity(OpRunUnaryNum):
def _run(self, a): # type: ignore
if a is None:
return (None,)
return (a.copy(),)
| data/onnx-simplifier-0.4.35/third_party/onnx-optimizer/third_party/onnx/onnx/reference/ops/op_identity.py | 214 | 68 | 309,632 |
LOAD_CONST 0
LOAD_CONST ('path', 're_path')
IMPORT_NAME django.urls
IMPORT_FROM path
STORE_NAME path
IMPORT_FROM re_path
STORE_NAME re_path
POP_TOP
LOAD_NAME path
LOAD_CONST '/path-starting-with-slash/'
LOAD_CONST <code object <lambda> at 0x7f8e2fd4e660, file "f.py", line 4>
LOAD_CONST '<lambda>'
MAKE_FUNCTION
CALL_FU... | from django.urls import path, re_path
urlpatterns = [
path("/path-starting-with-slash/", lambda x: x),
re_path(r"/url-starting-with-slash/$", lambda x: x),
]
| data/Django-5.0.2/tests/check_framework/urls/beginning_with_slash.py | 190 | 68 | 325,952 |
LOAD_CONST 'AUTOGENERATED. DO NOT EDIT.'
STORE_NAME __doc__
LOAD_CONST 0
LOAD_CONST ('deserialize_keras_object',)
IMPORT_NAME tf_keras.src.saving.legacy.serialization
IMPORT_FROM deserialize_keras_object
STORE_NAME deserialize_keras_object
POP_TOP
LOAD_CONST 0
LOAD_CONST ('serialize_keras_object',)
IMPORT_NAME tf_ker... | """AUTOGENERATED. DO NOT EDIT."""
from tf_keras.src.saving.legacy.serialization import deserialize_keras_object
from tf_keras.src.saving.legacy.serialization import serialize_keras_object
| data/tf_keras-2.15.0/tf_keras/api/_v1/keras/utils/legacy/__init__.py | 137 | 68 | 354,032 |
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
from __future__ import unicode_literals
def check_required(constraint, value):
if not (constraint and value is None):
return True
return False
| data/tableschema-1.20.2/tableschema/constraints/required.py | 203 | 68 | 160,744 |
LOAD_CONST 0
LOAD_CONST ('StarletteOpenAPIRequest',)
IMPORT_NAME openapi_core.contrib.starlette.requests
IMPORT_FROM StarletteOpenAPIRequest
STORE_NAME StarletteOpenAPIRequest
POP_TOP
LOAD_CONST 0
LOAD_CONST ('StarletteOpenAPIResponse',)
IMPORT_NAME openapi_core.contrib.starlette.responses
IMPORT_FROM StarletteOpenAPI... | from openapi_core.contrib.starlette.requests import StarletteOpenAPIRequest
from openapi_core.contrib.starlette.responses import StarletteOpenAPIResponse
__all__ = [
"StarletteOpenAPIRequest",
"StarletteOpenAPIResponse",
]
| data/openapi_core-0.19.0/openapi_core/contrib/starlette/__init__.py | 121 | 68 | 271,197 |
LOAD_CONST 0
LOAD_CONST ('Enum',)
IMPORT_NAME enum
IMPORT_FROM Enum
STORE_NAME Enum
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object ParaphraseStyleType at 0x7faa53250660, file "f.py", line 4>
LOAD_CONST 'ParaphraseStyleType'
MAKE_FUNCTION
LOAD_CONST 'ParaphraseStyleType'
LOAD_NAME str
LOAD_NAME Enum
CALL_FUNCTION
STO... | from enum import Enum
class ParaphraseStyleType(str, Enum):
LONG = "long"
SHORT = "short"
FORMAL = "formal"
CASUAL = "casual"
GENERAL = "general"
| data/ai21-2.0.4/ai21/models/paraphrase_style_type.py | 190 | 68 | 370,666 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME numpy
STORE_NAME np
LOAD_CONST 0
LOAD_CONST ('OpRunBinary',)
IMPORT_NAME onnx.reference.ops._op
IMPORT_FROM OpRunBinary
STORE_NAME OpRunBinary
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object BitwiseOr at 0x7fab823b2930, file "f.py", line 6>
LOAD_CONST 'BitwiseOr'
MAKE_FUNCTIO... | import numpy as np
from onnx.reference.ops._op import OpRunBinary
class BitwiseOr(OpRunBinary):
def _run(self, x, y): # type: ignore
return (np.bitwise_or(x, y),)
| data/onnx-simplifier-0.4.35/third_party/onnx-optimizer/third_party/onnx/onnx/reference/ops/op_bitwise_or.py | 220 | 68 | 309,641 |
LOAD_CONST 'Generated API for package: tensorflow_examples.lite.model_maker.core.task.metadata_writers.bert.text_classifier.'
STORE_NAME __doc__
LOAD_CONST 0
LOAD_CONST ('*',)
IMPORT_NAME tensorflow_examples.lite.model_maker.core.task.metadata_writers.bert.text_classifier
IMPORT_STAR
LOAD_CONST None
RETURN_VALUE | """Generated API for package: tensorflow_examples.lite.model_maker.core.task.metadata_writers.bert.text_classifier."""
from tensorflow_examples.lite.model_maker.core.task.metadata_writers.bert.text_classifier import *
| data/tflite-model-maker-nightly-0.4.4.dev202402210609/src/tflite_model_maker/python/core/task/metadata_writers/bert/text_classifier/__init__.py | 88 | 68 | 389,413 |
LOAD_CONST 0
LOAD_CONST ('View',)
IMPORT_NAME django.views.generic
IMPORT_FROM View
STORE_NAME View
POP_TOP
BUILD_LIST
STORE_NAME urlpatterns
LOAD_NAME View
LOAD_METHOD as_view
CALL_METHOD
STORE_NAME handler400
LOAD_NAME View
LOAD_METHOD as_view
CALL_METHOD
STORE_NAME handler403
LOAD_NAME View
LOAD_METHOD as_view
C... | from django.views.generic import View
urlpatterns = []
handler400 = View.as_view()
handler403 = View.as_view()
handler404 = View.as_view()
handler500 = View.as_view()
| data/Django-5.0.2/tests/check_framework/urls/good_class_based_error_handlers.py | 107 | 68 | 325,944 |
LOAD_CONST '\nThe :mod:`tslearn.generators` module gathers synthetic time series dataset\ngeneration routines.\n'
STORE_NAME __doc__
LOAD_CONST 1
LOAD_CONST ('random_walks', 'random_walk_blobs')
IMPORT_NAME generators
IMPORT_FROM random_walks
STORE_NAME random_walks
IMPORT_FROM random_walk_blobs
STORE_NAME random_walk... | """
The :mod:`tslearn.generators` module gathers synthetic time series dataset
generation routines.
"""
from .generators import random_walks, random_walk_blobs
__all__ = ["random_walks", "random_walk_blobs"]
| data/tslearn-0.6.3/tslearn/generators/__init__.py | 121 | 68 | 400,374 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME pytest
STORE_NAME pytest
LOAD_CONST <code object test_qtuitools at 0x7faa75c44780, file "f.py", line 4>
LOAD_CONST 'test_qtuitools'
MAKE_FUNCTION
STORE_NAME test_qtuitools
LOAD_CONST None
RETURN_VALUE
LOAD_GLOBAL pytest
LOAD_METHOD importorskip
LOAD_CONST 'qtpy.QtUiTools'
CALL... | import pytest
def test_qtuitools():
"""Test the qtpy.QtUiTools namespace"""
QtUiTools = pytest.importorskip("qtpy.QtUiTools")
assert QtUiTools.QUiLoader is not None
| data/QtPy-2.4.1/qtpy/tests/test_qtuitools.py | 138 | 68 | 356,942 |
LOAD_CONST 'Firehose base URL and path.'
STORE_NAME __doc__
LOAD_CONST 1
LOAD_CONST ('FirehoseResponse',)
IMPORT_NAME responses
IMPORT_FROM FirehoseResponse
STORE_NAME FirehoseResponse
POP_TOP
LOAD_CONST 'https?://firehose\\.(.+)\\.amazonaws\\.com'
BUILD_LIST
STORE_NAME url_bases
LOAD_CONST '{0}/$'
LOAD_NAME Firehos... | """Firehose base URL and path."""
from .responses import FirehoseResponse
url_bases = [r"https?://firehose\.(.+)\.amazonaws\.com"]
url_paths = {"{0}/$": FirehoseResponse.dispatch}
| data/moto-5.0.2/moto/firehose/urls.py | 107 | 68 | 198,023 |
LOAD_CONST 'Utility functions to handle configuration, credentials setup, and test skip decision making for unit tests.'
STORE_NAME __doc__
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME platform
STORE_NAME platform
LOAD_CONST 'Skipping test on Windows'
STORE_NAME WINDOWS_SKIP_MESSAGE
LOAD_CONST <code object is_windows at... | """Utility functions to handle configuration, credentials setup, and test skip decision making for unit tests."""
import platform
WINDOWS_SKIP_MESSAGE = "Skipping test on Windows"
def is_windows():
return any(platform.win32_ver())
| data/aws-encryption-sdk-cli-4.1.0/test/unit/unit_test_utils.py | 138 | 68 | 309,371 |
LOAD_CONST 1
LOAD_CONST ('learning_rate_scheduler',)
IMPORT_NAME
IMPORT_FROM learning_rate_scheduler
STORE_NAME lrs
POP_TOP
LOAD_CONST 1
LOAD_CONST ('model_averaging', 'model_iteration_averaging')
IMPORT_NAME
IMPORT_FROM model_averaging
STORE_NAME model_averaging
IMPORT_FROM model_iteration_averaging
STORE_NAME model_... | from . import learning_rate_scheduler as lrs
from . import model_averaging, model_iteration_averaging
from ._base import Trainer
__all__ = ["lrs", "Trainer", "model_averaging", "model_iteration_averaging"]
| data/gluonts-0.14.4/src/gluonts/mx/trainer/__init__.py | 159 | 68 | 140,189 |
LOAD_CONST 1
LOAD_CONST ('WAFV2Response',)
IMPORT_NAME responses
IMPORT_FROM WAFV2Response
STORE_NAME WAFV2Response
POP_TOP
LOAD_CONST 'https?://wafv2\\.(.+)\\.amazonaws.com'
BUILD_LIST
STORE_NAME url_bases
LOAD_CONST '{0}/'
LOAD_NAME WAFV2Response
LOAD_ATTR dispatch
BUILD_MAP
STORE_NAME url_paths
LOAD_CONST None
RET... | from .responses import WAFV2Response
url_bases = [
r"https?://wafv2\.(.+)\.amazonaws.com",
]
url_paths = {
"{0}/": WAFV2Response.dispatch,
}
| data/moto-5.0.2/moto/wafv2/urls.py | 93 | 68 | 197,946 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME pbr.version
STORE_NAME pbr
LOAD_CONST '__version__'
BUILD_LIST
STORE_NAME __all__
LOAD_NAME pbr
LOAD_ATTR version
LOAD_METHOD VersionInfo
LOAD_CONST 'python-openstackclient'
CALL_METHOD
STORE_NAME version_info
SETUP_EXCEPT to 40
LOAD_NAME version_info
LOAD_METHOD version_str... | import pbr.version
__all__ = ["__version__"]
version_info = pbr.version.VersionInfo("python-openstackclient")
try:
__version__ = version_info.version_string()
except AttributeError:
__version__ = None
| data/python-openstackclient-6.5.0/openstackclient/__init__.py | 137 | 68 | 153,764 |
LOAD_CONST 'InvalidParameter.ResourceId'
STORE_NAME INVALIDPARAMETER_RESOURCEID
LOAD_CONST 'InvalidParameter.ResourceIdError'
STORE_NAME INVALIDPARAMETER_RESOURCEIDERROR
LOAD_CONST 'UnauthorizedOperation.NoPermission'
NOP UNAUTHORIZEDOPERATION_NOPERMISSION
LOAD_CONST None
RETURN_VALUE | INVALIDPARAMETER_RESOURCEID = "InvalidParameter.ResourceId"
INVALIDPARAMETER_RESOURCEIDERROR = "InvalidParameter.ResourceIdError"
UNAUTHORIZEDOPERATION_NOPERMISSION = "UnauthorizedOperation.NoPermission"
| data/tencentcloud-sdk-python-3.0.1092/tencentcloud/cds/v20180420/errorcodes.py | 78 | 68 | 119,365 |
LOAD_CONST 0
LOAD_CONST ('JsonRESTError',)
IMPORT_NAME moto.core.exceptions
IMPORT_FROM JsonRESTError
STORE_NAME JsonRESTError
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object BadRequestException at 0x7fab703bbed0, file "f.py", line 4>
LOAD_CONST 'BadRequestException'
MAKE_FUNCTION
LOAD_CONST 'BadRequestException'
LOA... | from moto.core.exceptions import JsonRESTError
class BadRequestException(JsonRESTError):
code = 400
def __init__(self, message: str):
super().__init__(error_type="BadRequestException", message=message)
| data/moto-5.0.2/moto/resourcegroups/exceptions.py | 263 | 68 | 197,936 |
LOAD_CONST 0
LOAD_CONST ('Enum',)
IMPORT_NAME enum
IMPORT_FROM Enum
STORE_NAME Enum
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object BillingPriceScheme at 0x7fab81f3b420, file "f.py", line 4>
LOAD_CONST 'BillingPriceScheme'
MAKE_FUNCTION
LOAD_CONST 'BillingPriceScheme'
LOAD_NAME str
LOAD_NAME Enum
CALL_FUNCTION
STORE_... | from enum import Enum
class BillingPriceScheme(str, Enum):
PER_UNIT = "per_unit"
TIERED = "tiered"
def __str__(self) -> str:
return str(self.value)
| data/qcs_api_client-0.23.1/qcs_api_client/models/billing_price_scheme.py | 241 | 68 | 128,917 |
LOAD_CONST 0
LOAD_CONST ('DPExplainableBoostingClassifier',)
IMPORT_NAME interpret.glassbox._ebm._ebm
IMPORT_FROM DPExplainableBoostingClassifier
STORE_NAME DPExplainableBoostingClassifier
POP_TOP
LOAD_CONST 0
LOAD_CONST ('DPExplainableBoostingRegressor',)
IMPORT_NAME interpret.glassbox._ebm._ebm
IMPORT_FROM DPExplain... | from interpret.glassbox._ebm._ebm import DPExplainableBoostingClassifier # noqa: F401
from interpret.glassbox._ebm._ebm import DPExplainableBoostingRegressor # noqa: F401
| data/interpret-core-0.5.1/interpret/privacy/__init__.py | 121 | 68 | 388,014 |
LOAD_CONST 0
LOAD_CONST ('Enum',)
IMPORT_NAME enum
IMPORT_FROM Enum
STORE_NAME Enum
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object BillingPricePriceType at 0x7fab81f3b4b0, file "f.py", line 4>
LOAD_CONST 'BillingPricePriceType'
MAKE_FUNCTION
LOAD_CONST 'BillingPricePriceType'
LOAD_NAME str
LOAD_NAME Enum
CALL_FUNCTI... | from enum import Enum
class BillingPricePriceType(str, Enum):
ONE_TIME = "one_time"
RECURRING = "recurring"
def __str__(self) -> str:
return str(self.value)
| data/qcs_api_client-0.23.1/qcs_api_client/models/billing_price_price_type.py | 241 | 68 | 128,880 |
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 OptionalGetElement at 0x7fab823b2810, file "f.py", line 4>
LOAD_CONST 'OptionalGetElement'
MAKE_FUNCTION
LOAD_CONST 'OptionalGetElement'
LOAD_NAME OpRun
CALL_FUNCTION... | from onnx.reference.op_run import OpRun
class OptionalGetElement(OpRun):
def _run(self, x): # type: ignore
if x is None:
raise ValueError("The requested optional input has no value.")
return (x,)
| data/onnx-simplifier-0.4.35/third_party/onnx-optimizer/third_party/onnx/onnx/reference/ops/op_optional_get_element.py | 219 | 68 | 309,519 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME numpy
STORE_NAME np
LOAD_CONST 0
LOAD_CONST ('OpRunBinary',)
IMPORT_NAME onnx.reference.ops._op
IMPORT_FROM OpRunBinary
STORE_NAME OpRunBinary
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object BitwiseAnd at 0x7fab823b2540, file "f.py", line 6>
LOAD_CONST 'BitwiseAnd'
MAKE_FUNCT... | import numpy as np
from onnx.reference.ops._op import OpRunBinary
class BitwiseAnd(OpRunBinary):
def _run(self, x, y): # type: ignore
return (np.bitwise_and(x, y),)
| data/onnx-simplifier-0.4.35/third_party/onnx-optimizer/third_party/onnx/onnx/reference/ops/op_bitwise_and.py | 220 | 68 | 309,496 |
LOAD_CONST 0
LOAD_CONST ('AppConfig',)
IMPORT_NAME django.apps
IMPORT_FROM AppConfig
STORE_NAME AppConfig
POP_TOP
LOAD_CONST 0
LOAD_CONST ('gettext_lazy',)
IMPORT_NAME django.utils.translation
IMPORT_FROM gettext_lazy
STORE_NAME _
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object SyndicationConfig at 0x7f8af04b8c90, f... | from django.apps import AppConfig
from django.utils.translation import gettext_lazy as _
class SyndicationConfig(AppConfig):
name = "django.contrib.syndication"
verbose_name = _("Syndication")
| data/Django-5.0.2/django/contrib/syndication/apps.py | 210 | 68 | 326,682 |
LOAD_CONST 'AUTOGENERATED. DO NOT EDIT.'
STORE_NAME __doc__
LOAD_CONST 0
LOAD_CONST ('deserialize_keras_object',)
IMPORT_NAME tf_keras.src.saving.legacy.serialization
IMPORT_FROM deserialize_keras_object
STORE_NAME deserialize_keras_object
POP_TOP
LOAD_CONST 0
LOAD_CONST ('serialize_keras_object',)
IMPORT_NAME tf_ker... | """AUTOGENERATED. DO NOT EDIT."""
from tf_keras.src.saving.legacy.serialization import deserialize_keras_object
from tf_keras.src.saving.legacy.serialization import serialize_keras_object
| data/tf_keras-2.15.0/tf_keras/utils/legacy/__init__.py | 137 | 68 | 353,578 |
LOAD_CONST 'Generated API for package: tensorflow_examples.lite.model_maker.third_party.efficientdet.keras.efficientdet_keras.'
STORE_NAME __doc__
LOAD_CONST 0
LOAD_CONST ('*',)
IMPORT_NAME tensorflow_examples.lite.model_maker.third_party.efficientdet.keras.efficientdet_keras
IMPORT_STAR
LOAD_CONST None
RETURN_VALUE | """Generated API for package: tensorflow_examples.lite.model_maker.third_party.efficientdet.keras.efficientdet_keras."""
from tensorflow_examples.lite.model_maker.third_party.efficientdet.keras.efficientdet_keras import *
| data/tflite-model-maker-nightly-0.4.4.dev202402210609/src/tflite_model_maker/python/third_party/efficientdet/keras/efficientdet_keras.py | 88 | 68 | 389,336 |
LOAD_CONST 0
LOAD_CONST ('main',)
IMPORT_NAME jupyter_packaging.__main__
IMPORT_FROM main
STORE_NAME main
POP_TOP
LOAD_CONST <code object test_main_copies_setupbase at 0x7fab82343420, file "f.py", line 4>
LOAD_CONST 'test_main_copies_setupbase'
MAKE_FUNCTION
STORE_NAME test_main_copies_setupbase
LOAD_CONST None
RETURN... | from jupyter_packaging.__main__ import main
def test_main_copies_setupbase(tmpdir):
d = tmpdir.mkdir("sub")
main([str(d)])
assert d.join("setupbase.py").check()
| data/jupyter_packaging-0.12.3/tests/test_main.py | 175 | 68 | 207,827 |
LOAD_CONST 'Generated API for package: tensorflow_examples.lite.model_maker.third_party.efficientdet.object_detection.box_list.'
STORE_NAME __doc__
LOAD_CONST 0
LOAD_CONST ('*',)
IMPORT_NAME tensorflow_examples.lite.model_maker.third_party.efficientdet.object_detection.box_list
IMPORT_STAR
LOAD_CONST None
RETURN_VALUE | """Generated API for package: tensorflow_examples.lite.model_maker.third_party.efficientdet.object_detection.box_list."""
from tensorflow_examples.lite.model_maker.third_party.efficientdet.object_detection.box_list import *
| data/tflite-model-maker-nightly-0.4.4.dev202402210609/src/tflite_model_maker/python/third_party/efficientdet/object_detection/box_list.py | 88 | 68 | 389,332 |
LOAD_CONST 'Generated API for package: tensorflow_examples.lite.model_maker.third_party.efficientdet.object_detection.shape_utils.'
STORE_NAME __doc__
LOAD_CONST 0
LOAD_CONST ('*',)
IMPORT_NAME tensorflow_examples.lite.model_maker.third_party.efficientdet.object_detection.shape_utils
IMPORT_STAR
LOAD_CONST None
RETURN... | """Generated API for package: tensorflow_examples.lite.model_maker.third_party.efficientdet.object_detection.shape_utils."""
from tensorflow_examples.lite.model_maker.third_party.efficientdet.object_detection.shape_utils import *
| data/tflite-model-maker-nightly-0.4.4.dev202402210609/src/tflite_model_maker/python/third_party/efficientdet/object_detection/shape_utils.py | 88 | 68 | 389,326 |
LOAD_CONST 'Generated API for package: tensorflow_examples.lite.model_maker.third_party.efficientdet.dataset.inspect_tfrecords.'
STORE_NAME __doc__
LOAD_CONST 0
LOAD_CONST ('*',)
IMPORT_NAME tensorflow_examples.lite.model_maker.third_party.efficientdet.dataset.inspect_tfrecords
IMPORT_STAR
LOAD_CONST None
RETURN_VALUE | """Generated API for package: tensorflow_examples.lite.model_maker.third_party.efficientdet.dataset.inspect_tfrecords."""
from tensorflow_examples.lite.model_maker.third_party.efficientdet.dataset.inspect_tfrecords import *
| data/tflite-model-maker-nightly-0.4.4.dev202402210609/src/tflite_model_maker/python/third_party/efficientdet/dataset/inspect_tfrecords.py | 88 | 68 | 389,317 |
LOAD_CONST '\nThe :mod:`jina.proto` defines the protobuf used in jina. It is the core message protocol used in communicating between :class:`jina.orchestrate.deployments.Deployment`. It also defines the interface of a gRPC service.\n\n'
STORE_NAME __doc__
LOAD_CONST None
RETURN_VALUE | """
The :mod:`jina.proto` defines the protobuf used in jina. It is the core message protocol used in communicating between :class:`jina.orchestrate.deployments.Deployment`. It also defines the interface of a gRPC service.
"""
| data/jina-3.23.3/jina/proto/__init__.py | 79 | 68 | 168,939 |
LOAD_CONST 'Generated API for package: tensorflow_examples.lite.model_maker.third_party.recommendation.ml.model.losses.'
STORE_NAME __doc__
LOAD_CONST 0
LOAD_CONST ('*',)
IMPORT_NAME tensorflow_examples.lite.model_maker.third_party.recommendation.ml.model.losses
IMPORT_STAR
LOAD_CONST None
RETURN_VALUE | """Generated API for package: tensorflow_examples.lite.model_maker.third_party.recommendation.ml.model.losses."""
from tensorflow_examples.lite.model_maker.third_party.recommendation.ml.model.losses import *
| data/tflite-model-maker-nightly-0.4.4.dev202402210609/src/tflite_model_maker/python/third_party/recommendation/ml/model/losses.py | 88 | 68 | 389,297 |
LOAD_CONST 'Generated API for package: tensorflow_examples.lite.model_maker.third_party.recommendation.ml.model.metrics.'
STORE_NAME __doc__
LOAD_CONST 0
LOAD_CONST ('*',)
IMPORT_NAME tensorflow_examples.lite.model_maker.third_party.recommendation.ml.model.metrics
IMPORT_STAR
LOAD_CONST None
RETURN_VALUE | """Generated API for package: tensorflow_examples.lite.model_maker.third_party.recommendation.ml.model.metrics."""
from tensorflow_examples.lite.model_maker.third_party.recommendation.ml.model.metrics import *
| data/tflite-model-maker-nightly-0.4.4.dev202402210609/src/tflite_model_maker/python/third_party/recommendation/ml/model/metrics.py | 88 | 68 | 389,292 |
LOAD_CONST '\nWeb Fragments Django application initialization.\n'
STORE_NAME __doc__
LOAD_CONST 0
LOAD_CONST ('AppConfig',)
IMPORT_NAME django.apps
IMPORT_FROM AppConfig
STORE_NAME AppConfig
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object WebFragmentsConfig at 0x7fadb5811c00, file "f.py", line 8>
LOAD_CONST 'WebFrag... | """
Web Fragments Django application initialization.
"""
from django.apps import AppConfig
class WebFragmentsConfig(AppConfig):
"""
Configuration for the Web Fragments Django application.
"""
name = "web_fragments"
| data/web-fragments-2.1.0/web_fragments/apps.py | 191 | 68 | 310,133 |
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 shutil
STORE_NAME shutil
LOAD_NAME sys
LOAD_ATTR argv
LOAD_CONST 1
BINARY_SUBSCR
STORE_NAME ifile
LOAD_NAME sys
LOAD_ATTR argv
LOAD_CONST 2
BINARY_SUBSCR
STORE... | import os, sys, shutil
ifile = sys.argv[1]
ofile = sys.argv[2]
try:
os.unlink(ofile)
except FileNotFoundError:
pass
shutil.copy(ifile, ofile)
| data/meson-1.3.2/test cases/frameworks/6 gettext/generated/desktopgenerator.py | 164 | 68 | 82,086 |
LOAD_CONST '^((?P<workspace>[^/]+)/){0,1}(?P<project>[^/]+)$'
STORE_NAME PROJECT_QUALIFIED_NAME_PATTERN
LOAD_CONST 'PROJECT_QUALIFIED_NAME_PATTERN'
BUILD_LIST
STORE_NAME __all__
LOAD_CONST None
RETURN_VALUE | PROJECT_QUALIFIED_NAME_PATTERN = "^((?P<workspace>[^/]+)/){0,1}(?P<project>[^/]+)$"
__all__ = ["PROJECT_QUALIFIED_NAME_PATTERN"]
| data/neptune-1.9.1/src/neptune/common/patterns.py | 79 | 68 | 117,402 |
LOAD_CONST ' Nameko built-in dependencies.\n'
STORE_NAME __doc__
LOAD_CONST 0
LOAD_CONST ('DependencyProvider',)
IMPORT_NAME nameko.extensions
IMPORT_FROM DependencyProvider
STORE_NAME DependencyProvider
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object Config at 0x7fab8002fc00, file "f.py", line 7>
LOAD_CONST 'Config... | """ Nameko built-in dependencies.
"""
from nameko.extensions import DependencyProvider
class Config(DependencyProvider):
"""Dependency provider for accessing configuration values."""
def get_dependency(self, worker_ctx):
return self.container.config.copy()
| data/nameko-2.14.1/nameko/dependency_providers.py | 223 | 68 | 43,569 |
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 Size at 0x7fab820538a0, file "f.py", line 6>
LOAD_CONST 'Size'
MAKE_FUNCTION
LOAD_CONST 'Size'
LOAD_NAME... | import numpy as np
from onnx.reference.op_run import OpRun
class Size(OpRun):
def _run(self, data): # type: ignore
return (np.array(data.size, dtype=np.int64),)
| data/onnx-simplifier-0.4.35/third_party/onnx-optimizer/third_party/onnx/onnx/reference/ops/op_size.py | 216 | 68 | 309,604 |
LOAD_CONST 'Generated API for package: tensorflow_examples.lite.model_maker.third_party.efficientdet.keras.fpn_configs.'
STORE_NAME __doc__
LOAD_CONST 0
LOAD_CONST ('*',)
IMPORT_NAME tensorflow_examples.lite.model_maker.third_party.efficientdet.keras.fpn_configs
IMPORT_STAR
LOAD_CONST None
RETURN_VALUE | """Generated API for package: tensorflow_examples.lite.model_maker.third_party.efficientdet.keras.fpn_configs."""
from tensorflow_examples.lite.model_maker.third_party.efficientdet.keras.fpn_configs import *
| data/tflite-model-maker-nightly-0.4.4.dev202402210609/src/tflite_model_maker/python/third_party/efficientdet/keras/fpn_configs.py | 88 | 68 | 389,348 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME typer
STORE_NAME typer
LOAD_CONST 0
LOAD_CONST ('Annotated',)
IMPORT_NAME typing_extensions
IMPORT_FROM Annotated
STORE_NAME Annotated
POP_TOP
LOAD_NAME Annotated
LOAD_NAME str
LOAD_NAME typer
LOAD_METHOD Argument
CALL_METHOD
BUILD_TUPLE
BINARY_SUBSCR
LOAD_CONST ('name',)
BUIL... | import typer
from typing_extensions import Annotated
def main(name: Annotated[str, typer.Argument()]):
print(f"Hello {name}")
if __name__ == "__main__":
typer.run(main)
| data/typer-0.9.0/docs_src/arguments/optional/tutorial001_an.py | 181 | 68 | 224,541 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME typer
STORE_NAME typer
LOAD_NAME typer
LOAD_ATTR Argument
LOAD_CONST 'World'
LOAD_CONST 'AWESOME_NAME'
LOAD_CONST ('envvar',)
CALL_FUNCTION
BUILD_TUPLE
LOAD_NAME str
LOAD_CONST ('name',)
BUILD_CONST_KEY_MAP
LOAD_CONST <code object main at 0x7fab41d24270, file "f.py", line 4>
LO... | import typer
def main(name: str = typer.Argument("World", envvar="AWESOME_NAME")):
print(f"Hello Mr. {name}")
if __name__ == "__main__":
typer.run(main)
| data/typer-0.9.0/docs_src/arguments/envvar/tutorial001.py | 167 | 68 | 224,538 |
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?", abort=True)
print("Deleting it!")
if __name__ == "__main__":
typer.run(main)
| data/typer-0.9.0/docs_src/prompt/tutorial003.py | 152 | 68 | 224,525 |
LOAD_CONST 'Generated API for package: tensorflow_examples.lite.model_maker.core.data_util.object_detector_dataloader.'
STORE_NAME __doc__
LOAD_CONST 0
LOAD_CONST ('*',)
IMPORT_NAME tensorflow_examples.lite.model_maker.core.data_util.object_detector_dataloader
IMPORT_STAR
LOAD_CONST None
RETURN_VALUE | """Generated API for package: tensorflow_examples.lite.model_maker.core.data_util.object_detector_dataloader."""
from tensorflow_examples.lite.model_maker.core.data_util.object_detector_dataloader import *
| data/tflite-model-maker-nightly-0.4.4.dev202402210609/src/tflite_model_maker/python/core/data_util/object_detector_dataloader.py | 88 | 68 | 389,385 |
LOAD_CONST 0
LOAD_CONST ('MagicMock',)
IMPORT_NAME unittest.mock
IMPORT_FROM MagicMock
STORE_NAME MagicMock
POP_TOP
LOAD_CONST 0
LOAD_CONST ('unfrackpath',)
IMPORT_NAME ansible.utils.path
IMPORT_FROM unfrackpath
STORE_NAME unfrackpath
POP_TOP
LOAD_NAME MagicMock
LOAD_NAME unfrackpath
LOAD_CONST <code object <lambda>... | from unittest.mock import MagicMock
from ansible.utils.path import unfrackpath
mock_unfrackpath_noop = MagicMock(
spec_set=unfrackpath, side_effect=lambda x, *args, **kwargs: x
)
| data/ansible-9.2.0/ansible_collections/community/aws/tests/unit/mock/path.py | 157 | 68 | 273,757 |
LOAD_CONST '\nA test file with both `check` and `assert`, both failing\n'
STORE_NAME __doc__
LOAD_CONST 0
LOAD_CONST ('check',)
IMPORT_NAME pytest_check
IMPORT_FROM check
STORE_NAME check
POP_TOP
LOAD_CONST <code object test_fail_check at 0x7fab54105930, file "f.py", line 8>
LOAD_CONST 'test_fail_check'
MAKE_FUNCTION... | """
A test file with both `check` and `assert`, both failing
"""
from pytest_check import check
def test_fail_check():
check.equal(1, 2)
def test_fail_assert():
assert 1 == 2
| data/pytest_check-2.3.1/examples/test_example_check_and_assert.py | 218 | 68 | 186,448 |
LOAD_CONST 'Generated API for package: tensorflow_examples.lite.model_maker.core.data_util.text_searcher_dataloader.'
STORE_NAME __doc__
LOAD_CONST 0
LOAD_CONST ('*',)
IMPORT_NAME tensorflow_examples.lite.model_maker.core.data_util.text_searcher_dataloader
IMPORT_STAR
LOAD_CONST None
RETURN_VALUE | """Generated API for package: tensorflow_examples.lite.model_maker.core.data_util.text_searcher_dataloader."""
from tensorflow_examples.lite.model_maker.core.data_util.text_searcher_dataloader import *
| data/tflite-model-maker-nightly-0.4.4.dev202402210609/src/tflite_model_maker/python/core/data_util/text_searcher_dataloader.py | 88 | 68 | 389,384 |
BUILD_LIST
STORE_NAME urlpatterns
LOAD_CONST 'urlpatterns_reverse.views.empty_view'
STORE_NAME handler400
LOAD_CONST 'urlpatterns_reverse.views.empty_view'
STORE_NAME handler404
LOAD_CONST 'urlpatterns_reverse.views.empty_view'
STORE_NAME handler500
LOAD_CONST None
RETURN_VALUE | urlpatterns = []
handler400 = "urlpatterns_reverse.views.empty_view"
handler404 = "urlpatterns_reverse.views.empty_view"
handler500 = "urlpatterns_reverse.views.empty_view"
| data/Django-5.0.2/tests/urlpatterns_reverse/urls_error_handlers.py | 81 | 68 | 326,003 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME numpy
STORE_NAME np
LOAD_CONST 0
LOAD_CONST ('OpRunUnaryNum',)
IMPORT_NAME onnx.reference.ops._op
IMPORT_FROM OpRunUnaryNum
STORE_NAME OpRunUnaryNum
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object Atanh at 0x7fab823b2420, file "f.py", line 6>
LOAD_CONST 'Atanh'
MAKE_FUNCTION
... | import numpy as np
from onnx.reference.ops._op import OpRunUnaryNum
class Atanh(OpRunUnaryNum):
def _run(self, x): # type: ignore
return (np.arctanh(x),)
| data/onnx-simplifier-0.4.35/third_party/onnx-optimizer/third_party/onnx/onnx/reference/ops/op_atanh.py | 225 | 68 | 309,512 |
LOAD_CONST '^((?P<workspace>[^/]+)/){0,1}(?P<project>[^/]+)$'
STORE_NAME PROJECT_QUALIFIED_NAME_PATTERN
LOAD_CONST 'PROJECT_QUALIFIED_NAME_PATTERN'
BUILD_LIST
STORE_NAME __all__
LOAD_CONST None
RETURN_VALUE | PROJECT_QUALIFIED_NAME_PATTERN = "^((?P<workspace>[^/]+)/){0,1}(?P<project>[^/]+)$"
__all__ = ["PROJECT_QUALIFIED_NAME_PATTERN"]
| data/neptune_client-1.9.1/src/neptune/common/patterns.py | 79 | 68 | 128,051 |
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 int
LOAD_CONST ('i',)
BUILD_CONST_KEY_MAP
LOAD_CONST <code object main at 0x7fab542615d0, file "f.py", line 6>
LOAD_CONST 'main'
MAKE_FU... | import typer
app = typer.Typer()
@app.command()
def main(i: int): # pragma: no cover
pass
if __name__ == "__main__":
app(prog_name="custom-name")
| data/typer-0.9.0/tests/assets/prog_name.py | 147 | 68 | 224,334 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME typer
STORE_NAME typer
LOAD_NAME typer
LOAD_ATTR Typer
LOAD_CONST False
LOAD_CONST ('pretty_exceptions_show_locals',)
CALL_FUNCTION
STORE_NAME app
LOAD_NAME app
LOAD_METHOD command
CALL_METHOD
LOAD_NAME str
LOAD_CONST ('password',)
BUILD_CONST_KEY_MAP
LOAD_CONST <code object ... | import typer
app = typer.Typer(pretty_exceptions_show_locals=False)
@app.command()
def main(password: str):
print(password + 3)
if __name__ == "__main__":
app()
| data/typer-0.9.0/docs_src/exceptions/tutorial002.py | 164 | 68 | 224,519 |
LOAD_CONST 0
LOAD_CONST ('forms',)
IMPORT_NAME django
IMPORT_FROM forms
STORE_NAME forms
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object FormFieldAssertionsMixin at 0x7f8e2fec3ae0, file "f.py", line 4>
LOAD_CONST 'FormFieldAssertionsMixin'
MAKE_FUNCTION
LOAD_CONST 'FormFieldAssertionsMixin'
CALL_FUNCTION
STORE_NAME F... | from django import forms
class FormFieldAssertionsMixin:
def assertWidgetRendersTo(self, field, to):
class Form(forms.Form):
f = field
self.assertHTMLEqual(str(Form()["f"]), to)
| data/Django-5.0.2/tests/forms_tests/field_tests/__init__.py | 347 | 68 | 326,536 |
LOAD_CONST 'aaabbb'
BUILD_LIST
STORE_NAME a
LOAD_CONST 'aaabbb'
BUILD_LIST
STORE_NAME b
LOAD_CONST <code object c at 0x7fab80232a50, file "f.py", line 5>
LOAD_CONST 'c'
MAKE_FUNCTION
STORE_NAME c
LOAD_NAME print
LOAD_NAME a
CALL_FUNCTION
POP_TOP
LOAD_NAME print
LOAD_NAME b
CALL_FUNCTION
POP_TOP
LOAD_NAME print
LOA... | a = ["aaa" "bbb"]
b = ["aaa" "bbb"] # comment
def c():
a = ["aaa" "bbb"] # comment
return a
print(a)
print(b)
print(c())
| data/flake8-no-implicit-concat-0.3.5/tests/run_flake8/blanklines.py | 127 | 68 | 387,813 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME shutil
STORE_NAME shutil
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 len
LOAD_NAME sys
LOAD_ATTR argv
CALL_FUNCTION
LOAD_CONST 3
COMPARE_OP !=
POP_JUMP_IF_FALSE
LOAD_NAME Excep... | import shutil
import sys
if __name__ == "__main__":
if len(sys.argv) != 3:
raise Exception("Requires exactly 2 args")
shutil.copy2(sys.argv[1], sys.argv[2])
| data/meson-1.3.2/test cases/common/143 list of file sources/gen.py | 132 | 68 | 82,005 |
LOAD_CONST 'Generated API for package: tensorflow_examples.lite.model_maker.core.data_util.image_searcher_dataloader.'
STORE_NAME __doc__
LOAD_CONST 0
LOAD_CONST ('*',)
IMPORT_NAME tensorflow_examples.lite.model_maker.core.data_util.image_searcher_dataloader
IMPORT_STAR
LOAD_CONST None
RETURN_VALUE | """Generated API for package: tensorflow_examples.lite.model_maker.core.data_util.image_searcher_dataloader."""
from tensorflow_examples.lite.model_maker.core.data_util.image_searcher_dataloader import *
| data/tflite-model-maker-nightly-0.4.4.dev202402210609/src/tflite_model_maker/python/core/data_util/image_searcher_dataloader.py | 88 | 68 | 389,372 |
LOAD_BUILD_CLASS
LOAD_CONST <code object Video at 0x7f8ece8a8ae0, file "f.py", line 1>
LOAD_CONST 'Video'
MAKE_FUNCTION
LOAD_CONST 'Video'
LOAD_NAME object
CALL_FUNCTION
STORE_NAME Video
LOAD_CONST None
RETURN_VALUE
LOAD_NAME __name__
STORE_NAME __module__
LOAD_CONST 'Video'
STORE_NAME __qualname__
LOAD_CONST 'Video ... | class Video(object):
"""Video object"""
def __init__(self):
self.embed_type = None
self.provider = None
self.width = None
self.height = None
self.embed_code = None
self.src = None
| data/newspaper3k-0.2.8/newspaper/videos/videos.py | 216 | 68 | 116,843 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME numpy
STORE_NAME np
LOAD_CONST 0
LOAD_CONST ('OpRunBinary',)
IMPORT_NAME onnx.reference.ops._op
IMPORT_FROM OpRunBinary
STORE_NAME OpRunBinary
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object Xor at 0x7fab823b29c0, file "f.py", line 6>
LOAD_CONST 'Xor'
MAKE_FUNCTION
LOAD_CONST... | import numpy as np
from onnx.reference.ops._op import OpRunBinary
class Xor(OpRunBinary):
def _run(self, x, y): # type: ignore
return (np.logical_xor(x, y),)
| data/onnx-simplifier-0.4.35/third_party/onnx-optimizer/third_party/onnx/onnx/reference/ops/op_xor.py | 214 | 68 | 309,544 |
LOAD_CONST 'Generated API for package: tensorflow_examples.lite.model_maker.third_party.efficientdet.keras.eval_tflite.'
STORE_NAME __doc__
LOAD_CONST 0
LOAD_CONST ('*',)
IMPORT_NAME tensorflow_examples.lite.model_maker.third_party.efficientdet.keras.eval_tflite
IMPORT_STAR
LOAD_CONST None
RETURN_VALUE | """Generated API for package: tensorflow_examples.lite.model_maker.third_party.efficientdet.keras.eval_tflite."""
from tensorflow_examples.lite.model_maker.third_party.efficientdet.keras.eval_tflite import *
| data/tflite-model-maker-nightly-0.4.4.dev202402210609/src/tflite_model_maker/python/third_party/efficientdet/keras/eval_tflite.py | 88 | 68 | 389,351 |
LOAD_CONST 'Generated API for package: tensorflow_examples.lite.model_maker.core.data_util.recommendation_dataloader.'
STORE_NAME __doc__
LOAD_CONST 0
LOAD_CONST ('*',)
IMPORT_NAME tensorflow_examples.lite.model_maker.core.data_util.recommendation_dataloader
IMPORT_STAR
LOAD_CONST None
RETURN_VALUE | """Generated API for package: tensorflow_examples.lite.model_maker.core.data_util.recommendation_dataloader."""
from tensorflow_examples.lite.model_maker.core.data_util.recommendation_dataloader import *
| data/tflite-model-maker-nightly-0.4.4.dev202402210609/src/tflite_model_maker/python/core/data_util/recommendation_dataloader.py | 88 | 68 | 389,377 |
LOAD_CONST <code object log_and_let_go at 0x7fab822f9e40, file "f.py", line 1>
LOAD_CONST 'log_and_let_go'
MAKE_FUNCTION
STORE_NAME log_and_let_go
LOAD_CONST 0
LOAD_CONST ('TwistedWebResource',)
IMPORT_NAME spyne.server.twisted.http
IMPORT_FROM TwistedWebResource
STORE_NAME TwistedWebResource
POP_TOP
LOAD_CONST 0
LOA... | def log_and_let_go(err, logger):
logger.error(err.getTraceback())
return err
from spyne.server.twisted.http import TwistedWebResource
from spyne.server.twisted.websocket import TwistedWebSocketResource
| data/spyne-2.14.0/spyne/server/twisted/__init__.py | 175 | 68 | 223,635 |
LOAD_CONST 'AUTOGENERATED. DO NOT EDIT.'
STORE_NAME __doc__
LOAD_CONST 0
LOAD_CONST ('deserialize_keras_object',)
IMPORT_NAME tf_keras.src.saving.legacy.serialization
IMPORT_FROM deserialize_keras_object
STORE_NAME deserialize_keras_object
POP_TOP
LOAD_CONST 0
LOAD_CONST ('serialize_keras_object',)
IMPORT_NAME tf_ker... | """AUTOGENERATED. DO NOT EDIT."""
from tf_keras.src.saving.legacy.serialization import deserialize_keras_object
from tf_keras.src.saving.legacy.serialization import serialize_keras_object
| data/tf_keras-nightly-2.17.0.dev2024022110/tf_keras/api/_v1/keras/utils/legacy/__init__.py | 137 | 68 | 165,183 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.