input stringlengths 28 198k | output stringlengths 3 71k | file stringlengths 19 330 | input_tokens int64 5 159k | output_tokens int64 3 9.07k | __index_level_0__ int64 2 449k |
|---|---|---|---|---|---|
LOAD_CONST 0
LOAD_CONST ('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 AmericanMonteCarloMethod at 0x7fab701ac780, file "f.py"... | from enum import unique
from ...._base_enum import StrEnum
@unique
class AmericanMonteCarloMethod(StrEnum):
ANDERSEN = "Andersen"
LONGSTAFF_SCHWARTZ = "LongstaffSchwartz"
| data/refinitiv-data-1.6.0/refinitiv/data/content/ipa/_enums/_american_monte_carlo_method.py | 204 | 66 | 195,560 |
SETUP_EXCEPT to 24
LOAD_CONST 1
LOAD_CONST ('__version',)
IMPORT_NAME
IMPORT_FROM __version
STORE_NAME __version
POP_TOP
LOAD_NAME __version
LOAD_ATTR version
STORE_NAME __version__
POP_BLOCK
JUMP_FORWARD to 48
DUP_TOP
LOAD_NAME ImportError
COMPARE_OP exception match
POP_JUMP_IF_FALSE
POP_TOP
POP_TOP
POP_TOP
LOAD_C... | try:
from . import __version
__version__ = __version.version
except ImportError:
__version__ = "unknown"
__pypi_url__ = "https://pypi.python.org/pypi/pytest-html"
| data/pytest_html-4.1.1/src/pytest_html/__init__.py | 128 | 66 | 335,722 |
LOAD_CONST 0
LOAD_CONST ('*',)
IMPORT_NAME oslo_cache.core
IMPORT_STAR
LOAD_CONST 'configure'
LOAD_CONST 'configure_cache_region'
LOAD_CONST 'create_region'
LOAD_CONST 'get_memoization_decorator'
LOAD_CONST 'NO_VALUE'
BUILD_LIST
STORE_NAME __all__
LOAD_CONST None
RETURN_VALUE | from oslo_cache.core import * # noqa
__all__ = [
"configure",
"configure_cache_region",
"create_region",
"get_memoization_decorator",
"NO_VALUE",
]
| data/oslo.cache-3.6.0/oslo_cache/__init__.py | 77 | 66 | 168,115 |
LOAD_CONST 0
LOAD_CONST ('setup',)
IMPORT_NAME distutils.core
IMPORT_FROM setup
STORE_NAME setup
POP_TOP
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME snip_basic_verify1
STORE_NAME snip_basic_verify1
LOAD_NAME setup
LOAD_CONST 'snip_basic_verify1'
BUILD_LIST
LOAD_NAME snip_basic_verify1
LOAD_ATTR ffi
LOAD_ATTR verifier
... | from distutils.core import setup
import snip_basic_verify1
setup(
packages=["snip_basic_verify1"],
ext_modules=[snip_basic_verify1.ffi.verifier.get_extension()],
)
| data/cffi-1.16.0/testing/cffi0/snippets/distutils_package_1/setup.py | 118 | 66 | 54,131 |
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 'cairo'
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
L... | from PyInstaller.utils.hooks.gi import GiModuleInfo
module_info = GiModuleInfo("cairo", "1.0")
if module_info.available:
binaries, datas, hiddenimports = module_info.collect_typelib_data()
| data/pyinstaller-6.4.0/PyInstaller/hooks/hook-gi.repository.cairo.py | 110 | 66 | 185,150 |
LOAD_CONST '\n django-cleanup automatically deletes files for FileField, ImageField, and\n subclasses. It will delete old files when a new file is being save and it\n will delete files on model instance deletion.\n'
STORE_NAME __doc__
LOAD_CONST '8.1.0'
STORE_NAME __version__
LOAD_CONST None
RETURN_VALUE | """
django-cleanup automatically deletes files for FileField, ImageField, and
subclasses. It will delete old files when a new file is being save and it
will delete files on model instance deletion.
"""
__version__ = "8.1.0"
| data/django-cleanup-8.1.0/src/django_cleanup/__init__.py | 78 | 67 | 176,179 |
LOAD_CONST 1
LOAD_CONST ('DynamoDBStreamsHandler',)
IMPORT_NAME responses
IMPORT_FROM DynamoDBStreamsHandler
STORE_NAME DynamoDBStreamsHandler
POP_TOP
LOAD_CONST 'https?://streams\\.dynamodb\\.(.+)\\.amazonaws.com'
BUILD_LIST
STORE_NAME url_bases
LOAD_CONST '{0}/$'
LOAD_NAME DynamoDBStreamsHandler
LOAD_ATTR dispatch
... | from .responses import DynamoDBStreamsHandler
url_bases = [r"https?://streams\.dynamodb\.(.+)\.amazonaws.com"]
url_paths = {"{0}/$": DynamoDBStreamsHandler.dispatch}
| data/moto-5.0.2/moto/dynamodbstreams/urls.py | 105 | 67 | 198,412 |
LOAD_CONST 2
LOAD_CONST ('ShopifyResource',)
IMPORT_NAME base
IMPORT_FROM ShopifyResource
STORE_NAME ShopifyResource
POP_TOP
LOAD_CONST 0
LOAD_CONST ('mixins',)
IMPORT_NAME shopify
IMPORT_FROM mixins
STORE_NAME mixins
POP_TOP
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME shopify
STORE_NAME shopify
LOAD_BUILD_CLASS
LOAD_C... | from ..base import ShopifyResource
from shopify import mixins
import shopify
class Blog(ShopifyResource, mixins.Metafields, mixins.Events):
def articles(self):
return shopify.Article.find(blog_id=self.id)
| data/ShopifyAPI-12.4.0/shopify/resources/blog.py | 253 | 67 | 216,720 |
LOAD_CONST 0
LOAD_CONST ('ApiForget',)
IMPORT_NAME onelogin.paths.api_2_mappings_conditions_mapping_condition_value_values.get
IMPORT_FROM ApiForget
STORE_NAME ApiForget
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object Api2MappingsConditionsMappingConditionValueValues at 0x7f8e2ff5e6f0, file "f.py", line 6>
LOAD_CONST... | from onelogin.paths.api_2_mappings_conditions_mapping_condition_value_values.get import (
ApiForget,
)
class Api2MappingsConditionsMappingConditionValueValues(
ApiForget,
):
pass
| data/onelogin-3.1.6/onelogin/apis/paths/api_2_mappings_conditions_mapping_condition_value_values.py | 192 | 67 | 397,228 |
LOAD_CONST 0
LOAD_CONST ('to_latlon', 'from_latlon', 'latlon_to_zone_number', 'latitude_to_zone_letter', 'check_valid_zone')
IMPORT_NAME utm.conversion
IMPORT_FROM to_latlon
STORE_NAME to_latlon
IMPORT_FROM from_latlon
STORE_NAME from_latlon
IMPORT_FROM latlon_to_zone_number
STORE_NAME latlon_to_zone_number
IMPORT_FROM... | from utm.conversion import (
to_latlon,
from_latlon,
latlon_to_zone_number,
latitude_to_zone_letter,
check_valid_zone,
)
from utm.error import OutOfRangeError
| data/utm-0.7.0/utm/__init__.py | 171 | 67 | 305,743 |
LOAD_CONST 'Supports efficiency with skip connections.'
STORE_NAME __doc__
LOAD_CONST 1
LOAD_CONST ('Namespace',)
IMPORT_NAME namespace
IMPORT_FROM Namespace
STORE_NAME Namespace
POP_TOP
LOAD_CONST 1
LOAD_CONST ('pop', 'skippable', 'stash', 'verify_skippables')
IMPORT_NAME skippable
IMPORT_FROM pop
STORE_NAME pop
IMP... | """Supports efficiency with skip connections."""
from .namespace import Namespace
from .skippable import pop, skippable, stash, verify_skippables
__all__ = ["skippable", "stash", "pop", "verify_skippables", "Namespace"]
| data/fairscale-0.4.13/fairscale/nn/pipe/skip/__init__.py | 157 | 67 | 193,815 |
SETUP_ANNOTATIONS
LOAD_CONST 'Constants for the SwitchBot Cloud 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 ('Final',)
IMPORT_NAME typing
IMPORT_FROM Final
STORE_NAME Final
POP_TOP
LOAD_CONST '... | """Constants for the SwitchBot Cloud integration."""
from datetime import timedelta
from typing import Final
DOMAIN: Final = "switchbot_cloud"
ENTRY_TITLE = "SwitchBot Cloud"
SCAN_INTERVAL = timedelta(seconds=600)
| data/homeassistant-2024.2.2/homeassistant/components/switchbot_cloud/const.py | 146 | 67 | 298,494 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME sys
STORE_NAME sys
LOAD_NAME sys
LOAD_ATTR version_info
LOAD_ATTR major
LOAD_CONST 2
COMPARE_OP ==
POP_JUMP_IF_FALSE
LOAD_NAME str
LOAD_NAME unicode
BUILD_TUPLE
STORE_NAME text_types
LOAD_NAME float
LOAD_NAME int
LOAD_NAME long
BUILD_TUPLE
STORE_NAME numeric_types
JUMP_FORWAR... | import sys
if sys.version_info.major == 2:
text_types = (str, unicode)
numeric_types = (float, int, long)
else:
text_types = (str,)
numeric_types = (float, int)
| data/coreschema-0.0.4/coreschema/compat.py | 104 | 67 | 305,625 |
LOAD_CONST 0
LOAD_CONST ('include', 'path', 're_path')
IMPORT_NAME django.urls
IMPORT_FROM include
STORE_NAME include
IMPORT_FROM path
STORE_NAME path
IMPORT_FROM re_path
STORE_NAME re_path
POP_TOP
LOAD_NAME path
LOAD_CONST ''
LOAD_NAME include
LOAD_NAME re_path
LOAD_CONST '^include-with-dollar$'
LOAD_NAME include
... | from django.urls import include, path, re_path
urlpatterns = [
path(
"",
include(
[
re_path("^include-with-dollar$", include([])),
]
),
),
]
| data/Django-5.0.2/tests/check_framework/urls/warning_in_include.py | 105 | 67 | 325,948 |
LOAD_CONST <code object islocation at 0x7fab41503810, file "f.py", line 1>
LOAD_CONST 'islocation'
MAKE_FUNCTION
STORE_NAME islocation
LOAD_CONST <code object isstatuscode at 0x7fab415056f0, file "f.py", line 5>
LOAD_CONST 'isstatuscode'
MAKE_FUNCTION
STORE_NAME isstatuscode
LOAD_CONST None
RETURN_VALUE
LOAD_GLOBAL i... | def islocation(s):
return isinstance(s, str) and s.startswith("http") and s.endswith(".json")
def isstatuscode(c):
return isinstance(c, int) and 100 <= c <= 600
| data/zdesk-2.8.1/tests/zdesk_common.py | 198 | 67 | 374,473 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME pprint
STORE_NAME pprint
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME rasterio
STORE_NAME rasterio
LOAD_CONST 0
LOAD_CONST ('shapes',)
IMPORT_NAME rasterio.features
IMPORT_FROM shapes
STORE_NAME shapes
POP_TOP
LOAD_NAME rasterio
LOAD_METHOD open
LOAD_CONST 'tests/data/shade.tif'
... | import pprint
import rasterio
from rasterio.features import shapes
with rasterio.open("tests/data/shade.tif") as src:
image = src.read(1)
pprint.pprint(list(shapes(image))[:2])
| data/rasterio-1.3.9/examples/polygonize.py | 158 | 67 | 205,739 |
LOAD_CONST 2
LOAD_CONST ('ShopifyResource',)
IMPORT_NAME base
IMPORT_FROM ShopifyResource
STORE_NAME ShopifyResource
POP_TOP
LOAD_CONST 0
LOAD_CONST ('mixins',)
IMPORT_NAME shopify
IMPORT_FROM mixins
STORE_NAME mixins
POP_TOP
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME shopify
STORE_NAME shopify
LOAD_BUILD_CLASS
LOAD_C... | from ..base import ShopifyResource
from shopify import mixins
import shopify
class SmartCollection(ShopifyResource, mixins.Metafields, mixins.Events):
def products(self):
return shopify.Product.find(collection_id=self.id)
| data/ShopifyAPI-12.4.0/shopify/resources/smart_collection.py | 258 | 67 | 216,700 |
LOAD_CONST 0
LOAD_CONST ('absolute_import',)
IMPORT_NAME __future__
IMPORT_FROM absolute_import
STORE_NAME absolute_import
POP_TOP
LOAD_CONST 0
LOAD_CONST ('RolesApi',)
IMPORT_NAME hubspot.settings.users.api.roles_api
IMPORT_FROM RolesApi
STORE_NAME RolesApi
POP_TOP
LOAD_CONST 0
LOAD_CONST ('TeamsApi',)
IMPORT_NAME h... | from __future__ import absolute_import
from hubspot.settings.users.api.roles_api import RolesApi
from hubspot.settings.users.api.teams_api import TeamsApi
from hubspot.settings.users.api.users_api import UsersApi
| data/hubspot-api-client-8.2.1/hubspot/settings/users/api/__init__.py | 151 | 67 | 320,577 |
LOAD_CONST '\nThis subpackage implements the LLVM IR classes in pure python\n'
STORE_NAME __doc__
LOAD_CONST 1
LOAD_CONST ('*',)
IMPORT_NAME types
IMPORT_STAR
LOAD_CONST 1
LOAD_CONST ('*',)
IMPORT_NAME values
IMPORT_STAR
LOAD_CONST 1
LOAD_CONST ('*',)
IMPORT_NAME module
IMPORT_STAR
LOAD_CONST 1
LOAD_CONST ('*',)
IM... | """
This subpackage implements the LLVM IR classes in pure python
"""
from .types import *
from .values import *
from .module import *
from .builder import *
from .instructions import *
from .transforms import *
from .context import Context, global_context
| data/llvmlite-0.42.0/llvmlite/ir/__init__.py | 162 | 67 | 156,782 |
LOAD_CONST 0
LOAD_CONST ('CreateDraftMessageSchema', 'O365CreateDraftMessage')
IMPORT_NAME langchain_community.tools.office365.create_draft_message
IMPORT_FROM CreateDraftMessageSchema
STORE_NAME CreateDraftMessageSchema
IMPORT_FROM O365CreateDraftMessage
STORE_NAME O365CreateDraftMessage
POP_TOP
LOAD_CONST 'CreateDra... | from langchain_community.tools.office365.create_draft_message import (
CreateDraftMessageSchema,
O365CreateDraftMessage,
)
__all__ = ["CreateDraftMessageSchema", "O365CreateDraftMessage"]
| data/langchain-0.1.8/langchain/tools/office365/create_draft_message.py | 113 | 67 | 369,293 |
LOAD_BUILD_CLASS
LOAD_CONST <code object AppData at 0x7fab82049c90, file "f.py", line 1>
LOAD_CONST 'AppData'
MAKE_FUNCTION
LOAD_CONST 'AppData'
LOAD_NAME object
CALL_FUNCTION
STORE_NAME AppData
LOAD_CONST None
RETURN_VALUE
LOAD_NAME __name__
STORE_NAME __module__
LOAD_CONST 'AppData'
STORE_NAME __qualname__
LOAD_CON... | class AppData(object):
def __init__(self, app_name, branch_name, build_name, files):
self.appName = app_name
self.branchName = branch_name
self.buildName = build_name
self.files = files
| data/sealights-python-agent-1.5.5/python_agent/test_listener/entities/app_data.py | 196 | 67 | 156,985 |
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 CallKit
STORE_NAME CallKit
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME sys
STORE_NAME sys
LOAD_BUILD_CLASS
LOAD_CONST <code object TestCXCallDirectory at 0x... | from PyObjCTools.TestSupport import TestCase
import CallKit
import sys
class TestCXCallDirectory(TestCase):
def test_constants(self):
self.assertEqual(CallKit.CXCallDirectoryPhoneNumberMax, sys.maxsize - 1)
| data/pyobjc-framework-CallKit-10.1/PyObjCTest/test_cxcalldirectory.py | 268 | 67 | 57,883 |
LOAD_CONST 1
LOAD_CONST ('*',)
IMPORT_NAME evaluator
IMPORT_STAR
LOAD_CONST 1
LOAD_CONST ('*',)
IMPORT_NAME functional
IMPORT_STAR
LOAD_CONST 1
LOAD_CONST ('*',)
IMPORT_NAME metrics
IMPORT_STAR
LOAD_CONST None
RETURN_VALUE | from .evaluator import * # noqa: F401,F403
from .functional import * # noqa: F401,F403
from .metrics import * # noqa: F401,F403
| data/mmdet-3.3.0/mmdet/evaluation/__init__.py | 53 | 67 | 150,962 |
LOAD_CONST 1
LOAD_CONST ('GmpDeleteReportTestMixin',)
IMPORT_NAME test_delete_report
IMPORT_FROM GmpDeleteReportTestMixin
STORE_NAME GmpDeleteReportTestMixin
POP_TOP
LOAD_CONST 1
LOAD_CONST ('GmpGetReportTestMixin',)
IMPORT_NAME test_get_report
IMPORT_FROM GmpGetReportTestMixin
STORE_NAME GmpGetReportTestMixin
POP_TOP... | from .test_delete_report import GmpDeleteReportTestMixin
from .test_get_report import GmpGetReportTestMixin
from .test_get_reports import GmpGetReportsTestMixin
from .test_import_report import GmpImportReportTestMixin
| data/python_gvm-24.1.0/tests/protocols/gmpv208/entities/reports/__init__.py | 184 | 67 | 371,762 |
LOAD_CONST 1
LOAD_CONST ('ParseError',)
IMPORT_NAME _parse
IMPORT_FROM ParseError
STORE_NAME ParseError
POP_TOP
LOAD_CONST 1
LOAD_CONST ('Version',)
IMPORT_NAME _version
IMPORT_FROM Version
STORE_NAME Version
POP_TOP
LOAD_CONST ('Version', 'ParseError')
STORE_NAME __all__
LOAD_CONST 1
LOAD_CONST ('fixup_module_metad... | from ._parse import ParseError
from ._version import Version
__all__ = ("Version", "ParseError")
from ._helpers import fixup_module_metadata
fixup_module_metadata(__name__, globals())
del fixup_module_metadata
| data/parver-0.5/src/parver/__init__.py | 142 | 67 | 364,955 |
LOAD_CONST 0
LOAD_CONST ('events',)
IMPORT_NAME locust
IMPORT_FROM events
STORE_NAME events
POP_TOP
LOAD_CONST 0
LOAD_CONST ('CloudwatchAdapter',)
IMPORT_NAME locust_plugins.listeners.cloudwatch
IMPORT_FROM CloudwatchAdapter
STORE_NAME CloudwatchAdapter
POP_TOP
LOAD_NAME events
LOAD_ATTR init
LOAD_ATTR add_listener
L... | from locust import events
from locust_plugins.listeners.cloudwatch import CloudwatchAdapter
@events.init.add_listener
def on_locust_init(environment, **_kwargs):
CloudwatchAdapter(environment, "MyExampleService", "perf")
| data/locust-plugins-4.4.0/examples/cloudwatch_listener_ex.py | 167 | 67 | 419,908 |
LOAD_CONST '1.14.0'
STORE_NAME __version__
LOAD_CONST 1
LOAD_CONST ('get_boto3_session', 'login', 'list_available_accounts', 'list_available_roles')
IMPORT_NAME sso
IMPORT_FROM get_boto3_session
STORE_NAME get_boto3_session
IMPORT_FROM login
STORE_NAME login
IMPORT_FROM list_available_accounts
STORE_NAME list_availabl... | __version__ = "1.14.0" # change in pyproject.toml too
from .sso import get_boto3_session, login, list_available_accounts, list_available_roles
from .assignments import Assignment, list_assignments
| data/aws_sso_lib-1.14.0/aws_sso_lib/__init__.py | 159 | 67 | 8,833 |
LOAD_CONST 1
LOAD_CONST ('ClusterReplicationConfig', 'FailoverStatus', 'NamespaceReplicationConfig')
IMPORT_NAME message_pb2
IMPORT_FROM ClusterReplicationConfig
STORE_NAME ClusterReplicationConfig
IMPORT_FROM FailoverStatus
STORE_NAME FailoverStatus
IMPORT_FROM NamespaceReplicationConfig
STORE_NAME NamespaceReplicatio... | from .message_pb2 import (
ClusterReplicationConfig,
FailoverStatus,
NamespaceReplicationConfig,
)
__all__ = [
"ClusterReplicationConfig",
"FailoverStatus",
"NamespaceReplicationConfig",
]
| data/temporalio-1.5.0/temporalio/api/replication/v1/__init__.py | 109 | 67 | 133,131 |
LOAD_CONST 2
LOAD_CONST ('iso_register',)
IMPORT_NAME registry_tools
IMPORT_FROM iso_register
STORE_NAME iso_register
POP_TOP
LOAD_CONST 1
LOAD_CONST ('UnitedStates',)
IMPORT_NAME core
IMPORT_FROM UnitedStates
STORE_NAME UnitedStates
POP_TOP
LOAD_NAME iso_register
LOAD_CONST 'US-SD'
CALL_FUNCTION
LOAD_BUILD_CLASS
LOA... | from ..registry_tools import iso_register
from .core import UnitedStates
@iso_register("US-SD")
class SouthDakota(UnitedStates):
"""South Dakota"""
columbus_day_label = "Native Americans Day"
| data/workalendar-17.0.0/workalendar/usa/south_dakota.py | 211 | 67 | 132,075 |
LOAD_CONST '\nHelper module to hold the names to rename while doing refactoring to convert to pep8.\n'
STORE_NAME __doc__
LOAD_CONST '\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n'
STORE_NAME NAMES
LOAD_CONST None
RETURN_VALUE | """
Helper module to hold the names to rename while doing refactoring to convert to pep8.
"""
NAMES = """
"""
| data/pydevd-pycharm-241.12662.44/build_tools/names_to_rename.py | 112 | 67 | 347,397 |
LOAD_CONST '\ncelery_utils Django application initialization.\n'
STORE_NAME __doc__
LOAD_CONST 0
LOAD_CONST ('AppConfig',)
IMPORT_NAME django.apps
IMPORT_FROM AppConfig
STORE_NAME AppConfig
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object CeleryUtilsConfig at 0x7faac02aba50, file "f.py", line 8>
LOAD_CONST 'CeleryUti... | """
celery_utils Django application initialization.
"""
from django.apps import AppConfig
class CeleryUtilsConfig(AppConfig):
"""
Configuration for the celery_utils Django application.
"""
name = "celery_utils"
| data/edx-celeryutils-1.2.5/celery_utils/apps.py | 186 | 67 | 93,804 |
LOAD_CONST 0
LOAD_CONST ('MemoryBackend',)
IMPORT_NAME idempotency_header_middleware.backends.memory
IMPORT_FROM MemoryBackend
STORE_NAME MemoryBackend
POP_TOP
LOAD_CONST 0
LOAD_CONST ('RedisBackend',)
IMPORT_NAME idempotency_header_middleware.backends.redis
IMPORT_FROM RedisBackend
STORE_NAME RedisBackend
POP_TOP
LO... | from idempotency_header_middleware.backends.memory import MemoryBackend
from idempotency_header_middleware.backends.redis import RedisBackend
__all__ = (
"RedisBackend",
"MemoryBackend",
)
| data/asgi-idempotency-header-0.2.0/idempotency_header_middleware/backends/__init__.py | 109 | 67 | 160,934 |
LOAD_CONST 0
LOAD_CONST ('EventLogErrorFlags',)
IMPORT_NAME web3._utils.events
IMPORT_FROM EventLogErrorFlags
STORE_NAME EventLogErrorFlags
POP_TOP
LOAD_NAME EventLogErrorFlags
LOAD_ATTR Discard
STORE_NAME DISCARD
LOAD_NAME EventLogErrorFlags
LOAD_ATTR Ignore
STORE_NAME IGNORE
LOAD_NAME EventLogErrorFlags
LOAD_ATTR ... | from web3._utils.events import (
EventLogErrorFlags,
)
DISCARD = EventLogErrorFlags.Discard
IGNORE = EventLogErrorFlags.Ignore
STRICT = EventLogErrorFlags.Strict
WARN = EventLogErrorFlags.Warn
| data/web3-6.15.1/web3/logs.py | 104 | 67 | 152,954 |
LOAD_CONST <code object create_simple_aggregate_function_column at 0x7f8aa43cb930, file "f.py", line 1>
LOAD_CONST 'create_simple_aggregate_function_column'
MAKE_FUNCTION
STORE_NAME create_simple_aggregate_function_column
LOAD_CONST None
RETURN_VALUE
LOAD_FAST spec
LOAD_CONST 24
LOAD_CONST -1
BUILD_SLICE
BINARY_SUBSCR... | def create_simple_aggregate_function_column(spec, column_by_spec_getter):
inner = spec[24:-1].split(",", 1)[1].strip()
nested = column_by_spec_getter(inner)
return nested
| data/asynch-0.2.3/asynch/proto/columns/simpleaggregatefunctioncolumn.py | 145 | 67 | 427,524 |
LOAD_CONST 1
LOAD_CONST ('TimeExtension',)
IMPORT_NAME jinja2_time
IMPORT_FROM TimeExtension
STORE_NAME TimeExtension
POP_TOP
LOAD_CONST 'Raphael Pierzina'
STORE_NAME __author__
LOAD_CONST 'raphael@hackebrot.de'
STORE_NAME __email__
LOAD_CONST '0.2.0'
STORE_NAME __version__
LOAD_CONST 'TimeExtension'
BUILD_LIST
STO... | from .jinja2_time import TimeExtension
__author__ = "Raphael Pierzina"
__email__ = "raphael@hackebrot.de"
__version__ = "0.2.0"
__all__ = ["TimeExtension"]
| data/jinja2-time-0.2.0/jinja2_time/__init__.py | 99 | 67 | 310,145 |
LOAD_CONST 0
LOAD_CONST ('Union',)
IMPORT_NAME typing
IMPORT_FROM Union
STORE_NAME Union
POP_TOP
LOAD_CONST 'UNION_TYPES'
BUILD_LIST
STORE_NAME __all__
SETUP_EXCEPT to 44
LOAD_CONST 0
LOAD_CONST ('UnionType',)
IMPORT_NAME types
IMPORT_FROM UnionType
STORE_NAME UnionType
POP_TOP
LOAD_NAME Union
LOAD_NAME UnionType
B... | from typing import Union
__all__ = ["UNION_TYPES"]
try:
from types import UnionType
UNION_TYPES = (Union, UnionType)
except ImportError:
UNION_TYPES = (Union,)
| data/django_ninja-1.1.0/ninja/compatibility/util.py | 147 | 67 | 88,534 |
LOAD_CONST 0
LOAD_CONST ('setup',)
IMPORT_NAME setuptools
IMPORT_FROM setup
STORE_NAME setup
POP_TOP
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME versioneer
STORE_NAME versioneer
LOAD_NAME __name__
LOAD_CONST '__main__'
COMPARE_OP ==
POP_JUMP_IF_FALSE
LOAD_NAME setup
LOAD_CONST 'ci-info'
LOAD_NAME versioneer
LOAD_METH... | from setuptools import setup
import versioneer
if __name__ == "__main__":
setup(
name="ci-info",
version=versioneer.get_version(),
cmdclass=versioneer.get_cmdclass(),
)
| data/ci-info-0.3.0/setup.py | 118 | 67 | 52,057 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME logging
STORE_NAME logging
LOAD_CONST 0
LOAD_CONST ('__version__',)
IMPORT_NAME pyvirtualdisplay.about
IMPORT_FROM __version__
STORE_NAME __version__
POP_TOP
LOAD_CONST 0
LOAD_CONST ('Display',)
IMPORT_NAME pyvirtualdisplay.display
IMPORT_FROM Display
STORE_NAME Display
POP_TO... | import logging
from pyvirtualdisplay.about import __version__
from pyvirtualdisplay.display import Display
Display # ignore unused
log = logging.getLogger(__name__)
log = logging.getLogger(__name__)
log.debug("version=%s", __version__)
| data/PyVirtualDisplay-3.0/pyvirtualdisplay/__init__.py | 142 | 67 | 428,835 |
LOAD_CONST "Constants for the Vogel's MotionMount integration."
STORE_NAME __doc__
LOAD_CONST 'motionmount'
STORE_NAME DOMAIN
LOAD_CONST '00:00:00:00:00:00'
STORE_NAME EMPTY_MAC
LOAD_CONST '0_wall'
STORE_NAME WALL_PRESET_NAME
LOAD_CONST None
RETURN_VALUE | """Constants for the Vogel's MotionMount integration."""
DOMAIN = "motionmount"
EMPTY_MAC = "00:00:00:00:00:00"
WALL_PRESET_NAME = "0_wall"
| data/homeassistant-2024.2.2/homeassistant/components/motionmount/const.py | 84 | 67 | 297,408 |
LOAD_CONST <code object create_simple_aggregate_function_column at 0x7fae2f404b70, file "f.py", line 1>
LOAD_CONST 'create_simple_aggregate_function_column'
MAKE_FUNCTION
STORE_NAME create_simple_aggregate_function_column
LOAD_CONST None
RETURN_VALUE
LOAD_FAST spec
LOAD_CONST 24
LOAD_CONST -1
BUILD_SLICE
BINARY_SUBSCR... | def create_simple_aggregate_function_column(spec, column_by_spec_getter):
inner = spec[24:-1].split(",", 1)[1].strip()
nested = column_by_spec_getter(inner)
return nested
| data/clickhouse-driver-0.2.7/clickhouse_driver/columns/simpleaggregatefunctioncolumn.py | 146 | 67 | 305,055 |
SETUP_EXCEPT to 18
LOAD_CONST 1
LOAD_CONST ('__version__',)
IMPORT_NAME _version
IMPORT_FROM __version__
STORE_NAME __version__
POP_TOP
POP_BLOCK
JUMP_FORWARD to 92
DUP_TOP
LOAD_NAME ImportError
COMPARE_OP exception match
POP_JUMP_IF_FALSE
POP_TOP
POP_TOP
POP_TOP
LOAD_CONST 0
LOAD_CONST ('version', 'PackageNotFoundE... | try:
from ._version import __version__
except ImportError:
from importlib.metadata import version, PackageNotFoundError
try:
__version__ = version("docker")
except PackageNotFoundError:
__version__ = "0.0.0"
| data/docker-7.0.0/docker/version.py | 192 | 67 | 132,529 |
LOAD_CONST 0
LOAD_CONST ('EmbeddingsContentHandler', 'SagemakerEndpointEmbeddings')
IMPORT_NAME langchain_community.embeddings.sagemaker_endpoint
IMPORT_FROM EmbeddingsContentHandler
STORE_NAME EmbeddingsContentHandler
IMPORT_FROM SagemakerEndpointEmbeddings
STORE_NAME SagemakerEndpointEmbeddings
POP_TOP
LOAD_CONST 'E... | from langchain_community.embeddings.sagemaker_endpoint import (
EmbeddingsContentHandler,
SagemakerEndpointEmbeddings,
)
__all__ = ["EmbeddingsContentHandler", "SagemakerEndpointEmbeddings"]
| data/langchain-0.1.8/langchain/embeddings/sagemaker_endpoint.py | 116 | 67 | 368,866 |
LOAD_CONST "\nURLs for edX Enterprise's Consent application.\n"
STORE_NAME __doc__
LOAD_CONST 0
LOAD_CONST ('include', 'path')
IMPORT_NAME django.urls
IMPORT_FROM include
STORE_NAME include
IMPORT_FROM path
STORE_NAME path
POP_TOP
LOAD_NAME path
LOAD_CONST 'consent/api/'
LOAD_NAME include
LOAD_CONST 'consent.api.urls... | """
URLs for edX Enterprise's Consent application.
"""
from django.urls import include, path
urlpatterns = [
path("consent/api/", include("consent.api.urls"), name="consent_api"),
]
| data/edx-enterprise-4.12.1/consent/urls.py | 114 | 67 | 91,783 |
LOAD_CONST 0
LOAD_CONST ('SETTINGS',)
IMPORT_NAME catalyst.settings
IMPORT_FROM SETTINGS
STORE_NAME SETTINGS
POP_TOP
LOAD_CONST 0
LOAD_CONST ('MnistBatchNormNet', 'MnistSimpleNet')
IMPORT_NAME catalyst.contrib.models.mnist
IMPORT_FROM MnistBatchNormNet
STORE_NAME MnistBatchNormNet
IMPORT_FROM MnistSimpleNet
STORE_NAME... | from catalyst.settings import SETTINGS
from catalyst.contrib.models.mnist import MnistBatchNormNet, MnistSimpleNet
if SETTINGS.cv_required:
from catalyst.contrib.models.resnet_encoder import ResnetEncoder
| data/catalyst-22.4/catalyst/contrib/models/__init__.py | 156 | 67 | 191,686 |
LOAD_CONST 'Exceptions raised by the quicksight service.'
STORE_NAME __doc__
LOAD_CONST 0
LOAD_CONST ('JsonRESTError',)
IMPORT_NAME moto.core.exceptions
IMPORT_FROM JsonRESTError
STORE_NAME JsonRESTError
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object ResourceNotFoundException at 0x7fab82343030, file "f.py", line 6>... | """Exceptions raised by the quicksight service."""
from moto.core.exceptions import JsonRESTError
class ResourceNotFoundException(JsonRESTError):
def __init__(self, msg: str):
super().__init__("ResourceNotFoundException", msg)
| data/moto-5.0.2/moto/quicksight/exceptions.py | 265 | 67 | 198,469 |
LOAD_CONST 0
LOAD_CONST ('AppConfig',)
IMPORT_NAME django.apps
IMPORT_FROM AppConfig
STORE_NAME AppConfig
POP_TOP
LOAD_CONST 0
LOAD_CONST ('gettext_lazy',)
IMPORT_NAME django.utils.translation
IMPORT_FROM gettext_lazy
STORE_NAME _
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object RefreshTokenConfig at 0x7fab5433ddb0, ... | from django.apps import AppConfig
from django.utils.translation import gettext_lazy as _
class RefreshTokenConfig(AppConfig):
name = "graphql_jwt.refresh_token"
verbose_name = _("Refresh token")
| data/django_graphql_jwt-0.4.0/graphql_jwt/refresh_token/apps.py | 201 | 67 | 300,662 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME random
STORE_NAME random
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME string
STORE_NAME string
LOAD_NAME int
LOAD_NAME str
LOAD_CONST ('length', 'return')
BUILD_CONST_KEY_MAP
LOAD_CONST <code object generate_random_alpha_num_str at 0x7fab82131810, file "f.py", line 5>
LOAD_CONST '... | import random
import string
def generate_random_alpha_num_str(length: int) -> str:
return "".join(
random.choice(string.ascii_lowercase + string.digits) for _ in range(length)
)
| data/soda-core-3.2.1/soda/common/random_helper.py | 253 | 67 | 305,316 |
LOAD_CONST 0
LOAD_CONST ('BaseCommand', 'no_translations')
IMPORT_NAME django.core.management.base
IMPORT_FROM BaseCommand
STORE_NAME BaseCommand
IMPORT_FROM no_translations
STORE_NAME no_translations
POP_TOP
LOAD_CONST 0
LOAD_CONST ('translation',)
IMPORT_NAME django.utils
IMPORT_FROM translation
STORE_NAME translati... | from django.core.management.base import BaseCommand, no_translations
from django.utils import translation
class Command(BaseCommand):
@no_translations
def handle(self, *args, **options):
return translation.get_language()
| data/Django-5.0.2/tests/user_commands/management/commands/no_translations.py | 232 | 67 | 325,983 |
LOAD_NAME __name__
LOAD_CONST '__main__'
COMPARE_OP ==
POP_JUMP_IF_FALSE
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME http.client
STORE_NAME http
LOAD_NAME id
LOAD_NAME http
LOAD_ATTR client
CALL_FUNCTION
STORE_NAME original_id
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME eventlet.green.http.client
STORE_NAME eventlet
LOAD... | if __name__ == "__main__":
import http.client
original_id = id(http.client)
import eventlet.green.http.client # noqa
assert id(http.client) == original_id
print("pass")
| data/eventlet-0.35.1/tests/isolated/green_http_doesnt_change_original_module.py | 119 | 67 | 361,871 |
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 MultipeerConnectivity
STORE_NAME MultipeerConnectivity
LOAD_BUILD_CLASS
LOAD_CONST <code object TestCallableMetadata at 0x7f8e2fec3e40, file "f.py", line ... | from PyObjCTools.TestSupport import TestCase
import MultipeerConnectivity
class TestCallableMetadata(TestCase):
def test_callable_metadata_is_sane(self):
self.assertCallableMetadataIsSane(MultipeerConnectivity)
| data/pyobjc-framework-MultipeerConnectivity-10.1/PyObjCTest/test_multipeerconnectivity.py | 260 | 67 | 329,100 |
LOAD_NAME __name__
LOAD_CONST '__main__'
COMPARE_OP ==
POP_JUMP_IF_FALSE
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME http.client
STORE_NAME http
LOAD_NAME id
LOAD_NAME http
LOAD_ATTR client
CALL_FUNCTION
STORE_NAME original_id
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME eventlet.green.httplib
STORE_NAME eventlet
LOAD_NAM... | if __name__ == "__main__":
import http.client
original_id = id(http.client)
import eventlet.green.httplib # noqa
assert id(http.client) == original_id
print("pass")
| data/eventlet-0.35.1/tests/isolated/green_httplib_doesnt_change_original_module.py | 119 | 67 | 361,883 |
LOAD_CONST 'mask-rcnn_r50_fpn_rpn-2conv_4conv1fc_syncbn-all_lsj-100e_coco.py'
STORE_NAME _base_
LOAD_NAME dict
LOAD_NAME dict
LOAD_CONST 2
LOAD_CONST ('times',)
CALL_FUNCTION
LOAD_CONST ('dataset',)
CALL_FUNCTION
STORE_NAME train_dataloader
LOAD_CONST None
RETURN_VALUE | _base_ = "mask-rcnn_r50_fpn_rpn-2conv_4conv1fc_syncbn-all_lsj-100e_coco.py"
train_dataloader = dict(dataset=dict(times=2))
| data/mmdet-3.3.0/mmdet/.mim/configs/strong_baselines/mask-rcnn_r50_fpn_rpn-2conv_4conv1fc_syncbn-all_lsj-50e_coco.py | 89 | 67 | 151,606 |
LOAD_CONST 0
LOAD_CONST ('AppConfig',)
IMPORT_NAME django.apps
IMPORT_FROM AppConfig
STORE_NAME AppConfig
POP_TOP
LOAD_CONST 0
LOAD_CONST ('gettext_lazy',)
IMPORT_NAME django.utils.translation
IMPORT_FROM gettext_lazy
STORE_NAME _
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object AdminDocsConfig at 0x7f8af04b8e40, fil... | from django.apps import AppConfig
from django.utils.translation import gettext_lazy as _
class AdminDocsConfig(AppConfig):
name = "django.contrib.admindocs"
verbose_name = _("Administrative Documentation")
| data/Django-5.0.2/django/contrib/admindocs/apps.py | 203 | 67 | 326,672 |
LOAD_CONST '\nAer Provider Simulator Backends\n'
STORE_NAME __doc__
LOAD_CONST 1
LOAD_CONST ('AerSimulator',)
IMPORT_NAME aer_simulator
IMPORT_FROM AerSimulator
STORE_NAME AerSimulator
POP_TOP
LOAD_CONST 1
LOAD_CONST ('QasmSimulator',)
IMPORT_NAME qasm_simulator
IMPORT_FROM QasmSimulator
STORE_NAME QasmSimulator
POP_... | """
Aer Provider Simulator Backends
"""
from .aer_simulator import AerSimulator
from .qasm_simulator import QasmSimulator
from .statevector_simulator import StatevectorSimulator
from .unitary_simulator import UnitarySimulator
| data/qiskit-aer-0.13.3/qiskit_aer/backends/__init__.py | 163 | 67 | 53,063 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME numpy
STORE_NAME np
LOAD_CONST 0
LOAD_CONST ('OpRunUnaryNum',)
IMPORT_NAME onnx.reference.ops._op
IMPORT_FROM OpRunUnaryNum
STORE_NAME OpRunUnaryNum
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object Asinh at 0x7fab82053ae0, file "f.py", line 6>
LOAD_CONST 'Asinh'
MAKE_FUNCTION
... | import numpy as np
from onnx.reference.ops._op import OpRunUnaryNum
class Asinh(OpRunUnaryNum):
def _run(self, x): # type: ignore
return (np.arcsinh(x),)
| data/onnx-simplifier-0.4.35/third_party/onnx-optimizer/third_party/onnx/onnx/reference/ops/op_asinh.py | 223 | 67 | 309,633 |
LOAD_CONST 0
LOAD_CONST ('Enum',)
IMPORT_NAME enum
IMPORT_FROM Enum
STORE_NAME Enum
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object BaseMapProvider at 0x7fab41257ed0, file "f.py", line 4>
LOAD_CONST 'BaseMapProvider'
MAKE_FUNCTION
LOAD_CONST 'BaseMapProvider'
LOAD_NAME Enum
CALL_FUNCTION
STORE_NAME BaseMapProvider
LO... | from enum import Enum
class BaseMapProvider(Enum):
"""Basemap provider available in pydeck"""
MAPBOX = "mapbox"
GOOGLE_MAPS = "google_maps"
CARTO = "carto"
| data/pydeck-0.8.0/pydeck/bindings/base_map_provider.py | 181 | 67 | 348,053 |
LOAD_CONST 'Config flow for MyQ integration.'
STORE_NAME __doc__
LOAD_CONST 0
LOAD_CONST ('config_entries',)
IMPORT_NAME homeassistant
IMPORT_FROM config_entries
STORE_NAME config_entries
POP_TOP
LOAD_CONST 1
LOAD_CONST ('DOMAIN',)
IMPORT_NAME
IMPORT_FROM DOMAIN
STORE_NAME DOMAIN
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST ... | """Config flow for MyQ integration."""
from homeassistant import config_entries
from . import DOMAIN
class ConfigFlow(config_entries.ConfigFlow, domain=DOMAIN):
"""Handle a config flow for MyQ."""
VERSION = 1
| data/homeassistant-2024.2.2/homeassistant/components/myq/config_flow.py | 207 | 67 | 296,734 |
LOAD_BUILD_CLASS
LOAD_CONST <code object BackingJar at 0x7fab823c29c0, file "f.py", line 1>
LOAD_CONST 'BackingJar'
MAKE_FUNCTION
LOAD_CONST 'BackingJar'
LOAD_NAME object
CALL_FUNCTION
STORE_NAME BackingJar
LOAD_CONST None
RETURN_VALUE
LOAD_NAME __name__
STORE_NAME __module__
LOAD_CONST 'BackingJar'
STORE_NAME __qualn... | class BackingJar(object):
@staticmethod
def getName():
return "sparkling_water_assembly.jar"
@staticmethod
def getRelativePath():
return "sparkling_water/" + BackingJar.getName()
| data/h2o_pysparkling_3.1-3.44.0.3.post1/ai/h2o/sparkling/BackingJar.py | 262 | 67 | 27,185 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME os
STORE_NAME os
LOAD_NAME os
LOAD_ATTR environ
LOAD_METHOD get
LOAD_CONST 'PYOPENGL_PLATFORM'
CALL_METHOD
POP_JUMP_IF_TRUE
LOAD_CONST 'egl'
LOAD_NAME os
LOAD_ATTR environ
LOAD_CONST 'PYOPENGL_PLATFORM'
STORE_SUBSCR
LOAD_CONST 0
LOAD_CONST ('GLES1',)
IMPORT_NAME OpenGL
IMPORT... | import os
if not os.environ.get("PYOPENGL_PLATFORM"):
os.environ["PYOPENGL_PLATFORM"] = "egl"
from OpenGL import GLES1
from OpenGL.arrays.vbo import VBO
| data/PyOpenGL-3.1.7/tests/importtests.py | 134 | 67 | 58,550 |
SETUP_ANNOTATIONS
LOAD_CONST 'Constants for the CPU Speed integration.'
STORE_NAME __doc__
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME logging
STORE_NAME logging
LOAD_CONST 0
LOAD_CONST ('Final',)
IMPORT_NAME typing
IMPORT_FROM Final
STORE_NAME Final
POP_TOP
LOAD_CONST 0
LOAD_CONST ('Platform',)
IMPORT_NAME homeassista... | """Constants for the CPU Speed integration."""
import logging
from typing import Final
from homeassistant.const import Platform
DOMAIN: Final = "cpuspeed"
PLATFORMS = [Platform.SENSOR]
LOGGER = logging.getLogger(__package__)
| data/homeassistant-2024.2.2/homeassistant/components/cpuspeed/const.py | 150 | 67 | 296,845 |
LOAD_CONST '\nhelp_tokens Django application initialization.\n'
STORE_NAME __doc__
LOAD_CONST 0
LOAD_CONST ('AppConfig',)
IMPORT_NAME django.apps
IMPORT_FROM AppConfig
STORE_NAME AppConfig
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object HelpTokensConfig at 0x7fa9834fdc90, file "f.py", line 8>
LOAD_CONST 'HelpTokensC... | """
help_tokens Django application initialization.
"""
from django.apps import AppConfig
class HelpTokensConfig(AppConfig):
"""
Configuration for the help_tokens Django application.
"""
name = "help_tokens"
| data/help-tokens-2.3.0/help_tokens/apps.py | 185 | 67 | 203,171 |
LOAD_CONST 0
LOAD_CONST ('Input',)
IMPORT_NAME curtsies
IMPORT_FROM Input
STORE_NAME Input
POP_TOP
LOAD_CONST <code object main at 0x7fab80248d20, file "f.py", line 4>
LOAD_CONST 'main'
MAKE_FUNCTION
STORE_NAME main
LOAD_NAME __name__
LOAD_CONST '__main__'
COMPARE_OP ==
POP_JUMP_IF_FALSE
LOAD_NAME main
CALL_FUNCTION... | from curtsies import Input
def main():
with Input(keynames="curses") as input_generator:
for e in input_generator:
print(repr(e))
if __name__ == "__main__":
main()
| data/curtsies-0.4.2/examples/curses_keys.py | 188 | 67 | 213,491 |
LOAD_BUILD_CLASS
LOAD_CONST <code object ErrorAttributes at 0x7fabdc1d0c00, file "f.py", line 1>
LOAD_CONST 'ErrorAttributes'
MAKE_FUNCTION
LOAD_CONST 'ErrorAttributes'
CALL_FUNCTION
STORE_NAME ErrorAttributes
LOAD_CONST 'utf-8'
STORE_NAME DEFAULT_ENCODING
LOAD_BUILD_CLASS
LOAD_CONST <code object HttpHeaders at 0x7fa... | class ErrorAttributes:
CODE = "Code"
ERROR = "Error"
MESSAGE = "Message"
DEFAULT_ENCODING = "utf-8"
class HttpHeaders:
ErrorType = "x-amzn-ErrorType"
| data/moto-5.0.2/tests/test_redshiftdata/test_redshiftdata_constants.py | 235 | 67 | 197,287 |
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 Category at 0x7f8b2000b420, file "f.py", line 4>
LOAD_CONST 'Category'
MAKE_FUNCTION
LOAD_CONST 'Category'
LOAD_NAME models
LOAD_ATTR Model
CALL_FUNCTION
STORE_NAME Category
... | from django.db import models
class Category(models.Model):
name = models.CharField(max_length=100)
class CategoryInfo(models.Model):
category = models.OneToOneField(Category, models.CASCADE)
| data/Django-5.0.2/tests/utils_tests/models.py | 259 | 67 | 325,591 |
LOAD_CONST 1
LOAD_CONST ('_OpenStack',)
IMPORT_NAME
IMPORT_FROM _OpenStack
STORE_NAME _OpenStack
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object _Frontend at 0x7fab703bbae0, file "f.py", line 4>
LOAD_CONST '_Frontend'
MAKE_FUNCTION
LOAD_CONST '_Frontend'
LOAD_NAME _OpenStack
CALL_FUNCTION
STORE_NAME _Frontend
LOAD_B... | from . import _OpenStack
class _Frontend(_OpenStack):
_type = "frontend"
_icon_dir = "resources/openstack/frontend"
class Horizon(_Frontend):
_icon = "horizon.png"
| data/diagrams-0.23.4/diagrams/openstack/frontend.py | 257 | 67 | 205,946 |
LOAD_CONST 1
LOAD_CONST ('_OnPrem',)
IMPORT_NAME
IMPORT_FROM _OnPrem
STORE_NAME _OnPrem
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object _Etl at 0x7fab70246e40, file "f.py", line 4>
LOAD_CONST '_Etl'
MAKE_FUNCTION
LOAD_CONST '_Etl'
LOAD_NAME _OnPrem
CALL_FUNCTION
STORE_NAME _Etl
LOAD_BUILD_CLASS
LOAD_CONST <code obje... | from . import _OnPrem
class _Etl(_OnPrem):
_type = "etl"
_icon_dir = "resources/onprem/etl"
class Embulk(_Etl):
_icon = "embulk.png"
| data/diagrams-0.23.4/diagrams/onprem/etl.py | 257 | 67 | 205,984 |
LOAD_CONST 'some helper function for principal component and time series analysis\n\n\nStatus\n------\npca : tested against matlab\npcasvd : tested against matlab\n'
STORE_NAME __doc__
LOAD_CONST 'pca'
LOAD_CONST 'pcasvd'
BUILD_LIST
STORE_NAME __all__
LOAD_CONST 1
LOAD_CONST ('pca', 'pcasvd')
IMPORT_NAME tools_pca
IM... | """some helper function for principal component and time series analysis
Status
------
pca : tested against matlab
pcasvd : tested against matlab
"""
__all__ = ["pca", "pcasvd"]
from .tools_pca import pca, pcasvd
| data/statsmodels-0.14.1/statsmodels/sandbox/tools/__init__.py | 117 | 67 | 202,115 |
LOAD_CONST '\nraven.scripts\n~~~~~~~~~~~~~\n\n:copyright: (c) 2012 by the Sentry Team, see AUTHORS for more details.\n:license: BSD, see LICENSE for more details.\n'
STORE_NAME __doc__
LOAD_CONST 0
LOAD_CONST ('absolute_import',)
IMPORT_NAME __future__
IMPORT_FROM absolute_import
STORE_NAME absolute_import
POP_TOP
LOA... | """
raven.scripts
~~~~~~~~~~~~~
:copyright: (c) 2012 by the Sentry Team, see AUTHORS for more details.
:license: BSD, see LICENSE for more details.
"""
from __future__ import absolute_import
| data/raven-6.10.0/raven/scripts/__init__.py | 101 | 67 | 373,972 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME sys
STORE_NAME sys
LOAD_NAME sys
LOAD_ATTR argv
LOAD_CONST -1
BINARY_SUBSCR
STORE_NAME out
LOAD_NAME open
LOAD_NAME out
LOAD_CONST 'wb'
CALL_FUNCTION
SETUP_WITH to 94
STORE_NAME o
SETUP_LOOP to 90
LOAD_NAME sys
LOAD_ATTR argv
LOAD_CONST 1
LOAD_CONST -1
BUILD_SLICE
BINARY_SUBS... | import sys
out = sys.argv[-1]
with open(out, "wb") as o:
for infile in sys.argv[1:-1]:
with open(infile, "rb") as f:
o.write(f.read())
| data/numpy-1.26.4/vendored-meson/meson/test cases/failing/40 custom target plainname many inputs/catfiles.py | 166 | 67 | 363,828 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME pycdlib
STORE_NAME pycdlib
LOAD_NAME pycdlib
LOAD_METHOD PyCdlib
CALL_METHOD
STORE_NAME iso
LOAD_NAME iso
LOAD_METHOD open
LOAD_CONST '\\\\.\\D:'
CALL_METHOD
POP_TOP
SETUP_LOOP to 60
LOAD_NAME iso
LOAD_ATTR list_children
LOAD_CONST '/'
LOAD_CONST ('iso_path',)
CALL_FUNCTION
G... | import pycdlib
iso = pycdlib.PyCdlib()
iso.open(r"\\.\D:")
for child in iso.list_children(iso_path="/"):
print(child.file_identifier())
iso.close()
| data/pycdlib-1.14.0/examples/open-raw-windows-device.py | 135 | 67 | 423,957 |
LOAD_CONST 0
LOAD_CONST ('gapic_version',)
IMPORT_NAME google.events.firebase.database
IMPORT_FROM gapic_version
STORE_NAME package_version
POP_TOP
LOAD_NAME package_version
LOAD_ATTR __version__
STORE_NAME __version__
LOAD_CONST 0
LOAD_CONST ('ReferenceEventData',)
IMPORT_NAME google.events.firebase.database_v1.type... | from google.events.firebase.database import gapic_version as package_version
__version__ = package_version.__version__
from google.events.firebase.database_v1.types.data import ReferenceEventData
__all__ = ("ReferenceEventData",)
| data/google-events-0.11.0/src/google/events/firebase/database/__init__.py | 113 | 67 | 13,211 |
LOAD_CONST 0
LOAD_CONST ('unique',)
IMPORT_NAME enum
IMPORT_FROM unique
STORE_NAME unique
POP_TOP
LOAD_CONST 5
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 StrikeType at 0x7fab700e4c90, file "f.py", line 6>
LOAD... | from enum import unique
from ....._base_enum import StrEnum
@unique
class StrikeType(StrEnum):
ABSOLUTE_PERCENT = "AbsolutePercent"
RELATIVE_PERCENT = "RelativePercent"
| data/refinitiv-data-1.6.0/refinitiv/data/content/ipa/surfaces/_enums/_strike_type.py | 196 | 67 | 195,485 |
LOAD_CONST 1
LOAD_CONST ('render_results',)
IMPORT_NAME results
IMPORT_FROM render_results
STORE_NAME render_results
POP_TOP
LOAD_CONST 1
LOAD_CONST ('render_categories',)
IMPORT_NAME categories
IMPORT_FROM render_categories
STORE_NAME render_categories
POP_TOP
LOAD_CONST 1
LOAD_CONST ('render_rulegraph',)
IMPORT_NAM... | from .results import render_results
from .categories import render_categories
from .rulegraph import render_rulegraph
from .rules import render_rules
from .runtimes import render_runtimes
from .timeline import render_timeline
from .packages import get_packages
| data/snakemake-8.4.12/snakemake/report/data/__init__.py | 219 | 67 | 327,994 |
LOAD_BUILD_CLASS
LOAD_CONST <code object MemCacheReference at 0x7fab821316f0, file "f.py", line 1>
LOAD_CONST 'MemCacheReference'
MAKE_FUNCTION
LOAD_CONST 'MemCacheReference'
LOAD_NAME object
CALL_FUNCTION
STORE_NAME MemCacheReference
LOAD_CONST None
RETURN_VALUE
LOAD_NAME __name__
STORE_NAME __module__
LOAD_CONST 'Me... | class MemCacheReference(object):
__slots__ = "expr_id", "ref_name"
def __init__(self, expr_id, ref_name):
self.expr_id = expr_id
self.ref_name = ref_name
| data/pyodps-0.11.5.post0/odps/df/backends/odpssql/models.py | 201 | 67 | 299,617 |
LOAD_CONST 1
LOAD_CONST ('_OpenStack',)
IMPORT_NAME
IMPORT_FROM _OpenStack
STORE_NAME _OpenStack
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object _NFV at 0x7fab703bb660, file "f.py", line 4>
LOAD_CONST '_NFV'
MAKE_FUNCTION
LOAD_CONST '_NFV'
LOAD_NAME _OpenStack
CALL_FUNCTION
STORE_NAME _NFV
LOAD_BUILD_CLASS
LOAD_CONS... | from . import _OpenStack
class _NFV(_OpenStack):
_type = "nfv"
_icon_dir = "resources/openstack/nfv"
class Tacker(_NFV):
_icon = "tacker.png"
| data/diagrams-0.23.4/diagrams/openstack/nfv.py | 253 | 67 | 205,951 |
LOAD_CONST 'Register hooks for the plugin.'
STORE_NAME __doc__
LOAD_CONST 0
LOAD_CONST ('hookimpl',)
IMPORT_NAME hatchling.plugin
IMPORT_FROM hookimpl
STORE_NAME hookimpl
POP_TOP
LOAD_CONST 1
LOAD_CONST ('JupyterBuildHook',)
IMPORT_NAME plugin
IMPORT_FROM JupyterBuildHook
STORE_NAME JupyterBuildHook
POP_TOP
LOAD_NAM... | """Register hooks for the plugin."""
from hatchling.plugin import hookimpl
from .plugin import JupyterBuildHook
@hookimpl
def hatch_register_build_hook():
"""Get the hook implementation."""
return JupyterBuildHook
| data/hatch_jupyter_builder-0.8.3/hatch_jupyter_builder/hooks.py | 166 | 67 | 61,418 |
LOAD_CONST 0
LOAD_CONST ('type_util',)
IMPORT_NAME benedict.utils
IMPORT_FROM type_util
STORE_NAME type_util
POP_TOP
LOAD_CONST <code object remove at 0x7fab80248d20, file "f.py", line 4>
LOAD_CONST 'remove'
MAKE_FUNCTION
STORE_NAME remove
LOAD_CONST None
RETURN_VALUE
LOAD_GLOBAL type_util
LOAD_METHOD is_string
LOAD_... | from benedict.utils import type_util
def remove(d, keys, *args):
if type_util.is_string(keys):
keys = [keys]
keys += args
for key in keys:
d.pop(key, None)
| data/python-benedict-0.33.1/benedict/core/remove.py | 165 | 67 | 211,399 |
LOAD_CONST '\ninvokes django-cadmin when the configurations module is run as a script.\n\nExample: python -m configurations check\n'
STORE_NAME __doc__
LOAD_CONST 1
LOAD_CONST ('execute_from_command_line',)
IMPORT_NAME management
IMPORT_FROM execute_from_command_line
STORE_NAME execute_from_command_line
POP_TOP
LOAD_... | """
invokes django-cadmin when the configurations module is run as a script.
Example: python -m configurations check
"""
from .management import execute_from_command_line
if __name__ == "__main__":
execute_from_command_line()
| data/django-configurations-2.5/configurations/__main__.py | 116 | 67 | 322,999 |
LOAD_CONST 0
LOAD_CONST ('BraintreeError',)
IMPORT_NAME braintree.exceptions.braintree_error
IMPORT_FROM BraintreeError
STORE_NAME BraintreeError
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object TestOperationPerformedInProductionError at 0x7f8b2000bd20, file "f.py", line 4>
LOAD_CONST 'TestOperationPerformedInProducti... | from braintree.exceptions.braintree_error import BraintreeError
class TestOperationPerformedInProductionError(BraintreeError):
"""
Raised when an operation that should be used for testing is used in a production environment
"""
pass
| data/braintree-4.26.0/braintree/exceptions/test_operation_performed_in_production_error.py | 197 | 67 | 327,821 |
LOAD_CONST 0
LOAD_CONST ('AmadeusClosestAirport', 'ClosestAirportSchema')
IMPORT_NAME langchain_community.tools.amadeus.closest_airport
IMPORT_FROM AmadeusClosestAirport
STORE_NAME AmadeusClosestAirport
IMPORT_FROM ClosestAirportSchema
STORE_NAME ClosestAirportSchema
POP_TOP
LOAD_CONST 'ClosestAirportSchema'
LOAD_CONS... | from langchain_community.tools.amadeus.closest_airport import (
AmadeusClosestAirport,
ClosestAirportSchema,
)
__all__ = ["ClosestAirportSchema", "AmadeusClosestAirport"]
| data/langchain-0.1.8/langchain/tools/amadeus/closest_airport.py | 115 | 67 | 369,380 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME unittest
STORE_NAME unittest
LOAD_CONST 0
LOAD_CONST ('Factory',)
IMPORT_NAME tap.tests.factory
IMPORT_FROM Factory
STORE_NAME Factory
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object TestCase at 0x7fab8223fa50, file "f.py", line 6>
LOAD_CONST 'TestCase'
MAKE_FUNCTION
LOAD_CON... | import unittest
from tap.tests.factory import Factory
class TestCase(unittest.TestCase):
def __init__(self, methodName="runTest"):
super(TestCase, self).__init__(methodName)
self.factory = Factory()
| data/tap.py-3.1/tap/tests/testcase.py | 254 | 67 | 299,889 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME logging
STORE_NAME logging
LOAD_NAME logging
LOAD_METHOD getLogger
LOAD_NAME __name__
CALL_METHOD
STORE_NAME logger
LOAD_CONST 'FakeReporter'
BUILD_LIST
STORE_NAME __all__
LOAD_BUILD_CLASS
LOAD_CONST <code object FakeReporter at 0x7fa9834fd1e0, file "f.py", line 8>
LOAD_CONST... | import logging
logger = logging.getLogger(__name__)
__all__ = ["FakeReporter"]
class FakeReporter(object):
"""FakeReporter for internal use in final fit"""
def __call__(self, **kwargs):
pass
| data/autogluon.core-1.0.0/src/autogluon/core/scheduler/reporter.py | 228 | 67 | 209,972 |
LOAD_CONST '2.7.0'
STORE_NAME VERSION
LOAD_CONST '2024-Jan-12'
STORE_NAME DATE
SETUP_EXCEPT to 38
LOAD_CONST 1
LOAD_CONST ('get_versions',)
IMPORT_NAME _version
IMPORT_FROM get_versions
STORE_NAME get_versions
POP_TOP
LOAD_NAME get_versions
CALL_FUNCTION
LOAD_CONST 'version'
BINARY_SUBSCR
STORE_NAME VERSION
DELETE... | VERSION = "2.7.0"
DATE = "2024-Jan-12"
try:
from ._version import get_versions
VERSION = get_versions()["version"]
del get_versions
except ImportError:
pass
| data/junos-eznc-2.7.0/lib/jnpr/junos/version.py | 137 | 67 | 209,164 |
LOAD_CONST '\nThe module wrappers includes classes to wrap Scikit-learn transformers so that they\ncan be applied to a selected subset of features and return a dataframe.\n'
STORE_NAME __doc__
LOAD_CONST 1
LOAD_CONST ('SklearnTransformerWrapper',)
IMPORT_NAME wrappers
IMPORT_FROM SklearnTransformerWrapper
STORE_NAME S... | """
The module wrappers includes classes to wrap Scikit-learn transformers so that they
can be applied to a selected subset of features and return a dataframe.
"""
from .wrappers import SklearnTransformerWrapper
__all__ = ["SklearnTransformerWrapper"]
| data/feature_engine-1.6.2/feature_engine/wrappers/__init__.py | 105 | 67 | 203,549 |
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 Vision
STORE_NAME Vision
LOAD_BUILD_CLASS
LOAD_CONST <code object TestVNGeneratePersonInstanceMaskRequest at 0x7faac02be8a0, file "f.py", line 5>
LOAD_CON... | from PyObjCTools.TestSupport import TestCase
import Vision
class TestVNGeneratePersonInstanceMaskRequest(TestCase):
def test_constants(self):
self.assertEqual(Vision.VNGeneratePersonInstanceMaskRequestRevision1, 1)
| data/pyobjc-framework-Vision-10.1/PyObjCTest/test_vngeneratepersoninstancemaskrequest.py | 268 | 67 | 87,268 |
SETUP_EXCEPT to 22
LOAD_CONST 0
LOAD_CONST ('PackageNotFoundError', 'version')
IMPORT_NAME importlib.metadata
IMPORT_FROM PackageNotFoundError
STORE_NAME PackageNotFoundError
IMPORT_FROM version
STORE_NAME version
POP_TOP
POP_BLOCK
JUMP_FORWARD to 58
DUP_TOP
LOAD_NAME ImportError
COMPARE_OP exception match
POP_JUMP_I... | try:
from importlib.metadata import PackageNotFoundError, version
except ImportError:
from importlib_metadata import PackageNotFoundError, version
try:
__version__ = version("pytest_mpl")
except PackageNotFoundError:
__version__ = "unknown"
| data/pytest-mpl-0.17.0/pytest_mpl/__init__.py | 201 | 67 | 366,111 |
LOAD_CONST <code object qa4mre_process at 0x7f8aa47301e0, file "f.py", line 1>
LOAD_CONST 'qa4mre_process'
MAKE_FUNCTION
STORE_NAME qa4mre_process
LOAD_CONST <code object doc_to_target at 0x7f8aa4730ae0, file "f.py", line 5>
LOAD_CONST 'doc_to_target'
MAKE_FUNCTION
STORE_NAME doc_to_target
LOAD_CONST None
RETURN_VALUE... | def qa4mre_process(doc):
return int(doc["correct_answer_id"]) - 1
def doc_to_target(doc):
return doc["answer_options"]["answer_str"][qa4mre_process(doc)]
| data/lm_eval-0.4.1/lm_eval/tasks/qa4mre/preprocess_qa4mre.py | 187 | 67 | 427,412 |
LOAD_CONST 'Utils to validate.'
STORE_NAME __doc__
LOAD_NAME str
LOAD_NAME bool
LOAD_CONST ('value', 'return')
BUILD_CONST_KEY_MAP
LOAD_CONST <code object value_is_base16 at 0x7fab8025cdb0, file "f.py", line 4>
LOAD_CONST 'value_is_base16'
MAKE_FUNCTION
STORE_NAME value_is_base16
LOAD_CONST None
RETURN_VALUE
SETUP_EX... | """Utils to validate."""
def value_is_base16(value: str) -> bool:
"""Check if a value is base16."""
try:
int(value, 16)
except ValueError:
return False
return True
| data/awesomeversion-24.2.0/awesomeversion/utils/validate.py | 157 | 67 | 98,280 |
LOAD_CONST 0
LOAD_CONST ('TestCase',)
IMPORT_NAME PyObjCTools.TestSupport
IMPORT_FROM TestCase
STORE_NAME TestCase
POP_TOP
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME UniformTypeIdentifiers
STORE_NAME UniformTypeIdentifiers
LOAD_BUILD_CLASS
LOAD_CONST <code object TestCallableMetadata at 0x7faa7c16a0c0, file "f.py", lin... | from PyObjCTools.TestSupport import TestCase
import UniformTypeIdentifiers
class TestCallableMetadata(TestCase):
def test_callable_metadata_is_sane(self):
self.assertCallableMetadataIsSane(UniformTypeIdentifiers)
| data/pyobjc-framework-UniformTypeIdentifiers-10.1/PyObjCTest/test_uniformtypeidentifiers.py | 260 | 67 | 203,133 |
LOAD_BUILD_CLASS
LOAD_CONST <code object DelayMetadata at 0x7f8aa43cb780, file "f.py", line 1>
LOAD_CONST 'DelayMetadata'
MAKE_FUNCTION
LOAD_CONST 'DelayMetadata'
LOAD_NAME object
CALL_FUNCTION
STORE_NAME DelayMetadata
LOAD_CONST None
RETURN_VALUE
LOAD_NAME __name__
STORE_NAME __module__
LOAD_CONST 'DelayMetadata'
STO... | class DelayMetadata(object):
def __init__(
self, *, days: int = None, hours: int = None, minutes: int = None, **kwargs
):
self.days = days
self.hours = hours
self.minutes = minutes
| data/azure-ai-ml-1.13.0/azure/ai/ml/entities/_feature_set/delay_metadata.py | 223 | 67 | 426,030 |
LOAD_CONST 0
LOAD_CONST ('grouping',)
IMPORT_NAME sqlparse.engine
IMPORT_FROM grouping
STORE_NAME grouping
POP_TOP
LOAD_CONST 0
LOAD_CONST ('FilterStack',)
IMPORT_NAME sqlparse.engine.filter_stack
IMPORT_FROM FilterStack
STORE_NAME FilterStack
POP_TOP
LOAD_CONST 0
LOAD_CONST ('StatementSplitter',)
IMPORT_NAME sqlpars... | from sqlparse.engine import grouping
from sqlparse.engine.filter_stack import FilterStack
from sqlparse.engine.statement_splitter import StatementSplitter
__all__ = [
"grouping",
"FilterStack",
"StatementSplitter",
]
| data/sqlparse-0.4.4/sqlparse/engine/__init__.py | 131 | 67 | 53,045 |
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 Vision
STORE_NAME Vision
LOAD_BUILD_CLASS
LOAD_CONST <code object TestVNDetectDocumentSegmentationRequest at 0x7faac02be930, file "f.py", line 5>
LOAD_CON... | from PyObjCTools.TestSupport import TestCase
import Vision
class TestVNDetectDocumentSegmentationRequest(TestCase):
def test_constants(self):
self.assertEqual(Vision.VNDetectDocumentSegmentationRequestRevision1, 1)
| data/pyobjc-framework-Vision-10.1/PyObjCTest/test_vndetectdocumentsegmentationrequest.py | 271 | 67 | 87,284 |
LOAD_CONST 0
LOAD_CONST ('backend_to_check', 'check_import')
IMPORT_NAME bt
IMPORT_FROM backend_to_check
STORE_NAME backend_to_check
IMPORT_FROM check_import
STORE_NAME check_import
POP_TOP
LOAD_CONST 0
LOAD_CONST ('platform_is_osx',)
IMPORT_NAME pyscreenshot.util
IMPORT_FROM platform_is_osx
STORE_NAME platform_is_osx... | from bt import backend_to_check, check_import
from pyscreenshot.util import platform_is_osx
if not platform_is_osx() and check_import("wx"):
def test_wx():
backend_to_check("wx")
| data/pyscreenshot-3.1/tests/test_wx.py | 192 | 67 | 12,412 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME os
STORE_NAME os
LOAD_CONST <code object run at 0x7fab821311e0, file "f.py", line 4>
LOAD_CONST 'run'
MAKE_FUNCTION
STORE_NAME run
LOAD_CONST None
RETURN_VALUE
LOAD_GLOBAL print
LOAD_CONST 'Script called from: %s'
LOAD_GLOBAL os
LOAD_METHOD getcwd
CALL_METHOD
BINARY_MODULO
CAL... | import os
def run(*args):
print("Script called from: %s" % os.getcwd())
os.chdir(
os.path.dirname(os.getcwd())
) # to test is NONE option freezing start directory
| data/django-extensions-3.2.3/tests/testapp/scripts/directory_checker_script.py | 131 | 67 | 300,204 |
LOAD_CONST 0
LOAD_CONST ('cdf', 'logcdf', 'logpdf', 'logsf', 'pdf', 'sf')
IMPORT_NAME jax._src.scipy.stats.gamma
IMPORT_FROM cdf
STORE_NAME cdf
IMPORT_FROM logcdf
STORE_NAME logcdf
IMPORT_FROM logpdf
STORE_NAME logpdf
IMPORT_FROM logsf
STORE_NAME logsf
IMPORT_FROM pdf
STORE_NAME pdf
IMPORT_FROM sf
STORE_NAME sf
POP_TOP... | from jax._src.scipy.stats.gamma import (
cdf as cdf,
logcdf as logcdf,
logpdf as logpdf,
logsf as logsf,
pdf as pdf,
sf as sf,
)
| data/jax-0.4.24/jax/scipy/stats/gamma.py | 98 | 67 | 328,983 |
LOAD_CONST 'Test utilities for code working with files and commands'
STORE_NAME __doc__
LOAD_CONST 1
LOAD_CONST ('*',)
IMPORT_NAME asserts
IMPORT_STAR
LOAD_CONST 1
LOAD_CONST ('temporary_env', 'modified_env', 'make_env_restorer')
IMPORT_NAME env
IMPORT_FROM temporary_env
STORE_NAME temporary_env
IMPORT_FROM modified_... | """Test utilities for code working with files and commands"""
from .asserts import *
from .env import temporary_env, modified_env, make_env_restorer
from .commands import MockCommand, assert_calls
__version__ = "0.6.0"
| data/testpath-0.6.0/testpath/__init__.py | 166 | 67 | 152,008 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME pymsalruntime.pymsalruntime
IMPORT_FROM pymsalruntime
STORE_NAME pymsalrt
POP_TOP
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME atexit
STORE_NAME atexit
LOAD_NAME pymsalrt
LOAD_METHOD _startup_msalruntime
CALL_METHOD
POP_TOP
LOAD_NAME atexit
LOAD_METHOD register
LOAD_NAME pymsalrt... | import pymsalruntime.pymsalruntime as pymsalrt
import atexit
pymsalrt._startup_msalruntime()
atexit.register(pymsalrt._shutdown_msalruntime)
from pymsalruntime.pymsalruntime import *
| data/pymsalruntime-0.14.1/pymsalruntime/__init__.py | 124 | 67 | 216,626 |
LOAD_CONST 1
LOAD_CONST ('LocalStore',)
IMPORT_NAME local_store
IMPORT_FROM LocalStore
STORE_NAME LocalStore
POP_TOP
LOAD_CONST 1
LOAD_CONST ('ProfileStore',)
IMPORT_NAME profile_store
IMPORT_FROM ProfileStore
STORE_NAME ProfileStore
POP_TOP
LOAD_CONST 1
LOAD_CONST ('DatasetIdQuery', 'DateQuery')
IMPORT_NAME query
IM... | from .local_store import LocalStore
from .profile_store import ProfileStore
from .query import DatasetIdQuery, DateQuery
from .sqlite_store import SQLiteStore
__ALL__ = [ProfileStore, LocalStore, DateQuery, DatasetIdQuery, SQLiteStore]
| data/whylogs-1.3.24/whylogs/api/store/__init__.py | 162 | 67 | 432,524 |
LOAD_CONST 1
LOAD_CONST ('ApplicationAutoScalingResponse',)
IMPORT_NAME responses
IMPORT_FROM ApplicationAutoScalingResponse
STORE_NAME ApplicationAutoScalingResponse
POP_TOP
LOAD_CONST 'https?://application-autoscaling\\.(.+)\\.amazonaws.com'
BUILD_LIST
STORE_NAME url_bases
LOAD_CONST '{0}/$'
LOAD_NAME ApplicationAu... | from .responses import ApplicationAutoScalingResponse
url_bases = [r"https?://application-autoscaling\.(.+)\.amazonaws.com"]
url_paths = {
"{0}/$": ApplicationAutoScalingResponse.dispatch,
}
| data/moto-5.0.2/moto/applicationautoscaling/urls.py | 96 | 67 | 198,164 |
LOAD_CONST 'cx_Freeze command line tool (enable python -m cx_Freeze syntax).'
STORE_NAME __doc__
LOAD_CONST 0
LOAD_CONST ('annotations',)
IMPORT_NAME __future__
IMPORT_FROM annotations
STORE_NAME annotations
POP_TOP
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME cx_Freeze.cli
STORE_NAME cx_Freeze
LOAD_NAME __name__
LOAD_C... | """cx_Freeze command line tool (enable python -m cx_Freeze syntax)."""
from __future__ import annotations
import cx_Freeze.cli
if __name__ == "__main__":
cx_Freeze.cli.main()
| data/cx_Freeze-6.15.15/cx_Freeze/__main__.py | 122 | 67 | 175,384 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.