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 '\nGlobal SQLAlchemy-Utils exception classes.\n'
STORE_NAME __doc__
LOAD_BUILD_CLASS
LOAD_CONST <code object ImproperlyConfigured at 0x7fab64179ed0, file "f.py", line 6>
LOAD_CONST 'ImproperlyConfigured'
MAKE_FUNCTION
LOAD_CONST 'ImproperlyConfigured'
LOAD_NAME Exception
CALL_FUNCTION
STORE_NAME ImproperlyC... | """
Global SQLAlchemy-Utils exception classes.
"""
class ImproperlyConfigured(Exception):
"""
SQLAlchemy-Utils is improperly configured; normally due to usage of
a utility that depends on a missing library.
"""
| data/SQLAlchemy-Utils-0.41.1/sqlalchemy_utils/exceptions.py | 177 | 66 | 192,328 |
LOAD_CONST 'Generated API for package: tensorflow_examples.lite.model_maker.third_party.efficientdet.backbone.backbone_factory.'
STORE_NAME __doc__
LOAD_CONST 0
LOAD_CONST ('*',)
IMPORT_NAME tensorflow_examples.lite.model_maker.third_party.efficientdet.backbone.backbone_factory
IMPORT_STAR
LOAD_CONST None
RETURN_VALUE | """Generated API for package: tensorflow_examples.lite.model_maker.third_party.efficientdet.backbone.backbone_factory."""
from tensorflow_examples.lite.model_maker.third_party.efficientdet.backbone.backbone_factory import *
| data/tflite-model-maker-0.4.3/src/tflite_model_maker/python/third_party/efficientdet/backbone/backbone_factory.py | 86 | 66 | 401,268 |
LOAD_CONST 0
LOAD_CONST ('url', 'include')
IMPORT_NAME django.conf.urls
IMPORT_FROM url
STORE_NAME url
IMPORT_FROM include
STORE_NAME include
POP_TOP
LOAD_CONST 0
LOAD_CONST ('api',)
IMPORT_NAME jsonrpc.backend.django
IMPORT_FROM api
STORE_NAME api
POP_TOP
LOAD_NAME url
LOAD_CONST ''
LOAD_NAME include
LOAD_NAME api
L... | from django.conf.urls import url, include
from jsonrpc.backend.django import api
urlpatterns = [
url(r"", include(api.urls)),
url(r"^prefix/", include(api.urls)),
]
| data/json-rpc-1.15.0/jsonrpc/tests/test_backend_django/urls.py | 122 | 66 | 415,996 |
LOAD_CONST 0
LOAD_CONST ('final',)
IMPORT_NAME typing
IMPORT_FROM final
STORE_NAME final
POP_TOP
LOAD_NAME final
LOAD_BUILD_CLASS
LOAD_CONST <code object UsageError at 0x7f8ab7617f60, file "f.py", line 4>
LOAD_CONST 'UsageError'
MAKE_FUNCTION
LOAD_CONST 'UsageError'
LOAD_NAME Exception
CALL_FUNCTION
CALL_FUNCTION
STO... | from typing import final
@final
class UsageError(Exception):
"""Error in pytest usage or invocation."""
class PrintHelp(Exception):
"""Raised when pytest should print its help to skip the rest of the
argument parsing and validation."""
| data/pytest-8.0.1/src/_pytest/config/exceptions.py | 258 | 66 | 427,764 |
LOAD_CONST 0
LOAD_CONST ('Dict',)
IMPORT_NAME typing
IMPORT_FROM Dict
STORE_NAME Dict
POP_TOP
LOAD_CONST 0
LOAD_CONST ('Paginator',)
IMPORT_NAME botocore.paginate
IMPORT_FROM Paginator
STORE_NAME Paginator
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object ListTagsForResource at 0x7fab8203ae40, file "f.py", line 5>
LOA... | from typing import Dict
from botocore.paginate import Paginator
class ListTagsForResource(Paginator):
def paginate(self, ResourceArn: str, PaginationConfig: Dict = None) -> Dict:
pass
| data/boto3_type_annotations-0.3.1/boto3_type_annotations/route53resolver/paginator.py | 254 | 66 | 103,690 |
LOAD_CONST 0
LOAD_CONST ('_server',)
IMPORT_NAME grpc_testing._server
IMPORT_FROM _server
STORE_NAME _server
POP_TOP
LOAD_CONST <code object server_from_dictionary at 0x7fab4290dae0, file "f.py", line 4>
LOAD_CONST 'server_from_dictionary'
MAKE_FUNCTION
STORE_NAME server_from_dictionary
LOAD_CONST None
RETURN_VALUE
L... | from grpc_testing._server import _server
def server_from_dictionary(descriptors_to_servicers, time):
return _server.server_from_descriptor_to_servicers(descriptors_to_servicers, time)
| data/grpcio-testing-1.60.1/grpc_testing/_server/__init__.py | 127 | 66 | 15,725 |
LOAD_CONST 'Generated API for package: tensorflow_examples.lite.model_maker.third_party.efficientdet.object_detection.matcher.'
STORE_NAME __doc__
LOAD_CONST 0
LOAD_CONST ('*',)
IMPORT_NAME tensorflow_examples.lite.model_maker.third_party.efficientdet.object_detection.matcher
IMPORT_STAR
LOAD_CONST None
RETURN_VALUE | """Generated API for package: tensorflow_examples.lite.model_maker.third_party.efficientdet.object_detection.matcher."""
from tensorflow_examples.lite.model_maker.third_party.efficientdet.object_detection.matcher import *
| data/tflite-model-maker-0.4.3/src/tflite_model_maker/python/third_party/efficientdet/object_detection/matcher.py | 86 | 66 | 401,241 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME sys
STORE_NAME sys
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME os
STORE_NAME os
LOAD_NAME sys
LOAD_ATTR path
LOAD_METHOD insert
LOAD_CONST 0
LOAD_NAME os
LOAD_ATTR path
LOAD_METHOD abspath
LOAD_NAME os
LOAD_ATTR path
LOAD_METHOD join
LOAD_NAME os
LOAD_ATTR path
LOAD_METHOD dirn... | import sys
import os
sys.path.insert(
0,
os.path.abspath(os.path.join(os.path.dirname(__file__), "..", "bootstrap_stat")),
)
import bootstrap_stat
import datasets
| data/utilmy-0.1.17078128/utilmy/stats/bootstrap_stat/tests/context.py | 139 | 66 | 350,552 |
LOAD_CONST 'Constants for the Abode Security System component.'
STORE_NAME __doc__
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME logging
STORE_NAME logging
LOAD_NAME logging
LOAD_METHOD getLogger
LOAD_NAME __package__
CALL_METHOD
STORE_NAME LOGGER
LOAD_CONST 'abode'
STORE_NAME DOMAIN
LOAD_CONST 'Data provided by goabode... | """Constants for the Abode Security System component."""
import logging
LOGGER = logging.getLogger(__package__)
DOMAIN = "abode"
ATTRIBUTION = "Data provided by goabode.com"
CONF_POLLING = "polling"
| data/homeassistant-2024.2.2/homeassistant/components/abode/const.py | 101 | 66 | 296,132 |
LOAD_CONST 'Generated API for package: tensorflow_examples.lite.model_maker.third_party.efficientdet.visualize.vis_utils.'
STORE_NAME __doc__
LOAD_CONST 0
LOAD_CONST ('*',)
IMPORT_NAME tensorflow_examples.lite.model_maker.third_party.efficientdet.visualize.vis_utils
IMPORT_STAR
LOAD_CONST None
RETURN_VALUE | """Generated API for package: tensorflow_examples.lite.model_maker.third_party.efficientdet.visualize.vis_utils."""
from tensorflow_examples.lite.model_maker.third_party.efficientdet.visualize.vis_utils import *
| data/tflite-model-maker-0.4.3/src/tflite_model_maker/python/third_party/efficientdet/visualize/vis_utils.py | 86 | 66 | 401,260 |
LOAD_CONST <code object debugged_function at 0x7fab42838390, file "f.py", line 1>
LOAD_CONST 'debugged_function'
MAKE_FUNCTION
STORE_NAME debugged_function
LOAD_CONST 0
LOAD_CONST ('debugger',)
IMPORT_NAME pudb.remote
IMPORT_FROM debugger
STORE_NAME debugger
POP_TOP
LOAD_NAME debugger
CALL_FUNCTION
STORE_NAME dbg
LO... | def debugged_function(x):
y = x + fail # noqa: F821
return y
from pudb.remote import debugger
dbg = debugger()
dbg.runcall(debugged_function, 5)
| data/pudb-2024.1/examples/remote-debug.py | 137 | 66 | 17,450 |
LOAD_CONST <code object task_foo at 0x7fab540c5150, file "f.py", line 1>
LOAD_CONST 'task_foo'
MAKE_FUNCTION
STORE_NAME task_foo
LOAD_CONST <code object task_bar at 0x7fab540c5c00, file "f.py", line 5>
LOAD_CONST 'task_bar'
MAKE_FUNCTION
STORE_NAME task_bar
LOAD_CONST <code object task_mygroup at 0x7fab540c5270, file... | def task_foo():
return {"actions": ["echo foo"]}
def task_bar():
return {"actions": ["echo bar"]}
def task_mygroup():
return {"actions": None, "task_dep": ["foo", "bar"]}
| data/doit-0.36.0/doc/samples/group.py | 220 | 66 | 109,306 |
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 MigrationProperties at 0x7fab700e4300, file "f.py", line 4>
LOAD_CONST 'MigrationProperties'
MAKE_FUNCTION
LOAD_CONST 'MigrationProperties'
LOAD_NAME Entity
... | from office365.sharepoint.entity import Entity
class MigrationProperties(Entity):
""""""
@property
def entity_type_name(self):
return "Microsoft.Online.SharePoint.MigrationCenter.Service.MigrationProperties"
| data/Office365-REST-Python-Client-2.5.5/office365/sharepoint/migrationcenter/service/properties.py | 225 | 66 | 189,691 |
LOAD_CONST 0
LOAD_CONST ('fields',)
IMPORT_NAME marshmallow
IMPORT_FROM fields
STORE_NAME fields
POP_TOP
LOAD_CONST 0
LOAD_CONST ('PatchedSchemaMeta',)
IMPORT_NAME azure.ai.ml._schema.core.schema
IMPORT_FROM PatchedSchemaMeta
STORE_NAME PatchedSchemaMeta
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object RetrySettingsS... | from marshmallow import fields
from azure.ai.ml._schema.core.schema import PatchedSchemaMeta
class RetrySettingsSchema(metaclass=PatchedSchemaMeta):
timeout = fields.Int()
max_retries = fields.Int()
| data/azure-ai-ml-1.13.0/azure/ai/ml/_schema/component/retry_settings.py | 206 | 66 | 426,431 |
LOAD_CONST ' Using pkgutil to read data from a package.\n\nThis test can use the commercial code, which includes the file inside\nthe binary, inaccessible to the user, as as well a the free code, where\nthe file must exist in the file system.\n'
STORE_NAME __doc__
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME package
STORE... | """ Using pkgutil to read data from a package.
This test can use the commercial code, which includes the file inside
the binary, inaccessible to the user, as as well a the free code, where
the file must exist in the file system.
"""
import package
| data/Nuitka-2.0.3/tests/programs/pkgutil_usage/PkgUtilUsageMain.py | 88 | 66 | 148,326 |
LOAD_CONST 0
LOAD_CONST ('Any',)
IMPORT_NAME typing
IMPORT_FROM Any
STORE_NAME Any
POP_TOP
LOAD_CONST 2
LOAD_CONST ('Provider',)
IMPORT_NAME fr_FR
IMPORT_FROM Provider
STORE_NAME FRFRProvider
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object Provider at 0x7fab42838ed0, file "f.py", line 6>
LOAD_CONST 'Provider'
MAKE_F... | from typing import Any
from ..fr_FR import Provider as FRFRProvider
class Provider(FRFRProvider):
def __init__(self, *args: Any, **kwargs: Any) -> None:
super().__init__(*args, **kwargs)
| data/Faker-23.2.1/faker/providers/date_time/fr_CA/__init__.py | 255 | 66 | 16,687 |
LOAD_CONST 'AUTOGENERATED. DO NOT EDIT.'
STORE_NAME __doc__
LOAD_CONST 0
LOAD_CONST ('clone_and_build_model',)
IMPORT_NAME tf_keras.src.models.cloning
IMPORT_FROM clone_and_build_model
STORE_NAME clone_and_build_model
POP_TOP
LOAD_CONST 0
LOAD_CONST ('in_place_subclassed_model_state_restoration',)
IMPORT_NAME tf_kera... | """AUTOGENERATED. DO NOT EDIT."""
from tf_keras.src.models.cloning import clone_and_build_model
from tf_keras.src.models.cloning import in_place_subclassed_model_state_restoration
| data/tf_keras-nightly-2.17.0.dev2024022110/tf_keras/api/_v2/keras/__internal__/models/__init__.py | 147 | 66 | 165,288 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME os
STORE_NAME os
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME sys
STORE_NAME sys
LOAD_NAME sys
LOAD_ATTR path
LOAD_METHOD insert
LOAD_CONST 0
LOAD_NAME os
LOAD_ATTR path
LOAD_METHOD abspath
LOAD_CONST '.'
CALL_METHOD
CALL_METHOD
POP_TOP
LOAD_CONST 'sphinx.ext.autosummary'
BUILD_L... | import os
import sys
sys.path.insert(0, os.path.abspath("."))
extensions = ["sphinx.ext.autosummary"]
autosummary_generate = True
autosummary_mock_imports = ["unknown"]
| data/sphinx-7.2.6/tests/roots/test-ext-autosummary-mock_imports/conf.py | 118 | 66 | 381,089 |
LOAD_CONST 0
LOAD_CONST ('final',)
IMPORT_NAME overrides
IMPORT_FROM final
STORE_NAME final
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object SomeClass at 0x7f8e2fe3c5d0, file "f.py", line 4>
LOAD_CONST 'SomeClass'
MAKE_FUNCTION
LOAD_CONST 'SomeClass'
LOAD_NAME object
CALL_FUNCTION
STORE_NAME SomeClass
LOAD_CONST None
... | from overrides import final
class SomeClass(object):
def somewhat_fun_method(self):
"""LULZ"""
return "LOL"
@final
def somewhat_finalized_method(self):
return "some_final"
| data/overrides-7.7.0/tests/test_somefinalpackage.py | 258 | 66 | 396,604 |
LOAD_CONST 0
LOAD_CONST ('annotations',)
IMPORT_NAME __future__
IMPORT_FROM annotations
STORE_NAME annotations
POP_TOP
LOAD_CONST 0
LOAD_CONST ('AsyncClient',)
IMPORT_NAME httpx
IMPORT_FROM AsyncClient
STORE_NAME AsyncClient
POP_TOP
LOAD_CONST 0
LOAD_CONST ('Client',)
IMPORT_NAME httpx
IMPORT_FROM Client
STORE_NAME B... | from __future__ import annotations
from httpx import AsyncClient # noqa: F401
from httpx import Client as BaseClient
class SyncClient(BaseClient):
def aclose(self) -> None:
self.close()
| data/gotrue-2.1.0/gotrue/http_clients.py | 252 | 66 | 243,606 |
LOAD_CONST 0
LOAD_CONST ('URLS_COUNT',)
IMPORT_NAME constants
IMPORT_FROM URLS_COUNT
STORE_NAME URLS_COUNT
POP_TOP
LOAD_CONST 0
LOAD_CONST ('Faker',)
IMPORT_NAME faker
IMPORT_FROM Faker
STORE_NAME Faker
POP_TOP
LOAD_CONST ('URLS',)
STORE_NAME __all__
LOAD_NAME Faker
CALL_FUNCTION
STORE_NAME fake
LOAD_NAME fake
LOAD... | from constants import URLS_COUNT
from faker import Faker
__all__ = ("URLS",)
fake = Faker()
fake.seed(URLS_COUNT)
URLS = [fake.url() for _ in range(URLS_COUNT)]
| data/tld-0.13/benchmarks/factories.py | 196 | 66 | 25,849 |
LOAD_CONST 'Contains HasRecursiveFit property for Spark transformers.'
STORE_NAME __doc__
LOAD_CONST 0
LOAD_CONST ('RecursiveTransformer',)
IMPORT_NAME sparknlp.internal
IMPORT_FROM RecursiveTransformer
STORE_NAME RecursiveTransformer
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object HasRecursiveTransform at 0x7fab429... | """Contains HasRecursiveFit property for Spark transformers."""
from sparknlp.internal import RecursiveTransformer
class HasRecursiveTransform(RecursiveTransformer):
"""Properties for the implementation of the RecursivePipeline."""
pass
| data/spark-nlp-5.2.3/sparknlp/base/has_recursive_transform.py | 193 | 66 | 418,149 |
LOAD_CONST 'Generated API for package: tensorflow_examples.lite.model_maker.third_party.efficientdet.object_detection.preprocessor.'
STORE_NAME __doc__
LOAD_CONST 0
LOAD_CONST ('*',)
IMPORT_NAME tensorflow_examples.lite.model_maker.third_party.efficientdet.object_detection.preprocessor
IMPORT_STAR
LOAD_CONST None
RETU... | """Generated API for package: tensorflow_examples.lite.model_maker.third_party.efficientdet.object_detection.preprocessor."""
from tensorflow_examples.lite.model_maker.third_party.efficientdet.object_detection.preprocessor import *
| data/tflite-model-maker-0.4.3/src/tflite_model_maker/python/third_party/efficientdet/object_detection/preprocessor.py | 86 | 66 | 401,237 |
LOAD_CONST 0
LOAD_CONST ('Matrix', 'cosine_similarity', 'cosine_similarity_top_k')
IMPORT_NAME langchain_community.utils.math
IMPORT_FROM Matrix
STORE_NAME Matrix
IMPORT_FROM cosine_similarity
STORE_NAME cosine_similarity
IMPORT_FROM cosine_similarity_top_k
STORE_NAME cosine_similarity_top_k
POP_TOP
LOAD_CONST 'Matrix... | from langchain_community.utils.math import (
Matrix,
cosine_similarity,
cosine_similarity_top_k,
)
__all__ = ["Matrix", "cosine_similarity", "cosine_similarity_top_k"]
| data/langchain-0.1.8/langchain/utils/math.py | 121 | 66 | 368,472 |
LOAD_CONST 'Generated API for package: tensorflow_examples.lite.model_maker.third_party.efficientdet.visualize.shape_utils.'
STORE_NAME __doc__
LOAD_CONST 0
LOAD_CONST ('*',)
IMPORT_NAME tensorflow_examples.lite.model_maker.third_party.efficientdet.visualize.shape_utils
IMPORT_STAR
LOAD_CONST None
RETURN_VALUE | """Generated API for package: tensorflow_examples.lite.model_maker.third_party.efficientdet.visualize.shape_utils."""
from tensorflow_examples.lite.model_maker.third_party.efficientdet.visualize.shape_utils import *
| data/tflite-model-maker-0.4.3/src/tflite_model_maker/python/third_party/efficientdet/visualize/shape_utils.py | 86 | 66 | 401,261 |
LOAD_CONST 'Generated API for package: tensorflow_examples.lite.model_maker.third_party.efficientdet.visualize.standard_fields.'
STORE_NAME __doc__
LOAD_CONST 0
LOAD_CONST ('*',)
IMPORT_NAME tensorflow_examples.lite.model_maker.third_party.efficientdet.visualize.standard_fields
IMPORT_STAR
LOAD_CONST None
RETURN_VALUE | """Generated API for package: tensorflow_examples.lite.model_maker.third_party.efficientdet.visualize.standard_fields."""
from tensorflow_examples.lite.model_maker.third_party.efficientdet.visualize.standard_fields import *
| data/tflite-model-maker-0.4.3/src/tflite_model_maker/python/third_party/efficientdet/visualize/standard_fields.py | 86 | 66 | 401,262 |
LOAD_CONST 'Generated API for package: tensorflow_examples.lite.model_maker.third_party.efficientdet.keras.util_keras.'
STORE_NAME __doc__
LOAD_CONST 0
LOAD_CONST ('*',)
IMPORT_NAME tensorflow_examples.lite.model_maker.third_party.efficientdet.keras.util_keras
IMPORT_STAR
LOAD_CONST None
RETURN_VALUE | """Generated API for package: tensorflow_examples.lite.model_maker.third_party.efficientdet.keras.util_keras."""
from tensorflow_examples.lite.model_maker.third_party.efficientdet.keras.util_keras import *
| data/tflite-model-maker-0.4.3/src/tflite_model_maker/python/third_party/efficientdet/keras/util_keras.py | 86 | 66 | 401,244 |
LOAD_CONST 0
LOAD_CONST ('Path',)
IMPORT_NAME pathlib
IMPORT_FROM Path
STORE_NAME Path
POP_TOP
LOAD_NAME Path
LOAD_NAME __file__
CALL_FUNCTION
LOAD_METHOD absolute
CALL_METHOD
LOAD_ATTR parent
STORE_NAME _thisdir
LOAD_NAME _thisdir
LOAD_CONST 'schema.json'
BINARY_TRUE_DIVIDE
STORE_NAME SCHEMA_FILE
LOAD_NAME _thisdir... | from pathlib import Path
_thisdir = Path(__file__).absolute().parent
SCHEMA_FILE = _thisdir / "schema.json"
POLICY_TEMPLATES_FILE = _thisdir / "policy_templates.json"
| data/aws-sam-translator-1.85.0/samtranslator/policy_templates_data/__init__.py | 105 | 66 | 216,908 |
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 SPMachineLearningModelEntityData at 0x7fab640fae40, file "f.py", line 4>
LOAD_CONST 'SPMachineLearningModelEntityData'
MAKE_FUNCTION
LOAD_CONST 'SPMachineLea... | from office365.sharepoint.entity import Entity
class SPMachineLearningModelEntityData(Entity):
@property
def entity_type_name(self):
return "Microsoft.Office.Server.ContentCenter.SPMachineLearningModelEntityData"
| data/Office365-REST-Python-Client-2.5.5/office365/sharepoint/contentcenter/machinelearning/models/entity_data.py | 241 | 66 | 189,700 |
LOAD_CONST 0
LOAD_CONST ('Literal',)
IMPORT_NAME typing_extensions
IMPORT_FROM Literal
STORE_NAME Literal
POP_TOP
LOAD_CONST 3
LOAD_CONST ('BaseModel',)
IMPORT_NAME _models
IMPORT_FROM BaseModel
STORE_NAME BaseModel
POP_TOP
LOAD_CONST 'AssistantDeleted'
BUILD_LIST
STORE_NAME __all__
LOAD_BUILD_CLASS
LOAD_CONST <code... | from typing_extensions import Literal
from ..._models import BaseModel
__all__ = ["AssistantDeleted"]
class AssistantDeleted(BaseModel):
id: str
deleted: bool
object: Literal["assistant.deleted"]
| data/openai-1.12.0/src/openai/types/beta/assistant_deleted.py | 234 | 66 | 63,683 |
LOAD_CONST 'AUTOGENERATED. DO NOT EDIT.'
STORE_NAME __doc__
LOAD_CONST 0
LOAD_CONST ('decode_predictions',)
IMPORT_NAME tf_keras.src.applications.mobilenet_v3
IMPORT_FROM decode_predictions
STORE_NAME decode_predictions
POP_TOP
LOAD_CONST 0
LOAD_CONST ('preprocess_input',)
IMPORT_NAME tf_keras.src.applications.mobile... | """AUTOGENERATED. DO NOT EDIT."""
from tf_keras.src.applications.mobilenet_v3 import decode_predictions
from tf_keras.src.applications.mobilenet_v3 import preprocess_input
| data/tf_keras-nightly-2.17.0.dev2024022110/tf_keras/api/_v2/keras/applications/mobilenet_v3/__init__.py | 122 | 66 | 165,270 |
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 1
LOAD_CONST ('XPath30Parser',)
IMPORT_NAME xpath30_parser
IMPORT_FROM XPath30Parser
STORE_NAME XPath30Parser
POP_TOP
JUMP_FORWARD to 42
LOAD_C... | from typing import TYPE_CHECKING
if TYPE_CHECKING:
from .xpath30_parser import XPath30Parser
else:
from ._xpath30_functions import XPath30Parser
__all__ = ["XPath30Parser"]
| data/elementpath-4.3.0/elementpath/xpath30/__init__.py | 146 | 66 | 150,468 |
LOAD_CONST 'AUTOGENERATED. DO NOT EDIT.'
STORE_NAME __doc__
LOAD_CONST 0
LOAD_CONST ('decode_predictions',)
IMPORT_NAME tf_keras.src.applications.mobilenet_v3
IMPORT_FROM decode_predictions
STORE_NAME decode_predictions
POP_TOP
LOAD_CONST 0
LOAD_CONST ('preprocess_input',)
IMPORT_NAME tf_keras.src.applications.mobile... | """AUTOGENERATED. DO NOT EDIT."""
from tf_keras.src.applications.mobilenet_v3 import decode_predictions
from tf_keras.src.applications.mobilenet_v3 import preprocess_input
| data/tf_keras-nightly-2.17.0.dev2024022110/tf_keras/applications/mobilenet_v3/__init__.py | 122 | 66 | 164,753 |
LOAD_CONST 2
LOAD_CONST ('Dialect',)
IMPORT_NAME engine.interfaces
IMPORT_FROM Dialect
STORE_NAME Dialect
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object Connector at 0x7fab41668390, file "f.py", line 4>
LOAD_CONST 'Connector'
MAKE_FUNCTION
LOAD_CONST 'Connector'
LOAD_NAME Dialect
CALL_FUNCTION
STORE_NAME Connector
L... | from ..engine.interfaces import Dialect
class Connector(Dialect):
"""Base class for dialect mixins, for DBAPIs that work
across entirely different database backends.
Currently the only such mixin is pyodbc.
"""
| data/SQLAlchemy-2.0.27/lib/sqlalchemy/connectors/__init__.py | 173 | 66 | 362,406 |
LOAD_CONST 'name'
LOAD_CONST 'example.com'
BUILD_MAP
STORE_NAME createObject
LOAD_CONST True
STORE_NAME deleteObject
LOAD_CONST True
STORE_NAME editObject
LOAD_CONST 12345
LOAD_CONST 7200
LOAD_CONST 'd'
LOAD_CONST 'a'
LOAD_CONST 'cname'
LOAD_CONST ('id', 'ttl', 'data', 'host', 'type')
BUILD_CONST_KEY_MAP
STORE_NAME ... | createObject = {"name": "example.com"}
deleteObject = True
editObject = True
getObject = {"id": 12345, "ttl": 7200, "data": "d", "host": "a", "type": "cname"}
| data/SoftLayer-6.1.11/SoftLayer/fixtures/SoftLayer_Dns_Domain_ResourceRecord.py | 95 | 66 | 291,474 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME Foundation
STORE_NAME Foundation
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 TestNSNull at 0x7fab82034ed0, file "f.py", line 5>
LOAD_CONST 'TestNSNull'
MAKE_... | import Foundation
from PyObjCTools.TestSupport import TestCase
class TestNSNull(TestCase):
def testBool(self):
v = Foundation.NSNull.null()
self.assertFalse(v)
self.assertIsNot(v, None)
| data/pyobjc-framework-Cocoa-10.1/PyObjCTest/test_nsnull.py | 245 | 66 | 64,453 |
LOAD_CONST 1
LOAD_CONST ('ffi', 'dlls')
IMPORT_NAME _util
IMPORT_FROM ffi
STORE_NAME ffi
IMPORT_FROM dlls
STORE_NAME dlls
POP_TOP
LOAD_NAME ffi
LOAD_METHOD cdef
LOAD_CONST '\n\nUINT WINAPI GetACP(void);\n\n'
CALL_METHOD
POP_TOP
LOAD_CONST <code object _GetACP at 0x7f8ab77c3c00, file "f.py", line 12>
LOAD_CONST '_Get... | from ._util import ffi, dlls
ffi.cdef(
"""
UINT WINAPI GetACP(void);
"""
)
def _GetACP():
return dlls.kernel32.GetACP()
| data/pywin32-ctypes-0.2.2/win32ctypes/core/cffi/_nl_support.py | 152 | 66 | 427,066 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME warnings
STORE_NAME warnings
LOAD_CONST 0
LOAD_CONST ('*',)
IMPORT_NAME captum.insights.attr_vis.example
IMPORT_STAR
LOAD_NAME warnings
LOAD_METHOD warn
LOAD_CONST 'Deprecated. Please import from captum.insights.attr_vis.example instead.'
CALL_METHOD
POP_TOP
LOAD_NAME main
C... | import warnings
from captum.insights.attr_vis.example import * # noqa
warnings.warn(
"Deprecated. Please import from captum.insights.attr_vis.example instead."
)
main() # noqa
| data/captum-0.7.0/captum/insights/example.py | 86 | 66 | 240,788 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME numpy
STORE_NAME np
LOAD_CONST <code object doc_to_target at 0x7f8aac3da780, file "f.py", line 4>
LOAD_CONST 'doc_to_target'
MAKE_FUNCTION
STORE_NAME doc_to_target
LOAD_CONST None
RETURN_VALUE
LOAD_GLOBAL np
LOAD_METHOD round
LOAD_FAST doc
LOAD_CONST 'toxicity_ai'
BINARY_SUBSC... | import numpy as np
def doc_to_target(doc):
return np.round(((doc["toxicity_ai"] + doc["toxicity_human"]) > 5.5), 0).astype(
np.int32
)
| data/lm_eval-0.4.1/lm_eval/tasks/toxigen/utils.py | 142 | 66 | 427,400 |
LOAD_CONST 'Generated API for package: tensorflow_examples.lite.model_maker.core.task.model_spec.recommendation_spec.'
STORE_NAME __doc__
LOAD_CONST 0
LOAD_CONST ('*',)
IMPORT_NAME tensorflow_examples.lite.model_maker.core.task.model_spec.recommendation_spec
IMPORT_STAR
LOAD_CONST None
RETURN_VALUE | """Generated API for package: tensorflow_examples.lite.model_maker.core.task.model_spec.recommendation_spec."""
from tensorflow_examples.lite.model_maker.core.task.model_spec.recommendation_spec import *
| data/tflite-model-maker-0.4.3/src/tflite_model_maker/python/core/task/model_spec/recommendation_spec.py | 86 | 66 | 401,325 |
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 GameplayKit
STORE_NAME GameplayKit
LOAD_BUILD_CLASS
LOAD_CONST <code object TestGKStrategist at 0x7fab81fc4780, file "f.py", line 6>
LOAD_CONST 'TestGKStr... | from PyObjCTools.TestSupport import TestCase
import GameplayKit # noqa: F401
class TestGKStrategist(TestCase):
def testProtocols(self):
self.assertProtocolExists("GKStrategist")
| data/pyobjc-framework-GameplayKit-10.1/PyObjCTest/test_gkstrategist.py | 244 | 66 | 57,632 |
LOAD_CONST 'Generated API for package: tensorflow_examples.lite.model_maker.core.task.model_spec.object_detector_spec.'
STORE_NAME __doc__
LOAD_CONST 0
LOAD_CONST ('*',)
IMPORT_NAME tensorflow_examples.lite.model_maker.core.task.model_spec.object_detector_spec
IMPORT_STAR
LOAD_CONST None
RETURN_VALUE | """Generated API for package: tensorflow_examples.lite.model_maker.core.task.model_spec.object_detector_spec."""
from tensorflow_examples.lite.model_maker.core.task.model_spec.object_detector_spec import *
| data/tflite-model-maker-0.4.3/src/tflite_model_maker/python/core/task/model_spec/object_detector_spec.py | 86 | 66 | 401,331 |
LOAD_CONST 'test'
LOAD_CONST ('kwarg',)
BUILD_CONST_KEY_MAP
LOAD_CONST <code object fn at 0x7fab4106cd20, file "f.py", line 1>
LOAD_CONST 'fn'
MAKE_FUNCTION
STORE_NAME fn
LOAD_NAME fn
LOAD_CONST 1
LOAD_CONST 'testing'
LOAD_CONST 'bar'
LOAD_CONST ('kwarg', 'foo')
CALL_FUNCTION
POP_TOP
LOAD_CONST None
RETURN_VALUE
LOAD... | def fn(arg, *, kwarg="test", **kw):
assert arg == 1
assert kwarg == "testing"
assert kw["foo"] == "bar"
fn(1, kwarg="testing", foo="bar")
| data/xdis-6.0.5/test/simple_source/bug36/07_kwargs.py | 168 | 66 | 85,352 |
LOAD_CONST 'Horizontal stacked graph'
STORE_NAME __doc__
LOAD_CONST 0
LOAD_CONST ('HorizontalGraph',)
IMPORT_NAME pygal.graph.horizontal
IMPORT_FROM HorizontalGraph
STORE_NAME HorizontalGraph
POP_TOP
LOAD_CONST 0
LOAD_CONST ('StackedBar',)
IMPORT_NAME pygal.graph.stackedbar
IMPORT_FROM StackedBar
STORE_NAME StackedBa... | """Horizontal stacked graph"""
from pygal.graph.horizontal import HorizontalGraph
from pygal.graph.stackedbar import StackedBar
class HorizontalStackedBar(HorizontalGraph, StackedBar):
"""Horizontal Stacked Bar graph"""
| data/pygal-3.0.4/pygal/graph/horizontalstackedbar.py | 212 | 66 | 49,178 |
LOAD_CONST 'A command-line tool to generate a subunit result byte-stream.'
STORE_NAME __doc__
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME sys
STORE_NAME sys
LOAD_CONST 0
LOAD_CONST ('output_main',)
IMPORT_NAME subunit._output
IMPORT_FROM output_main
STORE_NAME output_main
POP_TOP
LOAD_CONST <code object main at 0x7fa90... | """A command-line tool to generate a subunit result byte-stream."""
import sys
from subunit._output import output_main
def main():
sys.exit(output_main())
if __name__ == "__main__":
main()
| data/python-subunit-1.4.4/python/subunit/filter_scripts/subunit_output.py | 164 | 66 | 135,373 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME dns.e164
STORE_NAME dns
LOAD_NAME dns
LOAD_ATTR e164
LOAD_METHOD from_e164
LOAD_CONST '+1 555 1212'
CALL_METHOD
STORE_NAME n
LOAD_NAME print
LOAD_NAME n
CALL_FUNCTION
POP_TOP
LOAD_NAME print
LOAD_NAME dns
LOAD_ATTR e164
LOAD_METHOD to_e164
LOAD_NAME n
CALL_METHOD
CALL_FUNCTIO... | import dns.e164
n = dns.e164.from_e164("+1 555 1212")
print(n)
print(dns.e164.to_e164(n))
| data/dnspython-2.6.1/examples/e164.py | 106 | 66 | 354,740 |
LOAD_CONST 'Common utilities for Ray execution engine.'
STORE_NAME __doc__
LOAD_CONST 1
LOAD_CONST ('RayWrapper', 'SignalActor')
IMPORT_NAME engine_wrapper
IMPORT_FROM RayWrapper
STORE_NAME RayWrapper
IMPORT_FROM SignalActor
STORE_NAME SignalActor
POP_TOP
LOAD_CONST 1
LOAD_CONST ('initialize_ray',)
IMPORT_NAME utils
... | """Common utilities for Ray execution engine."""
from .engine_wrapper import RayWrapper, SignalActor
from .utils import initialize_ray
__all__ = [
"initialize_ray",
"RayWrapper",
"SignalActor",
]
| data/modin-0.27.0/modin/core/execution/ray/common/__init__.py | 129 | 66 | 165,634 |
LOAD_CONST <code object getopt at 0x7fab4106cdb0, file "f.py", line 1>
LOAD_CONST 'getopt'
MAKE_FUNCTION
STORE_NAME getopt
LOAD_CONST None
RETURN_VALUE
SETUP_LOOP to 62
LOAD_FAST args
POP_JUMP_IF_FALSE
LOAD_FAST args
LOAD_CONST 0
BINARY_SUBSCR
POP_JUMP_IF_FALSE
LOAD_FAST args
LOAD_CONST 0
BINARY_SUBSCR
LOAD_CONST '-'
... | def getopt(args):
while args and args[0] and args[0] != "-":
if args[0] == "--":
break
if args[0]:
opts = 5
else:
opts = 6
return opts
| data/xdis-6.0.5/test/simple_source/bug36/05_while_and_if.py | 154 | 66 | 85,333 |
LOAD_CONST 1
LOAD_CONST ('Gemini',)
IMPORT_NAME Gemini
IMPORT_FROM Gemini
STORE_NAME Gemini
POP_TOP
LOAD_CONST 1
LOAD_CONST ('Raycast',)
IMPORT_NAME Raycast
IMPORT_FROM Raycast
STORE_NAME Raycast
POP_TOP
LOAD_CONST 1
LOAD_CONST ('Theb',)
IMPORT_NAME Theb
IMPORT_FROM Theb
STORE_NAME Theb
POP_TOP
LOAD_CONST 1
LOAD_CON... | from .Gemini import Gemini
from .Raycast import Raycast
from .Theb import Theb
from .ThebApi import ThebApi
from .OpenaiChat import OpenaiChat
from .OpenAssistant import OpenAssistant
from .Poe import Poe
| data/g4f-0.2.1.6/g4f/Provider/needs_auth/__init__.py | 203 | 66 | 216,570 |
LOAD_CONST 'A plug-in that will be sorted after other plug-ins'
STORE_NAME __doc__
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME pyplugs
STORE_NAME pyplugs
LOAD_NAME pyplugs
LOAD_ATTR register
LOAD_CONST 10
LOAD_CONST ('sort_value',)
CALL_FUNCTION
LOAD_CONST <code object plugin_last at 0x7fab82345e40, file "f.py", line 6>... | """A plug-in that will be sorted after other plug-ins"""
import pyplugs
@pyplugs.register(sort_value=10)
def plugin_last():
"""This function should sort after other plug-in functions"""
return "last"
| data/pyplugs-0.4.0/tests/plugin_directory/plugin_last.py | 127 | 66 | 16,335 |
LOAD_CONST 'AUTOGENERATED. DO NOT EDIT.'
STORE_NAME __doc__
LOAD_CONST 0
LOAD_CONST ('clone_and_build_model',)
IMPORT_NAME tf_keras.src.models.cloning
IMPORT_FROM clone_and_build_model
STORE_NAME clone_and_build_model
POP_TOP
LOAD_CONST 0
LOAD_CONST ('in_place_subclassed_model_state_restoration',)
IMPORT_NAME tf_kera... | """AUTOGENERATED. DO NOT EDIT."""
from tf_keras.src.models.cloning import clone_and_build_model
from tf_keras.src.models.cloning import in_place_subclassed_model_state_restoration
| data/tf_keras-nightly-2.17.0.dev2024022110/tf_keras/__internal__/models/__init__.py | 147 | 66 | 164,771 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME pytest
STORE_NAME pytest
LOAD_CONST <code object test_namespace_alias at 0x7fab81f3bc90, file "f.py", line 4>
LOAD_CONST 'test_namespace_alias'
MAKE_FUNCTION
STORE_NAME test_namespace_alias
LOAD_CONST <code object test_namespace_nesting at 0x7fab81f3b660, file "f.py", line 9>
... | import pytest
def test_namespace_alias():
with pytest.raises(ImportError):
from networkx import nx
def test_namespace_nesting():
with pytest.raises(ImportError):
from networkx import networkx
| data/networkx-3.2.1/networkx/tests/test_import.py | 260 | 66 | 130,497 |
LOAD_CONST 'Tests for the basic functionality advertised in README.'
STORE_NAME __doc__
LOAD_CONST <code object test_import at 0x7fab42adb150, file "f.py", line 4>
LOAD_CONST 'test_import'
MAKE_FUNCTION
STORE_NAME test_import
LOAD_CONST None
RETURN_VALUE
LOAD_CONST 0
LOAD_CONST ('__version__',)
IMPORT_NAME pydantic_y... | """Tests for the basic functionality advertised in README."""
def test_import():
"""Ensure pydantic_yaml can be imported."""
from pydantic_yaml import __version__
assert __version__ != "0.0.0"
| data/pydantic_yaml-1.2.1/src/test/test_import.py | 138 | 66 | 436,248 |
LOAD_CONST 1
LOAD_CONST ('OAuth2Authentication',)
IMPORT_NAME authentication
IMPORT_FROM OAuth2Authentication
STORE_NAME OAuth2Authentication
POP_TOP
LOAD_CONST 1
LOAD_CONST ('IsAuthenticatedOrTokenHasScope', 'TokenHasReadWriteScope', 'TokenHasResourceScope', 'TokenHasScope', 'TokenMatchesOASRequirements')
IMPORT_NAME... | from .authentication import OAuth2Authentication
from .permissions import (
IsAuthenticatedOrTokenHasScope,
TokenHasReadWriteScope,
TokenHasResourceScope,
TokenHasScope,
TokenMatchesOASRequirements,
)
| data/django-oauth-toolkit-2.3.0/oauth2_provider/contrib/rest_framework/__init__.py | 166 | 66 | 145,735 |
LOAD_CONST 0
LOAD_CONST ('annotations',)
IMPORT_NAME __future__
IMPORT_FROM annotations
STORE_NAME annotations
POP_TOP
LOAD_CONST 1
LOAD_CONST ('Client', 'Redis')
IMPORT_NAME basic
IMPORT_FROM Client
STORE_NAME Client
IMPORT_FROM Redis
STORE_NAME Redis
POP_TOP
LOAD_CONST 1
LOAD_CONST ('RedisCluster',)
IMPORT_NAME clu... | from __future__ import annotations
from .basic import Client, Redis
from .cluster import RedisCluster
from .keydb import KeyDB, KeyDBCluster
__all__ = ["Client", "Redis", "RedisCluster", "KeyDB", "KeyDBCluster"]
| data/coredis-4.16.0/coredis/client/__init__.py | 171 | 66 | 108,424 |
LOAD_CONST 'DEPRECATED: Kept for backwards compatibility.'
STORE_NAME __doc__
LOAD_CONST 0
LOAD_CONST ('Requests', 'RequestsWrapper', 'TextRequestsWrapper')
IMPORT_NAME langchain_community.utilities
IMPORT_FROM Requests
STORE_NAME Requests
IMPORT_FROM RequestsWrapper
STORE_NAME RequestsWrapper
IMPORT_FROM TextRequests... | """DEPRECATED: Kept for backwards compatibility."""
from langchain_community.utilities import Requests, RequestsWrapper, TextRequestsWrapper
__all__ = [
"Requests",
"RequestsWrapper",
"TextRequestsWrapper",
]
| data/langchain-0.1.8/langchain/requests.py | 118 | 66 | 368,271 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME os
STORE_NAME os
LOAD_CONST <code object no_coverage_env at 0x7faa75826f60, file "f.py", line 4>
LOAD_CONST 'no_coverage_env'
MAKE_FUNCTION
STORE_NAME no_coverage_env
LOAD_CONST None
RETURN_VALUE
LOAD_GLOBAL os
LOAD_ATTR environ
LOAD_METHOD copy
CALL_METHOD
STORE_FAST env
LOA... | import os
def no_coverage_env():
"Return a copy of os.environ that won't trigger coverage measurement."
env = os.environ.copy()
env.pop("COV_CORE_SOURCE", None)
return env
| data/pexpect-4.9.0/tests/utils.py | 124 | 66 | 24,567 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME canmatrix.formats.dbc
STORE_NAME canmatrix
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME io
STORE_NAME io
LOAD_CONST <code object test_empty_matrix_export at 0x7faa74cbe1e0, file "f.py", line 5>
LOAD_CONST 'test_empty_matrix_export'
MAKE_FUNCTION
STORE_NAME test_empty_matrix_export... | import canmatrix.formats.dbc
import io
def test_empty_matrix_export():
db = canmatrix.CanMatrix()
outdbf = io.BytesIO()
canmatrix.formats.dump(db, outdbf, "dbf")
| data/canmatrix-1.0/src/canmatrix/tests/test_dbf.py | 163 | 66 | 347,172 |
LOAD_CONST 0
LOAD_CONST ('Console',)
IMPORT_NAME rich.console
IMPORT_FROM Console
STORE_NAME Console
POP_TOP
LOAD_CONST 0
LOAD_CONST ('Vulnerability', 'RemediationModel')
IMPORT_NAME safety_schemas.models
IMPORT_FROM Vulnerability
STORE_NAME Vulnerability
IMPORT_FROM RemediationModel
STORE_NAME RemediationModel
POP_TO... | from rich.console import Console
from safety_schemas.models import Vulnerability, RemediationModel
from safety.scan.render import get_render_console
console = Console()
Vulnerability.__render__ = get_render_console(Vulnerability)
| data/safety-3.0.1/safety/scan/__init__.py | 154 | 66 | 86,795 |
LOAD_CONST 'Constants for Cloudflare.'
STORE_NAME __doc__
LOAD_CONST 'cloudflare'
STORE_NAME DOMAIN
LOAD_CONST 'records'
STORE_NAME CONF_RECORDS
LOAD_CONST 60
STORE_NAME DEFAULT_UPDATE_INTERVAL
LOAD_CONST 'update_records'
STORE_NAME SERVICE_UPDATE_RECORDS
LOAD_CONST None
RETURN_VALUE | """Constants for Cloudflare."""
DOMAIN = "cloudflare"
CONF_RECORDS = "records"
DEFAULT_UPDATE_INTERVAL = 60 # in minutes
SERVICE_UPDATE_RECORDS = "update_records"
| data/homeassistant-2024.2.2/homeassistant/components/cloudflare/const.py | 81 | 66 | 297,724 |
LOAD_CONST '\nSeveral extensions Python is missing, such as a proper class to handle a TCP\ncommunication with support for cancelling the operation, and a utility class\nto read arbitrary binary data in a more comfortable way, with int/strings/etc.\n'
STORE_NAME __doc__
LOAD_CONST 1
LOAD_CONST ('BinaryReader',)
IMPORT... | """
Several extensions Python is missing, such as a proper class to handle a TCP
communication with support for cancelling the operation, and a utility class
to read arbitrary binary data in a more comfortable way, with int/strings/etc.
"""
from .binaryreader import BinaryReader
| data/Telethon-1.34.0/telethon/extensions/__init__.py | 96 | 66 | 434,575 |
SETUP_EXCEPT to 22
LOAD_CONST 0
LOAD_CONST ('PackageNotFoundError', 'version')
IMPORT_NAME importlib.metadata
IMPORT_FROM PackageNotFoundError
STORE_NAME PackageNotFoundError
IMPORT_FROM version
STORE_NAME version
POP_TOP
POP_BLOCK
JUMP_FORWARD to 58
DUP_TOP
LOAD_NAME ImportError
COMPARE_OP exception match
POP_JUMP_I... | try:
from importlib.metadata import PackageNotFoundError, version
except ImportError:
from importlib_metadata import PackageNotFoundError, version
try:
__version__ = version(__package__)
except PackageNotFoundError:
__version__ = "0+unknown"
| data/pvlib-0.10.3/pvlib/version.py | 200 | 66 | 132,689 |
LOAD_CONST '\n\nThis module is an alias to :mod:`kombu.transport.django`\n\n'
STORE_NAME __doc__
LOAD_CONST 0
LOAD_CONST ('absolute_import', 'unicode_literals')
IMPORT_NAME __future__
IMPORT_FROM absolute_import
STORE_NAME absolute_import
IMPORT_FROM unicode_literals
STORE_NAME unicode_literals
POP_TOP
LOAD_CONST 0
L... | """
This module is an alias to :mod:`kombu.transport.django`
"""
from __future__ import absolute_import, unicode_literals
import kombu.transport.django as transport
__path__.extend(transport.__path__)
| data/django-celery-3.3.1/djcelery/transport/__init__.py | 144 | 66 | 233,051 |
LOAD_BUILD_CLASS
LOAD_CONST <code object TestData at 0x7fab820495d0, file "f.py", line 1>
LOAD_CONST 'TestData'
MAKE_FUNCTION
LOAD_CONST 'TestData'
LOAD_NAME object
CALL_FUNCTION
STORE_NAME TestData
LOAD_CONST None
RETURN_VALUE
LOAD_NAME __name__
STORE_NAME __module__
LOAD_CONST 'TestData'
STORE_NAME __qualname__
LOA... | class TestData(object):
def __init__(self, test_name, execution_id, local_time):
self.testName = test_name
self.executionId = execution_id
self.localTime = local_time
self.testId = None
| data/sealights-python-agent-1.5.5/python_agent/test_listener/entities/test_data.py | 197 | 66 | 156,993 |
LOAD_CONST 0
LOAD_CONST ('version', 'PackageNotFoundError')
IMPORT_NAME importlib.metadata
IMPORT_FROM version
STORE_NAME version
IMPORT_FROM PackageNotFoundError
STORE_NAME PackageNotFoundError
POP_TOP
SETUP_EXCEPT to 30
LOAD_NAME version
LOAD_CONST 'pdfminer.six'
CALL_FUNCTION
STORE_NAME __version__
POP_BLOCK
JUMP_... | from importlib.metadata import version, PackageNotFoundError
try:
__version__ = version("pdfminer.six")
except PackageNotFoundError:
__version__ = "0.0"
if __name__ == "__main__":
print(__version__)
| data/pdfminer.six-20231228/pdfminer/__init__.py | 152 | 66 | 418,554 |
LOAD_CONST 0
LOAD_CONST ('IntEnum',)
IMPORT_NAME enum
IMPORT_FROM IntEnum
STORE_NAME IntEnum
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object ATNType at 0x7faa74c33ed0, file "f.py", line 4>
LOAD_CONST 'ATNType'
MAKE_FUNCTION
LOAD_CONST 'ATNType'
LOAD_NAME IntEnum
CALL_FUNCTION
STORE_NAME ATNType
LOAD_CONST None
RETURN... | from enum import IntEnum
class ATNType(IntEnum):
LEXER = 0
PARSER = 1
@classmethod
def fromOrdinal(cls, i: int):
return cls._value2member_map_[i]
| data/antlr4-python3-runtime-4.13.1/src/antlr4/atn/ATNType.py | 234 | 66 | 244,947 |
LOAD_CONST 'Main entrypoint into package.'
STORE_NAME __doc__
LOAD_CONST 0
LOAD_CONST ('metadata',)
IMPORT_NAME importlib
IMPORT_FROM metadata
STORE_NAME metadata
POP_TOP
SETUP_EXCEPT to 32
LOAD_NAME metadata
LOAD_METHOD version
LOAD_NAME __package__
CALL_METHOD
STORE_NAME __version__
POP_BLOCK
JUMP_FORWARD to 58
D... | """Main entrypoint into package."""
from importlib import metadata
try:
__version__ = metadata.version(__package__)
except metadata.PackageNotFoundError:
__version__ = ""
del metadata # optional, avoids polluting the results of dir(__package__)
| data/langchain_community-0.0.21/langchain_community/__init__.py | 122 | 66 | 14,762 |
LOAD_CONST 'Tests the test handler'
STORE_NAME __doc__
LOAD_CONST 0
LOAD_CONST ('Logger', 'TestHandler')
IMPORT_NAME logbook
IMPORT_FROM Logger
STORE_NAME Logger
IMPORT_FROM TestHandler
STORE_NAME TestHandler
POP_TOP
LOAD_NAME Logger
LOAD_CONST 'Test logger'
CALL_FUNCTION
STORE_NAME log
LOAD_CONST <code object run a... | """Tests the test handler"""
from logbook import Logger, TestHandler
log = Logger("Test logger")
def run():
with TestHandler() as handler:
for x in range(500):
log.warning("this is not handled")
| data/Logbook-1.7.0.post0/benchmark/bench_test_handler.py | 194 | 66 | 331,689 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME kfactory
STORE_NAME kf
LOAD_NAME kf
LOAD_ATTR LayerEnum
LOAD_CONST None
LOAD_CONST ('LAYER', 'return')
BUILD_CONST_KEY_MAP
LOAD_CONST <code object test_shapes at 0x7faac0274d20, file "f.py", line 4>
LOAD_CONST 'test_shapes'
MAKE_FUNCTION
STORE_NAME test_shapes
LOAD_CONST None
R... | import kfactory as kf
def test_shapes(LAYER: kf.LayerEnum) -> None:
kc = kf.KCell()
kc.shapes(LAYER.WG).insert(kf.kdb.Text())
| data/kfactory-0.11.2/tests/test_shapes.py | 153 | 66 | 360,081 |
LOAD_CONST 'diabetes-boosting-demo'
STORE_NAME DIABETES_DOMAIN
LOAD_CONST 'newsgroups-embeddings'
STORE_NAME NEWSGROUP_EMBEDDINGS_DOMAIN
LOAD_CONST 'breast-cancer-demo'
STORE_NAME BREAST_CANCER_DOMAIN
LOAD_CONST None
RETURN_VALUE | DIABETES_DOMAIN = "diabetes-boosting-demo"
NEWSGROUP_EMBEDDINGS_DOMAIN = "newsgroups-embeddings"
BREAST_CANCER_DOMAIN = "breast-cancer-demo"
| data/modelstore-0.0.80/examples/examples-by-ml-library/libraries/util/domains.py | 78 | 66 | 345,600 |
LOAD_CONST 'UcanBus'
LOAD_CONST 'constants'
LOAD_CONST 'exceptions'
LOAD_CONST 'structures'
LOAD_CONST 'ucan'
LOAD_CONST 'ucanbus'
BUILD_LIST
STORE_NAME __all__
LOAD_CONST 0
LOAD_CONST ('UcanBus',)
IMPORT_NAME can.interfaces.systec.ucanbus
IMPORT_FROM UcanBus
STORE_NAME UcanBus
POP_TOP
LOAD_CONST None
RETURN_VALU... | __all__ = [
"UcanBus",
"constants",
"exceptions",
"structures",
"ucan",
"ucanbus",
]
from can.interfaces.systec.ucanbus import UcanBus
| data/python-can-4.3.1/can/interfaces/systec/__init__.py | 94 | 66 | 27,898 |
LOAD_CONST 'd4rl_mujoco_hopper dataset.'
STORE_NAME __doc__
LOAD_CONST 0
LOAD_CONST ('D4rlMujocoHopper',)
IMPORT_NAME tensorflow_datasets.d4rl.d4rl_mujoco_hopper.d4rl_mujoco_hopper
IMPORT_FROM D4rlMujocoHopper
STORE_NAME D4rlMujocoHopper
POP_TOP
LOAD_CONST None
RETURN_VALUE | """d4rl_mujoco_hopper dataset."""
from tensorflow_datasets.d4rl.d4rl_mujoco_hopper.d4rl_mujoco_hopper import (
D4rlMujocoHopper,
)
| data/tensorflow-datasets-4.9.4/tensorflow_datasets/d4rl/d4rl_mujoco_hopper/__init__.py | 102 | 66 | 255,504 |
LOAD_CONST 'Generated API for package: tensorflow_examples.lite.model_maker.third_party.efficientdet.backbone.efficientnet_model.'
STORE_NAME __doc__
LOAD_CONST 0
LOAD_CONST ('*',)
IMPORT_NAME tensorflow_examples.lite.model_maker.third_party.efficientdet.backbone.efficientnet_model
IMPORT_STAR
LOAD_CONST None
RETURN_V... | """Generated API for package: tensorflow_examples.lite.model_maker.third_party.efficientdet.backbone.efficientnet_model."""
from tensorflow_examples.lite.model_maker.third_party.efficientdet.backbone.efficientnet_model import *
| data/tflite-model-maker-0.4.3/src/tflite_model_maker/python/third_party/efficientdet/backbone/efficientnet_model.py | 86 | 66 | 401,269 |
LOAD_CONST 0
LOAD_CONST ('Any', 'Callable')
IMPORT_NAME typing
IMPORT_FROM Any
STORE_NAME Any
IMPORT_FROM Callable
STORE_NAME Callable
POP_TOP
LOAD_NAME Callable
LOAD_CONST Ellipsis
LOAD_NAME Any
BUILD_TUPLE
BINARY_SUBSCR
LOAD_NAME bool
LOAD_CONST ('func', 'return')
BUILD_CONST_KEY_MAP
LOAD_CONST <code object is_defau... | from typing import Any, Callable
def is_default_resolver(func: Callable[..., Any]) -> bool:
"""Check whether the function is a default resolver or a user provided one."""
return getattr(func, "_is_default", False)
| data/strawberry_graphql-0.219.2/strawberry/resolvers.py | 146 | 66 | 201,328 |
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 1
LOAD_CONST ('XPath31Parser',)
IMPORT_NAME xpath31_parser
IMPORT_FROM XPath31Parser
STORE_NAME XPath31Parser
POP_TOP
JUMP_FORWARD to 42
LOAD_C... | from typing import TYPE_CHECKING
if TYPE_CHECKING:
from .xpath31_parser import XPath31Parser
else:
from ._xpath31_functions import XPath31Parser
__all__ = ["XPath31Parser"]
| data/elementpath-4.3.0/elementpath/xpath31/__init__.py | 146 | 66 | 150,451 |
LOAD_CONST 0
LOAD_CONST ('Flask',)
IMPORT_NAME flask
IMPORT_FROM Flask
STORE_NAME Flask
POP_TOP
LOAD_CONST <code object create_app at 0x7faa74ae3150, file "f.py", line 4>
LOAD_CONST 'create_app'
MAKE_FUNCTION
STORE_NAME create_app
LOAD_CONST <code object create_app2 at 0x7faa74ae3ed0, file "f.py", line 8>
LOAD_CONST ... | from flask import Flask
def create_app():
return Flask("app")
def create_app2(foo, bar):
return Flask("_".join(["app2", foo, bar]))
def no_app():
pass
| data/flask-3.0.2/tests/test_apps/cliapp/factory.py | 230 | 66 | 251,606 |
LOAD_CONST 0
LOAD_CONST ('fields',)
IMPORT_NAME marshmallow
IMPORT_FROM fields
STORE_NAME fields
POP_TOP
LOAD_CONST 1
LOAD_CONST ('ComputeSchema',)
IMPORT_NAME compute
IMPORT_FROM ComputeSchema
STORE_NAME ComputeSchema
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object AttachedComputeSchema at 0x7f8ab684b390, file "f.p... | from marshmallow import fields
from .compute import ComputeSchema
class AttachedComputeSchema(ComputeSchema):
resource_id = fields.Str(required=True)
ssh_port = fields.Int()
compute_location = fields.Str()
| data/azure-ai-ml-1.13.0/azure/ai/ml/_schema/compute/attached_compute.py | 212 | 66 | 426,497 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME ctypes
STORE_NAME ctypes
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME ctypes.util
STORE_NAME ctypes
LOAD_NAME ctypes
LOAD_ATTR util
LOAD_METHOD find_library
LOAD_CONST 'c'
CALL_METHOD
STORE_NAME _FILEPATH
LOAD_NAME _FILEPATH
LOAD_CONST None
COMPARE_OP is
POP_JUMP_IF_FALSE
LOAD_C... | import ctypes
import ctypes.util
_FILEPATH = ctypes.util.find_library("c")
if _FILEPATH is None:
_FILEPATH = "libc.so.6"
instance = ctypes.cdll.LoadLibrary(_FILEPATH)
| data/inotify-0.2.10/inotify/library.py | 116 | 66 | 244,909 |
LOAD_CONST 'Generated API for package: tensorflow_examples.lite.model_maker.core.task.metadata_writer_for_image_classifier.'
STORE_NAME __doc__
LOAD_CONST 0
LOAD_CONST ('*',)
IMPORT_NAME tensorflow_examples.lite.model_maker.core.task.metadata_writer_for_image_classifier
IMPORT_STAR
LOAD_CONST None
RETURN_VALUE | """Generated API for package: tensorflow_examples.lite.model_maker.core.task.metadata_writer_for_image_classifier."""
from tensorflow_examples.lite.model_maker.core.task.metadata_writer_for_image_classifier import *
| data/tflite-model-maker-0.4.3/src/tflite_model_maker/python/core/task/metadata_writer_for_image_classifier.py | 86 | 66 | 401,306 |
LOAD_BUILD_CLASS
LOAD_CONST <code object EvaluationException at 0x7f8a954cd540, file "f.py", line 1>
LOAD_CONST 'EvaluationException'
MAKE_FUNCTION
LOAD_CONST 'EvaluationException'
LOAD_NAME Exception
CALL_FUNCTION
STORE_NAME EvaluationException
LOAD_BUILD_CLASS
LOAD_CONST <code object BadExpression at 0x7f8a954cd660,... | class EvaluationException(Exception):
pass
class BadExpression(EvaluationException):
pass
class WrnExpression(Exception):
pass
class MacroException(Exception):
pass
class SymbolNotFound(MacroException):
pass
| data/edk2-basetools-0.1.49/edk2basetools/CommonDataClass/Exceptions.py | 465 | 66 | 332,141 |
LOAD_CONST 2
LOAD_CONST ('ShopifyResource',)
IMPORT_NAME base
IMPORT_FROM ShopifyResource
STORE_NAME ShopifyResource
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object ProductListing at 0x7fab41d24d20, file "f.py", line 4>
LOAD_CONST 'ProductListing'
MAKE_FUNCTION
LOAD_CONST 'ProductListing'
LOAD_NAME ShopifyResource
CA... | from ..base import ShopifyResource
class ProductListing(ShopifyResource):
_primary_key = "product_id"
@classmethod
def product_ids(cls, **kwargs):
return cls.get("product_ids", **kwargs)
| data/ShopifyAPI-12.4.0/shopify/resources/product_listing.py | 223 | 66 | 216,686 |
LOAD_CONST (21, 2, 0)
STORE_NAME version_info
LOAD_CONST '.'
LOAD_METHOD join
LOAD_CONST <code object <listcomp> at 0x7fab41751930, file "f.py", line 2>
LOAD_CONST '<listcomp>'
MAKE_FUNCTION
LOAD_NAME version_info
GET_ITER
CALL_FUNCTION
CALL_METHOD
STORE_NAME __version__
LOAD_CONST 'gunicorn'
STORE_NAME SERVER
LOAD_... | version_info = (21, 2, 0)
__version__ = ".".join([str(v) for v in version_info])
SERVER = "gunicorn"
SERVER_SOFTWARE = "%s/%s" % (SERVER, __version__)
| data/gunicorn-21.2.0/gunicorn/__init__.py | 164 | 66 | 343,538 |
LOAD_CONST 0
LOAD_CONST ('ModelForm',)
IMPORT_NAME django.forms
IMPORT_FROM ModelForm
STORE_NAME ModelForm
POP_TOP
LOAD_CONST 1
LOAD_CONST ('BYTestModel',)
IMPORT_NAME models
IMPORT_FROM BYTestModel
STORE_NAME BYTestModel
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object BYTestForm at 0x7f8ab7985540, file "f.py", line... | from django.forms import ModelForm
from .models import BYTestModel
class BYTestForm(ModelForm):
class Meta:
model = BYTestModel
fields = ("region", "pass_num", "pass_id", "postal_code")
| data/django-localflavor-4.0/tests/test_by/forms.py | 272 | 66 | 434,795 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME docx2txt
STORE_NAME docx2txt
LOAD_CONST 1
LOAD_CONST ('BaseParser',)
IMPORT_NAME utils
IMPORT_FROM BaseParser
STORE_NAME BaseParser
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object Parser at 0x7faa5f1b6e40, file "f.py", line 6>
LOAD_CONST 'Parser'
MAKE_FUNCTION
LOAD_CONST 'Par... | import docx2txt
from .utils import BaseParser
class Parser(BaseParser):
"""Extract text from docx file using python-docx."""
def extract(self, filename, **kwargs):
return docx2txt.process(filename)
| data/textract-1.6.5/textract/parsers/docx_parser.py | 220 | 66 | 243,668 |
LOAD_CONST <code object aix_platform at 0x7fab4298e1e0, file "f.py", line 1>
LOAD_CONST 'aix_platform'
MAKE_FUNCTION
STORE_NAME aix_platform
LOAD_CONST None
RETURN_VALUE
SETUP_EXCEPT to 18
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME _aix_support
STORE_FAST _aix_support
LOAD_FAST _aix_support
LOAD_METHOD aix_platform
CA... | def aix_platform(osname, version, release):
try:
import _aix_support
return _aix_support.aix_platform()
except ImportError:
pass
return "{}-{}.{}".format(osname, version, release)
| data/setuptools-69.1.0/setuptools/_distutils/py38compat.py | 153 | 66 | 256,542 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME littlefs
STORE_NAME littlefs
LOAD_CONST <code object test_version at 0x7fab64179270, file "f.py", line 4>
LOAD_CONST 'test_version'
MAKE_FUNCTION
STORE_NAME test_version
LOAD_CONST None
RETURN_VALUE
LOAD_GLOBAL littlefs
LOAD_ATTR __LFS_VERSION__
LOAD_CONST (2, 9)
COMPARE_OP ==... | import littlefs
def test_version():
"""Test if the versions of littlefs can be imported"""
assert littlefs.__LFS_VERSION__ == (2, 9)
assert littlefs.__LFS_DISK_VERSION__ == (2, 1)
| data/littlefs-python-0.10.0/test/test_version.py | 143 | 66 | 191,131 |
LOAD_CONST 'Generated API for package: tensorflow_examples.lite.model_maker.third_party.efficientdet.dataset.label_map_util.'
STORE_NAME __doc__
LOAD_CONST 0
LOAD_CONST ('*',)
IMPORT_NAME tensorflow_examples.lite.model_maker.third_party.efficientdet.dataset.label_map_util
IMPORT_STAR
LOAD_CONST None
RETURN_VALUE | """Generated API for package: tensorflow_examples.lite.model_maker.third_party.efficientdet.dataset.label_map_util."""
from tensorflow_examples.lite.model_maker.third_party.efficientdet.dataset.label_map_util import *
| data/tflite-model-maker-0.4.3/src/tflite_model_maker/python/third_party/efficientdet/dataset/label_map_util.py | 86 | 66 | 401,226 |
LOAD_CONST "\nThis package contains the modules related to this library's use of\npersistent storage.\n\n@sort: interface, filestore, sqlstore, memstore\n"
STORE_NAME __doc__
LOAD_CONST 'interface'
LOAD_CONST 'filestore'
LOAD_CONST 'sqlstore'
LOAD_CONST 'memstore'
LOAD_CONST 'nonce'
BUILD_LIST
STORE_NAME __all__
LOAD_... | """
This package contains the modules related to this library's use of
persistent storage.
@sort: interface, filestore, sqlstore, memstore
"""
__all__ = ["interface", "filestore", "sqlstore", "memstore", "nonce"]
| data/python-openid-2.2.5/openid/store/__init__.py | 91 | 66 | 84,418 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME atexit
STORE_NAME atexit
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME tempfile
STORE_NAME tempfile
LOAD_NAME tempfile
LOAD_METHOD TemporaryDirectory
LOAD_CONST 'wandb-media'
CALL_METHOD
STORE_NAME MEDIA_TMP
LOAD_CONST None
LOAD_CONST ('return',)
BUILD_CONST_KEY_MAP
LOAD_CONST <co... | import atexit
import tempfile
MEDIA_TMP = tempfile.TemporaryDirectory("wandb-media")
def _cleanup_media_tmp_dir() -> None:
atexit.register(MEDIA_TMP.cleanup)
| data/wandb-0.16.3/wandb/sdk/data_types/_private.py | 171 | 66 | 361,113 |
LOAD_CONST 'Decoders package definition.'
STORE_NAME __doc__
LOAD_CONST 0
LOAD_CONST ('ASPP',)
IMPORT_NAME official.vision.modeling.decoders.aspp
IMPORT_FROM ASPP
STORE_NAME ASPP
POP_TOP
LOAD_CONST 0
LOAD_CONST ('FPN',)
IMPORT_NAME official.vision.modeling.decoders.fpn
IMPORT_FROM FPN
STORE_NAME FPN
POP_TOP
LOAD_CON... | """Decoders package definition."""
from official.vision.modeling.decoders.aspp import ASPP
from official.vision.modeling.decoders.fpn import FPN
from official.vision.modeling.decoders.nasfpn import NASFPN
| data/tf-models-official-2.15.0/official/vision/modeling/decoders/__init__.py | 135 | 66 | 355,452 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME sys
STORE_NAME sys
LOAD_NAME sys
LOAD_ATTR argv
LOAD_CONST 1
BINARY_SUBSCR
LOAD_CONST 'block'
COMPARE_OP ==
POP_JUMP_IF_FALSE
LOAD_CONST 0
LOAD_CONST ('main',)
IMPORT_NAME test.test_block
IMPORT_FROM main
STORE_NAME main
POP_TOP
LOAD_NAME main
CALL_FUNCTION
POP_TOP
JUMP_FORWA... | import sys
if sys.argv[1] == "block":
from test.test_block import main
main()
elif sys.argv[1] == "rel_shift":
from test.test_rel_shift import main
main()
| data/modelscope-1.12.0/modelscope/models/nlp/mglm/run_test.py | 144 | 66 | 314,285 |
LOAD_CONST 'Errors for the Media Player component.'
STORE_NAME __doc__
LOAD_CONST 0
LOAD_CONST ('HomeAssistantError',)
IMPORT_NAME homeassistant.exceptions
IMPORT_FROM HomeAssistantError
STORE_NAME HomeAssistantError
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object MediaPlayerException at 0x7fab80112d20, file "f.py",... | """Errors for the Media Player component."""
from homeassistant.exceptions import HomeAssistantError
class MediaPlayerException(HomeAssistantError):
"""Base class for Media Player exceptions."""
class BrowseError(MediaPlayerException):
"""Error while browsing."""
| data/homeassistant-2024.2.2/homeassistant/components/media_player/errors.py | 275 | 66 | 297,814 |
LOAD_CONST 0
LOAD_CONST ('MethodType',)
IMPORT_NAME types
IMPORT_FROM MethodType
STORE_NAME MethodType
POP_TOP
LOAD_CONST <code object is_hypothesis_test at 0x7fab54381300, file "f.py", line 4>
LOAD_CONST 'is_hypothesis_test'
MAKE_FUNCTION
STORE_NAME is_hypothesis_test
LOAD_CONST None
RETURN_VALUE
LOAD_GLOBAL isinsta... | from types import MethodType
def is_hypothesis_test(test):
if isinstance(test, MethodType):
return is_hypothesis_test(test.__func__)
return getattr(test, "is_hypothesis_test", False)
| data/hypothesis-6.98.9/src/hypothesis/internal/detection.py | 154 | 66 | 148,035 |
LOAD_CONST 'Generated API for package: tensorflow_examples.lite.model_maker.third_party.recommendation.ml.model.utils.'
STORE_NAME __doc__
LOAD_CONST 0
LOAD_CONST ('*',)
IMPORT_NAME tensorflow_examples.lite.model_maker.third_party.recommendation.ml.model.utils
IMPORT_STAR
LOAD_CONST None
RETURN_VALUE | """Generated API for package: tensorflow_examples.lite.model_maker.third_party.recommendation.ml.model.utils."""
from tensorflow_examples.lite.model_maker.third_party.recommendation.ml.model.utils import *
| data/tflite-model-maker-0.4.3/src/tflite_model_maker/python/third_party/recommendation/ml/model/utils.py | 86 | 66 | 401,200 |
LOAD_CONST 0
LOAD_CONST ('CnnPolicy', 'MlpPolicy', 'MultiInputPolicy')
IMPORT_NAME sb3_contrib.trpo.policies
IMPORT_FROM CnnPolicy
STORE_NAME CnnPolicy
IMPORT_FROM MlpPolicy
STORE_NAME MlpPolicy
IMPORT_FROM MultiInputPolicy
STORE_NAME MultiInputPolicy
POP_TOP
LOAD_CONST 0
LOAD_CONST ('TRPO',)
IMPORT_NAME sb3_contrib.t... | from sb3_contrib.trpo.policies import CnnPolicy, MlpPolicy, MultiInputPolicy
from sb3_contrib.trpo.trpo import TRPO
__all__ = ["CnnPolicy", "MlpPolicy", "MultiInputPolicy", "TRPO"]
| data/sb3_contrib-2.2.1/sb3_contrib/trpo/__init__.py | 140 | 66 | 193,204 |
LOAD_CONST 'Generated API for package: tensorflow_examples.lite.model_maker.third_party.efficientdet.keras.infer_lib.'
STORE_NAME __doc__
LOAD_CONST 0
LOAD_CONST ('*',)
IMPORT_NAME tensorflow_examples.lite.model_maker.third_party.efficientdet.keras.infer_lib
IMPORT_STAR
LOAD_CONST None
RETURN_VALUE | """Generated API for package: tensorflow_examples.lite.model_maker.third_party.efficientdet.keras.infer_lib."""
from tensorflow_examples.lite.model_maker.third_party.efficientdet.keras.infer_lib import *
| data/tflite-model-maker-nightly-0.4.4.dev202402210609/src/tflite_model_maker/python/third_party/efficientdet/keras/infer_lib.py | 86 | 66 | 389,343 |
LOAD_CONST "\nHelper tools to test the Kopf-based operators.\n\nThis module is a part of the framework's public interface.\n"
STORE_NAME __doc__
LOAD_CONST 0
LOAD_CONST ('KopfRunner',)
IMPORT_NAME kopf._kits.runner
IMPORT_FROM KopfRunner
STORE_NAME KopfRunner
POP_TOP
LOAD_CONST 'KopfRunner'
BUILD_LIST
STORE_NAME __al... | """
Helper tools to test the Kopf-based operators.
This module is a part of the framework's public interface.
"""
from kopf._kits.runner import KopfRunner
__all__ = [
"KopfRunner",
]
| data/kopf-1.37.1/kopf/testing.py | 98 | 66 | 93,994 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME numpy
STORE_NAME np
LOAD_CONST 0
LOAD_CONST ('OpRunBinary',)
IMPORT_NAME onnx.reference.ops._op
IMPORT_FROM OpRunBinary
STORE_NAME OpRunBinary
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object And at 0x7f8ed39ed6f0, file "f.py", line 6>
LOAD_CONST 'And'
MAKE_FUNCTION
LOAD_CONST... | import numpy as np
from onnx.reference.ops._op import OpRunBinary
class And(OpRunBinary):
def _run(self, x, y): # type: ignore
return (np.logical_and(x, y),)
| data/onnxsim-0.4.35/third_party/onnx-optimizer/third_party/onnx/onnx/reference/ops/op_and.py | 206 | 66 | 114,325 |
LOAD_CONST 0
LOAD_CONST ('oo',)
IMPORT_NAME sympy.core.numbers
IMPORT_FROM oo
STORE_NAME oo
POP_TOP
LOAD_CONST 0
LOAD_CONST ('Symbol',)
IMPORT_NAME sympy.core.symbol
IMPORT_FROM Symbol
STORE_NAME Symbol
POP_TOP
LOAD_CONST 0
LOAD_CONST ('limit',)
IMPORT_NAME sympy.series.limits
IMPORT_FROM limit
STORE_NAME limit
POP_T... | from sympy.core.numbers import oo
from sympy.core.symbol import Symbol
from sympy.series.limits import limit
x = Symbol("x")
def timeit_limit_1x():
limit(1 / x, x, oo)
| data/sympy-1.12/sympy/series/benchmarks/bench_limit.py | 192 | 66 | 228,599 |
LOAD_CONST 0
LOAD_CONST ('GiModuleInfo',)
IMPORT_NAME PyInstaller.utils.hooks.gi
IMPORT_FROM GiModuleInfo
STORE_NAME GiModuleInfo
POP_TOP
LOAD_NAME GiModuleInfo
LOAD_CONST 'GModule'
LOAD_CONST '2.0'
CALL_FUNCTION
STORE_NAME module_info
LOAD_NAME module_info
LOAD_ATTR available
POP_JUMP_IF_FALSE
LOAD_NAME module_info... | from PyInstaller.utils.hooks.gi import GiModuleInfo
module_info = GiModuleInfo("GModule", "2.0")
if module_info.available:
binaries, datas, hiddenimports = module_info.collect_typelib_data()
| data/pyinstaller-6.4.0/PyInstaller/hooks/hook-gi.repository.GModule.py | 110 | 66 | 185,363 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.