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 ('Config',)
IMPORT_NAME parsl.config
IMPORT_FROM Config
STORE_NAME Config
POP_TOP
LOAD_CONST 0
LOAD_CONST ('WorkQueueExecutor',)
IMPORT_NAME parsl.executors
IMPORT_FROM WorkQueueExecutor
STORE_NAME WorkQueueExecutor
POP_TOP
LOAD_CONST 0
LOAD_CONST ('CondorProvider',)
IMPORT_NAME parsl.provider... | from parsl.config import Config
from parsl.executors import WorkQueueExecutor
from parsl.providers import CondorProvider
config = Config(
executors=[
WorkQueueExecutor(
port=50055,
source=True,
provider=CondorProvider(),
)
]
)
| data/parsl-2024.2.19/parsl/tests/scaling_tests/wqex_condor.py | 151 | 81 | 123,266 |
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/os_sys-2.1.4/server/conf/locale/bg/formats.py | 99 | 81 | 247,786 |
LOAD_CONST <code object test_root at 0x7faa747560c0, file "f.py", line 1>
LOAD_CONST 'test_root'
MAKE_FUNCTION
STORE_NAME test_root
LOAD_CONST <code object test_notfound at 0x7faa74756300, 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/views/tests/test_functional.py | 229 | 81 | 19,952 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME parsl
STORE_NAME parsl
LOAD_NAME parsl
LOAD_ATTR bash_app
LOAD_CONST (7,)
LOAD_CONST <code object my_app at 0x7f8e2ff250c0, file "f.py", line 4>
LOAD_CONST 'my_app'
MAKE_FUNCTION
CALL_FUNCTION
STORE_NAME my_app
LOAD_CONST <code object test_default_value at 0x7f8e2ff25270, fil... | import parsl
@parsl.bash_app
def my_app(cache=7):
assert type(cache) is int
return "true"
def test_default_value():
my_app().result()
def test_specified_value():
my_app(cache=8).result()
| data/parsl-2024.2.19/parsl/tests/test_bash_apps/test_keyword_overlaps.py | 283 | 81 | 123,312 |
LOAD_CONST 0
LOAD_CONST ('*',)
IMPORT_NAME azure.cli.core.aaz
IMPORT_STAR
LOAD_NAME register_command_group
LOAD_CONST 'network application-gateway ssl-policy'
CALL_FUNCTION
LOAD_BUILD_CLASS
LOAD_CONST <code object __CMDGroup at 0x7fab8204a390, file "f.py", line 4>
LOAD_CONST '__CMDGroup'
MAKE_FUNCTION
LOAD_CONST '__C... | from azure.cli.core.aaz import *
@register_command_group(
"network application-gateway ssl-policy",
)
class __CMDGroup(AAZCommandGroup):
"""Manage the SSL policy of an application gateway."""
pass
__all__ = ["__CMDGroup"]
| data/azure-cli-2.57.0/azure/cli/command_modules/network/aaz/latest/network/application_gateway/ssl_policy/__cmd_group.py | 191 | 81 | 378,503 |
LOAD_CONST 0
LOAD_CONST ('trunk',)
IMPORT_NAME neutron_lib.api.definitions
IMPORT_FROM trunk
STORE_NAME trunk
POP_TOP
LOAD_CONST 0
LOAD_CONST ('base',)
IMPORT_NAME neutron_lib.tests.unit.api.definitions
IMPORT_FROM base
STORE_NAME base
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object TrunkDefinitionTestCase at 0x7fab... | from neutron_lib.api.definitions import trunk
from neutron_lib.tests.unit.api.definitions import base
class TrunkDefinitionTestCase(base.DefinitionBaseTestCase):
extension_module = trunk
extension_resources = (trunk.TRUNKS,)
extension_attributes = (trunk.SUB_PORTS,)
| data/neutron-lib-3.10.0/neutron_lib/tests/unit/api/definitions/test_trunk.py | 211 | 81 | 384,893 |
LOAD_CONST 0
LOAD_CONST ('*',)
IMPORT_NAME azure.cli.core.aaz
IMPORT_STAR
LOAD_NAME register_command_group
LOAD_CONST 'network application-gateway rewrite-rule set'
CALL_FUNCTION
LOAD_BUILD_CLASS
LOAD_CONST <code object __CMDGroup at 0x7faa5e81f5d0, file "f.py", line 4>
LOAD_CONST '__CMDGroup'
MAKE_FUNCTION
LOAD_CONS... | from azure.cli.core.aaz import *
@register_command_group(
"network application-gateway rewrite-rule set",
)
class __CMDGroup(AAZCommandGroup):
"""Manage rewrite rule sets of an application gateway."""
pass
__all__ = ["__CMDGroup"]
| data/azure-cli-2.57.0/azure/cli/command_modules/network/aaz/latest/network/application_gateway/rewrite_rule/set/__cmd_group.py | 191 | 81 | 378,473 |
LOAD_CONST 0
LOAD_CONST ('*',)
IMPORT_NAME azure.cli.core.aaz
IMPORT_STAR
LOAD_NAME register_command_group
LOAD_CONST 'network application-gateway rewrite-rule condition'
CALL_FUNCTION
LOAD_BUILD_CLASS
LOAD_CONST <code object __CMDGroup at 0x7fab8204aae0, file "f.py", line 4>
LOAD_CONST '__CMDGroup'
MAKE_FUNCTION
LOA... | from azure.cli.core.aaz import *
@register_command_group(
"network application-gateway rewrite-rule condition",
)
class __CMDGroup(AAZCommandGroup):
"""Manage rewrite rule conditions of an application gateway."""
pass
__all__ = ["__CMDGroup"]
| data/azure-cli-2.57.0/azure/cli/command_modules/network/aaz/latest/network/application_gateway/rewrite_rule/condition/__cmd_group.py | 190 | 81 | 378,465 |
LOAD_CONST 0
LOAD_CONST ('*',)
IMPORT_NAME azure.cli.core.aaz
IMPORT_STAR
LOAD_NAME register_command_group
LOAD_CONST 'network application-gateway root-cert'
CALL_FUNCTION
LOAD_BUILD_CLASS
LOAD_CONST <code object __CMDGroup at 0x7faa5dedb540, file "f.py", line 4>
LOAD_CONST '__CMDGroup'
MAKE_FUNCTION
LOAD_CONST '__CM... | from azure.cli.core.aaz import *
@register_command_group(
"network application-gateway root-cert",
)
class __CMDGroup(AAZCommandGroup):
"""Manage trusted root certificates of an application gateway."""
pass
__all__ = ["__CMDGroup"]
| data/azure-cli-2.57.0/azure/cli/command_modules/network/aaz/latest/network/application_gateway/root_cert/__cmd_group.py | 189 | 81 | 378,422 |
LOAD_CONST 'servicediscovery base URL and path.'
STORE_NAME __doc__
LOAD_CONST 1
LOAD_CONST ('ServiceDiscoveryResponse',)
IMPORT_NAME responses
IMPORT_FROM ServiceDiscoveryResponse
STORE_NAME ServiceDiscoveryResponse
POP_TOP
LOAD_CONST 'https?://servicediscovery\\.(.+)\\.amazonaws\\.com'
BUILD_LIST
STORE_NAME url_bas... | """servicediscovery base URL and path."""
from .responses import ServiceDiscoveryResponse
url_bases = [
r"https?://servicediscovery\.(.+)\.amazonaws\.com",
]
url_paths = {
"{0}/$": ServiceDiscoveryResponse.dispatch,
}
| data/moto-5.0.2/moto/servicediscovery/urls.py | 109 | 81 | 198,027 |
LOAD_CONST "Dataset definition for flic.\n\nDEPRECATED!\nIf you want to use the Flic dataset builder class, use:\ntfds.builder_cls('flic')\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 flic.
DEPRECATED!
If you want to use the Flic dataset builder class, use:
tfds.builder_cls('flic')
"""
from tensorflow_datasets.core import lazy_builder_import
Flic = lazy_builder_import.LazyBuilderImport("flic")
| data/tfds-nightly-4.9.4.dev202402210044/tensorflow_datasets/image/flic.py | 125 | 81 | 238,317 |
LOAD_CONST 2
LOAD_CONST ('_utilities',)
IMPORT_NAME
IMPORT_FROM _utilities
STORE_NAME _utilities
POP_TOP
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME typing
STORE_NAME typing
LOAD_CONST 1
LOAD_CONST ('*',)
IMPORT_NAME get_repository
IMPORT_STAR
LOAD_CONST 1
LOAD_CONST ('*',)
IMPORT_NAME get_repository_iam_policy
IMPORT_... | from .. import _utilities
import typing
from .get_repository import *
from .get_repository_iam_policy import *
from .repository import *
from .repository_iam_binding import *
from .repository_iam_member import *
from .repository_iam_policy import *
from ._inputs import *
from . import outputs
| data/pulumi_gcp-7.9.0/pulumi_gcp/sourcerepo/__init__.py | 201 | 81 | 445,595 |
LOAD_CONST '\n.. currentmodule:: qiskit.scheduler.methods\n\nPulse scheduling methods.\n\n.. autofunction:: as_soon_as_possible\n.. autofunction:: as_late_as_possible\n'
STORE_NAME __doc__
LOAD_CONST 0
LOAD_CONST ('as_soon_as_possible', 'as_late_as_possible')
IMPORT_NAME qiskit.scheduler.methods.basic
IMPORT_FROM as_s... | """
.. currentmodule:: qiskit.scheduler.methods
Pulse scheduling methods.
.. autofunction:: as_soon_as_possible
.. autofunction:: as_late_as_possible
"""
from qiskit.scheduler.methods.basic import as_soon_as_possible, as_late_as_possible
| data/qiskit-terra-0.46.0/qiskit/scheduler/methods/__init__.py | 142 | 81 | 430,705 |
LOAD_CONST <code object test_root at 0x7faa747568a0, file "f.py", line 1>
LOAD_CONST 'test_root'
MAKE_FUNCTION
STORE_NAME test_root
LOAD_CONST <code object test_notfound at 0x7faa74756030, 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/basiclayout/tests/test_functional.py | 229 | 81 | 19,909 |
LOAD_CONST 'PyV8'
STORE_NAME PyV8
LOAD_CONST 'Node'
STORE_NAME Node
LOAD_CONST 'JavaScriptCore'
STORE_NAME JavaScriptCore
LOAD_CONST 'SpiderMonkey'
STORE_NAME SpiderMonkey
LOAD_CONST 'JScript'
STORE_NAME JScript
LOAD_CONST 'PhantomJS'
STORE_NAME PhantomJS
LOAD_CONST 'SlimerJS'
STORE_NAME SlimerJS
LOAD_CONST 'Nas... | PyV8 = "PyV8"
Node = "Node"
JavaScriptCore = "JavaScriptCore"
SpiderMonkey = "SpiderMonkey"
JScript = "JScript"
PhantomJS = "PhantomJS"
SlimerJS = "SlimerJS"
Nashorn = "Nashorn"
| data/PyExecJS-1.5.1/execjs/runtime_names.py | 106 | 81 | 93,302 |
LOAD_CONST 'Class for a Real Variational Principle.'
STORE_NAME __doc__
LOAD_CONST 0
LOAD_CONST ('ABC',)
IMPORT_NAME abc
IMPORT_FROM ABC
STORE_NAME ABC
POP_TOP
LOAD_CONST 1
LOAD_CONST ('VariationalPrinciple',)
IMPORT_NAME variational_principle
IMPORT_FROM VariationalPrinciple
STORE_NAME VariationalPrinciple
POP_TOP
... | """Class for a Real Variational Principle."""
from abc import ABC
from .variational_principle import VariationalPrinciple
class RealVariationalPrinciple(VariationalPrinciple, ABC):
"""Class for a Real Variational Principle. The real variant
means that we consider real time dynamics."""
| data/qiskit-terra-0.46.0/qiskit/algorithms/time_evolvers/variational/variational_principles/real_variational_principle.py | 233 | 81 | 430,650 |
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_CONST None
RETURN_... | from radish import before
@before.each_scenario
def init_numbers(scenario):
scenario.context.quote = None
scenario.context.database = lambda: None
setattr(scenario.context.database, "quotes", [])
scenario.context.database.quotes = []
| data/radish-bdd-0.17.1/tests/exploratory/steptext/radish/terrain.py | 218 | 81 | 243,406 |
LOAD_CONST 0
LOAD_CONST ('Enum',)
IMPORT_NAME enum
IMPORT_FROM Enum
STORE_NAME Enum
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object BillingPriceRecurrenceInterval at 0x7fab81f3b390, file "f.py", line 4>
LOAD_CONST 'BillingPriceRecurrenceInterval'
MAKE_FUNCTION
LOAD_CONST 'BillingPriceRecurrenceInterval'
LOAD_NAME str... | from enum import Enum
class BillingPriceRecurrenceInterval(str, Enum):
DAY = "day"
MONTH = "month"
WEEK = "week"
YEAR = "year"
def __str__(self) -> str:
return str(self.value)
| data/qcs_api_client-0.23.1/qcs_api_client/models/billing_price_recurrence_interval.py | 269 | 81 | 128,902 |
LOAD_CONST <code object test_root at 0x7faa74756150, file "f.py", line 1>
LOAD_CONST 'test_root'
MAKE_FUNCTION
STORE_NAME test_root
LOAD_CONST <code object test_notfound at 0x7faa747560c0, 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/models/tests/test_functional.py | 229 | 81 | 19,932 |
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 0x7faa5e81f540, 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/latest/network/lb/frontend_ip/__cmd_group.py | 191 | 81 | 378,078 |
LOAD_CONST 0
LOAD_CONST ('Resource',)
IMPORT_NAME clearbit.resource
IMPORT_FROM Resource
STORE_NAME Resource
POP_TOP
LOAD_CONST 0
LOAD_CONST ('ParamsInvalidError',)
IMPORT_NAME clearbit.error
IMPORT_FROM ParamsInvalidError
STORE_NAME ParamsInvalidError
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object Reveal at 0x7faa... | from clearbit.resource import Resource
from clearbit.error import ParamsInvalidError
class Reveal(Resource):
endpoint = "https://reveal.clearbit.com/v1/companies"
@classmethod
def find(cls, **options):
return cls.get("/find", **options)
| data/clearbit-0.1.7/clearbit/reveal.py | 252 | 81 | 25,894 |
LOAD_CONST <code object test_root at 0x7faa747560c0, 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/installation/tests/test_functional.py | 229 | 81 | 19,942 |
LOAD_CONST 2
LOAD_CONST ('_utilities',)
IMPORT_NAME
IMPORT_FROM _utilities
STORE_NAME _utilities
POP_TOP
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME typing
STORE_NAME typing
LOAD_CONST 1
LOAD_CONST ('*',)
IMPORT_NAME function
IMPORT_STAR
LOAD_CONST 1
LOAD_CONST ('*',)
IMPORT_NAME function_iam_binding
IMPORT_STAR
LOAD_... | from .. import _utilities
import typing
from .function import *
from .function_iam_binding import *
from .function_iam_member import *
from .function_iam_policy import *
from .get_function import *
from .get_function_iam_policy import *
from ._inputs import *
from . import outputs
| data/pulumi_gcp-7.9.0/pulumi_gcp/cloudfunctionsv2/__init__.py | 201 | 81 | 445,460 |
LOAD_CONST "Dataset definition for clic.\n\nDEPRECATED!\nIf you want to use the CLIC dataset builder class, use:\ntfds.builder_cls('clic')\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 clic.
DEPRECATED!
If you want to use the CLIC dataset builder class, use:
tfds.builder_cls('clic')
"""
from tensorflow_datasets.core import lazy_builder_import
CLIC = lazy_builder_import.LazyBuilderImport("clic")
| data/tfds-nightly-4.9.4.dev202402210044/tensorflow_datasets/image/clic.py | 125 | 81 | 238,316 |
LOAD_CONST <code object test_root at 0x7faa51f69c90, file "f.py", line 1>
LOAD_CONST 'test_root'
MAKE_FUNCTION
STORE_NAME test_root
LOAD_CONST <code object test_notfound at 0x7faa51f696f0, 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/narr/myproject/tests/test_functional.py | 229 | 81 | 20,030 |
LOAD_CONST 0
LOAD_CONST ('Environment',)
IMPORT_NAME jinja2
IMPORT_FROM Environment
STORE_NAME Environment
POP_TOP
LOAD_CONST <code object environment at 0x7fab700a7150, file "f.py", line 4>
LOAD_CONST 'environment'
MAKE_FUNCTION
STORE_NAME environment
LOAD_CONST None
RETURN_VALUE
LOAD_CONST 'extensions'
LOAD_FAST kw... | from jinja2 import Environment
def environment(**kwargs):
extensions = [] if "extensions" not in kwargs else kwargs["extensions"]
extensions.append("sass_processor.jinja2.ext.SassSrc")
kwargs["extensions"] = extensions
return Environment(**kwargs)
| data/django-sass-processor-1.4/tests/jinja2.py | 174 | 81 | 281,618 |
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_CONST 0
LOAD_CONST None
IMPORT_NAME glob
STORE_NAME glob
LOAD_CONST 0
LOAD_CONST ('JavascriptMinify',)
IMPORT_NAME jsmin
IMPORT_FROM JavascriptMinify
STORE_NAME JavascriptMinify
POP_TOP
SETUP_LOO... | import sys, os, glob
from jsmin import JavascriptMinify
for f in sys.argv[1:]:
with open(f, "r") as js:
minifier = JavascriptMinify(js, sys.stdout)
minifier.minify()
sys.stdout.write("\n")
| data/jsmin-3.0.1/jsmin/__main__.py | 212 | 81 | 187,353 |
LOAD_BUILD_CLASS
LOAD_CONST <code object ModuleDocFragment at 0x7fab4277ec00, file "f.py", line 1>
LOAD_CONST 'ModuleDocFragment'
MAKE_FUNCTION
LOAD_CONST 'ModuleDocFragment'
LOAD_NAME object
CALL_FUNCTION
STORE_NAME ModuleDocFragment
LOAD_CONST None
RETURN_VALUE
LOAD_NAME __name__
STORE_NAME __module__
LOAD_CONST 'Mo... | class ModuleDocFragment(object):
DOCUMENTATION = r"""
options:
http_login_user:
description:
- Basic Auth login
type: str
required: false
http_login_password:
description:
- Basic Auth password
type: str
required: false
"""
| data/ansible-9.2.0/ansible_collections/community/zabbix/plugins/doc_fragments/zabbix.py | 163 | 81 | 274,218 |
LOAD_CONST <code object pytest_configure at 0x7fab427d38a0, file "f.py", line 1>
LOAD_CONST 'pytest_configure'
MAKE_FUNCTION
STORE_NAME pytest_configure
LOAD_CONST None
RETURN_VALUE
LOAD_FAST config
LOAD_METHOD addinivalue_line
LOAD_CONST 'markers'
LOAD_CONST 'natural_earth: mark tests that use Natural Earth data, a... | def pytest_configure(config):
config.addinivalue_line(
"markers",
"natural_earth: mark tests that use Natural Earth "
"data, and the network, if not cached.",
)
config.addinivalue_line("markers", "network: mark tests that use the network.")
| data/Cartopy-0.22.0/lib/cartopy/tests/conftest.py | 142 | 81 | 217,381 |
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_CONST <code object sysAttributes at 0x7fab8233d9c0, file "f.py", line 5>
LOAD_CONST 'sysAttributes'
MAKE_FUNCTION
STORE_NAME sysAttributes
LOAD_CONST <code object osAttributes at 0x7fab5434b780,... | import os
import sys
def sysAttributes():
return (
sys.version_info,
sys.version_info[0],
sys.version_info.major,
sys.version,
sys.platform,
sys.maxsize,
)
def osAttributes():
return os.name
| data/Nuitka-2.0.3/tests/optimizations/HardImports.py | 196 | 81 | 148,199 |
LOAD_CONST 0
LOAD_CONST ('indexes',)
IMPORT_NAME haystack
IMPORT_FROM indexes
STORE_NAME indexes
POP_TOP
LOAD_CONST 1
LOAD_CONST ('MicroBlogPost',)
IMPORT_NAME models
IMPORT_FROM MicroBlogPost
STORE_NAME MicroBlogPost
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object MicroBlogSearchIndex at 0x7fab8005d540, file "f.py"... | from haystack import indexes
from .models import MicroBlogPost
class MicroBlogSearchIndex(indexes.SearchIndex, indexes.Indexable):
text = indexes.CharField(document=True, use_template=False, model_attr="text")
def get_model(self):
return MicroBlogPost
| data/django-haystack-3.2.1/test_haystack/test_app_using_appconfig/search_indexes.py | 280 | 81 | 65,035 |
LOAD_CONST 0
LOAD_CONST ('List', 'Type', 'overload')
IMPORT_NAME typing
IMPORT_FROM List
STORE_NAME List
IMPORT_FROM Type
STORE_NAME Type
IMPORT_FROM overload
STORE_NAME overload
POP_TOP
LOAD_CONST 1
LOAD_CONST ('Node',)
IMPORT_NAME node
IMPORT_FROM Node
STORE_NAME Node
POP_TOP
LOAD_CONST 1
LOAD_CONST ('BinaryTree',)... | from typing import List, Type, overload
from .node import Node
from .base_tree import BinaryTree as BaseTree
from .full_tree import BinaryTree as FullTree
from .full_tree_ex import BinaryTree as FullTreeEx
from .ordered_tree import BinaryTree as OrderedTree
BinaryTree = OrderedTree
| data/sgtpyutils-1.19.18/sgtpyutils/binary_tree/__init__.py | 195 | 81 | 87,260 |
LOAD_CONST 0
LOAD_CONST ('namedtuple',)
IMPORT_NAME collections
IMPORT_FROM namedtuple
STORE_NAME namedtuple
POP_TOP
LOAD_NAME namedtuple
LOAD_CONST 'GraphRelationship'
LOAD_CONST 'start_label'
LOAD_CONST 'end_label'
LOAD_CONST 'start_key'
LOAD_CONST 'end_key'
LOAD_CONST 'type'
LOAD_CONST 'reverse_type'
LOAD_C... | from collections import namedtuple
GraphRelationship = namedtuple(
"GraphRelationship",
[
"start_label",
"end_label",
"start_key",
"end_key",
"type",
"reverse_type",
"attributes",
],
)
| data/amundsen-databuilder-7.4.6/databuilder/models/graph_relationship.py | 110 | 81 | 27,657 |
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 TestQLPreviewItem at 0x7... | from PyObjCTools.TestSupport import TestCase, min_os_level
import Quartz # noqa: F401
class TestQLPreviewItem(TestCase):
@min_os_level("10.6")
def testClasses(self):
self.assertProtocolExists("QLPreviewItem")
| data/pyobjc-framework-Quartz-10.1/PyObjCTest/test_qlpreviewitem.py | 269 | 81 | 133,463 |
LOAD_CONST 0
LOAD_CONST ('unicode_literals', 'absolute_import')
IMPORT_NAME __future__
IMPORT_FROM unicode_literals
STORE_NAME unicode_literals
IMPORT_FROM absolute_import
STORE_NAME absolute_import
POP_TOP
LOAD_CONST 'Jannis Gebauer'
STORE_NAME __author__
LOAD_CONST 'support@pyup.io'
STORE_NAME __email__
LOAD_CONST... | from __future__ import unicode_literals, absolute_import
"""Top-level package for Dependency Parser."""
__author__ = """Jannis Gebauer"""
__email__ = "support@pyup.io"
__version__ = "0.6.3"
from .parser import parse # noqa
| data/dparse-0.6.3/dparse/__init__.py | 124 | 81 | 386,561 |
LOAD_CONST 0
LOAD_CONST ('*',)
IMPORT_NAME azure.cli.core.aaz
IMPORT_STAR
LOAD_NAME register_command_group
LOAD_CONST 'relay namespace authorization-rule'
CALL_FUNCTION
LOAD_BUILD_CLASS
LOAD_CONST <code object __CMDGroup at 0x7fab42062b70, file "f.py", line 4>
LOAD_CONST '__CMDGroup'
MAKE_FUNCTION
LOAD_CONST '__CMDGr... | from azure.cli.core.aaz import *
@register_command_group(
"relay namespace authorization-rule",
)
class __CMDGroup(AAZCommandGroup):
"""Manage Azure Relay Service Namespace Authorization Rule."""
pass
__all__ = ["__CMDGroup"]
| data/azure-cli-2.57.0/azure/cli/command_modules/relay/aaz/latest/relay/namespace/authorization_rule/__cmd_group.py | 191 | 81 | 375,625 |
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__
SETUP_EXCEPT to 38
LOAD... | from __future__ import absolute_import, division, print_function
__metaclass__ = type
try:
import __builtin__ # pylint: disable=unused-import
except ImportError:
BUILTINS = "builtins"
else:
BUILTINS = "__builtin__"
| data/ansible-9.2.0/ansible_collections/community/hashi_vault/tests/unit/compat/builtins.py | 161 | 81 | 274,839 |
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 'tests.app.settings'
CALL... | import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "tests.app.settings")
from django.core.management import execute_from_command_line
execute_from_command_line(sys.argv)
| data/django-bootstrap5-23.4/manage.py | 155 | 81 | 116,896 |
LOAD_CONST '\nA light-weight Microsoft Graph client, similar to https://github.com/microsoftgraph/msgraph-sdk-python-core\n'
STORE_NAME __doc__
LOAD_CONST 1
LOAD_CONST ('GraphClient', 'GraphError')
IMPORT_NAME _graph_client
IMPORT_FROM GraphClient
STORE_NAME GraphClient
IMPORT_FROM GraphError
STORE_NAME GraphError
POP... | """
A light-weight Microsoft Graph client, similar to https://github.com/microsoftgraph/msgraph-sdk-python-core
"""
from ._graph_client import GraphClient, GraphError
from ._graph_objects import set_object_properties
__all__ = ["GraphClient", "GraphError", "set_object_properties"]
| data/azure-cli-2.57.0/azure/cli/command_modules/role/_msgrpah/__init__.py | 149 | 81 | 375,583 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME socket
STORE_NAME socket
LOAD_CONST 0
LOAD_CONST ('connection',)
IMPORT_NAME multiprocessing
IMPORT_FROM connection
STORE_NAME connection
POP_TOP
LOAD_CONST 0
LOAD_CONST ('_reduce_socket',)
IMPORT_NAME multiprocessing.reduction
IMPORT_FROM _reduce_socket
STORE_NAME _reduce_soc... | import socket
from multiprocessing import connection
from multiprocessing.reduction import _reduce_socket
from .reduction import register
register(socket.socket, _reduce_socket)
register(connection.Connection, connection.reduce_connection)
register(connection.PipeConnection, connection.reduce_pipe_connection)
| data/joblib-1.3.2/joblib/externals/loky/backend/_win_reduction.py | 174 | 81 | 386,818 |
LOAD_CONST "Dataset definition for newsroom.\n\nDEPRECATED!\nIf you want to use the Newsroom dataset builder class, use:\ntfds.builder_cls('newsroom')\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_impo... | """Dataset definition for newsroom.
DEPRECATED!
If you want to use the Newsroom dataset builder class, use:
tfds.builder_cls('newsroom')
"""
from tensorflow_datasets.core import lazy_builder_import
Newsroom = lazy_builder_import.LazyBuilderImport("newsroom")
| data/tensorflow-datasets-4.9.4/tensorflow_datasets/summarization/newsroom.py | 125 | 81 | 256,378 |
LOAD_CONST "Dataset definition for samsum.\n\nDEPRECATED!\nIf you want to use the Samsum dataset builder class, use:\ntfds.builder_cls('samsum')\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 samsum.
DEPRECATED!
If you want to use the Samsum dataset builder class, use:
tfds.builder_cls('samsum')
"""
from tensorflow_datasets.core import lazy_builder_import
Samsum = lazy_builder_import.LazyBuilderImport("samsum")
| data/tensorflow-datasets-4.9.4/tensorflow_datasets/summarization/samsum.py | 125 | 81 | 256,382 |
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 WebKit
STORE_NAME WebKit
LOAD_BUILD_CLASS
LOAD_CONST <code object TestDOMProgressEvent at ... | from PyObjCTools.TestSupport import TestCase, min_os_level
import WebKit
class TestDOMProgressEvent(TestCase):
@min_os_level("10.6")
def testMethod10_6(self):
self.assertResultIsBOOL(WebKit.DOMProgressEvent.lengthComputable)
| data/pyobjc-framework-WebKit-10.1/PyObjCTest/test_domprogressevent.py | 282 | 81 | 418,866 |
LOAD_CONST '\nI/O for XDMF.\nhttps://xdmf.org/index.php/XDMF_Model_and_Format\n'
STORE_NAME __doc__
LOAD_CONST 1
LOAD_CONST ('read', 'write')
IMPORT_NAME main
IMPORT_FROM read
STORE_NAME read
IMPORT_FROM write
STORE_NAME write
POP_TOP
LOAD_CONST 1
LOAD_CONST ('TimeSeriesReader', 'TimeSeriesWriter')
IMPORT_NAME time_s... | """
I/O for XDMF.
https://xdmf.org/index.php/XDMF_Model_and_Format
"""
from .main import read, write
from .time_series import TimeSeriesReader, TimeSeriesWriter
__all__ = ["read", "write", "TimeSeriesWriter", "TimeSeriesReader"]
| data/scikit-fem-9.0.1/skfem/io/meshiolib/xdmf/__init__.py | 153 | 81 | 131,659 |
LOAD_CONST 0
LOAD_CONST ('hooks',)
IMPORT_NAME localstack.runtime
IMPORT_FROM hooks
STORE_NAME hooks
POP_TOP
LOAD_CONST 0
LOAD_CONST ('get_internal_apis',)
IMPORT_NAME localstack.services.internal
IMPORT_FROM get_internal_apis
STORE_NAME get_internal_apis
POP_TOP
LOAD_NAME hooks
LOAD_METHOD on_infra_start
CALL_METHOD... | from localstack.runtime import hooks
from localstack.services.internal import get_internal_apis
@hooks.on_infra_start()
def register_launchpad_api():
from localstack_ext.bootstrap.pods.launchpad.api import LaunchPadApi as A
get_internal_apis().add(A())
| data/localstack-ext-3.1.0/localstack_ext/bootstrap/pods/launchpad/plugins.py | 208 | 81 | 441,301 |
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 TestDOMNodeIterator at 0x7fab800bced0, file "f.py", line 5>
LOAD_CONST 'TestDOMNodeItera... | from PyObjCTools.TestSupport import TestCase
import WebKit
class TestDOMNodeIterator(TestCase):
def testMethods(self):
self.assertResultIsBOOL(WebKit.DOMNodeIterator.expandEntityReferences)
self.assertResultIsBOOL(WebKit.DOMNodeIterator.pointerBeforeReferenceNode)
| data/pyobjc-framework-WebKit-10.1/PyObjCTest/test_domnodeiterator.py | 262 | 81 | 418,881 |
LOAD_CONST ' Test case with generator expression form only allow until Python 3.7\n\n'
STORE_NAME __doc__
LOAD_CONST <code object strangeLambdaGeneratorExpression at 0x7fab543e71e0, file "f.py", line 6>
LOAD_CONST 'strangeLambdaGeneratorExpression'
MAKE_FUNCTION
STORE_NAME strangeLambdaGeneratorExpression
LOAD_NAME s... | """ Test case with generator expression form only allow until Python 3.7
"""
def strangeLambdaGeneratorExpression():
x = ((yield) for i in (1, 2) if (yield))
print("Strange lambda generator expression:")
print(list(x))
strangeLambdaGeneratorExpression()
| data/Nuitka-2.0.3/tests/basics/GeneratorExpressionsTest_37.py | 244 | 81 | 148,394 |
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 'rpctest.settings'
CALL_M... | import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "rpctest.settings")
from django.core.management import execute_from_command_line
execute_from_command_line(sys.argv)
| data/spyne-2.14.0/examples/django/manage.py | 155 | 81 | 223,590 |
LOAD_CONST 0
LOAD_CONST ('*',)
IMPORT_NAME azure.cli.core.aaz
IMPORT_STAR
LOAD_NAME register_command_group
LOAD_CONST 'network application-gateway frontend-port'
CALL_FUNCTION
LOAD_BUILD_CLASS
LOAD_CONST <code object __CMDGroup at 0x7faa5e81ff60, file "f.py", line 4>
LOAD_CONST '__CMDGroup'
MAKE_FUNCTION
LOAD_CONST '... | from azure.cli.core.aaz import *
@register_command_group(
"network application-gateway frontend-port",
)
class __CMDGroup(AAZCommandGroup):
"""Manage frontend ports of an application gateway."""
pass
__all__ = ["__CMDGroup"]
| data/azure-cli-2.57.0/azure/cli/command_modules/network/aaz/latest/network/application_gateway/frontend_port/__cmd_group.py | 190 | 81 | 378,523 |
LOAD_NAME complex
LOAD_NAME dict
LOAD_CONST ('obj', 'return')
BUILD_CONST_KEY_MAP
LOAD_CONST <code object default_complex_serializer at 0x7fab802dde40, file "f.py", line 1>
LOAD_CONST 'default_complex_serializer'
MAKE_FUNCTION
STORE_NAME default_complex_serializer
LOAD_CONST None
RETURN_VALUE
LOAD_FAST obj
LOAD_ATTR r... | def default_complex_serializer(obj: complex, **_) -> dict:
"""
Serialize a complex as a dict.
:param obj: the complex.
:param _: not used.
:return: a ``dict``.
"""
return {"real": obj.real, "imag": obj.imag}
| data/jsons-1.6.3/jsons/serializers/default_complex.py | 102 | 81 | 76,707 |
LOAD_CONST '\ntest_designateclient\n----------------------------------\n\nTests for `designateclient` module.\n'
STORE_NAME __doc__
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME designateclient
STORE_NAME designateclient
LOAD_CONST 0
LOAD_CONST ('base',)
IMPORT_NAME designateclient.tests
IMPORT_FROM base
STORE_NAME base
P... | """
test_designateclient
----------------------------------
Tests for `designateclient` module.
"""
import designateclient
from designateclient.tests import base
class ClientTestCase(base.TestCase):
def test_module_version(self):
self.assertTrue(hasattr(designateclient, "__version__"))
| data/python-designateclient-6.0.0/designateclient/tests/test_designateclient.py | 267 | 81 | 84,471 |
LOAD_CONST 0
LOAD_CONST ('absolute_import', 'print_function', 'unicode_literals')
IMPORT_NAME __future__
IMPORT_FROM absolute_import
STORE_NAME absolute_import
IMPORT_FROM print_function
STORE_NAME print_function
IMPORT_FROM unicode_literals
STORE_NAME unicode_literals
POP_TOP
LOAD_CONST 1
LOAD_CONST ('emacs', 'notema... | from __future__ import absolute_import, print_function, unicode_literals
from . import emacs, notemacs, vi
__all__ = ["emacs", "notemacs", "vi"]
editingmodes = [emacs.EmacsMode, notemacs.NotEmacsMode, vi.ViMode]
| data/pyreadline3-3.4.1/pyreadline3/modes/__init__.py | 178 | 81 | 337,061 |
SETUP_ANNOTATIONS
LOAD_CONST 0
LOAD_CONST ('annotations',)
IMPORT_NAME __future__
IMPORT_FROM annotations
STORE_NAME annotations
POP_TOP
LOAD_CONST 'dict'
LOAD_CONST ('return',)
BUILD_CONST_KEY_MAP
LOAD_CONST <code object get_default_config at 0x7fab701ac8a0, file "f.py", line 4>
LOAD_CONST 'get_default_config'
MAKE_F... | from __future__ import annotations
def get_default_config() -> dict:
return {
"skip-install": True,
"dependencies": [f"ruff=={RUFF_DEFAULT_VERSION}"],
}
RUFF_DEFAULT_VERSION: str = "0.1.8"
| data/hatch-1.9.3/src/hatch/env/internal/static_analysis.py | 185 | 81 | 183,831 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME pytest
STORE_NAME pytest
LOAD_NAME pytest
LOAD_ATTR mark
LOAD_ATTR parallel
LOAD_CONST <code object test_crud_signing_service at 0x7fab82361db0, file "f.py", line 4>
LOAD_CONST 'test_crud_signing_service'
MAKE_FUNCTION
CALL_FUNCTION
STORE_NAME test_crud_signing_service
LOAD_CON... | import pytest
@pytest.mark.parallel
def test_crud_signing_service(ascii_armored_detached_signing_service):
service = ascii_armored_detached_signing_service
assert "/api/v3/signing-services/" in service.pulp_href
| data/pulpcore-3.46.0/pulpcore/tests/functional/api/test_signing_service.py | 159 | 81 | 218,011 |
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/tensorflow-datasets-4.9.4/tensorflow_datasets/text/quac/quac.py | 125 | 81 | 256,247 |
LOAD_CONST 'apps/'
LOAD_CONST 'developer_guide/'
LOAD_CONST 'homepage.ipynb'
LOAD_CONST '*VTK*.ipynb'
LOAD_CONST '*Vega.ipynb'
LOAD_CONST '*DeckGL*.ipynb'
LOAD_CONST '*Terminal.ipynb'
BUILD_LIST
STORE_NAME collect_ignore_glob
LOAD_CONST None
RETURN_VALUE | collect_ignore_glob = [
"apps/",
"developer_guide/",
"homepage.ipynb",
"*VTK*.ipynb",
"*Vega.ipynb",
"*DeckGL*.ipynb",
"*Terminal.ipynb",
]
| data/panel-1.3.8/examples/conftest.py | 90 | 81 | 443,346 |
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/tensorflow-datasets-4.9.4/tensorflow_datasets/text/beir/beir.py | 125 | 81 | 256,248 |
LOAD_CONST "Dataset definition for savee.\n\nDEPRECATED!\nIf you want to use the Savee dataset builder class, use:\ntfds.builder_cls('savee')\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 savee.
DEPRECATED!
If you want to use the Savee dataset builder class, use:
tfds.builder_cls('savee')
"""
from tensorflow_datasets.core import lazy_builder_import
Savee = lazy_builder_import.LazyBuilderImport("savee")
| data/tfds-nightly-4.9.4.dev202402210044/tensorflow_datasets/audio/savee.py | 125 | 81 | 238,203 |
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 't.proj.settings'
CALL_ME... | import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "t.proj.settings")
from django.core.management import execute_from_command_line
execute_from_command_line(sys.argv)
| data/django_celery_results-2.5.1/manage.py | 155 | 81 | 78,915 |
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 <code object ... | from __future__ import absolute_import, division, print_function
__metaclass__ = type
def filter_name(a):
return __name__
class FilterModule(object):
def filters(self):
filters = {
"filter_name": filter_name,
}
return filters
| data/ansible-core-2.16.3/test/integration/targets/collections_plugin_namespace/collection_root/ansible_collections/my_ns/my_col/plugins/filter/test_filter.py | 282 | 81 | 437,484 |
LOAD_CONST (0, 3, 2)
STORE_NAME VERSION
LOAD_CONST '.'
LOAD_METHOD join
LOAD_NAME map
LOAD_NAME str
LOAD_NAME VERSION
CALL_FUNCTION
CALL_METHOD
STORE_NAME __version__
LOAD_CONST 1
LOAD_CONST ('GooglePointFieldWidget', 'GooglePointFieldInlineWidget', 'GoogleStaticMapWidget', 'GoogleStaticOverlayMapWidget', 'MapboxPoin... | VERSION = (0, 3, 2)
__version__ = ".".join(map(str, VERSION))
from .widgets import (
GooglePointFieldWidget,
GooglePointFieldInlineWidget,
GoogleStaticMapWidget,
GoogleStaticOverlayMapWidget,
MapboxPointFieldWidget,
)
| data/django-map-widgets-0.4.2/mapwidgets/__init__.py | 167 | 81 | 386,164 |
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 TestQCCompositionReposit... | from PyObjCTools.TestSupport import TestCase, min_os_level
import Quartz
class TestQCCompositionRepository(TestCase):
@min_os_level("10.5")
def testConstants(self):
self.assertIsInstance(Quartz.QCCompositionRepositoryDidUpdateNotification, str)
| data/pyobjc-framework-Quartz-10.1/PyObjCTest/test_qccompositionrepository.py | 284 | 81 | 133,544 |
LOAD_CONST 0
LOAD_CONST ('__version__',)
IMPORT_NAME snowplow_tracker._version
IMPORT_FROM __version__
STORE_NAME __version__
POP_TOP
LOAD_CONST 0
LOAD_CONST ('Subject',)
IMPORT_NAME snowplow_tracker.subject
IMPORT_FROM Subject
STORE_NAME Subject
POP_TOP
LOAD_CONST 0
LOAD_CONST ('logger', 'Emitter')
IMPORT_NAME snowp... | from snowplow_tracker._version import __version__
from snowplow_tracker.subject import Subject
from snowplow_tracker.emitters import logger, Emitter
from snowplow_tracker.self_describing_json import SelfDescribingJson
from snowplow_tracker.tracker import Tracker
| data/minimal-snowplow-tracker-0.0.2/snowplow_tracker/__init__.py | 194 | 81 | 115,312 |
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_BUILD_CLASS
LOAD_CO... | from __future__ import absolute_import, division, print_function
__metaclass__ = type
class ModuleDocFragment(object):
DOCUMENTATION = r"""
options:
version:
description:
- Version of checkpoint. If not given one, the latest version taken.
type: str
"""
| data/ansible-9.2.0/ansible_collections/check_point/mgmt/plugins/doc_fragments/checkpoint_facts.py | 205 | 81 | 278,782 |
LOAD_CONST 'Types for aiohappyeyeballs.'
STORE_NAME __doc__
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME socket
STORE_NAME socket
LOAD_CONST 0
LOAD_CONST ('Tuple', 'Union')
IMPORT_NAME typing
IMPORT_FROM Tuple
STORE_NAME Tuple
IMPORT_FROM Union
STORE_NAME Union
POP_TOP
LOAD_NAME Tuple
LOAD_NAME Union
LOAD_NAME int
LOAD... | """Types for aiohappyeyeballs."""
import socket
from typing import Tuple, Union
AddrInfoType = Tuple[
Union[int, socket.AddressFamily],
Union[int, socket.SocketKind],
int,
str,
Tuple, # type: ignore[type-arg]
]
| data/aiohappyeyeballs-2.3.2/src/aiohappyeyeballs/types.py | 136 | 81 | 166,682 |
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/tensorflow-datasets-4.9.4/tensorflow_datasets/text/trec/trec.py | 125 | 81 | 256,265 |
LOAD_CONST 'Provide common constants for Open Exchange Rates.'
STORE_NAME __doc__
LOAD_CONST 0
LOAD_CONST ('timedelta',)
IMPORT_NAME datetime
IMPORT_FROM timedelta
STORE_NAME timedelta
POP_TOP
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME logging
STORE_NAME logging
LOAD_CONST 'openexchangerates'
STORE_NAME DOMAIN
LOAD_N... | """Provide common constants for Open Exchange Rates."""
from datetime import timedelta
import logging
DOMAIN = "openexchangerates"
LOGGER = logging.getLogger(__package__)
BASE_UPDATE_INTERVAL = timedelta(hours=2)
CLIENT_TIMEOUT = 10
DEFAULT_BASE = "USD"
| data/homeassistant-2024.2.2/homeassistant/components/openexchangerates/const.py | 150 | 81 | 295,394 |
LOAD_CONST "Dataset definition for lvis.\n\nDEPRECATED!\nIf you want to use the Lvis dataset builder class, use:\ntfds.builder_cls('lvis')\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 lvis.
DEPRECATED!
If you want to use the Lvis dataset builder class, use:
tfds.builder_cls('lvis')
"""
from tensorflow_datasets.core import lazy_builder_import
Lvis = lazy_builder_import.LazyBuilderImport("lvis")
| data/tfds-nightly-4.9.4.dev202402210044/tensorflow_datasets/object_detection/lvis/lvis.py | 125 | 81 | 238,187 |
LOAD_CONST '\nI/O for XDMF.\nhttps://xdmf.org/index.php/XDMF_Model_and_Format\n'
STORE_NAME __doc__
LOAD_CONST 1
LOAD_CONST ('read', 'write')
IMPORT_NAME main
IMPORT_FROM read
STORE_NAME read
IMPORT_FROM write
STORE_NAME write
POP_TOP
LOAD_CONST 1
LOAD_CONST ('TimeSeriesReader', 'TimeSeriesWriter')
IMPORT_NAME time_s... | """
I/O for XDMF.
https://xdmf.org/index.php/XDMF_Model_and_Format
"""
from .main import read, write
from .time_series import TimeSeriesReader, TimeSeriesWriter
__all__ = ["read", "write", "TimeSeriesWriter", "TimeSeriesReader"]
| data/scikit-fem-9.0.1/meshio/xdmf/__init__.py | 153 | 81 | 131,544 |
LOAD_CONST 2
LOAD_CONST ('DiscoveryBase',)
IMPORT_NAME discovery_base
IMPORT_FROM DiscoveryBase
STORE_NAME DiscoveryBase
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object Discovery at 0x7fab428c8e40, file "f.py", line 4>
LOAD_CONST 'Discovery'
MAKE_FUNCTION
LOAD_CONST 'Discovery'
LOAD_NAME DiscoveryBase
CALL_FUNCTION
S... | from ..discovery_base import DiscoveryBase
class Discovery(DiscoveryBase):
@property
def visitor_identification(self):
from .visitor_identification.discovery import (
Discovery as VisitorIdentificationDiscovery,
)
return VisitorIdentificationDiscovery(self.config)
| data/hubspot-api-client-8.2.1/hubspot/discovery/conversations/discovery.py | 238 | 81 | 320,828 |
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 <code object ... | from __future__ import absolute_import, division, print_function
__metaclass__ = type
def filter_name(a):
return __name__
class FilterModule(object):
def filters(self):
filters = {
"filter_name": filter_name,
}
return filters
| data/ansible-core-2.16.3/test/integration/targets/plugin_namespace/filter_plugins/test_filter.py | 286 | 81 | 437,452 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME pickle
STORE_NAME pickle
LOAD_CONST 0
LOAD_CONST ('OmegaConf', '__version__')
IMPORT_NAME omegaconf
IMPORT_FROM OmegaConf
STORE_NAME OmegaConf
IMPORT_FROM __version__
STORE_NAME __version__
POP_TOP
LOAD_NAME OmegaConf
LOAD_METHOD create
LOAD_CONST 'a'
LOAD_CONST 'b'
LOAD_CONST... | import pickle
from omegaconf import OmegaConf, __version__
cfg = OmegaConf.create({"a": [{"b": 10}]})
with open(f"{__version__}.pickle", mode="wb") as fp:
pickle.dump(cfg, fp)
| data/omegaconf-2.3.0/tests/data/save.py | 176 | 81 | 166,743 |
LOAD_CONST ' Test case with generator expression form only allow until Python 3.7\n\n'
STORE_NAME __doc__
LOAD_CONST <code object strangeLambdaGeneratorExpression at 0x7fab543e7930, file "f.py", line 6>
LOAD_CONST 'strangeLambdaGeneratorExpression'
MAKE_FUNCTION
STORE_NAME strangeLambdaGeneratorExpression
LOAD_NAME s... | """ Test case with generator expression form only allow until Python 3.7
"""
def strangeLambdaGeneratorExpression():
x = ((yield) for i in (1, 2) if (yield))
print("Strange lambda generator expression:")
print(list(x))
strangeLambdaGeneratorExpression()
| data/Nuitka-2.0.3/tests/syntax/GeneratorExpressions38.py | 244 | 81 | 148,440 |
LOAD_CONST 0
LOAD_CONST ('*',)
IMPORT_NAME azure.cli.core.aaz
IMPORT_STAR
LOAD_NAME register_command_group
LOAD_CONST 'network application-gateway auth-cert'
CALL_FUNCTION
LOAD_BUILD_CLASS
LOAD_CONST <code object __CMDGroup at 0x7fab703a5ae0, file "f.py", line 4>
LOAD_CONST '__CMDGroup'
MAKE_FUNCTION
LOAD_CONST '__CM... | from azure.cli.core.aaz import *
@register_command_group(
"network application-gateway auth-cert",
)
class __CMDGroup(AAZCommandGroup):
"""Manage authorization certificates of an application gateway."""
pass
__all__ = ["__CMDGroup"]
| data/azure-cli-2.57.0/azure/cli/command_modules/network/aaz/latest/network/application_gateway/auth_cert/__cmd_group.py | 190 | 81 | 378,531 |
LOAD_CONST 2
LOAD_CONST ('_utilities',)
IMPORT_NAME
IMPORT_FROM _utilities
STORE_NAME _utilities
POP_TOP
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME typing
STORE_NAME typing
LOAD_CONST 1
LOAD_CONST ('*',)
IMPORT_NAME function
IMPORT_STAR
LOAD_CONST 1
LOAD_CONST ('*',)
IMPORT_NAME function_iam_binding
IMPORT_STAR
LOAD_... | from .. import _utilities
import typing
from .function import *
from .function_iam_binding import *
from .function_iam_member import *
from .function_iam_policy import *
from .get_function import *
from .get_function_iam_policy import *
from ._inputs import *
from . import outputs
| data/pulumi_gcp-7.9.0/pulumi_gcp/cloudfunctions/__init__.py | 201 | 81 | 445,688 |
LOAD_CONST "Dataset definition for qasc.\n\nDEPRECATED!\nIf you want to use the Qasc dataset builder class, use:\ntfds.builder_cls('qasc')\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 qasc.
DEPRECATED!
If you want to use the Qasc dataset builder class, use:
tfds.builder_cls('qasc')
"""
from tensorflow_datasets.core import lazy_builder_import
Qasc = lazy_builder_import.LazyBuilderImport("qasc")
| data/tensorflow-datasets-4.9.4/tensorflow_datasets/question_answering/qasc/qasc.py | 125 | 81 | 255,317 |
LOAD_CONST 1
LOAD_CONST ('*',)
IMPORT_NAME benchmark
IMPORT_STAR
LOAD_CONST 1
LOAD_CONST ('*',)
IMPORT_NAME canonical
IMPORT_STAR
LOAD_CONST 1
LOAD_CONST ('*',)
IMPORT_NAME errors
IMPORT_STAR
LOAD_CONST 1
LOAD_CONST ('*',)
IMPORT_NAME misc
IMPORT_STAR
LOAD_CONST 1
LOAD_CONST ('*',)
IMPORT_NAME path
IMPORT_STAR
LOA... | from .benchmark import * # noqa
from .canonical import * # noqa
from .errors import * # noqa
from .misc import * # noqa
from .path import * # noqa
from .process import * # noqa
from .runtime import * # noqa
| data/catboost-1.2.2/catboost_all_src/library/python/testing/yatest_common/yatest/common/__init__.py | 117 | 81 | 177,296 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME pytest
STORE_NAME pytest
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME kernels
STORE_NAME kernels
LOAD_NAME pytest
LOAD_ATTR mark
LOAD_ATTR skip
LOAD_CONST 'Unable to generate any tests for kernel'
LOAD_CONST ('reason',)
CALL_FUNCTION
LOAD_CONST <code object test_pyawkward_IndexedA... | import pytest
import kernels
@pytest.mark.skip(reason="Unable to generate any tests for kernel")
def test_pyawkward_IndexedArrayU32_reduce_next_nonlocal_nextshifts_64_1():
raise NotImplementedError("Unable to generate any tests for kernel")
| data/awkward-cpp-29/tests-spec/test_pyawkward_IndexedArrayU32_reduce_next_nonlocal_nextshifts_64.py | 222 | 81 | 220,542 |
LOAD_CONST 0
LOAD_CONST ('TestCase',)
IMPORT_NAME unittest
IMPORT_FROM TestCase
STORE_NAME TestCase
POP_TOP
LOAD_CONST 0
LOAD_CONST ('ComplexContent', 'SimpleContent')
IMPORT_NAME xsdata.models.xsd
IMPORT_FROM ComplexContent
STORE_NAME ComplexContent
IMPORT_FROM SimpleContent
STORE_NAME SimpleContent
POP_TOP
LOAD_BUI... | from unittest import TestCase
from xsdata.models.xsd import ComplexContent, SimpleContent
class ComplexContentTests(TestCase):
def test_class(self):
obj = ComplexContent()
self.assertIsInstance(obj, SimpleContent)
self.assertFalse(obj.mixed)
| data/xsdata-24.2.1/tests/models/xsd/test_complex_content.py | 282 | 81 | 111,979 |
LOAD_CONST <code object test_is_empty at 0x7f8ed39ed6f0, file "f.py", line 1>
LOAD_CONST 'test_is_empty'
MAKE_FUNCTION
STORE_NAME test_is_empty
LOAD_CONST <code object test_is_base at 0x7f8e2f9cadb0, file "f.py", line 5>
LOAD_CONST 'test_is_base'
MAKE_FUNCTION
STORE_NAME test_is_base
LOAD_CONST <code object test_head... | def test_is_empty(emptyrepo):
assert emptyrepo.is_empty
def test_is_base(emptyrepo):
assert not emptyrepo.is_bare
def test_head(emptyrepo):
assert emptyrepo.head_is_unborn
assert not emptyrepo.head_is_detached
| data/pygit2-1.14.1/test/test_repository_empty.py | 259 | 81 | 8,992 |
LOAD_CONST "Dataset definition for lfw.\n\nDEPRECATED!\nIf you want to use the LFW dataset builder class, use:\ntfds.builder_cls('lfw')\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
LOA... | """Dataset definition for lfw.
DEPRECATED!
If you want to use the LFW dataset builder class, use:
tfds.builder_cls('lfw')
"""
from tensorflow_datasets.core import lazy_builder_import
LFW = lazy_builder_import.LazyBuilderImport("lfw")
| data/tfds-nightly-4.9.4.dev202402210044/tensorflow_datasets/image_classification/lfw.py | 125 | 81 | 238,492 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME pytest
STORE_NAME pytest
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME kernels
STORE_NAME kernels
LOAD_NAME pytest
LOAD_ATTR mark
LOAD_ATTR skip
LOAD_CONST 'Unable to generate any tests for kernel'
LOAD_CONST ('reason',)
CALL_FUNCTION
LOAD_CONST <code object test_pyawkward_NumpyArr... | import pytest
import kernels
@pytest.mark.skip(reason="Unable to generate any tests for kernel")
def test_pyawkward_NumpyArray_rearrange_shifted_toint64_fromint64_1():
raise NotImplementedError("Unable to generate any tests for kernel")
| data/awkward-cpp-29/tests-spec/test_pyawkward_NumpyArray_rearrange_shifted_toint64_fromint64.py | 221 | 81 | 220,460 |
LOAD_CONST 0
LOAD_CONST ('BaseCommand',)
IMPORT_NAME django.core.management.base
IMPORT_FROM BaseCommand
STORE_NAME BaseCommand
POP_TOP
LOAD_CONST 0
LOAD_CONST ('create_fixture',)
IMPORT_NAME tests.setup
IMPORT_FROM create_fixture
STORE_NAME create_fixture
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object Command at 0... | from django.core.management.base import BaseCommand
from tests.setup import create_fixture
class Command(BaseCommand):
help = "Loads fixture data"
def handle(self, *args, **options):
create_fixture()
self.stdout.write("Loaded fixtures.")
| data/dynamic-rest-2.1.2/tests/management/commands/initialize_fixture.py | 247 | 81 | 47,375 |
LOAD_CONST 0
LOAD_CONST ('unicode_literals', 'absolute_import')
IMPORT_NAME __future__
IMPORT_FROM unicode_literals
STORE_NAME unicode_literals
IMPORT_FROM absolute_import
STORE_NAME absolute_import
POP_TOP
LOAD_CONST 'Jannis Gebauer'
STORE_NAME __author__
LOAD_CONST 'support@pyup.io'
STORE_NAME __email__
LOAD_CONST... | from __future__ import unicode_literals, absolute_import
"""Top-level package for Dependency Parser."""
__author__ = """Jannis Gebauer"""
__email__ = "support@pyup.io"
__version__ = "0.6.3"
from .parser import parse # noqa
| data/pipenv-2023.12.1/pipenv/vendor/dparse/__init__.py | 124 | 81 | 402,527 |
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 0
LOAD_CONST ('hooks',)
IMPORT_NAME wagtail
IMPORT_FROM hooks
STORE_NAME hooks
POP_TOP
LOAD_CONST 1
LOAD_CONST ('urls',)
IMPORT_NAME
IMPORT_FROM urls
STORE_NAM... | from django.urls import include, path
from wagtail import hooks
from . import urls
@hooks.register("register_admin_urls")
def register_admin_urls():
return [
path("settings/", include(urls, namespace="wagtailsettings")),
]
| data/wagtail-6.0.1/wagtail/contrib/settings/wagtail_hooks.py | 206 | 81 | 199,982 |
LOAD_CONST "Dataset definition for flic.\n\nDEPRECATED!\nIf you want to use the Flic dataset builder class, use:\ntfds.builder_cls('flic')\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 flic.
DEPRECATED!
If you want to use the Flic dataset builder class, use:
tfds.builder_cls('flic')
"""
from tensorflow_datasets.core import lazy_builder_import
Flic = lazy_builder_import.LazyBuilderImport("flic")
| data/tensorflow-datasets-4.9.4/tensorflow_datasets/image/flic.py | 125 | 81 | 255,257 |
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_CONST 0
LOAD_CONST None
IMPORT_NAME Intents
STORE_NAME Intents
LOAD_BUILD_CLASS
LOAD_CONST <code object TestINSpeakable at ... | from PyObjCTools.TestSupport import TestCase, min_sdk_level
import Intents # noqa: F401
class TestINSpeakable(TestCase):
@min_sdk_level("10.12")
def testProtocols(self):
self.assertProtocolExists("INSpeakable")
| data/pyobjc-framework-Intents-10.1/PyObjCTest/test_inspeakable.py | 268 | 81 | 246,703 |
LOAD_CONST "Dataset definition for clic.\n\nDEPRECATED!\nIf you want to use the CLIC dataset builder class, use:\ntfds.builder_cls('clic')\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 clic.
DEPRECATED!
If you want to use the CLIC dataset builder class, use:
tfds.builder_cls('clic')
"""
from tensorflow_datasets.core import lazy_builder_import
CLIC = lazy_builder_import.LazyBuilderImport("clic")
| data/tensorflow-datasets-4.9.4/tensorflow_datasets/image/clic.py | 125 | 81 | 255,256 |
LOAD_CONST 0
LOAD_CONST ('Enum',)
IMPORT_NAME enum
IMPORT_FROM Enum
STORE_NAME Enum
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object ProcessingStatus at 0x7fab420185d0, file "f.py", line 4>
LOAD_CONST 'ProcessingStatus'
MAKE_FUNCTION
LOAD_CONST 'ProcessingStatus'
LOAD_NAME str
LOAD_NAME Enum
CALL_FUNCTION
STORE_NAME P... | from enum import Enum
class ProcessingStatus(str, Enum):
CANCELLED = "CANCELLED"
DONE = "DONE"
FATAL = "FATAL"
IN_PROGRESS = "IN_PROGRESS"
IN_QUEUE = "IN_QUEUE"
| data/python-amazon-sp-api-1.4.0/sp_api/base/processing_status.py | 195 | 81 | 358,255 |
LOAD_CONST '\nList resources from the Image service.\n\nFor a full guide see\nhttps://docs.openstack.org/openstacksdk/latest/user/guides/image.html\n'
STORE_NAME __doc__
LOAD_CONST <code object list_images at 0x7fab5408f420, file "f.py", line 9>
LOAD_CONST 'list_images'
MAKE_FUNCTION
STORE_NAME list_images
LOAD_CONST ... | """
List resources from the Image service.
For a full guide see
https://docs.openstack.org/openstacksdk/latest/user/guides/image.html
"""
def list_images(conn):
print("List Images:")
for image in conn.image.images():
print(image)
| data/openstacksdk-2.1.0/examples/image/list.py | 170 | 81 | 284,812 |
LOAD_CONST 0
LOAD_CONST ('Path',)
IMPORT_NAME pathlib
IMPORT_FROM Path
STORE_NAME Path
POP_TOP
LOAD_NAME Path
LOAD_NAME __file__
CALL_FUNCTION
LOAD_ATTR parent
STORE_NAME TESTS_PACKAGE_DIR
LOAD_NAME TESTS_PACKAGE_DIR
LOAD_ATTR parent
STORE_NAME TESTS_DIR
LOAD_NAME TESTS_DIR
LOAD_CONST 'test_data'
BINARY_TRUE_DIVIDE
... | from pathlib import Path
TESTS_PACKAGE_DIR = Path(__file__).parent
TESTS_DIR = TESTS_PACKAGE_DIR.parent
TEST_DATA_DIR = TESTS_DIR / "test_data"
EXPECTED_OUTPUTS = TEST_DATA_DIR / "expected_outputs"
| data/pybboxes-0.1.6/tests/pybboxes/__init__.py | 126 | 81 | 352,469 |
LOAD_CONST 'Init file for zigpy_xbee.'
STORE_NAME __doc__
LOAD_CONST 0
STORE_NAME MAJOR_VERSION
LOAD_CONST 18
STORE_NAME MINOR_VERSION
LOAD_CONST '3'
STORE_NAME PATCH_VERSION
LOAD_NAME MAJOR_VERSION
FORMAT_VALUE
LOAD_CONST '.'
LOAD_NAME MINOR_VERSION
FORMAT_VALUE
BUILD_STRING
STORE_NAME __short_version__
LOAD_NAME... | """Init file for zigpy_xbee."""
MAJOR_VERSION = 0
MINOR_VERSION = 18
PATCH_VERSION = "3"
__short_version__ = f"{MAJOR_VERSION}.{MINOR_VERSION}"
__version__ = f"{__short_version__}.{PATCH_VERSION}"
| data/zigpy-xbee-0.20.1/zigpy_xbee/__init__.py | 119 | 81 | 221,731 |
LOAD_CONST 2
LOAD_CONST ('_utilities',)
IMPORT_NAME
IMPORT_FROM _utilities
STORE_NAME _utilities
POP_TOP
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME typing
STORE_NAME typing
LOAD_CONST 1
LOAD_CONST ('*',)
IMPORT_NAME get_note_iam_policy
IMPORT_STAR
LOAD_CONST 1
LOAD_CONST ('*',)
IMPORT_NAME note
IMPORT_STAR
LOAD_CONST... | from .. import _utilities
import typing
from .get_note_iam_policy import *
from .note import *
from .note_iam_binding import *
from .note_iam_member import *
from .note_iam_policy import *
from .occurence import *
from ._inputs import *
from . import outputs
| data/pulumi_gcp-7.9.0/pulumi_gcp/containeranalysis/__init__.py | 201 | 81 | 446,454 |
LOAD_CONST 1
LOAD_CONST ('automain',)
IMPORT_NAME automain
IMPORT_FROM automain
STORE_NAME automain
POP_TOP
LOAD_CONST 1
LOAD_CONST ('autoparse', 'smart_open')
IMPORT_NAME autoparse
IMPORT_FROM autoparse
STORE_NAME autoparse
IMPORT_FROM smart_open
STORE_NAME smart_open
POP_TOP
LOAD_CONST 1
LOAD_CONST ('autocommand',)... | from .automain import automain # NOQA
from .autoparse import autoparse, smart_open # NOQA
from .autocommand import autocommand # NOQA
try:
from .autoasync import autoasync # NOQA
except ImportError: # pragma: no cover
pass
| data/autocommand-2.2.2/src/autocommand/__init__.py | 175 | 81 | 447,731 |
LOAD_CONST 'This program is self-checking!'
STORE_NAME __doc__
LOAD_CONST <code object loop_continue_dead_code at 0x7fab42324d20, file "f.py", line 4>
LOAD_CONST 'loop_continue_dead_code'
MAKE_FUNCTION
STORE_NAME loop_continue_dead_code
LOAD_NAME loop_continue_dead_code
LOAD_CONST None
LOAD_CONST 1
BUILD_LIST
CALL_FU... | """This program is self-checking!"""
def loop_continue_dead_code(slots):
for name in slots:
if name:
pass
else:
continue
if x:
y()
else:
z()
loop_continue_dead_code([None, 1])
| data/uncompyle6-3.9.0/test/simple_source/bug24/02_loop_continue_dead_code.py | 170 | 81 | 442,136 |
LOAD_CONST <code object PipeClient at 0x7fab700b4150, file "f.py", line 1>
LOAD_CONST 'PipeClient'
MAKE_FUNCTION
STORE_NAME PipeClient
LOAD_CONST <code object _parse at 0x7faa750beae0, 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/uncompyle6-3.9.0/test/simple_source/stmts/02_while1else.py | 174 | 81 | 442,037 |
LOAD_CONST "Dataset definition for opus.\n\nDEPRECATED!\nIf you want to use the Opus dataset builder class, use:\ntfds.builder_cls('opus')\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 opus.
DEPRECATED!
If you want to use the Opus dataset builder class, use:
tfds.builder_cls('opus')
"""
from tensorflow_datasets.core import lazy_builder_import
Opus = lazy_builder_import.LazyBuilderImport("opus")
| data/tensorflow-datasets-4.9.4/tensorflow_datasets/translate/opus.py | 125 | 81 | 255,357 |
LOAD_CONST 0
LOAD_CONST ('migrations',)
IMPORT_NAME django.db
IMPORT_FROM migrations
STORE_NAME migrations
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object Migration at 0x7fab823bec90, file "f.py", line 4>
LOAD_CONST 'Migration'
MAKE_FUNCTION
LOAD_CONST 'Migration'
LOAD_NAME migrations
LOAD_ATTR Migration
CALL_FUNCTIO... | from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
("api", "0001_initial"),
]
operations = [
migrations.RemoveField(
model_name="host",
name="alias",
),
]
| data/ara-1.7.1/ara/api/migrations/0002_remove_host_alias.py | 180 | 81 | 365,897 |
LOAD_CONST 0
LOAD_CONST ('annotations',)
IMPORT_NAME __future__
IMPORT_FROM annotations
STORE_NAME annotations
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object BreadcrumbMetadata at 0x7fab80234e40, file "f.py", line 4>
LOAD_CONST 'BreadcrumbMetadata'
MAKE_FUNCTION
LOAD_CONST 'BreadcrumbMetadata'
CALL_FUNCTION
STORE_NA... | from __future__ import annotations
class BreadcrumbMetadata:
__slots__ = ("attribute_key", "vertex_id")
def __init__(self, vertex_id: int, attribute_key: str | None):
self.vertex_id = vertex_id
self.attribute_key = attribute_key
| data/checkov-3.2.23/checkov/common/graph/graph_builder/variable_rendering/breadcrumb_metadata.py | 262 | 81 | 160,138 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME pyxb.bundles.reqif.driver
STORE_NAME pyxb
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME pyxb.bundles.reqif.ReqIF
IMPORT_FROM bundles
ROT_TWO
POP_TOP
IMPORT_FROM reqif
ROT_TWO
POP_TOP
IMPORT_FROM ReqIF
STORE_NAME ReqIF
POP_TOP
LOAD_NAME open
LOAD_CONST 'in.xml'
CALL_FUNCTION
LOAD_ME... | import pyxb.bundles.reqif.driver
import pyxb.bundles.reqif.ReqIF as ReqIF
xml = open("in.xml").read()
doc = ReqIF.CreateFromDocument(xml)
print(doc.THE_HEADER.REQ_IF_HEADER.COMMENT)
| data/PyXB-1.2.6/pyxb/bundles/reqif/examples/process.py | 153 | 81 | 91,133 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.