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 ('_proxy',)
IMPORT_NAME openstack.baremetal_introspection.v1
IMPORT_FROM _proxy
STORE_NAME _proxy
POP_TOP
LOAD_CONST 0
LOAD_CONST ('service_description',)
IMPORT_NAME openstack
IMPORT_FROM service_description
STORE_NAME service_description
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object Barem... | from openstack.baremetal_introspection.v1 import _proxy
from openstack import service_description
class BaremetalIntrospectionService(service_description.ServiceDescription):
"""The bare metal introspection service."""
supported_versions = {
"1": _proxy.Proxy,
}
| data/openstacksdk-2.1.0/openstack/baremetal_introspection/baremetal_introspection_service.py | 232 | 80 | 284,513 |
LOAD_CONST 0
LOAD_CONST ('_proxy',)
IMPORT_NAME openstack.container_infrastructure_management.v1
IMPORT_FROM _proxy
STORE_NAME _proxy
POP_TOP
LOAD_CONST 0
LOAD_CONST ('service_description',)
IMPORT_NAME openstack
IMPORT_FROM service_description
STORE_NAME service_description
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code ... | from openstack.container_infrastructure_management.v1 import _proxy
from openstack import service_description
class ContainerInfrastructureManagementService(
service_description.ServiceDescription,
):
"""The container infrastructure management service."""
supported_versions = {
"1": _proxy.Proxy,... | data/openstacksdk-2.1.0/openstack/container_infrastructure_management/container_infrastructure_management_service.py | 222 | 80 | 284,542 |
LOAD_CONST 2
LOAD_CONST ('parser',)
IMPORT_NAME
IMPORT_FROM parser
STORE_NAME parser
POP_TOP
LOAD_CONST 2
LOAD_CONST ('PamDConf',)
IMPORT_NAME parsers.pam
IMPORT_FROM PamDConf
STORE_NAME PamDConf
POP_TOP
LOAD_CONST 0
LOAD_CONST ('Specs',)
IMPORT_NAME insights.specs
IMPORT_FROM Specs
STORE_NAME Specs
POP_TOP
LOAD_NAM... | from .. import parser
from ..parsers.pam import PamDConf
from insights.specs import Specs
@parser(Specs.password_auth)
class PasswordAuthPam(PamDConf):
"""Parsing for `/etc/pam.d/password-auth`."""
pass
| data/insights-core-3.3.9/insights/parsers/password.py | 236 | 80 | 212,762 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME pycurl
STORE_NAME pycurl
LOAD_NAME open
LOAD_CONST 'out.html'
LOAD_CONST 'wb'
CALL_FUNCTION
SETUP_WITH to 76
STORE_NAME f
LOAD_NAME pycurl
LOAD_METHOD Curl
CALL_METHOD
STORE_NAME c
LOAD_NAME c
LOAD_METHOD setopt
LOAD_NAME c
LOAD_ATTR URL
LOAD_CONST 'http://pycurl.io/'
CALL_ME... | import pycurl
with open("out.html", "wb") as f:
c = pycurl.Curl()
c.setopt(c.URL, "http://pycurl.io/")
c.setopt(c.WRITEDATA, f)
c.perform()
c.close()
| data/pycurl-7.45.3/examples/quickstart/write_file.py | 148 | 80 | 174,020 |
LOAD_NAME __name__
LOAD_CONST '__main__'
COMPARE_OP ==
POP_JUMP_IF_FALSE
LOAD_NAME print
LOAD_CONST 'Welcome to IntelHex Python library.'
CALL_FUNCTION
POP_TOP
LOAD_NAME print
CALL_FUNCTION
POP_TOP
LOAD_NAME print
LOAD_CONST 'The intelhex package has some executable points:'
CALL_FUNCTION
POP_TOP
LOAD_NAME print
LO... | if __name__ == "__main__":
print("Welcome to IntelHex Python library.")
print()
print("The intelhex package has some executable points:")
print(" python -m intelhex.test -- easy way to run unit tests.")
print(" python -m intelhex.bench -- run benchmarks.")
| data/intelhex-2.3.0/intelhex/__main__.py | 118 | 80 | 423,807 |
LOAD_CONST 0
LOAD_CONST ('get_distribution', 'DistributionNotFound')
IMPORT_NAME pkg_resources
IMPORT_FROM get_distribution
STORE_NAME get_distribution
IMPORT_FROM DistributionNotFound
STORE_NAME DistributionNotFound
POP_TOP
SETUP_EXCEPT to 32
LOAD_NAME get_distribution
LOAD_NAME __name__
CALL_FUNCTION
LOAD_ATTR vers... | from pkg_resources import get_distribution, DistributionNotFound
try:
__version__ = get_distribution(__name__).version
except DistributionNotFound:
__version__ = "unknown"
__pypi_url__ = "https://pypi.python.org/pypi/pytest-reporter"
| data/pytest-reporter-0.5.2/pytest_reporter/__init__.py | 159 | 80 | 344,314 |
LOAD_CONST 'Module to give support to miscellaneous fs like operations over urls.'
STORE_NAME __doc__
LOAD_CONST 1
LOAD_CONST ('*',)
IMPORT_NAME copier
IMPORT_STAR
LOAD_CONST 1
LOAD_CONST ('*',)
IMPORT_NAME copiers
IMPORT_STAR
LOAD_CONST 1
LOAD_CONST ('*',)
IMPORT_NAME remover
IMPORT_STAR
LOAD_CONST 1
LOAD_CONST ('... | """Module to give support to miscellaneous fs like operations over urls."""
from .copier import * # noqa
from .copiers import * # noqa
from .remover import * # noqa
from .scanner import * # noqa
from .scanners import * # noqa
| data/tentaclio-1.3.0/src/tentaclio/fs/__init__.py | 114 | 80 | 216,876 |
LOAD_CONST <code object resolver_kind_validator at 0x7fab800c71e0, file "f.py", line 1>
LOAD_CONST 'resolver_kind_validator'
MAKE_FUNCTION
STORE_NAME resolver_kind_validator
LOAD_CONST None
RETURN_VALUE
LOAD_CONST 'UNIT'
LOAD_CONST 'PIPELINE'
BUILD_LIST
STORE_FAST valid_types
LOAD_FAST x
LOAD_FAST valid_types
COMPARE... | def resolver_kind_validator(x):
"""
Property: Resolver.Kind
"""
valid_types = ["UNIT", "PIPELINE"]
if x not in valid_types:
raise ValueError("Kind must be one of: %s" % ", ".join(valid_types))
return x
| data/troposphere-4.6.0/troposphere/validators/appsync.py | 144 | 80 | 172,964 |
LOAD_CONST 'torch2paddle'
LOAD_CONST 'paddle2torch'
LOAD_CONST 'torch2jittor'
LOAD_CONST 'jittor2torch'
BUILD_LIST
STORE_NAME __all__
LOAD_CONST 1
LOAD_CONST ('torch2paddle', 'paddle2torch', 'torch2jittor', 'jittor2torch')
IMPORT_NAME mix_modules
IMPORT_FROM torch2paddle
STORE_NAME torch2paddle
IMPORT_FROM paddle2t... | __all__ = [
"torch2paddle",
"paddle2torch",
"torch2jittor",
"jittor2torch",
]
from .mix_modules import torch2paddle, paddle2torch, torch2jittor, jittor2torch
| data/FastNLP-1.0.1/fastNLP/modules/__init__.py | 157 | 80 | 367,565 |
LOAD_CONST 'AUTOGENERATED. DO NOT EDIT.'
STORE_NAME __doc__
LOAD_CONST 0
LOAD_CONST ('MobileNet',)
IMPORT_NAME tf_keras.src.applications.mobilenet
IMPORT_FROM MobileNet
STORE_NAME MobileNet
POP_TOP
LOAD_CONST 0
LOAD_CONST ('decode_predictions',)
IMPORT_NAME tf_keras.src.applications.mobilenet
IMPORT_FROM decode_predi... | """AUTOGENERATED. DO NOT EDIT."""
from tf_keras.src.applications.mobilenet import MobileNet
from tf_keras.src.applications.mobilenet import decode_predictions
from tf_keras.src.applications.mobilenet import preprocess_input
| data/tf_keras-nightly-2.17.0.dev2024022110/tf_keras/api/_v2/keras/applications/mobilenet/__init__.py | 155 | 80 | 165,266 |
LOAD_CONST 0
LOAD_CONST ('include',)
IMPORT_NAME django.conf.urls
IMPORT_FROM include
STORE_NAME include
POP_TOP
LOAD_CONST 0
LOAD_CONST ('path',)
IMPORT_NAME django.urls
IMPORT_FROM path
STORE_NAME path
POP_TOP
LOAD_CONST 0
LOAD_CONST ('HomeView',)
IMPORT_NAME tenant_multi_types_tutorial.views
IMPORT_FROM HomeView
S... | from django.conf.urls import include
from django.urls import path
from tenant_multi_types_tutorial.views import HomeView
from django.contrib import admin
urlpatterns = [
path("", HomeView.as_view()),
path("admin/", admin.site.urls),
]
| data/django-tenants-3.6.1/examples/tenant_multi_types/tenant_multi_types_tutorial/urls_public.py | 167 | 80 | 224,869 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME os
STORE_NAME os
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME sys
STORE_NAME sys
LOAD_NAME __name__
LOAD_CONST '__main__'
COMPARE_OP ==
POP_JUMP_IF_FALSE
LOAD_NAME os
LOAD_ATTR environ
LOAD_METHOD setdefault
LOAD_CONST 'DJANGO_SETTINGS_MODULE'
LOAD_CONST 'djangoex.settings'
CALL_... | import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "djangoex.settings")
from django.core.management import execute_from_command_line
execute_from_command_line(sys.argv)
| data/huey-2.5.0/examples/django_ex/manage.py | 154 | 80 | 379,506 |
LOAD_CONST 'You can use slack_sdk.webhook.WebhookClient for Incoming Webhooks\nand message responses using response_url in payloads.\n'
STORE_NAME __doc__
LOAD_CONST 1
LOAD_CONST ('WebhookClient',)
IMPORT_NAME client
IMPORT_FROM WebhookClient
STORE_NAME WebhookClient
POP_TOP
LOAD_CONST 1
LOAD_CONST ('WebhookResponse'... | """You can use slack_sdk.webhook.WebhookClient for Incoming Webhooks
and message responses using response_url in payloads.
"""
from .client import WebhookClient
from .webhook_response import WebhookResponse
__all__ = [
"WebhookClient",
"WebhookResponse",
]
| data/slack_sdk-3.27.0/slack_sdk/webhook/__init__.py | 130 | 80 | 206,874 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME abc
STORE_NAME abc
LOAD_CONST 0
LOAD_CONST ('Sequence',)
IMPORT_NAME typing
IMPORT_FROM Sequence
STORE_NAME Sequence
POP_TOP
LOAD_CONST 1
LOAD_CONST ('PingStats',)
IMPORT_NAME _stats
IMPORT_FROM PingStats
STORE_NAME PingStats
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object P... | import abc
from typing import Sequence
from ._stats import PingStats
class PingParserInterface(metaclass=abc.ABCMeta):
@abc.abstractmethod
def parse(self, ping_message: Sequence[str]) -> PingStats: # pragma: no cover
pass
| data/pingparsing-1.4.1/pingparsing/_interface.py | 271 | 80 | 399,201 |
LOAD_CONST '\nThis package provides the numpydoc Sphinx extension for handling docstrings\nformatted according to the NumPy documentation format.\n'
STORE_NAME __doc__
LOAD_CONST 1
LOAD_CONST ('__version__',)
IMPORT_NAME _version
IMPORT_FROM __version__
STORE_NAME __version__
POP_TOP
LOAD_CONST <code object setup at ... | """
This package provides the numpydoc Sphinx extension for handling docstrings
formatted according to the NumPy documentation format.
"""
from ._version import __version__
def setup(app, *args, **kwargs):
from .numpydoc import setup
return setup(app, *args, **kwargs)
| data/numpydoc-1.6.0/numpydoc/__init__.py | 162 | 80 | 125,125 |
LOAD_CONST 0
LOAD_CONST ('strategies',)
IMPORT_NAME hypothesis
IMPORT_FROM strategies
STORE_NAME st
POP_TOP
LOAD_CONST 0
LOAD_CONST ('SearchStrategy',)
IMPORT_NAME hypothesis.strategies
IMPORT_FROM SearchStrategy
STORE_NAME SearchStrategy
POP_TOP
LOAD_NAME SearchStrategy
LOAD_NAME str
BINARY_SUBSCR
LOAD_CONST ('retur... | from hypothesis import (
strategies as st,
)
from hypothesis.strategies import (
SearchStrategy,
)
def hexstr_strategy() -> SearchStrategy[str]:
return st.from_regex(r"\A(0[xX])?[0-9a-fA-F]*\Z")
| data/web3-6.15.1/web3/_utils/hypothesis.py | 169 | 81 | 153,046 |
LOAD_CONST 'AUTOGENERATED. DO NOT EDIT.'
STORE_NAME __doc__
LOAD_CONST 0
LOAD_CONST ('layers',)
IMPORT_NAME tf_keras.api._v1.keras.__internal__
IMPORT_FROM layers
STORE_NAME layers
POP_TOP
LOAD_CONST 0
LOAD_CONST ('legacy',)
IMPORT_NAME tf_keras.api._v1.keras.__internal__
IMPORT_FROM legacy
STORE_NAME legacy
POP_TOP
... | """AUTOGENERATED. DO NOT EDIT."""
from tf_keras.api._v1.keras.__internal__ import layers
from tf_keras.api._v1.keras.__internal__ import legacy
from tf_keras.src.saving.serialization_lib import enable_unsafe_deserialization
| data/tf_keras-2.15.0/tf_keras/api/_v1/keras/__internal__/__init__.py | 156 | 81 | 354,069 |
LOAD_CONST 'Test the package'
STORE_NAME __doc__
LOAD_CONST 0
LOAD_CONST ('__version__',)
IMPORT_NAME jupyter_contrib_core
IMPORT_FROM __version__
STORE_NAME __version__
POP_TOP
LOAD_CONST 0
LOAD_CONST ('raise_on_bad_version',)
IMPORT_NAME jupyter_contrib_core.testing_utils
IMPORT_FROM raise_on_bad_version
STORE_NAME... | """Test the package"""
from jupyter_contrib_core import __version__
from jupyter_contrib_core.testing_utils import raise_on_bad_version
def test_current_version():
"""check that version string complies with pep440"""
raise_on_bad_version(__version__)
| data/jupyter_contrib_core-0.4.2/tests/test_misc.py | 182 | 81 | 206,606 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME os
STORE_NAME os
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME sys
STORE_NAME sys
LOAD_NAME __name__
LOAD_CONST '__main__'
COMPARE_OP ==
POP_JUMP_IF_FALSE
LOAD_NAME os
LOAD_ATTR environ
LOAD_METHOD setdefault
LOAD_CONST 'DJANGO_SETTINGS_MODULE'
LOAD_CONST 'django_demo.settings'
CA... | import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "django_demo.settings")
from django.core.management import execute_from_command_line
execute_from_command_line(sys.argv)
| data/factory_boy-3.3.0/examples/django_demo/manage.py | 156 | 81 | 191,233 |
LOAD_CONST 0
LOAD_CONST ('Spider',)
IMPORT_NAME scrapy.spiders
IMPORT_FROM Spider
STORE_NAME Spider
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object Spider4 at 0x7f8ab62f54b0, file "f.py", line 4>
LOAD_CONST 'Spider4'
MAKE_FUNCTION
LOAD_CONST 'Spider4'
LOAD_NAME Spider
CALL_FUNCTION
STORE_NAME Spider4
LOAD_CONST None
... | from scrapy.spiders import Spider
class Spider4(Spider):
name = "spider4"
allowed_domains = ["spider4.com"]
@classmethod
def handles_request(cls, request):
return request.url == "http://spider4.com/onlythis"
| data/Scrapy-2.11.1/tests/test_spiderloader/test_spiders/nested/spider4.py | 240 | 81 | 332,382 |
LOAD_CONST 'wandb integration tensorboard module.'
STORE_NAME __doc__
LOAD_CONST 1
LOAD_CONST ('_log', 'log', 'reset_state', 'tf_summary_to_dict')
IMPORT_NAME log
IMPORT_FROM _log
STORE_NAME _log
IMPORT_FROM log
STORE_NAME log
IMPORT_FROM reset_state
STORE_NAME reset_state
IMPORT_FROM tf_summary_to_dict
STORE_NAME tf_... | """wandb integration tensorboard module."""
from .log import _log, log, reset_state, tf_summary_to_dict # noqa: F401
from .monkeypatch import patch, unpatch
__all__ = [
"patch",
"unpatch",
"log",
]
| data/wandb-0.16.3/wandb/integration/tensorboard/__init__.py | 160 | 81 | 360,581 |
LOAD_CONST <code object extract at 0x7fab423bd810, file "f.py", line 1>
LOAD_CONST 'extract'
MAKE_FUNCTION
STORE_NAME extract
LOAD_CONST <code object inject at 0x7fab423bd4b0, file "f.py", line 8>
LOAD_CONST 'inject'
MAKE_FUNCTION
STORE_NAME inject
LOAD_CONST None
RETURN_VALUE
LOAD_CONST None
RETURN_VALUE
LOAD_CONST... | def extract(*args, **kwargs):
"""
A dummy version of `opentelemetry.propagate.extract`
"""
pass
def inject(*args, **kwargs):
"""
A dummy version of `opentelemetry.propagate.inject`
"""
pass
| data/fastapi-events-0.10.2/fastapi_events/otel/propagate/dummy.py | 102 | 81 | 310,421 |
LOAD_CONST 0
LOAD_CONST ('Spider',)
IMPORT_NAME scrapy.spiders
IMPORT_FROM Spider
STORE_NAME Spider
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object Spider3 at 0x7f8ab62f5b70, file "f.py", line 4>
LOAD_CONST 'Spider3'
MAKE_FUNCTION
LOAD_CONST 'Spider3'
LOAD_NAME Spider
CALL_FUNCTION
STORE_NAME Spider3
LOAD_CONST None
... | from scrapy.spiders import Spider
class Spider3(Spider):
name = "spider3"
allowed_domains = ["spider3.com"]
@classmethod
def handles_request(cls, request):
return request.url == "http://spider3.com/onlythis"
| data/Scrapy-2.11.1/tests/test_spiderloader/test_spiders/spider3.py | 241 | 81 | 332,381 |
LOAD_CONST 1
LOAD_CONST ('buffer_at_set', 'maybe_set_p', 'MaybeBuffer', 'select_if_vmap_p')
IMPORT_NAME common
IMPORT_FROM buffer_at_set
STORE_NAME buffer_at_set
IMPORT_FROM maybe_set_p
STORE_NAME maybe_set_p
IMPORT_FROM MaybeBuffer
STORE_NAME MaybeBuffer
IMPORT_FROM select_if_vmap_p
STORE_NAME select_if_vmap_p
POP_TOP... | from .common import (
buffer_at_set as buffer_at_set,
maybe_set_p as maybe_set_p,
MaybeBuffer as MaybeBuffer,
select_if_vmap_p as select_if_vmap_p,
)
from .loop import scan as scan, while_loop as while_loop
| data/equinox-0.11.3/equinox/internal/_loop/__init__.py | 136 | 81 | 86,365 |
SETUP_ANNOTATIONS
LOAD_CONST 0
LOAD_CONST ('Final',)
IMPORT_NAME typing_extensions
IMPORT_FROM Final
STORE_NAME Final
POP_TOP
LOAD_CONST 0
LOAD_CONST ('check_statement_timeout_setting',)
IMPORT_NAME django_test_migrations.db.checks.statement_timeout
IMPORT_FROM check_statement_timeout_setting
STORE_NAME check_statemen... | from typing_extensions import Final
from django_test_migrations.db.checks.statement_timeout import (
check_statement_timeout_setting,
)
CHECK_NAME: Final = "django_test_migrations.checks.database_configuration"
CHECKS: Final = (check_statement_timeout_setting,)
| data/django_test_migrations-1.3.0/django_test_migrations/checks/database_configuration.py | 161 | 81 | 86,452 |
LOAD_CONST '\nFunctions to work with multiprocessing\n'
STORE_NAME __doc__
LOAD_CONST <code object worker at 0x7faa5ed71030, file "f.py", line 6>
LOAD_CONST 'worker'
MAKE_FUNCTION
STORE_NAME worker
LOAD_CONST None
RETURN_VALUE
LOAD_FAST inpt
UNPACK_SEQUENCE
STORE_FAST read_function
STORE_FAST path
STORE_FAST row_offs... | """
Functions to work with multiprocessing
"""
def worker(inpt):
read_function, path, row_offset, row_limit, kwargs = inpt
df, meta = read_function(path, row_offset=row_offset, row_limit=row_limit, **kwargs)
return df
| data/pyreadstat-1.2.6/pyreadstat/worker.py | 156 | 81 | 206,845 |
LOAD_CONST "Dataset definition for trec.\n\nDEPRECATED!\nIf you want to use the Trec dataset builder class, use:\ntfds.builder_cls('trec')\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_TOP
... | """Dataset definition for trec.
DEPRECATED!
If you want to use the Trec dataset builder class, use:
tfds.builder_cls('trec')
"""
from tensorflow_datasets.core import lazy_builder_import
Trec = lazy_builder_import.LazyBuilderImport("trec")
| data/tfds-nightly-4.9.4.dev202402210044/tensorflow_datasets/text/trec/trec.py | 125 | 81 | 211,222 |
LOAD_CONST 0
LOAD_CONST ('Urn',)
IMPORT_NAME datahub.metadata.urns
IMPORT_FROM Urn
STORE_NAME Urn
POP_TOP
LOAD_NAME str
LOAD_NAME str
LOAD_CONST ('urn', 'return')
BUILD_CONST_KEY_MAP
LOAD_CONST <code object guess_entity_type at 0x7faaac203150, file "f.py", line 4>
LOAD_CONST 'guess_entity_type'
MAKE_FUNCTION
STORE_NAM... | from datahub.metadata.urns import Urn # noqa: F401
def guess_entity_type(urn: str) -> str:
assert urn.startswith("urn:li:"), "urns must start with urn:li:"
return urn.split(":")[2]
| data/acryl-datahub-0.12.1.5/src/datahub/utilities/urns/urn.py | 172 | 81 | 435,740 |
LOAD_CONST 0
LOAD_CONST ('OpenAIWhisperParser', 'OpenAIWhisperParserLocal', 'YandexSTTParser')
IMPORT_NAME langchain_community.document_loaders.parsers.audio
IMPORT_FROM OpenAIWhisperParser
STORE_NAME OpenAIWhisperParser
IMPORT_FROM OpenAIWhisperParserLocal
STORE_NAME OpenAIWhisperParserLocal
IMPORT_FROM YandexSTTParse... | from langchain_community.document_loaders.parsers.audio import (
OpenAIWhisperParser,
OpenAIWhisperParserLocal,
YandexSTTParser,
)
__all__ = ["OpenAIWhisperParser", "OpenAIWhisperParserLocal", "YandexSTTParser"]
| data/langchain-0.1.8/langchain/document_loaders/parsers/audio.py | 144 | 81 | 368,635 |
LOAD_CONST '\ncopyright (c) 2016 Earth Advantage. All rights reserved.\n..codeauthor::Paul Munday <paul@paulmunday.net>\n\nCustom Exceptions/Errors\n'
STORE_NAME __doc__
LOAD_BUILD_CLASS
LOAD_CONST <code object ConfigError at 0x7faa5f523a50, file "f.py", line 9>
LOAD_CONST 'ConfigError'
MAKE_FUNCTION
LOAD_CONST 'Confi... | """
copyright (c) 2016 Earth Advantage. All rights reserved.
..codeauthor::Paul Munday <paul@paulmunday.net>
Custom Exceptions/Errors
"""
class ConfigError(Exception):
"""Indicates an error when trying to obtain a config value."""
pass
| data/yaml-config-0.1.5/yamlconf/exceptions.py | 175 | 81 | 236,877 |
LOAD_CONST "Dataset definition for quac.\n\nDEPRECATED!\nIf you want to use the Quac dataset builder class, use:\ntfds.builder_cls('quac')\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_TOP
... | """Dataset definition for quac.
DEPRECATED!
If you want to use the Quac dataset builder class, use:
tfds.builder_cls('quac')
"""
from tensorflow_datasets.core import lazy_builder_import
Quac = lazy_builder_import.LazyBuilderImport("quac")
| data/tfds-nightly-4.9.4.dev202402210044/tensorflow_datasets/text/quac/quac.py | 125 | 81 | 211,204 |
LOAD_CONST 'Module with bad __all__\n\nTo test https://github.com/ipython/ipython/issues/9678\n'
STORE_NAME __doc__
LOAD_CONST <code object evil at 0x7fab640f2d20, file "f.py", line 7>
LOAD_CONST 'evil'
MAKE_FUNCTION
STORE_NAME evil
LOAD_CONST <code object puppies at 0x7fab640f2390, file "f.py", line 11>
LOAD_CONST '... | """Module with bad __all__
To test https://github.com/ipython/ipython/issues/9678
"""
def evil():
pass
def puppies():
pass
__all__ = [
evil, # Bad
"puppies", # Good
]
| data/ipython-8.21.0/IPython/core/tests/bad_all.py | 173 | 81 | 154,649 |
LOAD_CONST <code object reduce_logging at 0x7f8e44ccfc00, file "f.py", line 1>
LOAD_CONST 'reduce_logging'
MAKE_FUNCTION
STORE_NAME reduce_logging
LOAD_CONST None
RETURN_VALUE
LOAD_FAST sc
LOAD_ATTR _jvm
LOAD_ATTR org
LOAD_ATTR apache
LOAD_ATTR log4j
STORE_FAST logger
LOAD_FAST logger
LOAD_ATTR LogManager
LOAD_METHOD... | def reduce_logging(sc):
"""Reduce logging in SparkContext instance."""
logger = sc._jvm.org.apache.log4j
logger.LogManager.getLogger("org").setLevel(logger.Level.OFF)
logger.LogManager.getLogger("akka").setLevel(logger.Level.OFF)
| data/pytest-spark-0.6.0/pytest_spark/util.py | 154 | 81 | 332,960 |
LOAD_CONST 1
LOAD_CONST ('chalk', 'create_chalk')
IMPORT_NAME chalk_instance
IMPORT_FROM chalk
STORE_NAME chalk
IMPORT_FROM create_chalk
STORE_NAME create_chalk
POP_TOP
LOAD_CONST 1
LOAD_CONST ('ChalkFactory',)
IMPORT_NAME chalk_factory
IMPORT_FROM ChalkFactory
STORE_NAME ChalkFactory
POP_TOP
LOAD_CONST 1
LOAD_CONST ... | from .chalk_instance import chalk, create_chalk
from .chalk_factory import ChalkFactory
from .types import ColorMode
VERSION = "0.1.5"
__all__ = [
"chalk",
"create_chalk",
"ChalkFactory",
"ColorMode",
]
| data/yachalk-0.1.5/yachalk/__init__.py | 158 | 81 | 361,427 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME io
STORE_NAME io
LOAD_CONST 0
LOAD_CONST ('page',)
IMPORT_NAME IPython.core
IMPORT_FROM page
STORE_NAME page
POP_TOP
LOAD_CONST <code object test_detect_screen_size at 0x7fab640f20c0, file "f.py", line 6>
LOAD_CONST 'test_detect_screen_size'
MAKE_FUNCTION
STORE_NAME test_detec... | import io
from IPython.core import page
def test_detect_screen_size():
"""Simple smoketest for page._detect_screen_size."""
try:
page._detect_screen_size(True, 25)
except (TypeError, io.UnsupportedOperation):
pass
| data/ipython-8.21.0/IPython/core/tests/test_page.py | 192 | 81 | 154,660 |
LOAD_CONST 4
STORE_NAME param
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME pandas
STORE_NAME pd
LOAD_NAME pd
LOAD_ATTR DataFrame
LOAD_CONST 1
LOAD_CONST 2
BUILD_LIST
LOAD_CONST 3
LOAD_NAME param
BINARY_ADD
LOAD_CONST 4
BUILD_LIST
LOAD_CONST ('A', 'B')
BUILD_CONST_KEY_MAP
LOAD_NAME pd
LOAD_ATTR Index
LOAD_CONST 'x0'
LOAD... | param = 4
import pandas as pd
df = pd.DataFrame(
{"A": [1, 2], "B": [3 + param, 4]}, index=pd.Index(["x0", "x1"], name="x")
)
df
df.plot(kind="bar")
| data/jupytext-1.16.1/tests/data/notebooks/outputs/ipynb_to_script_vim_folding_markers/nteract_with_parameter.py | 146 | 81 | 312,570 |
LOAD_CONST 0
LOAD_CONST ('ActorCriticCnnPolicy', 'ActorCriticPolicy', 'MultiInputActorCriticPolicy')
IMPORT_NAME stable_baselines3.common.policies
IMPORT_FROM ActorCriticCnnPolicy
STORE_NAME ActorCriticCnnPolicy
IMPORT_FROM ActorCriticPolicy
STORE_NAME ActorCriticPolicy
IMPORT_FROM MultiInputActorCriticPolicy
STORE_NAM... | from stable_baselines3.common.policies import (
ActorCriticCnnPolicy,
ActorCriticPolicy,
MultiInputActorCriticPolicy,
)
MlpPolicy = ActorCriticPolicy
CnnPolicy = ActorCriticCnnPolicy
MultiInputPolicy = MultiInputActorCriticPolicy
| data/stable_baselines3-2.2.1/stable_baselines3/ppo/policies.py | 144 | 81 | 300,390 |
LOAD_CONST 0
LOAD_CONST ('ActorCriticCnnPolicy', 'ActorCriticPolicy', 'MultiInputActorCriticPolicy')
IMPORT_NAME stable_baselines3.common.policies
IMPORT_FROM ActorCriticCnnPolicy
STORE_NAME ActorCriticCnnPolicy
IMPORT_FROM ActorCriticPolicy
STORE_NAME ActorCriticPolicy
IMPORT_FROM MultiInputActorCriticPolicy
STORE_NAM... | from stable_baselines3.common.policies import (
ActorCriticCnnPolicy,
ActorCriticPolicy,
MultiInputActorCriticPolicy,
)
MlpPolicy = ActorCriticPolicy
CnnPolicy = ActorCriticCnnPolicy
MultiInputPolicy = MultiInputActorCriticPolicy
| data/stable_baselines3-2.2.1/stable_baselines3/a2c/policies.py | 144 | 81 | 300,335 |
LOAD_CONST 'WAN endpoint module.'
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 ('Enum',)
IMPORT_NAME enum
IMPORT_FROM Enum
STORE_NAME Enum
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object AsusDualWAN ... | """WAN endpoint module."""
from __future__ import annotations
from enum import Enum
class AsusDualWAN(str, Enum):
"""Dual WAN class."""
FAILOVER = "fo"
FALLBACK = "fb"
LOAD_BALANCE = "lb"
| data/asusrouter-1.7.0/asusrouter/modules/endpoint/wan.py | 232 | 81 | 10,637 |
LOAD_CONST 0
LOAD_CONST ('METHOD_NORMALIZERS',)
IMPORT_NAME web3._utils.method_formatters
IMPORT_FROM METHOD_NORMALIZERS
STORE_NAME METHOD_NORMALIZERS
POP_TOP
LOAD_CONST 1
LOAD_CONST ('construct_formatting_middleware',)
IMPORT_NAME formatting
IMPORT_FROM construct_formatting_middleware
STORE_NAME construct_formatting_... | from web3._utils.method_formatters import (
METHOD_NORMALIZERS,
)
from .formatting import (
construct_formatting_middleware,
)
request_parameter_normalizer = construct_formatting_middleware(
request_formatters=METHOD_NORMALIZERS,
)
| data/web3-6.15.1/web3/middleware/normalize_request_parameters.py | 135 | 81 | 153,011 |
LOAD_CONST <code object pytest_addoption at 0x7fab81fc49c0, file "f.py", line 1>
LOAD_CONST 'pytest_addoption'
MAKE_FUNCTION
STORE_NAME pytest_addoption
LOAD_CONST None
RETURN_VALUE
LOAD_FAST parser
LOAD_ATTR addoption
LOAD_CONST '--device'
LOAD_CONST 'store'
LOAD_GLOBAL int
LOAD_CONST ('action', 'type')
CALL_FUNCTION... | def pytest_addoption(parser):
parser.addoption("--device", action="store", type=int)
parser.addoption("--reader", action="store")
parser.addoption("--no-serial", action="store_true")
parser.addoption("--use-version", action="store")
| data/yubikey_manager-5.3.0/tests/conftest.py | 190 | 81 | 63,448 |
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 nox
STORE_NAME nox
LOAD_NAME nox
LOAD_ATTR session
LOAD_CONST False
LOAD_CONST ('py',)
CALL_FUNCTION
LOAD_NAME nox
LOAD_METHOD parametrize
LOAD_CONST 'cheese... | from __future__ import annotations
import nox
@nox.session(py=False)
@nox.parametrize("cheese", ["cheddar", "jack", "brie"])
def snack(unused_session, cheese):
print(f"Noms, {cheese} so good!")
| data/nox-2023.4.22/tests/resources/noxfile_nested.py | 185 | 81 | 332,633 |
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_CONST 1
LOAD_CONST ('views',)
IMPORT_NAME
IMPORT_FROM views
STORE_NAME views
POP_TOP
LOAD_NAME path
LOAD_CONST ''
LOAD_NAME views
LOAD_ATTR home
LOAD_CONST 'home'
LO... | from django.urls import include, path
from . import views
urlpatterns = [
path("", views.home, name="home"),
path("path/", views.home, name="some-path"),
path("app-urls/", include("tests.django.app_urls")),
]
| data/google-cloud-sqlcommenter-2.0.0/tests/django/urls.py | 155 | 81 | 300,694 |
LOAD_CONST "\n``pathos`` interface to python's (serial) ``map`` functions\n\nNotes:\n This module has been deprecated in favor of ``pathos.serial``.\n"
STORE_NAME __doc__
LOAD_CONST 'PythonSerial'
BUILD_LIST
STORE_NAME __all__
LOAD_CONST 0
LOAD_CONST ('__doc__', '__STATE')
IMPORT_NAME pathos.serial
IMPORT_FROM __doc_... | """
``pathos`` interface to python's (serial) ``map`` functions
Notes:
This module has been deprecated in favor of ``pathos.serial``.
"""
__all__ = ["PythonSerial"]
from pathos.serial import __doc__, __STATE
from pathos.serial import *
PythonSerial = SerialPool
| data/pathos-0.3.2/pathos/python.py | 139 | 81 | 152,532 |
LOAD_CONST "Dataset definition for anli.\n\nDEPRECATED!\nIf you want to use the Anli dataset builder class, use:\ntfds.builder_cls('anli')\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_TOP
... | """Dataset definition for anli.
DEPRECATED!
If you want to use the Anli dataset builder class, use:
tfds.builder_cls('anli')
"""
from tensorflow_datasets.core import lazy_builder_import
Anli = lazy_builder_import.LazyBuilderImport("anli")
| data/tfds-nightly-4.9.4.dev202402210044/tensorflow_datasets/text/anli.py | 125 | 81 | 211,150 |
LOAD_CONST 1
LOAD_CONST ('PluginBracketsPosition',)
IMPORT_NAME _brackets_position
IMPORT_FROM PluginBracketsPosition
STORE_NAME PluginBracketsPosition
POP_TOP
LOAD_CONST 1
LOAD_CONST ('version',)
IMPORT_NAME _meta
IMPORT_FROM version
STORE_NAME __version__
POP_TOP
LOAD_CONST 1
LOAD_CONST ('PluginRedundantParentheses... | from ._brackets_position import PluginBracketsPosition
from ._meta import version as __version__
from ._redundant_parentheses import PluginRedundantParentheses
__all__ = [
"__version__",
"PluginBracketsPosition",
"PluginRedundantParentheses",
]
| data/flake8-picky-parentheses-0.5.4/src/flake8_picky_parentheses/__init__.py | 151 | 81 | 191,170 |
LOAD_CONST 0
LOAD_CONST ('StripeService',)
IMPORT_NAME stripe._stripe_service
IMPORT_FROM StripeService
STORE_NAME StripeService
POP_TOP
LOAD_CONST 0
LOAD_CONST ('ReaderService',)
IMPORT_NAME stripe.test_helpers.terminal._reader_service
IMPORT_FROM ReaderService
STORE_NAME ReaderService
POP_TOP
LOAD_BUILD_CLASS
LOAD_... | from stripe._stripe_service import StripeService
from stripe.test_helpers.terminal._reader_service import ReaderService
class TerminalService(StripeService):
def __init__(self, requestor):
super().__init__(requestor)
self.readers = ReaderService(self._requestor)
| data/stripe-8.3.0/stripe/test_helpers/_terminal_service.py | 287 | 81 | 12,145 |
LOAD_CONST 'SCIM API is a set of APIs for provisioning and managing user accounts and groups.\nSCIM is used by Single Sign-On (SSO) services and identity providers to manage people across a variety of tools,\nincluding Slack.\n\nRefer to https://slack.dev/python-slack-sdk/scim/ for details.\n'
STORE_NAME __doc__
LOAD_C... | """SCIM API is a set of APIs for provisioning and managing user accounts and groups.
SCIM is used by Single Sign-On (SSO) services and identity providers to manage people across a variety of tools,
including Slack.
Refer to https://slack.dev/python-slack-sdk/scim/ for details.
"""
| data/slack_sdk-3.27.0/slack_sdk/scim/v1/__init__.py | 92 | 81 | 206,960 |
LOAD_CONST '\n'
STORE_NAME __doc__
LOAD_CONST 2
LOAD_CONST ('AbandonRequest', 'MessageID')
IMPORT_NAME protocol.rfc4511
IMPORT_FROM AbandonRequest
STORE_NAME AbandonRequest
IMPORT_FROM MessageID
STORE_NAME MessageID
POP_TOP
LOAD_CONST <code object abandon_operation at 0x7fa9834fd1e0, file "f.py", line 8>
LOAD_CONST '... | """
"""
from ..protocol.rfc4511 import AbandonRequest, MessageID
def abandon_operation(msg_id):
request = AbandonRequest(MessageID(msg_id))
return request
def abandon_request_to_dict(request):
return {"messageId": str(request)}
| data/ldap3-2.9.1/ldap3/operation/abandon.py | 220 | 81 | 208,865 |
LOAD_CONST 4
STORE_NAME param
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME pandas
STORE_NAME pd
LOAD_NAME pd
LOAD_ATTR DataFrame
LOAD_CONST 1
LOAD_CONST 2
BUILD_LIST
LOAD_CONST 3
LOAD_NAME param
BINARY_ADD
LOAD_CONST 4
BUILD_LIST
LOAD_CONST ('A', 'B')
BUILD_CONST_KEY_MAP
LOAD_NAME pd
LOAD_ATTR Index
LOAD_CONST 'x0'
LOAD... | param = 4
import pandas as pd
df = pd.DataFrame(
{"A": [1, 2], "B": [3 + param, 4]}, index=pd.Index(["x0", "x1"], name="x")
)
df
df.plot(kind="bar")
| data/jupytext-1.16.1/tests/data/notebooks/outputs/ipynb_to_script_vscode_folding_markers/nteract_with_parameter.py | 146 | 81 | 312,584 |
LOAD_CONST "Dataset definition for snli.\n\nDEPRECATED!\nIf you want to use the Snli dataset builder class, use:\ntfds.builder_cls('snli')\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_TOP
... | """Dataset definition for snli.
DEPRECATED!
If you want to use the Snli dataset builder class, use:
tfds.builder_cls('snli')
"""
from tensorflow_datasets.core import lazy_builder_import
Snli = lazy_builder_import.LazyBuilderImport("snli")
| data/tfds-nightly-4.9.4.dev202402210044/tensorflow_datasets/text/snli.py | 125 | 81 | 211,102 |
LOAD_CONST "Dataset definition for beir.\n\nDEPRECATED!\nIf you want to use the Beir dataset builder class, use:\ntfds.builder_cls('beir')\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_TOP
... | """Dataset definition for beir.
DEPRECATED!
If you want to use the Beir dataset builder class, use:
tfds.builder_cls('beir')
"""
from tensorflow_datasets.core import lazy_builder_import
Beir = lazy_builder_import.LazyBuilderImport("beir")
| data/tfds-nightly-4.9.4.dev202402210044/tensorflow_datasets/text/beir/beir.py | 125 | 81 | 211,205 |
LOAD_CONST 'AUTOGENERATED. DO NOT EDIT.'
STORE_NAME __doc__
LOAD_CONST 0
LOAD_CONST ('layers',)
IMPORT_NAME tf_keras.api._v1.keras.__internal__
IMPORT_FROM layers
STORE_NAME layers
POP_TOP
LOAD_CONST 0
LOAD_CONST ('legacy',)
IMPORT_NAME tf_keras.api._v1.keras.__internal__
IMPORT_FROM legacy
STORE_NAME legacy
POP_TOP
... | """AUTOGENERATED. DO NOT EDIT."""
from tf_keras.api._v1.keras.__internal__ import layers
from tf_keras.api._v1.keras.__internal__ import legacy
from tf_keras.src.saving.serialization_lib import enable_unsafe_deserialization
| data/tf_keras-nightly-2.17.0.dev2024022110/tf_keras/api/_v1/keras/__internal__/__init__.py | 156 | 81 | 165,220 |
LOAD_CONST 'Test praw.models.preferences.'
STORE_NAME __doc__
LOAD_CONST 0
LOAD_CONST ('Preferences',)
IMPORT_NAME praw.models
IMPORT_FROM Preferences
STORE_NAME Preferences
POP_TOP
LOAD_CONST 2
LOAD_CONST ('UnitTest',)
IMPORT_NAME
IMPORT_FROM UnitTest
STORE_NAME UnitTest
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code ob... | """Test praw.models.preferences."""
from praw.models import Preferences
from .. import UnitTest
class TestPreferences(UnitTest):
def test_creation(self, reddit):
prefs_obj = reddit.user.preferences
assert isinstance(prefs_obj, Preferences)
| data/praw-7.7.1/tests/unit/models/test_preferences.py | 269 | 81 | 205,011 |
LOAD_CONST 'execute_in_thread'
STORE_NAME ATTR_EXECUTE_IN_THREAD
LOAD_CONST 'command'
STORE_NAME ATTR_COMMAND_TYPE
LOAD_CONST 'feature'
STORE_NAME ATTR_FEATURE_TYPE
LOAD_CONST 'reg_name'
STORE_NAME ATTR_REGISTERED_NAME
LOAD_CONST 'reg_type'
STORE_NAME ATTR_REGISTERED_TYPE
LOAD_CONST 'ls'
STORE_NAME PARAM_LS
LOAD_C... | ATTR_EXECUTE_IN_THREAD = "execute_in_thread"
ATTR_COMMAND_TYPE = "command"
ATTR_FEATURE_TYPE = "feature"
ATTR_REGISTERED_NAME = "reg_name"
ATTR_REGISTERED_TYPE = "reg_type"
PARAM_LS = "ls"
| data/pygls-1.3.0/pygls/constants.py | 107 | 81 | 209,423 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME os
STORE_NAME os
LOAD_CONST (False,)
LOAD_NAME str
LOAD_NAME bool
LOAD_NAME bool
LOAD_CONST ('key', 'default', 'return')
BUILD_CONST_KEY_MAP
LOAD_CONST <code object get_boolean_env_variable at 0x7fab823a39c0, file "f.py", line 4>
LOAD_CONST 'get_boolean_env_variable'
MAKE_FUNCT... | import os
def get_boolean_env_variable(key: str, default: bool = False) -> bool:
value = os.environ.get(key)
if value is None:
return default
elif value.lower() in ("true", "1"):
return True
else:
return False
| data/acryl-datahub-0.12.1.5/src/datahub/cli/env_utils.py | 182 | 81 | 435,330 |
LOAD_CONST 0
LOAD_CONST ('annotations',)
IMPORT_NAME __future__
IMPORT_FROM annotations
STORE_NAME annotations
POP_TOP
LOAD_CONST 0
LOAD_CONST ('setup',)
IMPORT_NAME distutils.core
IMPORT_FROM setup
STORE_NAME setup
POP_TOP
LOAD_NAME setup
LOAD_CONST 'bazz'
LOAD_CONST '1'
LOAD_CONST 'demo'
BUILD_LIST
LOAD_CONST '... | from __future__ import annotations
from distutils.core import setup
setup(
name="bazz",
version="1",
py_modules=["demo"],
package_dir={"src": "src"},
install_requires=["requests~=2.25.1"],
)
| data/poetry-1.7.1/tests/fixtures/with_path_dependency/bazz/setup.py | 140 | 81 | 331,386 |
LOAD_CONST 'Models for the Constitutional AI chain.'
STORE_NAME __doc__
LOAD_CONST 0
LOAD_CONST ('BaseModel',)
IMPORT_NAME langchain_core.pydantic_v1
IMPORT_FROM BaseModel
STORE_NAME BaseModel
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object ConstitutionalPrinciple at 0x7fab415030c0, file "f.py", line 6>
LOAD_CONST '... | """Models for the Constitutional AI chain."""
from langchain_core.pydantic_v1 import BaseModel
class ConstitutionalPrinciple(BaseModel):
"""Class for a constitutional principle."""
critique_request: str
revision_request: str
name: str = "Constitutional Principle"
| data/langchain-0.1.8/langchain/chains/constitutional_ai/models.py | 250 | 81 | 369,089 |
LOAD_CONST 1
LOAD_CONST ('StatsClient',)
IMPORT_NAME client
IMPORT_FROM StatsClient
STORE_NAME StatsClient
POP_TOP
LOAD_CONST 1
LOAD_CONST ('TCPStatsClient',)
IMPORT_NAME client
IMPORT_FROM TCPStatsClient
STORE_NAME TCPStatsClient
POP_TOP
LOAD_CONST 1
LOAD_CONST ('UnixSocketStatsClient',)
IMPORT_NAME client
IMPORT_FR... | from .client import StatsClient
from .client import TCPStatsClient
from .client import UnixSocketStatsClient
VERSION = (4, 0, 1)
__version__ = ".".join(map(str, VERSION))
__all__ = ["StatsClient", "TCPStatsClient", "UnixSocketStatsClient"]
| data/statsd-4.0.1/statsd/__init__.py | 170 | 81 | 307,638 |
LOAD_CONST 'pytest-bdd public API.'
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 ('scenario', 'scenarios')
IMPORT_NAME pytest_bdd.scenario
IMPORT_FROM scenario
STORE_NAME scenario
IMPORT_FROM scenarios... | """pytest-bdd public API."""
from __future__ import annotations
from pytest_bdd.scenario import scenario, scenarios
from pytest_bdd.steps import given, step, then, when
__all__ = ["given", "when", "step", "then", "scenario", "scenarios"]
| data/pytest_bdd-7.0.1/src/pytest_bdd/__init__.py | 186 | 81 | 313,238 |
LOAD_CONST 0
LOAD_CONST ('Enum',)
IMPORT_NAME enum
IMPORT_FROM Enum
STORE_NAME Enum
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object Sort at 0x7fab82343150, file "f.py", line 4>
LOAD_CONST 'Sort'
MAKE_FUNCTION
LOAD_CONST 'Sort'
LOAD_NAME int
LOAD_NAME Enum
CALL_FUNCTION
STORE_NAME Sort
LOAD_BUILD_CLASS
LOAD_CONST <co... | from enum import Enum
class Sort(int, Enum):
MOST_RELEVANT = 1
NEWEST = 2
RATING = 3
class Device(int, Enum):
MOBILE = 2
TABLET = 3
CHROMEBOOK = 5
TV = 6
| data/google_play_scraper-1.2.6/google_play_scraper/constants/google_play.py | 274 | 81 | 207,688 |
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 PHASE
STORE_NAME PHASE
LOAD_BUILD_CLASS
LOAD_CONST <code object TestPHASEGroup at 0x7faa503bbe40, file "f.py", line 6>
LOAD_CONST 'TestPHASEGroup'
MAKE_FU... | from PyObjCTools.TestSupport import TestCase
import PHASE
class TestPHASEGroup(TestCase):
def test_methods(self):
self.assertResultIsBOOL(PHASE.PHASEGroup.isMuted)
self.assertResultIsBOOL(PHASE.PHASEGroup.isSoloed)
| data/pyobjc-framework-PHASE-10.1/PyObjCTest/test_phasegroup.py | 264 | 81 | 135,225 |
LOAD_CONST 0
LOAD_CONST ('gapic_version',)
IMPORT_NAME google.events.cloud.workflows_v1
IMPORT_FROM gapic_version
STORE_NAME package_version
POP_TOP
LOAD_NAME package_version
LOAD_ATTR __version__
STORE_NAME __version__
LOAD_CONST 1
LOAD_CONST ('Workflow',)
IMPORT_NAME types.data
IMPORT_FROM Workflow
STORE_NAME Workf... | from google.events.cloud.workflows_v1 import gapic_version as package_version
__version__ = package_version.__version__
from .types.data import Workflow
from .types.data import WorkflowEventData
__all__ = (
"Workflow",
"WorkflowEventData",
)
| data/google-events-0.11.0/src/google/events/cloud/workflows_v1/__init__.py | 139 | 81 | 13,337 |
LOAD_CONST 0
LOAD_CONST ('colorer',)
IMPORT_NAME tendo
IMPORT_FROM colorer
STORE_NAME colorer
POP_TOP
LOAD_NAME __name__
LOAD_CONST '__main__'
COMPARE_OP ==
POP_JUMP_IF_FALSE
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME logging
STORE_NAME logging
LOAD_NAME logging
LOAD_METHOD getLogger
CALL_METHOD
LOAD_METHOD setLevel
L... | from tendo import colorer # noqa
if __name__ == "__main__":
import logging
logging.getLogger().setLevel(logging.NOTSET)
logging.warn("a warning")
logging.error("some error")
logging.info("some info")
logging.debug("some info")
| data/tendo-0.3.0/demo/demo_colorer.py | 155 | 81 | 210,007 |
SETUP_EXCEPT to 18
LOAD_CONST 1
LOAD_CONST ('_logical_writers',)
IMPORT_NAME
IMPORT_FROM _logical_writers
STORE_NAME _logical_writers
POP_TOP
POP_BLOCK
JUMP_FORWARD to 50
DUP_TOP
LOAD_NAME ImportError
COMPARE_OP exception match
POP_JUMP_IF_FALSE
POP_TOP
POP_TOP
POP_TOP
LOAD_CONST 1
LOAD_CONST ('_logical_writers_py',... | try:
from . import _logical_writers
except ImportError:
from . import _logical_writers_py as _logical_writers # type: ignore
LOGICAL_WRITERS = _logical_writers.LOGICAL_WRITERS
__all__ = ["LOGICAL_WRITERS"]
| data/fastavro-1.9.4/fastavro/logical_writers.py | 167 | 81 | 210,057 |
LOAD_CONST 1
LOAD_CONST ('psturng', 'qsturng', 'p_keys', 'v_keys')
IMPORT_NAME qsturng_
IMPORT_FROM psturng
STORE_NAME psturng
IMPORT_FROM qsturng
STORE_NAME qsturng
IMPORT_FROM p_keys
STORE_NAME p_keys
IMPORT_FROM v_keys
STORE_NAME v_keys
POP_TOP
LOAD_CONST 0
LOAD_CONST ('PytestTester',)
IMPORT_NAME statsmodels.tools... | from .qsturng_ import psturng, qsturng, p_keys, v_keys
from statsmodels.tools._testing import PytestTester
__all__ = ["p_keys", "psturng", "qsturng", "v_keys", "test"]
test = PytestTester()
| data/statsmodels-0.14.1/statsmodels/stats/libqsturng/__init__.py | 177 | 81 | 202,862 |
LOAD_CONST 3
LOAD_CONST ('GmpGetSystemReportsTestMixin',)
IMPORT_NAME gmpv208.system.system_reports
IMPORT_FROM GmpGetSystemReportsTestMixin
STORE_NAME GmpGetSystemReportsTestMixin
POP_TOP
LOAD_CONST 3
LOAD_CONST ('Gmpv225TestCase',)
IMPORT_NAME gmpv225
IMPORT_FROM Gmpv225TestCase
STORE_NAME Gmpv225TestCase
POP_TOP
L... | from ...gmpv208.system.system_reports import GmpGetSystemReportsTestMixin
from ...gmpv225 import Gmpv225TestCase
class Gmpv225GetSystemReportsTestCase(GmpGetSystemReportsTestMixin, Gmpv225TestCase):
pass
| data/python_gvm-24.1.0/tests/protocols/gmpv225/system/test_system_reports.py | 257 | 81 | 371,952 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME asyncio
STORE_NAME asyncio
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME pytest
STORE_NAME pytest
LOAD_NAME pytest
LOAD_ATTR fixture
LOAD_CONST <code object io_loop at 0x7fab40d86810, file "f.py", line 6>
LOAD_CONST 'io_loop'
MAKE_FUNCTION
CALL_FUNCTION
STORE_NAME io_loop
LOAD_NAM... | import asyncio
import pytest
@pytest.fixture
def io_loop():
yield asyncio.SelectorEventLoop()
@pytest.mark.xfail(type=TypeError)
async def test_bad_io_loop_fixture(io_loop):
assert False # won't be run
| data/pytest-tornasync-0.6.0.post2/test/test_plugin2.py | 231 | 81 | 307,393 |
LOAD_CONST 0
LOAD_CONST ('CAPABILITY',)
IMPORT_NAME yubikit.management
IMPORT_FROM CAPABILITY
STORE_NAME CAPABILITY
POP_TOP
LOAD_CONST 3
LOAD_CONST ('condition',)
IMPORT_NAME
IMPORT_FROM condition
STORE_NAME condition
POP_TOP
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME pytest
STORE_NAME pytest
LOAD_NAME pytest
LOAD_ATT... | from yubikit.management import CAPABILITY
from ... import condition
import pytest
@pytest.fixture(autouse=True)
@condition.capability(CAPABILITY.PIV)
def ensure_piv(ykman_cli):
ykman_cli("piv", "reset", "-f")
| data/yubikey_manager-5.3.0/tests/device/cli/piv/conftest.py | 200 | 81 | 63,476 |
LOAD_CONST 60
STORE_NAME DEFAULT_CONNECTION_TIMEOUT
LOAD_CONST '23.7.0'
STORE_NAME MIN_SERVER_VERSION
LOAD_CONST 50
STORE_NAME DEFAULT_PAGE_SIZE
LOAD_CONST 3
STORE_NAME JOB_POLL_INTERVAL
LOAD_CONST 1800
STORE_NAME JOB_WAIT_TIMEOUT
LOAD_CONST None
RETURN_VALUE | DEFAULT_CONNECTION_TIMEOUT = 60 # In seconds
MIN_SERVER_VERSION = "23.7.0" # @TODO: Change this before 3.0 release
DEFAULT_PAGE_SIZE = 50
JOB_POLL_INTERVAL = 3
JOB_WAIT_TIMEOUT = 1800
| data/fiddler-client-2.4.0/fiddler3/configs.py | 85 | 81 | 422,757 |
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 ('OpenSearchService',)
IMPORT_NAME prowler.providers.aws.services.opensearch.opensearch_service
IMPORT_FROM OpenSearch... | from prowler.providers.aws.lib.audit_info.audit_info import current_audit_info
from prowler.providers.aws.services.opensearch.opensearch_service import (
OpenSearchService,
)
opensearch_client = OpenSearchService(current_audit_info)
| data/prowler-3.14.0/prowler/providers/aws/services/opensearch/opensearch_client.py | 130 | 81 | 183,021 |
LOAD_CONST 0
LOAD_CONST ('get_bolded_text', 'get_color_mapping', 'get_colored_text', 'print_text')
IMPORT_NAME langchain_core.utils.input
IMPORT_FROM get_bolded_text
STORE_NAME get_bolded_text
IMPORT_FROM get_color_mapping
STORE_NAME get_color_mapping
IMPORT_FROM get_colored_text
STORE_NAME get_colored_text
IMPORT_FROM... | from langchain_core.utils.input import (
get_bolded_text,
get_color_mapping,
get_colored_text,
print_text,
)
__all__ = ["get_color_mapping", "get_colored_text", "get_bolded_text", "print_text"]
| data/langchain-0.1.8/langchain/utils/input.py | 151 | 81 | 368,466 |
LOAD_CONST 'GET'
LOAD_NAME uri
LOAD_CONST '/stuff/here?foo=bar'
CALL_FUNCTION
LOAD_CONST (1, 0)
LOAD_CONST ('IF-MATCH', 'bazinga!')
LOAD_CONST ('IF-MATCH', 'large-sound')
BUILD_LIST
LOAD_CONST b''
LOAD_CONST ('method', 'uri', 'version', 'headers', 'body')
BUILD_CONST_KEY_MAP
STORE_NAME request
LOAD_CONST None
RETUR... | request = {
"method": "GET",
"uri": uri("/stuff/here?foo=bar"),
"version": (1, 0),
"headers": [("IF-MATCH", "bazinga!"), ("IF-MATCH", "large-sound")],
"body": b"",
}
| data/gunicorn-21.2.0/tests/requests/valid/017.py | 95 | 81 | 343,463 |
LOAD_CONST 0
LOAD_CONST ('Celery',)
IMPORT_NAME celery
IMPORT_FROM Celery
STORE_NAME Celery
POP_TOP
LOAD_NAME Celery
LOAD_CONST 'proj'
LOAD_CONST 'amqp://'
LOAD_CONST 'rpc://'
LOAD_CONST 'proj.tasks'
BUILD_LIST
LOAD_CONST ('broker', 'backend', 'include')
CALL_FUNCTION
STORE_NAME app
LOAD_NAME app
LOAD_ATTR conf
LOAD_... | from celery import Celery
app = Celery("proj", broker="amqp://", backend="rpc://", include=["proj.tasks"])
app.conf.update(
result_expires=3600,
)
if __name__ == "__main__":
app.start()
| data/celery-5.3.6/examples/next-steps/proj/celery.py | 144 | 81 | 69,826 |
LOAD_CONST 3
LOAD_CONST ('GmpGetSystemReportsTestMixin',)
IMPORT_NAME gmpv208.system.system_reports
IMPORT_FROM GmpGetSystemReportsTestMixin
STORE_NAME GmpGetSystemReportsTestMixin
POP_TOP
LOAD_CONST 3
LOAD_CONST ('Gmpv224TestCase',)
IMPORT_NAME gmpv224
IMPORT_FROM Gmpv224TestCase
STORE_NAME Gmpv224TestCase
POP_TOP
L... | from ...gmpv208.system.system_reports import GmpGetSystemReportsTestMixin
from ...gmpv224 import Gmpv224TestCase
class Gmpv224GetSystemReportsTestCase(GmpGetSystemReportsTestMixin, Gmpv224TestCase):
pass
| data/python_gvm-24.1.0/tests/protocols/gmpv224/system/test_system_reports.py | 256 | 81 | 371,574 |
LOAD_CONST '\nMost of the implementation of the package is here and is internal-only.\n\nPublic API will be in the ``edx_event_bus_kafka`` module for the most part.\n\nSee ADR ``docs/decisions/0006-public-api-and-app-organization.rst`` for the reasoning.\n'
STORE_NAME __doc__
LOAD_CONST None
RETURN_VALUE | """
Most of the implementation of the package is here and is internal-only.
Public API will be in the ``edx_event_bus_kafka`` module for the most part.
See ADR ``docs/decisions/0006-public-api-and-app-organization.rst`` for the reasoning.
"""
| data/edx_event_bus_kafka-5.6.0/edx_event_bus_kafka/internal/__init__.py | 93 | 81 | 182,732 |
LOAD_CONST 3
LOAD_CONST ('GmpGetSystemReportsTestMixin',)
IMPORT_NAME gmpv208.system.system_reports
IMPORT_FROM GmpGetSystemReportsTestMixin
STORE_NAME GmpGetSystemReportsTestMixin
POP_TOP
LOAD_CONST 3
LOAD_CONST ('Gmpv214TestCase',)
IMPORT_NAME gmpv214
IMPORT_FROM Gmpv214TestCase
STORE_NAME Gmpv214TestCase
POP_TOP
L... | from ...gmpv208.system.system_reports import GmpGetSystemReportsTestMixin
from ...gmpv214 import Gmpv214TestCase
class Gmpv214GetSystemReportsTestCase(GmpGetSystemReportsTestMixin, Gmpv214TestCase):
pass
| data/python_gvm-24.1.0/tests/protocols/gmpv214/system/test_system_reports.py | 256 | 81 | 371,481 |
LOAD_CONST <code object PipeClient at 0x7fab4106c660, file "f.py", line 1>
LOAD_CONST 'PipeClient'
MAKE_FUNCTION
STORE_NAME PipeClient
LOAD_CONST <code object _parse at 0x7fab4106c150, file "f.py", line 9>
LOAD_CONST '_parse'
MAKE_FUNCTION
STORE_NAME _parse
LOAD_CONST None
RETURN_VALUE
SETUP_LOOP to 12
LOAD_CONST 2
... | def PipeClient(address):
while 1:
z = 2
else:
raise
return
def _parse(source, state, this, group, char):
while 1:
if this:
while 1:
raise RuntimeError
else:
raise IndexError
return
| data/xdis-6.0.5/test/simple_source/stmts/02_while1else.py | 176 | 81 | 85,372 |
LOAD_CONST 0
LOAD_CONST ('command',)
IMPORT_NAME pyghmi.ipmi
IMPORT_FROM command
STORE_NAME command
POP_TOP
LOAD_NAME command
LOAD_ATTR Command
LOAD_CONST 'bmc'
LOAD_CONST 'userid'
LOAD_CONST 'ZjE4ZjI0NTE4YmI2NGJjZDliOGY3ZmJiY2UyN2IzODQK'
LOAD_CONST ('bmc', 'userid', 'password')
CALL_FUNCTION
STORE_NAME cmd
LOAD_CONS... | from pyghmi.ipmi import command
cmd = command.Command(
bmc="bmc", userid="userid", password="ZjE4ZjI0NTE4YmI2NGJjZDliOGY3ZmJiY2UyN2IzODQK"
)
| data/bandit-1.7.7/examples/pyghmi.py | 113 | 81 | 56,663 |
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 ('Neptune',)
IMPORT_NAME prowler.providers.aws.services.neptune.neptune_service
IMPORT_FROM Neptune
STORE_NAME Neptune... | from prowler.providers.aws.lib.audit_info.audit_info import current_audit_info
from prowler.providers.aws.services.neptune.neptune_service import (
Neptune,
)
neptune_client = Neptune(current_audit_info)
| data/prowler-3.14.0/prowler/providers/aws/services/neptune/neptune_client.py | 130 | 81 | 183,084 |
LOAD_CONST <code object test_root at 0x7faa754c6b70, file "f.py", line 1>
LOAD_CONST 'test_root'
MAKE_FUNCTION
STORE_NAME test_root
LOAD_CONST <code object test_notfound at 0x7faa754c6c00, file "f.py", line 6>
LOAD_CONST 'test_notfound'
MAKE_FUNCTION
STORE_NAME test_notfound
LOAD_CONST None
RETURN_VALUE
LOAD_FAST tes... | def test_root(testapp):
res = testapp.get("/", status=200)
assert b"Pyramid" in res.body
def test_notfound(testapp):
res = testapp.get("/badurl", status=404)
assert res.status_code == 404
| data/pyramid-2.0.2/docs/tutorials/wiki/src/authorization/tests/test_functional.py | 229 | 81 | 19,962 |
LOAD_CONST 'Archive commands for the unshar program.'
STORE_NAME __doc__
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME os
STORE_NAME os
LOAD_CONST <code object extract_shar at 0x7faa750be0c0, file "f.py", line 5>
LOAD_CONST 'extract_shar'
MAKE_FUNCTION
STORE_NAME extract_shar
LOAD_CONST None
RETURN_VALUE
LOAD_FAST cmd
LO... | """Archive commands for the unshar program."""
import os
def extract_shar(archive, compression, cmd, verbosity, interactive, outdir):
"""Extract a SHAR archive."""
cmdlist = [cmd, os.path.abspath(archive)]
return (cmdlist, {"cwd": outdir})
| data/patool-2.2.0/patoolib/programs/unshar.py | 136 | 81 | 441,619 |
LOAD_CONST 0
LOAD_CONST ('*',)
IMPORT_NAME azure.cli.core.aaz
IMPORT_STAR
LOAD_NAME register_command_group
LOAD_CONST 'billing enrollment-account billing-permission'
CALL_FUNCTION
LOAD_BUILD_CLASS
LOAD_CONST <code object __CMDGroup at 0x7fab41e98c00, file "f.py", line 4>
LOAD_CONST '__CMDGroup'
MAKE_FUNCTION
LOAD_CON... | from azure.cli.core.aaz import *
@register_command_group(
"billing enrollment-account billing-permission",
)
class __CMDGroup(AAZCommandGroup):
"""Manage enrollment account billing permission"""
pass
__all__ = ["__CMDGroup"]
| data/azure-cli-2.57.0/azure/cli/command_modules/billing/aaz/latest/billing/enrollment_account/billing_permission/__cmd_group.py | 191 | 81 | 377,359 |
LOAD_CONST 2
LOAD_CONST ('Provider',)
IMPORT_NAME
IMPORT_FROM Provider
STORE_NAME PhoneNumberProvider
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object Provider at 0x7fab42838390, file "f.py", line 4>
LOAD_CONST 'Provider'
MAKE_FUNCTION
LOAD_CONST 'Provider'
LOAD_NAME PhoneNumberProvider
CALL_FUNCTION
STORE_NAME Provid... | from .. import Provider as PhoneNumberProvider
class Provider(PhoneNumberProvider):
formats = (
"+977 ##########",
"+977 ### #######",
"984#######",
"985#######",
"980#######",
)
| data/Faker-23.2.1/faker/providers/phone_number/ne_NP/__init__.py | 161 | 81 | 16,843 |
LOAD_CONST "Dataset definition for radon.\n\nDEPRECATED!\nIf you want to use the Radon dataset builder class, use:\ntfds.builder_cls('radon')\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 radon.
DEPRECATED!
If you want to use the Radon dataset builder class, use:
tfds.builder_cls('radon')
"""
from tensorflow_datasets.core import lazy_builder_import
Radon = lazy_builder_import.LazyBuilderImport("radon")
| data/tfds-nightly-4.9.4.dev202402210044/tensorflow_datasets/structured/radon.py | 125 | 81 | 238,262 |
LOAD_CONST 0
LOAD_CONST ('contextmanager',)
IMPORT_NAME contextlib
IMPORT_FROM contextmanager
STORE_NAME contextmanager
POP_TOP
LOAD_CONST 0
LOAD_CONST ('Iterator',)
IMPORT_NAME typing
IMPORT_FROM Iterator
STORE_NAME Iterator
POP_TOP
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME warnings
STORE_NAME warnings
LOAD_NAME con... | from contextlib import (
contextmanager,
)
from typing import (
Iterator,
)
import warnings
@contextmanager
def catch_and_ignore_import_warning() -> Iterator[None]:
with warnings.catch_warnings():
warnings.simplefilter("ignore", category=ImportWarning)
yield
| data/py-evm-0.9.0b1/eth/_warnings.py | 231 | 81 | 106,837 |
LOAD_CONST 2
STORE_NAME EXECUTEDIRECT
LOAD_CONST 3
STORE_NAME PREPARE
LOAD_CONST 13
STORE_NAME EXECUTE
LOAD_CONST 16
STORE_NAME READLOB
LOAD_CONST 17
STORE_NAME WRITELOB
LOAD_CONST 65
STORE_NAME AUTHENTICATE
LOAD_CONST 66
STORE_NAME CONNECT
LOAD_CONST 67
STORE_NAME COMMIT
LOAD_CONST 68
STORE_NAME ROLLBACK
LOAD... | EXECUTEDIRECT = 2
PREPARE = 3
EXECUTE = 13
READLOB = 16
WRITELOB = 17
AUTHENTICATE = 65
CONNECT = 66
COMMIT = 67
ROLLBACK = 68
FETCHNEXT = 71
DISCONNECT = 77
| data/pyhdb-0.3.4/pyhdb/protocol/constants/message_types.py | 130 | 81 | 441,538 |
LOAD_CONST <code object test_root at 0x7faa754c6b70, file "f.py", line 1>
LOAD_CONST 'test_root'
MAKE_FUNCTION
STORE_NAME test_root
LOAD_CONST <code object test_notfound at 0x7faa51f69810, file "f.py", line 6>
LOAD_CONST 'test_notfound'
MAKE_FUNCTION
STORE_NAME test_notfound
LOAD_CONST None
RETURN_VALUE
LOAD_FAST tes... | def test_root(testapp):
res = testapp.get("/", status=200)
assert b"Pyramid" in res.body
def test_notfound(testapp):
res = testapp.get("/badurl", status=404)
assert res.status_code == 404
| data/pyramid-2.0.2/docs/quick_tour/logging/tests/test_functional.py | 229 | 81 | 19,981 |
LOAD_CONST 0
LOAD_CONST ('absolute_import', 'division', 'print_function')
IMPORT_NAME __future__
IMPORT_FROM absolute_import
STORE_NAME absolute_import
IMPORT_FROM division
STORE_NAME division
IMPORT_FROM print_function
STORE_NAME print_function
POP_TOP
LOAD_NAME type
STORE_NAME __metaclass__
LOAD_CONST 0
LOAD_CONST ... | from __future__ import absolute_import, division, print_function
__metaclass__ = type
import json
def main():
print(json.dumps(dict(changed=False, source="testns.testcol.notrealmodule")))
if __name__ == "__main__":
main()
| data/ansible-core-2.16.3/test/integration/targets/ansible-doc/broken-docs/collections/ansible_collections/testns/testcol/plugins/modules/notrealmodule.py | 203 | 81 | 437,579 |
LOAD_CONST 0
LOAD_CONST ('ClientValue',)
IMPORT_NAME office365.runtime.client_value
IMPORT_FROM ClientValue
STORE_NAME ClientValue
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object AnalyticsSignal at 0x7fadb5811c00, file "f.py", line 4>
LOAD_CONST 'AnalyticsSignal'
MAKE_FUNCTION
LOAD_CONST 'AnalyticsSignal'
LOAD_NAME C... | from office365.runtime.client_value import ClientValue
class AnalyticsSignal(ClientValue):
"""Contains data about an action performed by an actor on an item."""
@property
def entity_type_name(self):
return "Microsoft.SharePoint.Client.Search.Analytics.AnalyticsSignal"
| data/Office365-REST-Python-Client-2.5.5/office365/sharepoint/search/analytics/signal.py | 246 | 81 | 189,466 |
LOAD_CONST 0
LOAD_CONST ('FastAPI',)
IMPORT_NAME fastapi
IMPORT_FROM FastAPI
STORE_NAME FastAPI
POP_TOP
LOAD_CONST 0
LOAD_CONST ('BaseModel', 'HttpUrl')
IMPORT_NAME pydantic
IMPORT_FROM BaseModel
STORE_NAME BaseModel
IMPORT_FROM HttpUrl
STORE_NAME HttpUrl
POP_TOP
LOAD_NAME FastAPI
CALL_FUNCTION
STORE_NAME app
LOAD_B... | from fastapi import FastAPI
from pydantic import BaseModel, HttpUrl
app = FastAPI()
class Image(BaseModel):
url: HttpUrl
name: str
@app.post("/images/multiple/")
async def create_multiple_images(images: list[Image]):
return images
| data/fastapi-0.109.2/docs_src/body_nested_models/tutorial008_py39.py | 298 | 81 | 142,503 |
LOAD_CONST 0
LOAD_CONST ('absolute_import', 'division', 'print_function')
IMPORT_NAME __future__
IMPORT_FROM absolute_import
STORE_NAME absolute_import
IMPORT_FROM division
STORE_NAME division
IMPORT_FROM print_function
STORE_NAME print_function
POP_TOP
LOAD_NAME type
STORE_NAME __metaclass__
LOAD_CONST 0
LOAD_CONST ... | from __future__ import absolute_import, division, print_function
__metaclass__ = type
import json
def main():
print(json.dumps(dict(changed=False, source="testns.testcol.notrealmodule")))
if __name__ == "__main__":
main()
| data/ansible-core-2.16.3/test/integration/targets/ansible-doc/collections/ansible_collections/testns/testcol/plugins/modules/notrealmodule.py | 202 | 81 | 437,568 |
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 Quartz
STORE_NAME Quartz
LOAD_BUILD_CLASS
LOAD_CONST <code object TestPDFAnnotationButtonS... | from PyObjCTools.TestSupport import TestCase, min_os_level
import Quartz
class TestPDFAnnotationButtonStamp(TestCase):
@min_os_level("10.12")
def testMethods(self):
self.assertResultIsBOOL(Quartz.PDFAnnotationStamp.isSignature)
| data/pyobjc-framework-Quartz-10.1/PyObjCTest/test_pdfannotationstamp.py | 283 | 81 | 133,612 |
LOAD_CONST 0
LOAD_CONST ('Siesta',)
IMPORT_NAME ase.calculators.siesta.siesta
IMPORT_FROM Siesta
STORE_NAME Siesta
POP_TOP
LOAD_CONST 0
LOAD_CONST ('Siesta3_2',)
IMPORT_NAME ase.calculators.siesta.siesta
IMPORT_FROM Siesta3_2
STORE_NAME Siesta3_2
POP_TOP
LOAD_CONST 0
LOAD_CONST ('BaseSiesta',)
IMPORT_NAME ase.calcula... | from ase.calculators.siesta.siesta import Siesta
from ase.calculators.siesta.siesta import Siesta3_2
from ase.calculators.siesta.base_siesta import BaseSiesta
__all__ = ["Siesta", "Siesta3_2", "BaseSiesta"]
| data/ase-3.22.1/ase/calculators/siesta/__init__.py | 161 | 81 | 45,816 |
LOAD_CONST <code object test_root at 0x7faa51f696f0, file "f.py", line 1>
LOAD_CONST 'test_root'
MAKE_FUNCTION
STORE_NAME test_root
LOAD_CONST <code object test_notfound at 0x7faa51f69030, file "f.py", line 6>
LOAD_CONST 'test_notfound'
MAKE_FUNCTION
STORE_NAME test_notfound
LOAD_CONST None
RETURN_VALUE
LOAD_FAST tes... | def test_root(testapp):
res = testapp.get("/", status=200)
assert b"Pyramid" in res.body
def test_notfound(testapp):
res = testapp.get("/badurl", status=404)
assert res.status_code == 404
| data/pyramid-2.0.2/docs/quick_tour/sessions/tests/test_functional.py | 229 | 81 | 19,995 |
LOAD_CONST 'd F Y'
STORE_NAME DATE_FORMAT
LOAD_CONST 'H:i'
STORE_NAME TIME_FORMAT
LOAD_CONST 'j F'
STORE_NAME MONTH_DAY_FORMAT
LOAD_CONST 'd.m.Y'
STORE_NAME SHORT_DATE_FORMAT
LOAD_CONST ','
STORE_NAME DECIMAL_SEPARATOR
LOAD_CONST '\xa0'
STORE_NAME THOUSAND_SEPARATOR
LOAD_CONST None
RETURN_VALUE | DATE_FORMAT = "d F Y"
TIME_FORMAT = "H:i"
MONTH_DAY_FORMAT = "j F"
SHORT_DATE_FORMAT = "d.m.Y"
DECIMAL_SEPARATOR = ","
THOUSAND_SEPARATOR = " " # Non-breaking space
| data/Django-5.0.2/django/conf/locale/bg/formats.py | 99 | 81 | 327,069 |
LOAD_CONST 0
LOAD_CONST ('annotations',)
IMPORT_NAME __future__
IMPORT_FROM annotations
STORE_NAME annotations
POP_TOP
LOAD_CONST 0
LOAD_CONST ('Extension', 'setup')
IMPORT_NAME setuptools
IMPORT_FROM Extension
STORE_NAME Extension
IMPORT_FROM setup
STORE_NAME setup
POP_TOP
LOAD_NAME setup
LOAD_CONST 'extension.dist... | from __future__ import annotations
from setuptools import Extension, setup
setup(
name="extension.dist",
version="0.1",
description="A testing distribution \N{SNOWMAN}",
ext_modules=[Extension(name="extension", sources=["extension.c"])],
)
| data/wheel-0.42.0/tests/testdata/extension.dist/setup.py | 143 | 81 | 321,564 |
LOAD_CONST <code object test_root at 0x7faa51f694b0, file "f.py", line 1>
LOAD_CONST 'test_root'
MAKE_FUNCTION
STORE_NAME test_root
LOAD_CONST <code object test_notfound at 0x7faa51f69c90, file "f.py", line 6>
LOAD_CONST 'test_notfound'
MAKE_FUNCTION
STORE_NAME test_notfound
LOAD_CONST None
RETURN_VALUE
LOAD_FAST tes... | def test_root(testapp):
res = testapp.get("/", status=200)
assert b"Pyramid" in res.body
def test_notfound(testapp):
res = testapp.get("/badurl", status=404)
assert res.status_code == 404
| data/pyramid-2.0.2/docs/quick_tour/package/tests/test_functional.py | 229 | 81 | 20,008 |
LOAD_CONST '\nURLS for organizations end points.\n'
STORE_NAME __doc__
LOAD_CONST 0
LOAD_CONST ('routers',)
IMPORT_NAME rest_framework
IMPORT_FROM routers
STORE_NAME routers
POP_TOP
LOAD_CONST 0
LOAD_CONST ('OrganizationsViewSet',)
IMPORT_NAME organizations.v0.views
IMPORT_FROM OrganizationsViewSet
STORE_NAME Organiz... | """
URLS for organizations end points.
"""
from rest_framework import routers
from organizations.v0.views import OrganizationsViewSet
router = routers.SimpleRouter()
router.register(r"organizations", OrganizationsViewSet)
app_name = "v0"
urlpatterns = router.urls
| data/edx-organizations-6.12.1/organizations/v0/urls.py | 149 | 81 | 321,514 |
LOAD_CONST 0
LOAD_CONST ('*',)
IMPORT_NAME azure.cli.core.aaz
IMPORT_STAR
LOAD_NAME register_command_group
LOAD_CONST 'network lb frontend-ip'
CALL_FUNCTION
LOAD_BUILD_CLASS
LOAD_CONST <code object __CMDGroup at 0x7fab41637a50, file "f.py", line 4>
LOAD_CONST '__CMDGroup'
MAKE_FUNCTION
LOAD_CONST '__CMDGroup'
LOAD_N... | from azure.cli.core.aaz import *
@register_command_group(
"network lb frontend-ip",
)
class __CMDGroup(AAZCommandGroup):
"""Manage frontend IP addresses of a load balancer."""
pass
__all__ = ["__CMDGroup"]
| data/azure-cli-2.57.0/azure/cli/command_modules/network/aaz/profile_2017_03_09_profile/network/lb/frontend_ip/__cmd_group.py | 191 | 81 | 377,579 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.