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 'Tests to import the phonemize function'
STORE_NAME __doc__
LOAD_CONST <code object test_relative at 0x7fab414990c0, file "f.py", line 4>
LOAD_CONST 'test_relative'
MAKE_FUNCTION
STORE_NAME test_relative
LOAD_CONST <code object test_absolute at 0x7fab414994b0, file "f.py", line 10>
LOAD_CONST 'test_absolut... | """Tests to import the phonemize function"""
def test_relative():
from phonemizer import phonemize
assert phonemize("a") == "eɪ "
def test_absolute():
from phonemizer.phonemize import phonemize
assert phonemize("a") == "eɪ "
| data/phonemizer-3.2.1/test/test_import.py | 265 | 86 | 356,262 |
LOAD_CONST 0
LOAD_CONST ('*',)
IMPORT_NAME azure.cli.core.aaz
IMPORT_STAR
LOAD_NAME register_command_group
LOAD_CONST 'network watcher connection-monitor endpoint'
LOAD_CONST True
LOAD_CONST ('is_preview',)
CALL_FUNCTION
LOAD_BUILD_CLASS
LOAD_CONST <code object __CMDGroup at 0x7faa8c203270, file "f.py", line 4>
LOAD... | from azure.cli.core.aaz import *
@register_command_group(
"network watcher connection-monitor endpoint",
is_preview=True,
)
class __CMDGroup(AAZCommandGroup):
"""Manage endpoint of a connection monitor."""
pass
__all__ = ["__CMDGroup"]
| data/azure-cli-2.57.0/azure/cli/command_modules/network/aaz/latest/network/watcher/connection_monitor/endpoint/__cmd_group.py | 200 | 86 | 377,739 |
LOAD_CONST 0
LOAD_CONST ('before',)
IMPORT_NAME radish
IMPORT_FROM before
STORE_NAME before
POP_TOP
LOAD_NAME before
LOAD_ATTR each_scenario
LOAD_CONST <code object init_numbers at 0x7faa5f6dba50, file "f.py", line 4>
LOAD_CONST 'init_numbers'
MAKE_FUNCTION
CALL_FUNCTION
STORE_NAME init_numbers
LOAD_NAME before
LOAD_... | from radish import before
@before.each_scenario
def init_numbers(scenario):
scenario.context.numbers = []
@before.each_scenario(on_tags="headstart")
def init_numbers_headstart(scenario):
scenario.context.numbers.append(5)
| data/radish-bdd-0.17.1/tests/exploratory/hook_specific_tags/radish/terrain.py | 222 | 86 | 243,416 |
LOAD_CONST 0
LOAD_CONST ('ABC', 'abstractmethod')
IMPORT_NAME abc
IMPORT_FROM ABC
STORE_NAME ABC
IMPORT_FROM abstractmethod
STORE_NAME abstractmethod
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object RequestOption at 0x7fab8223f9c0, file "f.py", line 4>
LOAD_CONST 'RequestOption'
MAKE_FUNCTION
LOAD_CONST 'RequestOption... | from abc import ABC, abstractmethod
class RequestOption(ABC):
"""Represents a request option"""
@staticmethod
@abstractmethod
def get_key() -> str:
"""Gets the option key for when adding it to a request. Must be unique
Returns:
str: The option key
"""
| data/microsoft_kiota_abstractions-1.2.0/kiota_abstractions/request_option.py | 225 | 86 | 299,462 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME AppKit
STORE_NAME AppKit
LOAD_CONST 0
LOAD_CONST ('TestCase', 'min_os_level')
IMPORT_NAME PyObjCTools.TestSupport
IMPORT_FROM TestCase
STORE_NAME TestCase
IMPORT_FROM min_os_level
STORE_NAME min_os_level
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object TestNSTextElement at 0x7... | import AppKit
from PyObjCTools.TestSupport import TestCase, min_os_level
class TestNSTextElement(TestCase):
@min_os_level("13.0")
def test_methods13_0(self):
self.assertResultIsBOOL(AppKit.NSTextElement.isRepresentedElement)
| data/pyobjc-framework-Cocoa-10.1/PyObjCTest/test_nstextelement.py | 296 | 86 | 64,547 |
LOAD_CONST 0
LOAD_CONST ('Enum',)
IMPORT_NAME enum
IMPORT_FROM Enum
STORE_NAME Enum
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object ManagedAppDataEncryptionType at 0x7fab70120270, file "f.py", line 4>
LOAD_CONST 'ManagedAppDataEncryptionType'
MAKE_FUNCTION
LOAD_CONST 'ManagedAppDataEncryptionType'
LOAD_NAME str
LOAD_... | from enum import Enum
class ManagedAppDataEncryptionType(str, Enum):
UseDeviceSettings = ("useDeviceSettings",)
AfterDeviceRestart = ("afterDeviceRestart",)
WhenDeviceLockedExceptOpenFiles = ("whenDeviceLockedExceptOpenFiles",)
WhenDeviceLocked = ("whenDeviceLocked",)
| data/msgraph-sdk-1.1.0/msgraph/generated/models/managed_app_data_encryption_type.py | 214 | 86 | 260,202 |
LOAD_CONST 'Generated API for package: tensorflow_examples.lite.model_maker.core.task.metadata_writers.text_classifier.metadata_writer_for_text_classifier.'
STORE_NAME __doc__
LOAD_CONST 0
LOAD_CONST ('*',)
IMPORT_NAME tensorflow_examples.lite.model_maker.core.task.metadata_writers.text_classifier.metadata_writer_for_... | """Generated API for package: tensorflow_examples.lite.model_maker.core.task.metadata_writers.text_classifier.metadata_writer_for_text_classifier."""
from tensorflow_examples.lite.model_maker.core.task.metadata_writers.text_classifier.metadata_writer_for_text_classifier import *
| data/tflite-model-maker-nightly-0.4.4.dev202402210609/src/tflite_model_maker/python/core/task/metadata_writers/text_classifier/metadata_writer_for_text_classifier.py | 106 | 86 | 389,416 |
LOAD_CONST '\n'
STORE_NAME __doc__
LOAD_CONST 'ICSApiError'
LOAD_CONST 'ICSInitializationError'
LOAD_CONST 'ICSOperationError'
LOAD_CONST 'NeoViBus'
LOAD_CONST 'neovi_bus'
BUILD_LIST
STORE_NAME __all__
LOAD_CONST 1
LOAD_CONST ('ICSApiError', 'ICSInitializationError', 'ICSOperationError', 'NeoViBus')
IMPORT_NAME n... | """
"""
__all__ = [
"ICSApiError",
"ICSInitializationError",
"ICSOperationError",
"NeoViBus",
"neovi_bus",
]
from .neovi_bus import ICSApiError, ICSInitializationError, ICSOperationError, NeoViBus
| data/python-can-4.3.1/can/interfaces/ics_neovi/__init__.py | 160 | 86 | 27,888 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME threading
STORE_NAME threading
LOAD_BUILD_CLASS
LOAD_CONST <code object WrappedSemaphore at 0x7fab822f91e0, file "f.py", line 4>
LOAD_CONST 'WrappedSemaphore'
MAKE_FUNCTION
LOAD_CONST 'WrappedSemaphore'
CALL_FUNCTION
STORE_NAME WrappedSemaphore
LOAD_CONST None
RETURN_VALUE
LOA... | import threading
class WrappedSemaphore:
def __init__(self, limit):
self._semaphore = threading.Semaphore(limit)
def acquire(self, blocking=True):
self._semaphore.acquire(blocking)
def release(self):
self._semaphore.release()
| data/oci-cli-3.37.10/services/object_storage/src/oci_cli_object_storage/object_storage_transfer_manager/wrapped_semaphore.py | 354 | 86 | 218,441 |
LOAD_CONST 0
LOAD_CONST ('DeprecationRule',)
IMPORT_NAME saltlint.linter.rule
IMPORT_FROM DeprecationRule
STORE_NAME DeprecationRule
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object StateDeprecationVirtSavedRule at 0x7faa761ee930, file "f.py", line 4>
LOAD_CONST 'StateDeprecationVirtSavedRule'
MAKE_FUNCTION
LOAD_CONST... | from saltlint.linter.rule import DeprecationRule
class StateDeprecationVirtSavedRule(DeprecationRule):
id = "904"
state = "virt.saved"
deprecated_since = "2016.3.0"
version_added = "v0.5.0"
| data/salt-lint-0.9.2/saltlint/rules/StateDeprecationVirtSavedRule.py | 225 | 86 | 436,351 |
LOAD_CONST 0
LOAD_CONST ('setup',)
IMPORT_NAME setuptools
IMPORT_FROM setup
STORE_NAME setup
POP_TOP
LOAD_NAME setup
LOAD_CONST 'grafana-client'
LOAD_CONST 'no-local-version'
LOAD_CONST 'python-simplified-semver'
LOAD_CONST 'grafana_client/version.py'
LOAD_CONST ('local_scheme', 'version_scheme', 'write_to')
BUILD... | from setuptools import setup
setup(
name="grafana-client",
use_scm_version={
"local_scheme": "no-local-version",
"version_scheme": "python-simplified-semver",
"write_to": "grafana_client/version.py",
},
)
| data/grafana-client-3.11.1/setup.py | 114 | 86 | 384,414 |
LOAD_CONST 0
LOAD_CONST ('EntityCollection',)
IMPORT_NAME office365.sharepoint.entity_collection
IMPORT_FROM EntityCollection
STORE_NAME EntityCollection
POP_TOP
LOAD_CONST 0
LOAD_CONST ('VideoItem',)
IMPORT_NAME office365.sharepoint.publishing.video.item
IMPORT_FROM VideoItem
STORE_NAME VideoItem
POP_TOP
LOAD_BUILD_... | from office365.sharepoint.entity_collection import EntityCollection
from office365.sharepoint.publishing.video.item import VideoItem
class VideoItemCollection(EntityCollection):
def __init__(self, context, resource_path=None):
super(VideoItemCollection, self).__init__(context, VideoItem, resource_path)
| data/Office365-REST-Python-Client-2.5.5/office365/sharepoint/publishing/video/item_collection.py | 285 | 86 | 189,108 |
LOAD_CONST 'Custom exceptions for lastversion.'
STORE_NAME __doc__
LOAD_BUILD_CLASS
LOAD_CONST <code object TarPathTraversalException at 0x7fab80234b70, file "f.py", line 4>
LOAD_CONST 'TarPathTraversalException'
MAKE_FUNCTION
LOAD_CONST 'TarPathTraversalException'
LOAD_NAME Exception
CALL_FUNCTION
STORE_NAME TarPathT... | """Custom exceptions for lastversion."""
class TarPathTraversalException(Exception):
"""Custom exception for path traversal attempts during tar extraction."""
class ApiCredentialsError(Exception):
"""Raised when there's an API error related to credentials"""
class BadProjectError(Exception):
"""Raised... | data/lastversion-3.5.0/src/lastversion/exceptions.py | 381 | 86 | 162,426 |
LOAD_CONST <code object is_fastapi_present at 0x7f8af1683540, file "f.py", line 1>
LOAD_CONST 'is_fastapi_present'
MAKE_FUNCTION
STORE_NAME is_fastapi_present
LOAD_NAME is_fastapi_present
CALL_FUNCTION
POP_JUMP_IF_FALSE
LOAD_CONST 1
LOAD_CONST ('FastAPIAppRequestInstrumentationConfigurator', 'FastAPIRequestAdapter', ... | def is_fastapi_present():
try:
import fastapi
import starlette
return True
except:
return False
if is_fastapi_present():
from .implementation import (
FastAPIAppRequestInstrumentationConfigurator,
FastAPIRequestAdapter,
FastAPIResponseAdapter,
)... | data/json-logging-1.3.0/json_logging/framework/fastapi/__init__.py | 222 | 86 | 400,117 |
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 ('HealthChecksClient',)
IMPORT_NAME health_checks_client
IMPORT_FROM HealthChecksClient
STORE_NAME HealthChecksClient
POP_TOP
LOAD_CONST 1
LOAD_CONST ('HealthCheck... | from __future__ import absolute_import
from .health_checks_client import HealthChecksClient
from .health_checks_client_composite_operations import (
HealthChecksClientCompositeOperations,
)
from . import models
__all__ = ["HealthChecksClient", "HealthChecksClientCompositeOperations", "models"]
| data/oci-2.122.0/src/oci/healthchecks/__init__.py | 179 | 86 | 180,667 |
LOAD_CONST 'bgp_speakers'
STORE_NAME BGP_SPEAKERS
LOAD_CONST 'bgp_speaker'
STORE_NAME BGP_SPEAKER
LOAD_CONST 'bgp_peers'
STORE_NAME BGP_PEERS
LOAD_CONST 'bgp_peer'
STORE_NAME BGP_PEER
LOAD_CONST 1
STORE_NAME MIN_AS_NUM
LOAD_CONST 4294967295
STORE_NAME MAX_AS_NUM
LOAD_CONST None
RETURN_VALUE | BGP_SPEAKERS = "bgp_speakers"
BGP_SPEAKER = "bgp_speaker"
BGP_PEERS = "bgp_peers"
BGP_PEER = "bgp_peer"
MIN_AS_NUM = 1
MAX_AS_NUM = 4294967295
| data/python-neutronclient-11.1.0/neutronclient/osc/v2/dynamic_routing/constants.py | 109 | 86 | 19,328 |
LOAD_CONST 'Event loop.'
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 ('ERR', 'READ', 'WRITE')
IMPORT_NAME kombu.utils.eventio
IMPORT_FROM ERR
STORE_NAME ERR
IMPORT_FROM READ
STORE_NAME READ
IMPORT_FRO... | """Event loop."""
from __future__ import annotations
from kombu.utils.eventio import ERR, READ, WRITE
from .hub import Hub, get_event_loop, set_event_loop
__all__ = ("READ", "WRITE", "ERR", "Hub", "get_event_loop", "set_event_loop")
| data/kombu-5.3.5/kombu/asynchronous/__init__.py | 190 | 86 | 25,134 |
LOAD_CONST 0
LOAD_CONST ('JavaMLReadable',)
IMPORT_NAME pyspark.ml.util
IMPORT_FROM JavaMLReadable
STORE_NAME JavaMLReadable
POP_TOP
LOAD_CONST 0
LOAD_CONST ('H2OJavaMLReader',)
IMPORT_NAME ai.h2o.sparkling.ml.util.H2OJavaMLReader
IMPORT_FROM H2OJavaMLReader
STORE_NAME H2OJavaMLReader
POP_TOP
LOAD_BUILD_CLASS
LOAD_CO... | from pyspark.ml.util import JavaMLReadable
from ai.h2o.sparkling.ml.util.H2OJavaMLReader import H2OJavaMLReader
class H2OJavaMLReadable(JavaMLReadable):
@classmethod
def read(cls):
return H2OJavaMLReader(cls)
| data/h2o_pysparkling_3.1-3.44.0.3.post1/ai/h2o/sparkling/ml/util/H2OJavaMLReadable.py | 285 | 86 | 27,228 |
LOAD_CONST "Dataset definition for reddit.\n\nDEPRECATED!\nIf you want to use the Reddit dataset builder class, use:\ntfds.builder_cls('reddit')\n"
STORE_NAME __doc__
LOAD_CONST 0
LOAD_CONST ('lazy_builder_import',)
IMPORT_NAME tensorflow_datasets.core
IMPORT_FROM lazy_builder_import
STORE_NAME lazy_builder_import
POP... | """Dataset definition for reddit.
DEPRECATED!
If you want to use the Reddit dataset builder class, use:
tfds.builder_cls('reddit')
"""
from tensorflow_datasets.core import lazy_builder_import
Reddit = lazy_builder_import.LazyBuilderImport("reddit")
| data/tfds-nightly-4.9.4.dev202402210044/tensorflow_datasets/summarization/reddit.py | 130 | 86 | 211,334 |
LOAD_CONST 0
LOAD_CONST ('Enum',)
IMPORT_NAME enum
IMPORT_FROM Enum
STORE_NAME Enum
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object EducationAddToCalendarOptions at 0x7fae471296f0, file "f.py", line 4>
LOAD_CONST 'EducationAddToCalendarOptions'
MAKE_FUNCTION
LOAD_CONST 'EducationAddToCalendarOptions'
LOAD_NAME str
LO... | from enum import Enum
class EducationAddToCalendarOptions(str, Enum):
None_ = ("none",)
StudentsAndPublisher = ("studentsAndPublisher",)
StudentsAndTeamOwners = ("studentsAndTeamOwners",)
UnknownFutureValue = ("unknownFutureValue",)
StudentsOnly = ("studentsOnly",)
| data/msgraph-sdk-1.1.0/msgraph/generated/models/education_add_to_calendar_options.py | 211 | 86 | 260,339 |
LOAD_CONST 0
LOAD_CONST ('AIOHTTPOpenAPIWebRequest',)
IMPORT_NAME openapi_core.contrib.aiohttp.requests
IMPORT_FROM AIOHTTPOpenAPIWebRequest
STORE_NAME AIOHTTPOpenAPIWebRequest
POP_TOP
LOAD_CONST 0
LOAD_CONST ('AIOHTTPOpenAPIWebResponse',)
IMPORT_NAME openapi_core.contrib.aiohttp.responses
IMPORT_FROM AIOHTTPOpenAPIWe... | from openapi_core.contrib.aiohttp.requests import AIOHTTPOpenAPIWebRequest
from openapi_core.contrib.aiohttp.responses import AIOHTTPOpenAPIWebResponse
__all__ = [
"AIOHTTPOpenAPIWebRequest",
"AIOHTTPOpenAPIWebResponse",
]
| data/openapi_core-0.19.0/openapi_core/contrib/aiohttp/__init__.py | 155 | 86 | 271,200 |
LOAD_CONST 0
LOAD_CONST ('BaseCommand',)
IMPORT_NAME django.core.management.base
IMPORT_FROM BaseCommand
STORE_NAME BaseCommand
POP_TOP
LOAD_CONST 3
LOAD_CONST ('clear_expired_idempotency_keys',)
IMPORT_NAME utils
IMPORT_FROM clear_expired_idempotency_keys
STORE_NAME clear_expired_idempotency_keys
POP_TOP
LOAD_BUILD_... | from django.core.management.base import BaseCommand
from ...utils import clear_expired_idempotency_keys
class Command(BaseCommand):
help = "Deleted expired Stripe idempotency keys."
def handle(self, *args, **options):
clear_expired_idempotency_keys()
| data/dj_stripe-2.8.3/djstripe/management/commands/djstripe_clear_expired_idempotency_keys.py | 258 | 86 | 84,238 |
LOAD_CONST "Dataset definition for robonet.\n\nDEPRECATED!\nIf you want to use the Robonet dataset builder class, use:\ntfds.builder_cls('robonet')\n"
STORE_NAME __doc__
LOAD_CONST 0
LOAD_CONST ('lazy_builder_import',)
IMPORT_NAME tensorflow_datasets.core
IMPORT_FROM lazy_builder_import
STORE_NAME lazy_builder_import
... | """Dataset definition for robonet.
DEPRECATED!
If you want to use the Robonet dataset builder class, use:
tfds.builder_cls('robonet')
"""
from tensorflow_datasets.core import lazy_builder_import
Robonet = lazy_builder_import.LazyBuilderImport("robonet")
| data/tensorflow-datasets-4.9.4/tensorflow_datasets/video/robonet.py | 130 | 86 | 255,051 |
LOAD_CONST 'Urls'
STORE_NAME JS_VAR_NAME
LOAD_CONST True
STORE_NAME JS_MINIFY
BUILD_LIST
STORE_NAME JS_EXCLUDE_NAMESPACES
BUILD_LIST
STORE_NAME JS_INCLUDE_ONLY_NAMESPACES
LOAD_CONST None
STORE_NAME JS_SCRIPT_PREFIX
LOAD_CONST 'this'
STORE_NAME JS_GLOBAL_OBJECT_NAME
LOAD_CONST None
STORE_NAME JS_OUTPUT_PATH
LOAD_C... | JS_VAR_NAME = "Urls"
JS_MINIFY = True
JS_EXCLUDE_NAMESPACES = []
JS_INCLUDE_ONLY_NAMESPACES = []
JS_SCRIPT_PREFIX = None
JS_GLOBAL_OBJECT_NAME = "this"
JS_OUTPUT_PATH = None
| data/django-js-reverse-0.10.2/django_js_reverse/js_reverse_settings.py | 108 | 86 | 203,283 |
LOAD_CONST 2
LOAD_CONST ('passthrough_module',)
IMPORT_NAME compat.compat_utils
IMPORT_FROM passthrough_module
STORE_NAME passthrough_module
POP_TOP
LOAD_NAME passthrough_module
LOAD_NAME __name__
LOAD_CONST '._deprecated'
CALL_FUNCTION
POP_TOP
DELETE_NAME passthrough_module
LOAD_CONST 1
LOAD_CONST ('*',)
IMPORT_NAM... | from ..compat.compat_utils import passthrough_module
passthrough_module(__name__, "._deprecated")
del passthrough_module
from .traversal import *
from ._utils import *
from ._utils import _configuration_args, _get_exe_version_output # noqa: F401
| data/yt-dlp-2023.12.30/yt_dlp/utils/__init__.py | 174 | 86 | 157,567 |
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 ('AutoScalingClient',)
IMPORT_NAME auto_scaling_client
IMPORT_FROM AutoScalingClient
STORE_NAME AutoScalingClient
POP_TOP
LOAD_CONST 1
LOAD_CONST ('AutoScalingClie... | from __future__ import absolute_import
from .auto_scaling_client import AutoScalingClient
from .auto_scaling_client_composite_operations import (
AutoScalingClientCompositeOperations,
)
from . import models
__all__ = ["AutoScalingClient", "AutoScalingClientCompositeOperations", "models"]
| data/oci-2.122.0/src/oci/autoscaling/__init__.py | 179 | 86 | 413,213 |
LOAD_CONST 'Adds constants for SQL integration.'
STORE_NAME __doc__
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME re
STORE_NAME re
LOAD_CONST 0
LOAD_CONST ('Platform',)
IMPORT_NAME homeassistant.const
IMPORT_FROM Platform
STORE_NAME Platform
POP_TOP
LOAD_CONST 'sql'
STORE_NAME DOMAIN
LOAD_NAME Platform
LOAD_ATTR SENSOR
... | """Adds constants for SQL integration."""
import re
from homeassistant.const import Platform
DOMAIN = "sql"
PLATFORMS = [Platform.SENSOR]
CONF_COLUMN_NAME = "column"
CONF_QUERY = "query"
DB_URL_RE = re.compile("//.*:.*@")
| data/homeassistant-2024.2.2/homeassistant/components/sql/const.py | 141 | 86 | 295,426 |
LOAD_CONST 0
LOAD_CONST ('*',)
IMPORT_NAME azure.cli.core.aaz
IMPORT_STAR
LOAD_NAME register_command_group
LOAD_CONST 'network application-gateway waf-policy policy-setting'
CALL_FUNCTION
LOAD_BUILD_CLASS
LOAD_CONST <code object __CMDGroup at 0x7fab703a5db0, file "f.py", line 4>
LOAD_CONST '__CMDGroup'
MAKE_FUNCTION
... | from azure.cli.core.aaz import *
@register_command_group(
"network application-gateway waf-policy policy-setting",
)
class __CMDGroup(AAZCommandGroup):
"""Define contents of a web application firewall global configuration."""
pass
__all__ = ["__CMDGroup"]
| data/azure-cli-2.57.0/azure/cli/command_modules/network/aaz/latest/network/application_gateway/waf_policy/policy_setting/__cmd_group.py | 195 | 86 | 378,555 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME numpy
STORE_NAME np
LOAD_CONST 1
LOAD_CONST ('OpRunBinaryNumpy',)
IMPORT_NAME _op
IMPORT_FROM OpRunBinaryNumpy
STORE_NAME OpRunBinaryNumpy
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object Mul at 0x7fab70078810, file "f.py", line 6>
LOAD_CONST 'Mul'
MAKE_FUNCTION
LOAD_CONST 'Mu... | import numpy as np
from ._op import OpRunBinaryNumpy
class Mul(OpRunBinaryNumpy):
def __init__(self, onnx_node, run_params): # type: ignore
OpRunBinaryNumpy.__init__(self, np.multiply, onnx_node, run_params)
| data/onnxoptimizer-0.3.13/third_party/onnx/onnx/reference/ops/op_mul.py | 245 | 86 | 85,611 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME unittest
STORE_NAME unittest
LOAD_BUILD_CLASS
LOAD_CONST <code object TestCase at 0x7fab640fae40, file "f.py", line 4>
LOAD_CONST 'TestCase'
MAKE_FUNCTION
LOAD_CONST 'TestCase'
LOAD_NAME unittest
LOAD_ATTR TestCase
CALL_FUNCTION
STORE_NAME TestCase
LOAD_CONST None
RETURN_VALUE
... | import unittest
class TestCase(unittest.TestCase):
def assertRaises(self, ex, f, *args, **kwargs):
try:
f(*args, **kwargs)
except ex as e:
return e
else:
assert False, "%r didn't raise %r" % (f, ex)
| data/Parsley-1.3/ometa/test/helpers.py | 285 | 86 | 193,510 |
LOAD_NAME ImportError
LOAD_CONST 'The ase.ga.bulk_mutations module has been deprecated. The same functionality is now provided by the ase.ga.standardmutations and ase.ga.soft_mutation modules. Please consult their documentation to verify how to initialize the different mutation operators.'
CALL_FUNCTION
RAISE_VARARGS
... | raise ImportError(
"The ase.ga.bulk_mutations module has been deprecated. "
"The same functionality is now provided by the "
"ase.ga.standardmutations and ase.ga.soft_mutation modules. "
"Please consult their documentation to verify how to initialize "
"the different mutation operators."
)
| data/ase-3.22.1/ase/ga/bulk_mutations.py | 77 | 86 | 45,825 |
LOAD_CONST 1
LOAD_CONST ('read_odps_table', 'DataFrameReadTable', 'ReadODPSTableHeadRule')
IMPORT_NAME datasource
IMPORT_FROM read_odps_table
STORE_NAME read_odps_table
IMPORT_FROM DataFrameReadTable
STORE_NAME DataFrameReadTable
IMPORT_FROM ReadODPSTableHeadRule
STORE_NAME ReadODPSTableHeadRule
POP_TOP
LOAD_CONST 1
L... | from .datasource import read_odps_table, DataFrameReadTable, ReadODPSTableHeadRule
from .datastore import write_odps_table, DataFrameWriteTable
from mars.optimizes.runtime.dataframe import DataFrameRuntimeOptimizer
DataFrameRuntimeOptimizer.register_rule(ReadODPSTableHeadRule)
| data/pyodps-0.11.5.post0/odps/mars_extension/legacy/dataframe/__init__.py | 215 | 86 | 299,678 |
LOAD_CONST 0
LOAD_CONST ('AbstractModel', 'Var', 'Objective', 'minimize')
IMPORT_NAME pyomo.environ
IMPORT_FROM AbstractModel
STORE_NAME AbstractModel
IMPORT_FROM Var
STORE_NAME Var
IMPORT_FROM Objective
STORE_NAME Objective
IMPORT_FROM minimize
STORE_NAME minimize
POP_TOP
LOAD_NAME AbstractModel
CALL_FUNCTION
STORE_N... | from pyomo.environ import AbstractModel, Var, Objective, minimize
model = AbstractModel()
model.x = Var()
def objective_rule(M):
return M.x * M.x # should fail "gracefully"
model.objective = Objective(rule=objective_rule, sense=minimize)
| data/Pyomo-6.7.0/pyomo/core/tests/unit/uninstantiated_model_quadratic.py | 183 | 86 | 23,861 |
LOAD_CONST 0
LOAD_CONST ('YearlyJob',)
IMPORT_NAME django_extensions.management.jobs
IMPORT_FROM YearlyJob
STORE_NAME YearlyJob
POP_TOP
LOAD_CONST 0
LOAD_CONST ('mock',)
IMPORT_NAME unittest
IMPORT_FROM mock
STORE_NAME mock
POP_TOP
LOAD_NAME mock
LOAD_METHOD MagicMock
CALL_METHOD
STORE_NAME YEARLY_JOB_MOCK
LOAD_BUIL... | from django_extensions.management.jobs import YearlyJob
from unittest import mock
YEARLY_JOB_MOCK = mock.MagicMock()
class Job(YearlyJob):
help = "My sample yearly job."
def execute(self):
YEARLY_JOB_MOCK()
| data/django-extensions-3.2.3/tests/testapp/jobs/yearly/test_yearly_job.py | 251 | 86 | 300,196 |
LOAD_CONST "Dataset definition for imagewang.\n\nDEPRECATED!\nIf you want to use the Imagewang dataset builder class, use:\ntfds.builder_cls('imagewang')\n"
STORE_NAME __doc__
LOAD_CONST 0
LOAD_CONST ('lazy_builder_import',)
IMPORT_NAME tensorflow_datasets.core
IMPORT_FROM lazy_builder_import
STORE_NAME lazy_builder_i... | """Dataset definition for imagewang.
DEPRECATED!
If you want to use the Imagewang dataset builder class, use:
tfds.builder_cls('imagewang')
"""
from tensorflow_datasets.core import lazy_builder_import
Imagewang = lazy_builder_import.LazyBuilderImport("imagewang")
| data/tfds-nightly-4.9.4.dev202402210044/tensorflow_datasets/image_classification/imagewang.py | 130 | 86 | 238,457 |
LOAD_CONST 'Client for working with input/output.'
STORE_NAME __doc__
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME sys
STORE_NAME sys
LOAD_BUILD_CLASS
LOAD_CONST <code object IOClient at 0x7fab7004fed0, file "f.py", line 6>
LOAD_CONST 'IOClient'
MAKE_FUNCTION
LOAD_CONST 'IOClient'
CALL_FUNCTION
STORE_NAME IOClient
LOAD_C... | """Client for working with input/output."""
import sys
class IOClient:
"""Client for working with input/output."""
@staticmethod
def read_from_stdin() -> str:
"""
Read from standard input.
:return: Standard input string.
"""
return sys.stdin.read()
| data/db_contrib_tool-0.6.13/src/db_contrib_tool/clients/io_client.py | 229 | 86 | 318,150 |
LOAD_CONST 'Constants for the Belkin Wemo component.'
STORE_NAME __doc__
LOAD_CONST 'wemo'
STORE_NAME DOMAIN
LOAD_CONST 'set_humidity'
STORE_NAME SERVICE_SET_HUMIDITY
LOAD_CONST 'reset_filter_life'
STORE_NAME SERVICE_RESET_FILTER_LIFE
LOAD_NAME DOMAIN
FORMAT_VALUE
LOAD_CONST '_subscription_event'
BUILD_STRING
STORE... | """Constants for the Belkin Wemo component."""
DOMAIN = "wemo"
SERVICE_SET_HUMIDITY = "set_humidity"
SERVICE_RESET_FILTER_LIFE = "reset_filter_life"
WEMO_SUBSCRIPTION_EVENT = f"{DOMAIN}_subscription_event"
| data/homeassistant-2024.2.2/homeassistant/components/wemo/const.py | 108 | 86 | 296,441 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME sys
STORE_NAME sys
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME os
STORE_NAME os
LOAD_NAME os
LOAD_ATTR environ
LOAD_CONST 'MESONTESTING'
BINARY_SUBSCR
LOAD_CONST 'picklerror'
COMPARE_OP ==
POP_JUMP_IF_TRUE
LOAD_GLOBAL AssertionError
RAISE_VARARGS
LOAD_NAME os
LOAD_ATTR environ
L... | import sys
import os
assert os.environ["MESONTESTING"] == "picklerror"
assert os.environ["TEST_LIST_FLATTENING"] == "1"
with open(sys.argv[1]) as f:
if f.read() != "contents\n":
sys.exit(1)
| data/meson-1.3.2/test cases/common/41 test args/tester.py | 187 | 86 | 81,970 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME AuthenticationServices
STORE_NAME AuthenticationServices
LOAD_CONST 0
LOAD_CONST ('TestCase', 'min_sdk_level')
IMPORT_NAME PyObjCTools.TestSupport
IMPORT_FROM TestCase
STORE_NAME TestCase
IMPORT_FROM min_sdk_level
STORE_NAME min_sdk_level
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <c... | import AuthenticationServices # noqa: F401
from PyObjCTools.TestSupport import TestCase, min_sdk_level
class TestASPublicKeyCredential(TestCase):
@min_sdk_level("12.0")
def test_protocols(self):
self.assertProtocolExists("ASPublicKeyCredential")
| data/pyobjc-framework-AuthenticationServices-10.1/PyObjCTest/test_aspublickeycredential.py | 287 | 86 | 129,399 |
LOAD_CONST 'Tests for internal rules.'
STORE_NAME __doc__
LOAD_CONST 0
LOAD_CONST ('BaseRule',)
IMPORT_NAME ansiblelint._internal.rules
IMPORT_FROM BaseRule
STORE_NAME BaseRule
POP_TOP
LOAD_CONST None
LOAD_CONST ('return',)
BUILD_CONST_KEY_MAP
LOAD_CONST <code object test_base_rule_url at 0x7fab42b03150, file "f.py",... | """Tests for internal rules."""
from ansiblelint._internal.rules import BaseRule
def test_base_rule_url() -> None:
"""Test that rule URL is set to expected value."""
rule = BaseRule()
assert rule.url == "https://ansible.readthedocs.io/projects/lint/rules/"
| data/ansible-lint-24.2.0/test/test_internal_rules.py | 180 | 86 | 290,522 |
LOAD_CONST 0
LOAD_CONST ('pubsub',)
IMPORT_NAME google.cloud
IMPORT_FROM pubsub
STORE_NAME pubsub
POP_TOP
LOAD_CONST 0
LOAD_CONST ('pubsub_v1',)
IMPORT_NAME google.cloud
IMPORT_FROM pubsub_v1
STORE_NAME pubsub_v1
POP_TOP
LOAD_CONST <code object test_exported_things at 0x7fab703a5ae0, file "f.py", line 5>
LOAD_CONST '... | from google.cloud import pubsub
from google.cloud import pubsub_v1
def test_exported_things():
assert pubsub.PublisherClient is pubsub_v1.PublisherClient
assert pubsub.SubscriberClient is pubsub_v1.SubscriberClient
assert pubsub.types is pubsub_v1.types
| data/google-cloud-pubsub-2.19.4/tests/unit/test_pubsub.py | 229 | 86 | 374,499 |
LOAD_CONST 1
LOAD_CONST ('_AWS',)
IMPORT_NAME
IMPORT_FROM _AWS
STORE_NAME _AWS
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object _Satellite at 0x7fab70246e40, file "f.py", line 4>
LOAD_CONST '_Satellite'
MAKE_FUNCTION
LOAD_CONST '_Satellite'
LOAD_NAME _AWS
CALL_FUNCTION
STORE_NAME _Satellite
LOAD_BUILD_CLASS
LOAD_CONS... | from . import _AWS
class _Satellite(_AWS):
_type = "satellite"
_icon_dir = "resources/aws/satellite"
class GroundStation(_Satellite):
_icon = "ground-station.png"
class Satellite(_Satellite):
_icon = "satellite.png"
| data/diagrams-0.23.4/diagrams/aws/satellite.py | 359 | 86 | 205,913 |
LOAD_CONST 0
LOAD_CONST ('annotations',)
IMPORT_NAME __future__
IMPORT_FROM annotations
STORE_NAME annotations
POP_TOP
LOAD_CONST 0
LOAD_CONST ('ClientInfo',)
IMPORT_NAME google.api_core.gapic_v1.client_info
IMPORT_FROM ClientInfo
STORE_NAME ClientInfo
POP_TOP
LOAD_CONST 0
LOAD_CONST ('version',)
IMPORT_NAME airflow
... | from __future__ import annotations
from google.api_core.gapic_v1.client_info import ClientInfo
from airflow import version
GOOGLE_DEFAULT_DEFERRABLE_METHOD_NAME = "execute_complete"
CLIENT_INFO = ClientInfo(client_library_version="airflow_v" + version.version)
| data/apache_airflow_providers_google-10.15.0/airflow/providers/google/common/consts.py | 156 | 86 | 108,735 |
LOAD_CONST 2
LOAD_CONST ('_io_dep_getattr',)
IMPORT_NAME _fiff
IMPORT_FROM _io_dep_getattr
STORE_NAME _io_dep_getattr
POP_TOP
LOAD_CONST 2
LOAD_CONST ('FIFF',)
IMPORT_NAME _fiff.constants
IMPORT_FROM FIFF
STORE_NAME FIFF
POP_TOP
LOAD_CONST 'FIFF'
BUILD_LIST
STORE_NAME __all__
LOAD_CONST <code object __getattr__ at 0... | from .._fiff import _io_dep_getattr
from .._fiff.constants import FIFF
__all__ = ["FIFF"]
def __getattr__(name):
try:
return globals()[name]
except KeyError:
pass
return _io_dep_getattr(name, "constants")
| data/mne-1.6.1/mne/io/constants.py | 216 | 86 | 125,571 |
LOAD_CONST 0
LOAD_CONST ('FastAPI',)
IMPORT_NAME fastapi
IMPORT_FROM FastAPI
STORE_NAME FastAPI
POP_TOP
LOAD_CONST 0
LOAD_CONST ('RedirectResponse',)
IMPORT_NAME fastapi.responses
IMPORT_FROM RedirectResponse
STORE_NAME RedirectResponse
POP_TOP
LOAD_NAME FastAPI
CALL_FUNCTION
STORE_NAME app
LOAD_NAME app
LOAD_METHOD... | from fastapi import FastAPI
from fastapi.responses import RedirectResponse
app = FastAPI()
@app.get("/teleport")
async def get_teleport() -> RedirectResponse:
return RedirectResponse(url="https://www.youtube.com/watch?v=dQw4w9WgXcQ")
| data/fastapi-0.109.2/docs_src/response_model/tutorial003_03.py | 198 | 86 | 142,265 |
LOAD_CONST '\nList resources from the DNS service.\n\nFor a full guide see\nhttps://docs.openstack.org/openstacksdk/latest/user/guides/dns.html\n'
STORE_NAME __doc__
LOAD_CONST <code object list_zones at 0x7fab5408ff60, file "f.py", line 9>
LOAD_CONST 'list_zones'
MAKE_FUNCTION
STORE_NAME list_zones
LOAD_CONST None
RE... | """
List resources from the DNS service.
For a full guide see
https://docs.openstack.org/openstacksdk/latest/user/guides/dns.html
"""
def list_zones(conn):
print("List Zones:")
for zone in conn.dns.zones():
print(zone)
| data/openstacksdk-2.1.0/examples/dns/list.py | 175 | 86 | 284,834 |
LOAD_CONST 1
LOAD_CONST ('_OnPrem',)
IMPORT_NAME
IMPORT_FROM _OnPrem
STORE_NAME _OnPrem
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object _Registry at 0x7fab70246e40, file "f.py", line 4>
LOAD_CONST '_Registry'
MAKE_FUNCTION
LOAD_CONST '_Registry'
LOAD_NAME _OnPrem
CALL_FUNCTION
STORE_NAME _Registry
LOAD_BUILD_CLASS
L... | from . import _OnPrem
class _Registry(_OnPrem):
_type = "registry"
_icon_dir = "resources/onprem/registry"
class Harbor(_Registry):
_icon = "harbor.png"
class Jfrog(_Registry):
_icon = "jfrog.png"
| data/diagrams-0.23.4/diagrams/onprem/registry.py | 354 | 86 | 205,992 |
LOAD_CONST 'Exceptions for AwesomeVersion.'
STORE_NAME __doc__
LOAD_BUILD_CLASS
LOAD_CONST <code object AwesomeVersionException at 0x7fab8025c150, file "f.py", line 4>
LOAD_CONST 'AwesomeVersionException'
MAKE_FUNCTION
LOAD_CONST 'AwesomeVersionException'
LOAD_NAME Exception
CALL_FUNCTION
STORE_NAME AwesomeVersionExce... | """Exceptions for AwesomeVersion."""
class AwesomeVersionException(Exception):
"""Base AwesomeVersion exception."""
class AwesomeVersionCompareException(AwesomeVersionException):
"""Thrown when compare is not possible."""
class AwesomeVersionStrategyException(AwesomeVersionException):
"""Thrown when t... | data/awesomeversion-24.2.0/awesomeversion/exceptions.py | 386 | 86 | 98,279 |
LOAD_CONST '\nSet of SQLAlchemy database schemas supported in MLflow for tracking server backends.\n'
STORE_NAME __doc__
LOAD_CONST 'postgresql'
STORE_NAME POSTGRES
LOAD_CONST 'mysql'
STORE_NAME MYSQL
LOAD_CONST 'sqlite'
STORE_NAME SQLITE
LOAD_CONST 'mssql'
STORE_NAME MSSQL
LOAD_NAME POSTGRES
LOAD_NAME MYSQL
LOAD_... | """
Set of SQLAlchemy database schemas supported in MLflow for tracking server backends.
"""
POSTGRES = "postgresql"
MYSQL = "mysql"
SQLITE = "sqlite"
MSSQL = "mssql"
DATABASE_ENGINES = [POSTGRES, MYSQL, SQLITE, MSSQL]
| data/mlflow-2.10.2/mlflow/store/db/db_types.py | 112 | 86 | 43,940 |
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 WebKit
STORE_NAME WebKit
LOAD_BUILD_CLASS
LOAD_CONST <code object TestDOMHTMLTableCellElement at 0x7fab82278d20, file "f.py", line 5>
LOAD_CONST 'TestDOMH... | from PyObjCTools.TestSupport import TestCase
import WebKit
class TestDOMHTMLTableCellElement(TestCase):
def testMethods(self):
self.assertResultIsBOOL(WebKit.DOMHTMLTableCellElement.noWrap)
self.assertArgIsBOOL(WebKit.DOMHTMLTableCellElement.setNoWrap_, 0)
| data/pyobjc-framework-WebKit-10.1/PyObjCTest/test_domhtmltablecellelement.py | 280 | 86 | 418,849 |
LOAD_CONST "Dataset definition for smallnorb.\n\nDEPRECATED!\nIf you want to use the Smallnorb dataset builder class, use:\ntfds.builder_cls('smallnorb')\n"
STORE_NAME __doc__
LOAD_CONST 0
LOAD_CONST ('lazy_builder_import',)
IMPORT_NAME tensorflow_datasets.core
IMPORT_FROM lazy_builder_import
STORE_NAME lazy_builder_i... | """Dataset definition for smallnorb.
DEPRECATED!
If you want to use the Smallnorb dataset builder class, use:
tfds.builder_cls('smallnorb')
"""
from tensorflow_datasets.core import lazy_builder_import
Smallnorb = lazy_builder_import.LazyBuilderImport("smallnorb")
| data/tfds-nightly-4.9.4.dev202402210044/tensorflow_datasets/image_classification/smallnorb.py | 130 | 86 | 238,471 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME ctypes
STORE_NAME ctypes
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME pytest
STORE_NAME pytest
LOAD_CONST 0
LOAD_CONST ('lib',)
IMPORT_NAME awkward_cpp.cpu_kernels
IMPORT_FROM lib
STORE_NAME lib
POP_TOP
LOAD_NAME pytest
LOAD_ATTR mark
LOAD_ATTR skip
LOAD_CONST 'Unable to generate... | import ctypes
import pytest
from awkward_cpp.cpu_kernels import lib
@pytest.mark.skip(reason="Unable to generate any tests for kernel")
def test_cpuawkward_ByteMaskedArray_reduce_next_64_1():
raise NotImplementedError("Unable to generate any tests for kernel")
| data/awkward-cpp-29/tests-cpu-kernels/test_cpuawkward_ByteMaskedArray_reduce_next_64.py | 225 | 86 | 221,376 |
LOAD_CONST 1
LOAD_CONST ('ServiceOperations',)
IMPORT_NAME _service_operations
IMPORT_FROM ServiceOperations
STORE_NAME ServiceOperations
POP_TOP
LOAD_CONST 1
LOAD_CONST ('ShareOperations',)
IMPORT_NAME _share_operations
IMPORT_FROM ShareOperations
STORE_NAME ShareOperations
POP_TOP
LOAD_CONST 1
LOAD_CONST ('Director... | from ._service_operations import ServiceOperations
from ._share_operations import ShareOperations
from ._directory_operations import DirectoryOperations
from ._file_operations import FileOperations
__all__ = [
"ServiceOperations",
"ShareOperations",
"DirectoryOperations",
"FileOperations",
]
| data/azure-multiapi-storage-1.2.0/azure/multiapi/storagev2/fileshare/v2019_07_07/_generated/operations/__init__.py | 171 | 86 | 311,199 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME typing
STORE_NAME t
LOAD_CONST 0
LOAD_CONST ('expressions',)
IMPORT_NAME sqlglot
IMPORT_FROM expressions
STORE_NAME exp
POP_TOP
LOAD_NAME t
LOAD_ATTR Dict
LOAD_NAME exp
LOAD_ATTR Identifier
LOAD_NAME exp
LOAD_ATTR Identifier
BUILD_TUPLE
BINARY_SUBSCR
LOAD_CONST ('replacement_m... | import typing as t
from sqlglot import expressions as exp
def replace_id_value(node, replacement_mapping: t.Dict[exp.Identifier, exp.Identifier]):
if isinstance(node, exp.Identifier) and node in replacement_mapping:
node = node.replace(replacement_mapping[node].copy())
return node
| data/sqlglot-21.1.2/sqlglot/dataframe/sql/transforms.py | 199 | 86 | 448,270 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME ctypes
STORE_NAME ctypes
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME pytest
STORE_NAME pytest
LOAD_CONST 0
LOAD_CONST ('lib',)
IMPORT_NAME awkward_cpp.cpu_kernels
IMPORT_FROM lib
STORE_NAME lib
POP_TOP
LOAD_NAME pytest
LOAD_ATTR mark
LOAD_ATTR skip
LOAD_CONST 'Unable to generate... | import ctypes
import pytest
from awkward_cpp.cpu_kernels import lib
@pytest.mark.skip(reason="Unable to generate any tests for kernel")
def test_cpuawkward_reduce_prod_bool_int8_64_1():
raise NotImplementedError("Unable to generate any tests for kernel")
| data/awkward-cpp-29/tests-cpu-kernels/test_cpuawkward_reduce_prod_bool_int8_64.py | 226 | 86 | 221,537 |
LOAD_CONST '\nPrint some information about calendars\n'
STORE_NAME __doc__
LOAD_CONST 0
LOAD_CONST ('CalCalendarStore',)
IMPORT_NAME CalendarStore
IMPORT_FROM CalCalendarStore
STORE_NAME CalCalendarStore
POP_TOP
LOAD_NAME CalCalendarStore
LOAD_METHOD defaultCalendarStore
CALL_METHOD
STORE_NAME store
SETUP_LOOP to 92... | """
Print some information about calendars
"""
from CalendarStore import CalCalendarStore
store = CalCalendarStore.defaultCalendarStore()
for calendar in store.calendars():
print("")
print("Name:", calendar._.title)
print("UUID:", calendar._.uid)
print("Type:", calendar._.type)
| data/pyobjc-framework-CalendarStore-10.1/Examples/Scripts/print_calendars.py | 179 | 86 | 154,933 |
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 InstallerPlugins
STORE_NAME InstallerPlugins
LOAD_BUILD_CLASS
LOAD_CONST <code object TestInstallerSection at 0x7fab821a54b0, file "f.py", line 6>
LOAD_CO... | from PyObjCTools.TestSupport import TestCase
import InstallerPlugins
class TestInstallerSection(TestCase):
def testMethods(self):
self.assertResultIsBOOL(InstallerPlugins.InstallerSection.shouldLoad)
self.assertResultIsBOOL(InstallerPlugins.InstallerSection.gotoPane_)
| data/pyobjc-framework-InstallerPlugins-10.1/PyObjCTest/test_installersection.py | 274 | 86 | 111,899 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME ctypes
STORE_NAME ctypes
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME pytest
STORE_NAME pytest
LOAD_CONST 0
LOAD_CONST ('lib',)
IMPORT_NAME awkward_cpp.cpu_kernels
IMPORT_FROM lib
STORE_NAME lib
POP_TOP
LOAD_NAME pytest
LOAD_ATTR mark
LOAD_ATTR skip
LOAD_CONST 'Unable to generate... | import ctypes
import pytest
from awkward_cpp.cpu_kernels import lib
@pytest.mark.skip(reason="Unable to generate any tests for kernel")
def test_cpuawkward_reduce_prod_bool_uint8_64_1():
raise NotImplementedError("Unable to generate any tests for kernel")
| data/awkward-cpp-29/tests-cpu-kernels/test_cpuawkward_reduce_prod_bool_uint8_64.py | 225 | 86 | 221,429 |
LOAD_CONST 'DO NOT EDIT.\n\nThis file was autogenerated. Do not edit it by hand,\nsince your modifications would be overwritten.\n'
STORE_NAME __doc__
LOAD_CONST 0
LOAD_CONST ('ResNet50',)
IMPORT_NAME keras.src.applications.resnet
IMPORT_FROM ResNet50
STORE_NAME ResNet50
POP_TOP
LOAD_CONST 0
LOAD_CONST ('decode_predi... | """DO NOT EDIT.
This file was autogenerated. Do not edit it by hand,
since your modifications would be overwritten.
"""
from keras.src.applications.resnet import ResNet50
from keras.src.applications.resnet import decode_predictions
from keras.src.applications.resnet import preprocess_input
| data/keras-3.0.5/keras/_tf_keras/keras/applications/resnet50/__init__.py | 166 | 86 | 349,533 |
LOAD_CONST "Dataset definition for cityscapes.\n\nDEPRECATED!\nIf you want to use the Cityscapes dataset builder class, use:\ntfds.builder_cls('cityscapes')\n"
STORE_NAME __doc__
LOAD_CONST 0
LOAD_CONST ('lazy_builder_import',)
IMPORT_NAME tensorflow_datasets.core
IMPORT_FROM lazy_builder_import
STORE_NAME lazy_builde... | """Dataset definition for cityscapes.
DEPRECATED!
If you want to use the Cityscapes dataset builder class, use:
tfds.builder_cls('cityscapes')
"""
from tensorflow_datasets.core import lazy_builder_import
Cityscapes = lazy_builder_import.LazyBuilderImport("cityscapes")
| data/tensorflow-datasets-4.9.4/tensorflow_datasets/image/cityscapes.py | 130 | 86 | 255,255 |
LOAD_CONST 0
LOAD_CONST ('unique',)
IMPORT_NAME enum
IMPORT_FROM unique
STORE_NAME unique
POP_TOP
LOAD_CONST 6
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 CalibrationModel at 0x7fab640fa8a0, file "f.py", line 5... | from enum import unique
from ......_base_enum import StrEnum
@unique
class CalibrationModel(StrEnum):
BASIS_SPLINE = "BasisSpline"
BOOTSTRAP = "Bootstrap"
NELSON_SIEGEL_SVENSSON = "NelsonSiegelSvensson"
| data/refinitiv-data-1.6.0/refinitiv/data/content/ipa/_curves/_bond_curves/_enums/_calibration_model.py | 217 | 86 | 195,366 |
LOAD_CONST 0
LOAD_CONST ('mock',)
IMPORT_NAME unittest
IMPORT_FROM mock
STORE_NAME mock
POP_TOP
LOAD_CONST 0
LOAD_CONST ('utils',)
IMPORT_NAME heatclient.tests.unit.osc
IMPORT_FROM utils
STORE_NAME utils
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object TestOrchestrationv1 at 0x7fab41e64390, file "f.py", line 6>
LOAD_... | from unittest import mock
from heatclient.tests.unit.osc import utils
class TestOrchestrationv1(utils.TestCommand):
def setUp(self):
super(TestOrchestrationv1, self).setUp()
self.app.client_manager.orchestration = mock.MagicMock()
| data/python-heatclient-3.4.0/heatclient/tests/unit/osc/v1/fakes.py | 305 | 86 | 110,300 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME ctypes
STORE_NAME ctypes
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME pytest
STORE_NAME pytest
LOAD_CONST 0
LOAD_CONST ('lib',)
IMPORT_NAME awkward_cpp.cpu_kernels
IMPORT_FROM lib
STORE_NAME lib
POP_TOP
LOAD_NAME pytest
LOAD_ATTR mark
LOAD_ATTR skip
LOAD_CONST 'Unable to generate... | import ctypes
import pytest
from awkward_cpp.cpu_kernels import lib
@pytest.mark.skip(reason="Unable to generate any tests for kernel")
def test_cpuawkward_reduce_sum_bool_uint8_64_1():
raise NotImplementedError("Unable to generate any tests for kernel")
| data/awkward-cpp-29/tests-cpu-kernels/test_cpuawkward_reduce_sum_bool_uint8_64.py | 225 | 86 | 221,367 |
LOAD_CONST 0
LOAD_CONST ('current_audit_info',)
IMPORT_NAME prowler.providers.aws.lib.audit_info.audit_info
IMPORT_FROM current_audit_info
STORE_NAME current_audit_info
POP_TOP
LOAD_CONST 0
LOAD_CONST ('WellArchitected',)
IMPORT_NAME prowler.providers.aws.services.wellarchitected.wellarchitected_service
IMPORT_FROM We... | from prowler.providers.aws.lib.audit_info.audit_info import current_audit_info
from prowler.providers.aws.services.wellarchitected.wellarchitected_service import (
WellArchitected,
)
wellarchitected_client = WellArchitected(current_audit_info)
| data/prowler-3.14.0/prowler/providers/aws/services/wellarchitected/wellarchitected_client.py | 137 | 86 | 183,415 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME ctypes
STORE_NAME ctypes
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME pytest
STORE_NAME pytest
LOAD_CONST 0
LOAD_CONST ('lib',)
IMPORT_NAME awkward_cpp.cpu_kernels
IMPORT_FROM lib
STORE_NAME lib
POP_TOP
LOAD_NAME pytest
LOAD_ATTR mark
LOAD_ATTR skip
LOAD_CONST 'Unable to generate... | import ctypes
import pytest
from awkward_cpp.cpu_kernels import lib
@pytest.mark.skip(reason="Unable to generate any tests for kernel")
def test_cpuawkward_IndexedArray32_index_of_nulls_1():
raise NotImplementedError("Unable to generate any tests for kernel")
| data/awkward-cpp-29/tests-cpu-kernels/test_cpuawkward_IndexedArray32_index_of_nulls.py | 226 | 86 | 221,343 |
LOAD_CONST 0
LOAD_CONST ('ConfigDict', 'ConfigValue')
IMPORT_NAME pyomo.common.config
IMPORT_FROM ConfigDict
STORE_NAME ConfigDict
IMPORT_FROM ConfigValue
STORE_NAME ConfigValue
POP_TOP
LOAD_CONST <code object get_configuration at 0x7faa75826810, file "f.py", line 4>
LOAD_CONST 'get_configuration'
MAKE_FUNCTION
STORE_... | from pyomo.common.config import ConfigDict, ConfigValue
def get_configuration(config):
ans = ConfigDict()
ans.declare("key1", ConfigValue(default=0, domain=int))
ans.declare("key2", ConfigValue(default=5, domain=str))
return ans(config)
| data/Pyomo-6.7.0/pyomo/common/tests/config_plugin.py | 200 | 86 | 24,039 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME ctypes
STORE_NAME ctypes
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME pytest
STORE_NAME pytest
LOAD_CONST 0
LOAD_CONST ('lib',)
IMPORT_NAME awkward_cpp.cpu_kernels
IMPORT_FROM lib
STORE_NAME lib
POP_TOP
LOAD_NAME pytest
LOAD_ATTR mark
LOAD_ATTR skip
LOAD_CONST 'Unable to generate... | import ctypes
import pytest
from awkward_cpp.cpu_kernels import lib
@pytest.mark.skip(reason="Unable to generate any tests for kernel")
def test_cpuawkward_reduce_argmin_int16_64_1():
raise NotImplementedError("Unable to generate any tests for kernel")
| data/awkward-cpp-29/tests-cpu-kernels/test_cpuawkward_reduce_argmin_int16_64.py | 225 | 86 | 221,554 |
LOAD_CONST 'BaseDirectory'
LOAD_CONST 'DesktopEntry'
LOAD_CONST 'Menu'
LOAD_CONST 'Exceptions'
LOAD_CONST 'IniFile'
LOAD_CONST 'IconTheme'
LOAD_CONST 'Locale'
LOAD_CONST 'Config'
LOAD_CONST 'Mime'
LOAD_CONST 'RecentFiles'
LOAD_CONST 'MenuEditor'
BUILD_LIST
STORE_NAME __all__
LOAD_CONST '0.28'
STORE_NAME __ve... | __all__ = [
"BaseDirectory",
"DesktopEntry",
"Menu",
"Exceptions",
"IniFile",
"IconTheme",
"Locale",
"Config",
"Mime",
"RecentFiles",
"MenuEditor",
]
__version__ = "0.28"
| data/pyxdg-0.28/xdg/__init__.py | 101 | 86 | 428,761 |
LOAD_CONST 'Models for Aladdin connect cover platform.'
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 ('TypedDict',)
IMPORT_NAME typing
IMPORT_FROM TypedDict
STORE_NAME TypedDict
POP_TOP
LOAD_BUILD_CLA... | """Models for Aladdin connect cover platform."""
from __future__ import annotations
from typing import TypedDict
class DoorDevice(TypedDict):
"""Aladdin door device."""
device_id: str
door_number: int
name: str
status: str
serial: str
model: str
| data/homeassistant-2024.2.2/homeassistant/components/aladdin_connect/model.py | 308 | 86 | 298,451 |
LOAD_CONST 0
LOAD_CONST ('Mock',)
IMPORT_NAME unittest.mock
IMPORT_FROM Mock
STORE_NAME Mock
POP_TOP
LOAD_CONST 0
LOAD_CONST ('SqlFluffColumn',)
IMPORT_NAME sqllineage.core.parser.sqlfluff.models
IMPORT_FROM SqlFluffColumn
STORE_NAME SqlFluffColumn
POP_TOP
LOAD_CONST <code object test_column_extract_source_columns at... | from unittest.mock import Mock
from sqllineage.core.parser.sqlfluff.models import SqlFluffColumn
def test_column_extract_source_columns():
segment_mock = Mock()
segment_mock.type = ""
assert [] == SqlFluffColumn._extract_source_columns(segment_mock)
| data/sqllineage-1.5.1/tests/core/test_parser.py | 209 | 86 | 290,815 |
LOAD_CONST '2018, Oslo Contributors'
STORE_NAME copyright
LOAD_CONST 'Oslo Contributors'
STORE_NAME author
LOAD_CONST ''
STORE_NAME version
LOAD_CONST ''
STORE_NAME release
LOAD_CONST 'reno.sphinxext'
LOAD_CONST 'openstackdocstheme'
BUILD_LIST
STORE_NAME extensions
LOAD_CONST 'index'
STORE_NAME master_doc
LOAD_C... | copyright = "2018, Oslo Contributors"
author = "Oslo Contributors"
version = ""
release = ""
extensions = [
"reno.sphinxext",
"openstackdocstheme",
]
master_doc = "index"
html_theme = "openstackdocs"
| data/oslo.upgradecheck-2.2.0/releasenotes/source/conf.py | 101 | 86 | 345,747 |
LOAD_CONST './cascade-mask-rcnn_r50_fpn_1x_coco.py'
STORE_NAME _base_
LOAD_NAME dict
LOAD_NAME dict
LOAD_CONST 101
LOAD_NAME dict
LOAD_CONST 'Pretrained'
LOAD_CONST 'torchvision://resnet101'
LOAD_CONST ('type', 'checkpoint')
CALL_FUNCTION
LOAD_CONST ('depth', 'init_cfg')
CALL_FUNCTION
LOAD_CONST ('backbone',)
CALL_... | _base_ = "./cascade-mask-rcnn_r50_fpn_1x_coco.py"
model = dict(
backbone=dict(
depth=101,
init_cfg=dict(type="Pretrained", checkpoint="torchvision://resnet101"),
)
)
| data/mmdet-3.3.0/mmdet/.mim/configs/cascade_rcnn/cascade-mask-rcnn_r101_fpn_1x_coco.py | 111 | 86 | 151,180 |
LOAD_CONST 0
LOAD_CONST ('compat',)
IMPORT_NAME ijson
IMPORT_FROM compat
STORE_NAME compat
POP_TOP
LOAD_CONST 1
LOAD_CONST ('FileBasedTests', 'generate_test_cases')
IMPORT_NAME test_base
IMPORT_FROM FileBasedTests
STORE_NAME FileBasedTests
IMPORT_FROM generate_test_cases
STORE_NAME generate_test_cases
POP_TOP
LOAD_NA... | from ijson import compat
from .test_base import FileBasedTests, generate_test_cases
if compat.IS_PY35:
from ._test_async_types_coroutine import * # @UnusedWildImport
generate_test_cases(globals(), "AsyncTypesCoroutine", "_async", FileBasedTests)
| data/ijson-3.2.3/test/test_async_types_coroutines.py | 152 | 86 | 403,138 |
LOAD_CONST 0
LOAD_CONST ('auto',)
IMPORT_NAME enum
IMPORT_FROM auto
STORE_NAME auto
POP_TOP
LOAD_CONST 0
LOAD_CONST ('JsonProperty',)
IMPORT_NAME spdx_tools.spdx.jsonschema.json_property
IMPORT_FROM JsonProperty
STORE_NAME JsonProperty
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object ExtractedLicensingInfoProperty at... | from enum import auto
from spdx_tools.spdx.jsonschema.json_property import JsonProperty
class ExtractedLicensingInfoProperty(JsonProperty):
COMMENT = auto()
EXTRACTED_TEXT = auto()
LICENSE_ID = auto()
NAME = auto()
SEE_ALSOS = auto()
| data/spdx-tools-0.8.2/src/spdx_tools/spdx/jsonschema/extracted_licensing_info_properties.py | 236 | 86 | 286,066 |
LOAD_CONST "Dataset definition for aeslc.\n\nDEPRECATED!\nIf you want to use the Aeslc dataset builder class, use:\ntfds.builder_cls('aeslc')\n"
STORE_NAME __doc__
LOAD_CONST 0
LOAD_CONST ('lazy_builder_import',)
IMPORT_NAME tensorflow_datasets.core
IMPORT_FROM lazy_builder_import
STORE_NAME lazy_builder_import
POP_TO... | """Dataset definition for aeslc.
DEPRECATED!
If you want to use the Aeslc dataset builder class, use:
tfds.builder_cls('aeslc')
"""
from tensorflow_datasets.core import lazy_builder_import
Aeslc = lazy_builder_import.LazyBuilderImport("aeslc")
| data/tensorflow-datasets-4.9.4/tensorflow_datasets/summarization/aeslc.py | 130 | 86 | 256,370 |
LOAD_CONST 0
LOAD_CONST ('TestCase',)
IMPORT_NAME django.test
IMPORT_FROM TestCase
STORE_NAME TestCase
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object VersionTestCase at 0x7f8ece8a8420, file "f.py", line 4>
LOAD_CONST 'VersionTestCase'
MAKE_FUNCTION
LOAD_CONST 'VersionTestCase'
LOAD_NAME TestCase
CALL_FUNCTION
STORE_... | from django.test import TestCase
class VersionTestCase(TestCase):
"""Test presence of package version."""
def test_version(self):
import django_bootstrap5
version = django_bootstrap5.__version__
version_parts = version.split(".")
self.assertTrue(len(version_parts) >= 2)
| data/django-bootstrap5-23.4/tests/test_version.py | 276 | 86 | 116,909 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME sys
STORE_NAME sys
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME os
STORE_NAME os
LOAD_NAME os
LOAD_ATTR environ
LOAD_CONST 'MESONTESTING'
BINARY_SUBSCR
LOAD_CONST 'picklerror'
COMPARE_OP ==
POP_JUMP_IF_TRUE
LOAD_GLOBAL AssertionError
RAISE_VARARGS
LOAD_NAME os
LOAD_ATTR environ
L... | import sys
import os
assert os.environ["MESONTESTING"] == "picklerror"
assert os.environ["TEST_LIST_FLATTENING"] == "1"
with open(sys.argv[1]) as f:
if f.read() != "contents\n":
sys.exit(1)
| data/numpy-1.26.4/vendored-meson/meson/test cases/common/41 test args/tester.py | 187 | 86 | 363,699 |
LOAD_CONST "Dataset definition for robonet.\n\nDEPRECATED!\nIf you want to use the Robonet dataset builder class, use:\ntfds.builder_cls('robonet')\n"
STORE_NAME __doc__
LOAD_CONST 0
LOAD_CONST ('lazy_builder_import',)
IMPORT_NAME tensorflow_datasets.core
IMPORT_FROM lazy_builder_import
STORE_NAME lazy_builder_import
... | """Dataset definition for robonet.
DEPRECATED!
If you want to use the Robonet dataset builder class, use:
tfds.builder_cls('robonet')
"""
from tensorflow_datasets.core import lazy_builder_import
Robonet = lazy_builder_import.LazyBuilderImport("robonet")
| data/tfds-nightly-4.9.4.dev202402210044/tensorflow_datasets/video/robonet.py | 130 | 86 | 238,111 |
LOAD_CONST 0
LOAD_CONST ('*',)
IMPORT_NAME projectname.tests
IMPORT_STAR
LOAD_BUILD_CLASS
LOAD_CONST <code object TestJinja2Controller at 0x7fab5408f390, file "f.py", line 4>
LOAD_CONST 'TestJinja2Controller'
MAKE_FUNCTION
LOAD_CONST 'TestJinja2Controller'
LOAD_NAME TestController
CALL_FUNCTION
STORE_NAME TestJinja2Co... | from projectname.tests import *
class TestJinja2Controller(TestController):
def test_jinja2(self):
response = self.app.get(url(controller="sample", action="testjinja2"))
assert "Hello from Jinja2" in response
assert "This is in c var" in response
| data/Pylons-1.0.3/tests/test_webapps/filestotest/functional_sample_controller_jinja2.py | 294 | 86 | 290,726 |
LOAD_CONST 0
LOAD_CONST ('annotations',)
IMPORT_NAME __future__
IMPORT_FROM annotations
STORE_NAME annotations
POP_TOP
LOAD_CONST 0
LOAD_CONST ('List',)
IMPORT_NAME typing
IMPORT_FROM List
STORE_NAME List
POP_TOP
LOAD_CONST 0
LOAD_CONST ('Required', 'TypedDict')
IMPORT_NAME typing_extensions
IMPORT_FROM Required
STOR... | from __future__ import annotations
from typing import List
from typing_extensions import Required, TypedDict
from ..resource import IResource
class IPackage(TypedDict, total=False):
name: str
type: str
title: str
description: str
resources: Required[List[IResource]]
| data/frictionless-5.16.1/frictionless/package/types.py | 329 | 86 | 41,965 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME arango.errno
IMPORT_FROM errno
STORE_NAME errno
POP_TOP
LOAD_CONST 0
LOAD_CONST ('ArangoClient',)
IMPORT_NAME arango.client
IMPORT_FROM ArangoClient
STORE_NAME ArangoClient
POP_TOP
LOAD_CONST 0
LOAD_CONST ('*',)
IMPORT_NAME arango.exceptions
IMPORT_STAR
LOAD_CONST 0
LOAD_CONS... | import arango.errno as errno # noqa: F401
from arango.client import ArangoClient # noqa: F401
from arango.exceptions import * # noqa: F401 F403
from arango.http import * # noqa: F401 F403
| data/python-arango-7.9.1/arango/__init__.py | 99 | 86 | 240,659 |
LOAD_CONST 0
LOAD_CONST ('TestCase', 'min_os_level')
IMPORT_NAME PyObjCTools.TestSupport
IMPORT_FROM TestCase
STORE_NAME TestCase
IMPORT_FROM min_os_level
STORE_NAME min_os_level
POP_TOP
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME objc
STORE_NAME objc
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME MapKit
STORE_NAME MapKit
LO... | from PyObjCTools.TestSupport import TestCase, min_os_level
import objc
import MapKit
class TestMKCircle(TestCase):
@min_os_level("10.9")
def testClasses(self):
self.assertIsInstance(MapKit.MKCircle, objc.objc_class)
| data/pyobjc-framework-MapKit-10.1/PyObjCTest/test_mkcircle.py | 298 | 86 | 406,004 |
LOAD_CONST 0
LOAD_CONST ('ArrayField',)
IMPORT_NAME django.contrib.postgres.fields
IMPORT_FROM ArrayField
STORE_NAME DjangoArrayField
POP_TOP
LOAD_CONST 0
LOAD_CONST ('DynamicArrayField',)
IMPORT_NAME django_better_admin_arrayfield.forms.fields
IMPORT_FROM DynamicArrayField
STORE_NAME DynamicArrayField
POP_TOP
LOAD_B... | from django.contrib.postgres.fields import ArrayField as DjangoArrayField
from django_better_admin_arrayfield.forms.fields import DynamicArrayField
class ArrayField(DjangoArrayField):
def formfield(self, **kwargs):
return super().formfield(**{"form_class": DynamicArrayField, **kwargs})
| data/django-better-admin-arrayfield-1.4.2/django_better_admin_arrayfield/models/fields.py | 275 | 86 | 155,874 |
LOAD_CONST 'DO NOT EDIT.\n\nThis file was autogenerated. Do not edit it by hand,\nsince your modifications would be overwritten.\n'
STORE_NAME __doc__
LOAD_CONST 0
LOAD_CONST ('ResNet50',)
IMPORT_NAME keras.src.applications.resnet
IMPORT_FROM ResNet50
STORE_NAME ResNet50
POP_TOP
LOAD_CONST 0
LOAD_CONST ('decode_predi... | """DO NOT EDIT.
This file was autogenerated. Do not edit it by hand,
since your modifications would be overwritten.
"""
from keras.src.applications.resnet import ResNet50
from keras.src.applications.resnet import decode_predictions
from keras.src.applications.resnet import preprocess_input
| data/keras-nightly-3.1.0.dev2024022103/keras/_tf_keras/keras/applications/resnet50/__init__.py | 166 | 86 | 285,353 |
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 shlex
STORE_NAME shlex
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME subprocess
STORE_NAME subprocess
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME sys
STORE_NAME sys
... | from __future__ import annotations
import shlex
import subprocess
import sys
WINDOWS = sys.platform == "win32"
def shell_quote(token: str) -> str:
if WINDOWS:
return subprocess.list2cmdline([token])
return shlex.quote(token)
| data/cleo-2.1.0/src/cleo/_compat.py | 214 | 86 | 370,378 |
LOAD_CONST ' Tornado-based HTTPs Publisher service.\n'
STORE_NAME __doc__
LOAD_CONST 0
LOAD_CONST ('TornadoService',)
IMPORT_NAME DIRAC.Core.Tornado.Server.TornadoService
IMPORT_FROM TornadoService
STORE_NAME TornadoService
POP_TOP
LOAD_CONST 0
LOAD_CONST ('PublisherHandlerMixin',)
IMPORT_NAME DIRAC.ResourceStatusSys... | """ Tornado-based HTTPs Publisher service.
"""
from DIRAC.Core.Tornado.Server.TornadoService import TornadoService
from DIRAC.ResourceStatusSystem.Service.PublisherHandler import PublisherHandlerMixin
class TornadoPublisherHandler(PublisherHandlerMixin, TornadoService):
pass
| data/DIRAC-8.0.38/src/DIRAC/ResourceStatusSystem/Service/TornadoPublisherHandler.py | 235 | 86 | 429,764 |
LOAD_CONST "Dataset definition for smallnorb.\n\nDEPRECATED!\nIf you want to use the Smallnorb dataset builder class, use:\ntfds.builder_cls('smallnorb')\n"
STORE_NAME __doc__
LOAD_CONST 0
LOAD_CONST ('lazy_builder_import',)
IMPORT_NAME tensorflow_datasets.core
IMPORT_FROM lazy_builder_import
STORE_NAME lazy_builder_i... | """Dataset definition for smallnorb.
DEPRECATED!
If you want to use the Smallnorb dataset builder class, use:
tfds.builder_cls('smallnorb')
"""
from tensorflow_datasets.core import lazy_builder_import
Smallnorb = lazy_builder_import.LazyBuilderImport("smallnorb")
| data/tensorflow-datasets-4.9.4/tensorflow_datasets/image_classification/smallnorb.py | 130 | 86 | 255,410 |
LOAD_CONST 0
LOAD_CONST ('*',)
IMPORT_NAME casadi
IMPORT_STAR
LOAD_CONST 0
LOAD_CONST ('*',)
IMPORT_NAME numpy
IMPORT_STAR
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME time
STORE_NAME time
LOAD_CONST 100
STORE_NAME n
LOAD_NAME DM
LOAD_CONST <code object <listcomp> at 0x7fab4106c150, file "f.py", line 8>
LOAD_CONST '<li... | from casadi import *
from numpy import *
import time
n = 100
A = DM([[cos(i * j) - sin(i) for i in range(n)] for j in range(n)])
x = DM([tan(i) for i in range(n)])
b = mtimes(A, x)
| data/casadi-3.6.4/docs/api/examples/algebra/LinearSolver.py | 373 | 86 | 87,913 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME ctypes
STORE_NAME ctypes
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME pytest
STORE_NAME pytest
LOAD_CONST 0
LOAD_CONST ('lib',)
IMPORT_NAME awkward_cpp.cpu_kernels
IMPORT_FROM lib
STORE_NAME lib
POP_TOP
LOAD_NAME pytest
LOAD_ATTR mark
LOAD_ATTR skip
LOAD_CONST 'Unable to generate... | import ctypes
import pytest
from awkward_cpp.cpu_kernels import lib
@pytest.mark.skip(reason="Unable to generate any tests for kernel")
def test_cpuawkward_reduce_argmin_float64_64_1():
raise NotImplementedError("Unable to generate any tests for kernel")
| data/awkward-cpp-29/tests-cpu-kernels/test_cpuawkward_reduce_argmin_float64_64.py | 226 | 86 | 221,361 |
LOAD_CONST 'Tests for tensorflow_datasets.import_testing.'
STORE_NAME __doc__
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME tensorflow_datasets.public_api
IMPORT_FROM public_api
STORE_NAME tfds
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object ImportTestingTest at 0x7fab82258390, file "f.py", line 6>
LOAD_CONST 'ImportTest... | """Tests for tensorflow_datasets.import_testing."""
import tensorflow_datasets.public_api as tfds
class ImportTestingTest(tfds.testing.TestCase):
def test_import(self):
pass
if __name__ == "__main__":
tfds.testing.test_main()
| data/tfds-nightly-4.9.4.dev202402210044/tensorflow_datasets/import_public_api_test.py | 259 | 86 | 238,096 |
LOAD_CONST 0
LOAD_CONST ('BipedalWalker', 'BipedalWalkerHardcore')
IMPORT_NAME gym.envs.box2d.bipedal_walker
IMPORT_FROM BipedalWalker
STORE_NAME BipedalWalker
IMPORT_FROM BipedalWalkerHardcore
STORE_NAME BipedalWalkerHardcore
POP_TOP
LOAD_CONST 0
LOAD_CONST ('CarRacing',)
IMPORT_NAME gym.envs.box2d.car_racing
IMPORT_... | from gym.envs.box2d.bipedal_walker import BipedalWalker, BipedalWalkerHardcore
from gym.envs.box2d.car_racing import CarRacing
from gym.envs.box2d.lunar_lander import LunarLander, LunarLanderContinuous
| data/gym-0.26.2/gym/envs/box2d/__init__.py | 202 | 86 | 219,892 |
LOAD_CONST "Dataset definition for imagewang.\n\nDEPRECATED!\nIf you want to use the Imagewang dataset builder class, use:\ntfds.builder_cls('imagewang')\n"
STORE_NAME __doc__
LOAD_CONST 0
LOAD_CONST ('lazy_builder_import',)
IMPORT_NAME tensorflow_datasets.core
IMPORT_FROM lazy_builder_import
STORE_NAME lazy_builder_i... | """Dataset definition for imagewang.
DEPRECATED!
If you want to use the Imagewang dataset builder class, use:
tfds.builder_cls('imagewang')
"""
from tensorflow_datasets.core import lazy_builder_import
Imagewang = lazy_builder_import.LazyBuilderImport("imagewang")
| data/tensorflow-datasets-4.9.4/tensorflow_datasets/image_classification/imagewang.py | 130 | 86 | 255,396 |
LOAD_CONST 0
LOAD_CONST ('TestCase', 'min_os_level')
IMPORT_NAME PyObjCTools.TestSupport
IMPORT_FROM TestCase
STORE_NAME TestCase
IMPORT_FROM min_os_level
STORE_NAME min_os_level
POP_TOP
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME objc
STORE_NAME objc
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME MapKit
STORE_NAME MapKit
LO... | from PyObjCTools.TestSupport import TestCase, min_os_level
import objc
import MapKit
class TestMKMapSnapshot(TestCase):
@min_os_level("10.9")
def testClasses(self):
self.assertIsInstance(MapKit.MKMapSnapshot, objc.objc_class)
| data/pyobjc-framework-MapKit-10.1/PyObjCTest/test_mkmapsnapshot.py | 298 | 86 | 405,995 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME ctypes
STORE_NAME ctypes
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME pytest
STORE_NAME pytest
LOAD_CONST 0
LOAD_CONST ('lib',)
IMPORT_NAME awkward_cpp.cpu_kernels
IMPORT_FROM lib
STORE_NAME lib
POP_TOP
LOAD_NAME pytest
LOAD_ATTR mark
LOAD_ATTR skip
LOAD_CONST 'Unable to generate... | import ctypes
import pytest
from awkward_cpp.cpu_kernels import lib
@pytest.mark.skip(reason="Unable to generate any tests for kernel")
def test_cpuawkward_reduce_argmax_int32_64_1():
raise NotImplementedError("Unable to generate any tests for kernel")
| data/awkward-cpp-29/tests-cpu-kernels/test_cpuawkward_reduce_argmax_int32_64.py | 225 | 86 | 221,518 |
LOAD_CONST "Dataset definition for div2k.\n\nDEPRECATED!\nIf you want to use the Div2k dataset builder class, use:\ntfds.builder_cls('div2k')\n"
STORE_NAME __doc__
LOAD_CONST 0
LOAD_CONST ('lazy_builder_import',)
IMPORT_NAME tensorflow_datasets.core
IMPORT_FROM lazy_builder_import
STORE_NAME lazy_builder_import
POP_TO... | """Dataset definition for div2k.
DEPRECATED!
If you want to use the Div2k dataset builder class, use:
tfds.builder_cls('div2k')
"""
from tensorflow_datasets.core import lazy_builder_import
Div2k = lazy_builder_import.LazyBuilderImport("div2k")
| data/tensorflow-datasets-4.9.4/tensorflow_datasets/image/div2k.py | 130 | 86 | 255,268 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME six
STORE_NAME six
LOAD_CONST <code object application at 0x7fab7006dc00, file "f.py", line 4>
LOAD_CONST 'application'
MAKE_FUNCTION
STORE_NAME application
LOAD_CONST None
RETURN_VALUE
LOAD_FAST start_response
LOAD_CONST '200 OK'
LOAD_CONST ('Content-type', 'text/plain')
BUIL... | import six
def application(environ, start_response):
start_response("200 OK", [("Content-type", "text/plain")])
body = "user: %s" % environ.get("app.user")
if six.PY3:
body = body.encode("ascii")
return [body]
| data/Paste-3.7.1/tests/urlparser_data/not_found/user/list.py | 160 | 86 | 150,003 |
LOAD_CONST 0
LOAD_CONST ('hashes',)
IMPORT_NAME cryptography.hazmat.primitives
IMPORT_FROM hashes
STORE_NAME hashes
POP_TOP
LOAD_CONST <code object test_sha256 at 0x7f8af1683540, file "f.py", line 4>
LOAD_CONST 'test_sha256'
MAKE_FUNCTION
STORE_NAME test_sha256
LOAD_CONST None
RETURN_VALUE
LOAD_CONST <code object ben... | from cryptography.hazmat.primitives import hashes
def test_sha256(benchmark):
def bench():
h = hashes.Hash(hashes.SHA256())
h.update(b"I love hashing. So much. The best.")
return h.finalize()
benchmark(bench)
| data/cryptography-42.0.4/tests/bench/test_hashes.py | 230 | 86 | 400,745 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME AVFoundation
STORE_NAME AVFoundation
LOAD_CONST 0
LOAD_CONST ('TestCase', 'min_os_level')
IMPORT_NAME PyObjCTools.TestSupport
IMPORT_FROM TestCase
STORE_NAME TestCase
IMPORT_FROM min_os_level
STORE_NAME min_os_level
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object TestAVAudioC... | import AVFoundation
from PyObjCTools.TestSupport import TestCase, min_os_level
class TestAVAudioChannelLayout(TestCase):
@min_os_level("10.10")
def testMethods10_10(self):
self.assertResultIsBOOL(AVFoundation.AVAudioChannelLayout.isEqual_)
| data/pyobjc-framework-AVFoundation-10.1/PyObjCTest/test_avaudiochannellayout.py | 298 | 86 | 95,080 |
LOAD_CONST '\nSDK exception error type module.\n\nCreated on 6/15/2015\n\n@author: alex\n'
STORE_NAME __doc__
LOAD_CONST 'Client'
STORE_NAME ERROR_TYPE_CLIENT
LOAD_CONST 'Server'
STORE_NAME ERROR_TYPE_SERVER
LOAD_CONST 'Throttling'
STORE_NAME ERROR_TYPE_THROTTLING
LOAD_CONST 'Unknown'
STORE_NAME ERROR_TYPE_UNKNOWN
... | """
SDK exception error type module.
Created on 6/15/2015
@author: alex
"""
ERROR_TYPE_CLIENT = "Client"
ERROR_TYPE_SERVER = "Server"
ERROR_TYPE_THROTTLING = "Throttling"
ERROR_TYPE_UNKNOWN = "Unknown"
| data/aliyun-python-sdk-core-2.14.0/aliyunsdkcore/acs_exception/error_type.py | 111 | 86 | 217,078 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME pytest
STORE_NAME pytest
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME sys
STORE_NAME sys
LOAD_NAME pytest
LOAD_ATTR mark
LOAD_ATTR skipif
LOAD_NAME sys
LOAD_ATTR platform
LOAD_CONST 'win32'
COMPARE_OP ==
LOAD_CONST 'Slow, and no need to test performance on all platforms'
LOAD_CO... | import pytest
import sys
skip_win_perf = pytest.mark.skipif(
sys.platform == "win32",
reason="Slow, and no need to test performance on all platforms",
)
@skip_win_perf # type: ignore
def test_sa() -> None:
pass
| data/nevergrad-1.0.2/nevergrad/optimization/test_sa.py | 172 | 86 | 448,794 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.