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 1
LOAD_CONST ('AzureMachineLearningWorkspaces',)
IMPORT_NAME _azure_machine_learning_workspaces
IMPORT_FROM AzureMachineLearningWorkspaces
STORE_NAME AzureMachineLearningWorkspaces
POP_TOP
LOAD_CONST 1
LOAD_CONST ('VERSION',)
IMPORT_NAME _version
IMPORT_FROM VERSION
STORE_NAME VERSION
POP_TOP
LOAD_NAME VER... | from ._azure_machine_learning_workspaces import AzureMachineLearningWorkspaces
from ._version import VERSION
__version__ = VERSION
__all__ = ["AzureMachineLearningWorkspaces"]
from ._patch import patch_sdk
patch_sdk()
| data/azure-ai-ml-1.13.0/azure/ai/ml/_restclient/v2023_04_01_preview/__init__.py | 147 | 69 | 424,939 |
LOAD_CONST 'https://example.{domain}'
LOAD_CONST 'https://example.{domain}'
LOAD_CONST 'https://example.{domain}'
LOAD_CONST ('diagnose_tools', 'nfs_dataset', 'physical_transfer_appliance')
BUILD_CONST_KEY_MAP
STORE_NAME SERVICE_ENDPOINTS
LOAD_CONST None
RETURN_VALUE | SERVICE_ENDPOINTS = {
"diagnose_tools": "https://example.{domain}",
"nfs_dataset": "https://example.{domain}",
"physical_transfer_appliance": "https://example.{domain}",
}
| data/oci-cli-3.37.10/services/dts/src/oci_cli_dts/physical_appliance_control_plane/service_endpoints.py | 73 | 69 | 218,640 |
LOAD_CONST 0
LOAD_CONST ('Any', 'NamedTuple', 'Optional')
IMPORT_NAME typing
IMPORT_FROM Any
STORE_NAME Any
IMPORT_FROM NamedTuple
STORE_NAME NamedTuple
IMPORT_FROM Optional
STORE_NAME Optional
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object SubQueryTuple at 0x7faa75831270, file "f.py", line 4>
LOAD_CONST 'SubQueryTu... | from typing import Any, NamedTuple, Optional
class SubQueryTuple(NamedTuple):
parenthesis: Any
alias: Optional[str]
class ColumnQualifierTuple(NamedTuple):
column: str
qualifier: Optional[str]
| data/collate-sqllineage-1.3.0/collate_sqllineage/utils/entities.py | 345 | 69 | 166,948 |
LOAD_CONST 0
LOAD_CONST ('GiModuleInfo',)
IMPORT_NAME PyInstaller.utils.hooks.gi
IMPORT_FROM GiModuleInfo
STORE_NAME GiModuleInfo
POP_TOP
LOAD_NAME GiModuleInfo
LOAD_CONST 'GstWebRTC'
LOAD_CONST '1.0'
CALL_FUNCTION
STORE_NAME module_info
LOAD_NAME module_info
LOAD_ATTR available
POP_JUMP_IF_FALSE
LOAD_NAME module_in... | from PyInstaller.utils.hooks.gi import GiModuleInfo
module_info = GiModuleInfo("GstWebRTC", "1.0")
if module_info.available:
binaries, datas, hiddenimports = module_info.collect_typelib_data()
| data/pyinstaller-6.4.0/PyInstaller/hooks/hook-gi.repository.GstWebRTC.py | 113 | 69 | 185,288 |
LOAD_CONST 'openweathermap.org/data/3.0'
STORE_NAME ROOT_STATIONS_API_URL
LOAD_CONST 'stations'
STORE_NAME STATIONS_URI
LOAD_CONST 'stations/%s'
STORE_NAME NAMED_STATION_URI
LOAD_CONST 'measurements'
STORE_NAME MEASUREMENTS_URI
LOAD_CONST None
RETURN_VALUE | ROOT_STATIONS_API_URL = "openweathermap.org/data/3.0"
STATIONS_URI = "stations"
NAMED_STATION_URI = "stations/%s"
MEASUREMENTS_URI = "measurements"
| data/pyowm-3.3.0/pyowm/stationsapi30/uris.py | 82 | 69 | 203,339 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME unittest
STORE_NAME unittest
LOAD_CONST 0
LOAD_CONST ('install_tests_in_module_dict',)
IMPORT_NAME multiprocess.tests
IMPORT_FROM install_tests_in_module_dict
STORE_NAME install_tests_in_module_dict
POP_TOP
LOAD_NAME install_tests_in_module_dict
LOAD_NAME globals
CALL_FUNCTION... | import unittest
from multiprocess.tests import install_tests_in_module_dict
install_tests_in_module_dict(globals(), "forkserver", exclude_types=True)
if __name__ == "__main__":
unittest.main()
| data/multiprocess-0.70.16/py3.11/multiprocess/tests/test_multiprocessing_forkserver/test_misc.py | 144 | 69 | 144,862 |
LOAD_CONST 0
LOAD_CONST ('unique',)
IMPORT_NAME enum
IMPORT_FROM unique
STORE_NAME unique
POP_TOP
LOAD_CONST 0
LOAD_CONST ('StrEnum',)
IMPORT_NAME refinitiv.data._base_enum
IMPORT_FROM StrEnum
STORE_NAME StrEnum
POP_TOP
LOAD_NAME unique
LOAD_BUILD_CLASS
LOAD_CONST <code object ConstituentOverrideMode at 0x7fab701ac78... | from enum import unique
from refinitiv.data._base_enum import StrEnum
@unique
class ConstituentOverrideMode(StrEnum):
MERGE_WITH_DEFINITION = "MergeWithDefinition"
REPLACE_DEFINITION = "ReplaceDefinition"
| data/refinitiv-data-1.6.0/refinitiv/data/content/ipa/_curves/_cross_currency_curves/_curves/_enums/_constituent_override_mode.py | 203 | 69 | 195,402 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME pytest
STORE_NAME pytest
LOAD_CONST 0
LOAD_CONST ('session_middleware',)
IMPORT_NAME aiohttp_session
IMPORT_FROM session_middleware
STORE_NAME session_middleware
POP_TOP
LOAD_CONST None
LOAD_CONST ('return',)
BUILD_CONST_KEY_MAP
LOAD_CONST <code object test_session_middleware_... | import pytest
from aiohttp_session import session_middleware
async def test_session_middleware_bad_storage() -> None:
with pytest.raises(RuntimeError):
session_middleware(None) # type: ignore[arg-type]
| data/aiohttp-session-2.12.0/tests/test_session_middleware.py | 187 | 69 | 439,988 |
LOAD_CONST 2
LOAD_CONST ('numpy_available', 'scipy_available')
IMPORT_NAME dependencies
IMPORT_FROM numpy_available
STORE_NAME numpy_available
IMPORT_FROM scipy_available
STORE_NAME scipy_available
POP_TOP
LOAD_NAME numpy_available
POP_JUMP_IF_FALSE
LOAD_NAME scipy_available
POP_JUMP_IF_FALSE
LOAD_CONST 1
LOAD_CONST ... | from ..dependencies import numpy_available, scipy_available
if numpy_available and scipy_available:
from .block_vector import BlockVector, NotFullyDefinedBlockVectorError
from .block_matrix import BlockMatrix, NotFullyDefinedBlockMatrixError
| data/Pyomo-6.7.0/pyomo/contrib/pynumero/sparse/__init__.py | 186 | 69 | 23,645 |
LOAD_CONST '\nInternal classes and utilities.\n\n| Copyright 2017-2023, Voxel51, Inc.\n| `voxel51.com <https://voxel51.com/>`_\n|\n'
STORE_NAME __doc__
LOAD_CONST 1
LOAD_CONST ('*',)
IMPORT_NAME secrets
IMPORT_STAR
LOAD_CONST None
RETURN_VALUE | """
Internal classes and utilities.
| Copyright 2017-2023, Voxel51, Inc.
| `voxel51.com <https://voxel51.com/>`_
|
"""
from .secrets import *
| data/fiftyone-0.23.5/fiftyone/internal/__init__.py | 88 | 69 | 436,024 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME ABPersonDisplayNameAdditions
STORE_NAME ABPersonDisplayNameAdditions
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME PeopleDataSource
STORE_NAME PeopleDataSource
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME ServiceWatcher
STORE_NAME ServiceWatcher
LOAD_CONST 0
LOAD_CONST ('AppHelper',)
... | import ABPersonDisplayNameAdditions # noqa: F401
import PeopleDataSource # noqa: F401
import ServiceWatcher # noqa: F401
from PyObjCTools import AppHelper
AppHelper.runEventLoop()
| data/pyobjc-framework-InstantMessage-10.1/Examples/ABPresence/main.py | 108 | 69 | 163,241 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME typer
STORE_NAME typer
LOAD_NAME typer
LOAD_METHOD Option
LOAD_CONST Ellipsis
LOAD_CONST '--user-name'
LOAD_CONST '-n'
CALL_METHOD
BUILD_TUPLE
LOAD_NAME str
LOAD_CONST ('user_name',)
BUILD_CONST_KEY_MAP
LOAD_CONST <code object main at 0x7fab641f2db0, file "f.py", line 4>
LOAD_C... | import typer
def main(user_name: str = typer.Option(..., "--user-name", "-n")):
print(f"Hello {user_name}")
if __name__ == "__main__":
typer.run(main)
| data/typer-0.9.0/docs_src/options/name/tutorial004.py | 164 | 69 | 224,429 |
LOAD_CONST 'Task utils'
STORE_NAME __doc__
LOAD_CONST 1
LOAD_CONST ('train_classification', 'validation_classification', 'test_classification')
IMPORT_NAME classification
IMPORT_FROM train_classification
STORE_NAME train_classification
IMPORT_FROM validation_classification
STORE_NAME validation_classification
IMPORT_F... | """Task utils"""
from .classification import (
train_classification,
validation_classification,
test_classification,
)
from .coot import train_coot, validate_coot
from .pose import DirectposePipeline, build_pose_optimizer
| data/gluoncv-0.10.5.post0/gluoncv/torch/utils/task_utils/__init__.py | 186 | 69 | 207,442 |
LOAD_CONST <code object add_predictors at 0x7fab543e7ae0, file "f.py", line 1>
LOAD_CONST 'add_predictors'
MAKE_FUNCTION
STORE_NAME add_predictors
LOAD_CONST None
RETURN_VALUE
LOAD_GLOBAL ModelDesc
LOAD_METHOD from_formula
LOAD_FAST base_formula
CALL_METHOD
STORE_FAST desc
LOAD_FAST desc
DUP_TOP
LOAD_ATTR rhs_termlis... | def add_predictors(base_formula, extra_predictors):
desc = ModelDesc.from_formula(base_formula)
desc.rhs_termlist += [Term([LookupFactor(p)]) for p in extra_predictors]
return desc
| data/patsy-0.5.6/doc/_examples/add_predictors.py | 214 | 69 | 143,495 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME collections
STORE_NAME collections
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME numpy
STORE_NAME np
LOAD_CONST <code object test_no_duplicates_in_np__all__ at 0x7fab8212bc00, file "f.py", line 5>
LOAD_CONST 'test_no_duplicates_in_np__all__'
MAKE_FUNCTION
STORE_NAME test_no_duplica... | import collections
import numpy as np
def test_no_duplicates_in_np__all__():
dups = {k: v for k, v in collections.Counter(np.__all__).items() if v > 1}
assert len(dups) == 0
| data/catboost-1.2.2/catboost_all_src/contrib/python/numpy/py3/numpy/tests/test__all__.py | 286 | 69 | 176,648 |
LOAD_CONST 'AsyncSSH version information'
STORE_NAME __doc__
LOAD_CONST 'Ron Frederick'
STORE_NAME __author__
LOAD_CONST 'ronf@timeheart.net'
STORE_NAME __author_email__
LOAD_CONST 'http://asyncssh.timeheart.net'
STORE_NAME __url__
LOAD_CONST '2.14.2'
STORE_NAME __version__
LOAD_CONST None
RETURN_VALUE | """AsyncSSH version information"""
__author__ = "Ron Frederick"
__author_email__ = "ronf@timeheart.net"
__url__ = "http://asyncssh.timeheart.net"
__version__ = "2.14.2"
| data/asyncssh-2.14.2/asyncssh/version.py | 87 | 69 | 9,726 |
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 QuickLookThumbnailing
STORE_NAME QuickLookThumbnailing
LOAD_BUILD_CLASS
LOAD_CONST <code object TestCallableMetadata at 0x7fab821c5c00, file "f.py", line ... | from PyObjCTools.TestSupport import TestCase
import QuickLookThumbnailing
class TestCallableMetadata(TestCase):
def test_callable_metadata_is_sane(self):
self.assertCallableMetadataIsSane(QuickLookThumbnailing)
| data/pyobjc-framework-QuickLookThumbnailing-10.1/PyObjCTest/test_quicklookthumbnailing.py | 264 | 69 | 214,333 |
LOAD_CONST 0
LOAD_CONST ('GiModuleInfo',)
IMPORT_NAME PyInstaller.utils.hooks.gi
IMPORT_FROM GiModuleInfo
STORE_NAME GiModuleInfo
POP_TOP
LOAD_NAME GiModuleInfo
LOAD_CONST 'AppIndicator3'
LOAD_CONST '0.1'
CALL_FUNCTION
STORE_NAME module_info
LOAD_NAME module_info
LOAD_ATTR available
POP_JUMP_IF_FALSE
LOAD_NAME modul... | from PyInstaller.utils.hooks.gi import GiModuleInfo
module_info = GiModuleInfo("AppIndicator3", "0.1")
if module_info.available:
binaries, datas, hiddenimports = module_info.collect_typelib_data()
| data/pyinstaller-6.4.0/PyInstaller/hooks/hook-gi.repository.AppIndicator3.py | 113 | 69 | 185,266 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME ibis
STORE_NAME ibis
LOAD_NAME ibis
LOAD_ATTR table
LOAD_CONST 'star1'
LOAD_CONST 'int32'
LOAD_CONST 'float64'
LOAD_CONST 'string'
LOAD_CONST 'string'
LOAD_CONST ('c', 'f', 'foo_id', 'bar_id')
BUILD_CONST_KEY_MAP
LOAD_CONST ('name', 'schema')
CALL_FUNCTION
LOAD_METHOD limit
... | import ibis
result = ibis.table(
name="star1",
schema={"c": "int32", "f": "float64", "foo_id": "string", "bar_id": "string"},
).limit(10, 5)
| data/ibis_framework-8.0.0/ibis/tests/sql/snapshots/test_select_sql/test_select_sql/limit_with_offset/decompiled.py | 108 | 69 | 161,237 |
LOAD_CONST <code object get_rate at 0x7faa5efb6ed0, file "f.py", line 1>
LOAD_CONST 'get_rate'
MAKE_FUNCTION
STORE_NAME get_rate
LOAD_CONST None
RETURN_VALUE
LOAD_FAST check
LOAD_ATTR rate
STORE_DEREF rate_method
LOAD_CONST None
LOAD_CONST ('tags',)
BUILD_CONST_KEY_MAP
LOAD_CLOSURE metric_name
LOAD_CLOSURE rate_metho... | def get_rate(check, metric_name, modifiers):
rate_method = check.rate
def rate(value, *, tags=None):
rate_method(metric_name, value, tags=tags)
del check
del modifiers
return rate
| data/datadog_checks_base-36.1.0/datadog_checks/base/checks/windows/perf_counters/transformers/rate.py | 184 | 69 | 442,870 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME unittest
STORE_NAME unittest
LOAD_CONST 0
LOAD_CONST ('install_tests_in_module_dict',)
IMPORT_NAME multiprocess.tests
IMPORT_FROM install_tests_in_module_dict
STORE_NAME install_tests_in_module_dict
POP_TOP
LOAD_NAME install_tests_in_module_dict
LOAD_NAME globals
CALL_FUNCTION... | import unittest
from multiprocess.tests import install_tests_in_module_dict
install_tests_in_module_dict(globals(), "fork", only_type="manager")
if __name__ == "__main__":
unittest.main()
| data/multiprocess-0.70.16/py3.12/multiprocess/tests/test_multiprocessing_fork/test_manager.py | 144 | 69 | 144,919 |
LOAD_CONST <code object nested_lookup at 0x7fab703bb660, file "f.py", line 1>
LOAD_CONST 'nested_lookup'
MAKE_FUNCTION
STORE_NAME nested_lookup
LOAD_CONST None
RETURN_VALUE
SETUP_EXCEPT to 52
LOAD_GLOBAL len
LOAD_FAST indexes
CALL_FUNCTION
LOAD_CONST 1
COMPARE_OP ==
POP_JUMP_IF_FALSE
LOAD_FAST source
LOAD_FAST index... | def nested_lookup(source, indexes):
try:
if len(indexes) == 1:
return source[indexes[0]]
return nested_lookup(source[indexes[0]], indexes[1:])
except TypeError:
return None
| data/google_play_scraper-1.2.6/google_play_scraper/utils/__init__.py | 169 | 69 | 207,684 |
LOAD_CONST 0
LOAD_CONST ('GiModuleInfo',)
IMPORT_NAME PyInstaller.utils.hooks.gi
IMPORT_FROM GiModuleInfo
STORE_NAME GiModuleInfo
POP_TOP
LOAD_NAME GiModuleInfo
LOAD_CONST 'GstInsertBin'
LOAD_CONST '1.0'
CALL_FUNCTION
STORE_NAME module_info
LOAD_NAME module_info
LOAD_ATTR available
POP_JUMP_IF_FALSE
LOAD_NAME module... | from PyInstaller.utils.hooks.gi import GiModuleInfo
module_info = GiModuleInfo("GstInsertBin", "1.0")
if module_info.available:
binaries, datas, hiddenimports = module_info.collect_typelib_data()
| data/pyinstaller-6.4.0/PyInstaller/hooks/hook-gi.repository.GstInsertBin.py | 113 | 69 | 185,389 |
LOAD_CONST 1
LOAD_CONST ('AzureMachineLearningWorkspaces',)
IMPORT_NAME _azure_machine_learning_workspaces
IMPORT_FROM AzureMachineLearningWorkspaces
STORE_NAME AzureMachineLearningWorkspaces
POP_TOP
LOAD_CONST 1
LOAD_CONST ('VERSION',)
IMPORT_NAME _version
IMPORT_FROM VERSION
STORE_NAME VERSION
POP_TOP
LOAD_NAME VER... | from ._azure_machine_learning_workspaces import AzureMachineLearningWorkspaces
from ._version import VERSION
__version__ = VERSION
__all__ = ["AzureMachineLearningWorkspaces"]
from ._patch import patch_sdk
patch_sdk()
| data/azure-ai-ml-1.13.0/azure/ai/ml/_restclient/v2024_01_01_preview/__init__.py | 147 | 69 | 425,698 |
LOAD_CONST 0
LOAD_CONST ('config',)
IMPORT_NAME insights.parsers.systemd
IMPORT_FROM config
STORE_NAME config
POP_TOP
LOAD_NAME config
LOAD_ATTR SystemdDocker
STORE_NAME SystemdDocker
LOAD_NAME config
LOAD_ATTR SystemdLogindConf
STORE_NAME SystemdLogindConf
LOAD_NAME config
LOAD_ATTR SystemdOpenshiftNode
STORE_NAME ... | from insights.parsers.systemd import config
SystemdDocker = config.SystemdDocker
SystemdLogindConf = config.SystemdLogindConf
SystemdOpenshiftNode = config.SystemdOpenshiftNode
SystemdSystemConf = config.SystemdSystemConf
| data/insights-core-3.3.9/insights/parsers/systemd/__init__.py | 104 | 69 | 213,111 |
LOAD_CONST 0
LOAD_CONST ('Entity',)
IMPORT_NAME office365.sharepoint.entity
IMPORT_FROM Entity
STORE_NAME Entity
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object WebSharingManager at 0x7fab541051e0, file "f.py", line 4>
LOAD_CONST 'WebSharingManager'
MAKE_FUNCTION
LOAD_CONST 'WebSharingManager'
LOAD_NAME Entity
CALL_F... | from office365.sharepoint.entity import Entity
class WebSharingManager(Entity):
"""Specifies a placeholder for all web sharing methods."""
@property
def entity_type_name(self):
return "SP.Sharing.WebSharingManager"
| data/Office365-REST-Python-Client-2.5.5/office365/sharepoint/sharing/web_sharing_manager.py | 234 | 69 | 189,243 |
LOAD_CONST '\nURLs for help_tokens.\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 1
LOAD_CONST ('views',)
IMPORT_NAME
IMPORT_FROM views
STORE_NAME views
POP_TOP
LOAD_NAME re_path
LOAD_CONST '^(?P<token>.*)$'
LOAD_NAME view... | """
URLs for help_tokens.
"""
from django.urls import re_path
from . import views
urlpatterns = [
re_path(r"^(?P<token>.*)$", views.help_token_redirect),
]
| data/help-tokens-2.3.0/help_tokens/urls.py | 117 | 69 | 203,172 |
LOAD_CONST 'Make pytest-embedded plugin work with JTAG.'
STORE_NAME __doc__
LOAD_CONST 1
LOAD_CONST ('Gdb',)
IMPORT_NAME gdb
IMPORT_FROM Gdb
STORE_NAME Gdb
POP_TOP
LOAD_CONST 1
LOAD_CONST ('OpenOcd',)
IMPORT_NAME openocd
IMPORT_FROM OpenOcd
STORE_NAME OpenOcd
POP_TOP
LOAD_CONST 'OpenOcd'
LOAD_CONST 'Gdb'
BUILD_LIST... | """Make pytest-embedded plugin work with JTAG."""
from .gdb import Gdb
from .openocd import OpenOcd
__all__ = [
"OpenOcd",
"Gdb",
]
__version__ = "1.7.0"
| data/pytest_embedded_jtag-1.7.0/pytest_embedded_jtag/__init__.py | 118 | 69 | 146,634 |
LOAD_CONST 0
LOAD_CONST ('FastAPI',)
IMPORT_NAME fastapi
IMPORT_FROM FastAPI
STORE_NAME FastAPI
POP_TOP
LOAD_CONST 0
LOAD_CONST ('ORJSONResponse',)
IMPORT_NAME fastapi.responses
IMPORT_FROM ORJSONResponse
STORE_NAME ORJSONResponse
POP_TOP
LOAD_NAME FastAPI
CALL_FUNCTION
STORE_NAME app
LOAD_NAME app
LOAD_ATTR get
LOA... | from fastapi import FastAPI
from fastapi.responses import ORJSONResponse
app = FastAPI()
@app.get("/items/", response_class=ORJSONResponse)
async def read_items():
return ORJSONResponse([{"item_id": "Foo"}])
| data/fastapi-0.109.2/docs_src/custom_response/tutorial001b.py | 177 | 69 | 142,678 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME sys
STORE_NAME sys
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME time
STORE_NAME time
LOAD_CONST 0
STORE_NAME counter
SETUP_LOOP to 78
LOAD_NAME counter
LOAD_CONST 30000
COMPARE_OP <
POP_JUMP_IF_FALSE
LOAD_NAME sys
LOAD_ATTR stdout
LOAD_METHOD write
LOAD_CONST 'more spewage %d\n'... | import sys
import time
counter = 0
while counter < 30000:
sys.stdout.write("more spewage %d\n" % counter)
sys.stdout.flush()
time.sleep(0.01)
counter += 1
| data/supervisor-4.2.5/supervisor/tests/fixtures/spew.py | 145 | 69 | 190,982 |
LOAD_CONST 1
LOAD_CONST ('AzureMachineLearningWorkspaces',)
IMPORT_NAME _azure_machine_learning_workspaces
IMPORT_FROM AzureMachineLearningWorkspaces
STORE_NAME AzureMachineLearningWorkspaces
POP_TOP
LOAD_CONST 1
LOAD_CONST ('VERSION',)
IMPORT_NAME _version
IMPORT_FROM VERSION
STORE_NAME VERSION
POP_TOP
LOAD_NAME VER... | from ._azure_machine_learning_workspaces import AzureMachineLearningWorkspaces
from ._version import VERSION
__version__ = VERSION
__all__ = ["AzureMachineLearningWorkspaces"]
from ._patch import patch_sdk
patch_sdk()
| data/azure-ai-ml-1.13.0/azure/ai/ml/_restclient/v2022_12_01_preview/__init__.py | 147 | 69 | 425,232 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME unittest
STORE_NAME unittest
LOAD_CONST 0
LOAD_CONST ('install_tests_in_module_dict',)
IMPORT_NAME multiprocess.tests
IMPORT_FROM install_tests_in_module_dict
STORE_NAME install_tests_in_module_dict
POP_TOP
LOAD_NAME install_tests_in_module_dict
LOAD_NAME globals
CALL_FUNCTION... | import unittest
from multiprocess.tests import install_tests_in_module_dict
install_tests_in_module_dict(globals(), "spawn", only_type="manager")
if __name__ == "__main__":
unittest.main()
| data/multiprocess-0.70.16/py3.12/multiprocess/tests/test_multiprocessing_spawn/test_manager.py | 144 | 69 | 144,914 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME pkg_resources
STORE_NAME pkg_resources
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME sys
STORE_NAME sys
LOAD_CONST 0
LOAD_CONST ('as_string',)
IMPORT_NAME supervisor.compat
IMPORT_FROM as_string
STORE_NAME as_string
POP_TOP
LOAD_NAME sys
LOAD_ATTR stdout
BUILD_TUPLE
LOAD_CONST <co... | import pkg_resources
import sys
from supervisor.compat import as_string
def main(out=sys.stdout):
config = pkg_resources.resource_string(__name__, "skel/sample.conf")
out.write(as_string(config))
| data/supervisor-4.2.5/supervisor/confecho.py | 179 | 69 | 190,953 |
LOAD_CONST 'Google Cloud Runtime Configurator API package.'
STORE_NAME __doc__
LOAD_CONST 0
LOAD_CONST ('version',)
IMPORT_NAME google.cloud.runtimeconfig
IMPORT_FROM version
STORE_NAME runtimeconfig_version
POP_TOP
LOAD_NAME runtimeconfig_version
LOAD_ATTR __version__
STORE_NAME __version__
LOAD_CONST 0
LOAD_CONST ... | """Google Cloud Runtime Configurator API package."""
from google.cloud.runtimeconfig import version as runtimeconfig_version
__version__ = runtimeconfig_version.__version__
from google.cloud.runtimeconfig.client import Client
__all__ = ["__version__", "Client"]
| data/google-cloud-runtimeconfig-0.34.0/google/cloud/runtimeconfig/__init__.py | 118 | 69 | 213,626 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME typer
STORE_NAME typer
LOAD_NAME typer
LOAD_METHOD Option
LOAD_CONST Ellipsis
CALL_METHOD
BUILD_TUPLE
LOAD_NAME typer
LOAD_ATTR FileText
LOAD_CONST ('config',)
BUILD_CONST_KEY_MAP
LOAD_CONST <code object main at 0x7fab641f2db0, file "f.py", line 4>
LOAD_CONST 'main'
MAKE_FUNCTI... | import typer
def main(config: typer.FileText = typer.Option(...)):
for line in config:
print(f"Config line: {line}")
if __name__ == "__main__":
typer.run(main)
| data/typer-0.9.0/docs_src/parameter_types/file/tutorial001.py | 179 | 69 | 224,509 |
LOAD_CONST 'A job that always fails.'
STORE_NAME __doc__
LOAD_CONST 0
LOAD_CONST ('MRJob',)
IMPORT_NAME mrjob.job
IMPORT_FROM MRJob
STORE_NAME MRJob
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object MRBoom at 0x7fab8231b150, file "f.py", line 5>
LOAD_CONST 'MRBoom'
MAKE_FUNCTION
LOAD_CONST 'MRBoom'
LOAD_NAME MRJob
CAL... | """A job that always fails."""
from mrjob.job import MRJob
class MRBoom(MRJob):
def mapper_init(self):
raise Exception("BOOM")
if __name__ == "__main__":
MRBoom.run()
| data/mrjob-0.7.4/mrjob/examples/mr_boom.py | 247 | 69 | 132,962 |
LOAD_CONST 2
LOAD_CONST ('api_version_elb_backend',)
IMPORT_NAME elb.urls
IMPORT_FROM api_version_elb_backend
STORE_NAME api_version_elb_backend
POP_TOP
LOAD_CONST 'https?://elasticloadbalancing\\.(.+)\\.amazonaws.com'
BUILD_LIST
STORE_NAME url_bases
LOAD_CONST '{0}/$'
LOAD_NAME api_version_elb_backend
BUILD_MAP
STOR... | from ..elb.urls import api_version_elb_backend
url_bases = [r"https?://elasticloadbalancing\.(.+)\.amazonaws.com"]
url_paths = {"{0}/$": api_version_elb_backend}
| data/moto-5.0.2/moto/elbv2/urls.py | 111 | 69 | 198,338 |
LOAD_CONST '!\n\n@brief pyclustering module of data structures (containers).\n\n@authors Andrei Novikov (pyclustering@yandex.ru)\n@date 2014-2020\n@copyright BSD-3-Clause\n\n'
STORE_NAME __doc__
LOAD_CONST None
RETURN_VALUE | """!
@brief pyclustering module of data structures (containers).
@authors Andrei Novikov (pyclustering@yandex.ru)
@date 2014-2020
@copyright BSD-3-Clause
"""
| data/pyclustering-0.10.1.2/pyclustering/container/__init__.py | 85 | 69 | 23,189 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME unittest
STORE_NAME unittest
LOAD_CONST 0
LOAD_CONST ('install_tests_in_module_dict',)
IMPORT_NAME multiprocess.tests
IMPORT_FROM install_tests_in_module_dict
STORE_NAME install_tests_in_module_dict
POP_TOP
LOAD_NAME install_tests_in_module_dict
LOAD_NAME globals
CALL_FUNCTION... | import unittest
from multiprocess.tests import install_tests_in_module_dict
install_tests_in_module_dict(globals(), "forkserver", exclude_types=True)
if __name__ == "__main__":
unittest.main()
| data/multiprocess-0.70.16/py3.12/multiprocess/tests/test_multiprocessing_forkserver/test_misc.py | 144 | 69 | 144,908 |
LOAD_CONST 0
LOAD_CONST ('Minio',)
IMPORT_NAME minio
IMPORT_FROM Minio
STORE_NAME Minio
POP_TOP
LOAD_CONST 0
LOAD_CONST ('IamAwsProvider',)
IMPORT_NAME minio.credentials
IMPORT_FROM IamAwsProvider
STORE_NAME IamAwsProvider
POP_TOP
LOAD_NAME Minio
LOAD_CONST 's3.amazonaws.com'
LOAD_NAME IamAwsProvider
CALL_FUNCTION
LO... | from minio import Minio
from minio.credentials import IamAwsProvider
client = Minio("s3.amazonaws.com", credentials=IamAwsProvider())
stat = client.stat_object("my-bucket", "my-object")
print(stat)
| data/minio-7.2.4/examples/minio_with_iam_aws_provider.py | 145 | 69 | 24,722 |
LOAD_CONST 1
LOAD_CONST ('AzureMachineLearningWorkspaces',)
IMPORT_NAME _azure_machine_learning_workspaces
IMPORT_FROM AzureMachineLearningWorkspaces
STORE_NAME AzureMachineLearningWorkspaces
POP_TOP
LOAD_CONST 1
LOAD_CONST ('VERSION',)
IMPORT_NAME _version
IMPORT_FROM VERSION
STORE_NAME VERSION
POP_TOP
LOAD_NAME VER... | from ._azure_machine_learning_workspaces import AzureMachineLearningWorkspaces
from ._version import VERSION
__version__ = VERSION
__all__ = ["AzureMachineLearningWorkspaces"]
from ._patch import patch_sdk
patch_sdk()
| data/azure-ai-ml-1.13.0/azure/ai/ml/_restclient/v2022_02_01_preview/__init__.py | 147 | 69 | 425,802 |
LOAD_CONST 0
LOAD_CONST ('GiModuleInfo',)
IMPORT_NAME PyInstaller.utils.hooks.gi
IMPORT_FROM GiModuleInfo
STORE_NAME GiModuleInfo
POP_TOP
LOAD_NAME GiModuleInfo
LOAD_CONST 'GstVulkan'
LOAD_CONST '1.0'
CALL_FUNCTION
STORE_NAME module_info
LOAD_NAME module_info
LOAD_ATTR available
POP_JUMP_IF_FALSE
LOAD_NAME module_in... | from PyInstaller.utils.hooks.gi import GiModuleInfo
module_info = GiModuleInfo("GstVulkan", "1.0")
if module_info.available:
binaries, datas, hiddenimports = module_info.collect_typelib_data()
| data/pyinstaller-6.4.0/PyInstaller/hooks/hook-gi.repository.GstVulkan.py | 113 | 69 | 185,362 |
LOAD_CONST 1
LOAD_CONST ('AzureMachineLearningWorkspaces',)
IMPORT_NAME _azure_machine_learning_workspaces
IMPORT_FROM AzureMachineLearningWorkspaces
STORE_NAME AzureMachineLearningWorkspaces
POP_TOP
LOAD_CONST 1
LOAD_CONST ('VERSION',)
IMPORT_NAME _version
IMPORT_FROM VERSION
STORE_NAME VERSION
POP_TOP
LOAD_NAME VER... | from ._azure_machine_learning_workspaces import AzureMachineLearningWorkspaces
from ._version import VERSION
__version__ = VERSION
__all__ = ["AzureMachineLearningWorkspaces"]
from ._patch import patch_sdk
patch_sdk()
| data/azure-ai-ml-1.13.0/azure/ai/ml/_restclient/v2020_09_01_dataplanepreview/__init__.py | 147 | 69 | 424,716 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME unittest
STORE_NAME unittest
LOAD_CONST 0
LOAD_CONST ('install_tests_in_module_dict',)
IMPORT_NAME multiprocess.tests
IMPORT_FROM install_tests_in_module_dict
STORE_NAME install_tests_in_module_dict
POP_TOP
LOAD_NAME install_tests_in_module_dict
LOAD_NAME globals
CALL_FUNCTION... | import unittest
from multiprocess.tests import install_tests_in_module_dict
install_tests_in_module_dict(globals(), "fork", only_type="manager")
if __name__ == "__main__":
unittest.main()
| data/multiprocess-0.70.16/py3.11/multiprocess/tests/test_multiprocessing_fork/test_manager.py | 144 | 69 | 144,873 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME typer
STORE_NAME typer
LOAD_CONST 0
LOAD_CONST ('Console',)
IMPORT_NAME rich.console
IMPORT_FROM Console
STORE_NAME Console
POP_TOP
LOAD_NAME Console
LOAD_CONST True
LOAD_CONST ('stderr',)
CALL_FUNCTION
STORE_NAME err_console
LOAD_CONST <code object main at 0x7fab641e7030, fi... | import typer
from rich.console import Console
err_console = Console(stderr=True)
def main():
err_console.print("Here is something written to standard error")
if __name__ == "__main__":
typer.run(main)
| data/typer-0.9.0/docs_src/printing/tutorial004.py | 170 | 69 | 224,464 |
LOAD_CONST <code object get_count at 0x7faa5efb6270, file "f.py", line 1>
LOAD_CONST 'get_count'
MAKE_FUNCTION
STORE_NAME get_count
LOAD_CONST None
RETURN_VALUE
LOAD_FAST check
LOAD_ATTR count
STORE_DEREF count_method
LOAD_CONST None
LOAD_CONST ('tags',)
BUILD_CONST_KEY_MAP
LOAD_CLOSURE count_method
LOAD_CLOSURE metr... | def get_count(check, metric_name, modifiers):
count_method = check.count
def count(value, *, tags=None):
count_method(metric_name, value, tags=tags)
del check
del modifiers
return count
| data/datadog_checks_base-36.1.0/datadog_checks/base/checks/windows/perf_counters/transformers/count.py | 185 | 69 | 442,875 |
LOAD_CONST '0.9.2'
STORE_NAME __version__
LOAD_CONST 1
LOAD_CONST ('PrettyTable',)
IMPORT_NAME prettytable
IMPORT_FROM PrettyTable
STORE_NAME PrettyTable
POP_TOP
LOAD_CONST 1
LOAD_CONST ('ALL', 'HEADER', 'MSWORD_FRIENDLY', 'NONE')
IMPORT_NAME prettytable
IMPORT_FROM ALL
STORE_NAME ALL
IMPORT_FROM HEADER
STORE_NAME HE... | __version__ = "0.9.2"
from .prettytable import PrettyTable
from .prettytable import ALL, HEADER, MSWORD_FRIENDLY, NONE
from .factory import from_csv, from_db_cursor, from_html, from_html_one
| data/PTable-0.9.2/prettytable/__init__.py | 207 | 69 | 167,241 |
LOAD_CONST 0
LOAD_CONST ('Ecommerce',)
IMPORT_NAME whylogs.datasets.ecommerce
IMPORT_FROM Ecommerce
STORE_NAME Ecommerce
POP_TOP
LOAD_CONST 0
LOAD_CONST ('Employee',)
IMPORT_NAME whylogs.datasets.employee
IMPORT_FROM Employee
STORE_NAME Employee
POP_TOP
LOAD_CONST 0
LOAD_CONST ('Weather',)
IMPORT_NAME whylogs.dataset... | from whylogs.datasets.ecommerce import Ecommerce
from whylogs.datasets.employee import Employee
from whylogs.datasets.weather import Weather
__ALL__ = [
Weather,
Ecommerce,
Employee,
]
| data/whylogs-1.3.24/whylogs/datasets/__init__.py | 128 | 69 | 432,427 |
LOAD_CONST 'GluonCV neural network layers'
STORE_NAME __doc__
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 ('bbox',)
IMPORT_NAME
IMPORT_FROM bbox
STORE_NAME bbox
POP_TOP
LOAD_CONST 1
LOAD_CONST ('coder',)
IM... | """GluonCV neural network layers"""
from __future__ import absolute_import
from . import bbox
from . import coder
from . import feature
from . import matcher
from . import predictor
from . import sampler
from .block import *
from .gn import *
| data/gluoncv-0.10.5.post0/gluoncv/nn/__init__.py | 226 | 69 | 207,342 |
LOAD_CONST 0
LOAD_CONST ('azure_audit_info',)
IMPORT_NAME prowler.providers.azure.lib.audit_info.audit_info
IMPORT_FROM azure_audit_info
STORE_NAME azure_audit_info
POP_TOP
LOAD_CONST 0
LOAD_CONST ('Network',)
IMPORT_NAME prowler.providers.azure.services.network.network_service
IMPORT_FROM Network
STORE_NAME Network
P... | from prowler.providers.azure.lib.audit_info.audit_info import azure_audit_info
from prowler.providers.azure.services.network.network_service import Network
network_client = Network(azure_audit_info)
| data/prowler-3.14.0/prowler/providers/azure/services/network/network_client.py | 122 | 69 | 183,532 |
LOAD_CONST 1
LOAD_CONST ('AzureMachineLearningWorkspaces',)
IMPORT_NAME _azure_machine_learning_workspaces
IMPORT_FROM AzureMachineLearningWorkspaces
STORE_NAME AzureMachineLearningWorkspaces
POP_TOP
LOAD_CONST 1
LOAD_CONST ('VERSION',)
IMPORT_NAME _version
IMPORT_FROM VERSION
STORE_NAME VERSION
POP_TOP
LOAD_NAME VER... | from ._azure_machine_learning_workspaces import AzureMachineLearningWorkspaces
from ._version import VERSION
__version__ = VERSION
__all__ = ["AzureMachineLearningWorkspaces"]
from ._patch import patch_sdk
patch_sdk()
| data/azure-ai-ml-1.13.0/azure/ai/ml/_restclient/registry_discovery/__init__.py | 147 | 69 | 425,047 |
LOAD_CONST 0
LOAD_CONST ('EntityPath',)
IMPORT_NAME office365.runtime.paths.v4.entity
IMPORT_FROM EntityPath
STORE_NAME EntityPath
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object DeltaPath at 0x7fab81f0b300, file "f.py", line 4>
LOAD_CONST 'DeltaPath'
MAKE_FUNCTION
LOAD_CONST 'DeltaPath'
LOAD_NAME EntityPath
CALL_FUN... | from office365.runtime.paths.v4.entity import EntityPath
class DeltaPath(EntityPath):
"""Delta path"""
def __init__(self, parent=None):
super(DeltaPath, self).__init__("delta", parent, parent)
| data/Office365-REST-Python-Client-2.5.5/office365/delta_path.py | 258 | 69 | 188,446 |
LOAD_CONST 0
LOAD_CONST ('registry',)
IMPORT_NAME sqlalchemy.dialects
IMPORT_FROM registry
STORE_NAME registry
POP_TOP
LOAD_NAME registry
LOAD_METHOD register
LOAD_CONST 'bigquery'
LOAD_CONST 'sqlalchemy_bigquery'
LOAD_CONST 'BigQueryDialect'
CALL_METHOD
POP_TOP
LOAD_NAME registry
LOAD_METHOD register
LOAD_CONST 'big... | from sqlalchemy.dialects import registry
registry.register("bigquery", "sqlalchemy_bigquery", "BigQueryDialect")
registry.register("bigquery.bigquery", "sqlalchemy_bigquery", "BigQueryDialect")
| data/sqlalchemy-bigquery-1.9.0/tests/conftest.py | 112 | 69 | 169,375 |
LOAD_CONST ' Control Govee LED devices '
STORE_NAME __doc__
LOAD_CONST 1
LOAD_CONST ('GoveeColor', 'GoveeController', 'GoveeDevice', 'GoveeDeviceState', 'GoveeHttpDeviceDefinition', 'GoveeLanDeviceDefinition')
IMPORT_NAME govee
IMPORT_FROM GoveeColor
STORE_NAME GoveeColor
IMPORT_FROM GoveeController
STORE_NAME GoveeCo... | """ Control Govee LED devices """
from .govee import (
GoveeColor,
GoveeController,
GoveeDevice,
GoveeDeviceState,
GoveeHttpDeviceDefinition,
GoveeLanDeviceDefinition,
)
| data/govee_led_wez-0.0.15/govee_led_wez/__init__.py | 159 | 69 | 15,782 |
LOAD_CONST 1
LOAD_CONST ('formats', 'fill_missing_examples')
IMPORT_NAME
IMPORT_FROM formats
STORE_NAME formats
IMPORT_FROM fill_missing_examples
STORE_NAME fill_missing_examples
POP_TOP
LOAD_CONST None
LOAD_CONST ('return',)
BUILD_CONST_KEY_MAP
LOAD_CONST <code object install at 0x7fadb5811c00, file "f.py", line 4>
L... | from . import formats, fill_missing_examples
def install() -> None:
formats.install()
fill_missing_examples.install()
def uninstall() -> None:
formats.uninstall()
fill_missing_examples.uninstall()
| data/schemathesis-3.25.1/src/schemathesis/contrib/openapi/__init__.py | 222 | 69 | 174,985 |
LOAD_CONST 1
LOAD_CONST ('AzureMachineLearningWorkspaces',)
IMPORT_NAME _azure_machine_learning_workspaces
IMPORT_FROM AzureMachineLearningWorkspaces
STORE_NAME AzureMachineLearningWorkspaces
POP_TOP
LOAD_CONST 1
LOAD_CONST ('VERSION',)
IMPORT_NAME _version
IMPORT_FROM VERSION
STORE_NAME VERSION
POP_TOP
LOAD_NAME VER... | from ._azure_machine_learning_workspaces import AzureMachineLearningWorkspaces
from ._version import VERSION
__version__ = VERSION
__all__ = ["AzureMachineLearningWorkspaces"]
from ._patch import patch_sdk
patch_sdk()
| data/azure-ai-ml-1.13.0/azure/ai/ml/_restclient/v2022_05_01/__init__.py | 147 | 69 | 425,090 |
LOAD_CONST ('loads', 'load', 'TOMLDecodeError', 'dump', 'dumps')
STORE_NAME __all__
LOAD_CONST 1
LOAD_CONST ('TOMLDecodeError', 'load', 'loads')
IMPORT_NAME _parser
IMPORT_FROM TOMLDecodeError
STORE_NAME TOMLDecodeError
IMPORT_FROM load
STORE_NAME load
IMPORT_FROM loads
STORE_NAME loads
POP_TOP
LOAD_CONST 1
LOAD_CONS... | __all__ = "loads", "load", "TOMLDecodeError", "dump", "dumps"
from ._parser import TOMLDecodeError, load, loads
from ._writer import dump, dumps
TOMLDecodeError.__module__ = __name__
| data/dynaconf-3.2.4/dynaconf/vendor/tomllib/__init__.py | 143 | 69 | 205,607 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME pytest
STORE_NAME pytest
LOAD_BUILD_CLASS
LOAD_CONST <code object XdistHooks at 0x7fab8212b0c0, file "f.py", line 4>
LOAD_CONST 'XdistHooks'
MAKE_FUNCTION
LOAD_CONST 'XdistHooks'
CALL_FUNCTION
STORE_NAME XdistHooks
LOAD_CONST None
RETURN_VALUE
LOAD_NAME __name__
STORE_NAME __m... | import pytest
class XdistHooks:
def pytest_configure_node(self, node: pytest.Item) -> None:
seed = node.config.getoption("random_order_seed")
node.workerinput["random_order_seed"] = seed
| data/pytest-random-order-1.1.1/random_order/xdist.py | 248 | 69 | 171,520 |
LOAD_CONST 0
LOAD_CONST ('Datasource',)
IMPORT_NAME great_expectations.datasource
IMPORT_FROM Datasource
STORE_NAME Datasource
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object MyCustomV3ApiDatasource at 0x7faa51b824b0, file "f.py", line 4>
LOAD_CONST 'MyCustomV3ApiDatasource'
MAKE_FUNCTION
LOAD_CONST 'MyCustomV3ApiDat... | from great_expectations.datasource import Datasource
class MyCustomV3ApiDatasource(Datasource):
"""
This class is used only for testing.
E.g. ensuring appropriate usage stats messaging when using plugin functionality.
"""
pass
| data/great_expectations-0.18.9/tests/data_context/fixtures/plugins/my_custom_v3_api_datasource.py | 195 | 69 | 18,616 |
LOAD_CONST '\nOnPrem provides a set of general on-premise services.\n'
STORE_NAME __doc__
LOAD_CONST 0
LOAD_CONST ('Node',)
IMPORT_NAME diagrams
IMPORT_FROM Node
STORE_NAME Node
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object _OnPrem at 0x7fab81fc6e40, file "f.py", line 8>
LOAD_CONST '_OnPrem'
MAKE_FUNCTION
LOAD_CON... | """
OnPrem provides a set of general on-premise services.
"""
from diagrams import Node
class _OnPrem(Node):
_provider = "onprem"
_icon_dir = "resources/onprem"
fontcolor = "#ffffff"
| data/diagrams-0.23.4/diagrams/onprem/__init__.py | 178 | 69 | 205,994 |
LOAD_NAME __file__
LOAD_CONST '-'
BUILD_LIST
COMPARE_OP ==
POP_JUMP_IF_FALSE
SETUP_LOOP to 64
SETUP_EXCEPT to 30
LOAD_NAME compile
LOAD_NAME __file__
LOAD_CONST True
LOAD_CONST ('doraise',)
CALL_FUNCTION
POP_TOP
POP_BLOCK
JUMP_ABSOLUTE
DUP_TOP
LOAD_NAME RuntimeError
COMPARE_OP exception match
POP_JUMP_IF_FALSE
POP_... | if __file__ == ["-"]:
while True:
try:
compile(__file__, doraise=True)
except RuntimeError:
rv = 1
else:
rv = 1
print(rv)
while 1:
pass
| data/uncompyle6-3.9.0/test/simple_source/stmts/09_whiletrue_bug.py | 140 | 69 | 442,047 |
LOAD_CONST 0
LOAD_CONST ('GiModuleInfo',)
IMPORT_NAME PyInstaller.utils.hooks.gi
IMPORT_FROM GiModuleInfo
STORE_NAME GiModuleInfo
POP_TOP
LOAD_NAME GiModuleInfo
LOAD_CONST 'GstRtsp'
LOAD_CONST '1.0'
CALL_FUNCTION
STORE_NAME module_info
LOAD_NAME module_info
LOAD_ATTR available
POP_JUMP_IF_FALSE
LOAD_NAME module_info... | from PyInstaller.utils.hooks.gi import GiModuleInfo
module_info = GiModuleInfo("GstRtsp", "1.0")
if module_info.available:
binaries, datas, hiddenimports = module_info.collect_typelib_data()
| data/pyinstaller-6.4.0/PyInstaller/hooks/hook-gi.repository.GstRtsp.py | 113 | 69 | 185,231 |
LOAD_CONST 0
LOAD_CONST ('List',)
IMPORT_NAME typing
IMPORT_FROM List
STORE_NAME List
POP_TOP
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME typer
STORE_NAME typer
LOAD_NAME typer
LOAD_METHOD Option
BUILD_LIST
CALL_METHOD
BUILD_TUPLE
LOAD_NAME List
LOAD_NAME float
BINARY_SUBSCR
LOAD_CONST ('number',)
BUILD_CONST_KEY_MAP
LO... | from typing import List
import typer
def main(number: List[float] = typer.Option([])):
print(f"The sum is {sum(number)}")
if __name__ == "__main__":
typer.run(main)
| data/typer-0.9.0/docs_src/multiple_values/multiple_options/tutorial002.py | 179 | 69 | 224,364 |
LOAD_CONST 0
LOAD_CONST ('GiModuleInfo',)
IMPORT_NAME PyInstaller.utils.hooks.gi
IMPORT_FROM GiModuleInfo
STORE_NAME GiModuleInfo
POP_TOP
LOAD_NAME GiModuleInfo
LOAD_CONST 'GstMpegts'
LOAD_CONST '1.0'
CALL_FUNCTION
STORE_NAME module_info
LOAD_NAME module_info
LOAD_ATTR available
POP_JUMP_IF_FALSE
LOAD_NAME module_in... | from PyInstaller.utils.hooks.gi import GiModuleInfo
module_info = GiModuleInfo("GstMpegts", "1.0")
if module_info.available:
binaries, datas, hiddenimports = module_info.collect_typelib_data()
| data/pyinstaller-6.4.0/PyInstaller/hooks/hook-gi.repository.GstMpegts.py | 113 | 69 | 185,209 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME sys
STORE_NAME sys
LOAD_CONST <code object pytest_configure at 0x7fab800c76f0, file "f.py", line 4>
LOAD_CONST 'pytest_configure'
MAKE_FUNCTION
STORE_NAME pytest_configure
LOAD_CONST <code object pytest_unconfigure at 0x7fab800c7660, file "f.py", line 10>
LOAD_CONST 'pytest_un... | import sys
def pytest_configure(config):
import sys
sys._called_from_test = True
def pytest_unconfigure(config):
if hasattr(sys, "_called_from_test"):
del sys._called_from_test
| data/mip-1.15.0/test/conftest.py | 198 | 69 | 177,981 |
LOAD_CONST 0
LOAD_CONST ('absolute_import', 'division', 'print_function')
IMPORT_NAME __future__
IMPORT_FROM absolute_import
STORE_NAME absolute_import
IMPORT_FROM division
STORE_NAME division
IMPORT_FROM print_function
STORE_NAME print_function
POP_TOP
LOAD_NAME type
STORE_NAME __metaclass__
LOAD_CONST 5
LOAD_CONST ... | from __future__ import absolute_import, division, print_function
__metaclass__ = type
from .....plugins.module_utils.my_util import hello
def test_hello():
assert hello("Ansibull") == "Hello Ansibull"
| data/ansible-core-2.16.3/test/integration/targets/ansible-test-units/ansible_collections/ns/col/tests/unit/plugins/module_utils/test_my_util.py | 191 | 69 | 437,421 |
LOAD_CONST ' Test that uses win32com superficially.\n\nPlease help make it more useful, ideally by adding something\nthat would work on every machine.\n'
STORE_NAME __doc__
LOAD_CONST 0
LOAD_CONST ('storagecon',)
IMPORT_NAME win32com
IMPORT_FROM storagecon
STORE_NAME storagecon
POP_TOP
LOAD_CONST 0
LOAD_CONST ('shell... | """ Test that uses win32com superficially.
Please help make it more useful, ideally by adding something
that would work on every machine.
"""
from win32com import storagecon
from win32com.shell import shell, shellcon
print("OK.")
| data/Nuitka-2.0.3/tests/standalone/Win32ComUsing.py | 129 | 69 | 148,218 |
LOAD_CONST 'Azure IoT Device Common\n\nThis package provides shared modules for use with various Azure IoT device-side clients.\n\nINTERNAL USAGE ONLY\n'
STORE_NAME __doc__
LOAD_CONST 1
LOAD_CONST ('X509', 'ProxyOptions')
IMPORT_NAME models
IMPORT_FROM X509
STORE_NAME X509
IMPORT_FROM ProxyOptions
STORE_NAME ProxyOpti... | """Azure IoT Device Common
This package provides shared modules for use with various Azure IoT device-side clients.
INTERNAL USAGE ONLY
"""
from .models import X509, ProxyOptions
__all__ = ["X509", "ProxyOptions"]
| data/azure-iot-device-2.13.0/azure-iot-device/azure/iot/device/common/__init__.py | 119 | 69 | 16,115 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME pytest
STORE_NAME pytest
LOAD_CONST 0
LOAD_CONST ('utility',)
IMPORT_NAME arch
IMPORT_FROM utility
STORE_NAME utility
POP_TOP
LOAD_NAME pytest
LOAD_ATTR mark
LOAD_ATTR slow
LOAD_NAME pytest
LOAD_ATTR mark
LOAD_METHOD parametrize
LOAD_CONST 'arg'
LOAD_CONST '--collect-only'
BU... | import pytest
from arch import utility
@pytest.mark.slow
@pytest.mark.parametrize("arg", [["--collect-only"], "--collect-only"])
def test_runner(arg):
utility.test(arg, exit=False)
| data/arch-6.3.0/arch/tests/utility/test_utility.py | 174 | 69 | 436,085 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME GameKit
STORE_NAME GameKit
LOAD_CONST 0
LOAD_CONST ('TestCase',)
IMPORT_NAME PyObjCTools.TestSupport
IMPORT_FROM TestCase
STORE_NAME TestCase
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object TestGKLeaderboardViewController at 0x7faa53e6fd20, file "f.py", line 5>
LOAD_CONST 'Te... | import GameKit # noqa: F401
from PyObjCTools.TestSupport import TestCase
class TestGKLeaderboardViewController(TestCase):
def testProtocols(self):
self.assertProtocolExists("GKLeaderboardViewControllerDelegate")
| data/pyobjc-framework-GameKit-10.1/PyObjCTest/test_gkleaderboardviewcontroller.py | 258 | 69 | 22,918 |
LOAD_CONST 'This module contains constants related to the pipeline package.\n'
STORE_NAME __doc__
LOAD_CONST 'c2d'
STORE_NAME C2D_MSG
LOAD_CONST 'input'
STORE_NAME INPUT_MSG
LOAD_CONST 'methods'
STORE_NAME METHODS
LOAD_CONST 'twin'
STORE_NAME TWIN
LOAD_CONST 'twin_patches'
STORE_NAME TWIN_PATCHES
LOAD_CONST None
R... | """This module contains constants related to the pipeline package.
"""
C2D_MSG = "c2d"
INPUT_MSG = "input"
METHODS = "methods"
TWIN = "twin"
TWIN_PATCHES = "twin_patches"
| data/azure-iot-device-2.13.0/azure-iot-device/azure/iot/device/iothub/pipeline/constant.py | 94 | 69 | 16,155 |
LOAD_CONST 0
LOAD_CONST ('annotations',)
IMPORT_NAME __future__
IMPORT_FROM annotations
STORE_NAME annotations
POP_TOP
LOAD_CONST 'bool'
LOAD_CONST 'int'
LOAD_CONST 'str'
LOAD_CONST ('x', 'y', 'return')
BUILD_CONST_KEY_MAP
LOAD_CONST <code object function at 0x7fab821f2150, file "f.py", line 4>
LOAD_CONST 'function'
M... | from __future__ import annotations
def function(x: bool, y: int) -> str: # noqa: ARG001
"""
Function docstring.
:param x: `foo`
:param y: ``bar``
"""
| data/sphinx_autodoc_typehints-2.0.0/tests/roots/test-dummy/dummy_module_simple_default_role.py | 108 | 69 | 185,882 |
LOAD_CONST 1
LOAD_CONST ('AzureMachineLearningWorkspaces',)
IMPORT_NAME _azure_machine_learning_workspaces
IMPORT_FROM AzureMachineLearningWorkspaces
STORE_NAME AzureMachineLearningWorkspaces
POP_TOP
LOAD_CONST 1
LOAD_CONST ('VERSION',)
IMPORT_NAME _version
IMPORT_FROM VERSION
STORE_NAME VERSION
POP_TOP
LOAD_NAME VER... | from ._azure_machine_learning_workspaces import AzureMachineLearningWorkspaces
from ._version import VERSION
__version__ = VERSION
__all__ = ["AzureMachineLearningWorkspaces"]
from ._patch import patch_sdk
patch_sdk()
| data/azure-ai-ml-1.13.0/azure/ai/ml/_restclient/model_dataplane/__init__.py | 147 | 69 | 425,066 |
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 DiscardCheckoutFacet at 0x7fab640fae40, file "f.py", line 4>
LOAD_CONST 'DiscardCheckoutFacet'
MAKE_FUNCTION
LOAD_CONST 'DiscardCheckoutFac... | from office365.runtime.client_value import ClientValue
class DiscardCheckoutFacet(ClientValue):
""""""
@property
def entity_type_name(self):
return "Microsoft.SharePoint.Activities.DiscardCheckoutFacet"
| data/Office365-REST-Python-Client-2.5.5/office365/sharepoint/activities/facets/discard_checkout.py | 242 | 69 | 189,616 |
LOAD_CONST 'Platform-specific initialization for the MinGW system.'
STORE_NAME __doc__
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME sys
STORE_NAME sys
BUILD_LIST
STORE_NAME MINGW_DEFAULT_PATHS
LOAD_NAME sys
LOAD_ATTR platform
LOAD_CONST 'win32'
COMPARE_OP ==
POP_JUMP_IF_FALSE
LOAD_CONST 'C:\\msys64'
LOAD_CONST 'C:\\msy... | """Platform-specific initialization for the MinGW system."""
import sys
MINGW_DEFAULT_PATHS = []
if sys.platform == "win32":
MINGW_DEFAULT_PATHS = [r"C:\msys64", r"C:\msys"]
| data/Nuitka-2.0.3/nuitka/build/inline_copy/lib/scons-4.3.0/SCons/Platform/mingw.py | 103 | 69 | 148,747 |
LOAD_CONST 1
LOAD_CONST ('build_sam', 'build_sam_vit_h', 'build_sam_vit_l', 'build_sam_vit_b', 'sam_model_registry')
IMPORT_NAME build_sam
IMPORT_FROM build_sam
STORE_NAME build_sam
IMPORT_FROM build_sam_vit_h
STORE_NAME build_sam_vit_h
IMPORT_FROM build_sam_vit_l
STORE_NAME build_sam_vit_l
IMPORT_FROM build_sam_vit_b
... | from .build_sam import (
build_sam,
build_sam_vit_h,
build_sam_vit_l,
build_sam_vit_b,
sam_model_registry,
)
from .predictor import SamPredictor
| data/lama-cleaner-1.2.5/lama_cleaner/plugins/segment_anything/__init__.py | 179 | 69 | 13,742 |
LOAD_CONST 0
LOAD_CONST ('azure_audit_info',)
IMPORT_NAME prowler.providers.azure.lib.audit_info.audit_info
IMPORT_FROM azure_audit_info
STORE_NAME azure_audit_info
POP_TOP
LOAD_CONST 0
LOAD_CONST ('MySQL',)
IMPORT_NAME prowler.providers.azure.services.mysql.mysql_service
IMPORT_FROM MySQL
STORE_NAME MySQL
POP_TOP
LO... | from prowler.providers.azure.lib.audit_info.audit_info import azure_audit_info
from prowler.providers.azure.services.mysql.mysql_service import MySQL
mysql_client = MySQL(azure_audit_info)
| data/prowler-3.14.0/prowler/providers/azure/services/mysql/mysql_client.py | 123 | 69 | 183,522 |
LOAD_CONST 2
LOAD_CONST ('ShopifyResource',)
IMPORT_NAME base
IMPORT_FROM ShopifyResource
STORE_NAME ShopifyResource
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object GiftCardAdjustment at 0x7fab427d30c0, file "f.py", line 4>
LOAD_CONST 'GiftCardAdjustment'
MAKE_FUNCTION
LOAD_CONST 'GiftCardAdjustment'
LOAD_NAME Shopif... | from ..base import ShopifyResource
class GiftCardAdjustment(ShopifyResource):
_prefix_source = "/admin/gift_cards/$gift_card_id/"
_plural = "adjustments"
_singular = "adjustment"
| data/ShopifyAPI-12.4.0/shopify/resources/gift_card_adjustment.py | 192 | 69 | 216,713 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME unittest
STORE_NAME unittest
LOAD_CONST 0
LOAD_CONST ('install_tests_in_module_dict',)
IMPORT_NAME multiprocess.tests
IMPORT_FROM install_tests_in_module_dict
STORE_NAME install_tests_in_module_dict
POP_TOP
LOAD_NAME install_tests_in_module_dict
LOAD_NAME globals
CALL_FUNCTION... | import unittest
from multiprocess.tests import install_tests_in_module_dict
install_tests_in_module_dict(globals(), "fork", only_type="manager")
if __name__ == "__main__":
unittest.main()
| data/multiprocess-0.70.16/py3.13/multiprocess/tests/test_multiprocessing_fork/test_manager.py | 144 | 69 | 144,782 |
LOAD_CONST 0
LOAD_CONST ('azure_audit_info',)
IMPORT_NAME prowler.providers.azure.lib.audit_info.audit_info
IMPORT_FROM azure_audit_info
STORE_NAME azure_audit_info
POP_TOP
LOAD_CONST 0
LOAD_CONST ('Storage',)
IMPORT_NAME prowler.providers.azure.services.storage.storage_service
IMPORT_FROM Storage
STORE_NAME Storage
P... | from prowler.providers.azure.lib.audit_info.audit_info import azure_audit_info
from prowler.providers.azure.services.storage.storage_service import Storage
storage_client = Storage(azure_audit_info)
| data/prowler-3.14.0/prowler/providers/azure/services/storage/storage_client.py | 122 | 69 | 183,474 |
LOAD_CONST 0
LOAD_CONST ('AbstractRandomForest',)
IMPORT_NAME smac.model.random_forest.abstract_random_forest
IMPORT_FROM AbstractRandomForest
STORE_NAME AbstractRandomForest
POP_TOP
LOAD_CONST 0
LOAD_CONST ('RandomForest',)
IMPORT_NAME smac.model.random_forest.random_forest
IMPORT_FROM RandomForest
STORE_NAME RandomF... | from smac.model.random_forest.abstract_random_forest import AbstractRandomForest
from smac.model.random_forest.random_forest import RandomForest
__all__ = [
"AbstractRandomForest",
"RandomForest",
]
| data/smac-2.0.2/smac/model/random_forest/__init__.py | 116 | 69 | 436,581 |
LOAD_CONST 1
LOAD_CONST ('SparkSession',)
IMPORT_NAME session
IMPORT_FROM SparkSession
STORE_NAME SparkSession
POP_TOP
LOAD_CONST 1
LOAD_CONST ('DataFrameWriter',)
IMPORT_NAME readwriter
IMPORT_FROM DataFrameWriter
STORE_NAME DataFrameWriter
POP_TOP
LOAD_CONST 1
LOAD_CONST ('DataFrame',)
IMPORT_NAME dataframe
IMPORT_... | from .session import SparkSession
from .readwriter import DataFrameWriter
from .dataframe import DataFrame
from .conf import RuntimeConfig
from .catalog import Catalog
__all__ = ["SparkSession", "DataFrame", "RuntimeConfig", "DataFrameWriter", "Catalog"]
| data/duckdb-0.10.0/duckdb/experimental/spark/sql/__init__.py | 177 | 69 | 423,705 |
LOAD_BUILD_CLASS
LOAD_CONST <code object SigningSender at 0x7f8e447b48a0, file "f.py", line 1>
LOAD_CONST 'SigningSender'
MAKE_FUNCTION
LOAD_CONST 'SigningSender'
CALL_FUNCTION
STORE_NAME SigningSender
LOAD_CONST None
RETURN_VALUE
LOAD_NAME __name__
STORE_NAME __module__
LOAD_CONST 'SigningSender'
STORE_NAME __qualnam... | class SigningSender:
def __init__(self, signer, inner):
self.signer = signer
self.inner = inner
def send(self, request):
self.signer.sign(request)
return self.inner.send(request)
| data/smartystreets_python_sdk-4.14.0/smartystreets_python_sdk/signing_sender.py | 261 | 69 | 422,964 |
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 TenantCustomQuerySuggestions at 0x7fab7002b9c0, file "f.py", line 4>
LOAD_CONST 'TenantCustomQuerySuggestions'
MAKE_FUNCTION
LOAD_CONST 'Te... | from office365.runtime.client_value import ClientValue
class TenantCustomQuerySuggestions(ClientValue):
@property
def entity_type_name(self):
return "Microsoft.SharePoint.Client.Search.Query.TenantCustomQuerySuggestions"
| data/Office365-REST-Python-Client-2.5.5/office365/sharepoint/search/query/tenant_custom_query_suggestions.py | 244 | 69 | 189,479 |
LOAD_CONST 0
LOAD_CONST ('v1', 'v2c', 'verdec')
IMPORT_NAME pysnmp.proto.api
IMPORT_FROM v1
STORE_NAME v1
IMPORT_FROM v2c
STORE_NAME v2c
IMPORT_FROM verdec
STORE_NAME verdec
POP_TOP
LOAD_CONST 0
STORE_NAME protoVersion1
LOAD_CONST 1
STORE_NAME protoVersion2c
LOAD_NAME protoVersion1
LOAD_NAME v1
LOAD_NAME protoVersio... | from pysnmp.proto.api import v1, v2c, verdec
protoVersion1 = 0
protoVersion2c = 1
protoModules = {protoVersion1: v1, protoVersion2c: v2c}
decodeMessageVersion = verdec.decodeMessageVersion
| data/pysnmp-4.4.12/pysnmp/proto/api/__init__.py | 128 | 69 | 222,252 |
LOAD_CONST '\nThe module preprocessing includes classes and functions for general data pre-processing\nand transformation.\n'
STORE_NAME __doc__
LOAD_CONST 1
LOAD_CONST ('MatchCategories',)
IMPORT_NAME match_categories
IMPORT_FROM MatchCategories
STORE_NAME MatchCategories
POP_TOP
LOAD_CONST 1
LOAD_CONST ('MatchVaria... | """
The module preprocessing includes classes and functions for general data pre-processing
and transformation.
"""
from .match_categories import MatchCategories
from .match_columns import MatchVariables
__all__ = [
"MatchCategories",
"MatchVariables",
]
| data/feature_engine-1.6.2/feature_engine/preprocessing/__init__.py | 119 | 69 | 203,552 |
LOAD_CONST 0
LOAD_CONST ('app',)
IMPORT_NAME pulpcore.content
IMPORT_FROM app
STORE_NAME app
POP_TOP
LOAD_CONST 0
LOAD_CONST ('Handler', 'PathNotResolved')
IMPORT_NAME pulpcore.content.handler
IMPORT_FROM Handler
STORE_NAME Handler
IMPORT_FROM PathNotResolved
STORE_NAME PathNotResolved
POP_TOP
LOAD_CONST 0
LOAD_CONST... | from pulpcore.content import app # noqa: F401
from pulpcore.content.handler import Handler, PathNotResolved # noqa: F401
from pulpcore.responses import ArtifactResponse # noqa: F401
| data/pulpcore-3.46.0/pulpcore/plugin/content.py | 110 | 69 | 218,308 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME unittest
STORE_NAME unittest
LOAD_CONST 0
LOAD_CONST ('install_tests_in_module_dict',)
IMPORT_NAME multiprocess.tests
IMPORT_FROM install_tests_in_module_dict
STORE_NAME install_tests_in_module_dict
POP_TOP
LOAD_NAME install_tests_in_module_dict
LOAD_NAME globals
CALL_FUNCTION... | import unittest
from multiprocess.tests import install_tests_in_module_dict
install_tests_in_module_dict(globals(), "spawn", only_type="manager")
if __name__ == "__main__":
unittest.main()
| data/multiprocess-0.70.16/py3.13/multiprocess/tests/test_multiprocessing_spawn/test_manager.py | 144 | 69 | 144,777 |
LOAD_CONST 0
LOAD_CONST ('*',)
IMPORT_NAME sparknlp.annotator.audio.wav2vec2_for_ctc
IMPORT_STAR
LOAD_CONST 0
LOAD_CONST ('*',)
IMPORT_NAME sparknlp.annotator.audio.hubert_for_ctc
IMPORT_STAR
LOAD_CONST 0
LOAD_CONST ('*',)
IMPORT_NAME sparknlp.annotator.audio.whisper_for_ctc
IMPORT_STAR
LOAD_CONST None
RETURN_VALUE | from sparknlp.annotator.audio.wav2vec2_for_ctc import *
from sparknlp.annotator.audio.hubert_for_ctc import *
from sparknlp.annotator.audio.whisper_for_ctc import *
| data/spark-nlp-5.2.3/sparknlp/annotator/audio/__init__.py | 105 | 69 | 418,021 |
LOAD_CONST 1
LOAD_CONST ('AzureMachineLearningWorkspaces',)
IMPORT_NAME _azure_machine_learning_workspaces
IMPORT_FROM AzureMachineLearningWorkspaces
STORE_NAME AzureMachineLearningWorkspaces
POP_TOP
LOAD_CONST 1
LOAD_CONST ('VERSION',)
IMPORT_NAME _version
IMPORT_FROM VERSION
STORE_NAME VERSION
POP_TOP
LOAD_NAME VER... | from ._azure_machine_learning_workspaces import AzureMachineLearningWorkspaces
from ._version import VERSION
__version__ = VERSION
__all__ = ["AzureMachineLearningWorkspaces"]
from ._patch import patch_sdk
patch_sdk()
| data/azure-ai-ml-1.13.0/azure/ai/ml/_restclient/v2021_10_01_dataplanepreview/__init__.py | 147 | 69 | 425,158 |
LOAD_CONST 0
LOAD_CONST ('annotations',)
IMPORT_NAME __future__
IMPORT_FROM annotations
STORE_NAME annotations
POP_TOP
LOAD_CONST 0
LOAD_CONST ('Dict', 'List', 'Tuple')
IMPORT_NAME typing
IMPORT_FROM Dict
STORE_NAME Dict
IMPORT_FROM List
STORE_NAME List
IMPORT_FROM Tuple
STORE_NAME Tuple
POP_TOP
LOAD_NAME Dict
LOAD_N... | from __future__ import annotations
from typing import Dict, List, Tuple
MockGraph = Dict[Tuple[str, str], List[Tuple[str, List[Tuple[str, str]]]]]
__all__ = [
"MockGraph",
]
| data/pipdeptree-2.14.0/tests/our_types.py | 152 | 69 | 154,779 |
LOAD_CONST 'Small modules to cope with python 2 vs 3 incompatibilities inside\nnumpy.distutils\n\n'
STORE_NAME __doc__
LOAD_CONST 0
LOAD_CONST ('division', 'absolute_import', 'print_function')
IMPORT_NAME __future__
IMPORT_FROM division
STORE_NAME division
IMPORT_FROM absolute_import
STORE_NAME absolute_import
IMPORT_... | """Small modules to cope with python 2 vs 3 incompatibilities inside
numpy.distutils
"""
from __future__ import division, absolute_import, print_function
import sys
def get_exception():
return sys.exc_info()[1]
| data/catboost-1.2.2/catboost_all_src/contrib/python/numpy/py2/numpy/distutils/compat.py | 177 | 69 | 176,564 |
LOAD_CONST 0
LOAD_CONST ('unique',)
IMPORT_NAME enum
IMPORT_FROM unique
STORE_NAME unique
POP_TOP
LOAD_CONST 7
LOAD_CONST ('StrEnum',)
IMPORT_NAME _base_enum
IMPORT_FROM StrEnum
STORE_NAME StrEnum
POP_TOP
LOAD_NAME unique
LOAD_BUILD_CLASS
LOAD_CONST <code object StandardTurnPeriod at 0x7fab640fa0c0, file "f.py", line... | from enum import unique
from ......._base_enum import StrEnum
@unique
class StandardTurnPeriod(StrEnum):
NONE = "None"
QUARTER_ENDS = "QuarterEnds"
YEAR_ENDS = "YearEnds"
| data/refinitiv-data-1.6.0/refinitiv/data/content/ipa/_curves/_cross_currency_curves/_definitions/_enums/_standard_turn_period.py | 195 | 69 | 195,435 |
LOAD_CONST '\nHelper function for testing the deduction of stdlib logger names.\n\nSince the logger factories are called from within structlog._config, they have\nto skip a frame. Calling them here emulates that.\n'
STORE_NAME __doc__
LOAD_CONST <code object additional_frame at 0x7f8e2fec2930, file "f.py", line 9>
LOA... | """
Helper function for testing the deduction of stdlib logger names.
Since the logger factories are called from within structlog._config, they have
to skip a frame. Calling them here emulates that.
"""
def additional_frame(callable):
return callable()
| data/structlog-24.1.0/tests/additional_frame.py | 122 | 69 | 430,101 |
LOAD_CONST '1.0.2'
STORE_NAME __version__
LOAD_CONST 'Arista EOS+'
STORE_NAME __author__
LOAD_CONST 1
LOAD_CONST ('load_config', 'connect', 'connect_to', 'config_for')
IMPORT_NAME client
IMPORT_FROM load_config
STORE_NAME load_config
IMPORT_FROM connect
STORE_NAME connect
IMPORT_FROM connect_to
STORE_NAME connect_to
... | __version__ = "1.0.2"
__author__ = "Arista EOS+"
from .client import load_config, connect, connect_to, config_for
__all__ = ["load_config", "connect", "connect_to", "config_for"]
| data/pyeapi-1.0.2/pyeapi/__init__.py | 134 | 69 | 439,740 |
LOAD_CONST 0
LOAD_CONST ('unique',)
IMPORT_NAME enum
IMPORT_FROM unique
STORE_NAME unique
POP_TOP
LOAD_CONST 4
LOAD_CONST ('StrEnum',)
IMPORT_NAME _base_enum
IMPORT_FROM StrEnum
STORE_NAME StrEnum
POP_TOP
LOAD_NAME unique
LOAD_BUILD_CLASS
LOAD_CONST <code object AmortizationType at 0x7fab700e4390, file "f.py", line 5... | from enum import unique
from ...._base_enum import StrEnum
@unique
class AmortizationType(StrEnum):
ANNUITY = "Annuity"
LINEAR = "Linear"
NONE = "None"
SCHEDULE = "Schedule"
| data/refinitiv-data-1.6.0/refinitiv/data/content/ipa/_enums/_amortization_type.py | 204 | 69 | 195,571 |
LOAD_CONST 0
LOAD_CONST ('get_config_var',)
IMPORT_NAME distutils.sysconfig
IMPORT_FROM get_config_var
STORE_NAME get_config_var
POP_TOP
LOAD_NAME get_config_var
LOAD_CONST 'EXT_SUFFIX'
CALL_FUNCTION
STORE_NAME extsuffix
LOAD_NAME extsuffix
LOAD_CONST None
COMPARE_OP is
POP_JUMP_IF_FALSE
LOAD_NAME print
LOAD_CONST '... | from distutils.sysconfig import get_config_var
extsuffix = get_config_var("EXT_SUFFIX")
if extsuffix is None:
print("")
else:
print(extsuffix[0:].rsplit(".", 1)[0])
| data/symengine-0.11.0/cmake/get_suffix.py | 144 | 69 | 135,273 |
LOAD_CONST 2
LOAD_CONST ('BaseModel',)
IMPORT_NAME _models
IMPORT_FROM BaseModel
STORE_NAME BaseModel
POP_TOP
LOAD_CONST 'Usage'
BUILD_LIST
STORE_NAME __all__
LOAD_BUILD_CLASS
LOAD_CONST <code object Usage at 0x7fab641f2930, file "f.py", line 6>
LOAD_CONST 'Usage'
MAKE_FUNCTION
LOAD_CONST 'Usage'
LOAD_NAME BaseModel
... | from .._models import BaseModel
__all__ = ["Usage"]
class Usage(BaseModel):
input_tokens: int
"""The number of input tokens which were used."""
output_tokens: int
"""The number of output tokens which were used."""
| data/anthropic-0.16.0/src/anthropic/types/usage.py | 171 | 69 | 222,003 |
LOAD_CONST 0
LOAD_CONST ('AbstractInstrumentedModule',)
IMPORT_NAME elasticapm.instrumentation.packages.base
IMPORT_FROM AbstractInstrumentedModule
STORE_NAME AbstractInstrumentedModule
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object AsyncAbstractInstrumentedModule at 0x7fab8234aa50, file "f.py", line 4>
LOAD_CONST '... | from elasticapm.instrumentation.packages.base import AbstractInstrumentedModule
class AsyncAbstractInstrumentedModule(AbstractInstrumentedModule):
async def call(self, module, method, wrapped, instance, args, kwargs):
raise NotImplementedError()
| data/elastic-apm-6.20.0/elasticapm/instrumentation/packages/asyncio/base.py | 227 | 69 | 144,184 |
LOAD_CONST 'us-east-1'
STORE_NAME AWS_STS_GLOBAL_ENDPOINT_REGION
LOAD_CONST 'APN_1826889'
STORE_NAME BOTO3_USER_AGENT_EXTRA
LOAD_CONST 'ProwlerAssessmentSession'
STORE_NAME ROLE_SESSION_NAME
LOAD_CONST None
RETURN_VALUE | AWS_STS_GLOBAL_ENDPOINT_REGION = "us-east-1"
BOTO3_USER_AGENT_EXTRA = "APN_1826889"
ROLE_SESSION_NAME = "ProwlerAssessmentSession"
| data/prowler-3.14.0/prowler/providers/aws/config.py | 80 | 69 | 182,989 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.