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 3
LOAD_CONST ('BaseDefaults', 'Language')
IMPORT_NAME language
IMPORT_FROM BaseDefaults
STORE_NAME BaseDefaults
IMPORT_FROM Language
STORE_NAME Language
POP_TOP
LOAD_CONST 1
LOAD_CONST ('STOP_WORDS',)
IMPORT_NAME stop_words
IMPORT_FROM STOP_WORDS
STORE_NAME STOP_WORDS
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <c... | from ...language import BaseDefaults, Language
from .stop_words import STOP_WORDS
class CroatianDefaults(BaseDefaults):
stop_words = STOP_WORDS
class Croatian(Language):
lang = "hr"
Defaults = CroatianDefaults
__all__ = ["Croatian"]
| data/spacy-3.7.4/spacy/lang/hr/__init__.py | 327 | 88 | 147,679 |
LOAD_CONST 0
LOAD_CONST ('SecretsProvider',)
IMPORT_NAME metaflow.plugins.secrets
IMPORT_FROM SecretsProvider
STORE_NAME SecretsProvider
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object InlineSecretsProvider at 0x7fab41751c90, file "f.py", line 4>
LOAD_CONST 'InlineSecretsProvider'
MAKE_FUNCTION
LOAD_CONST 'InlineSecr... | from metaflow.plugins.secrets import SecretsProvider
class InlineSecretsProvider(SecretsProvider):
TYPE = "inline"
def get_secret_as_dict(self, secret_id, options={}, role=None):
"""Intended to be used for testing purposes only."""
return options.get("env_vars", {})
| data/metaflow-2.11.3/metaflow/plugins/secrets/inline_secrets_provider.py | 246 | 88 | 347,913 |
LOAD_CONST 0
LOAD_CONST ('closing',)
IMPORT_NAME contextlib
IMPORT_FROM closing
STORE_NAME closing
POP_TOP
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME secretstorage
STORE_NAME secretstorage
LOAD_NAME closing
LOAD_NAME secretstorage
LOAD_METHOD dbus_init
CALL_METHOD
CALL_FUNCTION
SETUP_WITH to 92
STORE_NAME connection
L... | from contextlib import closing
import secretstorage
with closing(secretstorage.dbus_init()) as connection:
items = secretstorage.search_items(
connection, {"application": "secretstorage-test"}
)
for item in items:
print("Deleting item with label %r." % item.get_label())
item.delete... | data/SecretStorage-3.3.3/tests/cleanup_test_items.py | 184 | 88 | 421,750 |
LOAD_CONST 0
LOAD_CONST ('FastAPI',)
IMPORT_NAME fastapi
IMPORT_FROM FastAPI
STORE_NAME FastAPI
POP_TOP
LOAD_NAME FastAPI
CALL_FUNCTION
STORE_NAME app
LOAD_NAME app
LOAD_METHOD get
LOAD_CONST '/items/'
CALL_METHOD
LOAD_CONST (None,)
LOAD_NAME str
LOAD_CONST None
BINARY_OR
LOAD_CONST ('q',)
BUILD_CONST_KEY_MAP
LOAD_C... | from fastapi import FastAPI
app = FastAPI()
@app.get("/items/")
async def read_items(q: str | None = None):
results = {"items": [{"item_id": "Foo"}, {"item_id": "Bar"}]}
if q:
results.update({"q": q})
return results
| data/fastapi-0.109.2/docs_src/query_params_str_validations/tutorial001_py310.py | 202 | 88 | 142,592 |
LOAD_CONST 0
LOAD_CONST ('*',)
IMPORT_NAME azure.cli.core.aaz
IMPORT_STAR
LOAD_NAME register_command_group
LOAD_CONST 'eventhubs eventhub authorization-rule keys'
CALL_FUNCTION
LOAD_BUILD_CLASS
LOAD_CONST <code object __CMDGroup at 0x7fab70055f60, file "f.py", line 4>
LOAD_CONST '__CMDGroup'
MAKE_FUNCTION
LOAD_CONST ... | from azure.cli.core.aaz import *
@register_command_group(
"eventhubs eventhub authorization-rule keys",
)
class __CMDGroup(AAZCommandGroup):
"""Manage Azure EventHubs Authorizationrule connection strings for Namespace."""
pass
__all__ = ["__CMDGroup"]
| data/azure-cli-2.57.0/azure/cli/command_modules/eventhubs/aaz/profile_2019_03_01_hybrid/eventhubs/eventhub/authorization_rule/keys/__cmd_group.py | 198 | 88 | 374,713 |
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 HealthKit
STORE_NAME HealthKit
LOAD_BUILD_CLASS
LOAD_CONST <code object TestHKVisionPrescription at 0x7fae2f37a6f0, file "f.py", line 5>
LOAD_CONST 'TestH... | from PyObjCTools.TestSupport import TestCase
import HealthKit
class TestHKVisionPrescription(TestCase):
def test_constants(self):
self.assertEqual(HealthKit.HKVisionPrescriptionTypeGlasses, 1)
self.assertEqual(HealthKit.HKVisionPrescriptionTypeContacts, 2)
| data/pyobjc-framework-HealthKit-10.1/PyObjCTest/test_hkvisionprescription.py | 298 | 88 | 385,388 |
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 SharePointHomeServiceContext at 0x7fab640fab70, file "f.py", line 4>
LOAD_CONST 'SharePointHomeServiceContext'
MAKE_FUNCTION
LOAD_CONST 'SharePointHomeServic... | from office365.sharepoint.entity import Entity
class SharePointHomeServiceContext(Entity):
"""
This data type is reserved for future use and MUST NOT be used by the protocol implementation.
"""
@property
def entity_type_name(self):
return "Microsoft.SharePoint.Portal.SharePointHomeService... | data/Office365-REST-Python-Client-2.5.5/office365/sharepoint/portal/home/service_context.py | 255 | 88 | 189,559 |
LOAD_CONST 0
LOAD_CONST ('Registry', 'build_from_cfg', 'default_group')
IMPORT_NAME modelscope.utils.registry
IMPORT_FROM Registry
STORE_NAME Registry
IMPORT_FROM build_from_cfg
STORE_NAME build_from_cfg
IMPORT_FROM default_group
STORE_NAME default_group
POP_TOP
LOAD_NAME Registry
LOAD_CONST 'hooks'
CALL_FUNCTION
STOR... | from modelscope.utils.registry import Registry, build_from_cfg, default_group
HOOKS = Registry("hooks")
def build_hook(cfg, default_args=None):
return build_from_cfg(
cfg, HOOKS, group_key=default_group, default_args=default_args
)
| data/modelscope-1.12.0/modelscope/trainers/hooks/builder.py | 187 | 88 | 315,749 |
LOAD_CONST 0
LOAD_CONST ('Error',)
IMPORT_NAME django.core.checks
IMPORT_FROM Error
STORE_NAME Error
POP_TOP
LOAD_NAME Error
LOAD_CONST 'Error while parsing WEBPACK_LOADER configuration'
LOAD_CONST 'Is WEBPACK_LOADER config valid?'
LOAD_CONST 'django.conf.settings.WEBPACK_LOADER'
LOAD_CONST 'django-webpack-loader.... | from django.core.checks import Error
BAD_CONFIG_ERROR = Error(
"Error while parsing WEBPACK_LOADER configuration",
hint="Is WEBPACK_LOADER config valid?",
obj="django.conf.settings.WEBPACK_LOADER",
id="django-webpack-loader.E001",
)
| data/django-webpack-loader-3.0.1/webpack_loader/errors.py | 117 | 88 | 299,248 |
LOAD_CONST 0
LOAD_CONST ('annotations',)
IMPORT_NAME __future__
IMPORT_FROM annotations
STORE_NAME annotations
POP_TOP
LOAD_CONST 0
LOAD_CONST ('BaseExtractor', 'OperatorLineage')
IMPORT_NAME airflow.providers.openlineage.extractors.base
IMPORT_FROM BaseExtractor
STORE_NAME BaseExtractor
IMPORT_FROM OperatorLineage
ST... | from __future__ import annotations
from airflow.providers.openlineage.extractors.base import BaseExtractor, OperatorLineage
from airflow.providers.openlineage.extractors.manager import ExtractorManager
"""
:meta private:
"""
__all__ = ["BaseExtractor", "OperatorLineage", "ExtractorManager"]
| data/apache_airflow_providers_openlineage-1.5.0/airflow/providers/openlineage/extractors/__init__.py | 160 | 88 | 418,168 |
LOAD_CONST 0
LOAD_CONST ('get_random_venv_name',)
IMPORT_NAME hatch.venv.utils
IMPORT_FROM get_random_venv_name
STORE_NAME get_random_venv_name
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object TestGetRandomVenvName at 0x7fab701ac0c0, file "f.py", line 4>
LOAD_CONST 'TestGetRandomVenvName'
MAKE_FUNCTION
LOAD_CONST 'Tes... | from hatch.venv.utils import get_random_venv_name
class TestGetRandomVenvName:
def test_length(self):
assert len(get_random_venv_name()) == 4
def test_different(self):
assert get_random_venv_name() != get_random_venv_name()
| data/hatch-1.9.3/tests/venv/test_utils.py | 347 | 88 | 183,769 |
LOAD_CONST "\nThe language_server package contains the functionality powering the Pyre client's\nIDE integrations. Handles connection logic and communicating LSP features.\n"
STORE_NAME __doc__
LOAD_CONST 1
LOAD_CONST ('code_navigation_request', 'connections', 'daemon_connection', 'features', 'protocol', 'remote_index... | """
The language_server package contains the functionality powering the Pyre client's
IDE integrations. Handles connection logic and communicating LSP features.
"""
from . import ( # noqa F401
code_navigation_request,
connections,
daemon_connection,
features,
protocol,
remote_index,
)
| data/pyre-check-0.9.19/pyre_check/client/language_server/__init__.py | 141 | 88 | 176,263 |
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 Vision
STORE_NAME Vision
LOAD_BUILD_CLASS
LOAD_CONST <code object TestVNDetectedPoint at 0x7faac02be660, file "f.py", line 5>
LOAD_CONST 'TestVNDetectedPo... | from PyObjCTools.TestSupport import TestCase
import Vision
class TestVNDetectedPoint(TestCase):
def test_typed_enum(self):
self.assertIsTypedEnum(Vision.VNRecognizedPointGroupKey, str)
self.assertIsTypedEnum(Vision.VNRecognizedPointKey, str)
| data/pyobjc-framework-Vision-10.1/PyObjCTest/test_vndetectpoint.py | 284 | 88 | 87,302 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME six
STORE_NAME six
SETUP_EXCEPT to 22
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME cPickle
STORE_NAME pickle
POP_BLOCK
JUMP_FORWARD to 50
DUP_TOP
LOAD_NAME ImportError
COMPARE_OP exception match
POP_JUMP_IF_FALSE
POP_TOP
POP_TOP
POP_TOP
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME p... | import six
try:
import cPickle as pickle
except ImportError:
import pickle as pickle # type: ignore
__all__ = ("long", "pickle", "unicode")
if six.PY3:
long = int
unicode = str
else:
long = long
unicode = unicode
| data/python-binary-memcached-0.31.2/bmemcached/compat.py | 164 | 88 | 419,847 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME re
STORE_NAME re
LOAD_NAME str
LOAD_NAME str
LOAD_CONST ('name', 'return')
BUILD_CONST_KEY_MAP
LOAD_CONST <code object to_snake_case at 0x7f8ece8a8c90, file "f.py", line 4>
LOAD_CONST 'to_snake_case'
MAKE_FUNCTION
STORE_NAME to_snake_case
LOAD_CONST None
RETURN_VALUE
LOAD_GLOB... | import re
def to_snake_case(name: str) -> str:
s1 = re.sub("(.)([A-Z][a-z]+)", r"\1_\2", name)
return re.sub("([a-z0-9])([A-Z])", r"\1_\2", s1).lower()
| data/conjure-python-client-2.8.0/conjure_python_client/_lib/case.py | 180 | 88 | 113,944 |
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.plugins.action import ActionBase
from jinja2 import Undefined
class ActionModule(ActionBase):
def run(self, tmp=None, task_vars=None):
return {"obj": Undefined("obj")}
| data/ansible-core-2.16.3/test/integration/targets/result_pickle_error/action_plugins/result_pickle_error.py | 294 | 88 | 437,549 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME threading
STORE_NAME threading
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME time
STORE_NAME time
LOAD_CONST <code object run at 0x7f8e2ff5eb70, file "f.py", line 5>
LOAD_CONST 'run'
MAKE_FUNCTION
STORE_NAME run
LOAD_NAME threading
LOAD_ATTR Thread
LOAD_NAME run
LOAD_CONST ('targe... | import threading
import time
def run():
print("[DEADLOCKS] started run")
st = time.time()
while time.time() < st + 5:
pass
print("[DEADLOCKS] finished run")
t = threading.Thread(target=run)
t.daemon = True
t.start()
| data/uwsgi-2.0.24/tests/deadlocks/sitecustomize.py | 211 | 88 | 398,202 |
LOAD_CONST './reppoints-moment_r50_fpn-gn_head-gn_2x_coco.py'
STORE_NAME _base_
LOAD_NAME dict
LOAD_NAME dict
LOAD_CONST 101
LOAD_NAME dict
LOAD_CONST 'Pretrained'
LOAD_CONST 'torchvision://resnet101'
LOAD_CONST ('type', 'checkpoint')
CALL_FUNCTION
LOAD_CONST ('depth', 'init_cfg')
CALL_FUNCTION
LOAD_CONST ('backbon... | _base_ = "./reppoints-moment_r50_fpn-gn_head-gn_2x_coco.py"
model = dict(
backbone=dict(
depth=101,
init_cfg=dict(type="Pretrained", checkpoint="torchvision://resnet101"),
)
)
| data/mmdet-3.3.0/mmdet/.mim/configs/reppoints/reppoints-moment_r101_fpn-gn_head-gn_2x_coco.py | 113 | 88 | 151,833 |
LOAD_CONST '\nMake sure locals can be viewed with -l or --showlocals\n'
STORE_NAME __doc__
LOAD_CONST 0
LOAD_CONST ('check',)
IMPORT_NAME pytest_check
IMPORT_FROM check
STORE_NAME check
POP_TOP
LOAD_CONST <code object test_ctx at 0x7fab54105390, file "f.py", line 8>
LOAD_CONST 'test_ctx'
MAKE_FUNCTION
STORE_NAME test... | """
Make sure locals can be viewed with -l or --showlocals
"""
from pytest_check import check
def test_ctx():
a = 1
with check:
b = 2
assert a == b
def test_check_func():
a = 1
b = 2
check.equal(a, b)
| data/pytest_check-2.3.1/examples/test_example_locals.py | 262 | 88 | 186,432 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME os
STORE_NAME os
LOAD_CONST 'glusterfs'
STORE_NAME NAME
LOAD_NAME os
LOAD_METHOD popen
LOAD_CONST 'pkg-config --cflags glusterfs-api'
CALL_METHOD
LOAD_METHOD read
CALL_METHOD
LOAD_METHOD rstrip
CALL_METHOD
LOAD_METHOD split
CALL_METHOD
STORE_NAME CFLAGS
BUILD_LIST
STORE_NAME ... | import os
NAME = "glusterfs"
CFLAGS = os.popen("pkg-config --cflags glusterfs-api").read().rstrip().split()
LDFLAGS = []
LIBS = os.popen("pkg-config --libs glusterfs-api").read().rstrip().split()
GCC_LIST = ["glusterfs"]
| data/uwsgi-2.0.24/plugins/glusterfs/uwsgiplugin.py | 145 | 88 | 398,312 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME pygraphviz
STORE_NAME pgv
LOAD_CONST <code object test_context_manager at 0x7fab823a3ae0, file "f.py", line 4>
LOAD_CONST 'test_context_manager'
MAKE_FUNCTION
STORE_NAME test_context_manager
LOAD_CONST <code object test_double_close at 0x7fab823a3810, file "f.py", line 10>
LOA... | import pygraphviz as pgv
def test_context_manager():
with pgv.AGraph() as ag:
ag0 = ag
assert ag0.handle != None
def test_double_close():
ag = pgv.AGraph()
ag.close()
assert ag.handle is None
ag.close()
| data/pygraphviz-1.12/pygraphviz/tests/test_close.py | 263 | 88 | 444,221 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME sys
STORE_NAME sys
LOAD_CONST 0
LOAD_CONST ('UseExceptions', 'deprecation_warn')
IMPORT_NAME osgeo.gdal
IMPORT_FROM UseExceptions
STORE_NAME UseExceptions
IMPORT_FROM deprecation_warn
STORE_NAME deprecation_warn
POP_TOP
LOAD_CONST 0
LOAD_CONST ('*',)
IMPORT_NAME osgeo_utils.gd... | import sys
from osgeo.gdal import UseExceptions, deprecation_warn
from osgeo_utils.gdal_sieve import * # noqa
from osgeo_utils.gdal_sieve import main
UseExceptions()
deprecation_warn("gdal_sieve")
sys.exit(main(sys.argv))
| data/GDAL-3.8.4/gdal-utils/scripts/gdal_sieve.py | 180 | 88 | 205,261 |
LOAD_CONST 'Kernels used for testing pallas_call.'
STORE_NAME __doc__
LOAD_CONST 0
LOAD_CONST ('pallas',)
IMPORT_NAME jax.experimental
IMPORT_FROM pallas
STORE_NAME pl
POP_TOP
LOAD_CONST <code object double_kernel at 0x7f8a3d619f60, file "f.py", line 6>
LOAD_CONST 'double_kernel'
MAKE_FUNCTION
STORE_NAME double_kerne... | """Kernels used for testing pallas_call."""
from jax.experimental import pallas as pl
def double_kernel(x_ref, y_ref):
y_ref[:] = x_ref[:] * 2
def double(x):
return pl.pallas_call(double_kernel, out_shape=x)(x)
| data/jax-0.4.24/jax/experimental/pallas/ops/tpu/example_kernel.py | 223 | 88 | 328,933 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME sys
STORE_NAME sys
LOAD_CONST 0
LOAD_CONST ('UseExceptions', 'deprecation_warn')
IMPORT_NAME osgeo.gdal
IMPORT_FROM UseExceptions
STORE_NAME UseExceptions
IMPORT_FROM deprecation_warn
STORE_NAME deprecation_warn
POP_TOP
LOAD_CONST 0
LOAD_CONST ('*',)
IMPORT_NAME osgeo_utils.gd... | import sys
from osgeo.gdal import UseExceptions, deprecation_warn
from osgeo_utils.gdal_calc import * # noqa
from osgeo_utils.gdal_calc import main
UseExceptions()
deprecation_warn("gdal_calc")
sys.exit(main(sys.argv))
| data/GDAL-3.8.4/gdal-utils/scripts/gdal_calc.py | 180 | 88 | 205,258 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME unittest
STORE_NAME unittest
LOAD_CONST 0
LOAD_CONST ('TOOLSVERSION',)
IMPORT_NAME odf.namespaces
IMPORT_FROM TOOLSVERSION
STORE_NAME TOOLSVERSION
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object TestNamespaces at 0x7f8aac3da4b0, file "f.py", line 5>
LOAD_CONST 'TestNamespaces... | import unittest
from odf.namespaces import TOOLSVERSION
class TestNamespaces(unittest.TestCase):
def test_version(self):
"""document's write method"""
self.assertEqual("ODFPY", TOOLSVERSION[:5])
if __name__ == "__main__":
unittest.main()
| data/odfpy-1.4.1/tests/testnamespaces.py | 278 | 88 | 428,654 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME sys
STORE_NAME sys
LOAD_CONST 0
LOAD_CONST ('UseExceptions', 'deprecation_warn')
IMPORT_NAME osgeo.gdal
IMPORT_FROM UseExceptions
STORE_NAME UseExceptions
IMPORT_FROM deprecation_warn
STORE_NAME deprecation_warn
POP_TOP
LOAD_CONST 0
LOAD_CONST ('*',)
IMPORT_NAME osgeo_utils.rg... | import sys
from osgeo.gdal import UseExceptions, deprecation_warn
from osgeo_utils.rgb2pct import * # noqa
from osgeo_utils.rgb2pct import main
UseExceptions()
deprecation_warn("rgb2pct")
sys.exit(main(sys.argv))
| data/GDAL-3.8.4/gdal-utils/scripts/rgb2pct.py | 180 | 88 | 205,257 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME sys
STORE_NAME sys
LOAD_CONST 0
LOAD_CONST ('UseExceptions', 'deprecation_warn')
IMPORT_NAME osgeo.gdal
IMPORT_FROM UseExceptions
STORE_NAME UseExceptions
IMPORT_FROM deprecation_warn
STORE_NAME deprecation_warn
POP_TOP
LOAD_CONST 0
LOAD_CONST ('*',)
IMPORT_NAME osgeo_utils.pc... | import sys
from osgeo.gdal import UseExceptions, deprecation_warn
from osgeo_utils.pct2rgb import * # noqa
from osgeo_utils.pct2rgb import main
UseExceptions()
deprecation_warn("pct2rgb")
sys.exit(main(sys.argv))
| data/GDAL-3.8.4/gdal-utils/scripts/pct2rgb.py | 180 | 88 | 205,256 |
LOAD_CONST 0
LOAD_CONST ('Enum',)
IMPORT_NAME enum
IMPORT_FROM Enum
STORE_NAME Enum
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object Win32LobAppRegistryRuleOperationType at 0x7fab70027420, file "f.py", line 4>
LOAD_CONST 'Win32LobAppRegistryRuleOperationType'
MAKE_FUNCTION
LOAD_CONST 'Win32LobAppRegistryRuleOperationT... | from enum import Enum
class Win32LobAppRegistryRuleOperationType(str, Enum):
NotConfigured = ("notConfigured",)
Exists = ("exists",)
DoesNotExist = ("doesNotExist",)
String = ("string",)
Integer = ("integer",)
Version = ("version",)
| data/msgraph-sdk-1.1.0/msgraph/generated/models/win32_lob_app_registry_rule_operation_type.py | 232 | 88 | 260,577 |
LOAD_CONST '\nThe :mod:`tsfresh.feature_extraction` module contains methods to extract the features from the time series\n'
STORE_NAME __doc__
LOAD_CONST 0
LOAD_CONST ('extract_features',)
IMPORT_NAME tsfresh.feature_extraction.extraction
IMPORT_FROM extract_features
STORE_NAME extract_features
POP_TOP
LOAD_CONST 0
L... | """
The :mod:`tsfresh.feature_extraction` module contains methods to extract the features from the time series
"""
from tsfresh.feature_extraction.extraction import extract_features
from tsfresh.feature_extraction.settings import (
ComprehensiveFCParameters,
EfficientFCParameters,
MinimalFCParameters,
)
| data/tsfresh-0.20.2/tsfresh/feature_extraction/__init__.py | 162 | 88 | 199,020 |
LOAD_CONST 0
LOAD_CONST ('abstractmethod',)
IMPORT_NAME abc
IMPORT_FROM abstractmethod
STORE_NAME abstractmethod
POP_TOP
LOAD_CONST 0
LOAD_CONST ('_MLflowObject',)
IMPORT_NAME mlflow.entities._mlflow_object
IMPORT_FROM _MLflowObject
STORE_NAME _MLflowObject
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object _ModelRegis... | from abc import abstractmethod
from mlflow.entities._mlflow_object import _MLflowObject
class _ModelRegistryEntity(_MLflowObject):
@classmethod
@abstractmethod
def from_proto(cls, proto):
pass
def __eq__(self, other):
return dict(self) == dict(other)
| data/mlflow-skinny-2.10.2/mlflow/entities/model_registry/_model_registry_entity.py | 316 | 88 | 291,707 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME sys
STORE_NAME sys
LOAD_CONST 0
LOAD_CONST ('UseExceptions', 'deprecation_warn')
IMPORT_NAME osgeo.gdal
IMPORT_FROM UseExceptions
STORE_NAME UseExceptions
IMPORT_FROM deprecation_warn
STORE_NAME deprecation_warn
POP_TOP
LOAD_CONST 0
LOAD_CONST ('*',)
IMPORT_NAME osgeo_utils.gd... | import sys
from osgeo.gdal import UseExceptions, deprecation_warn
from osgeo_utils.gdal_retile import * # noqa
from osgeo_utils.gdal_retile import main
UseExceptions()
deprecation_warn("gdal_retile")
sys.exit(main(sys.argv))
| data/GDAL-3.8.4/gdal-utils/scripts/gdal_retile.py | 180 | 88 | 205,251 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME ctypes
STORE_NAME ctypes
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME pytest
STORE_NAME pytest
LOAD_CONST 0
LOAD_CONST ('lib',)
IMPORT_NAME awkward_cpp.cpu_kernels
IMPORT_FROM lib
STORE_NAME lib
POP_TOP
LOAD_NAME pytest
LOAD_ATTR mark
LOAD_ATTR skip
LOAD_CONST 'Unable to generate... | import ctypes
import pytest
from awkward_cpp.cpu_kernels import lib
@pytest.mark.skip(reason="Unable to generate any tests for kernel")
def test_cpuawkward_UnionArray64_flatten_combine_64_1():
raise NotImplementedError("Unable to generate any tests for kernel")
| data/awkward-cpp-29/tests-cpu-kernels/test_cpuawkward_UnionArray64_flatten_combine_64.py | 231 | 88 | 221,639 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME ctypes
STORE_NAME ctypes
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME pytest
STORE_NAME pytest
LOAD_CONST 0
LOAD_CONST ('lib',)
IMPORT_NAME awkward_cpp.cpu_kernels
IMPORT_FROM lib
STORE_NAME lib
POP_TOP
LOAD_NAME pytest
LOAD_ATTR mark
LOAD_ATTR skip
LOAD_CONST 'Unable to generate... | import ctypes
import pytest
from awkward_cpp.cpu_kernels import lib
@pytest.mark.skip(reason="Unable to generate any tests for kernel")
def test_cpuawkward_reduce_prod_uint32_uint8_64_1():
raise NotImplementedError("Unable to generate any tests for kernel")
| data/awkward-cpp-29/tests-cpu-kernels/test_cpuawkward_reduce_prod_uint32_uint8_64.py | 231 | 88 | 221,661 |
LOAD_CONST 'Used by tests to ensure logging is kept when calling setup() twice.'
STORE_NAME __doc__
LOAD_CONST 0
LOAD_CONST ('mock',)
IMPORT_NAME unittest
IMPORT_FROM mock
STORE_NAME mock
POP_TOP
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME configurations
STORE_NAME configurations
LOAD_NAME print
LOAD_CONST 'setup_1'
CA... | """Used by tests to ensure logging is kept when calling setup() twice."""
from unittest import mock
import configurations
print("setup_1")
configurations.setup()
with mock.patch("django.setup", side_effect=Exception("setup called twice")):
print("setup_2")
configurations.setup()
print("setup_done")
| data/django-configurations-2.5/tests/setup_test.py | 187 | 88 | 322,986 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME webview
STORE_NAME webview
LOAD_CONST 1
LOAD_CONST ('run_test',)
IMPORT_NAME util
IMPORT_FROM run_test
STORE_NAME run_test
POP_TOP
LOAD_CONST <code object test_load_html at 0x7fab40da16f0, file "f.py", line 6>
LOAD_CONST 'test_load_html'
MAKE_FUNCTION
STORE_NAME test_load_html... | import webview
from .util import run_test
def test_load_html():
window = webview.create_window("Load HTML test")
run_test(webview, window, load_html)
def load_html(window):
window.load_html("<h1>This is dynamically loaded HTML</h1>")
| data/pywebview-4.4.1/tests/test_load_html.py | 236 | 88 | 390,095 |
LOAD_CONST "Dataset definition for tatoeba.\n\nDEPRECATED!\nIf you want to use the Tatoeba dataset builder class, use:\ntfds.builder_cls('tatoeba')\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 tatoeba.
DEPRECATED!
If you want to use the Tatoeba dataset builder class, use:
tfds.builder_cls('tatoeba')
"""
from tensorflow_datasets.core import lazy_builder_import
Tatoeba = lazy_builder_import.LazyBuilderImport("tatoeba")
| data/tfds-nightly-4.9.4.dev202402210044/tensorflow_datasets/translate/tatoeba/tatoeba.py | 132 | 88 | 238,426 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME sys
STORE_NAME sys
LOAD_CONST 0
LOAD_CONST ('UseExceptions', 'deprecation_warn')
IMPORT_NAME osgeo.gdal
IMPORT_FROM UseExceptions
STORE_NAME UseExceptions
IMPORT_FROM deprecation_warn
STORE_NAME deprecation_warn
POP_TOP
LOAD_CONST 0
LOAD_CONST ('*',)
IMPORT_NAME osgeo_utils.gd... | import sys
from osgeo.gdal import UseExceptions, deprecation_warn
from osgeo_utils.gdal2xyz import * # noqa
from osgeo_utils.gdal2xyz import main
UseExceptions()
deprecation_warn("gdal2xyz")
sys.exit(main(sys.argv))
| data/GDAL-3.8.4/gdal-utils/scripts/gdal2xyz.py | 180 | 88 | 205,253 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME pkg1.p1a
STORE_NAME pkg1
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME pkg1.p1b
STORE_NAME pkg1
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME pkg1.sub
STORE_NAME pkg1
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME pkg2.p2a
STORE_NAME pkg2
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME pkg2.p2b
STORE... | import pkg1.p1a, pkg1.p1b, pkg1.sub
import pkg2.p2a, pkg2.p2b
import othermods.othera, othermods.otherb
import othermods.sub.osa, othermods.sub.osb
import ambiguous, ambiguous.pkg1.ambiguous
| data/coverage-7.4.2/tests/modules/usepkgs.py | 232 | 88 | 308,475 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME sys
STORE_NAME sys
SETUP_LOOP to 98
LOAD_CONST ('urllib3', 'idna', 'chardet')
GET_ITER
FOR_ITER to 96
STORE_NAME package
LOAD_NAME __import__
LOAD_NAME package
CALL_FUNCTION
LOAD_NAME locals
CALL_FUNCTION
LOAD_NAME package
STORE_SUBSCR
SETUP_LOOP to 94
LOAD_NAME list
LOAD_NAM... | import sys
for package in ("urllib3", "idna", "chardet"):
locals()[package] = __import__(package)
for mod in list(sys.modules):
if mod == package or mod.startswith(package + "."):
sys.modules["requests.packages." + mod] = sys.modules[mod]
| data/aliyun-python-sdk-core-v3-2.13.33/aliyunsdkcore/vendored/requests/packages.py | 176 | 88 | 404,837 |
LOAD_CONST 0
LOAD_CONST ('Enum',)
IMPORT_NAME enum
IMPORT_FROM Enum
STORE_NAME Enum
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object DefenderThreatAction at 0x7fab820f4930, file "f.py", line 4>
LOAD_CONST 'DefenderThreatAction'
MAKE_FUNCTION
LOAD_CONST 'DefenderThreatAction'
LOAD_NAME str
LOAD_NAME Enum
CALL_FUNCTION
... | from enum import Enum
class DefenderThreatAction(str, Enum):
DeviceDefault = ("deviceDefault",)
Clean = ("clean",)
Quarantine = ("quarantine",)
Remove = ("remove",)
Allow = ("allow",)
UserDefined = ("userDefined",)
Block = ("block",)
| data/msgraph-sdk-1.1.0/msgraph/generated/models/defender_threat_action.py | 214 | 88 | 260,588 |
LOAD_CONST 1
LOAD_CONST ('DebugKeywords',)
IMPORT_NAME keywords
IMPORT_FROM DebugKeywords
STORE_NAME DebugKeywords
POP_TOP
LOAD_CONST 1
LOAD_CONST ('VERSION',)
IMPORT_NAME version
IMPORT_FROM VERSION
STORE_NAME VERSION
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object DebugLibrary at 0x7f8e2fc370c0, file "f.py", line ... | from .keywords import DebugKeywords
from .version import VERSION
"""A debug library and REPL for RobotFramework."""
class DebugLibrary(DebugKeywords):
"""Debug Library for RobotFramework."""
ROBOT_LIBRARY_SCOPE = "GLOBAL"
ROBOT_LIBRARY_VERSION = VERSION
| data/robotframework-debuglibrary-2.5.0/DebugLibrary/__init__.py | 201 | 88 | 422,890 |
LOAD_BUILD_CLASS
LOAD_CONST <code object AttributeDict at 0x7fab40da1c90, file "f.py", line 1>
LOAD_CONST 'AttributeDict'
MAKE_FUNCTION
LOAD_CONST 'AttributeDict'
LOAD_NAME dict
CALL_FUNCTION
STORE_NAME AttributeDict
LOAD_CONST None
RETURN_VALUE
LOAD_NAME __name__
STORE_NAME __module__
LOAD_CONST 'AttributeDict'
STORE... | class AttributeDict(dict):
def __getattr__(self, key):
try:
return self[key]
except KeyError:
raise AttributeError(key)
def __setattr__(self, key, value):
self[key] = value
def __delattr__(self, key):
del self[key]
| data/magicinvoke-2.4.6/invoke/vendor/lexicon/attribute_dict.py | 356 | 88 | 390,311 |
LOAD_CONST '\nGet information about currently installed plugins\n'
STORE_NAME __doc__
LOAD_CONST 0
LOAD_CONST ('print_function',)
IMPORT_NAME __future__
IMPORT_FROM print_function
STORE_NAME print_function
POP_TOP
LOAD_CONST 0
LOAD_CONST ('Jenkins',)
IMPORT_NAME jenkinsapi.jenkins
IMPORT_FROM Jenkins
STORE_NAME Jenki... | """
Get information about currently installed plugins
"""
from __future__ import print_function
from jenkinsapi.jenkins import Jenkins
plugin_name = "subversion"
jenkins = Jenkins("http://localhost:8080")
plugin = jenkins.get_plugins()[plugin_name]
print(repr(plugin))
| data/jenkinsapi-0.3.13/examples/how_to/get_plugin_information.py | 162 | 88 | 22,829 |
LOAD_CONST '2.3.1'
STORE_NAME version_version
LOAD_CONST 'd95dd0094adbc24d459c88cb543a61dc5272ddb6'
STORE_NAME version_full
BUILD_MAP
LOAD_CONST False
BUILD_TUPLE
LOAD_CONST <code object get_versions at 0x7fab823d8f60, file "f.py", line 5>
LOAD_CONST 'get_versions'
MAKE_FUNCTION
STORE_NAME get_versions
LOAD_CONST Non... | version_version = "2.3.1"
version_full = "d95dd0094adbc24d459c88cb543a61dc5272ddb6"
def get_versions(default={}, verbose=False):
return {"version": version_version, "full": version_full}
| data/gnupg-2.3.1/gnupg/_version.py | 142 | 88 | 414,941 |
LOAD_CONST '\nA fast serialization method for lists of integers.\n'
STORE_NAME __doc__
LOAD_CONST 0
LOAD_CONST ('List',)
IMPORT_NAME typing
IMPORT_FROM List
STORE_NAME List
POP_TOP
LOAD_NAME List
LOAD_NAME int
BINARY_SUBSCR
LOAD_NAME str
LOAD_CONST ('data', 'return')
BUILD_CONST_KEY_MAP
LOAD_CONST <code object dump a... | """
A fast serialization method for lists of integers.
"""
from typing import List
def dump(data: List[int]) -> str:
return ",".join(str(x) for x in data)
def load(source: str) -> List[int]:
return [int(x) for x in source.split(",")]
| data/google-cloud-pubsublite-1.9.0/google/cloud/pubsublite/internal/fast_serialize.py | 383 | 88 | 249,829 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME ctypes
STORE_NAME ctypes
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME pytest
STORE_NAME pytest
LOAD_CONST 0
LOAD_CONST ('lib',)
IMPORT_NAME awkward_cpp.cpu_kernels
IMPORT_FROM lib
STORE_NAME lib
POP_TOP
LOAD_NAME pytest
LOAD_ATTR mark
LOAD_ATTR skip
LOAD_CONST 'Unable to generate... | import ctypes
import pytest
from awkward_cpp.cpu_kernels import lib
@pytest.mark.skip(reason="Unable to generate any tests for kernel")
def test_cpuawkward_NumpyArray_fill_toint8_fromint8_1():
raise NotImplementedError("Unable to generate any tests for kernel")
| data/awkward-cpp-29/tests-cpu-kernels/test_cpuawkward_NumpyArray_fill_toint8_fromint8.py | 231 | 88 | 221,561 |
LOAD_CONST '\nTest plot deferring\n===================\n\nThis tests the ``sphinx_gallery_defer_figures`` flag.\n'
STORE_NAME __doc__
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME matplotlib.pyplot
IMPORT_FROM pyplot
STORE_NAME plt
POP_TOP
LOAD_NAME plt
LOAD_METHOD plot
LOAD_CONST 0
LOAD_CONST 1
BUILD_LIST
CALL_METHOD
POP... | """
Test plot deferring
===================
This tests the ``sphinx_gallery_defer_figures`` flag.
"""
import matplotlib.pyplot as plt
plt.plot([0, 1])
plt.plot([1, 0])
plt.plot([2, 2])
plt.show()
| data/sphinx-gallery-0.15.0/sphinx_gallery/tests/tinybuild/examples/plot_defer_figures.py | 150 | 88 | 391,165 |
LOAD_CONST 0
LOAD_CONST ('WeightStandardization',)
IMPORT_NAME composer.algorithms.weight_standardization.weight_standardization
IMPORT_FROM WeightStandardization
STORE_NAME WeightStandardization
POP_TOP
LOAD_CONST 0
LOAD_CONST ('apply_weight_standardization',)
IMPORT_NAME composer.algorithms.weight_standardization.we... | from composer.algorithms.weight_standardization.weight_standardization import (
WeightStandardization as WeightStandardization,
)
from composer.algorithms.weight_standardization.weight_standardization import (
apply_weight_standardization as apply_weight_standardization,
)
__all__ = ["WeightStandardization", "... | data/mosaicml-0.19.1/composer/algorithms/weight_standardization/__init__.py | 122 | 88 | 309,011 |
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 ScreenTime
STORE_NAME ScreenTime
LOAD_BUILD_CLASS
LOAD_CONST <code object TestSTWebHistory... | from PyObjCTools.TestSupport import TestCase, min_os_level
import ScreenTime
class TestSTWebHistory(TestCase):
@min_os_level("11.0")
def test_methods11_0(self):
self.assertArgIsOut(ScreenTime.STWebHistory.initWithBundleIdentifier_error_, 1)
| data/pyobjc-framework-ScreenTime-10.1/PyObjCTest/test_stwebhistory.py | 292 | 88 | 123,634 |
LOAD_CONST 0
LOAD_CONST ('BatchObjectReturn', 'BatchReferenceReturn', 'BatchResult', 'ErrorObject', 'ErrorReference')
IMPORT_NAME weaviate.collections.classes.batch
IMPORT_FROM BatchObjectReturn
STORE_NAME BatchObjectReturn
IMPORT_FROM BatchReferenceReturn
STORE_NAME BatchReferenceReturn
IMPORT_FROM BatchResult
STORE_N... | from weaviate.collections.classes.batch import (
BatchObjectReturn,
BatchReferenceReturn,
BatchResult,
ErrorObject,
ErrorReference,
)
__all__ = [
"BatchObjectReturn",
"BatchReferenceReturn",
"BatchResult",
"ErrorObject",
"ErrorReference",
]
| data/weaviate-client-4.4.4/weaviate/outputs/batch.py | 141 | 88 | 448,643 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME ctypes
STORE_NAME ctypes
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME pytest
STORE_NAME pytest
LOAD_CONST 0
LOAD_CONST ('lib',)
IMPORT_NAME awkward_cpp.cpu_kernels
IMPORT_FROM lib
STORE_NAME lib
POP_TOP
LOAD_NAME pytest
LOAD_ATTR mark
LOAD_ATTR skip
LOAD_CONST 'Unable to generate... | import ctypes
import pytest
from awkward_cpp.cpu_kernels import lib
@pytest.mark.skip(reason="Unable to generate any tests for kernel")
def test_cpuawkward_ListOffsetArray32_rpad_axis1_64_1():
raise NotImplementedError("Unable to generate any tests for kernel")
| data/awkward-cpp-29/tests-cpu-kernels/test_cpuawkward_ListOffsetArray32_rpad_axis1_64.py | 231 | 88 | 221,578 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME ctypes
STORE_NAME ctypes
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME pytest
STORE_NAME pytest
LOAD_CONST 0
LOAD_CONST ('lib',)
IMPORT_NAME awkward_cpp.cpu_kernels
IMPORT_FROM lib
STORE_NAME lib
POP_TOP
LOAD_NAME pytest
LOAD_ATTR mark
LOAD_ATTR skip
LOAD_CONST 'Unable to generate... | import ctypes
import pytest
from awkward_cpp.cpu_kernels import lib
@pytest.mark.skip(reason="Unable to generate any tests for kernel")
def test_cpuawkward_RegularArray_reduce_local_nextparents_64_1():
raise NotImplementedError("Unable to generate any tests for kernel")
| data/awkward-cpp-29/tests-cpu-kernels/test_cpuawkward_RegularArray_reduce_local_nextparents_64.py | 232 | 88 | 221,586 |
LOAD_CONST 0
LOAD_CONST ('Environment',)
IMPORT_NAME jinja2
IMPORT_FROM Environment
STORE_NAME Environment
POP_TOP
LOAD_CONST 0
LOAD_CONST ('FileSystemLoader',)
IMPORT_NAME jinja2.loaders
IMPORT_FROM FileSystemLoader
STORE_NAME FileSystemLoader
POP_TOP
LOAD_NAME Environment
LOAD_NAME FileSystemLoader
LOAD_CONST 'temp... | from jinja2 import Environment
from jinja2.loaders import FileSystemLoader
env = Environment(loader=FileSystemLoader("templates"))
tmpl = env.get_template("broken.html")
print(tmpl.render(seq=[3, 2, 4, 5, 3, 2, 0, 2, 1]))
| data/Jinja2-3.1.3/examples/basic/debugger.py | 174 | 88 | 357,002 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME ctypes
STORE_NAME ctypes
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME pytest
STORE_NAME pytest
LOAD_CONST 0
LOAD_CONST ('lib',)
IMPORT_NAME awkward_cpp.cpu_kernels
IMPORT_FROM lib
STORE_NAME lib
POP_TOP
LOAD_NAME pytest
LOAD_ATTR mark
LOAD_ATTR skip
LOAD_CONST 'Unable to generate... | import ctypes
import pytest
from awkward_cpp.cpu_kernels import lib
@pytest.mark.skip(reason="Unable to generate any tests for kernel")
def test_cpuawkward_reduce_sum_uint32_uint8_64_1():
raise NotImplementedError("Unable to generate any tests for kernel")
| data/awkward-cpp-29/tests-cpu-kernels/test_cpuawkward_reduce_sum_uint32_uint8_64.py | 232 | 88 | 221,589 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME ctypes
STORE_NAME ctypes
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME pytest
STORE_NAME pytest
LOAD_CONST 0
LOAD_CONST ('lib',)
IMPORT_NAME awkward_cpp.cpu_kernels
IMPORT_FROM lib
STORE_NAME lib
POP_TOP
LOAD_NAME pytest
LOAD_ATTR mark
LOAD_ATTR skip
LOAD_CONST 'Unable to generate... | import ctypes
import pytest
from awkward_cpp.cpu_kernels import lib
@pytest.mark.skip(reason="Unable to generate any tests for kernel")
def test_cpuawkward_reduce_prod_uint64_uint8_64_1():
raise NotImplementedError("Unable to generate any tests for kernel")
| data/awkward-cpp-29/tests-cpu-kernels/test_cpuawkward_reduce_prod_uint64_uint8_64.py | 231 | 88 | 221,591 |
LOAD_CONST <code object x0 at 0x7faa75305780, file "f.py", line 1>
LOAD_CONST 'x0'
MAKE_FUNCTION
STORE_NAME x0
LOAD_CONST <code object x1 at 0x7faa753059c0, file "f.py", line 5>
LOAD_CONST 'x1'
MAKE_FUNCTION
STORE_NAME x1
LOAD_CONST (5,)
LOAD_CONST <code object x2 at 0x7faa75305d20, file "f.py", line 9>
LOAD_CONST 'x... | def x0():
pass
def x1(a):
pass
def x2(a=5):
pass
def x3(a, b, c=5):
pass
def x4(a, b=5, **c):
pass
def funcattrs(**kwds):
return
| data/uncompyle6-3.9.0/test/simple_source/def/02_def.py | 340 | 88 | 442,187 |
LOAD_CONST 0
LOAD_CONST ('ResourcePath',)
IMPORT_NAME office365.runtime.paths.resource_path
IMPORT_FROM ResourcePath
STORE_NAME ResourcePath
POP_TOP
LOAD_CONST 0
LOAD_CONST ('EntityPath',)
IMPORT_NAME office365.runtime.paths.v4.entity
IMPORT_FROM EntityPath
STORE_NAME EntityPath
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <c... | from office365.runtime.paths.resource_path import ResourcePath
from office365.runtime.paths.v4.entity import EntityPath
class MePath(EntityPath):
"""SignedIn user resource path"""
def __init__(self):
super(MePath, self).__init__("me", None, ResourcePath("users"))
| data/Office365-REST-Python-Client-2.5.5/office365/directory/internal/paths/me.py | 298 | 88 | 188,877 |
LOAD_CONST '\ngithub3.repos\n=============\n\nThis module contains the classes relating to repositories.\n\nSee also: http://developer.github.com/v3/repos/\n'
STORE_NAME __doc__
LOAD_CONST 1
LOAD_CONST ('Repository',)
IMPORT_NAME repo
IMPORT_FROM Repository
STORE_NAME Repository
POP_TOP
LOAD_CONST 1
LOAD_CONST ('Shor... | """
github3.repos
=============
This module contains the classes relating to repositories.
See also: http://developer.github.com/v3/repos/
"""
from .repo import Repository
from .repo import ShortRepository
from .repo import StarredRepository
__all__ = ("Repository", "ShortRepository", "StarredRepository")
| data/github3.py-4.0.1/src/github3/repos/__init__.py | 158 | 88 | 292,092 |
LOAD_CONST 'latex_leavevmode.txt'
STORE_NAME test_source
LOAD_CONST 'latex_leavevmode.tex'
STORE_NAME test_destination
LOAD_CONST 'latex'
STORE_NAME writer_name
LOAD_CONST True
LOAD_CONST True
LOAD_CONST False
LOAD_CONST ('smart_quotes', 'legacy_column_widths', 'use_latex_citations')
BUILD_CONST_KEY_MAP
STORE_NAME... | test_source = "latex_leavevmode.txt"
test_destination = "latex_leavevmode.tex"
writer_name = "latex"
settings_overrides = {
"smart_quotes": True,
"legacy_column_widths": True,
"use_latex_citations": False,
}
| data/docutils-0.20.1/test/functional/tests/latex_leavevmode.py | 100 | 88 | 83,259 |
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 sys
STORE_NAME sys
LOAD_NAME sys
LOAD_ATTR version_info
LOAD_CONST (3, 8)
COMPARE_OP >=
POP_JUMP_IF_FALSE
LOAD_CONST 0
LOAD_CONST ('Final', 'Literal', 'Proto... | from __future__ import annotations
import sys
if sys.version_info >= (3, 8):
from typing import Final, Literal, Protocol, TypedDict
else:
from typing_extensions import Final, Literal, Protocol, TypedDict
__all__ = ["Protocol", "TypedDict", "Final", "Literal"]
| data/scikit_build-0.17.6/skbuild/_compat/typing.py | 228 | 88 | 198,953 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME logging
STORE_NAME logging
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME sys
STORE_NAME sys
LOAD_NAME logging
LOAD_ATTR NOTSET
BUILD_TUPLE
LOAD_NAME int
LOAD_CONST None
LOAD_CONST ('level', 'return')
BUILD_CONST_KEY_MAP
LOAD_CONST <code object setup_logger at 0x7fab8234af60, file "... | import logging
import sys
def setup_logger(level: int = logging.NOTSET) -> None:
logger.propagate = False
logger.setLevel(level)
handler = logging.StreamHandler(stream=sys.stderr)
logger.addHandler(handler)
logger = logging.getLogger(__name__)
setup_logger()
| data/Appium-Python-Client-3.1.1/appium/common/logger.py | 205 | 88 | 146,366 |
LOAD_CONST 1
LOAD_CONST ('JUnitXmlError', 'Attr', 'Element', 'JUnitXml', 'TestSuite', 'Property', 'Skipped', 'Failure', 'Error', 'TestCase', 'Properties', 'IntAttr', 'FloatAttr')
IMPORT_NAME junitparser
IMPORT_FROM JUnitXmlError
STORE_NAME JUnitXmlError
IMPORT_FROM Attr
STORE_NAME Attr
IMPORT_FROM Element
STORE_NAME El... | from .junitparser import (
JUnitXmlError,
Attr,
Element,
JUnitXml,
TestSuite,
Property,
Skipped,
Failure,
Error,
TestCase,
Properties,
IntAttr,
FloatAttr,
)
version = "3.1.2"
| data/junitparser-3.1.2/junitparser/__init__.py | 188 | 88 | 81,248 |
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 StateDeprecationElasticsearchIndexRule at 0x7faa761eeed0, file "f.py", line 4>
LOAD_CONST 'StateDeprecationElasticsearchIndexRule'
MAKE_F... | from saltlint.linter.rule import DeprecationRule
class StateDeprecationElasticsearchIndexRule(DeprecationRule):
id = "902"
state = "elasticsearch_index.absent"
deprecated_since = "2017.7.0"
version_added = "v0.5.0"
| data/salt-lint-0.9.2/saltlint/rules/StateDeprecationElasticsearchIndexRule.py | 226 | 88 | 436,349 |
LOAD_CONST "\nThis is part of the MSS Python's module.\nSource: https://github.com/BoboTiG/python-mss\n\nUsage example with a specific display.\n"
STORE_NAME __doc__
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME mss
STORE_NAME mss
LOAD_NAME mss
LOAD_ATTR mss
LOAD_CONST ':0.0'
LOAD_CONST ('display',)
CALL_FUNCTION
SETUP_WI... | """
This is part of the MSS Python's module.
Source: https://github.com/BoboTiG/python-mss
Usage example with a specific display.
"""
import mss
with mss.mss(display=":0.0") as sct:
for filename in sct.save():
print(filename)
| data/mss-9.0.1/docs/source/examples/linux_display_keyword.py | 162 | 88 | 62,947 |
LOAD_CONST <code object f1 at 0x7fab703f78a0, file "f.py", line 1>
LOAD_CONST 'f1'
MAKE_FUNCTION
STORE_NAME f1
LOAD_CONST <code object f1 at 0x7fab703f7300, file "f.py", line 5>
LOAD_CONST 'f1'
MAKE_FUNCTION
STORE_NAME f1
LOAD_CONST <code object f2 at 0x7fab703f7780, file "f.py", line 9>
LOAD_CONST 'f2'
MAKE_FUNCTION... | def f1(x):
return 1
def f1(x):
return "foo"
def f2(x):
pass
def f2(x, y):
pass
def f3(x):
return "asd" + x
def f3(x):
return 1 + x
| data/pytype-2024.2.13/pytype/tools/merge_pyi/test_data/redefine.py | 336 | 88 | 353,321 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME six
STORE_NAME six
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME platform
STORE_NAME platform
LOAD_CONST 1
LOAD_CONST ('CommentJsonTest',)
IMPORT_NAME
IMPORT_FROM CommentJsonTest
STORE_NAME CommentJsonTest
POP_TOP
LOAD_NAME six
LOAD_ATTR PY2
POP_JUMP_IF_FALSE
LOAD_CONST 0
LOAD_CO... | import six
import platform
from . import CommentJsonTest
if six.PY2:
from json.tests.test_indent import TestIndent
else:
from test.test_json.test_indent import TestIndent
version = platform.sys.version_info
class TestCommentJsonIndent(TestIndent, CommentJsonTest):
pass
| data/commentjson-0.9.0/commentjson/tests/test_json/test_indent.py | 272 | 88 | 251,775 |
LOAD_CONST 1
LOAD_CONST ('*',)
IMPORT_NAME buffers
IMPORT_STAR
LOAD_CONST 1
LOAD_CONST ('*',)
IMPORT_NAME compat
IMPORT_STAR
LOAD_CONST 1
LOAD_CONST ('*',)
IMPORT_NAME components
IMPORT_STAR
LOAD_CONST 1
LOAD_CONST ('*',)
IMPORT_NAME episode_generator
IMPORT_STAR
LOAD_CONST 1
LOAD_CONST ('*',)
IMPORT_NAME io
IMPORT... | from .buffers import *
from .compat import *
from .components import *
from .episode_generator import *
from .io import *
from .mini_batch import *
from .replay_buffer import *
from .trajectory_slicers import *
from .transition_pickers import *
from .utils import *
from .writers import *
| data/d3rlpy-2.4.0/d3rlpy/dataset/__init__.py | 197 | 88 | 167,024 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME six
STORE_NAME six
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME platform
STORE_NAME platform
LOAD_CONST 1
LOAD_CONST ('CommentJsonTest',)
IMPORT_NAME
IMPORT_FROM CommentJsonTest
STORE_NAME CommentJsonTest
POP_TOP
LOAD_NAME six
LOAD_ATTR PY2
POP_JUMP_IF_FALSE
LOAD_CONST 0
LOAD_CO... | import six
import platform
from . import CommentJsonTest
if six.PY2:
from json.tests.test_dump import TestDump
else:
from test.test_json.test_dump import TestDump
version = platform.sys.version_info
class TestCommentJsonDump(TestDump, CommentJsonTest):
pass
| data/commentjson-0.9.0/commentjson/tests/test_json/test_dump.py | 272 | 88 | 251,776 |
LOAD_CONST 'Fix incompatible imports and module references that must be fixed after\nfix_imports.'
STORE_NAME __doc__
LOAD_CONST 1
LOAD_CONST ('fix_imports',)
IMPORT_NAME
IMPORT_FROM fix_imports
STORE_NAME fix_imports
POP_TOP
LOAD_CONST 'dbm'
LOAD_CONST 'dbm'
LOAD_CONST ('whichdb', 'anydbm')
BUILD_CONST_KEY_MAP
STORE... | """Fix incompatible imports and module references that must be fixed after
fix_imports."""
from . import fix_imports
MAPPING = {"whichdb": "dbm", "anydbm": "dbm"}
class FixImports2(fix_imports.FixImports):
run_order = 7
mapping = MAPPING
| data/fissix-21.11.13/fissix/fixes/fix_imports2.py | 219 | 88 | 417,133 |
LOAD_CONST 0
LOAD_CONST ('ClientValue',)
IMPORT_NAME office365.runtime.client_value
IMPORT_FROM ClientValue
STORE_NAME ClientValue
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object SmtpServer at 0x7fab701ac5d0, file "f.py", line 4>
LOAD_CONST 'SmtpServer'
MAKE_FUNCTION
LOAD_CONST 'SmtpServer'
LOAD_NAME ClientValue
CALL... | from office365.runtime.client_value import ClientValue
class SmtpServer(ClientValue):
def __init__(self, value=None, is_readonly=None):
"""
:param str value:
:param bool is_readonly:
"""
self.Value = value
self.IsReadOnly = is_readonly
| data/Office365-REST-Python-Client-2.5.5/office365/sharepoint/tenant/administration/smtp_server.py | 222 | 88 | 189,342 |
LOAD_CONST 0
LOAD_CONST ('SuspiciousOperation',)
IMPORT_NAME server.core.exceptions
IMPORT_FROM SuspiciousOperation
STORE_NAME SuspiciousOperation
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object DisallowedModelAdminLookup at 0x7faa5f1b6e40, file "f.py", line 4>
LOAD_CONST 'DisallowedModelAdminLookup'
MAKE_FUNCTION
LO... | from server.core.exceptions import SuspiciousOperation
class DisallowedModelAdminLookup(SuspiciousOperation):
"""Invalid filter was passed to admin view via URL querystring"""
pass
class DisallowedModelAdminToField(SuspiciousOperation):
"""Invalid to_field was passed to admin view via URL query string"... | data/os_sys-2.1.4/server/contrib/admin/exceptions.py | 309 | 88 | 247,472 |
LOAD_CONST <code object x0 at 0x7fab4106c0c0, file "f.py", line 1>
LOAD_CONST 'x0'
MAKE_FUNCTION
STORE_NAME x0
LOAD_CONST <code object x1 at 0x7fab4106ce40, file "f.py", line 5>
LOAD_CONST 'x1'
MAKE_FUNCTION
STORE_NAME x1
LOAD_CONST (5,)
LOAD_CONST <code object x2 at 0x7fab4106cc90, file "f.py", line 9>
LOAD_CONST 'x... | def x0():
pass
def x1(a):
pass
def x2(a=5):
pass
def x3(a, b, c=5):
pass
def x4(a, b=5, **c):
pass
def funcattrs(**kwds):
return
| data/xdis-6.0.5/test/simple_source/def/02_def.py | 337 | 88 | 85,465 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME os
STORE_NAME os
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME subprocess
STORE_NAME subprocess
LOAD_CONST <code object run_uwsgi at 0x7fab81f7a150, file "f.py", line 5>
LOAD_CONST 'run_uwsgi'
MAKE_FUNCTION
STORE_NAME run_uwsgi
LOAD_CONST None
RETURN_VALUE
LOAD_CLOSURE cmd
BUILD_T... | import os
import subprocess
def run_uwsgi(cmd):
def _run(*args):
env = os.environ.copy()
return subprocess.Popen(
cmd + list(args), stdout=subprocess.PIPE, stderr=subprocess.STDOUT, env=env
)
return _run
| data/ddtrace-2.6.3/tests/contrib/uwsgi/__init__.py | 238 | 88 | 269,852 |
LOAD_CONST 0
LOAD_CONST ('TaskVineExecutor',)
IMPORT_NAME parsl.executors.taskvine.executor
IMPORT_FROM TaskVineExecutor
STORE_NAME TaskVineExecutor
POP_TOP
LOAD_CONST 0
LOAD_CONST ('TaskVineManagerConfig',)
IMPORT_NAME parsl.executors.taskvine.manager_config
IMPORT_FROM TaskVineManagerConfig
STORE_NAME TaskVineManage... | from parsl.executors.taskvine.executor import TaskVineExecutor
from parsl.executors.taskvine.manager_config import TaskVineManagerConfig
from parsl.executors.taskvine.factory_config import TaskVineFactoryConfig
__all__ = ["TaskVineExecutor", "TaskVineManagerConfig", "TaskVineFactoryConfig"]
| data/parsl-2024.2.19/parsl/executors/taskvine/__init__.py | 172 | 88 | 123,432 |
LOAD_CONST 0
LOAD_CONST ('collect_submodules', 'copy_metadata', 'is_module_satisfies')
IMPORT_NAME PyInstaller.utils.hooks
IMPORT_FROM collect_submodules
STORE_NAME collect_submodules
IMPORT_FROM copy_metadata
STORE_NAME copy_metadata
IMPORT_FROM is_module_satisfies
STORE_NAME is_module_satisfies
POP_TOP
LOAD_NAME col... | from PyInstaller.utils.hooks import (
collect_submodules,
copy_metadata,
is_module_satisfies,
)
hiddenimports = collect_submodules("eth_hash.backends")
if is_module_satisfies("eth-hash >= 0.6.0"):
datas = copy_metadata("eth-hash")
| data/pyinstaller-hooks-contrib-2024.1/src/_pyinstaller_hooks_contrib/hooks/stdhooks/hook-eth_hash.py | 148 | 88 | 282,429 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME asyncio
STORE_NAME asyncio
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME logging
STORE_NAME logging
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME sys
STORE_NAME sys
LOAD_NAME logging
LOAD_METHOD getLogger
LOAD_CONST 'uvicorn.error'
CALL_METHOD
STORE_NAME logger
LOAD_CONST (False,)
LOA... | import asyncio
import logging
import sys
logger = logging.getLogger("uvicorn.error")
def asyncio_setup(use_subprocess: bool = False) -> None:
if sys.platform == "win32" and use_subprocess:
asyncio.set_event_loop_policy(asyncio.WindowsSelectorEventLoopPolicy())
| data/uvicorn-0.27.1/uvicorn/loops/asyncio.py | 208 | 88 | 322,494 |
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 warnings
STORE_NAME warnings
LOAD_NAME warnings
LOAD_ATTR warn
LOAD_CONST "The 'hcloud.hcloud' module is deprecated, please import from the 'hcloud' module i... | from __future__ import annotations
import warnings
warnings.warn(
"The 'hcloud.hcloud' module is deprecated, please import from the 'hcloud' module instead (e.g. 'from hcloud import Client').",
DeprecationWarning,
stacklevel=2,
)
from ._client import * # noqa
| data/hcloud-1.33.2/hcloud/hcloud.py | 132 | 88 | 436,437 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME signal
STORE_NAME signal
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME sys
STORE_NAME sys
LOAD_NAME signal
LOAD_METHOD signal
LOAD_NAME signal
LOAD_ATTR SIGINT
LOAD_NAME signal
LOAD_ATTR SIG_DFL
CALL_METHOD
POP_TOP
LOAD_NAME getattr
LOAD_NAME signal
LOAD_CONST 'SIGHUP'
LOAD_CONST ... | import signal
import sys
signal.signal(signal.SIGINT, signal.SIG_DFL)
if getattr(signal, "SIGHUP", None) is not None:
signal.signal(signal.SIGHUP, signal.SIG_DFL)
print("ok, signal us")
sys.stdin.read()
sys.exit(1)
| data/twisted-23.10.0/src/twisted/test/process_signal.py | 165 | 88 | 384,286 |
LOAD_CONST 'Test for the exceptions modules'
STORE_NAME __doc__
LOAD_CONST 0
LOAD_CONST ('raises',)
IMPORT_NAME pytest
IMPORT_FROM raises
STORE_NAME raises
POP_TOP
LOAD_CONST 0
LOAD_CONST ('raise_isinstance_error',)
IMPORT_NAME imblearn.exceptions
IMPORT_FROM raise_isinstance_error
STORE_NAME raise_isinstance_error
P... | """Test for the exceptions modules"""
from pytest import raises
from imblearn.exceptions import raise_isinstance_error
def test_raise_isinstance_error():
var = 10.0
with raises(ValueError, match="has to be one of"):
raise_isinstance_error("var", [int], var)
| data/imbalanced-learn-0.12.0/imblearn/tests/test_exceptions.py | 235 | 88 | 395,901 |
LOAD_CONST 'pyspark backend utilities.'
STORE_NAME __doc__
LOAD_CONST <code object convert_to_list at 0x7f8e447b2d20, file "f.py", line 4>
LOAD_CONST 'convert_to_list'
MAKE_FUNCTION
STORE_NAME convert_to_list
LOAD_CONST None
RETURN_VALUE
BUILD_LIST
STORE_FAST converted_list
SETUP_LOOP to 50
LOAD_FAST args
GET_ITER
F... | """pyspark backend utilities."""
def convert_to_list(*args):
"""Converts arguments to a list"""
converted_list = []
for arg in args:
if isinstance(arg, list):
converted_list.extend(arg)
else:
converted_list.append(arg)
return converted_list
| data/pandera-0.18.0/pandera/backends/pyspark/utils.py | 166 | 88 | 121,931 |
LOAD_CONST 0
LOAD_CONST ('LocationDatabase', 'lookup')
IMPORT_NAME astral.geocoder
IMPORT_FROM LocationDatabase
STORE_NAME LocationDatabase
IMPORT_FROM lookup
STORE_NAME lookup
POP_TOP
LOAD_CONST 0
LOAD_CONST ('LocationInfo',)
IMPORT_NAME astral.location
IMPORT_FROM LocationInfo
STORE_NAME LocationInfo
POP_TOP
LOAD_N... | from astral.geocoder import LocationDatabase, lookup
from astral.location import LocationInfo
def test_BuenosAries(test_database: LocationDatabase):
b = lookup("Buenos Aires", test_database)
assert isinstance(b, LocationInfo)
assert b.timezone == "America/Buenos_Aires"
| data/astral-3.2/src/test/test_buenos_aries.py | 229 | 88 | 222,606 |
LOAD_CONST 0
LOAD_CONST ('Client',)
IMPORT_NAME elasticapm
IMPORT_FROM Client
STORE_NAME Client
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object GRPCApmClient at 0x7fab543e7db0, file "f.py", line 4>
LOAD_CONST 'GRPCApmClient'
MAKE_FUNCTION
LOAD_CONST 'GRPCApmClient'
LOAD_NAME Client
CALL_FUNCTION
STORE_NAME GRPCApmCli... | from elasticapm import Client
class GRPCApmClient(Client):
def __init__(self, *args, **kwargs) -> None:
import grpc
kwargs["framework_name"] = "grpc"
kwargs["framework_version"] = grpc.__version__
super().__init__(*args, **kwargs)
| data/elastic-apm-6.20.0/elasticapm/contrib/grpc/__init__.py | 299 | 88 | 144,237 |
LOAD_CONST 1
LOAD_CONST ('aggregations',)
IMPORT_NAME
IMPORT_FROM aggregations
STORE_NAME aggregations
POP_TOP
LOAD_CONST 1
LOAD_CONST ('metrics',)
IMPORT_NAME
IMPORT_FROM metrics
STORE_NAME metrics
POP_TOP
LOAD_CONST 1
LOAD_CONST ('stats',)
IMPORT_NAME
IMPORT_FROM stats
STORE_NAME stats
POP_TOP
LOAD_CONST 1
LOAD_CO... | from . import aggregations
from . import metrics
from . import stats
from . import ts_stats
__all__ = ["aggregations", "metrics", "stats", "ts_stats", "evaluate"]
def evaluate(metrics, data_batches, axis=None):
return metrics(axis).update_all(data_batches).get()
| data/gluonts-0.14.4/src/gluonts/ev/__init__.py | 216 | 88 | 139,979 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME os
STORE_NAME os
LOAD_CONST <code object init_data_working_dir at 0x7fab80248db0, file "f.py", line 4>
LOAD_CONST 'init_data_working_dir'
MAKE_FUNCTION
STORE_NAME init_data_working_dir
LOAD_CONST None
RETURN_VALUE
LOAD_FAST working_dir
JUMP_IF_TRUE_OR_POP
LOAD_CONST '/data'
ST... | import os
def init_data_working_dir(working_dir):
temp_working_dir = working_dir or "/data"
if not os.access(temp_working_dir, os.W_OK):
temp_working_dir = os.path.expanduser("~/cnvrg_datasets")
return temp_working_dir
| data/cnvrg-0.7.55/cnvrg/helpers/data_working_dir_helper.py | 167 | 88 | 219,382 |
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 IOBluetooth
STORE_NAME IOBluetooth
LOAD_BUILD_CLASS
LOAD_CONST <code object TestIOBluetoothObject at 0x7f8af162e420, file "f.py", line 6>
LOAD_CONST 'Test... | from PyObjCTools.TestSupport import TestCase
import IOBluetooth
class TestIOBluetoothObject(TestCase):
def test_constants(self):
self.assertEqual(
IOBluetooth.kBluetoothTargetDoesNotRespondToCallbackExceptionName,
"BluetoothTargetDoesNotRespondToCallbackException",
)
| data/pyobjc-framework-IOBluetooth-10.1/PyObjCTest/test_iobluetoothobject.py | 273 | 88 | 123,542 |
LOAD_CONST 0
LOAD_CONST ('TestCase',)
IMPORT_NAME PyObjCTools.TestSupport
IMPORT_FROM TestCase
STORE_NAME TestCase
POP_TOP
LOAD_CONST 0
LOAD_CONST ('simd',)
IMPORT_NAME objc
IMPORT_FROM simd
STORE_NAME simd
POP_TOP
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME PHASE
STORE_NAME PHASE
LOAD_BUILD_CLASS
LOAD_CONST <code obje... | from PyObjCTools.TestSupport import TestCase
from objc import simd
import PHASE
class TestPHASEMixer(TestCase):
def test_methods(self):
self.assertResultHasType(
PHASE.PHASEAmbientMixerDefinition.orientation, simd.simd_quatf.__typestr__
)
| data/pyobjc-framework-PHASE-10.1/PyObjCTest/test_phasemixer.py | 289 | 88 | 135,237 |
LOAD_CONST 'Cloudflare API via command line'
STORE_NAME __doc__
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME sys
STORE_NAME sys
LOAD_CONST 1
LOAD_CONST ('cli4',)
IMPORT_NAME cli4
IMPORT_FROM cli4
STORE_NAME cli4
POP_TOP
LOAD_CONST (None,)
LOAD_CONST <code object main at 0x7fab8233d540, file "f.py", line 7>
LOAD_CONST 'm... | """Cloudflare API via command line"""
import sys
from .cli4 import cli4
def main(args=None):
"""Cloudflare API via command line"""
if args is None:
args = sys.argv[1:]
cli4(args)
if __name__ == "__main__":
main()
| data/cloudflare-2.19.0/cli4/__main__.py | 190 | 88 | 146,478 |
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 logging
STORE_NAME logging
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME ptscripts
STORE_NAME ptscripts
LOAD_NAME ptscripts
LOAD_METHOD register_tools_module
LOAD... | from __future__ import annotations
import logging
import ptscripts
ptscripts.register_tools_module("tools.ci")
ptscripts.register_tools_module("tools.pre_commit")
for name in ("boto3", "botocore", "urllib3"):
logging.getLogger(name).setLevel(logging.INFO)
| data/salt-analytics-framework-0.5.0/tools/__init__.py | 181 | 88 | 417,012 |
LOAD_CONST 0
LOAD_CONST ('routers',)
IMPORT_NAME rest_framework
IMPORT_FROM routers
STORE_NAME routers
POP_TOP
LOAD_CONST 1
LOAD_CONST ('CommentViewSet', 'CommentViewSetWithPermissions')
IMPORT_NAME views
IMPORT_FROM CommentViewSet
STORE_NAME CommentViewSet
IMPORT_FROM CommentViewSetWithPermissions
STORE_NAME CommentV... | from rest_framework import routers
from .views import CommentViewSet, CommentViewSetWithPermissions
viewset_router = routers.DefaultRouter()
viewset_router.register("comments", CommentViewSet)
viewset_router.register("comments-with-permissions", CommentViewSetWithPermissions)
urlpatterns = viewset_router.urls
| data/drf-extensions-0.7.1/tests_app/tests/functional/mixins/list_destroy_model_mixin/urls.py | 172 | 88 | 68,840 |
LOAD_CONST 0
LOAD_CONST ('Enum',)
IMPORT_NAME enum
IMPORT_FROM Enum
STORE_NAME Enum
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object AttachmentType at 0x7fab4278ac90, file "f.py", line 4>
LOAD_CONST 'AttachmentType'
MAKE_FUNCTION
LOAD_CONST 'AttachmentType'
LOAD_NAME Enum
CALL_FUNCTION
STORE_NAME AttachmentType
LOAD_C... | from enum import Enum
class AttachmentType(Enum):
FILE = 1
GOOGLE_DRIVE = 2
LINK = 3
BOX_COM = 4
DROPBOX = 5
EVERNOTE = 6
EGNYTE = 7
ONEDRIVE = 8
SMARTSHEET = 9
| data/smartsheet-python-sdk-3.0.2/smartsheet/models/enums/attachment_type.py | 218 | 88 | 92,977 |
LOAD_CONST 0
LOAD_CONST ('annotations',)
IMPORT_NAME __future__
IMPORT_FROM annotations
STORE_NAME annotations
POP_TOP
LOAD_CONST 0
LOAD_CONST ('TYPE_CHECKING',)
IMPORT_NAME typing
IMPORT_FROM TYPE_CHECKING
STORE_NAME TYPE_CHECKING
POP_TOP
LOAD_CONST 0
LOAD_CONST ('AI',)
IMPORT_NAME viktor
IMPORT_FROM AI
STORE_NAME A... | from __future__ import annotations
from typing import TYPE_CHECKING
from viktor import AI # module part of autodoc_mock_imports # noqa: F401
if TYPE_CHECKING:
from typing import Literal # noqa: F401
class AnotherClass:
"""Another class is here"""
| data/sphinx_autodoc_typehints-2.0.0/tests/roots/test-resolve-typing-guard/demo_typing_guard_dummy.py | 218 | 88 | 185,877 |
LOAD_CONST 0
LOAD_CONST ('dataclass',)
IMPORT_NAME dataclasses
IMPORT_FROM dataclass
STORE_NAME dataclass
POP_TOP
LOAD_CONST 0
LOAD_CONST ('Optional',)
IMPORT_NAME typing
IMPORT_FROM Optional
STORE_NAME Optional
POP_TOP
LOAD_NAME dataclass
LOAD_BUILD_CLASS
LOAD_CONST <code object LightColorDeviceInfoParams at 0x7fab8... | from dataclasses import dataclass
from typing import Optional
@dataclass
class LightColorDeviceInfoParams(object):
device_on: Optional[bool] = None
brightness: Optional[int] = None
hue: Optional[int] = None
saturation: Optional[int] = None
color_temp: Optional[int] = None
| data/plugp100-4.0.3/plugp100/requests/set_device_info/set_light_color_info_params.py | 322 | 88 | 144,079 |
LOAD_CONST 'rlu_dmlab_explore_object_rewards_many dataset.'
STORE_NAME __doc__
LOAD_CONST 0
LOAD_CONST ('RluDmlabExploreObjectRewardsMany',)
IMPORT_NAME tensorflow_datasets.rl_unplugged.rlu_dmlab_explore_object_rewards_many.rlu_dmlab_explore_object_rewards_many
IMPORT_FROM RluDmlabExploreObjectRewardsMany
STORE_NAME R... | """rlu_dmlab_explore_object_rewards_many dataset."""
from tensorflow_datasets.rl_unplugged.rlu_dmlab_explore_object_rewards_many.rlu_dmlab_explore_object_rewards_many import (
RluDmlabExploreObjectRewardsMany,
)
| data/tensorflow-datasets-4.9.4/tensorflow_datasets/rl_unplugged/rlu_dmlab_explore_object_rewards_many/__init__.py | 128 | 88 | 255,098 |
SETUP_ANNOTATIONS
LOAD_CONST "\nLet's describe some attributes.\n\nAttributes:\n A: Alpha.\n B (bytes): Beta.\n C: Gamma.\n D: Delta.\n E (float): Epsilon.\n"
STORE_NAME __doc__
LOAD_CONST 0
STORE_NAME A
LOAD_NAME int
LOAD_NAME __annotations__
LOAD_CONST 'A'
STORE_SUBSCR
LOAD_CONST 'ŧ'
STORE_NAME B
LOAD_NAME str
LOAD... | """
Let's describe some attributes.
Attributes:
A: Alpha.
B (bytes): Beta.
C: Gamma.
D: Delta.
E (float): Epsilon.
"""
A: int = 0
B: str = "ŧ"
C: bool = True
D = 3.0
E = None
| data/pytkdocs-0.16.1/tests/fixtures/docstring_attributes_section.py | 154 | 88 | 46,833 |
LOAD_CONST 'The `ruptures.exceptions` module includes all custom warnings and error\nclasses used across ruptures.'
STORE_NAME __doc__
LOAD_BUILD_CLASS
LOAD_CONST <code object NotEnoughPoints at 0x7fab5434bf60, file "f.py", line 5>
LOAD_CONST 'NotEnoughPoints'
MAKE_FUNCTION
LOAD_CONST 'NotEnoughPoints'
LOAD_NAME Excep... | """The `ruptures.exceptions` module includes all custom warnings and error
classes used across ruptures."""
class NotEnoughPoints(Exception):
"""Raise this exception when there is not enough point to calculate a cost
function."""
class BadSegmentationParameters(Exception):
"""Raise this exception when a... | data/ruptures-1.1.9/src/ruptures/exceptions.py | 283 | 88 | 146,594 |
LOAD_CONST 0
LOAD_CONST ('Any',)
IMPORT_NAME typing
IMPORT_FROM Any
STORE_NAME Any
POP_TOP
LOAD_CONST 0
LOAD_CONST ('multimethod',)
IMPORT_NAME multimethod
IMPORT_FROM multimethod
STORE_NAME multimethod
POP_TOP
LOAD_CONST 0
LOAD_CONST ('Settings',)
IMPORT_NAME pandas_profiling.config
IMPORT_FROM Settings
STORE_NAME S... | from typing import Any
from multimethod import multimethod
from pandas_profiling.config import Settings
@multimethod
def check_dataframe(df: Any) -> None:
raise NotImplementedError()
@multimethod
def preprocess(config: Settings, df: Any) -> Any:
return df
| data/pandas-profiling-3.6.6/src/pandas_profiling/model/dataframe.py | 260 | 88 | 305,545 |
LOAD_CONST 0
LOAD_CONST ('App',)
IMPORT_NAME textual.app
IMPORT_FROM App
STORE_NAME App
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object ScreenApp at 0x7faa51f69ed0, file "f.py", line 4>
LOAD_CONST 'ScreenApp'
MAKE_FUNCTION
LOAD_CONST 'ScreenApp'
LOAD_NAME App
CALL_FUNCTION
STORE_NAME ScreenApp
LOAD_NAME __name__
LOA... | from textual.app import App
class ScreenApp(App):
def on_mount(self) -> None:
self.screen.styles.background = "darkblue"
self.screen.styles.border = ("heavy", "white")
if __name__ == "__main__":
app = ScreenApp()
app.run()
| data/textual-0.52.1/docs/examples/guide/styles/screen.py | 263 | 88 | 26,459 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME re
STORE_NAME re
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME sys
STORE_NAME sys
LOAD_NAME re
LOAD_METHOD compile
LOAD_CONST '^([a-zA-Z_-]+):.*?## (.*)$'
CALL_METHOD
STORE_NAME regex
SETUP_LOOP to 84
LOAD_NAME sys
LOAD_ATTR stdin
GET_ITER
FOR_ITER to 82
STORE_NAME line
LOAD_NAME... | import re
import sys
regex = re.compile(r"^([a-zA-Z_-]+):.*?## (.*)$")
for line in sys.stdin:
match = regex.match(line)
if match:
target, help = match.groups()
print("%-20s %s" % (target, help))
| data/cloup-3.0.4/scripts/make-help.py | 161 | 88 | 143,702 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME typing
STORE_NAME t
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME uuid
STORE_NAME uuid
LOAD_CONST 1
LOAD_CONST ('Message', 'meta')
IMPORT_NAME base
IMPORT_FROM Message
STORE_NAME Message
IMPORT_FROM meta
STORE_NAME meta
POP_TOP
LOAD_CONST 1
LOAD_CONST ('Container',)
IMPORT_NAME co... | import typing as t
import uuid
from .base import Message, meta
from .container import Container
@meta(message_type="task")
class Task(Message):
task_id: uuid.UUID
container_id: t.Optional[uuid.UUID]
container: t.Optional[Container]
task_buffer: str
| data/funcx-common-0.0.25/src/funcx_common/messagepack/message_types/task.py | 290 | 88 | 49,739 |
LOAD_CONST 1
LOAD_CONST ('Base',)
IMPORT_NAME base
IMPORT_FROM Base
STORE_NAME Base
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object Health at 0x7fab82334390, file "f.py", line 4>
LOAD_CONST 'Health'
MAKE_FUNCTION
LOAD_CONST 'Health'
LOAD_NAME Base
CALL_FUNCTION
STORE_NAME Health
LOAD_CONST None
RETURN_VALUE
LOAD_NAM... | from .base import Base
class Health(Base):
def __init__(self, client):
super(Health, self).__init__(client)
self.client = client
def check(self):
"""
:return:
"""
path = "/health"
r = self.client.GET(path)
return r
| data/grafana-client-3.11.1/grafana_client/elements/health.py | 292 | 88 | 384,446 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.