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 1
LOAD_CONST ('PostgresModel',)
IMPORT_NAME base
IMPORT_FROM PostgresModel
STORE_NAME PostgresModel
POP_TOP
LOAD_CONST 1
LOAD_CONST ('PostgresPartitionedModel',)
IMPORT_NAME partitioned
IMPORT_FROM PostgresPartitionedModel
STORE_NAME PostgresPartitionedModel
POP_TOP
LOAD_CONST 1
LOAD_CONST ('PostgresMateri... | from .base import PostgresModel
from .partitioned import PostgresPartitionedModel
from .view import PostgresMaterializedViewModel, PostgresViewModel
__all__ = [
"PostgresModel",
"PostgresViewModel",
"PostgresMaterializedViewModel",
"PostgresPartitionedModel",
]
| data/django-postgres-extra-2.0.8/psqlextra/models/__init__.py | 166 | 79 | 192,455 |
LOAD_CONST 1
LOAD_CONST ('CaseInsensitiveUniqueIndex',)
IMPORT_NAME case_insensitive_unique_index
IMPORT_FROM CaseInsensitiveUniqueIndex
STORE_NAME CaseInsensitiveUniqueIndex
POP_TOP
LOAD_CONST 1
LOAD_CONST ('ConditionalUniqueIndex',)
IMPORT_NAME conditional_unique_index
IMPORT_FROM ConditionalUniqueIndex
STORE_NAME C... | from .case_insensitive_unique_index import CaseInsensitiveUniqueIndex
from .conditional_unique_index import ConditionalUniqueIndex
from .unique_index import UniqueIndex
__all__ = [
"UniqueIndex",
"ConditionalUniqueIndex",
"CaseInsensitiveUniqueIndex",
]
| data/django-postgres-extra-2.0.8/psqlextra/indexes/__init__.py | 152 | 79 | 192,458 |
LOAD_CONST 0
LOAD_CONST ('re_path',)
IMPORT_NAME django.urls
IMPORT_FROM re_path
STORE_NAME re_path
POP_TOP
LOAD_CONST 0
LOAD_CONST ('views',)
IMPORT_NAME djoser.social
IMPORT_FROM views
STORE_NAME views
POP_TOP
LOAD_NAME re_path
LOAD_CONST '^o/(?P<provider>\\S+)/$'
LOAD_NAME views
LOAD_ATTR ProviderAuthView
LOAD_M... | from django.urls import re_path
from djoser.social import views
urlpatterns = [
re_path(
r"^o/(?P<provider>\S+)/$",
views.ProviderAuthView.as_view(),
name="provider-auth",
)
]
| data/djoser-2.2.2/djoser/social/urls.py | 126 | 79 | 152,040 |
LOAD_CONST 0
LOAD_CONST ('Annotated',)
IMPORT_NAME typing
IMPORT_FROM Annotated
STORE_NAME Annotated
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 a... | from typing import Annotated
from fastapi import FastAPI, Header
app = FastAPI()
@app.get("/items/")
async def read_items(x_token: Annotated[list[str] | None, Header()] = None):
return {"X-Token values": x_token}
| data/fastapi-0.109.2/docs_src/header_params/tutorial003_an_py310.py | 205 | 79 | 142,705 |
LOAD_CONST 'PyJsParser'
LOAD_CONST 'parse'
LOAD_CONST 'JsSyntaxError'
LOAD_CONST 'pyjsparserdata'
BUILD_LIST
STORE_NAME __all__
LOAD_CONST 'Piotr Dabkowski'
STORE_NAME __author__
LOAD_CONST '2.2.0'
STORE_NAME __version__
LOAD_CONST 1
LOAD_CONST ('PyJsParser', 'parse', 'JsSyntaxError')
IMPORT_NAME parser
IMPORT_FROM ... | __all__ = ["PyJsParser", "parse", "JsSyntaxError", "pyjsparserdata"]
__author__ = "Piotr Dabkowski"
__version__ = "2.2.0"
from .parser import PyJsParser, parse, JsSyntaxError
from . import pyjsparserdata
| data/pyjsparser-2.7.1/pyjsparser/__init__.py | 164 | 79 | 186,990 |
LOAD_CONST (0.485, 0.456, 0.406)
STORE_NAME IMAGENET_DEFAULT_MEAN
LOAD_CONST (0.229, 0.224, 0.225)
STORE_NAME IMAGENET_DEFAULT_STD
LOAD_CONST 0.875
STORE_NAME DEFAULT_CROP_PCT
LOAD_CONST None
RETURN_VALUE | IMAGENET_DEFAULT_MEAN = (0.485, 0.456, 0.406)
IMAGENET_DEFAULT_STD = (0.229, 0.224, 0.225)
DEFAULT_CROP_PCT = 0.875
| data/gluoncv-0.10.5.post0/gluoncv/auto/estimators/torch_image_classification/utils/constants.py | 92 | 79 | 207,617 |
LOAD_CONST 0
LOAD_CONST ('List',)
IMPORT_NAME lists.models
IMPORT_FROM List
STORE_NAME List
POP_TOP
LOAD_CONST 0
LOAD_CONST ('TestCase',)
IMPORT_NAME snapshottest.django
IMPORT_FROM TestCase
STORE_NAME TestCase
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object ListTest at 0x7f8e2ff5e810, file "f.py", line 5>
LOAD_CONS... | from lists.models import List
from snapshottest.django import TestCase
class ListTest(TestCase):
def test_uses_home_template(self):
List.objects.create(name="test")
response = self.client.get("/")
self.assertMatchSnapshot(response.content.decode())
| data/snapshottest-0.6.0/examples/django_project/lists/tests.py | 282 | 79 | 396,102 |
LOAD_CONST 0
LOAD_CONST ('eval_statement', 'collect_submodules')
IMPORT_NAME PyInstaller.utils.hooks
IMPORT_FROM eval_statement
STORE_NAME eval_statement
IMPORT_FROM collect_submodules
STORE_NAME collect_submodules
POP_TOP
LOAD_NAME collect_submodules
LOAD_CONST 'ffpyplayer'
CALL_FUNCTION
STORE_NAME hiddenimports
BUI... | from PyInstaller.utils.hooks import eval_statement, collect_submodules
hiddenimports = collect_submodules("ffpyplayer")
binaries = []
for bin in eval_statement("import ffpyplayer; print(ffpyplayer.dep_bins)"):
binaries += [(bin, ".")]
| data/pyinstaller-hooks-contrib-2024.1/src/_pyinstaller_hooks_contrib/hooks/stdhooks/hook-ffpyplayer.py | 157 | 79 | 282,263 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME asyncio
STORE_NAME asyncio
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME logging
STORE_NAME logging
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME pytest
STORE_NAME pytest
LOAD_CONST 0
LOAD_CONST ('LifespanManager',)
IMPORT_NAME asgi_lifespan
IMPORT_FROM LifespanManager
STORE_NAME Lifes... | import asyncio
import logging
import pytest
from asgi_lifespan import LifespanManager
from starlette.applications import Starlette
from starlette.requests import Request
from starlette.routing import Route
from sse_starlette import EventSourceResponse
_log = logging.getLogger(__name__)
| data/sse_starlette-2.0.0/tests/integration/test_conditional_yielding_endpoint.py | 221 | 79 | 194,226 |
LOAD_CONST 0
LOAD_CONST ('FastAPI',)
IMPORT_NAME fastapi
IMPORT_FROM FastAPI
STORE_NAME FastAPI
POP_TOP
LOAD_CONST 0
LOAD_CONST ('GZipMiddleware',)
IMPORT_NAME fastapi.middleware.gzip
IMPORT_FROM GZipMiddleware
STORE_NAME GZipMiddleware
POP_TOP
LOAD_NAME FastAPI
CALL_FUNCTION
STORE_NAME app
LOAD_NAME app
LOAD_ATTR a... | from fastapi import FastAPI
from fastapi.middleware.gzip import GZipMiddleware
app = FastAPI()
app.add_middleware(GZipMiddleware, minimum_size=1000)
@app.get("/")
async def main():
return "somebigcontent"
| data/fastapi-0.109.2/docs_src/advanced_middleware/tutorial003.py | 187 | 79 | 142,770 |
LOAD_CONST 0
LOAD_CONST ('Literal',)
IMPORT_NAME typing
IMPORT_FROM Literal
STORE_NAME Literal
POP_TOP
LOAD_NAME Literal
LOAD_CONST ('0', '75', '100', '150', '200', '300', '500', '700', '1000')
BINARY_SUBSCR
STORE_NAME TransitionDuration
LOAD_CONST None
RETURN_VALUE | from typing import Literal
TransitionDuration = Literal[
"0",
"75",
"100",
"150",
"200",
"300",
"500",
"700",
"1000",
]
| data/nicegui-1.4.15/nicegui/tailwind_types/transition_duration.py | 86 | 79 | 223,436 |
LOAD_CONST 'Evaluation Helpers.'
STORE_NAME __doc__
LOAD_CONST 0
LOAD_CONST ('EvaluationResult', 'RunEvaluator', 'run_evaluator')
IMPORT_NAME langsmith.evaluation.evaluator
IMPORT_FROM EvaluationResult
STORE_NAME EvaluationResult
IMPORT_FROM RunEvaluator
STORE_NAME RunEvaluator
IMPORT_FROM run_evaluator
STORE_NAME run... | """Evaluation Helpers."""
from langsmith.evaluation.evaluator import EvaluationResult, RunEvaluator, run_evaluator
from langsmith.evaluation.string_evaluator import StringEvaluator
__all__ = ["run_evaluator", "EvaluationResult", "RunEvaluator", "StringEvaluator"]
| data/langsmith-0.1.5/langsmith/evaluation/__init__.py | 167 | 79 | 332,954 |
SETUP_ANNOTATIONS
LOAD_CONST 0
LOAD_CONST ('annotations',)
IMPORT_NAME __future__
IMPORT_FROM annotations
STORE_NAME annotations
POP_TOP
LOAD_CONST 0
LOAD_CONST ('Dict', 'List', 'Union')
IMPORT_NAME typing
IMPORT_FROM Dict
STORE_NAME Dict
IMPORT_FROM List
STORE_NAME List
IMPORT_FROM Union
STORE_NAME Union
POP_TOP
SET... | from __future__ import annotations
from typing import Dict, List, Union
try:
from typing_extensions import TypeAlias
except ImportError:
from typing import TypeAlias
JSON: TypeAlias = Union[Dict[str, "JSON"], List["JSON"], str, int, float, bool, None]
| data/b2sdk-1.31.0/b2sdk/utils/typing.py | 250 | 79 | 28,081 |
LOAD_CONST 'AUTOGENERATED. DO NOT EDIT.'
STORE_NAME __doc__
LOAD_CONST 0
LOAD_CONST ('VGG19',)
IMPORT_NAME tf_keras.src.applications.vgg19
IMPORT_FROM VGG19
STORE_NAME VGG19
POP_TOP
LOAD_CONST 0
LOAD_CONST ('decode_predictions',)
IMPORT_NAME tf_keras.src.applications.vgg19
IMPORT_FROM decode_predictions
STORE_NAME de... | """AUTOGENERATED. DO NOT EDIT."""
from tf_keras.src.applications.vgg19 import VGG19
from tf_keras.src.applications.vgg19 import decode_predictions
from tf_keras.src.applications.vgg19 import preprocess_input
| data/tf_keras-nightly-2.17.0.dev2024022110/tf_keras/applications/vgg19/__init__.py | 158 | 79 | 164,761 |
LOAD_CONST 'AUTOGENERATED. DO NOT EDIT.'
STORE_NAME __doc__
LOAD_CONST 0
LOAD_CONST ('VGG16',)
IMPORT_NAME tf_keras.src.applications.vgg16
IMPORT_FROM VGG16
STORE_NAME VGG16
POP_TOP
LOAD_CONST 0
LOAD_CONST ('decode_predictions',)
IMPORT_NAME tf_keras.src.applications.vgg16
IMPORT_FROM decode_predictions
STORE_NAME de... | """AUTOGENERATED. DO NOT EDIT."""
from tf_keras.src.applications.vgg16 import VGG16
from tf_keras.src.applications.vgg16 import decode_predictions
from tf_keras.src.applications.vgg16 import preprocess_input
| data/tf_keras-nightly-2.17.0.dev2024022110/tf_keras/applications/vgg16/__init__.py | 158 | 79 | 164,760 |
LOAD_CONST 0
LOAD_CONST ('Enum',)
IMPORT_NAME enum
IMPORT_FROM Enum
STORE_NAME Enum
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object DeviceThreatProtectionLevel at 0x7fab822db420, file "f.py", line 4>
LOAD_CONST 'DeviceThreatProtectionLevel'
MAKE_FUNCTION
LOAD_CONST 'DeviceThreatProtectionLevel'
LOAD_NAME str
LOAD_NAM... | from enum import Enum
class DeviceThreatProtectionLevel(str, Enum):
Unavailable = ("unavailable",)
Secured = ("secured",)
Low = ("low",)
Medium = ("medium",)
High = ("high",)
NotSet = ("notSet",)
| data/msgraph-sdk-1.1.0/msgraph/generated/models/device_threat_protection_level.py | 210 | 79 | 261,699 |
LOAD_CONST 0
LOAD_CONST ('Literal',)
IMPORT_NAME typing
IMPORT_FROM Literal
STORE_NAME Literal
POP_TOP
LOAD_NAME Literal
LOAD_CONST ('0', '75', '100', '150', '200', '300', '500', '700', '1000')
BINARY_SUBSCR
STORE_NAME TransitionDelay
LOAD_CONST None
RETURN_VALUE | from typing import Literal
TransitionDelay = Literal[
"0",
"75",
"100",
"150",
"200",
"300",
"500",
"700",
"1000",
]
| data/nicegui-1.4.15/nicegui/tailwind_types/transition_delay.py | 86 | 79 | 223,367 |
LOAD_CONST '\nVariable Explorer Plugin API.\n'
STORE_NAME __doc__
LOAD_CONST 0
LOAD_CONST ('VariableExplorerWidgetActions', 'VariableExplorerWidgetMainToolBarSections', 'VariableExplorerWidgetMenus', 'VariableExplorerWidgetOptionsMenuSections')
IMPORT_NAME spyder.plugins.variableexplorer.widgets.main_widget
IMPORT_FRO... | """
Variable Explorer Plugin API.
"""
from spyder.plugins.variableexplorer.widgets.main_widget import (
VariableExplorerWidgetActions,
VariableExplorerWidgetMainToolBarSections,
VariableExplorerWidgetMenus,
VariableExplorerWidgetOptionsMenuSections,
)
| data/spyder-5.5.1/spyder/plugins/variableexplorer/api.py | 165 | 79 | 370,064 |
LOAD_CONST <code object test_Al_dmol at 0x7fa6a7caf540, file "f.py", line 1>
LOAD_CONST 'test_Al_dmol'
MAKE_FUNCTION
STORE_NAME test_Al_dmol
LOAD_CONST None
RETURN_VALUE
LOAD_CONST 0
LOAD_CONST ('bulk',)
IMPORT_NAME ase.build
IMPORT_FROM bulk
STORE_FAST bulk
POP_TOP
LOAD_CONST 0
LOAD_CONST ('DMol3',)
IMPORT_NAME ase.... | def test_Al_dmol():
from ase.build import bulk
from ase.calculators.dmol import DMol3
atoms = bulk("Al")
calc = DMol3()
atoms.calc = calc
atoms.get_potential_energy()
atoms.get_forces()
| data/ase-3.22.1/ase/test/calculator/dmol/test_Al_dmol.py | 192 | 79 | 46,317 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME dataclasses
STORE_NAME dataclasses
LOAD_CONST 0
LOAD_CONST ('Any', 'Callable', 'List', 'Optional', 'Union')
IMPORT_NAME typing
IMPORT_FROM Any
STORE_NAME Any
IMPORT_FROM Callable
STORE_NAME Callable
IMPORT_FROM List
STORE_NAME List
IMPORT_FROM Optional
STORE_NAME Optional
IMPOR... | import dataclasses
from typing import Any, Callable, List, Optional, Union
from onnx import ModelProto, NodeProto
@dataclasses.dataclass
class TestItem:
func: Callable[..., Any]
proto: List[Optional[Union[ModelProto, NodeProto]]]
| data/onnx-simplifier-0.4.35/third_party/onnx-optimizer/third_party/onnx/onnx/backend/test/runner/item.py | 291 | 79 | 309,694 |
LOAD_CONST 0
LOAD_CONST ('Config',)
IMPORT_NAME parsl.config
IMPORT_FROM Config
STORE_NAME Config
POP_TOP
LOAD_CONST 0
LOAD_CONST ('ThreadPoolExecutor',)
IMPORT_NAME parsl.executors.threads
IMPORT_FROM ThreadPoolExecutor
STORE_NAME ThreadPoolExecutor
POP_TOP
LOAD_CONST <code object fresh_config at 0x7f8e2ff25270, fil... | from parsl.config import Config
from parsl.executors.threads import ThreadPoolExecutor
def fresh_config():
return Config(
executors=[
ThreadPoolExecutor(
label="local_threads_checkpoint",
)
]
)
config = fresh_config()
| data/parsl-2024.2.19/parsl/tests/configs/local_threads_checkpoint.py | 168 | 79 | 123,302 |
LOAD_NAME applyPatch
LOAD_CONST '20201005-dldt-disable-unused-targets.patch'
CALL_FUNCTION
POP_TOP
LOAD_NAME applyPatch
LOAD_CONST '20200413-dldt-pdb.patch'
CALL_FUNCTION
POP_TOP
LOAD_NAME applyPatch
LOAD_CONST '20200604-dldt-disable-multidevice.patch'
CALL_FUNCTION
POP_TOP
LOAD_CONST None
RETURN_VALUE | applyPatch("20201005-dldt-disable-unused-targets.patch")
applyPatch("20200413-dldt-pdb.patch")
applyPatch("20200604-dldt-disable-multidevice.patch")
| data/opencv-python-headless-4.9.0.80/opencv/platforms/winpack_dldt/2021.1/patch.config.py | 106 | 79 | 396,263 |
LOAD_CONST 0
LOAD_CONST ('AppConfig',)
IMPORT_NAME django.apps
IMPORT_FROM AppConfig
STORE_NAME BaseConfig
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 TaggitAppConfig at 0x7faa528b0270, fi... | from django.apps import AppConfig as BaseConfig
from django.utils.translation import gettext_lazy as _
class TaggitAppConfig(BaseConfig):
name = "taggit"
verbose_name = _("Taggit")
default_auto_field = "django.db.models.AutoField"
| data/django-taggit-5.0.1/taggit/apps.py | 213 | 79 | 22,466 |
LOAD_CONST 0
LOAD_CONST ('BaseCommand',)
IMPORT_NAME django.core.management.base
IMPORT_FROM BaseCommand
STORE_NAME BaseCommand
POP_TOP
LOAD_CONST 0
LOAD_CONST ('CharModel',)
IMPORT_NAME dbbackup.tests.testapp.models
IMPORT_FROM CharModel
STORE_NAME CharModel
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object Command a... | from django.core.management.base import BaseCommand
from dbbackup.tests.testapp.models import CharModel
class Command(BaseCommand):
help = "Count things"
def handle(self, **options):
for st in "abcde":
CharModel.objects.create(field=st)
| data/django-dbbackup-4.1.0/dbbackup/tests/testapp/management/commands/feed.py | 264 | 79 | 242,996 |
LOAD_CONST 0
LOAD_CONST ('ABC', 'abstractmethod')
IMPORT_NAME abc
IMPORT_FROM ABC
STORE_NAME ABC
IMPORT_FROM abstractmethod
STORE_NAME abstractmethod
POP_TOP
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME numpy
STORE_NAME np
LOAD_CONST 0
LOAD_CONST ('Detections',)
IMPORT_NAME supervision.detection.core
IMPORT_FROM Detectio... | from abc import ABC, abstractmethod
import numpy as np
from supervision.detection.core import Detections
class BaseAnnotator(ABC):
@abstractmethod
def annotate(self, scene: np.ndarray, detections: Detections) -> np.ndarray:
pass
| data/supervision-0.18.0/supervision/annotators/base.py | 283 | 79 | 236,416 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME sys
STORE_NAME sys
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME warnings
STORE_NAME warnings
BUILD_LIST
STORE_NAME __all__
LOAD_NAME sys
LOAD_ATTR argv
POP_JUMP_IF_FALSE
LOAD_CONST 'test'
LOAD_NAME sys
LOAD_ATTR argv
LOAD_CONST 0
BINARY_SUBSCR
COMPARE_OP in
POP_JUMP_IF_FALSE
LOA... | import sys
import warnings
__all__ = []
if sys.argv and "test" in sys.argv[0]:
warnings.filterwarnings("default")
warnings.filterwarnings("error", module="clize")
warnings.filterwarnings("error", module=".*/clize/")
| data/clize-5.0.2/clize/tests/__init__.py | 153 | 79 | 347,693 |
BUILD_LIST
STORE_NAME THINGS
LOAD_CONST <code object setUpModule at 0x7fab8019b390, file "f.py", line 4>
LOAD_CONST 'setUpModule'
MAKE_FUNCTION
STORE_NAME setUpModule
LOAD_CONST <code object tearDownModule at 0x7fab8019b5d0, file "f.py", line 8>
LOAD_CONST 'tearDownModule'
MAKE_FUNCTION
STORE_NAME tearDownModule
LOA... | THINGS = []
def setUpModule():
THINGS.append(1)
def tearDownModule():
while THINGS:
THINGS.pop()
def check(_):
assert THINGS, "setup didn't run I think"
def test():
yield check, 1
| data/nose2-0.14.1/nose2/tests/functional/support/scenario/module_fixtures/test_mf_gen_func.py | 303 | 79 | 310,231 |
LOAD_CONST 0
LOAD_CONST ('NamedTuple',)
IMPORT_NAME typing
IMPORT_FROM NamedTuple
STORE_NAME NamedTuple
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object CollectionDescription at 0x7faa5f6dbd20, file "f.py", line 4>
LOAD_CONST 'CollectionDescription'
MAKE_FUNCTION
LOAD_CONST 'CollectionDescription'
LOAD_NAME NamedTuple... | from typing import NamedTuple
class CollectionDescription(NamedTuple):
"""
The description of a collection.
"""
name: str
"""
The name of the collection.
"""
source: str
"""
The name of the index used to create the collection.
"""
| data/pinecone_client-3.0.3/pinecone/models/collection_description.py | 178 | 79 | 251,335 |
LOAD_CONST 0
LOAD_CONST ('Enum',)
IMPORT_NAME enum
IMPORT_FROM Enum
STORE_NAME Enum
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object AlertClassification at 0x7fab4298e930, file "f.py", line 4>
LOAD_CONST 'AlertClassification'
MAKE_FUNCTION
LOAD_CONST 'AlertClassification'
LOAD_NAME str
LOAD_NAME Enum
CALL_FUNCTION
STO... | from enum import Enum
class AlertClassification(str, Enum):
Unknown = ("unknown",)
FalsePositive = ("falsePositive",)
TruePositive = ("truePositive",)
InformationalExpectedActivity = ("informationalExpectedActivity",)
UnknownFutureValue = ("unknownFutureValue",)
| data/msgraph-sdk-1.1.0/msgraph/generated/models/security/alert_classification.py | 197 | 79 | 262,086 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME dataclasses
STORE_NAME dataclasses
LOAD_CONST 0
LOAD_CONST ('Any', 'Callable', 'List', 'Optional', 'Union')
IMPORT_NAME typing
IMPORT_FROM Any
STORE_NAME Any
IMPORT_FROM Callable
STORE_NAME Callable
IMPORT_FROM List
STORE_NAME List
IMPORT_FROM Optional
STORE_NAME Optional
IMPOR... | import dataclasses
from typing import Any, Callable, List, Optional, Union
from onnx import ModelProto, NodeProto
@dataclasses.dataclass
class TestItem:
func: Callable[..., Any]
proto: List[Optional[Union[ModelProto, NodeProto]]]
| data/onnxsim-0.4.35/third_party/onnx-optimizer/third_party/onnx/onnx/backend/test/runner/item.py | 292 | 79 | 114,365 |
LOAD_CONST 0
LOAD_CONST ('Enum',)
IMPORT_NAME enum
IMPORT_FROM Enum
STORE_NAME Enum
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object EvidenceVerdict at 0x7fab70027420, file "f.py", line 4>
LOAD_CONST 'EvidenceVerdict'
MAKE_FUNCTION
LOAD_CONST 'EvidenceVerdict'
LOAD_NAME str
LOAD_NAME Enum
CALL_FUNCTION
STORE_NAME Evid... | from enum import Enum
class EvidenceVerdict(str, Enum):
Unknown = ("unknown",)
Suspicious = ("suspicious",)
Malicious = ("malicious",)
NoThreatsFound = ("noThreatsFound",)
UnknownFutureValue = ("unknownFutureValue",)
| data/msgraph-sdk-1.1.0/msgraph/generated/models/security/evidence_verdict.py | 197 | 79 | 262,098 |
LOAD_CONST '\nThis module exists only to simplify retrieving the version number of chardet\nfrom within setup.py and from chardet subpackages.\n\n:author: Dan Blanchard (dan.blanchard@gmail.com)\n'
STORE_NAME __doc__
LOAD_CONST '5.0.0'
STORE_NAME __version__
LOAD_NAME __version__
LOAD_METHOD split
LOAD_CONST '.'
CALL... | """
This module exists only to simplify retrieving the version number of chardet
from within setup.py and from chardet subpackages.
:author: Dan Blanchard (dan.blanchard@gmail.com)
"""
__version__ = "5.0.0"
VERSION = __version__.split(".")
| data/pyLDAvis-3.4.1/pyLDAvis/lib/python3.11/site-packages/pip/_vendor/chardet/version.py | 103 | 79 | 230,611 |
LOAD_CONST '\nHTTPie: modern, user-friendly command-line HTTP client for the API era.\n\n'
STORE_NAME __doc__
LOAD_CONST '3.2.2'
STORE_NAME __version__
LOAD_CONST '2022-05-06'
STORE_NAME __date__
LOAD_CONST 'Jakub Roztocil'
STORE_NAME __author__
LOAD_CONST 'BSD'
STORE_NAME __licence__
LOAD_CONST None
RETURN_VALUE | """
HTTPie: modern, user-friendly command-line HTTP client for the API era.
"""
__version__ = "3.2.2"
__date__ = "2022-05-06"
__author__ = "Jakub Roztocil"
__licence__ = "BSD"
| data/httpie-3.2.2/httpie/__init__.py | 101 | 79 | 187,432 |
LOAD_CONST 1
LOAD_CONST ('*',)
IMPORT_NAME account
IMPORT_STAR
LOAD_CONST 1
LOAD_CONST ('*',)
IMPORT_NAME cluster
IMPORT_STAR
LOAD_CONST 1
LOAD_CONST ('*',)
IMPORT_NAME dataset
IMPORT_STAR
LOAD_CONST 1
LOAD_CONST ('*',)
IMPORT_NAME experiment
IMPORT_STAR
LOAD_CONST 1
LOAD_CONST ('*',)
IMPORT_NAME experiment_spec
IM... | from .account import *
from .cluster import *
from .dataset import *
from .experiment import *
from .experiment_spec import *
from .group import *
from .image import *
from .job import *
from .node import *
from .organization import *
from .secret import *
from .workspace import *
| data/beaker-py-1.24.0/beaker/data_model/__init__.py | 199 | 79 | 120,851 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME ibis
STORE_NAME ibis
LOAD_NAME ibis
LOAD_ATTR table
LOAD_CONST 'employee'
LOAD_CONST 'string'
LOAD_CONST 'string'
LOAD_CONST 'int64'
LOAD_CONST ('first_name', 'last_name', 'id')
BUILD_CONST_KEY_MAP
LOAD_CONST ('name', 'schema')
CALL_FUNCTION
STORE_NAME employee
LOAD_NAME emp... | import ibis
employee = ibis.table(
name="employee",
schema={"first_name": "string", "last_name": "string", "id": "int64"},
)
result = employee.select([employee.first_name, employee.last_name, employee.id])
| data/ibis_framework-8.0.0/ibis/expr/tests/snapshots/test_sql/test_parse_sql_table_alias/decompiled.py | 119 | 79 | 161,616 |
LOAD_CONST "Dataset definition for race.\n\nDEPRECATED!\nIf you want to use the Race dataset builder class, use:\ntfds.builder_cls('race')\n"
STORE_NAME __doc__
LOAD_CONST 0
LOAD_CONST ('lazy_builder_import',)
IMPORT_NAME tensorflow_datasets.core
IMPORT_FROM lazy_builder_import
STORE_NAME lazy_builder_import
POP_TOP
... | """Dataset definition for race.
DEPRECATED!
If you want to use the Race dataset builder class, use:
tfds.builder_cls('race')
"""
from tensorflow_datasets.core import lazy_builder_import
Race = lazy_builder_import.LazyBuilderImport("race")
| data/tensorflow-datasets-4.9.4/tensorflow_datasets/text/race/race.py | 122 | 79 | 256,219 |
LOAD_CONST '\nspyder.api\n==========\n\nThis package contains base classes, mixins and widgets that can be used\nto create third-party plugins to extend Spyder.\n\nThis API should be considered pre-release and is subject to change\nbefore its version reaches 1.0.\n'
STORE_NAME __doc__
LOAD_CONST 1
LOAD_CONST ('__versi... | """
spyder.api
==========
This package contains base classes, mixins and widgets that can be used
to create third-party plugins to extend Spyder.
This API should be considered pre-release and is subject to change
before its version reaches 1.0.
"""
from ._version import __version__
| data/spyder-5.5.1/spyder/api/__init__.py | 114 | 79 | 370,122 |
LOAD_CONST 'AUTOGENERATED. DO NOT EDIT.'
STORE_NAME __doc__
LOAD_CONST 0
LOAD_CONST ('VGG16',)
IMPORT_NAME tf_keras.src.applications.vgg16
IMPORT_FROM VGG16
STORE_NAME VGG16
POP_TOP
LOAD_CONST 0
LOAD_CONST ('decode_predictions',)
IMPORT_NAME tf_keras.src.applications.vgg16
IMPORT_FROM decode_predictions
STORE_NAME de... | """AUTOGENERATED. DO NOT EDIT."""
from tf_keras.src.applications.vgg16 import VGG16
from tf_keras.src.applications.vgg16 import decode_predictions
from tf_keras.src.applications.vgg16 import preprocess_input
| data/tf_keras-nightly-2.17.0.dev2024022110/tf_keras/api/_v2/keras/applications/vgg16/__init__.py | 158 | 79 | 165,277 |
LOAD_CONST 0
LOAD_CONST ('port_hint_ovs_tx_steering',)
IMPORT_NAME neutron_lib.api.definitions
IMPORT_FROM port_hint_ovs_tx_steering
STORE_NAME port_hint_ovs_tx_steering
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_CLA... | from neutron_lib.api.definitions import port_hint_ovs_tx_steering
from neutron_lib.tests.unit.api.definitions import base
class PortHintOvsTxSteeringDefinitionTestCase(base.DefinitionBaseTestCase):
extension_module = port_hint_ovs_tx_steering
| data/neutron-lib-3.10.0/neutron_lib/tests/unit/api/definitions/test_port_hint_ovs_tx_steering.py | 251 | 79 | 384,953 |
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 0x7f8e44ccfc00, file "f.py", line 4>
LOAD_CONST 'Migration'
MAKE_FUNCTION
LOAD_CONST 'Migration'
LOAD_NAME migrations
LOAD_ATTR Migration
CALL_FUNCTIO... | from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
("auth", "0005_alter_user_last_login_null"),
("contenttypes", "0002_remove_content_type_name"),
]
operations = []
| data/Django-5.0.2/django/contrib/auth/migrations/0006_require_contenttypes_0002.py | 178 | 79 | 326,775 |
LOAD_CONST 'comprehend base URL and path.'
STORE_NAME __doc__
LOAD_CONST 1
LOAD_CONST ('ComprehendResponse',)
IMPORT_NAME responses
IMPORT_FROM ComprehendResponse
STORE_NAME ComprehendResponse
POP_TOP
LOAD_CONST 'https?://comprehend\\.(.+)\\.amazonaws\\.com'
BUILD_LIST
STORE_NAME url_bases
LOAD_CONST '{0}/$'
LOAD_NA... | """comprehend base URL and path."""
from .responses import ComprehendResponse
url_bases = [
r"https?://comprehend\.(.+)\.amazonaws\.com",
]
url_paths = {
"{0}/$": ComprehendResponse.dispatch,
}
| data/moto-5.0.2/moto/comprehend/urls.py | 107 | 79 | 198,031 |
LOAD_CONST 0
LOAD_CONST ('port_resource_request',)
IMPORT_NAME neutron_lib.api.definitions
IMPORT_FROM port_resource_request
STORE_NAME port_resource_request
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_CONS... | from neutron_lib.api.definitions import port_resource_request
from neutron_lib.tests.unit.api.definitions import base
class PortResourceRequestDefinitionTestCase(base.DefinitionBaseTestCase):
extension_module = port_resource_request
extension_attributes = (port_resource_request.RESOURCE_REQUEST,)
| data/neutron-lib-3.10.0/neutron_lib/tests/unit/api/definitions/test_port_resource_request.py | 218 | 79 | 384,903 |
LOAD_CONST 0
LOAD_CONST ('settings',)
IMPORT_NAME django.conf
IMPORT_FROM settings
STORE_NAME settings
POP_TOP
LOAD_CONST 0
LOAD_CONST ('constants',)
IMPORT_NAME django.contrib.messages
IMPORT_FROM constants
STORE_NAME constants
POP_TOP
LOAD_CONST <code object get_level_tags at 0x7f8e44ccfc00, file "f.py", line 5>
LO... | from django.conf import settings
from django.contrib.messages import constants
def get_level_tags():
"""
Return the message level tags.
"""
return {
**constants.DEFAULT_TAGS,
**getattr(settings, "MESSAGE_TAGS", {}),
}
| data/Django-5.0.2/django/contrib/messages/utils.py | 147 | 79 | 326,789 |
LOAD_CONST 0
LOAD_CONST ('l3_port_ip_change_not_allowed',)
IMPORT_NAME neutron_lib.api.definitions
IMPORT_FROM l3_port_ip_change_not_allowed
STORE_NAME l3_port_ip_change_not_allowed
POP_TOP
LOAD_CONST 0
LOAD_CONST ('base',)
IMPORT_NAME neutron_lib.tests.unit.api.definitions
IMPORT_FROM base
STORE_NAME base
POP_TOP
LO... | from neutron_lib.api.definitions import l3_port_ip_change_not_allowed
from neutron_lib.tests.unit.api.definitions import base
class L3PortIPChangeNotAllowedDefinitionTestCase(base.DefinitionBaseTestCase):
extension_module = l3_port_ip_change_not_allowed
| data/neutron-lib-3.10.0/neutron_lib/tests/unit/api/definitions/test_l3_port_ip_change_not_allowed.py | 251 | 79 | 384,913 |
LOAD_CONST 'elasticache base URL and path.'
STORE_NAME __doc__
LOAD_CONST 1
LOAD_CONST ('ElastiCacheResponse',)
IMPORT_NAME responses
IMPORT_FROM ElastiCacheResponse
STORE_NAME ElastiCacheResponse
POP_TOP
LOAD_CONST 'https?://elasticache\\.(.+)\\.amazonaws\\.com'
BUILD_LIST
STORE_NAME url_bases
LOAD_CONST '{0}/$'
LO... | """elasticache base URL and path."""
from .responses import ElastiCacheResponse
url_bases = [
r"https?://elasticache\.(.+)\.amazonaws\.com",
]
url_paths = {
"{0}/$": ElastiCacheResponse.dispatch,
}
| data/moto-5.0.2/moto/elasticache/urls.py | 109 | 79 | 197,995 |
LOAD_CONST 'anonymous'
STORE_NAME ANONYMOUS
LOAD_CONST 'ivo://ivoa.net/sso#BasicAA'
STORE_NAME BASIC
LOAD_CONST 'ivo://ivoa.net/sso#tls-with-certificate'
STORE_NAME CLIENT_CERTIFICATE
LOAD_CONST 'ivo://ivoa.net/sso#cookie'
STORE_NAME COOKIE
LOAD_CONST None
RETURN_VALUE | ANONYMOUS = "anonymous"
BASIC = "ivo://ivoa.net/sso#BasicAA"
CLIENT_CERTIFICATE = "ivo://ivoa.net/sso#tls-with-certificate"
COOKIE = "ivo://ivoa.net/sso#cookie"
| data/pyvo-1.5/pyvo/auth/securitymethods.py | 94 | 79 | 206,752 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME sys
STORE_NAME sys
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME shutil
STORE_NAME shutil
LOAD_CONST '@INPUT1@'
LOAD_NAME sys
LOAD_ATTR argv
LOAD_CONST 1
BINARY_SUBSCR
COMPARE_OP in
POP_JUMP_IF_FALSE
LOAD_NAME shutil
LOAD_METHOD copyfile
LOAD_NAME sys
LOAD_ATTR argv
LOAD_CONST 2
B... | import sys
import shutil
if "@INPUT1@" in sys.argv[1]:
shutil.copyfile(sys.argv[2], sys.argv[3])
else:
sys.exit('String @INPUT1@ not found in "{}"'.format(sys.argv[1]))
| data/meson-1.3.2/test cases/common/160 custom target template substitution/checkcopy.py | 151 | 79 | 82,075 |
LOAD_CONST 0
LOAD_CONST ('Resource',)
IMPORT_NAME clearbit.resource
IMPORT_FROM Resource
STORE_NAME Resource
POP_TOP
LOAD_CONST 0
LOAD_CONST ('ParamsInvalidError',)
IMPORT_NAME clearbit.error
IMPORT_FROM ParamsInvalidError
STORE_NAME ParamsInvalidError
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object NameToDomain at ... | from clearbit.resource import Resource
from clearbit.error import ParamsInvalidError
class NameToDomain(Resource):
endpoint = "https://company.clearbit.com/v1/domains"
@classmethod
def find(cls, **options):
return cls.get("/find", **options)
| data/clearbit-0.1.7/clearbit/name_to_domain.py | 248 | 79 | 25,893 |
LOAD_CONST 0
LOAD_CONST ('Enum',)
IMPORT_NAME enum
IMPORT_FROM Enum
STORE_NAME Enum
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object WindowsDeviceType at 0x7fae471296f0, file "f.py", line 4>
LOAD_CONST 'WindowsDeviceType'
MAKE_FUNCTION
LOAD_CONST 'WindowsDeviceType'
LOAD_NAME str
LOAD_NAME Enum
CALL_FUNCTION
STORE_NAM... | from enum import Enum
class WindowsDeviceType(str, Enum):
None_ = ("none",)
Desktop = ("desktop",)
Mobile = ("mobile",)
Holographic = ("holographic",)
Team = ("team",)
UnknownFutureValue = ("unknownFutureValue",)
| data/msgraph-sdk-1.1.0/msgraph/generated/models/windows_device_type.py | 195 | 79 | 261,926 |
LOAD_CONST 0
LOAD_CONST ('segments_peer_subnet_host_routes',)
IMPORT_NAME neutron_lib.api.definitions
IMPORT_FROM segments_peer_subnet_host_routes
STORE_NAME segments_peer_subnet_host_routes
POP_TOP
LOAD_CONST 0
LOAD_CONST ('base',)
IMPORT_NAME neutron_lib.tests.unit.api.definitions
IMPORT_FROM base
STORE_NAME base
PO... | from neutron_lib.api.definitions import segments_peer_subnet_host_routes
from neutron_lib.tests.unit.api.definitions import base
class SegmentPeerHostRoutesDefinitionTestCase(base.DefinitionBaseTestCase):
extension_module = segments_peer_subnet_host_routes
| data/neutron-lib-3.10.0/neutron_lib/tests/unit/api/definitions/test_segment_peer_subnet_host_routes.py | 249 | 79 | 384,935 |
LOAD_CONST 1
LOAD_CONST ('Company',)
IMPORT_NAME company
IMPORT_FROM Company
STORE_NAME Company
POP_TOP
LOAD_CONST 1
LOAD_CONST ('Person',)
IMPORT_NAME person
IMPORT_FROM Person
STORE_NAME Person
POP_TOP
LOAD_CONST 1
LOAD_CONST ('PersonCompany',)
IMPORT_NAME person_company
IMPORT_FROM PersonCompany
STORE_NAME PersonC... | from .company import Company
from .person import Person
from .person_company import PersonCompany
class Enrichment:
@classmethod
def find(cls, **options):
if "domain" in options:
return Company.find(**options)
else:
return PersonCompany.find(**options)
| data/clearbit-0.1.7/clearbit/enrichment/__init__.py | 266 | 79 | 25,901 |
LOAD_CONST 0
LOAD_CONST ('before',)
IMPORT_NAME radish
IMPORT_FROM before
STORE_NAME before
POP_TOP
LOAD_NAME before
LOAD_ATTR each_scenario
LOAD_CONST <code object init_numbers at 0x7fab823b54b0, file "f.py", line 4>
LOAD_CONST 'init_numbers'
MAKE_FUNCTION
CALL_FUNCTION
STORE_NAME init_numbers
LOAD_CONST None
RETURN_... | from radish import before
@before.each_scenario
def init_numbers(scenario):
scenario.context.users = []
scenario.context.database = lambda: None
setattr(scenario.context.database, "users", [])
scenario.context.database.users = []
| data/radish-bdd-0.17.1/tests/exploratory/steptables/radish/terrain.py | 216 | 79 | 243,388 |
LOAD_CONST 0
LOAD_CONST ('Config',)
IMPORT_NAME parsl.config
IMPORT_FROM Config
STORE_NAME Config
POP_TOP
LOAD_CONST 0
LOAD_CONST ('WorkQueueExecutor',)
IMPORT_NAME parsl.executors
IMPORT_FROM WorkQueueExecutor
STORE_NAME WorkQueueExecutor
POP_TOP
LOAD_CONST 0
LOAD_CONST ('LocalProvider',)
IMPORT_NAME parsl.providers... | from parsl.config import Config
from parsl.executors import WorkQueueExecutor
from parsl.providers import LocalProvider
config = Config(
executors=[
WorkQueueExecutor(
port=50055,
source=True,
provider=LocalProvider(),
)
]
)
| data/parsl-2024.2.19/parsl/tests/scaling_tests/wqex_local.py | 147 | 79 | 123,263 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME sys
STORE_NAME sys
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME importlib
STORE_NAME importlib
LOAD_CONST <code object bypass_compiler_fixup at 0x7fab8239a930, file "f.py", line 5>
LOAD_CONST 'bypass_compiler_fixup'
MAKE_FUNCTION
STORE_NAME bypass_compiler_fixup
LOAD_NAME sys
LOA... | import sys
import importlib
def bypass_compiler_fixup(cmd, args):
return cmd
if sys.platform == "darwin":
compiler_fixup = importlib.import_module("_osx_support").compiler_fixup
else:
compiler_fixup = bypass_compiler_fixup
| data/pyLDAvis-3.4.1/pyLDAvis/lib/python3.11/site-packages/setuptools/_distutils/_macos_compat.py | 171 | 79 | 230,275 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME sys
STORE_NAME sys
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME importlib
STORE_NAME importlib
LOAD_CONST <code object bypass_compiler_fixup at 0x7fab4298eb70, file "f.py", line 5>
LOAD_CONST 'bypass_compiler_fixup'
MAKE_FUNCTION
STORE_NAME bypass_compiler_fixup
LOAD_NAME sys
LOA... | import sys
import importlib
def bypass_compiler_fixup(cmd, args):
return cmd
if sys.platform == "darwin":
compiler_fixup = importlib.import_module("_osx_support").compiler_fixup
else:
compiler_fixup = bypass_compiler_fixup
| data/setuptools-69.1.0/setuptools/_distutils/_macos_compat.py | 170 | 79 | 256,551 |
LOAD_CONST ' cluster api '
STORE_NAME __doc__
LOAD_CONST 0
LOAD_CONST ('get_cluster',)
IMPORT_NAME mcli.api.cluster.api_get_clusters
IMPORT_FROM get_cluster
STORE_NAME get_cluster
POP_TOP
LOAD_CONST 0
LOAD_CONST ('get_clusters',)
IMPORT_NAME mcli.api.cluster.api_get_clusters
IMPORT_FROM get_clusters
STORE_NAME get_cl... | """ cluster api """
from mcli.api.cluster.api_get_clusters import get_cluster as get_cluster
from mcli.api.cluster.api_get_clusters import get_clusters as get_clusters
from mcli.api.model.cluster_details import ClusterDetails as ClusterDetails
| data/mosaicml-cli-0.6.8/mcli/api/cluster/__init__.py | 140 | 79 | 190,014 |
LOAD_CONST 0
LOAD_CONST ('segment',)
IMPORT_NAME intercom
IMPORT_FROM segment
STORE_NAME segment
POP_TOP
LOAD_CONST 0
LOAD_CONST ('All',)
IMPORT_NAME intercom.api_operations.all
IMPORT_FROM All
STORE_NAME All
POP_TOP
LOAD_CONST 0
LOAD_CONST ('Find',)
IMPORT_NAME intercom.api_operations.find
IMPORT_FROM Find
STORE_NAM... | from intercom import segment
from intercom.api_operations.all import All
from intercom.api_operations.find import Find
from intercom.service.base_service import BaseService
class Segment(BaseService, All, Find):
@property
def collection_class(self):
return segment.Segment
| data/python-intercom-3.1.0/intercom/service/segment.py | 276 | 79 | 396,835 |
LOAD_CONST 0
LOAD_CONST ('Enum',)
IMPORT_NAME enum
IMPORT_FROM Enum
STORE_NAME Enum
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object WorkflowTriggerTimeBasedAttribute at 0x7fab4298e660, file "f.py", line 4>
LOAD_CONST 'WorkflowTriggerTimeBasedAttribute'
MAKE_FUNCTION
LOAD_CONST 'WorkflowTriggerTimeBasedAttribute'
LOAD... | from enum import Enum
class WorkflowTriggerTimeBasedAttribute(str, Enum):
EmployeeHireDate = ("employeeHireDate",)
EmployeeLeaveDateTime = ("employeeLeaveDateTime",)
UnknownFutureValue = ("unknownFutureValue",)
CreatedDateTime = ("createdDateTime",)
| data/msgraph-sdk-1.1.0/msgraph/generated/models/identity_governance/workflow_trigger_time_based_attribute.py | 207 | 79 | 262,330 |
LOAD_CONST 0
LOAD_CONST ('numeral',)
IMPORT_NAME pytils
IMPORT_FROM numeral
STORE_NAME numeral
POP_TOP
LOAD_NAME print
LOAD_NAME numeral
LOAD_METHOD rubles
LOAD_CONST 10
CALL_METHOD
CALL_FUNCTION
POP_TOP
LOAD_NAME print
LOAD_NAME numeral
LOAD_ATTR rubles
LOAD_CONST 10
LOAD_CONST True
LOAD_CONST ('zero_for_kopeck',)
C... | from pytils import numeral
print(numeral.rubles(10))
print(numeral.rubles(10, zero_for_kopeck=True))
print(numeral.rubles(2.35))
print(numeral.rubles(3.95754))
| data/pytils-0.4.1/doc/examples/numeral.rubles.py | 145 | 79 | 160,776 |
LOAD_CONST 0
LOAD_CONST ('Any', 'Optional')
IMPORT_NAME typing
IMPORT_FROM Any
STORE_NAME Any
IMPORT_FROM Optional
STORE_NAME Optional
POP_TOP
LOAD_CONST 1
LOAD_CONST ('clean',)
IMPORT_NAME clean
IMPORT_FROM clean
STORE_NAME clean
POP_TOP
LOAD_CONST 0
LOAD_CONST ('escape',)
IMPORT_NAME html
IMPORT_FROM escape
STORE_N... | from typing import Any, Optional
from .clean import clean
from html import escape as html_escape
def render(raw: str, **kwargs: Any) -> Optional[str]:
rendered = html_escape(raw).replace("\n", "<br>")
return clean(rendered, tags={"br"})
| data/readme_renderer-42.0/readme_renderer/txt.py | 205 | 79 | 251,550 |
LOAD_CONST 1
LOAD_CONST ('compute_view',)
IMPORT_NAME viewport_helpers
IMPORT_FROM compute_view
STORE_NAME compute_view
POP_TOP
LOAD_CONST 1
LOAD_CONST ('has_geo_interface', 'is_pandas_df', 'records_from_geo_interface')
IMPORT_NAME type_checking
IMPORT_FROM has_geo_interface
STORE_NAME has_geo_interface
IMPORT_FROM is... | from .viewport_helpers import compute_view # noqa
from .type_checking import (
has_geo_interface,
is_pandas_df,
records_from_geo_interface,
) # noqa
from .color_scales import assign_random_colors # noqa
| data/pydeck-0.8.0/pydeck/data_utils/__init__.py | 166 | 79 | 348,076 |
LOAD_CONST 0
LOAD_CONST ('Enum',)
IMPORT_NAME enum
IMPORT_FROM Enum
STORE_NAME Enum
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object OperatingSystemUpgradeEligibility at 0x7fab820f4d20, file "f.py", line 4>
LOAD_CONST 'OperatingSystemUpgradeEligibility'
MAKE_FUNCTION
LOAD_CONST 'OperatingSystemUpgradeEligibility'
LOAD... | from enum import Enum
class OperatingSystemUpgradeEligibility(str, Enum):
Upgraded = ("upgraded",)
Unknown = ("unknown",)
NotCapable = ("notCapable",)
Capable = ("capable",)
UnknownFutureValue = ("unknownFutureValue",)
| data/msgraph-sdk-1.1.0/msgraph/generated/models/operating_system_upgrade_eligibility.py | 213 | 79 | 261,491 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME yaml
STORE_NAME yaml
LOAD_CONST 0
LOAD_CONST ('Parser',)
IMPORT_NAME insights.core
IMPORT_FROM Parser
STORE_NAME Parser
POP_TOP
LOAD_CONST 0
LOAD_CONST ('parser',)
IMPORT_NAME insights.core.plugins
IMPORT_FROM parser
STORE_NAME parser
POP_TOP
LOAD_CONST 0
LOAD_CONST ('Specs',... | import yaml
from insights.core import Parser
from insights.core.plugins import parser
from insights.specs import Specs
@parser(Specs.metadata_json)
class MetadataJson(Parser):
def parse_content(self, content):
self.data = yaml.safe_load(content)
| data/insights-core-3.3.9/insights/parsers/metadata.py | 286 | 79 | 212,940 |
LOAD_CONST 0
LOAD_CONST ('absolute_import',)
IMPORT_NAME __future__
IMPORT_FROM absolute_import
STORE_NAME absolute_import
POP_TOP
LOAD_CONST 0
LOAD_CONST ('division',)
IMPORT_NAME __future__
IMPORT_FROM division
STORE_NAME division
POP_TOP
LOAD_CONST 0
LOAD_CONST ('print_function',)
IMPORT_NAME __future__
IMPORT_FRO... | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
def check_minLength(constraint, value):
if value is None:
return True
if len(value) >= constraint:
return True
return False
| data/tableschema-1.20.2/tableschema/constraints/minLength.py | 224 | 79 | 160,749 |
LOAD_CONST 0
LOAD_CONST ('absolute_import',)
IMPORT_NAME __future__
IMPORT_FROM absolute_import
STORE_NAME absolute_import
POP_TOP
LOAD_CONST 0
LOAD_CONST ('division',)
IMPORT_NAME __future__
IMPORT_FROM division
STORE_NAME division
POP_TOP
LOAD_CONST 0
LOAD_CONST ('print_function',)
IMPORT_NAME __future__
IMPORT_FRO... | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
def check_maxLength(constraint, value):
if value is None:
return True
if len(value) <= constraint:
return True
return False
| data/tableschema-1.20.2/tableschema/constraints/maxLength.py | 224 | 79 | 160,747 |
LOAD_CONST 'Module containing cnot-phase circuits'
STORE_NAME __doc__
LOAD_CONST 1
LOAD_CONST ('synth_cz_depth_line_mr',)
IMPORT_NAME cz_depth_lnn
IMPORT_FROM synth_cz_depth_line_mr
STORE_NAME synth_cz_depth_line_mr
POP_TOP
LOAD_CONST 1
LOAD_CONST ('synth_cx_cz_depth_line_my',)
IMPORT_NAME cx_cz_depth_lnn
IMPORT_FROM... | """Module containing cnot-phase circuits"""
from .cz_depth_lnn import synth_cz_depth_line_mr
from .cx_cz_depth_lnn import synth_cx_cz_depth_line_my
from .cnot_phase_synth import synth_cnot_phase_aam
| data/qiskit-terra-0.46.0/qiskit/synthesis/linear_phase/__init__.py | 197 | 79 | 431,056 |
LOAD_CONST 'AUTOGENERATED. DO NOT EDIT.'
STORE_NAME __doc__
LOAD_CONST 0
LOAD_CONST ('VGG19',)
IMPORT_NAME tf_keras.src.applications.vgg19
IMPORT_FROM VGG19
STORE_NAME VGG19
POP_TOP
LOAD_CONST 0
LOAD_CONST ('decode_predictions',)
IMPORT_NAME tf_keras.src.applications.vgg19
IMPORT_FROM decode_predictions
STORE_NAME de... | """AUTOGENERATED. DO NOT EDIT."""
from tf_keras.src.applications.vgg19 import VGG19
from tf_keras.src.applications.vgg19 import decode_predictions
from tf_keras.src.applications.vgg19 import preprocess_input
| data/tf_keras-nightly-2.17.0.dev2024022110/tf_keras/api/_v2/keras/applications/vgg19/__init__.py | 158 | 79 | 165,278 |
BUILD_LIST
STORE_NAME urlpatterns
LOAD_NAME __name__
LOAD_CONST '.bad_handler'
BINARY_ADD
STORE_NAME handler400
LOAD_NAME __name__
LOAD_CONST '.bad_handler'
BINARY_ADD
STORE_NAME handler403
LOAD_NAME __name__
LOAD_CONST '.bad_handler'
BINARY_ADD
STORE_NAME handler404
LOAD_NAME __name__
LOAD_CONST '.bad_handler'
BIN... | urlpatterns = []
handler400 = __name__ + ".bad_handler"
handler403 = __name__ + ".bad_handler"
handler404 = __name__ + ".bad_handler"
handler500 = __name__ + ".bad_handler"
def bad_handler():
pass
| data/Django-5.0.2/tests/check_framework/urls/bad_function_based_error_handlers.py | 151 | 79 | 325,950 |
LOAD_CONST '\n=============\nKalman Module\n=============\n\nThis module provides inference methods for state-space estimation in continuous\nspaces.\n'
STORE_NAME __doc__
LOAD_CONST 1
LOAD_CONST ('CholeskyKalmanFilter',)
IMPORT_NAME cholesky
IMPORT_FROM CholeskyKalmanFilter
STORE_NAME CholeskyKalmanFilter
POP_TOP
LO... | """
=============
Kalman Module
=============
This module provides inference methods for state-space estimation in continuous
spaces.
"""
from .cholesky import CholeskyKalmanFilter
from .bierman import BiermanKalmanFilter
from .unscented import AdditiveUnscentedKalmanFilter
| data/pykalman-0.9.5/pykalman/sqrt/__init__.py | 179 | 79 | 120,671 |
LOAD_BUILD_CLASS
LOAD_CONST <code object Calculation at 0x7fab82363ed0, file "f.py", line 1>
LOAD_CONST 'Calculation'
MAKE_FUNCTION
LOAD_CONST 'Calculation'
CALL_FUNCTION
STORE_NAME Calculation
LOAD_CONST None
RETURN_VALUE
LOAD_NAME __name__
STORE_NAME __module__
LOAD_CONST 'Calculation'
STORE_NAME __qualname__
LOAD_... | class Calculation:
def add(self, a, b):
return a + b
def subtract(self, a, b):
return a - b
def multiply(self, a, b):
return a * b
def divide(self, a, b):
return a // b
| data/twisted-23.10.0/docs/core/howto/listings/trial/calculus/base_2.py | 321 | 79 | 383,387 |
LOAD_CONST 0
LOAD_CONST ('cloud',)
IMPORT_NAME openstack
IMPORT_FROM cloud
STORE_NAME openstack
POP_TOP
LOAD_NAME openstack
LOAD_ATTR enable_logging
LOAD_CONST True
LOAD_CONST ('debug',)
CALL_FUNCTION
POP_TOP
LOAD_NAME openstack
LOAD_ATTR connect
LOAD_CONST 'ovh'
LOAD_CONST 'SBG1'
LOAD_CONST ('cloud', 'region_name')
... | from openstack import cloud as openstack
openstack.enable_logging(debug=True)
cloud = openstack.connect(cloud="ovh", region_name="SBG1")
image = cloud.get_image("Ubuntu 16.10")
print(image.name)
print(image["name"])
| data/openstacksdk-2.1.0/examples/cloud/munch-dict-object.py | 144 | 79 | 284,801 |
LOAD_BUILD_CLASS
LOAD_CONST <code object SetupError at 0x7fab703bb270, file "f.py", line 1>
LOAD_CONST 'SetupError'
MAKE_FUNCTION
LOAD_CONST 'SetupError'
LOAD_NAME Exception
CALL_FUNCTION
STORE_NAME SetupError
LOAD_BUILD_CLASS
LOAD_CONST <code object WaitTimeoutError at 0x7fab703bb5d0, file "f.py", line 5>
LOAD_CONST ... | class SetupError(Exception):
pass
class WaitTimeoutError(Exception):
pass
class RequestError(Exception):
pass
class UnknownValueError(Exception):
pass
class TranscriptionNotReady(Exception):
pass
class TranscriptionFailed(Exception):
pass
| data/SpeechRecognition-3.10.1/speech_recognition/exceptions.py | 566 | 79 | 196,651 |
SETUP_ANNOTATIONS
LOAD_CONST 'Constants for Brother integration.'
STORE_NAME __doc__
LOAD_CONST 0
LOAD_CONST ('annotations',)
IMPORT_NAME __future__
IMPORT_FROM annotations
STORE_NAME annotations
POP_TOP
LOAD_CONST 0
LOAD_CONST ('Final',)
IMPORT_NAME typing
IMPORT_FROM Final
STORE_NAME Final
POP_TOP
LOAD_CONST 'conf... | """Constants for Brother integration."""
from __future__ import annotations
from typing import Final
DATA_CONFIG_ENTRY: Final = "config_entry"
DOMAIN: Final = "brother"
PRINTER_TYPES: Final = ["laser", "ink"]
SNMP: Final = "snmp"
| data/homeassistant-2024.2.2/homeassistant/components/brother/const.py | 214 | 79 | 297,905 |
LOAD_CONST 0
LOAD_CONST ('Setting',)
IMPORT_NAME azure.functions.decorators.core
IMPORT_FROM Setting
STORE_NAME Setting
POP_TOP
LOAD_CONST 'function_name'
STORE_NAME FUNCTION_NAME
LOAD_BUILD_CLASS
LOAD_CONST <code object FunctionName at 0x7f8af16eb390, file "f.py", line 6>
LOAD_CONST 'FunctionName'
MAKE_FUNCTION
LOAD... | from azure.functions.decorators.core import Setting
FUNCTION_NAME = "function_name"
class FunctionName(Setting):
def __init__(self, function_name: str, **kwargs):
self.function_name = function_name
super().__init__(setting_name=FUNCTION_NAME)
| data/azure-functions-1.18.0/azure/functions/decorators/function_name.py | 265 | 79 | 423,919 |
LOAD_CONST 0
LOAD_CONST ('Enum',)
IMPORT_NAME enum
IMPORT_FROM Enum
STORE_NAME Enum
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object NetworkConnectionType at 0x7fab4298e930, file "f.py", line 4>
LOAD_CONST 'NetworkConnectionType'
MAKE_FUNCTION
LOAD_CONST 'NetworkConnectionType'
LOAD_NAME str
LOAD_NAME Enum
CALL_FUNCTI... | from enum import Enum
class NetworkConnectionType(str, Enum):
Unknown = ("unknown",)
Wired = ("wired",)
Wifi = ("wifi",)
Mobile = ("mobile",)
Tunnel = ("tunnel",)
UnknownFutureValue = ("unknownFutureValue",)
| data/msgraph-sdk-1.1.0/msgraph/generated/models/call_records/network_connection_type.py | 195 | 79 | 262,403 |
LOAD_CONST 'biocommons.seqrepo package'
STORE_NAME __doc__
LOAD_CONST 0
LOAD_CONST ('PackageNotFoundError', 'version')
IMPORT_NAME importlib.metadata
IMPORT_FROM PackageNotFoundError
STORE_NAME PackageNotFoundError
IMPORT_FROM version
STORE_NAME version
POP_TOP
LOAD_CONST 1
LOAD_CONST ('SeqRepo',)
IMPORT_NAME seqrepo... | """biocommons.seqrepo package"""
from importlib.metadata import PackageNotFoundError, version
from .seqrepo import SeqRepo # noqa: F401
try:
__version__ = version(__package__)
except PackageNotFoundError: # pragma: no cover
__version__ = None
| data/biocommons.seqrepo-0.6.9/src/biocommons/seqrepo/__init__.py | 163 | 79 | 209,045 |
LOAD_CONST 0
LOAD_CONST ('base',)
IMPORT_NAME openstackclient.tests.functional
IMPORT_FROM base
STORE_NAME base
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object BaseImageTests at 0x7fa9e23198a0, file "f.py", line 4>
LOAD_CONST 'BaseImageTests'
MAKE_FUNCTION
LOAD_CONST 'BaseImageTests'
LOAD_NAME base
LOAD_ATTR TestCase... | from openstackclient.tests.functional import base
class BaseImageTests(base.TestCase):
"""Functional tests for Image commands"""
@classmethod
def setUpClass(cls):
super(BaseImageTests, cls).setUpClass()
cls.haz_v1_api = False
| data/python-openstackclient-6.5.0/openstackclient/tests/functional/image/base.py | 266 | 79 | 153,769 |
LOAD_CONST 'Lazy-Imports main package.'
STORE_NAME __doc__
LOAD_CONST 0
LOAD_CONST ('LazyImporter',)
IMPORT_NAME lazy_imports.lazy_imports
IMPORT_FROM LazyImporter
STORE_NAME LazyImporter
POP_TOP
LOAD_CONST 0
LOAD_CONST ('try_import',)
IMPORT_NAME lazy_imports.try_import
IMPORT_FROM try_import
STORE_NAME try_import
P... | """Lazy-Imports main package."""
from lazy_imports.lazy_imports import LazyImporter
from lazy_imports.try_import import try_import
__version__ = "0.3.1"
__all__ = ["LazyImporter", "try_import", "__version__"]
| data/lazy_imports-0.3.1/lazy_imports/__init__.py | 141 | 79 | 160,686 |
LOAD_CONST 0
LOAD_CONST ('AzureOpenAI', 'BaseOpenAI', 'OpenAI', 'OpenAIChat')
IMPORT_NAME langchain_community.llms.openai
IMPORT_FROM AzureOpenAI
STORE_NAME AzureOpenAI
IMPORT_FROM BaseOpenAI
STORE_NAME BaseOpenAI
IMPORT_FROM OpenAI
STORE_NAME OpenAI
IMPORT_FROM OpenAIChat
STORE_NAME OpenAIChat
POP_TOP
LOAD_CONST 'Bas... | from langchain_community.llms.openai import (
AzureOpenAI,
BaseOpenAI,
OpenAI,
OpenAIChat,
)
__all__ = [
"BaseOpenAI",
"OpenAI",
"AzureOpenAI",
"OpenAIChat",
]
| data/langchain-0.1.8/langchain/llms/openai.py | 126 | 79 | 368,924 |
LOAD_CONST 0
LOAD_CONST ('Event',)
IMPORT_NAME flet_core.event
IMPORT_FROM Event
STORE_NAME Event
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object ControlEvent at 0x7fab7016f6f0, file "f.py", line 4>
LOAD_CONST 'ControlEvent'
MAKE_FUNCTION
LOAD_CONST 'ControlEvent'
LOAD_NAME Event
CALL_FUNCTION
STORE_NAME ControlEvent... | from flet_core.event import Event
class ControlEvent(Event):
def __init__(self, target: str, name: str, data: str, control, page):
Event.__init__(self, target=target, name=name, data=data)
self.control = control
self.page = page
| data/flet_core-0.20.2/src/flet_core/control_event.py | 251 | 79 | 285,500 |
LOAD_CONST 1
LOAD_CONST ('AsyncOperationsOperations',)
IMPORT_NAME _async_operations_operations
IMPORT_FROM AsyncOperationsOperations
STORE_NAME AsyncOperationsOperations
POP_TOP
LOAD_CONST 1
LOAD_CONST ('RegistryManagementNonWorkspaceOperations',)
IMPORT_NAME _registry_management_non_workspace_operations
IMPORT_FROM ... | from ._async_operations_operations import AsyncOperationsOperations
from ._registry_management_non_workspace_operations import (
RegistryManagementNonWorkspaceOperations,
)
__all__ = [
"AsyncOperationsOperations",
"RegistryManagementNonWorkspaceOperations",
]
| data/azure-ai-ml-1.13.0/azure/ai/ml/_restclient/registry_discovery/aio/operations/__init__.py | 130 | 79 | 425,057 |
LOAD_CONST 0
LOAD_CONST ('division', 'absolute_import', 'print_function')
IMPORT_NAME __future__
IMPORT_FROM division
STORE_NAME division
IMPORT_FROM absolute_import
STORE_NAME absolute_import
IMPORT_FROM print_function
STORE_NAME print_function
POP_TOP
LOAD_CONST 2
STORE_NAME major
SETUP_EXCEPT to 58
LOAD_CONST 0
L... | from __future__ import division, absolute_import, print_function
major = 2
try:
from __svn_version__ import version
version_info = (major, version)
version = "%s_%s" % version_info
except (ImportError, ValueError):
version = str(major)
| data/catboost-1.2.2/catboost_all_src/contrib/python/numpy/py2/numpy/f2py/__version__.py | 188 | 79 | 176,456 |
LOAD_CONST 0
LOAD_CONST ('models',)
IMPORT_NAME django.db
IMPORT_FROM models
STORE_NAME models
POP_TOP
LOAD_CONST 0
LOAD_CONST ('RichTextField',)
IMPORT_NAME ckeditor.fields
IMPORT_FROM RichTextField
STORE_NAME RichTextField
POP_TOP
LOAD_CONST 0
LOAD_CONST ('RichTextUploadingField',)
IMPORT_NAME ckeditor_uploader.fie... | from django.db import models
from ckeditor.fields import RichTextField
from ckeditor_uploader.fields import RichTextUploadingField
class ExampleModel(models.Model):
content = RichTextUploadingField()
class ExampleNonUploadModel(models.Model):
content = RichTextField()
| data/django-ckeditor-6.7.1/ckeditor_demo/demo_application/models.py | 317 | 79 | 213,523 |
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 'example.settings'
CALL_M... | import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "example.settings")
from django.core.management import execute_from_command_line
execute_from_command_line(sys.argv)
| data/openedx-django-pyfs-3.5.0/example/manage.py | 153 | 79 | 136,453 |
LOAD_CONST 1
LOAD_CONST ('BaseRoIExtractor',)
IMPORT_NAME base_roi_extractor
IMPORT_FROM BaseRoIExtractor
STORE_NAME BaseRoIExtractor
POP_TOP
LOAD_CONST 1
LOAD_CONST ('GenericRoIExtractor',)
IMPORT_NAME generic_roi_extractor
IMPORT_FROM GenericRoIExtractor
STORE_NAME GenericRoIExtractor
POP_TOP
LOAD_CONST 1
LOAD_CONS... | from .base_roi_extractor import BaseRoIExtractor
from .generic_roi_extractor import GenericRoIExtractor
from .single_level_roi_extractor import SingleRoIExtractor
__all__ = ["BaseRoIExtractor", "SingleRoIExtractor", "GenericRoIExtractor"]
| data/mmdet-3.3.0/mmdet/models/roi_heads/roi_extractors/__init__.py | 163 | 79 | 150,643 |
LOAD_CONST 1
LOAD_CONST ('*',)
IMPORT_NAME api.basic_str
IMPORT_STAR
LOAD_CONST 1
LOAD_CONST ('__version__',)
IMPORT_NAME _version
IMPORT_FROM __version__
STORE_NAME __version__
POP_TOP
LOAD_CONST 1
LOAD_CONST ('basic_str',)
IMPORT_NAME api
IMPORT_FROM basic_str
STORE_NAME h3
POP_TOP
LOAD_CONST 1
LOAD_CONST ('H3Valu... | from .api.basic_str import *
from ._version import __version__
from .api import basic_str as h3
from ._cy import (
H3ValueError,
H3CellError,
H3ResolutionError,
H3EdgeError,
H3DistanceError,
)
| data/h3-3.7.6/src/h3/__init__.py | 186 | 79 | 286,239 |
LOAD_CONST '\n.. include:: ../README.md\n'
STORE_NAME __doc__
LOAD_CONST 1
LOAD_CONST ('CryticCompile', 'compile_all', 'is_supported')
IMPORT_NAME crytic_compile
IMPORT_FROM CryticCompile
STORE_NAME CryticCompile
IMPORT_FROM compile_all
STORE_NAME compile_all
IMPORT_FROM is_supported
STORE_NAME is_supported
POP_TOP
L... | """
.. include:: ../README.md
"""
from .crytic_compile import CryticCompile, compile_all, is_supported
from .compilation_unit import CompilationUnit
from .cryticparser import cryticparser
from .platform import InvalidCompilation
from .utils.zip import save_to_zip
| data/crytic-compile-0.3.6/crytic_compile/__init__.py | 217 | 79 | 346,250 |
LOAD_CONST 0
LOAD_CONST ('Enum',)
IMPORT_NAME enum
IMPORT_FROM Enum
STORE_NAME Enum
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object SiteSecurityLevel at 0x7fab4298ec00, file "f.py", line 4>
LOAD_CONST 'SiteSecurityLevel'
MAKE_FUNCTION
LOAD_CONST 'SiteSecurityLevel'
LOAD_NAME str
LOAD_NAME Enum
CALL_FUNCTION
STORE_NAM... | from enum import Enum
class SiteSecurityLevel(str, Enum):
UserDefined = ("userDefined",)
Low = ("low",)
MediumLow = ("mediumLow",)
Medium = ("medium",)
MediumHigh = ("mediumHigh",)
High = ("high",)
| data/msgraph-sdk-1.1.0/msgraph/generated/models/site_security_level.py | 194 | 79 | 261,438 |
LOAD_CONST 'Audrey Roy'
STORE_NAME __author__
LOAD_CONST 'audreyr@gmail.com'
STORE_NAME __email__
LOAD_CONST '0.3.1'
STORE_NAME __version__
LOAD_CONST 1
LOAD_CONST ('StandardJSONEncoder',)
IMPORT_NAME encoders
IMPORT_FROM StandardJSONEncoder
STORE_NAME StandardJSONEncoder
POP_TOP
LOAD_CONST None
RETURN_VALUE | __author__ = "Audrey Roy"
__email__ = "audreyr@gmail.com"
__version__ = "0.3.1"
"""
Serialize data to/from JSON
Inspired by http://git.io/7j9pPg
"""
from .encoders import StandardJSONEncoder
| data/standardjson-0.3.1/standardjson/__init__.py | 83 | 79 | 392,054 |
LOAD_CONST '\nSymplectic Operators\n'
STORE_NAME __doc__
LOAD_CONST 0
LOAD_CONST ('annotations',)
IMPORT_NAME __future__
IMPORT_FROM annotations
STORE_NAME annotations
POP_TOP
LOAD_CONST 1
LOAD_CONST ('Clifford',)
IMPORT_NAME clifford
IMPORT_FROM Clifford
STORE_NAME Clifford
POP_TOP
LOAD_CONST 1
LOAD_CONST ('Pauli',... | """
Symplectic Operators
"""
from __future__ import annotations
from .clifford import Clifford
from .pauli import Pauli
from .pauli_list import PauliList
from .pauli_utils import pauli_basis
from .sparse_pauli_op import SparsePauliOp
| data/qiskit-1.0.0/qiskit/quantum_info/operators/symplectic/__init__.py | 212 | 79 | 283,346 |
LOAD_CONST 0
LOAD_CONST ('SQL_FUNCTIONS_SUFFIX', 'SQL_PREFIX', 'SQL_SUFFIX')
IMPORT_NAME langchain_community.agent_toolkits.sql.prompt
IMPORT_FROM SQL_FUNCTIONS_SUFFIX
STORE_NAME SQL_FUNCTIONS_SUFFIX
IMPORT_FROM SQL_PREFIX
STORE_NAME SQL_PREFIX
IMPORT_FROM SQL_SUFFIX
STORE_NAME SQL_SUFFIX
POP_TOP
LOAD_CONST 'SQL_PREFI... | from langchain_community.agent_toolkits.sql.prompt import (
SQL_FUNCTIONS_SUFFIX,
SQL_PREFIX,
SQL_SUFFIX,
)
__all__ = ["SQL_PREFIX", "SQL_SUFFIX", "SQL_FUNCTIONS_SUFFIX"]
| data/langchain-0.1.8/langchain/agents/agent_toolkits/sql/prompt.py | 140 | 79 | 368,433 |
LOAD_CONST 0
LOAD_CONST ('Command',)
IMPORT_NAME django.core.management.commands.startproject
IMPORT_FROM Command
STORE_NAME BaseCommand
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object Command at 0x7f8af04b8db0, file "f.py", line 4>
LOAD_CONST 'Command'
MAKE_FUNCTION
LOAD_CONST 'Command'
LOAD_NAME BaseCommand
CALL_FU... | from django.core.management.commands.startproject import Command as BaseCommand
class Command(BaseCommand):
def add_arguments(self, parser):
super().add_arguments(parser)
parser.add_argument(
"--extra", help="An arbitrary extra value passed to the context"
)
| data/Django-5.0.2/tests/admin_scripts/management/commands/custom_startproject.py | 249 | 79 | 326,405 |
LOAD_CONST 0
LOAD_CONST ('BaseCommand',)
IMPORT_NAME django.core.management.base
IMPORT_FROM BaseCommand
STORE_NAME BaseCommand
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object Command at 0x7f8af04b84b0, file "f.py", line 4>
LOAD_CONST 'Command'
MAKE_FUNCTION
LOAD_CONST 'Command'
LOAD_NAME BaseCommand
CALL_FUNCTION
ST... | from django.core.management.base import BaseCommand
class Command(BaseCommand):
help = "Test No-args commands"
requires_system_checks = []
def handle(self, **options):
print("EXECUTE: noargs_command options=%s" % sorted(options.items()))
| data/Django-5.0.2/tests/admin_scripts/management/commands/noargs_command.py | 232 | 79 | 326,404 |
LOAD_CONST 'robosuite_panda_pick_place_can dataset.'
STORE_NAME __doc__
LOAD_CONST 0
LOAD_CONST ('RobosuitePandaPickPlaceCan',)
IMPORT_NAME tensorflow_datasets.rlds.robosuite_panda_pick_place_can.robosuite_panda_pick_place_can
IMPORT_FROM RobosuitePandaPickPlaceCan
STORE_NAME RobosuitePandaPickPlaceCan
POP_TOP
LOAD_CO... | """robosuite_panda_pick_place_can dataset."""
from tensorflow_datasets.rlds.robosuite_panda_pick_place_can.robosuite_panda_pick_place_can import (
RobosuitePandaPickPlaceCan,
)
| data/tensorflow-datasets-4.9.4/tensorflow_datasets/rlds/robosuite_panda_pick_place_can/__init__.py | 117 | 79 | 256,120 |
LOAD_CONST 0
LOAD_CONST ('RunnableAssign', 'RunnablePassthrough', 'aidentity', 'identity')
IMPORT_NAME langchain_core.runnables.passthrough
IMPORT_FROM RunnableAssign
STORE_NAME RunnableAssign
IMPORT_FROM RunnablePassthrough
STORE_NAME RunnablePassthrough
IMPORT_FROM aidentity
STORE_NAME aidentity
IMPORT_FROM identity
... | from langchain_core.runnables.passthrough import (
RunnableAssign,
RunnablePassthrough,
aidentity,
identity,
)
__all__ = ["aidentity", "identity", "RunnablePassthrough", "RunnableAssign"]
| data/langchain-0.1.8/langchain/schema/runnable/passthrough.py | 141 | 79 | 369,147 |
LOAD_CONST 1
LOAD_CONST ('decompress', 'Decompressor', 'compress', 'BrotliEncoderMode', 'DEFAULT_MODE', 'Compressor', 'MODE_GENERIC', 'MODE_TEXT', 'MODE_FONT', 'error', 'Error')
IMPORT_NAME brotli
IMPORT_FROM decompress
STORE_NAME decompress
IMPORT_FROM Decompressor
STORE_NAME Decompressor
IMPORT_FROM compress
STORE_NA... | from .brotli import (
decompress,
Decompressor,
compress,
BrotliEncoderMode,
DEFAULT_MODE,
Compressor,
MODE_GENERIC,
MODE_TEXT,
MODE_FONT,
error,
Error,
)
| data/brotlipy-0.7.0/src/brotli/__init__.py | 188 | 79 | 223,130 |
LOAD_CONST '\nSemantically empty submodule containing only only zero or more whitespace\ncharacters zero or more inline comments, this prefacing module docstring, and\none or more ``from __future__`` import statements -- exercising a pernicious\nedge case in AST transformation that actually happened and destroyed every... | """
Semantically empty submodule containing only only zero or more whitespace
characters zero or more inline comments, this prefacing module docstring, and
one or more ``from __future__`` import statements -- exercising a pernicious
edge case in AST transformation that actually happened and destroyed everything.
"""
f... | data/beartype-0.17.2/beartype_test/a00_unit/data/claw/intraprocess/hookable_package/beartype_this_package/empty_doc_future.py | 109 | 79 | 373,301 |
LOAD_CONST "Dataset definition for race.\n\nDEPRECATED!\nIf you want to use the Race dataset builder class, use:\ntfds.builder_cls('race')\n"
STORE_NAME __doc__
LOAD_CONST 0
LOAD_CONST ('lazy_builder_import',)
IMPORT_NAME tensorflow_datasets.core
IMPORT_FROM lazy_builder_import
STORE_NAME lazy_builder_import
POP_TOP
... | """Dataset definition for race.
DEPRECATED!
If you want to use the Race dataset builder class, use:
tfds.builder_cls('race')
"""
from tensorflow_datasets.core import lazy_builder_import
Race = lazy_builder_import.LazyBuilderImport("race")
| data/tfds-nightly-4.9.4.dev202402210044/tensorflow_datasets/text/race/race.py | 122 | 79 | 211,176 |
LOAD_CONST 0
LOAD_CONST ('Path',)
IMPORT_NAME pathlib
IMPORT_FROM Path
STORE_NAME Path
POP_TOP
LOAD_CONST <code object pytest_make_parametrize_id at 0x7fab8026c0c0, file "f.py", line 4>
LOAD_CONST 'pytest_make_parametrize_id'
MAKE_FUNCTION
STORE_NAME pytest_make_parametrize_id
LOAD_CONST None
RETURN_VALUE
LOAD_GLOBAL... | from pathlib import Path
def pytest_make_parametrize_id(config, val):
if isinstance(val, type(lambda: None)) and val.__qualname__ != "<lambda>":
return val.__qualname__
if isinstance(val, Path):
return str(val)
| data/mplcursors-0.5.3/tests/conftest.py | 248 | 79 | 223,066 |
LOAD_CONST '\nPackage contains interfaces for using existing functionality in other packages\n\nRequires Packages to be installed\n'
STORE_NAME __doc__
LOAD_CONST 'restructuredtext'
STORE_NAME __docformat__
LOAD_CONST 1
LOAD_CONST ('DataGrabber', 'DataSink', 'SelectFiles', 'BIDSDataGrabber')
IMPORT_NAME io
IMPORT_FRO... | """
Package contains interfaces for using existing functionality in other packages
Requires Packages to be installed
"""
__docformat__ = "restructuredtext"
from .io import DataGrabber, DataSink, SelectFiles, BIDSDataGrabber
from .utility import IdentityInterface, Rename, Function, Select, Merge
| data/nipype-1.8.6/nipype/interfaces/__init__.py | 201 | 79 | 138,666 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.