input stringlengths 28 198k | output stringlengths 3 71k | file stringlengths 19 330 | input_tokens int64 5 159k | output_tokens int64 3 9.07k | __index_level_0__ int64 2 449k |
|---|---|---|---|---|---|
LOAD_CONST 0
LOAD_CONST ('HasTraits', 'Instance')
IMPORT_NAME traits.api
IMPORT_FROM HasTraits
STORE_NAME HasTraits
IMPORT_FROM Instance
STORE_NAME Instance
POP_TOP
LOAD_CONST 0
LOAD_CONST ('IName',)
IMPORT_NAME interface_definition
IMPORT_FROM IName
STORE_NAME IName
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object Apartment at 0x7fab5408f540, file "f.py", line 5>
LOAD_CONST 'Apartment'
MAKE_FUNCTION
LOAD_CONST 'Apartment'
LOAD_NAME HasTraits
CALL_FUNCTION
STORE_NAME Apartment
LOAD_CONST None
RETURN_VALUE
LOAD_NAME __name__
STORE_NAME __module__
LOAD_CONST 'Apartment'
STORE_NAME __qualname__
LOAD_NAME Instance
LOAD_NAME IName
LOAD_CONST 'no'
LOAD_CONST ('adapt',)
CALL_FUNCTION
STORE_NAME renter
LOAD_CONST None
RETURN_VALUE | from traits.api import HasTraits, Instance
from interface_definition import IName
class Apartment(HasTraits):
renter = Instance(IName, adapt="no")
| data/traits-6.4.3/examples/tutorials/doc_examples/examples/adapt_metadata.py | 189 | 48 | 286,839 |
LOAD_CONST 0
LOAD_CONST ('EasyGuide', 'easy_guide')
IMPORT_NAME pyro.contrib.easyguide.easyguide
IMPORT_FROM EasyGuide
STORE_NAME EasyGuide
IMPORT_FROM easy_guide
STORE_NAME easy_guide
POP_TOP
LOAD_CONST 'EasyGuide'
LOAD_CONST 'easy_guide'
BUILD_LIST
STORE_NAME __all__
LOAD_CONST None
RETURN_VALUE | from pyro.contrib.easyguide.easyguide import EasyGuide, easy_guide
__all__ = [
"EasyGuide",
"easy_guide",
]
| data/pyro-ppl-1.9.0/pyro/contrib/easyguide/__init__.py | 84 | 48 | 109,981 |
LOAD_CONST 0
LOAD_CONST ('PathValues',)
IMPORT_NAME onelogin.paths
IMPORT_FROM PathValues
STORE_NAME PathValues
POP_TOP
LOAD_NAME PathValues
LOAD_ATTR API_2_APPS_APP_ID_RULES_ACTIONS_RULE_ACTION_VALUE_VALUES
STORE_NAME path
LOAD_CONST None
RETURN_VALUE | from onelogin.paths import PathValues
path = PathValues.API_2_APPS_APP_ID_RULES_ACTIONS_RULE_ACTION_VALUE_VALUES
| data/onelogin-3.1.6/onelogin/paths/api_2_apps_app_id_rules_actions_rule_action_value_values/__init__.py | 73 | 48 | 396,953 |
LOAD_BUILD_CLASS
LOAD_CONST <code object Base at 0x7fab800ab390, file "f.py", line 1>
LOAD_CONST 'Base'
MAKE_FUNCTION
LOAD_CONST 'Base'
CALL_FUNCTION
STORE_NAME Base
LOAD_BUILD_CLASS
LOAD_CONST <code object Derived at 0x7fab800abf60, file "f.py", line 6>
LOAD_CONST 'Derived'
MAKE_FUNCTION
LOAD_CONST 'Derived'
LOAD_NAME Base
CALL_FUNCTION
STORE_NAME Derived
LOAD_CONST None
RETURN_VALUE
LOAD_NAME __name__
STORE_NAME __module__
LOAD_CONST 'Base'
STORE_NAME __qualname__
SETUP_ANNOTATIONS
LOAD_NAME int
LOAD_NAME __annotations__
LOAD_CONST 'attr1'
STORE_SUBSCR
LOAD_NAME str
LOAD_NAME __annotations__
LOAD_CONST 'attr2'
STORE_SUBSCR
LOAD_CONST None
RETURN_VALUE
LOAD_NAME __name__
STORE_NAME __module__
LOAD_CONST 'Derived'
STORE_NAME __qualname__
SETUP_ANNOTATIONS
LOAD_NAME int
LOAD_NAME __annotations__
LOAD_CONST 'attr3'
STORE_SUBSCR
LOAD_NAME str
LOAD_NAME __annotations__
LOAD_CONST 'attr4'
STORE_SUBSCR
LOAD_CONST None
RETURN_VALUE | class Base:
attr1: int #: docstring
attr2: str
class Derived(Base):
attr3: int #: docstring
attr4: str
| data/sphinx-7.2.6/tests/roots/test-ext-autodoc/target/uninitialized_attributes.py | 244 | 48 | 381,176 |
LOAD_CONST 1
LOAD_CONST ('parse',)
IMPORT_NAME dtparser
IMPORT_FROM parse
STORE_NAME parse
POP_TOP
LOAD_CONST 1
LOAD_CONST ('check',)
IMPORT_NAME dtparser
IMPORT_FROM check
STORE_NAME check
POP_TOP
LOAD_CONST 1
LOAD_CONST ('parse_by_format',)
IMPORT_NAME dtparser
IMPORT_FROM parse_by_format
STORE_NAME parse_by_format
POP_TOP
LOAD_CONST 1
LOAD_CONST ('parse_by_regex',)
IMPORT_NAME dtparser
IMPORT_FROM parse_by_regex
STORE_NAME parse_by_regex
POP_TOP
LOAD_CONST 1
LOAD_CONST ('parse',)
IMPORT_NAME dtframe
IMPORT_FROM parse
STORE_NAME parse_frame
POP_TOP
LOAD_CONST None
RETURN_VALUE | from .dtparser import parse
from .dtparser import check
from .dtparser import parse_by_format
from .dtparser import parse_by_regex
from .dtframe import parse as parse_frame
| data/gggdtparser-0.1.5/gggdtparser/__init__.py | 145 | 48 | 153,210 |
LOAD_CONST 'Generated API for package: tensorflow_examples.lite.model_maker.core.api.include.'
STORE_NAME __doc__
LOAD_CONST 0
LOAD_CONST ('*',)
IMPORT_NAME tensorflow_examples.lite.model_maker.core.api.include
IMPORT_STAR
LOAD_CONST None
RETURN_VALUE | """Generated API for package: tensorflow_examples.lite.model_maker.core.api.include."""
from tensorflow_examples.lite.model_maker.core.api.include import *
| data/tflite-model-maker-0.4.3/src/tflite_model_maker/python/core/api/include.py | 68 | 48 | 401,336 |
LOAD_CONST 0
LOAD_CONST ('behaviour',)
IMPORT_NAME elasticmock
IMPORT_FROM behaviour
STORE_NAME behaviour
POP_TOP
LOAD_CONST 0
LOAD_CONST ('TestElasticmock',)
IMPORT_NAME tests
IMPORT_FROM TestElasticmock
STORE_NAME TestElasticmock
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object TestElasticmockBehaviour at 0x7fab41deac00, file "f.py", line 5>
LOAD_CONST 'TestElasticmockBehaviour'
MAKE_FUNCTION
LOAD_CONST 'TestElasticmockBehaviour'
LOAD_NAME TestElasticmock
CALL_FUNCTION
STORE_NAME TestElasticmockBehaviour
LOAD_CONST None
RETURN_VALUE
LOAD_NAME __name__
STORE_NAME __module__
LOAD_CONST 'TestElasticmockBehaviour'
STORE_NAME __qualname__
LOAD_CONST <code object tearDown at 0x7fab41dea420, file "f.py", line 6>
LOAD_CONST 'TestElasticmockBehaviour.tearDown'
MAKE_FUNCTION
STORE_NAME tearDown
LOAD_CONST None
RETURN_VALUE
LOAD_GLOBAL behaviour
LOAD_METHOD disable_all
CALL_METHOD
POP_TOP
LOAD_CONST None
RETURN_VALUE | from elasticmock import behaviour
from tests import TestElasticmock
class TestElasticmockBehaviour(TestElasticmock):
def tearDown(self):
behaviour.disable_all()
| data/ElasticMock-1.8.1/tests/fake_elasticsearch/behaviour/__init__.py | 245 | 48 | 353,002 |
LOAD_CONST 1
LOAD_CONST ('AttachBase',)
IMPORT_NAME AttachBase
IMPORT_FROM AttachBase
STORE_NAME AttachBase
POP_TOP
LOAD_CONST 2
LOAD_CONST ('AttachmentManager',)
IMPORT_NAME AttachmentManager
IMPORT_FROM AttachmentManager
STORE_NAME AttachmentManager
POP_TOP
LOAD_NAME AttachmentManager
CALL_FUNCTION
STORE_NAME A_MGR
LOAD_CONST 'AttachBase'
BUILD_LIST
STORE_NAME __all__
LOAD_CONST None
RETURN_VALUE | from .AttachBase import AttachBase
from ..AttachmentManager import AttachmentManager
A_MGR = AttachmentManager()
__all__ = [
"AttachBase",
]
| data/apprise-1.7.2/apprise/attachment/__init__.py | 93 | 48 | 438,389 |
LOAD_CONST 1
LOAD_CONST ('array', 'builtin', 'op', 'program', 'tracer')
IMPORT_NAME
IMPORT_FROM array
STORE_NAME array
IMPORT_FROM builtin
STORE_NAME builtin
IMPORT_FROM op
STORE_NAME op
IMPORT_FROM program
STORE_NAME program
IMPORT_FROM tracer
STORE_NAME tracer
POP_TOP
LOAD_CONST 1
LOAD_CONST ('*',)
IMPORT_NAME array
IMPORT_STAR
LOAD_CONST 1
LOAD_CONST ('*',)
IMPORT_NAME builtin
IMPORT_STAR
LOAD_CONST 1
LOAD_CONST ('*',)
IMPORT_NAME op
IMPORT_STAR
LOAD_CONST 1
LOAD_CONST ('*',)
IMPORT_NAME program
IMPORT_STAR
LOAD_CONST 1
LOAD_CONST ('*',)
IMPORT_NAME tracer
IMPORT_STAR
LOAD_CONST None
RETURN_VALUE | from . import array, builtin, op, program, tracer
from .array import *
from .builtin import *
from .op import *
from .program import *
from .tracer import *
| data/funsor-0.4.5/funsor/ops/__init__.py | 148 | 48 | 371,363 |
LOAD_CONST 1
LOAD_CONST ('SecretManagerServiceAsyncClient',)
IMPORT_NAME async_client
IMPORT_FROM SecretManagerServiceAsyncClient
STORE_NAME SecretManagerServiceAsyncClient
POP_TOP
LOAD_CONST 1
LOAD_CONST ('SecretManagerServiceClient',)
IMPORT_NAME client
IMPORT_FROM SecretManagerServiceClient
STORE_NAME SecretManagerServiceClient
POP_TOP
LOAD_CONST ('SecretManagerServiceClient', 'SecretManagerServiceAsyncClient')
STORE_NAME __all__
LOAD_CONST None
RETURN_VALUE | from .async_client import SecretManagerServiceAsyncClient
from .client import SecretManagerServiceClient
__all__ = (
"SecretManagerServiceClient",
"SecretManagerServiceAsyncClient",
)
| data/google-cloud-secret-manager-2.18.1/google/cloud/secretmanager_v1beta1/services/secret_manager_service/__init__.py | 92 | 48 | 135,780 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME typing
STORE_NAME typing
LOAD_CONST 3
LOAD_CONST ('Usage',)
IMPORT_NAME commons.types.usage
IMPORT_FROM Usage
STORE_NAME Usage
POP_TOP
LOAD_CONST 1
LOAD_CONST ('OpenAiUsage',)
IMPORT_NAME open_ai_usage
IMPORT_FROM OpenAiUsage
STORE_NAME OpenAiUsage
POP_TOP
LOAD_NAME typing
LOAD_ATTR Union
LOAD_NAME Usage
LOAD_NAME OpenAiUsage
BUILD_TUPLE
BINARY_SUBSCR
STORE_NAME IngestionUsage
LOAD_CONST None
RETURN_VALUE | import typing
from ...commons.types.usage import Usage
from .open_ai_usage import OpenAiUsage
IngestionUsage = typing.Union[Usage, OpenAiUsage]
| data/langfuse-2.15.0/langfuse/api/resources/ingestion/types/ingestion_usage.py | 109 | 48 | 433,948 |
LOAD_CONST 'Generated API for package: tensorflow_examples.lite.model_maker.core.export_format.'
STORE_NAME __doc__
LOAD_CONST 0
LOAD_CONST ('*',)
IMPORT_NAME tensorflow_examples.lite.model_maker.core.export_format
IMPORT_STAR
LOAD_CONST None
RETURN_VALUE | """Generated API for package: tensorflow_examples.lite.model_maker.core.export_format."""
from tensorflow_examples.lite.model_maker.core.export_format import *
| data/tflite-model-maker-nightly-0.4.4.dev202402210609/src/tflite_model_maker/python/core/export_format.py | 68 | 48 | 389,368 |
LOAD_CONST 0
LOAD_CONST ('relocated_module',)
IMPORT_NAME pyomo.common.deprecation
IMPORT_FROM relocated_module
STORE_NAME relocated_module
POP_TOP
LOAD_NAME relocated_module
LOAD_CONST 'pyomo.common.tests.relo_mod_new'
LOAD_CONST '1.2'
LOAD_CONST ('version',)
CALL_FUNCTION
POP_TOP
LOAD_CONST None
RETURN_VALUE | from pyomo.common.deprecation import relocated_module
relocated_module("pyomo.common.tests.relo_mod_new", version="1.2")
| data/Pyomo-6.7.0/pyomo/common/tests/relo_mod.py | 89 | 48 | 24,057 |
LOAD_CONST 0
LOAD_CONST ('encode_spans',)
IMPORT_NAME opentelemetry.exporter.otlp.proto.common._internal.trace_encoder
IMPORT_FROM encode_spans
STORE_NAME encode_spans
POP_TOP
LOAD_CONST 'encode_spans'
BUILD_LIST
STORE_NAME __all__
LOAD_CONST None
RETURN_VALUE | from opentelemetry.exporter.otlp.proto.common._internal.trace_encoder import (
encode_spans,
)
__all__ = ["encode_spans"]
| data/opentelemetry_exporter_otlp_proto_common-1.22.0/src/opentelemetry/exporter/otlp/proto/common/trace_encoder.py | 72 | 48 | 161,721 |
LOAD_CONST 1
LOAD_CONST ('CatalogServiceAsyncClient',)
IMPORT_NAME async_client
IMPORT_FROM CatalogServiceAsyncClient
STORE_NAME CatalogServiceAsyncClient
POP_TOP
LOAD_CONST 1
LOAD_CONST ('CatalogServiceClient',)
IMPORT_NAME client
IMPORT_FROM CatalogServiceClient
STORE_NAME CatalogServiceClient
POP_TOP
LOAD_CONST ('CatalogServiceClient', 'CatalogServiceAsyncClient')
STORE_NAME __all__
LOAD_CONST None
RETURN_VALUE | from .async_client import CatalogServiceAsyncClient
from .client import CatalogServiceClient
__all__ = (
"CatalogServiceClient",
"CatalogServiceAsyncClient",
)
| data/google-cloud-retail-1.19.1/google/cloud/retail_v2beta/services/catalog_service/__init__.py | 92 | 48 | 329,455 |
LOAD_CONST 0
LOAD_CONST ('Any',)
IMPORT_NAME typing
IMPORT_FROM Any
STORE_NAME Any
POP_TOP
LOAD_CONST ';'
STORE_NAME SEPARATOR
LOAD_NAME Any
LOAD_NAME str
LOAD_CONST ('args', 'return')
BUILD_CONST_KEY_MAP
LOAD_CONST <code object cache_key at 0x7f8e2fe14420, file "f.py", line 6>
LOAD_CONST 'cache_key'
MAKE_FUNCTION
STORE_NAME cache_key
LOAD_CONST None
RETURN_VALUE
LOAD_GLOBAL SEPARATOR
LOAD_METHOD join
LOAD_CONST <code object <genexpr> at 0x7f8e2fe14390, file "f.py", line 7>
LOAD_CONST 'cache_key.<locals>.<genexpr>'
MAKE_FUNCTION
LOAD_FAST args
GET_ITER
CALL_FUNCTION
CALL_METHOD
RETURN_VALUE
LOAD_FAST .0
FOR_ITER to 18
STORE_FAST arg
LOAD_GLOBAL str
LOAD_FAST arg
CALL_FUNCTION
YIELD_VALUE
POP_TOP
JUMP_ABSOLUTE
LOAD_CONST None
RETURN_VALUE | from typing import Any
SEPARATOR = ";"
def cache_key(*args: Any) -> str:
return SEPARATOR.join(str(arg) for arg in args)
| data/apache-superset-3.1.1/superset/temporary_cache/utils.py | 209 | 48 | 393,287 |
LOAD_CONST '\ngpustat.__main__ module (to support python -m gpustat)\n'
STORE_NAME __doc__
LOAD_CONST 1
LOAD_CONST ('main',)
IMPORT_NAME cli
IMPORT_FROM main
STORE_NAME main
POP_TOP
LOAD_NAME __name__
LOAD_CONST '__main__'
COMPARE_OP ==
POP_JUMP_IF_FALSE
LOAD_NAME main
CALL_FUNCTION
POP_TOP
LOAD_CONST None
RETURN_VALUE | """
gpustat.__main__ module (to support python -m gpustat)
"""
from .cli import main
if __name__ == "__main__":
main()
| data/gpustat-1.1.1/gpustat/__main__.py | 83 | 48 | 329,017 |
LOAD_CONST 0
LOAD_CONST ('total_ordering',)
IMPORT_NAME functools
IMPORT_FROM total_ordering
STORE_NAME total_ordering
POP_TOP
LOAD_NAME total_ordering
LOAD_BUILD_CLASS
LOAD_CONST <code object Frame at 0x7faa75305780, file "f.py", line 4>
LOAD_CONST 'Frame'
MAKE_FUNCTION
LOAD_CONST 'Frame'
CALL_FUNCTION
CALL_FUNCTION
STORE_NAME Frame
LOAD_NAME test
LOAD_NAME unittest
LOAD_BUILD_CLASS
LOAD_CONST <code object LocaleCoercionTests at 0x7faa75305390, file "f.py", line 9>
LOAD_CONST 'LocaleCoercionTests'
MAKE_FUNCTION
LOAD_CONST 'LocaleCoercionTests'
CALL_FUNCTION
CALL_FUNCTION
CALL_FUNCTION
STORE_NAME LocaleCoercionTests
LOAD_CONST None
RETURN_VALUE
LOAD_NAME __name__
STORE_NAME __module__
LOAD_CONST 'Frame'
STORE_NAME __qualname__
LOAD_CONST None
RETURN_VALUE
LOAD_NAME __name__
STORE_NAME __module__
LOAD_CONST 'LocaleCoercionTests'
STORE_NAME __qualname__
LOAD_CONST None
RETURN_VALUE | from functools import total_ordering
@total_ordering
class Frame:
pass
@test
@unittest
class LocaleCoercionTests:
pass
| data/uncompyle6-3.9.0/test/simple_source/def/10_class_deco.py | 243 | 48 | 442,190 |
LOAD_CONST 0
LOAD_CONST ('Client',)
IMPORT_NAME openxlab.dataset.client.client
IMPORT_FROM Client
STORE_NAME Client
POP_TOP
LOAD_CONST 0
LOAD_CONST ('config',)
IMPORT_NAME openxlab.dataset.commands.config
IMPORT_FROM config
STORE_NAME config
POP_TOP
LOAD_CONST 'Client'
LOAD_CONST 'config'
BUILD_LIST
STORE_NAME __all__
LOAD_CONST None
RETURN_VALUE | from openxlab.dataset.client.client import Client
from openxlab.dataset.commands.config import config
__all__ = [
"Client",
"config",
]
| data/openxlab-0.0.34/openxlab/dataset/client/__init__.py | 84 | 48 | 318,300 |
LOAD_CONST 'Generated API for package: tensorflow_examples.lite.model_maker.core.file_util.'
STORE_NAME __doc__
LOAD_CONST 0
LOAD_CONST ('*',)
IMPORT_NAME tensorflow_examples.lite.model_maker.core.file_util
IMPORT_STAR
LOAD_CONST None
RETURN_VALUE | """Generated API for package: tensorflow_examples.lite.model_maker.core.file_util."""
from tensorflow_examples.lite.model_maker.core.file_util import *
| data/tflite-model-maker-nightly-0.4.4.dev202402210609/src/tflite_model_maker/python/core/file_util.py | 68 | 48 | 389,367 |
LOAD_CONST <code object whcms_license_info at 0x7fab4106c300, file "f.py", line 1>
LOAD_CONST 'whcms_license_info'
MAKE_FUNCTION
STORE_NAME whcms_license_info
LOAD_CONST None
RETURN_VALUE
LOAD_FAST md5hash
LOAD_FAST datahash
COMPARE_OP ==
POP_JUMP_IF_FALSE
SETUP_EXCEPT to 14
LOAD_FAST md5hash
RETURN_VALUE
POP_TOP
POP_TOP
POP_TOP
LOAD_FAST results
RETURN_VALUE
LOAD_CONST None
RETURN_VALUE | def whcms_license_info(md5hash, datahash, results):
if md5hash == datahash:
try:
return md5hash
except:
return results
| data/xdis-6.0.5/test/simple_source/bug36/03_if_try.py | 113 | 48 | 85,338 |
LOAD_CONST 'webtest.ext is now in a separate package name webtest-casperjs'
STORE_NAME __doc__
LOAD_CONST <code object casperjs at 0x7faad43f18a0, file "f.py", line 4>
LOAD_CONST 'casperjs'
MAKE_FUNCTION
STORE_NAME casperjs
LOAD_CONST None
RETURN_VALUE
LOAD_GLOBAL ImportError
LOAD_GLOBAL __doc__
CALL_FUNCTION
RAISE_VARARGS
LOAD_CONST None
RETURN_VALUE | __doc__ = "webtest.ext is now in a separate package name webtest-casperjs"
def casperjs(*args, **kwargs):
raise ImportError(__doc__)
| data/WebTest-3.0.0/webtest/ext.py | 100 | 48 | 87,427 |
LOAD_CONST 1
LOAD_CONST ('DocumentProcessorServiceAsyncClient',)
IMPORT_NAME async_client
IMPORT_FROM DocumentProcessorServiceAsyncClient
STORE_NAME DocumentProcessorServiceAsyncClient
POP_TOP
LOAD_CONST 1
LOAD_CONST ('DocumentProcessorServiceClient',)
IMPORT_NAME client
IMPORT_FROM DocumentProcessorServiceClient
STORE_NAME DocumentProcessorServiceClient
POP_TOP
LOAD_CONST ('DocumentProcessorServiceClient', 'DocumentProcessorServiceAsyncClient')
STORE_NAME __all__
LOAD_CONST None
RETURN_VALUE | from .async_client import DocumentProcessorServiceAsyncClient
from .client import DocumentProcessorServiceClient
__all__ = (
"DocumentProcessorServiceClient",
"DocumentProcessorServiceAsyncClient",
)
| data/google-cloud-documentai-2.23.0/google/cloud/documentai_v1beta3/services/document_processor_service/__init__.py | 92 | 48 | 165,874 |
LOAD_CONST 0
LOAD_CONST ('encode_logs',)
IMPORT_NAME opentelemetry.exporter.otlp.proto.common._internal._log_encoder
IMPORT_FROM encode_logs
STORE_NAME encode_logs
POP_TOP
LOAD_CONST 'encode_logs'
BUILD_LIST
STORE_NAME __all__
LOAD_CONST None
RETURN_VALUE | from opentelemetry.exporter.otlp.proto.common._internal._log_encoder import (
encode_logs,
)
__all__ = ["encode_logs"]
| data/opentelemetry_exporter_otlp_proto_common-1.22.0/src/opentelemetry/exporter/otlp/proto/common/_log_encoder.py | 72 | 48 | 161,720 |
LOAD_CONST 'Generated API for package: tensorflow_examples.lite.model_maker.core.test_util.'
STORE_NAME __doc__
LOAD_CONST 0
LOAD_CONST ('*',)
IMPORT_NAME tensorflow_examples.lite.model_maker.core.test_util
IMPORT_STAR
LOAD_CONST None
RETURN_VALUE | """Generated API for package: tensorflow_examples.lite.model_maker.core.test_util."""
from tensorflow_examples.lite.model_maker.core.test_util import *
| data/tflite-model-maker-nightly-0.4.4.dev202402210609/src/tflite_model_maker/python/core/test_util.py | 68 | 48 | 389,366 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME numpy
STORE_NAME np
LOAD_NAME np
LOAD_ATTR ndarray
LOAD_NAME np
LOAD_ATTR ndarray
LOAD_CONST ('input', 'return')
BUILD_CONST_KEY_MAP
LOAD_CONST <code object abs at 0x7fab821a55d0, file "f.py", line 4>
LOAD_CONST 'abs'
MAKE_FUNCTION
STORE_NAME abs
LOAD_CONST None
RETURN_VALUE
LOAD_GLOBAL np
LOAD_METHOD abs
LOAD_FAST input
CALL_METHOD
RETURN_VALUE | import numpy as np
def abs(input: np.ndarray) -> np.ndarray:
return np.abs(input) # type: ignore[no-any-return]
| data/onnx-1.15.0/onnx/backend/sample/ops/abs.py | 102 | 48 | 111,280 |
LOAD_CONST 1
LOAD_CONST ('DiscussServiceAsyncClient',)
IMPORT_NAME async_client
IMPORT_FROM DiscussServiceAsyncClient
STORE_NAME DiscussServiceAsyncClient
POP_TOP
LOAD_CONST 1
LOAD_CONST ('DiscussServiceClient',)
IMPORT_NAME client
IMPORT_FROM DiscussServiceClient
STORE_NAME DiscussServiceClient
POP_TOP
LOAD_CONST ('DiscussServiceClient', 'DiscussServiceAsyncClient')
STORE_NAME __all__
LOAD_CONST None
RETURN_VALUE | from .async_client import DiscussServiceAsyncClient
from .client import DiscussServiceClient
__all__ = (
"DiscussServiceClient",
"DiscussServiceAsyncClient",
)
| data/google-ai-generativelanguage-0.5.2/google/ai/generativelanguage_v1beta2/services/discuss_service/__init__.py | 92 | 48 | 402,878 |
LOAD_CONST 0
LOAD_CONST ('SceneXplainInput', 'SceneXplainTool')
IMPORT_NAME langchain_community.tools.scenexplain.tool
IMPORT_FROM SceneXplainInput
STORE_NAME SceneXplainInput
IMPORT_FROM SceneXplainTool
STORE_NAME SceneXplainTool
POP_TOP
LOAD_CONST 'SceneXplainInput'
LOAD_CONST 'SceneXplainTool'
BUILD_LIST
STORE_NAME __all__
LOAD_CONST None
RETURN_VALUE | from langchain_community.tools.scenexplain.tool import SceneXplainInput, SceneXplainTool
__all__ = ["SceneXplainInput", "SceneXplainTool"]
| data/langchain-0.1.8/langchain/tools/scenexplain/tool.py | 96 | 48 | 369,317 |
LOAD_NAME open
LOAD_CONST 'x.c'
LOAD_CONST 'w'
CALL_FUNCTION
SETUP_WITH to 28
STORE_NAME f
LOAD_NAME print
LOAD_CONST 'int main(void) { return 0; }'
LOAD_NAME f
LOAD_CONST ('file',)
CALL_FUNCTION
POP_TOP
POP_BLOCK
LOAD_CONST None
WITH_CLEANUP_START
WITH_CLEANUP_FINISH
END_FINALLY
LOAD_NAME open
LOAD_CONST 'y'
LOAD_CONST 'w'
CALL_FUNCTION
SETUP_WITH to 50
POP_TOP
POP_BLOCK
LOAD_CONST None
WITH_CLEANUP_START
WITH_CLEANUP_FINISH
END_FINALLY
LOAD_CONST None
RETURN_VALUE | with open("x.c", "w") as f:
print("int main(void) { return 0; }", file=f)
with open("y", "w"):
pass
| data/numpy-1.26.4/vendored-meson/meson/test cases/common/228 custom_target source/x.py | 110 | 48 | 363,726 |
LOAD_CONST 'j F Y'
STORE_NAME DATE_FORMAT
LOAD_CONST 'g:i A'
STORE_NAME TIME_FORMAT
LOAD_CONST 'j F'
STORE_NAME MONTH_DAY_FORMAT
LOAD_CONST 'j M Y'
STORE_NAME SHORT_DATE_FORMAT
LOAD_CONST None
RETURN_VALUE | DATE_FORMAT = "j F Y"
TIME_FORMAT = "g:i A"
MONTH_DAY_FORMAT = "j F"
SHORT_DATE_FORMAT = "j M Y"
| data/Django-5.0.2/django/conf/locale/te/formats.py | 66 | 48 | 327,102 |
LOAD_CONST 0
LOAD_CONST ('annotations',)
IMPORT_NAME __future__
IMPORT_FROM annotations
STORE_NAME annotations
POP_TOP
LOAD_CONST 'find_default_config_files'
BUILD_LIST
STORE_NAME __all__
LOAD_CONST 0
LOAD_CONST ('find_default_config_files',)
IMPORT_NAME pylint.config.find_default_config_files
IMPORT_FROM find_default_config_files
STORE_NAME find_default_config_files
POP_TOP
LOAD_CONST None
RETURN_VALUE | from __future__ import annotations
__all__ = ["find_default_config_files"]
from pylint.config.find_default_config_files import find_default_config_files
| data/pylint-3.0.3/pylint/config/__init__.py | 102 | 48 | 310,702 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME unittest
STORE_NAME unittest
LOAD_NAME __name__
LOAD_CONST '__main__'
COMPARE_OP ==
POP_JUMP_IF_FALSE
LOAD_NAME unittest
LOAD_ATTR main
LOAD_CONST 'aioitertools.tests'
LOAD_CONST 2
LOAD_CONST ('module', 'verbosity')
CALL_FUNCTION
POP_TOP
LOAD_CONST None
RETURN_VALUE | import unittest
if __name__ == "__main__": # pragma: no cover
unittest.main(module="aioitertools.tests", verbosity=2)
| data/aioitertools-0.11.0/aioitertools/tests/__main__.py | 76 | 48 | 106,687 |
LOAD_CONST 'Constants for the Medcom BLE integration.'
STORE_NAME __doc__
LOAD_CONST 'medcom_ble'
STORE_NAME DOMAIN
LOAD_CONST 300
STORE_NAME DEFAULT_SCAN_INTERVAL
LOAD_CONST 'CPM'
STORE_NAME UNIT_CPM
LOAD_CONST None
RETURN_VALUE | """Constants for the Medcom BLE integration."""
DOMAIN = "medcom_ble"
DEFAULT_SCAN_INTERVAL = 300
UNIT_CPM = "CPM"
| data/homeassistant-2024.2.2/homeassistant/components/medcom_ble/const.py | 65 | 48 | 298,289 |
LOAD_CONST 'Init file.'
STORE_NAME __doc__
LOAD_CONST 0
LOAD_CONST ('ReadabilityWebPageReader',)
IMPORT_NAME llama_hub.web.readability_web.base
IMPORT_FROM ReadabilityWebPageReader
STORE_NAME ReadabilityWebPageReader
POP_TOP
LOAD_CONST 'ReadabilityWebPageReader'
BUILD_LIST
STORE_NAME __all__
LOAD_CONST None
RETURN_VALUE | """Init file."""
from llama_hub.web.readability_web.base import (
ReadabilityWebPageReader,
)
__all__ = ["ReadabilityWebPageReader"]
| data/llama_hub-0.0.79.post1/llama_hub/web/readability_web/__init__.py | 80 | 48 | 359,412 |
LOAD_CONST 1
LOAD_CONST ('FeaturestoreServiceClient',)
IMPORT_NAME client
IMPORT_FROM FeaturestoreServiceClient
STORE_NAME FeaturestoreServiceClient
POP_TOP
LOAD_CONST 1
LOAD_CONST ('FeaturestoreServiceAsyncClient',)
IMPORT_NAME async_client
IMPORT_FROM FeaturestoreServiceAsyncClient
STORE_NAME FeaturestoreServiceAsyncClient
POP_TOP
LOAD_CONST ('FeaturestoreServiceClient', 'FeaturestoreServiceAsyncClient')
STORE_NAME __all__
LOAD_CONST None
RETURN_VALUE | from .client import FeaturestoreServiceClient
from .async_client import FeaturestoreServiceAsyncClient
__all__ = (
"FeaturestoreServiceClient",
"FeaturestoreServiceAsyncClient",
)
| data/google-cloud-aiplatform-1.42.1/google/cloud/aiplatform_v1/services/featurestore_service/__init__.py | 92 | 48 | 14,583 |
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 _revoke_access
IMPORT_STAR
LOAD_CONST 1
LOAD_CONST ('*',)
IMPORT_NAME _show
IMPORT_STAR
LOAD_CONST 1
LOAD_CONST ('*',)
IMPORT_NAME _wait
IMPORT_STAR
LOAD_CONST None
RETURN_VALUE | from .__cmd_group import *
from ._delete import *
from ._list import *
from ._revoke_access import *
from ._show import *
from ._wait import *
| data/azure-cli-2.57.0/azure/cli/command_modules/vm/aaz/profile_2018_03_01_hybrid/disk/__init__.py | 111 | 48 | 376,887 |
LOAD_CONST 1
LOAD_CONST ('PredictionServiceAsyncClient',)
IMPORT_NAME async_client
IMPORT_FROM PredictionServiceAsyncClient
STORE_NAME PredictionServiceAsyncClient
POP_TOP
LOAD_CONST 1
LOAD_CONST ('PredictionServiceClient',)
IMPORT_NAME client
IMPORT_FROM PredictionServiceClient
STORE_NAME PredictionServiceClient
POP_TOP
LOAD_CONST ('PredictionServiceClient', 'PredictionServiceAsyncClient')
STORE_NAME __all__
LOAD_CONST None
RETURN_VALUE | from .async_client import PredictionServiceAsyncClient
from .client import PredictionServiceClient
__all__ = (
"PredictionServiceClient",
"PredictionServiceAsyncClient",
)
| data/google-cloud-retail-1.19.1/google/cloud/retail_v2beta/services/prediction_service/__init__.py | 92 | 48 | 329,505 |
LOAD_CONST 0
LOAD_CONST ('annotations',)
IMPORT_NAME __future__
IMPORT_FROM annotations
STORE_NAME annotations
POP_TOP
LOAD_NAME print
LOAD_CONST 'importing pkg1.pkg2.sub3'
CALL_FUNCTION
POP_TOP
LOAD_CONST 2
LOAD_CONST ('sub6',)
IMPORT_NAME
IMPORT_FROM sub6
STORE_NAME sub6
POP_TOP
LOAD_CONST 1
LOAD_CONST ('sub5',)
IMPORT_NAME
IMPORT_FROM sub5
STORE_NAME sub5
POP_TOP
LOAD_CONST None
RETURN_VALUE | from __future__ import annotations
print("importing pkg1.pkg2.sub3")
from .. import sub6 # noqa
from . import sub5 # noqa
| data/cx_Freeze-6.15.15/samples/relimport/pkg1/pkg2/sub3.py | 102 | 48 | 175,521 |
LOAD_CONST <code object times_two at 0x7f8af15c2db0, file "f.py", line 1>
LOAD_CONST 'times_two'
MAKE_FUNCTION
STORE_NAME times_two
LOAD_CONST None
RETURN_VALUE
LOAD_FAST a
LOAD_CONST 2
BINARY_MULTIPLY
RETURN_VALUE | def times_two(a):
"""
>>> times_two(2)
4
>>> times_two('bee')
beebee
"""
return a * 2
| data/nose-1.3.7/functional_tests/support/package1/example.py | 64 | 48 | 401,783 |
LOAD_CONST 1
LOAD_CONST ('ImageVersionsAsyncClient',)
IMPORT_NAME async_client
IMPORT_FROM ImageVersionsAsyncClient
STORE_NAME ImageVersionsAsyncClient
POP_TOP
LOAD_CONST 1
LOAD_CONST ('ImageVersionsClient',)
IMPORT_NAME client
IMPORT_FROM ImageVersionsClient
STORE_NAME ImageVersionsClient
POP_TOP
LOAD_CONST ('ImageVersionsClient', 'ImageVersionsAsyncClient')
STORE_NAME __all__
LOAD_CONST None
RETURN_VALUE | from .async_client import ImageVersionsAsyncClient
from .client import ImageVersionsClient
__all__ = (
"ImageVersionsClient",
"ImageVersionsAsyncClient",
)
| data/google-cloud-orchestration-airflow-1.11.1/google/cloud/orchestration/airflow/service_v1beta1/services/image_versions/__init__.py | 92 | 48 | 87,390 |
LOAD_CONST 1
LOAD_CONST ('MikuChat',)
IMPORT_NAME MikuChat
IMPORT_FROM MikuChat
STORE_NAME MikuChat
POP_TOP
LOAD_CONST 1
LOAD_CONST ('Komo',)
IMPORT_NAME Komo
IMPORT_FROM Komo
STORE_NAME Komo
POP_TOP
LOAD_CONST 1
LOAD_CONST ('ChatAiGpt',)
IMPORT_NAME ChatAiGpt
IMPORT_FROM ChatAiGpt
STORE_NAME ChatAiGpt
POP_TOP
LOAD_CONST 1
LOAD_CONST ('AiChatting',)
IMPORT_NAME AiChatting
IMPORT_FROM AiChatting
STORE_NAME AiChatting
POP_TOP
LOAD_CONST None
RETURN_VALUE | from .MikuChat import MikuChat
from .Komo import Komo
from .ChatAiGpt import ChatAiGpt
from .AiChatting import AiChatting
| data/g4f-0.2.1.6/g4f/Provider/unfinished/__init__.py | 137 | 48 | 216,559 |
LOAD_CONST 1
LOAD_CONST ('LocalControl',)
IMPORT_NAME control
IMPORT_FROM LocalControl
STORE_NAME LocalControl
POP_TOP
LOAD_CONST 1
LOAD_CONST ('LocalLoader',)
IMPORT_NAME loader
IMPORT_FROM LocalLoader
STORE_NAME LocalLoader
POP_TOP
LOAD_CONST 1
LOAD_CONST ('LocalPlugin',)
IMPORT_NAME plugin
IMPORT_FROM LocalPlugin
STORE_NAME LocalPlugin
POP_TOP
LOAD_CONST 'LocalControl'
LOAD_CONST 'LocalLoader'
LOAD_CONST 'LocalPlugin'
BUILD_LIST
STORE_NAME __all__
LOAD_CONST None
RETURN_VALUE | from .control import LocalControl
from .loader import LocalLoader
from .plugin import LocalPlugin
__all__ = [
"LocalControl",
"LocalLoader",
"LocalPlugin",
]
| data/frictionless-5.16.1/frictionless/schemes/local/__init__.py | 107 | 49 | 41,822 |
LOAD_CONST 0
LOAD_CONST ('comma_list', 'stringify_dict', 'stringify_value')
IMPORT_NAME langchain_core.utils.strings
IMPORT_FROM comma_list
STORE_NAME comma_list
IMPORT_FROM stringify_dict
STORE_NAME stringify_dict
IMPORT_FROM stringify_value
STORE_NAME stringify_value
POP_TOP
LOAD_CONST 'stringify_value'
LOAD_CONST 'stringify_dict'
LOAD_CONST 'comma_list'
BUILD_LIST
STORE_NAME __all__
LOAD_CONST None
RETURN_VALUE | from langchain_core.utils.strings import comma_list, stringify_dict, stringify_value
__all__ = ["stringify_value", "stringify_dict", "comma_list"]
| data/langchain-0.1.8/langchain/utils/strings.py | 107 | 49 | 368,473 |
LOAD_CONST '\nThis package contains CSTNode and all of the subclasses needed to express Python\'s full\ngrammar in a whitespace-sensitive fashion, forming a "Concrete" Syntax Tree (CST).\n'
STORE_NAME __doc__
LOAD_CONST None
RETURN_VALUE | """
This package contains CSTNode and all of the subclasses needed to express Python's full
grammar in a whitespace-sensitive fashion, forming a "Concrete" Syntax Tree (CST).
"""
| data/libcst-1.2.0/libcst/_nodes/__init__.py | 61 | 49 | 46,662 |
LOAD_CONST 0
LOAD_CONST ('FastAPI',)
IMPORT_NAME fastapi
IMPORT_FROM FastAPI
STORE_NAME FastAPI
POP_TOP
LOAD_NAME FastAPI
CALL_FUNCTION
STORE_NAME my_awesome_api
LOAD_NAME my_awesome_api
LOAD_METHOD get
LOAD_CONST '/'
CALL_METHOD
LOAD_CONST <code object root at 0x7fab5434bed0, file "f.py", line 6>
LOAD_CONST 'root'
MAKE_FUNCTION
CALL_FUNCTION
STORE_NAME root
LOAD_CONST None
RETURN_VALUE
LOAD_CONST 'message'
LOAD_CONST 'Hello World'
BUILD_MAP
RETURN_VALUE | from fastapi import FastAPI
my_awesome_api = FastAPI()
@my_awesome_api.get("/")
async def root():
return {"message": "Hello World"}
| data/fastapi-0.109.2/docs_src/first_steps/tutorial002.py | 121 | 49 | 142,201 |
LOAD_CONST 'A simple exception for the EE library.'
STORE_NAME __doc__
LOAD_BUILD_CLASS
LOAD_CONST <code object EEException at 0x7fab42b746f0, file "f.py", line 4>
LOAD_CONST 'EEException'
MAKE_FUNCTION
LOAD_CONST 'EEException'
LOAD_NAME Exception
CALL_FUNCTION
STORE_NAME EEException
LOAD_CONST None
RETURN_VALUE
LOAD_NAME __name__
STORE_NAME __module__
LOAD_CONST 'EEException'
STORE_NAME __qualname__
LOAD_CONST 'A simple exception for the EE library.'
STORE_NAME __doc__
LOAD_CONST None
RETURN_VALUE | """A simple exception for the EE library."""
class EEException(Exception): # pylint: disable=g-bad-exception-name
"""A simple exception for the EE library."""
| data/earthengine-api-0.1.390/ee/ee_exception.py | 129 | 49 | 308,822 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME subprocess
STORE_NAME subprocess
LOAD_CONST <code object test_hello_world at 0x7fab700e4c00, file "f.py", line 4>
LOAD_CONST 'test_hello_world'
MAKE_FUNCTION
STORE_NAME test_hello_world
LOAD_CONST None
RETURN_VALUE
LOAD_GLOBAL subprocess
LOAD_ATTR run
LOAD_CONST 'python examples/hello_world.py'
LOAD_CONST True
LOAD_CONST True
LOAD_CONST ('shell', 'check')
CALL_FUNCTION
POP_TOP
LOAD_CONST None
RETURN_VALUE | import subprocess
def test_hello_world():
subprocess.run(
"python examples/hello_world.py",
shell=True,
check=True,
)
| data/trl-0.7.11/tests/test_e2e.py | 121 | 49 | 194,644 |
LOAD_CONST 0
LOAD_CONST ('read_jsdmx',)
IMPORT_NAME pandas_datareader.io.jsdmx
IMPORT_FROM read_jsdmx
STORE_NAME read_jsdmx
POP_TOP
LOAD_CONST 0
LOAD_CONST ('read_sdmx',)
IMPORT_NAME pandas_datareader.io.sdmx
IMPORT_FROM read_sdmx
STORE_NAME read_sdmx
POP_TOP
LOAD_CONST None
RETURN_VALUE | from pandas_datareader.io.jsdmx import read_jsdmx # noqa
from pandas_datareader.io.sdmx import read_sdmx # noqa
| data/pandas-datareader-0.10.0/pandas_datareader/io/__init__.py | 90 | 49 | 248,665 |
LOAD_CONST 0
LOAD_CONST ('TypeVar',)
IMPORT_NAME typing
IMPORT_FROM TypeVar
STORE_NAME TypeVar
POP_TOP
LOAD_CONST 0
LOAD_CONST ('ApiGatewayResolver',)
IMPORT_NAME aws_lambda_powertools.event_handler
IMPORT_FROM ApiGatewayResolver
STORE_NAME ApiGatewayResolver
POP_TOP
LOAD_NAME TypeVar
LOAD_CONST 'EventHandlerInstance'
LOAD_NAME ApiGatewayResolver
LOAD_CONST ('bound',)
CALL_FUNCTION
STORE_NAME EventHandlerInstance
LOAD_CONST None
RETURN_VALUE | from typing import TypeVar
from aws_lambda_powertools.event_handler import ApiGatewayResolver
EventHandlerInstance = TypeVar("EventHandlerInstance", bound=ApiGatewayResolver)
| data/aws_lambda_powertools-2.34.0/aws_lambda_powertools/event_handler/types.py | 108 | 49 | 359,692 |
LOAD_CONST '#!/bin/bash\n\n${scheduler_options}\n\n${worker_init}\n\nexport JOBNAME="${jobname}"\n\n$user_script\n'
STORE_NAME template_string
LOAD_CONST None
RETURN_VALUE | template_string = """#!/bin/bash
${scheduler_options}
${worker_init}
export JOBNAME="${jobname}"
$user_script
"""
| data/parsl-2024.2.19/parsl/providers/slurm/template.py | 62 | 49 | 123,387 |
LOAD_CONST <code object not_bug at 0x7fab4106cd20, file "f.py", line 1>
LOAD_CONST 'not_bug'
MAKE_FUNCTION
STORE_NAME not_bug
LOAD_NAME not_bug
CALL_FUNCTION
POP_JUMP_IF_TRUE
LOAD_GLOBAL AssertionError
RAISE_VARARGS
LOAD_CONST None
RETURN_VALUE
LOAD_CONST 5
STORE_DEREF cache_token
LOAD_CLOSURE cache_token
BUILD_TUPLE
LOAD_CONST <code object register at 0x7fab4106c1e0, file "f.py", line 4>
LOAD_CONST 'not_bug.<locals>.register'
MAKE_FUNCTION
STORE_FAST register
LOAD_FAST register
CALL_FUNCTION
RETURN_VALUE
LOAD_DEREF cache_token
LOAD_CONST 5
COMPARE_OP ==
RETURN_VALUE | def not_bug():
cache_token = 5
def register():
nonlocal cache_token
return cache_token == 5
return register()
assert not_bug()
| data/xdis-6.0.5/test/simple_source/bug33/05_nonlocal.py | 161 | 49 | 85,407 |
LOAD_CONST 0
LOAD_CONST ('absolute_import', 'division', 'print_function')
IMPORT_NAME __future__
IMPORT_FROM absolute_import
STORE_NAME absolute_import
IMPORT_FROM division
STORE_NAME division
IMPORT_FROM print_function
STORE_NAME print_function
POP_TOP
LOAD_NAME type
STORE_NAME __metaclass__
LOAD_BUILD_CLASS
LOAD_CONST <code object TestModule at 0x7faa5f4bc150, file "f.py", line 6>
LOAD_CONST 'TestModule'
MAKE_FUNCTION
LOAD_CONST 'TestModule'
CALL_FUNCTION
STORE_NAME TestModule
LOAD_CONST None
RETURN_VALUE
LOAD_NAME __name__
STORE_NAME __module__
LOAD_CONST 'TestModule'
STORE_NAME __qualname__
LOAD_CONST <code object tests at 0x7faa5f4bcae0, file "f.py", line 7>
LOAD_CONST 'TestModule.tests'
MAKE_FUNCTION
STORE_NAME tests
LOAD_CONST None
RETURN_VALUE
LOAD_GLOBAL TypeError
LOAD_CONST 'bad_test'
CALL_FUNCTION
RAISE_VARARGS
LOAD_CONST None
RETURN_VALUE | from __future__ import absolute_import, division, print_function
__metaclass__ = type
class TestModule:
def tests(self):
raise TypeError("bad_test")
| data/ansible-core-2.16.3/test/integration/targets/jinja_plugins/test_plugins/bad_test.py | 218 | 49 | 437,505 |
LOAD_CONST 0
LOAD_CONST ('_monkey',)
IMPORT_NAME ddtrace
IMPORT_FROM _monkey
STORE_NAME _monkey
POP_TOP
LOAD_NAME __name__
LOAD_CONST '__main__'
COMPARE_OP ==
POP_JUMP_IF_FALSE
LOAD_CONST 'redis'
LOAD_NAME _monkey
LOAD_METHOD _get_patched_modules
CALL_METHOD
COMPARE_OP in
POP_JUMP_IF_TRUE
LOAD_GLOBAL AssertionError
RAISE_VARARGS
LOAD_NAME print
LOAD_CONST 'Test success'
CALL_FUNCTION
POP_TOP
LOAD_CONST None
RETURN_VALUE | from ddtrace import _monkey
if __name__ == "__main__":
assert "redis" in _monkey._get_patched_modules()
print("Test success")
| data/ddtrace-2.6.3/tests/commands/ddtrace_run_patched_modules.py | 101 | 49 | 270,099 |
LOAD_CONST 0
LOAD_CONST ('ApiForget',)
IMPORT_NAME onelogin.paths.api_2_mappings_conditions.get
IMPORT_FROM ApiForget
STORE_NAME ApiForget
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object Api2MappingsConditions at 0x7f8e2ff5eb70, file "f.py", line 4>
LOAD_CONST 'Api2MappingsConditions'
MAKE_FUNCTION
LOAD_CONST 'Api2MappingsConditions'
LOAD_NAME ApiForget
CALL_FUNCTION
STORE_NAME Api2MappingsConditions
LOAD_CONST None
RETURN_VALUE
LOAD_NAME __name__
STORE_NAME __module__
LOAD_CONST 'Api2MappingsConditions'
STORE_NAME __qualname__
LOAD_CONST None
RETURN_VALUE | from onelogin.paths.api_2_mappings_conditions.get import ApiForget
class Api2MappingsConditions(
ApiForget,
):
pass
| data/onelogin-3.1.6/onelogin/apis/paths/api_2_mappings_conditions.py | 163 | 49 | 397,280 |
LOAD_CONST 'The `error_wrappers` module is a backport module from V1.'
STORE_NAME __doc__
LOAD_CONST 1
LOAD_CONST ('getattr_migration',)
IMPORT_NAME _migration
IMPORT_FROM getattr_migration
STORE_NAME getattr_migration
POP_TOP
LOAD_NAME getattr_migration
LOAD_NAME __name__
CALL_FUNCTION
STORE_NAME __getattr__
LOAD_CONST None
RETURN_VALUE | """The `error_wrappers` module is a backport module from V1."""
from ._migration import getattr_migration
__getattr__ = getattr_migration(__name__)
| data/pydantic-2.6.1/pydantic/error_wrappers.py | 88 | 49 | 271,007 |
LOAD_CONST 0
LOAD_CONST ('TestCase',)
IMPORT_NAME PyObjCTools.TestSupport
IMPORT_FROM TestCase
STORE_NAME TestCase
POP_TOP
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME MailKit
STORE_NAME MailKit
LOAD_BUILD_CLASS
LOAD_CONST <code object TestMEDecodedMessage at 0x7fab00136270, file "f.py", line 5>
LOAD_CONST 'TestMEDecodedMessage'
MAKE_FUNCTION
LOAD_CONST 'TestMEDecodedMessage'
LOAD_NAME TestCase
CALL_FUNCTION
STORE_NAME TestMEDecodedMessage
LOAD_CONST None
RETURN_VALUE
LOAD_NAME __name__
STORE_NAME __module__
LOAD_CONST 'TestMEDecodedMessage'
STORE_NAME __qualname__
LOAD_CONST <code object test_classes at 0x7fab8244db70, file "f.py", line 6>
LOAD_CONST 'TestMEDecodedMessage.test_classes'
MAKE_FUNCTION
STORE_NAME test_classes
LOAD_CONST None
RETURN_VALUE
LOAD_GLOBAL MailKit
LOAD_ATTR MEDecodedMessage
POP_TOP
LOAD_CONST None
RETURN_VALUE | from PyObjCTools.TestSupport import TestCase
import MailKit
class TestMEDecodedMessage(TestCase):
def test_classes(self):
MailKit.MEDecodedMessage
| data/pyobjc-framework-MailKit-10.1/PyObjCTest/test_medecodedmessage.py | 232 | 49 | 94,107 |
LOAD_CONST 0
LOAD_CONST ('inject', 'Provide')
IMPORT_NAME dependency_injector.wiring
IMPORT_FROM inject
STORE_NAME inject
IMPORT_FROM Provide
STORE_NAME Provide
POP_TOP
LOAD_CONST 3
LOAD_CONST ('Service',)
IMPORT_NAME service
IMPORT_FROM Service
STORE_NAME Service
POP_TOP
LOAD_NAME inject
LOAD_NAME Provide
LOAD_CONST 'service'
BINARY_SUBSCR
BUILD_TUPLE
LOAD_NAME Service
LOAD_CONST ('service',)
BUILD_CONST_KEY_MAP
LOAD_CONST <code object test_function at 0x7faa8c241660, file "f.py", line 6>
LOAD_CONST 'test_function'
MAKE_FUNCTION
CALL_FUNCTION
STORE_NAME test_function
LOAD_CONST None
RETURN_VALUE
LOAD_FAST service
RETURN_VALUE | from dependency_injector.wiring import inject, Provide
from ...service import Service
@inject
def test_function(service: Service = Provide["service"]):
return service
| data/dependency-injector-4.41.0/tests/unit/samples/wiringstringids/package/subpackage/submodule.py | 152 | 49 | 271,585 |
LOAD_CONST 0
LOAD_CONST ('absolute_import',)
IMPORT_NAME __future__
IMPORT_FROM absolute_import
STORE_NAME absolute_import
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object Propagator at 0x7fab5429d660, file "f.py", line 4>
LOAD_CONST 'Propagator'
MAKE_FUNCTION
LOAD_CONST 'Propagator'
LOAD_NAME object
CALL_FUNCTION
STORE_NAME Propagator
LOAD_CONST None
RETURN_VALUE
LOAD_NAME __name__
STORE_NAME __module__
LOAD_CONST 'Propagator'
STORE_NAME __qualname__
LOAD_CONST <code object inject at 0x7fae471296f0, file "f.py", line 5>
LOAD_CONST 'Propagator.inject'
MAKE_FUNCTION
STORE_NAME inject
LOAD_CONST <code object extract at 0x7fab5429d030, file "f.py", line 8>
LOAD_CONST 'Propagator.extract'
MAKE_FUNCTION
STORE_NAME extract
LOAD_CONST None
RETURN_VALUE
LOAD_CONST None
RETURN_VALUE
LOAD_CONST None
RETURN_VALUE | from __future__ import absolute_import
class Propagator(object):
def inject(self, span_context, carrier):
pass
def extract(self, carrier):
pass
| data/opentracing-2.4.0/opentracing/mocktracer/propagator.py | 235 | 49 | 42,426 |
LOAD_CONST '\nThis file is automatically generated by attribution.\n\nDo not edit manually. Get more info at https://attribution.omnilib.dev\n'
STORE_NAME __doc__
LOAD_CONST '1.4.0'
STORE_NAME __version__
LOAD_CONST None
RETURN_VALUE | """
This file is automatically generated by attribution.
Do not edit manually. Get more info at https://attribution.omnilib.dev
"""
__version__ = "1.4.0"
| data/trailrunner-1.4.0/trailrunner/__version__.py | 63 | 49 | 305,750 |
LOAD_CONST 'dedicated-ips'
STORE_NAME DEDICATED_IPS
LOAD_CONST 'locations'
STORE_NAME LOC
LOAD_CONST 'locations-weighted'
STORE_NAME LOC_WEIGHTED
LOAD_CONST 2048
STORE_NAME NOTE_SIZE_LIMIT
LOAD_CONST None
RETURN_VALUE | DEDICATED_IPS = "dedicated-ips"
LOC = "locations"
LOC_WEIGHTED = "locations-weighted"
NOTE_SIZE_LIMIT = 2048
| data/bzt-1.16.27/bzt/modules/blazemeter/const.py | 68 | 49 | 330,428 |
LOAD_CONST 1
LOAD_CONST ('RemoteControl',)
IMPORT_NAME control
IMPORT_FROM RemoteControl
STORE_NAME RemoteControl
POP_TOP
LOAD_CONST 1
LOAD_CONST ('RemoteLoader',)
IMPORT_NAME loader
IMPORT_FROM RemoteLoader
STORE_NAME RemoteLoader
POP_TOP
LOAD_CONST 1
LOAD_CONST ('RemotePlugin',)
IMPORT_NAME plugin
IMPORT_FROM RemotePlugin
STORE_NAME RemotePlugin
POP_TOP
LOAD_CONST 'RemoteControl'
LOAD_CONST 'RemoteLoader'
LOAD_CONST 'RemotePlugin'
BUILD_LIST
STORE_NAME __all__
LOAD_CONST None
RETURN_VALUE | from .control import RemoteControl
from .loader import RemoteLoader
from .plugin import RemotePlugin
__all__ = [
"RemoteControl",
"RemoteLoader",
"RemotePlugin",
]
| data/frictionless-5.16.1/frictionless/schemes/remote/__init__.py | 107 | 49 | 41,840 |
LOAD_CONST 0
LOAD_CONST ('unicode_literals', 'division', 'absolute_import', 'print_function')
IMPORT_NAME __future__
IMPORT_FROM unicode_literals
STORE_NAME unicode_literals
IMPORT_FROM division
STORE_NAME division
IMPORT_FROM absolute_import
STORE_NAME absolute_import
IMPORT_FROM print_function
STORE_NAME print_function
POP_TOP
LOAD_CONST 0
LOAD_CONST ('ReadlineRenderer',)
IMPORT_NAME powerline.renderers.shell.readline
IMPORT_FROM ReadlineRenderer
STORE_NAME ReadlineRenderer
POP_TOP
LOAD_NAME ReadlineRenderer
STORE_NAME renderer
LOAD_CONST None
RETURN_VALUE | from __future__ import unicode_literals, division, absolute_import, print_function
from powerline.renderers.shell.readline import ReadlineRenderer
renderer = ReadlineRenderer
| data/powerline-status-2.7/powerline/renderers/shell/rcsh.py | 127 | 49 | 343,309 |
LOAD_CONST 0
LOAD_CONST ('EdenAiTextToSpeechTool',)
IMPORT_NAME langchain_community.tools.edenai.audio_text_to_speech
IMPORT_FROM EdenAiTextToSpeechTool
STORE_NAME EdenAiTextToSpeechTool
POP_TOP
LOAD_CONST 'EdenAiTextToSpeechTool'
BUILD_LIST
STORE_NAME __all__
LOAD_CONST None
RETURN_VALUE | from langchain_community.tools.edenai.audio_text_to_speech import EdenAiTextToSpeechTool
__all__ = ["EdenAiTextToSpeechTool"]
| data/langchain-0.1.8/langchain/tools/edenai/audio_text_to_speech.py | 89 | 49 | 369,326 |
LOAD_CONST 0
LOAD_CONST ('io_util',)
IMPORT_NAME benedict.dicts.io
IMPORT_FROM io_util
STORE_NAME io_util
POP_TOP
LOAD_CONST 0
LOAD_CONST ('IODict',)
IMPORT_NAME benedict.dicts.io.io_dict
IMPORT_FROM IODict
STORE_NAME IODict
POP_TOP
LOAD_CONST 'IODict'
LOAD_CONST 'io_util'
BUILD_LIST
STORE_NAME __all__
LOAD_CONST None
RETURN_VALUE | from benedict.dicts.io import io_util
from benedict.dicts.io.io_dict import IODict
__all__ = ["IODict", "io_util"]
| data/python-benedict-0.33.1/benedict/dicts/io/__init__.py | 100 | 49 | 211,424 |
LOAD_CONST 2
LOAD_CONST ('Provider',)
IMPORT_NAME en_PH
IMPORT_FROM Provider
STORE_NAME EnPhPhoneNumberProvider
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object Provider at 0x7fab42838b70, file "f.py", line 4>
LOAD_CONST 'Provider'
MAKE_FUNCTION
LOAD_CONST 'Provider'
LOAD_NAME EnPhPhoneNumberProvider
CALL_FUNCTION
STORE_NAME Provider
LOAD_CONST None
RETURN_VALUE
LOAD_NAME __name__
STORE_NAME __module__
LOAD_CONST 'Provider'
STORE_NAME __qualname__
LOAD_CONST 'No difference from Phone Number Provider for en_PH locale'
STORE_NAME __doc__
LOAD_CONST None
RETURN_VALUE | from ..en_PH import Provider as EnPhPhoneNumberProvider
class Provider(EnPhPhoneNumberProvider):
"""No difference from Phone Number Provider for en_PH locale"""
pass
| data/Faker-23.2.1/faker/providers/phone_number/tl_PH/__init__.py | 144 | 49 | 16,813 |
LOAD_CONST 0
LOAD_CONST ('absolute_import', 'division', 'print_function')
IMPORT_NAME __future__
IMPORT_FROM absolute_import
STORE_NAME absolute_import
IMPORT_FROM division
STORE_NAME division
IMPORT_FROM print_function
STORE_NAME print_function
POP_TOP
LOAD_NAME type
STORE_NAME __metaclass__
LOAD_BUILD_CLASS
LOAD_CONST <code object FilterModule at 0x7faa5f4bc150, file "f.py", line 6>
LOAD_CONST 'FilterModule'
MAKE_FUNCTION
LOAD_CONST 'FilterModule'
CALL_FUNCTION
STORE_NAME FilterModule
LOAD_CONST None
RETURN_VALUE
LOAD_NAME __name__
STORE_NAME __module__
LOAD_CONST 'FilterModule'
STORE_NAME __qualname__
LOAD_CONST <code object filters at 0x7faa5f4bcae0, file "f.py", line 7>
LOAD_CONST 'FilterModule.filters'
MAKE_FUNCTION
STORE_NAME filters
LOAD_CONST None
RETURN_VALUE
LOAD_GLOBAL TypeError
LOAD_CONST 'bad_filter'
CALL_FUNCTION
RAISE_VARARGS
LOAD_CONST None
RETURN_VALUE | from __future__ import absolute_import, division, print_function
__metaclass__ = type
class FilterModule:
def filters(self):
raise TypeError("bad_filter")
| data/ansible-core-2.16.3/test/integration/targets/jinja_plugins/filter_plugins/bad_filter.py | 219 | 49 | 437,502 |
LOAD_CONST 'Forward modeling code.'
STORE_NAME __doc__
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME lazy_loader
STORE_NAME lazy
LOAD_NAME lazy
LOAD_METHOD attach_stub
LOAD_NAME __name__
LOAD_NAME __file__
CALL_METHOD
UNPACK_SEQUENCE
STORE_NAME __getattr__
STORE_NAME __dir__
STORE_NAME __all__
LOAD_CONST None
RETURN_VALUE | """Forward modeling code."""
import lazy_loader as lazy # for testing purposes
(__getattr__, __dir__, __all__) = lazy.attach_stub(__name__, __file__)
| data/mne-1.6.1/mne/forward/__init__.py | 74 | 49 | 125,919 |
LOAD_CONST 0
LOAD_CONST ('models',)
IMPORT_NAME django.db
IMPORT_FROM models
STORE_NAME models
POP_TOP
LOAD_CONST 0
LOAD_CONST ('GHRegionField',)
IMPORT_NAME localflavor.gh.models
IMPORT_FROM GHRegionField
STORE_NAME GHRegionField
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object GHPlace at 0x7f8aac1fa030, file "f.py", line 6>
LOAD_CONST 'GHPlace'
MAKE_FUNCTION
LOAD_CONST 'GHPlace'
LOAD_NAME models
LOAD_ATTR Model
CALL_FUNCTION
STORE_NAME GHPlace
LOAD_CONST None
RETURN_VALUE
LOAD_NAME __name__
STORE_NAME __module__
LOAD_CONST 'GHPlace'
STORE_NAME __qualname__
LOAD_NAME GHRegionField
LOAD_CONST True
LOAD_CONST ('blank',)
CALL_FUNCTION
STORE_NAME region
LOAD_CONST None
RETURN_VALUE | from django.db import models
from localflavor.gh.models import GHRegionField
class GHPlace(models.Model):
region = GHRegionField(blank=True)
| data/django-localflavor-4.0/tests/test_gh/models.py | 177 | 49 | 434,811 |
LOAD_CONST 0
LOAD_CONST ('_Methods',)
IMPORT_NAME sympy.physics.mechanics.method
IMPORT_FROM _Methods
STORE_NAME _Methods
POP_TOP
LOAD_CONST 0
LOAD_CONST ('raises',)
IMPORT_NAME sympy.testing.pytest
IMPORT_FROM raises
STORE_NAME raises
POP_TOP
LOAD_CONST <code object test_method at 0x7fab8239ad20, file "f.py", line 5>
LOAD_CONST 'test_method'
MAKE_FUNCTION
STORE_NAME test_method
LOAD_CONST None
RETURN_VALUE
LOAD_GLOBAL raises
LOAD_GLOBAL TypeError
LOAD_CONST <code object <lambda> at 0x7fab8239ac00, file "f.py", line 6>
LOAD_CONST 'test_method.<locals>.<lambda>'
MAKE_FUNCTION
CALL_FUNCTION
POP_TOP
LOAD_CONST None
RETURN_VALUE
LOAD_GLOBAL _Methods
CALL_FUNCTION
RETURN_VALUE | from sympy.physics.mechanics.method import _Methods
from sympy.testing.pytest import raises
def test_method():
raises(TypeError, lambda: _Methods())
| data/sympy-1.12/sympy/physics/mechanics/tests/test_method.py | 193 | 49 | 228,428 |
LOAD_CONST 'Pip compile multi aka requirements'
STORE_NAME __doc__
LOAD_CONST 'Peter Demin'
STORE_NAME __author__
LOAD_CONST 'peterdemin@gmail.com'
STORE_NAME __email__
LOAD_CONST '2.6.3'
STORE_NAME __version__
LOAD_CONST None
RETURN_VALUE | """Pip compile multi aka requirements"""
__author__ = "Peter Demin"
__email__ = "peterdemin@gmail.com"
__version__ = "2.6.3"
| data/pip-compile-multi-2.6.3/pipcompilemulti/__init__.py | 67 | 49 | 448,378 |
LOAD_CONST <code object setup at 0x7faa5f6db1e0, file "f.py", line 1>
LOAD_CONST 'setup'
MAKE_FUNCTION
STORE_NAME setup
LOAD_CONST None
RETURN_VALUE
LOAD_FAST app
LOAD_ATTR add_crossref_type
LOAD_CONST 'setting'
LOAD_CONST 'setting'
LOAD_CONST 'pair: %s; setting'
LOAD_CONST ('directivename', 'rolename', 'indextemplate')
CALL_FUNCTION
POP_TOP
LOAD_CONST None
RETURN_VALUE | def setup(app):
app.add_crossref_type(
directivename="setting", rolename="setting", indextemplate="pair: %s; setting"
)
| data/django-phonenumber-field-7.3.0/docs/ext/phonenumber_field_docs.py | 104 | 49 | 247,110 |
LOAD_CONST '\nThis file is automatically generated by attribution.\n\nDo not edit manually. Get more info at https://attribution.omnilib.dev\n'
STORE_NAME __doc__
LOAD_CONST '0.5.3'
STORE_NAME __version__
LOAD_CONST None
RETURN_VALUE | """
This file is automatically generated by attribution.
Do not edit manually. Get more info at https://attribution.omnilib.dev
"""
__version__ = "0.5.3"
| data/sphinx_mdinclude-0.5.3/sphinx_mdinclude/__version__.py | 63 | 49 | 185,865 |
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 PriorityClass
IMPORT_STAR
LOAD_CONST 1
LOAD_CONST ('*',)
IMPORT_NAME PriorityClassList
IMPORT_STAR
LOAD_CONST 1
LOAD_CONST ('*',)
IMPORT_NAME PriorityClassPatch
IMPORT_STAR
LOAD_CONST 1
LOAD_CONST ('*',)
IMPORT_NAME _inputs
IMPORT_STAR
LOAD_CONST 1
LOAD_CONST ('outputs',)
IMPORT_NAME
IMPORT_FROM outputs
STORE_NAME outputs
POP_TOP
LOAD_CONST None
RETURN_VALUE | from ... import _utilities
import typing
from .PriorityClass import *
from .PriorityClassList import *
from .PriorityClassPatch import *
from ._inputs import *
from . import outputs
| data/pulumi_kubernetes-4.7.1/pulumi_kubernetes/scheduling/v1/__init__.py | 142 | 49 | 124,401 |
LOAD_CONST 0
LOAD_CONST ('DoctranTextTranslator',)
IMPORT_NAME langchain_community.document_transformers.doctran_text_translate
IMPORT_FROM DoctranTextTranslator
STORE_NAME DoctranTextTranslator
POP_TOP
LOAD_CONST 'DoctranTextTranslator'
BUILD_LIST
STORE_NAME __all__
LOAD_CONST None
RETURN_VALUE | from langchain_community.document_transformers.doctran_text_translate import (
DoctranTextTranslator,
)
__all__ = ["DoctranTextTranslator"]
| data/langchain-0.1.8/langchain/document_transformers/doctran_text_translate.py | 79 | 49 | 369,161 |
LOAD_CONST <code object not_bug at 0x7fab0028b810, file "f.py", line 1>
LOAD_CONST 'not_bug'
MAKE_FUNCTION
STORE_NAME not_bug
LOAD_NAME not_bug
CALL_FUNCTION
POP_JUMP_IF_TRUE
LOAD_GLOBAL AssertionError
RAISE_VARARGS
LOAD_CONST None
RETURN_VALUE
LOAD_CONST 5
STORE_DEREF cache_token
LOAD_CLOSURE cache_token
BUILD_TUPLE
LOAD_CONST <code object register at 0x7fab42324ed0, file "f.py", line 4>
LOAD_CONST 'not_bug.<locals>.register'
MAKE_FUNCTION
STORE_FAST register
LOAD_FAST register
CALL_FUNCTION
RETURN_VALUE
LOAD_DEREF cache_token
LOAD_CONST 5
COMPARE_OP ==
RETURN_VALUE | def not_bug():
cache_token = 5
def register():
nonlocal cache_token
return cache_token == 5
return register()
assert not_bug()
| data/uncompyle6-3.9.0/test/simple_source/bug33/05_nonlocal.py | 161 | 49 | 442,106 |
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 PriorityClass
IMPORT_STAR
LOAD_CONST 1
LOAD_CONST ('*',)
IMPORT_NAME PriorityClassList
IMPORT_STAR
LOAD_CONST 1
LOAD_CONST ('*',)
IMPORT_NAME PriorityClassPatch
IMPORT_STAR
LOAD_CONST 1
LOAD_CONST ('*',)
IMPORT_NAME _inputs
IMPORT_STAR
LOAD_CONST 1
LOAD_CONST ('outputs',)
IMPORT_NAME
IMPORT_FROM outputs
STORE_NAME outputs
POP_TOP
LOAD_CONST None
RETURN_VALUE | from ... import _utilities
import typing
from .PriorityClass import *
from .PriorityClassList import *
from .PriorityClassPatch import *
from ._inputs import *
from . import outputs
| data/pulumi_kubernetes-4.7.1/pulumi_kubernetes/scheduling/v1beta1/__init__.py | 142 | 49 | 124,407 |
LOAD_CONST 0
LOAD_CONST ('patcher',)
IMPORT_NAME eventlet
IMPORT_FROM patcher
STORE_NAME patcher
POP_TOP
LOAD_CONST 0
LOAD_CONST ('response',)
IMPORT_NAME eventlet.green.urllib
IMPORT_FROM response
STORE_NAME response
POP_TOP
LOAD_NAME patcher
LOAD_METHOD inject
LOAD_CONST 'urllib.error'
LOAD_NAME globals
CALL_FUNCTION
LOAD_CONST 'urllib.response'
LOAD_NAME response
BUILD_TUPLE
CALL_METHOD
POP_TOP
DELETE_NAME patcher
LOAD_CONST None
RETURN_VALUE | from eventlet import patcher
from eventlet.green.urllib import response
patcher.inject("urllib.error", globals(), ("urllib.response", response))
del patcher
| data/eventlet-0.35.1/eventlet/green/urllib/error.py | 104 | 49 | 361,959 |
LOAD_BUILD_CLASS
LOAD_CONST <code object InternalError at 0x7fab425a9300, file "f.py", line 1>
LOAD_CONST 'InternalError'
MAKE_FUNCTION
LOAD_CONST 'InternalError'
LOAD_NAME Exception
CALL_FUNCTION
STORE_NAME InternalError
LOAD_BUILD_CLASS
LOAD_CONST <code object InvalidAccessError at 0x7fab425a95d0, file "f.py", line 5>
LOAD_CONST 'InvalidAccessError'
MAKE_FUNCTION
LOAD_CONST 'InvalidAccessError'
LOAD_NAME Exception
CALL_FUNCTION
STORE_NAME InvalidAccessError
LOAD_BUILD_CLASS
LOAD_CONST <code object InvalidStateError at 0x7fab425a9780, file "f.py", line 9>
LOAD_CONST 'InvalidStateError'
MAKE_FUNCTION
LOAD_CONST 'InvalidStateError'
LOAD_NAME Exception
CALL_FUNCTION
STORE_NAME InvalidStateError
LOAD_BUILD_CLASS
LOAD_CONST <code object OperationError at 0x7fab425a94b0, file "f.py", line 13>
LOAD_CONST 'OperationError'
MAKE_FUNCTION
LOAD_CONST 'OperationError'
LOAD_NAME Exception
CALL_FUNCTION
STORE_NAME OperationError
LOAD_CONST None
RETURN_VALUE
LOAD_NAME __name__
STORE_NAME __module__
LOAD_CONST 'InternalError'
STORE_NAME __qualname__
LOAD_CONST None
RETURN_VALUE
LOAD_NAME __name__
STORE_NAME __module__
LOAD_CONST 'InvalidAccessError'
STORE_NAME __qualname__
LOAD_CONST None
RETURN_VALUE
LOAD_NAME __name__
STORE_NAME __module__
LOAD_CONST 'InvalidStateError'
STORE_NAME __qualname__
LOAD_CONST None
RETURN_VALUE
LOAD_NAME __name__
STORE_NAME __module__
LOAD_CONST 'OperationError'
STORE_NAME __qualname__
LOAD_CONST None
RETURN_VALUE | class InternalError(Exception):
pass
class InvalidAccessError(Exception):
pass
class InvalidStateError(Exception):
pass
class OperationError(Exception):
pass
| data/aiortc-1.7.0/src/aiortc/exceptions.py | 367 | 49 | 163,302 |
LOAD_CONST 'Callback Handler streams to stdout on new llm token.'
STORE_NAME __doc__
LOAD_CONST 0
LOAD_CONST ('StreamingStdOutCallbackHandler',)
IMPORT_NAME langchain_core.callbacks
IMPORT_FROM StreamingStdOutCallbackHandler
STORE_NAME StreamingStdOutCallbackHandler
POP_TOP
LOAD_CONST 'StreamingStdOutCallbackHandler'
BUILD_LIST
STORE_NAME __all__
LOAD_CONST None
RETURN_VALUE | """Callback Handler streams to stdout on new llm token."""
from langchain_core.callbacks import StreamingStdOutCallbackHandler
__all__ = ["StreamingStdOutCallbackHandler"]
| data/langchain-0.1.8/langchain/callbacks/streaming_stdout.py | 91 | 49 | 368,318 |
LOAD_CONST 'Constants for SlimProto Player integration.'
STORE_NAME __doc__
LOAD_CONST 'slimproto'
STORE_NAME DOMAIN
LOAD_CONST 'SlimProto Player'
STORE_NAME DEFAULT_NAME
LOAD_NAME DOMAIN
FORMAT_VALUE
LOAD_CONST '_event'
BUILD_STRING
STORE_NAME PLAYER_EVENT
LOAD_CONST None
RETURN_VALUE | """Constants for SlimProto Player integration."""
DOMAIN = "slimproto"
DEFAULT_NAME = "SlimProto Player"
PLAYER_EVENT = f"{DOMAIN}_event"
| data/homeassistant-2024.2.2/homeassistant/components/slimproto/const.py | 68 | 49 | 296,812 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME sys
STORE_NAME sys
LOAD_CONST 1
LOAD_CONST ('cli',)
IMPORT_NAME
IMPORT_FROM cli
STORE_NAME cli
POP_TOP
LOAD_CONST <code object main at 0x7f8e2fe58810, file "f.py", line 6>
LOAD_CONST 'main'
MAKE_FUNCTION
STORE_NAME main
LOAD_NAME __name__
LOAD_CONST '__main__'
COMPARE_OP ==
POP_JUMP_IF_FALSE
LOAD_NAME sys
LOAD_METHOD exit
LOAD_NAME main
CALL_FUNCTION
CALL_METHOD
POP_TOP
LOAD_CONST None
RETURN_VALUE
LOAD_GLOBAL cli
LOAD_METHOD Cli
CALL_METHOD
LOAD_METHOD run
CALL_METHOD
RETURN_VALUE | import sys
from . import cli
def main():
return cli.Cli().run()
if __name__ == "__main__":
sys.exit(main())
| data/py7zr-0.20.8/py7zr/__main__.py | 136 | 49 | 397,754 |
LOAD_CONST 0
LOAD_CONST ('BeautifulSoupTransformer',)
IMPORT_NAME langchain_community.document_transformers.beautiful_soup_transformer
IMPORT_FROM BeautifulSoupTransformer
STORE_NAME BeautifulSoupTransformer
POP_TOP
LOAD_CONST 'BeautifulSoupTransformer'
BUILD_LIST
STORE_NAME __all__
LOAD_CONST None
RETURN_VALUE | from langchain_community.document_transformers.beautiful_soup_transformer import (
BeautifulSoupTransformer,
)
__all__ = ["BeautifulSoupTransformer"]
| data/langchain-0.1.8/langchain/document_transformers/beautiful_soup_transformer.py | 78 | 49 | 369,168 |
LOAD_CONST 1
LOAD_CONST ('DataclassWrapper',)
IMPORT_NAME dataclass_wrapper
IMPORT_FROM DataclassWrapper
STORE_NAME DataclassWrapper
POP_TOP
LOAD_CONST 1
LOAD_CONST ('DashVariant', 'FieldWrapper')
IMPORT_NAME field_wrapper
IMPORT_FROM DashVariant
STORE_NAME DashVariant
IMPORT_FROM FieldWrapper
STORE_NAME FieldWrapper
POP_TOP
LOAD_CONST 'DataclassWrapper'
LOAD_CONST 'FieldWrapper'
LOAD_CONST 'DashVariant'
BUILD_LIST
STORE_NAME __all__
LOAD_CONST None
RETURN_VALUE | from .dataclass_wrapper import DataclassWrapper
from .field_wrapper import DashVariant, FieldWrapper
__all__ = ["DataclassWrapper", "FieldWrapper", "DashVariant"]
| data/simple_parsing-0.1.5/simple_parsing/wrappers/__init__.py | 111 | 49 | 133,407 |
LOAD_CONST 'cifar10_h dataset.'
STORE_NAME __doc__
LOAD_CONST 0
LOAD_CONST ('Cifar10H',)
IMPORT_NAME tensorflow_datasets.image_classification.cifar10_h.cifar10_h
IMPORT_FROM Cifar10H
STORE_NAME Cifar10H
POP_TOP
LOAD_CONST None
RETURN_VALUE | """cifar10_h dataset."""
from tensorflow_datasets.image_classification.cifar10_h.cifar10_h import Cifar10H
| data/tensorflow-datasets-4.9.4/tensorflow_datasets/image_classification/cifar10_h/__init__.py | 85 | 49 | 255,471 |
LOAD_CONST 1
LOAD_CONST ('KryoSerializer',)
IMPORT_NAME serde
IMPORT_FROM KryoSerializer
STORE_NAME KryoSerializer
POP_TOP
LOAD_CONST 1
LOAD_CONST ('SedonaKryoRegistrator',)
IMPORT_NAME serde
IMPORT_FROM SedonaKryoRegistrator
STORE_NAME SedonaKryoRegistrator
POP_TOP
LOAD_CONST 'KryoSerializer'
LOAD_CONST 'SedonaKryoRegistrator'
BUILD_LIST
STORE_NAME __all__
LOAD_CONST None
RETURN_VALUE | from .serde import KryoSerializer
from .serde import SedonaKryoRegistrator
__all__ = ["KryoSerializer", "SedonaKryoRegistrator"]
| data/apache-sedona-1.5.1/sedona/utils/__init__.py | 112 | 49 | 335,118 |
LOAD_CONST 2
LOAD_CONST ('Provider',)
IMPORT_NAME en_PH
IMPORT_FROM Provider
STORE_NAME EnPhSsnProvider
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object Provider at 0x7fab82345780, file "f.py", line 4>
LOAD_CONST 'Provider'
MAKE_FUNCTION
LOAD_CONST 'Provider'
LOAD_NAME EnPhSsnProvider
CALL_FUNCTION
STORE_NAME Provider
LOAD_CONST None
RETURN_VALUE
LOAD_NAME __name__
STORE_NAME __module__
LOAD_CONST 'Provider'
STORE_NAME __qualname__
LOAD_CONST 'No difference from SSN Provider for en_PH locale'
STORE_NAME __doc__
LOAD_CONST None
RETURN_VALUE | from ..en_PH import Provider as EnPhSsnProvider
class Provider(EnPhSsnProvider):
"""No difference from SSN Provider for en_PH locale"""
pass
| data/Faker-23.2.1/faker/providers/ssn/fil_PH/__init__.py | 144 | 49 | 16,913 |
LOAD_CONST <code object test_foo at 0x7fab425bf030, file "f.py", line 1>
LOAD_CONST 'test_foo'
MAKE_FUNCTION
STORE_NAME test_foo
LOAD_CONST <code object test_baz at 0x7fab425bf5d0, file "f.py", line 7>
LOAD_CONST 'test_baz'
MAKE_FUNCTION
STORE_NAME test_baz
LOAD_CONST None
RETURN_VALUE
LOAD_CONST 0
LOAD_CONST ('foo',)
IMPORT_NAME dummy.dummy
IMPORT_FROM foo
STORE_FAST foo
POP_TOP
LOAD_FAST foo
CALL_FUNCTION
POP_TOP
LOAD_CONST None
RETURN_VALUE
LOAD_CONST 0
LOAD_CONST ('baz',)
IMPORT_NAME dummy.dummy2
IMPORT_FROM baz
STORE_FAST baz
POP_TOP
LOAD_FAST baz
CALL_FUNCTION
POP_TOP
LOAD_CONST None
RETURN_VALUE | def test_foo():
from dummy.dummy import foo
foo()
def test_baz():
from dummy.dummy2 import baz
baz()
| data/pycobertura-3.3.1/tests/dummy.source1/test_dummy.py | 186 | 49 | 353,428 |
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 PriorityClass
IMPORT_STAR
LOAD_CONST 1
LOAD_CONST ('*',)
IMPORT_NAME PriorityClassList
IMPORT_STAR
LOAD_CONST 1
LOAD_CONST ('*',)
IMPORT_NAME PriorityClassPatch
IMPORT_STAR
LOAD_CONST 1
LOAD_CONST ('*',)
IMPORT_NAME _inputs
IMPORT_STAR
LOAD_CONST 1
LOAD_CONST ('outputs',)
IMPORT_NAME
IMPORT_FROM outputs
STORE_NAME outputs
POP_TOP
LOAD_CONST None
RETURN_VALUE | from ... import _utilities
import typing
from .PriorityClass import *
from .PriorityClassList import *
from .PriorityClassPatch import *
from ._inputs import *
from . import outputs
| data/pulumi_kubernetes-4.7.1/pulumi_kubernetes/scheduling/v1alpha1/__init__.py | 142 | 49 | 124,413 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME pytest
STORE_NAME pytest
LOAD_CONST 0
LOAD_CONST ('test_proxy',)
IMPORT_NAME devtools_testutils
IMPORT_FROM test_proxy
STORE_NAME test_proxy
POP_TOP
LOAD_NAME pytest
LOAD_ATTR fixture
LOAD_CONST 'session'
LOAD_CONST True
LOAD_CONST ('scope', 'autouse')
CALL_FUNCTION
LOAD_CONST <code object start_proxy at 0x7fab4158edb0, file "f.py", line 5>
LOAD_CONST 'start_proxy'
MAKE_FUNCTION
CALL_FUNCTION
STORE_NAME start_proxy
LOAD_CONST None
RETURN_VALUE
LOAD_CONST None
RETURN_VALUE | import pytest
from devtools_testutils import test_proxy
@pytest.fixture(scope="session", autouse=True)
def start_proxy(test_proxy):
return
| data/azure-batch-14.1.0/tests/conftest.py | 135 | 49 | 360,139 |
LOAD_CONST 'The Boolean logic circuit library.'
STORE_NAME __doc__
LOAD_CONST 1
LOAD_CONST ('AND',)
IMPORT_NAME quantum_and
IMPORT_FROM AND
STORE_NAME AND
POP_TOP
LOAD_CONST 1
LOAD_CONST ('OR',)
IMPORT_NAME quantum_or
IMPORT_FROM OR
STORE_NAME OR
POP_TOP
LOAD_CONST 1
LOAD_CONST ('XOR',)
IMPORT_NAME quantum_xor
IMPORT_FROM XOR
STORE_NAME XOR
POP_TOP
LOAD_CONST 1
LOAD_CONST ('InnerProduct',)
IMPORT_NAME inner_product
IMPORT_FROM InnerProduct
STORE_NAME InnerProduct
POP_TOP
LOAD_CONST None
RETURN_VALUE | """The Boolean logic circuit library."""
from .quantum_and import AND
from .quantum_or import OR
from .quantum_xor import XOR
from .inner_product import InnerProduct
| data/qiskit-terra-0.46.0/qiskit/circuit/library/boolean_logic/__init__.py | 124 | 49 | 430,377 |
LOAD_CONST <code object test_foo at 0x7fab425bfc00, file "f.py", line 1>
LOAD_CONST 'test_foo'
MAKE_FUNCTION
STORE_NAME test_foo
LOAD_CONST <code object test_baz at 0x7fab425bf660, file "f.py", line 7>
LOAD_CONST 'test_baz'
MAKE_FUNCTION
STORE_NAME test_baz
LOAD_CONST None
RETURN_VALUE
LOAD_CONST 0
LOAD_CONST ('foo',)
IMPORT_NAME dummy.dummy
IMPORT_FROM foo
STORE_FAST foo
POP_TOP
LOAD_FAST foo
CALL_FUNCTION
POP_TOP
LOAD_CONST None
RETURN_VALUE
LOAD_CONST 0
LOAD_CONST ('baz',)
IMPORT_NAME dummy.dummy2
IMPORT_FROM baz
STORE_FAST baz
POP_TOP
LOAD_FAST baz
CALL_FUNCTION
POP_TOP
LOAD_CONST None
RETURN_VALUE | def test_foo():
from dummy.dummy import foo
foo()
def test_baz():
from dummy.dummy2 import baz
baz()
| data/pycobertura-3.3.1/tests/dummy.moved/test_dummy.py | 186 | 49 | 353,421 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME os
STORE_NAME os
LOAD_CONST <code object test at 0x7fab5417cd20, file "f.py", line 4>
LOAD_CONST 'test'
MAKE_FUNCTION
STORE_NAME test
LOAD_CONST None
RETURN_VALUE
LOAD_FAST hatch
LOAD_GLOBAL os
LOAD_ATTR environ
LOAD_CONST 'PYAPP_COMMAND_NAME'
BINARY_SUBSCR
CALL_FUNCTION
STORE_FAST result
LOAD_FAST result
LOAD_ATTR exit_code
LOAD_CONST 0
COMPARE_OP ==
POP_JUMP_IF_TRUE
LOAD_GLOBAL AssertionError
LOAD_FAST result
LOAD_ATTR output
CALL_FUNCTION
RAISE_VARARGS
LOAD_CONST None
RETURN_VALUE | import os
def test(hatch):
result = hatch(os.environ["PYAPP_COMMAND_NAME"])
assert result.exit_code == 0, result.output
| data/hatch-1.9.3/tests/cli/self/test_self.py | 128 | 49 | 183,711 |
LOAD_CONST 'sktime.'
STORE_NAME __doc__
LOAD_CONST '0.26.0'
STORE_NAME __version__
LOAD_CONST 'show_versions'
BUILD_LIST
STORE_NAME __all__
LOAD_CONST 0
LOAD_CONST ('show_versions',)
IMPORT_NAME sktime.utils._maint._show_versions
IMPORT_FROM show_versions
STORE_NAME show_versions
POP_TOP
LOAD_CONST None
RETURN_VALUE | """sktime."""
__version__ = "0.26.0"
__all__ = ["show_versions"]
from sktime.utils._maint._show_versions import show_versions
| data/sktime-0.26.0/sktime/__init__.py | 85 | 49 | 65,111 |
LOAD_CONST 0
LOAD_CONST ('devicearray', 'devices', 'driver', 'drvapi', 'error', 'nvvm')
IMPORT_NAME numba.cuda.simulator.cudadrv
IMPORT_FROM devicearray
STORE_NAME devicearray
IMPORT_FROM devices
STORE_NAME devices
IMPORT_FROM driver
STORE_NAME driver
IMPORT_FROM drvapi
STORE_NAME drvapi
IMPORT_FROM error
STORE_NAME error
IMPORT_FROM nvvm
STORE_NAME nvvm
POP_TOP
LOAD_CONST None
RETURN_VALUE | from numba.cuda.simulator.cudadrv import (
devicearray,
devices,
driver,
drvapi,
error,
nvvm,
)
| data/numba-0.59.0/numba/cuda/simulator/cudadrv/__init__.py | 96 | 49 | 134,446 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME sys
STORE_NAME sys
LOAD_CONST 2
LOAD_CONST ('load_defined_algorithms',)
IMPORT_NAME algolib.loader
IMPORT_FROM load_defined_algorithms
STORE_NAME load_defined_algorithms
POP_TOP
BUILD_LIST
STORE_NAME __all__
LOAD_NAME load_defined_algorithms
LOAD_NAME sys
LOAD_ATTR modules
LOAD_NAME __name__
BINARY_SUBSCR
LOAD_CONST 'statistics'
CALL_FUNCTION
POP_TOP
LOAD_CONST None
RETURN_VALUE | import sys
from ..algolib.loader import load_defined_algorithms
__all__ = []
load_defined_algorithms(sys.modules[__name__], "statistics")
| data/pyodps-0.11.5.post0/odps/ml/statistics/__init__.py | 99 | 49 | 299,736 |
LOAD_CONST 2
LOAD_CONST ('Provider',)
IMPORT_NAME es_ES
IMPORT_FROM Provider
STORE_NAME BaseProvider
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object Provider at 0x7fab823c2a50, file "f.py", line 4>
LOAD_CONST 'Provider'
MAKE_FUNCTION
LOAD_CONST 'Provider'
LOAD_NAME BaseProvider
CALL_FUNCTION
STORE_NAME Provider
LOAD_CONST None
RETURN_VALUE
LOAD_NAME __name__
STORE_NAME __module__
LOAD_CONST 'Provider'
STORE_NAME __qualname__
LOAD_CONST '\n A Faker provider for the Spanish VAT IDs and DOIs\n '
STORE_NAME __doc__
LOAD_CONST None
RETURN_VALUE | from ..es_ES import Provider as BaseProvider
class Provider(BaseProvider):
"""
A Faker provider for the Spanish VAT IDs and DOIs
"""
pass
| data/Faker-23.2.1/faker/providers/ssn/es_CA/__init__.py | 143 | 49 | 16,929 |
LOAD_CONST 0
LOAD_CONST ('send_email', 'EmailRecipient', 'EmailAttachment')
IMPORT_NAME seeq.spy.notifications._emails
IMPORT_FROM send_email
STORE_NAME send_email
IMPORT_FROM EmailRecipient
STORE_NAME EmailRecipient
IMPORT_FROM EmailAttachment
STORE_NAME EmailAttachment
POP_TOP
LOAD_CONST 'send_email'
LOAD_CONST 'EmailRecipient'
LOAD_CONST 'EmailAttachment'
BUILD_LIST
STORE_NAME __all__
LOAD_CONST None
RETURN_VALUE | from seeq.spy.notifications._emails import send_email, EmailRecipient, EmailAttachment
__all__ = ["send_email", "EmailRecipient", "EmailAttachment"]
| data/seeq-spy-191.3/seeq/spy/notifications/__init__.py | 104 | 49 | 55,147 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME pkg_resources
STORE_NAME pkg_resources
LOAD_NAME pkg_resources
LOAD_METHOD get_distribution
LOAD_CONST 'pinax-teams'
CALL_METHOD
LOAD_ATTR version
STORE_NAME __version__
LOAD_CONST 'pinax.teams.apps.AppConfig'
STORE_NAME default_app_config
LOAD_CONST None
RETURN_VALUE | import pkg_resources
__version__ = pkg_resources.get_distribution("pinax-teams").version
default_app_config = "pinax.teams.apps.AppConfig"
| data/pinax-teams-3.0.0/pinax/teams/__init__.py | 77 | 49 | 80,752 |
LOAD_CONST (False,)
LOAD_CONST <code object foo at 0x7fab425bfc00, file "f.py", line 1>
LOAD_CONST 'foo'
MAKE_FUNCTION
STORE_NAME foo
LOAD_CONST None
RETURN_VALUE
LOAD_CONST 'a'
STORE_FAST a
LOAD_CONST 'b'
STORE_FAST b
LOAD_FAST value
POP_JUMP_IF_FALSE
LOAD_CONST 'c'
STORE_FAST c
LOAD_CONST 'd'
STORE_FAST d
LOAD_CONST 'e'
STORE_FAST e
LOAD_CONST None
RETURN_VALUE | def foo(value=False):
a = "a"
b = "b"
if value:
c = "c"
d = "d"
e = "e"
| data/pycobertura-3.3.1/tests/dummy.zeroexit1/dummy/dummy.py | 107 | 49 | 353,433 |
LOAD_CONST 2
LOAD_CONST ('Provider',)
IMPORT_NAME en_PH
IMPORT_FROM Provider
STORE_NAME EnPhSsnProvider
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object Provider at 0x7fab823450c0, file "f.py", line 4>
LOAD_CONST 'Provider'
MAKE_FUNCTION
LOAD_CONST 'Provider'
LOAD_NAME EnPhSsnProvider
CALL_FUNCTION
STORE_NAME Provider
LOAD_CONST None
RETURN_VALUE
LOAD_NAME __name__
STORE_NAME __module__
LOAD_CONST 'Provider'
STORE_NAME __qualname__
LOAD_CONST 'No difference from SSN Provider for en_PH locale'
STORE_NAME __doc__
LOAD_CONST None
RETURN_VALUE | from ..en_PH import Provider as EnPhSsnProvider
class Provider(EnPhSsnProvider):
"""No difference from SSN Provider for en_PH locale"""
pass
| data/Faker-23.2.1/faker/providers/ssn/tl_PH/__init__.py | 144 | 49 | 16,906 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.