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 <code object __new__ at 0x7fab700b4660, file "f.py", line 1>
LOAD_CONST '__new__'
MAKE_FUNCTION
STORE_NAME __new__
LOAD_NAME dict
LOAD_CONST <code object <listcomp> at 0x7fab700b4f60, file "f.py", line 10>
LOAD_CONST '<listcomp>'
MAKE_FUNCTION
LOAD_NAME __file__
GET_ITER
CALL_FUNCTION
CALL_FUNCTION
STORE_NA... | def __new__(cls, value, bases, namespace):
{
name
for name, value in namespace.items()
if getattr(value, "__isabstractmethod__", False)
}
return
_b32rev = dict([(v[0], k) for k, v in __file__])
| data/uncompyle6-3.9.0/test/simple_source/bug30/01_comprehension.py | 294 | 82 | 442,006 |
LOAD_CONST 0
LOAD_CONST ('dirname', 'basename', 'isfile', 'join')
IMPORT_NAME os.path
IMPORT_FROM dirname
STORE_NAME dirname
IMPORT_FROM basename
STORE_NAME basename
IMPORT_FROM isfile
STORE_NAME isfile
IMPORT_FROM join
STORE_NAME join
POP_TOP
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME glob
STORE_NAME glob
LOAD_NAME gl... | from os.path import dirname, basename, isfile, join
import glob
modules = glob.glob(join(dirname(__file__), "*.py"))
__all__ = [
basename(f)[:-3] for f in modules if isfile(f) and not f.endswith("__init__.py")
]
| data/torch_geometric-2.5.0/torch_geometric/graphgym/contrib/act/__init__.py | 242 | 82 | 7,368 |
LOAD_CONST 0
LOAD_CONST ('resource',)
IMPORT_NAME openstack
IMPORT_FROM resource
STORE_NAME resource
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object Version at 0x7fab7038ab70, file "f.py", line 4>
LOAD_CONST 'Version'
MAKE_FUNCTION
LOAD_CONST 'Version'
LOAD_NAME resource
LOAD_ATTR Resource
CALL_FUNCTION
STORE_NAME Ve... | from openstack import resource
class Version(resource.Resource):
resource_key = "version"
resources_key = "versions"
base_path = "/"
allow_list = True
links = resource.Body("links")
status = resource.Body("status")
updated = resource.Body("updated")
| data/openstacksdk-2.1.0/openstack/compute/version.py | 203 | 82 | 284,582 |
LOAD_CONST 0
LOAD_CONST ('dirname', 'basename', 'isfile', 'join')
IMPORT_NAME os.path
IMPORT_FROM dirname
STORE_NAME dirname
IMPORT_FROM basename
STORE_NAME basename
IMPORT_FROM isfile
STORE_NAME isfile
IMPORT_FROM join
STORE_NAME join
POP_TOP
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME glob
STORE_NAME glob
LOAD_NAME gl... | from os.path import dirname, basename, isfile, join
import glob
modules = glob.glob(join(dirname(__file__), "*.py"))
__all__ = [
basename(f)[:-3] for f in modules if isfile(f) and not f.endswith("__init__.py")
]
| data/torch_geometric-2.5.0/torch_geometric/graphgym/contrib/config/__init__.py | 242 | 82 | 7,366 |
LOAD_CONST 0
LOAD_CONST ('dirname', 'basename', 'isfile', 'join')
IMPORT_NAME os.path
IMPORT_FROM dirname
STORE_NAME dirname
IMPORT_FROM basename
STORE_NAME basename
IMPORT_FROM isfile
STORE_NAME isfile
IMPORT_FROM join
STORE_NAME join
POP_TOP
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME glob
STORE_NAME glob
LOAD_NAME gl... | from os.path import dirname, basename, isfile, join
import glob
modules = glob.glob(join(dirname(__file__), "*.py"))
__all__ = [
basename(f)[:-3] for f in modules if isfile(f) and not f.endswith("__init__.py")
]
| data/torch_geometric-2.5.0/torch_geometric/graphgym/contrib/network/__init__.py | 241 | 82 | 7,376 |
LOAD_CONST 0
LOAD_CONST ('dirname', 'basename', 'isfile', 'join')
IMPORT_NAME os.path
IMPORT_FROM dirname
STORE_NAME dirname
IMPORT_FROM basename
STORE_NAME basename
IMPORT_FROM isfile
STORE_NAME isfile
IMPORT_FROM join
STORE_NAME join
POP_TOP
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME glob
STORE_NAME glob
LOAD_NAME gl... | from os.path import dirname, basename, isfile, join
import glob
modules = glob.glob(join(dirname(__file__), "*.py"))
__all__ = [
basename(f)[:-3] for f in modules if isfile(f) and not f.endswith("__init__.py")
]
| data/checkov-3.2.23/checkov/dockerfile/checks/__init__.py | 243 | 82 | 160,440 |
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 ('decode_predictions',)
IMPORT_NAME keras.src.applications.mobilenet_v3
IMPORT_FROM decode_predictions
STORE_NAME decode_predictions
POP_TOP
LO... | """DO NOT EDIT.
This file was autogenerated. Do not edit it by hand,
since your modifications would be overwritten.
"""
from keras.src.applications.mobilenet_v3 import decode_predictions
from keras.src.applications.mobilenet_v3 import preprocess_input
| data/keras-nightly-3.1.0.dev2024022103/keras/_tf_keras/keras/applications/mobilenet_v3/__init__.py | 139 | 82 | 285,354 |
LOAD_CONST 0
LOAD_CONST ('dirname', 'basename', 'isfile', 'join')
IMPORT_NAME os.path
IMPORT_FROM dirname
STORE_NAME dirname
IMPORT_FROM basename
STORE_NAME basename
IMPORT_FROM isfile
STORE_NAME isfile
IMPORT_FROM join
STORE_NAME join
POP_TOP
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME glob
STORE_NAME glob
LOAD_NAME gl... | from os.path import dirname, basename, isfile, join
import glob
modules = glob.glob(join(dirname(__file__), "*.py"))
__all__ = [
basename(f)[:-3] for f in modules if isfile(f) and not f.endswith("__init__.py")
]
| data/torch_geometric-2.5.0/torch_geometric/graphgym/contrib/head/__init__.py | 241 | 82 | 7,375 |
LOAD_CONST 0
LOAD_CONST ('dirname', 'basename', 'isfile', 'join')
IMPORT_NAME os.path
IMPORT_FROM dirname
STORE_NAME dirname
IMPORT_FROM basename
STORE_NAME basename
IMPORT_FROM isfile
STORE_NAME isfile
IMPORT_FROM join
STORE_NAME join
POP_TOP
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME glob
STORE_NAME glob
LOAD_NAME gl... | from os.path import dirname, basename, isfile, join
import glob
modules = glob.glob(join(dirname(__file__), "*.py"))
__all__ = [
basename(f)[:-3] for f in modules if isfile(f) and not f.endswith("__init__.py")
]
| data/torch_geometric-2.5.0/torch_geometric/graphgym/contrib/layer/__init__.py | 242 | 82 | 7,374 |
LOAD_CONST 0
LOAD_CONST ('Widget',)
IMPORT_NAME kivy.uix.widget
IMPORT_FROM Widget
STORE_NAME Widget
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object MyWidget at 0x7fa6a5893ae0, file "f.py", line 4>
LOAD_CONST 'MyWidget'
MAKE_FUNCTION
LOAD_CONST 'MyWidget'
LOAD_NAME Widget
CALL_FUNCTION
STORE_NAME MyWidget
LOAD_CONST ... | from kivy.uix.widget import Widget
class MyWidget(Widget):
def __init__(self, **kwargs):
super(MyWidget, self).__init__(**kwargs)
def callback(*l):
self.x = self.y
self.fbind("y", callback)
callback()
| data/Kivy-2.3.0/kivy/tests/pyinstaller/simple_widget/project/widget.py | 329 | 82 | 47,513 |
LOAD_CONST 'Compatability code for older python version.'
STORE_NAME __doc__
LOAD_CONST 0
LOAD_CONST ('annotations',)
IMPORT_NAME __future__
IMPORT_FROM annotations
STORE_NAME annotations
POP_TOP
SETUP_EXCEPT to 34
LOAD_CONST 0
LOAD_CONST ('version',)
IMPORT_NAME importlib.metadata
IMPORT_FROM version
STORE_NAME ver... | """Compatability code for older python version."""
from __future__ import annotations
try:
from importlib.metadata import version
except ImportError: # pragma: py-gte-38
from importlib_metadata import version # type: ignore[import,no-redef]
__all__ = ["version"]
| data/rstcheck-6.2.0/src/rstcheck/_compat.py | 155 | 82 | 127,387 |
LOAD_CONST 0
LOAD_CONST ('dirname', 'basename', 'isfile', 'join')
IMPORT_NAME os.path
IMPORT_FROM dirname
STORE_NAME dirname
IMPORT_FROM basename
STORE_NAME basename
IMPORT_FROM isfile
STORE_NAME isfile
IMPORT_FROM join
STORE_NAME join
POP_TOP
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME glob
STORE_NAME glob
LOAD_NAME gl... | from os.path import dirname, basename, isfile, join
import glob
modules = glob.glob(join(dirname(__file__), "*.py"))
__all__ = [
basename(f)[:-3] for f in modules if isfile(f) and not f.endswith("__init__.py")
]
| data/torch_geometric-2.5.0/torch_geometric/graphgym/contrib/loss/__init__.py | 242 | 82 | 7,372 |
LOAD_CONST 0
LOAD_CONST ('transformation_kernels',)
IMPORT_NAME pandas.core.groupby.base
IMPORT_FROM transformation_kernels
STORE_NAME transformation_kernels
POP_TOP
LOAD_CONST <code object <listcomp> at 0x7fab800c7930, file "f.py", line 4>
LOAD_CONST '<listcomp>'
MAKE_FUNCTION
LOAD_NAME sorted
LOAD_NAME transformatio... | from pandas.core.groupby.base import transformation_kernels
series_transform_kernels = [
x for x in sorted(transformation_kernels) if x != "cumcount"
]
frame_transform_kernels = [x for x in sorted(transformation_kernels) if x != "cumcount"]
| data/pandas-2.2.0/pandas/tests/apply/common.py | 264 | 82 | 170,543 |
LOAD_CONST 0
LOAD_CONST ('dirname', 'basename', 'isfile', 'join')
IMPORT_NAME os.path
IMPORT_FROM dirname
STORE_NAME dirname
IMPORT_FROM basename
STORE_NAME basename
IMPORT_FROM isfile
STORE_NAME isfile
IMPORT_FROM join
STORE_NAME join
POP_TOP
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME glob
STORE_NAME glob
LOAD_NAME gl... | from os.path import dirname, basename, isfile, join
import glob
modules = glob.glob(join(dirname(__file__), "*.py"))
__all__ = [
basename(f)[:-3] for f in modules if isfile(f) and not f.endswith("__init__.py")
]
| data/checkov-3.2.23/checkov/kubernetes/checks/resource/k8s/__init__.py | 243 | 82 | 160,593 |
LOAD_CONST 0
LOAD_CONST ('settings',)
IMPORT_NAME django.conf
IMPORT_FROM settings
STORE_NAME settings
POP_TOP
LOAD_CONST 0
LOAD_CONST ('models',)
IMPORT_NAME django.db
IMPORT_FROM models
STORE_NAME models
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object CustomToken at 0x7fab541d39c0, file "f.py", line 5>
LOAD_CONST ... | from django.conf import settings
from django.db import models
class CustomToken(models.Model):
key = models.CharField(max_length=40, primary_key=True)
user = models.OneToOneField(settings.AUTH_USER_MODEL, on_delete=models.CASCADE)
| data/djangorestframework-3.14.0/tests/authentication/models.py | 221 | 82 | 77,652 |
LOAD_CONST 0
LOAD_CONST ('dirname', 'basename', 'isfile', 'join')
IMPORT_NAME os.path
IMPORT_FROM dirname
STORE_NAME dirname
IMPORT_FROM basename
STORE_NAME basename
IMPORT_FROM isfile
STORE_NAME isfile
IMPORT_FROM join
STORE_NAME join
POP_TOP
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME glob
STORE_NAME glob
LOAD_NAME gl... | from os.path import dirname, basename, isfile, join
import glob
modules = glob.glob(join(dirname(__file__), "*.py"))
__all__ = [
basename(f)[:-3] for f in modules if isfile(f) and not f.endswith("__init__.py")
]
| data/torch_geometric-2.5.0/torch_geometric/graphgym/contrib/train/__init__.py | 242 | 82 | 7,371 |
LOAD_CONST 0
LOAD_CONST ('dirname', 'basename', 'isfile', 'join')
IMPORT_NAME os.path
IMPORT_FROM dirname
STORE_NAME dirname
IMPORT_FROM basename
STORE_NAME basename
IMPORT_FROM isfile
STORE_NAME isfile
IMPORT_FROM join
STORE_NAME join
POP_TOP
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME glob
STORE_NAME glob
LOAD_NAME gl... | from os.path import dirname, basename, isfile, join
import glob
modules = glob.glob(join(dirname(__file__), "*.py"))
__all__ = [
basename(f)[:-3] for f in modules if isfile(f) and not f.endswith("__init__.py")
]
| data/torch_geometric-2.5.0/torch_geometric/graphgym/contrib/optimizer/__init__.py | 242 | 82 | 7,370 |
LOAD_CONST 0
LOAD_CONST ('dirname', 'basename', 'isfile', 'join')
IMPORT_NAME os.path
IMPORT_FROM dirname
STORE_NAME dirname
IMPORT_FROM basename
STORE_NAME basename
IMPORT_FROM isfile
STORE_NAME isfile
IMPORT_FROM join
STORE_NAME join
POP_TOP
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME glob
STORE_NAME glob
LOAD_NAME gl... | from os.path import dirname, basename, isfile, join
import glob
modules = glob.glob(join(dirname(__file__), "*.py"))
__all__ = [
basename(f)[:-3] for f in modules if isfile(f) and not f.endswith("__init__.py")
]
| data/torch_geometric-2.5.0/torch_geometric/graphgym/contrib/stage/__init__.py | 242 | 82 | 7,367 |
LOAD_CONST 0
LOAD_CONST ('dirname', 'basename', 'isfile', 'join')
IMPORT_NAME os.path
IMPORT_FROM dirname
STORE_NAME dirname
IMPORT_FROM basename
STORE_NAME basename
IMPORT_FROM isfile
STORE_NAME isfile
IMPORT_FROM join
STORE_NAME join
POP_TOP
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME glob
STORE_NAME glob
LOAD_NAME gl... | from os.path import dirname, basename, isfile, join
import glob
modules = glob.glob(join(dirname(__file__), "*.py"))
__all__ = [
basename(f)[:-3] for f in modules if isfile(f) and not f.endswith("__init__.py")
]
| data/torch_geometric-2.5.0/torch_geometric/graphgym/contrib/transform/__init__.py | 242 | 82 | 7,369 |
LOAD_CONST 0
LOAD_CONST ('dirname', 'basename', 'isfile', 'join')
IMPORT_NAME os.path
IMPORT_FROM dirname
STORE_NAME dirname
IMPORT_FROM basename
STORE_NAME basename
IMPORT_FROM isfile
STORE_NAME isfile
IMPORT_FROM join
STORE_NAME join
POP_TOP
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME glob
STORE_NAME glob
LOAD_NAME gl... | from os.path import dirname, basename, isfile, join
import glob
modules = glob.glob(join(dirname(__file__), "*.py"))
__all__ = [
basename(f)[:-3] for f in modules if isfile(f) and not f.endswith("__init__.py")
]
| data/torch_geometric-2.5.0/torch_geometric/graphgym/contrib/pooling/__init__.py | 242 | 82 | 7,365 |
LOAD_CONST '\nMultipledispatch handlers for ``Predicate`` are implemented here.\nHandlers in this module are not directly imported to other modules in\norder to avoid circular import problem.\n'
STORE_NAME __doc__
LOAD_CONST 1
LOAD_CONST ('AskHandler', 'CommonHandler', 'test_closed_group')
IMPORT_NAME common
IMPORT_FR... | """
Multipledispatch handlers for ``Predicate`` are implemented here.
Handlers in this module are not directly imported to other modules in
order to avoid circular import problem.
"""
from .common import AskHandler, CommonHandler, test_closed_group
__all__ = ["AskHandler", "CommonHandler", "test_closed_group"]
| data/sympy-1.12/sympy/assumptions/handlers/__init__.py | 142 | 82 | 228,868 |
LOAD_CONST 0
LOAD_CONST ('dirname', 'basename', 'isfile', 'join')
IMPORT_NAME os.path
IMPORT_FROM dirname
STORE_NAME dirname
IMPORT_FROM basename
STORE_NAME basename
IMPORT_FROM isfile
STORE_NAME isfile
IMPORT_FROM join
STORE_NAME join
POP_TOP
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME glob
STORE_NAME glob
LOAD_NAME gl... | from os.path import dirname, basename, isfile, join
import glob
modules = glob.glob(join(dirname(__file__), "*.py"))
__all__ = [
basename(f)[:-3] for f in modules if isfile(f) and not f.endswith("__init__.py")
]
| data/torch_geometric-2.5.0/torch_geometric/graphgym/contrib/encoder/__init__.py | 242 | 82 | 7,364 |
LOAD_CONST 0
LOAD_CONST ('TestCase',)
IMPORT_NAME unittest
IMPORT_FROM TestCase
STORE_NAME TestCase
POP_TOP
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME asyncio
STORE_NAME asyncio
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME inject
STORE_NAME inject
LOAD_BUILD_CLASS
LOAD_CONST <code object BaseTestInject at 0x7faab831f030, ... | from unittest import TestCase
import asyncio
import inject
class BaseTestInject(TestCase):
def tearDown(self):
inject.clear()
def run_async(self, awaitable):
loop = asyncio.get_event_loop()
return loop.run_until_complete(awaitable)
| data/inject-5.2.0/test/__init__.py | 314 | 82 | 83,380 |
LOAD_CONST 0
LOAD_CONST ('resource',)
IMPORT_NAME openstack
IMPORT_FROM resource
STORE_NAME resource
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object Version at 0x7fab7038a300, file "f.py", line 4>
LOAD_CONST 'Version'
MAKE_FUNCTION
LOAD_CONST 'Version'
LOAD_NAME resource
LOAD_ATTR Resource
CALL_FUNCTION
STORE_NAME Ve... | from openstack import resource
class Version(resource.Resource):
resource_key = "version"
resources_key = "versions"
base_path = "/"
allow_list = True
links = resource.Body("links")
status = resource.Body("status")
updated = resource.Body("updated")
| data/openstacksdk-2.1.0/openstack/baremetal/version.py | 204 | 82 | 284,606 |
LOAD_CONST '\nSome simple functions that we will use in our tests.\n'
STORE_NAME __doc__
LOAD_CONST <code object larger_than_two at 0x7fab425a9780, file "f.py", line 6>
LOAD_CONST 'larger_than_two'
MAKE_FUNCTION
STORE_NAME larger_than_two
LOAD_CONST <code object has_three_elements at 0x7fab425a95d0, file "f.py", line... | """
Some simple functions that we will use in our tests.
"""
def larger_than_two(value):
return value > 2
def has_three_elements(value):
return len(value) == 3
def is_a_greeting(value):
return value in ["Hello", "Goodbye"]
| data/ddt-1.7.1/test/mycode.py | 250 | 82 | 163,395 |
LOAD_CONST 0
LOAD_CONST ('Enum',)
IMPORT_NAME enum
IMPORT_FROM Enum
STORE_NAME Enum
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object StyleValues at 0x7f8e2fb9c9c0, file "f.py", line 4>
LOAD_CONST 'StyleValues'
MAKE_FUNCTION
LOAD_CONST 'StyleValues'
LOAD_NAME str
LOAD_NAME Enum
CALL_FUNCTION
STORE_NAME StyleValues
LOAD... | from enum import Enum
class StyleValues(str, Enum):
matrix = "matrix"
label = "label"
form = "form"
simple = "simple"
spaceDelimited = "spaceDelimited"
pipeDelimited = "pipeDelimited"
deepObject = "deepObject"
| data/flask_openapi3-3.0.2/flask_openapi3/models/style_values.py | 196 | 82 | 405,876 |
LOAD_CONST 0
LOAD_CONST ('BaseExtractor', 'TaskMetadata')
IMPORT_NAME openlineage.airflow.extractors.base
IMPORT_FROM BaseExtractor
STORE_NAME BaseExtractor
IMPORT_FROM TaskMetadata
STORE_NAME TaskMetadata
POP_TOP
LOAD_CONST 0
LOAD_CONST ('Extractors',)
IMPORT_NAME openlineage.airflow.extractors.extractors
IMPORT_FROM... | from openlineage.airflow.extractors.base import BaseExtractor, TaskMetadata
from openlineage.airflow.extractors.extractors import Extractors
from openlineage.airflow.extractors.manager import ExtractorManager
__all__ = [Extractors, BaseExtractor, TaskMetadata, ExtractorManager]
| data/openlineage-airflow-1.8.0/openlineage/airflow/extractors/__init__.py | 161 | 82 | 205,889 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME os
STORE_NAME os
LOAD_CONST '__version__'
LOAD_CONST 'test'
BUILD_LIST
STORE_NAME __all__
SETUP_EXCEPT to 34
LOAD_CONST 1
LOAD_CONST ('version',)
IMPORT_NAME version
IMPORT_FROM version
STORE_NAME __version__
POP_TOP
POP_BLOCK
JUMP_FORWARD to 58
DUP_TOP
LOAD_NAME ImportError... | import os
__all__ = ["__version__", "test"]
try:
from .version import version as __version__
except ImportError:
__version__ = ""
from astropy.tests.runner import TestRunner
test = TestRunner.make_test_runner_in(os.path.dirname(__file__))
| data/pyvo-1.5/pyvo/_astropy_init.py | 181 | 82 | 206,680 |
LOAD_CONST 0
LOAD_CONST ('Enum',)
IMPORT_NAME enum
IMPORT_FROM Enum
STORE_NAME Enum
POP_TOP
LOAD_CONST 0
LOAD_CONST ('CaseInsensitiveEnumMeta',)
IMPORT_NAME azure.core
IMPORT_FROM CaseInsensitiveEnumMeta
STORE_NAME CaseInsensitiveEnumMeta
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object MaterializationType at 0x7f8ab... | from enum import Enum
from azure.core import CaseInsensitiveEnumMeta
class MaterializationType(str, Enum, metaclass=CaseInsensitiveEnumMeta):
"""Materialization Type Enum"""
RECURRENT_MATERIALIZATION = 1
BACKFILL_MATERIALIZATION = 2
| data/azure-ai-ml-1.13.0/azure/ai/ml/entities/_feature_set/materialization_type.py | 225 | 82 | 426,026 |
LOAD_CONST 0
LOAD_CONST ('models',)
IMPORT_NAME django.db
IMPORT_FROM models
STORE_NAME models
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object SillyModel at 0x7f8e2fec3c90, file "f.py", line 4>
LOAD_CONST 'SillyModel'
MAKE_FUNCTION
LOAD_CONST 'SillyModel'
LOAD_NAME models
LOAD_ATTR Model
CALL_FUNCTION
STORE_NAME Sill... | from django.db import models
class SillyModel(models.Model):
silly_field = models.BooleanField(default=False)
silly_tribble = models.ForeignKey("migrations.Tribble", models.CASCADE)
is_trouble = models.BooleanField(default=True)
| data/Django-5.0.2/tests/migrations/migrations_test_apps/unmigrated_app/models.py | 211 | 82 | 325,760 |
LOAD_CONST 0
LOAD_CONST ('annotations',)
IMPORT_NAME __future__
IMPORT_FROM annotations
STORE_NAME annotations
POP_TOP
SETUP_EXCEPT to 70
LOAD_CONST 0
LOAD_CONST ('Language', 'Parser', 'Tree')
IMPORT_NAME tree_sitter
IMPORT_FROM Language
STORE_NAME Language
IMPORT_FROM Parser
STORE_NAME Parser
IMPORT_FROM Tree
STORE_... | from __future__ import annotations
try:
from tree_sitter import Language, Parser, Tree
from tree_sitter.binding import Query
from tree_sitter_languages import get_language, get_parser
TREE_SITTER = True
except ImportError:
TREE_SITTER = False
| data/textual-0.52.1/src/textual/_tree_sitter.py | 218 | 82 | 26,621 |
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 ('decode_predictions',)
IMPORT_NAME keras.src.applications.mobilenet_v3
IMPORT_FROM decode_predictions
STORE_NAME decode_predictions
POP_TOP
LO... | """DO NOT EDIT.
This file was autogenerated. Do not edit it by hand,
since your modifications would be overwritten.
"""
from keras.src.applications.mobilenet_v3 import decode_predictions
from keras.src.applications.mobilenet_v3 import preprocess_input
| data/keras-nightly-3.1.0.dev2024022103/keras/applications/mobilenet_v3/__init__.py | 139 | 82 | 284,939 |
LOAD_CONST 0
LOAD_CONST ('Enum',)
IMPORT_NAME enum
IMPORT_FROM Enum
STORE_NAME Enum
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object ExchangeIdFormat at 0x7fab70027660, file "f.py", line 4>
LOAD_CONST 'ExchangeIdFormat'
MAKE_FUNCTION
LOAD_CONST 'ExchangeIdFormat'
LOAD_NAME str
LOAD_NAME Enum
CALL_FUNCTION
STORE_NAME E... | from enum import Enum
class ExchangeIdFormat(str, Enum):
EntryId = ("entryId",)
EwsId = ("ewsId",)
ImmutableEntryId = ("immutableEntryId",)
RestId = ("restId",)
RestImmutableEntryId = ("restImmutableEntryId",)
| data/msgraph-sdk-1.1.0/msgraph/generated/models/exchange_id_format.py | 199 | 82 | 261,845 |
LOAD_CONST 'John Hollowell'
STORE_NAME __author__
LOAD_CONST '(c) John Hollowell 2022'
STORE_NAME __copyright__
LOAD_CONST 'MIT'
STORE_NAME __license__
LOAD_CONST 1
LOAD_CONST ('*',)
IMPORT_NAME
IMPORT_STAR
LOAD_CONST 1
LOAD_CONST ('*',)
IMPORT_NAME tasks
IMPORT_STAR
LOAD_CONST None
RETURN_VALUE | __author__ = "John Hollowell"
__copyright__ = "(c) John Hollowell 2022"
__license__ = "MIT"
from . import * # noqa: F401 F403
from .tasks import * # noqa: F401 F403
| data/proxmoxer-2.0.1/proxmoxer/tools/__init__.py | 84 | 82 | 69,997 |
LOAD_CONST 0
LOAD_CONST ('Enum',)
IMPORT_NAME enum
IMPORT_FROM Enum
STORE_NAME Enum
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object PrintOrientation at 0x7fab820f4660, file "f.py", line 4>
LOAD_CONST 'PrintOrientation'
MAKE_FUNCTION
LOAD_CONST 'PrintOrientation'
LOAD_NAME str
LOAD_NAME Enum
CALL_FUNCTION
STORE_NAME P... | from enum import Enum
class PrintOrientation(str, Enum):
Portrait = ("portrait",)
Landscape = ("landscape",)
ReverseLandscape = ("reverseLandscape",)
ReversePortrait = ("reversePortrait",)
UnknownFutureValue = ("unknownFutureValue",)
| data/msgraph-sdk-1.1.0/msgraph/generated/models/print_orientation.py | 196 | 82 | 261,731 |
LOAD_CONST 'Generated API for package: tensorflow_examples.lite.model_maker.third_party.recommendation.ml.model.recommendation_model_launcher.'
STORE_NAME __doc__
LOAD_CONST 0
LOAD_CONST ('*',)
IMPORT_NAME tensorflow_examples.lite.model_maker.third_party.recommendation.ml.model.recommendation_model_launcher
IMPORT_STA... | """Generated API for package: tensorflow_examples.lite.model_maker.third_party.recommendation.ml.model.recommendation_model_launcher."""
from tensorflow_examples.lite.model_maker.third_party.recommendation.ml.model.recommendation_model_launcher import *
| data/tflite-model-maker-0.4.3/src/tflite_model_maker/python/third_party/recommendation/ml/model/recommendation_model_launcher.py | 102 | 82 | 401,205 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME warnings
STORE_NAME warnings
LOAD_CONST 0
LOAD_CONST ('interface', 'WebCase', 'cleanHeaders', 'shb', 'openURL', 'ServerError', 'server_error')
IMPORT_NAME cheroot.test.webtest
IMPORT_FROM interface
STORE_NAME interface
IMPORT_FROM WebCase
STORE_NAME WebCase
IMPORT_FROM cleanHea... | import warnings
from cheroot.test.webtest import ( # noqa
interface,
WebCase,
cleanHeaders,
shb,
openURL,
ServerError,
server_error,
)
warnings.warn("Use cheroot.test.webtest", DeprecationWarning)
| data/CherryPy-18.9.0/cherrypy/test/webtest.py | 151 | 82 | 229,895 |
LOAD_CONST 0
LOAD_CONST ('Any',)
IMPORT_NAME typing
IMPORT_FROM Any
STORE_NAME Any
POP_TOP
LOAD_NAME str
LOAD_NAME Any
LOAD_NAME str
LOAD_CONST ('md', 'kwargs', 'return')
BUILD_CONST_KEY_MAP
LOAD_CONST <code object on_page_markdown at 0x7fab823a79c0, file "f.py", line 4>
LOAD_CONST 'on_page_markdown'
MAKE_FUNCTION
STO... | from typing import Any
def on_page_markdown(md: str, **kwargs: Any) -> str:
T = "::: app_model.types"
T2 = T + "\n\toptions:\n\t\tdocstring_section_style: table"
return md.replace(T, T2)
| data/app_model-0.2.4/docs/my_hooks.py | 171 | 82 | 42,352 |
LOAD_CONST 0
LOAD_CONST ('PiCalculator',)
IMPORT_NAME picalculator
IMPORT_FROM PiCalculator
STORE_NAME PiCalculator
POP_TOP
LOAD_CONST <code object test at 0x7faa7c009540, file "f.py", line 4>
LOAD_CONST 'test'
MAKE_FUNCTION
STORE_NAME test
LOAD_CONST None
RETURN_VALUE
LOAD_GLOBAL PiCalculator
LOAD_CONST 10
LOAD_CONS... | from picalculator import PiCalculator
def test():
pc = PiCalculator(10, "T")
tasks = pc.submit_tasks()
for task in tasks:
task.run()
print(sum(task.result for task in tasks) / pc.n_cpu)
pc.close()
| data/plac-1.4.2/doc/test_pi.py | 279 | 82 | 112,212 |
LOAD_CONST 0
LOAD_CONST ('dirname', 'basename', 'isfile', 'join')
IMPORT_NAME os.path
IMPORT_FROM dirname
STORE_NAME dirname
IMPORT_FROM basename
STORE_NAME basename
IMPORT_FROM isfile
STORE_NAME isfile
IMPORT_FROM join
STORE_NAME join
POP_TOP
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME glob
STORE_NAME glob
LOAD_NAME gl... | from os.path import dirname, basename, isfile, join
import glob
modules = glob.glob(join(dirname(__file__), "*.py"))
__all__ = [
basename(f)[:-3] for f in modules if isfile(f) and not f.endswith("__init__.py")
]
| data/torch_geometric-2.5.0/torch_geometric/graphgym/contrib/loader/__init__.py | 242 | 82 | 7,363 |
LOAD_CONST 0
LOAD_CONST ('migrations',)
IMPORT_NAME django.db
IMPORT_FROM migrations
STORE_NAME migrations
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object Migration at 0x7f8e2fec3300, file "f.py", line 4>
LOAD_CONST 'Migration'
MAKE_FUNCTION
LOAD_CONST 'Migration'
LOAD_NAME migrations
LOAD_ATTR Migration
CALL_FUNCTIO... | from django.db import migrations
class Migration(migrations.Migration):
replaces = [
("app1", "2_auto"),
("app1", "3_auto"),
]
dependencies = [("app1", "1_auto"), ("app2", "1_squashed_2")]
| data/Django-5.0.2/tests/migrations/test_migrations_squashed_ref_squashed/app1/2_squashed_3.py | 186 | 82 | 325,820 |
SETUP_EXCEPT to 26
LOAD_CONST 1
LOAD_CONST ('_levenshtein',)
IMPORT_NAME
IMPORT_FROM _levenshtein
STORE_NAME _levenshtein
POP_TOP
LOAD_CONST 1
LOAD_CONST ('*',)
IMPORT_NAME _levenshtein
IMPORT_STAR
POP_BLOCK
JUMP_FORWARD to 50
DUP_TOP
LOAD_NAME ImportError
COMPARE_OP exception match
POP_JUMP_IF_FALSE
POP_TOP
POP_TOP... | try:
from . import _levenshtein
from ._levenshtein import *
except ImportError:
_levenshtein = None
else:
__doc__ = _levenshtein.__doc__
__version__ = "0.13.2"
__author__ = "Antti Haapala"
| data/python-Levenshtein-wheels-0.13.2/Levenshtein/__init__.py | 161 | 82 | 397,899 |
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 RedirectsConfig at 0x7f8af04b89c0, fil... | from django.apps import AppConfig
from django.utils.translation import gettext_lazy as _
class RedirectsConfig(AppConfig):
default_auto_field = "django.db.models.AutoField"
name = "django.contrib.redirects"
verbose_name = _("Redirects")
| data/Django-5.0.2/django/contrib/redirects/apps.py | 219 | 82 | 326,677 |
LOAD_CONST 0
LOAD_CONST ('App',)
IMPORT_NAME textual.app
IMPORT_FROM App
STORE_NAME App
POP_TOP
LOAD_CONST 0
LOAD_CONST ('Widget',)
IMPORT_NAME textual.widget
IMPORT_FROM Widget
STORE_NAME Widget
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object HeightApp at 0x7faa51f69ed0, file "f.py", line 5>
LOAD_CONST 'HeightApp'
... | from textual.app import App
from textual.widget import Widget
class HeightApp(App):
CSS_PATH = "height.tcss"
def compose(self):
yield Widget()
if __name__ == "__main__":
app = HeightApp()
app.run()
| data/textual-0.52.1/docs/examples/styles/height.py | 263 | 82 | 26,496 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME typer
STORE_NAME typer
LOAD_CONST 0
LOAD_CONST ('Annotated',)
IMPORT_NAME typing_extensions
IMPORT_FROM Annotated
STORE_NAME Annotated
POP_TOP
LOAD_NAME Annotated
LOAD_NAME typer
LOAD_ATTR FileTextWrite
LOAD_NAME typer
LOAD_METHOD Option
CALL_METHOD
BUILD_TUPLE
BINARY_SUBSCR
L... | import typer
from typing_extensions import Annotated
def main(config: Annotated[typer.FileTextWrite, typer.Option()]):
config.write("Some config written by the app")
print("Config written")
if __name__ == "__main__":
typer.run(main)
| data/typer-0.9.0/docs_src/parameter_types/file/tutorial002_an.py | 201 | 82 | 224,505 |
LOAD_CONST 1
LOAD_CONST ('MultitaskPromptTuningConfig', 'MultitaskPromptTuningInit')
IMPORT_NAME config
IMPORT_FROM MultitaskPromptTuningConfig
STORE_NAME MultitaskPromptTuningConfig
IMPORT_FROM MultitaskPromptTuningInit
STORE_NAME MultitaskPromptTuningInit
POP_TOP
LOAD_CONST 1
LOAD_CONST ('MultitaskPromptEmbedding',)... | from .config import MultitaskPromptTuningConfig, MultitaskPromptTuningInit
from .model import MultitaskPromptEmbedding
__all__ = [
"MultitaskPromptTuningConfig",
"MultitaskPromptTuningInit",
"MultitaskPromptEmbedding",
]
| data/peft-0.8.2/src/peft/tuners/multitask_prompt_tuning/__init__.py | 165 | 82 | 11,705 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME unittest
STORE_NAME unittest
LOAD_BUILD_CLASS
LOAD_CONST <code object TestFailAssert at 0x7fab8019bdb0, file "f.py", line 4>
LOAD_CONST 'TestFailAssert'
MAKE_FUNCTION
LOAD_CONST 'TestFailAssert'
LOAD_NAME unittest
LOAD_ATTR TestCase
CALL_FUNCTION
STORE_NAME TestFailAssert
LOAD_... | import unittest
class TestFailAssert(unittest.TestCase):
def test_failing_assert(self):
x = True
y = False
assert x
assert y
def test_failing_assert2(self):
p = 1
q = 0
assert p
assert q
| data/nose2-0.14.1/nose2/tests/functional/support/scenario/pretty_asserts/ignore_passing/test_prettyassert_ignore_passing.py | 339 | 82 | 310,249 |
LOAD_CONST ':mod:`wirerope` --- Universal method/function wrapper.\n=========================================================\n'
STORE_NAME __doc__
LOAD_CONST 1
LOAD_CONST ('__version__',)
IMPORT_NAME _version
IMPORT_FROM __version__
STORE_NAME __version__
POP_TOP
LOAD_CONST 1
LOAD_CONST ('Wire',)
IMPORT_NAME wire
IM... | """:mod:`wirerope` --- Universal method/function wrapper.
=========================================================
"""
from ._version import __version__
from .wire import Wire
from .rope import WireRope, RopeCore
__all__ = ("__version__", "Wire", "RopeCore", "WireRope")
| data/wirerope-0.4.7/wirerope/__init__.py | 162 | 82 | 351,590 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME typer
STORE_NAME typer
LOAD_NAME typer
LOAD_ATTR Argument
LOAD_CONST 'World'
LOAD_CONST 'Who to greet'
LOAD_CONST ('help',)
CALL_FUNCTION
BUILD_TUPLE
LOAD_NAME str
LOAD_CONST ('name',)
BUILD_CONST_KEY_MAP
LOAD_CONST <code object main at 0x7fab641e7030, file "f.py", line 4>
LOAD... | import typer
def main(name: str = typer.Argument("World", help="Who to greet")):
"""
Say hi to NAME very gently, like Dirk.
"""
print(f"Hello {name}")
if __name__ == "__main__":
typer.run(main)
| data/typer-0.9.0/docs_src/arguments/help/tutorial003.py | 162 | 82 | 224,555 |
LOAD_CONST 0
LOAD_CONST ('App', 'ComposeResult')
IMPORT_NAME textual.app
IMPORT_FROM App
STORE_NAME App
IMPORT_FROM ComposeResult
STORE_NAME ComposeResult
POP_TOP
LOAD_CONST 0
LOAD_CONST ('DirectoryTree',)
IMPORT_NAME textual.widgets
IMPORT_FROM DirectoryTree
STORE_NAME DirectoryTree
POP_TOP
LOAD_BUILD_CLASS
LOAD_CON... | from textual.app import App, ComposeResult
from textual.widgets import DirectoryTree
class DirectoryTreeApp(App):
def compose(self) -> ComposeResult:
yield DirectoryTree("./")
if __name__ == "__main__":
app = DirectoryTreeApp()
app.run()
| data/textual-0.52.1/docs/examples/widgets/directory_tree.py | 286 | 82 | 26,311 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME scrapy
STORE_NAME scrapy
LOAD_BUILD_CLASS
LOAD_CONST <code object NormalSpider at 0x7f8b2000bae0, file "f.py", line 4>
LOAD_CONST 'NormalSpider'
MAKE_FUNCTION
LOAD_CONST 'NormalSpider'
LOAD_NAME scrapy
LOAD_ATTR Spider
CALL_FUNCTION
STORE_NAME NormalSpider
LOAD_CONST None
RETUR... | import scrapy
class NormalSpider(scrapy.Spider):
name = "normal"
custom_settings = {
"ITEM_PIPELINES": {"test_spider.pipelines.TestSpiderPipeline": 300}
}
def parse(self, response):
pass
| data/Scrapy-2.11.1/tests/test_cmdline_crawl_with_pipeline/test_spider/spiders/normal.py | 224 | 82 | 332,370 |
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 sys
STORE_NAME sys
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME json
STORE_NAME json
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME typing
STORE_NAME T
LOAD_CONST 1
L... | from __future__ import annotations
import sys
import json
import typing as T
from . import meson_exe
def run(args: T.List[str]) -> int:
meson_exe.run(args)
print(json.dumps(list(sys.modules.keys())))
return 0
| data/meson-1.3.2/mesonbuild/scripts/test_loaded_modules.py | 227 | 82 | 82,278 |
LOAD_CONST '\nThis module contains the :class:`.SmartList` type, as well as its\n:class:`.ListProxy` child, which together implement a list whose sublists\nreflect changes made to the main list, and vice-versa.\n'
STORE_NAME __doc__
LOAD_CONST 1
LOAD_CONST ('ListProxy',)
IMPORT_NAME list_proxy
IMPORT_FROM ListProxy
ST... | """
This module contains the :class:`.SmartList` type, as well as its
:class:`.ListProxy` child, which together implement a list whose sublists
reflect changes made to the main list, and vice-versa.
"""
from .list_proxy import ListProxy as _ListProxy
from .smart_list import SmartList
| data/mwparserfromhell-0.6.6/src/mwparserfromhell/smart_list/__init__.py | 127 | 82 | 123,122 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME unittest
STORE_NAME unittest
LOAD_BUILD_CLASS
LOAD_CONST <code object FailureTestCase1 at 0x7f8ed39ed6f0, file "f.py", line 4>
LOAD_CONST 'FailureTestCase1'
MAKE_FUNCTION
LOAD_CONST 'FailureTestCase1'
LOAD_NAME unittest
LOAD_ATTR TestCase
CALL_FUNCTION
STORE_NAME FailureTestCas... | import unittest
class FailureTestCase1(unittest.TestCase):
layer = "layers.LayerA"
def test(self):
raise Exception
class FailureTestCase2(unittest.TestCase):
layer = "layers.LayerB"
def test(self):
raise Exception
| data/zope.testrunner-6.3.1/src/zope/testrunner/tests/testrunner-ex-37/stop_on_failure.py | 367 | 82 | 115,744 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME io
STORE_NAME io
LOAD_BUILD_CLASS
LOAD_CONST <code object CatchZeroByteWriter at 0x7faa528b0e40, file "f.py", line 4>
LOAD_CONST 'CatchZeroByteWriter'
MAKE_FUNCTION
LOAD_CONST 'CatchZeroByteWriter'
LOAD_NAME io
LOAD_ATTR BufferedWriter
CALL_FUNCTION
STORE_NAME CatchZeroByteWrit... | import io
class CatchZeroByteWriter(io.BufferedWriter):
"""File handle to intercept 0-byte writes."""
def write(self, buffer):
nbytes = super().write(buffer)
if nbytes == 0:
raise ValueError("This writer does not allow empty writes")
return nbytes
| data/astropy-6.0.0/astropy/io/tests/safeio.py | 269 | 82 | 21,014 |
LOAD_CONST 'AUTOGENERATED. DO NOT EDIT.'
STORE_NAME __doc__
LOAD_CONST 0
LOAD_CONST ('get_label_names',)
IMPORT_NAME tf_keras.src.datasets.reuters
IMPORT_FROM get_label_names
STORE_NAME get_label_names
POP_TOP
LOAD_CONST 0
LOAD_CONST ('get_word_index',)
IMPORT_NAME tf_keras.src.datasets.reuters
IMPORT_FROM get_word_i... | """AUTOGENERATED. DO NOT EDIT."""
from tf_keras.src.datasets.reuters import get_label_names
from tf_keras.src.datasets.reuters import get_word_index
from tf_keras.src.datasets.reuters import load_data
| data/tf_keras-nightly-2.17.0.dev2024022110/tf_keras/api/_v2/keras/datasets/reuters/__init__.py | 162 | 82 | 165,300 |
LOAD_CONST 0
LOAD_CONST ('ChoiceSet',)
IMPORT_NAME utilities.choices
IMPORT_FROM ChoiceSet
STORE_NAME ChoiceSet
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object TypeChoices at 0x7f88677c1a50, file "f.py", line 4>
LOAD_CONST 'TypeChoices'
MAKE_FUNCTION
LOAD_CONST 'TypeChoices'
LOAD_NAME ChoiceSet
CALL_FUNCTION
STORE_NA... | from utilities.choices import ChoiceSet
class TypeChoices(ChoiceSet):
TYPE_DEVICE = "device-types"
TYPE_MODULE = "module-types"
CHOICES = (
(TYPE_DEVICE, "Devices"),
(TYPE_MODULE, "Modules"),
)
| data/netbox-metatype-importer-0.3.0/netbox_metatype_importer/choices.py | 195 | 82 | 336,790 |
LOAD_CONST 0
LOAD_CONST ('FunctionalTestCase',)
IMPORT_NAME nose2.tests._common
IMPORT_FROM FunctionalTestCase
STORE_NAME FunctionalTestCase
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object TestDunderTestPlugin at 0x7fab423bd1e0, file "f.py", line 4>
LOAD_CONST 'TestDunderTestPlugin'
MAKE_FUNCTION
LOAD_CONST 'TestDund... | from nose2.tests._common import FunctionalTestCase
class TestDunderTestPlugin(FunctionalTestCase):
def test_dunder(self):
proc = self.runIn("scenario/dundertest_attribute", "-v")
self.assertTestRunOutputMatches(proc, stderr="Ran 0 tests")
| data/nose2-0.14.1/nose2/tests/functional/test_dundertest_plugin.py | 268 | 82 | 310,172 |
LOAD_CONST 0
LOAD_CONST ('alembic_config', 'alembic_engine', 'alembic_runner')
IMPORT_NAME pytest_alembic.plugin.fixtures
IMPORT_FROM alembic_config
STORE_NAME alembic_config
IMPORT_FROM alembic_engine
STORE_NAME alembic_engine
IMPORT_FROM alembic_runner
STORE_NAME alembic_runner
POP_TOP
LOAD_CONST 0
LOAD_CONST ('pyte... | from pytest_alembic.plugin.fixtures import (
alembic_config,
alembic_engine,
alembic_runner,
)
from pytest_alembic.plugin.hooks import (
pytest_addoption,
pytest_configure,
pytest_sessionstart,
)
| data/pytest_alembic-0.10.7/src/pytest_alembic/plugin/__init__.py | 171 | 82 | 154,392 |
LOAD_CONST 0
LOAD_CONST ('TestCase', 'min_os_level')
IMPORT_NAME PyObjCTools.TestSupport
IMPORT_FROM TestCase
STORE_NAME TestCase
IMPORT_FROM min_os_level
STORE_NAME min_os_level
POP_TOP
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME Quartz
STORE_NAME Quartz
LOAD_BUILD_CLASS
LOAD_CONST <code object TestCABase at 0x7faa503b... | from PyObjCTools.TestSupport import TestCase, min_os_level
import Quartz
class TestCABase(TestCase):
@min_os_level("10.5")
def testFunctions(self):
v = Quartz.CACurrentMediaTime()
self.assertIsInstance(v, float)
| data/pyobjc-framework-Quartz-10.1/PyObjCTest/test_cabase.py | 280 | 82 | 133,611 |
LOAD_CONST 'Generated API for package: tensorflow_examples.lite.model_maker.third_party.recommendation.ml.model.recommendation_model_launcher.'
STORE_NAME __doc__
LOAD_CONST 0
LOAD_CONST ('*',)
IMPORT_NAME tensorflow_examples.lite.model_maker.third_party.recommendation.ml.model.recommendation_model_launcher
IMPORT_STA... | """Generated API for package: tensorflow_examples.lite.model_maker.third_party.recommendation.ml.model.recommendation_model_launcher."""
from tensorflow_examples.lite.model_maker.third_party.recommendation.ml.model.recommendation_model_launcher import *
| data/tflite-model-maker-nightly-0.4.4.dev202402210609/src/tflite_model_maker/python/third_party/recommendation/ml/model/recommendation_model_launcher.py | 102 | 82 | 389,298 |
LOAD_CONST 'Generated API for package: tensorflow_examples.lite.model_maker.third_party.efficientdet.object_detection.faster_rcnn_box_coder.'
STORE_NAME __doc__
LOAD_CONST 0
LOAD_CONST ('*',)
IMPORT_NAME tensorflow_examples.lite.model_maker.third_party.efficientdet.object_detection.faster_rcnn_box_coder
IMPORT_STAR
LO... | """Generated API for package: tensorflow_examples.lite.model_maker.third_party.efficientdet.object_detection.faster_rcnn_box_coder."""
from tensorflow_examples.lite.model_maker.third_party.efficientdet.object_detection.faster_rcnn_box_coder import *
| data/tflite-model-maker-nightly-0.4.4.dev202402210609/src/tflite_model_maker/python/third_party/efficientdet/object_detection/faster_rcnn_box_coder.py | 102 | 82 | 389,335 |
LOAD_CONST 1
LOAD_CONST ('matrix',)
IMPORT_NAME missingno
IMPORT_FROM matrix
STORE_NAME matrix
POP_TOP
LOAD_CONST 1
LOAD_CONST ('bar',)
IMPORT_NAME missingno
IMPORT_FROM bar
STORE_NAME bar
POP_TOP
LOAD_CONST 1
LOAD_CONST ('heatmap',)
IMPORT_NAME missingno
IMPORT_FROM heatmap
STORE_NAME heatmap
POP_TOP
LOAD_CONST 1
L... | from .missingno import matrix
from .missingno import bar
from .missingno import heatmap
from .missingno import dendrogram
from .missingno import nullity_filter
from .missingno import nullity_sort
from ._version import __version__
from .utils import nullity_filter, nullity_sort
| data/missingno-0.5.2/missingno/__init__.py | 250 | 82 | 270,812 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME pytest
STORE_NAME pytest
LOAD_CONST 0
LOAD_CONST ('local',)
IMPORT_NAME plumbum
IMPORT_FROM local
STORE_NAME local
POP_TOP
LOAD_CONST 0
LOAD_CONST ('skip_on_windows',)
IMPORT_NAME plumbum._testtools
IMPORT_FROM skip_on_windows
STORE_NAME skip_on_windows
POP_TOP
LOAD_NAME pyte... | import pytest
from plumbum import local
from plumbum._testtools import skip_on_windows
pytestmark = pytest.mark.sudo
class TestSudo:
@skip_on_windows
def test_as_user(self):
with local.as_root():
local["date"]()
| data/plumbum-1.8.2/tests/test_sudo.py | 306 | 82 | 140,523 |
LOAD_CONST 0
LOAD_CONST ('decapitalize',)
IMPORT_NAME moto.swf.utils
IMPORT_FROM decapitalize
STORE_NAME decapitalize
POP_TOP
LOAD_CONST <code object test_decapitalize at 0x7fab822c5ae0, file "f.py", line 4>
LOAD_CONST 'test_decapitalize'
MAKE_FUNCTION
STORE_NAME test_decapitalize
LOAD_CONST None
RETURN_VALUE
LOAD_CO... | from moto.swf.utils import decapitalize
def test_decapitalize():
cases = {"fooBar": "fooBar", "FooBar": "fooBar", "FOO BAR": "fOO BAR"}
for before, after in cases.items():
assert decapitalize(before) == after
| data/moto-5.0.2/tests/test_swf/test_utils.py | 208 | 82 | 197,660 |
LOAD_CONST 0
LOAD_CONST ('get_logger',)
IMPORT_NAME ddtrace.internal.logger
IMPORT_FROM get_logger
STORE_NAME get_logger
POP_TOP
LOAD_CONST 0
LOAD_CONST ('config',)
IMPORT_NAME ddtrace.settings.dynamic_instrumentation
IMPORT_FROM config
STORE_NAME di_config
POP_TOP
LOAD_CONST 0
LOAD_CONST ('config',)
IMPORT_NAME ddtr... | from ddtrace.internal.logger import get_logger
from ddtrace.settings.dynamic_instrumentation import config as di_config # noqa: F401
from ddtrace.settings.exception_debugging import config as ed_config # noqa: F401
log = get_logger(__name__)
| data/ddtrace-2.6.3/ddtrace/debugging/_config.py | 121 | 82 | 270,622 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME typer
STORE_NAME typer
LOAD_NAME typer
LOAD_METHOD Typer
CALL_METHOD
STORE_NAME app
LOAD_NAME app
LOAD_METHOD command
CALL_METHOD
LOAD_NAME typer
LOAD_ATTR Option
LOAD_CONST Ellipsis
LOAD_CONST True
LOAD_CONST ('prompt',)
CALL_FUNCTION
BUILD_TUPLE
LOAD_NAME str
LOAD_NAME str
... | import typer
app = typer.Typer()
@app.command()
def main(name: str, email: str = typer.Option(..., prompt=True)):
print(f"Hello {name}, your email is: {email}")
if __name__ == "__main__":
app()
| data/typer-0.9.0/docs_src/testing/app02/main.py | 193 | 82 | 224,477 |
SETUP_EXCEPT to 14
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME urlparse
STORE_NAME urlparse
POP_BLOCK
JUMP_FORWARD to 46
DUP_TOP
LOAD_NAME ImportError
COMPARE_OP exception match
POP_JUMP_IF_FALSE
POP_TOP
POP_TOP
POP_TOP
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME urllib.parse
IMPORT_FROM parse
STORE_NAME urlparse
POP_TOP
... | try:
import urlparse
except ImportError:
import urllib.parse as urlparse
def isurl(url):
o = urlparse.urlparse(url)
accpetable = ["http", "https"]
if o[0] in accpetable:
return True
else:
return False
| data/blockdiag-3.0.0/src/blockdiag/utils/urlutil.py | 206 | 82 | 345,838 |
LOAD_CONST '\nTenable OT Security base package\n=======================\n\nThis package covers the Tenable OT Security interface.\n\n.. autoclass:: TenableOT\n :members:\n\n\n.. toctree::\n :hidden:\n :glob:\n\n assets\n events\n plugins\n'
STORE_NAME __doc__
LOAD_CONST 1
LOAD_CONST ('TenableOT',)
IMPORT_NAME session
... | """
Tenable OT Security base package
=======================
This package covers the Tenable OT Security interface.
.. autoclass:: TenableOT
:members:
.. toctree::
:hidden:
:glob:
assets
events
plugins
"""
from .session import TenableOT
| data/pyTenable-1.4.20/tenable/ot/__init__.py | 117 | 82 | 175,244 |
LOAD_BUILD_CLASS
LOAD_CONST <code object SingleLineDocstrings at 0x7f8e2fe58390, file "f.py", line 1>
LOAD_CONST 'SingleLineDocstrings'
MAKE_FUNCTION
LOAD_CONST 'SingleLineDocstrings'
CALL_FUNCTION
STORE_NAME SingleLineDocstrings
LOAD_CONST None
RETURN_VALUE
LOAD_NAME __name__
STORE_NAME __module__
LOAD_CONST 'SingleL... | class SingleLineDocstrings:
"""Double quotes single line class docstring"""
""" Not a docstring """
def foo(self, bar="""not a docstring"""):
"""Double quotes single line method docstring"""
pass
class Nested(foo()[:]):
"""inline docstring"""
pass
| data/flake8-quotes-3.4.0/test/data/docstring_doubles_class.py | 297 | 82 | 396,897 |
LOAD_BUILD_CLASS
LOAD_CONST <code object SingleLineDocstrings at 0x7f8e2fe588a0, file "f.py", line 1>
LOAD_CONST 'SingleLineDocstrings'
MAKE_FUNCTION
LOAD_CONST 'SingleLineDocstrings'
CALL_FUNCTION
STORE_NAME SingleLineDocstrings
LOAD_CONST None
RETURN_VALUE
LOAD_NAME __name__
STORE_NAME __module__
LOAD_CONST 'SingleL... | class SingleLineDocstrings:
"""Double quotes single line class docstring"""
""" Not a docstring """
def foo(self, bar="""not a docstring"""):
"""Double quotes single line method docstring"""
pass
class Nested(foo()[:]):
"""inline docstring"""
pass
| data/flake8-quotes-3.4.0/test/data/docstring_singles_class.py | 297 | 82 | 396,899 |
LOAD_CONST 0
LOAD_CONST ('GetSessionHistoryCallable', 'MessagesOrDictWithMessages', 'RunnableWithMessageHistory')
IMPORT_NAME langchain_core.runnables.history
IMPORT_FROM GetSessionHistoryCallable
STORE_NAME GetSessionHistoryCallable
IMPORT_FROM MessagesOrDictWithMessages
STORE_NAME MessagesOrDictWithMessages
IMPORT_FR... | from langchain_core.runnables.history import (
GetSessionHistoryCallable,
MessagesOrDictWithMessages,
RunnableWithMessageHistory,
)
__all__ = [
"RunnableWithMessageHistory",
"GetSessionHistoryCallable",
"MessagesOrDictWithMessages",
]
| data/langchain-0.1.8/langchain/schema/runnable/history.py | 135 | 82 | 369,152 |
LOAD_CONST 'The spyne.interface.xml_schema package contains an implementation of a subset\nof the Xml Schema 1.0 standard. Volunteers are needed to see whether the brand\nnew Xml Schema 1.1 standard is worth the trouble, and patch as necessary.\n'
STORE_NAME __doc__
LOAD_CONST 0
LOAD_CONST ('XmlSchema',)
IMPORT_NAME s... | """The spyne.interface.xml_schema package contains an implementation of a subset
of the Xml Schema 1.0 standard. Volunteers are needed to see whether the brand
new Xml Schema 1.1 standard is worth the trouble, and patch as necessary.
"""
from spyne.interface.xml_schema._base import XmlSchema
| data/spyne-2.14.0/spyne/interface/xml_schema/__init__.py | 113 | 82 | 223,815 |
LOAD_CONST 0
LOAD_CONST ('VisualStudioCodeCredential',)
IMPORT_NAME azure.identity
IMPORT_FROM VisualStudioCodeCredential
STORE_NAME VisualStudioCodeCredential
POP_TOP
LOAD_CONST <code object test_live at 0x7fab42bdf540, file "f.py", line 4>
LOAD_CONST 'test_live'
MAKE_FUNCTION
STORE_NAME test_live
LOAD_NAME __name__... | from azure.identity import VisualStudioCodeCredential
def test_live():
credential = VisualStudioCodeCredential()
token = credential.get_token("https://vault.azure.net/.default")
print(token)
if __name__ == "__main__":
test_live()
| data/azure-identity-1.15.0/tests/vscode-live/run-test.py | 181 | 82 | 186,824 |
LOAD_CONST '\nTest predict imports\n'
STORE_NAME __doc__
SETUP_EXCEPT to 38
LOAD_CONST 0
LOAD_CONST ('predict',)
IMPORT_NAME skdist.distribute
IMPORT_FROM predict
STORE_NAME predict
POP_TOP
LOAD_CONST 0
LOAD_CONST ('get_prediction_udf',)
IMPORT_NAME skdist.distribute.predict
IMPORT_FROM get_prediction_udf
STORE_NAME... | """
Test predict imports
"""
try:
from skdist.distribute import predict
from skdist.distribute.predict import get_prediction_udf
_import_error = None
except Exception as e:
_import_error = e
def test_predict():
assert _import_error == None
| data/sk-dist-0.1.9/skdist/distribute/tests/test_predict.py | 254 | 82 | 79,470 |
LOAD_CONST 'approve_me'
STORE_NAME Approve
LOAD_CONST 'insufficient_funds__contact'
STORE_NAME InsufficientFundsContactUs
LOAD_CONST 'account_not_authorized__contact'
STORE_NAME AccountNotAuthorizedContactUs
LOAD_CONST 'bank_rejected__update'
STORE_NAME BankRejectedUpdateFundingInformation
LOAD_CONST 'bank_rejected... | Approve = "approve_me"
InsufficientFundsContactUs = "insufficient_funds__contact"
AccountNotAuthorizedContactUs = "account_not_authorized__contact"
BankRejectedUpdateFundingInformation = "bank_rejected__update"
BankRejectedNone = "bank_rejected__none"
| data/braintree-4.26.0/braintree/test/merchant_account.py | 97 | 82 | 327,842 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME re
STORE_NAME re
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME json
STORE_NAME json
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME os
STORE_NAME os
LOAD_NAME open
LOAD_NAME os
LOAD_ATTR path
LOAD_METHOD join
LOAD_NAME os
LOAD_ATTR path
LOAD_METHOD dirname
LOAD_NAME __file__
CALL_METHOD
... | import re
import json
import os
with open(os.path.join(os.path.dirname(__file__), "regexes.json"), "r") as f:
regexes = json.loads(f.read())
for key in regexes:
regexes[key] = re.compile(regexes[key])
| data/truffleHogRegexes-0.0.7/truffleHogRegexes/regexChecks.py | 189 | 82 | 273,302 |
LOAD_CONST 0
LOAD_CONST ('AirflowPlugin',)
IMPORT_NAME airflow.plugins_manager
IMPORT_FROM AirflowPlugin
STORE_NAME AirflowPlugin
POP_TOP
LOAD_CONST 0
LOAD_CONST ('dbnd_airflow_tracking_entrypoint',)
IMPORT_NAME dbnd_airflow.entrypoint
IMPORT_FROM dbnd_airflow_tracking_entrypoint
STORE_NAME dbnd_airflow_tracking_entry... | from airflow.plugins_manager import AirflowPlugin
from dbnd_airflow.entrypoint import dbnd_airflow_tracking_entrypoint
dbnd_airflow_tracking_entrypoint()
class DbndAutoTracking(AirflowPlugin):
name = "dbnd_airflow_auto_tracking"
| data/dbnd-airflow-auto-tracking-1.0.21.5/src/dbnd_airflow_auto_tracking/dbnd_airflow_auto_tracking.py | 238 | 82 | 161,729 |
LOAD_CONST 1
LOAD_CONST ('apriori',)
IMPORT_NAME apriori
IMPORT_FROM apriori
STORE_NAME apriori
POP_TOP
LOAD_CONST 1
LOAD_CONST ('association_rules',)
IMPORT_NAME association_rules
IMPORT_FROM association_rules
STORE_NAME association_rules
POP_TOP
LOAD_CONST 1
LOAD_CONST ('fpgrowth',)
IMPORT_NAME fpgrowth
IMPORT_FROM... | from .apriori import apriori
from .association_rules import association_rules
from .fpgrowth import fpgrowth
from .fpmax import fpmax
from .hmine import hmine
__all__ = ["apriori", "association_rules", "fpgrowth", "fpmax", "hmine"]
| data/mlxtend-0.23.1/mlxtend/frequent_patterns/__init__.py | 197 | 82 | 196,494 |
LOAD_CONST 'Faster-RCNN Object Detection.'
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 ('*',)
IMPORT_NAME faster_rcnn
IMPORT_STAR
LOAD_CONST 1
LOAD_CONST ('*',)
IMPORT_NAME doublehead_rcn... | """Faster-RCNN Object Detection."""
from __future__ import absolute_import
from .faster_rcnn import *
from .doublehead_rcnn import *
from .predefined_models import *
from .rcnn_target import RCNNTargetGenerator, RCNNTargetSampler
from .data_parallel import ForwardBackwardTask
| data/gluoncv-0.10.5.post0/gluoncv/model_zoo/rcnn/faster_rcnn/__init__.py | 203 | 82 | 207,523 |
LOAD_CONST 1
STORE_NAME ISOLATION_LEVEL_READ_UNCOMMITTED
LOAD_CONST 2
STORE_NAME ISOLATION_LEVEL_READ_COMMITTED
LOAD_CONST 3
STORE_NAME ISOLATION_LEVEL_REPEATABLE_READ
LOAD_CONST 4
STORE_NAME ISOLATION_LEVEL_SERIALIZABLE
LOAD_CONST 5
STORE_NAME ISOLATION_LEVEL_SNAPSHOT
LOAD_CONST None
RETURN_VALUE | ISOLATION_LEVEL_READ_UNCOMMITTED = 1
ISOLATION_LEVEL_READ_COMMITTED = 2
ISOLATION_LEVEL_REPEATABLE_READ = 3
ISOLATION_LEVEL_SERIALIZABLE = 4
ISOLATION_LEVEL_SNAPSHOT = 5
| data/python-tds-1.15.0/src/pytds/extensions.py | 101 | 82 | 88,124 |
LOAD_CONST 0
LOAD_CONST ('fields',)
IMPORT_NAME marshmallow
IMPORT_FROM fields
STORE_NAME fields
POP_TOP
LOAD_CONST 0
LOAD_CONST ('CamelCaseSchema',)
IMPORT_NAME tenable.ad.base.schema
IMPORT_FROM CamelCaseSchema
STORE_NAME CamelCaseSchema
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object ReasonSchema at 0x7fab82402ed... | from marshmallow import fields
from tenable.ad.base.schema import CamelCaseSchema
class ReasonSchema(CamelCaseSchema):
id = fields.Int()
codename = fields.Str()
name = fields.Str(allow_none=True)
description = fields.Str(allow_none=True)
| data/pyTenable-1.4.20/tenable/ad/reason/schema.py | 229 | 82 | 175,221 |
LOAD_CONST <code object unique_list at 0x7fab4277ed20, file "f.py", line 1>
LOAD_CONST 'unique_list'
MAKE_FUNCTION
STORE_NAME unique_list
LOAD_CONST None
RETURN_VALUE
LOAD_GLOBAL set
CALL_FUNCTION
STORE_DEREF used
LOAD_CLOSURE used
BUILD_TUPLE
LOAD_CONST <code object <listcomp> at 0x7fab4277ec00, file "f.py", line 7>... | def unique_list(duplicates_list):
"""
Return unique list preserving the order.
https://stackoverflow.com/a/480227
"""
used = set()
unique = [x for x in duplicates_list if not (x in used or used.add(x))]
return unique
| data/cvxpy-1.4.2/cvxpy/utilities/deterministic.py | 188 | 82 | 273,718 |
LOAD_CONST 0
LOAD_CONST ('fields',)
IMPORT_NAME marshmallow
IMPORT_FROM fields
STORE_NAME fields
POP_TOP
LOAD_CONST 0
LOAD_CONST ('CamelCaseSchema',)
IMPORT_NAME tenable.ad.base.schema
IMPORT_FROM CamelCaseSchema
STORE_NAME CamelCaseSchema
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object DashboardSchema at 0x7fab8240... | from marshmallow import fields
from tenable.ad.base.schema import CamelCaseSchema
class DashboardSchema(CamelCaseSchema):
name = fields.Str()
order = fields.Int()
id = fields.Int()
user_id = fields.Int()
dashboard_id = fields.Str()
| data/pyTenable-1.4.20/tenable/ad/dashboard/schema.py | 230 | 82 | 175,207 |
SETUP_ANNOTATIONS
LOAD_CONST '``AbstractDataset`` implementation to load/save image data.'
STORE_NAME __doc__
LOAD_CONST 0
LOAD_CONST ('Any',)
IMPORT_NAME typing
IMPORT_FROM Any
STORE_NAME Any
POP_TOP
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME lazy_loader
STORE_NAME lazy
LOAD_NAME Any
LOAD_NAME __annotations__
LOAD_CO... | """``AbstractDataset`` implementation to load/save image data."""
from typing import Any
import lazy_loader as lazy
ImageDataset: Any
__getattr__, __dir__, __all__ = lazy.attach(
__name__, submod_attrs={"image_dataset": ["ImageDataset"]}
)
| data/kedro-datasets-2.0.0/kedro_datasets/pillow/__init__.py | 146 | 82 | 61,483 |
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 ('load_data',)
IMPORT_NAME keras_core.src.datasets.boston_housing
IMPORT_FROM load_data
STORE_NAME load_data
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_core.src.datasets.boston_housing import load_data
from keras_core.src.datasets.california_housing import load_data
| data/keras-core-0.1.7/keras_core/_tf_keras/datasets/boston_housing/__init__.py | 134 | 82 | 386,037 |
LOAD_CONST 1
LOAD_CONST ('*',)
IMPORT_NAME pro.reports
IMPORT_STAR
LOAD_CONST ('render_template', 'create_report', 'Image', 'Markdown', 'MarkdownStyle', 'formatter')
STORE_NAME __all__
LOAD_CONST None
RETURN_VALUE | from .pro.reports import * # noqa: F401,F403
__all__ = ( # noqa: F405
"render_template",
"create_report",
"Image",
"Markdown",
"MarkdownStyle",
"formatter",
)
| data/xlwings-0.30.13/xlwings/reports.py | 57 | 82 | 118,331 |
LOAD_CONST 0
LOAD_CONST ('Proxy',)
IMPORT_NAME Pyro5.api
IMPORT_FROM Proxy
STORE_NAME Proxy
POP_TOP
LOAD_CONST 0
LOAD_CONST ('Person',)
IMPORT_NAME person
IMPORT_FROM Person
STORE_NAME Person
POP_TOP
LOAD_NAME input
LOAD_CONST 'Enter the uri of the warehouse: '
CALL_FUNCTION
LOAD_METHOD strip
CALL_METHOD
STORE_NAME u... | from Pyro5.api import Proxy
from person import Person
uri = input("Enter the uri of the warehouse: ").strip()
warehouse = Proxy(uri)
janet = Person("Janet")
henry = Person("Henry")
janet.visit(warehouse)
henry.visit(warehouse)
| data/Pyro5-5.15/examples/warehouse/phase2/visit.py | 162 | 82 | 79,031 |
LOAD_CONST 0
LOAD_CONST ('List',)
IMPORT_NAME typing
IMPORT_FROM List
STORE_NAME List
POP_TOP
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME typer
STORE_NAME typer
LOAD_CONST 0
LOAD_CONST ('Annotated',)
IMPORT_NAME typing_extensions
IMPORT_FROM Annotated
STORE_NAME Annotated
POP_TOP
BUILD_LIST
BUILD_TUPLE
LOAD_NAME Annota... | from typing import List
import typer
from typing_extensions import Annotated
def main(number: Annotated[List[float], typer.Option()] = []):
print(f"The sum is {sum(number)}")
if __name__ == "__main__":
typer.run(main)
| data/typer-0.9.0/docs_src/multiple_values/multiple_options/tutorial002_an.py | 218 | 82 | 224,363 |
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 ('decode_predictions',)
IMPORT_NAME keras.src.applications.mobilenet_v3
IMPORT_FROM decode_predictions
STORE_NAME decode_predictions
POP_TOP
LO... | """DO NOT EDIT.
This file was autogenerated. Do not edit it by hand,
since your modifications would be overwritten.
"""
from keras.src.applications.mobilenet_v3 import decode_predictions
from keras.src.applications.mobilenet_v3 import preprocess_input
| data/keras-3.0.5/keras/_tf_keras/keras/applications/mobilenet_v3/__init__.py | 139 | 82 | 349,534 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME string
STORE_NAME string
LOAD_CONST 0
LOAD_CONST ('Mapping',)
IMPORT_NAME collections.abc
IMPORT_FROM Mapping
STORE_NAME Mapping
POP_TOP
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME hypothesis.strategies
IMPORT_FROM strategies
STORE_NAME st
POP_TOP
LOAD_NAME st
LOAD_METHOD text
L... | import string
from collections.abc import Mapping
import hypothesis.strategies as st
text = st.text(f"абвгдеёжзиклмнопрстуфхцчъыьэюя{string.ascii_lowercase}")
__all__ = ("Mapping", text)
| data/marisa-trie-1.1.0/tests/utils.py | 142 | 82 | 441,028 |
LOAD_CONST '474071279654.dkr.ecr.eu-west-1.amazonaws.com'
STORE_NAME REGISTRY
LOAD_CONST 'eu-west-1'
STORE_NAME REGION
LOAD_CONST 's3://474071279654-eu-west-1-configurations'
STORE_NAME CONFIGURATIONS
LOAD_CONST None
RETURN_VALUE | REGISTRY = "474071279654.dkr.ecr.eu-west-1.amazonaws.com"
REGION = "eu-west-1"
CONFIGURATIONS = "s3://474071279654-eu-west-1-configurations"
| data/rbx-3.8.0/rbx/buildtools/__init__.py | 97 | 82 | 137,063 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME venusian
STORE_NAME venusian
LOAD_CONST <code object foo at 0x7faa7508f150, file "f.py", line 4>
LOAD_CONST 'foo'
MAKE_FUNCTION
STORE_NAME foo
LOAD_NAME foo
LOAD_CONST <code object hello at 0x7faa7508f540, file "f.py", line 12>
LOAD_CONST 'hello'
MAKE_FUNCTION
CALL_FUNCTION
ST... | import venusian
def foo(wrapped):
def bar(scanner, name, wrapped):
scanner.config.a = scanner.a
venusian.attach(wrapped, bar)
return wrapped
@foo
def hello():
pass
hello() # appease coverage
| data/pyramid-2.0.2/tests/test_config/pkgs/scanextrakw/__init__.py | 228 | 82 | 19,699 |
LOAD_CONST 0
LOAD_CONST ('APIResourceTestHelpers',)
IMPORT_NAME stripe.api_resources.abstract.test_helpers
IMPORT_FROM APIResourceTestHelpers
STORE_NAME APIResourceTestHelpers
POP_TOP
SETUP_LOOP to 50
LOAD_NAME APIResourceTestHelpers
LOAD_METHOD __subclasses__
CALL_METHOD
GET_ITER
FOR_ITER to 48
STORE_NAME subclass
L... | from stripe.api_resources.abstract.test_helpers import APIResourceTestHelpers
for subclass in APIResourceTestHelpers.__subclasses__():
subclass._static_request = subclass._resource_cls._static_request
subclass._static_request_stream = subclass._resource_cls._static_request_stream
| data/async_stripe-6.1.0/async_stripe/api_resources/abstract/test_helpers.py | 147 | 82 | 391,251 |
LOAD_CONST 'django-solo helps working with singletons: things like global settings that you want to edit from the admin site.\n'
STORE_NAME __doc__
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME django
STORE_NAME django
LOAD_CONST '2.2.0'
STORE_NAME __version__
LOAD_NAME django
LOAD_ATTR VERSION
LOAD_CONST (3, 2)
COMPARE_... | """django-solo helps working with singletons: things like global settings that you want to edit from the admin site.
"""
import django
__version__ = "2.2.0"
if django.VERSION < (3, 2):
default_app_config = "solo.apps.SoloAppConfig"
| data/django-solo-2.2.0/solo/__init__.py | 115 | 82 | 232,033 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME os
STORE_NAME os
LOAD_CONST 'xslt'
STORE_NAME NAME
LOAD_NAME os
LOAD_METHOD popen
LOAD_CONST 'xslt-config --cflags'
CALL_METHOD
LOAD_METHOD read
CALL_METHOD
LOAD_METHOD rstrip
CALL_METHOD
LOAD_METHOD split
CALL_METHOD
STORE_NAME CFLAGS
BUILD_LIST
STORE_NAME LDFLAGS
LOAD_NAME... | import os
NAME = "xslt"
CFLAGS = os.popen("xslt-config --cflags").read().rstrip().split()
LDFLAGS = []
LIBS = os.popen("xslt-config --libs").read().rstrip().split()
GCC_LIST = ["xslt"]
| data/uwsgi-2.0.24/plugins/xslt/uwsgiplugin.py | 139 | 82 | 398,314 |
LOAD_CONST 0
LOAD_CONST ('view_config',)
IMPORT_NAME pyramid.view
IMPORT_FROM view_config
STORE_NAME view_config
POP_TOP
LOAD_NAME view_config
LOAD_CONST 'json'
LOAD_CONST 'first'
LOAD_CONST ('renderer', 'name')
CALL_FUNCTION
LOAD_CONST <code object first at 0x7fab418ece40, file "f.py", line 4>
LOAD_CONST 'first'
MAKE... | from pyramid.view import view_config
@view_config(renderer="json", name="first")
def first(request):
return {"result": "OK1"}
@view_config(renderer="json", name="second")
def second(request):
return {"result": "OK2"}
| data/pyramid-2.0.2/tests/pkgs/viewdecoratorapp/views/views.py | 208 | 82 | 19,673 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME sys
STORE_NAME sys
SETUP_EXCEPT to 22
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME builtins
STORE_NAME builtins
POP_BLOCK
JUMP_FORWARD to 70
DUP_TOP
LOAD_NAME ImportError
COMPARE_OP exception match
POP_JUMP_IF_FALSE
POP_TOP
POP_TOP
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code objec... | import sys
try:
import builtins
except ImportError:
class builtins(object):
pass
sys.modules["builtins"] = builtins()
if not hasattr(builtins, "__import__"):
import gevent.monkey
gevent.monkey.patch_builtins()
| data/gevent-24.2.1/src/gevent/tests/test__monkey_builtins_future.py | 245 | 82 | 447,904 |
LOAD_CONST 0
LOAD_CONST ('path',)
IMPORT_NAME django.urls
IMPORT_FROM path
STORE_NAME path
POP_TOP
LOAD_CONST 1
LOAD_CONST ('ArticleFormView', 'form_view')
IMPORT_NAME views
IMPORT_FROM ArticleFormView
STORE_NAME ArticleFormView
IMPORT_FROM form_view
STORE_NAME form_view
POP_TOP
LOAD_NAME path
LOAD_CONST 'form_view/'... | from django.urls import path
from .views import ArticleFormView, form_view
urlpatterns = [
path("form_view/", form_view, name="form_view"),
path("model_form/<int:pk>/", ArticleFormView.as_view(), name="article_form"),
]
| data/Django-5.0.2/tests/forms_tests/urls.py | 157 | 82 | 326,494 |
LOAD_CONST 0
LOAD_CONST ('fixture', 'parametrize_with_cases')
IMPORT_NAME pytest_cases
IMPORT_FROM fixture
STORE_NAME fixture
IMPORT_FROM parametrize_with_cases
STORE_NAME parametrize_with_cases
POP_TOP
LOAD_NAME fixture
LOAD_CONST 'session'
LOAD_CONST ('scope',)
CALL_FUNCTION
LOAD_NAME parametrize_with_cases
LOAD_CO... | from pytest_cases import fixture, parametrize_with_cases
@fixture(scope="session")
@parametrize_with_cases("arg", cases=".cases", scope="session")
def scope_mismatch(arg):
return [arg]
session_scoped = scope_mismatch
| data/pytest-cases-3.8.2/tests/cases/issues/issue_311/conftest.py | 191 | 82 | 356,787 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.