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 ('Local',)
IMPORT_NAME random_word.services.local
IMPORT_FROM Local
STORE_NAME Local
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object RandomWords at 0x7faa5017f540, file "f.py", line 4>
LOAD_CONST 'RandomWords'
MAKE_FUNCTION
LOAD_CONST 'RandomWords'
LOAD_NAME object
CALL_FUNCTION
STORE_NAME Ran... | from random_word.services.local import Local
class RandomWords(object):
"""Class for generating random words"""
def __init__(self):
self.service = Local()
def get_random_word(self):
return self.service.get_random_word()
| data/Random Word-1.0.11/random_word/random_word.py | 286 | 73 | 134,977 |
LOAD_CONST 1
LOAD_CONST ('MigrationError', 'Migrator')
IMPORT_NAME migrations.migrator
IMPORT_FROM MigrationError
STORE_NAME MigrationError
IMPORT_FROM Migrator
STORE_NAME Migrator
POP_TOP
LOAD_CONST 1
LOAD_CONST ('EmbeddedJsonModel', 'Field', 'HashModel', 'JsonModel', 'VectorFieldOptions', 'KNNExpression', 'NotFoundE... | from .migrations.migrator import MigrationError, Migrator
from .model import (
EmbeddedJsonModel,
Field,
HashModel,
JsonModel,
VectorFieldOptions,
KNNExpression,
NotFoundError,
RedisModel,
)
| data/redis_om-0.2.1/redis_om/model/__init__.py | 177 | 73 | 48,647 |
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_ListOffs... | import pytest
import kernels
@pytest.mark.skip(reason="Unable to generate any tests for kernel")
def test_pyawkward_ListOffsetArray64_rpad_length_axis1_1():
raise NotImplementedError("Unable to generate any tests for kernel")
| data/awkward-cpp-29/tests-spec/test_pyawkward_ListOffsetArray64_rpad_length_axis1.py | 197 | 73 | 220,546 |
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_reduce_c... | import pytest
import kernels
@pytest.mark.skip(reason="Unable to generate any tests for kernel")
def test_pyawkward_reduce_countnonzero_int64_64_1():
raise NotImplementedError("Unable to generate any tests for kernel")
| data/awkward-cpp-29/tests-spec/test_pyawkward_reduce_countnonzero_int64_64.py | 197 | 73 | 220,543 |
LOAD_CONST 0
LOAD_CONST ('annotations',)
IMPORT_NAME __future__
IMPORT_FROM annotations
STORE_NAME annotations
POP_TOP
LOAD_CONST 0
LOAD_CONST ('Literal', 'Required', 'TypedDict')
IMPORT_NAME typing_extensions
IMPORT_FROM Literal
STORE_NAME Literal
IMPORT_FROM Required
STORE_NAME Required
IMPORT_FROM TypedDict
STORE_N... | from __future__ import annotations
from typing_extensions import Literal, Required, TypedDict
__all__ = ["TextBlockParam"]
class TextBlockParam(TypedDict, total=False):
text: Required[str]
type: Literal["text"]
| data/anthropic-0.16.0/src/anthropic/types/text_block_param.py | 249 | 73 | 222,006 |
LOAD_CONST 'DiagramSettings'
LOAD_CONST 'display'
LOAD_CONST 'to_latex'
BUILD_LIST
STORE_NAME __all__
LOAD_CONST 0
LOAD_CONST ('to_latex',)
IMPORT_NAME pyquil.latex._main
IMPORT_FROM to_latex
STORE_NAME to_latex
POP_TOP
LOAD_CONST 0
LOAD_CONST ('DiagramSettings',)
IMPORT_NAME pyquil.latex._diagram
IMPORT_FROM Diagr... | __all__ = [
"DiagramSettings",
"display",
"to_latex",
]
from pyquil.latex._main import to_latex
from pyquil.latex._diagram import DiagramSettings
from pyquil.latex._ipython import display
| data/pyquil-4.6.2/pyquil/latex/__init__.py | 138 | 73 | 351,498 |
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_reduce_s... | import pytest
import kernels
@pytest.mark.skip(reason="Unable to generate any tests for kernel")
def test_pyawkward_reduce_sum_bool_float64_64_1():
raise NotImplementedError("Unable to generate any tests for kernel")
| data/awkward-cpp-29/tests-spec/test_pyawkward_reduce_sum_bool_float64_64.py | 198 | 73 | 220,540 |
LOAD_CONST ' ``django-structlog`` is a structured logging integration for ``Django`` project using ``structlog``.\n'
STORE_NAME __doc__
LOAD_CONST 'django_structlog'
STORE_NAME name
LOAD_CONST (7, 1, 0)
STORE_NAME VERSION
LOAD_CONST '.'
LOAD_METHOD join
LOAD_CONST <code object <genexpr> at 0x7f8c5d0fdc00, file "f.py... | """ ``django-structlog`` is a structured logging integration for ``Django`` project using ``structlog``.
"""
name = "django_structlog"
VERSION = (7, 1, 0)
__version__ = ".".join(str(v) for v in VERSION)
| data/django-structlog-7.1.0/django_structlog/__init__.py | 169 | 73 | 430,077 |
LOAD_CONST 0
LOAD_CONST ('configure_azure_monitor',)
IMPORT_NAME azure.monitor.opentelemetry
IMPORT_FROM configure_azure_monitor
STORE_NAME configure_azure_monitor
POP_TOP
LOAD_CONST 0
LOAD_CONST ('HttpResponse',)
IMPORT_NAME django.http
IMPORT_FROM HttpResponse
STORE_NAME HttpResponse
POP_TOP
LOAD_NAME configure_azu... | from azure.monitor.opentelemetry import configure_azure_monitor
from django.http import HttpResponse
configure_azure_monitor()
def index(request):
return HttpResponse("Hello, world.")
def exception(request):
raise Exception("Exception was raised.")
| data/azure-monitor-opentelemetry-1.2.0/samples/tracing/django/sample/example/views.py | 212 | 73 | 443,788 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME yatest.common
IMPORT_FROM common
STORE_NAME yc
POP_TOP
LOAD_CONST <code object test_export_metrics at 0x7fab800c7660, file "f.py", line 4>
LOAD_CONST 'test_export_metrics'
MAKE_FUNCTION
STORE_NAME test_export_metrics
LOAD_CONST None
RETURN_VALUE
LOAD_FAST metrics
LOAD_METHOD s... | import yatest.common as yc
def test_export_metrics(metrics):
metrics.set_benchmark(
yc.execute_benchmark(
"library/cpp/accurate_accumulate/benchmark/benchmark", threads=8
)
)
| data/catboost-1.2.2/catboost_all_src/library/cpp/accurate_accumulate/benchmark/metrics/main.py | 150 | 73 | 177,253 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME sys
STORE_NAME sys
LOAD_CONST 0
LOAD_CONST ('path',)
IMPORT_NAME os
IMPORT_FROM path
STORE_NAME path
POP_TOP
LOAD_CONST 0
LOAD_CONST ('*',)
IMPORT_NAME os
IMPORT_STAR
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME time
STORE_NAME time1
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME os
ST... | import sys
from os import path
from os import *
import time as time1, os as os1
import http.client as httpclient
if len(__file__) == 0:
import a.b.c as d
import stuff0.stuff1.stuff2.stuff3 as stuff3
| data/xdis-6.0.5/test/simple_source/00_import.py | 207 | 73 | 85,316 |
LOAD_CONST 'DO NOT EDIT.\n\nThis file was autogenerated. Do not edit it by hand,\nsince your modifications would be overwritten.\n'
STORE_NAME __doc__
LOAD_CONST 0
LOAD_CONST ('get_word_index',)
IMPORT_NAME keras.src.datasets.imdb
IMPORT_FROM get_word_index
STORE_NAME get_word_index
POP_TOP
LOAD_CONST 0
LOAD_CONST ('... | """DO NOT EDIT.
This file was autogenerated. Do not edit it by hand,
since your modifications would be overwritten.
"""
from keras.src.datasets.imdb import get_word_index
from keras.src.datasets.imdb import load_data
| data/keras-3.0.5/keras/_tf_keras/keras/datasets/imdb/__init__.py | 129 | 73 | 349,551 |
LOAD_CONST 0
LOAD_CONST ('TYPE_CHECKING', 'Optional')
IMPORT_NAME typing
IMPORT_FROM TYPE_CHECKING
STORE_NAME TYPE_CHECKING
IMPORT_FROM Optional
STORE_NAME Optional
POP_TOP
LOAD_NAME TYPE_CHECKING
POP_JUMP_IF_FALSE
LOAD_CONST 0
LOAD_CONST ('TypedDict',)
IMPORT_NAME typing
IMPORT_FROM TypedDict
STORE_NAME TypedDict
PO... | from typing import TYPE_CHECKING, Optional
if TYPE_CHECKING:
from typing import TypedDict
class ResultDict(TypedDict):
encoding: Optional[str]
confidence: float
language: Optional[str]
else:
ResultDict = dict
| data/pigar-2.1.3/pigar/_vendor/pip/_vendor/chardet/resultdict.py | 257 | 73 | 241,224 |
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_reduce_p... | import pytest
import kernels
@pytest.mark.skip(reason="Unable to generate any tests for kernel")
def test_pyawkward_reduce_prod_bool_uint32_64_1():
raise NotImplementedError("Unable to generate any tests for kernel")
| data/awkward-cpp-29/tests-spec/test_pyawkward_reduce_prod_bool_uint32_64.py | 197 | 73 | 220,671 |
LOAD_CONST 'Python bindings for libssh.'
STORE_NAME __doc__
LOAD_CONST 1
LOAD_CONST ('__full_version__', '__libssh_version__', '__version__', '__version_info__')
IMPORT_NAME _version
IMPORT_FROM __full_version__
STORE_NAME __full_version__
IMPORT_FROM __libssh_version__
STORE_NAME __libssh_version__
IMPORT_FROM __vers... | """Python bindings for libssh."""
from ._version import ( # noqa: F401, WPS300, WPS436
__full_version__,
__libssh_version__,
__version__,
__version_info__,
)
| data/ansible-pylibssh-1.1.0/src/pylibsshext/__init__.py | 114 | 73 | 406,281 |
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 data_protection_policy
IMPORT_STAR
LOAD_CONST 1
LOAD_CONST ('*',)
IMPORT_NAME get_topic
IMPORT_STAR
LO... | from .. import _utilities
import typing
from .data_protection_policy import *
from .get_topic import *
from .platform_application import *
from .sms_preferences import *
from .topic import *
from .topic_policy import *
from .topic_subscription import *
| data/pulumi_aws-6.22.2/pulumi_aws/sns/__init__.py | 176 | 73 | 228,249 |
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 ('Airtable', 'AirtableError', 'IsNotInteger', 'IsNotString', 'Record', 'Table')
IMPORT_NAME airtable
IMPORT_FROM Airtable
STORE_NAME Airtable
IMPORT_FROM AirtableEr... | from __future__ import absolute_import
from .airtable import (
Airtable as Airtable,
AirtableError as AirtableError,
IsNotInteger as IsNotInteger,
IsNotString as IsNotString,
Record as Record,
Table as Table,
)
| data/airtable-0.4.8/airtable/__init__.py | 130 | 73 | 130,307 |
LOAD_CONST "Print 'Hello world' to the terminal.\n\nThis is a simple test script using a hashbang line and a PEP263 encoding line.\n\nIn the original format, there excess spaces in the print call, and unwanted\nblank lines - which black will remove.\n"
STORE_NAME __doc__
LOAD_NAME print
LOAD_CONST 'Hello world'
CALL_F... | """Print 'Hello world' to the terminal.
This is a simple test script using a hashbang line and a PEP263 encoding line.
In the original format, there excess spaces in the print call, and unwanted
blank lines - which black will remove.
"""
print("Hello world")
| data/flake8-black-0.3.6/tests/test_changes/hello_world.py | 92 | 73 | 387,922 |
LOAD_CONST 1
LOAD_CONST ('set_config_readonly', 'set_config_writeable')
IMPORT_NAME config_utils
IMPORT_FROM set_config_readonly
STORE_NAME set_config_readonly
IMPORT_FROM set_config_writeable
STORE_NAME set_config_writeable
POP_TOP
LOAD_CONST 1
LOAD_CONST ('get_fpn_config',)
IMPORT_NAME fpn_config
IMPORT_FROM get_fpn... | from .config_utils import set_config_readonly, set_config_writeable
from .fpn_config import get_fpn_config
from .model_config import get_efficientdet_config, default_detection_model_configs
from .train_config import default_detection_train_config
| data/effdet-0.4.1/effdet/config/__init__.py | 222 | 73 | 233,129 |
LOAD_CONST 0
LOAD_CONST ('service_description',)
IMPORT_NAME openstack
IMPORT_FROM service_description
STORE_NAME service_description
POP_TOP
LOAD_CONST 0
LOAD_CONST ('_proxy',)
IMPORT_NAME openstack.fake.v2
IMPORT_FROM _proxy
STORE_NAME _proxy_v2
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object FakeService at 0x7fab... | from openstack import service_description
from openstack.fake.v2 import _proxy as _proxy_v2
class FakeService(service_description.ServiceDescription):
"""The fake service."""
supported_versions = {
"2": _proxy_v2.Proxy,
}
| data/openstacksdk-2.1.0/doc/source/contributor/create/examples/resource/fake_service.py | 202 | 73 | 284,789 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME logging
STORE_NAME logging
LOAD_CONST '0.25.0'
STORE_NAME __version__
LOAD_NAME logging
LOAD_ATTR DEBUG
STORE_NAME DEBUG1
LOAD_NAME DEBUG1
LOAD_CONST 1
BINARY_SUBTRACT
STORE_NAME DEBUG2
LOAD_NAME DEBUG2
LOAD_CONST 1
BINARY_SUBTRACT
STORE_NAME DEBUG3
LOAD_NAME logging
LOAD_M... | import logging
__version__ = "0.25.0"
DEBUG1 = logging.DEBUG
DEBUG2 = DEBUG1 - 1
DEBUG3 = DEBUG2 - 1
logging.addLevelName(DEBUG2, "DEBUG2")
logging.addLevelName(DEBUG3, "DEBUG3")
| data/pan-python-0.25.0/lib/pan/__init__.py | 121 | 73 | 214,970 |
LOAD_CONST 0
LOAD_CONST ('ClientValue',)
IMPORT_NAME office365.runtime.client_value
IMPORT_FROM ClientValue
STORE_NAME ClientValue
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object SharePointOneDriveOptions at 0x7fab81f0b1e0, file "f.py", line 4>
LOAD_CONST 'SharePointOneDriveOptions'
MAKE_FUNCTION
LOAD_CONST 'SharePoi... | from office365.runtime.client_value import ClientValue
class SharePointOneDriveOptions(ClientValue):
"""Provides the search content options when a search is performed using application permissions"""
def __init__(self, search_content=None):
self.searchContent = search_content
| data/Office365-REST-Python-Client-2.5.5/office365/search/sharepoint_onedrive_options.py | 247 | 73 | 188,629 |
LOAD_CONST 0
LOAD_CONST ('Enum',)
IMPORT_NAME enum
IMPORT_FROM Enum
STORE_NAME Enum
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object ScheduleChangeRequestActor at 0x7fab70027420, file "f.py", line 4>
LOAD_CONST 'ScheduleChangeRequestActor'
MAKE_FUNCTION
LOAD_CONST 'ScheduleChangeRequestActor'
LOAD_NAME str
LOAD_NAME E... | from enum import Enum
class ScheduleChangeRequestActor(str, Enum):
Sender = ("sender",)
Recipient = ("recipient",)
Manager = ("manager",)
System = ("system",)
UnknownFutureValue = ("unknownFutureValue",)
| data/msgraph-sdk-1.1.0/msgraph/generated/models/schedule_change_request_actor.py | 199 | 73 | 261,108 |
LOAD_CONST 0
LOAD_CONST ('TYPE_CHECKING', 'Optional')
IMPORT_NAME typing
IMPORT_FROM TYPE_CHECKING
STORE_NAME TYPE_CHECKING
IMPORT_FROM Optional
STORE_NAME Optional
POP_TOP
LOAD_NAME TYPE_CHECKING
POP_JUMP_IF_FALSE
LOAD_CONST 0
LOAD_CONST ('TypedDict',)
IMPORT_NAME typing
IMPORT_FROM TypedDict
STORE_NAME TypedDict
PO... | from typing import TYPE_CHECKING, Optional
if TYPE_CHECKING:
from typing import TypedDict
class ResultDict(TypedDict):
encoding: Optional[str]
confidence: float
language: Optional[str]
else:
ResultDict = dict
| data/clvm_rs-0.6.0/venv/lib/python3.7/site-packages/pip/_vendor/chardet/resultdict.py | 256 | 73 | 288,472 |
LOAD_CONST 1
LOAD_CONST ('ArgMaxMatcher',)
IMPORT_NAME argmax_matcher
IMPORT_FROM ArgMaxMatcher
STORE_NAME ArgMaxMatcher
POP_TOP
LOAD_CONST 1
LOAD_CONST ('FasterRcnnBoxCoder',)
IMPORT_NAME box_coder
IMPORT_FROM FasterRcnnBoxCoder
STORE_NAME FasterRcnnBoxCoder
POP_TOP
LOAD_CONST 1
LOAD_CONST ('BoxList',)
IMPORT_NAME b... | from .argmax_matcher import ArgMaxMatcher
from .box_coder import FasterRcnnBoxCoder
from .box_list import BoxList
from .matcher import Match
from .region_similarity_calculator import IouSimilarity
from .target_assigner import TargetAssigner
| data/effdet-0.4.1/effdet/object_detection/__init__.py | 206 | 73 | 233,123 |
LOAD_CONST 0
LOAD_CONST ('Entity',)
IMPORT_NAME office365.sharepoint.entity
IMPORT_FROM Entity
STORE_NAME Entity
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object StorageEntity at 0x7fab700add20, file "f.py", line 4>
LOAD_CONST 'StorageEntity'
MAKE_FUNCTION
LOAD_CONST 'StorageEntity'
LOAD_NAME Entity
CALL_FUNCTION
STOR... | from office365.sharepoint.entity import Entity
class StorageEntity(Entity):
"""Storage entities which are available across app catalog scopes."""
@property
def value(self):
"""The value inside the storage entity."""
return self.properties.get("Value", None)
| data/Office365-REST-Python-Client-2.5.5/office365/sharepoint/clientsidecomponent/storage_entity.py | 214 | 73 | 189,771 |
LOAD_CONST 1
LOAD_CONST ('AccessTokenEndpoint',)
IMPORT_NAME access_token
IMPORT_FROM AccessTokenEndpoint
STORE_NAME AccessTokenEndpoint
POP_TOP
LOAD_CONST 1
LOAD_CONST ('AuthorizationEndpoint',)
IMPORT_NAME authorization
IMPORT_FROM AuthorizationEndpoint
STORE_NAME AuthorizationEndpoint
POP_TOP
LOAD_CONST 1
LOAD_CON... | from .access_token import AccessTokenEndpoint
from .authorization import AuthorizationEndpoint
from .base import BaseEndpoint
from .request_token import RequestTokenEndpoint
from .resource import ResourceEndpoint
from .signature_only import SignatureOnlyEndpoint
from .pre_configured import WebApplicationServer # isor... | data/oauthlib-3.2.2/oauthlib/oauth1/rfc5849/endpoints/__init__.py | 206 | 73 | 215,079 |
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_reduce_c... | import pytest
import kernels
@pytest.mark.skip(reason="Unable to generate any tests for kernel")
def test_pyawkward_reduce_countnonzero_int32_64_1():
raise NotImplementedError("Unable to generate any tests for kernel")
| data/awkward-cpp-29/tests-spec/test_pyawkward_reduce_countnonzero_int32_64.py | 198 | 73 | 220,650 |
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_reduce_s... | import pytest
import kernels
@pytest.mark.skip(reason="Unable to generate any tests for kernel")
def test_pyawkward_reduce_sum_bool_uint16_64_1():
raise NotImplementedError("Unable to generate any tests for kernel")
| data/awkward-cpp-29/tests-spec/test_pyawkward_reduce_sum_bool_uint16_64.py | 198 | 73 | 220,649 |
LOAD_CONST <code object flatten at 0x7fab82053030, file "f.py", line 1>
LOAD_CONST 'flatten'
MAKE_FUNCTION
STORE_NAME flatten
LOAD_CONST <code object unflatten at 0x7fab4297bdb0, file "f.py", line 7>
LOAD_CONST 'unflatten'
MAKE_FUNCTION
STORE_NAME unflatten
LOAD_CONST None
RETURN_VALUE
LOAD_CONST 0
LOAD_CONST None
IM... | def flatten(d):
import flatten_dict
return flatten_dict.flatten(d, reducer="dot")
def unflatten(d):
import flatten_dict
return flatten_dict.unflatten(d, splitter="dot")
| data/dvc-3.47.0/dvc/utils/flatten.py | 199 | 73 | 317,905 |
LOAD_CONST 1
LOAD_CONST ('_zipfile',)
IMPORT_NAME
IMPORT_FROM _zipfile
STORE_NAME _zipfile
POP_TOP
LOAD_CONST 0
LOAD_CONST ('*',)
IMPORT_NAME zipfile
IMPORT_STAR
LOAD_CONST 0
LOAD_CONST ('ZIP_DEFLATED64',)
IMPORT_NAME zipfile
IMPORT_FROM ZIP_DEFLATED64
STORE_NAME ZIP_DEFLATED64
POP_TOP
LOAD_CONST None
RETURN_VALUE | from . import _zipfile # noqa: F401
from zipfile import * # noqa: F401, F403
from zipfile import ZIP_DEFLATED64 # type: ignore[attr-defined] # noqa: F401
| data/zipfile-deflate64-0.2.0/zipfile_deflate64/__init__.py | 92 | 73 | 256,405 |
LOAD_CONST 0
LOAD_CONST ('gate',)
IMPORT_NAME ccxt.pro.gate
IMPORT_FROM gate
STORE_NAME gate
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object gateio at 0x7fae2f3eb0c0, file "f.py", line 4>
LOAD_CONST 'gateio'
MAKE_FUNCTION
LOAD_CONST 'gateio'
LOAD_NAME gate
CALL_FUNCTION
STORE_NAME gateio
LOAD_CONST None
RETURN_VALUE
... | from ccxt.pro.gate import gate
class gateio(gate):
def describe(self):
return self.deep_extend(
super(gateio, self).describe(),
{
"alias": True,
"id": "gateio",
},
)
| data/ccxt-4.2.48/ccxt/pro/gateio.py | 232 | 73 | 316,678 |
LOAD_CONST 0
LOAD_CONST ('gettext_lazy',)
IMPORT_NAME django.utils.translation
IMPORT_FROM gettext_lazy
STORE_NAME _
POP_TOP
LOAD_CONST 'BRU'
LOAD_NAME _
LOAD_CONST 'Brussels Capital Region'
CALL_FUNCTION
BUILD_TUPLE
LOAD_CONST 'VLG'
LOAD_NAME _
LOAD_CONST 'Flemish Region'
CALL_FUNCTION
BUILD_TUPLE
LOAD_CONST 'WAL'
... | from django.utils.translation import gettext_lazy as _
REGION_CHOICES = (
("BRU", _("Brussels Capital Region")),
("VLG", _("Flemish Region")),
("WAL", _("Wallonia")),
)
| data/django-localflavor-4.0/localflavor/be/be_regions.py | 118 | 73 | 351,132 |
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_IndexedArray64_reduce_next_64_1():
raise NotImplementedError("Unable to generate any tests for kernel")
| data/awkward-cpp-29/tests-spec/test_pyawkward_IndexedArray64_reduce_next_64.py | 196 | 73 | 220,644 |
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_reduce_m... | import pytest
import kernels
@pytest.mark.skip(reason="Unable to generate any tests for kernel")
def test_pyawkward_reduce_min_int8_int8_64_1():
raise NotImplementedError("Unable to generate any tests for kernel")
| data/awkward-cpp-29/tests-spec/test_pyawkward_reduce_min_int8_int8_64.py | 197 | 73 | 220,640 |
LOAD_CONST 1
LOAD_CONST ('ACPCTransform', 'FiducialRegistration', 'VBRAINSDemonWarp', 'BRAINSDemonWarp')
IMPORT_NAME specialized
IMPORT_FROM ACPCTransform
STORE_NAME ACPCTransform
IMPORT_FROM FiducialRegistration
STORE_NAME FiducialRegistration
IMPORT_FROM VBRAINSDemonWarp
STORE_NAME VBRAINSDemonWarp
IMPORT_FROM BRAINS... | from .specialized import (
ACPCTransform,
FiducialRegistration,
VBRAINSDemonWarp,
BRAINSDemonWarp,
)
from .brainsresample import BRAINSResample
from .brainsfit import BRAINSFit
| data/nipype-1.8.6/nipype/interfaces/slicer/registration/__init__.py | 191 | 73 | 139,492 |
LOAD_CONST 0
LOAD_CONST ('absolute_import', 'division', 'print_function')
IMPORT_NAME __future__
IMPORT_FROM absolute_import
STORE_NAME absolute_import
IMPORT_FROM division
STORE_NAME division
IMPORT_FROM print_function
STORE_NAME print_function
POP_TOP
LOAD_NAME type
STORE_NAME __metaclass__
LOAD_CONST 0
LOAD_CONST ... | from __future__ import absolute_import, division, print_function
__metaclass__ = type
import json
def main():
print(json.dumps(dict(changed=False, source="user")))
if __name__ == "__main__":
main()
| data/ansible-core-2.16.3/test/integration/targets/collections/collection_root_user/ansible_collections/testns/testcoll/plugins/modules/module_subdir/subdir_ping_module.py | 195 | 73 | 437,320 |
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_reduce_s... | import pytest
import kernels
@pytest.mark.skip(reason="Unable to generate any tests for kernel")
def test_pyawkward_reduce_sum_bool_float32_64_1():
raise NotImplementedError("Unable to generate any tests for kernel")
| data/awkward-cpp-29/tests-spec/test_pyawkward_reduce_sum_bool_float32_64.py | 197 | 73 | 220,639 |
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 PushKit
STORE_NAME PushKit
LOAD_BUILD_CLASS
LOAD_CONST <code object TestPKPushCredentials ... | from PyObjCTools.TestSupport import TestCase, min_os_level
import PushKit
class TestPKPushCredentials(TestCase):
@min_os_level("10.15")
def test_classes(self):
PushKit.PKPushCredentials
| data/pyobjc-framework-PushKit-10.1/PyObjCTest/test_pkpushcredentials.py | 274 | 73 | 79,388 |
LOAD_CONST 0
LOAD_CONST ('TYPE_CHECKING',)
IMPORT_NAME typing
IMPORT_FROM TYPE_CHECKING
STORE_NAME TYPE_CHECKING
POP_TOP
LOAD_NAME TYPE_CHECKING
POP_JUMP_IF_FALSE
LOAD_CONST 0
LOAD_CONST ('cached_property',)
IMPORT_NAME functools
IMPORT_FROM cached_property
STORE_NAME cached_property
POP_TOP
JUMP_FORWARD to 42
LOAD_... | from typing import TYPE_CHECKING
if TYPE_CHECKING:
from functools import cached_property # noqa: TID251
else:
from funcy import cached_property # noqa: TID251
__all__ = ["cached_property"]
| data/dvc-data-3.13.0/src/dvc_data/utils.py | 127 | 73 | 57,688 |
LOAD_CONST 0
LOAD_CONST ('include', 'path')
IMPORT_NAME django.urls
IMPORT_FROM include
STORE_NAME include
IMPORT_FROM path
STORE_NAME path
POP_TOP
LOAD_CONST 1
LOAD_CONST ('urlconf_inner',)
IMPORT_NAME
IMPORT_FROM urlconf_inner
STORE_NAME urlconf_inner
POP_TOP
LOAD_NAME path
LOAD_CONST 'test/me/'
LOAD_NAME urlconf_i... | from django.urls import include, path
from . import urlconf_inner
urlpatterns = [
path("test/me/", urlconf_inner.inner_view, name="outer"),
path("inner_urlconf/", include(urlconf_inner.__name__)),
]
| data/Django-5.0.2/tests/urlpatterns_reverse/urlconf_outer.py | 142 | 73 | 325,998 |
LOAD_CONST 0
LOAD_CONST ('settings',)
IMPORT_NAME account.conf
IMPORT_FROM settings
STORE_NAME settings
POP_TOP
LOAD_CONST 0
LOAD_CONST ('Account',)
IMPORT_NAME account.models
IMPORT_FROM Account
STORE_NAME Account
POP_TOP
LOAD_CONST <code object account at 0x7faa5f2226f0, file "f.py", line 5>
LOAD_CONST 'account'
MA... | from account.conf import settings
from account.models import Account
def account(request):
ctx = {
"account": Account.for_request(request),
"ACCOUNT_OPEN_SIGNUP": settings.ACCOUNT_OPEN_SIGNUP,
}
return ctx
| data/django-user-accounts-3.3.2/account/context_processors.py | 151 | 73 | 244,558 |
LOAD_CONST 0
LOAD_CONST ('TYPE_CHECKING', 'Optional')
IMPORT_NAME typing
IMPORT_FROM TYPE_CHECKING
STORE_NAME TYPE_CHECKING
IMPORT_FROM Optional
STORE_NAME Optional
POP_TOP
LOAD_NAME TYPE_CHECKING
POP_JUMP_IF_FALSE
LOAD_CONST 0
LOAD_CONST ('TypedDict',)
IMPORT_NAME typing
IMPORT_FROM TypedDict
STORE_NAME TypedDict
PO... | from typing import TYPE_CHECKING, Optional
if TYPE_CHECKING:
from typing import TypedDict
class ResultDict(TypedDict):
encoding: Optional[str]
confidence: float
language: Optional[str]
else:
ResultDict = dict
| data/pip-24.0/src/pip/_vendor/chardet/resultdict.py | 257 | 73 | 324,820 |
SETUP_EXCEPT to 14
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME oslo_i18n
STORE_NAME oslo_i18n
POP_BLOCK
JUMP_FORWARD to 42
DUP_TOP
LOAD_NAME ImportError
COMPARE_OP exception match
POP_JUMP_IF_FALSE
POP_TOP
POP_TOP
POP_TOP
LOAD_CONST <code object _ at 0x7fab8203a8a0, file "f.py", line 5>
LOAD_CONST '_'
MAKE_FUNCTION
STO... | try:
import oslo_i18n
except ImportError:
def _(msg):
return msg
else:
_translators = oslo_i18n.TranslatorFactory(domain="ironicclient")
_ = _translators.primary
| data/python-ironicclient-5.4.0/ironicclient/common/i18n.py | 172 | 73 | 104,994 |
LOAD_CONST '\nThe :mod:`sklearn.mixture` module implements mixture modeling algorithms.\n'
STORE_NAME __doc__
LOAD_CONST 1
LOAD_CONST ('BayesianGaussianMixture',)
IMPORT_NAME _bayesian_mixture
IMPORT_FROM BayesianGaussianMixture
STORE_NAME BayesianGaussianMixture
POP_TOP
LOAD_CONST 1
LOAD_CONST ('GaussianMixture',)
I... | """
The :mod:`sklearn.mixture` module implements mixture modeling algorithms.
"""
from ._bayesian_mixture import BayesianGaussianMixture
from ._gaussian_mixture import GaussianMixture
__all__ = ["GaussianMixture", "BayesianGaussianMixture"]
| data/scikit-learn-1.4.1.post1/sklearn/mixture/__init__.py | 135 | 73 | 107,880 |
LOAD_CONST 0
LOAD_CONST ('ConnectionError', 'ConnectTimeout', 'FileModeWarning', 'HTTPError', 'ReadTimeout', 'RequestException', 'Timeout', 'TooManyRedirects', 'URLRequired')
IMPORT_NAME requests.exceptions
IMPORT_FROM ConnectionError
STORE_NAME ConnectionError
IMPORT_FROM ConnectTimeout
STORE_NAME ConnectTimeout
IMPOR... | from requests.exceptions import (
ConnectionError,
ConnectTimeout,
FileModeWarning,
HTTPError,
ReadTimeout,
RequestException,
Timeout,
TooManyRedirects,
URLRequired,
)
class ContentNotAvailable(Exception):
pass
| data/requests-async-0.6.2/requests_async/exceptions.py | 230 | 73 | 94,164 |
LOAD_CONST 1
LOAD_CONST ('AsyncIOLoopKernelManager',)
IMPORT_NAME manager
IMPORT_FROM AsyncIOLoopKernelManager
STORE_NAME AsyncIOLoopKernelManager
POP_TOP
LOAD_CONST 1
LOAD_CONST ('IOLoopKernelManager',)
IMPORT_NAME manager
IMPORT_FROM IOLoopKernelManager
STORE_NAME IOLoopKernelManager
POP_TOP
LOAD_CONST 1
LOAD_CONST... | from .manager import AsyncIOLoopKernelManager # noqa
from .manager import IOLoopKernelManager # noqa
from .restarter import AsyncIOLoopKernelRestarter # noqa
from .restarter import IOLoopKernelRestarter # noqa
| data/jupyter_client-8.6.0/jupyter_client/ioloop/__init__.py | 170 | 73 | 233,857 |
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 5
LOAD_CONST ... | from __future__ import absolute_import, division, print_function
__metaclass__ = type
from .....plugins.modules.hello import say_hello
def test_say_hello():
assert say_hello("Ansibull") == dict(message="Hello Ansibull")
| data/ansible-core-2.16.3/test/integration/targets/ansible-test-docker/ansible_collections/ns/col/tests/unit/plugins/modules/test_hello.py | 207 | 73 | 437,356 |
LOAD_CONST 0
LOAD_CONST ('*',)
IMPORT_NAME azure.cli.core.aaz
IMPORT_STAR
LOAD_NAME register_command_group
LOAD_CONST 'servicebus topic subscription rule'
CALL_FUNCTION
LOAD_BUILD_CLASS
LOAD_CONST <code object __CMDGroup at 0x7fab64192270, file "f.py", line 4>
LOAD_CONST '__CMDGroup'
MAKE_FUNCTION
LOAD_CONST '__CMDGr... | from azure.cli.core.aaz import *
@register_command_group(
"servicebus topic subscription rule",
)
class __CMDGroup(AAZCommandGroup):
"""servicebus topic subscription rule"""
pass
__all__ = ["__CMDGroup"]
| data/azure-cli-2.57.0/azure/cli/command_modules/servicebus/aaz/latest/servicebus/topic/subscription/rule/__cmd_group.py | 183 | 73 | 375,784 |
LOAD_CONST 0
LOAD_CONST ('Union',)
IMPORT_NAME typing
IMPORT_FROM Union
STORE_NAME Union
POP_TOP
LOAD_CONST 0
LOAD_CONST ('Cookie', 'FastAPI')
IMPORT_NAME fastapi
IMPORT_FROM Cookie
STORE_NAME Cookie
IMPORT_FROM FastAPI
STORE_NAME FastAPI
POP_TOP
LOAD_NAME FastAPI
CALL_FUNCTION
STORE_NAME app
LOAD_NAME app
LOAD_METH... | from typing import Union
from fastapi import Cookie, FastAPI
app = FastAPI()
@app.get("/items/")
async def read_items(ads_id: Union[str, None] = Cookie(default=None)):
return {"ads_id": ads_id}
| data/fastapi-0.109.2/docs_src/cookie_params/tutorial001.py | 197 | 73 | 142,560 |
LOAD_CONST 0
LOAD_CONST ('*',)
IMPORT_NAME azure.cli.core.aaz
IMPORT_STAR
LOAD_NAME register_command_group
LOAD_CONST 'network express-route port link'
CALL_FUNCTION
LOAD_BUILD_CLASS
LOAD_CONST <code object __CMDGroup at 0x7fab82197c90, file "f.py", line 4>
LOAD_CONST '__CMDGroup'
MAKE_FUNCTION
LOAD_CONST '__CMDGroup... | from azure.cli.core.aaz import *
@register_command_group(
"network express-route port link",
)
class __CMDGroup(AAZCommandGroup):
"""View ExpressRoute links."""
pass
__all__ = ["__CMDGroup"]
| data/azure-cli-2.57.0/azure/cli/command_modules/network/aaz/latest/network/express_route/port/link/__cmd_group.py | 183 | 73 | 377,845 |
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_instance_iam_policy
IMPORT_STAR
LOAD_CONST 1
LOAD_CONST ('*',)
IMPORT_NAME instance
IMPORT_STAR
LO... | from .. import _utilities
import typing
from .get_instance_iam_policy import *
from .instance import *
from .instance_iam_binding import *
from .instance_iam_member import *
from .instance_iam_policy import *
from ._inputs import *
from . import outputs
| data/pulumi_gcp-7.9.0/pulumi_gcp/workbench/__init__.py | 183 | 73 | 445,339 |
LOAD_CONST 0
LOAD_CONST ('*',)
IMPORT_NAME azure.cli.core.aaz
IMPORT_STAR
LOAD_NAME register_command_group
LOAD_CONST 'network express-route port'
CALL_FUNCTION
LOAD_BUILD_CLASS
LOAD_CONST <code object __CMDGroup at 0x7fab42101c00, file "f.py", line 4>
LOAD_CONST '__CMDGroup'
MAKE_FUNCTION
LOAD_CONST '__CMDGroup'
LO... | from azure.cli.core.aaz import *
@register_command_group(
"network express-route port",
)
class __CMDGroup(AAZCommandGroup):
"""Manage ExpressRoute ports."""
pass
__all__ = ["__CMDGroup"]
| data/azure-cli-2.57.0/azure/cli/command_modules/network/aaz/latest/network/express_route/port/__cmd_group.py | 183 | 73 | 377,835 |
LOAD_CONST 0
LOAD_CONST ('*',)
IMPORT_NAME azure.cli.core.aaz
IMPORT_STAR
LOAD_NAME register_command_group
LOAD_CONST 'network nsg rule'
CALL_FUNCTION
LOAD_BUILD_CLASS
LOAD_CONST <code object __CMDGroup at 0x7faad42229c0, file "f.py", line 4>
LOAD_CONST '__CMDGroup'
MAKE_FUNCTION
LOAD_CONST '__CMDGroup'
LOAD_NAME AA... | from azure.cli.core.aaz import *
@register_command_group(
"network nsg rule",
)
class __CMDGroup(AAZCommandGroup):
"""Manage network security group rules."""
pass
__all__ = ["__CMDGroup"]
| data/azure-cli-2.57.0/azure/cli/command_modules/network/aaz/latest/network/nsg/rule/__cmd_group.py | 182 | 73 | 377,797 |
LOAD_CONST 0
LOAD_CONST ('Enum',)
IMPORT_NAME enum
IMPORT_FROM Enum
STORE_NAME Enum
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object VppTokenState at 0x7fab70027660, file "f.py", line 4>
LOAD_CONST 'VppTokenState'
MAKE_FUNCTION
LOAD_CONST 'VppTokenState'
LOAD_NAME str
LOAD_NAME Enum
CALL_FUNCTION
STORE_NAME VppTokenSt... | from enum import Enum
class VppTokenState(str, Enum):
Unknown = ("unknown",)
Valid = ("valid",)
Expired = ("expired",)
Invalid = ("invalid",)
AssignedToExternalMDM = ("assignedToExternalMDM",)
| data/msgraph-sdk-1.1.0/msgraph/generated/models/vpp_token_state.py | 191 | 73 | 260,006 |
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_UAdd at 0x7f8ab706f930, file "f.py", line 4>
LOAD_CONST 'test_UAdd'
MAKE_FUNCTION
STORE_NAME test_UAdd
LOAD_CONST <code object test_USub at 0x7f8e44ccfc00, ... | from tests.helper import restricted_eval
def test_UAdd():
assert restricted_eval("+a", {"a": 42}) == 42
def test_USub():
assert restricted_eval("-a", {"a": 2411}) == -2411
| data/RestrictedPython-7.0/tests/transformer/operators/test_unary_operators.py | 236 | 73 | 115,893 |
LOAD_CONST 1
LOAD_CONST ('*',)
IMPORT_NAME __cmd_group
IMPORT_STAR
LOAD_CONST 1
LOAD_CONST ('*',)
IMPORT_NAME _create
IMPORT_STAR
LOAD_CONST 1
LOAD_CONST ('*',)
IMPORT_NAME _delete
IMPORT_STAR
LOAD_CONST 1
LOAD_CONST ('*',)
IMPORT_NAME _list
IMPORT_STAR
LOAD_CONST 1
LOAD_CONST ('*',)
IMPORT_NAME _query
IMPORT_STAR
... | from .__cmd_group import *
from ._create import *
from ._delete import *
from ._list import *
from ._query import *
from ._show import *
from ._start import *
from ._stop import *
from ._update import *
from ._wait import *
| data/azure-cli-2.57.0/azure/cli/command_modules/network/aaz/latest/network/watcher/connection_monitor/__init__.py | 176 | 73 | 377,734 |
LOAD_CONST 'POST'
LOAD_NAME uri
LOAD_CONST '/chunked_w_extensions'
CALL_FUNCTION
LOAD_CONST (1, 1)
LOAD_CONST ('TRANSFER-ENCODING', 'chunked')
BUILD_LIST
LOAD_CONST b'hello world'
LOAD_CONST ('method', 'uri', 'version', 'headers', 'body')
BUILD_CONST_KEY_MAP
STORE_NAME request
LOAD_CONST None
RETURN_VALUE | request = {
"method": "POST",
"uri": uri("/chunked_w_extensions"),
"version": (1, 1),
"headers": [("TRANSFER-ENCODING", "chunked")],
"body": b"hello world",
}
| data/gunicorn-21.2.0/tests/requests/valid/013.py | 86 | 73 | 343,432 |
LOAD_CONST 0
LOAD_CONST ('TestClient',)
IMPORT_NAME fastapi.testclient
IMPORT_FROM TestClient
STORE_NAME TestClient
POP_TOP
LOAD_CONST 1
LOAD_CONST ('app',)
IMPORT_NAME main
IMPORT_FROM app
STORE_NAME app
POP_TOP
LOAD_NAME TestClient
LOAD_NAME app
CALL_FUNCTION
STORE_NAME client
LOAD_CONST <code object test_read_mai... | from fastapi.testclient import TestClient
from .main import app
client = TestClient(app)
def test_read_main():
response = client.get("/")
assert response.status_code == 200
assert response.json() == {"msg": "Hello World"}
| data/fastapi-0.109.2/docs_src/app_testing/test_main.py | 204 | 73 | 142,534 |
LOAD_CONST 0
LOAD_CONST ('*',)
IMPORT_NAME azure.cli.core.aaz
IMPORT_STAR
LOAD_NAME register_command_group
LOAD_CONST 'network lb rule'
CALL_FUNCTION
LOAD_BUILD_CLASS
LOAD_CONST <code object __CMDGroup at 0x7fab41637d20, file "f.py", line 4>
LOAD_CONST '__CMDGroup'
MAKE_FUNCTION
LOAD_CONST '__CMDGroup'
LOAD_NAME AAZ... | from azure.cli.core.aaz import *
@register_command_group(
"network lb rule",
)
class __CMDGroup(AAZCommandGroup):
"""Manage load balancing rules."""
pass
__all__ = ["__CMDGroup"]
| data/azure-cli-2.57.0/azure/cli/command_modules/network/aaz/profile_2017_03_09_profile/network/lb/rule/__cmd_group.py | 183 | 73 | 377,587 |
LOAD_CONST 0
LOAD_CONST ('setup',)
IMPORT_NAME setuptools
IMPORT_FROM setup
STORE_NAME setup
POP_TOP
LOAD_NAME setup
LOAD_CONST 'eggsample-spam'
LOAD_CONST 'eggsample'
LOAD_CONST 'eggsample'
LOAD_CONST 'spam = eggsample_spam'
BUILD_LIST
BUILD_MAP
LOAD_CONST 'eggsample_spam'
BUILD_LIST
LOAD_CONST ('name', 'install_... | from setuptools import setup
setup(
name="eggsample-spam",
install_requires="eggsample",
entry_points={"eggsample": ["spam = eggsample_spam"]},
py_modules=["eggsample_spam"],
)
| data/pluggy-1.4.0/docs/examples/eggsample-spam/setup.py | 112 | 73 | 234,997 |
LOAD_CONST 0
LOAD_CONST ('JsonResponse',)
IMPORT_NAME django.http
IMPORT_FROM JsonResponse
STORE_NAME JsonResponse
POP_TOP
LOAD_CONST <code object increment at 0x7fab703f0db0, file "f.py", line 4>
LOAD_CONST 'increment'
MAKE_FUNCTION
STORE_NAME increment
LOAD_CONST None
RETURN_VALUE
SETUP_EXCEPT to 28
LOAD_GLOBAL in... | from django.http import JsonResponse
def increment(request):
try:
value = int(request.session.get("value", 0)) + 1
except ValueError:
value = 1
request.session["value"] = value
return JsonResponse({"value": value})
| data/django_debug_toolbar-4.3.0/example/views.py | 198 | 73 | 173,540 |
LOAD_CONST 0
LOAD_CONST ('annotations',)
IMPORT_NAME __future__
IMPORT_FROM annotations
STORE_NAME annotations
POP_TOP
LOAD_CONST 'str'
LOAD_CONST 'str'
LOAD_CONST 'str'
LOAD_CONST ('prefix', 'permission', 'return')
BUILD_CONST_KEY_MAP
LOAD_CONST <code object action_event_from_permission at 0x7fab823c2ae0, file "f.py"... | from __future__ import annotations
def action_event_from_permission(prefix: str, permission: str) -> str:
if permission.startswith("can_"):
permission = permission[4:]
if prefix:
return f"{prefix}.{permission}"
return permission
| data/apache_airflow-2.8.1/airflow/utils/log/action_logger.py | 187 | 73 | 254,059 |
LOAD_CONST 0
LOAD_CONST ('*',)
IMPORT_NAME azure.cli.core.aaz
IMPORT_STAR
LOAD_NAME register_command_group
LOAD_CONST 'network nsg rule'
CALL_FUNCTION
LOAD_BUILD_CLASS
LOAD_CONST <code object __CMDGroup at 0x7fab41e98d20, file "f.py", line 4>
LOAD_CONST '__CMDGroup'
MAKE_FUNCTION
LOAD_CONST '__CMDGroup'
LOAD_NAME AA... | from azure.cli.core.aaz import *
@register_command_group(
"network nsg rule",
)
class __CMDGroup(AAZCommandGroup):
"""Manage network security group rules."""
pass
__all__ = ["__CMDGroup"]
| data/azure-cli-2.57.0/azure/cli/command_modules/network/aaz/profile_2017_03_09_profile/network/nsg/rule/__cmd_group.py | 183 | 73 | 377,523 |
LOAD_CONST 0
LOAD_CONST ('fip64',)
IMPORT_NAME neutron_lib.api.definitions
IMPORT_FROM fip64
STORE_NAME fip64
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 Fip64DefinitionTestCase at 0x7fab... | from neutron_lib.api.definitions import fip64
from neutron_lib.tests.unit.api.definitions import base
class Fip64DefinitionTestCase(base.DefinitionBaseTestCase):
extension_module = fip64
extension_resources = ()
extension_attributes = ()
| data/neutron-lib-3.10.0/neutron_lib/tests/unit/api/definitions/test_fip64.py | 217 | 73 | 384,931 |
LOAD_CONST 0
LOAD_CONST ('api_endpoints', 'api_requests', 'decorators', 'exceptions', 'utils')
IMPORT_NAME tableau_api_lib
IMPORT_FROM api_endpoints
STORE_NAME api_endpoints
IMPORT_FROM api_requests
STORE_NAME api_requests
IMPORT_FROM decorators
STORE_NAME decorators
IMPORT_FROM exceptions
STORE_NAME exceptions
IMPORT_... | from tableau_api_lib import api_endpoints, api_requests, decorators, exceptions, utils
from tableau_api_lib.sample import sample_config
from tableau_api_lib.tableau_server_connection import TableauServerConnection
name = "tableau_api_lib"
| data/tableau_api_lib-0.1.50/src/tableau_api_lib/__init__.py | 182 | 73 | 169,660 |
LOAD_CONST '\nURLs for edx_event_bus_redis.\n'
STORE_NAME __doc__
LOAD_CONST 0
LOAD_CONST ('re_path',)
IMPORT_NAME django.urls
IMPORT_FROM re_path
STORE_NAME re_path
POP_TOP
LOAD_CONST 0
LOAD_CONST ('TemplateView',)
IMPORT_NAME django.views.generic
IMPORT_FROM TemplateView
STORE_NAME TemplateView
POP_TOP
BUILD_LIST
... | """
URLs for edx_event_bus_redis.
"""
from django.urls import re_path # pylint: disable=unused-import
from django.views.generic import TemplateView # pylint: disable=unused-import
urlpatterns = []
| data/edx_event_bus_redis-0.3.3/edx_event_bus_redis/urls.py | 99 | 73 | 127,459 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME argparse
STORE_NAME argparse
LOAD_NAME __name__
LOAD_CONST '__main__'
COMPARE_OP ==
POP_JUMP_IF_FALSE
LOAD_NAME argparse
LOAD_METHOD ArgumentParser
CALL_METHOD
STORE_NAME parser
LOAD_NAME parser
LOAD_ATTR add_argument
LOAD_CONST '--whom'
LOAD_NAME str
LOAD_CONST 'World'
LOAD_... | import argparse
if __name__ == "__main__":
parser = argparse.ArgumentParser()
parser.add_argument("--whom", type=str, default="World")
args = parser.parse_args()
print(f"Hello {args.whom}!")
| data/azure-ai-ml-1.13.0/tests/test_configs/pipeline_jobs/serverless_compute/job_tier/sweep_in_pipeline/src/greet.py | 129 | 73 | 424,252 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME importlib
STORE_NAME importlib
LOAD_CONST <code object import_aaz_by_profile at 0x7faa75aacb70, file "f.py", line 4>
LOAD_CONST 'import_aaz_by_profile'
MAKE_FUNCTION
STORE_NAME import_aaz_by_profile
LOAD_CONST None
RETURN_VALUE
LOAD_GLOBAL importlib
LOAD_METHOD import_module
... | import importlib
def import_aaz_by_profile(module_name):
return importlib.import_module(
f"azure.cli.command_modules.network.aaz.profile_2017_03_09_profile.{module_name}"
)
| data/azure-cli-2.57.0/azure/cli/command_modules/network/azure_stack/profile_2017_03_09_profile/operations/_util.py | 139 | 73 | 377,440 |
LOAD_CONST 1
LOAD_CONST ('_OpenStack',)
IMPORT_NAME
IMPORT_FROM _OpenStack
STORE_NAME _OpenStack
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object _User at 0x7fab703bbae0, file "f.py", line 4>
LOAD_CONST '_User'
MAKE_FUNCTION
LOAD_CONST '_User'
LOAD_NAME _OpenStack
CALL_FUNCTION
STORE_NAME _User
LOAD_BUILD_CLASS
LOAD_... | from . import _OpenStack
class _User(_OpenStack):
_type = "user"
_icon_dir = "resources/openstack/user"
class Openstackclient(_User):
_icon = "openstackclient.png"
OpenStackClient = Openstackclient
| data/diagrams-0.23.4/diagrams/openstack/user.py | 260 | 73 | 205,961 |
LOAD_CONST 0
LOAD_CONST ('annotations',)
IMPORT_NAME __future__
IMPORT_FROM annotations
STORE_NAME annotations
POP_TOP
LOAD_CONST 1
LOAD_CONST ('BoundLoadBalancerType', 'LoadBalancerTypesClient', 'LoadBalancerTypesPageResult')
IMPORT_NAME client
IMPORT_FROM BoundLoadBalancerType
STORE_NAME BoundLoadBalancerType
IMPORT... | from __future__ import annotations
from .client import ( # noqa: F401
BoundLoadBalancerType,
LoadBalancerTypesClient,
LoadBalancerTypesPageResult,
)
from .domain import LoadBalancerType # noqa: F401
| data/hcloud-1.33.2/hcloud/load_balancer_types/__init__.py | 142 | 73 | 436,459 |
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 5
LOAD_CONST ... | from __future__ import absolute_import, division, print_function
__metaclass__ = type
from .....plugins.modules.hello import say_hello
def test_say_hello():
assert say_hello("Ansibull") == dict(message="Hello Ansibull")
| data/ansible-core-2.16.3/test/integration/targets/ansible-test-units/ansible_collections/ns/col/tests/unit/plugins/modules/test_hello.py | 209 | 73 | 437,422 |
LOAD_CONST 0
LOAD_CONST ('BaseAgent',)
IMPORT_NAME genrl.agents.deep.base.base
IMPORT_FROM BaseAgent
STORE_NAME BaseAgent
POP_TOP
LOAD_CONST 0
LOAD_CONST ('OffPolicyAgent', 'OffPolicyAgentAC')
IMPORT_NAME genrl.agents.deep.base.offpolicy
IMPORT_FROM OffPolicyAgent
STORE_NAME OffPolicyAgent
IMPORT_FROM OffPolicyAgentAC... | from genrl.agents.deep.base.base import BaseAgent # noqa
from genrl.agents.deep.base.offpolicy import OffPolicyAgent, OffPolicyAgentAC # noqa
from genrl.agents.deep.base.onpolicy import OnPolicyAgent # noqa
| data/utilmy-0.1.17078128/utilmy/recsys/bandits/genrl/genrl/agents/deep/base/__init__.py | 134 | 73 | 350,417 |
LOAD_CONST 0
LOAD_CONST ('viewset',)
IMPORT_NAME wagtail.documents.views.chooser
IMPORT_FROM viewset
STORE_NAME chooser_viewset
POP_TOP
LOAD_NAME chooser_viewset
LOAD_ATTR get_block_class
LOAD_CONST 'DocumentChooserBlock'
LOAD_CONST 'wagtail.documents.blocks'
LOAD_CONST ('name', 'module_path')
CALL_FUNCTION
STORE_NAM... | from wagtail.documents.views.chooser import viewset as chooser_viewset
DocumentChooserBlock = chooser_viewset.get_block_class(
name="DocumentChooserBlock", module_path="wagtail.documents.blocks"
)
| data/wagtail-6.0.1/wagtail/documents/blocks.py | 101 | 73 | 200,458 |
LOAD_CONST 0
LOAD_CONST ('BaseFactory',)
IMPORT_NAME polyfactory.factories.base
IMPORT_FROM BaseFactory
STORE_NAME BaseFactory
POP_TOP
LOAD_CONST 0
LOAD_CONST ('DataclassFactory',)
IMPORT_NAME polyfactory.factories.dataclass_factory
IMPORT_FROM DataclassFactory
STORE_NAME DataclassFactory
POP_TOP
LOAD_CONST 0
LOAD_CO... | from polyfactory.factories.base import BaseFactory
from polyfactory.factories.dataclass_factory import DataclassFactory
from polyfactory.factories.typed_dict_factory import TypedDictFactory
__all__ = ("BaseFactory", "TypedDictFactory", "DataclassFactory")
| data/polyfactory-2.14.1/polyfactory/factories/__init__.py | 145 | 73 | 368,122 |
LOAD_CONST 1
LOAD_CONST ('build_pixel_sampler',)
IMPORT_NAME builder
IMPORT_FROM build_pixel_sampler
STORE_NAME build_pixel_sampler
POP_TOP
LOAD_CONST 1
LOAD_CONST ('ResizeToMultiple',)
IMPORT_NAME data_process_func
IMPORT_FROM ResizeToMultiple
STORE_NAME ResizeToMultiple
POP_TOP
LOAD_CONST 1
LOAD_CONST ('add_prefix'... | from .builder import build_pixel_sampler
from .data_process_func import ResizeToMultiple
from .seg_func import add_prefix, seg_resize
__all__ = ["seg_resize", "add_prefix", "build_pixel_sampler", "ResizeToMultiple"]
| data/modelscope-1.12.0/modelscope/models/cv/image_semantic_segmentation/vit_adapter/utils/__init__.py | 168 | 73 | 315,409 |
LOAD_CONST 0
LOAD_CONST ('*',)
IMPORT_NAME azure.cli.core.aaz
IMPORT_STAR
LOAD_NAME register_command_group
LOAD_CONST 'network nsg rule'
CALL_FUNCTION
LOAD_BUILD_CLASS
LOAD_CONST <code object __CMDGroup at 0x7faa7486adb0, file "f.py", line 4>
LOAD_CONST '__CMDGroup'
MAKE_FUNCTION
LOAD_CONST '__CMDGroup'
LOAD_NAME AA... | from azure.cli.core.aaz import *
@register_command_group(
"network nsg rule",
)
class __CMDGroup(AAZCommandGroup):
"""Manage network security group rules."""
pass
__all__ = ["__CMDGroup"]
| data/azure-cli-2.57.0/azure/cli/command_modules/network/aaz/profile_2020_09_01_hybrid/network/nsg/rule/__cmd_group.py | 182 | 73 | 378,615 |
LOAD_BUILD_CLASS
LOAD_CONST <code object QueryError at 0x7f8b200cda50, file "f.py", line 1>
LOAD_CONST 'QueryError'
MAKE_FUNCTION
LOAD_CONST 'QueryError'
LOAD_NAME ValueError
CALL_FUNCTION
STORE_NAME QueryError
LOAD_BUILD_CLASS
LOAD_CONST <code object NoQueryError at 0x7f8b200cdc00, file "f.py", line 5>
LOAD_CONST 'No... | class QueryError(ValueError):
pass
class NoQueryError(QueryError):
pass
class NoAggregateError(QueryError):
pass
class NoSuggesterError(QueryError):
pass
class MissingArgError(ValueError):
pass
| data/ElasticQuery-3.2/elasticquery/exceptions.py | 493 | 73 | 405,652 |
LOAD_CONST 0
LOAD_CONST ('WriterBase',)
IMPORT_NAME nbconvert.writers.base
IMPORT_FROM WriterBase
STORE_NAME WriterBase
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object HelloWriter at 0x7f8e2f9ca810, file "f.py", line 4>
LOAD_CONST 'HelloWriter'
MAKE_FUNCTION
LOAD_CONST 'HelloWriter'
LOAD_NAME WriterBase
CALL_FUNCTION... | from nbconvert.writers.base import WriterBase
class HelloWriter(WriterBase):
def write(self, output, resources, notebook_name=None, **kw):
with open("hello.txt", "w") as outfile:
outfile.write("hello world")
| data/nbconvert-7.16.1/tests/files/hello.py | 241 | 73 | 9,830 |
LOAD_CONST 0
LOAD_CONST ('Entity',)
IMPORT_NAME office365.sharepoint.entity
IMPORT_FROM Entity
STORE_NAME Entity
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object TopFilesSharingInsights at 0x7fab82236780, file "f.py", line 4>
LOAD_CONST 'TopFilesSharingInsights'
MAKE_FUNCTION
LOAD_CONST 'TopFilesSharingInsights'
LOAD_... | from office365.sharepoint.entity import Entity
class TopFilesSharingInsights(Entity):
@property
def entity_type_name(self):
return (
"Microsoft.Online.SharePoint.TenantAdministration.TopFilesSharingInsights"
)
| data/Office365-REST-Python-Client-2.5.5/office365/sharepoint/tenant/administration/insights/top_files_sharing.py | 237 | 73 | 189,359 |
LOAD_CONST '\nCompatibility library for older versions of python\n'
STORE_NAME __doc__
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME sys
STORE_NAME sys
LOAD_NAME sys
LOAD_ATTR version_info
LOAD_CONST None
LOAD_CONST 2
BUILD_SLICE
BINARY_SUBSCR
LOAD_CONST (2, 6)
COMPARE_OP >
POP_JUMP_IF_FALSE
LOAD_CONST 0
LOAD_CONST ('Nul... | """
Compatibility library for older versions of python
"""
import sys
if sys.version_info[:2] > (2, 6):
from logging import NullHandler
else:
from logging import Handler
class NullHandler(Handler):
def emit(self, record):
pass
| data/pywinrm-0.4.3/winrm/vendor/requests_kerberos/compat.py | 267 | 73 | 269,487 |
LOAD_CONST 0
LOAD_CONST ('u', 'iteritems', 'iterkeys')
IMPORT_NAME six
IMPORT_FROM u
STORE_NAME u
IMPORT_FROM iteritems
STORE_NAME iteritems
IMPORT_FROM iterkeys
STORE_NAME iterkeys
POP_TOP
SETUP_EXCEPT to 38
LOAD_CONST 0
LOAD_CONST ('Mapping',)
IMPORT_NAME collections.abc
IMPORT_FROM Mapping
STORE_NAME Mapping
POP_T... | from six import u, iteritems, iterkeys # pylint: disable=unused-import
try:
from collections.abc import Mapping # pylint: disable=unused-import
except ImportError:
from collections import Mapping # pylint: disable=unused-import
| data/fiona-1.9.5/fiona/_vendor/munch/python3_compat.py | 143 | 73 | 13,531 |
LOAD_NAME test
LOAD_CONST 1
LOAD_CONST 2
LOAD_CONST 3
LOAD_CONST 4
BUILD_LIST
CALL_FUNCTION
LOAD_CONST <code object f at 0x7fab81f3f780, file "f.py", line 1>
LOAD_CONST 'f'
MAKE_FUNCTION
CALL_FUNCTION
STORE_NAME f
LOAD_NAME test
LOAD_CONST 1
LOAD_CONST 2
LOAD_CONST 3
LOAD_CONST 4
BUILD_LIST
CALL_FUNCTION
LOAD_... | @test(
[
1,
2,
3,
4,
]
)
def f():
pass
@test(
[
1,
2,
3,
4,
]
)
def f():
pass
| data/ruff-0.2.2/crates/ruff_python_formatter/resources/test/fixtures/black/cases/fmtonoff4.py | 161 | 73 | 342,102 |
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 warnings
STORE_NAME warnings
LOAD_CONST 0
LOAD_CONST ('APIRouter',)
IMPORT_NAME fastapi
IMPORT_FROM APIRouter
STORE_NAME APIRouter
POP_TOP
LOAD_NAME warnings... | from __future__ import annotations
import warnings
from fastapi import APIRouter
warnings.warn(
"InferringRouter is deprecated, as its functionality is now provided in fastapi.APIRouter",
DeprecationWarning,
)
InferringRouter = APIRouter
| data/fastapi_restful-0.5.0/fastapi_restful/inferring_router.py | 130 | 73 | 24,331 |
LOAD_CONST 'Digital signature protocols\n\nA collection of standardized protocols to carry out digital signatures.\n\n:undocumented: __revision__, __package__\n'
STORE_NAME __doc__
LOAD_CONST 'PKCS1_v1_5'
LOAD_CONST 'PKCS1_PSS'
BUILD_LIST
STORE_NAME __all__
LOAD_CONST '$Id$'
STORE_NAME __revision__
LOAD_CONST None
RE... | """Digital signature protocols
A collection of standardized protocols to carry out digital signatures.
:undocumented: __revision__, __package__
"""
__all__ = ["PKCS1_v1_5", "PKCS1_PSS"]
__revision__ = "$Id$"
| data/pycrypto-2.6.1/lib/Crypto/Signature/__init__.py | 96 | 73 | 370,516 |
LOAD_CONST 0
LOAD_CONST ('Extension',)
IMPORT_NAME setuptools
IMPORT_FROM Extension
STORE_NAME Extension
POP_TOP
LOAD_NAME Extension
LOAD_CONST 'my_package.hello'
LOAD_CONST 'my_package/hellomodule.c'
BUILD_LIST
CALL_FUNCTION
BUILD_LIST
STORE_NAME ext_modules
LOAD_CONST <code object pdm_build_update_setup_kwargs at 0... | from setuptools import Extension
ext_modules = [Extension("my_package.hello", ["my_package/hellomodule.c"])]
def pdm_build_update_setup_kwargs(context, setup_kwargs):
setup_kwargs.update(ext_modules=ext_modules)
| data/pdm_backend-2.1.8/tests/fixtures/projects/demo-cextension/pdm_build.py | 166 | 73 | 132,194 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME random
STORE_NAME random
LOAD_CONST (6,)
LOAD_NAME str
LOAD_NAME int
LOAD_NAME str
LOAD_CONST ('src_path', 'char_count', 'return')
BUILD_CONST_KEY_MAP
LOAD_CONST <code object get_random_path at 0x7faac02bec00, file "f.py", line 4>
LOAD_CONST 'get_random_path'
MAKE_FUNCTION
STOR... | import random
def get_random_path(src_path: str, char_count: int = 6) -> str:
start = 10**char_count
return f"{src_path}_{random.Random().randint(int(start),int(start*10)-1)}"
| data/sgtpyutils-1.19.18/sgtpyutils/paths.py | 179 | 73 | 87,210 |
LOAD_CONST 'lithium reducer'
STORE_NAME __doc__
LOAD_CONST 1
LOAD_CONST ('Lithium',)
IMPORT_NAME reducer
IMPORT_FROM Lithium
STORE_NAME Lithium
POP_TOP
LOAD_CONST 1
LOAD_CONST ('LithiumError',)
IMPORT_NAME util
IMPORT_FROM LithiumError
STORE_NAME LithiumError
POP_TOP
LOAD_CONST 'Jesse Ruderman, Gary Kwong and Jesse ... | """lithium reducer"""
from .reducer import Lithium
from .util import LithiumError
__author__ = "Jesse Ruderman, Gary Kwong and Jesse Schwartzentruber"
__maintainer__ = "Jesse Schwartzentruber"
| data/lithium-reducer-1.1.1/src/lithium/__init__.py | 129 | 73 | 93,365 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME os.path
IMPORT_FROM path
STORE_NAME osp
POP_TOP
LOAD_CONST 0
LOAD_CONST ('platform',)
IMPORT_NAME sys
IMPORT_FROM platform
STORE_NAME platform
POP_TOP
LOAD_CONST 0
LOAD_CONST ('sep', 'name')
IMPORT_NAME os
IMPORT_FROM sep
STORE_NAME sep
IMPORT_FROM name
STORE_NAME name
POP_TOP... | import os.path as osp
from sys import platform
from os import sep, name
import collections.abc
assert osp.basename("a") == "a"
assert isinstance(platform, str)
assert sep
assert name
assert collections.abc
import os.path as path
assert path
| data/xdis-6.0.5/test/simple_source/bug35/04_importlist.py | 226 | 73 | 85,445 |
LOAD_CONST 0
LOAD_CONST ('api',)
IMPORT_NAME docs.src.index001
IMPORT_FROM api
STORE_NAME api
POP_TOP
LOAD_CONST 0
LOAD_CONST ('TestClient',)
IMPORT_NAME ninja.testing
IMPORT_FROM TestClient
STORE_NAME TestClient
POP_TOP
LOAD_NAME TestClient
LOAD_NAME api
CALL_FUNCTION
STORE_NAME client
LOAD_CONST <code object test_... | from docs.src.index001 import api
from ninja.testing import TestClient
client = TestClient(api)
def test_api():
response = client.get("/add?a=1&b=2")
assert response.json() == {"result": 3}
| data/django_ninja-1.1.0/tests/test_docs/test_index.py | 186 | 73 | 88,603 |
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 ('Athena',)
IMPORT_NAME prowler.providers.aws.services.athena.athena_service
IMPORT_FROM Athena
STORE_NAME Athena
POP_... | from prowler.providers.aws.lib.audit_info.audit_info import current_audit_info
from prowler.providers.aws.services.athena.athena_service import Athena
athena_client = Athena(current_audit_info)
| data/prowler-3.14.0/prowler/providers/aws/services/athena/athena_client.py | 127 | 73 | 183,145 |
LOAD_CONST 'Serialization and deserialization.'
STORE_NAME __doc__
LOAD_CONST 0
LOAD_CONST ('dumpd', 'dumps')
IMPORT_NAME langchain_core.load.dump
IMPORT_FROM dumpd
STORE_NAME dumpd
IMPORT_FROM dumps
STORE_NAME dumps
POP_TOP
LOAD_CONST 0
LOAD_CONST ('load', 'loads')
IMPORT_NAME langchain_core.load.load
IMPORT_FROM lo... | """Serialization and deserialization."""
from langchain_core.load.dump import dumpd, dumps
from langchain_core.load.load import load, loads
__all__ = [
"dumpd",
"dumps",
"load",
"loads",
]
| data/langchain-0.1.8/langchain/load/__init__.py | 135 | 73 | 368,650 |
LOAD_CONST 'python-ptrace'
STORE_NAME PACKAGE
LOAD_CONST (0, 9, 8)
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 'http://python-ptrace.readthedocs.io/'
STORE_NAME WEBSITE
LOAD_CONST 'GNU GPL v2'
STORE_NAME... | PACKAGE = "python-ptrace"
VERSION = (0, 9, 8)
__version__ = ".".join(map(str, VERSION))
WEBSITE = "http://python-ptrace.readthedocs.io/"
LICENSE = "GNU GPL v2"
| data/python-ptrace-0.9.8/ptrace/version.py | 102 | 73 | 126,111 |
LOAD_CONST 0
LOAD_CONST ('absolute_import', 'division', 'print_function')
IMPORT_NAME __future__
IMPORT_FROM absolute_import
STORE_NAME absolute_import
IMPORT_FROM division
STORE_NAME division
IMPORT_FROM print_function
STORE_NAME print_function
POP_TOP
LOAD_NAME type
STORE_NAME __metaclass__
LOAD_CONST 0
LOAD_CONST ... | from __future__ import absolute_import, division, print_function
__metaclass__ = type
from ansible_collections.community.general.plugins.modules import xfconf_info
from .helper import Helper
Helper.from_module(xfconf_info, __name__)
| data/ansible-9.2.0/ansible_collections/community/general/tests/unit/plugins/modules/test_xfconf_info.py | 165 | 73 | 275,240 |
LOAD_CONST 1
LOAD_CONST ('date_comparison', 'email_comparison', 'forename_surname_comparison', 'name_comparison', 'postcode_comparison')
IMPORT_NAME spark_helpers.spark_comparison_imports
IMPORT_FROM date_comparison
STORE_NAME date_comparison
IMPORT_FROM email_comparison
STORE_NAME email_comparison
IMPORT_FROM forename... | from .spark_helpers.spark_comparison_imports import ( # noqa: F401
date_comparison,
email_comparison,
forename_surname_comparison,
name_comparison,
postcode_comparison,
)
| data/splink-3.9.12/splink/spark/comparison_template_library.py | 136 | 73 | 15,926 |
LOAD_CONST 'Simple module config.'
STORE_NAME __doc__
LOAD_CONST 0
LOAD_CONST ('ConfigManager',)
IMPORT_NAME everett.manager
IMPORT_FROM ConfigManager
STORE_NAME ConfigManager
POP_TOP
LOAD_CONST 'Help attribute value.'
STORE_NAME HELP
LOAD_NAME ConfigManager
LOAD_METHOD from_dict
LOAD_CONST 'host'
LOAD_CONST 'localh... | """Simple module config."""
from everett.manager import ConfigManager
HELP = "Help attribute value."
_config = ConfigManager.from_dict({"host": "localhost"})
HOST = _config(key="host", default="localhost", doc="The host.")
| data/everett-3.3.0/tests/simple_module_config.py | 125 | 73 | 233,771 |
LOAD_CONST 0
LOAD_CONST ('EIP170_CODE_SIZE_LIMIT',)
IMPORT_NAME eth.vm.forks.spurious_dragon.constants
IMPORT_FROM EIP170_CODE_SIZE_LIMIT
STORE_NAME EIP170_CODE_SIZE_LIMIT
POP_TOP
LOAD_CONST 2
STORE_NAME INITCODE_WORD_COST
LOAD_NAME EIP170_CODE_SIZE_LIMIT
LOAD_CONST 2
BINARY_MULTIPLY
STORE_NAME MAX_INITCODE_SIZE
LOAD... | from eth.vm.forks.spurious_dragon.constants import (
EIP170_CODE_SIZE_LIMIT,
)
INITCODE_WORD_COST = 2
MAX_INITCODE_SIZE = EIP170_CODE_SIZE_LIMIT * 2
| data/py-evm-0.9.0b1/eth/vm/forks/shanghai/constants.py | 118 | 73 | 106,994 |
LOAD_CONST 0
LOAD_CONST ('transformer',)
IMPORT_NAME tests.generated_test_request_transformers
IMPORT_FROM transformer
STORE_NAME transformer
POP_TOP
LOAD_NAME transformer
LOAD_CONST 'core'
LOAD_CONST 'LaunchInstance'
CALL_FUNCTION
LOAD_CONST <code object _transform_launch_instance_request at 0x7fab80248420, file "f.p... | from tests.generated_test_request_transformers import transformer
@transformer("core", "LaunchInstance")
def _transform_launch_instance_request(request):
if "sourceDetails" in request and "imageId" in request:
request.pop("imageId")
return request
| data/oci-cli-3.37.10/services/core/tests/generated_test_request_transformers_compute.py | 170 | 73 | 218,819 |
LOAD_CONST 0
LOAD_CONST ('*',)
IMPORT_NAME azure.cli.core.aaz
IMPORT_STAR
LOAD_NAME register_command_group
LOAD_CONST 'network private-endpoint'
CALL_FUNCTION
LOAD_BUILD_CLASS
LOAD_CONST <code object __CMDGroup at 0x7fab42062f60, file "f.py", line 4>
LOAD_CONST '__CMDGroup'
MAKE_FUNCTION
LOAD_CONST '__CMDGroup'
LOAD... | from azure.cli.core.aaz import *
@register_command_group(
"network private-endpoint",
)
class __CMDGroup(AAZCommandGroup):
"""Manage private endpoints."""
pass
__all__ = ["__CMDGroup"]
| data/azure-cli-2.57.0/azure/cli/command_modules/network/aaz/latest/network/private_endpoint/__cmd_group.py | 183 | 73 | 378,162 |
LOAD_CONST 0
LOAD_CONST ('Optional',)
IMPORT_NAME typing
IMPORT_FROM Optional
STORE_NAME Optional
POP_TOP
LOAD_CONST 0
LOAD_CONST ('timer',)
IMPORT_NAME rx
IMPORT_FROM timer
STORE_NAME timer
POP_TOP
LOAD_CONST 0
LOAD_CONST ('Observable', 'typing')
IMPORT_NAME rx.core
IMPORT_FROM Observable
STORE_NAME Observable
IMPOR... | from typing import Optional
from rx import timer
from rx.core import Observable, typing
def _interval(
period: typing.RelativeTime, scheduler: Optional[typing.Scheduler] = None
) -> Observable:
return timer(period, period, scheduler)
| data/Rx-3.2.0/rx/core/observable/interval.py | 193 | 73 | 187,105 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.