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 ('TestCase', 'fourcc')
IMPORT_NAME PyObjCTools.TestSupport
IMPORT_FROM TestCase
STORE_NAME TestCase
IMPORT_FROM fourcc
STORE_NAME fourcc
POP_TOP
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME PHASE
STORE_NAME PHASE
LOAD_BUILD_CLASS
LOAD_CONST <code object TestPHASEMedium at 0x7faa5017fe40, file "f.p... | from PyObjCTools.TestSupport import TestCase, fourcc
import PHASE
class TestPHASEMedium(TestCase):
def test_constants(self):
self.assertIsEnumType(PHASE.PHASEMediumPreset)
self.assertEqual(PHASE.PHASEMediumPresetAir, fourcc(b"mdAr"))
| data/pyobjc-framework-PHASE-10.1/PyObjCTest/test_phasemedium.py | 290 | 87 | 135,231 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME unittest
STORE_NAME unittest
LOAD_CONST 0
LOAD_CONST ('util',)
IMPORT_NAME qrcode
IMPORT_FROM util
STORE_NAME util
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object UtilTests at 0x7faa7c16a9c0, file "f.py", line 6>
LOAD_CONST 'UtilTests'
MAKE_FUNCTION
LOAD_CONST 'UtilTests'
LOA... | import unittest
from qrcode import util
class UtilTests(unittest.TestCase):
def test_check_wrong_version(self):
with self.assertRaises(ValueError):
util.check_version(0)
with self.assertRaises(ValueError):
util.check_version(41)
| data/qrcode-7.4.2/qrcode/tests/test_util.py | 314 | 87 | 209,920 |
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/webhooks/v0/alpha/types.py | 141 | 87 | 70,933 |
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/webhooks/v0/alpha/extensions.py | 129 | 87 | 70,935 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME hubspot.cms.blogs.authors
IMPORT_FROM cms
ROT_TWO
POP_TOP
IMPORT_FROM blogs
ROT_TWO
POP_TOP
IMPORT_FROM authors
STORE_NAME api_client
POP_TOP
LOAD_CONST 4
LOAD_CONST ('DiscoveryBase',)
IMPORT_NAME discovery_base
IMPORT_FROM DiscoveryBase
STORE_NAME DiscoveryBase
POP_TOP
LOAD_B... | import hubspot.cms.blogs.authors as api_client
from ....discovery_base import DiscoveryBase
class Discovery(DiscoveryBase):
@property
def author_api(self) -> api_client.BlogAuthorsApi:
return self._configure_api_client(api_client, "BlogAuthorsApi")
| data/hubspot-api-client-8.2.1/hubspot/discovery/cms/blogs/authors/discovery.py | 276 | 87 | 320,804 |
LOAD_BUILD_CLASS
LOAD_CONST <code object A at 0x7faa75305780, file "f.py", line 1>
LOAD_CONST 'A'
MAKE_FUNCTION
LOAD_CONST 'A'
CALL_FUNCTION
STORE_NAME A
LOAD_BUILD_CLASS
LOAD_CONST <code object B at 0x7faa75305390, file "f.py", line 5>
LOAD_CONST 'B'
MAKE_FUNCTION
LOAD_CONST 'B'
LOAD_NAME Exception
CALL_FUNCTION
STOR... | class A:
pass
class B(Exception):
pass
class MyInt(int):
class MyInt(int):
__slots__ = ()
try:
(1).__class__ = MyInt
assert False, "builtin types don't support __class__ assignment."
except TypeError:
pass
| data/uncompyle6-3.9.0/test/simple_source/def/01_class.py | 444 | 87 | 442,183 |
LOAD_BUILD_CLASS
LOAD_CONST <code object TProtocolDecorator at 0x7fab80068c00, file "f.py", line 1>
LOAD_CONST 'TProtocolDecorator'
MAKE_FUNCTION
LOAD_CONST 'TProtocolDecorator'
LOAD_NAME object
CALL_FUNCTION
STORE_NAME TProtocolDecorator
LOAD_CONST None
RETURN_VALUE
LOAD_NAME __name__
STORE_NAME __module__
LOAD_CONST... | class TProtocolDecorator(object):
def __new__(cls, protocol, *args, **kwargs):
decorated_cls = type(
"".join(["Decorated", protocol.__class__.__name__]),
(cls, protocol.__class__),
protocol.__dict__,
)
return object.__new__(decorated_cls)
| data/thrift-0.16.0/src/protocol/TProtocolDecorator.py | 242 | 87 | 130,417 |
LOAD_CONST 0
LOAD_CONST ('l3_flavors',)
IMPORT_NAME neutron_lib.api.definitions
IMPORT_FROM l3_flavors
STORE_NAME l3_flavors
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_CLASS
LOAD_CONST <code object L3FlavorsDefinitio... | from neutron_lib.api.definitions import l3_flavors
from neutron_lib.tests.unit.api.definitions import base
class L3FlavorsDefinitionTestCase(base.DefinitionBaseTestCase):
extension_module = l3_flavors
extension_resources = ()
extension_attributes = (l3_flavors.FLAVOR_ID,)
| data/neutron-lib-3.10.0/neutron_lib/tests/unit/api/definitions/test_l3_flavors.py | 235 | 87 | 384,990 |
LOAD_CONST 'Constants for HLK-SW16 component.'
STORE_NAME __doc__
LOAD_CONST 'hlk_sw16'
STORE_NAME DOMAIN
LOAD_CONST 'HLK-SW16'
STORE_NAME DEFAULT_NAME
LOAD_CONST 8080
STORE_NAME DEFAULT_PORT
LOAD_CONST 10
STORE_NAME DEFAULT_RECONNECT_INTERVAL
LOAD_CONST 3
STORE_NAME DEFAULT_KEEP_ALIVE_INTERVAL
LOAD_CONST 10
STOR... | """Constants for HLK-SW16 component."""
DOMAIN = "hlk_sw16"
DEFAULT_NAME = "HLK-SW16"
DEFAULT_PORT = 8080
DEFAULT_RECONNECT_INTERVAL = 10
DEFAULT_KEEP_ALIVE_INTERVAL = 3
CONNECTION_TIMEOUT = 10
| data/homeassistant-2024.2.2/homeassistant/components/hlk_sw16/const.py | 117 | 87 | 295,981 |
LOAD_CONST 1
LOAD_CONST ('BuildApiMixin',)
IMPORT_NAME build
IMPORT_FROM BuildApiMixin
STORE_NAME BuildApiMixin
POP_TOP
LOAD_CONST 1
LOAD_CONST ('ContainerApiMixin',)
IMPORT_NAME container
IMPORT_FROM ContainerApiMixin
STORE_NAME ContainerApiMixin
POP_TOP
LOAD_CONST 1
LOAD_CONST ('DaemonApiMixin',)
IMPORT_NAME daemon... | from .build import BuildApiMixin
from .container import ContainerApiMixin
from .daemon import DaemonApiMixin
from .exec_api import ExecApiMixin
from .image import ImageApiMixin
from .network import NetworkApiMixin
from .service import ServiceApiMixin
from .swarm import SwarmApiMixin
from .volume import VolumeApiMixin
| data/docker-py-1.10.6/docker/api/__init__.py | 295 | 87 | 196,234 |
LOAD_CONST 0
LOAD_CONST ('Enum',)
IMPORT_NAME enum
IMPORT_FROM Enum
STORE_NAME Enum
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object DefenderMonitorFileActivity at 0x7fab540255d0, file "f.py", line 4>
LOAD_CONST 'DefenderMonitorFileActivity'
MAKE_FUNCTION
LOAD_CONST 'DefenderMonitorFileActivity'
LOAD_NAME str
LOAD_NAM... | from enum import Enum
class DefenderMonitorFileActivity(str, Enum):
UserDefined = ("userDefined",)
Disable = ("disable",)
MonitorAllFiles = ("monitorAllFiles",)
MonitorIncomingFilesOnly = ("monitorIncomingFilesOnly",)
MonitorOutgoingFilesOnly = ("monitorOutgoingFilesOnly",)
| data/msgraph-sdk-1.1.0/msgraph/generated/models/defender_monitor_file_activity.py | 209 | 87 | 260,631 |
LOAD_CONST 0
LOAD_CONST ('*',)
IMPORT_NAME azure.cli.core.aaz
IMPORT_STAR
LOAD_NAME register_command_group
LOAD_CONST 'servicebus georecovery-alias authorization-rule keys'
CALL_FUNCTION
LOAD_BUILD_CLASS
LOAD_CONST <code object __CMDGroup at 0x7fab8204a660, file "f.py", line 4>
LOAD_CONST '__CMDGroup'
MAKE_FUNCTION
L... | from azure.cli.core.aaz import *
@register_command_group(
"servicebus georecovery-alias authorization-rule keys",
)
class __CMDGroup(AAZCommandGroup):
"""Manage Azure Authorization Rule keys for Service Bus Namespace."""
pass
__all__ = ["__CMDGroup"]
| data/azure-cli-2.57.0/azure/cli/command_modules/servicebus/aaz/latest/servicebus/georecovery_alias/authorization_rule/keys/__cmd_group.py | 197 | 87 | 375,837 |
LOAD_CONST "Dataset definition for tedlium.\n\nDEPRECATED!\nIf you want to use the Tedlium dataset builder class, use:\ntfds.builder_cls('tedlium')\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 tedlium.
DEPRECATED!
If you want to use the Tedlium dataset builder class, use:
tfds.builder_cls('tedlium')
"""
from tensorflow_datasets.core import lazy_builder_import
Tedlium = lazy_builder_import.LazyBuilderImport("tedlium")
| data/tensorflow-datasets-4.9.4/tensorflow_datasets/audio/tedlium.py | 130 | 87 | 255,160 |
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 '1.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__ = "1.2.0"
__maintainer__ = __author__
__email__ = "tsuyoshi.hombashi@gmail.com"
| data/pytablewriter-1.2.0/pytablewriter/__version__.py | 112 | 87 | 156,135 |
LOAD_CONST 'rlu_dmlab_seekavoid_arena01 dataset.'
STORE_NAME __doc__
LOAD_CONST 0
LOAD_CONST ('RluDmlabSeekavoidArena01',)
IMPORT_NAME tensorflow_datasets.rl_unplugged.rlu_dmlab_seekavoid_arena01.rlu_dmlab_seekavoid_arena01
IMPORT_FROM RluDmlabSeekavoidArena01
STORE_NAME RluDmlabSeekavoidArena01
POP_TOP
LOAD_CONST Non... | """rlu_dmlab_seekavoid_arena01 dataset."""
from tensorflow_datasets.rl_unplugged.rlu_dmlab_seekavoid_arena01.rlu_dmlab_seekavoid_arena01 import (
RluDmlabSeekavoidArena01,
)
| data/tfds-nightly-4.9.4.dev202402210044/tensorflow_datasets/rl_unplugged/rlu_dmlab_seekavoid_arena01/__init__.py | 131 | 87 | 238,138 |
LOAD_BUILD_CLASS
LOAD_CONST <code object Percentile at 0x7faa5efb6030, file "f.py", line 1>
LOAD_CONST 'Percentile'
MAKE_FUNCTION
LOAD_CONST 'Percentile'
LOAD_NAME object
CALL_FUNCTION
STORE_NAME Percentile
LOAD_CONST None
RETURN_VALUE
LOAD_NAME __name__
STORE_NAME __module__
LOAD_CONST 'Percentile'
STORE_NAME __qualn... | class Percentile(object):
def __init__(self, metric_name, percentile):
self._metric_name = metric_name
self._percentile = float(percentile)
@property
def name(self):
return self._metric_name
@property
def percentile(self):
return self._percentile
| data/aiokafka-0.10.0/aiokafka/metrics/stats/percentile.py | 315 | 87 | 448,476 |
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 AlbanianDefaults(BaseDefaults):
stop_words = STOP_WORDS
class Albanian(Language):
lang = "sq"
Defaults = AlbanianDefaults
__all__ = ["Albanian"]
| data/spacy-3.7.4/spacy/lang/sq/__init__.py | 321 | 87 | 147,805 |
LOAD_CONST 0
LOAD_CONST ('select', 'text')
IMPORT_NAME sqlalchemy
IMPORT_FROM select
STORE_NAME select
IMPORT_FROM text
STORE_NAME text
POP_TOP
LOAD_CONST 0
LOAD_CONST ('fixture',)
IMPORT_NAME migrate.tests
IMPORT_FROM fixture
STORE_NAME fixture
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object TestConnect at 0x7f8af0... | from sqlalchemy import select, text
from migrate.tests import fixture
class TestConnect(fixture.DB):
level = fixture.DB.TXN
@fixture.usedb()
def test_connect(self):
"""Connect to the database successfully"""
self.engine.execute(select([text("42")]))
| data/sqlalchemy-migrate-0.13.0/migrate/tests/versioning/test_database.py | 272 | 87 | 330,516 |
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_IndexedArray64_ranges_next_64_1():
raise NotImplementedError("Unable to generate any tests for kernel")
| data/awkward-cpp-29/tests-cpu-kernels/test_cpuawkward_IndexedArray64_ranges_next_64.py | 228 | 87 | 221,500 |
LOAD_CONST 0
LOAD_CONST ('absolute_import',)
IMPORT_NAME __future__
IMPORT_FROM absolute_import
STORE_NAME absolute_import
POP_TOP
LOAD_CONST 1
LOAD_CONST ('add_pyspark_path_if_needed',)
IMPORT_NAME utils
IMPORT_FROM add_pyspark_path_if_needed
STORE_NAME add_pyspark_path_if_needed
POP_TOP
LOAD_NAME add_pyspark_path_i... | from __future__ import absolute_import
from .utils import add_pyspark_path_if_needed
"""
Helpful classes to write Spark tests.
"""
"""from sparktestingbase import SparkTestingBaseTestCase
__all__ = ["SparkTestingBaseTestCase"]
"""
add_pyspark_path_if_needed()
| data/spark-testing-base-0.11.1/sparktestingbase/__init__.py | 110 | 87 | 19,184 |
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/asyncclick-8.1.7.1/examples/repo/setup.py | 123 | 87 | 249,518 |
LOAD_CONST 0
LOAD_CONST ('absolute_import', 'division', 'print_function', 'unicode_literals')
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
IMPORT_FROM unicode_literals
STORE_NAME unicode_litera... | from __future__ import absolute_import, division, print_function, unicode_literals
from .core import GenieJob
from .hadoop import HadoopJob
from .hive import HiveJob
from .pig import PigJob
from .presto import PrestoJob
from .running import RunningJob
from .sqoop import SqoopJob
| data/nflx-genie-client-3.6.17/pygenie/jobs/__init__.py | 287 | 87 | 293,312 |
LOAD_CONST 'test_cython_flags\n----------------------------------\n\nTries to build the `cython-flags` sample project.\n'
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 ('project_setup_py_test',)
IMPORT_... | """test_cython_flags
----------------------------------
Tries to build the `cython-flags` sample project.
"""
from __future__ import annotations
from . import project_setup_py_test
@project_setup_py_test("cython-flags", ["build"])
def test_hello_cython_builds():
pass
| data/scikit_build-0.17.6/tests/test_cython_flags.py | 210 | 87 | 198,874 |
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/webhooks/v0/stable/extensions.py | 129 | 87 | 70,986 |
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 GujaratiDefaults(BaseDefaults):
stop_words = STOP_WORDS
class Gujarati(Language):
lang = "gu"
Defaults = GujaratiDefaults
__all__ = ["Gujarati"]
| data/spacy-3.7.4/spacy/lang/gu/__init__.py | 320 | 87 | 147,676 |
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_float32_64_1():
raise NotImplementedError("Unable to generate any tests for kernel")
| data/awkward-cpp-29/tests-cpu-kernels/test_cpuawkward_reduce_sum_bool_float32_64.py | 228 | 87 | 221,470 |
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/array_api_compat-1.4.1/array_api_compat/numpy/__init__.py | 196 | 87 | 216,899 |
LOAD_CONST 0
LOAD_CONST ('Error',)
IMPORT_NAME wandb.errors
IMPORT_FROM Error
STORE_NAME Error
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object LaunchError at 0x7fab41499ae0, file "f.py", line 4>
LOAD_CONST 'LaunchError'
MAKE_FUNCTION
LOAD_CONST 'LaunchError'
LOAD_NAME Error
CALL_FUNCTION
STORE_NAME LaunchError
LOAD_... | from wandb.errors import Error
class LaunchError(Error):
"""Raised when a known error occurs in wandb launch."""
pass
class LaunchDockerError(Error):
"""Raised when Docker daemon is not running."""
pass
class ExecutionError(Error):
"""Generic execution exception."""
pass
| data/wandb-0.16.3/wandb/sdk/launch/errors.py | 364 | 87 | 361,204 |
LOAD_CONST 0
LOAD_CONST ('Any',)
IMPORT_NAME typing
IMPORT_FROM Any
STORE_NAME Any
POP_TOP
LOAD_CONST 0
LOAD_CONST ('Index',)
IMPORT_NAME pandas
IMPORT_FROM Index
STORE_NAME Index
POP_TOP
LOAD_NAME Any
LOAD_NAME bool
LOAD_CONST ('obj', 'return')
BUILD_CONST_KEY_MAP
LOAD_CONST <code object allow_na_ops at 0x7fab8212bd... | from typing import Any
from pandas import Index
def allow_na_ops(obj: Any) -> bool:
"""Whether to skip test cases including NaN"""
is_bool_index = isinstance(obj, Index) and obj.inferred_type == "boolean"
return not is_bool_index and obj._can_hold_na
| data/pandas-2.2.0/pandas/tests/base/common.py | 183 | 87 | 171,080 |
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/array_api_compat-1.4.1/array_api_compat/cupy/__init__.py | 196 | 87 | 216,903 |
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 objc
STORE_NAME objc
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME Photos
STORE_NAME Photos
LO... | from PyObjCTools.TestSupport import TestCase, min_os_level
import objc
import Photos
class TestPHAdjustmentData(TestCase):
@min_os_level("10.11")
def testClasses(self):
self.assertIsInstance(Photos.PHAdjustmentData, objc.objc_class)
| data/pyobjc-framework-Photos-10.1/PyObjCTest/test_phadjustmentdata.py | 301 | 87 | 80,329 |
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 objc
STORE_NAME objc
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME Photos
STORE_NAME Photos
LO... | from PyObjCTools.TestSupport import TestCase, min_os_level
import objc
import Photos
class TestPHContentEditingInput(TestCase):
@min_os_level("10.11")
def testClasses(self):
self.assertIsInstance(Photos.PHContentEditingInput, objc.objc_class)
| data/pyobjc-framework-Photos-10.1/PyObjCTest/test_phcontenteditinginput.py | 301 | 87 | 80,323 |
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 StateDeprecationDockerImageAbsent at 0x7faa761eec90, file "f.py", line 4>
LOAD_CONST 'StateDeprecationDockerImageAbsent'
MAKE_FUNCTION
LO... | from saltlint.linter.rule import DeprecationRule
class StateDeprecationDockerImageAbsent(DeprecationRule):
id = "907"
state = "docker.image_absent"
deprecated_since = "2017.7.0"
version_added = "v0.5.0"
| data/salt-lint-0.9.2/saltlint/rules/StateDeprecationDockerImageAbsent.py | 226 | 87 | 436,357 |
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_CONST True
LOAD_CONST True
LOAD_CONST ('eq', 'frozen')
CALL_FUNCTION
LOAD... | from dataclasses import dataclass
from typing import Optional
@dataclass(eq=True, frozen=True)
class NameFilter:
data_source_name_filter: Optional[str]
table_name_filter: Optional[str]
partition_name_filter: Optional[str]
column_name_filter: Optional[str]
| data/soda-core-3.2.1/soda/sodacl/name_filter.py | 274 | 87 | 305,280 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME pathlib
STORE_NAME pathlib
LOAD_CONST 0
LOAD_CONST ('Template',)
IMPORT_NAME ray.widgets
IMPORT_FROM Template
STORE_NAME Template
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object VertexRayTemplate at 0x7fab7035dd20, file "f.py", line 5>
LOAD_CONST 'VertexRayTemplate'
MAKE_FUNC... | import pathlib
from ray.widgets import Template
class VertexRayTemplate(Template):
"""Class which provides basic HTML templating."""
def __init__(self, file: str):
with open(pathlib.Path(__file__).parent / "templates" / file, "r") as f:
self.template = f.read()
| data/google-cloud-aiplatform-1.42.1/google/cloud/aiplatform/preview/vertex_ray/render.py | 303 | 87 | 14,056 |
LOAD_CONST 0
LOAD_CONST ('namedtuple',)
IMPORT_NAME collections
IMPORT_FROM namedtuple
STORE_NAME namedtuple
POP_TOP
LOAD_NAME namedtuple
LOAD_CONST 'Region'
LOAD_CONST 'name'
LOAD_CONST 'track_host'
LOAD_CONST 'api_host'
BUILD_LIST
CALL_FUNCTION
STORE_NAME Region
LOAD_BUILD_CLASS
LOAD_CONST <code object Regions at 0... | from collections import namedtuple
Region = namedtuple("Region", ["name", "track_host", "api_host"])
class Regions:
US = Region("us", "track.customer.io", "api.customer.io")
EU = Region("eu", "track-eu.customer.io", "api-eu.customer.io")
| data/customerio-2.1/customerio/regions.py | 220 | 87 | 98,648 |
LOAD_CONST 0
LOAD_CONST ('absolute_import',)
IMPORT_NAME __future__
IMPORT_FROM absolute_import
STORE_NAME absolute_import
POP_TOP
LOAD_CONST 1
LOAD_CONST ('chi2',)
IMPORT_NAME
IMPORT_FROM chi2
STORE_NAME chi2
POP_TOP
LOAD_CONST 1
LOAD_CONST ('beta',)
IMPORT_NAME
IMPORT_FROM beta
STORE_NAME beta
POP_TOP
LOAD_CONST 1... | from __future__ import absolute_import
from . import chi2
from . import beta
from . import gamma
from . import norm
from . import poisson
from . import t
try:
from . import multivariate_normal
except AttributeError:
pass
try:
from . import dirichlet
except AttributeError:
pass
| data/autograd-1.6.2/autograd/scipy/stats/__init__.py | 327 | 87 | 173,124 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME pycurl
STORE_NAME pycurl
LOAD_CONST 0
LOAD_CONST ('StringIO',)
IMPORT_NAME StringIO
IMPORT_FROM StringIO
STORE_NAME StringIO
POP_TOP
LOAD_NAME StringIO
CALL_FUNCTION
STORE_NAME buffer
LOAD_NAME pycurl
LOAD_METHOD Curl
CALL_METHOD
STORE_NAME c
LOAD_NAME c
LOAD_METHOD setopt
L... | import pycurl
from StringIO import StringIO
buffer = StringIO()
c = pycurl.Curl()
c.setopt(c.URL, "http://pycurl.io/")
c.setopt(c.WRITEDATA, buffer)
c.perform()
c.close()
body = buffer.getvalue()
print(body)
| data/pycurl-7.45.3/examples/quickstart/get_python2.py | 169 | 87 | 174,018 |
LOAD_CONST 0
LOAD_CONST ('bgpvpn_stdattrs_port_assoc',)
IMPORT_NAME neutron_lib.api.definitions
IMPORT_FROM bgpvpn_stdattrs_port_assoc
STORE_NAME bgpvpn_stdattrs_port_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_... | from neutron_lib.api.definitions import bgpvpn_stdattrs_port_assoc
from neutron_lib.tests.unit.api.definitions import base
class BGPVPNPortAssocStdAttrDefintionTestCase(base.DefinitionBaseTestCase):
extension_module = bgpvpn_stdattrs_port_assoc
| data/neutron-lib-3.10.0/neutron_lib/tests/unit/api/definitions/test_bgpvpn_port_assoc_stdattrs.py | 279 | 87 | 384,933 |
LOAD_CONST 0
LOAD_CONST ('get_dpi',)
IMPORT_NAME vispy.util.dpi
IMPORT_FROM get_dpi
STORE_NAME get_dpi
POP_TOP
LOAD_CONST 0
LOAD_CONST ('run_tests_if_main',)
IMPORT_NAME vispy.testing
IMPORT_FROM run_tests_if_main
STORE_NAME run_tests_if_main
POP_TOP
LOAD_CONST <code object test_dpi at 0x7fab81f2fb70, file "f.py", li... | from vispy.util.dpi import get_dpi
from vispy.testing import run_tests_if_main
def test_dpi():
"""Test dpi support"""
dpi = get_dpi()
assert dpi > 0.0
assert isinstance(dpi, float)
run_tests_if_main()
| data/vispy-0.14.1/vispy/util/dpi/tests/test_dpi.py | 213 | 87 | 348,485 |
LOAD_BUILD_CLASS
LOAD_CONST <code object Documented at 0x7fab80232e40, file "f.py", line 1>
LOAD_CONST 'Documented'
MAKE_FUNCTION
LOAD_CONST 'Documented'
CALL_FUNCTION
STORE_NAME Documented
LOAD_BUILD_CLASS
LOAD_CONST <code object Ignored at 0x7fab802328a0, file "f.py", line 17>
LOAD_CONST 'Ignored'
MAKE_FUNCTION
LOAD... | class Documented:
"""Documented"""
def ignored1(self):
pass
def ignored2(self):
pass
def not_ignored1(self):
pass
def not_ignored2(self):
pass
class Ignored:
pass
class NotIgnored:
pass
| data/sphinx-7.2.6/tests/roots/test-ext-coverage/coverage_ignored.py | 519 | 87 | 381,061 |
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 0x7fab6407aa50, 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.10.3"
version_info = tuple(_to_int(s) for s in __version__.split("."))
| data/onnx-simplifier-0.4.35/third_party/onnx-optimizer/third_party/onnx/third_party/pybind11/pybind11/_version.py | 280 | 87 | 309,997 |
LOAD_CONST <code object f1 at 0x7fab703f78a0, file "f.py", line 1>
LOAD_CONST 'f1'
MAKE_FUNCTION
STORE_NAME f1
LOAD_CONST <code object f2 at 0x7fab703f7300, file "f.py", line 5>
LOAD_CONST 'f2'
MAKE_FUNCTION
STORE_NAME f2
LOAD_CONST <code object f3 at 0x7fab703f7780, file "f.py", line 9>
LOAD_CONST 'f3'
MAKE_FUNCTION... | def f1(x):
return 1
def f2(x):
pass
def f3(x):
return
def f4(x):
def f(y):
return 1
def f5(x):
return 1
def f6(x):
return # foo
| data/pytype-2024.2.13/pytype/tools/merge_pyi/test_data/retval_heuristics.py | 379 | 87 | 353,320 |
LOAD_BUILD_CLASS
LOAD_CONST <code object Documented at 0x7fab80232300, file "f.py", line 1>
LOAD_CONST 'Documented'
MAKE_FUNCTION
LOAD_CONST 'Documented'
CALL_FUNCTION
STORE_NAME Documented
LOAD_BUILD_CLASS
LOAD_CONST <code object Ignored at 0x7fab80232150, file "f.py", line 17>
LOAD_CONST 'Ignored'
MAKE_FUNCTION
LOAD... | class Documented:
"""Documented"""
def ignored1(self):
pass
def ignored2(self):
pass
def not_ignored1(self):
pass
def not_ignored2(self):
pass
class Ignored:
pass
class NotIgnored:
pass
| data/sphinx-7.2.6/tests/roots/test-ext-coverage/coverage_not_ignored.py | 519 | 87 | 381,060 |
LOAD_CONST 0
LOAD_CONST ('dedent',)
IMPORT_NAME textwrap
IMPORT_FROM dedent
STORE_NAME dedent
POP_TOP
LOAD_CONST <code object test_fstring_multiline at 0x7f8e447b4810, file "f.py", line 4>
LOAD_CONST 'test_fstring_multiline'
MAKE_FUNCTION
STORE_NAME test_fstring_multiline
LOAD_CONST None
RETURN_VALUE
LOAD_GLOBAL dede... | from textwrap import dedent
def test_fstring_multiline(Script):
code = dedent(
"""\
'' f'''s{
str.uppe
'''
"""
)
(c,) = Script(code).complete(line=2, column=9)
assert c.name == "upper"
| data/jedi-0.19.1/test/test_inference/test_fstring.py | 190 | 87 | 420,928 |
LOAD_CONST 123456789
STORE_NAME x
LOAD_CONST 1234567
STORE_NAME x
LOAD_CONST 10.0
STORE_NAME x
LOAD_CONST 727756
STORE_NAME x
LOAD_CONST 6e-07
STORE_NAME x
LOAD_CONST 1234567j
STORE_NAME x
LOAD_CONST 0.12
STORE_NAME x
LOAD_CONST 12.0
STORE_NAME x
LOAD_CONST None
RETURN_VALUE | x = 123456789
x = 1_2_3_4_5_6_7
x = 1e1
x = 0xB1ACC
x = 0.00_00_006
x = 12_34_567j
x = 0.1_2
x = 1_2.0
| data/ruff-0.2.2/crates/ruff_python_formatter/resources/test/fixtures/black/cases/numeric_literals_skip_underscores.py | 107 | 87 | 342,077 |
LOAD_CONST 0
LOAD_CONST ('AppConfig',)
IMPORT_NAME django.apps
IMPORT_FROM AppConfig
STORE_NAME AppConfig
POP_TOP
LOAD_CONST 0
LOAD_CONST ('gettext_lazy',)
IMPORT_NAME django.utils.translation
IMPORT_FROM gettext_lazy
STORE_NAME _
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object WagtailRoutablePageAppConfig at 0x7fab... | from django.apps import AppConfig
from django.utils.translation import gettext_lazy as _
class WagtailRoutablePageAppConfig(AppConfig):
name = "wagtail.contrib.routable_page"
label = "wagtailroutablepage"
verbose_name = _("Wagtail routablepage")
| data/wagtail-6.0.1/wagtail/contrib/routable_page/apps.py | 244 | 87 | 199,913 |
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 KannadaDefaults(BaseDefaults):
stop_words = STOP_WORDS
class Kannada(Language):
lang = "kn"
Defaults = KannadaDefaults
__all__ = ["Kannada"]
| data/spacy-3.7.4/spacy/lang/kn/__init__.py | 320 | 87 | 147,622 |
LOAD_CONST 0
LOAD_CONST ('create_exclusions_file',)
IMPORT_NAME cloudsplaining.command
IMPORT_FROM create_exclusions_file
STORE_NAME create_exclusions_file
POP_TOP
LOAD_CONST 0
LOAD_CONST ('create_multi_account_config_file',)
IMPORT_NAME cloudsplaining.command
IMPORT_FROM create_multi_account_config_file
STORE_NAME cr... | from cloudsplaining.command import create_exclusions_file
from cloudsplaining.command import create_multi_account_config_file
from cloudsplaining.command import expand_policy
from cloudsplaining.command import download
from cloudsplaining.command import scan
from cloudsplaining.command import scan_multi_account
from cl... | data/cloudsplaining-0.6.2/cloudsplaining/command/__init__.py | 255 | 87 | 305,427 |
LOAD_CONST 0
LOAD_CONST ('Any', 'Dict', 'List', 'Optional', 'Union')
IMPORT_NAME typing
IMPORT_FROM Any
STORE_NAME Any
IMPORT_FROM Dict
STORE_NAME Dict
IMPORT_FROM List
STORE_NAME List
IMPORT_FROM Optional
STORE_NAME Optional
IMPORT_FROM Union
STORE_NAME Union
POP_TOP
LOAD_CONST 0
LOAD_CONST ('BaseModel',)
IMPORT_NAME... | from typing import Any, Dict, List, Optional, Union
from pydantic import BaseModel
class QueryResponse(BaseModel, extra="forbid"): # type: ignore
id: Union[str, int]
embedding: Optional[List[float]]
metadata: Dict[str, Any]
document: str
score: float
| data/qdrant_client-1.7.3/qdrant_client/fastembed_common.py | 311 | 87 | 237,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_reduce_prod_bool_uint16_64_1():
raise NotImplementedError("Unable to generate any tests for kernel")
| data/awkward-cpp-29/tests-cpu-kernels/test_cpuawkward_reduce_prod_bool_uint16_64.py | 229 | 87 | 221,477 |
LOAD_CONST 0
LOAD_CONST ('lazy_gettext',)
IMPORT_NAME flask_babel
IMPORT_FROM lazy_gettext
STORE_NAME _
POP_TOP
LOAD_CONST 0
LOAD_CONST ('CommandException', 'DeleteFailedError')
IMPORT_NAME superset.commands.exceptions
IMPORT_FROM CommandException
STORE_NAME CommandException
IMPORT_FROM DeleteFailedError
STORE_NAME De... | from flask_babel import lazy_gettext as _
from superset.commands.exceptions import CommandException, DeleteFailedError
class CssTemplateDeleteFailedError(DeleteFailedError):
message = _("CSS templates could not be deleted.")
class CssTemplateNotFoundError(CommandException):
message = _("CSS template not fo... | data/apache-superset-3.1.1/superset/commands/css/exceptions.py | 334 | 87 | 393,384 |
LOAD_CONST 'sample_file'
LOAD_CONST ('file',)
BUILD_CONST_KEY_MAP
LOAD_CONST <code object x0 at 0x7fab4106c540, file "f.py", line 1>
LOAD_CONST 'x0'
MAKE_FUNCTION
STORE_NAME x0
LOAD_CONST None
LOAD_CONST ('file',)
BUILD_CONST_KEY_MAP
LOAD_CONST <code object x1 at 0x7fab4106c930, file "f.py", line 5>
LOAD_CONST 'x1'
MA... | def x0(*, file="sample_file"):
pass
def x1(a, *, file=None):
pass
def x2(a=5, *, file="filex2"):
pass
def x3(a=5, *, file="filex2", stuff=None):
pass
| data/xdis-6.0.5/test/simple_source/def/03_py3_def.py | 284 | 87 | 85,470 |
LOAD_CONST 0
LOAD_CONST ('WANDB_STORAGE_POLICY',)
IMPORT_NAME wandb.sdk.artifacts.storage_policies.register
IMPORT_FROM WANDB_STORAGE_POLICY
STORE_NAME WANDB_STORAGE_POLICY
POP_TOP
LOAD_CONST 0
LOAD_CONST ('WandbStoragePolicy',)
IMPORT_NAME wandb.sdk.artifacts.storage_policies.wandb_storage_policy
IMPORT_FROM WandbSto... | from wandb.sdk.artifacts.storage_policies.register import WANDB_STORAGE_POLICY
from wandb.sdk.artifacts.storage_policies.wandb_storage_policy import WandbStoragePolicy
__all__ = ["WANDB_STORAGE_POLICY", "WandbStoragePolicy"]
| data/wandb-0.16.3/wandb/sdk/artifacts/storage_policies/__init__.py | 160 | 87 | 361,186 |
LOAD_CONST 1
LOAD_CONST ('ComposeElement', 'ComposeByteValue')
IMPORT_NAME compose_element
IMPORT_FROM ComposeElement
STORE_NAME ComposeElement
IMPORT_FROM ComposeByteValue
STORE_NAME ComposeByteValue
POP_TOP
LOAD_CONST 1
LOAD_CONST ('ComposeListOrMapElement',)
IMPORT_NAME compose_list_or_map
IMPORT_FROM ComposeListOr... | from .compose_element import ComposeElement, ComposeByteValue
from .compose_list_or_map import ComposeListOrMapElement
from .compose_string_or_list import ComposeStringOrListElement
from .compose_datatype_transformer import (
ComposeDataTypeTransformer,
EmptyOrUnsetException,
)
| data/pycomposefile-0.0.30/pycomposefile/compose_element/__init__.py | 207 | 87 | 366,370 |
LOAD_CONST ' j2cli main file '
STORE_NAME __doc__
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME pkg_resources
STORE_NAME pkg_resources
LOAD_CONST 'Mark Vartanyan'
STORE_NAME __author__
LOAD_CONST 'kolypto@gmail.com'
STORE_NAME __email__
LOAD_NAME pkg_resources
LOAD_METHOD get_distribution
LOAD_CONST 'j2cli'
CALL_METHOD
... | """ j2cli main file """
import pkg_resources
__author__ = "Mark Vartanyan"
__email__ = "kolypto@gmail.com"
__version__ = pkg_resources.get_distribution("j2cli").version
from j2cli.cli import main
if __name__ == "__main__":
main()
| data/j2cli-0.3.10/j2cli/__init__.py | 152 | 87 | 175,826 |
LOAD_CONST 0
LOAD_CONST ('keccak', 'to_canonical_address')
IMPORT_NAME eth_utils
IMPORT_FROM keccak
STORE_NAME keccak
IMPORT_FROM to_canonical_address
STORE_NAME to_canonical_address
POP_TOP
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME rlp
STORE_NAME rlp
LOAD_CONST <code object generate_contract_address at 0x7fab82197660... | from eth_utils import (
keccak,
to_canonical_address,
)
import rlp
def generate_contract_address(address, nonce):
next_account_hash = keccak(rlp.encode([address, nonce]))
return to_canonical_address(next_account_hash[-20:])
| data/eth-tester-0.10.0b2/eth_tester/utils/address.py | 196 | 87 | 368,239 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME click
STORE_NAME click
LOAD_CONST 1
LOAD_CONST ('_version',)
IMPORT_NAME
IMPORT_FROM _version
STORE_NAME _version
POP_TOP
LOAD_CONST 1
LOAD_CONST ('command_functions',)
IMPORT_NAME commands
IMPORT_FROM command_functions
STORE_NAME command_functions
POP_TOP
LOAD_NAME click
LOA... | import click
from . import _version
from .commands import command_functions
@click.group()
@click.version_option(version=_version.get_versions()["version"])
def _main() -> None:
pass
for command in command_functions:
_main.add_command(command)
_main()
| data/rembg-2.0.54/rembg/cli.py | 232 | 87 | 160,663 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME sys
STORE_NAME sys
LOAD_NAME sys
LOAD_ATTR version_info
LOAD_CONST 0
BINARY_SUBSCR
LOAD_CONST 3
COMPARE_OP ==
STORE_NAME PY3
LOAD_NAME PY3
POP_JUMP_IF_FALSE
LOAD_CONST <code object py_str at 0x7fab823751e0, file "f.py", line 7>
LOAD_CONST 'py_str'
MAKE_FUNCTION
STORE_NAME py_... | import sys
PY3 = sys.version_info[0] == 3
if PY3:
def py_str(x):
"""convert c string back to python string"""
return x.decode("utf-8")
else:
def py_str(x):
"""convert c string back to python string"""
return x
| data/xgboost-2.0.3/cpp_src/dmlc-core/tracker/dmlc_tracker/util.py | 183 | 87 | 392,836 |
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/webhooks/v0/stable/types.py | 141 | 87 | 70,984 |
LOAD_CONST 0
LOAD_CONST ('Enum',)
IMPORT_NAME enum
IMPORT_FROM Enum
STORE_NAME Enum
POP_TOP
LOAD_CONST 'ServiceSpecType'
BUILD_LIST
STORE_NAME __all__
LOAD_BUILD_CLASS
LOAD_CONST <code object ServiceSpecType at 0x7f8ece8a89c0, file "f.py", line 8>
LOAD_CONST 'ServiceSpecType'
MAKE_FUNCTION
LOAD_CONST 'ServiceSpecType... | from enum import Enum
__all__ = [
"ServiceSpecType",
]
class ServiceSpecType(str, Enum):
EXTERNAL_NAME = "ExternalName"
CLUSTER_IP = "ClusterIP"
NODE_PORT = "NodePort"
LOAD_BALANCER = "LoadBalancer"
| data/pulumi_kubernetes-4.7.1/pulumi_kubernetes/core/v1/_enums.py | 198 | 87 | 124,280 |
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/beta/types.py | 141 | 87 | 71,006 |
LOAD_CONST "Dataset definition for natural_questions.\n\nDEPRECATED!\nIf you want to use the NaturalQuestions dataset builder class, use:\ntfds.builder_cls('natural_questions')\n"
STORE_NAME __doc__
LOAD_CONST 0
LOAD_CONST ('lazy_builder_import',)
IMPORT_NAME tensorflow_datasets.core
IMPORT_FROM lazy_builder_import
ST... | """Dataset definition for natural_questions.
DEPRECATED!
If you want to use the NaturalQuestions dataset builder class, use:
tfds.builder_cls('natural_questions')
"""
from tensorflow_datasets.core import lazy_builder_import
NaturalQuestions = lazy_builder_import.LazyBuilderImport("natural_questions")
| data/tensorflow-datasets-4.9.4/tensorflow_datasets/question_answering/natural_questions.py | 130 | 87 | 255,301 |
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_int16_64_1():
raise NotImplementedError("Unable to generate any tests for kernel")
| data/awkward-cpp-29/tests-cpu-kernels/test_cpuawkward_reduce_sum_bool_int16_64.py | 229 | 87 | 221,479 |
LOAD_CONST 0
LOAD_CONST ('Char',)
IMPORT_NAME insights.parsr
IMPORT_FROM Char
STORE_NAME Char
POP_TOP
LOAD_CONST <code object test_and at 0x7fae471296f0, file "f.py", line 4>
LOAD_CONST 'test_and'
MAKE_FUNCTION
STORE_NAME test_and
LOAD_CONST <code object test_or at 0x7fab802485d0, file "f.py", line 9>
LOAD_CONST 'tes... | from insights.parsr import Char
def test_and():
p = Char("a") + Char("b")
assert p("ab") == ["a", "b"]
def test_or():
p = Char("a") | Char("b")
assert p("a") == "a"
assert p("b") == "b"
| data/insights-core-3.3.9/insights/parsr/tests/test_boolean.py | 280 | 87 | 212,584 |
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_uint32_64_1():
raise NotImplementedError("Unable to generate any tests for kernel")
| data/awkward-cpp-29/tests-cpu-kernels/test_cpuawkward_reduce_prod_bool_uint32_64.py | 228 | 87 | 221,460 |
LOAD_CONST '\n test_sphinx\n ~~~~~~~~~~~\n\n General Sphinx test and check output.\n'
STORE_NAME __doc__
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME pytest
STORE_NAME pytest
LOAD_NAME pytest
LOAD_ATTR mark
LOAD_ATTR sphinx
LOAD_CONST 'html'
LOAD_CONST 'sphinx'
LOAD_CONST ('testroot',)
CALL_FUNCTION
LOAD_CONST None
LOAD... | """
test_sphinx
~~~~~~~~~~~
General Sphinx test and check output.
"""
import pytest
@pytest.mark.sphinx("html", testroot="sphinx")
def test_sphinx(app, warning) -> None:
app.build()
assert not warning.getvalue()
| data/sphinxcontrib-bibtex-2.6.2/test/test_sphinx.py | 192 | 87 | 136,675 |
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/beta/extensions.py | 129 | 87 | 71,008 |
LOAD_CONST 'Stores constants for all modules.'
STORE_NAME __doc__
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME os
STORE_NAME os
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
STORE_NAME PACKAGE_BASE_DIR
LOAD_NAME os
LOAD_ATTR pat... | """Stores constants for all modules."""
import os
PACKAGE_BASE_DIR = os.path.dirname(os.path.abspath(__file__))
PROCESSED_DATA_DIR = os.path.join(PACKAGE_BASE_DIR, "data")
ALPHA = "alpha"
LOWER = "lower"
| data/english-words-2.0.1/english_words/constants.py | 133 | 87 | 98,839 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME pytest
STORE_NAME pytest
LOAD_NAME pytest
LOAD_ATTR fixture
LOAD_CONST True
LOAD_CONST ('autouse',)
CALL_FUNCTION
LOAD_CONST <code object _autouse_resp_mocker at 0x7fab4299c300, file "f.py", line 4>
LOAD_CONST '_autouse_resp_mocker'
MAKE_FUNCTION
CALL_FUNCTION
STORE_NAME _autou... | import pytest
@pytest.fixture(autouse=True)
def _autouse_resp_mocker(resp_mocker, version_api):
pass
@pytest.fixture(autouse=True)
def _prevent_retries_in_api_tests(settings):
settings.networking.error_backoffs = []
| data/kopf-1.37.1/tests/k8s/conftest.py | 225 | 87 | 93,886 |
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 len
LOAD_NAME sys
LOAD_ATTR argv
CALL_FUNCTION
LOAD_CONST 3
COMPARE_OP ==
POP_JUMP_IF_TRUE
LOAD_GLOBAL AssertionError
RAISE_VARARGS
LOAD_NAME sys
LOAD_ATTR argv
LOAD_CONST 1
BINARY_SUBSCR
S... | import os
import sys
assert len(sys.argv) == 3
fname = sys.argv[1]
check_str = sys.argv[2]
assert os.path.isfile(fname)
with open(fname, "r", encoding="utf-8") as f:
assert check_str in f.read()
| data/meson-1.3.2/test cases/frameworks/6 gettext/data3/verify.py | 199 | 87 | 82,085 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME AppKit
STORE_NAME AppKit
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_BUILD_CLASS
LOAD_CONST <code object TestNSAlignmentFeedbackF... | import AppKit # noqa: F401
from PyObjCTools.TestSupport import TestCase, min_os_level
class TestNSAlignmentFeedbackFilter(TestCase):
@min_os_level("10.11")
def testProtocols(self):
self.assertProtocolExists("NSAlignmentFeedbackToken")
| data/pyobjc-framework-Cocoa-10.1/PyObjCTest/test_nsalignmentfeedbackfilter.py | 291 | 87 | 64,247 |
LOAD_CONST 1
LOAD_CONST ('PmmlModel', 'TablesModel', 'install_mixin')
IMPORT_NAME expr
IMPORT_FROM PmmlModel
STORE_NAME PmmlModel
IMPORT_FROM TablesModel
STORE_NAME TablesModel
IMPORT_FROM install_mixin
STORE_NAME install_mixin
POP_TOP
LOAD_CONST 1
LOAD_CONST ('FieldRole', 'FieldContinuity')
IMPORT_NAME enums
IMPORT_F... | from .expr import PmmlModel, TablesModel, install_mixin
from .enums import FieldRole, FieldContinuity
from .expr.mixin import merge_data
from .runners import XFlowNodeRunner
from .models import TablesModelObject, install_plugin
try:
from ..internal.ml import *
except ImportError:
pass
| data/pyodps-0.11.5.post0/odps/ml/__init__.py | 285 | 87 | 299,706 |
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 GameController
STORE_NAME GameController
LOAD_BUILD_CLASS
LOAD_CONST <code object TestG... | from PyObjCTools.TestSupport import TestCase, min_sdk_level
import GameController # noqa: F401
class TestGCDevice(TestCase):
@min_sdk_level("11.0")
def test_protocols11_0(self):
self.assertProtocolExists("GCDevice")
| data/pyobjc-framework-GameController-10.1/PyObjCTest/test_gcdevice.py | 289 | 87 | 316,194 |
LOAD_CONST 2
LOAD_CONST ('iso_register',)
IMPORT_NAME registry_tools
IMPORT_FROM iso_register
STORE_NAME iso_register
POP_TOP
LOAD_CONST 1
LOAD_CONST ('UnitedStates',)
IMPORT_NAME core
IMPORT_FROM UnitedStates
STORE_NAME UnitedStates
POP_TOP
LOAD_NAME iso_register
LOAD_CONST 'US-UT'
CALL_FUNCTION
LOAD_BUILD_CLASS
LOA... | from ..registry_tools import iso_register
from .core import UnitedStates
@iso_register("US-UT")
class Utah(UnitedStates):
"""Utah"""
FIXED_HOLIDAYS = UnitedStates.FIXED_HOLIDAYS + ((7, 24, "Pioneer Day"),)
| data/workalendar-17.0.0/workalendar/usa/utah.py | 227 | 87 | 132,048 |
LOAD_CONST 'Module for defining common utilities related to data processing.'
STORE_NAME __doc__
LOAD_CONST 1
LOAD_CONST ('convert_to_list', 'convert_to_string_list_dict', 'serialize_json_safe')
IMPORT_NAME data_processing_utils
IMPORT_FROM convert_to_list
STORE_NAME convert_to_list
IMPORT_FROM convert_to_string_list_... | """Module for defining common utilities related to data processing."""
from .data_processing_utils import (
convert_to_list,
convert_to_string_list_dict,
serialize_json_safe,
)
__all__ = ["convert_to_list", "convert_to_string_list_dict", "serialize_json_safe"]
| data/raiutils-0.4.1/raiutils/data_processing/__init__.py | 158 | 87 | 237,660 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME importlib
STORE_NAME importlib
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME os
STORE_NAME os
SETUP_LOOP to 100
LOAD_NAME sorted
LOAD_NAME os
LOAD_METHOD listdir
LOAD_NAME os
LOAD_ATTR path
LOAD_METHOD dirname
LOAD_NAME __file__
CALL_METHOD
CALL_METHOD
CALL_FUNCTION
GET_ITER
FOR_IT... | import importlib
import os
for file in sorted(os.listdir(os.path.dirname(__file__))):
if file.endswith(".py") and not file.startswith("_"):
module = file[: file.find(".py")]
importlib.import_module("examples.simultaneous_translation.utils." + module)
| data/fairseq-0.12.2/fairseq/examples/simultaneous_translation/utils/__init__.py | 181 | 87 | 120,487 |
LOAD_CONST 0
LOAD_CONST ('checkpoint', 'checkpoint_policies', 'checkpoint_name', 'print_saved_residuals', 'remat')
IMPORT_NAME jax._src.ad_checkpoint
IMPORT_FROM checkpoint
STORE_NAME checkpoint
IMPORT_FROM checkpoint_policies
STORE_NAME checkpoint_policies
IMPORT_FROM checkpoint_name
STORE_NAME checkpoint_name
IMPORT_... | from jax._src.ad_checkpoint import (
checkpoint,
checkpoint_policies,
checkpoint_name,
print_saved_residuals,
remat,
)
from jax._src.interpreters.partial_eval import (
Recompute,
Saveable,
Offloadable,
)
| data/jax-0.4.24/jax/ad_checkpoint.py | 182 | 87 | 328,676 |
LOAD_CONST 0
LOAD_CONST ('annotations',)
IMPORT_NAME __future__
IMPORT_FROM annotations
STORE_NAME annotations
POP_TOP
LOAD_CONST 0
LOAD_CONST ('setup',)
IMPORT_NAME skbuild
IMPORT_FROM setup
STORE_NAME setup
POP_TOP
LOAD_NAME setup
LOAD_CONST 'manifest-in'
LOAD_CONST '1.2.3'
LOAD_CONST 'a minimal example package ... | from __future__ import annotations
from skbuild import setup
setup(
name="manifest-in",
version="1.2.3",
description="a minimal example package with a MANIFEST.in",
author="The scikit-build team",
license="MIT",
packages=["hello"],
)
| data/scikit_build-0.17.6/tests/samples/manifest-in/setup.py | 143 | 87 | 198,899 |
LOAD_CONST 0
LOAD_CONST ('admin',)
IMPORT_NAME django.contrib
IMPORT_FROM admin
STORE_NAME admin
POP_TOP
LOAD_CONST 0
LOAD_CONST ('VersionAdmin',)
IMPORT_NAME reversion.admin
IMPORT_FROM VersionAdmin
STORE_NAME VersionAdmin
POP_TOP
LOAD_CONST 0
LOAD_CONST ('TestModel', 'TestModelRelated')
IMPORT_NAME test_app.models
... | from django.contrib import admin
from reversion.admin import VersionAdmin
from test_app.models import TestModel, TestModelRelated
class TestModelAdmin(VersionAdmin):
filter_horizontal = ("related",)
admin.site.register(TestModel, TestModelAdmin)
admin.site.register(TestModelRelated, admin.ModelAdmin)
| data/django-reversion-5.0.12/tests/test_app/admin.py | 254 | 87 | 141,288 |
LOAD_CONST 0
LOAD_CONST ('models',)
IMPORT_NAME django.db
IMPORT_FROM models
STORE_NAME models
POP_TOP
LOAD_CONST 0
LOAD_CONST ('NPDistrictField', 'NPZoneField', 'NPProvinceField')
IMPORT_NAME localflavor.np.models
IMPORT_FROM NPDistrictField
STORE_NAME NPDistrictField
IMPORT_FROM NPZoneField
STORE_NAME NPZoneField
IM... | from django.db import models
from localflavor.np.models import NPDistrictField, NPZoneField, NPProvinceField
class NepalianPlace(models.Model):
district = NPDistrictField(blank=True)
zone = NPZoneField(blank=True)
province = NPProvinceField(blank=True)
| data/django-localflavor-4.0/tests/test_np/models.py | 263 | 87 | 434,836 |
LOAD_CONST 2
LOAD_CONST ('ShopifyResource',)
IMPORT_NAME base
IMPORT_FROM ShopifyResource
STORE_NAME ShopifyResource
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object CarrierService at 0x7fab427d3c90, file "f.py", line 4>
LOAD_CONST 'CarrierService'
MAKE_FUNCTION
LOAD_CONST 'CarrierService'
LOAD_NAME ShopifyResource
CA... | from ..base import ShopifyResource
class CarrierService(ShopifyResource):
def __get_format(self):
return self.attributes.get("format")
def __set_format(self, data):
self.attributes["format"] = data
format = property(__get_format, __set_format, None, "Format attribute")
| data/ShopifyAPI-12.4.0/shopify/resources/carrier_service.py | 322 | 87 | 216,718 |
LOAD_CONST 'rlu_dmlab_seekavoid_arena01 dataset.'
STORE_NAME __doc__
LOAD_CONST 0
LOAD_CONST ('RluDmlabSeekavoidArena01',)
IMPORT_NAME tensorflow_datasets.rl_unplugged.rlu_dmlab_seekavoid_arena01.rlu_dmlab_seekavoid_arena01
IMPORT_FROM RluDmlabSeekavoidArena01
STORE_NAME RluDmlabSeekavoidArena01
POP_TOP
LOAD_CONST Non... | """rlu_dmlab_seekavoid_arena01 dataset."""
from tensorflow_datasets.rl_unplugged.rlu_dmlab_seekavoid_arena01.rlu_dmlab_seekavoid_arena01 import (
RluDmlabSeekavoidArena01,
)
| data/tensorflow-datasets-4.9.4/tensorflow_datasets/rl_unplugged/rlu_dmlab_seekavoid_arena01/__init__.py | 131 | 87 | 255,078 |
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 EstonianDefaults(BaseDefaults):
stop_words = STOP_WORDS
class Estonian(Language):
lang = "et"
Defaults = EstonianDefaults
__all__ = ["Estonian"]
| data/spacy-3.7.4/spacy/lang/et/__init__.py | 320 | 87 | 147,619 |
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_uint32_64_1():
raise NotImplementedError("Unable to generate any tests for kernel")
| data/awkward-cpp-29/tests-cpu-kernels/test_cpuawkward_reduce_sum_bool_uint32_64.py | 228 | 87 | 221,506 |
LOAD_CONST 0
LOAD_CONST ('Model', 'xsum')
IMPORT_NAME mip.model
IMPORT_FROM Model
STORE_NAME Model
IMPORT_FROM xsum
STORE_NAME xsum
POP_TOP
LOAD_CONST 0
LOAD_CONST ('MINIMIZE', 'BINARY')
IMPORT_NAME mip.constants
IMPORT_FROM MINIMIZE
STORE_NAME MINIMIZE
IMPORT_FROM BINARY
STORE_NAME BINARY
POP_TOP
LOAD_CONST 0
LOAD_C... | from mip.model import Model, xsum
from mip.constants import MINIMIZE, BINARY
from bmcp_data import BMCPData
from typing import List
from itertools import product
def build_mip(data: BMCPData, U: List[int]) -> Model: # list of available channels
return m
| data/mip-1.15.0/examples/apps/bmcp/bmcp_mip.py | 256 | 87 | 177,964 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME unittest
STORE_NAME unittest
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME mechanize
STORE_NAME mechanize
LOAD_CONST 0
LOAD_CONST ('TestCase',)
IMPORT_NAME mechanize._testcase
IMPORT_FROM TestCase
STORE_NAME TestCase
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object ImportTests at ... | import unittest
import mechanize
from mechanize._testcase import TestCase
class ImportTests(TestCase):
def test_import_all(self):
for name in mechanize.__all__:
exec("from mechanize import %s" % name)
if __name__ == "__main__":
unittest.main()
| data/mechanize-0.4.9/test/test_import.py | 301 | 87 | 80,528 |
LOAD_CONST '\nShould emit:\nB003 - on line 10\n'
STORE_NAME __doc__
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME os
STORE_NAME os
LOAD_CONST 0
LOAD_CONST ('environ',)
IMPORT_NAME os
IMPORT_FROM environ
STORE_NAME environ
POP_TOP
BUILD_MAP
LOAD_NAME os
STORE_ATTR environ
BUILD_MAP
STORE_NAME environ
LOAD_BUILD_CLASS
LO... | """
Should emit:
B003 - on line 10
"""
import os
from os import environ
os.environ = {}
environ = {} # that's fine, assigning a new meaning to the module-level name
class Object:
os = None
o = Object()
o.os.environ = {}
| data/flake8-bugbear-24.2.6/tests/b003.py | 196 | 88 | 169,277 |
LOAD_CONST 'DO NOT EDIT.\n\nThis file was autogenerated. Do not edit it by hand,\nsince your modifications would be overwritten.\n'
STORE_NAME __doc__
LOAD_CONST 0
LOAD_CONST ('deserialize_keras_object',)
IMPORT_NAME keras_core.src.legacy.saving.serialization
IMPORT_FROM deserialize_keras_object
STORE_NAME deserialize... | """DO NOT EDIT.
This file was autogenerated. Do not edit it by hand,
since your modifications would be overwritten.
"""
from keras_core.src.legacy.saving.serialization import deserialize_keras_object
from keras_core.src.legacy.saving.serialization import serialize_keras_object
| data/keras-core-0.1.7/keras_core/_tf_keras/legacy/saving/__init__.py | 158 | 88 | 386,004 |
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 UniformTypeIdentifiers
STORE_NAME UniformTypeIdentifiers
LOAD_BUILD_CLASS
LOAD_CONST <code object TestUTTagClass at 0x7faa7c16a0c0, file "f.py", line 6>
L... | from PyObjCTools.TestSupport import TestCase
import UniformTypeIdentifiers
class TestUTTagClass(TestCase):
def test_constants(self):
self.assertIsInstance(UniformTypeIdentifiers.UTTagClassFilenameExtension, str)
self.assertIsInstance(UniformTypeIdentifiers.UTTagClassMIMEType, str)
| data/pyobjc-framework-UniformTypeIdentifiers-10.1/PyObjCTest/test_uttagclass.py | 280 | 88 | 203,134 |
LOAD_CONST 'Constants for the Homeassistant Hardware integration.'
STORE_NAME __doc__
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME logging
STORE_NAME logging
LOAD_NAME logging
LOAD_METHOD getLogger
LOAD_NAME __package__
CALL_METHOD
STORE_NAME LOGGER
LOAD_CONST 'core_silabs_multiprotocol'
STORE_NAME SILABS_MULTIPROTOCOL_... | """Constants for the Homeassistant Hardware integration."""
import logging
LOGGER = logging.getLogger(__package__)
SILABS_MULTIPROTOCOL_ADDON_SLUG = "core_silabs_multiprotocol"
SILABS_FLASHER_ADDON_SLUG = "core_silabs_flasher"
| data/homeassistant-2024.2.2/homeassistant/components/homeassistant_hardware/const.py | 120 | 88 | 295,507 |
LOAD_CONST "Dataset definition for pg19.\n\nDEPRECATED!\nIf you want to use the Pg19 dataset builder class, use:\ntfds.builder_cls('pg19')\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 pg19.
DEPRECATED!
If you want to use the Pg19 dataset builder class, use:
tfds.builder_cls('pg19')
"""
from tensorflow_datasets.core import lazy_builder_import
Pg19 = lazy_builder_import.LazyBuilderImport("pg19")
| data/tfds-nightly-4.9.4.dev202402210044/tensorflow_datasets/text/pg19.py | 132 | 88 | 211,144 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME atexit
STORE_NAME atexit
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME sys
STORE_NAME sys
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME coverage
STORE_NAME coverage
LOAD_NAME coverage
LOAD_METHOD Coverage
CALL_METHOD
STORE_NAME cov
LOAD_NAME cov
LOAD_METHOD start
CALL_METHOD
POP_TOP
... | import atexit
import sys
import coverage
cov = coverage.Coverage()
cov.start()
def finalize_coverage():
print("writing coverage", file=sys.stderr)
cov.stop()
cov.save()
atexit.register(finalize_coverage)
from ...content import server # noqa
| data/pulpcore-3.46.0/pulpcore/tests/functional/content_with_coverage.py | 221 | 88 | 218,001 |
LOAD_CONST 1
LOAD_CONST ('ElasticMapReduceResponse',)
IMPORT_NAME responses
IMPORT_FROM ElasticMapReduceResponse
STORE_NAME ElasticMapReduceResponse
POP_TOP
LOAD_CONST 'https?://(.+)\\.elasticmapreduce\\.amazonaws.com'
LOAD_CONST 'https?://elasticmapreduce\\.(.+)\\.amazonaws.com'
BUILD_LIST
STORE_NAME url_bases
LOAD... | from .responses import ElasticMapReduceResponse
url_bases = [
r"https?://(.+)\.elasticmapreduce\.amazonaws.com",
r"https?://elasticmapreduce\.(.+)\.amazonaws.com",
]
url_paths = {"{0}/$": ElasticMapReduceResponse.dispatch}
| data/moto-5.0.2/moto/emr/urls.py | 120 | 88 | 197,961 |
LOAD_CONST 1
LOAD_CONST ('AsyncBoltSocket', 'BoltSocket')
IMPORT_NAME _bolt_socket
IMPORT_FROM AsyncBoltSocket
STORE_NAME AsyncBoltSocket
IMPORT_FROM BoltSocket
STORE_NAME BoltSocket
POP_TOP
LOAD_CONST 1
LOAD_CONST ('AsyncNetworkUtil', 'NetworkUtil')
IMPORT_NAME _util
IMPORT_FROM AsyncNetworkUtil
STORE_NAME AsyncNetwo... | from ._bolt_socket import (
AsyncBoltSocket,
BoltSocket,
)
from ._util import (
AsyncNetworkUtil,
NetworkUtil,
)
__all__ = [
"AsyncBoltSocket",
"AsyncNetworkUtil",
"BoltSocket",
"NetworkUtil",
]
| data/neo4j-driver-5.17.0/src/neo4j/_async_compat/network/__init__.py | 141 | 88 | 329,207 |
LOAD_BUILD_CLASS
LOAD_CONST <code object HexFormattingMixin at 0x7fa6d50a2930, file "f.py", line 1>
LOAD_CONST 'HexFormattingMixin'
MAKE_FUNCTION
LOAD_CONST 'HexFormattingMixin'
LOAD_NAME object
CALL_FUNCTION
STORE_NAME HexFormattingMixin
LOAD_CONST None
RETURN_VALUE
LOAD_NAME __name__
STORE_NAME __module__
LOAD_CONST... | class HexFormattingMixin(object):
def __str__(self):
n = int(self)
width = (self.width + 3) // 4
if n < 0:
return "-0x%0*x" % (width, -n)
else:
return "0x%0*x" % (width, n)
| data/fixedint-0.2.0/fixedint/util.py | 266 | 88 | 45,145 |
LOAD_CONST 'DO NOT EDIT.\n\nThis file was autogenerated. Do not edit it by hand,\nsince your modifications would be overwritten.\n'
STORE_NAME __doc__
LOAD_CONST 0
LOAD_CONST ('deserialize_keras_object',)
IMPORT_NAME keras_core.src.legacy.saving.serialization
IMPORT_FROM deserialize_keras_object
STORE_NAME deserialize... | """DO NOT EDIT.
This file was autogenerated. Do not edit it by hand,
since your modifications would be overwritten.
"""
from keras_core.src.legacy.saving.serialization import deserialize_keras_object
from keras_core.src.legacy.saving.serialization import serialize_keras_object
| data/keras-core-0.1.7/keras_core/_tf_keras/utils/legacy/__init__.py | 158 | 88 | 385,997 |
LOAD_CONST '2.6.0'
STORE_NAME __version__
SETUP_EXCEPT to 24
LOAD_NAME __import__
LOAD_CONST 'pkg_resources'
CALL_FUNCTION
LOAD_METHOD declare_namespace
LOAD_NAME __name__
CALL_METHOD
POP_TOP
POP_BLOCK
JUMP_FORWARD to 66
DUP_TOP
LOAD_NAME ImportError
COMPARE_OP exception match
POP_JUMP_IF_FALSE
POP_TOP
POP_TOP
POP_T... | __version__ = "2.6.0"
try:
__import__("pkg_resources").declare_namespace(__name__)
except ImportError:
from pkgutil import extend_path
__path__ = extend_path(__path__, __name__)
def initVM():
"""back compat method for JCC based Tika"""
return
| data/tika-2.6.0/tika/__init__.py | 198 | 88 | 436,686 |
LOAD_CONST 'Errors for the Hue component.'
STORE_NAME __doc__
LOAD_CONST 0
LOAD_CONST ('HomeAssistantError',)
IMPORT_NAME homeassistant.exceptions
IMPORT_FROM HomeAssistantError
STORE_NAME HomeAssistantError
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object HueException at 0x7fab81fc24b0, file "f.py", line 6>
LOAD_CON... | """Errors for the Hue component."""
from homeassistant.exceptions import HomeAssistantError
class HueException(HomeAssistantError):
"""Base class for Hue exceptions."""
class CannotConnect(HueException):
"""Unable to connect to the bridge."""
class AuthenticationRequired(HueException):
"""Unknown err... | data/homeassistant-2024.2.2/homeassistant/components/hue/errors.py | 378 | 88 | 298,147 |
LOAD_CONST 1
LOAD_CONST ('EventLogger',)
IMPORT_NAME logger
IMPORT_FROM EventLogger
STORE_NAME EventLogger
POP_TOP
LOAD_CONST 1
LOAD_CONST ('get_session_id',)
IMPORT_NAME metadata
IMPORT_FROM get_session_id
STORE_NAME get_session_id
POP_TOP
LOAD_CONST 1
LOAD_CONST ('GlobalAnalyticsBus',)
IMPORT_NAME publisher
IMPORT_... | from .logger import EventLogger
from .metadata import get_session_id
from .publisher import GlobalAnalyticsBus
name = "analytics"
def _create_global_analytics_bus():
return GlobalAnalyticsBus()
log = EventLogger(handler=_create_global_analytics_bus(), session_id=get_session_id())
| data/localstack-core-3.1.0/localstack/utils/analytics/__init__.py | 223 | 88 | 225,160 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.