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 '\nThis module implements the HtmlResponse class which adds encoding\ndiscovering through HTML encoding declarations to the TextResponse class.\n\nSee documentation in docs/topics/request-response.rst\n'
STORE_NAME __doc__
LOAD_CONST 0
LOAD_CONST ('TextResponse',)
IMPORT_NAME scrapy.http.response.text
IMPOR... | """
This module implements the HtmlResponse class which adds encoding
discovering through HTML encoding declarations to the TextResponse class.
See documentation in docs/topics/request-response.rst
"""
from scrapy.http.response.text import TextResponse
class HtmlResponse(TextResponse):
pass
| data/Scrapy-2.11.1/scrapy/http/response/html.py | 186 | 77 | 332,534 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME pytest
STORE_NAME pytest
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME kernels
STORE_NAME kernels
LOAD_NAME pytest
LOAD_ATTR mark
LOAD_ATTR skip
LOAD_CONST 'Unable to generate any tests for kernel'
LOAD_CONST ('reason',)
CALL_FUNCTION
LOAD_CONST <code object test_pyawkward_ListOffs... | import pytest
import kernels
@pytest.mark.skip(reason="Unable to generate any tests for kernel")
def test_pyawkward_ListOffsetArrayU32_reduce_local_nextparents_64_1():
raise NotImplementedError("Unable to generate any tests for kernel")
| data/awkward-cpp-29/tests-spec/test_pyawkward_ListOffsetArrayU32_reduce_local_nextparents_64.py | 209 | 77 | 220,456 |
LOAD_CONST 'ModuleLoadTest uses this file to load tasks from module.'
STORE_NAME __doc__
LOAD_NAME dict
LOAD_CONST 2
LOAD_CONST ('verbose',)
CALL_FUNCTION
STORE_NAME DOIT_CONFIG
LOAD_CONST <code object task_xxx1 at 0x7fab41c96150, file "f.py", line 6>
LOAD_CONST 'task_xxx1'
MAKE_FUNCTION
STORE_NAME task_xxx1
LOAD_CO... | """ModuleLoadTest uses this file to load tasks from module."""
DOIT_CONFIG = dict(verbose=2)
def task_xxx1():
return dict(actions=[])
task_no = "strings are not tasks"
def blabla():
... # pragma: no cover
| data/doit-0.36.0/tests/module_with_tasks.py | 183 | 77 | 109,244 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME pytest
STORE_NAME pytest
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME kernels
STORE_NAME kernels
LOAD_NAME pytest
LOAD_ATTR mark
LOAD_ATTR skip
LOAD_CONST 'Unable to generate any tests for kernel'
LOAD_CONST ('reason',)
CALL_FUNCTION
LOAD_CONST <code object test_pyawkward_NumpyArr... | import pytest
import kernels
@pytest.mark.skip(reason="Unable to generate any tests for kernel")
def test_pyawkward_NumpyArray_fill_touint64_fromfloat64_1():
raise NotImplementedError("Unable to generate any tests for kernel")
| data/awkward-cpp-29/tests-spec/test_pyawkward_NumpyArray_fill_touint64_fromfloat64.py | 210 | 77 | 220,453 |
LOAD_CONST 0
LOAD_CONST ('FastAPI',)
IMPORT_NAME fastapi
IMPORT_FROM FastAPI
STORE_NAME FastAPI
POP_TOP
LOAD_CONST 0
LOAD_CONST ('HTTPSRedirectMiddleware',)
IMPORT_NAME fastapi.middleware.httpsredirect
IMPORT_FROM HTTPSRedirectMiddleware
STORE_NAME HTTPSRedirectMiddleware
POP_TOP
LOAD_NAME FastAPI
CALL_FUNCTION
STORE... | from fastapi import FastAPI
from fastapi.middleware.httpsredirect import HTTPSRedirectMiddleware
app = FastAPI()
app.add_middleware(HTTPSRedirectMiddleware)
@app.get("/")
async def main():
return {"message": "Hello World"}
| data/fastapi-0.109.2/docs_src/advanced_middleware/tutorial001.py | 187 | 77 | 142,769 |
LOAD_CONST 0
LOAD_CONST ('Context', 'IpcMemHandle', 'CudaBuffer', 'HostBuffer', 'BufferReader', 'BufferWriter', 'new_host_buffer', 'serialize_record_batch', 'read_message', 'read_record_batch')
IMPORT_NAME pyarrow._cuda
IMPORT_FROM Context
STORE_NAME Context
IMPORT_FROM IpcMemHandle
STORE_NAME IpcMemHandle
IMPORT_FROM ... | from pyarrow._cuda import (
Context,
IpcMemHandle,
CudaBuffer,
HostBuffer,
BufferReader,
BufferWriter,
new_host_buffer,
serialize_record_batch,
read_message,
read_record_batch,
)
| data/pyarrow-15.0.0/pyarrow/cuda.py | 183 | 77 | 94,474 |
LOAD_CONST 0
LOAD_CONST ('ServiceMaker',)
IMPORT_NAME twisted.application.service
IMPORT_FROM ServiceMaker
STORE_NAME ServiceMaker
POP_TOP
LOAD_NAME ServiceMaker
LOAD_CONST 'Twisted Web'
LOAD_CONST 'twisted.web.tap'
LOAD_CONST 'A general-purpose web server which can serve from a filesystem or application resource.'... | from twisted.application.service import ServiceMaker
TwistedWeb = ServiceMaker(
"Twisted Web",
"twisted.web.tap",
(
"A general-purpose web server which can serve from a "
"filesystem or application resource."
),
"web",
)
| data/twisted-23.10.0/src/twisted/plugins/twisted_web.py | 95 | 77 | 384,034 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME sys
STORE_NAME sys
LOAD_NAME bool
LOAD_NAME getattr
LOAD_NAME sys
LOAD_CONST 'ps1'
LOAD_NAME sys
LOAD_ATTR flags
LOAD_ATTR interactive
CALL_FUNCTION
CALL_FUNCTION
POP_JUMP_IF_TRUE
SETUP_EXCEPT to 62
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME readline
STORE_NAME readline
LOAD_N... | import sys
if not bool(getattr(sys, "ps1", sys.flags.interactive)):
try:
import readline
readline.set_history_length(0)
readline.set_auto_history(False)
except (ImportError, AttributeError):
pass
| data/consolekit-1.6.0/consolekit/_readline.py | 157 | 77 | 80,913 |
LOAD_CONST 0
LOAD_CONST ('Union',)
IMPORT_NAME typing
IMPORT_FROM Union
STORE_NAME Union
POP_TOP
LOAD_CONST 2
LOAD_CONST ('UnknownType',)
IMPORT_NAME extensions
IMPORT_FROM UnknownType
STORE_NAME UnknownType
POP_TOP
LOAD_CONST 2
LOAD_CONST ('Batch',)
IMPORT_NAME models.batch
IMPORT_FROM Batch
STORE_NAME Batch
POP_TOP... | from typing import Union
from ..extensions import UnknownType
from ..models.batch import Batch
from ..models.container import Container
from ..models.generic_entity import GenericEntity
from ..models.plate import Plate
WorklistItem = Union[Batch, Container, GenericEntity, Plate, UnknownType]
| data/benchling_api_client-2.0.271/benchling_api_client/v2/beta/models/worklist_item.py | 197 | 77 | 71,044 |
LOAD_CONST 1
LOAD_CONST ('_OpenStack',)
IMPORT_NAME
IMPORT_FROM _OpenStack
STORE_NAME _OpenStack
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object _Multiregion at 0x7fab703bb660, file "f.py", line 4>
LOAD_CONST '_Multiregion'
MAKE_FUNCTION
LOAD_CONST '_Multiregion'
LOAD_NAME _OpenStack
CALL_FUNCTION
STORE_NAME _Multire... | from . import _OpenStack
class _Multiregion(_OpenStack):
_type = "multiregion"
_icon_dir = "resources/openstack/multiregion"
class Tricircle(_Multiregion):
_icon = "tricircle.png"
| data/diagrams-0.23.4/diagrams/openstack/multiregion.py | 279 | 77 | 205,940 |
LOAD_CONST 0
LOAD_CONST ('BotoServerError',)
IMPORT_NAME boto.exception
IMPORT_FROM BotoServerError
STORE_NAME BotoServerError
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object InvalidRequestContentException at 0x7fab417514b0, file "f.py", line 4>
LOAD_CONST 'InvalidRequestContentException'
MAKE_FUNCTION
LOAD_CONST 'In... | from boto.exception import BotoServerError
class InvalidRequestContentException(BotoServerError):
pass
class ResourceNotFoundException(BotoServerError):
pass
class InvalidParameterValueException(BotoServerError):
pass
class ServiceException(BotoServerError):
pass
| data/boto-2.49.0/boto/awslambda/exceptions.py | 429 | 77 | 347,002 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME datetime
STORE_NAME datetime
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME pytz
STORE_NAME pytz
LOAD_CONST <code object now_aware at 0x7fab821c54b0, file "f.py", line 4>
LOAD_CONST 'now_aware'
MAKE_FUNCTION
STORE_NAME now_aware
LOAD_CONST <code object now_as_string at 0x7faad431d81... | import datetime, pytz
def now_aware():
return datetime.datetime.utcnow().replace(tzinfo=pytz.utc)
def now_as_string():
return now_aware().strftime("%Y-%m-%dT%H:%M:%S%z")
| data/cnvrg-0.7.55/cnvrg/helpers/time_helper.py | 211 | 77 | 219,385 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME pytest
STORE_NAME pytest
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME kernels
STORE_NAME kernels
LOAD_NAME pytest
LOAD_ATTR mark
LOAD_ATTR skip
LOAD_CONST 'Unable to generate any tests for kernel'
LOAD_CONST ('reason',)
CALL_FUNCTION
LOAD_CONST <code object test_pyawkward_NumpyArr... | import pytest
import kernels
@pytest.mark.skip(reason="Unable to generate any tests for kernel")
def test_pyawkward_NumpyArray_reduce_mask_ByteMaskedArray_64_1():
raise NotImplementedError("Unable to generate any tests for kernel")
| data/awkward-cpp-29/tests-spec/test_pyawkward_NumpyArray_reduce_mask_ByteMaskedArray_64.py | 209 | 77 | 220,427 |
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 TypeTwoOnly at 0x7fab70306db0, file "f.py", line 4>
LOAD_CONST 'TypeTwoOnly'
MAKE_FUNCTION
LOAD_CONST 'TypeTwoOnly'
LOAD_NAME models
LOAD_ATTR Model
CALL_FUNCTION
STORE_NAME T... | from django.db import models
class TypeTwoOnly(models.Model):
"""
Just a test model so we can test manipulating data inside a tenant
"""
name = models.CharField(max_length=100)
def __unicode__(self):
return self.name
| data/django-tenants-3.6.1/dts_test_project/dts_multi_type2/models.py | 242 | 77 | 224,951 |
LOAD_CONST 0
LOAD_CONST ('RuckusFastironSSH',)
IMPORT_NAME netmiko.ruckus.ruckus_fastiron
IMPORT_FROM RuckusFastironSSH
STORE_NAME RuckusFastironSSH
POP_TOP
LOAD_CONST 0
LOAD_CONST ('RuckusFastironTelnet',)
IMPORT_NAME netmiko.ruckus.ruckus_fastiron
IMPORT_FROM RuckusFastironTelnet
STORE_NAME RuckusFastironTelnet
POP_... | from netmiko.ruckus.ruckus_fastiron import RuckusFastironSSH
from netmiko.ruckus.ruckus_fastiron import RuckusFastironTelnet
__all__ = ["RuckusFastironSSH", "RuckusFastironTelnet"]
| data/netmiko-4.3.0/netmiko/ruckus/__init__.py | 146 | 77 | 302,435 |
LOAD_CONST 0
LOAD_CONST ('Collection', 'Union')
IMPORT_NAME typing
IMPORT_FROM Collection
STORE_NAME Collection
IMPORT_FROM Union
STORE_NAME Union
POP_TOP
LOAD_NAME Collection
LOAD_NAME Union
LOAD_NAME str
LOAD_NAME int
BUILD_TUPLE
BINARY_SUBSCR
BINARY_SUBSCR
LOAD_NAME str
LOAD_CONST ('path', 'return')
BUILD_CONST_KEY... | from typing import Collection, Union
def print_path_list(path: Collection[Union[str, int]]) -> str:
"""Build a string describing the path."""
return "".join(f"[{key}]" if isinstance(key, int) else f".{key}" for key in path)
| data/graphql-core-3.2.3/src/graphql/pyutils/print_path_list.py | 267 | 77 | 398,611 |
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 'settings'
CALL_METHOD
PO... | import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "settings")
from django.core.management import execute_from_command_line
execute_from_command_line(sys.argv)
| data/django-bootstrap5-23.4/example/manage.py | 151 | 77 | 116,943 |
LOAD_CONST 0
LOAD_CONST ('DjangoJSONEncoder',)
IMPORT_NAME django.core.serializers.json
IMPORT_FROM DjangoJSONEncoder
STORE_NAME DjangoJSONEncoder
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object SafeJsonEncoder at 0x7fab822c5300, file "f.py", line 4>
LOAD_CONST 'SafeJsonEncoder'
MAKE_FUNCTION
LOAD_CONST 'SafeJsonEnco... | from django.core.serializers.json import DjangoJSONEncoder
class SafeJsonEncoder(DjangoJSONEncoder):
def default(self, o):
try:
return super(SafeJsonEncoder, self).default(o)
except TypeError as e:
return str(e)
| data/django-datadog-logger-0.6.3/django_datadog_logger/encoders.py | 307 | 77 | 196,717 |
LOAD_CONST 0
LOAD_CONST ('Literal',)
IMPORT_NAME typing_extensions
IMPORT_FROM Literal
STORE_NAME Literal
POP_TOP
LOAD_CONST 2
LOAD_CONST ('BaseModel',)
IMPORT_NAME _models
IMPORT_FROM BaseModel
STORE_NAME BaseModel
POP_TOP
LOAD_CONST 1
LOAD_CONST ('TextDelta',)
IMPORT_NAME text_delta
IMPORT_FROM TextDelta
STORE_NAME... | from typing_extensions import Literal
from .._models import BaseModel
from .text_delta import TextDelta
__all__ = ["ContentBlockDeltaEvent"]
class ContentBlockDeltaEvent(BaseModel):
delta: TextDelta
index: int
type: Literal["content_block_delta"]
| data/anthropic-0.16.0/src/anthropic/types/content_block_delta_event.py | 262 | 77 | 222,010 |
LOAD_CONST 0
LOAD_CONST ('check_spark', 'get_n_cpus', 'with_parameters', 'broadcast_code')
IMPORT_NAME flaml.tune.spark.utils
IMPORT_FROM check_spark
STORE_NAME check_spark
IMPORT_FROM get_n_cpus
STORE_NAME get_n_cpus
IMPORT_FROM with_parameters
STORE_NAME with_parameters
IMPORT_FROM broadcast_code
STORE_NAME broadcast... | from flaml.tune.spark.utils import (
check_spark,
get_n_cpus,
with_parameters,
broadcast_code,
)
__all__ = ["check_spark", "get_n_cpus", "with_parameters", "broadcast_code"]
| data/FLAML-2.1.1/flaml/tune/spark/__init__.py | 141 | 77 | 165,418 |
LOAD_CONST 0
LOAD_CONST ('Flask',)
IMPORT_NAME flask
IMPORT_FROM Flask
STORE_NAME Flask
POP_TOP
LOAD_CONST 0
LOAD_CONST ('SQLAlchemy',)
IMPORT_NAME flask.ext.sqlalchemy
IMPORT_FROM SQLAlchemy
STORE_NAME SQLAlchemy
POP_TOP
LOAD_NAME Flask
LOAD_NAME __name__
CALL_FUNCTION
STORE_NAME app
LOAD_NAME app
LOAD_ATTR config
... | from flask import Flask
from flask.ext.sqlalchemy import SQLAlchemy
app = Flask(__name__)
app.config.from_object("config")
db = SQLAlchemy(app)
from app import views, models # noqa: E402,F401
| data/facebook-sdk-3.1.0/examples/flask/app/__init__.py | 150 | 77 | 366,323 |
LOAD_CONST <code object get_locale_dir_variable_name at 0x7fab416c69c0, file "f.py", line 1>
LOAD_CONST 'get_locale_dir_variable_name'
MAKE_FUNCTION
STORE_NAME get_locale_dir_variable_name
LOAD_CONST None
RETURN_VALUE
LOAD_FAST domain
LOAD_METHOD upper
CALL_METHOD
LOAD_METHOD replace
LOAD_CONST '.'
LOAD_CONST '_'
CALL... | def get_locale_dir_variable_name(domain):
"""Build environment variable name for local dir.
Convert a translation domain name to a variable for specifying
a separate locale dir.
"""
return domain.upper().replace(".", "_").replace("-", "_") + "_LOCALEDIR"
| data/oslo.i18n-6.2.0/oslo_i18n/_locale.py | 118 | 77 | 370,702 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME pytest
STORE_NAME pytest
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME kernels
STORE_NAME kernels
LOAD_NAME pytest
LOAD_ATTR mark
LOAD_ATTR skip
LOAD_CONST 'Unable to generate any tests for kernel'
LOAD_CONST ('reason',)
CALL_FUNCTION
LOAD_CONST <code object test_pyawkward_NumpyArr... | import pytest
import kernels
@pytest.mark.skip(reason="Unable to generate any tests for kernel")
def test_pyawkward_NumpyArray_fill_touint64_fromuint32_1():
raise NotImplementedError("Unable to generate any tests for kernel")
| data/awkward-cpp-29/tests-spec/test_pyawkward_NumpyArray_fill_touint64_fromuint32.py | 209 | 77 | 220,610 |
LOAD_CONST 0
LOAD_CONST ('get_translation',)
IMPORT_NAME sphinx.locale
IMPORT_FROM get_translation
STORE_NAME get_translation
POP_TOP
LOAD_CONST 'sphinxcontrib.confluencebuilder'
STORE_NAME MESSAGE_CATALOG_NAME
LOAD_NAME get_translation
LOAD_NAME MESSAGE_CATALOG_NAME
CALL_FUNCTION
STORE_NAME L
LOAD_NAME get_translat... | from sphinx.locale import get_translation
MESSAGE_CATALOG_NAME = "sphinxcontrib.confluencebuilder"
L = get_translation(MESSAGE_CATALOG_NAME)
C = get_translation(MESSAGE_CATALOG_NAME, "console")
| data/sphinxcontrib_confluencebuilder-2.4.0/sphinxcontrib/confluencebuilder/locale/__init__.py | 113 | 77 | 361,768 |
LOAD_CONST 0
LOAD_CONST ('*',)
IMPORT_NAME azure.cli.core.aaz
IMPORT_STAR
LOAD_NAME register_command_group
LOAD_CONST 'cosmosdb postgres configuration'
CALL_FUNCTION
LOAD_BUILD_CLASS
LOAD_CONST <code object __CMDGroup at 0x7fab70055d20, file "f.py", line 4>
LOAD_CONST '__CMDGroup'
MAKE_FUNCTION
LOAD_CONST '__CMDGroup... | from azure.cli.core.aaz import *
@register_command_group(
"cosmosdb postgres configuration",
)
class __CMDGroup(AAZCommandGroup):
"""Manage Azure Cosmos DB for PostgreSQL configurations."""
pass
__all__ = ["__CMDGroup"]
| data/azure-cli-2.57.0/azure/cli/command_modules/cosmosdb/aaz/latest/cosmosdb/postgres/configuration/__cmd_group.py | 187 | 77 | 375,134 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME warnings
STORE_NAME warnings
LOAD_CONST 1
LOAD_CONST ('*',)
IMPORT_NAME abc
IMPORT_STAR
LOAD_NAME warnings
LOAD_ATTR warn
LOAD_CONST 'aiormq.types was deprecated and will be removed in one of next major releases. Use aiormq.abc instead.'
LOAD_NAME DeprecationWarning
LOAD_CO... | import warnings
from .abc import * # noqa
warnings.warn(
"aiormq.types was deprecated and will be removed in "
"one of next major releases. Use aiormq.abc instead.",
category=DeprecationWarning,
stacklevel=2,
)
| data/aiormq-6.8.0/aiormq/types.py | 99 | 77 | 166,986 |
LOAD_CONST 3
LOAD_CONST ('GmpGetAggregatesTestMixin',)
IMPORT_NAME gmpv208.system.aggregates
IMPORT_FROM GmpGetAggregatesTestMixin
STORE_NAME GmpGetAggregatesTestMixin
POP_TOP
LOAD_CONST 3
LOAD_CONST ('Gmpv214TestCase',)
IMPORT_NAME gmpv214
IMPORT_FROM Gmpv214TestCase
STORE_NAME Gmpv214TestCase
POP_TOP
LOAD_BUILD_CLA... | from ...gmpv208.system.aggregates import GmpGetAggregatesTestMixin
from ...gmpv214 import Gmpv214TestCase
class Gmpv214GetAggregatesTestCase(GmpGetAggregatesTestMixin, Gmpv214TestCase):
pass
| data/python_gvm-24.1.0/tests/protocols/gmpv214/system/test_aggregates.py | 246 | 77 | 371,474 |
LOAD_CONST 0
LOAD_CONST ('annotations',)
IMPORT_NAME __future__
IMPORT_FROM annotations
STORE_NAME annotations
POP_TOP
LOAD_CONST 1
LOAD_CONST ('BoundFloatingIP', 'FloatingIPsClient', 'FloatingIPsPageResult')
IMPORT_NAME client
IMPORT_FROM BoundFloatingIP
STORE_NAME BoundFloatingIP
IMPORT_FROM FloatingIPsClient
STORE_... | from __future__ import annotations
from .client import ( # noqa: F401
BoundFloatingIP,
FloatingIPsClient,
FloatingIPsPageResult,
)
from .domain import CreateFloatingIPResponse, FloatingIP # noqa: F401
| data/hcloud-1.33.2/hcloud/floating_ips/__init__.py | 156 | 77 | 436,482 |
LOAD_CONST '\nRegression tests for the resolve_url function.\n'
STORE_NAME __doc__
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 UnimportantThing at 0x7fab41ed0c00, file "f.py", line 8>
LOAD_CONST 'UnimportantThing'
MAKE... | """
Regression tests for the resolve_url function.
"""
from django.db import models
class UnimportantThing(models.Model):
importance = models.IntegerField()
def get_absolute_url(self):
return "/importance/%d/" % (self.importance,)
| data/django-compat-1.0.15/compat/tests/test_app/models.py | 249 | 77 | 83,597 |
LOAD_CONST '\nHook for flirpy, a library to interact with FLIR thermal imaging cameras and images.\nhttps://github.com/LJMUAstroEcology/flirpy\n'
STORE_NAME __doc__
LOAD_CONST 0
LOAD_CONST ('collect_data_files',)
IMPORT_NAME PyInstaller.utils.hooks
IMPORT_FROM collect_data_files
STORE_NAME collect_data_files
POP_TOP
... | """
Hook for flirpy, a library to interact with FLIR thermal imaging cameras and images.
https://github.com/LJMUAstroEcology/flirpy
"""
from PyInstaller.utils.hooks import collect_data_files
datas = collect_data_files("flirpy")
| data/pyinstaller-hooks-contrib-2024.1/src/_pyinstaller_hooks_contrib/hooks/stdhooks/hook-flirpy.py | 117 | 77 | 282,138 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME unittest
STORE_NAME unittest
LOAD_CONST 0
LOAD_CONST ('foo', 'func')
IMPORT_NAME lib20171102.mod1
IMPORT_FROM foo
STORE_NAME foo
IMPORT_FROM func
STORE_NAME func
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object TestCase at 0x7fab8019b030, file "f.py", line 6>
LOAD_CONST 'TestC... | import unittest
from lib20171102.mod1 import foo, func
class TestCase(unittest.TestCase):
def test1(self):
self.assertEqual(foo, 1)
def test2(self):
self.assertEqual(func(), 2)
| data/nose2-0.14.1/nose2/tests/functional/support/scenario/coverage_of_imports/test_import_coverage.py | 299 | 77 | 310,261 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME math
STORE_NAME math
LOAD_CONST <code object timestamp_format at 0x7fab41c26d20, file "f.py", line 4>
LOAD_CONST 'timestamp_format'
MAKE_FUNCTION
STORE_NAME timestamp_format
LOAD_CONST None
RETURN_VALUE
LOAD_GLOBAL divmod
LOAD_FAST seconds
LOAD_CONST 60
CALL_FUNCTION
UNPACK_SE... | import math
def timestamp_format(seconds):
m, s = divmod(seconds, 60)
h, m = divmod(m, 60)
time = "%02d:%02d:%06.3f" % (h, m, s)
return time
| data/modelscope-1.12.0/modelscope/models/cv/stream_yolo/utils/format.py | 155 | 77 | 315,380 |
LOAD_CONST 0
LOAD_CONST ('Any',)
IMPORT_NAME typing
IMPORT_FROM Any
STORE_NAME Any
POP_TOP
LOAD_CONST 1
LOAD_CONST ('Grant',)
IMPORT_NAME _grant
IMPORT_FROM Grant
STORE_NAME Grant
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object NullGrant at 0x7fab7002b5d0, file "f.py", line 6>
LOAD_CONST 'NullGrant'
MAKE_FUNCTION
LO... | from typing import Any
from ._grant import Grant
class NullGrant(Grant):
def is_valid(self) -> bool:
return False
def __eq__(self, other: Any):
if not isinstance(other, NullGrant):
return False
return True
| data/refinitiv-data-1.6.0/refinitiv/data/_core/session/auth/_null_grant.py | 305 | 77 | 195,176 |
LOAD_CONST 0
LOAD_CONST ('is_valid_chunk_id',)
IMPORT_NAME mutagen._iff
IMPORT_FROM is_valid_chunk_id
STORE_NAME is_valid_chunk_id
POP_TOP
LOAD_CONST <code object test_is_valid_chunk_id at 0x7fab4272a030, file "f.py", line 4>
LOAD_CONST 'test_is_valid_chunk_id'
MAKE_FUNCTION
STORE_NAME test_is_valid_chunk_id
LOAD_CONS... | from mutagen._iff import is_valid_chunk_id
def test_is_valid_chunk_id():
assert not is_valid_chunk_id("")
assert is_valid_chunk_id("QUUX")
assert not is_valid_chunk_id("FOOBAR")
| data/mutagen-1.47.0/tests/test__iff.py | 207 | 77 | 303,152 |
LOAD_CONST 0
LOAD_CONST ('List',)
IMPORT_NAME typing
IMPORT_FROM List
STORE_NAME List
POP_TOP
LOAD_CONST 0
LOAD_CONST ('FastAPI', 'Query')
IMPORT_NAME fastapi
IMPORT_FROM FastAPI
STORE_NAME FastAPI
IMPORT_FROM Query
STORE_NAME Query
POP_TOP
LOAD_NAME FastAPI
CALL_FUNCTION
STORE_NAME app
LOAD_NAME app
LOAD_METHOD get... | from typing import List
from fastapi import FastAPI, Query
app = FastAPI()
@app.get("/items/")
async def read_items(q: List[str] = Query(default=["foo", "bar"])):
query_items = {"q": q}
return query_items
| data/fastapi-0.109.2/docs_src/query_params_str_validations/tutorial012.py | 201 | 77 | 142,641 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME pytest
STORE_NAME pytest
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME kernels
STORE_NAME kernels
LOAD_NAME pytest
LOAD_ATTR mark
LOAD_ATTR skip
LOAD_CONST 'Unable to generate any tests for kernel'
LOAD_CONST ('reason',)
CALL_FUNCTION
LOAD_CONST <code object test_pyawkward_NumpyArr... | import pytest
import kernels
@pytest.mark.skip(reason="Unable to generate any tests for kernel")
def test_pyawkward_NumpyArray_fill_touint32_fromfloat32_1():
raise NotImplementedError("Unable to generate any tests for kernel")
| data/awkward-cpp-29/tests-spec/test_pyawkward_NumpyArray_fill_touint32_fromfloat32.py | 210 | 77 | 220,593 |
LOAD_CONST 0
LOAD_CONST ('ODataRequest',)
IMPORT_NAME office365.runtime.odata.request
IMPORT_FROM ODataRequest
STORE_NAME ODataRequest
POP_TOP
LOAD_CONST 0
LOAD_CONST ('V4JsonFormat',)
IMPORT_NAME office365.runtime.odata.v4.json_format
IMPORT_FROM V4JsonFormat
STORE_NAME V4JsonFormat
POP_TOP
LOAD_BUILD_CLASS
LOAD_CON... | from office365.runtime.odata.request import ODataRequest
from office365.runtime.odata.v4.json_format import V4JsonFormat
class GraphRequest(ODataRequest):
def __init__(self):
super(GraphRequest, self).__init__(V4JsonFormat())
| data/Office365-REST-Python-Client-2.5.5/office365/graph_request.py | 279 | 77 | 188,440 |
LOAD_CONST 0
LOAD_CONST ('settings',)
IMPORT_NAME server.conf
IMPORT_FROM settings
STORE_NAME settings
POP_TOP
LOAD_CONST 0
LOAD_CONST ('constants',)
IMPORT_NAME server.contrib.messages
IMPORT_FROM constants
STORE_NAME constants
POP_TOP
LOAD_CONST <code object get_level_tags at 0x7faa744508a0, file "f.py", line 5>
LO... | from server.conf import settings
from server.contrib.messages import constants
def get_level_tags():
"""
Return the message level tags.
"""
return {
**constants.DEFAULT_TAGS,
**getattr(settings, "MESSAGE_TAGS", {}),
}
| data/os_sys-2.1.4/server/contrib/messages/utils.py | 146 | 77 | 247,519 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME warnings
STORE_NAME warnings
LOAD_CONST 0
LOAD_CONST ('*',)
IMPORT_NAME pilkit.processors.crop
IMPORT_STAR
LOAD_NAME warnings
LOAD_METHOD warn
LOAD_CONST 'imagekit.processors.crop is deprecated use imagekit.processors instead'
LOAD_NAME DeprecationWarning
CALL_METHOD
POP_TOP... | import warnings
from pilkit.processors.crop import *
warnings.warn(
"imagekit.processors.crop is deprecated use imagekit.processors instead",
DeprecationWarning,
)
__all__ = ["TrimBorderColor", "Crop", "SmartCrop"]
| data/django-imagekit-5.0.0/imagekit/processors/crop.py | 112 | 77 | 219,820 |
LOAD_CONST <code object bob at 0x7f8b200cd930, file "f.py", line 1>
LOAD_CONST 'bob'
MAKE_FUNCTION
STORE_NAME bob
LOAD_CONST <code object bobtwo at 0x7f8b200cdf60, file "f.py", line 5>
LOAD_CONST 'bobtwo'
MAKE_FUNCTION
STORE_NAME bobtwo
LOAD_CONST <code object bob at 0x7f8b200cded0, file "f.py", line 9>
LOAD_CONST 'b... | def bob(): # pylint: disable=W9016
pass
def bobtwo(): # some comment here
pass
def bob(): # pylint: disable=W9016
pass
def bobtwo(): # some comment here
pass
| data/black-24.2.0/tests/data/cases/comment_after_escaped_newline.py | 218 | 77 | 405,216 |
LOAD_CONST 1
LOAD_CONST ('SqlAdapter',)
IMPORT_NAME adapter
IMPORT_FROM SqlAdapter
STORE_NAME SqlAdapter
POP_TOP
LOAD_CONST 1
LOAD_CONST ('SqlControl',)
IMPORT_NAME control
IMPORT_FROM SqlControl
STORE_NAME SqlControl
POP_TOP
LOAD_CONST 1
LOAD_CONST ('SqlMapper',)
IMPORT_NAME mapper
IMPORT_FROM SqlMapper
STORE_NAME S... | from .adapter import SqlAdapter
from .control import SqlControl
from .mapper import SqlMapper
from .parser import SqlParser
from .plugin import SqlPlugin
__all__ = [
"SqlAdapter",
"SqlControl",
"SqlMapper",
"SqlParser",
"SqlPlugin",
]
| data/frictionless-5.16.1/frictionless/formats/sql/__init__.py | 172 | 77 | 41,891 |
LOAD_CONST 0
LOAD_CONST ('*',)
IMPORT_NAME azure.cli.core.aaz
IMPORT_STAR
LOAD_NAME register_command_group
LOAD_CONST 'cosmosdb postgres cluster'
CALL_FUNCTION
LOAD_BUILD_CLASS
LOAD_CONST <code object __CMDGroup at 0x7faa53250ed0, file "f.py", line 4>
LOAD_CONST '__CMDGroup'
MAKE_FUNCTION
LOAD_CONST '__CMDGroup'
LOA... | from azure.cli.core.aaz import *
@register_command_group(
"cosmosdb postgres cluster",
)
class __CMDGroup(AAZCommandGroup):
"""Manage Azure Cosmos DB for PostgreSQL clusters."""
pass
__all__ = ["__CMDGroup"]
| data/azure-cli-2.57.0/azure/cli/command_modules/cosmosdb/aaz/latest/cosmosdb/postgres/cluster/__cmd_group.py | 186 | 77 | 375,126 |
LOAD_CONST 0
LOAD_CONST ('*',)
IMPORT_NAME azure.cli.core.aaz
IMPORT_STAR
LOAD_NAME register_command_group
LOAD_CONST 'network service-endpoint policy-definition'
CALL_FUNCTION
LOAD_BUILD_CLASS
LOAD_CONST <code object __CMDGroup at 0x7fab82197930, file "f.py", line 4>
LOAD_CONST '__CMDGroup'
MAKE_FUNCTION
LOAD_CONST ... | from azure.cli.core.aaz import *
@register_command_group(
"network service-endpoint policy-definition",
)
class __CMDGroup(AAZCommandGroup):
"""Manage service endpoint policy definitions."""
pass
__all__ = ["__CMDGroup"]
| data/azure-cli-2.57.0/azure/cli/command_modules/network/aaz/latest/network/service_endpoint/policy_definition/__cmd_group.py | 187 | 77 | 378,203 |
LOAD_CONST 1
LOAD_CONST ('*',)
IMPORT_NAME __cmd_group
IMPORT_STAR
LOAD_CONST 1
LOAD_CONST ('*',)
IMPORT_NAME _create
IMPORT_STAR
LOAD_CONST 1
LOAD_CONST ('*',)
IMPORT_NAME _delete
IMPORT_STAR
LOAD_CONST 1
LOAD_CONST ('*',)
IMPORT_NAME _list
IMPORT_STAR
LOAD_CONST 1
LOAD_CONST ('*',)
IMPORT_NAME _list_effective_nsg... | from .__cmd_group import *
from ._create import *
from ._delete import *
from ._list import *
from ._list_effective_nsg import *
from ._show import *
from ._show_effective_route_table import *
from ._update import *
from ._wait import *
| data/azure-cli-2.57.0/azure/cli/command_modules/network/aaz/latest/network/nic/__init__.py | 170 | 77 | 378,214 |
LOAD_CONST 0
LOAD_CONST ('fields', 'Schema')
IMPORT_NAME marshmallow
IMPORT_FROM fields
STORE_NAME fields
IMPORT_FROM Schema
STORE_NAME Schema
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object InfrastructureSchema at 0x7fab82402e40, file "f.py", line 4>
LOAD_CONST 'InfrastructureSchema'
MAKE_FUNCTION
LOAD_CONST 'Infras... | from marshmallow import fields, Schema
class InfrastructureSchema(Schema):
id = fields.Int()
name = fields.Str()
login = fields.Str()
password = fields.Str()
directories = fields.List(fields.Int())
infrastructure_id = fields.Str()
| data/pyTenable-1.4.20/tenable/ad/infrastructure/schema.py | 219 | 77 | 175,223 |
LOAD_CONST 0
LOAD_CONST ('*',)
IMPORT_NAME azure.cli.core.aaz
IMPORT_STAR
LOAD_NAME register_command_group
LOAD_CONST 'network private-endpoint asg'
CALL_FUNCTION
LOAD_BUILD_CLASS
LOAD_CONST <code object __CMDGroup at 0x7fab703a5db0, file "f.py", line 4>
LOAD_CONST '__CMDGroup'
MAKE_FUNCTION
LOAD_CONST '__CMDGroup'
... | from azure.cli.core.aaz import *
@register_command_group(
"network private-endpoint asg",
)
class __CMDGroup(AAZCommandGroup):
"""Manage private endpoint application security groups."""
pass
__all__ = ["__CMDGroup"]
| data/azure-cli-2.57.0/azure/cli/command_modules/network/aaz/latest/network/private_endpoint/asg/__cmd_group.py | 186 | 77 | 378,174 |
LOAD_CONST 0
LOAD_CONST ('JsonRESTError',)
IMPORT_NAME moto.core.exceptions
IMPORT_FROM JsonRESTError
STORE_NAME JsonRESTError
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object MediaStoreDataClientError at 0x7fab822c5300, file "f.py", line 4>
LOAD_CONST 'MediaStoreDataClientError'
MAKE_FUNCTION
LOAD_CONST 'MediaStoreDa... | from moto.core.exceptions import JsonRESTError
class MediaStoreDataClientError(JsonRESTError):
code = 400
class ClientError(MediaStoreDataClientError):
def __init__(self, error: str, message: str):
super().__init__(error, message)
| data/moto-5.0.2/moto/mediastoredata/exceptions.py | 357 | 77 | 198,038 |
LOAD_BUILD_CLASS
LOAD_CONST <code object MappingUnderflowError at 0x7fab417519c0, file "f.py", line 1>
LOAD_CONST 'MappingUnderflowError'
MAKE_FUNCTION
LOAD_CONST 'MappingUnderflowError'
LOAD_NAME Exception
CALL_FUNCTION
STORE_NAME MappingUnderflowError
LOAD_BUILD_CLASS
LOAD_CONST <code object MappingOverflowError at ... | class MappingUnderflowError(Exception):
"""
Raised when computing the lower boundary of an index that maps into a
denormal floating point value.
"""
class MappingOverflowError(Exception):
"""
Raised when computing the lower boundary of an index that maps into +inf.
"""
| data/opentelemetry_sdk-1.22.0/src/opentelemetry/sdk/metrics/_internal/exponential_histogram/mapping/errors.py | 264 | 77 | 347,119 |
LOAD_CONST 0
LOAD_CONST ('*',)
IMPORT_NAME azure.cli.core.aaz
IMPORT_STAR
LOAD_NAME register_command_group
LOAD_CONST 'network private-link-service connection'
CALL_FUNCTION
LOAD_BUILD_CLASS
LOAD_CONST <code object __CMDGroup at 0x7faa5dedb540, file "f.py", line 4>
LOAD_CONST '__CMDGroup'
MAKE_FUNCTION
LOAD_CONST '__... | from azure.cli.core.aaz import *
@register_command_group(
"network private-link-service connection",
)
class __CMDGroup(AAZCommandGroup):
"""Manage private link service endpoint connections."""
pass
__all__ = ["__CMDGroup"]
| data/azure-cli-2.57.0/azure/cli/command_modules/network/aaz/latest/network/private_link_service/connection/__cmd_group.py | 185 | 77 | 378,259 |
LOAD_CONST 1
LOAD_CONST ('Encoding',)
IMPORT_NAME core
IMPORT_FROM Encoding
STORE_NAME Encoding
POP_TOP
LOAD_CONST 1
LOAD_CONST ('encoding_for_model',)
IMPORT_NAME model
IMPORT_FROM encoding_for_model
STORE_NAME encoding_for_model
POP_TOP
LOAD_CONST 1
LOAD_CONST ('encoding_name_for_model',)
IMPORT_NAME model
IMPORT_F... | from .core import Encoding as Encoding
from .model import encoding_for_model as encoding_for_model
from .model import encoding_name_for_model as encoding_name_for_model
from .registry import get_encoding as get_encoding
from .registry import list_encoding_names as list_encoding_names
| data/tiktoken-0.6.0/tiktoken/__init__.py | 164 | 77 | 288,836 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME pytest
STORE_NAME pytest
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME kernels
STORE_NAME kernels
LOAD_NAME pytest
LOAD_ATTR mark
LOAD_ATTR skip
LOAD_CONST 'Unable to generate any tests for kernel'
LOAD_CONST ('reason',)
CALL_FUNCTION
LOAD_CONST <code object test_pyawkward_NumpyArr... | import pytest
import kernels
@pytest.mark.skip(reason="Unable to generate any tests for kernel")
def test_pyawkward_NumpyArray_fill_touint64_fromuint64_1():
raise NotImplementedError("Unable to generate any tests for kernel")
| data/awkward-cpp-29/tests-spec/test_pyawkward_NumpyArray_fill_touint64_fromuint64.py | 209 | 77 | 220,622 |
LOAD_CONST 'GET'
LOAD_NAME uri
LOAD_CONST '/first'
CALL_FUNCTION
LOAD_CONST (1, 0)
LOAD_CONST ('CONTENT-LENGTH', '24')
BUILD_LIST
LOAD_CONST b'GET /second HTTP/1.1\r\n\r\n'
LOAD_CONST ('method', 'uri', 'version', 'headers', 'body')
BUILD_CONST_KEY_MAP
STORE_NAME request
LOAD_CONST None
RETURN_VALUE | request = {
"method": "GET",
"uri": uri("/first"),
"version": (1, 0),
"headers": [("CONTENT-LENGTH", "24")],
"body": b"GET /second HTTP/1.1\r\n\r\n",
}
| data/gunicorn-21.2.0/tests/requests/valid/020.py | 90 | 77 | 343,455 |
LOAD_CONST 'parquet - read parquet files.'
STORE_NAME __doc__
LOAD_CONST 0
LOAD_CONST ('__version__',)
IMPORT_NAME fastparquet._version
IMPORT_FROM __version__
STORE_NAME __version__
POP_TOP
LOAD_CONST 0
LOAD_CONST ('write', 'update_file_custom_metadata')
IMPORT_NAME fastparquet.writer
IMPORT_FROM write
STORE_NAME wr... | """parquet - read parquet files."""
from fastparquet._version import __version__
from fastparquet.writer import write, update_file_custom_metadata
from fastparquet import core, schema, converted_types, api
from fastparquet.api import ParquetFile
from fastparquet.util import ParquetException
| data/fastparquet-2024.2.0/fastparquet/__init__.py | 226 | 77 | 193,278 |
LOAD_CONST 'AUTOGENERATED. DO NOT EDIT.'
STORE_NAME __doc__
LOAD_CONST 0
LOAD_CONST ('disable_tf_random_generator',)
IMPORT_NAME tf_keras.src.backend
IMPORT_FROM disable_tf_random_generator
STORE_NAME disable_tf_random_generator
POP_TOP
LOAD_CONST 0
LOAD_CONST ('enable_tf_random_generator',)
IMPORT_NAME tf_keras.src.... | """AUTOGENERATED. DO NOT EDIT."""
from tf_keras.src.backend import disable_tf_random_generator
from tf_keras.src.backend import enable_tf_random_generator
from tf_keras.src.backend import is_tf_random_generator_enabled
| data/tf_keras-2.15.0/tf_keras/api/_v2/keras/backend/experimental/__init__.py | 177 | 77 | 354,157 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME logging
STORE_NAME logging
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME sys
STORE_NAME sys
LOAD_NAME str
LOAD_NAME logging
LOAD_ATTR Logger
LOAD_CONST ('name', 'return')
BUILD_CONST_KEY_MAP
LOAD_CONST <code object get_logger at 0x7fadb5811c00, file "f.py", line 5>
LOAD_CONST 'get_... | import logging
import sys
def get_logger(name: str) -> logging.Logger:
logger = logging.getLogger(name)
logger.addHandler(logging.StreamHandler(sys.stdout))
logger.setLevel(logging.INFO)
logger.propagate = False
return logger
| data/datarobot-3.3.1/datarobot/utils/logger.py | 181 | 77 | 357,142 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME uuid
STORE_NAME uuid
LOAD_CONST 0
LOAD_CONST ('Column',)
IMPORT_NAME sqlalchemy
IMPORT_FROM Column
STORE_NAME Column
POP_TOP
LOAD_CONST 0
LOAD_CONST ('String',)
IMPORT_NAME sqlalchemy
IMPORT_FROM String
STORE_NAME String
POP_TOP
LOAD_CONST 0
LOAD_CONST ('declarative_base',)
I... | import uuid
from sqlalchemy import Column
from sqlalchemy import String
from sqlalchemy.orm import declarative_base
Base = declarative_base()
class MyClass(Base):
id = Column(String, default=lambda: uuid.uuid4(), primary_key=True)
| data/SQLAlchemy-2.0.27/test/ext/mypy/plugin_files/lambda_default.py | 292 | 77 | 362,472 |
LOAD_CONST 0
LOAD_CONST ('*',)
IMPORT_NAME azure.cli.core.aaz
IMPORT_STAR
LOAD_NAME register_command_group
LOAD_CONST 'network private-endpoint ip-config'
CALL_FUNCTION
LOAD_BUILD_CLASS
LOAD_CONST <code object __CMDGroup at 0x7faa5e81ff60, file "f.py", line 4>
LOAD_CONST '__CMDGroup'
MAKE_FUNCTION
LOAD_CONST '__CMDGr... | from azure.cli.core.aaz import *
@register_command_group(
"network private-endpoint ip-config",
)
class __CMDGroup(AAZCommandGroup):
"""Manage private endpoint ip configurations."""
pass
__all__ = ["__CMDGroup"]
| data/azure-cli-2.57.0/azure/cli/command_modules/network/aaz/latest/network/private_endpoint/ip_config/__cmd_group.py | 186 | 77 | 378,168 |
LOAD_CONST 0
LOAD_CONST ('MeetingInfo',)
IMPORT_NAME office365.communications.meetings.info
IMPORT_FROM MeetingInfo
STORE_NAME MeetingInfo
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object JoinMeetingIdMeetingInfo at 0x7fab81f0bc00, file "f.py", line 4>
LOAD_CONST 'JoinMeetingIdMeetingInfo'
MAKE_FUNCTION
LOAD_CONST 'Jo... | from office365.communications.meetings.info import MeetingInfo
class JoinMeetingIdMeetingInfo(MeetingInfo):
"""Contains information that allows you to join an existing meeting with a joinMeetingId and a passcode
(if required). You can retrieve these properties from the Get onlineMeeting API."""
| data/Office365-REST-Python-Client-2.5.5/office365/communications/meetings/join_meeting_id_info.py | 202 | 77 | 188,660 |
LOAD_CONST 0
LOAD_CONST ('Any',)
IMPORT_NAME typing
IMPORT_FROM Any
STORE_NAME _Any
POP_TOP
LOAD_CONST 0
LOAD_CONST ('Callable',)
IMPORT_NAME typing
IMPORT_FROM Callable
STORE_NAME _Callable
POP_TOP
LOAD_CONST 0
LOAD_CONST ('Dict',)
IMPORT_NAME typing
IMPORT_FROM Dict
STORE_NAME _Dict
POP_TOP
LOAD_CONST 0
LOAD_CONST... | from typing import Any as _Any
from typing import Callable as _Callable
from typing import Dict as _Dict
import torch as _torch
ParamsDict = _Dict[str, _Any]
TensorCallable = _Callable[[_torch.Tensor], _torch.Tensor]
| data/coremltools-7.1/coremltools/optimize/torch/_typing.py | 155 | 77 | 447,006 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME os
STORE_NAME os
LOAD_CONST <code object _get_test_data_file at 0x7faa53250ed0, file "f.py", line 4>
LOAD_CONST '_get_test_data_file'
MAKE_FUNCTION
STORE_NAME _get_test_data_file
LOAD_CONST None
RETURN_VALUE
LOAD_GLOBAL os
LOAD_ATTR path
LOAD_METHOD abspath
LOAD_GLOBAL os
LOAD... | import os
def _get_test_data_file(filename):
root_dir = os.path.abspath(os.path.join(os.path.abspath(__file__), ".."))
return os.path.join(root_dir, "tests", "latest", "data", filename)
| data/azure-cli-2.57.0/azure/cli/command_modules/ams/_test_utils.py | 170 | 77 | 375,677 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME pytest
STORE_NAME pytest
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME kernels
STORE_NAME kernels
LOAD_NAME pytest
LOAD_ATTR mark
LOAD_ATTR skip
LOAD_CONST 'Unable to generate any tests for kernel'
LOAD_CONST ('reason',)
CALL_FUNCTION
LOAD_CONST <code object test_pyawkward_NumpyArr... | import pytest
import kernels
@pytest.mark.skip(reason="Unable to generate any tests for kernel")
def test_pyawkward_NumpyArray_fill_touint16_fromfloat64_1():
raise NotImplementedError("Unable to generate any tests for kernel")
| data/awkward-cpp-29/tests-spec/test_pyawkward_NumpyArray_fill_touint16_fromfloat64.py | 210 | 77 | 220,590 |
LOAD_CONST 'DO NOT EDIT.\n\nThis file was autogenerated. Do not edit it by hand,\nsince your modifications would be overwritten.\n'
STORE_NAME __doc__
LOAD_CONST 0
LOAD_CONST ('get_word_index',)
IMPORT_NAME keras_core.src.datasets.imdb
IMPORT_FROM get_word_index
STORE_NAME get_word_index
POP_TOP
LOAD_CONST 0
LOAD_CON... | """DO NOT EDIT.
This file was autogenerated. Do not edit it by hand,
since your modifications would be overwritten.
"""
from keras_core.src.datasets.imdb import get_word_index
from keras_core.src.datasets.imdb import load_data
| data/keras-core-0.1.7/keras_core/_tf_keras/datasets/imdb/__init__.py | 133 | 77 | 386,035 |
LOAD_CONST 0
LOAD_CONST ('absolute_import', 'division', 'print_function', 'unicode_literals')
IMPORT_NAME __future__
IMPORT_FROM absolute_import
STORE_NAME absolute_import
IMPORT_FROM division
STORE_NAME division
IMPORT_FROM print_function
STORE_NAME print_function
IMPORT_FROM unicode_literals
STORE_NAME unicode_litera... | from __future__ import absolute_import, division, print_function, unicode_literals
from . import metrics, cluster, decomposition, estimators
__version__ = "0.3.7"
from scikitplot.classifiers import classifier_factory
from scikitplot.clustering import clustering_factory
| data/scikit-plot-0.3.7/scikitplot/__init__.py | 221 | 77 | 162,408 |
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 ('AccountApi',)
IMPORT_NAME opsgenie_sdk.api.account
IMPORT_FROM AccountApi
STORE_NAME AccountApi
POP_TOP
LOAD_CONST 0
LOAD_CONST ('AlertApi',)
IMPORT_NAME opsgeni... | from __future__ import absolute_import
from opsgenie_sdk.api.account import AccountApi
from opsgenie_sdk.api.alert import AlertApi
from opsgenie_sdk.api.heartbeat import HeartbeatApi
from opsgenie_sdk.api.incident import IncidentApi
| data/opsgenie-sdk-2.1.5/opsgenie_sdk/api/__init__.py | 184 | 77 | 108,239 |
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 'settings'
CALL_METHOD
PO... | import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "settings")
from django.core.management import execute_from_command_line
execute_from_command_line(sys.argv)
| data/django-bootstrap4-24.1/example/manage.py | 151 | 77 | 293,653 |
LOAD_CONST 0
LOAD_CONST ('Dict', 'Optional')
IMPORT_NAME typing
IMPORT_FROM Dict
STORE_NAME Dict
IMPORT_FROM Optional
STORE_NAME Optional
POP_TOP
LOAD_NAME Optional
LOAD_NAME Dict
LOAD_NAME str
LOAD_NAME str
BUILD_TUPLE
BINARY_SUBSCR
BINARY_SUBSCR
LOAD_CONST ('headers',)
BUILD_CONST_KEY_MAP
LOAD_CONST <code object con... | from typing import Dict, Optional
def convert_headers(headers: Optional[Dict[str, str]]):
if headers is None:
return None
return {
f"ant-{header_name}": header_value
for header_name, header_value in headers.items()
}
| data/scrapingant-client-2.0.1/scrapingant_client/headers.py | 253 | 77 | 330,561 |
LOAD_CONST 1
LOAD_CONST ('InvalidURI', 'LoaderNotFound', 'MultipleLoadersFound', 'PlasterError')
IMPORT_NAME exceptions
IMPORT_FROM InvalidURI
STORE_NAME InvalidURI
IMPORT_FROM LoaderNotFound
STORE_NAME LoaderNotFound
IMPORT_FROM MultipleLoadersFound
STORE_NAME MultipleLoadersFound
IMPORT_FROM PlasterError
STORE_NAME P... | from .exceptions import InvalidURI, LoaderNotFound, MultipleLoadersFound, PlasterError
from .interfaces import ILoader, ILoaderFactory, ILoaderInfo
from .loaders import find_loaders, get_loader, get_sections, get_settings, setup_logging
from .uri import PlasterURL, parse_uri
| data/plaster-1.1.2/src/plaster/__init__.py | 268 | 77 | 221,971 |
LOAD_CONST 0
LOAD_CONST ('*',)
IMPORT_NAME azure.cli.core.aaz
IMPORT_STAR
LOAD_NAME register_command_group
LOAD_CONST 'eventhubs namespace authorization-rule keys'
CALL_FUNCTION
LOAD_BUILD_CLASS
LOAD_CONST <code object __CMDGroup at 0x7fab802b9150, file "f.py", line 4>
LOAD_CONST '__CMDGroup'
MAKE_FUNCTION
LOAD_CONST... | from azure.cli.core.aaz import *
@register_command_group(
"eventhubs namespace authorization-rule keys",
)
class __CMDGroup(AAZCommandGroup):
"""authorization-rule keys"""
pass
__all__ = ["__CMDGroup"]
| data/azure-cli-2.57.0/azure/cli/command_modules/eventhubs/aaz/latest/eventhubs/namespace/authorization_rule/keys/__cmd_group.py | 187 | 77 | 374,785 |
LOAD_CONST '\nThis module implements the XmlResponse class which adds encoding\ndiscovering through XML encoding declarations to the TextResponse class.\n\nSee documentation in docs/topics/request-response.rst\n'
STORE_NAME __doc__
LOAD_CONST 0
LOAD_CONST ('TextResponse',)
IMPORT_NAME scrapy.http.response.text
IMPORT_... | """
This module implements the XmlResponse class which adds encoding
discovering through XML encoding declarations to the TextResponse class.
See documentation in docs/topics/request-response.rst
"""
from scrapy.http.response.text import TextResponse
class XmlResponse(TextResponse):
pass
| data/Scrapy-2.11.1/scrapy/http/response/xml.py | 186 | 77 | 332,533 |
LOAD_CONST 0
LOAD_CONST ('CMSAppConfig', 'CMSAppExtension')
IMPORT_NAME cms.app_base
IMPORT_FROM CMSAppConfig
STORE_NAME CMSAppConfig
IMPORT_FROM CMSAppExtension
STORE_NAME CMSAppExtension
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object CMSConfig at 0x7fab700781e0, file "f.py", line 4>
LOAD_CONST 'CMSConfig'
MAKE_FUN... | from cms.app_base import CMSAppConfig, CMSAppExtension
class CMSConfig(CMSAppConfig):
app_with_cms_feature_enabled = False
class CMSExtension(CMSAppExtension):
def configure_app(self, cms_config):
pass
| data/django-cms-4.1.0/cms/test_utils/project/app_with_cms_feature_and_config/cms_config.py | 328 | 77 | 87,023 |
LOAD_CONST 0
LOAD_CONST ('current_audit_info',)
IMPORT_NAME prowler.providers.aws.lib.audit_info.audit_info
IMPORT_FROM current_audit_info
STORE_NAME current_audit_info
POP_TOP
LOAD_CONST 0
LOAD_CONST ('DynamoDB',)
IMPORT_NAME prowler.providers.aws.services.dynamodb.dynamodb_service
IMPORT_FROM DynamoDB
STORE_NAME Dyn... | from prowler.providers.aws.lib.audit_info.audit_info import current_audit_info
from prowler.providers.aws.services.dynamodb.dynamodb_service import DynamoDB
dynamodb_client = DynamoDB(current_audit_info)
| data/prowler-3.14.0/prowler/providers/aws/services/dynamodb/dynamodb_client.py | 133 | 77 | 183,137 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME pyscaffold
STORE_NAME pyscaffold
LOAD_CONST <code object test_version at 0x7fa6f65d2930, file "f.py", line 4>
LOAD_CONST 'test_version'
MAKE_FUNCTION
STORE_NAME test_version
LOAD_CONST <code object test_unknown_version at 0x7fa6f65d29c0, file "f.py", line 9>
LOAD_CONST 'test_u... | import pyscaffold
def test_version():
version = pyscaffold.__version__.split(".")
assert int(version[0]) >= 0
def test_unknown_version(version_raises_exception):
version = pyscaffold.__version__
assert version == "unknown"
| data/PyScaffold-4.5/tests/test_init.py | 229 | 77 | 53,240 |
LOAD_CONST 1
LOAD_CONST ('*',)
IMPORT_NAME __cmd_group
IMPORT_STAR
LOAD_CONST 1
LOAD_CONST ('*',)
IMPORT_NAME _create
IMPORT_STAR
LOAD_CONST 1
LOAD_CONST ('*',)
IMPORT_NAME _delete
IMPORT_STAR
LOAD_CONST 1
LOAD_CONST ('*',)
IMPORT_NAME _list
IMPORT_STAR
LOAD_CONST 1
LOAD_CONST ('*',)
IMPORT_NAME _list_effective_nsg... | from .__cmd_group import *
from ._create import *
from ._delete import *
from ._list import *
from ._list_effective_nsg import *
from ._show import *
from ._show_effective_route_table import *
from ._update import *
from ._wait import *
| data/azure-cli-2.57.0/azure/cli/command_modules/network/aaz/profile_2020_09_01_hybrid/network/nic/__init__.py | 170 | 77 | 378,757 |
LOAD_CONST 0
LOAD_CONST ('CONF_DATABASE', 'CONF_DEVICE', 'CONF_DEVICE_PATH', 'CONFIG_SCHEMA', 'SCHEMA_DEVICE')
IMPORT_NAME zigpy.config
IMPORT_FROM CONF_DATABASE
STORE_NAME CONF_DATABASE
IMPORT_FROM CONF_DEVICE
STORE_NAME CONF_DEVICE
IMPORT_FROM CONF_DEVICE_PATH
STORE_NAME CONF_DEVICE_PATH
IMPORT_FROM CONFIG_SCHEMA
STO... | from zigpy.config import ( # noqa: F401 pylint: disable=unused-import
CONF_DATABASE,
CONF_DEVICE,
CONF_DEVICE_PATH,
CONFIG_SCHEMA,
SCHEMA_DEVICE,
)
| data/zigpy-zigate-0.12.0/zigpy_zigate/config.py | 139 | 77 | 45,027 |
LOAD_CONST 0
LOAD_CONST ('views',)
IMPORT_NAME rest_framework
IMPORT_FROM views
STORE_NAME views
POP_TOP
LOAD_CONST 0
LOAD_CONST ('Response',)
IMPORT_NAME rest_framework.response
IMPORT_FROM Response
STORE_NAME Response
POP_TOP
LOAD_CONST 0
LOAD_CONST ('cache_response',)
IMPORT_NAME rest_framework_extensions.cache.de... | from rest_framework import views
from rest_framework.response import Response
from rest_framework_extensions.cache.decorators import cache_response
class HelloView(views.APIView):
@cache_response()
def get(self, request, *args, **kwargs):
return Response("Hello world")
| data/drf-extensions-0.7.1/tests_app/tests/functional/cache/decorators/views.py | 253 | 77 | 68,881 |
LOAD_CONST 'Constants used by plexapi.'
STORE_NAME __doc__
LOAD_CONST 4
STORE_NAME MAJOR_VERSION
LOAD_CONST 15
STORE_NAME MINOR_VERSION
LOAD_CONST 10
STORE_NAME PATCH_VERSION
LOAD_NAME MAJOR_VERSION
FORMAT_VALUE
LOAD_CONST '.'
LOAD_NAME MINOR_VERSION
FORMAT_VALUE
BUILD_STRING
STORE_NAME __short_version__
LOAD_NAME... | """Constants used by plexapi."""
MAJOR_VERSION = 4
MINOR_VERSION = 15
PATCH_VERSION = 10
__short_version__ = f"{MAJOR_VERSION}.{MINOR_VERSION}"
__version__ = f"{__short_version__}.{PATCH_VERSION}"
| data/PlexAPI-4.15.10/plexapi/const.py | 116 | 77 | 86,390 |
LOAD_BUILD_CLASS
LOAD_CONST <code object FootprintsRequest at 0x7fab640f2030, file "f.py", line 1>
LOAD_CONST 'FootprintsRequest'
MAKE_FUNCTION
LOAD_CONST 'FootprintsRequest'
LOAD_NAME object
CALL_FUNCTION
STORE_NAME FootprintsRequest
LOAD_CONST None
RETURN_VALUE
LOAD_NAME __name__
STORE_NAME __module__
LOAD_CONST 'Fo... | class FootprintsRequest(object):
def __init__(self, customer_id, environment_data, configuration_data, tests, apps):
self.customerId = customer_id
self.environment = environment_data
self.configurationData = configuration_data
self.tests = tests
self.apps = apps
| data/sealights-python-agent-1.5.5/python_agent/test_listener/entities/footprints_request.py | 217 | 77 | 156,994 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME pytest
STORE_NAME pytest
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME kernels
STORE_NAME kernels
LOAD_NAME pytest
LOAD_ATTR mark
LOAD_ATTR skip
LOAD_CONST 'Unable to generate any tests for kernel'
LOAD_CONST ('reason',)
CALL_FUNCTION
LOAD_CONST <code object test_pyawkward_NumpyArr... | import pytest
import kernels
@pytest.mark.skip(reason="Unable to generate any tests for kernel")
def test_pyawkward_NumpyArray_fill_touint64_fromint16_1():
raise NotImplementedError("Unable to generate any tests for kernel")
| data/awkward-cpp-29/tests-spec/test_pyawkward_NumpyArray_fill_touint64_fromint16.py | 210 | 77 | 220,553 |
LOAD_CONST 'Warning-related utilities.'
STORE_NAME __doc__
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME warnings
STORE_NAME warnings
LOAD_CONST 0
LOAD_CONST ('LightningDeprecationWarning',)
IMPORT_NAME lightning_lite.utilities.rank_zero
IMPORT_FROM LightningDeprecationWarning
STORE_NAME LightningDeprecationWarning
POP_TO... | """Warning-related utilities."""
import warnings
from lightning_lite.utilities.rank_zero import LightningDeprecationWarning
warnings.simplefilter("default", category=LightningDeprecationWarning)
class PossibleUserWarning(UserWarning):
"""Warnings that could be false positives."""
| data/lightning-lite-1.8.6/src/lightning_lite/utilities/warnings.py | 228 | 77 | 323,161 |
LOAD_CONST 'The `kfp.registry` module contains objects for communicating with registry\nclient hosts.'
STORE_NAME __doc__
LOAD_CONST 'RegistryClient'
LOAD_CONST 'ApiAuth'
BUILD_LIST
STORE_NAME __all__
LOAD_CONST 0
LOAD_CONST ('ApiAuth',)
IMPORT_NAME kfp.registry.registry_client
IMPORT_FROM ApiAuth
STORE_NAME ApiAuth... | """The `kfp.registry` module contains objects for communicating with registry
client hosts."""
__all__ = [
"RegistryClient",
"ApiAuth",
]
from kfp.registry.registry_client import ApiAuth
from kfp.registry.registry_client import RegistryClient
| data/kfp-2.7.0/kfp/registry/__init__.py | 127 | 77 | 12,957 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME pytest
STORE_NAME pytest
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME kernels
STORE_NAME kernels
LOAD_NAME pytest
LOAD_ATTR mark
LOAD_ATTR skip
LOAD_CONST 'Unable to generate any tests for kernel'
LOAD_CONST ('reason',)
CALL_FUNCTION
LOAD_CONST <code object test_pyawkward_IndexedA... | import pytest
import kernels
@pytest.mark.skip(reason="Unable to generate any tests for kernel")
def test_pyawkward_IndexedArrayU32_ranges_carry_next_64_1():
raise NotImplementedError("Unable to generate any tests for kernel")
| data/awkward-cpp-29/tests-spec/test_pyawkward_IndexedArrayU32_ranges_carry_next_64.py | 209 | 77 | 220,550 |
LOAD_CONST None
STORE_NAME memory_efficient_attention
SETUP_EXCEPT to 18
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME xformers
STORE_NAME xformers
POP_BLOCK
JUMP_FORWARD to 30
POP_TOP
POP_TOP
POP_TOP
POP_EXCEPT
JUMP_FORWARD to 30
END_FINALLY
SETUP_EXCEPT to 52
LOAD_CONST 0
LOAD_CONST ('memory_efficient_attention',)
I... | memory_efficient_attention = None
try:
import xformers
except:
pass
try:
from xformers.ops import memory_efficient_attention
XFORMERS_AVAIL = True
except:
memory_efficient_attention = None
XFORMERS_AVAIL = False
| data/lycoris_lora-2.1.0.post3/lycoris/utils/xformers_utils.py | 173 | 77 | 138,519 |
LOAD_CONST 0
LOAD_CONST ('*',)
IMPORT_NAME azure.cli.core.aaz
IMPORT_STAR
LOAD_NAME register_command_group
LOAD_CONST 'servicebus queue authorization-rule'
CALL_FUNCTION
LOAD_BUILD_CLASS
LOAD_CONST <code object __CMDGroup at 0x7fab8204ad20, file "f.py", line 4>
LOAD_CONST '__CMDGroup'
MAKE_FUNCTION
LOAD_CONST '__CMDG... | from azure.cli.core.aaz import *
@register_command_group(
"servicebus queue authorization-rule",
)
class __CMDGroup(AAZCommandGroup):
"""servicebus queue authorization-rule"""
pass
__all__ = ["__CMDGroup"]
| data/azure-cli-2.57.0/azure/cli/command_modules/servicebus/aaz/latest/servicebus/queue/authorization_rule/__cmd_group.py | 186 | 77 | 375,748 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME warnings
STORE_NAME warnings
LOAD_CONST 1
LOAD_CONST ('AsdfDeprecationWarning',)
IMPORT_NAME exceptions
IMPORT_FROM AsdfDeprecationWarning
STORE_NAME AsdfDeprecationWarning
POP_TOP
LOAD_CONST 1
LOAD_CONST ('Stream',)
IMPORT_NAME tags.core.stream
IMPORT_FROM Stream
STORE_NAME S... | import warnings
from .exceptions import AsdfDeprecationWarning
from .tags.core.stream import Stream # noqa: F401
warnings.warn(
"asdf.stream is deprecated. Please use asdf.tags.core.stream",
AsdfDeprecationWarning,
)
| data/asdf-3.0.1/asdf/stream.py | 124 | 77 | 244,651 |
LOAD_CONST 0
LOAD_CONST ('annotations',)
IMPORT_NAME __future__
IMPORT_FROM annotations
STORE_NAME annotations
POP_TOP
LOAD_CONST 0
LOAD_CONST ('setup',)
IMPORT_NAME skbuild
IMPORT_FROM setup
STORE_NAME setup
POP_TOP
LOAD_NAME setup
LOAD_CONST 'hello'
LOAD_CONST '1.2.3'
LOAD_CONST 'a minimal example package'
LOAD... | from __future__ import annotations
from skbuild import setup
setup(
name="hello",
version="1.2.3",
description="a minimal example package",
author="The scikit-build team",
license="MIT",
packages=[],
)
| data/scikit_build-0.17.6/tests/samples/issue-334-configure-cmakelist-non-cp1252-encoding/setup.py | 129 | 77 | 198,933 |
LOAD_CONST 0
LOAD_CONST ('Final',)
IMPORT_NAME typing
IMPORT_FROM Final
STORE_NAME Final
POP_TOP
LOAD_CONST 0
LOAD_CONST ('Component',)
IMPORT_NAME localstack.services.stepfunctions.asl.component.component
IMPORT_FROM Component
STORE_NAME Component
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object MaxConcurrency at 0x... | from typing import Final
from localstack.services.stepfunctions.asl.component.component import Component
class MaxConcurrency(Component):
DEFAULT: Final[int] = 0 # No limit.
def __init__(self, num: int = DEFAULT):
self.num: Final[int] = num
| data/localstack-core-3.1.0/localstack/services/stepfunctions/asl/component/state/state_execution/state_map/max_concurrency.py | 267 | 77 | 225,290 |
LOAD_CONST 0
LOAD_CONST ('unicode_literals', 'division', 'absolute_import', 'print_function')
IMPORT_NAME __future__
IMPORT_FROM unicode_literals
STORE_NAME unicode_literals
IMPORT_FROM division
STORE_NAME division
IMPORT_FROM absolute_import
STORE_NAME absolute_import
IMPORT_FROM print_function
STORE_NAME print_functi... | from __future__ import unicode_literals, division, absolute_import, print_function
from powerline.theme import requires_segment_info
@requires_segment_info
def prompt_count(pl, segment_info):
return str(segment_info["ipython"].prompt_count)
| data/powerline-status-2.7/powerline/segments/ipython.py | 206 | 77 | 343,317 |
LOAD_CONST 0
LOAD_CONST ('Enum',)
IMPORT_NAME enum
IMPORT_FROM Enum
STORE_NAME Enum
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object AlertSeverity at 0x7fab820f4150, file "f.py", line 4>
LOAD_CONST 'AlertSeverity'
MAKE_FUNCTION
LOAD_CONST 'AlertSeverity'
LOAD_NAME str
LOAD_NAME Enum
CALL_FUNCTION
STORE_NAME AlertSever... | from enum import Enum
class AlertSeverity(str, Enum):
Unknown = ("unknown",)
Informational = ("informational",)
Low = ("low",)
Medium = ("medium",)
High = ("high",)
UnknownFutureValue = ("unknownFutureValue",)
| data/msgraph-sdk-1.1.0/msgraph/generated/models/alert_severity.py | 201 | 77 | 261,542 |
LOAD_CONST 0
LOAD_CONST ('Enum',)
IMPORT_NAME enum
IMPORT_FROM Enum
STORE_NAME Enum
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object AndroidWorkProfileCrossProfileDataSharingType at 0x7fab820f4660, file "f.py", line 4>
LOAD_CONST 'AndroidWorkProfileCrossProfileDataSharingType'
MAKE_FUNCTION
LOAD_CONST 'AndroidWorkProf... | from enum import Enum
class AndroidWorkProfileCrossProfileDataSharingType(str, Enum):
DeviceDefault = ("deviceDefault",)
PreventAny = ("preventAny",)
AllowPersonalToWork = ("allowPersonalToWork",)
NoRestrictions = ("noRestrictions",)
| data/msgraph-sdk-1.1.0/msgraph/generated/models/android_work_profile_cross_profile_data_sharing_type.py | 213 | 77 | 261,650 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME pytest
STORE_NAME pytest
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME kernels
STORE_NAME kernels
LOAD_NAME pytest
LOAD_ATTR mark
LOAD_ATTR skip
LOAD_CONST 'Unable to generate any tests for kernel'
LOAD_CONST ('reason',)
CALL_FUNCTION
LOAD_CONST <code object test_pyawkward_NumpyArr... | import pytest
import kernels
@pytest.mark.skip(reason="Unable to generate any tests for kernel")
def test_pyawkward_NumpyArray_fill_touint16_fromuint16_1():
raise NotImplementedError("Unable to generate any tests for kernel")
| data/awkward-cpp-29/tests-spec/test_pyawkward_NumpyArray_fill_touint16_fromuint16.py | 210 | 77 | 220,585 |
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 'settings'
CALL_METHOD
PO... | import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "settings")
from django.core.management import execute_from_command_line
execute_from_command_line(sys.argv)
| data/pytils-0.4.1/doc/examples-django/pytilsex/manage.py | 151 | 77 | 160,772 |
LOAD_CONST 1
LOAD_CONST ('DictPage',)
IMPORT_NAME dict_page
IMPORT_FROM DictPage
STORE_NAME DictPage
POP_TOP
LOAD_CONST 1
LOAD_CONST ('MarkerBasedObjectCollection',)
IMPORT_NAME marker_based_object_collection
IMPORT_FROM MarkerBasedObjectCollection
STORE_NAME MarkerBasedObjectCollection
POP_TOP
LOAD_BUILD_CLASS
LOAD_... | from .dict_page import DictPage
from .marker_based_object_collection import MarkerBasedObjectCollection
class MarkerBasedDictCollection(MarkerBasedObjectCollection):
"""Represents a marker-based collection of simple dicts, which are not translated into objects."""
_page_constructor = DictPage
| data/boxsdk-3.9.2/boxsdk/pagination/marker_based_dict_collection.py | 220 | 77 | 231,044 |
LOAD_CONST 0
LOAD_CONST ('*',)
IMPORT_NAME azure.cli.core.aaz
IMPORT_STAR
LOAD_NAME register_command_group
LOAD_CONST 'cosmosdb postgres role'
CALL_FUNCTION
LOAD_BUILD_CLASS
LOAD_CONST <code object __CMDGroup at 0x7fab823bedb0, file "f.py", line 4>
LOAD_CONST '__CMDGroup'
MAKE_FUNCTION
LOAD_CONST '__CMDGroup'
LOAD_N... | from azure.cli.core.aaz import *
@register_command_group(
"cosmosdb postgres role",
)
class __CMDGroup(AAZCommandGroup):
"""Manage Azure Cosmos DB for PostgreSQL roles."""
pass
__all__ = ["__CMDGroup"]
| data/azure-cli-2.57.0/azure/cli/command_modules/cosmosdb/aaz/latest/cosmosdb/postgres/role/__cmd_group.py | 185 | 77 | 375,155 |
LOAD_CONST ' Main for Jupytext_config\n\nCall with (e.g.)::\n\n python -m jupytext_config list-default-viewer\n'
STORE_NAME __doc__
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME sys
STORE_NAME sys
LOAD_CONST 1
LOAD_CONST ('main',)
IMPORT_NAME jupytext_config
IMPORT_FROM main
STORE_NAME main
POP_TOP
LOAD_NAME __name__
LOA... | """ Main for Jupytext_config
Call with (e.g.)::
python -m jupytext_config list-default-viewer
"""
import sys
from .jupytext_config import main
if __name__ == "__main__":
sys.exit(main())
| data/jupytext-1.16.1/src/jupytext_config/__main__.py | 130 | 77 | 312,717 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME pytest
STORE_NAME pytest
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME kernels
STORE_NAME kernels
LOAD_NAME pytest
LOAD_ATTR mark
LOAD_ATTR skip
LOAD_CONST 'Unable to generate any tests for kernel'
LOAD_CONST ('reason',)
CALL_FUNCTION
LOAD_CONST <code object test_pyawkward_NumpyArr... | import pytest
import kernels
@pytest.mark.skip(reason="Unable to generate any tests for kernel")
def test_pyawkward_NumpyArray_fill_touint16_fromfloat32_1():
raise NotImplementedError("Unable to generate any tests for kernel")
| data/awkward-cpp-29/tests-spec/test_pyawkward_NumpyArray_fill_touint16_fromfloat32.py | 210 | 77 | 220,575 |
LOAD_CONST 0
LOAD_CONST ('admin',)
IMPORT_NAME django.contrib
IMPORT_FROM admin
STORE_NAME admin
POP_TOP
LOAD_CONST 0
LOAD_CONST ('TableOne', 'TableTwo')
IMPORT_NAME tenant_type_one_only.models
IMPORT_FROM TableOne
STORE_NAME TableOne
IMPORT_FROM TableTwo
STORE_NAME TableTwo
POP_TOP
LOAD_NAME admin
LOAD_METHOD regist... | from django.contrib import admin
from tenant_type_one_only.models import TableOne, TableTwo
@admin.register(TableOne)
class TableOneAdmin(admin.ModelAdmin):
pass
@admin.register(TableTwo)
class TableTwoAdmin(admin.ModelAdmin):
pass
| data/django-tenants-3.6.1/examples/tenant_multi_types/tenant_type_one_only/admin.py | 297 | 77 | 224,874 |
LOAD_CONST 0
LOAD_CONST ('gcp_audit_info',)
IMPORT_NAME prowler.providers.gcp.lib.audit_info.audit_info
IMPORT_FROM gcp_audit_info
STORE_NAME gcp_audit_info
POP_TOP
LOAD_CONST 0
LOAD_CONST ('APIKeys',)
IMPORT_NAME prowler.providers.gcp.services.apikeys.apikeys_service
IMPORT_FROM APIKeys
STORE_NAME APIKeys
POP_TOP
LO... | from prowler.providers.gcp.lib.audit_info.audit_info import gcp_audit_info
from prowler.providers.gcp.services.apikeys.apikeys_service import APIKeys
apikeys_client = APIKeys(gcp_audit_info)
| data/prowler-3.14.0/prowler/providers/gcp/services/apikeys/apikeys_client.py | 132 | 77 | 182,904 |
LOAD_CONST 0
LOAD_CONST ('Enum',)
IMPORT_NAME enum
IMPORT_FROM Enum
STORE_NAME Enum
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object OnlineMeetingRole at 0x7fab70027420, file "f.py", line 4>
LOAD_CONST 'OnlineMeetingRole'
MAKE_FUNCTION
LOAD_CONST 'OnlineMeetingRole'
LOAD_NAME str
LOAD_NAME Enum
CALL_FUNCTION
STORE_NAM... | from enum import Enum
class OnlineMeetingRole(str, Enum):
Attendee = ("attendee",)
Presenter = ("presenter",)
UnknownFutureValue = ("unknownFutureValue",)
Producer = ("producer",)
Coorganizer = ("coorganizer",)
| data/msgraph-sdk-1.1.0/msgraph/generated/models/online_meeting_role.py | 195 | 77 | 261,004 |
LOAD_CONST 3
LOAD_CONST ('GmpGetAggregatesTestMixin',)
IMPORT_NAME gmpv208.system.aggregates
IMPORT_FROM GmpGetAggregatesTestMixin
STORE_NAME GmpGetAggregatesTestMixin
POP_TOP
LOAD_CONST 3
LOAD_CONST ('Gmpv224TestCase',)
IMPORT_NAME gmpv224
IMPORT_FROM Gmpv224TestCase
STORE_NAME Gmpv224TestCase
POP_TOP
LOAD_BUILD_CLA... | from ...gmpv208.system.aggregates import GmpGetAggregatesTestMixin
from ...gmpv224 import Gmpv224TestCase
class Gmpv224GetAggregatesTestCase(GmpGetAggregatesTestMixin, Gmpv224TestCase):
pass
| data/python_gvm-24.1.0/tests/protocols/gmpv224/system/test_aggregates.py | 247 | 77 | 371,567 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME pytest
STORE_NAME pytest
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME kernels
STORE_NAME kernels
LOAD_NAME pytest
LOAD_ATTR mark
LOAD_ATTR skip
LOAD_CONST 'Unable to generate any tests for kernel'
LOAD_CONST ('reason',)
CALL_FUNCTION
LOAD_CONST <code object test_pyawkward_NumpyArr... | import pytest
import kernels
@pytest.mark.skip(reason="Unable to generate any tests for kernel")
def test_pyawkward_NumpyArray_fill_touint16_fromuint32_1():
raise NotImplementedError("Unable to generate any tests for kernel")
| data/awkward-cpp-29/tests-spec/test_pyawkward_NumpyArray_fill_touint16_fromuint32.py | 209 | 77 | 220,579 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.