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 ('AppConfig',)
IMPORT_NAME django.apps
IMPORT_FROM AppConfig
STORE_NAME AppConfig
POP_TOP
LOAD_CONST 0
LOAD_CONST ('load_roles_and_permissions',)
IMPORT_NAME rolepermissions.loader
IMPORT_FROM load_roles_and_permissions
STORE_NAME load_roles_and_permissions
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST ... | from django.apps import AppConfig
from rolepermissions.loader import load_roles_and_permissions
class RolePermissions(AppConfig):
name = "rolepermissions"
verbose_name = "Django Role Permissions"
def ready(self):
load_roles_and_permissions()
| data/django-role-permissions-3.2.0/rolepermissions/apps.py | 274 | 84 | 98,760 |
LOAD_CONST 'The klio developers'
STORE_NAME __author__
LOAD_CONST '22.3.0'
STORE_NAME __version__
LOAD_CONST 'opensource+klio@spotify.com'
STORE_NAME __email__
LOAD_CONST "Klio pipeline executor within a job's Docker image."
STORE_NAME __description__
LOAD_CONST 'https://github.com/spotify/klio'
STORE_NAME __uri__
... | __author__ = "The klio developers"
__version__ = "22.3.0"
__email__ = "opensource+klio@spotify.com"
__description__ = "Klio pipeline executor within a job's Docker image."
__uri__ = "https://github.com/spotify/klio"
| data/klio-exec-22.3.0/src/klio_exec/__init__.py | 102 | 84 | 370,462 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME param
STORE_NAME param
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME pytest
STORE_NAME pytest
LOAD_CONST <code object test_callable_validate at 0x7f8ab706f930, file "f.py", line 5>
LOAD_CONST 'test_callable_validate'
MAKE_FUNCTION
STORE_NAME test_callable_validate
LOAD_CONST None
R... | import param
import pytest
def test_callable_validate():
with pytest.raises(
ValueError,
match=r"Callable parameter 'c' only takes a callable object, not objects of <class 'str'>\.",
):
c = param.Callable("wrong") # noqa
| data/param-2.0.2/tests/testcallable.py | 184 | 84 | 115,245 |
LOAD_CONST 0
LOAD_CONST ('cast', 'Any', 'TypeVar')
IMPORT_NAME typing
IMPORT_FROM cast
STORE_NAME cast
IMPORT_FROM Any
STORE_NAME Any
IMPORT_FROM TypeVar
STORE_NAME TypeVar
POP_TOP
LOAD_CONST 1
LOAD_CONST ('Undefined',)
IMPORT_NAME undefined
IMPORT_FROM Undefined
STORE_NAME Undefined
POP_TOP
LOAD_CONST 'identity_func... | from typing import cast, Any, TypeVar
from .undefined import Undefined
__all__ = ["identity_func"]
T = TypeVar("T")
def identity_func(x: T = cast(Any, Undefined), *_args: Any) -> T:
"""Return the first received argument."""
return x
| data/graphql-core-3.2.3/src/graphql/pyutils/identity_func.py | 198 | 84 | 398,607 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME os
STORE_NAME os
LOAD_CONST 0
LOAD_CONST ('Extension', 'setup')
IMPORT_NAME setuptools
IMPORT_FROM Extension
STORE_NAME Extension
IMPORT_FROM setup
STORE_NAME setup
POP_TOP
LOAD_NAME setup
LOAD_NAME Extension
LOAD_CONST '_jump'
LOAD_CONST 'src/jump/jump.c'
BUILD_LIST
LOAD_... | import os
from setuptools import Extension, setup
setup(
ext_modules=[
Extension(
"_jump",
sources=["src/jump/jump.c"],
optional=os.environ.get("CIBUILDWHEEL", "0") != "1",
)
]
)
| data/jump-consistent-hash-3.4.0/setup.py | 142 | 84 | 370,438 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME os
STORE_NAME os
LOAD_CONST 0
LOAD_CONST ('Celery',)
IMPORT_NAME celery
IMPORT_FROM Celery
STORE_NAME Celery
POP_TOP
LOAD_NAME os
LOAD_ATTR environ
LOAD_METHOD setdefault
LOAD_CONST 'DJANGO_SETTINGS_MODULE'
LOAD_CONST 't.proj.settings'
CALL_METHOD
POP_TOP
LOAD_NAME Celery
LOA... | import os
from celery import Celery
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "t.proj.settings")
app = Celery("proj")
app.config_from_object("django.conf:settings", namespace="CELERY")
app.autodiscover_tasks()
| data/django_celery_results-2.5.1/t/proj/celery.py | 153 | 84 | 78,920 |
LOAD_CONST 'DO NOT EDIT.\n\nThis file was autogenerated. Do not edit it by hand,\nsince your modifications would be overwritten.\n'
STORE_NAME __doc__
LOAD_CONST 0
LOAD_CONST ('deserialize_keras_object',)
IMPORT_NAME keras.src.legacy.saving.serialization
IMPORT_FROM deserialize_keras_object
STORE_NAME deserialize_kera... | """DO NOT EDIT.
This file was autogenerated. Do not edit it by hand,
since your modifications would be overwritten.
"""
from keras.src.legacy.saving.serialization import deserialize_keras_object
from keras.src.legacy.saving.serialization import serialize_keras_object
| data/keras-nightly-3.1.0.dev2024022103/keras/_tf_keras/keras/utils/legacy/__init__.py | 154 | 84 | 285,331 |
LOAD_CONST '\nBioPandas module for working with TRIPOS MOL2\nfiles in pandas DataFrames.\n'
STORE_NAME __doc__
LOAD_CONST 1
LOAD_CONST ('PandasMol2',)
IMPORT_NAME pandas_mol2
IMPORT_FROM PandasMol2
STORE_NAME PandasMol2
POP_TOP
LOAD_CONST 1
LOAD_CONST ('split_multimol2',)
IMPORT_NAME mol2_io
IMPORT_FROM split_multimo... | """
BioPandas module for working with TRIPOS MOL2
files in pandas DataFrames.
"""
from .pandas_mol2 import PandasMol2
from .mol2_io import split_multimol2
__all__ = ["PandasMol2", "split_multimol2"]
| data/biopandas-0.4.1/biopandas/mol2/__init__.py | 150 | 84 | 244,190 |
LOAD_CONST 1
LOAD_CONST ('*',)
IMPORT_NAME default
IMPORT_STAR
LOAD_CONST 'transliterate.contrib.languages.hy.data'
STORE_NAME __title__
LOAD_CONST 'Artur Barseghyan'
STORE_NAME __author__
LOAD_CONST '2013-2018 Artur Barseghyan'
STORE_NAME __copyright__
LOAD_CONST 'GPL 2.0/LGPL 2.1'
STORE_NAME __license__
LOAD_CONS... | from .default import *
__title__ = "transliterate.contrib.languages.hy.data"
__author__ = "Artur Barseghyan"
__copyright__ = "2013-2018 Artur Barseghyan"
__license__ = "GPL 2.0/LGPL 2.1"
| data/transliterate-1.10.2/src/transliterate/contrib/languages/hy/data/__init__.py | 108 | 84 | 143,555 |
LOAD_CONST 'DO NOT EDIT.\n\nThis file was autogenerated. Do not edit it by hand,\nsince your modifications would be overwritten.\n'
STORE_NAME __doc__
LOAD_CONST 0
LOAD_CONST ('deserialize_keras_object',)
IMPORT_NAME keras.src.legacy.saving.serialization
IMPORT_FROM deserialize_keras_object
STORE_NAME deserialize_kera... | """DO NOT EDIT.
This file was autogenerated. Do not edit it by hand,
since your modifications would be overwritten.
"""
from keras.src.legacy.saving.serialization import deserialize_keras_object
from keras.src.legacy.saving.serialization import serialize_keras_object
| data/keras-nightly-3.1.0.dev2024022103/keras/_tf_keras/keras/legacy/saving/__init__.py | 154 | 84 | 285,338 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME math
STORE_NAME math
LOAD_BUILD_CLASS
LOAD_CONST <code object OutputPublisher at 0x7fab82071ae0, file "f.py", line 4>
LOAD_CONST 'OutputPublisher'
MAKE_FUNCTION
LOAD_CONST 'OutputPublisher'
CALL_FUNCTION
STORE_NAME OutputPublisher
LOAD_CONST None
RETURN_VALUE
LOAD_NAME __name_... | import math
class OutputPublisher:
"""
A base class for pages displaying output in the JS application
"""
name = None
button_label = None
description = None
order = math.inf
@classmethod
def publish(cls, conf, repo, benchmarks, graphs, revisions):
pass
| data/asv-0.6.2/asv/publishing.py | 224 | 84 | 392,927 |
LOAD_CONST 0
LOAD_CONST ('*',)
IMPORT_NAME azure.cli.core.aaz
IMPORT_STAR
LOAD_NAME register_command_group
LOAD_CONST 'afd waf-log-analytic ranking'
CALL_FUNCTION
LOAD_BUILD_CLASS
LOAD_CONST <code object __CMDGroup at 0x7fab802b9150, file "f.py", line 4>
LOAD_CONST '__CMDGroup'
MAKE_FUNCTION
LOAD_CONST '__CMDGroup'
... | from azure.cli.core.aaz import *
@register_command_group(
"afd waf-log-analytic ranking",
)
class __CMDGroup(AAZCommandGroup):
"""Manage WAF related ranking statistics for AFD profile."""
pass
__all__ = ["__CMDGroup"]
| data/azure-cli-2.57.0/azure/cli/command_modules/cdn/aaz/latest/afd/waf_log_analytic/ranking/__cmd_group.py | 194 | 84 | 375,299 |
LOAD_CONST 'Google Benchmark tooling'
STORE_NAME __doc__
LOAD_CONST 'Eric Fiselier'
STORE_NAME __author__
LOAD_CONST 'eric@efcs.ca'
STORE_NAME __email__
LOAD_CONST (0, 5, 0)
STORE_NAME __versioninfo__
LOAD_CONST '.'
LOAD_METHOD join
LOAD_CONST <code object <genexpr> at 0x7fab8019bf60, file "f.py", line 6>
LOAD_CONS... | """Google Benchmark tooling"""
__author__ = "Eric Fiselier"
__email__ = "eric@efcs.ca"
__versioninfo__ = (0, 5, 0)
__version__ = ".".join(str(v) for v in __versioninfo__) + "dev"
__all__ = []
| data/onnx-simplifier-0.4.35/third_party/onnx-optimizer/third_party/onnx/third_party/benchmark/tools/gbench/__init__.py | 187 | 84 | 309,940 |
LOAD_CONST 0
LOAD_CONST ('*',)
IMPORT_NAME azure.cli.core.aaz
IMPORT_STAR
LOAD_NAME register_command_group
LOAD_CONST 'afd waf-log-analytic metric'
CALL_FUNCTION
LOAD_BUILD_CLASS
LOAD_CONST <code object __CMDGroup at 0x7fab416c6420, file "f.py", line 4>
LOAD_CONST '__CMDGroup'
MAKE_FUNCTION
LOAD_CONST '__CMDGroup'
L... | from azure.cli.core.aaz import *
@register_command_group(
"afd waf-log-analytic metric",
)
class __CMDGroup(AAZCommandGroup):
"""Manage WAF related metric statistics for AFD profile."""
pass
__all__ = ["__CMDGroup"]
| data/azure-cli-2.57.0/azure/cli/command_modules/cdn/aaz/latest/afd/waf_log_analytic/metric/__cmd_group.py | 194 | 84 | 375,296 |
LOAD_CONST 0
LOAD_CONST ('absolute_import',)
IMPORT_NAME __future__
IMPORT_FROM absolute_import
STORE_NAME absolute_import
POP_TOP
LOAD_CONST 1
LOAD_CONST ('DataScienceClient',)
IMPORT_NAME data_science_client
IMPORT_FROM DataScienceClient
STORE_NAME DataScienceClient
POP_TOP
LOAD_CONST 1
LOAD_CONST ('DataScienceClie... | from __future__ import absolute_import
from .data_science_client import DataScienceClient
from .data_science_client_composite_operations import (
DataScienceClientCompositeOperations,
)
from . import models
__all__ = ["DataScienceClient", "DataScienceClientCompositeOperations", "models"]
| data/oci-2.122.0/src/oci/data_science/__init__.py | 177 | 84 | 179,631 |
LOAD_CONST 'DO NOT EDIT.\n\nThis file was autogenerated. Do not edit it by hand,\nsince your modifications would be overwritten.\n'
STORE_NAME __doc__
LOAD_CONST 0
LOAD_CONST ('Xception',)
IMPORT_NAME keras.src.applications.xception
IMPORT_FROM Xception
STORE_NAME Xception
POP_TOP
LOAD_CONST 0
LOAD_CONST ('decode_pre... | """DO NOT EDIT.
This file was autogenerated. Do not edit it by hand,
since your modifications would be overwritten.
"""
from keras.src.applications.xception import Xception
from keras.src.applications.xception import decode_predictions
from keras.src.applications.xception import preprocess_input
| data/keras-nightly-3.1.0.dev2024022103/keras/_tf_keras/keras/applications/xception/__init__.py | 160 | 84 | 285,346 |
LOAD_CONST '\n'
STORE_NAME __doc__
LOAD_CONST 'CANLIBInitializationError'
LOAD_CONST 'CANLIBOperationError'
LOAD_CONST 'KvaserBus'
LOAD_CONST 'canlib'
LOAD_CONST 'constants'
LOAD_CONST 'get_channel_info'
LOAD_CONST 'structures'
BUILD_LIST
STORE_NAME __all__
LOAD_CONST 0
LOAD_CONST ('*',)
IMPORT_NAME can.interfa... | """
"""
__all__ = [
"CANLIBInitializationError",
"CANLIBOperationError",
"KvaserBus",
"canlib",
"constants",
"get_channel_info",
"structures",
]
from can.interfaces.kvaser.canlib import *
| data/python-can-4.3.1/can/interfaces/kvaser/__init__.py | 109 | 84 | 27,903 |
LOAD_CONST 0
LOAD_CONST ('HttpResponse',)
IMPORT_NAME django.http
IMPORT_FROM HttpResponse
STORE_NAME HttpResponse
POP_TOP
LOAD_CONST 0
LOAD_CONST ('APIView',)
IMPORT_NAME rest_framework.views
IMPORT_FROM APIView
STORE_NAME APIView
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object TagListView at 0x7faa7c1816f0, file "... | from django.http import HttpResponse
from rest_framework.views import APIView
class TagListView(APIView):
def get(self, request):
assert request.openapi
assert not request.openapi.errors
return HttpResponse("success")
@staticmethod
def get_extra_actions():
return []
| data/openapi_core-0.19.0/tests/integration/contrib/django/data/v3.0/djangoproject/tags/views.py | 323 | 84 | 271,123 |
LOAD_CONST 'A mock extension named `mockext_py` for testing purposes.\n'
STORE_NAME __doc__
LOAD_CONST <code object _jupyter_server_extension_paths at 0x7f8aefbbba50, file "f.py", line 5>
LOAD_CONST '_jupyter_server_extension_paths'
MAKE_FUNCTION
STORE_NAME _jupyter_server_extension_paths
LOAD_CONST <code object load... | """A mock extension named `mockext_py` for testing purposes.
"""
def _jupyter_server_extension_paths():
return [{"module": "tests.extension.mockextensions.mockext_deprecated"}]
def load_jupyter_server_extension(serverapp):
pass
| data/jupyter_server-2.12.5/tests/extension/mockextensions/mockext_deprecated.py | 209 | 84 | 433,270 |
LOAD_CONST 0
LOAD_CONST ('annotations',)
IMPORT_NAME __future__
IMPORT_FROM annotations
STORE_NAME annotations
POP_TOP
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME abc
STORE_NAME abc
LOAD_BUILD_CLASS
LOAD_CONST <code object AsymmetricPadding at 0x7f8af15c28a0, file "f.py", line 6>
LOAD_CONST 'AsymmetricPadding'
MAKE_FUNC... | from __future__ import annotations
import abc
class AsymmetricPadding(metaclass=abc.ABCMeta):
@property
@abc.abstractmethod
def name(self) -> str:
"""
A string naming this padding (e.g. "PSS", "PKCS1").
"""
| data/cryptography-42.0.4/src/cryptography/hazmat/primitives/_asymmetric.py | 239 | 84 | 400,861 |
LOAD_CONST 'Google Benchmark tooling'
STORE_NAME __doc__
LOAD_CONST 'Eric Fiselier'
STORE_NAME __author__
LOAD_CONST 'eric@efcs.ca'
STORE_NAME __email__
LOAD_CONST (0, 5, 0)
STORE_NAME __versioninfo__
LOAD_CONST '.'
LOAD_METHOD join
LOAD_CONST <code object <genexpr> at 0x7fadb5811c00, file "f.py", line 6>
LOAD_CONS... | """Google Benchmark tooling"""
__author__ = "Eric Fiselier"
__email__ = "eric@efcs.ca"
__versioninfo__ = (0, 5, 0)
__version__ = ".".join(str(v) for v in __versioninfo__) + "dev"
__all__ = []
| data/onnx-simplifier-0.4.35/third_party/onnx-optimizer/third_party/protobuf/third_party/benchmark/tools/gbench/__init__.py | 188 | 84 | 310,080 |
LOAD_CONST '\nVersion information.\n'
STORE_NAME __doc__
LOAD_CONST '3.7'
STORE_NAME pyosmium_major
LOAD_CONST '3.7.0'
STORE_NAME pyosmium_release
LOAD_CONST '2.20.0'
STORE_NAME libosmium_version
LOAD_CONST '1.7.1'
STORE_NAME protozero_version
LOAD_CONST '2.11.1'
STORE_NAME pybind11_version
LOAD_CONST None
RETURN_... | """
Version information.
"""
pyosmium_major = "3.7"
pyosmium_release = "3.7.0"
libosmium_version = "2.20.0"
protozero_version = "1.7.1"
pybind11_version = "2.11.1"
| data/osmium-3.7.0/src/osmium/version.py | 107 | 84 | 170,051 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME decimal
STORE_NAME decimal
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME bson
STORE_NAME bson
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME pydantic
STORE_NAME pydantic
LOAD_CONST 0
LOAD_CONST ('Annotated',)
IMPORT_NAME typing_extensions
IMPORT_FROM Annotated
STORE_NAME Annotated
POP_T... | import decimal
import bson
import pydantic
from typing_extensions import Annotated
DecimalAnnotation = Annotated[
decimal.Decimal,
pydantic.BeforeValidator(
lambda v: v.to_decimal() if isinstance(v, bson.Decimal128) else v
),
]
| data/beanie-1.25.0/beanie/odm/custom_types/decimal.py | 203 | 84 | 323,824 |
LOAD_CONST '\nSome\nmulti-line\ndocstring\nhere\n'
STORE_NAME __doc__
LOAD_CONST 0
LOAD_CONST ('absolute_import',)
IMPORT_NAME __future__
IMPORT_FROM absolute_import
STORE_NAME absolute_import
POP_TOP
LOAD_CONST 0
LOAD_CONST ('division',)
IMPORT_NAME __future__
IMPORT_FROM division
STORE_NAME division
POP_TOP
LOAD_C... | """
Some
multi-line
docstring
here
"""
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
import html
def fixture_function_str():
return str("test")
html_escape = html.escape
| data/ddtrace-2.6.3/tests/appsec/iast/fixtures/ast/str/future_import_function_str.py | 249 | 84 | 269,717 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME os
STORE_NAME os
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME sys
STORE_NAME sys
LOAD_CONST 0
STORE_NAME i
LOAD_NAME sys
LOAD_ATTR argv
LOAD_NAME i
BINARY_SUBSCR
LOAD_CONST '--scan'
COMPARE_OP ==
POP_JUMP_IF_FALSE
LOAD_NAME os
LOAD_ATTR path
LOAD_METHOD join
LOAD_CONST 'a'
LOAD_C... | import os, sys
i = 0
if sys.argv[i] == "--scan":
scan = os.path.join("a", "b")
for path in sys.argv[i:]:
if os.path.exists(path):
continue
with open(path, "r") as fp:
pass
| data/spark_parser-1.8.9/example/python2/test/format/with.py | 184 | 84 | 334,755 |
LOAD_CONST ' A source file '
STORE_NAME __doc__
LOAD_CONST 'UNKNOWN'
STORE_NAME __version__
LOAD_NAME __version__
LOAD_CONST 'UNKNOWN'
COMPARE_OP ==
POP_JUMP_IF_FALSE
LOAD_CONST (0, 0, 0)
STORE_NAME __version_info__
JUMP_FORWARD to 42
LOAD_NAME tuple
LOAD_NAME map
LOAD_NAME int
LOAD_NAME __version__
LOAD_METHOD spl... | """ A source file """
__version__ = "UNKNOWN"
if __version__ == "UNKNOWN":
__version_info__ = (0, 0, 0)
else:
__version_info__ = tuple(map(int, __version__.split(".")))
VERSION = "1.2.3"
| data/versioningit-3.0.0/test/data/replace-version/append-newline.py | 125 | 84 | 46,905 |
LOAD_CONST ' A source file '
STORE_NAME __doc__
LOAD_CONST 'UNKNOWN'
STORE_NAME __version__
LOAD_NAME __version__
LOAD_CONST 'UNKNOWN'
COMPARE_OP ==
POP_JUMP_IF_FALSE
LOAD_CONST (0, 0, 0)
STORE_NAME __version_info__
JUMP_FORWARD to 42
LOAD_NAME tuple
LOAD_NAME map
LOAD_NAME int
LOAD_NAME __version__
LOAD_METHOD spl... | """ A source file """
__version__ = "UNKNOWN"
if __version__ == "UNKNOWN":
__version_info__ = (0, 0, 0)
else:
__version_info__ = tuple(map(int, __version__.split(".")))
VERSION = "1.2.3"
| data/versioningit-3.0.0/test/data/replace-version/append.py | 125 | 84 | 46,899 |
LOAD_CONST 0
LOAD_CONST ('Any',)
IMPORT_NAME typing
IMPORT_FROM Any
STORE_NAME Any
POP_TOP
LOAD_NAME Any
LOAD_CONST None
LOAD_CONST ('ip', 'return')
BUILD_CONST_KEY_MAP
LOAD_CONST <code object load_ipython_extension at 0x7f8e2fb92540, file "f.py", line 4>
LOAD_CONST 'load_ipython_extension'
MAKE_FUNCTION
STORE_NAME lo... | from typing import Any
def load_ipython_extension(ip: Any) -> None: # pragma: no cover
from pipenv.patched.pip._vendor.rich.pretty import install
from pipenv.patched.pip._vendor.rich.traceback import install as tr_install
install()
tr_install()
| data/pipenv-2023.12.1/pipenv/patched/pip/_vendor/rich/_extension.py | 194 | 84 | 402,032 |
LOAD_CONST 'OpenAPI core validation exceptions module'
STORE_NAME __doc__
LOAD_CONST 0
LOAD_CONST ('dataclass',)
IMPORT_NAME dataclasses
IMPORT_FROM dataclass
STORE_NAME dataclass
POP_TOP
LOAD_CONST 0
LOAD_CONST ('OpenAPIError',)
IMPORT_NAME openapi_core.exceptions
IMPORT_FROM OpenAPIError
STORE_NAME OpenAPIError
POP... | """OpenAPI core validation exceptions module"""
from dataclasses import dataclass
from openapi_core.exceptions import OpenAPIError
@dataclass
class ValidationError(OpenAPIError):
def __str__(self) -> str:
return f"{self.__class__.__name__}: {self.__cause__}"
| data/openapi_core-0.19.0/openapi_core/validation/exceptions.py | 280 | 84 | 271,223 |
LOAD_CONST 1
LOAD_CONST ('_AWS',)
IMPORT_NAME
IMPORT_FROM _AWS
STORE_NAME _AWS
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object _Game at 0x7fab70246b70, file "f.py", line 4>
LOAD_CONST '_Game'
MAKE_FUNCTION
LOAD_CONST '_Game'
LOAD_NAME _AWS
CALL_FUNCTION
STORE_NAME _Game
LOAD_BUILD_CLASS
LOAD_CONST <code object GameT... | from . import _AWS
class _Game(_AWS):
_type = "game"
_icon_dir = "resources/aws/game"
class GameTech(_Game):
_icon = "game-tech.png"
class Gamelift(_Game):
_icon = "gamelift.png"
| data/diagrams-0.23.4/diagrams/aws/game.py | 358 | 84 | 205,922 |
LOAD_CONST 0
LOAD_CONST ('Distribution', 'metadata_packages_distributions', 'packages_distributions', 'resolve_distribution_information')
IMPORT_NAME plux.runtime.metadata
IMPORT_FROM Distribution
STORE_NAME Distribution
IMPORT_FROM metadata_packages_distributions
STORE_NAME metadata_packages_distributions
IMPORT_FROM ... | from plux.runtime.metadata import (
Distribution,
metadata_packages_distributions,
packages_distributions,
resolve_distribution_information,
)
__all__ = [
"resolve_distribution_information",
"metadata_packages_distributions",
"packages_distributions",
"Distribution",
]
| data/plux-1.7.0/plugin/metadata.py | 140 | 84 | 247,238 |
LOAD_CONST 'DO NOT EDIT.\n\nThis file was autogenerated. Do not edit it by hand,\nsince your modifications would be overwritten.\n'
STORE_NAME __doc__
LOAD_CONST 0
LOAD_CONST ('deserialize_keras_object',)
IMPORT_NAME keras.src.legacy.saving.serialization
IMPORT_FROM deserialize_keras_object
STORE_NAME deserialize_kera... | """DO NOT EDIT.
This file was autogenerated. Do not edit it by hand,
since your modifications would be overwritten.
"""
from keras.src.legacy.saving.serialization import deserialize_keras_object
from keras.src.legacy.saving.serialization import serialize_keras_object
| data/keras-nightly-3.1.0.dev2024022103/keras/utils/legacy/__init__.py | 154 | 84 | 284,917 |
LOAD_CONST 'DO NOT EDIT.\n\nThis file was autogenerated. Do not edit it by hand,\nsince your modifications would be overwritten.\n'
STORE_NAME __doc__
LOAD_CONST 0
LOAD_CONST ('deserialize_keras_object',)
IMPORT_NAME keras.src.legacy.saving.serialization
IMPORT_FROM deserialize_keras_object
STORE_NAME deserialize_kera... | """DO NOT EDIT.
This file was autogenerated. Do not edit it by hand,
since your modifications would be overwritten.
"""
from keras.src.legacy.saving.serialization import deserialize_keras_object
from keras.src.legacy.saving.serialization import serialize_keras_object
| data/keras-nightly-3.1.0.dev2024022103/keras/legacy/saving/__init__.py | 154 | 84 | 284,923 |
LOAD_CONST ' Distributor init file\n\nDistributors: you can add custom code here to support particular distributions\nof scikit-learn.\n\nFor example, this is a good place to put any checks for hardware requirements.\n\nThe scikit-learn standard source distribution will not put code in this file,\nso you can safely rep... | """ Distributor init file
Distributors: you can add custom code here to support particular distributions
of scikit-learn.
For example, this is a good place to put any checks for hardware requirements.
The scikit-learn standard source distribution will not put code in this file,
so you can safely replace this file wi... | data/scikit-learn-1.4.1.post1/sklearn/_distributor_init.py | 99 | 84 | 107,535 |
LOAD_CONST 1
LOAD_CONST ('_AWS',)
IMPORT_NAME
IMPORT_FROM _AWS
STORE_NAME _AWS
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object _Ar at 0x7fab703bb5d0, file "f.py", line 4>
LOAD_CONST '_Ar'
MAKE_FUNCTION
LOAD_CONST '_Ar'
LOAD_NAME _AWS
CALL_FUNCTION
STORE_NAME _Ar
LOAD_BUILD_CLASS
LOAD_CONST <code object ArVr at 0x7fa... | from . import _AWS
class _Ar(_AWS):
_type = "ar"
_icon_dir = "resources/aws/ar"
class ArVr(_Ar):
_icon = "ar-vr.png"
class Sumerian(_Ar):
_icon = "sumerian.png"
| data/diagrams-0.23.4/diagrams/aws/ar.py | 355 | 84 | 205,936 |
LOAD_CONST 0
LOAD_CONST ('DeprecationRule',)
IMPORT_NAME saltlint.linter.rule
IMPORT_FROM DeprecationRule
STORE_NAME DeprecationRule
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object StateDeprecationDockerStopped at 0x7faa761ee660, file "f.py", line 4>
LOAD_CONST 'StateDeprecationDockerStopped'
MAKE_FUNCTION
LOAD_CONST... | from saltlint.linter.rule import DeprecationRule
class StateDeprecationDockerStopped(DeprecationRule):
id = "913"
state = "docker.stopped"
deprecated_since = "2017.7.0"
version_added = "v0.5.0"
| data/salt-lint-0.9.2/saltlint/rules/StateDeprecationDockerStopped.py | 219 | 84 | 436,327 |
LOAD_CONST 'DO NOT EDIT.\n\nThis file was autogenerated. Do not edit it by hand,\nsince your modifications would be overwritten.\n'
STORE_NAME __doc__
LOAD_CONST 0
LOAD_CONST ('Xception',)
IMPORT_NAME keras.src.applications.xception
IMPORT_FROM Xception
STORE_NAME Xception
POP_TOP
LOAD_CONST 0
LOAD_CONST ('decode_pre... | """DO NOT EDIT.
This file was autogenerated. Do not edit it by hand,
since your modifications would be overwritten.
"""
from keras.src.applications.xception import Xception
from keras.src.applications.xception import decode_predictions
from keras.src.applications.xception import preprocess_input
| data/keras-nightly-3.1.0.dev2024022103/keras/applications/xception/__init__.py | 160 | 84 | 284,931 |
LOAD_CONST 'DO NOT EDIT.\n\nThis file was autogenerated. Do not edit it by hand,\nsince your modifications would be overwritten.\n'
STORE_NAME __doc__
LOAD_CONST 0
LOAD_CONST ('Xception',)
IMPORT_NAME keras.src.applications.xception
IMPORT_FROM Xception
STORE_NAME Xception
POP_TOP
LOAD_CONST 0
LOAD_CONST ('decode_pre... | """DO NOT EDIT.
This file was autogenerated. Do not edit it by hand,
since your modifications would be overwritten.
"""
from keras.src.applications.xception import Xception
from keras.src.applications.xception import decode_predictions
from keras.src.applications.xception import preprocess_input
| data/keras-3.0.5/keras/_tf_keras/keras/applications/xception/__init__.py | 160 | 84 | 349,526 |
LOAD_CONST 0
LOAD_CONST ('FileResponse', 'HttpResponse')
IMPORT_NAME django.http
IMPORT_FROM FileResponse
STORE_NAME FileResponse
IMPORT_FROM HttpResponse
STORE_NAME HttpResponse
POP_TOP
LOAD_CONST 0
LOAD_CONST ('path',)
IMPORT_NAME django.urls
IMPORT_FROM path
STORE_NAME path
POP_TOP
LOAD_CONST <code object hellowor... | from django.http import FileResponse, HttpResponse
from django.urls import path
def helloworld(request):
return HttpResponse("Hello World!")
urlpatterns = [
path("", helloworld),
path("file/", lambda x: FileResponse(open(__file__, "rb"))),
]
| data/Django-5.0.2/tests/wsgi/urls.py | 235 | 84 | 326,197 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME warnings
STORE_NAME warnings
LOAD_NAME warnings
LOAD_ATTR warn
LOAD_CONST 'The module `aesara.scalar.basic_scipy` is deprecated and has been renamed to `aesara.scalar.math`'
LOAD_NAME DeprecationWarning
LOAD_CONST 2
LOAD_CONST ('stacklevel',)
CALL_FUNCTION
POP_TOP
LOAD_CONS... | import warnings
warnings.warn(
"The module `aesara.scalar.basic_scipy` is deprecated "
"and has been renamed to `aesara.scalar.math`",
DeprecationWarning,
stacklevel=2,
)
from aesara.scalar.math import *
| data/aesara-2.9.3/aesara/scalar/basic_scipy.py | 111 | 84 | 323,503 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME numpy
STORE_NAME np
LOAD_CONST 0
LOAD_CONST ('Softmax',)
IMPORT_NAME onnx.reference.ops.op_softmax
IMPORT_FROM Softmax
STORE_NAME Softmax
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object LogSoftmax at 0x7fab820536f0, file "f.py", line 6>
LOAD_CONST 'LogSoftmax'
MAKE_FUNCTION
L... | import numpy as np
from onnx.reference.ops.op_softmax import Softmax
class LogSoftmax(Softmax):
def _run(self, X): # type: ignore
Y = Softmax._run(self, X)[0]
np.log(Y, out=Y)
return (Y,)
| data/onnx-simplifier-0.4.35/third_party/onnx-optimizer/third_party/onnx/onnx/reference/ops/op_log_softmax.py | 254 | 84 | 309,516 |
LOAD_CONST 1
LOAD_CONST ('TestBasic', 'TestBlockQuote', 'TestCodeBlock', 'TestConplexText', 'TestDirective', 'TestFootNote', 'TestHeading', 'TestImage', 'TestInlineMarkdown', 'TestList', 'TestRestCode', 'TestTable')
IMPORT_NAME test_renderer
IMPORT_FROM TestBasic
STORE_NAME TestBasic
IMPORT_FROM TestBlockQuote
STORE_NA... | from .test_renderer import (
TestBasic,
TestBlockQuote,
TestCodeBlock,
TestConplexText,
TestDirective,
TestFootNote,
TestHeading,
TestImage,
TestInlineMarkdown,
TestList,
TestRestCode,
TestTable,
)
| data/sphinx_mdinclude-0.5.3/sphinx_mdinclude/tests/__init__.py | 199 | 84 | 185,871 |
LOAD_CONST 0
LOAD_CONST ('models',)
IMPORT_NAME django.db
IMPORT_FROM models
STORE_NAME models
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object CommentForPaginateByMaxMixin at 0x7fab8005d540, file "f.py", line 4>
LOAD_CONST 'CommentForPaginateByMaxMixin'
MAKE_FUNCTION
LOAD_CONST 'CommentForPaginateByMaxMixin'
LOAD_NAM... | from django.db import models
class CommentForPaginateByMaxMixin(models.Model):
email = models.EmailField()
content = models.CharField(max_length=200)
created = models.DateTimeField(auto_now_add=True)
class Meta:
ordering = ["id"]
| data/drf-extensions-0.7.1/tests_app/tests/functional/mixins/paginate_by_max_mixin/models.py | 321 | 84 | 68,858 |
LOAD_CONST 0
LOAD_CONST ('Enum',)
IMPORT_NAME enum
IMPORT_FROM Enum
STORE_NAME Enum
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object ChatMessagePolicyViolationVerdictDetailsTypes at 0x7fab70027420, file "f.py", line 4>
LOAD_CONST 'ChatMessagePolicyViolationVerdictDetailsTypes'
MAKE_FUNCTION
LOAD_CONST 'ChatMessagePoli... | from enum import Enum
class ChatMessagePolicyViolationVerdictDetailsTypes(str, Enum):
None_ = ("none",)
AllowFalsePositiveOverride = ("allowFalsePositiveOverride",)
AllowOverrideWithoutJustification = ("allowOverrideWithoutJustification",)
AllowOverrideWithJustification = ("allowOverrideWithJustificat... | data/msgraph-sdk-1.1.0/msgraph/generated/models/chat_message_policy_violation_verdict_details_types.py | 224 | 84 | 260,932 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME graphene
STORE_NAME graphene
LOAD_CONST 1
LOAD_CONST ('GrapheneSchedule',)
IMPORT_NAME schedules
IMPORT_FROM GrapheneSchedule
STORE_NAME GrapheneSchedule
POP_TOP
LOAD_CONST 1
LOAD_CONST ('GrapheneSensor',)
IMPORT_NAME sensors
IMPORT_FROM GrapheneSensor
STORE_NAME GrapheneSenso... | import graphene
from .schedules import GrapheneSchedule
from .sensors import GrapheneSensor
class GrapheneInstigator(graphene.Union):
class Meta:
types = (GrapheneSchedule, GrapheneSensor)
name = "Instigator"
| data/dagster-graphql-1.6.5/dagster_graphql/schema/instigators.py | 330 | 84 | 105,340 |
LOAD_CONST 1
LOAD_CONST ('__version__',)
IMPORT_NAME _version
IMPORT_FROM __version__
STORE_NAME __version__
POP_TOP
LOAD_CONST 1
LOAD_CONST ('JupyterFrontEnd',)
IMPORT_NAME jupyterfrontend
IMPORT_FROM JupyterFrontEnd
STORE_NAME JupyterFrontEnd
POP_TOP
LOAD_CONST 1
LOAD_CONST ('Panel', 'SplitPanel', 'Icon')
IMPORT_NA... | from ._version import __version__
from .jupyterfrontend import JupyterFrontEnd
from .widgets import Panel, SplitPanel, Icon
from .icon import Icon
def _jupyter_labextension_paths():
return [{"src": "labextension", "dest": "ipylab"}]
| data/ipylab-1.0.0/ipylab/__init__.py | 245 | 84 | 443,847 |
LOAD_CONST 0
LOAD_CONST ('DeprecationRule',)
IMPORT_NAME saltlint.linter.rule
IMPORT_FROM DeprecationRule
STORE_NAME DeprecationRule
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object StateDeprecationDockerAbsent at 0x7faa761ee660, file "f.py", line 4>
LOAD_CONST 'StateDeprecationDockerAbsent'
MAKE_FUNCTION
LOAD_CONST '... | from saltlint.linter.rule import DeprecationRule
class StateDeprecationDockerAbsent(DeprecationRule):
id = "906"
state = "docker.absent"
deprecated_since = "2017.7.0"
version_added = "v0.5.0"
| data/salt-lint-0.9.2/saltlint/rules/StateDeprecationDockerAbsent.py | 219 | 84 | 436,342 |
LOAD_CONST 'Locations\n'
STORE_NAME __doc__
LOAD_CONST 'restructuredtext'
STORE_NAME __docformat__
LOAD_CONST 0
LOAD_CONST ('ILocation',)
IMPORT_NAME zope.location.interfaces
IMPORT_FROM ILocation
STORE_NAME ILocation
POP_TOP
LOAD_CONST 0
LOAD_CONST ('Location',)
IMPORT_NAME zope.location.location
IMPORT_FROM Locati... | """Locations
"""
__docformat__ = "restructuredtext"
from zope.location.interfaces import ILocation
from zope.location.location import Location
from zope.location.location import LocationIterator
from zope.location.location import LocationProxy
from zope.location.location import inside
from zope.location.location impor... | data/zope.location-5.0/src/zope/location/__init__.py | 207 | 84 | 385,297 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME pytest
STORE_NAME pytest
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME kernels
STORE_NAME kernels
LOAD_NAME pytest
LOAD_ATTR mark
LOAD_ATTR skip
LOAD_CONST 'Unable to generate any tests for kernel'
LOAD_CONST ('reason',)
CALL_FUNCTION
LOAD_CONST <code object test_pyawkward_IndexedA... | import pytest
import kernels
@pytest.mark.skip(reason="Unable to generate any tests for kernel")
def test_pyawkward_IndexedArray32_reduce_next_nonlocal_nextshifts_fromshifts_64_1():
raise NotImplementedError("Unable to generate any tests for kernel")
| data/awkward-cpp-29/tests-spec/test_pyawkward_IndexedArray32_reduce_next_nonlocal_nextshifts_fromshifts_64.py | 231 | 84 | 220,405 |
LOAD_CONST 0
LOAD_CONST ('datetime',)
IMPORT_NAME datetime
IMPORT_FROM datetime
STORE_NAME datetime
POP_TOP
LOAD_CONST 'Database dsn'
LOAD_CONST 'SQL scripts'
LOAD_CONST ('dsn', 'scripts')
BUILD_CONST_KEY_MAP
LOAD_CONST <code object main at 0x7fab540c5420, file "f.py", line 4>
LOAD_CONST 'main'
MAKE_FUNCTION
STORE_NAM... | from datetime import datetime
def main(dsn: "Database dsn", *scripts: "SQL scripts"):
"Run the given scripts on the database"
for script in scripts:
print("executing %s" % script)
if __name__ == "__main__":
import plac
plac.call(main)
| data/plac-1.4.2/doc/example7_.py | 190 | 84 | 112,224 |
LOAD_CONST 'sorted_transfers'
BUILD_LIST
STORE_NAME __all__
LOAD_CONST <code object sorted_transfers at 0x7fab41c96300, file "f.py", line 6>
LOAD_CONST 'sorted_transfers'
MAKE_FUNCTION
STORE_NAME sorted_transfers
LOAD_CONST None
RETURN_VALUE
LOAD_GLOBAL sorted
LOAD_FAST iterable
LOAD_CONST True
LOAD_CONST <code obje... | __all__ = [
"sorted_transfers",
]
def sorted_transfers(iterable):
"""Sort an iterable of transfers in reverse chronological order"""
return sorted(
iterable, reverse=True, key=lambda tr: (tr.creation_date, tr.exec_date)
)
| data/woob-3.6/woob/tools/capabilities/bank/bank_transfer.py | 178 | 84 | 109,097 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME socket
STORE_NAME socket
LOAD_CONST 0
LOAD_CONST ('Resolver',)
IMPORT_NAME tornado.netutil
IMPORT_FROM Resolver
STORE_NAME Resolver
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object UnixResolver at 0x7f8e2f9fc1e0, file "f.py", line 6>
LOAD_CONST 'UnixResolver'
MAKE_FUNCTION
LOA... | import socket
from tornado.netutil import Resolver
class UnixResolver(Resolver):
def initialize(self, socket_path):
self.socket_path = socket_path
async def resolve(self, host, port, *args, **kwargs):
return [(socket.AF_UNIX, self.socket_path)]
| data/jupyter_server_proxy-4.1.0/jupyter_server_proxy/unixsock.py | 278 | 84 | 434,546 |
LOAD_BUILD_CLASS
LOAD_CONST <code object Callable at 0x7fab800ab390, file "f.py", line 1>
LOAD_CONST 'Callable'
MAKE_FUNCTION
LOAD_CONST 'Callable'
CALL_FUNCTION
STORE_NAME Callable
LOAD_NAME Callable
CALL_FUNCTION
STORE_NAME function
LOAD_NAME function
LOAD_ATTR method
STORE_NAME method
LOAD_CONST None
RETURN_VALUE
... | class Callable:
"""A callable object that behaves like a function."""
def __call__(self, arg1, arg2, **kwargs):
pass
def method(self, arg1, arg2):
"""docstring of Callable.method()."""
pass
function = Callable()
method = function.method
| data/sphinx-7.2.6/tests/roots/test-ext-autodoc/target/callable.py | 234 | 84 | 381,180 |
LOAD_CONST 0
LOAD_CONST ('Enum',)
IMPORT_NAME enum
IMPORT_FROM Enum
STORE_NAME Enum
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object EducationSubmissionStatus at 0x7fab820f4930, file "f.py", line 4>
LOAD_CONST 'EducationSubmissionStatus'
MAKE_FUNCTION
LOAD_CONST 'EducationSubmissionStatus'
LOAD_NAME str
LOAD_NAME Enum... | from enum import Enum
class EducationSubmissionStatus(str, Enum):
Working = ("working",)
Submitted = ("submitted",)
Released = ("released",)
Returned = ("returned",)
UnknownFutureValue = ("unknownFutureValue",)
Reassigned = ("reassigned",)
| data/msgraph-sdk-1.1.0/msgraph/generated/models/education_submission_status.py | 207 | 84 | 259,937 |
LOAD_CONST 'sphinxext.opengraph'
BUILD_LIST
STORE_NAME extensions
LOAD_CONST 'index'
STORE_NAME master_doc
LOAD_CONST '_build'
BUILD_LIST
STORE_NAME exclude_patterns
LOAD_CONST 'basic'
STORE_NAME html_theme
LOAD_CONST 'http://example.org/en/latest/'
STORE_NAME ogp_site_url
LOAD_CONST 'image'
LOAD_CONST 'foo.svg'
B... | extensions = ["sphinxext.opengraph"]
master_doc = "index"
exclude_patterns = ["_build"]
html_theme = "basic"
ogp_site_url = "http://example.org/en/latest/"
ogp_social_cards = {
"image": "foo.svg",
}
| data/sphinxext-opengraph-0.9.1/tests/roots/test-social-cards-svg/conf.py | 104 | 84 | 346,017 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME six
STORE_NAME six
LOAD_CONST <code object application at 0x7fab7006d810, file "f.py", line 4>
LOAD_CONST 'application'
MAKE_FUNCTION
STORE_NAME application
LOAD_CONST None
RETURN_VALUE
LOAD_FAST start_response
LOAD_CONST '200 OK'
LOAD_CONST ('Content-type', 'text/html')
BUILD... | import six
def application(environ, start_response):
start_response("200 OK", [("Content-type", "text/html")])
body = "index: %s" % environ["app.user"]
if six.PY3:
body = body.encode("ascii")
return [body]
| data/Paste-3.7.1/tests/urlparser_data/hook/index.py | 158 | 84 | 150,010 |
LOAD_CONST 'Web application for the Bioregistry.'
STORE_NAME __doc__
LOAD_CONST 0
LOAD_CONST ('get_app',)
IMPORT_NAME bioregistry.app.impl
IMPORT_FROM get_app
STORE_NAME get_app
POP_TOP
LOAD_NAME get_app
CALL_FUNCTION
STORE_NAME app
LOAD_NAME __name__
LOAD_CONST '__main__'
COMPARE_OP ==
POP_JUMP_IF_FALSE
LOAD_CONST... | """Web application for the Bioregistry."""
from bioregistry.app.impl import get_app
app = get_app()
if __name__ == "__main__":
import uvicorn
uvicorn.run(app, port=5000, host="0.0.0.0")
| data/bioregistry-0.10.150/src/bioregistry/app/wsgi.py | 149 | 84 | 104,324 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME logging
STORE_NAME logging
LOAD_NAME logging
LOAD_METHOD getLogger
LOAD_CONST 'weasel'
CALL_METHOD
STORE_NAME logger
LOAD_NAME logging
LOAD_METHOD StreamHandler
CALL_METHOD
STORE_NAME logger_stream_handler
LOAD_NAME logger_stream_handler
LOAD_METHOD setFormatter
LOAD_NAME lo... | import logging
logger = logging.getLogger("weasel")
logger_stream_handler = logging.StreamHandler()
logger_stream_handler.setFormatter(
logging.Formatter("[%(asctime)s] [%(levelname)s] %(message)s")
)
logger.addHandler(logger_stream_handler)
| data/weasel-0.3.4/weasel/util/logging.py | 127 | 84 | 199,553 |
LOAD_CONST 1
LOAD_CONST ('build_sam', 'build_sam_vit_h', 'build_sam_vit_l', 'build_sam_vit_b', 'sam_model_registry')
IMPORT_NAME build_sam
IMPORT_FROM build_sam
STORE_NAME build_sam
IMPORT_FROM build_sam_vit_h
STORE_NAME build_sam_vit_h
IMPORT_FROM build_sam_vit_l
STORE_NAME build_sam_vit_l
IMPORT_FROM build_sam_vit_b
... | from .build_sam import (
build_sam,
build_sam_vit_h,
build_sam_vit_l,
build_sam_vit_b,
sam_model_registry,
)
from .predictor import SamPredictor
from .automatic_mask_generator import SamAutomaticMaskGenerator
| data/segment_anything-1.0/segment_anything/__init__.py | 217 | 84 | 177,717 |
LOAD_CONST 0
LOAD_CONST ('TestClient',)
IMPORT_NAME fastapi.testclient
IMPORT_FROM TestClient
STORE_NAME TestClient
POP_TOP
LOAD_CONST 0
LOAD_CONST ('app',)
IMPORT_NAME docs_src.custom_response.tutorial007
IMPORT_FROM app
STORE_NAME app
POP_TOP
LOAD_NAME TestClient
LOAD_NAME app
CALL_FUNCTION
STORE_NAME client
LOAD_... | from fastapi.testclient import TestClient
from docs_src.custom_response.tutorial007 import app
client = TestClient(app)
def test_get():
fake_content = b"some fake video bytes"
response = client.get("/")
assert response.content == fake_content * 10
| data/fastapi-0.109.2/tests/test_tutorial/test_custom_response/test_tutorial007.py | 197 | 84 | 141,957 |
LOAD_CONST 'edx_lint unittest_assert module (optional plugin for unittest assertion checks).\n\nAdd this to your pylintrc::\n\n load-plugins=edx_lint.pylint.unittest_assert\n\n'
STORE_NAME __doc__
LOAD_CONST 1
LOAD_CONST ('register_checkers',)
IMPORT_NAME unittest_assert_check
IMPORT_FROM register_checkers
STORE_NAME ... | """edx_lint unittest_assert module (optional plugin for unittest assertion checks).
Add this to your pylintrc::
load-plugins=edx_lint.pylint.unittest_assert
"""
from .unittest_assert_check import register_checkers
register = register_checkers
| data/edx-lint-5.3.6/edx_lint/pylint/unittest_assert/__init__.py | 122 | 84 | 56,331 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME pytest
STORE_NAME pytest
LOAD_CONST False
STORE_GLOBAL used
LOAD_NAME pytest
LOAD_ATTR fixture
LOAD_CONST True
LOAD_CONST ('autouse',)
CALL_FUNCTION
LOAD_CONST <code object one at 0x7faa75c44ae0, file "f.py", line 6>
LOAD_CONST 'one'
MAKE_FUNCTION
CALL_FUNCTION
STORE_NAME one
... | import pytest
used = False
@pytest.fixture(autouse=True)
def one():
global used
used = True
pass
@pytest.fixture(params=[1, 2])
def two():
pass
def test_me(two):
global used
assert used
| data/pytest-cases-3.8.2/tests/pytest_extension/issues/test_issue_114.py | 250 | 84 | 356,682 |
LOAD_BUILD_CLASS
LOAD_CONST <code object BackgroundTaskError at 0x7fab6415b4b0, file "f.py", line 1>
LOAD_CONST 'BackgroundTaskError'
MAKE_FUNCTION
LOAD_CONST 'BackgroundTaskError'
LOAD_NAME Exception
CALL_FUNCTION
STORE_NAME BackgroundTaskError
LOAD_BUILD_CLASS
LOAD_CONST <code object InvalidTaskError at 0x7fab6415bd... | class BackgroundTaskError(Exception):
def __init__(self, message, errors=None):
super(BackgroundTaskError, self).__init__(message)
self.errors = errors
class InvalidTaskError(BackgroundTaskError):
"""
The task will not be rescheduled if it fails with this error
"""
pass
| data/django-background-tasks-1.2.5/background_task/exceptions.py | 336 | 84 | 152,868 |
LOAD_CONST 1
LOAD_CONST ('TextElement',)
IMPORT_NAME mixins.text_element
IMPORT_FROM TextElement
STORE_NAME TextElement
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object Label at 0x7fab641e70c0, file "f.py", line 4>
LOAD_CONST 'Label'
MAKE_FUNCTION
LOAD_CONST 'Label'
LOAD_NAME TextElement
CALL_FUNCTION
STORE_NAME Label... | from .mixins.text_element import TextElement
class Label(TextElement):
def __init__(self, text: str = "") -> None:
"""Label
Displays some text.
:param text: the content of the label
"""
super().__init__(tag="div", text=text)
| data/nicegui-1.4.15/nicegui/elements/label.py | 241 | 84 | 223,283 |
LOAD_CONST 1
LOAD_CONST ('InstanceMetadataResponse',)
IMPORT_NAME responses
IMPORT_FROM InstanceMetadataResponse
STORE_NAME InstanceMetadataResponse
POP_TOP
LOAD_CONST 'http://169.254.169.254'
BUILD_LIST
STORE_NAME url_bases
LOAD_CONST '{0}/(?P<path>.+)'
LOAD_NAME InstanceMetadataResponse
LOAD_METHOD method_dispatch
... | from .responses import InstanceMetadataResponse
url_bases = ["http://169.254.169.254"]
url_paths = {
"{0}/(?P<path>.+)": InstanceMetadataResponse.method_dispatch(
InstanceMetadataResponse.metadata_response
)
}
| data/moto-5.0.2/moto/instance_metadata/urls.py | 112 | 84 | 198,435 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME stripe
STORE_NAME stripe
LOAD_BUILD_CLASS
LOAD_CONST <code object TestBalance at 0x7f8e4475c540, file "f.py", line 4>
LOAD_CONST 'TestBalance'
MAKE_FUNCTION
LOAD_CONST 'TestBalance'
LOAD_NAME object
CALL_FUNCTION
STORE_NAME TestBalance
LOAD_CONST None
RETURN_VALUE
LOAD_NAME __... | import stripe
class TestBalance(object):
def test_is_retrievable(self, http_client_mock):
resource = stripe.Balance.retrieve()
http_client_mock.assert_requested("get", path="/v1/balance")
assert isinstance(resource, stripe.Balance)
| data/stripe-8.3.0/tests/api_resources/test_balance.py | 264 | 84 | 11,858 |
LOAD_CONST 'Google Benchmark tooling'
STORE_NAME __doc__
LOAD_CONST 'Eric Fiselier'
STORE_NAME __author__
LOAD_CONST 'eric@efcs.ca'
STORE_NAME __email__
LOAD_CONST (0, 5, 0)
STORE_NAME __versioninfo__
LOAD_CONST '.'
LOAD_METHOD join
LOAD_CONST <code object <genexpr> at 0x7fadb5811c00, file "f.py", line 6>
LOAD_CONS... | """Google Benchmark tooling"""
__author__ = "Eric Fiselier"
__email__ = "eric@efcs.ca"
__versioninfo__ = (0, 5, 0)
__version__ = ".".join(str(v) for v in __versioninfo__) + "dev"
__all__ = []
| data/onnxoptimizer-0.3.13/third_party/protobuf/third_party/benchmark/tools/gbench/__init__.py | 188 | 84 | 86,132 |
LOAD_CONST 0
LOAD_CONST ('*',)
IMPORT_NAME azure.cli.core.aaz
IMPORT_STAR
LOAD_NAME register_command_group
LOAD_CONST 'network lb inbound-nat-rule'
CALL_FUNCTION
LOAD_BUILD_CLASS
LOAD_CONST <code object __CMDGroup at 0x7fab82197930, file "f.py", line 4>
LOAD_CONST '__CMDGroup'
MAKE_FUNCTION
LOAD_CONST '__CMDGroup'
L... | from azure.cli.core.aaz import *
@register_command_group(
"network lb inbound-nat-rule",
)
class __CMDGroup(AAZCommandGroup):
"""Manage inbound NAT rules of a load balancer."""
pass
__all__ = ["__CMDGroup"]
| data/azure-cli-2.57.0/azure/cli/command_modules/network/aaz/profile_2017_03_09_profile/network/lb/inbound_nat_rule/__cmd_group.py | 194 | 84 | 377,610 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME warnings
STORE_NAME warnings
LOAD_NAME warnings
LOAD_METHOD warn
LOAD_CONST 'jax.extend.mlir.dialects.mhlo is deprecated and will be removed from a future release of JAX. Use stablehlo instead.'
LOAD_NAME DeprecationWarning
CALL_METHOD
POP_TOP
LOAD_CONST 0
LOAD_CONST ('*',)
... | import warnings
warnings.warn(
"jax.extend.mlir.dialects.mhlo is deprecated and will be removed "
"from a future release of JAX. Use stablehlo instead.",
DeprecationWarning,
)
from jaxlib.mlir.dialects.mhlo import *
| data/jax-0.4.24/jax/extend/mlir/dialects/mhlo.py | 107 | 84 | 329,002 |
LOAD_CONST 1
LOAD_CONST ('ALIKED',)
IMPORT_NAME aliked
IMPORT_FROM ALIKED
STORE_NAME ALIKED
POP_TOP
LOAD_CONST 1
LOAD_CONST ('DISK',)
IMPORT_NAME disk
IMPORT_FROM DISK
STORE_NAME DISK
POP_TOP
LOAD_CONST 1
LOAD_CONST ('LightGlue',)
IMPORT_NAME lightglue
IMPORT_FROM LightGlue
STORE_NAME LightGlue
POP_TOP
LOAD_CONST 1
... | from .aliked import ALIKED # noqa
from .disk import DISK # noqa
from .lightglue import LightGlue # noqa
from .sift import SIFT # noqa
from .superpoint import SuperPoint # noqa
from .utils import match_pair # noqa
| data/modelscope-1.12.0/modelscope/models/cv/image_matching_fast/lightglue/__init__.py | 176 | 84 | 314,677 |
LOAD_CONST 1
LOAD_CONST ('BaseResource',)
IMPORT_NAME
IMPORT_FROM BaseResource
STORE_NAME BaseResource
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object Buildpack at 0x7fab700e4660, file "f.py", line 4>
LOAD_CONST 'Buildpack'
MAKE_FUNCTION
LOAD_CONST 'Buildpack'
LOAD_NAME BaseResource
CALL_FUNCTION
STORE_NAME Buildpack... | from . import BaseResource
class Buildpack(BaseResource):
_strs = ["url"]
_pks = ["url"]
def __init__(self):
super(Buildpack, self).__init__()
def __repr__(self):
return "<buildpack {}'>".format(self.url)
| data/heroku3-5.2.1/heroku3/models/buildpack.py | 314 | 84 | 187,637 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME os
STORE_NAME os
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME sys
STORE_NAME sys
LOAD_NAME __name__
LOAD_CONST '__main__'
COMPARE_OP ==
POP_JUMP_IF_FALSE
LOAD_NAME os
LOAD_ATTR environ
LOAD_METHOD setdefault
LOAD_CONST 'DJANGO_SETTINGS_MODULE'
LOAD_CONST 'dts_test_project.setting... | import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "dts_test_project.settings")
from django.core.management import execute_from_command_line
execute_from_command_line(sys.argv)
| data/django-tenants-3.6.1/dts_test_project/manage.py | 158 | 84 | 224,946 |
LOAD_CONST "Dataset definition for billsum.\n\nDEPRECATED!\nIf you want to use the Billsum dataset builder class, use:\ntfds.builder_cls('billsum')\n"
STORE_NAME __doc__
LOAD_CONST 0
LOAD_CONST ('lazy_builder_import',)
IMPORT_NAME tensorflow_datasets.core
IMPORT_FROM lazy_builder_import
STORE_NAME lazy_builder_import
... | """Dataset definition for billsum.
DEPRECATED!
If you want to use the Billsum dataset builder class, use:
tfds.builder_cls('billsum')
"""
from tensorflow_datasets.core import lazy_builder_import
Billsum = lazy_builder_import.LazyBuilderImport("billsum")
| data/tensorflow-datasets-4.9.4/tensorflow_datasets/summarization/billsum.py | 127 | 84 | 256,387 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME os
STORE_NAME os
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME sys
STORE_NAME sys
LOAD_NAME __name__
LOAD_CONST '__main__'
COMPARE_OP ==
POP_JUMP_IF_FALSE
LOAD_NAME os
LOAD_ATTR environ
LOAD_METHOD setdefault
LOAD_CONST 'DJANGO_SETTINGS_MODULE'
LOAD_CONST 'guardian.testapp.testset... | import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "guardian.testapp.testsettings")
from django.core.management import execute_from_command_line
execute_from_command_line(sys.argv)
| data/django-guardian-2.4.0/manage.py | 158 | 84 | 127,487 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME os
STORE_NAME os
LOAD_CONST 'router_basicauth'
STORE_NAME NAME
BUILD_LIST
STORE_NAME CFLAGS
BUILD_LIST
STORE_NAME LDFLAGS
BUILD_LIST
STORE_NAME LIBS
LOAD_NAME os
LOAD_METHOD uname
CALL_METHOD
LOAD_CONST 0
BINARY_SUBSCR
LOAD_CONST ('Darwin', 'OpenBSD')
COMPARE_OP not in
POP_... | import os
NAME = "router_basicauth"
CFLAGS = []
LDFLAGS = []
LIBS = []
if os.uname()[0] not in ("Darwin", "OpenBSD"):
LIBS.append("-lcrypt")
GCC_LIST = ["router_basicauth"]
| data/pyuwsgi-2.0.23.post0/plugins/router_basicauth/uwsgiplugin.py | 127 | 84 | 294,022 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME os
STORE_NAME os
LOAD_CONST 'from __future__ import unicode_literals\n'
STORE_NAME s
LOAD_NAME open
LOAD_NAME os
LOAD_ATTR path
LOAD_METHOD join
LOAD_NAME os
LOAD_ATTR path
LOAD_METHOD dirname
LOAD_NAME __file__
CALL_METHOD
LOAD_CONST 'test_dlopen.py'
CALL_METHOD
CALL_FUNCTION... | import os
s = """from __future__ import unicode_literals
"""
with open(os.path.join(os.path.dirname(__file__), "test_dlopen.py")) as f:
s += f.read()
exec(compile(s, filename="test_dlopen.py", mode="exec"))
| data/cffi-1.16.0/testing/cffi1/test_dlopen_unicode_literals.py | 158 | 84 | 54,134 |
LOAD_CONST "Dataset definition for lambada.\n\nDEPRECATED!\nIf you want to use the Lambada dataset builder class, use:\ntfds.builder_cls('lambada')\n"
STORE_NAME __doc__
LOAD_CONST 0
LOAD_CONST ('lazy_builder_import',)
IMPORT_NAME tensorflow_datasets.core
IMPORT_FROM lazy_builder_import
STORE_NAME lazy_builder_import
... | """Dataset definition for lambada.
DEPRECATED!
If you want to use the Lambada dataset builder class, use:
tfds.builder_cls('lambada')
"""
from tensorflow_datasets.core import lazy_builder_import
Lambada = lazy_builder_import.LazyBuilderImport("lambada")
| data/tfds-nightly-4.9.4.dev202402210044/tensorflow_datasets/text/lambada/lambada.py | 127 | 84 | 211,195 |
LOAD_CONST 0
LOAD_CONST ('*',)
IMPORT_NAME azure.cli.core.aaz
IMPORT_STAR
LOAD_NAME register_command_group
LOAD_CONST 'vmss'
CALL_FUNCTION
LOAD_BUILD_CLASS
LOAD_CONST <code object __CMDGroup at 0x7fab703a5420, file "f.py", line 4>
LOAD_CONST '__CMDGroup'
MAKE_FUNCTION
LOAD_CONST '__CMDGroup'
LOAD_NAME AAZCommandGrou... | from azure.cli.core.aaz import *
@register_command_group(
"vmss",
)
class __CMDGroup(AAZCommandGroup):
"""Manage groupings of virtual machines in an Azure Virtual Machine Scale Set (VMSS)."""
pass
__all__ = ["__CMDGroup"]
| data/azure-cli-2.57.0/azure/cli/command_modules/vm/aaz/profile_2018_03_01_hybrid/vmss/__cmd_group.py | 194 | 84 | 376,845 |
LOAD_CONST 0
LOAD_CONST ('Literal',)
IMPORT_NAME typing
IMPORT_FROM Literal
STORE_NAME Literal
POP_TOP
LOAD_NAME Literal
LOAD_CONST ('auto', 'none', 'pan-x', 'pan-left', 'pan-right', 'pan-y', 'pan-up', 'pan-down', 'pinch-zoom', 'manipulation')
BINARY_SUBSCR
STORE_NAME TouchAction
LOAD_CONST None
RETURN_VALUE | from typing import Literal
TouchAction = Literal[
"auto",
"none",
"pan-x",
"pan-left",
"pan-right",
"pan-y",
"pan-up",
"pan-down",
"pinch-zoom",
"manipulation",
]
| data/nicegui-1.4.15/nicegui/tailwind_types/touch_action.py | 89 | 84 | 223,332 |
LOAD_CONST 0
LOAD_CONST ('TestCase', 'min_os_level')
IMPORT_NAME PyObjCTools.TestSupport
IMPORT_FROM TestCase
STORE_NAME TestCase
IMPORT_FROM min_os_level
STORE_NAME min_os_level
POP_TOP
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME CloudKit
STORE_NAME CloudKit
LOAD_BUILD_CLASS
LOAD_CONST <code object TestCKUserIdentity a... | from PyObjCTools.TestSupport import TestCase, min_os_level
import CloudKit
class TestCKUserIdentity(TestCase):
@min_os_level("10.12")
def testMethods10_12(self):
self.assertResultIsBOOL(CloudKit.CKUserIdentity.hasiCloudAccount)
| data/pyobjc-framework-CloudKit-10.1/PyObjCTest/test_ckuseridentity.py | 289 | 84 | 397,635 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME sys
STORE_NAME sys
LOAD_NAME sys
LOAD_ATTR version_info
LOAD_CONST (3,)
COMPARE_OP <
POP_JUMP_IF_FALSE
SETUP_EXCEPT to 36
LOAD_CONST 0
LOAD_CONST ('allocate_lock',)
IMPORT_NAME thread
IMPORT_FROM allocate_lock
STORE_NAME allocate_lock
POP_TOP
POP_BLOCK
JUMP_ABSOLUTE
DUP_TOP
... | import sys
if sys.version_info < (3,):
try:
from thread import allocate_lock
except ImportError:
from dummy_thread import allocate_lock
else:
try:
from _thread import allocate_lock
except ImportError:
from _dummy_thread import allocate_lock
| data/cffi-1.16.0/src/cffi/lock.py | 258 | 84 | 54,151 |
LOAD_CONST 'Alias for apache_beam.examples.dataframe.wordcount, a word-counting workflow\nusing the DataFrame API.'
STORE_NAME __doc__
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME logging
STORE_NAME logging
LOAD_CONST 0
LOAD_CONST ('run',)
IMPORT_NAME apache_beam.examples.dataframe.wordcount
IMPORT_FROM run
STORE_NAME ru... | """Alias for apache_beam.examples.dataframe.wordcount, a word-counting workflow
using the DataFrame API."""
import logging
from apache_beam.examples.dataframe.wordcount import run
if __name__ == "__main__":
logging.getLogger().setLevel(logging.INFO)
run()
| data/apache-beam-2.54.0/apache_beam/examples/wordcount_dataframe.py | 141 | 84 | 381,812 |
LOAD_CONST 0
LOAD_CONST ('annotations',)
IMPORT_NAME __future__
IMPORT_FROM annotations
STORE_NAME annotations
POP_TOP
LOAD_CONST 1
LOAD_CONST ('BaseRequestWebsocket',)
IMPORT_NAME base
IMPORT_FROM BaseRequestWebsocket
STORE_NAME BaseRequestWebsocket
POP_TOP
LOAD_CONST 1
LOAD_CONST ('Body', 'Request')
IMPORT_NAME req... | from __future__ import annotations
from .base import BaseRequestWebsocket
from .request import Body, Request
from .response import Response
from .websocket import Websocket
__all__ = (
"BaseRequestWebsocket",
"Body",
"Request",
"Response",
"Websocket",
)
| data/quart-0.19.4/src/quart/wrappers/__init__.py | 175 | 84 | 287,363 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME os
STORE_NAME os
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME sys
STORE_NAME sys
LOAD_NAME __name__
LOAD_CONST '__main__'
COMPARE_OP ==
POP_JUMP_IF_FALSE
LOAD_NAME os
LOAD_ATTR environ
LOAD_METHOD setdefault
LOAD_CONST 'DJANGO_SETTINGS_MODULE'
LOAD_CONST 'tenant_tutorial.settings... | import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "tenant_tutorial.settings")
from django.core.management import execute_from_command_line
execute_from_command_line(sys.argv)
| data/django-tenants-3.6.1/examples/tenant_tutorial/manage.py | 158 | 84 | 224,922 |
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_CONST <code object ... | from __future__ import absolute_import, division, print_function
__metaclass__ = type
def yolo(value):
return True
class TestModule(object):
"""Ansible core jinja2 tests"""
def tests(self):
return {
"yolo": yolo,
}
| data/ansible-core-2.16.3/test/integration/targets/ansible-doc/collections/ansible_collections/testns/testcol/plugins/test/test_test.py | 289 | 84 | 437,570 |
LOAD_CONST 0
LOAD_CONST ('is_module_satisfies',)
IMPORT_NAME PyInstaller.utils.hooks
IMPORT_FROM is_module_satisfies
STORE_NAME is_module_satisfies
POP_TOP
LOAD_NAME is_module_satisfies
LOAD_CONST 'scikit-learn < 0.22'
CALL_FUNCTION
POP_JUMP_IF_FALSE
LOAD_CONST 'sklearn.utils.lgamma'
LOAD_CONST 'sklearn.utils.weight_... | from PyInstaller.utils.hooks import is_module_satisfies
if is_module_satisfies("scikit-learn < 0.22"):
hiddenimports = ["sklearn.utils.lgamma", "sklearn.utils.weight_vector"]
else:
hiddenimports = ["sklearn.utils._weight_vector"]
| data/pyinstaller-hooks-contrib-2024.1/src/_pyinstaller_hooks_contrib/hooks/stdhooks/hook-sklearn.metrics.cluster.py | 132 | 84 | 282,264 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME skhep_testdata
STORE_NAME skhep_testdata
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME uproot
STORE_NAME uproot
LOAD_CONST <code object test at 0x7fab41503810, file "f.py", line 5>
LOAD_CONST 'test'
MAKE_FUNCTION
STORE_NAME test
LOAD_CONST None
RETURN_VALUE
LOAD_GLOBAL uproot
LOAD... | import skhep_testdata
import uproot
def test():
with uproot.open(skhep_testdata.data_path("uproot-issue-1043.root")) as file:
tree = file["FooBar"]
assert tree["Foo"].branches[0].typename == "std::string"
| data/uproot-5.2.2/tests/test_1043_const_std_string.py | 211 | 84 | 372,147 |
LOAD_CONST 1
LOAD_CONST ('LuigiConfigParser',)
IMPORT_NAME cfg_parser
IMPORT_FROM LuigiConfigParser
STORE_NAME LuigiConfigParser
POP_TOP
LOAD_CONST 1
LOAD_CONST ('get_config', 'add_config_path')
IMPORT_NAME core
IMPORT_FROM get_config
STORE_NAME get_config
IMPORT_FROM add_config_path
STORE_NAME add_config_path
POP_TOP... | from .cfg_parser import LuigiConfigParser
from .core import get_config, add_config_path
from .toml_parser import LuigiTomlParser
__all__ = [
"add_config_path",
"get_config",
"LuigiConfigParser",
"LuigiTomlParser",
]
| data/luigi-3.5.0/luigi/configuration/__init__.py | 171 | 84 | 68,949 |
LOAD_CONST 'Contains user defined types for more readable type hinting.'
STORE_NAME __doc__
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME typing
STORE_NAME typing
LOAD_NAME typing
LOAD_ATTR Union
LOAD_NAME int
LOAD_NAME float
BUILD_TUPLE
BINARY_SUBSCR
STORE_NAME RawValue
LOAD_NAME typing
LOAD_ATTR Any
STORE_NAME Physical... | """Contains user defined types for more readable type hinting."""
import typing
RawValue = typing.Union[int, float]
PhysicalValue = typing.Any # more than typing.Union[int, decimal.Decimal, float]
OptionalRawValue = typing.Optional[RawValue]
OptionalPhysicalValue = typing.Optional[PhysicalValue]
| data/canmatrix-1.0/src/canmatrix/types.py | 108 | 84 | 347,160 |
LOAD_CONST 0
LOAD_CONST ('*',)
IMPORT_NAME azure.cli.core.aaz
IMPORT_STAR
LOAD_NAME register_command_group
LOAD_CONST 'vmss'
CALL_FUNCTION
LOAD_BUILD_CLASS
LOAD_CONST <code object __CMDGroup at 0x7faa5dedbd20, file "f.py", line 4>
LOAD_CONST '__CMDGroup'
MAKE_FUNCTION
LOAD_CONST '__CMDGroup'
LOAD_NAME AAZCommandGrou... | from azure.cli.core.aaz import *
@register_command_group(
"vmss",
)
class __CMDGroup(AAZCommandGroup):
"""Manage groupings of virtual machines in an Azure Virtual Machine Scale Set (VMSS)."""
pass
__all__ = ["__CMDGroup"]
| data/azure-cli-2.57.0/azure/cli/command_modules/vm/aaz/profile_2020_09_01_hybrid/vmss/__cmd_group.py | 191 | 84 | 376,722 |
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_CONST 0
LOAD_CONST ... | from __future__ import absolute_import, division, print_function
__metaclass__ = type
from ansible_collections.community.crypto.plugins.module_utils.openssh.utils import ( # noqa: F401, pylint: disable=unused-import
parse_openssh_version,
)
| data/ansible-9.2.0/ansible_collections/community/crypto/plugins/module_utils/crypto/openssh.py | 127 | 84 | 273,996 |
LOAD_CONST 'CMP implements a full processing pipeline for creating connectomes with dMRI data.'
STORE_NAME __doc__
LOAD_CONST 1
LOAD_CONST ('ROIGen', 'CreateMatrix', 'CreateNodes')
IMPORT_NAME cmtk
IMPORT_FROM ROIGen
STORE_NAME ROIGen
IMPORT_FROM CreateMatrix
STORE_NAME CreateMatrix
IMPORT_FROM CreateNodes
STORE_NAME ... | """CMP implements a full processing pipeline for creating connectomes with dMRI data."""
from .cmtk import ROIGen, CreateMatrix, CreateNodes
from .nx import NetworkXMetrics, AverageNetworks
from .parcellation import Parcellate
from .convert import CFFConverter, MergeCNetworks
from .nbs import NetworkBasedStatistic
| data/nipype-1.8.6/nipype/interfaces/cmtk/__init__.py | 242 | 84 | 138,689 |
LOAD_CONST 'Podman client module.'
STORE_NAME __doc__
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME sys
STORE_NAME sys
LOAD_NAME sys
LOAD_ATTR version_info
LOAD_CONST (3, 6)
COMPARE_OP >=
POP_JUMP_IF_TRUE
LOAD_GLOBAL AssertionError
LOAD_CONST 'Python 3.6 or greater is required.'
CALL_FUNCTION
RAISE_VARARGS
LOAD_CONST 0
L... | """Podman client module."""
import sys
assert sys.version_info >= (3, 6), "Python 3.6 or greater is required."
from podman.client import PodmanClient, from_env
from podman.version import __version__
__all__ = ["PodmanClient", "__version__", "from_env"]
| data/podman-4.9.0/podman/__init__.py | 181 | 84 | 190,377 |
LOAD_CONST 0
LOAD_CONST ('InvalidActionEnvDiscrete', 'InvalidActionEnvMultiBinary', 'InvalidActionEnvMultiDiscrete')
IMPORT_NAME sb3_contrib.common.envs.invalid_actions_env
IMPORT_FROM InvalidActionEnvDiscrete
STORE_NAME InvalidActionEnvDiscrete
IMPORT_FROM InvalidActionEnvMultiBinary
STORE_NAME InvalidActionEnvMultiBi... | from sb3_contrib.common.envs.invalid_actions_env import (
InvalidActionEnvDiscrete,
InvalidActionEnvMultiBinary,
InvalidActionEnvMultiDiscrete,
)
__all__ = [
"InvalidActionEnvDiscrete",
"InvalidActionEnvMultiBinary",
"InvalidActionEnvMultiDiscrete",
]
| data/sb3_contrib-2.2.1/sb3_contrib/common/envs/__init__.py | 134 | 84 | 193,210 |
LOAD_CONST 0
LOAD_CONST ('print_function', 'division', 'absolute_import', 'annotations')
IMPORT_NAME __future__
IMPORT_FROM print_function
STORE_NAME print_function
IMPORT_FROM division
STORE_NAME division
IMPORT_FROM absolute_import
STORE_NAME absolute_import
IMPORT_FROM annotations
STORE_NAME annotations
POP_TOP
LOA... | from __future__ import print_function, division, absolute_import, annotations
from ..message import BackendMessage
class CopyDoneResponse(BackendMessage):
message_id = b"c"
def __init__(self, data):
BackendMessage.__init__(self)
BackendMessage.register(CopyDoneResponse)
| data/vertica-python-1.3.8/vertica_python/vertica/messages/backend_messages/copy_done_response.py | 297 | 84 | 287,018 |
LOAD_CONST 0
LOAD_CONST ('absolute_import',)
IMPORT_NAME __future__
IMPORT_FROM absolute_import
STORE_NAME absolute_import
POP_TOP
LOAD_CONST 1
LOAD_CONST ('ThreatintelClient',)
IMPORT_NAME threatintel_client
IMPORT_FROM ThreatintelClient
STORE_NAME ThreatintelClient
POP_TOP
LOAD_CONST 1
LOAD_CONST ('ThreatintelClien... | from __future__ import absolute_import
from .threatintel_client import ThreatintelClient
from .threatintel_client_composite_operations import (
ThreatintelClientCompositeOperations,
)
from . import models
__all__ = ["ThreatintelClient", "ThreatintelClientCompositeOperations", "models"]
| data/oci-2.122.0/src/oci/threat_intelligence/__init__.py | 175 | 84 | 410,907 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME abc
STORE_NAME abc
LOAD_BUILD_CLASS
LOAD_CONST <code object Action at 0x7fab41751ae0, file "f.py", line 4>
LOAD_CONST 'Action'
MAKE_FUNCTION
LOAD_CONST 'Action'
LOAD_NAME abc
LOAD_ATTR ABCMeta
LOAD_CONST ('metaclass',)
CALL_FUNCTION
STORE_NAME Action
LOAD_CONST None
RETURN_VALU... | import abc
class Action(metaclass=abc.ABCMeta):
def __init__(self) -> None:
pass
@abc.abstractmethod
def print_self(self) -> None:
pass
@abc.abstractmethod
def do(self) -> None:
pass
| data/tbump-6.11.0/tbump/action.py | 333 | 84 | 343,110 |
LOAD_CONST '\nWorkflow mgmgt + task scheduling + dependency resolution.\n'
STORE_NAME __doc__
LOAD_CONST 'The Luigi Authors'
STORE_NAME __author__
LOAD_CONST 'https://github.com/spotify/luigi'
STORE_NAME __contact__
LOAD_CONST 'Apache License 2.0'
STORE_NAME __license__
LOAD_CONST '3.5.0'
STORE_NAME __version__
LO... | """
Workflow mgmgt + task scheduling + dependency resolution.
"""
__author__ = "The Luigi Authors"
__contact__ = "https://github.com/spotify/luigi"
__license__ = "Apache License 2.0"
__version__ = "3.5.0"
__status__ = "Production"
| data/luigi-3.5.0/luigi/__meta__.py | 108 | 84 | 68,937 |
LOAD_CONST 0
LOAD_CONST ('IntEnum', 'unique')
IMPORT_NAME enum
IMPORT_FROM IntEnum
STORE_NAME IntEnum
IMPORT_FROM unique
STORE_NAME unique
POP_TOP
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME logging
STORE_NAME logging
LOAD_NAME unique
LOAD_BUILD_CLASS
LOAD_CONST <code object LOG_LEVEL at 0x7fab80297c90, file "f.py", lin... | from enum import IntEnum, unique
import logging
@unique
class LOG_LEVEL(IntEnum):
ERROR = logging.ERROR
WARNING = logging.WARNING
INFO = logging.INFO
DEBUG = logging.DEBUG
TRAFFIC = 5 # Used for logging YubiKey traffic
NOTSET = logging.NOTSET
| data/yubikey_manager-5.3.0/yubikit/logging.py | 222 | 84 | 63,480 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME six
STORE_NAME six
LOAD_CONST <code object application at 0x7fab7006df60, file "f.py", line 4>
LOAD_CONST 'application'
MAKE_FUNCTION
STORE_NAME application
LOAD_CONST None
RETURN_VALUE
LOAD_FAST start_response
LOAD_CONST '200 OK'
LOAD_CONST ('Content-type', 'text/html')
BUILD... | import six
def application(environ, start_response):
start_response("200 OK", [("Content-type", "text/html")])
body = "user: %s" % environ["app.user"]
if six.PY3:
body = body.encode("ascii")
return [body]
| data/Paste-3.7.1/tests/urlparser_data/hook/app.py | 157 | 84 | 150,011 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.