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 '\n DIRAC.ConfigurationSystem.Client.Helpers package\n'
STORE_NAME __doc__
LOAD_CONST 0
LOAD_CONST ('*',)
IMPORT_NAME DIRAC.ConfigurationSystem.Client.Helpers.Path
IMPORT_STAR
LOAD_CONST 0
LOAD_CONST ('getCSExtensions', 'getVO')
IMPORT_NAME DIRAC.ConfigurationSystem.Client.Helpers.CSGlobals
IMPORT_FROM get... | """
DIRAC.ConfigurationSystem.Client.Helpers package
"""
from DIRAC.ConfigurationSystem.Client.Helpers.Path import *
from DIRAC.ConfigurationSystem.Client.Helpers.CSGlobals import getCSExtensions, getVO
| data/DIRAC-8.0.38/src/DIRAC/ConfigurationSystem/Client/Helpers/__init__.py | 117 | 64 | 429,076 |
LOAD_CONST 0
LOAD_CONST ('Enum',)
IMPORT_NAME enum
IMPORT_FROM Enum
STORE_NAME Enum
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object CallTranscriptionState at 0x7fab70027660, file "f.py", line 4>
LOAD_CONST 'CallTranscriptionState'
MAKE_FUNCTION
LOAD_CONST 'CallTranscriptionState'
LOAD_NAME str
LOAD_NAME Enum
CALL_FUN... | from enum import Enum
class CallTranscriptionState(str, Enum):
NotStarted = ("notStarted",)
Active = ("active",)
Inactive = ("inactive",)
UnknownFutureValue = ("unknownFutureValue",)
| data/msgraph-sdk-1.1.0/msgraph/generated/models/call_transcription_state.py | 184 | 64 | 259,707 |
LOAD_CONST 2
LOAD_CONST ('ImageRenditionField',)
IMPORT_NAME fields
IMPORT_FROM ImageRenditionField
STORE_NAME ImageRenditionField
POP_TOP
LOAD_CONST 2
LOAD_CONST ('ImageSerializer',)
IMPORT_NAME v2.serializers
IMPORT_FROM ImageSerializer
STORE_NAME ImageSerializer
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object Adm... | from ..fields import ImageRenditionField
from ..v2.serializers import ImageSerializer
class AdminImageSerializer(ImageSerializer):
thumbnail = ImageRenditionField("max-165x165", source="*", read_only=True)
| data/wagtail-6.0.1/wagtail/images/api/admin/serializers.py | 203 | 64 | 199,907 |
LOAD_CONST 0
LOAD_CONST ('LLMThoughtLabeler', 'StreamlitCallbackHandler')
IMPORT_NAME streamlit.external.langchain.streamlit_callback_handler
IMPORT_FROM LLMThoughtLabeler
STORE_NAME LLMThoughtLabeler
IMPORT_FROM StreamlitCallbackHandler
STORE_NAME StreamlitCallbackHandler
POP_TOP
LOAD_CONST 'LLMThoughtLabeler'
LOAD_... | from streamlit.external.langchain.streamlit_callback_handler import (
LLMThoughtLabeler,
StreamlitCallbackHandler,
)
__all__ = [
"LLMThoughtLabeler",
"StreamlitCallbackHandler",
]
| data/streamlit-1.31.1/streamlit/external/langchain/__init__.py | 98 | 64 | 230,110 |
LOAD_CONST <code object ensure_fromlist at 0x7fab42ab7300, file "f.py", line 1>
LOAD_CONST 'ensure_fromlist'
MAKE_FUNCTION
STORE_NAME ensure_fromlist
LOAD_CONST None
RETURN_VALUE
SETUP_LOOP to 58
LOAD_FAST fromlist
GET_ITER
FOR_ITER to 56
STORE_FAST sub
LOAD_FAST sub
POP_JUMP_IF_FALSE
LOAD_GLOBAL recursive
POP_JUMP_... | def ensure_fromlist(self, fromlist):
for sub in fromlist:
if sub:
if not recursive:
try:
all = 5
except AttributeError:
pass
else:
all = 6
continue
| data/uncompyle6-3.9.0/test/simple_source/bug27+/04_loop_try_else.py | 160 | 64 | 441,946 |
LOAD_CONST 0
LOAD_CONST ('db',)
IMPORT_NAME south.db
IMPORT_FROM db
STORE_NAME db
POP_TOP
LOAD_CONST 0
LOAD_CONST ('models',)
IMPORT_NAME django.db
IMPORT_FROM models
STORE_NAME models
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object Migration at 0x7fab40da14b0, file "f.py", line 5>
LOAD_CONST 'Migration'
MAKE_FUNCTI... | from south.db import db
from django.db import models
class Migration:
depends_on = [("unknown", "0001_initial")]
def forwards(self):
pass
def backwards(self):
pass
| data/South-1.0.2/south/tests/brokenapp/migrations/0001_depends_on_unmigrated.py | 263 | 64 | 392,255 |
LOAD_CONST 0
LOAD_CONST ('BaseCommand',)
IMPORT_NAME django.core.management.base
IMPORT_FROM BaseCommand
STORE_NAME BaseCommand
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object Command at 0x7f8b2000bd20, file "f.py", line 4>
LOAD_CONST 'Command'
MAKE_FUNCTION
LOAD_CONST 'Command'
LOAD_NAME BaseCommand
CALL_FUNCTION
ST... | from django.core.management.base import BaseCommand
class Command(BaseCommand):
help = "Say hello."
args = ""
output_transaction = True
def handle(self, *args, **options):
return "Hello!"
| data/Django-5.0.2/tests/user_commands/management/commands/transaction.py | 199 | 64 | 325,980 |
LOAD_CONST 0
LOAD_CONST ('Enum',)
IMPORT_NAME enum
IMPORT_FROM Enum
STORE_NAME Enum
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object ConditionalAccessStatus at 0x7fab70027420, file "f.py", line 4>
LOAD_CONST 'ConditionalAccessStatus'
MAKE_FUNCTION
LOAD_CONST 'ConditionalAccessStatus'
LOAD_NAME str
LOAD_NAME Enum
CALL_... | from enum import Enum
class ConditionalAccessStatus(str, Enum):
Success = ("success",)
Failure = ("failure",)
NotApplied = ("notApplied",)
UnknownFutureValue = ("unknownFutureValue",)
| data/msgraph-sdk-1.1.0/msgraph/generated/models/conditional_access_status.py | 180 | 64 | 259,719 |
LOAD_CONST 0
LOAD_CONST ('VolcEngineMaasChat', 'convert_dict_to_message')
IMPORT_NAME langchain_community.chat_models.volcengine_maas
IMPORT_FROM VolcEngineMaasChat
STORE_NAME VolcEngineMaasChat
IMPORT_FROM convert_dict_to_message
STORE_NAME convert_dict_to_message
POP_TOP
LOAD_CONST 'convert_dict_to_message'
LOAD_CON... | from langchain_community.chat_models.volcengine_maas import (
VolcEngineMaasChat,
convert_dict_to_message,
)
__all__ = ["convert_dict_to_message", "VolcEngineMaasChat"]
| data/langchain-0.1.8/langchain/chat_models/volcengine_maas.py | 110 | 64 | 368,835 |
LOAD_CONST 'Generated API for package: tensorflow_examples.lite.model_maker.third_party.efficientdet.keras.train_lib.'
STORE_NAME __doc__
LOAD_CONST 0
LOAD_CONST ('*',)
IMPORT_NAME tensorflow_examples.lite.model_maker.third_party.efficientdet.keras.train_lib
IMPORT_STAR
LOAD_CONST None
RETURN_VALUE | """Generated API for package: tensorflow_examples.lite.model_maker.third_party.efficientdet.keras.train_lib."""
from tensorflow_examples.lite.model_maker.third_party.efficientdet.keras.train_lib import *
| data/tflite-model-maker-0.4.3/src/tflite_model_maker/python/third_party/efficientdet/keras/train_lib.py | 84 | 64 | 401,254 |
LOAD_CONST 1
LOAD_CONST ('OFTConfig',)
IMPORT_NAME config
IMPORT_FROM OFTConfig
STORE_NAME OFTConfig
POP_TOP
LOAD_CONST 1
LOAD_CONST ('Conv2d', 'Linear', 'OFTLayer')
IMPORT_NAME layer
IMPORT_FROM Conv2d
STORE_NAME Conv2d
IMPORT_FROM Linear
STORE_NAME Linear
IMPORT_FROM OFTLayer
STORE_NAME OFTLayer
POP_TOP
LOAD_CONST ... | from .config import OFTConfig
from .layer import Conv2d, Linear, OFTLayer
from .model import OFTModel
__all__ = ["OFTConfig", "OFTModel", "Conv2d", "Linear", "OFTLayer"]
| data/peft-0.8.2/src/peft/tuners/oft/__init__.py | 158 | 64 | 11,714 |
LOAD_CONST <code object normalize at 0x7fab703bbb70, file "f.py", line 1>
LOAD_CONST 'normalize'
MAKE_FUNCTION
STORE_NAME normalize
LOAD_CONST None
RETURN_VALUE
LOAD_FAST tensor
LOAD_METHOD sub_
LOAD_FAST mean
CALL_METHOD
LOAD_METHOD div_
LOAD_FAST std
CALL_METHOD
POP_TOP
LOAD_FAST tensor
RETURN_VALUE | def normalize(tensor, mean, std):
"""
Args:
tensor (Tensor): Tensor to normalize
Returns:
Tensor: Normalized tensor
"""
tensor.sub_(mean).div_(std)
return tensor
| data/gluoncv-0.10.5.post0/gluoncv/torch/data/transforms/videotransforms/utils/functional.py | 79 | 64 | 207,410 |
LOAD_CONST 0
LOAD_CONST ('Final',)
IMPORT_NAME typing
IMPORT_FROM Final
STORE_NAME Final
POP_TOP
LOAD_CONST 0
LOAD_CONST ('Component',)
IMPORT_NAME localstack.services.stepfunctions.asl.component.component
IMPORT_FROM Component
STORE_NAME Component
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object DefaultDecl at 0x7fa... | from typing import Final
from localstack.services.stepfunctions.asl.component.component import Component
class DefaultDecl(Component):
def __init__(self, state_name: str):
self.state_name: Final[str] = state_name
| data/localstack-core-3.1.0/localstack/services/stepfunctions/asl/component/state/state_choice/default_decl.py | 231 | 64 | 225,322 |
LOAD_CONST 3
LOAD_CONST ('_utilities',)
IMPORT_NAME
IMPORT_FROM _utilities
STORE_NAME _utilities
POP_TOP
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME typing
STORE_NAME typing
LOAD_CONST 1
LOAD_CONST ('*',)
IMPORT_NAME HorizontalPodAutoscaler
IMPORT_STAR
LOAD_CONST 1
LOAD_CONST ('*',)
IMPORT_NAME HorizontalPodAutoscalerL... | from ... import _utilities
import typing
from .HorizontalPodAutoscaler import *
from .HorizontalPodAutoscalerList import *
from .HorizontalPodAutoscalerPatch import *
from ._inputs import *
from . import outputs
| data/pulumi_kubernetes-4.7.1/pulumi_kubernetes/autoscaling/v2/__init__.py | 154 | 64 | 124,388 |
LOAD_CONST 'Contains main apispec classes: `APISpec` and `BasePlugin`'
STORE_NAME __doc__
LOAD_CONST 1
LOAD_CONST ('APISpec',)
IMPORT_NAME core
IMPORT_FROM APISpec
STORE_NAME APISpec
POP_TOP
LOAD_CONST 1
LOAD_CONST ('BasePlugin',)
IMPORT_NAME plugin
IMPORT_FROM BasePlugin
STORE_NAME BasePlugin
POP_TOP
LOAD_CONST '6.... | """Contains main apispec classes: `APISpec` and `BasePlugin`"""
from .core import APISpec
from .plugin import BasePlugin
__version__ = "6.4.0"
__all__ = ["APISpec", "BasePlugin"]
| data/apispec-6.4.0/src/apispec/__init__.py | 120 | 64 | 401,857 |
LOAD_CONST 3
LOAD_CONST ('_utilities',)
IMPORT_NAME
IMPORT_FROM _utilities
STORE_NAME _utilities
POP_TOP
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME typing
STORE_NAME typing
LOAD_CONST 1
LOAD_CONST ('*',)
IMPORT_NAME HorizontalPodAutoscaler
IMPORT_STAR
LOAD_CONST 1
LOAD_CONST ('*',)
IMPORT_NAME HorizontalPodAutoscalerL... | from ... import _utilities
import typing
from .HorizontalPodAutoscaler import *
from .HorizontalPodAutoscalerList import *
from .HorizontalPodAutoscalerPatch import *
from ._inputs import *
from . import outputs
| data/pulumi_kubernetes-4.7.1/pulumi_kubernetes/autoscaling/v1/__init__.py | 154 | 64 | 124,376 |
LOAD_CONST 3
LOAD_CONST ('_utilities',)
IMPORT_NAME
IMPORT_FROM _utilities
STORE_NAME _utilities
POP_TOP
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME typing
STORE_NAME typing
LOAD_CONST 1
LOAD_CONST ('*',)
IMPORT_NAME HorizontalPodAutoscaler
IMPORT_STAR
LOAD_CONST 1
LOAD_CONST ('*',)
IMPORT_NAME HorizontalPodAutoscalerL... | from ... import _utilities
import typing
from .HorizontalPodAutoscaler import *
from .HorizontalPodAutoscalerList import *
from .HorizontalPodAutoscalerPatch import *
from ._inputs import *
from . import outputs
| data/pulumi_kubernetes-4.7.1/pulumi_kubernetes/autoscaling/v2beta2/__init__.py | 154 | 64 | 124,382 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME StoreKit
STORE_NAME StoreKit
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 TestSKProductsRequest at 0x7fab821949c0, file "f.py", line 5>
LOAD_CONST 'TestSKProd... | import StoreKit # noqa: F401
from PyObjCTools.TestSupport import TestCase
class TestSKProductsRequest(TestCase):
def test_protocols(self):
self.assertProtocolExists("SKProductsRequestDelegate")
| data/pyobjc-framework-StoreKit-10.1/PyObjCTest/test_skproductsrequest.py | 241 | 64 | 41,074 |
LOAD_CONST 0
LOAD_CONST ('StreamingContext',)
IMPORT_NAME pyspark.streaming.context
IMPORT_FROM StreamingContext
STORE_NAME StreamingContext
POP_TOP
LOAD_CONST 0
LOAD_CONST ('DStream',)
IMPORT_NAME pyspark.streaming.dstream
IMPORT_FROM DStream
STORE_NAME DStream
POP_TOP
LOAD_CONST 0
LOAD_CONST ('StreamingListener',)
... | from pyspark.streaming.context import StreamingContext
from pyspark.streaming.dstream import DStream
from pyspark.streaming.listener import StreamingListener
__all__ = ["StreamingContext", "DStream", "StreamingListener"]
| data/tecton-0.8.5/tecton/vendor/pyspark/pyspark/streaming/__init__.py | 136 | 64 | 235,171 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME abc
STORE_NAME abc
LOAD_CONST 0
LOAD_CONST ('Component',)
IMPORT_NAME localstack.services.stepfunctions.asl.component.component
IMPORT_FROM Component
STORE_NAME Component
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object FunctionName at 0x7fab70306ae0, file "f.py", line 6>
LOAD... | import abc
from localstack.services.stepfunctions.asl.component.component import Component
class FunctionName(Component, abc.ABC):
name: str
def __init__(self, name: str):
self.name = name
| data/localstack-core-3.1.0/localstack/services/stepfunctions/asl/component/intrinsic/functionname/function_name.py | 244 | 64 | 225,257 |
LOAD_CONST 1
LOAD_CONST ('LoHaConfig',)
IMPORT_NAME config
IMPORT_FROM LoHaConfig
STORE_NAME LoHaConfig
POP_TOP
LOAD_CONST 1
LOAD_CONST ('Conv2d', 'Linear', 'LoHaLayer')
IMPORT_NAME layer
IMPORT_FROM Conv2d
STORE_NAME Conv2d
IMPORT_FROM Linear
STORE_NAME Linear
IMPORT_FROM LoHaLayer
STORE_NAME LoHaLayer
POP_TOP
LOAD_... | from .config import LoHaConfig
from .layer import Conv2d, Linear, LoHaLayer
from .model import LoHaModel
__all__ = ["LoHaConfig", "LoHaModel", "Conv2d", "Linear", "LoHaLayer"]
| data/peft-0.8.2/src/peft/tuners/loha/__init__.py | 158 | 64 | 11,743 |
LOAD_CONST 'This module defines object specific to BSD platform.'
STORE_NAME __doc__
LOAD_CONST 0
LOAD_CONST ('annotations',)
IMPORT_NAME __future__
IMPORT_FROM annotations
STORE_NAME annotations
POP_TOP
LOAD_CONST 1
LOAD_CONST ('unix',)
IMPORT_NAME
IMPORT_FROM unix
STORE_NAME unix
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONS... | """This module defines object specific to BSD platform."""
from __future__ import annotations
from . import unix
class BSDPlatform(unix.UnixPlatform):
"""BSD implementation of :class:`.abstract.CMakePlatform`."""
| data/scikit_build-0.17.6/skbuild/platform_specifics/bsd.py | 197 | 64 | 198,950 |
LOAD_CONST '\nGeneric provides the possibility of load an image to be presented as a node.\n'
STORE_NAME __doc__
LOAD_CONST 0
LOAD_CONST ('Node',)
IMPORT_NAME diagrams
IMPORT_FROM Node
STORE_NAME Node
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object _Generic at 0x7fab703bb9c0, file "f.py", line 8>
LOAD_CONST '_Generi... | """
Generic provides the possibility of load an image to be presented as a node.
"""
from diagrams import Node
class _Generic(Node):
provider = "generic"
_icon_dir = "resources/generic"
fontcolor = "#ffffff"
| data/diagrams-0.23.4/diagrams/generic/__init__.py | 169 | 64 | 206,029 |
LOAD_CONST '2.2.0'
STORE_NAME __version__
LOAD_CONST 1
LOAD_CONST ('InitializationError',)
IMPORT_NAME exceptions
IMPORT_FROM InitializationError
STORE_NAME InitializationError
POP_TOP
LOAD_CONST 1
LOAD_CONST ('generate', 'generate_slug', 'get_combinations_count', 'RandomGenerator', 'replace_random')
IMPORT_NAME impl... | __version__ = "2.2.0"
from .exceptions import InitializationError
from .impl import (
generate,
generate_slug,
get_combinations_count,
RandomGenerator,
replace_random,
)
| data/coolname-2.2.0/coolname/__init__.py | 140 | 64 | 156,473 |
LOAD_CONST '!\n\n@brief Collection of examples devoted to containers.\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 Collection of examples devoted to containers.
@authors Andrei Novikov (pyclustering@yandex.ru)
@date 2014-2020
@copyright BSD-3-Clause
"""
| data/pyclustering-0.10.1.2/pyclustering/container/examples/__init__.py | 79 | 64 | 23,195 |
LOAD_CONST 'Reimports a helpful dataset wrapper to allow operations such as summarizing data, taking the subset or sampling.'
STORE_NAME __doc__
LOAD_CONST 0
LOAD_CONST ('CustomTimestampFeaturizer', 'DatasetWrapper')
IMPORT_NAME ml_wrappers.dataset
IMPORT_FROM CustomTimestampFeaturizer
STORE_NAME CustomTimestampFeatur... | """Reimports a helpful dataset wrapper to allow operations such as summarizing data, taking the subset or sampling."""
from ml_wrappers.dataset import CustomTimestampFeaturizer, DatasetWrapper
__all__ = ["CustomTimestampFeaturizer", "DatasetWrapper"]
| data/interpret_community-0.31.0/interpret_community/dataset/dataset_wrapper/__init__.py | 114 | 64 | 125,161 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME doctest
STORE_NAME doctest
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME unittest
STORE_NAME unittest
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME phonenumbers.pb2
STORE_NAME phonenumbers
LOAD_CONST 0
LOAD_CONST ('*',)
IMPORT_NAME tests.pb2
IMPORT_STAR
LOAD_NAME __name__
LOAD_CONST '... | import doctest
import unittest
import phonenumbers.pb2
from tests.pb2 import *
if __name__ == "__main__":
doctest.testmod(phonenumbers.pb2)
unittest.main()
| data/phonenumbers-8.13.30/testpb2.py | 135 | 64 | 122,351 |
LOAD_CONST 0
LOAD_CONST ('Bit',)
IMPORT_NAME beanie.odm.operators.update.bitwise
IMPORT_FROM Bit
STORE_NAME Bit
POP_TOP
LOAD_CONST 0
LOAD_CONST ('Sample',)
IMPORT_NAME tests.odm.models
IMPORT_FROM Sample
STORE_NAME Sample
POP_TOP
LOAD_CONST <code object test_bit at 0x7f8e2fe41540, file "f.py", line 5>
LOAD_CONST 'tes... | from beanie.odm.operators.update.bitwise import Bit
from tests.odm.models import Sample
def test_bit():
q = Bit({Sample.integer: 2})
assert q == {"$bit": {"integer": 2}}
| data/beanie-1.25.0/tests/odm/operators/update/test_bitwise.py | 175 | 64 | 323,699 |
LOAD_CONST 'Deprecated module'
STORE_NAME __doc__
LOAD_CONST 3
LOAD_CONST ('log',)
IMPORT_NAME log
IMPORT_FROM log
STORE_NAME log
POP_TOP
LOAD_NAME log
LOAD_METHOD warning
LOAD_CONST "The module 'plugins.dispersion.fit_web' has been deprecated in favor of 'plugins.dispersion.web' and will be removed in future versio... | """Deprecated module"""
from ...log import log
log.warning(
"The module 'plugins.dispersion.fit_web' has been deprecated in favor of "
"'plugins.dispersion.web' and will be removed in future versions."
)
| data/tidy3d-2.5.2/tidy3d/plugins/dispersion/fit_web.py | 91 | 65 | 206,262 |
LOAD_CONST 1
LOAD_CONST ('AnnoyANN',)
IMPORT_NAME recom_ann_annoy
IMPORT_FROM AnnoyANN
STORE_NAME AnnoyANN
POP_TOP
LOAD_CONST 1
LOAD_CONST ('FaissANN',)
IMPORT_NAME recom_ann_faiss
IMPORT_FROM FaissANN
STORE_NAME FaissANN
POP_TOP
LOAD_CONST 1
LOAD_CONST ('HNSWLibANN',)
IMPORT_NAME recom_ann_hnswlib
IMPORT_FROM HNSWLi... | from .recom_ann_annoy import AnnoyANN
from .recom_ann_faiss import FaissANN
from .recom_ann_hnswlib import HNSWLibANN
from .recom_ann_scann import ScaNNANN
| data/cornac-1.18.0/cornac/models/ann/__init__.py | 159 | 65 | 222,715 |
LOAD_CONST 0
LOAD_CONST ('setup',)
IMPORT_NAME distutils.core
IMPORT_FROM setup
STORE_NAME setup
POP_TOP
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME snip_basic_verify
STORE_NAME snip_basic_verify
LOAD_NAME setup
LOAD_CONST 'snip_basic_verify'
BUILD_LIST
LOAD_NAME snip_basic_verify
LOAD_ATTR ffi
LOAD_ATTR verifier
LOAD... | from distutils.core import setup
import snip_basic_verify
setup(
py_modules=["snip_basic_verify"],
ext_modules=[snip_basic_verify.ffi.verifier.get_extension()],
)
| data/cffi-1.16.0/testing/cffi0/snippets/distutils_module/setup.py | 116 | 65 | 54,128 |
LOAD_CONST '\nAzure provides a set of services for Microsoft Azure provider.\n'
STORE_NAME __doc__
LOAD_CONST 0
LOAD_CONST ('Node',)
IMPORT_NAME diagrams
IMPORT_FROM Node
STORE_NAME Node
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object _Azure at 0x7fab81fc6e40, file "f.py", line 8>
LOAD_CONST '_Azure'
MAKE_FUNCTION
L... | """
Azure provides a set of services for Microsoft Azure provider.
"""
from diagrams import Node
class _Azure(Node):
_provider = "azure"
_icon_dir = "resources/azure"
fontcolor = "#ffffff"
| data/diagrams-0.23.4/diagrams/azure/__init__.py | 174 | 65 | 206,092 |
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 ScreenCaptureKit
STORE_NAME ScreenCaptureKit
LOAD_BUILD_CLASS
LOAD_CONST <code object TestCallableMetadata at 0x7fab427a1c90, file "f.py", line 6>
LOAD_CO... | from PyObjCTools.TestSupport import TestCase
import ScreenCaptureKit
class TestCallableMetadata(TestCase):
def test_callable_metadata_is_sane(self):
self.assertCallableMetadataIsSane(ScreenCaptureKit)
| data/pyobjc-framework-ScreenCaptureKit-10.1/PyObjCTest/test_screencaputurekit.py | 258 | 65 | 439,229 |
LOAD_CONST 0
LOAD_CONST ('OpenDocumentText',)
IMPORT_NAME odf.opendocument
IMPORT_FROM OpenDocumentText
STORE_NAME OpenDocumentText
POP_TOP
LOAD_CONST 0
LOAD_CONST ('P',)
IMPORT_NAME odf.text
IMPORT_FROM P
STORE_NAME P
POP_TOP
LOAD_NAME OpenDocumentText
CALL_FUNCTION
STORE_NAME textdoc
LOAD_NAME P
LOAD_CONST 'Hello ... | from odf.opendocument import OpenDocumentText
from odf.text import P
textdoc = OpenDocumentText()
p = P(text="Hello World!")
textdoc.text.addElement(p)
textdoc.save("helloworld", True)
| data/odfpy-1.4.1/examples/helloworld.py | 136 | 65 | 428,698 |
LOAD_CONST 0
LOAD_CONST ('collect_submodules',)
IMPORT_NAME PyInstaller.utils.hooks
IMPORT_FROM collect_submodules
STORE_NAME collect_submodules
POP_TOP
BUILD_LIST
STORE_NAME hiddenimports
SETUP_LOOP to 54
LOAD_NAME collect_submodules
LOAD_CONST 'iminuit'
CALL_FUNCTION
GET_ITER
FOR_ITER to 52
STORE_NAME mod
LOAD_NAM... | from PyInstaller.utils.hooks import collect_submodules
hiddenimports = []
for mod in collect_submodules("iminuit"):
if not mod.startswith("iminuit.tests"):
hiddenimports.append(mod)
| data/pyinstaller-hooks-contrib-2024.1/src/_pyinstaller_hooks_contrib/hooks/stdhooks/hook-iminuit.py | 125 | 65 | 282,426 |
LOAD_CONST 0
LOAD_CONST ('Model',)
IMPORT_NAME msrest.serialization
IMPORT_FROM Model
STORE_NAME Model
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object AccessControlListsCollection at 0x7fab8237f0c0, file "f.py", line 4>
LOAD_CONST 'AccessControlListsCollection'
MAKE_FUNCTION
LOAD_CONST 'AccessControlListsCollection'
... | from msrest.serialization import Model
class AccessControlListsCollection(Model):
"""AccessControlListsCollection."""
_attribute_map = {}
def __init__(self):
super(AccessControlListsCollection, self).__init__()
| data/vsts-0.1.25/vsts/security/v4_0/models/access_control_lists_collection.py | 256 | 65 | 66,249 |
LOAD_CONST 0
LOAD_CONST ('setup',)
IMPORT_NAME setuptools
IMPORT_FROM setup
STORE_NAME setup
POP_TOP
LOAD_NAME setup
LOAD_CONST 'featuretools_plugin'
LOAD_CONST 'featuretools_plugin'
BUILD_LIST
LOAD_CONST 'featuretools_plugin'
LOAD_CONST 'module = featuretools_plugin'
BUILD_LIST
BUILD_MAP
LOAD_CONST ('name', 'pack... | from setuptools import setup
setup(
name="featuretools_plugin",
packages=["featuretools_plugin"],
entry_points={
"featuretools_plugin": [
"module = featuretools_plugin",
],
},
)
| data/featuretools-1.29.0/featuretools/tests/entry_point_tests/add-ons/featuretools_plugin/setup.py | 92 | 65 | 421,916 |
LOAD_CONST 1
LOAD_CONST ('__version__',)
IMPORT_NAME _version
IMPORT_FROM __version__
STORE_NAME __version__
POP_TOP
LOAD_CONST 1
LOAD_CONST ('EVENTS_METADATA_VERSION', 'EventLogger')
IMPORT_NAME logger
IMPORT_FROM EVENTS_METADATA_VERSION
STORE_NAME EVENTS_METADATA_VERSION
IMPORT_FROM EventLogger
STORE_NAME EventLogge... | from ._version import __version__
from .logger import EVENTS_METADATA_VERSION, EventLogger
from .schema import EventSchema
__all__ = ["__version__", "EVENTS_METADATA_VERSION", "EventLogger", "EventSchema"]
| data/jupyter_events-0.9.0/jupyter_events/__init__.py | 157 | 65 | 136,177 |
LOAD_CONST '_BatchClient'
LOAD_CONST '_BatchCollection'
LOAD_CONST '_BatchGRPC'
LOAD_CONST '_BatchREST'
BUILD_LIST
STORE_NAME __all__
LOAD_CONST 1
LOAD_CONST ('_BatchClient',)
IMPORT_NAME client
IMPORT_FROM _BatchClient
STORE_NAME _BatchClient
POP_TOP
LOAD_CONST 1
LOAD_CONST ('_BatchCollection',)
IMPORT_NAME collecti... | __all__ = ["_BatchClient", "_BatchCollection", "_BatchGRPC", "_BatchREST"]
from .client import _BatchClient
from .collection import _BatchCollection
from .grpc_batch_objects import _BatchGRPC
from .rest import _BatchREST
| data/weaviate-client-4.4.4/weaviate/collections/batch/__init__.py | 161 | 65 | 448,606 |
LOAD_CONST 0
LOAD_CONST ('db',)
IMPORT_NAME south.db
IMPORT_FROM db
STORE_NAME db
POP_TOP
LOAD_CONST 0
LOAD_CONST ('models',)
IMPORT_NAME django.db
IMPORT_FROM models
STORE_NAME models
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object Migration at 0x7fab40da14b0, file "f.py", line 5>
LOAD_CONST 'Migration'
MAKE_FUNCTI... | from south.db import db
from django.db import models
class Migration:
depends_on = [("fakeapp", "9999_unknown")]
def forwards(self):
pass
def backwards(self):
pass
| data/South-1.0.2/south/tests/brokenapp/migrations/0002_depends_on_unknown.py | 265 | 65 | 392,256 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME pytensor.tensor.random.rewriting
STORE_NAME pytensor
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME pytensor.tensor.random.utils
STORE_NAME pytensor
LOAD_CONST 0
LOAD_CONST ('*',)
IMPORT_NAME pytensor.tensor.random.basic
IMPORT_STAR
LOAD_CONST 0
LOAD_CONST ('RandomState', 'default_... | import pytensor.tensor.random.rewriting
import pytensor.tensor.random.utils
from pytensor.tensor.random.basic import *
from pytensor.tensor.random.op import RandomState, default_rng
from pytensor.tensor.random.utils import RandomStream
| data/pytensor-2.18.6/pytensor/tensor/random/__init__.py | 153 | 65 | 88,398 |
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 CoreHaptics
STORE_NAME CoreHaptics
LOAD_BUILD_CLASS
LOAD_CONST <code object TestCallableMetadata at 0x7fab8237f030, file "f.py", line 6>
LOAD_CONST 'TestC... | from PyObjCTools.TestSupport import TestCase
import CoreHaptics
class TestCallableMetadata(TestCase):
def test_callable_metadata_is_sane(self):
self.assertCallableMetadataIsSane(CoreHaptics)
| data/pyobjc-framework-CoreHaptics-10.1/PyObjCTest/test_corehaptics.py | 257 | 65 | 68,539 |
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 CoreMIDI
STORE_NAME CoreMIDI
LOAD_BUILD_CLASS
LOAD_CONST <code object TestCallableMetadata at 0x7fab8234aa50, file "f.py", line 6>
LOAD_CONST 'TestCallabl... | from PyObjCTools.TestSupport import TestCase
import CoreMIDI
class TestCallableMetadata(TestCase):
def test_callable_metadata_is_sane(self):
self.assertCallableMetadataIsSane(CoreMIDI)
| data/pyobjc-framework-CoreMIDI-10.1/PyObjCTest/test_coremidi.py | 256 | 65 | 143,353 |
LOAD_CONST 0
LOAD_CONST ('__version__',)
IMPORT_NAME google.protobuf
IMPORT_FROM __version__
STORE_NAME __version__
POP_TOP
LOAD_NAME __version__
LOAD_METHOD startswith
LOAD_CONST '4'
CALL_METHOD
POP_JUMP_IF_FALSE
LOAD_CONST 1
LOAD_CONST ('*',)
IMPORT_NAME _generated_pb4.service_pb2_grpc
IMPORT_STAR
JUMP_FORWARD to 4... | from google.protobuf import __version__
if __version__.startswith("4"):
from ._generated_pb4.service_pb2_grpc import *
else:
from ._generated_pb3.service_pb2_grpc import *
| data/bentoml-1.2.4/src/bentoml/grpc/v1alpha1/service_pb2_grpc.py | 116 | 65 | 104,162 |
LOAD_CONST 0
LOAD_CONST ('annotations',)
IMPORT_NAME __future__
IMPORT_FROM annotations
STORE_NAME annotations
POP_TOP
LOAD_CONST 0
LOAD_CONST ('Extension', 'setup')
IMPORT_NAME setuptools
IMPORT_FROM Extension
STORE_NAME Extension
IMPORT_FROM setup
STORE_NAME setup
POP_TOP
LOAD_NAME setup
LOAD_CONST 'testsimple'
L... | from __future__ import annotations
from setuptools import Extension, setup
setup(
name="testsimple",
version="0.0.1",
ext_modules=[Extension("testsimple", sources=["testsimple.c"])],
)
| data/auditwheel-6.0.0/tests/integration/testsimple/setup.py | 130 | 65 | 133,312 |
LOAD_CONST 1
LOAD_CONST ('BaseCompressor',)
IMPORT_NAME base
IMPORT_FROM BaseCompressor
STORE_NAME BaseCompressor
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object IdentityCompressor at 0x7fab82363780, file "f.py", line 4>
LOAD_CONST 'IdentityCompressor'
MAKE_FUNCTION
LOAD_CONST 'IdentityCompressor'
LOAD_NAME BaseCompr... | from .base import BaseCompressor
class IdentityCompressor(BaseCompressor):
def compress(self, value: bytes) -> bytes:
return value
def decompress(self, value: bytes) -> bytes:
return value
| data/django-redis-5.4.0/django_redis/compressors/identity.py | 282 | 65 | 379,204 |
LOAD_CONST 0
LOAD_CONST ('Enum',)
IMPORT_NAME enum
IMPORT_FROM Enum
STORE_NAME Enum
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object NotificationDeliveryFrequency at 0x7fae471296f0, file "f.py", line 4>
LOAD_CONST 'NotificationDeliveryFrequency'
MAKE_FUNCTION
LOAD_CONST 'NotificationDeliveryFrequency'
LOAD_NAME str
LO... | from enum import Enum
class NotificationDeliveryFrequency(str, Enum):
Unknown = ("unknown",)
Weekly = ("weekly",)
BiWeekly = ("biWeekly",)
UnknownFutureValue = ("unknownFutureValue",)
| data/msgraph-sdk-1.1.0/msgraph/generated/models/notification_delivery_frequency.py | 186 | 65 | 261,797 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME Security
STORE_NAME Security
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 Testcssmdli at 0x7f8ab62f54b0, file "f.py", line 5>
LOAD_CONST 'Testcssmdli'
MAKE_FU... | import Security
from PyObjCTools.TestSupport import TestCase
class Testcssmdli(TestCase):
def test_unsuppported(self):
self.assertFalse(hasattr(Security, "CSSM_SPI_DL_FUNCS"))
| data/pyobjc-framework-Security-10.1/PyObjCTest/test_cssmdli.py | 252 | 65 | 335,677 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME Security
STORE_NAME Security
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 Testcssmtpi at 0x7f8e2fc186f0, file "f.py", line 5>
LOAD_CONST 'Testcssmtpi'
MAKE_FU... | import Security
from PyObjCTools.TestSupport import TestCase
class Testcssmtpi(TestCase):
def test_unsuppported(self):
self.assertFalse(hasattr(Security, "CSSM_SPI_TP_FUNCS"))
| data/pyobjc-framework-Security-10.1/PyObjCTest/test_cssmtpi.py | 253 | 65 | 335,689 |
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 SyntexModelsLandingInfo at 0x7fab700e4390, file "f.py", line 4>
LOAD_CONST 'SyntexModelsLandingInfo'
MAKE_FUNCTION
LOAD_CONST 'SyntexModelsLandingInfo'
LOAD_... | from office365.sharepoint.entity import Entity
class SyntexModelsLandingInfo(Entity):
@property
def entity_type_name(self):
return "Microsoft.Office.Server.ContentCenter.SyntexModelsLandingInfo"
| data/Office365-REST-Python-Client-2.5.5/office365/sharepoint/contentcenter/syntex_models_landing_info.py | 240 | 65 | 189,696 |
LOAD_CONST 0
LOAD_CONST ('annotations',)
IMPORT_NAME __future__
IMPORT_FROM annotations
STORE_NAME annotations
POP_TOP
LOAD_CONST 0
LOAD_CONST ('TYPE_CHECKING',)
IMPORT_NAME typing
IMPORT_FROM TYPE_CHECKING
STORE_NAME TYPE_CHECKING
POP_TOP
LOAD_NAME TYPE_CHECKING
POP_JUMP_IF_FALSE
LOAD_CONST 0
LOAD_CONST ('LinodeCli... | from __future__ import annotations
from typing import TYPE_CHECKING
if TYPE_CHECKING:
from linode_api4 import LinodeClient
class Group:
def __init__(self, client: LinodeClient):
self.client = client
| data/linode_api4-5.12.1/linode_api4/groups/group.py | 262 | 65 | 138,563 |
LOAD_CONST <code object return_return_bug at 0x7faa5f271b70, file "f.py", line 1>
LOAD_CONST 'return_return_bug'
MAKE_FUNCTION
STORE_NAME return_return_bug
LOAD_NAME return_return_bug
LOAD_CONST 'say_hello'
CALL_FUNCTION
LOAD_CONST 'hello'
COMPARE_OP ==
POP_JUMP_IF_TRUE
LOAD_GLOBAL AssertionError
RAISE_VARARGS
LOAD_N... | def return_return_bug(foo):
if foo == "say_hello":
return "hello"
return "world"
assert return_return_bug("say_hello") == "hello"
assert return_return_bug("world") == "world"
| data/uncompyle6-3.9.0/test/simple_source/bug36/00_return_return_bug.py | 157 | 65 | 441,985 |
LOAD_CONST 0
LOAD_CONST ('include', 'path')
IMPORT_NAME django.urls
IMPORT_FROM include
STORE_NAME include
IMPORT_FROM path
STORE_NAME path
POP_TOP
LOAD_CONST 1
LOAD_CONST ('MockView',)
IMPORT_NAME views
IMPORT_FROM MockView
STORE_NAME MockView
POP_TOP
LOAD_NAME path
LOAD_CONST ''
LOAD_NAME MockView
LOAD_METHOD as_vi... | from django.urls import include, path
from .views import MockView
urlpatterns = [
path("", MockView.as_view()),
path("auth/", include("rest_framework.urls", namespace="rest_framework")),
]
| data/djangorestframework-3.14.0/tests/browsable_api/auth_urls.py | 130 | 65 | 77,642 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME sys
STORE_NAME sys
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME numpy
STORE_NAME np
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME pandas
STORE_NAME pd
LOAD_NAME sys
LOAD_ATTR path
LOAD_METHOD append
LOAD_CONST '/Users/naftali/'
CALL_METHOD
POP_TOP
LOAD_CONST 0
LOAD_CONST ('Nostradamu... | import sys
import numpy as np
import pandas as pd
sys.path.append("/Users/naftali/") # path to nostradamus library
from nostradamus.forecaster import Nostradamus
Nostradamus()
| data/nostradamus-0.1/nostradamus/example.py | 126 | 65 | 174,440 |
LOAD_CONST 1
LOAD_CONST ('SHARED_CONTAINER_CONTEXT_SCHEMA', 'process_shared_container_context_config')
IMPORT_NAME config
IMPORT_FROM SHARED_CONTAINER_CONTEXT_SCHEMA
STORE_NAME SHARED_CONTAINER_CONTEXT_SCHEMA
IMPORT_FROM process_shared_container_context_config
STORE_NAME process_shared_container_context_config
POP_TOP
... | from .config import (
SHARED_CONTAINER_CONTEXT_SCHEMA as SHARED_CONTAINER_CONTEXT_SCHEMA,
process_shared_container_context_config as process_shared_container_context_config,
)
| data/dagster-1.6.5/dagster/_core/container_context/__init__.py | 100 | 65 | 54,671 |
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 CoreBluetooth
STORE_NAME CoreBluetooth
LOAD_BUILD_CLASS
LOAD_CONST <code object TestCallableMetadata at 0x7fab70239030, file "f.py", line 6>
LOAD_CONST 'T... | from PyObjCTools.TestSupport import TestCase
import CoreBluetooth
class TestCallableMetadata(TestCase):
def test_callable_metadata_is_sane(self):
self.assertCallableMetadataIsSane(CoreBluetooth)
| data/pyobjc-framework-CoreBluetooth-10.1/PyObjCTest/test_corebluetooth.py | 258 | 65 | 417,061 |
LOAD_CONST 0
LOAD_CONST ('admin',)
IMPORT_NAME django.contrib
IMPORT_FROM admin
STORE_NAME admin
POP_TOP
LOAD_CONST 0
LOAD_CONST ('models',)
IMPORT_NAME django_notify
IMPORT_FROM models
STORE_NAME models
POP_TOP
LOAD_NAME admin
LOAD_ATTR site
LOAD_METHOD register
LOAD_NAME models
LOAD_ATTR NotificationType
CALL_METHO... | from django.contrib import admin
from django_notify import models
admin.site.register(models.NotificationType)
admin.site.register(models.Notification)
admin.site.register(models.Settings)
admin.site.register(models.Subscription)
| data/openedx-django-wiki-2.0.3/django_notify/admin.py | 138 | 65 | 219,328 |
LOAD_CONST 0
LOAD_CONST ('crystal',)
IMPORT_NAME ase.spacegroup
IMPORT_FROM crystal
STORE_NAME crystal
POP_TOP
LOAD_CONST 2.87
STORE_NAME a
LOAD_NAME crystal
LOAD_CONST 'Fe'
LOAD_CONST (0, 0, 0)
BUILD_LIST
LOAD_CONST 229
LOAD_NAME a
LOAD_NAME a
LOAD_NAME a
LOAD_CONST 90
LOAD_CONST 90
LOAD_CONST 90
BUILD_LIST
LOAD_CON... | from ase.spacegroup import crystal
a = 2.87
fe = crystal("Fe", [(0, 0, 0)], spacegroup=229, cellpar=[a, a, a, 90, 90, 90])
| data/ase-3.22.1/doc/ase/spacegroup/spacegroup-fe.py | 112 | 65 | 46,426 |
LOAD_CONST 0
LOAD_CONST ('faust_app',)
IMPORT_NAME my_faust.app
IMPORT_FROM faust_app
STORE_NAME faust_app
POP_TOP
LOAD_NAME faust_app
LOAD_ATTR GlobalTable
LOAD_CONST 'greetings_table'
LOAD_NAME dict
LOAD_CONST 1
LOAD_CONST 1
LOAD_CONST ('name', 'default', 'partitions', 'recovery_buffer_size')
CALL_FUNCTION
STORE... | from my_faust.app import faust_app
greetings_table = faust_app.GlobalTable(
name="greetings_table",
default=dict,
partitions=1,
recovery_buffer_size=1,
)
| data/faust-streaming-0.10.22/examples/fastapi/my_faust/table/my_table.py | 103 | 65 | 77,541 |
LOAD_CONST 0
LOAD_CONST ('app',)
IMPORT_NAME app
IMPORT_FROM app
STORE_NAME app
POP_TOP
LOAD_CONST 0
LOAD_CONST ('huey',)
IMPORT_NAME app
IMPORT_FROM huey
STORE_NAME huey
POP_TOP
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME tasks
STORE_NAME tasks
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME views
STORE_NAME views
LOAD_NAME... | from app import app
from app import huey
import tasks # Import tasks so they are registered with Huey instance.
import views # Import views so they are registered with Flask app.
if __name__ == "__main__":
app.run()
| data/huey-2.5.0/examples/flask_ex/main.py | 111 | 65 | 379,510 |
LOAD_CONST 0
LOAD_CONST ('crystal',)
IMPORT_NAME ase.spacegroup
IMPORT_FROM crystal
STORE_NAME crystal
POP_TOP
LOAD_CONST 4.05
STORE_NAME a
LOAD_NAME crystal
LOAD_CONST 'Al'
LOAD_CONST (0, 0, 0)
BUILD_LIST
LOAD_CONST 225
LOAD_NAME a
LOAD_NAME a
LOAD_NAME a
LOAD_CONST 90
LOAD_CONST 90
LOAD_CONST 90
BUILD_LIST
LOAD_CON... | from ase.spacegroup import crystal
a = 4.05
al = crystal("Al", [(0, 0, 0)], spacegroup=225, cellpar=[a, a, a, 90, 90, 90])
| data/ase-3.22.1/doc/ase/spacegroup/spacegroup-al.py | 112 | 65 | 46,425 |
LOAD_CONST '\nThe matplotlib.numerix package sneaks these imports in under the radar.\n'
STORE_NAME __doc__
LOAD_CONST 'fft'
LOAD_CONST 'linear_algebra'
LOAD_CONST 'random_array'
LOAD_CONST 'ma'
LOAD_CONST 'mlab'
BUILD_LIST
STORE_NAME hiddenimports
LOAD_CONST None
RETURN_VALUE | """
The matplotlib.numerix package sneaks these imports in under the radar.
"""
hiddenimports = [
"fft",
"linear_algebra",
"random_array",
"ma",
"mlab",
]
| data/pyinstaller-6.4.0/PyInstaller/hooks/hook-matplotlib.numerix.py | 78 | 65 | 185,178 |
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 EtiInputVolatilityType at 0x7fab700e4300, file "f.py", ... | from enum import unique
from ...._base_enum import StrEnum
@unique
class EtiInputVolatilityType(StrEnum):
IMPLIED = "Implied"
QUOTED = "Quoted"
SETTLE = "Settle"
| data/refinitiv-data-1.6.0/refinitiv/data/content/ipa/_enums/_eti_input_volatility_type.py | 205 | 65 | 195,597 |
LOAD_CONST 'Test pre-gen hook in extensions are available and exposed methods are callable.'
STORE_NAME __doc__
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME sys
STORE_NAME sys
LOAD_CONST '{% hello cookiecutter.name %}'
LOAD_CONST 'Hello Cookiemonster!'
COMPARE_OP ==
POP_JUMP_IF_FALSE
LOAD_NAME sys
LOAD_METHOD exit
LOAD_... | """Test pre-gen hook in extensions are available and exposed methods are callable."""
import sys
if "{% hello cookiecutter.name %}" == "Hello Cookiemonster!":
sys.exit(0)
else:
sys.exit(1)
| data/cookiecutter-2.5.0/tests/test-extensions/custom-extension-pre/hooks/pre_gen_project.py | 107 | 65 | 17,330 |
LOAD_CONST '\n webapp2_extras.appengine\n ========================\n\n App Engine-specific modules.\n\n :copyright: 2011 by tipfy.org.\n :license: Apache Sotware License, see LICENSE for details.\n'
STORE_NAME __doc__
LOAD_CONST None
RETURN_VALUE | """
webapp2_extras.appengine
========================
App Engine-specific modules.
:copyright: 2011 by tipfy.org.
:license: Apache Sotware License, see LICENSE for details.
"""
| data/webapp2-2.5.2/webapp2_extras/appengine/__init__.py | 76 | 65 | 113,827 |
LOAD_CONST 0
LOAD_CONST ('EntityPath',)
IMPORT_NAME office365.runtime.paths.v4.entity
IMPORT_FROM EntityPath
STORE_NAME EntityPath
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object ItemPath at 0x7fab7002b540, file "f.py", line 4>
LOAD_CONST 'ItemPath'
MAKE_FUNCTION
LOAD_CONST 'ItemPath'
LOAD_NAME EntityPath
CALL_FUNCTI... | from office365.runtime.paths.v4.entity import EntityPath
class ItemPath(EntityPath):
""" """
def __init__(self, parent=None):
super(ItemPath, self).__init__(None, parent, parent)
| data/Office365-REST-Python-Client-2.5.5/office365/runtime/paths/item.py | 251 | 65 | 189,810 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME unittest
STORE_NAME unittest
LOAD_CONST 0
LOAD_CONST ('wtc',)
IMPORT_NAME unittests
IMPORT_FROM wtc
STORE_NAME wtc
POP_TOP
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME wx
STORE_NAME wx
LOAD_BUILD_CLASS
LOAD_CONST <code object help_Tests at 0x7fab8223f300, file "f.py", line 6>
LOA... | import unittest
from unittests import wtc
import wx
class help_Tests(wtc.WidgetTestCase):
def test_help1(self):
pass
if __name__ == "__main__":
unittest.main()
| data/wxPython-4.2.1/unittests/test_help.py | 254 | 65 | 301,968 |
LOAD_CONST <code object _hash_add at 0x7fab700b4150, file "f.py", line 1>
LOAD_CONST '_hash_add'
MAKE_FUNCTION
STORE_NAME _hash_add
LOAD_NAME _hash_add
LOAD_CONST None
LOAD_CONST True
LOAD_CONST False
LOAD_CONST 3
BUILD_LIST
CALL_FUNCTION
LOAD_CONST None
LOAD_CONST True
LOAD_CONST 3
BUILD_LIST
COMPARE_OP ==
POP_JUMP_I... | def _hash_add(fields):
flds = [f for f in fields if (4 if f is None else f)]
return flds
assert _hash_add([None, True, False, 3]) == [None, True, 3]
| data/uncompyle6-3.9.0/test/simple_source/bug26/04_ifelse_parens.py | 225 | 65 | 442,026 |
LOAD_CONST 0
LOAD_CONST ('annotations',)
IMPORT_NAME __future__
IMPORT_FROM annotations
STORE_NAME annotations
POP_TOP
LOAD_CONST 0
LOAD_CONST ('ForthMachine32', 'ForthMachine64')
IMPORT_NAME awkward_cpp.lib._ext
IMPORT_FROM ForthMachine32
STORE_NAME ForthMachine32
IMPORT_FROM ForthMachine64
STORE_NAME ForthMachine64
... | from __future__ import annotations
from awkward_cpp.lib._ext import ForthMachine32, ForthMachine64
__all__ = ["ForthMachine32", "ForthMachine64"]
def __dir__():
return __all__
| data/awkward-2.6.1/src/awkward/forth.py | 174 | 65 | 138,190 |
LOAD_CONST 0
LOAD_CONST ('annotations',)
IMPORT_NAME __future__
IMPORT_FROM annotations
STORE_NAME annotations
POP_TOP
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME os
STORE_NAME os
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME sys
STORE_NAME sys
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME real_edit
STORE_NAME real_edit
LOAD_NA... | from __future__ import annotations
import os
import sys
import real_edit
real_edit.EditDisplay(
os.path.join(os.path.dirname(sys.argv[0]), "edit_text.txt")
).main()
| data/urwid-2.6.3/docs/examples/edit.py | 142 | 65 | 420,254 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME wx
STORE_NAME wx
LOAD_BUILD_CLASS
LOAD_CONST <code object ColoredPanel at 0x7fab4272a270, file "f.py", line 4>
LOAD_CONST 'ColoredPanel'
MAKE_FUNCTION
LOAD_CONST 'ColoredPanel'
LOAD_NAME wx
LOAD_ATTR Window
CALL_FUNCTION
STORE_NAME ColoredPanel
LOAD_CONST None
RETURN_VALUE
LOA... | import wx
class ColoredPanel(wx.Window):
def __init__(self, parent, color):
wx.Window.__init__(self, parent, -1, style=wx.SIMPLE_BORDER)
self.SetBackgroundColour(color)
| data/wxPython-4.2.1/demo/ColorPanel.py | 230 | 65 | 301,339 |
LOAD_CONST 'Test post-gen hook in extensions are available and exposed methods are callable.'
STORE_NAME __doc__
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME sys
STORE_NAME sys
LOAD_CONST '{% hello cookiecutter.name %}'
LOAD_CONST 'Hello Cookiemonster!'
COMPARE_OP ==
POP_JUMP_IF_FALSE
LOAD_NAME sys
LOAD_METHOD exit
LOAD... | """Test post-gen hook in extensions are available and exposed methods are callable."""
import sys
if "{% hello cookiecutter.name %}" == "Hello Cookiemonster!":
sys.exit(0)
else:
sys.exit(1)
| data/cookiecutter-2.5.0/tests/test-extensions/custom-extension-post/hooks/post_gen_project.py | 107 | 65 | 17,329 |
LOAD_CONST 'Utility functions to load or generate data sets.'
STORE_NAME __doc__
LOAD_CONST 1
LOAD_CONST ('pw_constant',)
IMPORT_NAME pw_constant
IMPORT_FROM pw_constant
STORE_NAME pw_constant
POP_TOP
LOAD_CONST 1
LOAD_CONST ('pw_linear',)
IMPORT_NAME pw_linear
IMPORT_FROM pw_linear
STORE_NAME pw_linear
POP_TOP
LOAD... | """Utility functions to load or generate data sets."""
from .pw_constant import pw_constant
from .pw_linear import pw_linear
from .pw_normal import pw_normal
from .pw_wavy import pw_wavy
| data/ruptures-1.1.9/src/ruptures/datasets/__init__.py | 164 | 65 | 146,622 |
LOAD_CONST '\nIBM provides a set of services for IBM Cloud provider.\n'
STORE_NAME __doc__
LOAD_CONST 0
LOAD_CONST ('Node',)
IMPORT_NAME diagrams
IMPORT_FROM Node
STORE_NAME Node
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object _IBM at 0x7fab70246e40, file "f.py", line 8>
LOAD_CONST '_IBM'
MAKE_FUNCTION
LOAD_CONST '_... | """
IBM provides a set of services for IBM Cloud provider.
"""
from diagrams import Node
class _IBM(Node):
_provider = "ibm"
_icon_dir = "resources/ibm"
fontcolor = "#ffffff"
| data/diagrams-0.23.4/diagrams/ibm/__init__.py | 175 | 65 | 206,053 |
LOAD_CONST 0
LOAD_CONST ('EmailAddressToDomain',)
IMPORT_NAME featuretools.primitives.standard.transform.email.email_address_to_domain
IMPORT_FROM EmailAddressToDomain
STORE_NAME EmailAddressToDomain
POP_TOP
LOAD_CONST 0
LOAD_CONST ('IsFreeEmailDomain',)
IMPORT_NAME featuretools.primitives.standard.transform.email.is_... | from featuretools.primitives.standard.transform.email.email_address_to_domain import (
EmailAddressToDomain,
)
from featuretools.primitives.standard.transform.email.is_free_email_domain import (
IsFreeEmailDomain,
)
| data/featuretools-1.29.0/featuretools/primitives/standard/transform/email/__init__.py | 102 | 65 | 422,090 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME torch
STORE_NAME torch
LOAD_CONST 0
LOAD_CONST ('MeanReducer',)
IMPORT_NAME pytorch_metric_learning.reducers
IMPORT_FROM MeanReducer
STORE_NAME MeanReducer
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object SumReducer at 0x7f8e44712b70, file "f.py", line 6>
LOAD_CONST 'SumReduce... | import torch
from pytorch_metric_learning.reducers import MeanReducer
class SumReducer(MeanReducer):
def element_reduction(self, losses, *_):
return torch.sum(losses)
| data/pytorch-metric-learning-2.4.1/src/pytorch_metric_learning/reducers/sum_reducer.py | 238 | 65 | 394,289 |
LOAD_CONST 2
LOAD_CONST ('validate_policytype',)
IMPORT_NAME compat
IMPORT_FROM validate_policytype
STORE_NAME validate_policytype
POP_TOP
LOAD_CONST <code object policytypes at 0x7fab800c71e0, file "f.py", line 4>
LOAD_CONST 'policytypes'
MAKE_FUNCTION
STORE_NAME policytypes
LOAD_CONST None
RETURN_VALUE
LOAD_GLOBAL ... | from ..compat import validate_policytype
def policytypes(policy):
"""
Property: PublicRepository.RepositoryPolicyText
Property: RegistryPolicy.PolicyText
Property: Repository.RepositoryPolicyText
"""
return validate_policytype(policy)
| data/troposphere-4.6.0/troposphere/validators/ecr.py | 95 | 65 | 173,022 |
LOAD_CONST 0
STORE_NAME RECORD_FORMAT_IDENTIFIER_START_INDEX
LOAD_CONST 4
STORE_NAME RECORD_FORMAT_IDENTIFIER_LENGTH
LOAD_CONST 4
STORE_NAME SCHEMA_ID_START_INDEX
LOAD_CONST 32
STORE_NAME SCHEMA_ID_LENGTH
LOAD_CONST 36
STORE_NAME DATA_START_INDEX
LOAD_CONST None
RETURN_VALUE | RECORD_FORMAT_IDENTIFIER_START_INDEX = 0
RECORD_FORMAT_IDENTIFIER_LENGTH = 4
SCHEMA_ID_START_INDEX = 4
SCHEMA_ID_LENGTH = 32
DATA_START_INDEX = 36
| data/azure-schemaregistry-avroserializer-1.0.0b4.post1/azure/schemaregistry/serializer/avroserializer/_constants.py | 89 | 65 | 17,247 |
LOAD_CONST 0
LOAD_CONST ('annotations',)
IMPORT_NAME __future__
IMPORT_FROM annotations
STORE_NAME annotations
POP_TOP
LOAD_CONST 0
LOAD_CONST ('Path',)
IMPORT_NAME pathlib
IMPORT_FROM Path
STORE_NAME Path
POP_TOP
LOAD_CONST <code object get_hook_dirs at 0x7f8af06a6f60, file "f.py", line 6>
LOAD_CONST 'get_hook_dirs'... | from __future__ import annotations
from pathlib import Path
def get_hook_dirs():
return [str(Path(__file__).parent)]
def get_PyInstaller_tests():
return [str(Path(__file__).parent)]
| data/rapidfuzz-3.6.1/src/rapidfuzz/__pyinstaller/__init__.py | 220 | 65 | 323,895 |
LOAD_CONST ('mask',)
LOAD_CONST <code object mirror_x at 0x7faaac203930, file "f.py", line 1>
LOAD_CONST 'mirror_x'
MAKE_FUNCTION
STORE_NAME mirror_x
LOAD_CONST None
RETURN_VALUE
LOAD_FAST clip
LOAD_ATTR fl_image
LOAD_CONST <code object <lambda> at 0x7faaac203270, file "f.py", line 3>
LOAD_CONST 'mirror_x.<locals>.<la... | def mirror_x(clip, apply_to="mask"):
"""flips the clip horizontally (and its mask too, by default)"""
return clip.fl_image(lambda f: f[:, ::-1], apply_to=apply_to)
| data/moviepy-1.0.3/moviepy/video/fx/mirror_x.py | 167 | 65 | 439,313 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME os
STORE_NAME os
LOAD_CONST 1
LOAD_CONST ('*',)
IMPORT_NAME about
IMPORT_STAR
LOAD_CONST 1
LOAD_CONST ('hash', 'hash_unicode', 'hash_bytes')
IMPORT_NAME mrmr
IMPORT_FROM hash
STORE_NAME hash
IMPORT_FROM hash_unicode
STORE_NAME hash_unicode
IMPORT_FROM hash_bytes
STORE_NAME has... | import os
from .about import *
from .mrmr import hash, hash_unicode, hash_bytes
def get_include():
return os.path.join(os.path.dirname(os.path.abspath(__file__)), "include")
| data/murmurhash-1.0.10/murmurhash/__init__.py | 187 | 65 | 83,461 |
LOAD_CONST 1
LOAD_CONST ('ScheduleStorage',)
IMPORT_NAME base
IMPORT_FROM ScheduleStorage
STORE_NAME ScheduleStorage
POP_TOP
LOAD_CONST 1
LOAD_CONST ('ScheduleStorageSqlMetadata',)
IMPORT_NAME schema
IMPORT_FROM ScheduleStorageSqlMetadata
STORE_NAME ScheduleStorageSqlMetadata
POP_TOP
LOAD_CONST 1
LOAD_CONST ('SqlSche... | from .base import ScheduleStorage as ScheduleStorage
from .schema import ScheduleStorageSqlMetadata as ScheduleStorageSqlMetadata
from .sql_schedule_storage import SqlScheduleStorage as SqlScheduleStorage
from .sqlite import SqliteScheduleStorage as SqliteScheduleStorage
| data/dagster-1.6.5/dagster/_core/storage/schedules/__init__.py | 137 | 65 | 54,568 |
LOAD_CONST 'The second order optimisation sub-package.'
STORE_NAME __doc__
LOAD_CONST 0
LOAD_CONST ('fisher_diag',)
IMPORT_NAME optax.second_order._fisher
IMPORT_FROM fisher_diag
STORE_NAME fisher_diag
POP_TOP
LOAD_CONST 0
LOAD_CONST ('hessian_diag',)
IMPORT_NAME optax.second_order._hessian
IMPORT_FROM hessian_diag
S... | """The second order optimisation sub-package."""
from optax.second_order._fisher import fisher_diag
from optax.second_order._hessian import hessian_diag
from optax.second_order._hessian import hvp
| data/optax-0.1.9/optax/second_order/__init__.py | 147 | 65 | 19,393 |
LOAD_CONST 'Unit tests.'
STORE_NAME __doc__
LOAD_CONST 0
LOAD_CONST ('api',)
IMPORT_NAME molecule
IMPORT_FROM api
STORE_NAME api
POP_TOP
LOAD_CONST <code object test_driver_is_detected at 0x7fae2f404660, file "f.py", line 6>
LOAD_CONST 'test_driver_is_detected'
MAKE_FUNCTION
STORE_NAME test_driver_is_detected
LOAD_CO... | """Unit tests."""
from molecule import api
def test_driver_is_detected(DRIVER):
"""Asserts that molecule recognizes the driver."""
assert DRIVER in [str(d) for d in api.drivers()]
| data/molecule-docker-2.1.0/src/molecule_docker/test/test_driver.py | 228 | 65 | 300,447 |
LOAD_CONST 'Allow cookiecutter to be executable through `python -m cookiecutter`.'
STORE_NAME __doc__
LOAD_CONST 0
LOAD_CONST ('main',)
IMPORT_NAME cookiecutter.cli
IMPORT_FROM main
STORE_NAME main
POP_TOP
LOAD_NAME __name__
LOAD_CONST '__main__'
COMPARE_OP ==
POP_JUMP_IF_FALSE
LOAD_NAME main
LOAD_CONST 'cookiecutte... | """Allow cookiecutter to be executable through `python -m cookiecutter`."""
from cookiecutter.cli import main
if __name__ == "__main__": # pragma: no cover
main(prog_name="cookiecutter")
| data/cookiecutter-2.5.0/cookiecutter/__main__.py | 99 | 65 | 17,263 |
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 SiteScriptActionStatus at 0x7fab543e6300, file "f.py", line 4>
LOAD_CONST 'SiteScriptActionStatus'
MAKE_FUNCTION
LOAD_CONST 'SiteScriptActi... | from office365.runtime.client_value import ClientValue
class SiteScriptActionStatus(ClientValue):
@property
def entity_type_name(self):
return "Microsoft.SharePoint.Utilities.WebTemplateExtensions.SiteScriptActionStatus"
| data/Office365-REST-Python-Client-2.5.5/office365/sharepoint/sitescripts/action_status.py | 225 | 65 | 189,736 |
LOAD_CONST 1
LOAD_CONST ('XPath30Parser',)
IMPORT_NAME xpath30
IMPORT_FROM XPath30Parser
STORE_NAME XPath30Parser
POP_TOP
LOAD_CONST 1
LOAD_CONST ('XPath31Parser',)
IMPORT_NAME xpath31
IMPORT_FROM XPath31Parser
STORE_NAME XPath31Parser
POP_TOP
LOAD_NAME XPath31Parser
STORE_NAME XPath3Parser
LOAD_CONST 'XPath30Parser... | from .xpath30 import XPath30Parser
from .xpath31 import XPath31Parser
XPath3Parser = XPath31Parser
__all__ = ["XPath30Parser", "XPath31Parser", "XPath3Parser"]
| data/elementpath-4.3.0/elementpath/xpath3.py | 126 | 65 | 150,428 |
LOAD_CONST 0
LOAD_CONST ('annotations',)
IMPORT_NAME __future__
IMPORT_FROM annotations
STORE_NAME annotations
POP_TOP
LOAD_CONST 0
LOAD_CONST ('Image',)
IMPORT_NAME PIL
IMPORT_FROM Image
STORE_NAME Image
POP_TOP
LOAD_CONST 'Tests/images/fli_overflow.fli'
STORE_NAME TEST_FILE
LOAD_CONST <code object test_fli_overflo... | from __future__ import annotations
from PIL import Image
TEST_FILE = "Tests/images/fli_overflow.fli"
def test_fli_overflow():
with Image.open(TEST_FILE) as im:
im.load()
| data/pillow-10.2.0/Tests/check_fli_overflow.py | 184 | 65 | 142,951 |
LOAD_BUILD_CLASS
LOAD_CONST <code object SPWOPIFrameAction at 0x7fab70346780, file "f.py", line 1>
LOAD_CONST 'SPWOPIFrameAction'
MAKE_FUNCTION
LOAD_CONST 'SPWOPIFrameAction'
CALL_FUNCTION
STORE_NAME SPWOPIFrameAction
LOAD_CONST None
RETURN_VALUE
LOAD_NAME __name__
STORE_NAME __module__
LOAD_CONST 'SPWOPIFrameAction'
... | class SPWOPIFrameAction:
"""
Specifies distinct operations that are available for the list item.
"""
View = 0
"""Requests a browser-based viewing experience."""
Edit = 1
"""Requests a browser-based editing experience."""
| data/Office365-REST-Python-Client-2.5.5/office365/sharepoint/utilities/wopi_frame_action.py | 144 | 65 | 189,740 |
LOAD_CONST 0
LOAD_CONST ('dataclass',)
IMPORT_NAME dataclasses
IMPORT_FROM dataclass
STORE_NAME dataclass
POP_TOP
LOAD_CONST 0
LOAD_CONST ('SQLServerCredentials',)
IMPORT_NAME dbt.adapters.sqlserver
IMPORT_FROM SQLServerCredentials
STORE_NAME SQLServerCredentials
POP_TOP
LOAD_NAME dataclass
LOAD_BUILD_CLASS
LOAD_CONS... | from dataclasses import dataclass
from dbt.adapters.sqlserver import SQLServerCredentials
@dataclass
class SynapseCredentials(SQLServerCredentials):
@property
def type(self):
return "synapse"
| data/dbt-synapse-1.4.0/dbt/adapters/synapse/synapse_credentials.py | 244 | 65 | 92,489 |
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 DiscountingType at 0x7fab701ac780, file "f.py", line 6>... | from enum import unique
from ...._base_enum import StrEnum
@unique
class DiscountingType(StrEnum):
LIBOR_DISCOUNTING = "LiborDiscounting"
OIS_DISCOUNTING = "OisDiscounting"
| data/refinitiv-data-1.6.0/refinitiv/data/content/ipa/_enums/_discounting_type.py | 194 | 65 | 195,586 |
LOAD_CONST 1
LOAD_CONST ('BlockingWrapper',)
IMPORT_NAME wrappers
IMPORT_FROM BlockingWrapper
STORE_NAME BlockingWrapper
POP_TOP
LOAD_CONST 1
LOAD_CONST ('decode_replicas',)
IMPORT_NAME wrappers
IMPORT_FROM decode_replicas
STORE_NAME decode_replicas
POP_TOP
LOAD_CONST 1
LOAD_CONST ('decode_value',)
IMPORT_NAME wrappe... | from .wrappers import BlockingWrapper # noqa: F401
from .wrappers import decode_replicas # noqa: F401
from .wrappers import decode_value # noqa: F401
| data/couchbase-4.1.11/couchbase/logic/__init__.py | 104 | 65 | 76,818 |
LOAD_CONST <code object fix_tuple_length at 0x7faa5f6db1e0, file "f.py", line 1>
LOAD_CONST 'fix_tuple_length'
MAKE_FUNCTION
STORE_NAME fix_tuple_length
LOAD_CONST None
RETURN_VALUE
LOAD_GLOBAL len
LOAD_FAST t
CALL_FUNCTION
LOAD_FAST n
COMPARE_OP <
POP_JUMP_IF_FALSE
LOAD_FAST t
LOAD_CONST (None,)
LOAD_FAST n
LOAD_GLOB... | def fix_tuple_length(t, n):
"""Extend tuple t to length n by adding None items at the end of the tuple. Return the new tuple."""
return t + ((None,) * (n - len(t))) if len(t) < n else t
| data/pinecone_client-3.0.3/pinecone/utils/fix_tuple_length.py | 110 | 65 | 251,325 |
LOAD_CONST 0
LOAD_CONST ('LocationDatabase', 'all_locations')
IMPORT_NAME astral.geocoder
IMPORT_FROM LocationDatabase
STORE_NAME LocationDatabase
IMPORT_FROM all_locations
STORE_NAME all_locations
POP_TOP
LOAD_CONST 0
LOAD_CONST ('noon',)
IMPORT_NAME astral.sun
IMPORT_FROM noon
STORE_NAME noon
POP_TOP
LOAD_NAME Loca... | from astral.geocoder import LocationDatabase, all_locations
from astral.sun import noon
def test_AllLocations(test_database: LocationDatabase):
for location in all_locations(test_database):
noon(location.observer)
| data/astral-3.2/src/test/test_all.py | 199 | 65 | 222,610 |
LOAD_CONST 'organization'
STORE_NAME ORGANIZATION
LOAD_CONST 'mode_user_token'
STORE_NAME MODE_ACCESS_TOKEN
LOAD_CONST 'mode_password_token'
STORE_NAME MODE_PASSWORD_TOKEN
LOAD_CONST 'mode_bearer_token'
STORE_NAME MODE_BEARER_TOKEN
LOAD_CONST None
RETURN_VALUE | ORGANIZATION = "organization"
MODE_ACCESS_TOKEN = "mode_user_token"
MODE_PASSWORD_TOKEN = "mode_password_token"
MODE_BEARER_TOKEN = "mode_bearer_token"
| data/amundsen-databuilder-7.4.6/databuilder/extractor/dashboard/mode_analytics/mode_dashboard_constants.py | 82 | 65 | 27,762 |
LOAD_CONST 0
LOAD_CONST ('ServiceMaker',)
IMPORT_NAME twisted.application.service
IMPORT_FROM ServiceMaker
STORE_NAME ServiceMaker
POP_TOP
LOAD_NAME ServiceMaker
LOAD_CONST 'Twisted Port-Forwarding'
LOAD_CONST 'twisted.tap.portforward'
LOAD_CONST 'A simple port-forwarder.'
LOAD_CONST 'portforward'
CALL_FUNCTION
ST... | from twisted.application.service import ServiceMaker
TwistedPortForward = ServiceMaker(
"Twisted Port-Forwarding",
"twisted.tap.portforward",
"A simple port-forwarder.",
"portforward",
)
| data/twisted-23.10.0/src/twisted/plugins/twisted_portforward.py | 94 | 65 | 384,031 |
LOAD_BUILD_CLASS
LOAD_CONST <code object abstractclassmethod at 0x7faa75305780, file "f.py", line 1>
LOAD_CONST 'abstractclassmethod'
MAKE_FUNCTION
LOAD_CONST 'abstractclassmethod'
LOAD_NAME classmethod
CALL_FUNCTION
STORE_NAME abstractclassmethod
LOAD_BUILD_CLASS
LOAD_CONST <code object OldstyleClass at 0x7faa7530539... | class abstractclassmethod(classmethod):
__isabstractmethod__ = True
def __init__(self, callable):
callable.__isabstractmethod__ = True
super().__init__(callable)
class OldstyleClass:
pass
| data/uncompyle6-3.9.0/test/simple_source/def/05_abc_class.py | 312 | 65 | 442,175 |
LOAD_CONST 'Preconfigured converters for tomlkit.'
STORE_NAME __doc__
LOAD_CONST 0
LOAD_CONST ('TomlkitConverter', 'configure_converter', 'make_converter')
IMPORT_NAME cattrs.preconf.tomlkit
IMPORT_FROM TomlkitConverter
STORE_NAME TomlkitConverter
IMPORT_FROM configure_converter
STORE_NAME configure_converter
IMPORT_F... | """Preconfigured converters for tomlkit."""
from cattrs.preconf.tomlkit import TomlkitConverter, configure_converter, make_converter
__all__ = ["configure_converter", "make_converter", "TomlkitConverter"]
| data/cattrs-23.2.3/src/cattr/preconf/tomlkit.py | 130 | 65 | 194,762 |
LOAD_CONST 0
LOAD_CONST ('fields',)
IMPORT_NAME marshmallow
IMPORT_FROM fields
STORE_NAME fields
POP_TOP
LOAD_CONST 0
LOAD_CONST ('YamlFileSchema',)
IMPORT_NAME azure.ai.ml._schema.core.schema
IMPORT_FROM YamlFileSchema
STORE_NAME YamlFileSchema
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object FeatureWindowSchema at ... | from marshmallow import fields
from azure.ai.ml._schema.core.schema import YamlFileSchema
class FeatureWindowSchema(YamlFileSchema):
feature_window_end = fields.Str()
feature_window_start = fields.Str()
| data/azure-ai-ml-1.13.0/azure/ai/ml/_schema/_feature_set/feature_window_schema.py | 198 | 65 | 426,456 |
SETUP_EXCEPT to 24
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME pkg_resources
STORE_NAME pkg_resources
LOAD_NAME pkg_resources
LOAD_METHOD declare_namespace
LOAD_NAME __name__
CALL_METHOD
POP_TOP
POP_BLOCK
JUMP_FORWARD to 64
DUP_TOP
LOAD_NAME ImportError
COMPARE_OP exception match
POP_JUMP_IF_FALSE
POP_TOP
POP_TOP
POP_T... | try:
import pkg_resources
pkg_resources.declare_namespace(__name__)
except ImportError: # pragma: NO COVER
import pkgutil
__path__ = pkgutil.extend_path(__path__, __name__)
| data/pkginfo-1.9.6/pkginfo/tests/wonky/namespaced/__init__.py | 135 | 65 | 322,350 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.