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 ('Enum',)
IMPORT_NAME enum
IMPORT_FROM Enum
STORE_NAME Enum
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object HostReputationRuleSeverity at 0x7fab4298e8a0, file "f.py", line 4>
LOAD_CONST 'HostReputationRuleSeverity'
MAKE_FUNCTION
LOAD_CONST 'HostReputationRuleSeverity'
LOAD_NAME str
LOAD_NAME E... | from enum import Enum
class HostReputationRuleSeverity(str, Enum):
Unknown = ("unknown",)
Low = ("low",)
Medium = ("medium",)
High = ("high",)
UnknownFutureValue = ("unknownFutureValue",)
| data/msgraph-sdk-1.1.0/msgraph/generated/models/security/host_reputation_rule_severity.py | 204 | 70 | 262,179 |
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 ('RDS',)
IMPORT_NAME prowler.providers.aws.services.rds.rds_service
IMPORT_FROM RDS
STORE_NAME RDS
POP_TOP
LOAD_NAME ... | from prowler.providers.aws.lib.audit_info.audit_info import current_audit_info
from prowler.providers.aws.services.rds.rds_service import RDS
rds_client = RDS(current_audit_info)
| data/prowler-3.14.0/prowler/providers/aws/services/rds/rds_client.py | 123 | 70 | 183,105 |
LOAD_CONST 0
LOAD_CONST ('AppConfig',)
IMPORT_NAME django.apps
IMPORT_FROM AppConfig
STORE_NAME AppConfig
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object DjangoSaml2Config at 0x7fab5434bae0, file "f.py", line 4>
LOAD_CONST 'DjangoSaml2Config'
MAKE_FUNCTION
LOAD_CONST 'DjangoSaml2Config'
LOAD_NAME AppConfig
CALL_FUNCT... | from django.apps import AppConfig
class DjangoSaml2Config(AppConfig):
name = "djangosaml2"
verbose_name = "DjangoSAML2"
def ready(self):
from . import signals # noqa
| data/djangosaml2-1.9.2/djangosaml2/apps.py | 246 | 70 | 152,103 |
LOAD_CONST 0
LOAD_CONST ('version',)
IMPORT_NAME packaging
IMPORT_FROM version
STORE_NAME version
POP_TOP
LOAD_CONST <code object pkg_metadata at 0x7f8e447b2420, file "f.py", line 4>
LOAD_CONST 'pkg_metadata'
MAKE_FUNCTION
STORE_NAME pkg_metadata
LOAD_CONST <code object pkg_version at 0x7f8ece8a8930, file "f.py", lin... | from packaging import version
def pkg_metadata(package):
from importlib.metadata import metadata as m
return m(package)
def pkg_version(package):
from importlib.metadata import version as v
return version.parse(v(package))
| data/scanpy-1.9.8/scanpy/_compat.py | 210 | 70 | 120,975 |
LOAD_CONST 0
LOAD_CONST ('notfound_view_config',)
IMPORT_NAME pyramid.view
IMPORT_FROM notfound_view_config
STORE_NAME notfound_view_config
POP_TOP
LOAD_NAME notfound_view_config
LOAD_CONST 'hello_world:templates/404.jinja2'
LOAD_CONST ('renderer',)
CALL_FUNCTION
LOAD_CONST <code object notfound_view at 0x7faa51f69270... | from pyramid.view import notfound_view_config
@notfound_view_config(renderer="hello_world:templates/404.jinja2")
def notfound_view(request):
request.response.status = 404
return {}
| data/pyramid-2.0.2/docs/quick_tour/sessions/hello_world/views/notfound.py | 156 | 70 | 19,993 |
LOAD_CONST 0
LOAD_CONST ('notfound_view_config',)
IMPORT_NAME pyramid.view
IMPORT_FROM notfound_view_config
STORE_NAME notfound_view_config
POP_TOP
LOAD_NAME notfound_view_config
LOAD_CONST 'hello_world:templates/404.jinja2'
LOAD_CONST ('renderer',)
CALL_FUNCTION
LOAD_CONST <code object notfound_view at 0x7faa51f69810... | from pyramid.view import notfound_view_config
@notfound_view_config(renderer="hello_world:templates/404.jinja2")
def notfound_view(request):
request.response.status = 404
return {}
| data/pyramid-2.0.2/docs/quick_tour/package/hello_world/views/notfound.py | 156 | 70 | 20,006 |
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 ('DocumentDB',)
IMPORT_NAME prowler.providers.aws.services.documentdb.documentdb_service
IMPORT_FROM DocumentDB
STORE_... | from prowler.providers.aws.lib.audit_info.audit_info import current_audit_info
from prowler.providers.aws.services.documentdb.documentdb_service import DocumentDB
documentdb_client = DocumentDB(current_audit_info)
| data/prowler-3.14.0/prowler/providers/aws/services/documentdb/documentdb_client.py | 123 | 70 | 183,102 |
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 ('DRS',)
IMPORT_NAME prowler.providers.aws.services.drs.drs_service
IMPORT_FROM DRS
STORE_NAME DRS
POP_TOP
LOAD_NAME ... | from prowler.providers.aws.lib.audit_info.audit_info import current_audit_info
from prowler.providers.aws.services.drs.drs_service import DRS
drs_client = DRS(current_audit_info)
| data/prowler-3.14.0/prowler/providers/aws/services/drs/drs_client.py | 123 | 70 | 183,099 |
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 ('Macie',)
IMPORT_NAME prowler.providers.aws.services.macie.macie_service
IMPORT_FROM Macie
STORE_NAME Macie
POP_TOP
... | from prowler.providers.aws.lib.audit_info.audit_info import current_audit_info
from prowler.providers.aws.services.macie.macie_service import Macie
macie_client = Macie(current_audit_info)
| data/prowler-3.14.0/prowler/providers/aws/services/macie/macie_client.py | 123 | 70 | 183,093 |
LOAD_CONST 0
LOAD_CONST ('ABC', 'abstractmethod')
IMPORT_NAME abc
IMPORT_FROM ABC
STORE_NAME ABC
IMPORT_FROM abstractmethod
STORE_NAME abstractmethod
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object PeriodicScheduler at 0x7fab7002b540, file "f.py", line 4>
LOAD_CONST 'PeriodicScheduler'
MAKE_FUNCTION
LOAD_CONST 'Perio... | from abc import ABC, abstractmethod
class PeriodicScheduler(ABC):
"""PeriodicScheduler abstract base class. Untyped."""
@abstractmethod
def schedule_periodic(self, period, action, state=None):
return NotImplemented
| data/Rx-3.2.0/rx/core/abc/periodicscheduler.py | 238 | 70 | 187,250 |
LOAD_CONST 0
LOAD_CONST ('forms',)
IMPORT_NAME django
IMPORT_FROM forms
STORE_NAME forms
POP_TOP
LOAD_CONST 0
LOAD_CONST ('User',)
IMPORT_NAME django.contrib.auth.models
IMPORT_FROM User
STORE_NAME User
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object TemplateReprForm at 0x7fab702cdd20, file "f.py", line 5>
LOAD_CONS... | from django import forms
from django.contrib.auth.models import User
class TemplateReprForm(forms.Form):
user = forms.ModelChoiceField(queryset=User.objects.all())
def __repr__(self):
return repr(self)
| data/django_debug_toolbar-4.3.0/tests/forms.py | 255 | 70 | 173,478 |
LOAD_CONST 0
LOAD_CONST ('TavilyAnswer', 'TavilyInput', 'TavilySearchResults')
IMPORT_NAME langchain_community.tools.tavily_search.tool
IMPORT_FROM TavilyAnswer
STORE_NAME TavilyAnswer
IMPORT_FROM TavilyInput
STORE_NAME TavilyInput
IMPORT_FROM TavilySearchResults
STORE_NAME TavilySearchResults
POP_TOP
LOAD_CONST 'Tavi... | from langchain_community.tools.tavily_search.tool import (
TavilyAnswer,
TavilyInput,
TavilySearchResults,
)
__all__ = ["TavilyInput", "TavilySearchResults", "TavilyAnswer"]
| data/langchain-0.1.8/langchain/tools/tavily_search/tool.py | 123 | 70 | 369,298 |
LOAD_CONST 'TLinearModel'
LOAD_CONST 'PoissonGMLE'
LOAD_CONST 'PoissonOffsetGMLE'
LOAD_CONST 'PoissonZiGMLE'
BUILD_LIST
STORE_NAME __all__
LOAD_CONST 1
LOAD_CONST ('TLinearModel',)
IMPORT_NAME tmodel
IMPORT_FROM TLinearModel
STORE_NAME TLinearModel
POP_TOP
LOAD_CONST 1
LOAD_CONST ('PoissonGMLE', 'PoissonOffsetGMLE', ... | __all__ = ["TLinearModel", "PoissonGMLE", "PoissonOffsetGMLE", "PoissonZiGMLE"]
from .tmodel import TLinearModel
from .count import (
PoissonGMLE,
PoissonOffsetGMLE,
PoissonZiGMLE,
)
| data/statsmodels-0.14.1/statsmodels/miscmodels/api.py | 144 | 70 | 202,608 |
LOAD_CONST <code object test_assumed_noop at 0x7fab8231bed0, file "f.py", line 1>
LOAD_CONST 'test_assumed_noop'
MAKE_FUNCTION
STORE_NAME test_assumed_noop
LOAD_CONST None
RETURN_VALUE
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME opcode
STORE_FAST opcode
LOAD_FAST opcode
LOAD_ATTR opmap
NOP 'NOP'
BINARY_SUBSCR
NOP NOP_VA... | def test_assumed_noop():
"""
We are assuming the NOP code is 9.
Double check that it is.
"""
import opcode
NOP_VALUE: int = opcode.opmap["NOP"]
assert NOP_VALUE == 9
| data/line_profiler-4.1.2/tests/test_assumptions.py | 132 | 70 | 136,765 |
LOAD_CONST 0
LOAD_CONST ('Literal',)
IMPORT_NAME typing
IMPORT_FROM Literal
STORE_NAME Literal
POP_TOP
LOAD_NAME Literal
LOAD_CONST ('center', 'top', 'top-right', 'right', 'bottom-right', 'bottom', 'bottom-left', 'left', 'top-left')
BINARY_SUBSCR
STORE_NAME TransformOrigin
LOAD_CONST None
RETURN_VALUE | from typing import Literal
TransformOrigin = Literal[
"center",
"top",
"top-right",
"right",
"bottom-right",
"bottom",
"bottom-left",
"left",
"top-left",
]
| data/nicegui-1.4.15/nicegui/tailwind_types/transform_origin.py | 78 | 70 | 223,474 |
LOAD_CONST 'Provides constants used in Chinese text processing.'
STORE_NAME __doc__
LOAD_CONST 0
LOAD_CONST ('cedict', 'hanzi', 'pinyin', 'zhuyin')
IMPORT_NAME zhon
IMPORT_FROM cedict
STORE_NAME cedict
IMPORT_FROM hanzi
STORE_NAME hanzi
IMPORT_FROM pinyin
STORE_NAME pinyin
IMPORT_FROM zhuyin
STORE_NAME zhuyin
POP_TOP
... | """Provides constants used in Chinese text processing."""
from zhon import cedict, hanzi, pinyin, zhuyin
__all__ = ["cedict", "hanzi", "pinyin", "zhuyin"]
__version__ = "2.0.2"
| data/zhon-2.0.2/src/zhon/__init__.py | 142 | 70 | 372,781 |
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 ('DLM',)
IMPORT_NAME prowler.providers.aws.services.dlm.dlm_service
IMPORT_FROM DLM
STORE_NAME DLM
POP_TOP
LOAD_NAME ... | from prowler.providers.aws.lib.audit_info.audit_info import current_audit_info
from prowler.providers.aws.services.dlm.dlm_service import DLM
dlm_client = DLM(current_audit_info)
| data/prowler-3.14.0/prowler/providers/aws/services/dlm/dlm_client.py | 123 | 70 | 183,087 |
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 ('Glue',)
IMPORT_NAME prowler.providers.aws.services.glue.glue_service
IMPORT_FROM Glue
STORE_NAME Glue
POP_TOP
LOAD_... | from prowler.providers.aws.lib.audit_info.audit_info import current_audit_info
from prowler.providers.aws.services.glue.glue_service import Glue
glue_client = Glue(current_audit_info)
| data/prowler-3.14.0/prowler/providers/aws/services/glue/glue_client.py | 122 | 70 | 183,074 |
LOAD_CONST 0
LOAD_CONST ('enqueue',)
IMPORT_NAME tasksconsumer
IMPORT_FROM enqueue
STORE_NAME enqueue
POP_TOP
LOAD_CONST <code object application at 0x7f8e2fb43db0, file "f.py", line 4>
LOAD_CONST 'application'
MAKE_FUNCTION
STORE_NAME application
LOAD_CONST None
RETURN_VALUE
LOAD_FAST sr
LOAD_CONST '200 OK'
LOAD_CON... | from tasksconsumer import enqueue
def application(env, sr):
sr("200 OK", [("Content-Type", "text/html")])
enqueue(queue="fast", pippo="pluto")
return "Task enqueued"
| data/uwsgi-2.0.24/contrib/spoolqueue/producer.py | 144 | 70 | 398,218 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME os
STORE_NAME os
LOAD_CONST 0
LOAD_CONST ('settings',)
IMPORT_NAME django.conf
IMPORT_FROM settings
STORE_NAME settings
POP_TOP
LOAD_CONST 0
LOAD_CONST ('settings',)
IMPORT_NAME tests
IMPORT_FROM settings
STORE_NAME test_settings
POP_TOP
LOAD_CONST <code object pytest_configu... | import os
from django.conf import settings
from tests import settings as test_settings
def pytest_configure():
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "tests.settings")
settings.configure(default_settings=test_settings)
| data/django-braces-1.15.0/conftest.py | 185 | 70 | 419,778 |
LOAD_CONST 0
LOAD_CONST ('Enum',)
IMPORT_NAME enum
IMPORT_FROM Enum
STORE_NAME Enum
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object PrereleaseFeatures at 0x7fab70027420, file "f.py", line 4>
LOAD_CONST 'PrereleaseFeatures'
MAKE_FUNCTION
LOAD_CONST 'PrereleaseFeatures'
LOAD_NAME str
LOAD_NAME Enum
CALL_FUNCTION
STORE_... | from enum import Enum
class PrereleaseFeatures(str, Enum):
UserDefined = ("userDefined",)
SettingsOnly = ("settingsOnly",)
SettingsAndExperimentations = ("settingsAndExperimentations",)
NotAllowed = ("notAllowed",)
| data/msgraph-sdk-1.1.0/msgraph/generated/models/prerelease_features.py | 182 | 70 | 261,726 |
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 search_obj_in_list(item, lst, key):
for o in lst:
if o[key] == item:
return o
return None
| data/ansible-9.2.0/ansible_collections/community/network/plugins/module_utils/network/exos/utils/utils.py | 185 | 70 | 276,588 |
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 ('Lambda',)
IMPORT_NAME prowler.providers.aws.services.awslambda.awslambda_service
IMPORT_FROM Lambda
STORE_NAME Lambd... | from prowler.providers.aws.lib.audit_info.audit_info import current_audit_info
from prowler.providers.aws.services.awslambda.awslambda_service import Lambda
awslambda_client = Lambda(current_audit_info)
| data/prowler-3.14.0/prowler/providers/aws/services/awslambda/awslambda_client.py | 123 | 70 | 183,278 |
LOAD_CONST 0
LOAD_CONST ('parse_env_variable_name',)
IMPORT_NAME python_json_config.utils
IMPORT_FROM parse_env_variable_name
STORE_NAME parse_env_variable_name
POP_TOP
LOAD_CONST <code object test_underscore_splitting at 0x7fab8000f1e0, file "f.py", line 4>
LOAD_CONST 'test_underscore_splitting'
MAKE_FUNCTION
STORE_N... | from python_json_config.utils import parse_env_variable_name
def test_underscore_splitting():
variable = "test__key_subkey"
split = parse_env_variable_name(variable)
assert split == ["test_key", "subkey"]
| data/python_json_config-1.2.3/tests/utils/test_utils.py | 179 | 70 | 344,285 |
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 ('KMS',)
IMPORT_NAME prowler.providers.aws.services.kms.kms_service
IMPORT_FROM KMS
STORE_NAME KMS
POP_TOP
LOAD_NAME ... | from prowler.providers.aws.lib.audit_info.audit_info import current_audit_info
from prowler.providers.aws.services.kms.kms_service import KMS
kms_client = KMS(current_audit_info)
| data/prowler-3.14.0/prowler/providers/aws/services/kms/kms_client.py | 123 | 70 | 183,266 |
LOAD_CONST '\n.. py:module:: segtok\n :synopsis: a sentence segmentation and word tokenization library\n\n.. moduleauthor:: Florian Leitner <florian.leitner@gmail.com>\n.. License: MIT <http://opensource.org/licenses/MIT>\n'
STORE_NAME __doc__
LOAD_CONST None
RETURN_VALUE | """
.. py:module:: segtok
:synopsis: a sentence segmentation and word tokenization library
.. moduleauthor:: Florian Leitner <florian.leitner@gmail.com>
.. License: MIT <http://opensource.org/licenses/MIT>
"""
| data/segtok-1.5.11/segtok/__init__.py | 84 | 70 | 423,982 |
LOAD_CONST './solov2_r50_fpn_ms-3x_coco.py'
STORE_NAME _base_
LOAD_NAME dict
LOAD_NAME dict
LOAD_CONST 101
LOAD_NAME dict
LOAD_CONST 'torchvision://resnet101'
LOAD_CONST ('checkpoint',)
CALL_FUNCTION
LOAD_CONST ('depth', 'init_cfg')
CALL_FUNCTION
LOAD_CONST ('backbone',)
CALL_FUNCTION
STORE_NAME model
LOAD_CONST None... | _base_ = "./solov2_r50_fpn_ms-3x_coco.py"
model = dict(
backbone=dict(depth=101, init_cfg=dict(checkpoint="torchvision://resnet101"))
)
| data/mmdet-3.3.0/mmdet/.mim/configs/solov2/solov2_r101_fpn_ms-3x_coco.py | 97 | 70 | 151,368 |
LOAD_CONST "\nModule with errors in doctest formatting.\n\n >>> 1\n 'this is\n an error'\n"
STORE_NAME __doc__
LOAD_CONST <code object foo at 0x7f8e2fc1b390, file "f.py", line 9>
LOAD_CONST 'foo'
MAKE_FUNCTION
STORE_NAME foo
LOAD_NAME __name__
LOAD_CONST '__main__'
COMPARE_OP ==
POP_JUMP_IF_FALSE
LOAD_CONST 0
LOAD_C... | """
Module with errors in doctest formatting.
>>> 1
'this is\n an error'
"""
def foo():
pass
if __name__ == "__main__":
import doctest
doctest.testmod()
| data/nose-1.3.7/unit_tests/support/doctest/err_doctests.py | 142 | 70 | 401,670 |
LOAD_CONST 0
LOAD_CONST ('absolute_import',)
IMPORT_NAME __future__
IMPORT_FROM absolute_import
STORE_NAME absolute_import
POP_TOP
LOAD_CONST 1
LOAD_CONST ('G', 'N', 'P', 'ecdsa_raw_recover', 'ecdsa_raw_sign', 'privtopub')
IMPORT_NAME secp256k1
IMPORT_FROM G
STORE_NAME G
IMPORT_FROM N
STORE_NAME N
IMPORT_FROM P
STORE_... | from __future__ import (
absolute_import,
)
from .secp256k1 import (
G,
N,
P,
ecdsa_raw_recover,
ecdsa_raw_sign,
privtopub,
)
| data/py-ecc-7.0.0/py_ecc/secp256k1/__init__.py | 152 | 70 | 154,286 |
LOAD_CONST 0
LOAD_CONST ('annotations',)
IMPORT_NAME __future__
IMPORT_FROM annotations
STORE_NAME annotations
POP_TOP
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME attrs
STORE_NAME attrs
LOAD_CONST 3
LOAD_CONST ('Control',)
IMPORT_NAME dialect
IMPORT_FROM Control
STORE_NAME Control
POP_TOP
LOAD_NAME attrs
LOAD_ATTR defi... | from __future__ import annotations
import attrs
from ...dialect import Control
@attrs.define(kw_only=True, repr=False)
class SpssControl(Control):
"""Spss dialect representation"""
type = "spss"
| data/frictionless-5.16.1/frictionless/formats/spss/control.py | 219 | 70 | 41,949 |
LOAD_CONST 0
LOAD_CONST ('restricted_eval',)
IMPORT_NAME tests.helper
IMPORT_FROM restricted_eval
STORE_NAME restricted_eval
POP_TOP
LOAD_CONST <code object test_In at 0x7f8e44ccfc00, file "f.py", line 4>
LOAD_CONST 'test_In'
MAKE_FUNCTION
STORE_NAME test_In
LOAD_CONST <code object test_NotIn at 0x7f8ab706f930, file ... | from tests.helper import restricted_eval
def test_In():
assert restricted_eval("1 in [1, 2, 3]") is True
def test_NotIn():
assert restricted_eval("4 not in [1, 2, 3]") is True
| data/RestrictedPython-7.0/tests/transformer/operators/test_logical_operators.py | 221 | 70 | 115,895 |
LOAD_CONST 0
LOAD_CONST ('setup', 'Extension')
IMPORT_NAME distutils.core
IMPORT_FROM setup
STORE_NAME setup
IMPORT_FROM Extension
STORE_NAME Extension
POP_TOP
LOAD_NAME setup
LOAD_CONST 'init_extension_module'
LOAD_CONST '0.0'
LOAD_CONST ''
LOAD_NAME Extension
LOAD_CONST 'init_extension_module.__init__'
LOAD_CONS... | from distutils.core import setup, Extension
setup(
name="init_extension_module",
version="0.0",
description="",
ext_modules=[Extension("init_extension_module.__init__", sources=["module.c"])],
)
| data/jedi-0.19.1/test/examples/init_extension_module/setup.py | 118 | 70 | 421,016 |
LOAD_CONST 0
LOAD_CONST ('time',)
IMPORT_NAME datetime
IMPORT_FROM time
STORE_NAME time
POP_TOP
LOAD_CONST 0
LOAD_CONST ('Sequence',)
IMPORT_NAME typing
IMPORT_FROM Sequence
STORE_NAME Sequence
POP_TOP
LOAD_CONST 0
LOAD_CONST ('Time',)
IMPORT_NAME visions.types.time
IMPORT_FROM Time
STORE_NAME Time
POP_TOP
LOAD_NAME... | from datetime import time
from typing import Sequence
from visions.types.time import Time
@Time.contains_op.register
def time_contains(sequence: Sequence, state: dict) -> bool:
return all(isinstance(value, time) for value in sequence)
| data/visions-0.7.6/src/visions/backends/python/types/time.py | 265 | 70 | 78,129 |
LOAD_CONST 20
STORE_NAME NCPU
LOAD_CONST 'i-03e9191e2c06b7a46'
STORE_NAME ec2_id
LOAD_CONST '52.78.21.175'
STORE_NAME host
LOAD_CONST 'elvis_prod_28asset_1'
STORE_NAME task1_name
LOAD_CONST None
RETURN_VALUE | NCPU = 20
ec2_id = "i-03e9191e2c06b7a46"
host = "52.78.21.175"
task1_name = "elvis_prod_28asset_1"
| data/utilmy-0.1.17078128/utilmy/cloud/aws/autoscale_aws/test/tasks/task_aws_template/batch_config.py | 86 | 70 | 349,793 |
LOAD_CONST 0
LOAD_CONST ('checksum',)
IMPORT_NAME schwifty
IMPORT_FROM checksum
STORE_NAME checksum
POP_TOP
LOAD_NAME checksum
LOAD_METHOD register
LOAD_CONST 'BT'
LOAD_CONST 'ME'
LOAD_CONST 'MK'
LOAD_CONST 'PT'
LOAD_CONST 'RS'
LOAD_CONST 'SI'
LOAD_CONST 'TL'
CALL_METHOD
LOAD_BUILD_CLASS
LOAD_CONST <code object Defaul... | from schwifty import checksum
@checksum.register("BT", "ME", "MK", "PT", "RS", "SI", "TL")
class DefaultAlgorithm(checksum.ISO7064_mod97_10):
name = "default"
| data/schwifty-2024.1.1.post0/schwifty/checksum/iso7064_mod97_10.py | 195 | 70 | 58,159 |
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 ('S3',)
IMPORT_NAME prowler.providers.aws.services.s3.s3_service
IMPORT_FROM S3
STORE_NAME S3
POP_TOP
LOAD_NAME S3
LO... | from prowler.providers.aws.lib.audit_info.audit_info import current_audit_info
from prowler.providers.aws.services.s3.s3_service import S3
s3_client = S3(current_audit_info)
| data/prowler-3.14.0/prowler/providers/aws/services/s3/s3_client.py | 123 | 70 | 183,246 |
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 ('ELB',)
IMPORT_NAME prowler.providers.aws.services.elb.elb_service
IMPORT_FROM ELB
STORE_NAME ELB
POP_TOP
LOAD_NAME ... | from prowler.providers.aws.lib.audit_info.audit_info import current_audit_info
from prowler.providers.aws.services.elb.elb_service import ELB
elb_client = ELB(current_audit_info)
| data/prowler-3.14.0/prowler/providers/aws/services/elb/elb_client.py | 123 | 70 | 183,228 |
LOAD_CONST 'Pytest Fixtures.'
STORE_NAME __doc__
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME pytest
STORE_NAME pytest
LOAD_CONST 0
LOAD_CONST ('random_string', 'temp_dir')
IMPORT_NAME molecule.test.conftest
IMPORT_FROM random_string
STORE_NAME random_string
IMPORT_FROM temp_dir
STORE_NAME temp_dir
POP_TOP
LOAD_NAME pyt... | """Pytest Fixtures."""
import pytest
from molecule.test.conftest import random_string, temp_dir # noqa
@pytest.fixture
def DRIVER():
"""Return name of the driver to be tested."""
return "docker"
| data/molecule-docker-2.1.0/src/molecule_docker/test/conftest.py | 151 | 70 | 300,449 |
LOAD_CONST 0
LOAD_CONST ('base',)
IMPORT_NAME keystoneclient.v3.contrib.federation
IMPORT_FROM base
STORE_NAME federation_base
POP_TOP
LOAD_CONST 0
LOAD_CONST ('domains',)
IMPORT_NAME keystoneclient.v3
IMPORT_FROM domains
STORE_NAME domains
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object DomainManager at 0x7f8e447b4... | from keystoneclient.v3.contrib.federation import base as federation_base
from keystoneclient.v3 import domains
class DomainManager(federation_base.EntityManager):
object_type = "domains"
resource_class = domains.Domain
| data/python-keystoneclient-5.3.0/keystoneclient/v3/contrib/federation/domains.py | 193 | 70 | 421,233 |
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 SharedWithYouCore
STORE_NAME SharedWithYouCore
LOAD_BUILD_CLASS
LOAD_CONST <code object TestSWCollaborationActionHandler at 0x7fab424aca50, file "f.py", l... | from PyObjCTools.TestSupport import TestCase
import SharedWithYouCore # noqa: F401
class TestSWCollaborationActionHandler(TestCase):
def test_protocols(self):
self.assertProtocolExists("SWCollaborationActionHandler")
| data/pyobjc-framework-SharedWithYouCore-10.1/PyObjCTest/test_swcollaborationactionhandler.py | 257 | 70 | 229,800 |
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 ('EC2',)
IMPORT_NAME prowler.providers.aws.services.ec2.ec2_service
IMPORT_FROM EC2
STORE_NAME EC2
POP_TOP
LOAD_NAME ... | from prowler.providers.aws.lib.audit_info.audit_info import current_audit_info
from prowler.providers.aws.services.ec2.ec2_service import EC2
ec2_client = EC2(current_audit_info)
| data/prowler-3.14.0/prowler/providers/aws/services/ec2/ec2_client.py | 123 | 70 | 183,185 |
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 ReplayKit
STORE_NAME ReplayKit
LOAD_BUILD_CLASS
LOAD_CONST <code object TestRPPreviewViewController at 0x7fab40d04e40, file "f.py", line 6>
LOAD_CONST 'Te... | from PyObjCTools.TestSupport import TestCase
import ReplayKit # noqa: F401
class TestRPPreviewViewController(TestCase):
def test_protocols(self):
self.assertProtocolExists("RPPreviewViewControllerDelegate")
| data/pyobjc-framework-ReplayKit-10.1/PyObjCTest/test_rppreviewviewcontroller.py | 257 | 70 | 201,654 |
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 ('Codebuild',)
IMPORT_NAME prowler.providers.aws.services.codebuild.codebuild_service
IMPORT_FROM Codebuild
STORE_NAME... | from prowler.providers.aws.lib.audit_info.audit_info import current_audit_info
from prowler.providers.aws.services.codebuild.codebuild_service import Codebuild
codebuild_client = Codebuild(current_audit_info)
| data/prowler-3.14.0/prowler/providers/aws/services/codebuild/codebuild_client.py | 123 | 70 | 183,182 |
LOAD_CONST 'Constants for the SwitchBee Smart Home integration.'
STORE_NAME __doc__
LOAD_CONST 0
LOAD_CONST ('CentralUnitPolling', 'CentralUnitWsRPC')
IMPORT_NAME switchbee.api
IMPORT_FROM CentralUnitPolling
STORE_NAME CentralUnitPolling
IMPORT_FROM CentralUnitWsRPC
STORE_NAME CentralUnitWsRPC
POP_TOP
LOAD_CONST 'swi... | """Constants for the SwitchBee Smart Home integration."""
from switchbee.api import CentralUnitPolling, CentralUnitWsRPC
DOMAIN = "switchbee"
SCAN_INTERVAL_SEC = {CentralUnitWsRPC: 10, CentralUnitPolling: 5}
| data/homeassistant-2024.2.2/homeassistant/components/switchbee/const.py | 125 | 70 | 298,467 |
LOAD_CONST 0
LOAD_CONST ('notfound_view_config',)
IMPORT_NAME pyramid.view
IMPORT_FROM notfound_view_config
STORE_NAME notfound_view_config
POP_TOP
LOAD_NAME notfound_view_config
LOAD_CONST 'hello_world:templates/404.jinja2'
LOAD_CONST ('renderer',)
CALL_FUNCTION
LOAD_CONST <code object notfound_view at 0x7faa51f69a50... | from pyramid.view import notfound_view_config
@notfound_view_config(renderer="hello_world:templates/404.jinja2")
def notfound_view(request):
request.response.status = 404
return {}
| data/pyramid-2.0.2/docs/quick_tour/logging/hello_world/views/notfound.py | 156 | 70 | 19,979 |
LOAD_CONST '\nProject-wide **string getters** (i.e., low-level callables slicing and returning\nsubstrings out of arbitrary strings, typically to acquire prefixes and suffixes\nsatisfying various conditions).\n\nThis private submodule is *not* intended for importation by downstream callers.\n'
STORE_NAME __doc__
LOAD_C... | """
Project-wide **string getters** (i.e., low-level callables slicing and returning
substrings out of arbitrary strings, typically to acquire prefixes and suffixes
satisfying various conditions).
This private submodule is *not* intended for importation by downstream callers.
"""
| data/beartype-0.17.2/beartype/_util/text/utiltextget.py | 84 | 70 | 373,219 |
LOAD_CONST '\nDummy email backend that does nothing.\n'
STORE_NAME __doc__
LOAD_CONST 0
LOAD_CONST ('BaseEmailBackend',)
IMPORT_NAME django.core.mail.backends.base
IMPORT_FROM BaseEmailBackend
STORE_NAME BaseEmailBackend
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object EmailBackend at 0x7f8e2fe41930, file "f.py", lin... | """
Dummy email backend that does nothing.
"""
from django.core.mail.backends.base import BaseEmailBackend
class EmailBackend(BaseEmailBackend):
def send_messages(self, email_messages):
return len(list(email_messages))
| data/Django-5.0.2/django/core/mail/backends/dummy.py | 231 | 70 | 326,944 |
LOAD_CONST 0
LOAD_CONST ('annotations',)
IMPORT_NAME __future__
IMPORT_FROM annotations
STORE_NAME annotations
POP_TOP
LOAD_CONST 0
LOAD_CONST ('MESSAGES',)
IMPORT_NAME deebot_client.messages
IMPORT_FROM MESSAGES
STORE_NAME MESSAGES
POP_TOP
LOAD_CONST 'None'
LOAD_CONST ('return',)
BUILD_CONST_KEY_MAP
LOAD_CONST <code... | from __future__ import annotations
from deebot_client.messages import MESSAGES
def test_all_messages_4_abstract_methods() -> None:
for messages in MESSAGES.values():
for message in messages.values():
message()
| data/deebot-client-5.2.1/tests/messages/test_messages.py | 232 | 70 | 357,686 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME keystoneclient
STORE_NAME keystoneclient
LOAD_CONST 0
LOAD_CONST ('base',)
IMPORT_NAME keystoneclient.tests.functional
IMPORT_FROM base
STORE_NAME base
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object V3ClientVersionTestCase at 0x7f8e447b4c90, file "f.py", line 5>
LOAD_CONST '... | import keystoneclient
from keystoneclient.tests.functional import base
class V3ClientVersionTestCase(base.V3ClientTestCase):
def test_version(self):
self.assertIsInstance(self.client, keystoneclient.v3.client.Client)
| data/python-keystoneclient-5.3.0/keystoneclient/tests/functional/test_base.py | 257 | 70 | 421,088 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME logging
STORE_NAME logging
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME os
STORE_NAME os
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME flet
STORE_NAME flet
LOAD_NAME logging
LOAD_METHOD getLogger
LOAD_NAME flet
LOAD_ATTR __name__
CALL_METHOD
STORE_NAME logger
LOAD_NAME logger
LOAD_ME... | import logging
import os
import flet
logger = logging.getLogger(flet.__name__)
logger.info("Running PyInstaller runtime hook for Flet...")
os.environ["FLET_SERVER_IP"] = "127.0.0.1"
| data/flet-0.20.2/src/flet/__pyinstaller/rthooks/pyi_rth_localhost_fletd.py | 128 | 70 | 116,823 |
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 ('Logs',)
IMPORT_NAME prowler.providers.aws.services.cloudwatch.cloudwatch_service
IMPORT_FROM Logs
STORE_NAME Logs
PO... | from prowler.providers.aws.lib.audit_info.audit_info import current_audit_info
from prowler.providers.aws.services.cloudwatch.cloudwatch_service import Logs
logs_client = Logs(current_audit_info)
| data/prowler-3.14.0/prowler/providers/aws/services/cloudwatch/logs_client.py | 122 | 70 | 183,374 |
LOAD_BUILD_CLASS
LOAD_CONST <code object PyNumeroEvaluationError at 0x7faa75826780, file "f.py", line 1>
LOAD_CONST 'PyNumeroEvaluationError'
MAKE_FUNCTION
LOAD_CONST 'PyNumeroEvaluationError'
LOAD_NAME ArithmeticError
CALL_FUNCTION
STORE_NAME PyNumeroEvaluationError
LOAD_CONST None
RETURN_VALUE
LOAD_NAME __name__
STO... | class PyNumeroEvaluationError(ArithmeticError):
"""An exception to be raised by PyNumero evaluation backends in the event
of a failed function evaluation. This should be caught by solver interfaces
and translated to the solver-specific evaluation error API.
"""
pass
| data/Pyomo-6.7.0/pyomo/contrib/pynumero/exceptions.py | 172 | 70 | 23,574 |
LOAD_CONST 0
LOAD_CONST ('*',)
IMPORT_NAME azure.cli.core.aaz
IMPORT_STAR
LOAD_NAME register_command_group
LOAD_CONST 'sql mi link'
CALL_FUNCTION
LOAD_BUILD_CLASS
LOAD_CONST <code object __CMDGroup at 0x7fab823bed20, file "f.py", line 4>
LOAD_CONST '__CMDGroup'
MAKE_FUNCTION
LOAD_CONST '__CMDGroup'
LOAD_NAME AAZComm... | from azure.cli.core.aaz import *
@register_command_group(
"sql mi link",
)
class __CMDGroup(AAZCommandGroup):
"""Instance link management commands."""
pass
__all__ = ["__CMDGroup"]
| data/azure-cli-2.57.0/azure/cli/command_modules/sql/aaz/latest/sql/mi/link/__cmd_group.py | 178 | 70 | 375,390 |
LOAD_CONST 0
LOAD_CONST ('LocMemCache',)
IMPORT_NAME django.core.cache.backends.locmem
IMPORT_FROM LocMemCache
STORE_NAME LocMemCache
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object CloseHookMixin at 0x7f8b2000bb70, file "f.py", line 4>
LOAD_CONST 'CloseHookMixin'
MAKE_FUNCTION
LOAD_CONST 'CloseHookMixin'
CALL_FUNCTI... | from django.core.cache.backends.locmem import LocMemCache
class CloseHookMixin:
closed = False
def close(self, **kwargs):
self.closed = True
class CacheClass(CloseHookMixin, LocMemCache):
pass
| data/Django-5.0.2/tests/cache/closeable_cache.py | 306 | 70 | 326,057 |
LOAD_CONST 0
LOAD_CONST ('*',)
IMPORT_NAME azure.cli.core.aaz
IMPORT_STAR
LOAD_NAME register_command_group
LOAD_CONST 'sql mi'
CALL_FUNCTION
LOAD_BUILD_CLASS
LOAD_CONST <code object __CMDGroup at 0x7fab802b9150, file "f.py", line 4>
LOAD_CONST '__CMDGroup'
MAKE_FUNCTION
LOAD_CONST '__CMDGroup'
LOAD_NAME AAZCommandGr... | from azure.cli.core.aaz import *
@register_command_group(
"sql mi",
)
class __CMDGroup(AAZCommandGroup):
"""Manage SQL managed instances."""
pass
__all__ = ["__CMDGroup"]
| data/azure-cli-2.57.0/azure/cli/command_modules/sql/aaz/latest/sql/mi/__cmd_group.py | 180 | 70 | 375,373 |
LOAD_CONST 'Client exceptions.'
STORE_NAME __doc__
LOAD_BUILD_CLASS
LOAD_CONST <code object ClientError at 0x7fab427d3ae0, file "f.py", line 4>
LOAD_CONST 'ClientError'
MAKE_FUNCTION
LOAD_CONST 'ClientError'
LOAD_NAME Exception
CALL_FUNCTION
STORE_NAME ClientError
LOAD_BUILD_CLASS
LOAD_CONST <code object FTPError at ... | """Client exceptions."""
class ClientError(Exception):
"""Basic exception raised for a given product."""
class FTPError(ClientError):
"""Exception encountered over a FTP client connection."""
class HTTPError(ClientError):
"""Exception encountered over a HTTP client connection."""
| data/tentaclio-1.3.0/src/tentaclio/clients/exceptions.py | 336 | 70 | 216,860 |
LOAD_CONST 0
LOAD_CONST ('path',)
IMPORT_NAME django.urls
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 'openid/login/'
LOAD_NAME views
LOAD_ATTR login
LOAD_CONST 'openid_login'
LOAD_CONST ('name',)
CALL_FUN... | from django.urls import path
from . import views
urlpatterns = [
path("openid/login/", views.login, name="openid_login"),
path("openid/callback/", views.callback, name="openid_callback"),
]
| data/django-allauth-0.61.1/allauth/socialaccount/providers/openid/urls.py | 128 | 70 | 336,221 |
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 open
LOAD_NAME sys
LOAD_ATTR argv
LOAD_CONST 1
BINARY_SUBSCR
LOAD_CONST 'w'
CALL_FUNCTION
SETUP_WITH to 96
STORE_NAME f
SETUP_LOOP to 92
LOAD_NAME sys
LOAD_ATTR argv
LOAD_CON... | import sys
if __name__ == "__main__":
with open(sys.argv[1], "w") as f:
for appended in sys.argv[2:]:
with open(appended) as a:
f.write(a.read())
| data/catboost-1.2.2/catboost_all_src/build/scripts/merge_files.py | 170 | 70 | 176,428 |
LOAD_CONST 0
LOAD_CONST ('CMSAppConfig', 'CMSAppExtension')
IMPORT_NAME cms.app_base
IMPORT_FROM CMSAppConfig
STORE_NAME CMSAppConfig
IMPORT_FROM CMSAppExtension
STORE_NAME CMSAppExtension
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object CMSFeatureConfig at 0x7fab70078db0, file "f.py", line 4>
LOAD_CONST 'CMSFeatureCo... | from cms.app_base import CMSAppConfig, CMSAppExtension
class CMSFeatureConfig(CMSAppExtension):
pass
class CMSFeatureConfig2(CMSAppExtension):
pass
class CMSConfig(CMSAppConfig):
pass
| data/django-cms-4.1.0/cms/test_utils/project/app_with_two_cms_feature_classes/cms_config.py | 359 | 70 | 86,985 |
LOAD_CONST 0
LOAD_CONST ('F5TmshSSH',)
IMPORT_NAME netmiko.f5.f5_tmsh_ssh
IMPORT_FROM F5TmshSSH
STORE_NAME F5TmshSSH
POP_TOP
LOAD_CONST 0
LOAD_CONST ('F5LinuxSSH',)
IMPORT_NAME netmiko.f5.f5_linux_ssh
IMPORT_FROM F5LinuxSSH
STORE_NAME F5LinuxSSH
POP_TOP
LOAD_CONST 'F5TmshSSH'
LOAD_CONST 'F5LinuxSSH'
BUILD_LIST
STORE_... | from netmiko.f5.f5_tmsh_ssh import F5TmshSSH
from netmiko.f5.f5_linux_ssh import F5LinuxSSH
__all__ = ["F5TmshSSH", "F5LinuxSSH"]
| data/netmiko-4.3.0/netmiko/f5/__init__.py | 133 | 70 | 302,429 |
LOAD_CONST 'A syntax example of Python Logging'
STORE_NAME __doc__
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME logging
STORE_NAME logging
LOAD_NAME logging
LOAD_METHOD getLogger
LOAD_NAME __name__
CALL_METHOD
STORE_NAME LOG
LOAD_NAME logging
LOAD_ATTR basicConfig
LOAD_NAME logging
LOAD_ATTR INFO
LOAD_CONST ('level',)
C... | """A syntax example of Python Logging"""
import logging
LOG = logging.getLogger(__name__)
logging.basicConfig(level=logging.INFO)
LOG.info("Python Standard Logging")
LOG.warning("Python Standard Logging")
LOG.error("Python Standard Logging")
| data/oslo.log-5.4.0/doc/source/user/examples/python_logging.py | 135 | 70 | 221,909 |
LOAD_CONST 1
LOAD_CONST ('__version__', 'version_info')
IMPORT_NAME _version
IMPORT_FROM __version__
STORE_NAME __version__
IMPORT_FROM version_info
STORE_NAME version_info
POP_TOP
LOAD_CONST 1
LOAD_CONST ('get_cmake_dir', 'get_include')
IMPORT_NAME commands
IMPORT_FROM get_cmake_dir
STORE_NAME get_cmake_dir
IMPORT_FR... | from ._version import __version__, version_info
from .commands import get_cmake_dir, get_include
__all__ = (
"version_info",
"__version__",
"get_include",
"get_cmake_dir",
)
| data/onnx-simplifier-0.4.35/third_party/pybind11/pybind11/__init__.py | 129 | 70 | 309,440 |
LOAD_CONST 0
LOAD_CONST ('version',)
IMPORT_NAME importlib.metadata
IMPORT_FROM version
STORE_NAME __version
POP_TOP
LOAD_CONST 0
LOAD_CONST ('decode', 'encode', 'is_encodable', 'is_encodable_type')
IMPORT_NAME eth_abi.abi
IMPORT_FROM decode
STORE_NAME decode
IMPORT_FROM encode
STORE_NAME encode
IMPORT_FROM is_encodab... | from importlib.metadata import (
version as __version,
)
from eth_abi.abi import (
decode,
encode,
is_encodable,
is_encodable_type,
)
__version__ = __version("eth-abi")
| data/eth_abi-5.0.0/eth_abi/__init__.py | 133 | 70 | 241,664 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME pytest
STORE_NAME pytest
LOAD_NAME pytest
LOAD_ATTR mark
LOAD_ATTR moto
LOAD_NAME pytest
LOAD_ATTR mark
LOAD_ATTR asyncio
LOAD_CONST <code object test_batch at 0x7fab703f0150, file "f.py", line 4>
LOAD_CONST 'test_batch'
MAKE_FUNCTION
CALL_FUNCTION
CALL_FUNCTION
STORE_NAME tes... | import pytest
@pytest.mark.moto
@pytest.mark.asyncio
async def test_batch(batch_client):
job_queues = await batch_client.describe_job_queues()
assert job_queues["jobQueues"] == []
| data/aiobotocore-2.11.2/tests/test_batch.py | 160 | 70 | 171,657 |
LOAD_CONST 'Re-run a notebook substituting input parameters in the first cell.'
STORE_NAME __doc__
LOAD_CONST '0.6'
STORE_NAME __version__
LOAD_CONST 1
LOAD_CONST ('Parameter', 'extract_parameters', 'replace_definitions', 'parameter_values', 'get_parameter_cell')
IMPORT_NAME code
IMPORT_FROM Parameter
STORE_NAME Para... | """Re-run a notebook substituting input parameters in the first cell."""
__version__ = "0.6"
from .code import (
Parameter,
extract_parameters,
replace_definitions,
parameter_values,
get_parameter_cell,
)
| data/nbparameterise-0.6/nbparameterise/__init__.py | 134 | 70 | 419,190 |
LOAD_CONST 1
LOAD_CONST ('*',)
IMPORT_NAME furl
IMPORT_STAR
LOAD_CONST 1
LOAD_CONST ('__title__', '__version__', '__license__', '__author__', '__contact__', '__url__', '__description__')
IMPORT_NAME __version__
IMPORT_FROM __title__
STORE_NAME __title__
IMPORT_FROM __version__
STORE_NAME __version__
IMPORT_FROM __lice... | from .furl import * # noqa
from .__version__ import ( # noqa
__title__,
__version__,
__license__,
__author__,
__contact__,
__url__,
__description__,
)
| data/furl-2.1.3/furl/__init__.py | 140 | 70 | 190,710 |
LOAD_CONST 'Test warnings used.'
STORE_NAME __doc__
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME warnings
STORE_NAME warnings
LOAD_CONST 0
LOAD_CONST ('TestCase',)
IMPORT_NAME numpy.testing
IMPORT_FROM TestCase
STORE_NAME TestCase
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object TestWarn at 0x7fab8227a4b0, file "f.py", ... | """Test warnings used."""
import warnings
from numpy.testing import TestCase
class TestWarn(TestCase):
def test_f(self):
warnings.filterwarnings("ignore", message="another warning")
warnings.warn("another warning!", stacklevel=2)
| data/pyamg-5.0.1/pyamg/util/tests/test_warn.py | 266 | 70 | 237,590 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME proto
STORE_NAME proto
LOAD_CONST 0
LOAD_CONST ('BaseMarshal',)
IMPORT_NAME proto.marshal.marshal
IMPORT_FROM BaseMarshal
STORE_NAME BaseMarshal
POP_TOP
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME pytest
STORE_NAME pytest
LOAD_CONST <code object test_strict_to_proto at 0x7fab823... | import proto
from proto.marshal.marshal import BaseMarshal
import pytest
def test_strict_to_proto():
m = BaseMarshal()
with pytest.raises(TypeError):
m.to_proto(dict, None, strict=True)
| data/proto-plus-1.23.0/tests/test_marshal_strict.py | 205 | 70 | 163,194 |
LOAD_BUILD_CLASS
LOAD_CONST <code object PaginationError at 0x7fab82345540, file "f.py", line 1>
LOAD_CONST 'PaginationError'
MAKE_FUNCTION
LOAD_CONST 'PaginationError'
LOAD_NAME Exception
CALL_FUNCTION
STORE_NAME PaginationError
LOAD_BUILD_CLASS
LOAD_CONST <code object NoMatchingDataError at 0x7fab82345b70, file "f.p... | class PaginationError(Exception):
pass
class NoMatchingDataError(Exception):
pass
class InvalidPSRTypeError(Exception):
pass
class InvalidBusinessParameterError(Exception):
pass
class InvalidParameterError(Exception):
pass
| data/entsoe-py-0.6.6/entsoe/exceptions.py | 501 | 70 | 27,585 |
LOAD_CONST 1
LOAD_CONST ('*',)
IMPORT_NAME imports
IMPORT_STAR
LOAD_CONST 1
LOAD_CONST ('*',)
IMPORT_NAME foundation
IMPORT_STAR
LOAD_CONST 1
LOAD_CONST ('*',)
IMPORT_NAME dispatch
IMPORT_STAR
LOAD_CONST 1
LOAD_CONST ('*',)
IMPORT_NAME utils
IMPORT_STAR
LOAD_CONST 1
LOAD_CONST ('*',)
IMPORT_NAME parallel
IMPORT_STA... | from .imports import *
from .foundation import *
from .dispatch import *
from .utils import *
from .parallel import *
from .net import *
from .transform import *
from .test import *
from .meta import *
from .imports import *
from .script import *
| data/fastcore-1.5.29/fastcore/all.py | 183 | 70 | 207,251 |
LOAD_CONST 0
LOAD_CONST ('*',)
IMPORT_NAME azure.cli.core.aaz
IMPORT_STAR
LOAD_NAME register_command_group
LOAD_CONST 'monitor'
CALL_FUNCTION
LOAD_BUILD_CLASS
LOAD_CONST <code object __CMDGroup at 0x7fab641928a0, file "f.py", line 4>
LOAD_CONST '__CMDGroup'
MAKE_FUNCTION
LOAD_CONST '__CMDGroup'
LOAD_NAME AAZCommandG... | from azure.cli.core.aaz import *
@register_command_group(
"monitor",
)
class __CMDGroup(AAZCommandGroup):
"""Manage the Azure Monitor Service."""
pass
__all__ = ["__CMDGroup"]
| data/azure-cli-2.57.0/azure/cli/command_modules/monitor/aaz/latest/monitor/__cmd_group.py | 180 | 70 | 374,909 |
LOAD_CONST <code object test_nbextension_path at 0x7fab821921e0, file "f.py", line 1>
LOAD_CONST 'test_nbextension_path'
MAKE_FUNCTION
STORE_NAME test_nbextension_path
LOAD_CONST None
RETURN_VALUE
LOAD_CONST 0
LOAD_CONST ('_jupyter_nbextension_paths',)
IMPORT_NAME pydeck
IMPORT_FROM _jupyter_nbextension_paths
STORE_FA... | def test_nbextension_path():
from pydeck import _jupyter_nbextension_paths
path = _jupyter_nbextension_paths()
assert len(path) == 1
assert isinstance(path[0], dict)
| data/pydeck-0.8.0/tests/test_nbextension_path.py | 203 | 70 | 347,994 |
SETUP_ANNOTATIONS
LOAD_CONST 'Constants for the Android TV Remote integration.'
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 ('Final',)
IMPORT_NAME typing
IMPORT_FROM Final
STORE_NAME Final
POP_TOP
LO... | """Constants for the Android TV Remote integration."""
from __future__ import annotations
from typing import Final
DOMAIN: Final = "androidtv_remote"
CONF_ENABLE_IME: Final = "enable_ime"
CONF_ENABLE_IME_DEFAULT_VALUE: Final = True
| data/homeassistant-2024.2.2/homeassistant/components/androidtv_remote/const.py | 186 | 70 | 296,776 |
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 ('AppStream',)
IMPORT_NAME prowler.providers.aws.services.appstream.appstream_service
IMPORT_FROM AppStream
STORE_NAME... | from prowler.providers.aws.lib.audit_info.audit_info import current_audit_info
from prowler.providers.aws.services.appstream.appstream_service import AppStream
appstream_client = AppStream(current_audit_info)
| data/prowler-3.14.0/prowler/providers/aws/services/appstream/appstream_client.py | 123 | 70 | 182,990 |
LOAD_CONST 1
LOAD_CONST ('__version__', 'version_info')
IMPORT_NAME _version
IMPORT_FROM __version__
STORE_NAME __version__
IMPORT_FROM version_info
STORE_NAME version_info
POP_TOP
LOAD_CONST 1
LOAD_CONST ('get_cmake_dir', 'get_include')
IMPORT_NAME commands
IMPORT_FROM get_cmake_dir
STORE_NAME get_cmake_dir
IMPORT_FR... | from ._version import __version__, version_info
from .commands import get_cmake_dir, get_include
__all__ = (
"version_info",
"__version__",
"get_include",
"get_cmake_dir",
)
| data/onnxoptimizer-0.3.13/third_party/onnx/third_party/pybind11/pybind11/__init__.py | 129 | 70 | 86,050 |
LOAD_CONST 0
LOAD_CONST ('MrvLxSSH',)
IMPORT_NAME netmiko.mrv.mrv_lx
IMPORT_FROM MrvLxSSH
STORE_NAME MrvLxSSH
POP_TOP
LOAD_CONST 0
LOAD_CONST ('MrvOptiswitchSSH',)
IMPORT_NAME netmiko.mrv.mrv_ssh
IMPORT_FROM MrvOptiswitchSSH
STORE_NAME MrvOptiswitchSSH
POP_TOP
LOAD_CONST 'MrvOptiswitchSSH'
LOAD_CONST 'MrvLxSSH'
BUILD... | from netmiko.mrv.mrv_lx import MrvLxSSH
from netmiko.mrv.mrv_ssh import MrvOptiswitchSSH
__all__ = ["MrvOptiswitchSSH", "MrvLxSSH"]
| data/netmiko-4.3.0/netmiko/mrv/__init__.py | 137 | 70 | 302,320 |
LOAD_CONST 0
LOAD_CONST ('admin',)
IMPORT_NAME django.contrib
IMPORT_FROM admin
STORE_NAME admin
POP_TOP
LOAD_CONST 1
LOAD_CONST ('models',)
IMPORT_NAME
IMPORT_FROM models
STORE_NAME models
POP_TOP
LOAD_NAME admin
LOAD_METHOD register
LOAD_NAME models
LOAD_ATTR VulnerabilityAssignment
CALL_METHOD
LOAD_BUILD_CLASS
LOA... | from django.contrib import admin
from . import models
@admin.register(models.VulnerabilityAssignment)
class VulnerabilityAssignmentAdmin(admin.ModelAdmin):
fields = ["asset_object_type", "asset_id", "vulnerability"]
| data/NbRisk-35.1.0/nb_risk/admin.py | 219 | 70 | 47,074 |
LOAD_CONST 0
LOAD_CONST ('unique',)
IMPORT_NAME enum
IMPORT_FROM unique
STORE_NAME unique
POP_TOP
LOAD_CONST 4
LOAD_CONST ('StrEnum',)
IMPORT_NAME _base_enum
IMPORT_FROM StrEnum
STORE_NAME StrEnum
POP_TOP
LOAD_NAME unique
LOAD_BUILD_CLASS
LOAD_CONST <code object OptionVolatilityType at 0x7fab700e4c90, file "f.py", li... | from enum import unique
from ...._base_enum import StrEnum
@unique
class OptionVolatilityType(StrEnum):
HISTORICAL = "Historical"
IMPLIED = "Implied"
SVI_SURFACE = "SVISurface"
| data/refinitiv-data-1.6.0/refinitiv/data/content/ipa/_enums/_option_volatility_type.py | 203 | 70 | 195,510 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME webview
STORE_NAME webview
LOAD_NAME __name__
LOAD_CONST '__main__'
COMPARE_OP ==
POP_JUMP_IF_FALSE
LOAD_NAME webview
LOAD_METHOD create_window
LOAD_CONST 'Local SSL Test'
LOAD_CONST 'assets/index.html'
CALL_METHOD
POP_TOP
LOAD_NAME webview
LOAD_ATTR start
LOAD_CONST True
LOA... | import webview
""""
Use SSL with a local HTTP server. Does not work on Windows.
"""
if __name__ == "__main__":
webview.create_window("Local SSL Test", "assets/index.html")
webview.start(fssl=True)
| data/pywebview-4.4.1/examples/localhost_ssl.py | 90 | 70 | 390,132 |
LOAD_CONST '\nTests for the `event-bus-redis` models module.\n'
STORE_NAME __doc__
LOAD_CONST <code object test_placeholder at 0x7fa90fb09930, file "f.py", line 6>
LOAD_CONST 'test_placeholder'
MAKE_FUNCTION
STORE_NAME test_placeholder
LOAD_CONST None
RETURN_VALUE
LOAD_CONST None
RETURN_VALUE | """
Tests for the `event-bus-redis` models module.
"""
def test_placeholder():
"""
Placeholder to allow pytest to succeed before real tests are in place.
(If there are no tests, it will exit with code 5.)
"""
| data/edx_event_bus_redis-0.3.3/tests/test_models.py | 87 | 70 | 127,457 |
LOAD_CONST 1
LOAD_CONST ('Curl',)
IMPORT_NAME curl
IMPORT_FROM Curl
STORE_NAME Curl
POP_TOP
LOAD_CONST 'curl_cffi'
STORE_NAME __title__
LOAD_CONST 'libcurl ffi bindings for Python, with impersonation support'
STORE_NAME __description__
LOAD_CONST '0.5.10'
STORE_NAME __version__
LOAD_NAME Curl
CALL_FUNCTION
LOAD_MET... | from .curl import Curl
__title__ = "curl_cffi"
__description__ = "libcurl ffi bindings for Python, with impersonation support"
__version__ = "0.5.10"
__curl_version__ = Curl().version().decode()
| data/curl_cffi-0.5.10/curl_cffi/__version__.py | 109 | 70 | 332,672 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME io
STORE_NAME io
LOAD_CONST 0
LOAD_CONST ('AdHoc',)
IMPORT_NAME ad_hoc
IMPORT_FROM AdHoc
STORE_NAME AdHoc
POP_TOP
LOAD_CONST 0
LOAD_CONST ('globalLogPublisher', 'jsonFileLogObserver')
IMPORT_NAME twisted.logger
IMPORT_FROM globalLogPublisher
STORE_NAME globalLogPublisher
IMPOR... | import io
from ad_hoc import AdHoc
from twisted.logger import globalLogPublisher, jsonFileLogObserver
globalLogPublisher.addObserver(jsonFileLogObserver(open("log.json", "a")))
AdHoc(3, 4).logMessage()
| data/twisted-23.10.0/docs/core/howto/listings/logger/ad_hoc_save.py | 163 | 70 | 383,403 |
LOAD_CONST 'Placeholder values for run-time varying dimension sizes.'
STORE_NAME __doc__
LOAD_CONST 'num residues placeholder'
STORE_NAME NUM_RES
LOAD_CONST 'msa placeholder'
STORE_NAME NUM_MSA_SEQ
LOAD_CONST 'extra msa placeholder'
STORE_NAME NUM_EXTRA_SEQ
LOAD_CONST 'num templates placeholder'
STORE_NAME NUM_TEMP... | """Placeholder values for run-time varying dimension sizes."""
NUM_RES = "num residues placeholder"
NUM_MSA_SEQ = "msa placeholder"
NUM_EXTRA_SEQ = "extra msa placeholder"
NUM_TEMPLATES = "num templates placeholder"
| data/alphafold-colabfold-2.3.6/alphafold/model/tf/shape_placeholders.py | 95 | 70 | 105,734 |
LOAD_CONST '\nTest top level import\n'
STORE_NAME __doc__
SETUP_EXCEPT to 22
LOAD_CONST 0
LOAD_CONST ('*',)
IMPORT_NAME skdist
IMPORT_STAR
LOAD_CONST None
STORE_NAME _top_import_error
POP_BLOCK
JUMP_FORWARD to 60
DUP_TOP
LOAD_NAME Exception
COMPARE_OP exception match
POP_JUMP_IF_FALSE
POP_TOP
STORE_NAME e
POP_TOP
S... | """
Test top level import
"""
try:
from skdist import *
_top_import_error = None
except Exception as e:
_top_import_error = e
def test_import_skdist():
assert _top_import_error == None
| data/sk-dist-0.1.9/skdist/tests/test_init.py | 216 | 70 | 79,454 |
LOAD_CONST 2
LOAD_CONST ('processors',)
IMPORT_NAME
IMPORT_FROM processors
STORE_NAME processors
POP_TOP
LOAD_NAME processors
LOAD_ATTR PostProcessor
STORE_NAME PostProcessor
LOAD_NAME processors
LOAD_ATTR BertProcessing
STORE_NAME BertProcessing
LOAD_NAME processors
LOAD_ATTR ByteLevel
STORE_NAME ByteLevel
LOAD_NA... | from .. import processors
PostProcessor = processors.PostProcessor
BertProcessing = processors.BertProcessing
ByteLevel = processors.ByteLevel
RobertaProcessing = processors.RobertaProcessing
Sequence = processors.Sequence
TemplateProcessing = processors.TemplateProcessing
| data/tokenizers-0.15.2/py_src/tokenizers/processors/__init__.py | 116 | 70 | 117,690 |
LOAD_CONST 0
LOAD_CONST ('DataSource',)
IMPORT_NAME intake.source.base
IMPORT_FROM DataSource
STORE_NAME DataSource
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object FooPlugin at 0x7fab8233d810, file "f.py", line 4>
LOAD_CONST 'FooPlugin'
MAKE_FUNCTION
LOAD_CONST 'FooPlugin'
LOAD_NAME DataSource
CALL_FUNCTION
STORE_NAM... | from intake.source.base import DataSource
class FooPlugin(DataSource):
name = "otherfoo"
version = "0.1"
container = "dataframe"
partition_access = False
def __init__(self, **kwargs):
pass
| data/intake-2.0.1/intake/source/tests/plugin_searchpath/not_intake_foo/__init__.py | 226 | 70 | 141,607 |
LOAD_CONST 'Pathlib API extended to use fsspec backends.'
STORE_NAME __doc__
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME sys
STORE_NAME sys
SETUP_EXCEPT to 30
LOAD_CONST 0
LOAD_CONST ('__version__',)
IMPORT_NAME upath._version
IMPORT_FROM __version__
STORE_NAME __version__
POP_TOP
POP_BLOCK
JUMP_FORWARD to 54
DUP_TOP
... | """Pathlib API extended to use fsspec backends."""
import sys
try:
from upath._version import __version__
except ImportError:
__version__ = "not-installed"
from upath.core import UPath
__all__ = ["UPath"]
| data/universal_pathlib-0.2.1/upath/__init__.py | 169 | 70 | 55,177 |
LOAD_CONST 0
LOAD_CONST ('_proxy',)
IMPORT_NAME openstack.baremetal.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 BaremetalService at... | from openstack.baremetal.v1 import _proxy
from openstack import service_description
class BaremetalService(service_description.ServiceDescription):
"""The bare metal service."""
supported_versions = {
"1": _proxy.Proxy,
}
| data/openstacksdk-2.1.0/openstack/baremetal/baremetal_service.py | 210 | 70 | 284,608 |
LOAD_CONST 'Generative Agents primitives.'
STORE_NAME __doc__
LOAD_CONST 0
LOAD_CONST ('GenerativeAgent',)
IMPORT_NAME langchain_experimental.generative_agents.generative_agent
IMPORT_FROM GenerativeAgent
STORE_NAME GenerativeAgent
POP_TOP
LOAD_CONST 0
LOAD_CONST ('GenerativeAgentMemory',)
IMPORT_NAME langchain_exper... | """Generative Agents primitives."""
from langchain_experimental.generative_agents.generative_agent import GenerativeAgent
from langchain_experimental.generative_agents.memory import GenerativeAgentMemory
__all__ = ["GenerativeAgent", "GenerativeAgentMemory"]
| data/langchain_experimental-0.0.52/langchain_experimental/generative_agents/__init__.py | 129 | 70 | 193,386 |
LOAD_CONST ' jenkinsapi.command_line.jenkinsapi_version\n'
STORE_NAME __doc__
LOAD_CONST 0
LOAD_CONST ('__version__',)
IMPORT_NAME jenkinsapi
IMPORT_FROM __version__
STORE_NAME version
POP_TOP
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME sys
STORE_NAME sys
LOAD_CONST <code object main at 0x7faa5f6e85d0, file "f.py", lin... | """ jenkinsapi.command_line.jenkinsapi_version
"""
from jenkinsapi import __version__ as version
import sys
def main():
sys.stdout.write(version)
if __name__ == "__main__":
main()
| data/jenkinsapi-0.3.13/jenkinsapi/command_line/jenkinsapi_version.py | 166 | 70 | 22,879 |
LOAD_CONST 0
LOAD_CONST ('cloud_region',)
IMPORT_NAME openstack.config
IMPORT_FROM cloud_region
STORE_NAME cloud_region
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object CloudConfig at 0x7fab8214d810, file "f.py", line 4>
LOAD_CONST 'CloudConfig'
MAKE_FUNCTION
LOAD_CONST 'CloudConfig'
LOAD_NAME cloud_region
LOAD_ATTR C... | from openstack.config import cloud_region
class CloudConfig(cloud_region.CloudRegion):
def __init__(self, name, region, config, **kwargs):
super(CloudConfig, self).__init__(name, region, config, **kwargs)
self.region = region
| data/openstacksdk-2.1.0/openstack/config/cloud_config.py | 249 | 70 | 284,570 |
LOAD_CONST 0
LOAD_CONST ('_proxy',)
IMPORT_NAME openstack.load_balancer.v2
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 LoadBalancerSer... | from openstack.load_balancer.v2 import _proxy
from openstack import service_description
class LoadBalancerService(service_description.ServiceDescription):
"""The load balancer service."""
supported_versions = {
"2": _proxy.Proxy,
}
| data/openstacksdk-2.1.0/openstack/load_balancer/load_balancer_service.py | 205 | 70 | 284,549 |
LOAD_CONST 2
LOAD_CONST ('processors',)
IMPORT_NAME
IMPORT_FROM processors
STORE_NAME processors
POP_TOP
LOAD_NAME processors
LOAD_ATTR PostProcessor
STORE_NAME PostProcessor
LOAD_NAME processors
LOAD_ATTR BertProcessing
STORE_NAME BertProcessing
LOAD_NAME processors
LOAD_ATTR ByteLevel
STORE_NAME ByteLevel
LOAD_NA... | from .. import processors
PostProcessor = processors.PostProcessor
BertProcessing = processors.BertProcessing
ByteLevel = processors.ByteLevel
RobertaProcessing = processors.RobertaProcessing
Sequence = processors.Sequence
TemplateProcessing = processors.TemplateProcessing
| data/tokenizers-0.15.2/bindings/python/py_src/tokenizers/processors/__init__.py | 116 | 70 | 117,667 |
LOAD_CONST 'Constants for the PurpleAir integration.'
STORE_NAME __doc__
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME logging
STORE_NAME logging
LOAD_CONST 'purpleair'
STORE_NAME DOMAIN
LOAD_NAME logging
LOAD_METHOD getLogger
LOAD_NAME __package__
CALL_METHOD
STORE_NAME LOGGER
LOAD_CONST 'read_key'
STORE_NAME CONF_READ... | """Constants for the PurpleAir integration."""
import logging
DOMAIN = "purpleair"
LOGGER = logging.getLogger(__package__)
CONF_READ_KEY = "read_key"
CONF_SENSOR_INDICES = "sensor_indices"
| data/homeassistant-2024.2.2/homeassistant/components/purpleair/const.py | 104 | 70 | 296,010 |
LOAD_CONST 0
LOAD_CONST ('absolute_import',)
IMPORT_NAME __future__
IMPORT_FROM absolute_import
STORE_NAME absolute_import
POP_TOP
LOAD_CONST 0
LOAD_CONST ('PublicSmtpTokensApi',)
IMPORT_NAME hubspot.marketing.transactional.api.public_smtp_tokens_api
IMPORT_FROM PublicSmtpTokensApi
STORE_NAME PublicSmtpTokensApi
POP_T... | from __future__ import absolute_import
from hubspot.marketing.transactional.api.public_smtp_tokens_api import (
PublicSmtpTokensApi,
)
from hubspot.marketing.transactional.api.single_send_api import SingleSendApi
| data/hubspot-api-client-8.2.1/hubspot/marketing/transactional/api/__init__.py | 137 | 70 | 320,621 |
LOAD_CONST 'Test import.'
STORE_NAME __doc__
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME tensorflow_datasets
STORE_NAME tfds
LOAD_BUILD_CLASS
LOAD_CONST <code object ImportTest at 0x7fab8228ca50, file "f.py", line 6>
LOAD_CONST 'ImportTest'
MAKE_FUNCTION
LOAD_CONST 'ImportTest'
LOAD_NAME tfds
LOAD_ATTR testing
LOAD_ATTR... | """Test import."""
import tensorflow_datasets as tfds
class ImportTest(tfds.testing.TestCase):
def test_import(self):
pass
if __name__ == "__main__":
tfds.testing.test_main()
| data/tfds-nightly-4.9.4.dev202402210044/tensorflow_datasets/import_test.py | 226 | 70 | 238,098 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME re
STORE_NAME re
LOAD_NAME re
LOAD_METHOD compile
LOAD_CONST '\\s+'
CALL_METHOD
STORE_NAME SPACE_NORMALIZER
LOAD_CONST <code object tokenize_line at 0x7f8aacb2c300, file "f.py", line 7>
LOAD_CONST 'tokenize_line'
MAKE_FUNCTION
STORE_NAME tokenize_line
LOAD_CONST None
RETURN_VA... | import re
SPACE_NORMALIZER = re.compile(r"\s+")
def tokenize_line(line):
line = SPACE_NORMALIZER.sub(" ", line)
line = line.strip()
return line.split()
| data/fairseq-0.12.2/fairseq/tokenizer.py | 145 | 70 | 119,924 |
LOAD_CONST <code object test_xdist_not_broken at 0x7fab703f0d20, file "f.py", line 1>
LOAD_CONST 'test_xdist_not_broken'
MAKE_FUNCTION
STORE_NAME test_xdist_not_broken
LOAD_CONST None
RETURN_VALUE
LOAD_FAST testdir
LOAD_METHOD makepyfile
LOAD_FAST twenty_tests
CALL_METHOD
POP_TOP
LOAD_FAST testdir
LOAD_METHOD runpyte... | def test_xdist_not_broken(testdir, twenty_tests):
testdir.makepyfile(twenty_tests)
result = testdir.runpytest("--random-order", "-n", "5")
result.assert_outcomes(passed=20)
| data/pytest-random-order-1.1.1/tests/test_xdist.py | 150 | 70 | 171,513 |
LOAD_CONST 0
LOAD_CONST ('decorator',)
IMPORT_NAME tests.fixtures
IMPORT_FROM decorator
STORE_NAME decorator
POP_TOP
LOAD_CONST 0
LOAD_CONST ('twofunction',)
IMPORT_NAME tests.fixtures.import_and_scan.two
IMPORT_FROM twofunction
STORE_NAME twofunction
POP_TOP
LOAD_NAME decorator
LOAD_CONST True
LOAD_CONST ('function'... | from tests.fixtures import decorator
from tests.fixtures.import_and_scan.two import twofunction # should not be scanned
@decorator(function=True)
def onefunction(request): # pragma: no cover
twofunction(request)
return request
| data/venusian-3.1.0/tests/fixtures/import_and_scan/one.py | 148 | 70 | 76,634 |
LOAD_CONST 0
LOAD_CONST ('GiModuleInfo',)
IMPORT_NAME PyInstaller.utils.hooks.gi
IMPORT_FROM GiModuleInfo
STORE_NAME GiModuleInfo
POP_TOP
LOAD_NAME GiModuleInfo
LOAD_CONST 'GstGLWayland'
LOAD_CONST '1.0'
CALL_FUNCTION
STORE_NAME module_info
LOAD_NAME module_info
LOAD_ATTR available
POP_JUMP_IF_FALSE
LOAD_NAME module... | from PyInstaller.utils.hooks.gi import GiModuleInfo
module_info = GiModuleInfo("GstGLWayland", "1.0")
if module_info.available:
binaries, datas, hiddenimports = module_info.collect_typelib_data()
| data/pyinstaller-6.4.0/PyInstaller/hooks/hook-gi.repository.GstGLWayland.py | 114 | 70 | 185,246 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.