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 ('collect_submodules', 'collect_data_files')
IMPORT_NAME PyInstaller.utils.hooks
IMPORT_FROM collect_submodules
STORE_NAME collect_submodules
IMPORT_FROM collect_data_files
STORE_NAME collect_data_files
POP_TOP
LOAD_NAME collect_submodules
LOAD_CONST 'pysnmp.smi.mibs'
CALL_FUNCTION
STORE_NAME h... | from PyInstaller.utils.hooks import collect_submodules, collect_data_files
hiddenimports = collect_submodules("pysnmp.smi.mibs")
datas = collect_data_files("pysnmp.smi.mibs", include_py_files=True)
| data/pyinstaller-hooks-contrib-2024.1/src/_pyinstaller_hooks_contrib/hooks/stdhooks/hook-pysnmp.py | 132 | 75 | 282,350 |
LOAD_CONST ' Code Eval Input '
STORE_NAME __doc__
LOAD_CONST 0
LOAD_CONST ('TypedDict',)
IMPORT_NAME typing_extensions
IMPORT_FROM TypedDict
STORE_NAME TypedDict
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object LambdaInput at 0x7fab700ad780, file "f.py", line 6>
LOAD_CONST 'LambdaInput'
MAKE_FUNCTION
LOAD_CONST 'Lamb... | """ Code Eval Input """
from typing_extensions import TypedDict
class LambdaInput(TypedDict, total=False):
"""Typed dictionary for lambda inputs"""
code: str
input: str
output: str
entry_point: str
language: str
| data/mosaicml-cli-0.6.8/mcli/models/lambda_input.py | 257 | 75 | 189,930 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME pytest
STORE_NAME pytest
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME kernels
STORE_NAME kernels
LOAD_NAME pytest
LOAD_ATTR mark
LOAD_ATTR skip
LOAD_CONST 'Unable to generate any tests for kernel'
LOAD_CONST ('reason',)
CALL_FUNCTION
LOAD_CONST <code object test_pyawkward_reduce_m... | import pytest
import kernels
@pytest.mark.skip(reason="Unable to generate any tests for kernel")
def test_pyawkward_reduce_min_float64_float64_64_1():
raise NotImplementedError("Unable to generate any tests for kernel")
| data/awkward-cpp-29/tests-spec/test_pyawkward_reduce_min_float64_float64_64.py | 203 | 75 | 220,533 |
LOAD_CONST 'sphinx.ext.extlinks'
BUILD_LIST
STORE_NAME extensions
LOAD_CONST ('https://github.com/%s', '@%s')
LOAD_CONST ('https://github.com/%s', 'project %s')
LOAD_CONST ('user', 'repo')
BUILD_CONST_KEY_MAP
STORE_NAME extlinks
LOAD_CONST True
STORE_NAME extlinks_detect_hardcoded_links
LOAD_CONST None
RETURN_VALUE | extensions = ["sphinx.ext.extlinks"]
extlinks = {
"user": ("https://github.com/%s", "@%s"),
"repo": ("https://github.com/%s", "project %s"),
}
extlinks_detect_hardcoded_links = True
| data/sphinx-7.2.6/tests/roots/test-ext-extlinks-hardcoded-urls-multiple-replacements/conf.py | 89 | 75 | 381,114 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME sys
STORE_NAME sys
LOAD_CONST 0
LOAD_CONST ('path',)
IMPORT_NAME os
IMPORT_FROM path
STORE_NAME path
POP_TOP
LOAD_NAME sys
LOAD_ATTR path
LOAD_METHOD insert
LOAD_CONST 0
LOAD_NAME path
LOAD_METHOD abspath
LOAD_NAME path
LOAD_METHOD dirname
LOAD_NAME __file__
CALL_METHOD
CALL_M... | import sys
from os import path
sys.path.insert(0, path.abspath(path.dirname(__file__)))
project = "test project for doctest + autodoc reporting"
extensions = ["sphinx.ext.autodoc", "sphinx.ext.doctest"]
| data/sphinx-7.2.6/tests/roots/test-ext-doctest-with-autodoc/conf.py | 133 | 75 | 381,111 |
LOAD_CONST 0
LOAD_CONST ('CMSAppConfig',)
IMPORT_NAME cms.app_base
IMPORT_FROM CMSAppConfig
STORE_NAME CMSAppConfig
POP_TOP
LOAD_CONST 0
LOAD_CONST ('sample_wizard',)
IMPORT_NAME cms.test_utils.project.sampleapp.cms_wizards
IMPORT_FROM sample_wizard
STORE_NAME sample_wizard
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code o... | from cms.app_base import CMSAppConfig
from cms.test_utils.project.sampleapp.cms_wizards import sample_wizard
class SampleAppConfig(CMSAppConfig):
cms_enabled = True
cms_wizards = [sample_wizard]
| data/django-cms-4.1.0/cms/test_utils/project/sampleapp/cms_config.py | 210 | 75 | 87,032 |
LOAD_CONST 1
LOAD_CONST ('FixedSetOfTriplets',)
IMPORT_NAME fixed_set_of_triplets
IMPORT_FROM FixedSetOfTriplets
STORE_NAME FixedSetOfTriplets
POP_TOP
LOAD_CONST 1
LOAD_CONST ('HierarchicalSampler',)
IMPORT_NAME hierarchical_sampler
IMPORT_FROM HierarchicalSampler
STORE_NAME HierarchicalSampler
POP_TOP
LOAD_CONST 1
L... | from .fixed_set_of_triplets import FixedSetOfTriplets
from .hierarchical_sampler import HierarchicalSampler
from .m_per_class_sampler import MPerClassSampler
from .tuples_to_weights_sampler import TuplesToWeightsSampler
| data/pytorch-metric-learning-2.4.1/src/pytorch_metric_learning/samplers/__init__.py | 181 | 75 | 394,268 |
LOAD_CONST 0
LOAD_CONST ('current_audit_info',)
IMPORT_NAME prowler.providers.aws.lib.audit_info.audit_info
IMPORT_FROM current_audit_info
STORE_NAME current_audit_info
POP_TOP
LOAD_CONST 0
LOAD_CONST ('GuardDuty',)
IMPORT_NAME prowler.providers.aws.services.guardduty.guardduty_service
IMPORT_FROM GuardDuty
STORE_NAME... | from prowler.providers.aws.lib.audit_info.audit_info import current_audit_info
from prowler.providers.aws.services.guardduty.guardduty_service import GuardDuty
guardduty_client = GuardDuty(current_audit_info)
| data/prowler-3.14.0/prowler/providers/aws/services/guardduty/guardduty_client.py | 131 | 75 | 183,166 |
LOAD_CONST 0
LOAD_CONST ('metadata',)
IMPORT_NAME importlib
IMPORT_FROM metadata
STORE_NAME metadata
POP_TOP
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME stamina
STORE_NAME stamina
LOAD_CONST <code object test_version at 0x7fab701da270, file "f.py", line 6>
LOAD_CONST 'test_version'
MAKE_FUNCTION
STORE_NAME test_version
... | from importlib import metadata
import stamina
def test_version(recwarn):
"""
stamina.__version__ returns the correct version and doesn't warn.
"""
assert metadata.version("stamina") == stamina.__version__
assert [] == recwarn.list
| data/stamina-24.2.0/tests/test_packaging.py | 158 | 75 | 88,883 |
LOAD_CONST ' A wheel file '
STORE_NAME __doc__
LOAD_CONST '1.2.3'
STORE_NAME __version__
LOAD_NAME __version__
LOAD_CONST 'UNKNOWN'
COMPARE_OP ==
POP_JUMP_IF_FALSE
LOAD_CONST (0, 0, 0)
STORE_NAME __version_info__
JUMP_FORWARD to 42
LOAD_NAME tuple
LOAD_NAME map
LOAD_NAME int
LOAD_NAME __version__
LOAD_METHOD split
... | """ A wheel file """
__version__ = "1.2.3"
if __version__ == "UNKNOWN":
__version_info__ = (0, 0, 0)
else:
__version_info__ = tuple(map(int, __version__.split(".")))
| data/versioningit-3.0.0/test/data/replace-version/not-source.py | 111 | 75 | 46,906 |
LOAD_CONST 0
LOAD_CONST ('Flask',)
IMPORT_NAME flask
IMPORT_FROM Flask
STORE_NAME Flask
POP_TOP
LOAD_NAME Flask
LOAD_NAME __name__
CALL_FUNCTION
STORE_NAME app
LOAD_NAME app
LOAD_METHOD route
LOAD_CONST '/'
CALL_METHOD
LOAD_CONST <code object main at 0x7fab81fc4660, file "f.py", line 6>
LOAD_CONST 'main'
MAKE_FUNCTIO... | from flask import Flask
app = Flask(__name__)
@app.route("/")
def main():
raise
app.run(debug=True)
app.run()
app.run(debug=False)
run()
run(debug=True)
run(debug)
| data/bandit-1.7.7/examples/flask_debug.py | 196 | 75 | 56,703 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME pytest
STORE_NAME pytest
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME kernels
STORE_NAME kernels
LOAD_NAME pytest
LOAD_ATTR mark
LOAD_ATTR skip
LOAD_CONST 'Unable to generate any tests for kernel'
LOAD_CONST ('reason',)
CALL_FUNCTION
LOAD_CONST <code object test_pyawkward_NumpyArr... | import pytest
import kernels
@pytest.mark.skip(reason="Unable to generate any tests for kernel")
def test_pyawkward_NumpyArray_fill_toint64_fromint8_1():
raise NotImplementedError("Unable to generate any tests for kernel")
| data/awkward-cpp-29/tests-spec/test_pyawkward_NumpyArray_fill_toint64_fromint8.py | 203 | 75 | 220,536 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME pytest
STORE_NAME pytest
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME kernels
STORE_NAME kernels
LOAD_NAME pytest
LOAD_ATTR mark
LOAD_ATTR skip
LOAD_CONST 'Unable to generate any tests for kernel'
LOAD_CONST ('reason',)
CALL_FUNCTION
LOAD_CONST <code object test_pyawkward_ListOffs... | import pytest
import kernels
@pytest.mark.skip(reason="Unable to generate any tests for kernel")
def test_pyawkward_ListOffsetArrayU32_rpad_axis1_64_1():
raise NotImplementedError("Unable to generate any tests for kernel")
| data/awkward-cpp-29/tests-spec/test_pyawkward_ListOffsetArrayU32_rpad_axis1_64.py | 204 | 75 | 220,537 |
LOAD_CONST 0
LOAD_CONST ('AbstractParser',)
IMPORT_NAME pysmi.parser.base
IMPORT_FROM AbstractParser
STORE_NAME AbstractParser
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object NullParser at 0x7fab82049b70, file "f.py", line 4>
LOAD_CONST 'NullParser'
MAKE_FUNCTION
LOAD_CONST 'NullParser'
LOAD_NAME AbstractParser
CALL_... | from pysmi.parser.base import AbstractParser
class NullParser(AbstractParser):
def __init__(self, startSym="mibFile", tempdir=""):
pass
def reset(self):
pass
def parse(self, data, **kwargs):
return []
| data/pysmi-0.3.4/pysmi/parser/null.py | 292 | 75 | 155,023 |
LOAD_CONST 0
LOAD_CONST ('Enum',)
IMPORT_NAME enum
IMPORT_FROM Enum
STORE_NAME Enum
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object TextEnum at 0x7fab703b00c0, file "f.py", line 4>
LOAD_CONST 'TextEnum'
MAKE_FUNCTION
LOAD_CONST 'TextEnum'
LOAD_NAME str
LOAD_NAME Enum
CALL_FUNCTION
STORE_NAME TextEnum
LOAD_CONST None
... | from enum import Enum
class TextEnum(str, Enum):
def __repr__(self):
return self._value_ # pylint:disable=no-member
def __str__(self):
return str(self.value) # pylint:disable=no-member
| data/boxsdk-3.9.2/boxsdk/util/text_enum.py | 248 | 75 | 231,017 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME warnings
STORE_NAME warnings
LOAD_CONST <code object ignore_warnings at 0x7f8e44ccfc00, file "f.py", line 4>
LOAD_CONST 'ignore_warnings'
MAKE_FUNCTION
STORE_NAME ignore_warnings
LOAD_CONST None
RETURN_VALUE
LOAD_CLOSURE test_func
BUILD_TUPLE
LOAD_CONST <code object do_test at... | import warnings
def ignore_warnings(test_func):
def do_test(self, *args, **kwargs):
with warnings.catch_warnings():
warnings.simplefilter("ignore", ResourceWarning)
test_func(self, *args, **kwargs)
return do_test
| data/launchable-1.82.4/tests/helper.py | 226 | 75 | 422,266 |
SETUP_EXCEPT to 18
LOAD_CONST 0
LOAD_CONST ('version',)
IMPORT_NAME importlib.metadata
IMPORT_FROM version
STORE_NAME version
POP_TOP
POP_BLOCK
JUMP_FORWARD to 50
DUP_TOP
LOAD_NAME ImportError
COMPARE_OP exception match
POP_JUMP_IF_FALSE
POP_TOP
POP_TOP
POP_TOP
LOAD_CONST 0
LOAD_CONST ('version',)
IMPORT_NAME import... | try:
from importlib.metadata import version # type: ignore
except ImportError:
from importlib_metadata import version # type: ignore
from .leakybucket import AsyncLimiter
__version__ = version("aiolimiter")
__all__ = ["AsyncLimiter"]
| data/aiolimiter-1.1.0/src/aiolimiter/__init__.py | 169 | 75 | 41,085 |
LOAD_CONST ' imageio_ffmpeg, FFMPEG wrapper for Python.\n'
STORE_NAME __doc__
LOAD_CONST 1
LOAD_CONST ('__version__',)
IMPORT_NAME _definitions
IMPORT_FROM __version__
STORE_NAME __version__
POP_TOP
LOAD_CONST 1
LOAD_CONST ('count_frames_and_secs', 'read_frames', 'write_frames')
IMPORT_NAME _io
IMPORT_FROM count_fram... | """ imageio_ffmpeg, FFMPEG wrapper for Python.
"""
from ._definitions import __version__
from ._io import count_frames_and_secs, read_frames, write_frames
from ._utils import get_ffmpeg_exe, get_ffmpeg_version
| data/imageio-ffmpeg-0.4.9/imageio_ffmpeg/__init__.py | 200 | 75 | 253,962 |
LOAD_CONST 'default'
LOAD_CONST 'django.db.backends.sqlite3'
LOAD_CONST ':memory:'
LOAD_CONST ('ENGINE', 'NAME')
BUILD_CONST_KEY_MAP
BUILD_MAP
STORE_NAME DATABASES
LOAD_CONST 'django.contrib.staticfiles'
BUILD_LIST
STORE_NAME INSTALLED_APPS
LOAD_CONST '/static/'
STORE_NAME STATIC_URL
LOAD_CONST 'supersikret'
STORE_N... | DATABASES = {"default": {"ENGINE": "django.db.backends.sqlite3", "NAME": ":memory:"}}
INSTALLED_APPS = ["django.contrib.staticfiles"]
STATIC_URL = "/static/"
SECRET_KEY = "supersikret"
| data/django_js_asset-2.2.0/tests/testapp/settings.py | 100 | 75 | 370,695 |
LOAD_CONST 1
LOAD_CONST ('*',)
IMPORT_NAME __cmd_group
IMPORT_STAR
LOAD_CONST 1
LOAD_CONST ('*',)
IMPORT_NAME _check_ip_address
IMPORT_STAR
LOAD_CONST 1
LOAD_CONST ('*',)
IMPORT_NAME _create
IMPORT_STAR
LOAD_CONST 1
LOAD_CONST ('*',)
IMPORT_NAME _delete
IMPORT_STAR
LOAD_CONST 1
LOAD_CONST ('*',)
IMPORT_NAME _list
I... | from .__cmd_group import *
from ._check_ip_address import *
from ._create import *
from ._delete import *
from ._list import *
from ._list_endpoint_services import *
from ._show import *
from ._update import *
from ._wait import *
| data/azure-cli-2.57.0/azure/cli/command_modules/network/aaz/profile_2018_03_01_hybrid/network/vnet/__init__.py | 168 | 75 | 378,879 |
LOAD_CONST 0
LOAD_CONST ('*',)
IMPORT_NAME azure.cli.core.aaz
IMPORT_STAR
LOAD_NAME register_command_group
LOAD_CONST 'network route-table route'
CALL_FUNCTION
LOAD_BUILD_CLASS
LOAD_CONST <code object __CMDGroup at 0x7fab8204a390, file "f.py", line 4>
LOAD_CONST '__CMDGroup'
MAKE_FUNCTION
LOAD_CONST '__CMDGroup'
LOA... | from azure.cli.core.aaz import *
@register_command_group(
"network route-table route",
)
class __CMDGroup(AAZCommandGroup):
"""Manage routes in a route table."""
pass
__all__ = ["__CMDGroup"]
| data/azure-cli-2.57.0/azure/cli/command_modules/network/aaz/profile_2018_03_01_hybrid/network/route_table/route/__cmd_group.py | 185 | 75 | 378,868 |
LOAD_CONST 0
LOAD_CONST ('ClientValue',)
IMPORT_NAME office365.runtime.client_value
IMPORT_FROM ClientValue
STORE_NAME ClientValue
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object ExecutionHistoryResponse at 0x7fab82236ae0, file "f.py", line 4>
LOAD_CONST 'ExecutionHistoryResponse'
MAKE_FUNCTION
LOAD_CONST 'ExecutionH... | from office365.runtime.client_value import ClientValue
class ExecutionHistoryResponse(ClientValue):
""""""
@property
def entity_type_name(self):
return (
"Microsoft.Online.SharePoint.TenantAdministration.ExecutionHistoryResponse"
)
| data/Office365-REST-Python-Client-2.5.5/office365/sharepoint/tenant/administration/execution_history_response.py | 228 | 75 | 189,338 |
LOAD_CONST 'Run a command using a PTY.'
STORE_NAME __doc__
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME sys
STORE_NAME sys
LOAD_NAME sys
LOAD_ATTR version_info
LOAD_CONST (3, 10)
COMPARE_OP <
POP_JUMP_IF_FALSE
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME vendored_pty
STORE_NAME pty
JUMP_FORWARD to 40
LOAD_CONST 0
LOAD_CONS... | """Run a command using a PTY."""
import sys
if sys.version_info < (3, 10):
import vendored_pty as pty
else:
import pty
sys.exit(1 if pty.spawn(sys.argv[1:]) else 0)
| data/ansible-core-2.16.3/test/integration/targets/fork_safe_stdio/run-with-pty.py | 152 | 75 | 437,345 |
LOAD_CONST 'Helper functions.'
STORE_NAME __doc__
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME sys
STORE_NAME sys
LOAD_NAME bool
LOAD_CONST ('return',)
BUILD_CONST_KEY_MAP
LOAD_CONST <code object is_windows at 0x7fab418b0b70, file "f.py", line 6>
LOAD_CONST 'is_windows'
MAKE_FUNCTION
STORE_NAME is_windows
LOAD_CONST None... | """Helper functions."""
import sys
def is_windows() -> bool:
"""
Check whether we are on Windows.
:return: Return True if Windows
"""
return sys.platform.startswith("win32") or sys.platform.startswith("cygwin")
| data/db_contrib_tool-0.6.13/src/db_contrib_tool/utils/__init__.py | 135 | 75 | 318,156 |
LOAD_CONST 0
LOAD_CONST ('CmdAction',)
IMPORT_NAME doit.action
IMPORT_FROM CmdAction
STORE_NAME CmdAction
POP_TOP
LOAD_CONST <code object task_hello at 0x7fab540c5810, file "f.py", line 4>
LOAD_CONST 'task_hello'
MAKE_FUNCTION
STORE_NAME task_hello
LOAD_CONST None
RETURN_VALUE
LOAD_CONST <code object create_cmd_strin... | from doit.action import CmdAction
def task_hello():
"""hello cmd"""
def create_cmd_string():
return "echo hi"
return {
"actions": [CmdAction(create_cmd_string)],
"verbosity": 2,
}
| data/doit-0.36.0/doc/samples/cmd_from_callable.py | 191 | 75 | 109,320 |
LOAD_CONST 0
LOAD_CONST ('create_openai_fn_runnable', 'create_structured_output_runnable')
IMPORT_NAME langchain.chains.structured_output.base
IMPORT_FROM create_openai_fn_runnable
STORE_NAME create_openai_fn_runnable
IMPORT_FROM create_structured_output_runnable
STORE_NAME create_structured_output_runnable
POP_TOP
LO... | from langchain.chains.structured_output.base import (
create_openai_fn_runnable,
create_structured_output_runnable,
)
__all__ = ["create_structured_output_runnable", "create_openai_fn_runnable"]
| data/langchain-0.1.8/langchain/chains/structured_output/__init__.py | 135 | 75 | 369,004 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME pytest
STORE_NAME pytest
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME kernels
STORE_NAME kernels
LOAD_NAME pytest
LOAD_ATTR mark
LOAD_ATTR skip
LOAD_CONST 'Unable to generate any tests for kernel'
LOAD_CONST ('reason',)
CALL_FUNCTION
LOAD_CONST <code object test_pyawkward_reduce_m... | import pytest
import kernels
@pytest.mark.skip(reason="Unable to generate any tests for kernel")
def test_pyawkward_reduce_min_uint32_uint32_64_1():
raise NotImplementedError("Unable to generate any tests for kernel")
| data/awkward-cpp-29/tests-spec/test_pyawkward_reduce_min_uint32_uint32_64.py | 203 | 75 | 220,390 |
LOAD_CONST 0
LOAD_CONST ('Extension',)
IMPORT_NAME setuptools
IMPORT_FROM Extension
STORE_NAME Extension
POP_TOP
LOAD_NAME Extension
LOAD_CONST 'my_package.hello'
LOAD_CONST 'src/my_package/hellomodule.c'
BUILD_LIST
CALL_FUNCTION
BUILD_LIST
STORE_NAME ext_modules
LOAD_CONST <code object pdm_build_update_setup_kwargs ... | from setuptools import Extension
ext_modules = [Extension("my_package.hello", ["src/my_package/hellomodule.c"])]
def pdm_build_update_setup_kwargs(context, setup_kwargs):
setup_kwargs.update(ext_modules=ext_modules)
| data/pdm_backend-2.1.8/tests/fixtures/projects/demo-cextension-in-src/pdm_build.py | 168 | 75 | 132,198 |
LOAD_CONST 'Separate file for storing the current version of SeqIO.\n\nStored in a separate file so that setup.py can reference the version without\npulling in all the dependencies in __init__.py.\n'
STORE_NAME __doc__
LOAD_CONST '0.0.18.dev20240221'
STORE_NAME __version__
LOAD_CONST None
RETURN_VALUE | r"""Separate file for storing the current version of SeqIO.
Stored in a separate file so that setup.py can reference the version without
pulling in all the dependencies in __init__.py.
"""
__version__ = "0.0.18.dev20240221"
| data/seqio-nightly-0.0.18.dev20240221/seqio/version.py | 88 | 75 | 246,729 |
LOAD_CONST 0
LOAD_CONST ('expose',)
IMPORT_NAME Pyro5.api
IMPORT_FROM expose
STORE_NAME expose
POP_TOP
LOAD_NAME expose
LOAD_BUILD_CLASS
LOAD_CONST <code object Thingy at 0x7fab41ed0c90, file "f.py", line 4>
LOAD_CONST 'Thingy'
MAKE_FUNCTION
LOAD_CONST 'Thingy'
LOAD_NAME object
CALL_FUNCTION
CALL_FUNCTION
STORE_NAME ... | from Pyro5.api import expose
@expose
class Thingy(object):
def __init__(self, number):
self.number = number
def speak(self, message):
print("Thingy {0} says: {1}".format(self.number, message))
| data/Pyro5-5.15/examples/autoproxy/thingy.py | 284 | 75 | 79,049 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME sklearn
STORE_NAME sklearn
LOAD_CONST <code object get_sklearn_expected_1d_message at 0x7fab41ed05d0, file "f.py", line 4>
LOAD_CONST 'get_sklearn_expected_1d_message'
MAKE_FUNCTION
STORE_NAME get_sklearn_expected_1d_message
LOAD_CONST None
RETURN_VALUE
LOAD_GLOBAL sklearn
LOA... | import sklearn
def get_sklearn_expected_1d_message():
if sklearn.__version__ < "0.23.0":
expected_message = "bad input shape"
else:
expected_message = "y should be a 1d array"
return expected_message
| data/fairlearn-0.10.0/test/unit/fixes.py | 162 | 75 | 81,523 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME pytest
STORE_NAME pytest
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME kernels
STORE_NAME kernels
LOAD_NAME pytest
LOAD_ATTR mark
LOAD_ATTR skip
LOAD_CONST 'Unable to generate any tests for kernel'
LOAD_CONST ('reason',)
CALL_FUNCTION
LOAD_CONST <code object test_pyawkward_reduce_m... | import pytest
import kernels
@pytest.mark.skip(reason="Unable to generate any tests for kernel")
def test_pyawkward_reduce_min_uint16_uint16_64_1():
raise NotImplementedError("Unable to generate any tests for kernel")
| data/awkward-cpp-29/tests-spec/test_pyawkward_reduce_min_uint16_uint16_64.py | 203 | 75 | 220,608 |
LOAD_CONST 0
LOAD_CONST ('Char',)
IMPORT_NAME insights.parsr
IMPORT_FROM Char
STORE_NAME Char
POP_TOP
LOAD_CONST <code object boom at 0x7fab80248540, file "f.py", line 4>
LOAD_CONST 'boom'
MAKE_FUNCTION
STORE_NAME boom
LOAD_CONST <code object test_error at 0x7fab80248ed0, file "f.py", line 8>
LOAD_CONST 'test_error'
... | from insights.parsr import Char
def boom(_):
raise Exception("Boom")
def test_error():
p = Char("a").map(boom)
try:
p("a")
except Exception as ex:
assert "boom" in str(ex)
| data/insights-core-3.3.9/insights/parsr/tests/test_function_error.py | 276 | 75 | 212,587 |
LOAD_CONST 0
LOAD_CONST ('BoxObjectCollection',)
IMPORT_NAME boxsdk.pagination.box_object_collection
IMPORT_FROM BoxObjectCollection
STORE_NAME BoxObjectCollection
POP_TOP
LOAD_CONST 0
LOAD_CONST ('CLIENT',)
IMPORT_NAME test.integration_new
IMPORT_FROM CLIENT
STORE_NAME CLIENT
POP_TOP
LOAD_CONST <code object test_get... | from boxsdk.pagination.box_object_collection import BoxObjectCollection
from test.integration_new import CLIENT
def test_get_sign_templates():
sign_templates = CLIENT.get_sign_templates()
assert isinstance(sign_templates, BoxObjectCollection)
| data/boxsdk-3.9.2/test/integration_new/object/sign_template_itest.py | 188 | 75 | 231,069 |
LOAD_CONST 0
LOAD_CONST ('base',)
IMPORT_NAME os_client_config.tests
IMPORT_FROM base
STORE_NAME base
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object TestImportVendors at 0x7fab821c56f0, file "f.py", line 4>
LOAD_CONST 'TestImportVendors'
MAKE_FUNCTION
LOAD_CONST 'TestImportVendors'
LOAD_NAME base
LOAD_ATTR TestCase
... | from os_client_config.tests import base
class TestImportVendors(base.TestCase):
def test_get_profile(self):
import os_client_config # noqa
os_client_config.vendors.get_profile(profile_name="dummy")
| data/os-client-config-2.1.0/os_client_config/tests/test_import_vendors.py | 260 | 75 | 221,743 |
LOAD_CONST 0
LOAD_CONST ('relocated_module_attribute',)
IMPORT_NAME pyomo.common.deprecation
IMPORT_FROM relocated_module_attribute
STORE_NAME relocated_module_attribute
POP_TOP
LOAD_NAME relocated_module_attribute
LOAD_CONST 'TemplateExpressionError'
LOAD_CONST 'pyomo.common.errors.TemplateExpressionError'
LOAD_CO... | from pyomo.common.deprecation import relocated_module_attribute
relocated_module_attribute(
"TemplateExpressionError",
"pyomo.common.errors.TemplateExpressionError",
version="6.6.2",
f_globals=globals(),
)
| data/Pyomo-6.7.0/pyomo/core/expr/expr_errors.py | 118 | 75 | 23,927 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME string
STORE_NAME string
LOAD_NAME string
LOAD_ATTR Formatter
LOAD_ATTR check_unused_args
POP_TOP
LOAD_NAME string
LOAD_ATTR Formatter
LOAD_ATTR convert_field
POP_TOP
LOAD_NAME string
LOAD_ATTR Formatter
LOAD_ATTR format
POP_TOP
LOAD_NAME string
LOAD_ATTR Formatter
LOAD_ATTR... | import string
string.Formatter.check_unused_args
string.Formatter.convert_field
string.Formatter.format
string.Formatter.format_field
string.Formatter.get_field
string.Formatter.get_value
string.Formatter.parse
string.Formatter.vformat
| data/vulture-2.11/vulture/whitelists/string_whitelist.py | 136 | 75 | 190,421 |
LOAD_CONST 'The roomba integration models.'
STORE_NAME __doc__
LOAD_CONST 0
LOAD_CONST ('annotations',)
IMPORT_NAME __future__
IMPORT_FROM annotations
STORE_NAME annotations
POP_TOP
LOAD_CONST 0
LOAD_CONST ('dataclass',)
IMPORT_NAME dataclasses
IMPORT_FROM dataclass
STORE_NAME dataclass
POP_TOP
LOAD_CONST 0
LOAD_CON... | """The roomba integration models."""
from __future__ import annotations
from dataclasses import dataclass
from roombapy import Roomba
@dataclass
class RoombaData:
"""Data for the roomba integration."""
roomba: Roomba
blid: str
| data/homeassistant-2024.2.2/homeassistant/components/roomba/models.py | 265 | 75 | 296,085 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME pytest
STORE_NAME pytest
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME kernels
STORE_NAME kernels
LOAD_NAME pytest
LOAD_ATTR mark
LOAD_ATTR skip
LOAD_CONST 'Unable to generate any tests for kernel'
LOAD_CONST ('reason',)
CALL_FUNCTION
LOAD_CONST <code object test_pyawkward_reduce_s... | import pytest
import kernels
@pytest.mark.skip(reason="Unable to generate any tests for kernel")
def test_pyawkward_reduce_sum_int64_int32_64_1():
raise NotImplementedError("Unable to generate any tests for kernel")
| data/awkward-cpp-29/tests-spec/test_pyawkward_reduce_sum_int64_int32_64.py | 203 | 75 | 220,615 |
LOAD_CONST '\nedx_django_utils Django application initialization.\n'
STORE_NAME __doc__
LOAD_CONST 0
LOAD_CONST ('AppConfig',)
IMPORT_NAME django.apps
IMPORT_FROM AppConfig
STORE_NAME AppConfig
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object EdxDjangoUtilsConfig at 0x7fadb5811c00, file "f.py", line 8>
LOAD_CONST 'Ed... | """
edx_django_utils Django application initialization.
"""
from django.apps import AppConfig
class EdxDjangoUtilsConfig(AppConfig):
"""
Configuration for the edx_django_utils Django application.
"""
name = "edx_django_utils"
| data/edx-django-utils-5.10.1/edx_django_utils/apps.py | 201 | 75 | 86,623 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME pytest
STORE_NAME pytest
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME kernels
STORE_NAME kernels
LOAD_NAME pytest
LOAD_ATTR mark
LOAD_ATTR skip
LOAD_CONST 'Unable to generate any tests for kernel'
LOAD_CONST ('reason',)
CALL_FUNCTION
LOAD_CONST <code object test_pyawkward_reduce_m... | import pytest
import kernels
@pytest.mark.skip(reason="Unable to generate any tests for kernel")
def test_pyawkward_reduce_max_float64_float64_64_1():
raise NotImplementedError("Unable to generate any tests for kernel")
| data/awkward-cpp-29/tests-spec/test_pyawkward_reduce_max_float64_float64_64.py | 203 | 75 | 220,616 |
LOAD_CONST '\nAuthor: rjayapalan\nCreated: March 10, 2022\n'
STORE_NAME __doc__
LOAD_CONST 1000000
STORE_NAME DEFAULT_CHUNK_SIZE
LOAD_CONST '_'
STORE_NAME SPLIT_DELIMITER
LOAD_CONST 'manifest'
STORE_NAME MANIFEST_FILE_NAME
LOAD_CONST None
RETURN_VALUE | """
Author: rjayapalan
Created: March 10, 2022
"""
DEFAULT_CHUNK_SIZE = 1000000 # 1 MB
SPLIT_DELIMITER = "_"
MANIFEST_FILE_NAME = "manifest"
| data/filesplit-4.0.1/src/common/constant.py | 89 | 75 | 271,083 |
LOAD_CONST 0
LOAD_CONST ('annotations',)
IMPORT_NAME __future__
IMPORT_FROM annotations
STORE_NAME annotations
POP_TOP
LOAD_CONST 1
LOAD_CONST ('PackageDAG', 'ReversedPackageDAG')
IMPORT_NAME dag
IMPORT_FROM PackageDAG
STORE_NAME PackageDAG
IMPORT_FROM ReversedPackageDAG
STORE_NAME ReversedPackageDAG
POP_TOP
LOAD_CON... | from __future__ import annotations
from .dag import PackageDAG, ReversedPackageDAG
from .package import DistPackage, ReqPackage
__all__ = [
"ReqPackage",
"DistPackage",
"PackageDAG",
"ReversedPackageDAG",
]
| data/pipenv-2023.12.1/pipenv/vendor/pipdeptree/_models/__init__.py | 163 | 75 | 402,515 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME unittest
STORE_NAME unittest
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME doctest
STORE_NAME doctest
LOAD_CONST <code object test_suite at 0x7f8af13ad0c0, file "f.py", line 4>
LOAD_CONST 'test_suite'
MAKE_FUNCTION
STORE_NAME test_suite
LOAD_CONST None
RETURN_VALUE
LOAD_GLOBAL unit... | import unittest, doctest
def test_suite():
return unittest.TestSuite(
(
doctest.DocFileSuite("README.txt"),
doctest.DocTestSuite("hurry.filesize.filesize"),
)
)
| data/hurry.filesize-0.9/src/hurry/filesize/tests.py | 155 | 75 | 333,471 |
LOAD_CONST "\nMake a package.\n\nThis file has no other functionality. Individual modules in this package\nare used for testing, often being run with 'python -m ...' in individual\ntest cases (functions).\n\n"
STORE_NAME __doc__
LOAD_CONST 0
LOAD_CONST ('absolute_import',)
IMPORT_NAME __future__
IMPORT_FROM absolute_i... | """
Make a package.
This file has no other functionality. Individual modules in this package
are used for testing, often being run with 'python -m ...' in individual
test cases (functions).
"""
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
| data/gevent-24.2.1/src/gevent/tests/monkey_package/__init__.py | 150 | 75 | 448,046 |
LOAD_CONST 0
LOAD_CONST ('wraps',)
IMPORT_NAME functools
IMPORT_FROM wraps
STORE_NAME wraps
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object ContextDecorator at 0x7faa75305390, file "f.py", line 4>
LOAD_CONST 'ContextDecorator'
MAKE_FUNCTION
LOAD_CONST 'ContextDecorator'
LOAD_NAME object
CALL_FUNCTION
STORE_NAME Conte... | from functools import wraps
class ContextDecorator(object):
def __call__(self, func):
@wraps(func)
def inner(*args, **kwds):
with self._recreate_cm():
return func(*args, **kwds)
return inner
| data/uncompyle6-3.9.0/test/simple_source/def/07_closure_bug2.py | 310 | 75 | 442,170 |
LOAD_CONST '\nApp for creating and distributing CSRF tokens to frontend applications.\n'
STORE_NAME __doc__
LOAD_CONST 0
LOAD_CONST ('AppConfig',)
IMPORT_NAME django.apps
IMPORT_FROM AppConfig
STORE_NAME AppConfig
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object CsrfAppConfig at 0x7fa9834fd5d0, file "f.py", line 8>
L... | """
App for creating and distributing CSRF tokens to frontend applications.
"""
from django.apps import AppConfig
class CsrfAppConfig(AppConfig):
"""Configuration for the csrf application."""
name = "csrf"
verbose_name = "CSRF"
| data/edx-drf-extensions-10.2.0/csrf/apps.py | 201 | 75 | 204,920 |
LOAD_CONST '\n jsonspec.reference.exceptions\n ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\n'
STORE_NAME __doc__
LOAD_BUILD_CLASS
LOAD_CONST <code object NotFound at 0x7fab641f29c0, file "f.py", line 8>
LOAD_CONST 'NotFound'
MAKE_FUNCTION
LOAD_CONST 'NotFound'
LOAD_NAME Exception
CALL_FUNCTION
STORE_NAME NotFound
LOAD_BUILD_CLAS... | """
jsonspec.reference.exceptions
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
"""
class NotFound(Exception):
"""raises when a document is not found"""
pass
class Forbidden:
"""raises when a trying to replace <local> document"""
pass
| data/json_spec-0.11.0/src/jsonspec/reference/exceptions.py | 250 | 75 | 216,382 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME sys
STORE_NAME sys
LOAD_CONST 0
LOAD_CONST ('logger',)
IMPORT_NAME loguru
IMPORT_FROM logger
STORE_NAME logger
POP_TOP
LOAD_NAME logger
LOAD_METHOD remove
CALL_METHOD
POP_TOP
LOAD_NAME logger
LOAD_ATTR add
LOAD_NAME sys
LOAD_ATTR stderr
LOAD_CONST ''
LOAD_CONST False
LOAD_CON... | import sys
from loguru import logger
logger.remove()
logger.add(sys.stderr, format="", diagnose=False, backtrace=False, colorize=False)
@logger.catch
def c(a, b=0):
a / b
c(2)
| data/loguru-0.7.2/tests/exceptions/source/others/catch_as_decorator_without_parentheses.py | 184 | 75 | 143,256 |
LOAD_CONST 0
LOAD_CONST ('Enum',)
IMPORT_NAME enum
IMPORT_FROM Enum
STORE_NAME Enum
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object KeySource at 0x7f8af090cf60, file "f.py", line 4>
LOAD_CONST 'KeySource'
MAKE_FUNCTION
LOAD_CONST 'KeySource'
LOAD_NAME Enum
CALL_FUNCTION
STORE_NAME KeySource
LOAD_CONST None
RETURN_VAL... | from enum import Enum
class KeySource(Enum):
"""
Key Source
See: https://msdn.microsoft.com/en-us/library/mt220501.aspx
"""
AD = 0x00
AzureAD = 0x01
| data/dsinternals-1.2.4/dsinternals/common/data/hello/KeySource.py | 178 | 75 | 10,386 |
LOAD_CONST 0
LOAD_CONST ('GoogleSerperResults', 'GoogleSerperRun')
IMPORT_NAME langchain_community.tools.google_serper.tool
IMPORT_FROM GoogleSerperResults
STORE_NAME GoogleSerperResults
IMPORT_FROM GoogleSerperRun
STORE_NAME GoogleSerperRun
POP_TOP
LOAD_CONST 'GoogleSerperRun'
LOAD_CONST 'GoogleSerperResults'
BUILD_L... | from langchain_community.tools.google_serper.tool import (
GoogleSerperResults,
GoogleSerperRun,
)
"""Google Serper API Toolkit."""
"""Tool for the Serer.dev Google Search API."""
__all__ = ["GoogleSerperRun", "GoogleSerperResults"]
| data/langchain_community-0.0.21/langchain_community/tools/google_serper/__init__.py | 88 | 75 | 15,490 |
LOAD_CONST 0
LOAD_CONST ('DocArrayHnswSearch',)
IMPORT_NAME langchain_community.vectorstores.docarray.hnsw
IMPORT_FROM DocArrayHnswSearch
STORE_NAME DocArrayHnswSearch
POP_TOP
LOAD_CONST 0
LOAD_CONST ('DocArrayInMemorySearch',)
IMPORT_NAME langchain_community.vectorstores.docarray.in_memory
IMPORT_FROM DocArrayInMemor... | from langchain_community.vectorstores.docarray.hnsw import DocArrayHnswSearch
from langchain_community.vectorstores.docarray.in_memory import DocArrayInMemorySearch
__all__ = [
"DocArrayHnswSearch",
"DocArrayInMemorySearch",
]
| data/langchain-0.1.8/langchain/vectorstores/docarray/__init__.py | 130 | 75 | 368,726 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME pytest
STORE_NAME pytest
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME kernels
STORE_NAME kernels
LOAD_NAME pytest
LOAD_ATTR mark
LOAD_ATTR skip
LOAD_CONST 'Unable to generate any tests for kernel'
LOAD_CONST ('reason',)
CALL_FUNCTION
LOAD_CONST <code object test_pyawkward_ListOffs... | import pytest
import kernels
@pytest.mark.skip(reason="Unable to generate any tests for kernel")
def test_pyawkward_ListOffsetArray_reduce_local_outoffsets_64_1():
raise NotImplementedError("Unable to generate any tests for kernel")
| data/awkward-cpp-29/tests-spec/test_pyawkward_ListOffsetArray_reduce_local_outoffsets_64.py | 204 | 75 | 220,628 |
LOAD_CONST 'Exceptions specific to python-opc.\n\nThe base exception class is OpcError.\n'
STORE_NAME __doc__
LOAD_BUILD_CLASS
LOAD_CONST <code object OpcError at 0x7fab8002f150, file "f.py", line 7>
LOAD_CONST 'OpcError'
MAKE_FUNCTION
LOAD_CONST 'OpcError'
LOAD_NAME Exception
CALL_FUNCTION
STORE_NAME OpcError
LOAD_B... | """Exceptions specific to python-opc.
The base exception class is OpcError.
"""
class OpcError(Exception):
"""Base error class for python-opc."""
class PackageNotFoundError(OpcError):
"""Raised when a package cannot be found at the specified path."""
| data/python-docx-1.1.0/src/docx/opc/exceptions.py | 263 | 75 | 43,511 |
LOAD_CONST 0
LOAD_CONST ('TestCase',)
IMPORT_NAME PyObjCTools.TestSupport
IMPORT_FROM TestCase
STORE_NAME TestCase
POP_TOP
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME IOBluetooth
STORE_NAME IOBluetooth
LOAD_BUILD_CLASS
LOAD_CONST <code object TestIOBluetoothHandsFreeDevice at 0x7f8af162e1e0, file "f.py", line 6>
LOAD_CO... | from PyObjCTools.TestSupport import TestCase
import IOBluetooth # noqa: F401
class TestIOBluetoothHandsFreeDevice(TestCase):
def test_protocols(self):
self.assertProtocolExists("IOBluetoothHandsFreeDeviceDelegate")
| data/pyobjc-framework-IOBluetooth-10.1/PyObjCTest/test_iobluetoothhandsfreedevice.py | 273 | 75 | 123,546 |
LOAD_CONST 0
LOAD_CONST ('ZteZxrosSSH',)
IMPORT_NAME netmiko.zte.zte_zxros
IMPORT_FROM ZteZxrosSSH
STORE_NAME ZteZxrosSSH
POP_TOP
LOAD_CONST 0
LOAD_CONST ('ZteZxrosTelnet',)
IMPORT_NAME netmiko.zte.zte_zxros
IMPORT_FROM ZteZxrosTelnet
STORE_NAME ZteZxrosTelnet
POP_TOP
LOAD_CONST 'ZteZxrosSSH'
LOAD_CONST 'ZteZxrosTeln... | from netmiko.zte.zte_zxros import ZteZxrosSSH
from netmiko.zte.zte_zxros import ZteZxrosTelnet
__all__ = ["ZteZxrosSSH", "ZteZxrosTelnet"]
| data/netmiko-4.3.0/netmiko/zte/__init__.py | 144 | 75 | 302,362 |
LOAD_CONST 'LDAP object field value suggestion and autoupdate mechanism.'
STORE_NAME __doc__
LOAD_BUILD_CLASS
LOAD_CONST <code object AutofillException at 0x7fab703f0ae0, file "f.py", line 4>
LOAD_CONST 'AutofillException'
MAKE_FUNCTION
LOAD_CONST 'AutofillException'
LOAD_NAME Exception
CALL_FUNCTION
STORE_NAME Autofi... | """LDAP object field value suggestion and autoupdate mechanism."""
class AutofillException(Exception):
pass
class ObjectMissingObjectClassException(AutofillException):
"""
The LDAPEntry is missing an objectClass this autofiller needs to
operate.
"""
| data/ldaptor-21.2.0/ldaptor/protocols/ldap/autofill/__init__.py | 264 | 75 | 172,207 |
LOAD_CONST 'Foo'
LOAD_CONST 'Bar'
LOAD_CONST 'baz'
BUILD_LIST
STORE_NAME __all__
LOAD_BUILD_CLASS
LOAD_CONST <code object Foo at 0x7fab81fc4810, file "f.py", line 8>
LOAD_CONST 'Foo'
MAKE_FUNCTION
LOAD_CONST 'Foo'
CALL_FUNCTION
STORE_NAME Foo
LOAD_BUILD_CLASS
LOAD_CONST <code object Bar at 0x7fab81fc4db0, file "f.p... | __all__ = [
"Foo",
"Bar",
"baz",
]
class Foo:
"""Awesome Foo class"""
class Bar:
"""Awesome Bar class"""
def baz():
"""Awesome baz function"""
| data/sphinx-automodapi-0.16.0/sphinx_automodapi/tests/duplicated_warning/duplicated/foo/foo.py | 275 | 75 | 58,366 |
LOAD_CONST 0
LOAD_CONST ('current_audit_info',)
IMPORT_NAME prowler.providers.aws.lib.audit_info.audit_info
IMPORT_FROM current_audit_info
STORE_NAME current_audit_info
POP_TOP
LOAD_CONST 0
LOAD_CONST ('Inspector2',)
IMPORT_NAME prowler.providers.aws.services.inspector2.inspector2_service
IMPORT_FROM Inspector2
STORE_... | from prowler.providers.aws.lib.audit_info.audit_info import current_audit_info
from prowler.providers.aws.services.inspector2.inspector2_service import Inspector2
inspector2_client = Inspector2(current_audit_info)
| data/prowler-3.14.0/prowler/providers/aws/services/inspector2/inspector2_client.py | 130 | 75 | 183,162 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME os
STORE_NAME os
LOAD_CONST 0
LOAD_CONST ('load_dotenv',)
IMPORT_NAME dotenv
IMPORT_FROM load_dotenv
STORE_NAME load_dotenv
POP_TOP
LOAD_NAME os
LOAD_METHOD getenv
LOAD_CONST 'LOAD_DOTENV'
LOAD_CONST 'no'
CALL_METHOD
LOAD_METHOD lower
CALL_METHOD
STORE_NAME load
LOAD_NAME loa... | import os
from dotenv import load_dotenv
load = os.getenv("LOAD_DOTENV", "no").lower()
if load in {"true", "yes", "1"}:
path = os.getenv("LOAD_DOTENV_PATH")
load_dotenv(path)
| data/load-dotenv-0.1.0/load_dotenv.py | 145 | 75 | 20,437 |
LOAD_CONST '\nURLs for config_models.\n'
STORE_NAME __doc__
LOAD_CONST 0
LOAD_CONST ('re_path',)
IMPORT_NAME django.urls
IMPORT_FROM re_path
STORE_NAME re_path
POP_TOP
LOAD_CONST 0
LOAD_CONST ('TemplateView',)
IMPORT_NAME django.views.generic
IMPORT_FROM TemplateView
STORE_NAME TemplateView
POP_TOP
LOAD_NAME re_path... | """
URLs for config_models.
"""
from django.urls import re_path
from django.views.generic import TemplateView
urlpatterns = [
re_path(r"", TemplateView.as_view(template_name="config_models/base.html")),
]
| data/django-config-models-2.5.1/config_models/urls.py | 133 | 75 | 335,993 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME pytest
STORE_NAME pytest
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME kernels
STORE_NAME kernels
LOAD_NAME pytest
LOAD_ATTR mark
LOAD_ATTR skip
LOAD_CONST 'Unable to generate any tests for kernel'
LOAD_CONST ('reason',)
CALL_FUNCTION
LOAD_CONST <code object test_pyawkward_reduce_s... | import pytest
import kernels
@pytest.mark.skip(reason="Unable to generate any tests for kernel")
def test_pyawkward_reduce_sum_int32_int32_64_1():
raise NotImplementedError("Unable to generate any tests for kernel")
| data/awkward-cpp-29/tests-spec/test_pyawkward_reduce_sum_int32_int32_64.py | 203 | 75 | 220,572 |
LOAD_CONST 1
LOAD_CONST ('*',)
IMPORT_NAME __cmd_group
IMPORT_STAR
LOAD_CONST 1
LOAD_CONST ('*',)
IMPORT_NAME _check_ip_address
IMPORT_STAR
LOAD_CONST 1
LOAD_CONST ('*',)
IMPORT_NAME _create
IMPORT_STAR
LOAD_CONST 1
LOAD_CONST ('*',)
IMPORT_NAME _delete
IMPORT_STAR
LOAD_CONST 1
LOAD_CONST ('*',)
IMPORT_NAME _list
I... | from .__cmd_group import *
from ._check_ip_address import *
from ._create import *
from ._delete import *
from ._list import *
from ._list_endpoint_services import *
from ._show import *
from ._update import *
from ._wait import *
| data/azure-cli-2.57.0/azure/cli/command_modules/network/aaz/profile_2020_09_01_hybrid/network/vnet/__init__.py | 168 | 75 | 378,642 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME pytest
STORE_NAME pytest
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME kernels
STORE_NAME kernels
LOAD_NAME pytest
LOAD_ATTR mark
LOAD_ATTR skip
LOAD_CONST 'Unable to generate any tests for kernel'
LOAD_CONST ('reason',)
CALL_FUNCTION
LOAD_CONST <code object test_pyawkward_reduce_p... | import pytest
import kernels
@pytest.mark.skip(reason="Unable to generate any tests for kernel")
def test_pyawkward_reduce_prod_uint64_uint32_64_1():
raise NotImplementedError("Unable to generate any tests for kernel")
| data/awkward-cpp-29/tests-spec/test_pyawkward_reduce_prod_uint64_uint32_64.py | 204 | 75 | 220,577 |
LOAD_CONST 0
LOAD_CONST ('Enum',)
IMPORT_NAME enum
IMPORT_FROM Enum
STORE_NAME Enum
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object LongRunningOperationStatus at 0x7fab4298e150, file "f.py", line 4>
LOAD_CONST 'LongRunningOperationStatus'
MAKE_FUNCTION
LOAD_CONST 'LongRunningOperationStatus'
LOAD_NAME str
LOAD_NAME E... | from enum import Enum
class LongRunningOperationStatus(str, Enum):
NotStarted = ("notStarted",)
Running = ("running",)
Succeeded = ("succeeded",)
Failed = ("failed",)
UnknownFutureValue = ("unknownFutureValue",)
| data/msgraph-sdk-1.1.0/msgraph/generated/models/long_running_operation_status.py | 193 | 75 | 259,829 |
LOAD_CONST 0
LOAD_CONST ('FunctionArgument',)
IMPORT_NAME localstack.services.stepfunctions.asl.component.intrinsic.argument.function_argument
IMPORT_FROM FunctionArgument
STORE_NAME FunctionArgument
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object FunctionArgumentString at 0x7fab70306db0, file "f.py", line 6>
LOAD_CO... | from localstack.services.stepfunctions.asl.component.intrinsic.argument.function_argument import (
FunctionArgument,
)
class FunctionArgumentString(FunctionArgument):
_value: str
def __init__(self, string: str):
super().__init__(value=string)
| data/localstack-core-3.1.0/localstack/services/stepfunctions/asl/component/intrinsic/argument/function_argument_string.py | 270 | 75 | 225,266 |
LOAD_CONST 0
LOAD_CONST ('FastAPI', 'Query')
IMPORT_NAME fastapi
IMPORT_FROM FastAPI
STORE_NAME FastAPI
IMPORT_FROM Query
STORE_NAME Query
POP_TOP
LOAD_CONST 0
LOAD_CONST ('Annotated',)
IMPORT_NAME typing_extensions
IMPORT_FROM Annotated
STORE_NAME Annotated
POP_TOP
LOAD_NAME FastAPI
CALL_FUNCTION
STORE_NAME app
LOA... | from fastapi import FastAPI, Query
from typing_extensions import Annotated
app = FastAPI()
@app.get("/items/")
async def read_items(q: Annotated[list, Query()] = []):
query_items = {"q": q}
return query_items
| data/fastapi-0.109.2/docs_src/query_params_str_validations/tutorial013_an.py | 197 | 75 | 142,650 |
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 ('Rule',)
IMPORT_NAME
IMPORT_FROM Rule
STORE_NAME Rule
POP_TOP
LOAD_CONST 0
LOAD_CONST ('RuleComplexFileClassObject',)
IMPORT_NAME edk2basetools.CommonDataClass.Fd... | from __future__ import absolute_import
from . import Rule
from edk2basetools.CommonDataClass.FdfClass import RuleComplexFileClassObject
class RuleComplexFile(RuleComplexFileClassObject):
def __init__(self):
RuleComplexFileClassObject.__init__(self)
| data/edk2-basetools-0.1.49/edk2basetools/GenFds/RuleComplexFile.py | 283 | 75 | 332,091 |
LOAD_CONST 0
LOAD_CONST ('Exporter',)
IMPORT_NAME nbconvert.exporters
IMPORT_FROM Exporter
STORE_NAME Exporter
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object DummyExporter at 0x7f8e2f9ca390, file "f.py", line 4>
LOAD_CONST 'DummyExporter'
MAKE_FUNCTION
LOAD_CONST 'DummyExporter'
LOAD_NAME Exporter
CALL_FUNCTION
STOR... | from nbconvert.exporters import Exporter
class DummyExporter(Exporter):
pass
class DummyScriptExporter(Exporter):
def from_notebook_node(self, nb, resources=None, **kw):
return "dummy-script-exported", resources
| data/nbconvert-7.16.1/tests/exporter_entrypoint/eptest.py | 323 | 75 | 9,831 |
LOAD_CONST '\nDefines the state object used by the whitespace parser.\n'
STORE_NAME __doc__
SETUP_EXCEPT to 22
LOAD_CONST 0
LOAD_CONST ('whitespace_state',)
IMPORT_NAME libcst_native
IMPORT_FROM whitespace_state
STORE_NAME mod
POP_TOP
POP_BLOCK
JUMP_FORWARD to 54
DUP_TOP
LOAD_NAME ImportError
COMPARE_OP exception ma... | """
Defines the state object used by the whitespace parser.
"""
try:
from libcst_native import whitespace_state as mod
except ImportError:
from libcst._parser.types import py_whitespace_state as mod
WhitespaceState = mod.WhitespaceState
| data/libcst-1.2.0/libcst/_parser/types/whitespace_state.py | 161 | 75 | 46,608 |
LOAD_BUILD_CLASS
LOAD_CONST <code object ProxyError at 0x7fab701ac5d0, file "f.py", line 1>
LOAD_CONST 'ProxyError'
MAKE_FUNCTION
LOAD_CONST 'ProxyError'
LOAD_NAME Exception
CALL_FUNCTION
STORE_NAME ProxyError
LOAD_BUILD_CLASS
LOAD_CONST <code object ProxyTimeoutError at 0x7fab701ac780, file "f.py", line 7>
LOAD_CONST... | class ProxyError(Exception):
def __init__(self, message, error_code=None):
super().__init__(message)
self.error_code = error_code
class ProxyTimeoutError(Exception):
pass
class ProxyConnectionError(OSError):
pass
| data/python-socks-2.4.4/python_socks/_errors.py | 393 | 75 | 191,024 |
LOAD_CONST '\nThis is an example of a function-based role retriever.\n'
STORE_NAME __doc__
LOAD_CONST <code object get_assigments at 0x7f8e447b26f0, file "f.py", line 6>
LOAD_CONST 'get_assigments'
MAKE_FUNCTION
STORE_NAME get_assigments
LOAD_CONST None
RETURN_VALUE
LOAD_CONST ('test-role', None)
YIELD_VALUE
POP_TOP
... | """
This is an example of a function-based role retriever.
"""
def get_assigments(user):
"""
Return iterator of (role_name, context)
"""
yield "test-role", None
yield "test-role2", str(user.id)
| data/edx-rbac-1.8.0/tests/test_assignments.py | 131 | 75 | 125,018 |
LOAD_CONST <code object main at 0x7fab540c58a0, file "f.py", line 3>
LOAD_CONST 'main'
MAKE_FUNCTION
STORE_NAME main
LOAD_NAME __name__
LOAD_CONST '__main__'
COMPARE_OP ==
POP_JUMP_IF_FALSE
LOAD_NAME main
CALL_FUNCTION
POP_TOP
LOAD_CONST None
RETURN_VALUE
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME sys
STORE_FAST sys
... | if True: # pragma: no cover
def main():
import sys
from doit.doit_cmd import DoitMain
sys.exit(DoitMain().run(sys.argv[1:]))
if __name__ == "__main__":
main()
| data/doit-0.36.0/doit/__main__.py | 167 | 75 | 109,348 |
LOAD_CONST 0
LOAD_CONST ('FunctionArgument',)
IMPORT_NAME localstack.services.stepfunctions.asl.component.intrinsic.argument.function_argument
IMPORT_FROM FunctionArgument
STORE_NAME FunctionArgument
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object FunctionArgumentFloat at 0x7fab703060c0, file "f.py", line 6>
LOAD_CON... | from localstack.services.stepfunctions.asl.component.intrinsic.argument.function_argument import (
FunctionArgument,
)
class FunctionArgumentFloat(FunctionArgument):
_value: float
def __init__(self, number: float):
super().__init__(value=number)
| data/localstack-core-3.1.0/localstack/services/stepfunctions/asl/component/intrinsic/argument/function_argument_float.py | 271 | 75 | 225,267 |
LOAD_CONST 0
LOAD_CONST ('GraphQLTransportWSHandler',)
IMPORT_NAME strawberry.aiohttp.handlers.graphql_transport_ws_handler
IMPORT_FROM GraphQLTransportWSHandler
STORE_NAME GraphQLTransportWSHandler
POP_TOP
LOAD_CONST 0
LOAD_CONST ('GraphQLWSHandler',)
IMPORT_NAME strawberry.aiohttp.handlers.graphql_ws_handler
IMPORT_... | from strawberry.aiohttp.handlers.graphql_transport_ws_handler import (
GraphQLTransportWSHandler,
)
from strawberry.aiohttp.handlers.graphql_ws_handler import GraphQLWSHandler
__all__ = ["GraphQLTransportWSHandler", "GraphQLWSHandler"]
| data/strawberry_graphql-0.219.2/strawberry/aiohttp/handlers/__init__.py | 126 | 75 | 201,403 |
LOAD_CONST 'The client module defines stream and query based clients.\n\nStream clients allow to read and write from stream based sources with ease,\nand in an interchangable manner.\n\nQuery based clients unify how to access databases leveraging from sqlalchemy.\n'
STORE_NAME __doc__
LOAD_CONST 1
LOAD_CONST ('*',)
IM... | """The client module defines stream and query based clients.
Stream clients allow to read and write from stream based sources with ease,
and in an interchangable manner.
Query based clients unify how to access databases leveraging from sqlalchemy.
"""
from .s3_client import * # noqa
| data/tentaclio-s3-0.0.3/src/tentaclio_s3/clients/__init__.py | 91 | 75 | 380,503 |
LOAD_CONST 0
LOAD_CONST ('AlibabaCloudOpenSearch', 'AlibabaCloudOpenSearchSettings')
IMPORT_NAME langchain_community.vectorstores.alibabacloud_opensearch
IMPORT_FROM AlibabaCloudOpenSearch
STORE_NAME AlibabaCloudOpenSearch
IMPORT_FROM AlibabaCloudOpenSearchSettings
STORE_NAME AlibabaCloudOpenSearchSettings
POP_TOP
LOA... | from langchain_community.vectorstores.alibabacloud_opensearch import (
AlibabaCloudOpenSearch,
AlibabaCloudOpenSearchSettings,
)
__all__ = [
"AlibabaCloudOpenSearchSettings",
"AlibabaCloudOpenSearch",
]
| data/langchain-0.1.8/langchain/vectorstores/alibabacloud_opensearch.py | 115 | 75 | 368,662 |
LOAD_CONST 0
LOAD_CONST ('DatabricksDialect',)
IMPORT_NAME databricks.sqlalchemy.base
IMPORT_FROM DatabricksDialect
STORE_NAME DatabricksDialect
POP_TOP
LOAD_CONST 0
LOAD_CONST ('TINYINT', 'TIMESTAMP', 'TIMESTAMP_NTZ')
IMPORT_NAME databricks.sqlalchemy._types
IMPORT_FROM TINYINT
STORE_NAME TINYINT
IMPORT_FROM TIMESTAM... | from databricks.sqlalchemy.base import DatabricksDialect
from databricks.sqlalchemy._types import TINYINT, TIMESTAMP, TIMESTAMP_NTZ
__all__ = ["TINYINT", "TIMESTAMP", "TIMESTAMP_NTZ"]
| data/databricks_sql_connector-3.1.0/src/databricks/sqlalchemy/__init__.py | 165 | 75 | 17,728 |
LOAD_CONST 0
LOAD_CONST ('annotations',)
IMPORT_NAME __future__
IMPORT_FROM annotations
STORE_NAME annotations
POP_TOP
LOAD_CONST 1
LOAD_CONST ('BoundPlacementGroup', 'PlacementGroupsClient', 'PlacementGroupsPageResult')
IMPORT_NAME client
IMPORT_FROM BoundPlacementGroup
STORE_NAME BoundPlacementGroup
IMPORT_FROM Plac... | from __future__ import annotations
from .client import ( # noqa: F401
BoundPlacementGroup,
PlacementGroupsClient,
PlacementGroupsPageResult,
)
from .domain import CreatePlacementGroupResponse, PlacementGroup # noqa: F401
| data/hcloud-1.33.2/hcloud/placement_groups/__init__.py | 150 | 75 | 436,494 |
LOAD_CONST 'Run a command using a PTY.'
STORE_NAME __doc__
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME sys
STORE_NAME sys
LOAD_NAME sys
LOAD_ATTR version_info
LOAD_CONST (3, 10)
COMPARE_OP <
POP_JUMP_IF_FALSE
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME vendored_pty
STORE_NAME pty
JUMP_FORWARD to 40
LOAD_CONST 0
LOAD_CONS... | """Run a command using a PTY."""
import sys
if sys.version_info < (3, 10):
import vendored_pty as pty
else:
import pty
sys.exit(1 if pty.spawn(sys.argv[1:]) else 0)
| data/ansible-core-2.16.3/test/integration/targets/ansible-test-no-tty/ansible_collections/ns/col/run-with-pty.py | 152 | 75 | 437,414 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME sys
STORE_NAME sys
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME traceback
STORE_NAME traceback
LOAD_CONST None
STORE_NAME _IMPORT_ALL
SETUP_EXCEPT to 34
LOAD_CONST 0
LOAD_CONST ('*',)
IMPORT_NAME amazon.ion
IMPORT_STAR
POP_BLOCK
JUMP_FORWARD to 62
POP_TOP
POP_TOP
POP_TOP
LOAD_... | import sys
import traceback
_IMPORT_ALL = None
try:
from amazon.ion import *
except:
traceback.print_exc()
_IMPORT_ALL = sys.exc_info()
def test_import_all():
assert _IMPORT_ALL is None
| data/amazon.ion-0.11.3/tests/test_package.py | 212 | 75 | 174,622 |
LOAD_BUILD_CLASS
LOAD_CONST <code object AuthException at 0x7fab40f495d0, file "f.py", line 1>
LOAD_CONST 'AuthException'
MAKE_FUNCTION
LOAD_CONST 'AuthException'
LOAD_NAME Exception
CALL_FUNCTION
STORE_NAME AuthException
LOAD_BUILD_CLASS
LOAD_CONST <code object ResponseException at 0x7fab40f494b0, file "f.py", line 5... | class AuthException(Exception):
pass
class ResponseException(Exception):
pass
class ParentNotFoundException(Exception):
pass
class EmptyException(Exception):
pass
class ResourceNotFound(Exception):
pass
class NotAnInstanceException(Exception):
pass
| data/fortifyapi-3.1.14/fortifyapi/exceptions.py | 548 | 75 | 446,995 |
LOAD_CONST '\n'
STORE_NAME __doc__
LOAD_CONST 3
LOAD_CONST ('send_sasl_negotiation',)
IMPORT_NAME protocol.sasl.sasl
IMPORT_FROM send_sasl_negotiation
STORE_NAME send_sasl_negotiation
POP_TOP
LOAD_CONST <code object sasl_external at 0x7fab703bb390, file "f.py", line 8>
LOAD_CONST 'sasl_external'
MAKE_FUNCTION
STORE_N... | """
"""
from ...protocol.sasl.sasl import send_sasl_negotiation
def sasl_external(connection, controls):
result = send_sasl_negotiation(connection, controls, connection.sasl_credentials)
return result
| data/ldap3-2.9.1/ldap3/protocol/sasl/external.py | 163 | 75 | 208,907 |
LOAD_CONST 0
LOAD_CONST ('*',)
IMPORT_NAME azure.cli.core.aaz
IMPORT_STAR
LOAD_NAME register_command_group
LOAD_CONST 'network route-table route'
CALL_FUNCTION
LOAD_BUILD_CLASS
LOAD_CONST <code object __CMDGroup at 0x7faa7486a540, file "f.py", line 4>
LOAD_CONST '__CMDGroup'
MAKE_FUNCTION
LOAD_CONST '__CMDGroup'
LOA... | from azure.cli.core.aaz import *
@register_command_group(
"network route-table route",
)
class __CMDGroup(AAZCommandGroup):
"""Manage routes in a route table."""
pass
__all__ = ["__CMDGroup"]
| data/azure-cli-2.57.0/azure/cli/command_modules/network/aaz/profile_2020_09_01_hybrid/network/route_table/route/__cmd_group.py | 185 | 75 | 378,631 |
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 IntentsUI
STORE_NAME IntentsUI
LOAD_BUILD_CLASS
LOAD_CONST <code object TestINUIEditVoiceShortcutViewController at 0x7faac02abdb0, file "f.py", line 5>
LO... | from PyObjCTools.TestSupport import TestCase
import IntentsUI # noqa: F401
class TestINUIEditVoiceShortcutViewController(TestCase):
def test_protocols(self):
self.assertProtocolExists("INUIEditVoiceShortcutViewControllerDelegate")
| data/pyobjc-framework-IntentsUI-10.1/PyObjCTest/test_inuieditvoiceshortcutviewcontroller.py | 275 | 75 | 92,506 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME pytest
STORE_NAME pytest
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME kernels
STORE_NAME kernels
LOAD_NAME pytest
LOAD_ATTR mark
LOAD_ATTR skip
LOAD_CONST 'Unable to generate any tests for kernel'
LOAD_CONST ('reason',)
CALL_FUNCTION
LOAD_CONST <code object test_pyawkward_ListArra... | import pytest
import kernels
@pytest.mark.skip(reason="Unable to generate any tests for kernel")
def test_pyawkward_ListArray64_getitem_next_range_carrylength_1():
raise NotImplementedError("Unable to generate any tests for kernel")
| data/awkward-cpp-29/tests-spec/test_pyawkward_ListArray64_getitem_next_range_carrylength.py | 203 | 75 | 220,521 |
LOAD_CONST 0
LOAD_CONST ('current_audit_info',)
IMPORT_NAME prowler.providers.aws.lib.audit_info.audit_info
IMPORT_FROM current_audit_info
STORE_NAME current_audit_info
POP_TOP
LOAD_CONST 0
LOAD_CONST ('Route53',)
IMPORT_NAME prowler.providers.aws.services.route53.route53_service
IMPORT_FROM Route53
STORE_NAME Route53... | from prowler.providers.aws.lib.audit_info.audit_info import current_audit_info
from prowler.providers.aws.services.route53.route53_service import Route53
route53_client = Route53(current_audit_info)
| data/prowler-3.14.0/prowler/providers/aws/services/route53/route53_client.py | 130 | 75 | 183,176 |
LOAD_CONST 0
LOAD_CONST ('*',)
IMPORT_NAME azure.cli.core.aaz
IMPORT_STAR
LOAD_NAME register_command_group
LOAD_CONST 'afd rule'
CALL_FUNCTION
LOAD_BUILD_CLASS
LOAD_CONST <code object __CMDGroup at 0x7faa5ec3b780, file "f.py", line 4>
LOAD_CONST '__CMDGroup'
MAKE_FUNCTION
LOAD_CONST '__CMDGroup'
LOAD_NAME AAZCommand... | from azure.cli.core.aaz import *
@register_command_group(
"afd rule",
)
class __CMDGroup(AAZCommandGroup):
"""Manage delivery rules within the specified rule set."""
pass
__all__ = ["__CMDGroup"]
| data/azure-cli-2.57.0/azure/cli/command_modules/cdn/aaz/latest/afd/rule/__cmd_group.py | 184 | 75 | 375,267 |
LOAD_CONST 0
LOAD_CONST ('OneDigitPostalCode',)
IMPORT_NAME featuretools.primitives.standard.transform.postal.one_digit_postal_code
IMPORT_FROM OneDigitPostalCode
STORE_NAME OneDigitPostalCode
POP_TOP
LOAD_CONST 0
LOAD_CONST ('TwoDigitPostalCode',)
IMPORT_NAME featuretools.primitives.standard.transform.postal.two_digi... | from featuretools.primitives.standard.transform.postal.one_digit_postal_code import (
OneDigitPostalCode,
)
from featuretools.primitives.standard.transform.postal.two_digit_postal_code import (
TwoDigitPostalCode,
)
| data/featuretools-1.29.0/featuretools/primitives/standard/transform/postal/__init__.py | 120 | 75 | 422,075 |
LOAD_CONST 2
LOAD_CONST ('DataProviderLayer',)
IMPORT_NAME _data._data_provider_layer
IMPORT_FROM DataProviderLayer
STORE_NAME DataProviderLayer
POP_TOP
LOAD_CONST 2
LOAD_CONST ('DataType',)
IMPORT_NAME _data._data_type
IMPORT_FROM DataType
STORE_NAME DataType
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object CFSStrea... | from .._data._data_provider_layer import DataProviderLayer
from .._data._data_type import DataType
class CFSStream(DataProviderLayer):
def __init__(self, id):
super().__init__(data_type=DataType.CFS_STREAM, id=id)
| data/refinitiv-data-1.6.0/refinitiv/data/delivery/cfs/_stream.py | 276 | 75 | 195,968 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME pytest
STORE_NAME pytest
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME kernels
STORE_NAME kernels
LOAD_NAME pytest
LOAD_ATTR mark
LOAD_ATTR skip
LOAD_CONST 'Unable to generate any tests for kernel'
LOAD_CONST ('reason',)
CALL_FUNCTION
LOAD_CONST <code object test_pyawkward_NumpyArr... | import pytest
import kernels
@pytest.mark.skip(reason="Unable to generate any tests for kernel")
def test_pyawkward_NumpyArray_fill_toint16_fromuint8_1():
raise NotImplementedError("Unable to generate any tests for kernel")
| data/awkward-cpp-29/tests-spec/test_pyawkward_NumpyArray_fill_toint16_fromuint8.py | 204 | 75 | 220,432 |
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 'hello_no_language'
LOAD_CONST '1.2.3'
LOAD_CONST 'a minimal example pa... | from __future__ import annotations
from skbuild import setup
setup(
name="hello_no_language",
version="1.2.3",
description="a minimal example package",
author="The scikit-build team",
license="MIT",
)
| data/scikit_build-0.17.6/tests/samples/hello-no-language/setup.py | 127 | 75 | 198,896 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME pytest
STORE_NAME pytest
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME kernels
STORE_NAME kernels
LOAD_NAME pytest
LOAD_ATTR mark
LOAD_ATTR skip
LOAD_CONST 'Unable to generate any tests for kernel'
LOAD_CONST ('reason',)
CALL_FUNCTION
LOAD_CONST <code object test_pyawkward_NumpyArr... | import pytest
import kernels
@pytest.mark.skip(reason="Unable to generate any tests for kernel")
def test_pyawkward_NumpyArray_fill_tofloat64_fromuint8_1():
raise NotImplementedError("Unable to generate any tests for kernel")
| data/awkward-cpp-29/tests-spec/test_pyawkward_NumpyArray_fill_tofloat64_fromuint8.py | 204 | 75 | 220,378 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME pytest
STORE_NAME pytest
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME kernels
STORE_NAME kernels
LOAD_NAME pytest
LOAD_ATTR mark
LOAD_ATTR skip
LOAD_CONST 'Unable to generate any tests for kernel'
LOAD_CONST ('reason',)
CALL_FUNCTION
LOAD_CONST <code object test_pyawkward_reduce_s... | import pytest
import kernels
@pytest.mark.skip(reason="Unable to generate any tests for kernel")
def test_pyawkward_reduce_sum_uint64_uint64_64_1():
raise NotImplementedError("Unable to generate any tests for kernel")
| data/awkward-cpp-29/tests-spec/test_pyawkward_reduce_sum_uint64_uint64_64.py | 204 | 75 | 220,377 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME pytest
STORE_NAME pytest
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME kernels
STORE_NAME kernels
LOAD_NAME pytest
LOAD_ATTR mark
LOAD_ATTR skip
LOAD_CONST 'Unable to generate any tests for kernel'
LOAD_CONST ('reason',)
CALL_FUNCTION
LOAD_CONST <code object test_pyawkward_NumpyArr... | import pytest
import kernels
@pytest.mark.skip(reason="Unable to generate any tests for kernel")
def test_pyawkward_NumpyArray_fill_toint8_fromfloat32_1():
raise NotImplementedError("Unable to generate any tests for kernel")
| data/awkward-cpp-29/tests-spec/test_pyawkward_NumpyArray_fill_toint8_fromfloat32.py | 204 | 75 | 220,438 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME pytest
STORE_NAME pytest
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME kernels
STORE_NAME kernels
LOAD_NAME pytest
LOAD_ATTR mark
LOAD_ATTR skip
LOAD_CONST 'Unable to generate any tests for kernel'
LOAD_CONST ('reason',)
CALL_FUNCTION
LOAD_CONST <code object test_pyawkward_reduce_m... | import pytest
import kernels
@pytest.mark.skip(reason="Unable to generate any tests for kernel")
def test_pyawkward_reduce_min_int64_int64_64_1():
raise NotImplementedError("Unable to generate any tests for kernel")
| data/awkward-cpp-29/tests-spec/test_pyawkward_reduce_min_int64_int64_64.py | 204 | 75 | 220,439 |
LOAD_CONST 2
LOAD_CONST ('_utilities',)
IMPORT_NAME
IMPORT_FROM _utilities
STORE_NAME _utilities
POP_TOP
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME typing
STORE_NAME typing
LOAD_CONST 1
LOAD_CONST ('*',)
IMPORT_NAME prevention_deidentify_template
IMPORT_STAR
LOAD_CONST 1
LOAD_CONST ('*',)
IMPORT_NAME prevention_inspec... | from .. import _utilities
import typing
from .prevention_deidentify_template import *
from .prevention_inspect_template import *
from .prevention_job_trigger import *
from .prevention_stored_info_type import *
from ._inputs import *
from . import outputs
| data/pulumi_gcp-7.9.0/pulumi_gcp/dataloss/__init__.py | 171 | 75 | 446,698 |
LOAD_CONST 0
LOAD_CONST ('annotations',)
IMPORT_NAME __future__
IMPORT_FROM annotations
STORE_NAME annotations
POP_TOP
LOAD_CONST 1
LOAD_CONST ('BoundDatacenter', 'DatacentersClient', 'DatacentersPageResult')
IMPORT_NAME client
IMPORT_FROM BoundDatacenter
STORE_NAME BoundDatacenter
IMPORT_FROM DatacentersClient
STORE_... | from __future__ import annotations
from .client import ( # noqa: F401
BoundDatacenter,
DatacentersClient,
DatacentersPageResult,
)
from .domain import Datacenter, DatacenterServerTypes # noqa: F401
| data/ansible-9.2.0/ansible_collections/hetzner/hcloud/plugins/module_utils/vendor/hcloud/datacenters/__init__.py | 150 | 75 | 280,125 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME pytest
STORE_NAME pytest
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME kernels
STORE_NAME kernels
LOAD_NAME pytest
LOAD_ATTR mark
LOAD_ATTR skip
LOAD_CONST 'Unable to generate any tests for kernel'
LOAD_CONST ('reason',)
CALL_FUNCTION
LOAD_CONST <code object test_pyawkward_ListArra... | import pytest
import kernels
@pytest.mark.skip(reason="Unable to generate any tests for kernel")
def test_pyawkward_ListArrayU32_getitem_next_range_64_1():
raise NotImplementedError("Unable to generate any tests for kernel")
| data/awkward-cpp-29/tests-spec/test_pyawkward_ListArrayU32_getitem_next_range_64.py | 204 | 75 | 220,375 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME pytest
STORE_NAME pytest
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME kernels
STORE_NAME kernels
LOAD_NAME pytest
LOAD_ATTR mark
LOAD_ATTR skip
LOAD_CONST 'Unable to generate any tests for kernel'
LOAD_CONST ('reason',)
CALL_FUNCTION
LOAD_CONST <code object test_pyawkward_NumpyArr... | import pytest
import kernels
@pytest.mark.skip(reason="Unable to generate any tests for kernel")
def test_pyawkward_NumpyArray_fill_toint16_fromint8_1():
raise NotImplementedError("Unable to generate any tests for kernel")
| data/awkward-cpp-29/tests-spec/test_pyawkward_NumpyArray_fill_toint16_fromint8.py | 203 | 75 | 220,446 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.