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 ('annotations',)
IMPORT_NAME __future__
IMPORT_FROM annotations
STORE_NAME annotations
POP_TOP
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME nox
STORE_NAME nox
LOAD_NAME nox
LOAD_ATTR session
LOAD_CONST '3.6'
BUILD_LIST
LOAD_CONST ('python',)
CALL_FUNCTION
LOAD_NAME nox
LOAD_METHOD parametrize
LOA... | from __future__ import annotations
import nox
@nox.session(python=["3.6"])
@nox.parametrize("cheese", ["cheddar", "jack", "brie"])
def snack(unused_session, cheese):
print(f"Noms, {cheese} so good!")
| data/nox-2023.4.22/tests/resources/noxfile_pythons.py | 190 | 85 | 332,636 |
LOAD_CONST 0
LOAD_CONST ('izip_longest',)
IMPORT_NAME itertools
IMPORT_FROM izip_longest
STORE_NAME izip_longest
POP_TOP
SETUP_LOOP to 84
LOAD_CONST 'abc'
LOAD_NAME range
LOAD_CONST 6
CALL_FUNCTION
BUILD_LIST
BUILD_LIST
GET_ITER
FOR_ITER to 82
STORE_NAME args
LOAD_CONST <code object <listcomp> at 0x7faa5f271a50, file... | from itertools import izip_longest
for args in [["abc", range(6)]]:
target = [
tuple([arg[i] if i < len(arg) else None for arg in args])
for i in range(max(map(len, args)))
]
assert list(izip_longest(*args)) == target
| data/uncompyle6-3.9.0/test/simple_source/bug27+/03_not_dead_code.py | 332 | 85 | 441,942 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME warnings
STORE_NAME warnings
LOAD_CONST 0
LOAD_CONST ('*',)
IMPORT_NAME qiskit.utils.parallel
IMPORT_STAR
LOAD_NAME warnings
LOAD_METHOD warn
LOAD_CONST "'qiskit.tools.parallel' is deprecated and is now located at 'qiskit.utils.parallel'. This path will no longer work in Qisk... | import warnings
from qiskit.utils.parallel import *
warnings.warn(
"'qiskit.tools.parallel' is deprecated and is now located at 'qiskit.utils.parallel'. This "
"path will no longer work in Qiskit 1.0.0",
DeprecationWarning,
2,
)
| data/qiskit-terra-0.46.0/qiskit/tools/parallel.py | 109 | 85 | 431,370 |
LOAD_BUILD_CLASS
LOAD_CONST <code object WebhookResponse at 0x7faa75969270, file "f.py", line 1>
LOAD_CONST 'WebhookResponse'
MAKE_FUNCTION
LOAD_CONST 'WebhookResponse'
CALL_FUNCTION
STORE_NAME WebhookResponse
LOAD_CONST None
RETURN_VALUE
LOAD_NAME __name__
STORE_NAME __module__
LOAD_CONST 'WebhookResponse'
STORE_NAME... | class WebhookResponse:
def __init__(
self,
*,
url: str,
status_code: int,
body: str,
headers: dict,
):
self.api_url = url
self.status_code = status_code
self.body = body
self.headers = headers
| data/slackclient-2.9.4/slack/webhook/webhook_response.py | 227 | 85 | 440,723 |
LOAD_CONST 0
LOAD_CONST ('TestCase', 'min_sdk_level')
IMPORT_NAME PyObjCTools.TestSupport
IMPORT_FROM TestCase
STORE_NAME TestCase
IMPORT_FROM min_sdk_level
STORE_NAME min_sdk_level
POP_TOP
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME WebKit
STORE_NAME WebKit
LOAD_BUILD_CLASS
LOAD_CONST <code object TestDOMXPathNSResolve... | from PyObjCTools.TestSupport import TestCase, min_sdk_level
import WebKit # noqa: F401
class TestDOMXPathNSResolver(TestCase):
@min_sdk_level("10.10")
def testProtocols(self):
self.assertProtocolExists("DOMXPathNSResolver")
| data/pyobjc-framework-WebKit-10.1/PyObjCTest/test_domxpathnsresolver.py | 284 | 85 | 418,894 |
LOAD_CONST 0
LOAD_CONST ('AppConfig',)
IMPORT_NAME django.apps
IMPORT_FROM AppConfig
STORE_NAME AppConfig
POP_TOP
LOAD_CONST 0
LOAD_CONST ('gettext_lazy',)
IMPORT_NAME django.utils.translation
IMPORT_FROM gettext_lazy
STORE_NAME _
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object WagtailSitemapsAppConfig at 0x7fab000a... | from django.apps import AppConfig
from django.utils.translation import gettext_lazy as _
class WagtailSitemapsAppConfig(AppConfig):
name = "wagtail.contrib.sitemaps"
label = "wagtailsitemaps"
verbose_name = _("Wagtail sitemaps")
| data/wagtail-6.0.1/wagtail/contrib/sitemaps/apps.py | 238 | 85 | 199,966 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME google.protobuf
STORE_NAME google
LOAD_NAME google
LOAD_ATTR protobuf
LOAD_ATTR __version__
LOAD_CONST 0
BINARY_SUBSCR
STORE_NAME protobuf_version
LOAD_NAME protobuf_version
LOAD_CONST '3'
COMPARE_OP ==
POP_JUMP_IF_FALSE
LOAD_CONST 0
LOAD_CONST ('*',)
IMPORT_NAME wandb.proto.... | import google.protobuf
protobuf_version = google.protobuf.__version__[0]
if protobuf_version == "3":
from wandb.proto.v3.wandb_base_pb2 import *
elif protobuf_version == "4":
from wandb.proto.v4.wandb_base_pb2 import *
| data/wandb-0.16.3/wandb/proto/wandb_base_pb2.py | 147 | 85 | 360,629 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME os
STORE_NAME os
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME sys
STORE_NAME sys
LOAD_NAME __name__
LOAD_CONST '__main__'
COMPARE_OP ==
POP_JUMP_IF_FALSE
LOAD_NAME os
LOAD_ATTR environ
LOAD_METHOD setdefault
LOAD_CONST 'DJANGO_SETTINGS_MODULE'
LOAD_CONST '{{ project_name }}.setti... | import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "{{ project_name }}.settings.dev")
from django.core.management import execute_from_command_line
execute_from_command_line(sys.argv)
| data/wagtail-6.0.1/wagtail/project_template/manage.py | 159 | 85 | 200,177 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME sys
STORE_NAME sys
LOAD_CONST 0
LOAD_CONST ('ecoutils',)
IMPORT_NAME boltons
IMPORT_FROM ecoutils
STORE_NAME ecoutils
POP_TOP
LOAD_CONST <code object test_basic at 0x7fab8019b5d0, file "f.py", line 5>
LOAD_CONST 'test_basic'
MAKE_FUNCTION
STORE_NAME test_basic
LOAD_CONST <cod... | import sys
from boltons import ecoutils
def test_basic():
prof = ecoutils.get_profile()
assert prof["python"]["bin"] == sys.executable
def test_scrub():
prof = ecoutils.get_profile(scrub=True)
assert prof["username"] == "-"
| data/boltons-23.1.1/tests/test_ecoutils.py | 262 | 85 | 312,793 |
LOAD_BUILD_CLASS
LOAD_CONST <code object NotDefinedYet at 0x7fa6a68f0ae0, file "f.py", line 1>
LOAD_CONST 'NotDefinedYet'
MAKE_FUNCTION
LOAD_CONST 'NotDefinedYet'
CALL_FUNCTION
STORE_NAME NotDefinedYet
LOAD_CONST None
RETURN_VALUE
LOAD_NAME __name__
STORE_NAME __module__
LOAD_CONST 'NotDefinedYet'
STORE_NAME __qualnam... | class NotDefinedYet:
@property
def ha(self) -> "NotDefinedYet":
"""
This property returns `self`.
It's fun because you can call it like `obj.ha.ha.ha.ha.ha.ha...`.
Returns:
self!
"""
return self
| data/pytkdocs-0.16.1/tests/fixtures/parsing/docstrings.py | 172 | 85 | 46,842 |
LOAD_CONST 0
LOAD_CONST ('FrechetInceptionDistance',)
IMPORT_NAME torcheval.metrics.image.fid
IMPORT_FROM FrechetInceptionDistance
STORE_NAME FrechetInceptionDistance
POP_TOP
LOAD_CONST 0
LOAD_CONST ('PeakSignalNoiseRatio',)
IMPORT_NAME torcheval.metrics.image.psnr
IMPORT_FROM PeakSignalNoiseRatio
STORE_NAME PeakSigna... | from torcheval.metrics.image.fid import FrechetInceptionDistance
from torcheval.metrics.image.psnr import PeakSignalNoiseRatio
__all__ = [
"FrechetInceptionDistance",
"PeakSignalNoiseRatio",
]
__doc_name__ = "Image Metrics"
| data/torcheval-0.0.7/torcheval/metrics/image/__init__.py | 147 | 85 | 247,145 |
LOAD_CONST 0
LOAD_CONST ('AppConfig',)
IMPORT_NAME django.apps
IMPORT_FROM AppConfig
STORE_NAME AppConfig
POP_TOP
LOAD_CONST 0
LOAD_CONST ('plugin_dir',)
IMPORT_NAME health_check.plugins
IMPORT_FROM plugin_dir
STORE_NAME plugin_dir
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object HealthCheckConfig at 0x7fab8214dc90, ... | from django.apps import AppConfig
from health_check.plugins import plugin_dir
class HealthCheckConfig(AppConfig):
name = "health_check.contrib.celery_ping"
def ready(self):
from .backends import CeleryPingHealthCheck
plugin_dir.register(CeleryPingHealthCheck)
| data/django-health-check-3.18.1/health_check/contrib/celery_ping/apps.py | 281 | 85 | 287,464 |
LOAD_CONST 0
LOAD_CONST ('FastAPI',)
IMPORT_NAME fastapi
IMPORT_FROM FastAPI
STORE_NAME FastAPI
POP_TOP
LOAD_NAME FastAPI
CALL_FUNCTION
STORE_NAME app
LOAD_NAME app
LOAD_METHOD get
LOAD_CONST '/items/{item_id}'
CALL_METHOD
LOAD_CONST (None,)
LOAD_NAME str
LOAD_NAME str
LOAD_CONST None
BINARY_OR
LOAD_CONST ('item_id'... | from fastapi import FastAPI
app = FastAPI()
@app.get("/items/{item_id}")
async def read_item(item_id: str, q: str | None = None):
if q:
return {"item_id": item_id, "q": q}
return {"item_id": item_id}
| data/fastapi-0.109.2/docs_src/query_params/tutorial002_py310.py | 183 | 85 | 142,443 |
LOAD_CONST 0
LOAD_CONST ('server_document',)
IMPORT_NAME bokeh.embed
IMPORT_FROM server_document
STORE_NAME server_document
POP_TOP
LOAD_CONST 0
LOAD_CONST ('HttpRequest', 'HttpResponse')
IMPORT_NAME django.http
IMPORT_FROM HttpRequest
STORE_NAME HttpRequest
IMPORT_FROM HttpResponse
STORE_NAME HttpResponse
POP_TOP
LO... | from bokeh.embed import server_document
from django.http import HttpRequest, HttpResponse
from django.shortcuts import render
def sliders(request: HttpRequest) -> HttpResponse:
script = server_document(request.build_absolute_uri())
return render(request, "base.html", dict(script=script))
| data/panel-1.3.8/examples/apps/django/sliders/views.py | 221 | 85 | 443,402 |
LOAD_CONST "Dataset definition for rock_you.\n\nDEPRECATED!\nIf you want to use the RockYou dataset builder class, use:\ntfds.builder_cls('rock_you')\n"
STORE_NAME __doc__
LOAD_CONST 0
LOAD_CONST ('lazy_builder_import',)
IMPORT_NAME tensorflow_datasets.core
IMPORT_FROM lazy_builder_import
STORE_NAME lazy_builder_impor... | """Dataset definition for rock_you.
DEPRECATED!
If you want to use the RockYou dataset builder class, use:
tfds.builder_cls('rock_you')
"""
from tensorflow_datasets.core import lazy_builder_import
RockYou = lazy_builder_import.LazyBuilderImport("rock_you")
| data/tensorflow-datasets-4.9.4/tensorflow_datasets/structured/rock_you.py | 128 | 85 | 255,207 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME GameKit
STORE_NAME GameKit
LOAD_CONST 0
LOAD_CONST ('TestCase',)
IMPORT_NAME PyObjCTools.TestSupport
IMPORT_FROM TestCase
STORE_NAME TestCase
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object TestGKSessionError at 0x7faa528b0780, file "f.py", line 5>
LOAD_CONST 'TestGKSessionEr... | import GameKit
from PyObjCTools.TestSupport import TestCase
class TestGKSessionError(TestCase):
def test_enum_types(self):
self.assertIsEnumType(GameKit.GKSessionError)
def testConstants(self):
self.assertIsInstance(GameKit.GKSessionErrorDomain, str)
| data/pyobjc-framework-GameKit-10.1/PyObjCTest/test_gksessionerror.py | 327 | 85 | 22,888 |
LOAD_CONST 0
LOAD_CONST ('Annotated', 'List', 'Union')
IMPORT_NAME typing
IMPORT_FROM Annotated
STORE_NAME Annotated
IMPORT_FROM List
STORE_NAME List
IMPORT_FROM Union
STORE_NAME Union
POP_TOP
LOAD_CONST 0
LOAD_CONST ('FastAPI', 'Header')
IMPORT_NAME fastapi
IMPORT_FROM FastAPI
STORE_NAME FastAPI
IMPORT_FROM Header
ST... | from typing import Annotated, List, Union
from fastapi import FastAPI, Header
app = FastAPI()
@app.get("/items/")
async def read_items(x_token: Annotated[Union[List[str], None], Header()] = None):
return {"X-Token values": x_token}
| data/fastapi-0.109.2/docs_src/header_params/tutorial003_an_py39.py | 228 | 85 | 142,701 |
LOAD_CONST 0
LOAD_CONST ('auto',)
IMPORT_NAME enum
IMPORT_FROM auto
STORE_NAME auto
POP_TOP
LOAD_CONST 1
LOAD_CONST ('AutoName',)
IMPORT_NAME auto_name
IMPORT_FROM AutoName
STORE_NAME AutoName
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object PollType at 0x7fab4277e030, file "f.py", line 6>
LOAD_CONST 'PollType'
MAKE_... | from enum import auto
from .auto_name import AutoName
class PollType(AutoName):
"""Poll type enumeration used in :obj:`~pyrogram.types.Poll`."""
QUIZ = auto()
"Quiz poll"
REGULAR = auto()
"Regular poll"
| data/Pyrogram-2.0.106/pyrogram/enums/poll_type.py | 201 | 85 | 273,146 |
LOAD_CONST 0
LOAD_CONST ('ToggleButton',)
IMPORT_NAME ydata_profiling.report.presentation.core
IMPORT_FROM ToggleButton
STORE_NAME ToggleButton
POP_TOP
LOAD_CONST 0
LOAD_CONST ('templates',)
IMPORT_NAME ydata_profiling.report.presentation.flavours.html
IMPORT_FROM templates
STORE_NAME templates
POP_TOP
LOAD_BUILD_CLA... | from ydata_profiling.report.presentation.core import ToggleButton
from ydata_profiling.report.presentation.flavours.html import templates
class HTMLToggleButton(ToggleButton):
def render(self) -> str:
return templates.template("toggle_button.html").render(**self.content)
| data/ydata-profiling-4.6.4/src/ydata_profiling/report/presentation/flavours/html/toggle_button.py | 274 | 85 | 190,104 |
LOAD_CONST 0
LOAD_CONST ('namedtuple',)
IMPORT_NAME collections
IMPORT_FROM namedtuple
STORE_NAME namedtuple
POP_TOP
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME cv2
STORE_NAME cv2
LOAD_NAME namedtuple
LOAD_CONST 'NativeMethodPatchedResult'
LOAD_CONST ('py', 'native')
CALL_FUNCTION
STORE_NAME NativeMethodPatchedResult
L... | from collections import namedtuple
import cv2
NativeMethodPatchedResult = namedtuple("NativeMethodPatchedResult", ("py", "native"))
def testOverwriteNativeMethod(arg):
return NativeMethodPatchedResult(
arg + 1, cv2.utils._native.testOverwriteNativeMethod(arg)
)
| data/opencv-python-4.9.0.80/opencv/modules/core/misc/python/package/utils/__init__.py | 183 | 85 | 321,940 |
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 IndexSpreadCompoundingMethod at 0x7fab701ac780, file "f... | from enum import unique
from ...._base_enum import StrEnum
@unique
class IndexSpreadCompoundingMethod(StrEnum):
ISDA_COMPOUNDING = "IsdaCompounding"
ISDA_FLAT_COMPOUNDING = "IsdaFlatCompounding"
NO_COMPOUNDING = "NoCompounding"
| data/refinitiv-data-1.6.0/refinitiv/data/content/ipa/_enums/_index_spread_compounding_method.py | 224 | 85 | 195,551 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME json
STORE_NAME json
LOAD_CONST 0
LOAD_CONST ('View',)
IMPORT_NAME pydeck
IMPORT_FROM View
STORE_NAME View
POP_TOP
LOAD_CONST <code object test_view_constructor at 0x7fab42231270, file "f.py", line 6>
LOAD_CONST 'test_view_constructor'
MAKE_FUNCTION
STORE_NAME test_view_constr... | import json
from pydeck import View
def test_view_constructor():
EXPECTED = {"@@type": "MapView", "controller": False, "repeat": True}
assert (
json.loads(View(type="MapView", controller=False, repeat=True).to_json())
== EXPECTED
)
| data/pydeck-0.8.0/tests/bindings/test_view.py | 194 | 85 | 348,003 |
LOAD_CONST "Dataset definition for accentdb.\n\nDEPRECATED!\nIf you want to use the Accentdb dataset builder class, use:\ntfds.builder_cls('accentdb')\n"
STORE_NAME __doc__
LOAD_CONST 0
LOAD_CONST ('lazy_builder_import',)
IMPORT_NAME tensorflow_datasets.core
IMPORT_FROM lazy_builder_import
STORE_NAME lazy_builder_impo... | """Dataset definition for accentdb.
DEPRECATED!
If you want to use the Accentdb dataset builder class, use:
tfds.builder_cls('accentdb')
"""
from tensorflow_datasets.core import lazy_builder_import
Accentdb = lazy_builder_import.LazyBuilderImport("accentdb")
| data/tensorflow-datasets-4.9.4/tensorflow_datasets/audio/accentdb.py | 129 | 85 | 255,163 |
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_CONST 0
LOAD_CONST ('IOLoop',)
IMPORT_NAME salt.ext.tornado.... | from __future__ import absolute_import, division, print_function
from salt.ext.tornado.ioloop import IOLoop
from salt.ext.tornado.netutil import ThreadedResolver
resolver = ThreadedResolver()
IOLoop.current().run_sync(lambda: resolver.resolve("localhost", 80))
| data/salt-3006.6/salt/ext/tornado/test/resolve_test_helper.py | 232 | 85 | 97,143 |
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 Status at 0x7fab701ac780, file "f.py", line 6>
LOAD_CON... | from enum import unique
from ...._base_enum import StrEnum
@unique
class Status(StrEnum):
NOT_APPLICABLE = "NotApplicable"
USER = "User"
DATA = "Data"
COMPUTED = "Computed"
ERROR = "Error"
NONE = "None"
| data/refinitiv-data-1.6.0/refinitiv/data/content/ipa/_enums/_status.py | 210 | 85 | 195,541 |
LOAD_CONST 0
LOAD_CONST ('path',)
IMPORT_NAME django.urls
IMPORT_FROM path
STORE_NAME path
POP_TOP
LOAD_CONST 0
LOAD_CONST ('wafflejs', 'waffle_json')
IMPORT_NAME waffle.views
IMPORT_FROM wafflejs
STORE_NAME wafflejs
IMPORT_FROM waffle_json
STORE_NAME waffle_json
POP_TOP
LOAD_NAME path
LOAD_CONST 'wafflejs'
LOAD_NAME... | from django.urls import path
from waffle.views import wafflejs, waffle_json
urlpatterns = [
path("wafflejs", wafflejs, name="wafflejs"),
path("waffle_status", waffle_json, name="waffle_status"),
]
| data/django-waffle-4.1.0/waffle/urls.py | 163 | 85 | 342,540 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME ctypes
STORE_NAME ctypes
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME pytest
STORE_NAME pytest
LOAD_CONST 0
LOAD_CONST ('lib',)
IMPORT_NAME awkward_cpp.cpu_kernels
IMPORT_FROM lib
STORE_NAME lib
POP_TOP
LOAD_NAME pytest
LOAD_ATTR mark
LOAD_ATTR skip
LOAD_CONST 'Unable to generate... | import ctypes
import pytest
from awkward_cpp.cpu_kernels import lib
@pytest.mark.skip(reason="Unable to generate any tests for kernel")
def test_cpuawkward_reduce_argmin_uint8_64_1():
raise NotImplementedError("Unable to generate any tests for kernel")
| data/awkward-cpp-29/tests-cpu-kernels/test_cpuawkward_reduce_argmin_uint8_64.py | 223 | 85 | 221,588 |
LOAD_CONST 0
LOAD_CONST ('HasTraits', 'Range')
IMPORT_NAME traits.api
IMPORT_FROM HasTraits
STORE_NAME HasTraits
IMPORT_FROM Range
STORE_NAME Range
POP_TOP
LOAD_NAME Range
LOAD_CONST -1.0
LOAD_CONST 1.0
LOAD_CONST 0.0
CALL_FUNCTION
STORE_NAME coefficient
LOAD_BUILD_CLASS
LOAD_CONST <code object quadratic at 0x7fab540... | from traits.api import HasTraits, Range
coefficient = Range(-1.0, 1.0, 0.0)
class quadratic(HasTraits):
c2 = coefficient
c1 = coefficient
c0 = coefficient
x = Range(-100.0, 100.0, 0.0)
| data/traits-6.4.3/examples/tutorials/doc_examples/examples/trait_reuse.py | 213 | 85 | 286,826 |
LOAD_CONST <code object test_water_dmol at 0x7fa6ed9e54b0, file "f.py", line 1>
LOAD_CONST 'test_water_dmol'
MAKE_FUNCTION
STORE_NAME test_water_dmol
LOAD_CONST None
RETURN_VALUE
LOAD_CONST 0
LOAD_CONST ('molecule',)
IMPORT_NAME ase.build
IMPORT_FROM molecule
STORE_FAST molecule
POP_TOP
LOAD_CONST 0
LOAD_CONST ('DMol... | def test_water_dmol():
from ase.build import molecule
from ase.calculators.dmol import DMol3
atoms = molecule("H2O")
calc = DMol3()
atoms.calc = calc
atoms.get_potential_energy()
atoms.get_forces()
| data/ase-3.22.1/ase/test/calculator/dmol/test_water_dmol.py | 202 | 85 | 46,318 |
LOAD_CONST 'generate_hash'
BUILD_LIST
STORE_NAME __all__
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME hashlib
STORE_NAME hashlib
LOAD_NAME int
LOAD_NAME str
LOAD_CONST ('length', 'return')
BUILD_CONST_KEY_MAP
LOAD_CONST <code object generate_hash at 0x7f8ab706f930, file "f.py", line 6>
LOAD_CONST 'generate_hash'
MAKE_FUN... | __all__ = ["generate_hash"]
import hashlib
def generate_hash(*descriptors, length: int) -> str:
hasher = hashlib.sha256()
for descriptor in descriptors:
hasher.update(str(descriptor).encode())
return hasher.hexdigest()[-length:]
| data/neptune-1.9.1/src/neptune/internal/utils/hashing.py | 194 | 85 | 117,351 |
LOAD_BUILD_CLASS
LOAD_CONST <code object PymarshalError at 0x7f8b201135d0, file "f.py", line 1>
LOAD_CONST 'PymarshalError'
MAKE_FUNCTION
LOAD_CONST 'PymarshalError'
LOAD_NAME RuntimeError
CALL_FUNCTION
STORE_NAME PymarshalError
LOAD_BUILD_CLASS
LOAD_CONST <code object UnknownFieldError at 0x7f8b20113810, file "f.py",... | class PymarshalError(RuntimeError):
pass
class UnknownFieldError(PymarshalError):
pass
class UnsupportedClassError(PymarshalError):
pass
class InvalidDelegateError(PymarshalError):
pass
class MissingFieldsError(PymarshalError):
pass
| data/pymarshaler-0.4.2/pymarshaler/errors.py | 507 | 85 | 400,068 |
LOAD_CONST 1
LOAD_CONST ('*',)
IMPORT_NAME authorization
IMPORT_STAR
LOAD_CONST 1
LOAD_CONST ('*',)
IMPORT_NAME bots_and_keyboards
IMPORT_STAR
LOAD_CONST 1
LOAD_CONST ('*',)
IMPORT_NAME inline_mode
IMPORT_STAR
LOAD_CONST 1
LOAD_CONST ('*',)
IMPORT_NAME input_media
IMPORT_STAR
LOAD_CONST 1
LOAD_CONST ('*',)
IMPORT_N... | from .authorization import *
from .bots_and_keyboards import *
from .inline_mode import *
from .input_media import *
from .input_message_content import *
from .list import List
from .messages_and_media import *
from .object import Object
from .update import *
from .user_and_chats import *
| data/Pyrogram-2.0.106/pyrogram/types/__init__.py | 200 | 85 | 273,024 |
LOAD_CONST 0
LOAD_CONST ('Any',)
IMPORT_NAME typing
IMPORT_FROM Any
STORE_NAME Any
POP_TOP
LOAD_CONST 0
LOAD_CONST ('Iterator', 'AsyncIterator')
IMPORT_NAME typing_extensions
IMPORT_FROM Iterator
STORE_NAME Iterator
IMPORT_FROM AsyncIterator
STORE_NAME AsyncIterator
POP_TOP
LOAD_NAME Iterator
LOAD_NAME Any
BINARY_SUB... | from typing import Any
from typing_extensions import Iterator, AsyncIterator
def consume_sync_iterator(iterator: Iterator[Any]) -> None:
for _ in iterator:
...
async def consume_async_iterator(iterator: AsyncIterator[Any]) -> None:
async for _ in iterator:
...
| data/openai-1.12.0/src/openai/_utils/_streams.py | 324 | 85 | 63,759 |
LOAD_CONST 'acmpca base URL and path.'
STORE_NAME __doc__
LOAD_CONST 1
LOAD_CONST ('ACMPCAResponse',)
IMPORT_NAME responses
IMPORT_FROM ACMPCAResponse
STORE_NAME ACMPCAResponse
POP_TOP
LOAD_CONST 'https?://acm-pca\\.(.+)\\.amazonaws\\.com'
BUILD_LIST
STORE_NAME url_bases
LOAD_CONST '{0}/$'
LOAD_NAME ACMPCAResponse
L... | """acmpca base URL and path."""
from .responses import ACMPCAResponse
url_bases = [
r"https?://acm-pca\.(.+)\.amazonaws\.com",
]
url_paths = {
"{0}/$": ACMPCAResponse.dispatch,
}
| data/moto-5.0.2/moto/acmpca/urls.py | 117 | 85 | 198,418 |
LOAD_CONST <code object do_not_use_static_url at 0x7fab822c5150, file "f.py", line 1>
LOAD_CONST 'do_not_use_static_url'
MAKE_FUNCTION
STORE_NAME do_not_use_static_url
LOAD_CONST None
RETURN_VALUE
LOAD_CONST <code object exception at 0x7faa7c16a8a0, file "f.py", line 2>
LOAD_CONST 'do_not_use_static_url.<locals>.excep... | def do_not_use_static_url(request):
def exception():
raise Exception(
"Do not use STATIC_URL in templates. Use the {% static %} templatetag (or {% versioned_static %} within admin templates) instead."
)
return {
"STATIC_URL": lambda: exception(),
}
| data/wagtail-6.0.1/wagtail/test/context_processors.py | 263 | 85 | 200,542 |
LOAD_CONST 0
LOAD_CONST ('routerservicetype',)
IMPORT_NAME neutron_lib.api.definitions
IMPORT_FROM routerservicetype
STORE_NAME routerservicetype
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 obje... | from neutron_lib.api.definitions import routerservicetype
from neutron_lib.tests.unit.api.definitions import base
class RouterServiceTyepDefinitionTestCase(base.DefinitionBaseTestCase):
extension_module = routerservicetype
extension_attributes = (routerservicetype.SERVICE_TYPE_ID,)
| data/neutron-lib-3.10.0/neutron_lib/tests/unit/api/definitions/test_routerservicetype.py | 235 | 85 | 384,983 |
LOAD_CONST 0
LOAD_CONST ('UnknownExtension', 'UnknownFormat')
IMPORT_NAME pilkit.exceptions
IMPORT_FROM UnknownExtension
STORE_NAME UnknownExtension
IMPORT_FROM UnknownFormat
STORE_NAME UnknownFormat
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object AlreadyRegistered at 0x7fab80248810, file "f.py", line 4>
LOAD_CONST '... | from pilkit.exceptions import UnknownExtension, UnknownFormat
class AlreadyRegistered(Exception):
pass
class NotRegistered(Exception):
pass
class MissingGeneratorId(Exception):
pass
class MissingSource(ValueError):
pass
UnknownExtensionError = UnknownExtension
UnknownFormatError = UnknownForma... | data/django-imagekit-5.0.0/imagekit/exceptions.py | 439 | 85 | 219,817 |
LOAD_CONST 0
LOAD_CONST ('ttLib',)
IMPORT_NAME fontTools
IMPORT_FROM ttLib
STORE_NAME ttLib
POP_TOP
LOAD_NAME ttLib
LOAD_METHOD getTableClass
LOAD_CONST 'hmtx'
CALL_METHOD
STORE_NAME superclass
LOAD_BUILD_CLASS
LOAD_CONST <code object table__v_m_t_x at 0x7f8ab62f5780, file "f.py", line 6>
LOAD_CONST 'table__v_m_t_x'
... | from fontTools import ttLib
superclass = ttLib.getTableClass("hmtx")
class table__v_m_t_x(superclass):
headerTag = "vhea"
advanceName = "height"
sideBearingName = "tsb"
numberOfMetricsName = "numberOfVMetrics"
| data/fonttools-4.49.0/Lib/fontTools/ttLib/tables/_v_m_t_x.py | 229 | 85 | 334,589 |
LOAD_CONST 0
LOAD_CONST ('Protocol', 'TypeVar')
IMPORT_NAME typing
IMPORT_FROM Protocol
STORE_NAME Protocol
IMPORT_FROM TypeVar
STORE_NAME TypeVar
POP_TOP
LOAD_NAME TypeVar
LOAD_CONST 'T'
CALL_FUNCTION
STORE_NAME T
LOAD_BUILD_CLASS
LOAD_CONST <code object CanRememberExtensionPresence at 0x7fab5434b0c0, file "f.py", l... | from typing import Protocol, TypeVar
T = TypeVar("T")
class CanRememberExtensionPresence(Protocol):
def assert_extension_exists(self: T, ext_name: str) -> T:
...
def mark_extension_absence(self: T, ext_name: str) -> T:
...
| data/Appium-Python-Client-3.1.1/appium/protocols/webdriver/can_remember_extension_presence.py | 343 | 85 | 146,140 |
LOAD_CONST 1
LOAD_CONST ('get_versions',)
IMPORT_NAME _version
IMPORT_FROM get_versions
STORE_NAME get_versions
POP_TOP
LOAD_NAME get_versions
CALL_FUNCTION
LOAD_CONST 'version'
BINARY_SUBSCR
STORE_NAME __version__
DELETE_NAME get_versions
LOAD_CONST 1
LOAD_CONST ('GCSFileSystem',)
IMPORT_NAME core
IMPORT_FROM GCSFi... | from ._version import get_versions
__version__ = get_versions()["version"]
del get_versions
from .core import GCSFileSystem
from .mapping import GCSMap
__all__ = ["GCSFileSystem", "GCSMap"]
from . import _version
__version__ = _version.get_versions()["version"]
| data/gcsfs-2024.2.0/gcsfs/__init__.py | 189 | 85 | 193,160 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME os
STORE_NAME os
LOAD_CONST 'is_running_under_teamcity'
BUILD_LIST
STORE_NAME __all__
LOAD_CONST '1.32'
STORE_NAME __version__
LOAD_CONST 'TEAMCITY_VERSION'
STORE_NAME teamcity_presence_env_var
LOAD_CONST <code object is_running_under_teamcity at 0x7f8e2fad64b0, file "f.py",... | import os
__all__ = ["is_running_under_teamcity"]
__version__ = "1.32"
teamcity_presence_env_var = "TEAMCITY_VERSION"
def is_running_under_teamcity():
return bool(os.getenv(teamcity_presence_env_var))
| data/teamcity-messages-1.32/teamcity/__init__.py | 167 | 85 | 10,667 |
LOAD_CONST 0
LOAD_CONST ('Backend',)
IMPORT_NAME mido.backends.backend
IMPORT_FROM Backend
STORE_NAME Backend
POP_TOP
LOAD_CONST <code object test_split_api at 0x7fab8244d780, file "f.py", line 4>
LOAD_CONST 'test_split_api'
MAKE_FUNCTION
STORE_NAME test_split_api
LOAD_CONST None
RETURN_VALUE
LOAD_GLOBAL Backend
LOAD... | from mido.backends.backend import Backend
def test_split_api():
backend = Backend("test")
assert backend.name == "test"
assert backend.api is None
backend = Backend("test/ALSA")
assert backend.name == "test"
assert backend.api == "ALSA"
| data/mido-1.3.2/tests/backends/test_backend.py | 224 | 85 | 84,283 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME ctypes
STORE_NAME ctypes
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME pytest
STORE_NAME pytest
LOAD_CONST 0
LOAD_CONST ('lib',)
IMPORT_NAME awkward_cpp.cpu_kernels
IMPORT_FROM lib
STORE_NAME lib
POP_TOP
LOAD_NAME pytest
LOAD_ATTR mark
LOAD_ATTR skip
LOAD_CONST 'Unable to generate... | import ctypes
import pytest
from awkward_cpp.cpu_kernels import lib
@pytest.mark.skip(reason="Unable to generate any tests for kernel")
def test_cpuawkward_IndexedArray64_numnull_parents_1():
raise NotImplementedError("Unable to generate any tests for kernel")
| data/awkward-cpp-29/tests-cpu-kernels/test_cpuawkward_IndexedArray64_numnull_parents.py | 223 | 85 | 221,622 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME numpy
STORE_NAME np
LOAD_CONST 1
LOAD_CONST ('OpRunBinaryNumpy',)
IMPORT_NAME _op
IMPORT_FROM OpRunBinaryNumpy
STORE_NAME OpRunBinaryNumpy
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object Sub at 0x7fab70078030, file "f.py", line 6>
LOAD_CONST 'Sub'
MAKE_FUNCTION
LOAD_CONST 'Su... | import numpy as np
from ._op import OpRunBinaryNumpy
class Sub(OpRunBinaryNumpy):
def __init__(self, onnx_node, run_params): # type: ignore
OpRunBinaryNumpy.__init__(self, np.subtract, onnx_node, run_params)
| data/onnxoptimizer-0.3.13/third_party/onnx/onnx/reference/ops/op_sub.py | 239 | 85 | 85,658 |
LOAD_CONST 0
LOAD_CONST ('Schema',)
IMPORT_NAME marshmallow
IMPORT_FROM Schema
STORE_NAME Schema
POP_TOP
LOAD_CONST 0
LOAD_CONST ('Boolean', 'Integer', 'String')
IMPORT_NAME marshmallow.fields
IMPORT_FROM Boolean
STORE_NAME Boolean
IMPORT_FROM Integer
STORE_NAME Integer
IMPORT_FROM String
STORE_NAME String
POP_TOP
LO... | from marshmallow import Schema
from marshmallow.fields import Boolean, Integer, String
class UserResponseSchema(Schema):
id = Integer()
username = String()
email = String()
first_name = String()
last_name = String()
is_active = Boolean()
is_anonymous = Boolean()
| data/apache-superset-3.1.1/superset/views/users/schemas.py | 239 | 85 | 393,266 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME abc
STORE_NAME abc
LOAD_CONST 1
LOAD_CONST ('PackedPointRecord',)
IMPORT_NAME point.record
IMPORT_FROM PackedPointRecord
STORE_NAME PackedPointRecord
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object IPointAppender at 0x7f8ab62f5b70, file "f.py", line 6>
LOAD_CONST 'IPointAppen... | import abc
from .point.record import PackedPointRecord
class IPointAppender(abc.ABC):
@abc.abstractmethod
def append_points(self, points: PackedPointRecord) -> None:
...
@abc.abstractmethod
def done(self) -> None:
...
| data/laspy-2.5.3/laspy/_pointappender.py | 320 | 85 | 334,915 |
LOAD_CONST 'Helpers to generate uuids.'
STORE_NAME __doc__
LOAD_CONST 0
LOAD_CONST ('getrandbits',)
IMPORT_NAME random
IMPORT_FROM getrandbits
STORE_NAME getrandbits
POP_TOP
LOAD_NAME str
LOAD_CONST ('return',)
BUILD_CONST_KEY_MAP
LOAD_CONST <code object random_uuid_hex at 0x7fae2f397f60, file "f.py", line 6>
LOAD_CO... | """Helpers to generate uuids."""
from random import getrandbits
def random_uuid_hex() -> str:
"""Generate a random UUID hex.
This uuid should not be used for cryptographically secure
operations.
"""
return "%032x" % getrandbits(32 * 4)
| data/homeassistant-2024.2.2/homeassistant/util/uuid.py | 141 | 85 | 298,975 |
LOAD_CONST 0
LOAD_CONST ('ModelForm',)
IMPORT_NAME django.forms
IMPORT_FROM ModelForm
STORE_NAME ModelForm
POP_TOP
LOAD_CONST 0
LOAD_CONST ('DummyGenericIPAddressFieldModel',)
IMPORT_NAME tests.generic.models
IMPORT_FROM DummyGenericIPAddressFieldModel
STORE_NAME DummyGenericIPAddressFieldModel
POP_TOP
LOAD_BUILD_CLA... | from django.forms import ModelForm
from tests.generic.models import DummyGenericIPAddressFieldModel
class DummyGenericIPAddressFieldForm(ModelForm):
class Meta:
fields = ("ipv4_field", "ipv6_field", "ipv46_field")
model = DummyGenericIPAddressFieldModel
| data/model_mommy-2.0.0/tests/generic/forms.py | 319 | 85 | 148,178 |
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 Contacts
STORE_NAME Contacts
LOAD_BUILD_CLASS
LOAD_CONST <code object TestCNChangeHistoryE... | from PyObjCTools.TestSupport import TestCase, min_os_level
import Contacts # noqa: F401
class TestCNChangeHistoryEvent(TestCase):
@min_os_level("10.15")
def testProtocols(self):
self.assertProtocolExists("CNChangeHistoryEventVisitor")
| data/pyobjc-framework-Contacts-10.1/PyObjCTest/test_cnchangehistoryevent.py | 279 | 85 | 438,684 |
LOAD_CONST 0
LOAD_CONST ('reactor',)
IMPORT_NAME twisted.internet
IMPORT_FROM reactor
STORE_NAME reactor
POP_TOP
LOAD_CONST 0
LOAD_CONST ('static', 'server', 'twcgi')
IMPORT_NAME twisted.web
IMPORT_FROM static
STORE_NAME static
IMPORT_FROM server
STORE_NAME server
IMPORT_FROM twcgi
STORE_NAME twcgi
POP_TOP
LOAD_NAME ... | from twisted.internet import reactor
from twisted.web import static, server, twcgi
root = static.File("/root")
root.putChild("cgi-bin", twcgi.CGIDirectory("/var/www/cgi-bin"))
reactor.listenTCP(80, server.Site(root))
reactor.run()
| data/bandit-1.7.7/examples/httpoxy_twisted_directory.py | 183 | 85 | 56,671 |
SETUP_ANNOTATIONS
LOAD_CONST 'Constants for the Bluetooth Tracker component.'
STORE_NAME __doc__
LOAD_CONST 0
LOAD_CONST ('Final',)
IMPORT_NAME typing
IMPORT_FROM Final
STORE_NAME Final
POP_TOP
LOAD_CONST 'bluetooth_tracker'
STORE_NAME DOMAIN
LOAD_NAME Final
LOAD_NAME __annotations__
LOAD_CONST 'DOMAIN'
STORE_SUBSCR
... | """Constants for the Bluetooth Tracker component."""
from typing import Final
DOMAIN: Final = "bluetooth_tracker"
SERVICE_UPDATE: Final = "update"
BT_PREFIX: Final = "BT_"
CONF_REQUEST_RSSI: Final = "request_rssi"
DEFAULT_DEVICE_ID: Final = -1
| data/homeassistant-2024.2.2/homeassistant/components/bluetooth_tracker/const.py | 216 | 85 | 295,708 |
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 VolatilityModel at 0x7fab701ac780, file "f.py", line 6>... | from enum import unique
from ...._base_enum import StrEnum
@unique
class VolatilityModel(StrEnum):
CUBIC_SPLINE = "CubicSpline"
SABR = "SABR"
SVI = "SVI"
TWIN_LOGNORMAL = "TwinLognormal"
| data/refinitiv-data-1.6.0/refinitiv/data/content/ipa/_enums/_volatility_model.py | 214 | 85 | 195,531 |
LOAD_CONST 0
LOAD_CONST ('files',)
IMPORT_NAME isort
IMPORT_FROM files
STORE_NAME files
POP_TOP
LOAD_CONST 0
LOAD_CONST ('DEFAULT_CONFIG',)
IMPORT_NAME isort.settings
IMPORT_FROM DEFAULT_CONFIG
STORE_NAME DEFAULT_CONFIG
POP_TOP
LOAD_CONST <code object test_find at 0x7fab821a56f0, file "f.py", line 5>
LOAD_CONST 'test... | from isort import files
from isort.settings import DEFAULT_CONFIG
def test_find(tmpdir):
tmp_file = tmpdir.join("file.py")
tmp_file.write("import os, sys\n")
assert tuple(files.find((tmp_file,), DEFAULT_CONFIG, [], [])) == (tmp_file,)
| data/isort-5.13.2/tests/unit/test_files.py | 206 | 85 | 105,600 |
LOAD_BUILD_CLASS
LOAD_CONST <code object Ticker at 0x7fab40d045d0, file "f.py", line 1>
LOAD_CONST 'Ticker'
MAKE_FUNCTION
LOAD_CONST 'Ticker'
LOAD_NAME object
CALL_FUNCTION
STORE_NAME Ticker
LOAD_CONST None
RETURN_VALUE
LOAD_NAME __name__
STORE_NAME __module__
LOAD_CONST 'Ticker'
STORE_NAME __qualname__
LOAD_CONST '\... | class Ticker(object):
"""
Base class for ticker implementations.
"""
@property
def ticks(self):
raise NotImplementedError
@property
def min(self):
raise NotImplementedError
@property
def max(self):
raise NotImplementedError
| data/leather-0.3.4/leather/ticks/base.py | 314 | 85 | 209,519 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME sys
STORE_NAME sys
LOAD_CONST 0
LOAD_CONST ('UseExceptions', 'deprecation_warn')
IMPORT_NAME osgeo.gdal
IMPORT_FROM UseExceptions
STORE_NAME UseExceptions
IMPORT_FROM deprecation_warn
STORE_NAME deprecation_warn
POP_TOP
LOAD_CONST 0
LOAD_CONST ('*',)
IMPORT_NAME osgeo_utils.gd... | import sys
from osgeo.gdal import UseExceptions, deprecation_warn
from osgeo_utils.gdal_edit import * # noqa
from osgeo_utils.gdal_edit import main
UseExceptions()
deprecation_warn("gdal_edit")
sys.exit(main(sys.argv))
| data/GDAL-3.8.4/gdal-utils/scripts/gdal_edit.py | 177 | 85 | 205,255 |
LOAD_CONST 2
STORE_NAME COLLECTION_DOCUMENT_TYPE
LOAD_CONST 3
STORE_NAME COLLECTION_EDGE_TYPE
LOAD_CONST 1
STORE_NAME COLLECTION_NEWBORN_STATUS
LOAD_CONST 2
STORE_NAME COLLECTION_UNLOADED_STATUS
LOAD_CONST 3
STORE_NAME COLLECTION_LOADED_STATUS
LOAD_CONST 4
STORE_NAME COLLECTION_LOADING_STATUS
LOAD_CONST 5
STORE_N... | COLLECTION_DOCUMENT_TYPE = 2
COLLECTION_EDGE_TYPE = 3
COLLECTION_NEWBORN_STATUS = 1
COLLECTION_UNLOADED_STATUS = 2
COLLECTION_LOADED_STATUS = 3
COLLECTION_LOADING_STATUS = 4
COLLECTION_DELETED_STATUS = 5
| data/pyArango-2.0.2/pyArango/consts.py | 115 | 85 | 427,308 |
LOAD_CONST 0
LOAD_CONST ('Dict',)
IMPORT_NAME typing
IMPORT_FROM Dict
STORE_NAME Dict
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object MockResponse at 0x7f8e2fa0f9c0, file "f.py", line 4>
LOAD_CONST 'MockResponse'
MAKE_FUNCTION
LOAD_CONST 'MockResponse'
CALL_FUNCTION
STORE_NAME MockResponse
LOAD_CONST None
RETURN_VALU... | from typing import Dict
class MockResponse:
def __init__(self, response: Dict, status_code: int = 200) -> None:
self.response = response
self.status_code = status_code
self.content = response
def json(self) -> Dict:
return self.response
| data/fiddler-client-2.4.0/tests/utils.py | 302 | 85 | 422,674 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME sys
STORE_NAME sys
LOAD_CONST 0
LOAD_CONST ('UseExceptions', 'deprecation_warn')
IMPORT_NAME osgeo.gdal
IMPORT_FROM UseExceptions
STORE_NAME UseExceptions
IMPORT_FROM deprecation_warn
STORE_NAME deprecation_warn
POP_TOP
LOAD_CONST 0
LOAD_CONST ('*',)
IMPORT_NAME osgeo_utils.gd... | import sys
from osgeo.gdal import UseExceptions, deprecation_warn
from osgeo_utils.gdal_merge import * # noqa
from osgeo_utils.gdal_merge import main
UseExceptions()
deprecation_warn("gdal_merge")
sys.exit(main(sys.argv))
| data/GDAL-3.8.4/gdal-utils/scripts/gdal_merge.py | 177 | 85 | 205,249 |
LOAD_CONST 1
LOAD_CONST ('AuthLoginClient',)
IMPORT_NAME base_login_client
IMPORT_FROM AuthLoginClient
STORE_NAME AuthLoginClient
POP_TOP
LOAD_CONST 1
LOAD_CONST ('ConfidentialAppAuthClient',)
IMPORT_NAME confidential_client
IMPORT_FROM ConfidentialAppAuthClient
STORE_NAME ConfidentialAppAuthClient
POP_TOP
LOAD_CONST... | from .base_login_client import AuthLoginClient
from .confidential_client import ConfidentialAppAuthClient
from .native_client import NativeAppAuthClient
from .service_client import AuthClient
__all__ = (
"AuthClient",
"AuthLoginClient",
"NativeAppAuthClient",
"ConfidentialAppAuthClient",
)
| data/globus-sdk-3.37.0/src/globus_sdk/services/auth/client/__init__.py | 162 | 85 | 217,528 |
LOAD_CONST 0
LOAD_CONST ('namedtuple',)
IMPORT_NAME collections
IMPORT_FROM namedtuple
STORE_NAME namedtuple
POP_TOP
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME cv2
STORE_NAME cv2
LOAD_NAME namedtuple
LOAD_CONST 'NativeMethodPatchedResult'
LOAD_CONST ('py', 'native')
CALL_FUNCTION
STORE_NAME NativeMethodPatchedResult
L... | from collections import namedtuple
import cv2
NativeMethodPatchedResult = namedtuple("NativeMethodPatchedResult", ("py", "native"))
def testOverwriteNativeMethod(arg):
return NativeMethodPatchedResult(
arg + 1, cv2.utils._native.testOverwriteNativeMethod(arg)
)
| data/opencv-python-headless-4.9.0.80/opencv/modules/core/misc/python/package/utils/__init__.py | 184 | 85 | 396,584 |
LOAD_CONST 'Test patool version command.'
STORE_NAME __doc__
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME unittest
STORE_NAME unittest
LOAD_CONST 0
LOAD_CONST ('cli',)
IMPORT_NAME patoolib
IMPORT_FROM cli
STORE_NAME cli
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object TestVersion at 0x7fab40f498a0, file "f.py", line 6>
... | """Test patool version command."""
import unittest
from patoolib import cli
class TestVersion(unittest.TestCase):
"""Test class for patool version command."""
def test_version(self):
"""Run cli function with version command."""
args = ["version"]
cli.main(args=args)
| data/patool-2.2.0/tests/test_version.py | 262 | 85 | 441,672 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME GameKit
STORE_NAME GameKit
LOAD_CONST 0
LOAD_CONST ('TestCase', 'min_sdk_level')
IMPORT_NAME PyObjCTools.TestSupport
IMPORT_FROM TestCase
STORE_NAME TestCase
IMPORT_FROM min_sdk_level
STORE_NAME min_sdk_level
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object TestGKGameSessionEv... | import GameKit # noqa: F401
from PyObjCTools.TestSupport import TestCase, min_sdk_level
class TestGKGameSessionEventListener(TestCase):
@min_sdk_level("10.12")
def testProtocols(self):
self.assertProtocolExists("GKGameSessionEventListener")
| data/pyobjc-framework-GameKit-10.1/PyObjCTest/test_gkgamesessioneventlistener.py | 284 | 85 | 22,893 |
LOAD_CONST 0
LOAD_CONST ('setup',)
IMPORT_NAME setuptools
IMPORT_FROM setup
STORE_NAME setup
POP_TOP
LOAD_NAME setup
LOAD_CONST 'sample'
LOAD_CONST 'setupmeta'
BUILD_LIST
LOAD_CONST '{major}.{minor}.{distance}{dirty}'
LOAD_CONST 'http://example.com'
LOAD_CONST 'Someone'
LOAD_CONST 'someone@example.com'
LOAD_CONS... | from setuptools import setup
setup(
name="sample",
setup_requires=["setupmeta"],
versioning="{major}.{minor}.{distance}{dirty}",
url="http://example.com",
author="Someone",
author_email="someone@example.com",
)
| data/setupmeta-3.6.0/tests/sample/setup.py | 121 | 85 | 242,498 |
LOAD_CONST 0
LOAD_CONST ('Union',)
IMPORT_NAME typing
IMPORT_FROM Union
STORE_NAME Union
POP_TOP
LOAD_CONST 0
LOAD_CONST ('FastAPI', 'Header')
IMPORT_NAME fastapi
IMPORT_FROM FastAPI
STORE_NAME FastAPI
IMPORT_FROM Header
STORE_NAME Header
POP_TOP
LOAD_NAME FastAPI
CALL_FUNCTION
STORE_NAME app
LOAD_NAME app
LOAD_METH... | from typing import Union
from fastapi import FastAPI, Header
app = FastAPI()
@app.get("/items/")
async def read_items(
strange_header: Union[str, None] = Header(default=None, convert_underscores=False)
):
return {"strange_header": strange_header}
| data/fastapi-0.109.2/docs_src/header_params/tutorial002.py | 206 | 85 | 142,704 |
LOAD_CONST 0
LOAD_CONST ('RadioSelect',)
IMPORT_NAME django.forms
IMPORT_FROM RadioSelect
STORE_NAME RadioSelect
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object RadioSelectButtonGroup at 0x7fab429cd030, file "f.py", line 4>
LOAD_CONST 'RadioSelectButtonGroup'
MAKE_FUNCTION
LOAD_CONST 'RadioSelectButtonGroup'
LOAD_NAM... | from django.forms import RadioSelect
class RadioSelectButtonGroup(RadioSelect):
"""
This widget renders a Bootstrap 4 set of buttons horizontally instead of typical radio buttons.
Much more mobile friendly.
"""
template_name = "bootstrap5/widgets/radio_select_button_group.html"
| data/django-bootstrap-v5-1.0.11/src/bootstrap5/widgets.py | 200 | 85 | 41,400 |
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 directory_config
IMPORT_STAR
LOAD_CONST 1
LOAD_CONST ('*',)
IMPORT_NAME fleet
IMPORT_STAR
LOAD_CONST 1... | from .. import _utilities
import typing
from .directory_config import *
from .fleet import *
from .fleet_stack_association import *
from .image_builder import *
from .stack import *
from .user import *
from .user_stack_association import *
from ._inputs import *
from . import outputs
| data/pulumi_aws-6.22.2/pulumi_aws/appstream/__init__.py | 211 | 85 | 225,818 |
LOAD_CONST 0
LOAD_CONST ('APIGateway', 'HTTPGateway')
IMPORT_NAME mangum.handlers.api_gateway
IMPORT_FROM APIGateway
STORE_NAME APIGateway
IMPORT_FROM HTTPGateway
STORE_NAME HTTPGateway
POP_TOP
LOAD_CONST 0
LOAD_CONST ('ALB',)
IMPORT_NAME mangum.handlers.alb
IMPORT_FROM ALB
STORE_NAME ALB
POP_TOP
LOAD_CONST 0
LOAD_CO... | from mangum.handlers.api_gateway import APIGateway, HTTPGateway
from mangum.handlers.alb import ALB
from mangum.handlers.lambda_at_edge import LambdaAtEdge
__all__ = ["APIGateway", "HTTPGateway", "ALB", "LambdaAtEdge"]
| data/mangum-0.17.0/mangum/handlers/__init__.py | 173 | 85 | 290,691 |
LOAD_CONST 'Archive commands for the plzip program.'
STORE_NAME __doc__
LOAD_CONST 1
LOAD_CONST ('extract_singlefile_standard', 'test_singlefile_standard', 'create_singlefile_standard')
IMPORT_NAME
IMPORT_FROM extract_singlefile_standard
STORE_NAME extract_singlefile_standard
IMPORT_FROM test_singlefile_standard
STORE... | """Archive commands for the plzip program."""
from . import (
extract_singlefile_standard,
test_singlefile_standard,
create_singlefile_standard,
)
extract_lzip = extract_singlefile_standard
test_lzip = test_singlefile_standard
create_lzip = create_singlefile_standard
| data/patool-2.2.0/patoolib/programs/plzip.py | 151 | 85 | 441,661 |
LOAD_CONST '\nLanguage translation.\n'
STORE_NAME __doc__
LOAD_CONST 'ThZhTranslator'
LOAD_CONST 'ZhThTranslator'
LOAD_CONST 'Translate'
BUILD_LIST
STORE_NAME __all__
LOAD_CONST 0
LOAD_CONST ('Translate',)
IMPORT_NAME pythainlp.translate.core
IMPORT_FROM Translate
STORE_NAME Translate
POP_TOP
LOAD_CONST 0
LOAD_CONST... | """
Language translation.
"""
__all__ = ["ThZhTranslator", "ZhThTranslator", "Translate"]
from pythainlp.translate.core import Translate
from pythainlp.translate.zh_th import (
ThZhTranslator,
ZhThTranslator,
)
| data/pythainlp-5.0.1/pythainlp/translate/__init__.py | 155 | 85 | 43,282 |
LOAD_CONST 0
LOAD_CONST ('*',)
IMPORT_NAME django.conf.urls.defaults
IMPORT_STAR
LOAD_NAME patterns
LOAD_CONST ''
LOAD_CONST ('^$', 'djopenid.views.index')
LOAD_CONST '^consumer/'
LOAD_NAME include
LOAD_CONST 'djopenid.consumer.urls'
CALL_FUNCTION
BUILD_TUPLE
LOAD_CONST '^server/'
LOAD_NAME include
LOAD_CONST 'djo... | from django.conf.urls.defaults import *
urlpatterns = patterns(
"",
("^$", "djopenid.views.index"),
("^consumer/", include("djopenid.consumer.urls")),
("^server/", include("djopenid.server.urls")),
)
| data/python-openid-2.2.5/examples/djopenid/urls.py | 118 | 85 | 84,455 |
LOAD_CONST "\nInvoke's own 'binary' entrypoint.\n\nDogfoods the `program` module.\n"
STORE_NAME __doc__
LOAD_CONST 1
LOAD_CONST ('__version__', 'Program')
IMPORT_NAME
IMPORT_FROM __version__
STORE_NAME __version__
IMPORT_FROM Program
STORE_NAME Program
POP_TOP
LOAD_NAME Program
LOAD_CONST 'Invoke'
LOAD_CONST 'inv[o... | """
Invoke's own 'binary' entrypoint.
Dogfoods the `program` module.
"""
from . import __version__, Program
program = Program(
name="Invoke",
binary="inv[oke]",
binary_names=["invoke", "inv"],
version=__version__,
)
| data/magicinvoke-2.4.6/invoke/main.py | 135 | 85 | 390,271 |
LOAD_CONST '\nMockup classes used in unit tests.\n'
STORE_NAME __doc__
LOAD_BUILD_CLASS
LOAD_CONST <code object FakeProcess at 0x7f8e2ff250c0, file "f.py", line 6>
LOAD_CONST 'FakeProcess'
MAKE_FUNCTION
LOAD_CONST 'FakeProcess'
LOAD_NAME object
CALL_FUNCTION
STORE_NAME FakeProcess
LOAD_CONST None
RETURN_VALUE
LOAD_NA... | """
Mockup classes used in unit tests.
"""
class FakeProcess(object):
def __init__(self):
self.regs = {}
def setreg(self, name, value):
self.regs[name] = value
def getreg(self, name):
return self.regs[name]
| data/python-ptrace-0.9.8/ptrace/mockup.py | 320 | 85 | 126,120 |
LOAD_CONST 'The `kfp.local` module contains objects for running KFP components\nlocally.'
STORE_NAME __doc__
LOAD_CONST 0
LOAD_CONST ('DockerRunner',)
IMPORT_NAME kfp.local.config
IMPORT_FROM DockerRunner
STORE_NAME DockerRunner
POP_TOP
LOAD_CONST 0
LOAD_CONST ('init',)
IMPORT_NAME kfp.local.config
IMPORT_FROM init
S... | """The `kfp.local` module contains objects for running KFP components
locally."""
from kfp.local.config import DockerRunner
from kfp.local.config import init
from kfp.local.config import SubprocessRunner
__all__ = [
"init",
"SubprocessRunner",
"DockerRunner",
]
| data/kfp-2.7.0/kfp/local/__init__.py | 155 | 85 | 13,019 |
LOAD_NAME ImportError
LOAD_CONST 'The ase.ga.bulk_crossovers module has been deprecated. The same functionality is now provided by the ase.ga.cutandsplicepairing module. Please consult its documentation to verify how to e.g. initialize a CutAndSplicePairing object.'
CALL_FUNCTION
RAISE_VARARGS
LOAD_CONST None
RETURN_V... | raise ImportError(
"The ase.ga.bulk_crossovers module has been deprecated. "
"The same functionality is now provided by the "
"ase.ga.cutandsplicepairing module. Please consult its documentation "
"to verify how to e.g. initialize a CutAndSplicePairing object."
)
| data/ase-3.22.1/ase/ga/bulk_crossovers.py | 80 | 85 | 45,832 |
LOAD_CONST 0
LOAD_CONST ('TestCase',)
IMPORT_NAME PyObjCTools.TestSupport
IMPORT_FROM TestCase
STORE_NAME TestCase
POP_TOP
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME WebKit
STORE_NAME WebKit
LOAD_BUILD_CLASS
LOAD_CONST <code object TestDOMHTMLUListElement at 0x7fab5437de40, file "f.py", line 5>
LOAD_CONST 'TestDOMHTMLU... | from PyObjCTools.TestSupport import TestCase
import WebKit
class TestDOMHTMLUListElement(TestCase):
def testMethods(self):
self.assertResultIsBOOL(WebKit.DOMHTMLUListElement.compact)
self.assertArgIsBOOL(WebKit.DOMHTMLUListElement.setCompact_, 0)
| data/pyobjc-framework-WebKit-10.1/PyObjCTest/test_domhtmlulistelement.py | 280 | 85 | 418,801 |
LOAD_CONST "\nInvoke's own 'binary' entrypoint.\n\nDogfoods the `program` module.\n"
STORE_NAME __doc__
LOAD_CONST 1
LOAD_CONST ('__version__', 'Program')
IMPORT_NAME
IMPORT_FROM __version__
STORE_NAME __version__
IMPORT_FROM Program
STORE_NAME Program
POP_TOP
LOAD_NAME Program
LOAD_CONST 'Invoke'
LOAD_CONST 'inv[o... | """
Invoke's own 'binary' entrypoint.
Dogfoods the `program` module.
"""
from . import __version__, Program
program = Program(
name="Invoke",
binary="inv[oke]",
binary_names=["invoke", "inv"],
version=__version__,
)
| data/invoke-2.2.0/invoke/main.py | 135 | 85 | 194,095 |
LOAD_CONST <code object effective at 0x7faa750be5d0, file "f.py", line 1>
LOAD_CONST 'effective'
MAKE_FUNCTION
STORE_NAME effective
LOAD_CONST None
RETURN_VALUE
SETUP_LOOP to 82
LOAD_FAST line
GET_ITER
FOR_ITER to 80
STORE_FAST b
LOAD_FAST b
LOAD_ATTR cond
POP_JUMP_IF_TRUE
LOAD_CONST None
RETURN_VALUE
SETUP_EXCEPT ... | def effective(line):
for b in line:
if not b.cond:
return
else:
try:
val = 5
if val:
if b.ignore:
b.ignore -= 1
else:
return (b, True)
except:
... | data/uncompyle6-3.9.0/test/simple_source/branching/07_if_return_bug.py | 181 | 85 | 442,063 |
LOAD_CONST 'Vector sklearn classifiers.'
STORE_NAME __doc__
LOAD_CONST 'RotationForest'
LOAD_CONST 'ContinuousIntervalTree'
BUILD_LIST
STORE_NAME __all__
LOAD_CONST 0
LOAD_CONST ('ContinuousIntervalTree',)
IMPORT_NAME sktime.classification.sklearn._continuous_interval_tree
IMPORT_FROM ContinuousIntervalTree
STORE_NA... | """Vector sklearn classifiers."""
__all__ = [
"RotationForest",
"ContinuousIntervalTree",
]
from sktime.classification.sklearn._continuous_interval_tree import (
ContinuousIntervalTree,
)
from sktime.classification.sklearn._rotation_forest import RotationForest
| data/sktime-0.26.0/sktime/classification/sklearn/__init__.py | 135 | 85 | 65,752 |
LOAD_BUILD_CLASS
LOAD_CONST <code object TransactionAmounts at 0x7f8e2fe41660, file "f.py", line 1>
LOAD_CONST 'TransactionAmounts'
MAKE_FUNCTION
LOAD_CONST 'TransactionAmounts'
LOAD_NAME object
CALL_FUNCTION
STORE_NAME TransactionAmounts
LOAD_CONST None
RETURN_VALUE
LOAD_NAME __name__
STORE_NAME __module__
LOAD_CONST... | class TransactionAmounts(object):
"""A class of constants for transaction amounts that will cause different statuses."""
Authorize = "1000.00"
Decline = "2000.00"
HardDecline = "2015.00"
Fail = "3000.00"
| data/braintree-4.26.0/braintree/transaction_amounts.py | 186 | 85 | 327,784 |
LOAD_CONST 'Contains Triton-specific pallas modules.'
STORE_NAME __doc__
LOAD_CONST 0
LOAD_CONST ('lowering',)
IMPORT_NAME jax._src.pallas.triton
IMPORT_FROM lowering
STORE_NAME lowering
POP_TOP
LOAD_CONST 0
LOAD_CONST ('gpu_triton',)
IMPORT_NAME jax._src.lib
IMPORT_FROM gpu_triton
STORE_NAME triton_kernel_call_lib
P... | """Contains Triton-specific pallas modules."""
from jax._src.pallas.triton import lowering
from jax._src.lib import gpu_triton as triton_kernel_call_lib
get_compute_capability = triton_kernel_call_lib.get_compute_capability
del lowering
| data/jax-0.4.24/jax/_src/pallas/triton/__init__.py | 135 | 85 | 328,791 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME ctypes
STORE_NAME ctypes
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME pytest
STORE_NAME pytest
LOAD_CONST 0
LOAD_CONST ('lib',)
IMPORT_NAME awkward_cpp.cpu_kernels
IMPORT_FROM lib
STORE_NAME lib
POP_TOP
LOAD_NAME pytest
LOAD_ATTR mark
LOAD_ATTR skip
LOAD_CONST 'Unable to generate... | import ctypes
import pytest
from awkward_cpp.cpu_kernels import lib
@pytest.mark.skip(reason="Unable to generate any tests for kernel")
def test_cpuawkward_reduce_countnonzero_bool_64_1():
raise NotImplementedError("Unable to generate any tests for kernel")
| data/awkward-cpp-29/tests-cpu-kernels/test_cpuawkward_reduce_countnonzero_bool_64.py | 223 | 85 | 221,301 |
LOAD_CONST 'A mock extension named `mockext_py` for testing purposes.\n'
STORE_NAME __doc__
LOAD_CONST <code object _jupyter_server_extension_paths at 0x7f8ab6bd50c0, file "f.py", line 5>
LOAD_CONST '_jupyter_server_extension_paths'
MAKE_FUNCTION
STORE_NAME _jupyter_server_extension_paths
LOAD_CONST <code object _loa... | """A mock extension named `mockext_py` for testing purposes.
"""
def _jupyter_server_extension_paths():
return [{"module": "tests.extension.mockextensions.mockext_sys"}]
def _load_jupyter_server_extension(serverapp):
pass
| data/jupyter_server-2.12.5/tests/extension/mockextensions/mockext_sys.py | 210 | 85 | 433,267 |
LOAD_CONST '\nCopyright (c) 2011 Jan Pomikalek\n\nThis software is licensed as described in the file LICENSE.rst.\n'
STORE_NAME __doc__
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 ('get_stoplists', 'get_stop... | """
Copyright (c) 2011 Jan Pomikalek
This software is licensed as described in the file LICENSE.rst.
"""
from __future__ import absolute_import
from .utils import get_stoplists, get_stoplist
from .core import justext
__version__ = "3.0.0"
| data/jusText-3.0.0/justext/__init__.py | 173 | 85 | 204,749 |
LOAD_CONST 1
LOAD_CONST ('LiveClient',)
IMPORT_NAME client
IMPORT_FROM LiveClient
STORE_NAME LiveClient
POP_TOP
LOAD_CONST 1
LOAD_CONST ('AsyncLiveClient',)
IMPORT_NAME client
IMPORT_FROM AsyncLiveClient
STORE_NAME AsyncLiveClient
POP_TOP
LOAD_CONST 1
LOAD_CONST ('LiveOptions',)
IMPORT_NAME client
IMPORT_FROM LiveOpt... | from .client import LiveClient
from .client import AsyncLiveClient
from .client import LiveOptions
from .client import LiveTranscriptionEvents
from .client import (
LiveResultResponse,
MetadataResponse,
SpeechStartedResponse,
UtteranceEndResponse,
ErrorResponse,
)
from ...options import DeepgramCli... | data/deepgram-sdk-3.1.4/deepgram/clients/live/__init__.py | 246 | 85 | 80,892 |
LOAD_CONST 'Networkmapd endpoint module.'
STORE_NAME __doc__
LOAD_CONST 0
LOAD_CONST ('annotations',)
IMPORT_NAME __future__
IMPORT_FROM annotations
STORE_NAME annotations
POP_TOP
LOAD_CONST 0
LOAD_CONST ('Any',)
IMPORT_NAME typing
IMPORT_FROM Any
STORE_NAME Any
POP_TOP
LOAD_CONST 'str'
LOAD_CONST 'dict[str, Any]'
L... | """Networkmapd endpoint module."""
from __future__ import annotations
from typing import Any
def read(content: str) -> dict[str, Any]: # pylint: disable=unused-argument
"""Read networkmapd data"""
networkmapd: dict[str, Any] = {}
return networkmapd
| data/asusrouter-1.7.0/asusrouter/modules/endpoint/networkmapd.py | 152 | 85 | 10,635 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME cx_Oracle
STORE_NAME oracledb
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME sample_env
STORE_NAME sample_env
LOAD_NAME oracledb
LOAD_METHOD connect
LOAD_NAME sample_env
LOAD_METHOD get_main_connect_string
CALL_METHOD
CALL_METHOD
STORE_NAME connection
LOAD_NAME connection
LOAD_METH... | import cx_Oracle as oracledb
import sample_env
connection = oracledb.connect(sample_env.get_main_connect_string())
cursor = connection.cursor()
myvar = cursor.var(int)
cursor.callproc("myproc", (123, myvar))
print(myvar.getvalue())
| data/cx_Oracle-8.3.0/samples/plsql_procedure.py | 150 | 85 | 335,222 |
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 IndexConvexityAdjustmentMethod at 0x7fab700e4c90, file ... | from enum import unique
from ...._base_enum import StrEnum
@unique
class IndexConvexityAdjustmentMethod(StrEnum):
BLACK_SCHOLES = "BlackScholes"
LINEAR_SWAP_MODEL = "LinearSwapModel"
NONE = "None"
REPLICATION = "Replication"
| data/refinitiv-data-1.6.0/refinitiv/data/content/ipa/_enums/_index_convexity_adjustment_method.py | 235 | 85 | 195,567 |
LOAD_CONST 'Wavefront SDK Delta Counter.\n\n@author Joanna Ko (joannak@vmware.com)\n'
STORE_NAME __doc__
LOAD_CONST 0
LOAD_CONST ('WavefrontSdkCounter',)
IMPORT_NAME wavefront_sdk.common.metrics.counter
IMPORT_FROM WavefrontSdkCounter
STORE_NAME WavefrontSdkCounter
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object Wav... | """Wavefront SDK Delta Counter.
@author Joanna Ko (joannak@vmware.com)
"""
from wavefront_sdk.common.metrics.counter import WavefrontSdkCounter
class WavefrontSdkDeltaCounter(WavefrontSdkCounter):
"""Wavefront SDK Delta Counter."""
| data/wavefront-sdk-python-2.1.0/wavefront_sdk/common/metrics/deltacounter.py | 226 | 85 | 309,252 |
LOAD_CONST 0
LOAD_CONST ('TestCase',)
IMPORT_NAME PyObjCTools.TestSupport
IMPORT_FROM TestCase
STORE_NAME TestCase
POP_TOP
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME WebKit
STORE_NAME WebKit
LOAD_BUILD_CLASS
LOAD_CONST <code object TestDOMHTMLFrameElement at 0x7fab5437de40, file "f.py", line 5>
LOAD_CONST 'TestDOMHTMLF... | from PyObjCTools.TestSupport import TestCase
import WebKit
class TestDOMHTMLFrameElement(TestCase):
def testMethods(self):
self.assertResultIsBOOL(WebKit.DOMHTMLFrameElement.noResize)
self.assertArgIsBOOL(WebKit.DOMHTMLFrameElement.setNoResize_, 0)
| data/pyobjc-framework-WebKit-10.1/PyObjCTest/test_domhtmlframeelement.py | 274 | 85 | 418,816 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME sys
STORE_NAME sys
LOAD_CONST '4.1.0'
STORE_NAME __version__
LOAD_NAME sys
LOAD_ATTR version_info
LOAD_CONST (3, 8)
COMPARE_OP >=
JUMP_IF_FALSE_OR_POP
LOAD_NAME sys
LOAD_ATTR platform
LOAD_CONST 'win32'
COMPARE_OP ==
STORE_NAME PY38_WIN
LOAD_NAME PY38_WIN
POP_JUMP_IF_FALSE
L... | import sys
__version__ = "4.1.0"
PY38_WIN = sys.version_info >= (3, 8) and sys.platform == "win32"
if PY38_WIN:
import asyncio
asyncio.set_event_loop_policy(asyncio.WindowsSelectorEventLoopPolicy())
| data/daphne-4.1.0/daphne/__init__.py | 137 | 85 | 347,222 |
LOAD_CONST 0
LOAD_CONST ('Optional', 'Tuple')
IMPORT_NAME typing
IMPORT_FROM Optional
STORE_NAME Optional
IMPORT_FROM Tuple
STORE_NAME Tuple
POP_TOP
LOAD_NAME Optional
LOAD_NAME str
BINARY_SUBSCR
LOAD_NAME Tuple
LOAD_NAME str
LOAD_NAME str
BUILD_TUPLE
BINARY_SUBSCR
LOAD_CONST ('authorization_header_value', 'return')
... | from typing import Optional, Tuple
def get_authorization_scheme_param(
authorization_header_value: Optional[str],
) -> Tuple[str, str]:
if not authorization_header_value:
return "", ""
scheme, _, param = authorization_header_value.partition(" ")
return scheme, param
| data/prefect-2.15.0/src/prefect/_vendor/fastapi/security/utils.py | 199 | 85 | 106,165 |
LOAD_CONST 'dagster-celery/priority'
STORE_NAME DAGSTER_CELERY_STEP_PRIORITY_TAG
LOAD_CONST 'dagster-celery/run_priority'
STORE_NAME DAGSTER_CELERY_RUN_PRIORITY_TAG
LOAD_CONST 'dagster-celery/queue'
STORE_NAME DAGSTER_CELERY_QUEUE_TAG
LOAD_CONST None
RETURN_VALUE | DAGSTER_CELERY_STEP_PRIORITY_TAG = "dagster-celery/priority"
DAGSTER_CELERY_RUN_PRIORITY_TAG = "dagster-celery/run_priority"
DAGSTER_CELERY_QUEUE_TAG = "dagster-celery/queue"
| data/dagster-celery-0.22.5/dagster_celery/tags.py | 95 | 85 | 309,285 |
LOAD_CONST '\nExceptions for the LTI Consumer.\n'
STORE_NAME __doc__
LOAD_BUILD_CLASS
LOAD_CONST <code object LtiError at 0x7fab823b2ed0, file "f.py", line 6>
LOAD_CONST 'LtiError'
MAKE_FUNCTION
LOAD_CONST 'LtiError'
LOAD_NAME Exception
CALL_FUNCTION
STORE_NAME LtiError
LOAD_BUILD_CLASS
LOAD_CONST <code object Extern... | """
Exceptions for the LTI Consumer.
"""
class LtiError(Exception):
"""
General error class for LTI Consumer usage.
"""
class ExternalConfigurationNotFound(Exception):
"""
This exception is used when a reusable external configuration
is not found for a given external ID.
"""
| data/lti-consumer-xblock-9.8.3/lti_consumer/exceptions.py | 267 | 85 | 311,900 |
LOAD_CONST 'Constants for the IntelliFire 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 None
IMPORT_NAME logging
STORE_NAME logging
LOAD_CONST 'intellifire'
STORE_NAME DOMAIN
LOAD_CONST ... | """Constants for the IntelliFire integration."""
from __future__ import annotations
import logging
DOMAIN = "intellifire"
CONF_USER_ID = "user_id"
LOGGER = logging.getLogger(__package__)
CONF_SERIAL = "serial"
DEFAULT_THERMOSTAT_TEMP = 21
| data/homeassistant-2024.2.2/homeassistant/components/intellifire/const.py | 139 | 85 | 295,301 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME Foundation
STORE_NAME Foundation
LOAD_CONST 0
LOAD_CONST ('TestCase',)
IMPORT_NAME PyObjCTools.TestSupport
IMPORT_FROM TestCase
STORE_NAME TestCase
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object TestNSGarbageCollector at 0x7fab81fc4540, file "f.py", line 5>
LOAD_CONST 'TestN... | import Foundation
from PyObjCTools.TestSupport import TestCase
class TestNSGarbageCollector(TestCase):
def testMethods(self):
self.assertResultIsBOOL(Foundation.NSGarbageCollector.isCollecting)
self.assertResultIsBOOL(Foundation.NSGarbageCollector.isEnabled)
| data/pyobjc-framework-Cocoa-10.1/PyObjCTest/test_nsgarbagecollector.py | 278 | 85 | 64,444 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME ctypes
STORE_NAME ctypes
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME pytest
STORE_NAME pytest
LOAD_CONST 0
LOAD_CONST ('lib',)
IMPORT_NAME awkward_cpp.cpu_kernels
IMPORT_FROM lib
STORE_NAME lib
POP_TOP
LOAD_NAME pytest
LOAD_ATTR mark
LOAD_ATTR skip
LOAD_CONST 'Unable to generate... | import ctypes
import pytest
from awkward_cpp.cpu_kernels import lib
@pytest.mark.skip(reason="Unable to generate any tests for kernel")
def test_cpuawkward_reduce_prod_bool_bool_64_1():
raise NotImplementedError("Unable to generate any tests for kernel")
| data/awkward-cpp-29/tests-cpu-kernels/test_cpuawkward_reduce_prod_bool_bool_64.py | 222 | 85 | 221,563 |
LOAD_CONST 'standalone_rst_html5.txt'
STORE_NAME test_source
LOAD_CONST 'standalone_rst_html5.html'
STORE_NAME test_destination
LOAD_CONST 'html5'
STORE_NAME writer_name
LOAD_CONST True
LOAD_CONST ('functional/input/data',)
LOAD_CONST ('sectsubtitle_xform', 'stylesheet_dirs')
BUILD_CONST_KEY_MAP
STORE_NAME settings... | test_source = "standalone_rst_html5.txt"
test_destination = "standalone_rst_html5.html"
writer_name = "html5"
settings_overrides = {
"sectsubtitle_xform": True,
"stylesheet_dirs": ("functional/input/data",),
}
| data/docutils-0.20.1/test/functional/tests/standalone_rst_html5.py | 98 | 85 | 83,248 |
LOAD_CONST 0
LOAD_CONST ('Enum',)
IMPORT_NAME enum
IMPORT_FROM Enum
STORE_NAME Enum
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object X509CertificateAuthenticationMode at 0x7fab820f4a50, file "f.py", line 4>
LOAD_CONST 'X509CertificateAuthenticationMode'
MAKE_FUNCTION
LOAD_CONST 'X509CertificateAuthenticationMode'
LOAD... | from enum import Enum
class X509CertificateAuthenticationMode(str, Enum):
X509CertificateSingleFactor = ("x509CertificateSingleFactor",)
X509CertificateMultiFactor = ("x509CertificateMultiFactor",)
UnknownFutureValue = ("unknownFutureValue",)
| data/msgraph-sdk-1.1.0/msgraph/generated/models/x509_certificate_authentication_mode.py | 215 | 85 | 261,972 |
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 ReportBase at 0x7fab700add20, file "f.py", line 4>
LOAD_CONST 'ReportBase'
MAKE_FUNCTION
LOAD_CONST 'ReportBase'
LOAD_NAME ClientValue
CALL... | from office365.runtime.client_value import ClientValue
class ReportBase(ClientValue):
def __init__(self, farm_id=None):
self.FarmId = farm_id
@property
def entity_type_name(self):
return "Microsoft.Office.Server.Search.REST.ReportBase"
| data/Office365-REST-Python-Client-2.5.5/office365/sharepoint/search/reports/base.py | 281 | 85 | 189,469 |
LOAD_CONST 0
LOAD_CONST ('annotations',)
IMPORT_NAME __future__
IMPORT_FROM annotations
STORE_NAME annotations
POP_TOP
LOAD_CONST 'cx_FreezeSampleService%s'
STORE_NAME NAME
LOAD_CONST 'cx_Freeze Sample Service - %s'
STORE_NAME DISPLAY_NAME
LOAD_CONST 'ServiceHandler'
STORE_NAME MODULE_NAME
LOAD_CONST 'Handler'
STOR... | from __future__ import annotations
NAME = "cx_FreezeSampleService%s"
DISPLAY_NAME = "cx_Freeze Sample Service - %s"
MODULE_NAME = "ServiceHandler"
CLASS_NAME = "Handler"
DESCRIPTION = "Sample service description"
AUTO_START = False
SESSION_CHANGES = False
| data/cx_Freeze-6.15.15/samples/service/Config.py | 131 | 85 | 175,504 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.