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 ('_Saas',)
IMPORT_NAME
IMPORT_FROM _Saas
STORE_NAME _Saas
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object _Filesharing at 0x7fab81fc6030, file "f.py", line 4>
LOAD_CONST '_Filesharing'
MAKE_FUNCTION
LOAD_CONST '_Filesharing'
LOAD_NAME _Saas
CALL_FUNCTION
STORE_NAME _Filesharing
LOAD_BUILD_CLA... | from . import _Saas
class _Filesharing(_Saas):
_type = "filesharing"
_icon_dir = "resources/saas/filesharing"
class Nextcloud(_Filesharing):
_icon = "nextcloud.png"
| data/diagrams-0.23.4/diagrams/saas/filesharing.py | 263 | 71 | 206,099 |
LOAD_CONST 0
LOAD_CONST ('*',)
IMPORT_NAME azure.cli.core.aaz
IMPORT_STAR
LOAD_NAME register_command_group
LOAD_CONST 'vm'
CALL_FUNCTION
LOAD_BUILD_CLASS
LOAD_CONST <code object __CMDGroup at 0x7fab802b9660, file "f.py", line 4>
LOAD_CONST '__CMDGroup'
MAKE_FUNCTION
LOAD_CONST '__CMDGroup'
LOAD_NAME AAZCommandGroup
... | from azure.cli.core.aaz import *
@register_command_group(
"vm",
)
class __CMDGroup(AAZCommandGroup):
"""Manage Linux or Windows virtual machines."""
pass
__all__ = ["__CMDGroup"]
| data/azure-cli-2.57.0/azure/cli/command_modules/vm/aaz/profile_2019_03_01_hybrid/vm/__cmd_group.py | 181 | 71 | 376,442 |
LOAD_CONST 0
LOAD_CONST ('gcp_audit_info',)
IMPORT_NAME prowler.providers.gcp.lib.audit_info.audit_info
IMPORT_FROM gcp_audit_info
STORE_NAME gcp_audit_info
POP_TOP
LOAD_CONST 0
LOAD_CONST ('IAM',)
IMPORT_NAME prowler.providers.gcp.services.iam.iam_service
IMPORT_FROM IAM
STORE_NAME IAM
POP_TOP
LOAD_NAME IAM
LOAD_NAM... | from prowler.providers.gcp.lib.audit_info.audit_info import gcp_audit_info
from prowler.providers.gcp.services.iam.iam_service import IAM
iam_client = IAM(gcp_audit_info)
| data/prowler-3.14.0/prowler/providers/gcp/services/iam/iam_client.py | 127 | 71 | 182,944 |
LOAD_CONST 'Create a fullscreen window.'
STORE_NAME __doc__
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME webview
STORE_NAME webview
LOAD_NAME __name__
LOAD_CONST '__main__'
COMPARE_OP ==
POP_JUMP_IF_FALSE
LOAD_NAME webview
LOAD_ATTR create_window
LOAD_CONST 'Full-screen window'
LOAD_CONST 'https://pywebview.flowrl.com/... | """Create a fullscreen window."""
import webview
if __name__ == "__main__":
webview.create_window(
"Full-screen window", "https://pywebview.flowrl.com/hello", fullscreen=True
)
webview.start()
| data/pywebview-4.4.1/examples/fullscreen.py | 114 | 71 | 390,123 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME pytest_cov.embed
STORE_NAME pytest_cov
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME signal
STORE_NAME signal
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME sys
STORE_NAME sys
LOAD_CONST <code object cleanup at 0x7fab8237f930, file "f.py", line 6>
LOAD_CONST 'cleanup'
MAKE_FUNCTION
STOR... | import pytest_cov.embed
import signal
import sys
def cleanup(*args, **kwargs): # pragma: no cover
pytest_cov.embed.cleanup()
sys.exit(1)
signal.signal(signal.SIGTERM, cleanup)
| data/hupper-1.12.1/tests/myapp/__init__.py | 162 | 71 | 56,255 |
LOAD_CONST 0
LOAD_CONST ('check_module_version',)
IMPORT_NAME chainlit.utils
IMPORT_FROM check_module_version
STORE_NAME check_module_version
POP_TOP
LOAD_NAME check_module_version
LOAD_CONST 'langchain'
LOAD_CONST '0.0.198'
CALL_FUNCTION
POP_JUMP_IF_TRUE
LOAD_NAME ValueError
LOAD_CONST 'Expected LangChain version >... | from chainlit.utils import check_module_version
if not check_module_version("langchain", "0.0.198"):
raise ValueError(
"Expected LangChain version >= 0.0.198. Run `pip install langchain --upgrade`"
)
| data/chainlit-1.0.301/chainlit/langchain/__init__.py | 106 | 71 | 171,451 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME os
STORE_NAME os
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME pytest
STORE_NAME pytest
LOAD_NAME pytest
LOAD_ATTR fixture
LOAD_CONST 'session'
LOAD_CONST True
LOAD_CONST ('scope', 'autouse')
CALL_FUNCTION
LOAD_CONST <code object disable_coverage_for_subprocess at 0x7fab800dadb0, f... | import os
import pytest
@pytest.fixture(scope="session", autouse=True)
def disable_coverage_for_subprocess():
try:
del os.environ["COV_CORE_SOURCE"]
except KeyError:
pass
| data/ddtrace-2.6.3/tests/profiling/conftest.py | 201 | 71 | 269,568 |
LOAD_CONST 0
LOAD_CONST ('models',)
IMPORT_NAME django.db
IMPORT_FROM models
STORE_NAME models
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object GenericModel at 0x7fab70078db0, file "f.py", line 4>
LOAD_CONST 'GenericModel'
MAKE_FUNCTION
LOAD_CONST 'GenericModel'
LOAD_NAME models
LOAD_ATTR Model
CALL_FUNCTION
STORE_NAM... | from django.db import models
class GenericModel(models.Model):
name = models.CharField(max_length=100)
description = models.TextField()
created = models.DateField()
class Meta:
ordering = ("name",)
| data/edx-django-utils-5.10.1/edx_django_utils/admin/tests/models.py | 267 | 71 | 86,684 |
LOAD_CONST 1
LOAD_CONST ('ISheet', 'ISheetWriter', 'NamedContent')
IMPORT_NAME abstract_sheet
IMPORT_FROM ISheet
STORE_NAME ISheet
IMPORT_FROM ISheetWriter
STORE_NAME ISheetWriter
IMPORT_FROM NamedContent
STORE_NAME NamedContent
POP_TOP
LOAD_CONST 1
LOAD_CONST ('IReader',)
IMPORT_NAME abstract_reader
IMPORT_FROM IRead... | from .abstract_sheet import ISheet, ISheetWriter, NamedContent # noqa: F401
from .abstract_reader import IReader # noqa: F401
from .abstract_writer import IWriter # noqa: F401
| data/pyexcel-io-0.6.6/pyexcel_io/plugin_api/__init__.py | 117 | 71 | 10,872 |
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 TestGKFriendRequestComposeViewController at 0x7faa53e6f270, file "f.py", line 5>
LOAD_... | import GameKit # noqa: F401
from PyObjCTools.TestSupport import TestCase
class TestGKFriendRequestComposeViewController(TestCase):
def testProtocols(self):
self.assertProtocolExists("GKFriendRequestComposeViewControllerDelegate")
| data/pyobjc-framework-GameKit-10.1/PyObjCTest/test_gkfriendrequestcomposeviewcontroller.py | 266 | 71 | 22,917 |
LOAD_CONST 0
LOAD_CONST ('annotations',)
IMPORT_NAME __future__
IMPORT_FROM annotations
STORE_NAME annotations
POP_TOP
LOAD_CONST 1
LOAD_CONST ('DummyOutput', 'Output')
IMPORT_NAME base
IMPORT_FROM DummyOutput
STORE_NAME DummyOutput
IMPORT_FROM Output
STORE_NAME Output
POP_TOP
LOAD_CONST 1
LOAD_CONST ('ColorDepth',)
... | from __future__ import annotations
from .base import DummyOutput, Output
from .color_depth import ColorDepth
from .defaults import create_output
__all__ = [
"Output",
"DummyOutput",
"ColorDepth",
"create_output",
]
| data/prompt_toolkit-3.0.43/src/prompt_toolkit/output/__init__.py | 158 | 71 | 124,769 |
LOAD_BUILD_CLASS
LOAD_CONST <code object StatsWriter at 0x7fab82345780, file "f.py", line 1>
LOAD_CONST 'StatsWriter'
MAKE_FUNCTION
LOAD_CONST 'StatsWriter'
CALL_FUNCTION
STORE_NAME StatsWriter
LOAD_CONST None
RETURN_VALUE
LOAD_NAME __name__
STORE_NAME __module__
LOAD_CONST 'StatsWriter'
STORE_NAME __qualname__
BUILD... | class StatsWriter:
def distribution(self, metric_name, value, tags=[], timestamp=None):
raise NotImplementedError()
def flush(self):
raise NotImplementedError()
def stop(self):
raise NotImplementedError()
| data/datadog_lambda-5.88.0/datadog_lambda/stats_writer.py | 286 | 71 | 16,317 |
LOAD_CONST 'Here lies OpenAPI renderers.'
STORE_NAME __doc__
LOAD_CONST 1
LOAD_CONST ('abc',)
IMPORT_NAME
IMPORT_FROM abc
STORE_NAME abc
POP_TOP
LOAD_CONST 1
LOAD_CONST ('HttpdomainOldRenderer',)
IMPORT_NAME _httpdomain_old
IMPORT_FROM HttpdomainOldRenderer
STORE_NAME HttpdomainOldRenderer
POP_TOP
LOAD_CONST 1
LOAD_... | """Here lies OpenAPI renderers."""
from . import abc
from ._httpdomain_old import HttpdomainOldRenderer
from ._httpdomain import HttpdomainRenderer
__all__ = [
"abc",
"HttpdomainOldRenderer",
"HttpdomainRenderer",
]
| data/sphinxcontrib-openapi-0.8.4/sphinxcontrib/openapi/renderers/__init__.py | 139 | 71 | 217,744 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME webview
STORE_NAME webview
LOAD_CONST 1
LOAD_CONST ('run_test',)
IMPORT_NAME util
IMPORT_FROM run_test
STORE_NAME run_test
POP_TOP
LOAD_CONST <code object test_frameless at 0x7fae2f37a780, file "f.py", line 6>
LOAD_CONST 'test_frameless'
MAKE_FUNCTION
STORE_NAME test_frameless... | import webview
from .util import run_test
def test_frameless():
window = webview.create_window(
"Frameless test", "https://www.example.org", frameless=True
)
run_test(webview, window)
| data/pywebview-4.4.1/tests/test_frameless.py | 171 | 71 | 390,101 |
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 ShazamKit
STORE_NAME ShazamKit
LOAD_BUILD_CLASS
LOAD_CONST <code object TestSHSession at 0x7faa5091d1e0, file "f.py", line 5>
LOAD_CONST 'TestSHSession'
M... | from PyObjCTools.TestSupport import TestCase
import ShazamKit
class TestSHSession(TestCase):
def test_classes(self):
ShazamKit.SHSession
def test_protocols(self):
self.assertProtocolExists("SHSessionDelegate")
| data/pyobjc-framework-ShazamKit-10.1/PyObjCTest/test_shsession.py | 301 | 71 | 139,944 |
LOAD_CONST None
RETURN_VALUE | if True:
pass
if True:
pass
pass
if True:
if False:
pass
pass
if True:
pass
elif False:
pass
if True:
pass
elif False:
pass
else:
pass
| data/spark_parser-1.8.9/example/python2/test/parse/if.py | 5 | 71 | 334,761 |
LOAD_CONST 0
LOAD_CONST ('*',)
IMPORT_NAME azure.cli.core.aaz
IMPORT_STAR
LOAD_NAME register_command_group
LOAD_CONST 'consumption'
CALL_FUNCTION
LOAD_BUILD_CLASS
LOAD_CONST <code object __CMDGroup at 0x7faa7c1eec00, file "f.py", line 4>
LOAD_CONST '__CMDGroup'
MAKE_FUNCTION
LOAD_CONST '__CMDGroup'
LOAD_NAME AAZComm... | from azure.cli.core.aaz import *
@register_command_group(
"consumption",
)
class __CMDGroup(AAZCommandGroup):
"""Manage consumption of Azure resources."""
pass
__all__ = ["__CMDGroup"]
| data/azure-cli-2.57.0/azure/cli/command_modules/consumption/aaz/latest/consumption/__cmd_group.py | 180 | 71 | 376,358 |
LOAD_CONST 0
LOAD_CONST ('Namespace',)
IMPORT_NAME argparse
IMPORT_FROM Namespace
STORE_NAME Namespace
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object Settings at 0x7faa754c68a0, file "f.py", line 4>
LOAD_CONST 'Settings'
MAKE_FUNCTION
LOAD_CONST 'Settings'
CALL_FUNCTION
STORE_NAME Settings
LOAD_NAME Settings
CALL_F... | from argparse import Namespace
class Settings:
def __init__(self) -> None:
self.debug = False
settings = Settings()
def init_settings(args: Namespace) -> None:
if args.debug:
settings.debug = True
| data/py-backwards-0.7/py_backwards/conf.py | 283 | 71 | 22,957 |
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 IndexConvexityAdjustmentIntegrationMethod at 0x7fab701a... | from enum import unique
from ...._base_enum import StrEnum
@unique
class IndexConvexityAdjustmentIntegrationMethod(StrEnum):
RIEMANN_SUM = "RiemannSum"
RUNGE_KUTTA = "RungeKutta"
| data/refinitiv-data-1.6.0/refinitiv/data/content/ipa/_enums/_index_convexity_adjustment_integration_method.py | 224 | 71 | 195,558 |
LOAD_CONST <code object get_field at 0x7fab81fc41e0, file "f.py", line 1>
LOAD_CONST 'get_field'
MAKE_FUNCTION
STORE_NAME get_field
LOAD_CONST <code object get_apps_from_state at 0x7fab81fc4660, file "f.py", line 5>
LOAD_CONST 'get_apps_from_state'
MAKE_FUNCTION
STORE_NAME get_apps_from_state
LOAD_CONST <code object ... | def get_field(model, field_name):
return model._meta.get_field(field_name)
def get_apps_from_state(migration_state):
return migration_state.apps
def get_rel(f):
return f.remote_field
| data/django-sortedm2m-3.1.1/sortedm2m/compat.py | 204 | 71 | 57,474 |
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 device_pool
IMPORT_STAR
LOAD_CONST 1
LOAD_CONST ('*',)
IMPORT_NAME instance_profile
IMPORT_STAR
LOAD_C... | from .. import _utilities
import typing
from .device_pool import *
from .instance_profile import *
from .network_profile import *
from .project import *
from .test_grid_project import *
from .upload import *
from ._inputs import *
from . import outputs
| data/pulumi_aws-6.22.2/pulumi_aws/devicefarm/__init__.py | 191 | 71 | 228,040 |
LOAD_CONST 'openweathermap.org/data/2.5'
STORE_NAME ROOT_UV_API_URL
LOAD_CONST 'uvi'
STORE_NAME UV_INDEX_URL
LOAD_CONST 'uvi/forecast'
STORE_NAME UV_INDEX_FORECAST_URL
LOAD_CONST 'uvi/history'
STORE_NAME UV_INDEX_HISTORY_URL
LOAD_CONST None
RETURN_VALUE | ROOT_UV_API_URL = "openweathermap.org/data/2.5"
UV_INDEX_URL = "uvi"
UV_INDEX_FORECAST_URL = "uvi/forecast"
UV_INDEX_HISTORY_URL = "uvi/history"
| data/pyowm-3.3.0/pyowm/uvindexapi30/uris.py | 86 | 71 | 203,335 |
LOAD_CONST 'AUTOGENERATED. DO NOT EDIT.'
STORE_NAME __doc__
LOAD_CONST 0
LOAD_CONST ('Xception',)
IMPORT_NAME tf_keras.src.applications.xception
IMPORT_FROM Xception
STORE_NAME Xception
POP_TOP
LOAD_CONST 0
LOAD_CONST ('decode_predictions',)
IMPORT_NAME tf_keras.src.applications.xception
IMPORT_FROM decode_prediction... | """AUTOGENERATED. DO NOT EDIT."""
from tf_keras.src.applications.xception import Xception
from tf_keras.src.applications.xception import decode_predictions
from tf_keras.src.applications.xception import preprocess_input
| data/tf_keras-nightly-2.17.0.dev2024022110/tf_keras/applications/xception/__init__.py | 146 | 71 | 164,744 |
LOAD_CONST 0
LOAD_CONST ('SmiV1Parser',)
IMPORT_NAME pysmi.parser.smiv1
IMPORT_FROM SmiV1Parser
STORE_NAME SmiV1Parser
POP_TOP
LOAD_CONST 0
LOAD_CONST ('SmiV1CompatParser', 'SmiStarParser')
IMPORT_NAME pysmi.parser.smiv1compat
IMPORT_FROM SmiV1CompatParser
STORE_NAME SmiV1CompatParser
IMPORT_FROM SmiStarParser
STORE_N... | from pysmi.parser.smiv1 import SmiV1Parser
from pysmi.parser.smiv1compat import SmiV1CompatParser, SmiStarParser
from pysmi.parser.smiv2 import SmiV2Parser
from pysmi.parser.null import NullParser
| data/pysmi-0.3.4/pysmi/parser/__init__.py | 182 | 71 | 155,027 |
LOAD_BUILD_CLASS
LOAD_CONST <code object CodegenError at 0x7fab82343c00, file "f.py", line 1>
LOAD_CONST 'CodegenError'
MAKE_FUNCTION
LOAD_CONST 'CodegenError'
LOAD_NAME Exception
CALL_FUNCTION
STORE_NAME CodegenError
LOAD_BUILD_CLASS
LOAD_CONST <code object NoOperationProvidedError at 0x7fab82343ae0, file "f.py", lin... | class CodegenError(Exception):
pass
class NoOperationProvidedError(CodegenError):
pass
class NoOperationNameProvidedError(CodegenError):
pass
class MultipleOperationsProvidedError(CodegenError):
pass
| data/strawberry_graphql-0.219.2/strawberry/codegen/exceptions.py | 439 | 71 | 201,378 |
LOAD_CONST 'This module contains classes that handle the networking backend of ``python-telegram-bot``.'
STORE_NAME __doc__
LOAD_CONST 1
LOAD_CONST ('BaseRequest',)
IMPORT_NAME _baserequest
IMPORT_FROM BaseRequest
STORE_NAME BaseRequest
POP_TOP
LOAD_CONST 1
LOAD_CONST ('HTTPXRequest',)
IMPORT_NAME _httpxrequest
IMPOR... | """This module contains classes that handle the networking backend of ``python-telegram-bot``."""
from ._baserequest import BaseRequest
from ._httpxrequest import HTTPXRequest
from ._requestdata import RequestData
__all__ = ("BaseRequest", "HTTPXRequest", "RequestData")
| data/python-telegram-bot-20.8/telegram/request/__init__.py | 138 | 71 | 300,619 |
LOAD_CONST 'Helper module for setting up interactive SymPy sessions. '
STORE_NAME __doc__
LOAD_CONST 1
LOAD_CONST ('init_printing',)
IMPORT_NAME printing
IMPORT_FROM init_printing
STORE_NAME init_printing
POP_TOP
LOAD_CONST 1
LOAD_CONST ('init_session',)
IMPORT_NAME session
IMPORT_FROM init_session
STORE_NAME init_se... | """Helper module for setting up interactive SymPy sessions. """
from .printing import init_printing
from .session import init_session
from .traversal import interactive_traversal
__all__ = ["init_printing", "init_session", "interactive_traversal"]
| data/sympy-1.12/sympy/interactive/__init__.py | 153 | 71 | 229,611 |
LOAD_CONST 0
LOAD_CONST ('randrange',)
IMPORT_NAME random
IMPORT_FROM randrange
STORE_NAME randrange
POP_TOP
LOAD_CONST None
LOAD_CONST ('return',)
BUILD_CONST_KEY_MAP
LOAD_CONST <code object downtime at 0x7fab702a6540, file "f.py", line 4>
LOAD_CONST 'downtime'
MAKE_FUNCTION
STORE_NAME downtime
LOAD_CONST None
RETURN... | from random import randrange
def downtime() -> None:
"""
A bit of fun. Demos SDK feature extensions.
"""
if randrange(10) >= 5:
raise SystemExit("Bad luck.")
print("No data downtime found.")
| data/pycarlo-0.9.2/pycarlo/features/__init__.py | 148 | 71 | 360,214 |
LOAD_CONST 0
LOAD_CONST ('setup',)
IMPORT_NAME setuptools
IMPORT_FROM setup
STORE_NAME setup
POP_TOP
LOAD_CONST 0
LOAD_CONST ('Extension',)
IMPORT_NAME distutils.core
IMPORT_FROM Extension
STORE_NAME Extension
POP_TOP
LOAD_NAME setup
LOAD_NAME Extension
LOAD_CONST 'Levenshtein._levenshtein'
LOAD_CONST 'Levenshtein... | from setuptools import setup
from distutils.core import Extension
setup(
ext_modules=[
Extension(
"Levenshtein._levenshtein",
sources=["Levenshtein/_levenshtein.c"],
)
]
)
| data/python-Levenshtein-wheels-0.13.2/setup.py | 116 | 71 | 397,897 |
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 ('Dictionary',)
IMPORT_NAME wrapper
IMPORT_FROM Dictionary
STORE_NAME Dictionary
POP_TOP
LOAD_CONST 1
LOAD_CONST ('DAWG', 'CompletionDAWG', 'BytesDAWG', 'RecordDAW... | from __future__ import absolute_import
from .wrapper import Dictionary
from .dawgs import (
DAWG,
CompletionDAWG,
BytesDAWG,
RecordDAWG,
IntDAWG,
IntCompletionDAWG,
)
| data/DAWG-Python-0.7.2/dawg_python/__init__.py | 187 | 71 | 432,947 |
LOAD_CONST 0
LOAD_CONST ('annotations',)
IMPORT_NAME __future__
IMPORT_FROM annotations
STORE_NAME annotations
POP_TOP
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME attrs
STORE_NAME attrs
LOAD_CONST 3
LOAD_CONST ('Control',)
IMPORT_NAME dialect
IMPORT_FROM Control
STORE_NAME Control
POP_TOP
LOAD_NAME attrs
LOAD_ATTR defi... | from __future__ import annotations
import attrs
from ...dialect import Control
@attrs.define(kw_only=True, repr=False)
class PandasControl(Control):
"""Pandas dialect representation"""
type = "pandas"
| data/frictionless-5.16.1/frictionless/formats/pandas/control.py | 221 | 71 | 41,905 |
LOAD_CONST 1
LOAD_CONST ('InvalidParameterException', 'InvalidFileTypeException')
IMPORT_NAME custom_exceptions
IMPORT_FROM InvalidParameterException
STORE_NAME InvalidParameterException
IMPORT_FROM InvalidFileTypeException
STORE_NAME InvalidFileTypeException
POP_TOP
LOAD_CONST 1
LOAD_CONST ('InvalidRestApiVersion', '... | from .custom_exceptions import InvalidParameterException, InvalidFileTypeException
from .tableau_server_exceptions import (
InvalidRestApiVersion,
InvalidTableauServerQuery,
ContentOverwriteDisabled,
ContentNotFound,
PaginationError,
UsersNotFound,
)
| data/tableau_api_lib-0.1.50/src/tableau_api_lib/exceptions/__init__.py | 172 | 71 | 169,740 |
LOAD_CONST 0
LOAD_CONST ('print_function',)
IMPORT_NAME __future__
IMPORT_FROM print_function
STORE_NAME print_function
POP_TOP
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME releaseCommon
STORE_NAME releaseCommon
LOAD_NAME releaseCommon
LOAD_METHOD Version
CALL_METHOD
STORE_NAME v
LOAD_NAME v
LOAD_METHOD incrementMajorVe... | from __future__ import print_function
import releaseCommon
v = releaseCommon.Version()
v.incrementMajorVersion()
releaseCommon.performUpdates(v)
print("Updated Version.hpp, README and Conan to v{0}".format(v.getVersionString()))
| data/wxPython-4.2.1/ext/wxWidgets/3rdparty/catch/scripts/majorRelease.py | 135 | 71 | 300,805 |
LOAD_CONST 'The Eight Sleep integration config flow.'
STORE_NAME __doc__
LOAD_CONST 0
LOAD_CONST ('ConfigFlow',)
IMPORT_NAME homeassistant.config_entries
IMPORT_FROM ConfigFlow
STORE_NAME ConfigFlow
POP_TOP
LOAD_CONST 1
LOAD_CONST ('DOMAIN',)
IMPORT_NAME
IMPORT_FROM DOMAIN
STORE_NAME DOMAIN
POP_TOP
LOAD_BUILD_CLASS
... | """The Eight Sleep integration config flow."""
from homeassistant.config_entries import ConfigFlow
from . import DOMAIN
class EightSleepConfigFlow(ConfigFlow, domain=DOMAIN):
"""Handle a config flow for Eight Sleep."""
VERSION = 1
| data/homeassistant-2024.2.2/homeassistant/components/eight_sleep/config_flow.py | 222 | 71 | 297,997 |
LOAD_CONST 0
LOAD_CONST ('Library', 'Node', 'resolve_variable')
IMPORT_NAME django.template
IMPORT_FROM Library
STORE_NAME Library
IMPORT_FROM Node
STORE_NAME Node
IMPORT_FROM resolve_variable
STORE_NAME resolve_variable
POP_TOP
LOAD_CONST 0
LOAD_CONST ('escape',)
IMPORT_NAME django.utils.html
IMPORT_FROM escape
STORE... | from django.template import Library, Node, resolve_variable
from django.utils.html import escape
register = Library()
def greeting(name):
return "Hello, %s!" % escape(name)
greeting = register.simple_tag(greeting)
| data/Genshi-0.7.7/examples/bench/django/templatetags/bench.py | 175 | 71 | 22,629 |
LOAD_CONST 0
LOAD_CONST ('print_function',)
IMPORT_NAME __future__
IMPORT_FROM print_function
STORE_NAME print_function
POP_TOP
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME releaseCommon
STORE_NAME releaseCommon
LOAD_NAME releaseCommon
LOAD_METHOD Version
CALL_METHOD
STORE_NAME v
LOAD_NAME v
LOAD_METHOD incrementMinorVe... | from __future__ import print_function
import releaseCommon
v = releaseCommon.Version()
v.incrementMinorVersion()
releaseCommon.performUpdates(v)
print("Updated Version.hpp, README and Conan to v{0}".format(v.getVersionString()))
| data/wxPython-4.2.1/ext/wxWidgets/3rdparty/catch/scripts/minorRelease.py | 135 | 71 | 300,807 |
LOAD_CONST 1
LOAD_CONST ('OdsAdapter',)
IMPORT_NAME adapter
IMPORT_FROM OdsAdapter
STORE_NAME OdsAdapter
POP_TOP
LOAD_CONST 1
LOAD_CONST ('OdsControl',)
IMPORT_NAME control
IMPORT_FROM OdsControl
STORE_NAME OdsControl
POP_TOP
LOAD_CONST 1
LOAD_CONST ('OdsParser',)
IMPORT_NAME parser
IMPORT_FROM OdsParser
STORE_NAME O... | from .adapter import OdsAdapter
from .control import OdsControl
from .parser import OdsParser
from .plugin import OdsPlugin
__all__ = [
"OdsAdapter",
"OdsControl",
"OdsParser",
"OdsPlugin",
]
| data/frictionless-5.16.1/frictionless/formats/ods/__init__.py | 155 | 71 | 41,881 |
LOAD_CONST 0
LOAD_CONST ('PyFileSearcher',)
IMPORT_NAME pysmi.searcher.pyfile
IMPORT_FROM PyFileSearcher
STORE_NAME PyFileSearcher
POP_TOP
LOAD_CONST 0
LOAD_CONST ('PyPackageSearcher',)
IMPORT_NAME pysmi.searcher.pypackage
IMPORT_FROM PyPackageSearcher
STORE_NAME PyPackageSearcher
POP_TOP
LOAD_CONST 0
LOAD_CONST ('St... | from pysmi.searcher.pyfile import PyFileSearcher
from pysmi.searcher.pypackage import PyPackageSearcher
from pysmi.searcher.stub import StubSearcher
from pysmi.searcher.anyfile import AnyFileSearcher
| data/pysmi-0.3.4/pysmi/searcher/__init__.py | 174 | 71 | 155,049 |
LOAD_CONST 1
LOAD_CONST ('als', 'approximate_als', 'bpr', 'lmf', 'nearest_neighbours')
IMPORT_NAME
IMPORT_FROM als
STORE_NAME als
IMPORT_FROM approximate_als
STORE_NAME approximate_als
IMPORT_FROM bpr
STORE_NAME bpr
IMPORT_FROM lmf
STORE_NAME lmf
IMPORT_FROM nearest_neighbours
STORE_NAME nearest_neighbours
POP_TOP
LOA... | from . import als, approximate_als, bpr, lmf, nearest_neighbours
__version__ = "0.7.2"
__all__ = ["als", "approximate_als", "bpr", "nearest_neighbours", "lmf", "__version__"]
| data/implicit-0.7.2/implicit/__init__.py | 151 | 71 | 58,404 |
LOAD_CONST 2
LOAD_CONST ('test_basics',)
IMPORT_NAME multi_load
IMPORT_FROM test_basics
STORE_NAME multi
POP_TOP
LOAD_CONST 2
LOAD_CONST ('test_basics',)
IMPORT_NAME single_load
IMPORT_FROM test_basics
STORE_NAME single
POP_TOP
LOAD_CONST 1
LOAD_CONST ('common',)
IMPORT_NAME
IMPORT_FROM common
STORE_NAME common
POP_T... | from ..multi_load import test_basics as multi
from ..single_load import test_basics as single
from . import common
class SingleTestCase(common.SingleBase, single.TestCase):
pass
class MultiTestCase(common.MultiBase, multi.TestCase):
pass
| data/anyconfig-0.14.0/tests/api/load/test_basics.py | 282 | 71 | 390,888 |
LOAD_CONST 0
LOAD_CONST ('annotations',)
IMPORT_NAME __future__
IMPORT_FROM annotations
STORE_NAME annotations
POP_TOP
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME hashlib
STORE_NAME hashlib
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME sys
STORE_NAME sys
LOAD_CONST 0
LOAD_CONST ('partial',)
IMPORT_NAME functools
IMPORT_FROM... | from __future__ import annotations
import hashlib
import sys
from functools import partial
if sys.version_info >= (3, 9):
md5 = partial(hashlib.md5, usedforsecurity=False)
else:
md5 = hashlib.md5
| data/pytest_randomly-3.15.0/src/pytest_randomly/compat.py | 155 | 71 | 201,783 |
LOAD_CONST 0
LOAD_CONST ('Enum',)
IMPORT_NAME enum
IMPORT_FROM Enum
STORE_NAME Enum
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object BroadcastMeetingAudience at 0x7fab4298e150, file "f.py", line 4>
LOAD_CONST 'BroadcastMeetingAudience'
MAKE_FUNCTION
LOAD_CONST 'BroadcastMeetingAudience'
LOAD_NAME str
LOAD_NAME Enum
CA... | from enum import Enum
class BroadcastMeetingAudience(str, Enum):
RoleIsAttendee = ("roleIsAttendee",)
Organization = ("organization",)
Everyone = ("everyone",)
UnknownFutureValue = ("unknownFutureValue",)
| data/msgraph-sdk-1.1.0/msgraph/generated/models/broadcast_meeting_audience.py | 202 | 71 | 262,055 |
LOAD_CONST 0
LOAD_CONST ('Any',)
IMPORT_NAME typing
IMPORT_FROM Any
STORE_NAME Any
POP_TOP
LOAD_CONST 0
LOAD_CONST ('multimethod',)
IMPORT_NAME multimethod
IMPORT_FROM multimethod
STORE_NAME multimethod
POP_TOP
LOAD_CONST 0
LOAD_CONST ('Settings',)
IMPORT_NAME ydata_profiling.config
IMPORT_FROM Settings
STORE_NAME Se... | from typing import Any
from multimethod import multimethod
from ydata_profiling.config import Settings
@multimethod
def get_table_stats(config: Settings, df: Any, variable_stats: dict) -> dict:
raise NotImplementedError()
| data/ydata-profiling-4.6.4/src/ydata_profiling/model/table.py | 193 | 71 | 190,179 |
LOAD_CONST 0
LOAD_CONST ('DAG',)
IMPORT_NAME DAG
IMPORT_FROM DAG
STORE_NAME DAG
POP_TOP
LOAD_CONST 0
LOAD_CONST ('IBMSparkPipeline',)
IMPORT_NAME IBMSparkPipeline
IMPORT_FROM IBMSparkPipeline
STORE_NAME IBMSparkPipeline
POP_TOP
LOAD_CONST 0
LOAD_CONST ('IBMSparkPipelineModel',)
IMPORT_NAME IBMSparkPipelineModel
IMPOR... | from DAG import DAG
from IBMSparkPipeline import IBMSparkPipeline
from IBMSparkPipelineModel import IBMSparkPipelineModel
from Source import Source
from Sink import Sink
__version__ = "0.1.457"
| data/ibm_watson_machine_learning-1.0.347/ibm_watson_machine_learning/libs/pipeline/__init__.py | 189 | 71 | 252,316 |
LOAD_CONST 1
LOAD_CONST ('TelegramObject',)
IMPORT_NAME base
IMPORT_FROM TelegramObject
STORE_NAME TelegramObject
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object GiveawayCreated at 0x7fa6f3491810, file "f.py", line 4>
LOAD_CONST 'GiveawayCreated'
MAKE_FUNCTION
LOAD_CONST 'GiveawayCreated'
LOAD_NAME TelegramObject
CAL... | from .base import TelegramObject
class GiveawayCreated(TelegramObject):
"""
This object represents a service message about the creation of a scheduled giveaway. Currently holds no information.
Source: https://core.telegram.org/bots/api#giveawaycreated
"""
| data/aiogram-3.4.1/aiogram/types/giveaway_created.py | 181 | 71 | 53,993 |
LOAD_NAME sorted
LOAD_CONST 'markdown'
LOAD_CONST 'yaml'
LOAD_CONST 'sql'
LOAD_CONST 'css'
LOAD_CONST 'html'
LOAD_CONST 'json'
LOAD_CONST 'python'
LOAD_CONST 'regex'
LOAD_CONST 'toml'
BUILD_LIST
CALL_FUNCTION
STORE_NAME BUILTIN_LANGUAGES
LOAD_CONST None
RETURN_VALUE | BUILTIN_LANGUAGES = sorted(
[
"markdown",
"yaml",
"sql",
"css",
"html",
"json",
"python",
"regex",
"toml",
]
)
| data/textual-0.52.1/src/textual/document/_languages.py | 81 | 71 | 26,637 |
LOAD_CONST 0
LOAD_CONST ('ModelForm',)
IMPORT_NAME django.forms
IMPORT_FROM ModelForm
STORE_NAME ModelForm
POP_TOP
LOAD_CONST 1
LOAD_CONST ('MDPlaceModel',)
IMPORT_NAME models
IMPORT_FROM MDPlaceModel
STORE_NAME MDPlaceModel
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object MDPlaceForm at 0x7f8ab7985db0, file "f.py", ... | from django.forms import ModelForm
from .models import MDPlaceModel
class MDPlaceForm(ModelForm):
class Meta:
model = MDPlaceModel
fields = ("idno", "company_type_1", "company_type_2", "license_plate")
| data/django-localflavor-4.0/tests/test_md/forms.py | 276 | 71 | 434,829 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME numpy
STORE_NAME np
LOAD_CONST 0
LOAD_CONST ('NoisyFunctionMetric',)
IMPORT_NAME ax.metrics.noisy_function
IMPORT_FROM NoisyFunctionMetric
STORE_NAME NoisyFunctionMetric
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object L2NormMetric at 0x7fab700cb930, file "f.py", line 5>
LOAD_... | import numpy as np
from ax.metrics.noisy_function import NoisyFunctionMetric
class L2NormMetric(NoisyFunctionMetric):
def f(self, x: np.ndarray) -> float:
return np.sqrt((x**2).sum())
| data/ax-platform-0.3.6/ax/metrics/l2norm.py | 261 | 71 | 63,413 |
LOAD_CONST <code object test_movie_goofs at 0x7fabdc1d0c00, file "f.py", line 1>
LOAD_CONST 'test_movie_goofs'
MAKE_FUNCTION
STORE_NAME test_movie_goofs
LOAD_CONST None
RETURN_VALUE
LOAD_FAST ia
LOAD_ATTR get_movie
LOAD_CONST '0133093'
LOAD_CONST 'goofs'
BUILD_LIST
LOAD_CONST ('info',)
CALL_FUNCTION
STORE_FAST movie
... | def test_movie_goofs(ia):
movie = ia.get_movie("0133093", info=["goofs"])
goofs = movie.get("goofs", [])
assert len(goofs) > 120
| data/cinemagoer-2023.5.1/tests/test_http_movie_goofs.py | 166 | 71 | 155,161 |
LOAD_CONST 0
LOAD_CONST ('Enum',)
IMPORT_NAME enum
IMPORT_FROM Enum
STORE_NAME Enum
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object ServicePrincipalType at 0x7fab4298ed20, file "f.py", line 4>
LOAD_CONST 'ServicePrincipalType'
MAKE_FUNCTION
LOAD_CONST 'ServicePrincipalType'
LOAD_NAME str
LOAD_NAME Enum
CALL_FUNCTION
... | from enum import Enum
class ServicePrincipalType(str, Enum):
Unknown = ("unknown",)
Application = ("application",)
ManagedIdentity = ("managedIdentity",)
Legacy = ("legacy",)
UnknownFutureValue = ("unknownFutureValue",)
| data/msgraph-sdk-1.1.0/msgraph/generated/models/security/service_principal_type.py | 188 | 71 | 262,185 |
LOAD_CONST 'Exceptions for the package.'
STORE_NAME __doc__
LOAD_BUILD_CLASS
LOAD_CONST <code object SystemException at 0x7fae2f3b3930, file "f.py", line 4>
LOAD_CONST 'SystemException'
MAKE_FUNCTION
LOAD_CONST 'SystemException'
LOAD_NAME Exception
CALL_FUNCTION
STORE_NAME SystemException
LOAD_CONST None
RETURN_VALUE
... | """Exceptions for the package."""
class SystemException(Exception):
"""An exception indicating that some system exception happened during execution.
:param exception_message: A message describing the error.
:type exception_message: str
"""
_error_code = "System Error"
| data/dice_ml-0.11/dice_ml/utils/exception.py | 165 | 71 | 252,382 |
LOAD_CONST 0
LOAD_CONST ('custom_root',)
IMPORT_NAME jaxopt._src.implicit_diff
IMPORT_FROM custom_root
STORE_NAME custom_root
POP_TOP
LOAD_CONST 0
LOAD_CONST ('custom_fixed_point',)
IMPORT_NAME jaxopt._src.implicit_diff
IMPORT_FROM custom_fixed_point
STORE_NAME custom_fixed_point
POP_TOP
LOAD_CONST 0
LOAD_CONST ('roo... | from jaxopt._src.implicit_diff import custom_root
from jaxopt._src.implicit_diff import custom_fixed_point
from jaxopt._src.implicit_diff import root_jvp
from jaxopt._src.implicit_diff import root_vjp
| data/jaxopt-0.8.3/jaxopt/implicit_diff.py | 170 | 71 | 252,420 |
LOAD_CONST 0
LOAD_CONST ('Enum',)
IMPORT_NAME enum
IMPORT_FROM Enum
STORE_NAME Enum
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object EventPropagationStatus at 0x7fab4298e8a0, file "f.py", line 4>
LOAD_CONST 'EventPropagationStatus'
MAKE_FUNCTION
LOAD_CONST 'EventPropagationStatus'
LOAD_NAME str
LOAD_NAME Enum
CALL_FUN... | from enum import Enum
class EventPropagationStatus(str, Enum):
None_ = ("none",)
InProcessing = ("inProcessing",)
Failed = ("failed",)
Success = ("success",)
UnknownFutureValue = ("unknownFutureValue",)
| data/msgraph-sdk-1.1.0/msgraph/generated/models/security/event_propagation_status.py | 193 | 71 | 262,234 |
LOAD_CONST '../mask_rcnn/mask-rcnn_r50_fpn_1x_coco.py'
STORE_NAME _base_
LOAD_NAME dict
LOAD_NAME dict
LOAD_NAME dict
LOAD_CONST 'SyncBN'
LOAD_CONST True
LOAD_CONST ('type', 'requires_grad')
CALL_FUNCTION
LOAD_CONST False
LOAD_CONST ('norm_cfg', 'norm_eval')
CALL_FUNCTION
LOAD_CONST ('backbone',)
CALL_FUNCTION
STORE_... | _base_ = "../mask_rcnn/mask-rcnn_r50_fpn_1x_coco.py"
model = dict(
backbone=dict(norm_cfg=dict(type="SyncBN", requires_grad=True), norm_eval=False)
)
| data/mmdet-3.3.0/mmdet/.mim/configs/gcnet/mask-rcnn_r50-syncbn_fpn_1x_coco.py | 101 | 71 | 151,764 |
LOAD_CONST 0
LOAD_CONST ('Enum',)
IMPORT_NAME enum
IMPORT_FROM Enum
STORE_NAME Enum
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object EventStatusType at 0x7fab4298ec00, file "f.py", line 4>
LOAD_CONST 'EventStatusType'
MAKE_FUNCTION
LOAD_CONST 'EventStatusType'
LOAD_NAME str
LOAD_NAME Enum
CALL_FUNCTION
STORE_NAME Even... | from enum import Enum
class EventStatusType(str, Enum):
Pending = ("pending",)
Error = ("error",)
Success = ("success",)
NotAvaliable = ("notAvaliable",)
UnknownFutureValue = ("unknownFutureValue",)
| data/msgraph-sdk-1.1.0/msgraph/generated/models/security/event_status_type.py | 184 | 71 | 262,236 |
LOAD_CONST 'Helper for OwnTracks.'
STORE_NAME __doc__
SETUP_EXCEPT to 18
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME nacl
STORE_NAME nacl
POP_BLOCK
JUMP_FORWARD to 42
DUP_TOP
LOAD_NAME ImportError
COMPARE_OP exception match
POP_JUMP_IF_FALSE
POP_TOP
POP_TOP
POP_TOP
LOAD_CONST None
STORE_NAME nacl
POP_EXCEPT
JUMP_FORWA... | """Helper for OwnTracks."""
try:
import nacl
except ImportError:
nacl = None # type: ignore[assignment]
def supports_encryption() -> bool:
"""Test if we support encryption."""
return nacl is not None
| data/homeassistant-2024.2.2/homeassistant/components/owntracks/helper.py | 169 | 71 | 298,563 |
LOAD_CONST 0
LOAD_CONST ('choice',)
IMPORT_NAME random
IMPORT_FROM choice
STORE_NAME choice
POP_TOP
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME string
STORE_NAME string
LOAD_CONST <code object uid_generate at 0x7fab6413ee40, file "f.py", line 5>
LOAD_CONST 'uid_generate'
MAKE_FUNCTION
STORE_NAME uid_generate
LOAD_CONST ... | from random import choice
import string
def uid_generate(id_length):
return "".join(
choice(string.ascii_uppercase + string.ascii_lowercase + string.digits)
for _ in range(id_length)
)
| data/ibm_watson_machine_learning-1.0.347/ibm_watson_machine_learning/libs/repo/util/unique_id_gen.py | 236 | 71 | 252,094 |
LOAD_BUILD_CLASS
LOAD_CONST <code object DriverABS at 0x7fab802480c0, file "f.py", line 1>
LOAD_CONST 'DriverABS'
MAKE_FUNCTION
LOAD_CONST 'DriverABS'
CALL_FUNCTION
STORE_NAME DriverABS
LOAD_CONST None
RETURN_VALUE
LOAD_NAME __name__
STORE_NAME __module__
LOAD_CONST 'DriverABS'
STORE_NAME __qualname__
LOAD_CONST (Tru... | class DriverABS:
def get_usage(self, uuid, reset=True):
pass
def get_enabled_users(self):
pass
def add_client(self, user):
pass
def remove_client(self, user):
pass
| data/hiddifypanel-8.8.96/hiddifypanel/drivers/abstract_driver.py | 341 | 71 | 215,129 |
LOAD_BUILD_CLASS
LOAD_CONST <code object A at 0x7f8e2fb9c0c0, file "f.py", line 1>
LOAD_CONST 'A'
MAKE_FUNCTION
LOAD_CONST 'A'
CALL_FUNCTION
STORE_NAME A
LOAD_BUILD_CLASS
LOAD_CONST <code object A at 0x7f8e2fb9cf60, file "f.py", line 8>
LOAD_CONST 'A'
MAKE_FUNCTION
LOAD_CONST 'A'
CALL_FUNCTION
STORE_NAME A
LOAD_CONST ... | class A:
def f(self):
for line in range(10):
if True:
pass # fmt: skip
class A:
def f(self):
for line in range(10):
if True:
pass # fmt: skip
| data/black-24.2.0/tests/data/cases/fmtskip6.py | 327 | 71 | 405,208 |
LOAD_CONST 0
LOAD_CONST ('Enum',)
IMPORT_NAME enum
IMPORT_FROM Enum
STORE_NAME Enum
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object ChatMessagePolicyViolationDlpActionTypes at 0x7fab70027420, file "f.py", line 4>
LOAD_CONST 'ChatMessagePolicyViolationDlpActionTypes'
MAKE_FUNCTION
LOAD_CONST 'ChatMessagePolicyViolatio... | from enum import Enum
class ChatMessagePolicyViolationDlpActionTypes(str, Enum):
None_ = ("none",)
NotifySender = ("notifySender",)
BlockAccess = ("blockAccess",)
BlockAccessExternal = ("blockAccessExternal",)
| data/msgraph-sdk-1.1.0/msgraph/generated/models/chat_message_policy_violation_dlp_action_types.py | 211 | 71 | 261,430 |
LOAD_CONST 1
LOAD_CONST ('to_json', 'read_json', 'loads', 'dumps')
IMPORT_NAME json
IMPORT_FROM to_json
STORE_NAME to_json
IMPORT_FROM read_json
STORE_NAME read_json
IMPORT_FROM loads
STORE_NAME loads
IMPORT_FROM dumps
STORE_NAME dumps
POP_TOP
LOAD_CONST 1
LOAD_CONST ('json_normalize',)
IMPORT_NAME normalize
IMPORT_FR... | from .json import to_json, read_json, loads, dumps # noqa
from .normalize import json_normalize # noqa
from .table_schema import build_table_schema # noqa
del json, normalize, table_schema # noqa
| data/ipyslickgrid-0.0.4/ipyslickgrid/pd_json/__init__.py | 149 | 71 | 392,348 |
LOAD_CONST 1
LOAD_CONST ('VBRAINSDemonWarp', 'BRAINSDemonWarp', 'BRAINSTransformFromFiducials')
IMPORT_NAME specialized
IMPORT_FROM VBRAINSDemonWarp
STORE_NAME VBRAINSDemonWarp
IMPORT_FROM BRAINSDemonWarp
STORE_NAME BRAINSDemonWarp
IMPORT_FROM BRAINSTransformFromFiducials
STORE_NAME BRAINSTransformFromFiducials
POP_TOP... | from .specialized import VBRAINSDemonWarp, BRAINSDemonWarp, BRAINSTransformFromFiducials
from .brainsresample import BRAINSResample
from .brainsfit import BRAINSFit
from .brainsresize import BRAINSResize
| data/nipype-1.8.6/nipype/interfaces/semtools/registration/__init__.py | 218 | 71 | 139,211 |
LOAD_CONST 0
LOAD_CONST ('CMSAppConfig', 'CMSAppExtension')
IMPORT_NAME cms.app_base
IMPORT_FROM CMSAppConfig
STORE_NAME CMSAppConfig
IMPORT_FROM CMSAppExtension
STORE_NAME CMSAppExtension
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object CMSConfigConfig at 0x7fab8244ded0, file "f.py", line 4>
LOAD_CONST 'CMSConfigConf... | from cms.app_base import CMSAppConfig, CMSAppExtension
class CMSConfigConfig(CMSAppConfig):
pass
class CMSConfigConfig2(CMSAppConfig):
pass
class CMSExtension(CMSAppExtension):
pass
| data/django-cms-4.1.0/cms/test_utils/project/app_with_two_cms_config_classes/cms_config.py | 360 | 71 | 86,969 |
LOAD_CONST '\nRepresents an exception that occurs during an EYAML command execution.\n\nCopyright 2019 William W. Kimball, Jr. MBA MSIS\n'
STORE_NAME __doc__
LOAD_BUILD_CLASS
LOAD_CONST <code object EYAMLCommandException at 0x7f8c5d0fdc00, file "f.py", line 8>
LOAD_CONST 'EYAMLCommandException'
MAKE_FUNCTION
LOAD_CONS... | """
Represents an exception that occurs during an EYAML command execution.
Copyright 2019 William W. Kimball, Jr. MBA MSIS
"""
class EYAMLCommandException(Exception):
"""Exception to raise when an EYAML command executation fails."""
| data/yamlpath-3.8.2/yamlpath/eyaml/exceptions/eyamlcommand.py | 180 | 71 | 121,341 |
LOAD_CONST 1
LOAD_CONST ('ServiceOperations',)
IMPORT_NAME _service_operations
IMPORT_FROM ServiceOperations
STORE_NAME ServiceOperations
POP_TOP
LOAD_CONST 1
LOAD_CONST ('FileSystemOperations',)
IMPORT_NAME _file_system_operations
IMPORT_FROM FileSystemOperations
STORE_NAME FileSystemOperations
POP_TOP
LOAD_CONST 1
... | from ._service_operations import ServiceOperations
from ._file_system_operations import FileSystemOperations
from ._path_operations import PathOperations
__all__ = [
"ServiceOperations",
"FileSystemOperations",
"PathOperations",
]
| data/azure-multiapi-storage-1.2.0/azure/multiapi/storagev2/filedatalake/v2019_07_07/_generated/operations/__init__.py | 137 | 71 | 311,588 |
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 MigrationTaskEntityData at 0x7fab700e4030, file "f.py", line 4>
LOAD_CONST 'MigrationTaskEntityData'
MAKE_FUNCTION
LOAD_CONST 'MigrationTaskEntityData'
LOAD_... | from office365.sharepoint.entity import Entity
class MigrationTaskEntityData(Entity):
@property
def entity_type_name(self):
return (
"Microsoft.Online.SharePoint.MigrationCenter.Common.MigrationTaskEntityData"
)
| data/Office365-REST-Python-Client-2.5.5/office365/sharepoint/migrationcenter/common/task_entity_data.py | 230 | 71 | 189,693 |
LOAD_CONST 0
LOAD_CONST ('Enum',)
IMPORT_NAME enum
IMPORT_FROM Enum
STORE_NAME Enum
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object ReduceOp at 0x7fab82295930, file "f.py", line 4>
LOAD_CONST 'ReduceOp'
MAKE_FUNCTION
LOAD_CONST 'ReduceOp'
LOAD_NAME Enum
CALL_FUNCTION
STORE_NAME ReduceOp
LOAD_CONST None
RETURN_VALUE
... | from enum import Enum
class ReduceOp(Enum):
SUM = 0
PRODUCT = 1
MIN = 2
MAX = 3
BAND = 4
BOR = 5
BXOR = 6
AVG = 7
UNUSED = 8
| data/deepspeed-0.13.2/deepspeed/comm/reduce_op.py | 202 | 71 | 84,747 |
LOAD_CONST 'Functions to evaluate and test the performance of the RDT Transformers.'
STORE_NAME __doc__
LOAD_CONST 0
LOAD_CONST ('profiling',)
IMPORT_NAME rdt.performance
IMPORT_FROM profiling
STORE_NAME profiling
POP_TOP
LOAD_CONST 0
LOAD_CONST ('evaluate_transformer_performance',)
IMPORT_NAME rdt.performance.perfor... | """Functions to evaluate and test the performance of the RDT Transformers."""
from rdt.performance import profiling
from rdt.performance.performance import evaluate_transformer_performance
__all__ = [
"evaluate_transformer_performance",
"profiling",
]
| data/rdt-1.9.2/rdt/performance/__init__.py | 128 | 71 | 334,162 |
LOAD_CONST 0
LOAD_CONST ('Minio',)
IMPORT_NAME minio
IMPORT_FROM Minio
STORE_NAME Minio
POP_TOP
LOAD_CONST 0
LOAD_CONST ('EnvMinioProvider',)
IMPORT_NAME minio.credentials
IMPORT_FROM EnvMinioProvider
STORE_NAME EnvMinioProvider
POP_TOP
LOAD_NAME Minio
LOAD_CONST 'MINIO-HOST:MINIO-PORT'
LOAD_NAME EnvMinioProvider
CAL... | from minio import Minio
from minio.credentials import EnvMinioProvider
client = Minio("MINIO-HOST:MINIO-PORT", credentials=EnvMinioProvider())
stat = client.stat_object("my-bucket", "my-object")
print(stat)
| data/minio-7.2.4/examples/minio_with_env_minio_provider.py | 147 | 71 | 24,676 |
LOAD_CONST 'Constants for the Schlage integration.'
STORE_NAME __doc__
LOAD_CONST 0
LOAD_CONST ('timedelta',)
IMPORT_NAME datetime
IMPORT_FROM timedelta
STORE_NAME timedelta
POP_TOP
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME logging
STORE_NAME logging
LOAD_CONST 'schlage'
STORE_NAME DOMAIN
LOAD_NAME logging
LOAD_METH... | """Constants for the Schlage integration."""
from datetime import timedelta
import logging
DOMAIN = "schlage"
LOGGER = logging.getLogger(__package__)
MANUFACTURER = "Schlage"
UPDATE_INTERVAL = timedelta(seconds=30)
| data/homeassistant-2024.2.2/homeassistant/components/schlage/const.py | 135 | 71 | 297,013 |
LOAD_CONST <code object stream at 0x7fab7006d420, file "f.py", line 1>
LOAD_CONST 'stream'
MAKE_FUNCTION
STORE_NAME stream
LOAD_CONST None
RETURN_VALUE
LOAD_CONST <code object app at 0x7fab7006d810, file "f.py", line 2>
LOAD_CONST 'stream.<locals>.app'
MAKE_FUNCTION
STORE_FAST app
LOAD_FAST app
RETURN_VALUE
LOAD_FAS... | def stream():
def app(environ, start_response):
writer = start_response("200 OK", [("Content-type", "text/html")])
writer(b"te")
writer(b"st")
return [b"2"]
return app
| data/Paste-3.7.1/tests/urlparser_data/python/stream.py | 175 | 71 | 150,008 |
LOAD_CONST 0
LOAD_CONST ('CMSPlugin',)
IMPORT_NAME cms.models
IMPORT_FROM CMSPlugin
STORE_NAME CMSPlugin
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object TestPlugin1 at 0x7fab70078300, file "f.py", line 4>
LOAD_CONST 'TestPlugin1'
MAKE_FUNCTION
LOAD_CONST 'TestPlugin1'
LOAD_NAME CMSPlugin
CALL_FUNCTION
STORE_NAME Test... | from cms.models import CMSPlugin
class TestPlugin1(CMSPlugin):
pass
class LeftMixin:
pass
class RightMixin:
pass
class TestPlugin2(LeftMixin, CMSPlugin, RightMixin):
pass
| data/django-cms-4.1.0/cms/test_utils/project/bunch_of_plugins/models.py | 416 | 71 | 86,986 |
LOAD_CONST 0
LOAD_CONST ('GoogleApiClient', 'GoogleApiYoutubeLoader', 'YoutubeLoader')
IMPORT_NAME langchain_community.document_loaders.youtube
IMPORT_FROM GoogleApiClient
STORE_NAME GoogleApiClient
IMPORT_FROM GoogleApiYoutubeLoader
STORE_NAME GoogleApiYoutubeLoader
IMPORT_FROM YoutubeLoader
STORE_NAME YoutubeLoader
P... | from langchain_community.document_loaders.youtube import (
GoogleApiClient,
GoogleApiYoutubeLoader,
YoutubeLoader,
)
__all__ = [
"YoutubeLoader",
"GoogleApiYoutubeLoader",
"GoogleApiClient",
]
| data/langchain-0.1.8/langchain/document_loaders/youtube.py | 111 | 71 | 368,505 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME pytest
STORE_NAME pytest
LOAD_CONST <code object test_qtwebenginecore at 0x7faad43c0270, file "f.py", line 4>
LOAD_CONST 'test_qtwebenginecore'
MAKE_FUNCTION
STORE_NAME test_qtwebenginecore
LOAD_CONST None
RETURN_VALUE
LOAD_GLOBAL pytest
LOAD_METHOD importorskip
LOAD_CONST 'qt... | import pytest
def test_qtwebenginecore():
"""Test the qtpy.QtWebEngineCore namespace"""
QtWebEngineCore = pytest.importorskip("qtpy.QtWebEngineCore")
assert QtWebEngineCore.QWebEngineHttpRequest is not None
| data/QtPy-2.4.1/qtpy/tests/test_qtwebenginecore.py | 142 | 71 | 356,967 |
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 ArrayMainConstituentAssetClass at 0x7fab... | from enum import unique
from refinitiv.data._base_enum import StrEnum
@unique
class ArrayMainConstituentAssetClass(StrEnum):
DEPOSIT = "Deposit"
FUTURES = "Futures"
SWAP = "Swap"
| data/refinitiv-data-1.6.0/refinitiv/data/content/ipa/_curves/_cross_currency_curves/_curves/_enums/_array_main_constituent_asset_class.py | 220 | 71 | 195,401 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME Foundation
STORE_NAME Foundation
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 TestNSURLAuthenticationChallenge at 0x7fab81fc44b0, file "f.py", line 5>
LOAD_CO... | import Foundation # noqa: F401
from PyObjCTools.TestSupport import TestCase
class TestNSURLAuthenticationChallenge(TestCase):
def testProtocols(self):
self.assertProtocolExists("NSURLAuthenticationChallengeSender")
| data/pyobjc-framework-Cocoa-10.1/PyObjCTest/test_nsurlauthenticationchallenge.py | 263 | 71 | 64,414 |
LOAD_CONST "Helper script to test argv.\nEnsures that argv isn't modified after importing clr.\nFor more details see GH#404 - argv not found"
STORE_NAME __doc__
LOAD_CONST 0
LOAD_CONST ('print_function',)
IMPORT_NAME __future__
IMPORT_FROM print_function
STORE_NAME print_function
POP_TOP
LOAD_CONST 0
LOAD_CONST None
... | """Helper script to test argv.
Ensures that argv isn't modified after importing clr.
For more details see GH#404 - argv not found"""
from __future__ import print_function
import sys
import clr
print(sys.argv)
| data/pythonnet-3.0.3/tests/fixtures/argv-fixture.py | 129 | 71 | 343,262 |
LOAD_CONST 1
LOAD_CONST ('Store',)
IMPORT_NAME store
IMPORT_FROM Store
STORE_NAME Store
POP_TOP
LOAD_CONST 1
LOAD_CONST ('StoreError', 'CredentialsNotFound')
IMPORT_NAME errors
IMPORT_FROM StoreError
STORE_NAME StoreError
IMPORT_FROM CredentialsNotFound
STORE_NAME CredentialsNotFound
POP_TOP
LOAD_CONST 1
LOAD_CONST (... | from .store import Store
from .errors import StoreError, CredentialsNotFound
from .constants import (
DEFAULT_LINUX_STORE,
DEFAULT_OSX_STORE,
DEFAULT_WIN32_STORE,
PROGRAM_PREFIX,
)
| data/docker-7.0.0/docker/credentials/__init__.py | 196 | 71 | 132,545 |
LOAD_CONST <code object _is_used_without_argument at 0x7fab703f0ae0, file "f.py", line 1>
LOAD_CONST '_is_used_without_argument'
MAKE_FUNCTION
STORE_NAME _is_used_without_argument
LOAD_CONST None
RETURN_VALUE
LOAD_GLOBAL len
LOAD_FAST args
CALL_FUNCTION
LOAD_CONST 1
COMPARE_OP ==
RETURN_VALUE | def _is_used_without_argument(args):
"""Tests if a decorator invocation is without () or (args).
Args:
args: arguments
Returns:
True if it's an invocation without args
"""
return len(args) == 1
| data/slack_bolt-1.18.1/slack_bolt/workflows/step/internals.py | 84 | 71 | 171,845 |
LOAD_CONST 0
LOAD_CONST ('print_function',)
IMPORT_NAME __future__
IMPORT_FROM print_function
STORE_NAME print_function
POP_TOP
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME releaseCommon
STORE_NAME releaseCommon
LOAD_NAME releaseCommon
LOAD_METHOD Version
CALL_METHOD
STORE_NAME v
LOAD_NAME v
LOAD_METHOD incrementPatchNu... | from __future__ import print_function
import releaseCommon
v = releaseCommon.Version()
v.incrementPatchNumber()
releaseCommon.performUpdates(v)
print("Updated Version.hpp, README and Conan to v{0}".format(v.getVersionString()))
| data/wxPython-4.2.1/ext/wxWidgets/3rdparty/catch/scripts/patchRelease.py | 135 | 71 | 300,816 |
LOAD_CONST 1
LOAD_CONST ('base', 'login', 'metrics', 'pages')
IMPORT_NAME
IMPORT_FROM base
STORE_NAME base
IMPORT_FROM login
STORE_NAME login
IMPORT_FROM metrics
STORE_NAME metrics
IMPORT_FROM pages
STORE_NAME pages
POP_TOP
LOAD_CONST 1
LOAD_CONST ('*',)
IMPORT_NAME base
IMPORT_STAR
LOAD_CONST 1
LOAD_CONST ('*',)
IMP... | from . import base, login, metrics, pages
from .base import * # noqa
from .login import * # noqa
default_handlers = []
for mod in (base, pages, login, metrics):
default_handlers.extend(mod.default_handlers)
| data/jupyterhub-4.0.2/jupyterhub/handlers/__init__.py | 152 | 71 | 311,804 |
LOAD_CONST 1
LOAD_CONST ('Authorization',)
IMPORT_NAME authorization
IMPORT_FROM Authorization
STORE_NAME Authorization
POP_TOP
LOAD_CONST 1
LOAD_CONST ('MultiTeamsAuthorization',)
IMPORT_NAME multi_teams_authorization
IMPORT_FROM MultiTeamsAuthorization
STORE_NAME MultiTeamsAuthorization
POP_TOP
LOAD_CONST 1
LOAD_CO... | from .authorization import Authorization
from .multi_teams_authorization import MultiTeamsAuthorization
from .single_team_authorization import SingleTeamAuthorization
__all__ = [
"Authorization",
"MultiTeamsAuthorization",
"SingleTeamAuthorization",
]
| data/slack_bolt-1.18.1/slack_bolt/middleware/authorization/__init__.py | 139 | 71 | 171,883 |
LOAD_CONST 'AUTOGENERATED. DO NOT EDIT.'
STORE_NAME __doc__
LOAD_CONST 0
LOAD_CONST ('Xception',)
IMPORT_NAME tf_keras.src.applications.xception
IMPORT_FROM Xception
STORE_NAME Xception
POP_TOP
LOAD_CONST 0
LOAD_CONST ('decode_predictions',)
IMPORT_NAME tf_keras.src.applications.xception
IMPORT_FROM decode_prediction... | """AUTOGENERATED. DO NOT EDIT."""
from tf_keras.src.applications.xception import Xception
from tf_keras.src.applications.xception import decode_predictions
from tf_keras.src.applications.xception import preprocess_input
| data/tf_keras-2.15.0/tf_keras/api/_v1/keras/applications/xception/__init__.py | 146 | 71 | 354,046 |
LOAD_CONST '\nSome simple XML classes for use with XRC.\n\nFor more advanced XML needs it would be better to use one of the XML packages\nprovided by Python.\n'
STORE_NAME __doc__
LOAD_CONST 1
LOAD_CONST ('*',)
IMPORT_NAME _xml
IMPORT_STAR
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME wx
STORE_NAME wx
LOAD_NAME wx
LOAD_M... | """
Some simple XML classes for use with XRC.
For more advanced XML needs it would be better to use one of the XML packages
provided by Python.
"""
from ._xml import *
import wx
XmlProperty = wx.deprecated(XmlAttribute, "Use XmlProperty instead.")
| data/wxPython-4.2.1/wx/xml.py | 112 | 71 | 300,892 |
LOAD_CONST 'DownloadConfig'
LOAD_CONST 'DownloadManager'
LOAD_CONST 'DownloadMode'
LOAD_CONST 'StreamingDownloadManager'
BUILD_LIST
STORE_NAME __all__
LOAD_CONST 1
LOAD_CONST ('DownloadConfig',)
IMPORT_NAME download_config
IMPORT_FROM DownloadConfig
STORE_NAME DownloadConfig
POP_TOP
LOAD_CONST 1
LOAD_CONST ('Downl... | __all__ = [
"DownloadConfig",
"DownloadManager",
"DownloadMode",
"StreamingDownloadManager",
]
from .download_config import DownloadConfig
from .download_manager import DownloadManager, DownloadMode
from .streaming_download_manager import StreamingDownloadManager
| data/datasets-2.17.1/src/datasets/download/__init__.py | 141 | 71 | 52,904 |
LOAD_CONST 1
LOAD_CONST ('ThemeAsset', 'get_matching_version', 'get_theme_assets')
IMPORT_NAME semver_match
IMPORT_FROM ThemeAsset
STORE_NAME ThemeAsset
IMPORT_FROM get_matching_version
STORE_NAME get_matching_version
IMPORT_FROM get_theme_assets
STORE_NAME get_theme_assets
POP_TOP
LOAD_CONST 'ThemeAsset'
LOAD_CONST ... | from .semver_match import (
ThemeAsset,
get_matching_version,
get_theme_assets,
)
__all__ = [
"ThemeAsset",
"get_theme_assets",
"get_matching_version",
]
| data/gradio-4.19.1/gradio/themes/utils/__init__.py | 117 | 71 | 235,832 |
LOAD_CONST '\n[[[[[[[[[[[[[[[[[[["Not too deep"]]]]]]]]]]]]]]]]]]]\n'
STORE_NAME JSON
LOAD_CONST <code object test_parse at 0x7fab82360a50, file "f.py", line 6>
LOAD_CONST 'test_parse'
MAKE_FUNCTION
STORE_NAME test_parse
LOAD_CONST None
RETURN_VALUE
LOAD_FAST loads
LOAD_GLOBAL JSON
CALL_FUNCTION
STORE_FAST res
LOAD_... | JSON = r"""
[[[[[[[[[[[[[[[[[[["Not too deep"]]]]]]]]]]]]]]]]]]]
"""
def test_parse(dumps, loads):
res = loads(JSON)
out = dumps(res)
assert res == loads(out)
| data/python-rapidjson-1.14/tests/test_pass2.py | 141 | 71 | 104,190 |
LOAD_CONST 'Definitions of common exceptions for :mod:`sympy.core` module. '
STORE_NAME __doc__
LOAD_BUILD_CLASS
LOAD_CONST <code object BaseCoreError at 0x7fab70306c90, file "f.py", line 4>
LOAD_CONST 'BaseCoreError'
MAKE_FUNCTION
LOAD_CONST 'BaseCoreError'
LOAD_NAME Exception
CALL_FUNCTION
STORE_NAME BaseCoreError
... | """Definitions of common exceptions for :mod:`sympy.core` module. """
class BaseCoreError(Exception):
"""Base class for core related exceptions."""
class NonCommutativeExpression(BaseCoreError):
"""Raised when expression didn't have commutative property."""
| data/sympy-1.12/sympy/core/coreerrors.py | 265 | 71 | 228,941 |
LOAD_CONST 0
LOAD_CONST ('Enum',)
IMPORT_NAME enum
IMPORT_FROM Enum
STORE_NAME Enum
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object ProvisioningResult at 0x7fab70120f60, file "f.py", line 4>
LOAD_CONST 'ProvisioningResult'
MAKE_FUNCTION
LOAD_CONST 'ProvisioningResult'
LOAD_NAME str
LOAD_NAME Enum
CALL_FUNCTION
STORE_... | from enum import Enum
class ProvisioningResult(str, Enum):
Success = ("success",)
Failure = ("failure",)
Skipped = ("skipped",)
Warning = ("warning",)
UnknownFutureValue = ("unknownFutureValue",)
| data/msgraph-sdk-1.1.0/msgraph/generated/models/provisioning_result.py | 189 | 71 | 261,332 |
LOAD_CONST 0
LOAD_CONST ('cos',)
IMPORT_NAME math
IMPORT_FROM cos
STORE_NAME cos
POP_TOP
LOAD_CONST 0
LOAD_CONST ('linspace',)
IMPORT_NAME numpy
IMPORT_FROM linspace
STORE_NAME linspace
POP_TOP
LOAD_CONST 0
LOAD_CONST ('foo',)
IMPORT_NAME file1
IMPORT_FROM foo
STORE_NAME foo
POP_TOP
LOAD_CONST <code object bar at 0x... | from math import cos
from numpy import linspace
from file1 import foo
def bar(x):
return x
class MyOtherClass:
D = 1
def three(self):
return 3
def four(self):
return 4
| data/spyder-5.5.1/spyder/app/tests/script_outline_2.py | 329 | 71 | 369,535 |
LOAD_CONST 0
LOAD_CONST ('CnnPolicy', 'MlpPolicy', 'MultiInputPolicy')
IMPORT_NAME sb3_contrib.tqc.policies
IMPORT_FROM CnnPolicy
STORE_NAME CnnPolicy
IMPORT_FROM MlpPolicy
STORE_NAME MlpPolicy
IMPORT_FROM MultiInputPolicy
STORE_NAME MultiInputPolicy
POP_TOP
LOAD_CONST 0
LOAD_CONST ('TQC',)
IMPORT_NAME sb3_contrib.tqc... | from sb3_contrib.tqc.policies import CnnPolicy, MlpPolicy, MultiInputPolicy
from sb3_contrib.tqc.tqc import TQC
__all__ = ["CnnPolicy", "MlpPolicy", "MultiInputPolicy", "TQC"]
| data/sb3_contrib-2.2.1/sb3_contrib/tqc/__init__.py | 147 | 71 | 193,201 |
LOAD_CONST 'Deprecated symbols.'
STORE_NAME __doc__
LOAD_CONST 0
LOAD_CONST ('text',)
IMPORT_NAME tensorflow_datasets.core.deprecated
IMPORT_FROM text
STORE_NAME text
POP_TOP
LOAD_CONST 0
LOAD_CONST ('add_checksums_dir',)
IMPORT_NAME tensorflow_datasets.core.download.checksums
IMPORT_FROM add_checksums_dir
STORE_NAME... | """Deprecated symbols."""
from tensorflow_datasets.core.deprecated import text
from tensorflow_datasets.core.download.checksums import add_checksums_dir
__all__ = [
"add_checksums_dir",
"text",
]
| data/tfds-nightly-4.9.4.dev202402210044/tensorflow_datasets/core/deprecated/__init__.py | 126 | 71 | 211,038 |
LOAD_CONST '\n.. autoclass:: thriftrw.compile.Compiler\n :members:\n'
STORE_NAME __doc__
LOAD_CONST 0
LOAD_CONST ('absolute_import', 'unicode_literals', 'print_function')
IMPORT_NAME __future__
IMPORT_FROM absolute_import
STORE_NAME absolute_import
IMPORT_FROM unicode_literals
STORE_NAME unicode_literals
IMPORT_FROM p... | """
.. autoclass:: thriftrw.compile.Compiler
:members:
"""
from __future__ import absolute_import, unicode_literals, print_function
from .compiler import Compiler
from .scope import Scope
__all__ = ["Compiler", "Scope"]
| data/thriftrw-1.9.0/thriftrw/compile/__init__.py | 166 | 71 | 374,297 |
LOAD_CONST 'Module contains exceptions for dag-factory'
STORE_NAME __doc__
LOAD_BUILD_CLASS
LOAD_CONST <code object DagFactoryException at 0x7f8ab706f930, file "f.py", line 4>
LOAD_CONST 'DagFactoryException'
MAKE_FUNCTION
LOAD_CONST 'DagFactoryException'
LOAD_NAME Exception
CALL_FUNCTION
STORE_NAME DagFactoryExceptio... | """Module contains exceptions for dag-factory"""
class DagFactoryException(Exception):
"""
Base class for all dag-factory errors.
"""
class DagFactoryConfigException(Exception):
"""
Raise for dag-factory config errors.
"""
| data/dag-factory-0.19.0/dagfactory/exceptions.py | 267 | 71 | 121,286 |
LOAD_CONST '2.0 API features.\n\nthis module is legacy as 2.0 APIs are now standard.\n\n'
STORE_NAME __doc__
LOAD_CONST 1
LOAD_CONST ('Connection',)
IMPORT_NAME engine
IMPORT_FROM Connection
STORE_NAME Connection
POP_TOP
LOAD_CONST 1
LOAD_CONST ('create_engine',)
IMPORT_NAME engine
IMPORT_FROM create_engine
STORE_NAM... | """2.0 API features.
this module is legacy as 2.0 APIs are now standard.
"""
from .engine import Connection as Connection
from .engine import create_engine as create_engine
from .engine import Engine as Engine
from ..sql._selectable_constructors import select as select
| data/SQLAlchemy-2.0.27/lib/sqlalchemy/future/__init__.py | 141 | 71 | 362,392 |
LOAD_CONST 0
LOAD_CONST ('Optional',)
IMPORT_NAME typing
IMPORT_FROM Optional
STORE_NAME Optional
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object MetricCfg at 0x7fae471296f0, file "f.py", line 4>
LOAD_CONST 'MetricCfg'
MAKE_FUNCTION
LOAD_CONST 'MetricCfg'
CALL_FUNCTION
STORE_NAME MetricCfg
LOAD_CONST None
RETURN_VALU... | from typing import Optional
class MetricCfg:
def __init__(self):
self.metric_name: str = None
self.table_name: Optional[str] = None
self.column_name: Optional[str] = None
self.title: str = None
| data/soda-core-3.2.1/soda/sodacl/metric_cfg.py | 224 | 71 | 305,283 |
LOAD_CONST 0
LOAD_CONST ('Enum',)
IMPORT_NAME enum
IMPORT_FROM Enum
STORE_NAME Enum
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object DeviceManagementExchangeAccessState at 0x7fab70027420, file "f.py", line 4>
LOAD_CONST 'DeviceManagementExchangeAccessState'
MAKE_FUNCTION
LOAD_CONST 'DeviceManagementExchangeAccessState... | from enum import Enum
class DeviceManagementExchangeAccessState(str, Enum):
None_ = ("none",)
Unknown = ("unknown",)
Allowed = ("allowed",)
Blocked = ("blocked",)
Quarantined = ("quarantined",)
| data/msgraph-sdk-1.1.0/msgraph/generated/models/device_management_exchange_access_state.py | 197 | 71 | 260,575 |
LOAD_CONST 0
LOAD_CONST ('*',)
IMPORT_NAME azure.cli.core.aaz
IMPORT_STAR
LOAD_NAME register_command_group
LOAD_CONST 'billing invoice'
CALL_FUNCTION
LOAD_BUILD_CLASS
LOAD_CONST <code object __CMDGroup at 0x7fab82132390, file "f.py", line 4>
LOAD_CONST '__CMDGroup'
MAKE_FUNCTION
LOAD_CONST '__CMDGroup'
LOAD_NAME AAZ... | from azure.cli.core.aaz import *
@register_command_group(
"billing invoice",
)
class __CMDGroup(AAZCommandGroup):
"""Manage invoice"""
pass
__all__ = ["__CMDGroup"]
| data/azure-cli-2.57.0/azure/cli/command_modules/billing/aaz/latest/billing/invoice/__cmd_group.py | 181 | 71 | 377,376 |
LOAD_CONST 0
LOAD_CONST ('*',)
IMPORT_NAME azure.cli.core.aaz
IMPORT_STAR
LOAD_NAME register_command_group
LOAD_CONST 'network route-table'
CALL_FUNCTION
LOAD_BUILD_CLASS
LOAD_CONST <code object __CMDGroup at 0x7fab4130c5d0, file "f.py", line 4>
LOAD_CONST '__CMDGroup'
MAKE_FUNCTION
LOAD_CONST '__CMDGroup'
LOAD_NAME... | from azure.cli.core.aaz import *
@register_command_group(
"network route-table",
)
class __CMDGroup(AAZCommandGroup):
"""Manage route tables."""
pass
__all__ = ["__CMDGroup"]
| data/azure-cli-2.57.0/azure/cli/command_modules/network/aaz/profile_2020_09_01_hybrid/network/route_table/__cmd_group.py | 181 | 71 | 378,623 |
LOAD_CONST 0
LOAD_CONST ('DistanceIndicator', 'euclidean_distance')
IMPORT_NAME pymoo.indicators.distance_indicator
IMPORT_FROM DistanceIndicator
STORE_NAME DistanceIndicator
IMPORT_FROM euclidean_distance
STORE_NAME euclidean_distance
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object GD at 0x7fab42ba9660, file "f.py",... | from pymoo.indicators.distance_indicator import DistanceIndicator, euclidean_distance
class GD(DistanceIndicator):
def __init__(self, pf, **kwargs):
super().__init__(pf, euclidean_distance, 0, **kwargs)
| data/pymoo-0.6.1.1/pymoo/indicators/gd.py | 258 | 71 | 93,225 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.