input stringlengths 28 198k | output stringlengths 3 71k | file stringlengths 19 330 | input_tokens int64 5 159k | output_tokens int64 3 9.07k | __index_level_0__ int64 2 449k |
|---|---|---|---|---|---|
LOAD_CONST 0
LOAD_CONST ('RegistrableObject', 'RegistrableInstance', 'yes')
IMPORT_NAME logilab.common.registry
IMPORT_FROM RegistrableObject
STORE_NAME RegistrableObject
IMPORT_FROM RegistrableInstance
STORE_NAME RegistrableInstance
IMPORT_FROM yes
STORE_NAME yes
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object MyReg... | from logilab.common.registry import RegistrableObject, RegistrableInstance, yes
class MyRegistrableInstance(RegistrableInstance):
__regid__ = "appobject3"
__select__ = yes()
__registry__ = "zereg"
instance = MyRegistrableInstance(__module__=__name__)
| data/logilab-common-2.0.0/test/data/regobjects2.py | 238 | 87 | 173,420 |
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_countnonzero_uint32_64_1():
raise NotImplementedError("Unable to generate any tests for kernel")
| data/awkward-cpp-29/tests-cpu-kernels/test_cpuawkward_reduce_countnonzero_uint32_64.py | 228 | 87 | 221,322 |
LOAD_CONST 0
LOAD_CONST ('Union',)
IMPORT_NAME typing
IMPORT_FROM Union
STORE_NAME Union
POP_TOP
LOAD_NAME str
LOAD_NAME Union
LOAD_NAME int
LOAD_NAME str
BUILD_TUPLE
BINARY_SUBSCR
LOAD_CONST ('s', 'return')
BUILD_CONST_KEY_MAP
LOAD_CONST <code object _to_int at 0x7faa7c2775d0, file "f.py", line 4>
LOAD_CONST '_to_int... | from typing import Union
def _to_int(s: str) -> Union[int, str]:
try:
return int(s)
except ValueError:
return s
__version__ = "2.11.1"
version_info = tuple(_to_int(s) for s in __version__.split("."))
| data/pybind11-2.11.1/pybind11/_version.py | 281 | 87 | 273,295 |
LOAD_CONST 'Tests for BaseResponse\n'
STORE_NAME __doc__
LOAD_CONST 0
LOAD_CONST ('TestCase',)
IMPORT_NAME unittest
IMPORT_FROM TestCase
STORE_NAME TestCase
POP_TOP
LOAD_CONST 0
LOAD_CONST ('verifyObject',)
IMPORT_NAME zope.interface.verify
IMPORT_FROM verifyObject
STORE_NAME verifyObject
POP_TOP
LOAD_CONST 0
LOAD_C... | """Tests for BaseResponse
"""
from unittest import TestCase
from zope.interface.verify import verifyObject
from zope.publisher.base import BaseResponse
from zope.publisher.interfaces import IResponse
class TestBaseResponse(TestCase):
def test_interface(self):
verifyObject(IResponse, BaseResponse())
| data/zope.publisher-7.0/src/zope/publisher/tests/test_baseresponse.py | 312 | 87 | 110,413 |
LOAD_CONST 0
LOAD_CONST ('OpRun',)
IMPORT_NAME onnx.reference.op_run
IMPORT_FROM OpRun
STORE_NAME OpRun
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object Mean at 0x7fab821a1780, file "f.py", line 4>
LOAD_CONST 'Mean'
MAKE_FUNCTION
LOAD_CONST 'Mean'
LOAD_NAME OpRun
CALL_FUNCTION
STORE_NAME Mean
LOAD_CONST None
RETURN_VA... | from onnx.reference.op_run import OpRun
class Mean(OpRun):
def _run(self, *args): # type: ignore
res = args[0].copy()
for m in args[1:]:
res += m
return ((res / len(args)).astype(args[0].dtype),)
| data/onnx-1.15.0/onnx/reference/ops/op_mean.py | 276 | 87 | 111,070 |
LOAD_CONST "Dataset definition for piqa.\n\nDEPRECATED!\nIf you want to use the PIQA dataset builder class, use:\ntfds.builder_cls('piqa')\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
POP_TOP
... | """Dataset definition for piqa.
DEPRECATED!
If you want to use the PIQA dataset builder class, use:
tfds.builder_cls('piqa')
"""
from tensorflow_datasets.core import lazy_builder_import
PIQA = lazy_builder_import.LazyBuilderImport("piqa")
| data/tensorflow-datasets-4.9.4/tensorflow_datasets/text/piqa.py | 132 | 87 | 256,159 |
LOAD_CONST 0
LOAD_CONST ('AppConfig',)
IMPORT_NAME django.apps
IMPORT_FROM AppConfig
STORE_NAME AppConfig
POP_TOP
LOAD_CONST 0
LOAD_CONST ('plugin_dir',)
IMPORT_NAME health_check.plugins
IMPORT_FROM plugin_dir
STORE_NAME plugin_dir
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object HealthCheckConfig at 0x7fab7016fdb0, ... | from django.apps import AppConfig
from health_check.plugins import plugin_dir
class HealthCheckConfig(AppConfig):
name = "health_check.contrib.rabbitmq"
def ready(self):
from .backends import RabbitMQHealthCheck
plugin_dir.register(RabbitMQHealthCheck)
| data/django-health-check-3.18.1/health_check/contrib/rabbitmq/apps.py | 286 | 87 | 287,471 |
LOAD_CONST 1
LOAD_CONST ('SparkArtifactLoader',)
IMPORT_NAME spark_artifact_loader
IMPORT_FROM SparkArtifactLoader
STORE_NAME SparkArtifactLoader
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object SparkPipelineLoader at 0x7fab6413eb70, file "f.py", line 4>
LOAD_CONST 'SparkPipelineLoader'
MAKE_FUNCTION
LOAD_CONST 'Spark... | from .spark_artifact_loader import SparkArtifactLoader
class SparkPipelineLoader(SparkArtifactLoader):
"""
Returns pipeline instance associated with this pipeline artifact.
:return: pipeline
:rtype: pyspark.ml.Pipeline
"""
def pipeline_instance(self):
return self.load()
| data/ibm_watson_machine_learning-1.0.347/ibm_watson_machine_learning/libs/repo/mlrepositoryartifact/spark_pipeline_loader.py | 258 | 87 | 252,075 |
LOAD_CONST 0
LOAD_CONST ('Decimal',)
IMPORT_NAME decimal
IMPORT_FROM Decimal
STORE_NAME Decimal
POP_TOP
LOAD_CONST 0
LOAD_CONST ('AttributeGetter',)
IMPORT_NAME braintree.attribute_getter
IMPORT_FROM AttributeGetter
STORE_NAME AttributeGetter
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object MontaryAmount at 0x7f8c5d0... | from decimal import Decimal
from braintree.attribute_getter import AttributeGetter
class MontaryAmount(AttributeGetter):
def __init__(self, attributes):
AttributeGetter.__init__(self, attributes)
if getattr(self, "value", None) is not None:
self.value = Decimal(self.value)
| data/braintree-4.26.0/braintree/montary_amount.py | 286 | 87 | 327,775 |
LOAD_CONST 1
LOAD_CONST ('helps',)
IMPORT_NAME generated._help
IMPORT_FROM helps
STORE_NAME helps
POP_TOP
SETUP_EXCEPT to 30
LOAD_CONST 1
LOAD_CONST ('helps',)
IMPORT_NAME manual._help
IMPORT_FROM helps
STORE_NAME helps
POP_TOP
POP_BLOCK
JUMP_FORWARD to 82
DUP_TOP
LOAD_NAME ImportError
COMPARE_OP exception match
POP... | from .generated._help import helps # pylint: disable=unused-import, disable=reimported
try:
from .manual._help import helps # pylint: disable=reimported
except ImportError as e:
if e.name.endswith("manual._help"):
pass
else:
raise e
| data/azure-cli-2.57.0/azure/cli/command_modules/marketplaceordering/_help.py | 158 | 87 | 377,326 |
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 None
IMPORT_NAME address
STORE_NAME address
LOAD_NAME address
LOAD_METHOD USAddress
CALL_METHOD
STORE_NAME addr
LOAD_CONST 'Robert Smith'
LOAD_NAME addr
STORE_ATTR n... | from __future__ import print_function
import address
addr = address.USAddress()
addr.name = "Robert Smith"
addr.street = "8 Oak Avenue"
addr.city = "Anytown"
addr.state = "NY"
addr.zip = 12341
print(addr.toxml("utf-8").decode("utf-8"))
| data/PyXB-1.2.6/examples/manual/demo4a1.py | 165 | 87 | 91,044 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME logging
STORE_NAME logging
LOAD_CONST 0
LOAD_CONST ('SecurityManager',)
IMPORT_NAME flask_appbuilder.security.sqla.manager
IMPORT_FROM SecurityManager
STORE_NAME SecurityManager
POP_TOP
LOAD_CONST 1
LOAD_CONST ('MyUser',)
IMPORT_NAME sec_models
IMPORT_FROM MyUser
STORE_NAME My... | import logging
from flask_appbuilder.security.sqla.manager import SecurityManager
from .sec_models import MyUser
from .sec_views import MyUserDBModelView
log = logging.getLogger(__name__)
class MySecurityManager(SecurityManager):
user_model = MyUser
userdbmodelview = MyUserDBModelView
| data/Flask-AppBuilder-4.4.0/examples/quickhowto2/app/sec.py | 253 | 87 | 317,421 |
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_bool_float64_64_1():
raise NotImplementedError("Unable to generate any tests for kernel")
| data/awkward-cpp-29/tests-cpu-kernels/test_cpuawkward_reduce_prod_bool_float64_64.py | 229 | 87 | 221,337 |
LOAD_CONST 1
LOAD_CONST ('get',)
IMPORT_NAME _internal.frameworks.fastai
IMPORT_FROM get
STORE_NAME get
POP_TOP
LOAD_CONST 1
LOAD_CONST ('get_runnable',)
IMPORT_NAME _internal.frameworks.fastai
IMPORT_FROM get_runnable
STORE_NAME get_runnable
POP_TOP
LOAD_CONST 1
LOAD_CONST ('load_model',)
IMPORT_NAME _internal.frame... | from ._internal.frameworks.fastai import get
from ._internal.frameworks.fastai import get_runnable
from ._internal.frameworks.fastai import load_model
from ._internal.frameworks.fastai import save_model
__all__ = ["load_model", "save_model", "get", "get_runnable"]
| data/bentoml-1.2.4/src/bentoml/fastai.py | 180 | 87 | 103,993 |
LOAD_CONST 1
LOAD_CONST ('GraphGenerator',)
IMPORT_NAME base
IMPORT_FROM GraphGenerator
STORE_NAME GraphGenerator
POP_TOP
LOAD_CONST 1
LOAD_CONST ('BAGraph',)
IMPORT_NAME ba_graph
IMPORT_FROM BAGraph
STORE_NAME BAGraph
POP_TOP
LOAD_CONST 1
LOAD_CONST ('ERGraph',)
IMPORT_NAME er_graph
IMPORT_FROM ERGraph
STORE_NAME ER... | from .base import GraphGenerator
from .ba_graph import BAGraph
from .er_graph import ERGraph
from .grid_graph import GridGraph
from .tree_graph import TreeGraph
__all__ = classes = [
"GraphGenerator",
"BAGraph",
"ERGraph",
"GridGraph",
"TreeGraph",
]
| data/torch_geometric-2.5.0/torch_geometric/datasets/graph_generator/__init__.py | 188 | 87 | 7,854 |
LOAD_CONST 0
LOAD_CONST ('annotations',)
IMPORT_NAME __future__
IMPORT_FROM annotations
STORE_NAME annotations
POP_TOP
LOAD_CONST ('sync',)
LOAD_CONST <code object assert_eq at 0x7f8ab7985c90, file "f.py", line 4>
LOAD_CONST 'assert_eq'
MAKE_FUNCTION
STORE_NAME assert_eq
LOAD_CONST None
RETURN_VALUE
LOAD_GLOBAL hasat... | from __future__ import annotations
def assert_eq(a, b, scheduler="sync"):
if hasattr(a, "compute"):
a = a.compute(scheduler=scheduler)
if hasattr(b, "compute"):
b = b.compute(scheduler=scheduler)
assert a == b
| data/dask-2024.2.0/dask/bag/utils.py | 190 | 87 | 426,882 |
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_bool_uint64_64_1():
raise NotImplementedError("Unable to generate any tests for kernel")
| data/awkward-cpp-29/tests-cpu-kernels/test_cpuawkward_reduce_prod_bool_uint64_64.py | 228 | 87 | 221,347 |
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_CONST 1
LOAD_CONST ('__author__', '__copyright__', '__email_... | from __future__ import absolute_import, division, print_function
from .__about__ import (
__author__,
__copyright__,
__email__,
__license__,
__summary__,
__title__,
__uri__,
__version__,
)
from .api import load, Pipfile
| data/pipfile-0.0.2/pipfile/__init__.py | 231 | 87 | 287,337 |
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_IndexedArray32_reduce_next_64_1():
raise NotImplementedError("Unable to generate any tests for kernel")
| data/awkward-cpp-29/tests-cpu-kernels/test_cpuawkward_IndexedArray32_reduce_next_64.py | 228 | 87 | 221,238 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME logging
STORE_NAME logging
LOAD_NAME logging
LOAD_METHOD getLogger
LOAD_NAME __name__
CALL_METHOD
STORE_NAME logger
LOAD_NAME logging
LOAD_METHOD Formatter
LOAD_CONST '[%(name)s: %(asctime)s] {%(lineno)d} %(levelname)s - %(message)s'
LOAD_CONST '%m-%d %H:%M:%S'
CALL_METHOD
ST... | import logging
logger = logging.getLogger(__name__)
logger_formatter = logging.Formatter(
"[%(name)s: %(asctime)s] {%(lineno)d} %(levelname)s - %(message)s", "%m-%d %H:%M:%S"
)
logger.propagate = False
| data/FLAML-2.1.1/flaml/automl/logger.py | 118 | 87 | 165,377 |
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_UnionArray32_flatten_length_64_1():
raise NotImplementedError("Unable to generate any tests for kernel")
| data/awkward-cpp-29/tests-cpu-kernels/test_cpuawkward_UnionArray32_flatten_length_64.py | 229 | 87 | 221,272 |
LOAD_CONST "Dataset definition for piqa.\n\nDEPRECATED!\nIf you want to use the PIQA dataset builder class, use:\ntfds.builder_cls('piqa')\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
POP_TOP
... | """Dataset definition for piqa.
DEPRECATED!
If you want to use the PIQA dataset builder class, use:
tfds.builder_cls('piqa')
"""
from tensorflow_datasets.core import lazy_builder_import
PIQA = lazy_builder_import.LazyBuilderImport("piqa")
| data/tfds-nightly-4.9.4.dev202402210044/tensorflow_datasets/text/piqa.py | 132 | 87 | 211,116 |
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_countnonzero_float64_64_1():
raise NotImplementedError("Unable to generate any tests for kernel")
| data/awkward-cpp-29/tests-cpu-kernels/test_cpuawkward_reduce_countnonzero_float64_64.py | 229 | 87 | 221,287 |
LOAD_CONST 'Doctest module for HTML comparison.\n\nUsage::\n\n >>> import lxml.html.usedoctest\n >>> # now do your HTML doctests ...\n\nSee `lxml.doctestcompare`.\n'
STORE_NAME __doc__
LOAD_CONST 0
LOAD_CONST ('doctestcompare',)
IMPORT_NAME lxml
IMPORT_FROM doctestcompare
STORE_NAME doctestcompare
POP_TOP
LOAD_NAME d... | """Doctest module for HTML comparison.
Usage::
>>> import lxml.html.usedoctest
>>> # now do your HTML doctests ...
See `lxml.doctestcompare`.
"""
from lxml import doctestcompare
doctestcompare.temp_install(html=True, del_module=__name__)
| data/lxml-5.1.0/src/lxml/html/usedoctest.py | 137 | 87 | 58,500 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME random
STORE_NAME random
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME numpy
STORE_NAME np
LOAD_CONST <code object set_global_seeds at 0x7fab8231b8a0, file "f.py", line 5>
LOAD_CONST 'set_global_seeds'
MAKE_FUNCTION
STORE_NAME set_global_seeds
LOAD_CONST None
RETURN_VALUE
SETUP_EX... | import random
import numpy as np
def set_global_seeds(seed):
try:
import tf.compat.v1 as tf
except ImportError:
pass
else:
tf.set_random_seed(seed)
np.random.seed(seed)
random.seed(seed)
return
| data/pybullet-3.2.6/examples/pybullet/gym/pybullet_utils/util.py | 226 | 87 | 128,571 |
LOAD_CONST 0
LOAD_CONST ('*',)
IMPORT_NAME numpy
IMPORT_STAR
LOAD_CONST 0
LOAD_CONST ('abs', 'max', 'min', 'round')
IMPORT_NAME numpy
IMPORT_FROM abs
STORE_NAME abs
IMPORT_FROM max
STORE_NAME max
IMPORT_FROM min
STORE_NAME min
IMPORT_FROM round
STORE_NAME round
POP_TOP
LOAD_CONST 1
LOAD_CONST ('*',)
IMPORT_NAME _alia... | from numpy import *
from numpy import abs, max, min, round
from ._aliases import *
__import__(__package__ + ".linalg")
from .linalg import matrix_transpose, vecdot
from ..common._helpers import *
__array_api_version__ = "2022.12"
| data/scipy-1.12.0/scipy/_lib/array_api_compat/array_api_compat/numpy/__init__.py | 196 | 87 | 245,787 |
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_min_int8_int8_64_1():
raise NotImplementedError("Unable to generate any tests for kernel")
| data/awkward-cpp-29/tests-cpu-kernels/test_cpuawkward_reduce_min_int8_int8_64.py | 229 | 87 | 221,263 |
LOAD_CONST 0
LOAD_CONST ('*',)
IMPORT_NAME cupy
IMPORT_STAR
LOAD_CONST 0
LOAD_CONST ('abs', 'max', 'min', 'round')
IMPORT_NAME cupy
IMPORT_FROM abs
STORE_NAME abs
IMPORT_FROM max
STORE_NAME max
IMPORT_FROM min
STORE_NAME min
IMPORT_FROM round
STORE_NAME round
POP_TOP
LOAD_CONST 1
LOAD_CONST ('*',)
IMPORT_NAME _aliase... | from cupy import *
from cupy import abs, max, min, round
from ._aliases import *
__import__(__package__ + ".linalg")
from .linalg import matrix_transpose, vecdot
from ..common._helpers import *
__array_api_version__ = "2022.12"
| data/scipy-1.12.0/scipy/_lib/array_api_compat/array_api_compat/cupy/__init__.py | 196 | 87 | 245,791 |
LOAD_CONST 'Tsuyoshi Hombashi'
STORE_NAME __author__
LOAD_CONST 'Copyright 2020, '
LOAD_NAME __author__
FORMAT_VALUE
BUILD_STRING
STORE_NAME __copyright__
LOAD_CONST 'MIT License'
STORE_NAME __license__
LOAD_CONST '0.1.4'
STORE_NAME __version__
LOAD_NAME __author__
STORE_NAME __maintainer__
LOAD_CONST 'tsuyoshi.ho... | __author__ = "Tsuyoshi Hombashi"
__copyright__ = f"Copyright 2020, {__author__}"
__license__ = "MIT License"
__version__ = "0.1.4"
__maintainer__ = __author__
__email__ = "tsuyoshi.hombashi@gmail.com"
| data/tcolorpy-0.1.4/tcolorpy/__version__.py | 112 | 87 | 193,137 |
LOAD_CONST 0
LOAD_CONST ('NumericValue',)
IMPORT_NAME pyomo.core.expr
IMPORT_FROM NumericValue
STORE_NAME NumericValue
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object MockFixedValue at 0x7faa74756c90, file "f.py", line 4>
LOAD_CONST 'MockFixedValue'
MAKE_FUNCTION
LOAD_CONST 'MockFixedValue'
LOAD_NAME NumericValue
CAL... | from pyomo.core.expr import NumericValue
class MockFixedValue(NumericValue):
value = 42
def __init__(self, v=42):
self.value = v
def is_fixed(self):
return True
def __call__(self, exception=True):
return self.value
| data/Pyomo-6.7.0/pyomo/repn/tests/ampl/helper.py | 344 | 87 | 24,119 |
LOAD_CONST 'Define constants for the Sensor.Community integration.'
STORE_NAME __doc__
LOAD_CONST 0
LOAD_CONST ('timedelta',)
IMPORT_NAME datetime
IMPORT_FROM timedelta
STORE_NAME timedelta
POP_TOP
LOAD_CONST 'sensor_id'
STORE_NAME ATTR_SENSOR_ID
LOAD_CONST 'sensor_id'
STORE_NAME CONF_SENSOR_ID
LOAD_NAME timedelta
... | """Define constants for the Sensor.Community integration."""
from datetime import timedelta
ATTR_SENSOR_ID = "sensor_id"
CONF_SENSOR_ID = "sensor_id"
DEFAULT_SCAN_INTERVAL = timedelta(minutes=10)
DOMAIN = "luftdaten"
| data/homeassistant-2024.2.2/homeassistant/components/luftdaten/const.py | 133 | 87 | 297,709 |
LOAD_CONST 0
LOAD_CONST ('Pytester',)
IMPORT_NAME _pytest.pytester
IMPORT_FROM Pytester
STORE_NAME Pytester
POP_TOP
LOAD_NAME Pytester
LOAD_CONST None
LOAD_CONST ('pytester', 'return')
BUILD_CONST_KEY_MAP
LOAD_CONST <code object test_519 at 0x7f8aac3da150, file "f.py", line 4>
LOAD_CONST 'test_519'
MAKE_FUNCTION
STORE... | from _pytest.pytester import Pytester
def test_519(pytester: Pytester) -> None:
pytester.copy_example("issue_519.py")
res = pytester.runpytest("issue_519.py")
res.assert_outcomes(passed=8)
| data/pytest-8.0.1/testing/examples/test_issue519.py | 194 | 87 | 427,637 |
LOAD_CONST 'Tsuyoshi Hombashi'
STORE_NAME __author__
LOAD_CONST 'Copyright 2017, '
LOAD_NAME __author__
FORMAT_VALUE
BUILD_STRING
STORE_NAME __copyright__
LOAD_CONST 'MIT License'
STORE_NAME __license__
LOAD_CONST '1.3.2'
STORE_NAME __version__
LOAD_NAME __author__
STORE_NAME __maintainer__
LOAD_CONST 'tsuyoshi.ho... | __author__ = "Tsuyoshi Hombashi"
__copyright__ = f"Copyright 2017, {__author__}"
__license__ = "MIT License"
__version__ = "1.3.2"
__maintainer__ = __author__
__email__ = "tsuyoshi.hombashi@gmail.com"
| data/typepy-1.3.2/typepy/__version__.py | 112 | 87 | 348,740 |
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_bool_float64_64_1():
raise NotImplementedError("Unable to generate any tests for kernel")
| data/awkward-cpp-29/tests-cpu-kernels/test_cpuawkward_reduce_sum_bool_float64_64.py | 228 | 87 | 221,298 |
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_IndexedArrayU32_index_of_nulls_1():
raise NotImplementedError("Unable to generate any tests for kernel")
| data/awkward-cpp-29/tests-cpu-kernels/test_cpuawkward_IndexedArrayU32_index_of_nulls.py | 228 | 87 | 221,299 |
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_min_uint8_uint8_64_1():
raise NotImplementedError("Unable to generate any tests for kernel")
| data/awkward-cpp-29/tests-cpu-kernels/test_cpuawkward_reduce_min_uint8_uint8_64.py | 229 | 87 | 221,302 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME os.path
STORE_NAME os
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME sys
STORE_NAME sys
LOAD_NAME os
LOAD_ATTR path
LOAD_METHOD dirname
LOAD_NAME os
LOAD_ATTR path
LOAD_METHOD dirname
LOAD_NAME os
LOAD_ATTR path
LOAD_METHOD abspath
LOAD_NAME __file__
CALL_METHOD
CALL_METHOD
CALL_MET... | import os.path
import sys
edit_dir = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
if edit_dir not in sys.path:
sys.path.insert(0, edit_dir)
from edit.pyshell import main # This is subject to change
main()
| data/os_sys-2.1.4/edit/edit_.py | 157 | 87 | 248,096 |
LOAD_CONST 0
LOAD_CONST ('setup',)
IMPORT_NAME setuptools
IMPORT_FROM setup
STORE_NAME setup
POP_TOP
LOAD_NAME setup
LOAD_CONST 'click-example-validation'
LOAD_CONST '1.0'
LOAD_CONST 'validation'
BUILD_LIST
LOAD_CONST True
LOAD_CONST 'click'
BUILD_LIST
LOAD_CONST '\n [console_scripts]\n validation=validation:cli... | from setuptools import setup
setup(
name="click-example-validation",
version="1.0",
py_modules=["validation"],
include_package_data=True,
install_requires=["click"],
entry_points="""
[console_scripts]
validation=validation:cli
""",
)
| data/click-8.1.7/examples/validation/setup.py | 123 | 87 | 117,098 |
LOAD_CONST 0
LOAD_CONST ('setup',)
IMPORT_NAME setuptools
IMPORT_FROM setup
STORE_NAME setup
POP_TOP
LOAD_NAME setup
LOAD_CONST 'click-example-repo'
LOAD_CONST '0.1'
LOAD_CONST 'repo'
BUILD_LIST
LOAD_CONST True
LOAD_CONST 'click'
BUILD_LIST
LOAD_CONST '\n [console_scripts]\n repo=repo:cli\n '
LOAD_CONST ('name',... | from setuptools import setup
setup(
name="click-example-repo",
version="0.1",
py_modules=["repo"],
include_package_data=True,
install_requires=["click"],
entry_points="""
[console_scripts]
repo=repo:cli
""",
)
| data/click-8.1.7/examples/repo/setup.py | 123 | 87 | 117,096 |
LOAD_CONST 'Tsuyoshi Hombashi'
STORE_NAME __author__
LOAD_CONST 'Copyright 2016, '
LOAD_NAME __author__
FORMAT_VALUE
BUILD_STRING
STORE_NAME __copyright__
LOAD_CONST 'MIT License'
STORE_NAME __license__
LOAD_CONST '3.2.0'
STORE_NAME __version__
LOAD_NAME __author__
STORE_NAME __maintainer__
LOAD_CONST 'tsuyoshi.ho... | __author__ = "Tsuyoshi Hombashi"
__copyright__ = f"Copyright 2016, {__author__}"
__license__ = "MIT License"
__version__ = "3.2.0"
__maintainer__ = __author__
__email__ = "tsuyoshi.hombashi@gmail.com"
| data/pathvalidate-3.2.0/pathvalidate/__version__.py | 112 | 87 | 224,058 |
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_bool_int64_64_1():
raise NotImplementedError("Unable to generate any tests for kernel")
| data/awkward-cpp-29/tests-cpu-kernels/test_cpuawkward_reduce_prod_bool_int64_64.py | 228 | 87 | 221,241 |
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_length_axis1_1():
raise NotImplementedError("Unable to generate any tests for kernel")
| data/awkward-cpp-29/tests-cpu-kernels/test_cpuawkward_ListOffsetArray32_rpad_length_axis1.py | 228 | 87 | 221,239 |
LOAD_CONST 0
LOAD_CONST ('Union',)
IMPORT_NAME typing
IMPORT_FROM Union
STORE_NAME Union
POP_TOP
LOAD_NAME str
LOAD_NAME Union
LOAD_NAME int
LOAD_NAME str
BUILD_TUPLE
BINARY_SUBSCR
LOAD_CONST ('s', 'return')
BUILD_CONST_KEY_MAP
LOAD_CONST <code object _to_int at 0x7faab83810c0, file "f.py", line 4>
LOAD_CONST '_to_int... | from typing import Union
def _to_int(s: str) -> Union[int, str]:
try:
return int(s)
except ValueError:
return s
__version__ = "2.11.1"
version_info = tuple(_to_int(s) for s in __version__.split("."))
| data/ntgcalls-1.1.1/deps/pybind11/pybind11/_version.py | 279 | 87 | 355,045 |
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 MapKit
STORE_NAME MapKit
LOAD_BUILD_CLASS
LOAD_CONST <code object TestMKMapCameraZoomRange... | from PyObjCTools.TestSupport import TestCase, min_os_level
import MapKit
class TestMKMapCameraZoomRange(TestCase):
@min_os_level("10.15")
def test_constants(self):
self.assertIsInstance(MapKit.MKMapCameraZoomDefault, float)
| data/pyobjc-framework-MapKit-10.1/PyObjCTest/test_mkmapcamerazoomrange.py | 310 | 87 | 405,963 |
LOAD_BUILD_CLASS
LOAD_CONST <code object BaseDatabaseClient at 0x7faa74ae39c0, file "f.py", line 1>
LOAD_CONST 'BaseDatabaseClient'
MAKE_FUNCTION
LOAD_CONST 'BaseDatabaseClient'
CALL_FUNCTION
STORE_NAME BaseDatabaseClient
LOAD_CONST None
RETURN_VALUE
LOAD_NAME __name__
STORE_NAME __module__
LOAD_CONST 'BaseDatabaseCli... | class BaseDatabaseClient:
"""Encapsulate backend-specific methods for opening a client shell."""
executable_name = None
def __init__(self, connection):
self.connection = connection
def runshell(self):
raise NotImplementedError(
"subclasses of BaseDatabaseClient must provid... | data/os_sys-2.1.4/server/db/backends/base/client.py | 275 | 87 | 247,904 |
LOAD_CONST 0
LOAD_CONST ('Union',)
IMPORT_NAME typing
IMPORT_FROM Union
STORE_NAME Union
POP_TOP
LOAD_NAME str
LOAD_NAME Union
LOAD_NAME int
LOAD_NAME str
BUILD_TUPLE
BINARY_SUBSCR
LOAD_CONST ('s', 'return')
BUILD_CONST_KEY_MAP
LOAD_CONST <code object _to_int at 0x7fab8235a9c0, file "f.py", line 4>
LOAD_CONST '_to_int... | from typing import Union
def _to_int(s: str) -> Union[int, str]:
try:
return int(s)
except ValueError:
return s
__version__ = "2.11.1"
version_info = tuple(_to_int(s) for s in __version__.split("."))
| data/ddtrace-2.6.3/ddtrace/appsec/_iast/_taint_tracking/_vendor/pybind11/pybind11/_version.py | 281 | 87 | 270,300 |
LOAD_CONST 1
LOAD_CONST ('module_from_param_with_module_name', 'param_with_module_name', 'user_param_name')
IMPORT_NAME param_store
IMPORT_FROM module_from_param_with_module_name
STORE_NAME module_from_param_with_module_name
IMPORT_FROM param_with_module_name
STORE_NAME param_with_module_name
IMPORT_FROM user_param_nam... | from .param_store import (
module_from_param_with_module_name,
param_with_module_name,
user_param_name,
)
__all__ = [
"module_from_param_with_module_name",
"param_with_module_name",
"user_param_name",
]
| data/pyro-ppl-1.9.0/pyro/params/__init__.py | 150 | 87 | 110,036 |
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_countnonzero_float32_64_1():
raise NotImplementedError("Unable to generate any tests for kernel")
| data/awkward-cpp-29/tests-cpu-kernels/test_cpuawkward_reduce_countnonzero_float32_64.py | 228 | 87 | 221,403 |
LOAD_CONST 0
LOAD_CONST ('FastAPI',)
IMPORT_NAME fastapi
IMPORT_FROM FastAPI
STORE_NAME FastAPI
POP_TOP
LOAD_CONST 0
LOAD_CONST ('BaseModel',)
IMPORT_NAME pydantic
IMPORT_FROM BaseModel
STORE_NAME BaseModel
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object Item at 0x7fab5434b420, file "f.py", line 5>
LOAD_CONST 'Item'... | from fastapi import FastAPI
from pydantic import BaseModel
class Item(BaseModel):
name: str
description: str | None = None
price: float
tax: float | None = None
app = FastAPI()
@app.post("/items/")
async def create_item(item: Item):
return item
| data/fastapi-0.109.2/docs_src/body/tutorial001_py310.py | 326 | 87 | 142,326 |
LOAD_CONST 'Microsoft Corp. <ptvshelp@microsoft.com>'
STORE_NAME __author__
LOAD_CONST '2.0.1'
STORE_NAME __version__
LOAD_CONST '2018-11-09'
STORE_NAME X_MS_VERSION
LOAD_CONST 4194304
STORE_NAME _LARGE_BLOB_UPLOAD_MAX_READ_BUFFER_SIZE
LOAD_CONST None
RETURN_VALUE | __author__ = "Microsoft Corp. <ptvshelp@microsoft.com>"
__version__ = "2.0.1"
X_MS_VERSION = "2018-11-09"
_LARGE_BLOB_UPLOAD_MAX_READ_BUFFER_SIZE = 4 * 1024 * 1024
| data/azure-multiapi-storage-1.2.0/azure/multiapi/storage/v2018_11_09/blob/_constants.py | 95 | 87 | 310,986 |
LOAD_CONST 0
LOAD_CONST ('SubProcessCompressor',)
IMPORT_NAME pipeline.compressors
IMPORT_FROM SubProcessCompressor
STORE_NAME SubProcessCompressor
POP_TOP
LOAD_CONST 0
LOAD_CONST ('settings',)
IMPORT_NAME pipeline.conf
IMPORT_FROM settings
STORE_NAME settings
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object ClosureC... | from pipeline.compressors import SubProcessCompressor
from pipeline.conf import settings
class ClosureCompressor(SubProcessCompressor):
def compress_js(self, js):
command = (settings.CLOSURE_BINARY, settings.CLOSURE_ARGUMENTS)
return self.execute_command(command, js)
| data/django-pipeline-3.0.0/pipeline/compressors/closure.py | 281 | 87 | 76,423 |
LOAD_CONST 0
LOAD_CONST ('is_module_satisfies',)
IMPORT_NAME PyInstaller.utils.hooks
IMPORT_FROM is_module_satisfies
STORE_NAME is_module_satisfies
POP_TOP
LOAD_NAME is_module_satisfies
LOAD_CONST 'scikit-learn >= 1.1.0'
CALL_FUNCTION
POP_JUMP_IF_FALSE
LOAD_CONST 'sklearn.utils._heap'
LOAD_CONST 'sklearn.utils._sort... | from PyInstaller.utils.hooks import is_module_satisfies
if is_module_satisfies("scikit-learn >= 1.1.0"):
hiddenimports = [
"sklearn.utils._heap",
"sklearn.utils._sorting",
"sklearn.utils._vector_sentinel",
]
| data/pyinstaller-hooks-contrib-2024.1/src/_pyinstaller_hooks_contrib/hooks/stdhooks/hook-sklearn.metrics.pairwise.py | 122 | 87 | 282,133 |
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_countnonzero_uint64_64_1():
raise NotImplementedError("Unable to generate any tests for kernel")
| data/awkward-cpp-29/tests-cpu-kernels/test_cpuawkward_reduce_countnonzero_uint64_64.py | 229 | 87 | 221,408 |
LOAD_CONST 'Relocate commands.'
STORE_NAME __doc__
LOAD_CONST 0
LOAD_CONST ('annotations',)
IMPORT_NAME __future__
IMPORT_FROM annotations
STORE_NAME annotations
POP_TOP
LOAD_CONST 1
LOAD_CONST ('ExecuteCommand',)
IMPORT_NAME common
IMPORT_FROM ExecuteCommand
STORE_NAME ExecuteCommand
POP_TOP
LOAD_BUILD_CLASS
LOAD_C... | """Relocate commands."""
from __future__ import annotations
from .common import ExecuteCommand
class SetRelocationState(ExecuteCommand):
"""Set relocation state command."""
name = "setRelocationState"
def __init__(self) -> None:
super().__init__({"mode": "manu"})
| data/deebot-client-5.2.1/deebot_client/commands/json/relocation.py | 315 | 87 | 357,725 |
LOAD_CONST 1
LOAD_CONST ('_K8S',)
IMPORT_NAME
IMPORT_FROM _K8S
STORE_NAME _K8S
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object _Others at 0x7fab70246e40, file "f.py", line 4>
LOAD_CONST '_Others'
MAKE_FUNCTION
LOAD_CONST '_Others'
LOAD_NAME _K8S
CALL_FUNCTION
STORE_NAME _Others
LOAD_BUILD_CLASS
LOAD_CONST <code obje... | from . import _K8S
class _Others(_K8S):
_type = "others"
_icon_dir = "resources/k8s/others"
class CRD(_Others):
_icon = "crd.png"
class PSP(_Others):
_icon = "psp.png"
| data/diagrams-0.23.4/diagrams/k8s/others.py | 359 | 87 | 206,062 |
LOAD_CONST 0
LOAD_CONST ('bgpvpn_stdattrs_net_assoc',)
IMPORT_NAME neutron_lib.api.definitions
IMPORT_FROM bgpvpn_stdattrs_net_assoc
STORE_NAME bgpvpn_stdattrs_net_assoc
POP_TOP
LOAD_CONST 0
LOAD_CONST ('base',)
IMPORT_NAME neutron_lib.tests.unit.api.definitions
IMPORT_FROM base
STORE_NAME base
POP_TOP
LOAD_BUILD_CLA... | from neutron_lib.api.definitions import bgpvpn_stdattrs_net_assoc
from neutron_lib.tests.unit.api.definitions import base
class BGPVPNNetAssocStdAttrDefintionTestCase(base.DefinitionBaseTestCase):
extension_module = bgpvpn_stdattrs_net_assoc
| data/neutron-lib-3.10.0/neutron_lib/tests/unit/api/definitions/test_bgpvpn_net_assoc_stdattrs.py | 279 | 87 | 384,879 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME benchling_api_client.v2.types
IMPORT_FROM v2
ROT_TWO
POP_TOP
IMPORT_FROM types
STORE_NAME root_types
POP_TOP
LOAD_NAME root_types
LOAD_ATTR Unset
STORE_NAME Unset
LOAD_NAME root_types
LOAD_ATTR UNSET
STORE_NAME UNSET
LOAD_NAME root_types
LOAD_ATTR FileJsonType
STORE_NAME File... | import benchling_api_client.v2.types as root_types
Unset = root_types.Unset
UNSET = root_types.UNSET
FileJsonType = root_types.FileJsonType
File = root_types.File
T = root_types.T
Response = root_types.Response
__all__ = ["File", "Response"]
| data/benchling_api_client-2.0.271/benchling_api_client/v2/stable/types.py | 141 | 87 | 71,889 |
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 None
IMPORT_NAME Pyro4
STORE_NAME Pyro4
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME Pyro4.socketutil
STORE_NAME Pyro4
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME bench
STO... | from __future__ import print_function
import Pyro4
import Pyro4.socketutil
import bench
Pyro4.Daemon.serveSimple(
{bench.bench: "example.benchmark"},
daemon=Pyro4.Daemon(host=Pyro4.socketutil.getIpAddress("")),
ns=False,
)
| data/Pyro4-4.82/examples/benchmark/server.py | 172 | 87 | 52,536 |
LOAD_CONST 0
LOAD_CONST ('TestCase', 'min_sdk_level')
IMPORT_NAME PyObjCTools.TestSupport
IMPORT_FROM TestCase
STORE_NAME TestCase
IMPORT_FROM min_sdk_level
STORE_NAME min_sdk_level
POP_TOP
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME Quartz
STORE_NAME Quartz
LOAD_BUILD_CLASS
LOAD_CONST <code object TestPDFPageOverlayVie... | from PyObjCTools.TestSupport import TestCase, min_sdk_level
import Quartz # noqa: F401
class TestPDFPageOverlayViewProvider(TestCase):
@min_sdk_level("13.0")
def test_protocols(self):
self.assertProtocolExists("PDFPageOverlayViewProvider")
| data/pyobjc-framework-Quartz-10.1/PyObjCTest/test_pdfpageoverlayviewprovider.py | 292 | 87 | 133,491 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME benchling_api_client.v2.extensions
STORE_NAME benchling_api_client
LOAD_NAME benchling_api_client
LOAD_ATTR v2
LOAD_ATTR extensions
LOAD_ATTR NotPresentError
STORE_NAME NotPresentError
LOAD_NAME benchling_api_client
LOAD_ATTR v2
LOAD_ATTR extensions
LOAD_ATTR UnknownType
STORE... | import benchling_api_client.v2.extensions
NotPresentError = benchling_api_client.v2.extensions.NotPresentError
UnknownType = benchling_api_client.v2.extensions.UnknownType
T = benchling_api_client.v2.extensions.T
Enums = benchling_api_client.v2.extensions.Enums
| data/benchling_api_client-2.0.271/benchling_api_client/v2/stable/extensions.py | 129 | 87 | 71,891 |
LOAD_CONST '../_base_/models/faster-rcnn_r50_fpn.py'
LOAD_CONST '../_base_/datasets/coco_detection.py'
LOAD_CONST '../_base_/schedules/schedule_1x.py'
LOAD_CONST '../_base_/default_runtime.py'
BUILD_LIST
STORE_NAME _base_
LOAD_CONST None
RETURN_VALUE | _base_ = [
"../_base_/models/faster-rcnn_r50_fpn.py",
"../_base_/datasets/coco_detection.py",
"../_base_/schedules/schedule_1x.py",
"../_base_/default_runtime.py",
]
| data/mmdet-3.3.0/mmdet/.mim/configs/faster_rcnn/faster-rcnn_r50_fpn_1x_coco.py | 93 | 87 | 151,110 |
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_bool_uint64_64_1():
raise NotImplementedError("Unable to generate any tests for kernel")
| data/awkward-cpp-29/tests-cpu-kernels/test_cpuawkward_reduce_sum_bool_uint64_64.py | 229 | 87 | 221,415 |
LOAD_CONST '\n==========\nFlyte Deck\n==========\n\n.. currentmodule:: flytekit.deck\n\nContains deck renderers provided by flytekit.\n\n.. autosummary::\n :toctree: generated/\n\n Deck\n TopFrameRenderer\n'
STORE_NAME __doc__
LOAD_CONST 1
LOAD_CONST ('Deck',)
IMPORT_NAME deck
IMPORT_FROM Deck
STORE_NAME Deck
POP_TOP
... | """
==========
Flyte Deck
==========
.. currentmodule:: flytekit.deck
Contains deck renderers provided by flytekit.
.. autosummary::
:toctree: generated/
Deck
TopFrameRenderer
"""
from .deck import Deck
from .renderer import TopFrameRenderer
| data/flytekit-1.10.7/flytekit/deck/__init__.py | 141 | 87 | 52,499 |
LOAD_CONST 0
LOAD_CONST ('HourlyJob',)
IMPORT_NAME django_extensions.management.jobs
IMPORT_FROM HourlyJob
STORE_NAME HourlyJob
POP_TOP
LOAD_CONST 0
LOAD_CONST ('mock',)
IMPORT_NAME unittest
IMPORT_FROM mock
STORE_NAME mock
POP_TOP
LOAD_NAME mock
LOAD_METHOD MagicMock
CALL_METHOD
STORE_NAME HOURLY_JOB_MOCK
LOAD_BUIL... | from django_extensions.management.jobs import HourlyJob
from unittest import mock
HOURLY_JOB_MOCK = mock.MagicMock()
class Job(HourlyJob):
help = "My sample hourly job."
def execute(self):
HOURLY_JOB_MOCK()
| data/django-extensions-3.2.3/tests/testapp/jobs/hourly/test_hourly_job.py | 255 | 87 | 300,198 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME os
STORE_NAME os
LOAD_CONST 1048576
STORE_NAME MB
LOAD_NAME os
LOAD_METHOD getenv
LOAD_CONST 'TEST_ROOT'
LOAD_CONST 'pydoop_test_tree'
CALL_METHOD
STORE_NAME TEST_ROOT
LOAD_CONST <code object isdir at 0x7fa6d545e810, file "f.py", line 7>
LOAD_CONST 'isdir'
MAKE_FUNCTION
STORE... | import os
MB = 2**20
TEST_ROOT = os.getenv("TEST_ROOT", "pydoop_test_tree")
def isdir(fs, d):
try:
info = fs.get_path_info(d)
except IOError:
return False
return info["kind"] == "directory"
| data/pydoop-2.0.0/examples/hdfs/common.py | 196 | 87 | 44,976 |
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 GameplayKit
STORE_NAME GameplayKit
LOAD_BUILD_CLASS
LOAD_CONST <code object TestGKDecision... | from PyObjCTools.TestSupport import TestCase, min_os_level
import GameplayKit
class TestGKDecisionTree(TestCase):
@min_os_level("10.13")
def testMethods(self):
self.assertResultIsBOOL(GameplayKit.GKDecisionTree.exportToURL_error_)
| data/pyobjc-framework-GameplayKit-10.1/PyObjCTest/test_gkdecisiontree.py | 291 | 87 | 57,614 |
LOAD_CONST 0
LOAD_CONST ('BasicFieldSet', 'GenericFieldSet')
IMPORT_NAME hachoir.field
IMPORT_FROM BasicFieldSet
STORE_NAME BasicFieldSet
IMPORT_FROM GenericFieldSet
STORE_NAME GenericFieldSet
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object FieldSet at 0x7faa7c16a810, file "f.py", line 4>
LOAD_CONST 'FieldSet'
MAKE_F... | from hachoir.field import BasicFieldSet, GenericFieldSet
class FieldSet(GenericFieldSet):
def __init__(self, parent, name, *args, **kw):
assert issubclass(parent.__class__, BasicFieldSet)
GenericFieldSet.__init__(self, parent, name, parent.stream, *args, **kw)
| data/hachoir-3.3.0/hachoir/field/field_set.py | 270 | 87 | 203,694 |
LOAD_CONST 0
LOAD_CONST ('View',)
IMPORT_NAME slack_sdk.models.views
IMPORT_FROM View
STORE_NAME View
POP_TOP
LOAD_CONST 0
LOAD_CONST ('ViewState',)
IMPORT_NAME slack_sdk.models.views
IMPORT_FROM ViewState
STORE_NAME ViewState
POP_TOP
LOAD_CONST 0
LOAD_CONST ('ViewStateValue',)
IMPORT_NAME slack_sdk.models.views
IMPO... | from slack_sdk.models.views import View # noqa
from slack_sdk.models.views import ViewState # noqa
from slack_sdk.models.views import ViewStateValue # noqa
from slack import deprecation
deprecation.show_message(__name__, "slack_sdk.models.views")
| data/slack_sdk-3.27.0/slack/web/classes/views.py | 161 | 87 | 207,008 |
LOAD_CONST 0
LOAD_CONST ('Chalice',)
IMPORT_NAME chalice
IMPORT_FROM Chalice
STORE_NAME Chalice
POP_TOP
LOAD_NAME Chalice
LOAD_CONST '{{app_name}}'
LOAD_CONST ('app_name',)
CALL_FUNCTION
STORE_NAME app
LOAD_NAME app
LOAD_METHOD lambda_function
CALL_METHOD
LOAD_CONST <code object first_function at 0x7fab42062930, file... | from chalice import Chalice
app = Chalice(app_name="{{app_name}}")
@app.lambda_function()
def first_function(event, context):
return {"hello": "world"}
@app.lambda_function()
def second_function(event, context):
return {"hello": "world2"}
| data/chalice-1.30.0/chalice/templates/0007-lambda-only/app.py | 218 | 87 | 372,751 |
LOAD_CONST '\ntrimesh/exchange\n----------------\n\nContains the importers and exporters for various mesh formats.\n\nNote that *you should probably not be using these directly*, if\nyou call `trimesh.load` it will then call and wrap the result\nof the various loaders:\n\n```\nmesh = trimesh.load(file_name)\n```\n'
STO... | """
trimesh/exchange
----------------
Contains the importers and exporters for various mesh formats.
Note that *you should probably not be using these directly*, if
you call `trimesh.load` it will then call and wrap the result
of the various loaders:
```
mesh = trimesh.load(file_name)
```
"""
| data/trimesh-4.1.4/trimesh/exchange/__init__.py | 106 | 87 | 197,104 |
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 SharedWithYouCore
STORE_NAME SharedWithYouCore
LOAD_BUILD_CLASS
LOAD_CONST <code object TestSWAction at 0x7fab424acd20, file "f.py", line 5>
LOAD_CONST 'T... | from PyObjCTools.TestSupport import TestCase
import SharedWithYouCore
class TestSWAction(TestCase):
def test_constants(self):
self.assertIsTypedEnum(SharedWithYouCore.SWCollaborationIdentifier, str)
self.assertIsTypedEnum(SharedWithYouCore.SWLocalCollaborationIdentifier, str)
| data/pyobjc-framework-SharedWithYouCore-10.1/PyObjCTest/test_swcollaborationmetadata.py | 273 | 87 | 229,799 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME mock
STORE_NAME mock
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME runpy
STORE_NAME runpy
LOAD_CONST <code object test_cli at 0x7fab703f7930, file "f.py", line 5>
LOAD_CONST 'test_cli'
MAKE_FUNCTION
STORE_NAME test_cli
LOAD_CONST None
RETURN_VALUE
LOAD_GLOBAL mock
LOAD_METHOD patc... | import mock
import runpy
def test_cli():
with mock.patch("click.CommandCollection") as mock_cli:
runpy.run_module("pycobertura", run_name="__main__")
mock_cli.assert_called_once()
mock_cli.return_value.assert_called_once_with()
| data/pycobertura-3.3.1/tests/test_main.py | 205 | 87 | 353,396 |
LOAD_CONST 2
LOAD_CONST ('Provider',)
IMPORT_NAME
IMPORT_FROM Provider
STORE_NAME AutomotiveProvider
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object Provider at 0x7faa53e709c0, file "f.py", line 4>
LOAD_CONST 'Provider'
MAKE_FUNCTION
LOAD_CONST 'Provider'
LOAD_NAME AutomotiveProvider
CALL_FUNCTION
STORE_NAME Provider... | from .. import Provider as AutomotiveProvider
class Provider(AutomotiveProvider):
"""Implement automotive provider for ``da_DK`` locale.
Source: https://en.wikipedia.org/wiki/Vehicle_registration_plates_of_Denmark
"""
license_formats = ("?? ## ###",)
| data/Faker-23.2.1/faker/providers/automotive/da_DK/__init__.py | 184 | 87 | 16,576 |
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_countnonzero_uint16_64_1():
raise NotImplementedError("Unable to generate any tests for kernel")
| data/awkward-cpp-29/tests-cpu-kernels/test_cpuawkward_reduce_countnonzero_uint16_64.py | 228 | 87 | 221,353 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME subprocess
STORE_NAME subprocess
LOAD_CONST 0
LOAD_CONST ('BaseDatabaseClient',)
IMPORT_NAME server.db.backends.base.client
IMPORT_FROM BaseDatabaseClient
STORE_NAME BaseDatabaseClient
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object DatabaseClient at 0x7fab822f90c0, file "f.p... | import subprocess
from server.db.backends.base.client import BaseDatabaseClient
class DatabaseClient(BaseDatabaseClient):
executable_name = "sqlite3"
def runshell(self):
args = [self.executable_name, self.connection.settings_dict["NAME"]]
subprocess.check_call(args)
| data/os_sys-2.1.4/server/db/backends/sqlite3/client.py | 263 | 87 | 247,865 |
LOAD_CONST 0
LOAD_CONST ('Change',)
IMPORT_NAME office365.sharepoint.changes.change
IMPORT_FROM Change
STORE_NAME Change
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object ChangeAlert at 0x7fab701ac9c0, file "f.py", line 4>
LOAD_CONST 'ChangeAlert'
MAKE_FUNCTION
LOAD_CONST 'ChangeAlert'
LOAD_NAME Change
CALL_FUNCTION
ST... | from office365.sharepoint.changes.change import Change
class ChangeAlert(Change):
"""Specifies a change from an alert."""
@property
def alert_id(self):
"""Identifies the changed alert.
:rtype: str or None
"""
return self.properties.get("AlertId", None)
| data/Office365-REST-Python-Client-2.5.5/office365/sharepoint/changes/alert.py | 226 | 87 | 189,405 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME click
STORE_NAME click
LOAD_CONST '0.4.0'
STORE_NAME __version__
LOAD_NAME hasattr
LOAD_NAME click
LOAD_CONST 'get_current_context'
CALL_FUNCTION
POP_JUMP_IF_TRUE
LOAD_NAME RuntimeError
LOAD_CONST 'You need Click 5.0.'
CALL_FUNCTION
RAISE_VARARGS
LOAD_CONST 1
LOAD_CONST ('Cl... | import click
__version__ = "0.4.0"
if not hasattr(click, "get_current_context"):
raise RuntimeError("You need Click 5.0.")
from .core import (
ClickHandler,
ColorFormatter,
basic_config,
)
from .options import simple_verbosity_option
| data/click-log-0.4.0/click_log/__init__.py | 165 | 87 | 117,728 |
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_countnonzero_int64_64_1():
raise NotImplementedError("Unable to generate any tests for kernel")
| data/awkward-cpp-29/tests-cpu-kernels/test_cpuawkward_reduce_countnonzero_int64_64.py | 229 | 87 | 221,356 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME subprocess
STORE_NAME subprocess
LOAD_CONST 0
LOAD_CONST ('lru_cache',)
IMPORT_NAME functools
IMPORT_FROM lru_cache
STORE_NAME lru_cache
POP_TOP
LOAD_NAME lru_cache
LOAD_CONST None
LOAD_CONST ('maxsize',)
CALL_FUNCTION
LOAD_NAME str
LOAD_CONST ('root',)
BUILD_CONST_KEY_MAP
LO... | import subprocess
from functools import lru_cache
@lru_cache(maxsize=None)
def get_commit_hash(root: str):
return (
subprocess.check_output(["git", "rev-parse", "HEAD"], cwd=root)
.decode("utf-8")
.strip()
)
| data/hatch_vcs-0.4.0/hatch_vcs/vcs_utils.py | 201 | 87 | 78,019 |
LOAD_BUILD_CLASS
LOAD_CONST <code object _EntityInfo at 0x7fab823bfed0, file "f.py", line 1>
LOAD_CONST '_EntityInfo'
MAKE_FUNCTION
LOAD_CONST '_EntityInfo'
CALL_FUNCTION
STORE_NAME _EntityInfo
LOAD_CONST None
RETURN_VALUE
LOAD_NAME __name__
STORE_NAME __module__
LOAD_CONST '_EntityInfo'
STORE_NAME __qualname__
LOAD_... | class _EntityInfo:
def __init__(
self, create_func, delete_all_column_name=None, create_identifier_func=None
):
self.create_func = create_func
self.delete_all_column_name = delete_all_column_name
self.create_identifier_func = create_identifier_func
| data/bingads-13.0.18.1/bingads/v13/internal/bulk/entity_info.py | 204 | 87 | 183,920 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME os
STORE_NAME os
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME sys
STORE_NAME sys
LOAD_NAME sys
LOAD_ATTR argv
LOAD_CONST 1
BINARY_SUBSCR
STORE_NAME out
SETUP_EXCEPT to 42
LOAD_NAME os
LOAD_METHOD mkdir
LOAD_NAME out
CALL_METHOD
POP_TOP
POP_BLOCK
JUMP_FORWARD to 62
DUP_TOP
LOAD_... | import os
import sys
out = sys.argv[1]
try:
os.mkdir(out)
except FileExistsError:
pass
for name in ("a", "b", "c"):
with open(os.path.join(out, name + ".html"), "w") as f:
f.write(name)
| data/numpy-1.26.4/vendored-meson/meson/test cases/common/123 custom target directory install/docgen.py | 215 | 87 | 363,708 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME benchling_api_client.v2.types
IMPORT_FROM v2
ROT_TWO
POP_TOP
IMPORT_FROM types
STORE_NAME root_types
POP_TOP
LOAD_NAME root_types
LOAD_ATTR Unset
STORE_NAME Unset
LOAD_NAME root_types
LOAD_ATTR UNSET
STORE_NAME UNSET
LOAD_NAME root_types
LOAD_ATTR FileJsonType
STORE_NAME File... | import benchling_api_client.v2.types as root_types
Unset = root_types.Unset
UNSET = root_types.UNSET
FileJsonType = root_types.FileJsonType
File = root_types.File
T = root_types.T
Response = root_types.Response
__all__ = ["File", "Response"]
| data/benchling_api_client-2.0.271/benchling_api_client/v2/alpha/types.py | 141 | 87 | 71,394 |
LOAD_CONST 0
LOAD_CONST ('path',)
IMPORT_NAME django.urls
IMPORT_FROM path
STORE_NAME path
POP_TOP
LOAD_CONST 1
LOAD_CONST ('admin',)
IMPORT_NAME
IMPORT_FROM admin
STORE_NAME admin
POP_TOP
LOAD_NAME path
LOAD_CONST 'admin/'
LOAD_NAME admin
LOAD_ATTR site
LOAD_ATTR urls
CALL_FUNCTION
LOAD_NAME path
LOAD_CONST 'admin2... | from django.urls import path
from . import admin
urlpatterns = [
path("admin/", admin.site.urls),
path("admin2/", admin.site2.urls),
path("admin3/", admin.site3.urls),
path("admin4/", admin.site4.urls),
]
| data/Django-5.0.2/tests/admin_inlines/urls.py | 152 | 87 | 325,252 |
LOAD_CONST 'Repository API: A helper library for repository implementations\n\nThis module is intended to make any "metadata editing" applications easier to\nimplement: this includes repository applications, CI integration components as\nwell as developer and signing tools.\n\nThe repository module is not considered pa... | """Repository API: A helper library for repository implementations
This module is intended to make any "metadata editing" applications easier to
implement: this includes repository applications, CI integration components as
well as developer and signing tools.
The repository module is not considered part of the stabl... | data/tuf-3.1.1/tuf/repository/__init__.py | 129 | 87 | 331,635 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME pytest
STORE_NAME pytest
LOAD_CONST 0
LOAD_CONST ('like_num',)
IMPORT_NAME spacy.lang.pt.lex_attrs
IMPORT_FROM like_num
STORE_NAME like_num
POP_TOP
LOAD_NAME pytest
LOAD_ATTR mark
LOAD_METHOD parametrize
LOAD_CONST 'word'
LOAD_CONST 'onze'
LOAD_CONST 'quadragésimo'
BUILD_LIST
... | import pytest
from spacy.lang.pt.lex_attrs import like_num
@pytest.mark.parametrize("word", ["onze", "quadragésimo"])
def test_pt_lex_attrs_capitals(word):
assert like_num(word)
assert like_num(word.upper())
| data/spacy-3.7.4/spacy/tests/lang/pt/test_text.py | 220 | 87 | 147,363 |
LOAD_CONST 5
LOAD_CONST ('GlossaryNodeInfoClass',)
IMPORT_NAME schema_classes
IMPORT_FROM GlossaryNodeInfoClass
STORE_NAME GlossaryNodeInfoClass
POP_TOP
LOAD_CONST 5
LOAD_CONST ('GlossaryRelatedTermsClass',)
IMPORT_NAME schema_classes
IMPORT_FROM GlossaryRelatedTermsClass
STORE_NAME GlossaryRelatedTermsClass
POP_TOP
... | from .....schema_classes import GlossaryNodeInfoClass
from .....schema_classes import GlossaryRelatedTermsClass
from .....schema_classes import GlossaryTermInfoClass
GlossaryNodeInfo = GlossaryNodeInfoClass
GlossaryRelatedTerms = GlossaryRelatedTermsClass
GlossaryTermInfo = GlossaryTermInfoClass
| data/acryl-datahub-0.12.1.5/src/datahub/metadata/com/linkedin/pegasus2avro/glossary/__init__.py | 174 | 87 | 435,668 |
LOAD_CONST 7
LOAD_CONST ('ConditionClass',)
IMPORT_NAME schema_classes
IMPORT_FROM ConditionClass
STORE_NAME ConditionClass
POP_TOP
LOAD_CONST 7
LOAD_CONST ('ConjunctiveCriterionClass',)
IMPORT_NAME schema_classes
IMPORT_FROM ConjunctiveCriterionClass
STORE_NAME ConjunctiveCriterionClass
POP_TOP
LOAD_CONST 7
LOAD_CON... | from .......schema_classes import ConditionClass
from .......schema_classes import ConjunctiveCriterionClass
from .......schema_classes import CriterionClass
from .......schema_classes import FilterClass
Condition = ConditionClass
ConjunctiveCriterion = ConjunctiveCriterionClass
Criterion = CriterionClass
Filter = Fi... | data/acryl-datahub-0.12.1.5/src/datahub/metadata/com/linkedin/pegasus2avro/metadata/query/filter/__init__.py | 184 | 87 | 435,669 |
LOAD_CONST 'oauthlib integration for Google Auth\n\nThis library provides `oauthlib <https://oauthlib.readthedocs.io/>`__\nintegration with `google-auth <https://google-auth.readthedocs.io/>`__.\n'
STORE_NAME __doc__
LOAD_CONST 1
LOAD_CONST ('get_user_credentials',)
IMPORT_NAME interactive
IMPORT_FROM get_user_credent... | """oauthlib integration for Google Auth
This library provides `oauthlib <https://oauthlib.readthedocs.io/>`__
integration with `google-auth <https://google-auth.readthedocs.io/>`__.
"""
from .interactive import get_user_credentials
__all__ = ["get_user_credentials"]
| data/google-auth-oauthlib-1.2.0/google_auth_oauthlib/__init__.py | 128 | 87 | 117,753 |
LOAD_BUILD_CLASS
LOAD_CONST <code object BaseService at 0x7f8e2fe3c780, file "f.py", line 1>
LOAD_CONST 'BaseService'
MAKE_FUNCTION
LOAD_CONST 'BaseService'
LOAD_NAME object
CALL_FUNCTION
STORE_NAME BaseService
LOAD_CONST None
RETURN_VALUE
LOAD_NAME __name__
STORE_NAME __module__
LOAD_CONST 'BaseService'
STORE_NAME __... | class BaseService(object):
def __init__(self, client):
self.client = client
@property
def collection_class(self):
raise NotImplementedError
def from_api(self, api_response):
obj = self.collection_class()
obj.from_response(api_response)
return obj
| data/python-intercom-3.1.0/intercom/service/base_service.py | 319 | 87 | 396,829 |
LOAD_CONST 0
LOAD_CONST ('Enum',)
IMPORT_NAME enum
IMPORT_FROM Enum
STORE_NAME Enum
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object EvidenceRemediationStatus at 0x7fab4298e150, file "f.py", line 4>
LOAD_CONST 'EvidenceRemediationStatus'
MAKE_FUNCTION
LOAD_CONST 'EvidenceRemediationStatus'
LOAD_NAME str
LOAD_NAME Enum... | from enum import Enum
class EvidenceRemediationStatus(str, Enum):
None_ = ("none",)
Remediated = ("remediated",)
Prevented = ("prevented",)
Blocked = ("blocked",)
NotFound = ("notFound",)
UnknownFutureValue = ("unknownFutureValue",)
| data/msgraph-sdk-1.1.0/msgraph/generated/models/security/evidence_remediation_status.py | 215 | 87 | 262,275 |
LOAD_CONST 0
LOAD_CONST ('include',)
IMPORT_NAME django.urls
IMPORT_FROM include
STORE_NAME include
POP_TOP
LOAD_CONST 0
LOAD_CONST ('path',)
IMPORT_NAME django.urls
IMPORT_FROM path
STORE_NAME path
POP_TOP
LOAD_CONST 0
LOAD_CONST ('views',)
IMPORT_NAME loginas.tests
IMPORT_FROM views
STORE_NAME views
POP_TOP
LOAD_N... | from django.urls import include
from django.urls import path
from loginas.tests import views
urlpatterns = [
path("", views.index, name="index"),
path("current_user/", views.current_user, name="current_user"),
path("", include("loginas.urls")),
]
| data/django-loginas-0.3.11/loginas/tests/urls.py | 172 | 87 | 192,170 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME benchling_api_client.v2.extensions
STORE_NAME benchling_api_client
LOAD_NAME benchling_api_client
LOAD_ATTR v2
LOAD_ATTR extensions
LOAD_ATTR NotPresentError
STORE_NAME NotPresentError
LOAD_NAME benchling_api_client
LOAD_ATTR v2
LOAD_ATTR extensions
LOAD_ATTR UnknownType
STORE... | import benchling_api_client.v2.extensions
NotPresentError = benchling_api_client.v2.extensions.NotPresentError
UnknownType = benchling_api_client.v2.extensions.UnknownType
T = benchling_api_client.v2.extensions.T
Enums = benchling_api_client.v2.extensions.Enums
| data/benchling_api_client-2.0.271/benchling_api_client/v2/alpha/extensions.py | 129 | 87 | 71,396 |
LOAD_CONST 0
LOAD_CONST ('AIPlugin', 'AIPluginTool', 'AIPluginToolSchema', 'ApiConfig')
IMPORT_NAME langchain_community.tools.plugin
IMPORT_FROM AIPlugin
STORE_NAME AIPlugin
IMPORT_FROM AIPluginTool
STORE_NAME AIPluginTool
IMPORT_FROM AIPluginToolSchema
STORE_NAME AIPluginToolSchema
IMPORT_FROM ApiConfig
STORE_NAME Api... | from langchain_community.tools.plugin import (
AIPlugin,
AIPluginTool,
AIPluginToolSchema,
ApiConfig,
)
__all__ = [
"ApiConfig",
"AIPlugin",
"AIPluginToolSchema",
"AIPluginTool",
]
| data/langchain-0.1.8/langchain/tools/plugin.py | 144 | 87 | 369,264 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME os
STORE_NAME os
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME sys
STORE_NAME sys
LOAD_NAME sys
LOAD_ATTR argv
LOAD_CONST 1
BINARY_SUBSCR
STORE_NAME out
SETUP_EXCEPT to 42
LOAD_NAME os
LOAD_METHOD mkdir
LOAD_NAME out
CALL_METHOD
POP_TOP
POP_BLOCK
JUMP_FORWARD to 62
DUP_TOP
LOAD_... | import os
import sys
out = sys.argv[1]
try:
os.mkdir(out)
except FileExistsError:
pass
for name in ("a", "b", "c"):
with open(os.path.join(out, name + ".html"), "w") as f:
f.write(name)
| data/meson-1.3.2/test cases/common/123 custom target directory install/docgen.py | 215 | 87 | 81,979 |
LOAD_CONST 'MessageSigned'
BUILD_LIST
STORE_NAME __all__
LOAD_CONST 0
LOAD_CONST ('TypeVar',)
IMPORT_NAME typing
IMPORT_FROM TypeVar
STORE_NAME TypeVar
POP_TOP
LOAD_CONST 1
LOAD_CONST ('MessageSignedBase',)
IMPORT_NAME message_signed_base
IMPORT_FROM MessageSignedBase
STORE_NAME MessageSignedBase
POP_TOP
LOAD_NAME T... | __all__ = [
"MessageSigned",
]
from typing import TypeVar
from .message_signed_base import MessageSignedBase
_T = TypeVar("_T")
class MessageSigned(MessageSignedBase[_T]):
"""
Parser for Signed Microsoft Outlook message files.
"""
| data/extract_msg-0.47.0/extract_msg/msg_classes/message_signed.py | 221 | 87 | 434,214 |
LOAD_CONST 0
LOAD_CONST ('HttpBasicAuth',)
IMPORT_NAME ninja.security
IMPORT_FROM HttpBasicAuth
STORE_NAME HttpBasicAuth
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object BasicAuth at 0x7fab4106c780, file "f.py", line 4>
LOAD_CONST 'BasicAuth'
MAKE_FUNCTION
LOAD_CONST 'BasicAuth'
LOAD_NAME HttpBasicAuth
CALL_FUNCTION
S... | from ninja.security import HttpBasicAuth
class BasicAuth(HttpBasicAuth):
def authenticate(self, request, username, password):
if username == "admin" and password == "secret":
return username
@api.get("/basic", auth=BasicAuth())
def basic(request):
return {"httpuser": request.auth}
| data/django_ninja-1.1.0/docs/src/tutorial/authentication/basic01.py | 299 | 87 | 88,646 |
LOAD_CONST 'Constants for the Coolmaster integration.'
STORE_NAME __doc__
LOAD_CONST 'info'
STORE_NAME DATA_INFO
LOAD_CONST 'coordinator'
STORE_NAME DATA_COORDINATOR
LOAD_CONST 'coolmaster'
STORE_NAME DOMAIN
LOAD_CONST 10102
STORE_NAME DEFAULT_PORT
LOAD_CONST 'supported_modes'
STORE_NAME CONF_SUPPORTED_MODES
LOAD... | """Constants for the Coolmaster integration."""
DATA_INFO = "info"
DATA_COORDINATOR = "coordinator"
DOMAIN = "coolmaster"
DEFAULT_PORT = 10102
CONF_SUPPORTED_MODES = "supported_modes"
CONF_SWING_SUPPORT = "swing_support"
| data/homeassistant-2024.2.2/homeassistant/components/coolmaster/const.py | 114 | 87 | 297,106 |
LOAD_CONST <code object convert_to_list at 0x7faa5f6dbdb0, file "f.py", line 1>
LOAD_CONST 'convert_to_list'
MAKE_FUNCTION
STORE_NAME convert_to_list
LOAD_CONST None
RETURN_VALUE
LOAD_FAST obj
LOAD_ATTR __class__
LOAD_ATTR __name__
STORE_FAST class_name
LOAD_FAST class_name
LOAD_CONST 'list'
COMPARE_OP ==
POP_JUMP_IF... | def convert_to_list(obj):
class_name = obj.__class__.__name__
if class_name == "list":
return obj
elif hasattr(obj, "tolist") and callable(getattr(obj, "tolist")):
return obj.tolist()
else:
return list(obj)
| data/pinecone_client-3.0.3/pinecone/utils/convert_to_list.py | 169 | 87 | 251,324 |
LOAD_CONST 0
LOAD_CONST ('disable_socket',)
IMPORT_NAME pytest_socket
IMPORT_FROM disable_socket
STORE_NAME disable_socket
POP_TOP
LOAD_CONST <code object pytest_runtest_setup at 0x7fab820d6e40, file "f.py", line 4>
LOAD_CONST 'pytest_runtest_setup'
MAKE_FUNCTION
STORE_NAME pytest_runtest_setup
LOAD_CONST <code objec... | from pytest_socket import disable_socket
def pytest_runtest_setup():
disable_socket()
def pytest_configure(config):
config.addinivalue_line(
"markers",
"load_default_settings(use_defaults): mark test not to load from the default settings.ini file",
)
| data/aqtinstall-3.1.11/tests/conftest.py | 221 | 87 | 28,036 |
LOAD_CONST 0
LOAD_CONST ('Termination',)
IMPORT_NAME pymoo.core.termination
IMPORT_FROM Termination
STORE_NAME Termination
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object TerminationCollection at 0x7fab42ba9660, file "f.py", line 4>
LOAD_CONST 'TerminationCollection'
MAKE_FUNCTION
LOAD_CONST 'TerminationCollection'
L... | from pymoo.core.termination import Termination
class TerminationCollection(Termination):
def __init__(self, *args) -> None:
super().__init__()
self.terminations = args
def _update(self, algorithm):
return max([termination.update(algorithm) for termination in self.terminations])
| data/pymoo-0.6.1.1/pymoo/termination/collection.py | 399 | 87 | 93,199 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.