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 'Generated API for package: tensorflow_examples.lite.model_maker.third_party.efficientdet.dataset.create_coco_tfrecord.'
STORE_NAME __doc__
LOAD_CONST 0
LOAD_CONST ('*',)
IMPORT_NAME tensorflow_examples.lite.model_maker.third_party.efficientdet.dataset.create_coco_tfrecord
IMPORT_STAR
LOAD_CONST None
RETURN... | """Generated API for package: tensorflow_examples.lite.model_maker.third_party.efficientdet.dataset.create_coco_tfrecord."""
from tensorflow_examples.lite.model_maker.third_party.efficientdet.dataset.create_coco_tfrecord import *
| data/tflite-model-maker-nightly-0.4.4.dev202402210609/src/tflite_model_maker/python/third_party/efficientdet/dataset/create_coco_tfrecord.py | 90 | 70 | 389,320 |
LOAD_CONST 0
LOAD_CONST ('ABC', 'abstractmethod')
IMPORT_NAME abc
IMPORT_FROM ABC
STORE_NAME ABC
IMPORT_FROM abstractmethod
STORE_NAME abstractmethod
POP_TOP
LOAD_CONST 0
LOAD_CONST ('Any',)
IMPORT_NAME typing
IMPORT_FROM Any
STORE_NAME Any
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object BaseOperation at 0x7fab80234... | from abc import ABC, abstractmethod
from typing import Any
class BaseOperation(ABC):
important: bool = False
@abstractmethod
def resolve(self, value: Any, initial_value: Any) -> Any: # pragma: no cover
pass
| data/magic_filter-1.0.12/magic_filter/operations/base.py | 257 | 70 | 156,494 |
LOAD_CONST 3
LOAD_CONST ('_utilities',)
IMPORT_NAME
IMPORT_FROM _utilities
STORE_NAME _utilities
POP_TOP
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME typing
STORE_NAME typing
LOAD_CONST 1
LOAD_CONST ('*',)
IMPORT_NAME Ingress
IMPORT_STAR
LOAD_CONST 1
LOAD_CONST ('*',)
IMPORT_NAME IngressClass
IMPORT_STAR
LOAD_CONST 1
L... | from ... import _utilities
import typing
from .Ingress import *
from .IngressClass import *
from .IngressClassList import *
from .IngressClassPatch import *
from .IngressList import *
from .IngressPatch import *
from ._inputs import *
from . import outputs
| data/pulumi_kubernetes-4.7.1/pulumi_kubernetes/networking/v1beta1/__init__.py | 196 | 70 | 124,025 |
LOAD_CONST 0
LOAD_CONST ('BazelToolchain',)
IMPORT_NAME conan.tools.google.toolchain
IMPORT_FROM BazelToolchain
STORE_NAME BazelToolchain
POP_TOP
LOAD_CONST 0
LOAD_CONST ('BazelDeps',)
IMPORT_NAME conan.tools.google.bazeldeps
IMPORT_FROM BazelDeps
STORE_NAME BazelDeps
POP_TOP
LOAD_CONST 0
LOAD_CONST ('Bazel',)
IMPORT... | from conan.tools.google.toolchain import BazelToolchain
from conan.tools.google.bazeldeps import BazelDeps
from conan.tools.google.bazel import Bazel
from conan.tools.google.layout import bazel_layout
| data/conan-2.1.0/conan/tools/google/__init__.py | 169 | 70 | 242,223 |
LOAD_CONST 0
LOAD_CONST ('Enum',)
IMPORT_NAME enum
IMPORT_FROM Enum
STORE_NAME Enum
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object RecordingStatus at 0x7fab820f4540, file "f.py", line 4>
LOAD_CONST 'RecordingStatus'
MAKE_FUNCTION
LOAD_CONST 'RecordingStatus'
LOAD_NAME str
LOAD_NAME Enum
CALL_FUNCTION
STORE_NAME Reco... | from enum import Enum
class RecordingStatus(str, Enum):
Unknown = ("unknown",)
NotRecording = ("notRecording",)
Recording = ("recording",)
Failed = ("failed",)
UnknownFutureValue = ("unknownFutureValue",)
| data/msgraph-sdk-1.1.0/msgraph/generated/models/recording_status.py | 184 | 70 | 259,681 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME unittest
STORE_NAME unittest
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME hid
STORE_NAME hid
LOAD_BUILD_CLASS
LOAD_CONST <code object HIDTests at 0x7faa75f5e6f0, file "f.py", line 6>
LOAD_CONST 'HIDTests'
MAKE_FUNCTION
LOAD_CONST 'HIDTests'
LOAD_NAME unittest
LOAD_ATTR TestCase
CA... | import unittest
import hid
class HIDTests(unittest.TestCase):
def test_enumerate(self):
self.assertTrue(len(hid.enumerate()) >= 0)
if __name__ == "__main__":
unittest.main()
| data/hidapi-0.14.0/tests.py | 255 | 70 | 251,574 |
LOAD_CONST 'Helper functions for SmartTub integration.'
STORE_NAME __doc__
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME smarttub
STORE_NAME smarttub
LOAD_NAME smarttub
LOAD_ATTR Spa
LOAD_NAME str
LOAD_CONST ('spa', 'return')
BUILD_CONST_KEY_MAP
LOAD_CONST <code object get_spa_name at 0x7fab82400ed0, file "f.py", line 6>
... | """Helper functions for SmartTub integration."""
import smarttub
def get_spa_name(spa: smarttub.Spa) -> str:
"""Return the name of the specified spa."""
return f"{spa.brand} {spa.model}"
| data/homeassistant-2024.2.2/homeassistant/components/smarttub/helpers.py | 144 | 70 | 295,164 |
LOAD_CONST '\nURL definitions for integrated_channels API endpoint.\n'
STORE_NAME __doc__
LOAD_CONST 0
LOAD_CONST ('include', 'path')
IMPORT_NAME django.urls
IMPORT_FROM include
STORE_NAME include
IMPORT_FROM path
STORE_NAME path
POP_TOP
LOAD_CONST 'api'
STORE_NAME app_name
LOAD_NAME path
LOAD_CONST 'v1/'
LOAD_NAME ... | """
URL definitions for integrated_channels API endpoint.
"""
from django.urls import include, path
app_name = "api"
urlpatterns = [path("v1/", include("integrated_channels.api.v1.urls"), name="api")]
| data/edx-enterprise-4.12.1/integrated_channels/api/urls.py | 124 | 70 | 91,754 |
LOAD_CONST 0
LOAD_CONST ('AppConfig',)
IMPORT_NAME django.apps
IMPORT_FROM AppConfig
STORE_NAME AppConfig
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object CheckDefaultPKConfig at 0x7f8e2fc18ed0, file "f.py", line 4>
LOAD_CONST 'CheckDefaultPKConfig'
MAKE_FUNCTION
LOAD_CONST 'CheckDefaultPKConfig'
LOAD_NAME AppConfig
C... | from django.apps import AppConfig
class CheckDefaultPKConfig(AppConfig):
name = "check_framework"
class CheckPKConfig(AppConfig):
name = "check_framework"
default_auto_field = "django.db.models.BigAutoField"
| data/Django-5.0.2/tests/check_framework/apps.py | 265 | 70 | 325,917 |
LOAD_CONST <code object who at 0x7fab540c59c0, file "f.py", line 1>
LOAD_CONST 'who'
MAKE_FUNCTION
STORE_NAME who
LOAD_CONST <code object task_x at 0x7fab540c5270, file "f.py", line 6>
LOAD_CONST 'task_x'
MAKE_FUNCTION
STORE_NAME task_x
LOAD_CONST None
RETURN_VALUE
LOAD_GLOBAL print
LOAD_CONST 'my name is'
LOAD_FAST ... | def who(task):
print("my name is", task.name)
print(task.targets)
def task_x():
return {
"actions": [who],
"targets": ["asdf"],
"verbosity": 2,
}
| data/doit-0.36.0/doc/samples/meta.py | 173 | 70 | 109,316 |
LOAD_CONST '2.0'
STORE_NAME __version__
LOAD_CONST 1
LOAD_CONST ('output',)
IMPORT_NAME application
IMPORT_FROM output
STORE_NAME output
POP_TOP
LOAD_CONST 1
LOAD_CONST ('fields',)
IMPORT_NAME domain
IMPORT_FROM fields
STORE_NAME fields
POP_TOP
LOAD_CONST 1
LOAD_CONST ('Contract', 'ContractCheck')
IMPORT_NAME domain... | __version__ = "2.0"
from .application import output # noqa
from .domain import fields # noqa
from .domain.contract import Contract, ContractCheck # noqa
__all__ = ["output", "fields", "Contract", "ContractCheck"]
| data/import-linter-2.0/src/importlinter/__init__.py | 126 | 70 | 136,468 |
LOAD_CONST 1
LOAD_CONST ('analytics',)
IMPORT_NAME
IMPORT_FROM analytics
STORE_NAME analytics
POP_TOP
LOAD_CONST 1
LOAD_CONST ('report',)
IMPORT_NAME
IMPORT_FROM report
STORE_NAME report
POP_TOP
LOAD_CONST 1
LOAD_CONST ('audit_baseline',)
IMPORT_NAME audit
IMPORT_FROM audit_baseline
STORE_NAME audit_baseline
POP_TOP
... | from . import analytics # noqa: F401
from . import report # noqa: F401
from .audit import audit_baseline # noqa: F401
from .compare import compare_baselines # noqa: F401
| data/bc-detect-secrets-1.5.4/detect_secrets/audit/__init__.py | 110 | 70 | 81,821 |
LOAD_CONST 0
LOAD_CONST ('AtcException',)
IMPORT_NAME atc.exceptions
IMPORT_FROM AtcException
STORE_NAME AtcException
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object AtcEhException at 0x7fab81f0b0c0, file "f.py", line 4>
LOAD_CONST 'AtcEhException'
MAKE_FUNCTION
LOAD_CONST 'AtcEhException'
LOAD_NAME AtcException
CALL... | from atc.exceptions import AtcException
class AtcEhException(AtcException):
pass
class AtcEhInitException(AtcEhException):
pass
class AtcEhLogicException(AtcEhException):
pass
| data/atc-dataplatform-1.1.69/src/atc/eh/eh_exceptions.py | 371 | 70 | 193,684 |
LOAD_CONST 0
LOAD_CONST ('backend_to_check', 'gnome', 'gnome_version', 'kde')
IMPORT_NAME bt
IMPORT_FROM backend_to_check
STORE_NAME backend_to_check
IMPORT_FROM gnome
STORE_NAME gnome
IMPORT_FROM gnome_version
STORE_NAME gnome_version
IMPORT_FROM kde
STORE_NAME kde
POP_TOP
LOAD_NAME gnome
CALL_FUNCTION
POP_JUMP_IF_FA... | from bt import backend_to_check, gnome, gnome_version, kde
if gnome():
if gnome_version()[0] < 41:
def test_gnome_dbus():
assert not kde()
backend_to_check("gnome_dbus")
| data/pyscreenshot-3.1/tests/test_gnome_dbus.py | 205 | 70 | 12,421 |
LOAD_CONST <code object assign_variable at 0x7f8e447b48a0, file "f.py", line 1>
LOAD_CONST 'assign_variable'
MAKE_FUNCTION
STORE_NAME assign_variable
LOAD_CONST None
RETURN_VALUE
LOAD_FAST robot_instance
LOAD_ATTR run_keyword
LOAD_FAST args
CALL_FUNCTION
STORE_FAST variable_value
LOAD_FAST robot_instance
LOAD_ATTR _v... | def assign_variable(robot_instance, variable_name, args):
"""Assign a robotframework variable."""
variable_value = robot_instance.run_keyword(*args)
robot_instance._variables.__setitem__(variable_name, variable_value)
return variable_value
| data/robotframework-debuglibrary-2.5.0/DebugLibrary/robotvar.py | 114 | 70 | 422,881 |
LOAD_CONST ('select * from table',)
LOAD_CONST ('SQL query', 'option')
LOAD_CONST ('command',)
BUILD_CONST_KEY_MAP
LOAD_CONST <code object main at 0x7fab82360420, file "f.py", line 1>
LOAD_CONST 'main'
MAKE_FUNCTION
STORE_NAME main
LOAD_NAME __name__
LOAD_CONST '__main__'
COMPARE_OP ==
POP_JUMP_IF_FALSE
LOAD_CONST 0
... | def main(dsn, command: ("SQL query", "option") = "select * from table"):
print("executing %r on %s" % (command, dsn))
if __name__ == "__main__":
import plac
plac.call(main)
| data/plac-1.4.2/doc/example6.py | 154 | 70 | 112,219 |
LOAD_CONST <code object task_modify at 0x7fab540c58a0, file "f.py", line 1>
LOAD_CONST 'task_modify'
MAKE_FUNCTION
STORE_NAME task_modify
LOAD_CONST <code object task_create at 0x7fab540c5b70, file "f.py", line 8>
LOAD_CONST 'task_create'
MAKE_FUNCTION
STORE_NAME task_create
LOAD_CONST None
RETURN_VALUE
LOAD_CONST 'e... | def task_modify():
return {
"actions": ["echo bar > foo.txt"],
"file_dep": ["foo.txt"],
}
def task_create():
return {"actions": ["touch foo.txt"], "targets": ["foo.txt"]}
| data/doit-0.36.0/doc/samples/taskorder.py | 175 | 70 | 109,323 |
LOAD_CONST 0
LOAD_CONST ('Dict', 'Optional', 'Union')
IMPORT_NAME typing
IMPORT_FROM Dict
STORE_NAME Dict
IMPORT_FROM Optional
STORE_NAME Optional
IMPORT_FROM Union
STORE_NAME Union
POP_TOP
LOAD_CONST 0
LOAD_CONST ('Column',)
IMPORT_NAME pyspark.sql.column
IMPORT_FROM Column
STORE_NAME Column
POP_TOP
LOAD_NAME Union
... | from typing import Dict, Optional, Union
from pyspark.sql.column import Column
ExpressionOrColumn = Union[str, Column]
OptionalExpressionOrColumn = Optional[ExpressionOrColumn]
ColumnMapping = Dict[str, ExpressionOrColumn]
OptionalColumnMapping = Optional[ColumnMapping]
| data/delta-spark-3.1.0/python/delta/_typing.py | 150 | 70 | 193,935 |
LOAD_CONST 'Generated API for package: tensorflow_examples.lite.model_maker.third_party.efficientdet.object_detection.target_assigner.'
STORE_NAME __doc__
LOAD_CONST 0
LOAD_CONST ('*',)
IMPORT_NAME tensorflow_examples.lite.model_maker.third_party.efficientdet.object_detection.target_assigner
IMPORT_STAR
LOAD_CONST Non... | """Generated API for package: tensorflow_examples.lite.model_maker.third_party.efficientdet.object_detection.target_assigner."""
from tensorflow_examples.lite.model_maker.third_party.efficientdet.object_detection.target_assigner import *
| data/tflite-model-maker-nightly-0.4.4.dev202402210609/src/tflite_model_maker/python/third_party/efficientdet/object_detection/target_assigner.py | 90 | 70 | 389,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 MetalPerformanceShadersGraph
STORE_NAME MetalPerformanceShadersGraph
LOAD_BUILD_CLASS
LOAD_CONST <code object TestCallableMetadata at 0x7fab82360930, file... | from PyObjCTools.TestSupport import TestCase
import MetalPerformanceShadersGraph
class TestCallableMetadata(TestCase):
def test_callable_metadata_is_sane(self):
self.assertCallableMetadataIsSane(MetalPerformanceShadersGraph)
| data/pyobjc-framework-MetalPerformanceShadersGraph-10.1/PyObjCTest/test_metalperformanceshadersgraph.py | 264 | 70 | 111,851 |
LOAD_CONST 0
LOAD_CONST ('intersection_search_space',)
IMPORT_NAME optuna.samplers._search_space.intersection
IMPORT_FROM intersection_search_space
STORE_NAME intersection_search_space
POP_TOP
LOAD_CONST 0
LOAD_CONST ('IntersectionSearchSpace',)
IMPORT_NAME optuna.samplers._search_space.intersection
IMPORT_FROM Inters... | from optuna.samplers._search_space.intersection import intersection_search_space
from optuna.samplers._search_space.intersection import IntersectionSearchSpace
__all__ = [
"IntersectionSearchSpace",
"intersection_search_space",
]
| data/optuna-3.5.0/optuna/samplers/_search_space/__init__.py | 121 | 70 | 388,175 |
LOAD_CONST 1
LOAD_CONST ('AppConnector', 'AppConnectorEventData', 'ResourceInfo', 'HealthStatus')
IMPORT_NAME data
IMPORT_FROM AppConnector
STORE_NAME AppConnector
IMPORT_FROM AppConnectorEventData
STORE_NAME AppConnectorEventData
IMPORT_FROM ResourceInfo
STORE_NAME ResourceInfo
IMPORT_FROM HealthStatus
STORE_NAME Heal... | from .data import (
AppConnector,
AppConnectorEventData,
ResourceInfo,
HealthStatus,
)
__all__ = (
"AppConnector",
"AppConnectorEventData",
"ResourceInfo",
"HealthStatus",
)
| data/google-events-0.11.0/src/google/events/cloud/beyondcorp/appconnectors_v1/types/__init__.py | 104 | 70 | 13,261 |
LOAD_CONST 'InternalError'
STORE_NAME INTERNALERROR
LOAD_CONST 'InvalidParameter'
STORE_NAME INVALIDPARAMETER
LOAD_CONST 'InvalidParameterValue'
STORE_NAME INVALIDPARAMETERVALUE
LOAD_CONST 'OperationDenied'
STORE_NAME OPERATIONDENIED
LOAD_CONST 'UnauthorizedOperation'
STORE_NAME UNAUTHORIZEDOPERATION
LOAD_CONST Non... | INTERNALERROR = "InternalError"
INVALIDPARAMETER = "InvalidParameter"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
OPERATIONDENIED = "OperationDenied"
UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
| data/tencentcloud-sdk-python-3.0.1092/tencentcloud/irp/v20220324/errorcodes.py | 84 | 70 | 119,065 |
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 SecurableObjectExtensions at 0x7fab541051e0, file "f.py", line 4>
LOAD_CONST 'SecurableObjectExtensions'
MAKE_FUNCTION
LOAD_CONST 'SecurableObjectExtensions'... | from office365.sharepoint.entity import Entity
class SecurableObjectExtensions(Entity):
"""Contains extension methods of securable object."""
@property
def entity_type_name(self):
return "SP.Sharing.SecurableObjectExtensions"
| data/Office365-REST-Python-Client-2.5.5/office365/sharepoint/sharing/securable_object_extensions.py | 240 | 70 | 189,241 |
LOAD_CONST 0
LOAD_CONST ('migrations',)
IMPORT_NAME django.db
IMPORT_FROM migrations
STORE_NAME migrations
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object Migration at 0x7f8e2fec3300, file "f.py", line 4>
LOAD_CONST 'Migration'
MAKE_FUNCTION
LOAD_CONST 'Migration'
LOAD_NAME migrations
LOAD_ATTR Migration
CALL_FUNCTIO... | from django.db import migrations
class Migration(migrations.Migration):
replaces = [
("app2", "1_auto"),
("app2", "2_auto"),
]
dependencies = [("app1", "1_auto")]
| data/Django-5.0.2/tests/migrations/test_migrations_squashed_ref_squashed/app2/1_squashed_2.py | 172 | 70 | 325,824 |
LOAD_CONST 0
LOAD_CONST ('Enum',)
IMPORT_NAME enum
IMPORT_FROM Enum
STORE_NAME Enum
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object PlannerPreviewType at 0x7fab4298e8a0, file "f.py", line 4>
LOAD_CONST 'PlannerPreviewType'
MAKE_FUNCTION
LOAD_CONST 'PlannerPreviewType'
LOAD_NAME str
LOAD_NAME Enum
CALL_FUNCTION
STORE_... | from enum import Enum
class PlannerPreviewType(str, Enum):
Automatic = ("automatic",)
NoPreview = ("noPreview",)
Checklist = ("checklist",)
Description = ("description",)
Reference = ("reference",)
| data/msgraph-sdk-1.1.0/msgraph/generated/models/planner_preview_type.py | 192 | 70 | 260,376 |
LOAD_CONST 0
LOAD_CONST ('*',)
IMPORT_NAME azure.cli.core.aaz
IMPORT_STAR
LOAD_NAME register_command_group
LOAD_CONST 'image'
CALL_FUNCTION
LOAD_BUILD_CLASS
LOAD_CONST <code object __CMDGroup at 0x7fab82132390, file "f.py", line 4>
LOAD_CONST '__CMDGroup'
MAKE_FUNCTION
LOAD_CONST '__CMDGroup'
LOAD_NAME AAZCommandGro... | from azure.cli.core.aaz import *
@register_command_group(
"image",
)
class __CMDGroup(AAZCommandGroup):
"""Manage custom virtual machine images."""
pass
__all__ = ["__CMDGroup"]
| data/azure-cli-2.57.0/azure/cli/command_modules/vm/aaz/profile_2019_03_01_hybrid/image/__cmd_group.py | 180 | 70 | 376,414 |
LOAD_CONST 0
LOAD_CONST ('Enum',)
IMPORT_NAME enum
IMPORT_FROM Enum
STORE_NAME Enum
POP_TOP
LOAD_CONST 0
LOAD_CONST ('CaseInsensitiveEnumMeta',)
IMPORT_NAME azure.core
IMPORT_FROM CaseInsensitiveEnumMeta
STORE_NAME CaseInsensitiveEnumMeta
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object AmqpMessageBodyType at 0x7faa5... | from enum import Enum
from azure.core import CaseInsensitiveEnumMeta
class AmqpMessageBodyType(str, Enum, metaclass=CaseInsensitiveEnumMeta):
DATA = "data"
SEQUENCE = "sequence"
VALUE = "value"
| data/azure-eventhub-5.11.6/azure/eventhub/amqp/_constants.py | 222 | 70 | 248,554 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME warnings
STORE_NAME warnings
LOAD_CONST 0
LOAD_CONST ('*',)
IMPORT_NAME smbprotocol.file_info
IMPORT_STAR
LOAD_NAME warnings
LOAD_METHOD warn
LOAD_CONST 'The smbprotocol.query_info file has been renamed to smbprotocol.file_info and will be removed in the next major release.'
... | import warnings
from smbprotocol.file_info import *
warnings.warn(
"The smbprotocol.query_info file has been renamed to smbprotocol.file_info and will be removed in the "
"next major release.",
DeprecationWarning,
)
| data/smbprotocol-1.12.0/src/smbprotocol/query_info.py | 93 | 70 | 446,871 |
LOAD_CONST 0
LOAD_CONST ('Flask',)
IMPORT_NAME flask
IMPORT_FROM Flask
STORE_NAME Flask
POP_TOP
LOAD_CONST 0
LOAD_CONST ('RedisHuey',)
IMPORT_NAME huey
IMPORT_FROM RedisHuey
STORE_NAME RedisHuey
POP_TOP
LOAD_CONST True
STORE_NAME DEBUG
LOAD_CONST 'shhh, secret'
STORE_NAME SECRET_KEY
LOAD_NAME Flask
LOAD_NAME __name... | from flask import Flask
from huey import RedisHuey
DEBUG = True
SECRET_KEY = "shhh, secret"
app = Flask(__name__)
app.config.from_object(__name__)
huey = RedisHuey()
| data/huey-2.5.0/examples/flask_ex/app.py | 140 | 70 | 379,512 |
LOAD_CONST 'Generated API for package: tensorflow_examples.lite.model_maker.third_party.efficientdet.object_detection.box_coder.'
STORE_NAME __doc__
LOAD_CONST 0
LOAD_CONST ('*',)
IMPORT_NAME tensorflow_examples.lite.model_maker.third_party.efficientdet.object_detection.box_coder
IMPORT_STAR
LOAD_CONST None
RETURN_VAL... | """Generated API for package: tensorflow_examples.lite.model_maker.third_party.efficientdet.object_detection.box_coder."""
from tensorflow_examples.lite.model_maker.third_party.efficientdet.object_detection.box_coder import *
| data/tflite-model-maker-nightly-0.4.4.dev202402210609/src/tflite_model_maker/python/third_party/efficientdet/object_detection/box_coder.py | 90 | 70 | 389,327 |
LOAD_CONST '\nSmoke Test the check_build module\n'
STORE_NAME __doc__
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME pytest
STORE_NAME pytest
LOAD_CONST 0
LOAD_CONST ('raise_build_error',)
IMPORT_NAME sklearn.__check_build
IMPORT_FROM raise_build_error
STORE_NAME raise_build_error
POP_TOP
LOAD_CONST <code object test_rais... | """
Smoke Test the check_build module
"""
import pytest
from sklearn.__check_build import raise_build_error
def test_raise_build_error():
with pytest.raises(ImportError):
raise_build_error(ImportError())
| data/scikit-learn-1.4.1.post1/sklearn/tests/test_check_build.py | 198 | 70 | 107,588 |
LOAD_CONST 1
LOAD_CONST ('init', 'deinit', 'reinit', 'colorama_text', 'just_fix_windows_console')
IMPORT_NAME initialise
IMPORT_FROM init
STORE_NAME init
IMPORT_FROM deinit
STORE_NAME deinit
IMPORT_FROM reinit
STORE_NAME reinit
IMPORT_FROM colorama_text
STORE_NAME colorama_text
IMPORT_FROM just_fix_windows_console
STOR... | from .initialise import init, deinit, reinit, colorama_text, just_fix_windows_console
from .ansi import Fore, Back, Style, Cursor
from .ansitowin32 import AnsiToWin32
__version__ = "0.4.6"
| data/pipenv-2023.12.1/pipenv/vendor/colorama/__init__.py | 203 | 70 | 402,546 |
LOAD_CONST 0
LOAD_CONST ('migrations',)
IMPORT_NAME django.db
IMPORT_FROM migrations
STORE_NAME migrations
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object Migration at 0x7f8e2fec3e40, file "f.py", line 4>
LOAD_CONST 'Migration'
MAKE_FUNCTION
LOAD_CONST 'Migration'
LOAD_NAME migrations
LOAD_ATTR Migration
CALL_FUNCTIO... | from django.db import migrations
class Migration(migrations.Migration):
dependencies = [("app1", "2_auto"), ("app2", "2_auto")]
operations = [migrations.RunPython(migrations.RunPython.noop)]
| data/Django-5.0.2/tests/migrations/test_migrations_squashed_complex_multi_apps/app1/3_auto.py | 181 | 70 | 325,832 |
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 'GstGLX11'
LOAD_CONST '1.0'
CALL_FUNCTION
STORE_NAME module_info
LOAD_NAME module_info
LOAD_ATTR available
POP_JUMP_IF_FALSE
LOAD_NAME module_inf... | from PyInstaller.utils.hooks.gi import GiModuleInfo
module_info = GiModuleInfo("GstGLX11", "1.0")
if module_info.available:
binaries, datas, hiddenimports = module_info.collect_typelib_data()
| data/pyinstaller-6.4.0/PyInstaller/hooks/hook-gi.repository.GstGLX11.py | 114 | 70 | 185,195 |
LOAD_CONST 0
LOAD_CONST ('*',)
IMPORT_NAME azure.cli.core.aaz
IMPORT_STAR
LOAD_NAME register_command_group
LOAD_CONST 'search service'
CALL_FUNCTION
LOAD_BUILD_CLASS
LOAD_CONST <code object __CMDGroup at 0x7fab823bed20, file "f.py", line 4>
LOAD_CONST '__CMDGroup'
MAKE_FUNCTION
LOAD_CONST '__CMDGroup'
LOAD_NAME AAZC... | from azure.cli.core.aaz import *
@register_command_group(
"search service",
)
class __CMDGroup(AAZCommandGroup):
"""Manage Azure Search services"""
pass
__all__ = ["__CMDGroup"]
| data/azure-cli-2.57.0/azure/cli/command_modules/search/aaz/latest/search/service/__cmd_group.py | 178 | 70 | 376,321 |
LOAD_NAME set
LOAD_CONST '\na abo ale ani\n\ndokelž\n\nhdyž\n\njeli jelizo\n\nkaž\n\npak potom\n\ntež tohodla\n\nzo zoby\n'
LOAD_METHOD split
CALL_METHOD
CALL_FUNCTION
STORE_NAME STOP_WORDS
LOAD_CONST None
RETURN_VALUE | STOP_WORDS = set(
"""
a abo ale ani
dokelž
hdyž
jeli jelizo
kaž
pak potom
tež tohodla
zo zoby
""".split()
)
| data/spacy-3.7.4/spacy/lang/hsb/stop_words.py | 90 | 70 | 147,667 |
LOAD_CONST 0
LOAD_CONST ('AppConfig',)
IMPORT_NAME django.apps
IMPORT_FROM AppConfig
STORE_NAME AppConfig
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object RestFrameworkConfig at 0x7fab802dde40, file "f.py", line 4>
LOAD_CONST 'RestFrameworkConfig'
MAKE_FUNCTION
LOAD_CONST 'RestFrameworkConfig'
LOAD_NAME AppConfig
CALL... | from django.apps import AppConfig
class RestFrameworkConfig(AppConfig):
name = "rest_framework"
verbose_name = "Django REST framework"
def ready(self):
from .checks import pagination_system_check # NOQA
| data/djangorestframework-3.14.0/rest_framework/apps.py | 239 | 70 | 77,658 |
LOAD_CONST 1
LOAD_CONST ('LoKrConfig',)
IMPORT_NAME config
IMPORT_FROM LoKrConfig
STORE_NAME LoKrConfig
POP_TOP
LOAD_CONST 1
LOAD_CONST ('Conv2d', 'Linear', 'LoKrLayer')
IMPORT_NAME layer
IMPORT_FROM Conv2d
STORE_NAME Conv2d
IMPORT_FROM Linear
STORE_NAME Linear
IMPORT_FROM LoKrLayer
STORE_NAME LoKrLayer
POP_TOP
LOAD_... | from .config import LoKrConfig
from .layer import Conv2d, Linear, LoKrLayer
from .model import LoKrModel
__all__ = ["LoKrConfig", "LoKrModel", "Conv2d", "Linear", "LoKrLayer"]
| data/peft-0.8.2/src/peft/tuners/lokr/__init__.py | 170 | 70 | 11,755 |
SETUP_ANNOTATIONS
LOAD_CONST 0
LOAD_CONST ('annotations',)
IMPORT_NAME __future__
IMPORT_FROM annotations
STORE_NAME annotations
POP_TOP
LOAD_CONST 0
LOAD_CONST ('Final',)
IMPORT_NAME typing
IMPORT_FROM Final
STORE_NAME Final
POP_TOP
LOAD_CONST 1024
STORE_NAME MIB_IN_GIB
LOAD_CONST 'Final'
LOAD_NAME __annotations__
L... | from __future__ import annotations
from typing import Final
MIB_IN_GIB: Final = 1024
def convert_mib_to_gib(value: float | int) -> float:
return float(value) / MIB_IN_GIB
| data/aiven_client-4.0.0/aiven/client/units.py | 205 | 70 | 271,643 |
LOAD_CONST 0
LOAD_CONST ('*',)
IMPORT_NAME alpaca.data.models.bars
IMPORT_STAR
LOAD_CONST 0
LOAD_CONST ('*',)
IMPORT_NAME alpaca.data.models.quotes
IMPORT_STAR
LOAD_CONST 0
LOAD_CONST ('*',)
IMPORT_NAME alpaca.data.models.trades
IMPORT_STAR
LOAD_CONST 0
LOAD_CONST ('*',)
IMPORT_NAME alpaca.data.models.snapshots
IMPO... | from alpaca.data.models.bars import *
from alpaca.data.models.quotes import *
from alpaca.data.models.trades import *
from alpaca.data.models.snapshots import *
from alpaca.data.models.orderbooks import *
| data/alpaca_py-0.16.0/alpaca/data/models/__init__.py | 128 | 70 | 293,046 |
LOAD_BUILD_CLASS
LOAD_CONST <code object AppwriteException at 0x7fab5434bf60, file "f.py", line 1>
LOAD_CONST 'AppwriteException'
MAKE_FUNCTION
LOAD_CONST 'AppwriteException'
LOAD_NAME Exception
CALL_FUNCTION
STORE_NAME AppwriteException
LOAD_CONST None
RETURN_VALUE
LOAD_NAME __name__
STORE_NAME __module__
LOAD_CONST ... | class AppwriteException(Exception):
def __init__(self, message, code=0, type=None, response=None):
self.message = message
self.code = code
self.type = type
self.response = response
super().__init__(self.message)
| data/appwrite-4.1.0/appwrite/exception.py | 239 | 70 | 147,238 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME urllib
STORE_NAME urllib
LOAD_BUILD_CLASS
LOAD_CONST <code object Page at 0x7fab821920c0, file "f.py", line 4>
LOAD_CONST 'Page'
MAKE_FUNCTION
LOAD_CONST 'Page'
LOAD_NAME object
CALL_FUNCTION
STORE_NAME Page
LOAD_CONST None
RETURN_VALUE
LOAD_NAME __name__
STORE_NAME __module__... | import urllib
class Page(object):
_urlOpen = staticmethod(urllib.urlopen)
def getPage(self, url):
handle = self._urlOpen(url)
data = handle.read()
handle.close()
return data
| data/asttokens-2.4.1/tests/testdata/python3/astroid/descriptor_crash.py | 218 | 70 | 348,166 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME typer
STORE_NAME typer
LOAD_NAME typer
LOAD_METHOD Option
LOAD_CONST Ellipsis
CALL_METHOD
BUILD_TUPLE
LOAD_NAME typer
LOAD_ATTR FileTextWrite
LOAD_CONST ('config',)
BUILD_CONST_KEY_MAP
LOAD_CONST <code object main at 0x7fab641f2270, file "f.py", line 4>
LOAD_CONST 'main'
MAKE_F... | import typer
def main(config: typer.FileTextWrite = typer.Option(...)):
config.write("Some config written by the app")
print("Config written")
if __name__ == "__main__":
typer.run(main)
| data/typer-0.9.0/docs_src/parameter_types/file/tutorial002.py | 169 | 70 | 224,508 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME urllib
STORE_NAME urllib
LOAD_BUILD_CLASS
LOAD_CONST <code object Page at 0x7fab82334390, file "f.py", line 4>
LOAD_CONST 'Page'
MAKE_FUNCTION
LOAD_CONST 'Page'
LOAD_NAME object
CALL_FUNCTION
STORE_NAME Page
LOAD_CONST None
RETURN_VALUE
LOAD_NAME __name__
STORE_NAME __module__... | import urllib
class Page(object):
_urlOpen = staticmethod(urllib.urlopen)
def getPage(self, url):
handle = self._urlOpen(url)
data = handle.read()
handle.close()
return data
| data/astroid-3.0.3/tests/testdata/python3/data/descriptor_crash.py | 218 | 70 | 388,600 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME unittest
STORE_NAME unittest
LOAD_CONST 0
LOAD_CONST ('install_tests_in_module_dict',)
IMPORT_NAME multiprocess.tests
IMPORT_FROM install_tests_in_module_dict
STORE_NAME install_tests_in_module_dict
POP_TOP
LOAD_NAME install_tests_in_module_dict
LOAD_NAME globals
CALL_FUNCTION... | import unittest
from multiprocess.tests import install_tests_in_module_dict
install_tests_in_module_dict(globals(), "fork", only_type="threads")
if __name__ == "__main__":
unittest.main()
| data/multiprocess-0.70.16/py3.11/multiprocess/tests/test_multiprocessing_fork/test_threads.py | 145 | 70 | 144,871 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME unittest
STORE_NAME unittest
LOAD_CONST 0
LOAD_CONST ('install_tests_in_module_dict',)
IMPORT_NAME multiprocess.tests
IMPORT_FROM install_tests_in_module_dict
STORE_NAME install_tests_in_module_dict
POP_TOP
LOAD_NAME install_tests_in_module_dict
LOAD_NAME globals
CALL_FUNCTION... | import unittest
from multiprocess.tests import install_tests_in_module_dict
install_tests_in_module_dict(globals(), "fork", only_type="processes")
if __name__ == "__main__":
unittest.main()
| data/multiprocess-0.70.16/py3.11/multiprocess/tests/test_multiprocessing_fork/test_processes.py | 145 | 70 | 144,870 |
LOAD_CONST 0
LOAD_CONST ('*',)
IMPORT_NAME azure.cli.core.aaz
IMPORT_STAR
LOAD_NAME register_command_group
LOAD_CONST 'network nat'
CALL_FUNCTION
LOAD_BUILD_CLASS
LOAD_CONST <code object __CMDGroup at 0x7fab8204aae0, file "f.py", line 4>
LOAD_CONST '__CMDGroup'
MAKE_FUNCTION
LOAD_CONST '__CMDGroup'
LOAD_NAME AAZComm... | from azure.cli.core.aaz import *
@register_command_group(
"network nat",
)
class __CMDGroup(AAZCommandGroup):
"""Manage NAT resources."""
pass
__all__ = ["__CMDGroup"]
| data/azure-cli-2.57.0/azure/cli/command_modules/network/aaz/latest/network/nat/__cmd_group.py | 179 | 70 | 378,237 |
LOAD_CONST 1
LOAD_CONST ('init', 'deinit', 'reinit', 'colorama_text', 'just_fix_windows_console')
IMPORT_NAME initialise
IMPORT_FROM init
STORE_NAME init
IMPORT_FROM deinit
STORE_NAME deinit
IMPORT_FROM reinit
STORE_NAME reinit
IMPORT_FROM colorama_text
STORE_NAME colorama_text
IMPORT_FROM just_fix_windows_console
STOR... | from .initialise import init, deinit, reinit, colorama_text, just_fix_windows_console
from .ansi import Fore, Back, Style, Cursor
from .ansitowin32 import AnsiToWin32
__version__ = "0.4.6"
| data/pipenv-2023.12.1/pipenv/patched/pip/_vendor/colorama/__init__.py | 203 | 70 | 402,263 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME logging
STORE_NAME logging
LOAD_CONST 0
LOAD_CONST ('SchedulerApi',)
IMPORT_NAME localstack.aws.api.scheduler
IMPORT_FROM SchedulerApi
STORE_NAME SchedulerApi
POP_TOP
LOAD_CONST 0
LOAD_CONST ('ServiceLifecycleHook',)
IMPORT_NAME localstack.services.plugins
IMPORT_FROM ServiceL... | import logging
from localstack.aws.api.scheduler import SchedulerApi
from localstack.services.plugins import ServiceLifecycleHook
LOG = logging.getLogger(__name__)
class SchedulerProvider(SchedulerApi, ServiceLifecycleHook):
pass
| data/localstack-core-3.1.0/localstack/services/scheduler/provider.py | 222 | 70 | 225,425 |
LOAD_CONST 'Generated API for package: tensorflow_examples.lite.model_maker.third_party.efficientdet.object_detection.box_coder.'
STORE_NAME __doc__
LOAD_CONST 0
LOAD_CONST ('*',)
IMPORT_NAME tensorflow_examples.lite.model_maker.third_party.efficientdet.object_detection.box_coder
IMPORT_STAR
LOAD_CONST None
RETURN_VAL... | """Generated API for package: tensorflow_examples.lite.model_maker.third_party.efficientdet.object_detection.box_coder."""
from tensorflow_examples.lite.model_maker.third_party.efficientdet.object_detection.box_coder import *
| data/tflite-model-maker-0.4.3/src/tflite_model_maker/python/third_party/efficientdet/object_detection/box_coder.py | 90 | 70 | 401,234 |
LOAD_CONST 1
LOAD_CONST ('*',)
IMPORT_NAME __cmd_group
IMPORT_STAR
LOAD_CONST 1
LOAD_CONST ('*',)
IMPORT_NAME _create
IMPORT_STAR
LOAD_CONST 1
LOAD_CONST ('*',)
IMPORT_NAME _delete
IMPORT_STAR
LOAD_CONST 1
LOAD_CONST ('*',)
IMPORT_NAME _list
IMPORT_STAR
LOAD_CONST 1
LOAD_CONST ('*',)
IMPORT_NAME _list_mapping
IMPOR... | from .__cmd_group import *
from ._create import *
from ._delete import *
from ._list import *
from ._list_mapping import *
from ._list_nic import *
from ._show import *
from ._update import *
from ._wait import *
| data/azure-cli-2.57.0/azure/cli/command_modules/network/aaz/latest/network/lb/__init__.py | 163 | 70 | 378,071 |
LOAD_CONST 0
LOAD_CONST ('Enum',)
IMPORT_NAME enum
IMPORT_FROM Enum
STORE_NAME Enum
POP_TOP
LOAD_CONST 0
LOAD_CONST ('CaseInsensitiveEnumMeta',)
IMPORT_NAME azure.core
IMPORT_FROM CaseInsensitiveEnumMeta
STORE_NAME CaseInsensitiveEnumMeta
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object SettingName at 0x7fab81fc45d0,... | from enum import Enum
from azure.core import CaseInsensitiveEnumMeta
class SettingName(str, Enum, metaclass=CaseInsensitiveEnumMeta):
"""SettingName."""
CURRENT = "current"
"""Name of the Defender for Storage Settings name."""
| data/azure-mgmt-security-6.0.0/azure/mgmt/security/v2022_12_01_preview/models/_security_center_enums.py | 194 | 70 | 62,717 |
LOAD_CONST 0
LOAD_CONST ('DistanceStrategy', 'filter_complex_metadata', 'maximal_marginal_relevance')
IMPORT_NAME langchain_community.vectorstores.utils
IMPORT_FROM DistanceStrategy
STORE_NAME DistanceStrategy
IMPORT_FROM filter_complex_metadata
STORE_NAME filter_complex_metadata
IMPORT_FROM maximal_marginal_relevance
... | from langchain_community.vectorstores.utils import (
DistanceStrategy,
filter_complex_metadata,
maximal_marginal_relevance,
)
__all__ = ["DistanceStrategy", "maximal_marginal_relevance", "filter_complex_metadata"]
| data/langchain-0.1.8/langchain/vectorstores/utils.py | 127 | 70 | 368,676 |
LOAD_CONST <code object pytest_sessionstart at 0x7f8aefa24780, file "f.py", line 1>
LOAD_CONST 'pytest_sessionstart'
MAKE_FUNCTION
STORE_NAME pytest_sessionstart
LOAD_CONST None
RETURN_VALUE
LOAD_CONST 0
LOAD_CONST ('registry',)
IMPORT_NAME pyannote.database
IMPORT_FROM registry
STORE_FAST registry
POP_TOP
LOAD_FAST ... | def pytest_sessionstart(session):
"""
Called after the Session object has been created and
before performing collection and entering the run test loop.
"""
from pyannote.database import registry
registry.load_database("tests/data/database.yml")
| data/pyannote.audio-3.1.1/tests/conftest.py | 116 | 70 | 122,014 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME unittest
STORE_NAME unittest
LOAD_CONST 0
LOAD_CONST ('install_tests_in_module_dict',)
IMPORT_NAME multiprocess.tests
IMPORT_FROM install_tests_in_module_dict
STORE_NAME install_tests_in_module_dict
POP_TOP
LOAD_NAME install_tests_in_module_dict
LOAD_NAME globals
CALL_FUNCTION... | import unittest
from multiprocess.tests import install_tests_in_module_dict
install_tests_in_module_dict(globals(), "spawn", only_type="threads")
if __name__ == "__main__":
unittest.main()
| data/multiprocess-0.70.16/py3.11/multiprocess/tests/test_multiprocessing_spawn/test_threads.py | 145 | 70 | 144,866 |
LOAD_BUILD_CLASS
LOAD_CONST <code object Command at 0x7fab4158e6f0, file "f.py", line 1>
LOAD_CONST 'Command'
MAKE_FUNCTION
LOAD_CONST 'Command'
LOAD_NAME object
CALL_FUNCTION
STORE_NAME Command
LOAD_CONST None
RETURN_VALUE
LOAD_NAME __name__
STORE_NAME __module__
LOAD_CONST 'Command'
STORE_NAME __qualname__
LOAD_CON... | class Command(object):
def __init__(self, *args, **kwargs):
self.params = kwargs.get("params", {})
self.args = kwargs.get("args", None)
def execute(self):
raise NotImplementedError()
| data/mm-0.2.6/mm/basecommand.py | 252 | 70 | 363,541 |
LOAD_CONST 'A Django app for adding object tools for models in the admin.'
STORE_NAME __doc__
LOAD_CONST '4.2.0'
STORE_NAME __version__
LOAD_CONST 1
LOAD_CONST ('BaseDjangoObjectActions', 'DjangoObjectActions', 'takes_instance_or_queryset', 'action')
IMPORT_NAME utils
IMPORT_FROM BaseDjangoObjectActions
STORE_NAME Ba... | """A Django app for adding object tools for models in the admin."""
__version__ = "4.2.0"
from .utils import (
BaseDjangoObjectActions,
DjangoObjectActions,
takes_instance_or_queryset,
action,
)
| data/django_object_actions-4.2.0/django_object_actions/__init__.py | 134 | 70 | 145,939 |
LOAD_CONST 0
LOAD_CONST ('Response',)
IMPORT_NAME pyramid.response
IMPORT_FROM Response
STORE_NAME Response
POP_TOP
LOAD_CONST <code object hello_world at 0x7fab81f7aed0, file "f.py", line 4>
LOAD_CONST 'hello_world'
MAKE_FUNCTION
STORE_NAME hello_world
LOAD_CONST <code object includeme at 0x7fab81f7a5d0, file "f.py"... | from pyramid.response import Response
def hello_world(request):
return Response("Hello World!")
def includeme(config):
config.add_route("hello", "/")
config.add_view(hello_world, route_name="hello")
| data/ddtrace-2.6.3/tests/contrib/pyramid/pserve_app/app/routes.py | 199 | 70 | 269,835 |
LOAD_CONST 0
LOAD_CONST ('AuthenticationMethod',)
IMPORT_NAME office365.directory.authentication.methods.method
IMPORT_FROM AuthenticationMethod
STORE_NAME AuthenticationMethod
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object PasswordAuthenticationMethod at 0x7fab81f0b5d0, file "f.py", line 4>
LOAD_CONST 'PasswordAuth... | from office365.directory.authentication.methods.method import AuthenticationMethod
class PasswordAuthenticationMethod(AuthenticationMethod):
"""A representation of a user's password. For security, the password itself will never be returned in the object,
but action can be taken to reset a password."""
| data/Office365-REST-Python-Client-2.5.5/office365/directory/authentication/methods/password.py | 182 | 70 | 188,919 |
LOAD_CONST 0
LOAD_CONST ('Enum',)
IMPORT_NAME enum
IMPORT_FROM Enum
STORE_NAME Enum
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object ImportedWindowsAutopilotDeviceIdentityImportStatus at 0x7fab820f4e40, file "f.py", line 4>
LOAD_CONST 'ImportedWindowsAutopilotDeviceIdentityImportStatus'
MAKE_FUNCTION
LOAD_CONST 'Impor... | from enum import Enum
class ImportedWindowsAutopilotDeviceIdentityImportStatus(str, Enum):
Unknown = ("unknown",)
Pending = ("pending",)
Partial = ("partial",)
Complete = ("complete",)
Error = ("error",)
| data/msgraph-sdk-1.1.0/msgraph/generated/models/imported_windows_autopilot_device_identity_import_status.py | 216 | 70 | 259,896 |
LOAD_CONST 2
LOAD_CONST ('_utilities',)
IMPORT_NAME
IMPORT_FROM _utilities
STORE_NAME _utilities
POP_TOP
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME typing
STORE_NAME typing
LOAD_CONST 1
LOAD_CONST ('*',)
IMPORT_NAME backup
IMPORT_STAR
LOAD_CONST 1
LOAD_CONST ('*',)
IMPORT_NAME cluster
IMPORT_STAR
LOAD_CONST 1
LOAD_CO... | from .. import _utilities
import typing
from .backup import *
from .cluster import *
from .get_locations import *
from .get_supported_database_flags import *
from .instance import *
from .user import *
from ._inputs import *
from . import outputs
| data/pulumi_gcp-7.9.0/pulumi_gcp/alloydb/__init__.py | 190 | 70 | 445,527 |
LOAD_CONST 1
LOAD_CONST ('BaseDistance',)
IMPORT_NAME base_distance
IMPORT_FROM BaseDistance
STORE_NAME BaseDistance
POP_TOP
LOAD_CONST 1
LOAD_CONST ('BatchedDistance',)
IMPORT_NAME batched_distance
IMPORT_FROM BatchedDistance
STORE_NAME BatchedDistance
POP_TOP
LOAD_CONST 1
LOAD_CONST ('CosineSimilarity',)
IMPORT_NAM... | from .base_distance import BaseDistance
from .batched_distance import BatchedDistance
from .cosine_similarity import CosineSimilarity
from .dot_product_similarity import DotProductSimilarity
from .lp_distance import LpDistance
from .snr_distance import SNRDistance
| data/pytorch-metric-learning-2.4.1/src/pytorch_metric_learning/distances/__init__.py | 200 | 70 | 394,222 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME mm.util
IMPORT_FROM util
STORE_NAME util
POP_TOP
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME mm.server.lib.server_threaded
IMPORT_FROM server
ROT_TWO
POP_TOP
IMPORT_FROM lib
ROT_TWO
POP_TOP
IMPORT_FROM server_threaded
STORE_NAME server
POP_TOP
LOAD_CONST 0
LOAD_CONST ('*',)
IMPOR... | import mm.util as util
import mm.server.lib.server_threaded as server
from mm.exceptions import *
from mm.basecommand import Command
class StartServerCommand(Command):
aliases = ["server"]
def execute(self):
server.run()
| data/mm-0.2.6/mm/commands/server.py | 281 | 70 | 363,554 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME unittest
STORE_NAME unittest
LOAD_CONST 0
LOAD_CONST ('install_tests_in_module_dict',)
IMPORT_NAME multiprocess.tests
IMPORT_FROM install_tests_in_module_dict
STORE_NAME install_tests_in_module_dict
POP_TOP
LOAD_NAME install_tests_in_module_dict
LOAD_NAME globals
CALL_FUNCTION... | import unittest
from multiprocess.tests import install_tests_in_module_dict
install_tests_in_module_dict(globals(), "forkserver", only_type="manager")
if __name__ == "__main__":
unittest.main()
| data/multiprocess-0.70.16/py3.12/multiprocess/tests/test_multiprocessing_forkserver/test_manager.py | 145 | 70 | 144,909 |
LOAD_CONST 'Test import.'
STORE_NAME __doc__
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME tensorflow_datasets
STORE_NAME tfds
LOAD_BUILD_CLASS
LOAD_CONST <code object ImportTest at 0x7fab70027ed0, file "f.py", line 6>
LOAD_CONST 'ImportTest'
MAKE_FUNCTION
LOAD_CONST 'ImportTest'
LOAD_NAME tfds
LOAD_ATTR testing
LOAD_ATTR... | """Test import."""
import tensorflow_datasets as tfds
class ImportTest(tfds.testing.TestCase):
def test_import(self):
pass
if __name__ == "__main__":
tfds.testing.test_main()
| data/tensorflow-datasets-4.9.4/tensorflow_datasets/import_test.py | 226 | 70 | 255,038 |
LOAD_CONST 0
LOAD_CONST ('Enum',)
IMPORT_NAME enum
IMPORT_FROM Enum
STORE_NAME Enum
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object PayloadDeliveryPlatform at 0x7fab820f4780, file "f.py", line 4>
LOAD_CONST 'PayloadDeliveryPlatform'
MAKE_FUNCTION
LOAD_CONST 'PayloadDeliveryPlatform'
LOAD_NAME str
LOAD_NAME Enum
CALL_... | from enum import Enum
class PayloadDeliveryPlatform(str, Enum):
Unknown = ("unknown",)
Sms = ("sms",)
Email = ("email",)
Teams = ("teams",)
UnknownFutureValue = ("unknownFutureValue",)
| data/msgraph-sdk-1.1.0/msgraph/generated/models/payload_delivery_platform.py | 192 | 70 | 259,596 |
LOAD_CONST '\n```python\n .. include:: _include_me.py\n :start-line: 1\n :end-line: 2\n```\n\n.. include:: foo/../_include_me.py\n :start-after: =\n :end-before: 4\n'
STORE_NAME __doc__
LOAD_CONST None
RETURN_VALUE | """
```python
.. include:: _include_me.py
:start-line: 1
:end-line: 2
```
.. include:: foo/../_include_me.py
:start-after: =
:end-before: 4
"""
| data/pdoc3-0.10.0/pdoc/test/example_pkg/_reST_include/test.py | 84 | 70 | 438,292 |
LOAD_CONST 1
LOAD_CONST ('Compose',)
IMPORT_NAME compose
IMPORT_FROM Compose
STORE_NAME Compose
POP_TOP
LOAD_CONST 1
LOAD_CONST ('BinarySignature', 'MemorySignature', 'Signature')
IMPORT_NAME signature
IMPORT_FROM BinarySignature
STORE_NAME BinarySignature
IMPORT_FROM MemorySignature
STORE_NAME MemorySignature
IMPORT_... | from .compose import Compose
from .signature import BinarySignature, MemorySignature, Signature
from .username import UsernameToken
__all__ = [
"Compose",
"BinarySignature",
"MemorySignature",
"Signature",
"UsernameToken",
]
| data/zeep-4.2.1/src/zeep/wsse/__init__.py | 149 | 70 | 156,600 |
LOAD_CONST 0
LOAD_CONST ('DistanceIndicator', 'modified_distance')
IMPORT_NAME pymoo.indicators.distance_indicator
IMPORT_FROM DistanceIndicator
STORE_NAME DistanceIndicator
IMPORT_FROM modified_distance
STORE_NAME modified_distance
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object GDPlus at 0x7fab41f12ae0, file "f.py"... | from pymoo.indicators.distance_indicator import DistanceIndicator, modified_distance
class GDPlus(DistanceIndicator):
def __init__(self, pf, **kwargs):
super().__init__(pf, modified_distance, 0, **kwargs)
| data/pymoo-0.6.1.1/pymoo/indicators/gd_plus.py | 259 | 70 | 93,220 |
LOAD_CONST 'Generated API for package: tensorflow_examples.lite.model_maker.third_party.efficientdet.object_detection.target_assigner.'
STORE_NAME __doc__
LOAD_CONST 0
LOAD_CONST ('*',)
IMPORT_NAME tensorflow_examples.lite.model_maker.third_party.efficientdet.object_detection.target_assigner
IMPORT_STAR
LOAD_CONST Non... | """Generated API for package: tensorflow_examples.lite.model_maker.third_party.efficientdet.object_detection.target_assigner."""
from tensorflow_examples.lite.model_maker.third_party.efficientdet.object_detection.target_assigner import *
| data/tflite-model-maker-0.4.3/src/tflite_model_maker/python/third_party/efficientdet/object_detection/target_assigner.py | 90 | 70 | 401,232 |
LOAD_CONST 1
LOAD_CONST ('analytics',)
IMPORT_NAME
IMPORT_FROM analytics
STORE_NAME analytics
POP_TOP
LOAD_CONST 1
LOAD_CONST ('report',)
IMPORT_NAME
IMPORT_FROM report
STORE_NAME report
POP_TOP
LOAD_CONST 1
LOAD_CONST ('audit_baseline',)
IMPORT_NAME audit
IMPORT_FROM audit_baseline
STORE_NAME audit_baseline
POP_TOP
... | from . import analytics # noqa: F401
from . import report # noqa: F401
from .audit import audit_baseline # noqa: F401
from .compare import compare_baselines # noqa: F401
| data/detect_secrets-1.4.0/detect_secrets/audit/__init__.py | 110 | 70 | 41,133 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME unittest
STORE_NAME unittest
LOAD_CONST 0
LOAD_CONST ('install_tests_in_module_dict',)
IMPORT_NAME multiprocess.tests
IMPORT_FROM install_tests_in_module_dict
STORE_NAME install_tests_in_module_dict
POP_TOP
LOAD_NAME install_tests_in_module_dict
LOAD_NAME globals
CALL_FUNCTION... | import unittest
from multiprocess.tests import install_tests_in_module_dict
install_tests_in_module_dict(globals(), "spawn", only_type="processes")
if __name__ == "__main__":
unittest.main()
| data/multiprocess-0.70.16/py3.12/multiprocess/tests/test_multiprocessing_spawn/test_processes.py | 145 | 70 | 144,911 |
LOAD_CONST 1
LOAD_CONST ('AzureMachineLearningWorkspaces',)
IMPORT_NAME _azure_machine_learning_workspaces
IMPORT_FROM AzureMachineLearningWorkspaces
STORE_NAME AzureMachineLearningWorkspaces
POP_TOP
LOAD_CONST 'AzureMachineLearningWorkspaces'
BUILD_LIST
STORE_NAME __all__
SETUP_EXCEPT to 42
LOAD_CONST 1
LOAD_CONST ... | from ._azure_machine_learning_workspaces import AzureMachineLearningWorkspaces
__all__ = ["AzureMachineLearningWorkspaces"]
try:
from ._patch import patch_sdk # type: ignore
patch_sdk()
except ImportError:
pass
| data/azure-ai-ml-1.13.0/azure/ai/ml/_restclient/__init__.py | 154 | 70 | 424,512 |
LOAD_CONST '\nLibrary-wise errors\n'
STORE_NAME __doc__
LOAD_BUILD_CLASS
LOAD_CONST <code object DataprepError at 0x7fab703bb9c0, file "f.py", line 6>
LOAD_CONST 'DataprepError'
MAKE_FUNCTION
LOAD_CONST 'DataprepError'
LOAD_NAME Exception
CALL_FUNCTION
STORE_NAME DataprepError
LOAD_BUILD_CLASS
LOAD_CONST <code object... | """
Library-wise errors
"""
class DataprepError(Exception):
"""
Base exception, used library-wise
"""
class UnreachableError(DataprepError):
"""
Error indicating some path of the code is unreachable.
"""
| data/dataprep-0.4.5/dataprep/errors.py | 261 | 70 | 199,083 |
LOAD_CONST '\n阿塞拜疆语\n'
STORE_NAME __doc__
BUILD_LIST
STORE_NAME ACCURATE_REGEX_LIST
BUILD_LIST
STORE_NAME FUZZY_REGEX_LIST
LOAD_CONST ('əvvəl', '前')
LOAD_CONST ('saat', '小时')
BUILD_LIST
STORE_NAME SUB_TRANSLATE
LOAD_CONST None
RETURN_VALUE | """
阿塞拜疆语
"""
ACCURATE_REGEX_LIST = []
FUZZY_REGEX_LIST = []
SUB_TRANSLATE = [
(r"əvvəl", "前"),
(r"saat", "小时"),
]
| data/gggdtparser-0.1.5/gggdtparser/langs/az.py | 83 | 70 | 153,230 |
LOAD_CONST 0
LOAD_CONST ('DistanceIndicator', 'modified_distance')
IMPORT_NAME pymoo.indicators.distance_indicator
IMPORT_FROM DistanceIndicator
STORE_NAME DistanceIndicator
IMPORT_FROM modified_distance
STORE_NAME modified_distance
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object IGDPlus at 0x7fab42ba9660, file "f.py... | from pymoo.indicators.distance_indicator import DistanceIndicator, modified_distance
class IGDPlus(DistanceIndicator):
def __init__(self, pf, **kwargs):
super().__init__(pf, modified_distance, 1, **kwargs)
| data/pymoo-0.6.1.1/pymoo/indicators/igd_plus.py | 265 | 70 | 93,226 |
LOAD_CONST 1
LOAD_CONST ('BatchJobDeploymentOperations',)
IMPORT_NAME _batch_job_deployment_operations
IMPORT_FROM BatchJobDeploymentOperations
STORE_NAME BatchJobDeploymentOperations
POP_TOP
LOAD_CONST 1
LOAD_CONST ('BatchJobEndpointOperations',)
IMPORT_NAME _batch_job_endpoint_operations
IMPORT_FROM BatchJobEndpoint... | from ._batch_job_deployment_operations import BatchJobDeploymentOperations
from ._batch_job_endpoint_operations import BatchJobEndpointOperations
__all__ = [
"BatchJobDeploymentOperations",
"BatchJobEndpointOperations",
]
| data/azure-ai-ml-1.13.0/azure/ai/ml/_restclient/v2020_09_01_dataplanepreview/operations/__init__.py | 125 | 70 | 424,719 |
LOAD_CONST "The module's version information."
STORE_NAME __doc__
LOAD_CONST 'Tomás Farías Santana'
STORE_NAME __author__
LOAD_CONST 'Copyright 2021 Tomás Farías Santana'
STORE_NAME __copyright__
LOAD_CONST 'airflow-dbt-python'
STORE_NAME __title__
LOAD_CONST '2.0.1'
STORE_NAME __version__
LOAD_CONST None
RETURN_VA... | """The module's version information."""
__author__ = "Tomás Farías Santana"
__copyright__ = "Copyright 2021 Tomás Farías Santana"
__title__ = "airflow-dbt-python"
__version__ = "2.0.1"
| data/airflow_dbt_python-2.0.1/airflow_dbt_python/__version__.py | 91 | 70 | 63,556 |
LOAD_CONST 1
LOAD_CONST ('Base',)
IMPORT_NAME base
IMPORT_FROM Base
STORE_NAME Base
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object Inheritance at 0x7f8e2fe41390, file "f.py", line 4>
LOAD_CONST 'Inheritance'
MAKE_FUNCTION
LOAD_CONST 'Inheritance'
LOAD_NAME Base
CALL_FUNCTION
STORE_NAME Inheritance
LOAD_CONST None
RE... | from .base import Base
class Inheritance(Base):
@property
def ALLOWED_HOSTS(self):
allowed_hosts = super().ALLOWED_HOSTS[:]
allowed_hosts.append("test")
return allowed_hosts
| data/django-configurations-2.5/tests/settings/single_inheritance.py | 264 | 70 | 322,988 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME io
STORE_NAME io
LOAD_CONST 0
LOAD_CONST ('ConfigParser',)
IMPORT_NAME configparser
IMPORT_FROM ConfigParser
STORE_NAME ConfigParser
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object ConfigParser at 0x7fab417519c0, file "f.py", line 5>
LOAD_CONST 'ConfigParser'
MAKE_FUNCTION
LO... | import io
from configparser import ConfigParser
class ConfigParser(ConfigParser):
def read(self, path):
fd = io.open(path, "r", encoding="utf-8-sig")
self.read_file(fd)
fd.close()
| data/blockdiag-3.0.0/src/blockdiag/utils/config.py | 248 | 70 | 345,843 |
LOAD_CONST 1
LOAD_CONST ('BatchJobDeploymentOperations',)
IMPORT_NAME _batch_job_deployment_operations
IMPORT_FROM BatchJobDeploymentOperations
STORE_NAME BatchJobDeploymentOperations
POP_TOP
LOAD_CONST 1
LOAD_CONST ('BatchJobEndpointOperations',)
IMPORT_NAME _batch_job_endpoint_operations
IMPORT_FROM BatchJobEndpoint... | from ._batch_job_deployment_operations import BatchJobDeploymentOperations
from ._batch_job_endpoint_operations import BatchJobEndpointOperations
__all__ = [
"BatchJobDeploymentOperations",
"BatchJobEndpointOperations",
]
| data/azure-ai-ml-1.13.0/azure/ai/ml/_restclient/v2020_09_01_dataplanepreview/aio/operations/__init__.py | 125 | 70 | 424,726 |
LOAD_CONST '\n吉尔吉斯语\n'
STORE_NAME __doc__
LOAD_CONST '(?P<bH>\\d+)\\s*саат мурда'
BUILD_LIST
STORE_NAME ACCURATE_REGEX_LIST
BUILD_LIST
STORE_NAME SUB_TRANSLATE
BUILD_LIST
STORE_NAME FUZZY_REGEX_LIST
LOAD_CONST None
RETURN_VALUE | """
吉尔吉斯语
"""
ACCURATE_REGEX_LIST = [
r"(?P<bH>\d+)\s*саат мурда",
]
SUB_TRANSLATE = []
FUZZY_REGEX_LIST = []
| data/gggdtparser-0.1.5/gggdtparser/langs/ky.py | 85 | 70 | 153,234 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME unittest
STORE_NAME unittest
LOAD_CONST 0
LOAD_CONST ('install_tests_in_module_dict',)
IMPORT_NAME multiprocess.tests
IMPORT_FROM install_tests_in_module_dict
STORE_NAME install_tests_in_module_dict
POP_TOP
LOAD_NAME install_tests_in_module_dict
LOAD_NAME globals
CALL_FUNCTION... | import unittest
from multiprocess.tests import install_tests_in_module_dict
install_tests_in_module_dict(globals(), "spawn", only_type="processes")
if __name__ == "__main__":
unittest.main()
| data/multiprocess-0.70.16/py3.11/multiprocess/tests/test_multiprocessing_spawn/test_processes.py | 145 | 70 | 144,865 |
LOAD_CONST 0
LOAD_CONST ('annotations',)
IMPORT_NAME __future__
IMPORT_FROM annotations
STORE_NAME annotations
POP_TOP
LOAD_CONST 0
LOAD_CONST ('Callable', 'List')
IMPORT_NAME typing
IMPORT_FROM Callable
STORE_NAME Callable
IMPORT_FROM List
STORE_NAME List
POP_TOP
LOAD_NAME List
LOAD_NAME int
BINARY_SUBSCR
STORE_NAME... | from __future__ import annotations
from typing import Callable, List
T = List[int]
C = Callable[[int], None] # a generic alias not having a doccomment
class Class:
T = List[int]
L = List[Class]
| data/sphinx-7.2.6/tests/roots/test-ext-autodoc/target/genericalias.py | 200 | 70 | 381,206 |
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 typing
STORE_NAME typing
LOAD_CONST 0
LOAD_CONST ('final',)
IMPORT_NAME typing
IMPORT_FROM final
STORE_NAME final
POP_TOP
LOAD_NAME typing
LOAD_ATTR final
LO... | from __future__ import annotations
import typing
from typing import final
@typing.final
class Class:
"""docstring"""
@final
def meth1(self):
"""docstring"""
def meth2(self):
"""docstring"""
| data/sphinx-7.2.6/tests/roots/test-ext-autodoc/target/final.py | 283 | 70 | 381,204 |
LOAD_CONST 0
LOAD_CONST ('_main',)
IMPORT_NAME numba.testing._runtests
IMPORT_FROM _main
STORE_NAME _main
POP_TOP
LOAD_NAME __name__
LOAD_CONST '__main__'
COMPARE_OP ==
POP_JUMP_IF_FALSE
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME sys
STORE_NAME sys
LOAD_CONST 0
LOAD_CONST ('freeze_support',)
IMPORT_NAME multiprocessin... | from numba.testing._runtests import _main
if __name__ == "__main__":
import sys
from multiprocessing import freeze_support
freeze_support()
sys.exit(0 if _main(sys.argv) else 1)
| data/numba-0.59.0/numba/runtests.py | 150 | 70 | 133,990 |
LOAD_CONST 0
LOAD_CONST ('DDLogger',)
IMPORT_NAME ddtrace.internal.logger
IMPORT_FROM DDLogger
STORE_NAME DDLogger
POP_TOP
LOAD_CONST 0
LOAD_CONST ('log',)
IMPORT_NAME ddtrace.vendor.dogstatsd.base
IMPORT_FROM log
STORE_NAME log
POP_TOP
LOAD_CONST <code object test_dogstatsd_logger at 0x7fab81f7a780, file "f.py", lin... | from ddtrace.internal.logger import DDLogger
from ddtrace.vendor.dogstatsd.base import log
def test_dogstatsd_logger():
"""Ensure dogstatsd logger is initialized as a rate limited logger"""
assert isinstance(log, DDLogger)
| data/ddtrace-2.6.3/tests/vendor/test_dogstatsd.py | 159 | 70 | 270,119 |
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 'GtkChamplain'
LOAD_CONST '0.12'
CALL_FUNCTION
STORE_NAME module_info
LOAD_NAME module_info
LOAD_ATTR available
POP_JUMP_IF_FALSE
LOAD_NAME modul... | from PyInstaller.utils.hooks.gi import GiModuleInfo
module_info = GiModuleInfo("GtkChamplain", "0.12")
if module_info.available:
binaries, datas, hiddenimports = module_info.collect_typelib_data()
| data/pyinstaller-6.4.0/PyInstaller/hooks/hook-gi.repository.GtkChamplain.py | 114 | 70 | 185,163 |
LOAD_CONST 1
LOAD_CONST ('make_install_files',)
IMPORT_NAME
IMPORT_FROM make_install_files
STORE_NAME _builder
POP_TOP
LOAD_CONST 1
LOAD_CONST ('install',)
IMPORT_NAME
IMPORT_FROM install
STORE_NAME _ins
POP_TOP
LOAD_CONST 'builder'
LOAD_CONST 'installer'
BUILD_LIST
STORE_NAME __all__
LOAD_NAME _builder
STORE_NAME b... | from . import make_install_files as _builder
from . import install as _ins
__all__ = ["builder", "installer"]
builder = _builder
installer = _ins.install
def install_local_files():
installer(input("path to install files:\n"))
| data/os_sys-2.1.4/os_sys/py_install/__init__.py | 176 | 70 | 248,065 |
LOAD_CONST 1
LOAD_CONST ('DeepARModel',)
IMPORT_NAME module
IMPORT_FROM DeepARModel
STORE_NAME DeepARModel
POP_TOP
LOAD_CONST 1
LOAD_CONST ('DeepARLightningModule',)
IMPORT_NAME lightning_module
IMPORT_FROM DeepARLightningModule
STORE_NAME DeepARLightningModule
POP_TOP
LOAD_CONST 1
LOAD_CONST ('DeepAREstimator',)
IMP... | from .module import DeepARModel
from .lightning_module import DeepARLightningModule
from .estimator import DeepAREstimator
__all__ = [
"DeepARModel",
"DeepARLightningModule",
"DeepAREstimator",
]
| data/gluonts-0.14.4/src/gluonts/torch/model/deepar/__init__.py | 143 | 70 | 140,280 |
LOAD_CONST 0
LOAD_CONST ('enqueue',)
IMPORT_NAME tasksconsumer
IMPORT_FROM enqueue
STORE_NAME enqueue
POP_TOP
LOAD_CONST <code object application at 0x7fab42b03810, file "f.py", line 4>
LOAD_CONST 'application'
MAKE_FUNCTION
STORE_NAME application
LOAD_CONST None
RETURN_VALUE
LOAD_FAST sr
LOAD_CONST '200 OK'
LOAD_CON... | from tasksconsumer import enqueue
def application(env, sr):
sr("200 OK", [("Content-Type", "text/html")])
enqueue(queue="fast", pippo="pluto")
return "Task enqueued"
| data/pyuwsgi-2.0.23.post0/contrib/spoolqueue/producer.py | 145 | 70 | 293,941 |
LOAD_CONST 1
LOAD_CONST ('UnitedStates',)
IMPORT_NAME core
IMPORT_FROM UnitedStates
STORE_NAME UnitedStates
POP_TOP
LOAD_CONST 2
LOAD_CONST ('iso_register',)
IMPORT_NAME registry_tools
IMPORT_FROM iso_register
STORE_NAME iso_register
POP_TOP
LOAD_NAME iso_register
LOAD_CONST 'US-ME'
CALL_FUNCTION
LOAD_BUILD_CLASS
LOA... | from .core import UnitedStates
from ..registry_tools import iso_register
@iso_register("US-ME")
class Maine(UnitedStates):
"""Maine"""
include_thanksgiving_friday = True
include_patriots_day = True
| data/workalendar-17.0.0/workalendar/usa/maine.py | 207 | 70 | 132,067 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME struct
STORE_NAME struct
LOAD_CONST 0
LOAD_CONST ('List',)
IMPORT_NAME typing
IMPORT_FROM List
STORE_NAME List
POP_TOP
LOAD_NAME bytes
LOAD_CONST ('v',)
BUILD_CONST_KEY_MAP
LOAD_CONST <code object vector_binary_to_bytes at 0x7fab417eeed0, file "f.py", line 5>
LOAD_CONST 'vecto... | import struct
from typing import List
def vector_binary_to_bytes(v: bytes):
return bytes(v)
def vector_float_to_bytes(v: List[float]):
return struct.pack(f"{len(v)}f", *v)
| data/pymilvus-2.3.6/pymilvus/client/blob.py | 232 | 70 | 80,051 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME unittest
STORE_NAME unittest
LOAD_CONST 0
LOAD_CONST ('install_tests_in_module_dict',)
IMPORT_NAME multiprocess.tests
IMPORT_FROM install_tests_in_module_dict
STORE_NAME install_tests_in_module_dict
POP_TOP
LOAD_NAME install_tests_in_module_dict
LOAD_NAME globals
CALL_FUNCTION... | import unittest
from multiprocess.tests import install_tests_in_module_dict
install_tests_in_module_dict(globals(), "fork", only_type="processes")
if __name__ == "__main__":
unittest.main()
| data/multiprocess-0.70.16/py3.12/multiprocess/tests/test_multiprocessing_fork/test_processes.py | 145 | 70 | 144,916 |
LOAD_NAME frozenset
LOAD_CONST 'define-macro'
LOAD_CONST 'extend-macro'
LOAD_CONST 'use-macro'
LOAD_CONST 'define-slot'
LOAD_CONST 'fill-slot'
LOAD_CONST 'xmlns'
LOAD_CONST 'xml'
BUILD_LIST
CALL_FUNCTION
STORE_NAME WHITELIST
LOAD_CONST None
RETURN_VALUE | WHITELIST = frozenset(
[
"define-macro",
"extend-macro",
"use-macro",
"define-slot",
"fill-slot",
"xmlns",
"xml",
]
)
| data/Chameleon-4.5.2/src/chameleon/metal.py | 78 | 70 | 173,169 |
LOAD_CONST 2
LOAD_CONST ('*',)
IMPORT_NAME dashboard_methods
IMPORT_STAR
LOAD_CONST 1
LOAD_CONST ('*',)
IMPORT_NAME overview_components
IMPORT_STAR
LOAD_CONST 1
LOAD_CONST ('*',)
IMPORT_NAME classifier_components
IMPORT_STAR
LOAD_CONST 1
LOAD_CONST ('*',)
IMPORT_NAME regression_components
IMPORT_STAR
LOAD_CONST 1
L... | from ..dashboard_methods import *
from .overview_components import *
from .classifier_components import *
from .regression_components import *
from .shap_components import *
from .decisiontree_components import *
from .connectors import *
from .composites import *
| data/explainerdashboard-0.4.5/explainerdashboard/dashboard_components/__init__.py | 150 | 70 | 287,451 |
LOAD_CONST 'Unit test suite to validate aws_encryption_sdk.key_providers.base.MasterKeyProviderConfig'
STORE_NAME __doc__
LOAD_CONST 0
LOAD_CONST ('MasterKeyProviderConfig',)
IMPORT_NAME aws_encryption_sdk.key_providers.base
IMPORT_FROM MasterKeyProviderConfig
STORE_NAME MasterKeyProviderConfig
POP_TOP
LOAD_CONST None... | """Unit test suite to validate aws_encryption_sdk.key_providers.base.MasterKeyProviderConfig"""
from aws_encryption_sdk.key_providers.base import (
MasterKeyProviderConfig,
) # noqa pylint: disable=unused-import
| data/aws-encryption-sdk-3.1.1/test/unit/test_providers_base_master_key_provider_config.py | 82 | 70 | 136,418 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME pbr.version
STORE_NAME pbr
LOAD_CONST '__version__'
BUILD_LIST
STORE_NAME __all__
LOAD_NAME pbr
LOAD_ATTR version
LOAD_METHOD VersionInfo
LOAD_CONST 'python-cinderclient'
CALL_METHOD
STORE_NAME version_info
SETUP_EXCEPT to 40
LOAD_NAME version_info
LOAD_METHOD version_string... | import pbr.version
__all__ = ["__version__"]
version_info = pbr.version.VersionInfo("python-cinderclient")
try:
__version__ = version_info.version_string()
except AttributeError:
__version__ = None
| data/python-cinderclient-9.4.0/cinderclient/__init__.py | 137 | 70 | 49,228 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME numpy
STORE_NAME np
LOAD_CONST 1
LOAD_CONST ('OpRunUnaryNum',)
IMPORT_NAME _op
IMPORT_FROM OpRunUnaryNum
STORE_NAME OpRunUnaryNum
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object Relu at 0x7fab70078930, file "f.py", line 6>
LOAD_CONST 'Relu'
MAKE_FUNCTION
LOAD_CONST 'Relu'
LOA... | import numpy as np
from ._op import OpRunUnaryNum
class Relu(OpRunUnaryNum):
def _run(self, x): # type: ignore
return (np.maximum(x, 0).astype(x.dtype),)
| data/onnxoptimizer-0.3.13/third_party/onnx/onnx/reference/ops/op_relu.py | 226 | 70 | 85,664 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.