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 '\nTest status import shim.\n'
STORE_NAME __doc__
LOAD_CONST 0
LOAD_CONST ('SMTPStatus',)
IMPORT_NAME aiosmtplib.status
IMPORT_FROM SMTPStatus
STORE_NAME OldImportSMTPStatus
POP_TOP
LOAD_CONST 0
LOAD_CONST ('SMTPStatus',)
IMPORT_NAME aiosmtplib.typing
IMPORT_FROM SMTPStatus
STORE_NAME SMTPStatus
POP_TOP
L... | """
Test status import shim.
"""
from aiosmtplib.status import SMTPStatus as OldImportSMTPStatus
from aiosmtplib.typing import SMTPStatus
def test_status_import() -> None:
assert OldImportSMTPStatus is SMTPStatus
| data/aiosmtplib-3.0.1/tests/test_status.py | 189 | 72 | 167,207 |
LOAD_CONST 0
LOAD_CONST ('Float',)
IMPORT_NAME sqlalchemy
IMPORT_FROM Float
STORE_NAME Float
POP_TOP
LOAD_CONST 0
LOAD_CONST ('Numeric',)
IMPORT_NAME sqlalchemy
IMPORT_FROM Numeric
STORE_NAME Numeric
POP_TOP
LOAD_NAME reveal_type
LOAD_NAME Float
CALL_FUNCTION
CALL_FUNCTION
POP_TOP
LOAD_NAME reveal_type
LOAD_NAME Flo... | from sqlalchemy import Float
from sqlalchemy import Numeric
reveal_type(Float())
reveal_type(Float(asdecimal=True))
reveal_type(Numeric())
reveal_type(Numeric(asdecimal=False))
| data/SQLAlchemy-2.0.27/test/typing/plain_files/sql/sqltypes.py | 149 | 72 | 362,704 |
LOAD_CONST 0
LOAD_CONST ('include', 'path')
IMPORT_NAME django.urls
IMPORT_FROM include
STORE_NAME include
IMPORT_FROM path
STORE_NAME path
POP_TOP
LOAD_CONST 0
LOAD_CONST ('SimpleRouter',)
IMPORT_NAME rest_framework.routers
IMPORT_FROM SimpleRouter
STORE_NAME SimpleRouter
POP_TOP
LOAD_CONST 0
LOAD_CONST ('views',)
I... | from django.urls import include, path
from rest_framework.routers import SimpleRouter
from articles import views
router = SimpleRouter()
router.register("", views.ArticleViewSet)
urlpatterns = [
path("", include(router.urls)),
]
| data/drf-yasg-1.21.7/testproj/articles/urls.py | 154 | 72 | 352,418 |
LOAD_CONST 0
LOAD_CONST ('ClientValue',)
IMPORT_NAME office365.runtime.client_value
IMPORT_FROM ClientValue
STORE_NAME ClientValue
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object SitePageVersionInfo at 0x7fab700add20, file "f.py", line 4>
LOAD_CONST 'SitePageVersionInfo'
MAKE_FUNCTION
LOAD_CONST 'SitePageVersionInfo'... | from office365.runtime.client_value import ClientValue
class SitePageVersionInfo(ClientValue):
"""Represents the version information for a given SitePage."""
@property
def entity_type_name(self):
return "SP.Publishing.SitePageVersionInfo"
| data/Office365-REST-Python-Client-2.5.5/office365/sharepoint/publishing/pages/version_info.py | 234 | 72 | 189,121 |
LOAD_CONST 0
LOAD_CONST ('UserInvitationManager',)
IMPORT_NAME arcgis.gis.sharing._users
IMPORT_FROM UserInvitationManager
STORE_NAME UserInvitationManager
POP_TOP
LOAD_CONST 0
LOAD_CONST ('DependencyManager',)
IMPORT_NAME arcgis.gis.sharing._dependency
IMPORT_FROM DependencyManager
STORE_NAME DependencyManager
POP_TO... | from arcgis.gis.sharing._users import UserInvitationManager
from arcgis.gis.sharing._dependency import DependencyManager
from arcgis.gis.sharing._marketplace import MarketPlaceManager
__all__ = ["UserInvitationManager", "DependencyManager", "MarketPlaceManager"]
| data/arcgis-2.2.0.2/arcgis/gis/sharing/__init__.py | 148 | 72 | 216,143 |
LOAD_BUILD_CLASS
LOAD_CONST <code object TestCalendarService at 0x7f8e447b2b70, file "f.py", line 1>
LOAD_CONST 'TestCalendarService'
MAKE_FUNCTION
LOAD_CONST 'TestCalendarService'
CALL_FUNCTION
STORE_NAME TestCalendarService
LOAD_BUILD_CLASS
LOAD_CONST <code object TestSchedule at 0x7f8e447b2db0, file "f.py", line 12... | class TestCalendarService:
def test___getitem__(self): # synced
assert True
def test_default(self): # synced
assert True
def test_custom(self): # synced
assert True
class TestSchedule:
pass
| data/office365-0.3.15/tests/calendar/test_service.py | 404 | 72 | 113,185 |
LOAD_CONST 'Generated API for package: tensorflow_examples.lite.model_maker.third_party.recommendation.ml.model.context_encoder.'
STORE_NAME __doc__
LOAD_CONST 0
LOAD_CONST ('*',)
IMPORT_NAME tensorflow_examples.lite.model_maker.third_party.recommendation.ml.model.context_encoder
IMPORT_STAR
LOAD_CONST None
RETURN_VAL... | """Generated API for package: tensorflow_examples.lite.model_maker.third_party.recommendation.ml.model.context_encoder."""
from tensorflow_examples.lite.model_maker.third_party.recommendation.ml.model.context_encoder import *
| data/tflite-model-maker-0.4.3/src/tflite_model_maker/python/third_party/recommendation/ml/model/context_encoder.py | 92 | 72 | 401,201 |
LOAD_CONST 0
LOAD_CONST ('from_dict', 'from_http', 'from_json')
IMPORT_NAME cloudevents.pydantic.v1.conversion
IMPORT_FROM from_dict
STORE_NAME from_dict
IMPORT_FROM from_http
STORE_NAME from_http
IMPORT_FROM from_json
STORE_NAME from_json
POP_TOP
LOAD_CONST 0
LOAD_CONST ('CloudEvent',)
IMPORT_NAME cloudevents.pydanti... | from cloudevents.pydantic.v1.conversion import from_dict, from_http, from_json
from cloudevents.pydantic.v1.event import CloudEvent
__all__ = ["CloudEvent", "from_json", "from_dict", "from_http"]
| data/cloudevents-1.10.1/cloudevents/pydantic/v1/__init__.py | 146 | 72 | 435,250 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME pytest
STORE_NAME pytest
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME kernels
STORE_NAME kernels
LOAD_NAME pytest
LOAD_ATTR mark
LOAD_ATTR skip
LOAD_CONST 'Unable to generate any tests for kernel'
LOAD_CONST ('reason',)
CALL_FUNCTION
LOAD_CONST <code object test_pyawkward_reduce_a... | import pytest
import kernels
@pytest.mark.skip(reason="Unable to generate any tests for kernel")
def test_pyawkward_reduce_argmax_uint16_64_1():
raise NotImplementedError("Unable to generate any tests for kernel")
| data/awkward-cpp-29/tests-spec/test_pyawkward_reduce_argmax_uint16_64.py | 195 | 72 | 220,710 |
LOAD_CONST 0
LOAD_CONST ('*',)
IMPORT_NAME azure.cli.core.aaz
IMPORT_STAR
LOAD_NAME register_command_group
LOAD_CONST 'monitor diagnostic-settings'
CALL_FUNCTION
LOAD_BUILD_CLASS
LOAD_CONST <code object __CMDGroup at 0x7fab416c6420, file "f.py", line 4>
LOAD_CONST '__CMDGroup'
MAKE_FUNCTION
LOAD_CONST '__CMDGroup'
L... | from azure.cli.core.aaz import *
@register_command_group(
"monitor diagnostic-settings",
)
class __CMDGroup(AAZCommandGroup):
"""Manage service diagnostic settings."""
pass
__all__ = ["__CMDGroup"]
| data/azure-cli-2.57.0/azure/cli/command_modules/monitor/aaz/latest/monitor/diagnostic_settings/__cmd_group.py | 182 | 72 | 375,020 |
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 cms.test_utils.project.sampleapp
IMPORT_FROM views
STORE_NAME views
POP_TOP
LOAD_NAME re_path
LOAD_CONST '^(?P<path>.+)$'
LOAD_NAME views
LOAD_ATTR parentapp_view
... | from django.urls import re_path
from cms.test_utils.project.sampleapp import views
urlpatterns = [
re_path(r"^(?P<path>.+)$", views.parentapp_view, name="parentapp_view"),
]
| data/django-cms-4.1.0/cms/test_utils/project/sampleapp/urls_parentapp.py | 121 | 72 | 87,042 |
LOAD_CONST ' Transformers that create features for time-series forecasting.'
STORE_NAME __doc__
LOAD_CONST 1
LOAD_CONST ('ExpandingWindowFeatures',)
IMPORT_NAME expanding_window_features
IMPORT_FROM ExpandingWindowFeatures
STORE_NAME ExpandingWindowFeatures
POP_TOP
LOAD_CONST 1
LOAD_CONST ('LagFeatures',)
IMPORT_NAME... | """ Transformers that create features for time-series forecasting."""
from .expanding_window_features import ExpandingWindowFeatures
from .lag_features import LagFeatures
from .window_features import WindowFeatures
__all__ = ["LagFeatures", "WindowFeatures", "ExpandingWindowFeatures"]
| data/feature_engine-1.6.2/feature_engine/timeseries/forecasting/__init__.py | 149 | 72 | 203,575 |
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 cms.test_utils.project.sampleapp
IMPORT_FROM views
STORE_NAME views
POP_TOP
LOAD_NAME re_path
LOAD_CONST '^(?P<path>.+)$'
LOAD_NAME views
LOAD_ATTR childapp_view
L... | from django.urls import re_path
from cms.test_utils.project.sampleapp import views
urlpatterns = [
re_path(r"^(?P<path>.+)$", views.childapp_view, name="childapp_view"),
]
| data/django-cms-4.1.0/cms/test_utils/project/sampleapp/urls_childapp.py | 121 | 72 | 87,043 |
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_CONST 'sphinx.ext.autodoc'
LOAD_CONST 'celery.contrib.sphinx'
BUILD_LIST
STORE_NAME extensions
LOAD_CONST 'members'
BUILD_LIST
STORE_NAME autodoc_default_flags
LOAD_NAME sys
LOAD_ATTR path
LOAD... | import os
import sys
extensions = ["sphinx.ext.autodoc", "celery.contrib.sphinx"]
autodoc_default_flags = ["members"]
sys.path.insert(0, os.path.abspath(os.path.dirname(__file__)))
| data/celery-5.3.6/t/unit/contrib/proj/conf.py | 128 | 72 | 69,619 |
LOAD_CONST 0
LOAD_CONST ('*',)
IMPORT_NAME azure.cli.core.aaz
IMPORT_STAR
LOAD_NAME register_command_group
LOAD_CONST 'monitor log-profiles'
CALL_FUNCTION
LOAD_BUILD_CLASS
LOAD_CONST <code object __CMDGroup at 0x7fab802b9390, file "f.py", line 4>
LOAD_CONST '__CMDGroup'
MAKE_FUNCTION
LOAD_CONST '__CMDGroup'
LOAD_NAM... | from azure.cli.core.aaz import *
@register_command_group(
"monitor log-profiles",
)
class __CMDGroup(AAZCommandGroup):
"""Manage log profiles."""
pass
__all__ = ["__CMDGroup"]
| data/azure-cli-2.57.0/azure/cli/command_modules/monitor/aaz/latest/monitor/log_profiles/__cmd_group.py | 182 | 72 | 375,083 |
LOAD_CONST 0
LOAD_CONST ('AppConfig',)
IMPORT_NAME django.apps
IMPORT_FROM AppConfig
STORE_NAME AppConfig
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object ModeltranslationConfig at 0x7fab703a55d0, file "f.py", line 4>
LOAD_CONST 'ModeltranslationConfig'
MAKE_FUNCTION
LOAD_CONST 'ModeltranslationConfig'
LOAD_NAME AppCo... | from django.apps import AppConfig
class ModeltranslationConfig(AppConfig):
name = "modeltranslation"
verbose_name = "Modeltranslation"
def ready(self):
from modeltranslation.models import handle_translation_registrations
handle_translation_registrations()
| data/django-modeltranslation-0.18.11/modeltranslation/apps.py | 253 | 72 | 366,430 |
LOAD_CONST 0
LOAD_CONST ('annotations',)
IMPORT_NAME __future__
IMPORT_FROM annotations
STORE_NAME annotations
POP_TOP
LOAD_CONST 1
LOAD_CONST ('execute_notebook', 'list_runtimes')
IMPORT_NAME _execute
IMPORT_FROM execute_notebook
STORE_NAME execute_notebook
IMPORT_FROM list_runtimes
STORE_NAME list_runtimes
POP_TOP
... | from __future__ import annotations
from ._execute import execute_notebook, list_runtimes
from ._snapshots import list_snapshots, create_snapshot
__all__ = ["execute_notebook", "list_runtimes", "list_snapshots", "create_snapshot"]
| data/arcgis-2.2.0.2/arcgis/notebook/__init__.py | 174 | 72 | 216,257 |
LOAD_CONST 'modify PYTHONPATH to make parent package discoverable.'
STORE_NAME __doc__
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME sys
STORE_NAME sys
LOAD_CONST 0
LOAD_CONST ('abspath', 'join', 'pardir')
IMPORT_NAME os.path
IMPORT_FROM abspath
STORE_NAME abspath
IMPORT_FROM join
STORE_NAME join
IMPORT_FROM pardir
STORE_... | """modify PYTHONPATH to make parent package discoverable."""
import sys
from os.path import abspath, join, pardir
package_path = abspath(join(__file__, pardir, pardir))
sys.path.insert(0, package_path)
| data/timezonefinder-6.4.1/timezonefinder/path_modification.py | 150 | 72 | 246,816 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME pytest
STORE_NAME pytest
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME kernels
STORE_NAME kernels
LOAD_NAME pytest
LOAD_ATTR mark
LOAD_ATTR skip
LOAD_CONST 'Unable to generate any tests for kernel'
LOAD_CONST ('reason',)
CALL_FUNCTION
LOAD_CONST <code object test_pyawkward_reduce_s... | import pytest
import kernels
@pytest.mark.skip(reason="Unable to generate any tests for kernel")
def test_pyawkward_reduce_sum_bool_uint8_64_1():
raise NotImplementedError("Unable to generate any tests for kernel")
| data/awkward-cpp-29/tests-spec/test_pyawkward_reduce_sum_bool_uint8_64.py | 194 | 72 | 220,687 |
LOAD_CONST b'\x80\x04\x95\n\x00\x00\x00\x00\x00\x00\x00}\x94\x8c\x01a\x94K\x01s.'
STORE_NAME DATA
LOAD_CONST None
RETURN_VALUE | DATA = b"\x80\x04\x95\n\x00\x00\x00\x00\x00\x00\x00}\x94\x8c\x01a\x94K\x01s."
| data/anyconfig-0.14.0/tests/res/1/dumpers/pickle.stdlib/10/e/320_a_map.json.py | 78 | 72 | 390,698 |
LOAD_CONST '\ntitle: "Quick test"\noutput:\n ioslides_presentation:\n widescreen: true\n smaller: true\neditor_options:\n chunk_output_type console\n'
STORE_NAME c
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME yaml
STORE_NAME yaml
LOAD_NAME print
LOAD_NAME yaml
LOAD_METHOD dump
LOAD_NAME yaml
LOAD_METHOD load
LOAD_NAME c
... | c = """
title: "Quick test"
output:
ioslides_presentation:
widescreen: true
smaller: true
editor_options:
chunk_output_type console
"""
import yaml
print(yaml.dump(yaml.load(c)))
| data/jupytext-1.16.1/tests/data/notebooks/outputs/ipynb_to_script_vim_folding_markers/jupyter_again.py | 102 | 72 | 312,572 |
LOAD_CONST 1
LOAD_CONST ('newer', 'newer_pairwise', 'newer_group', 'newer_pairwise_group')
IMPORT_NAME _distutils._modified
IMPORT_FROM newer
STORE_NAME newer
IMPORT_FROM newer_pairwise
STORE_NAME newer_pairwise
IMPORT_FROM newer_group
STORE_NAME newer_group
IMPORT_FROM newer_pairwise_group
STORE_NAME newer_pairwise_gr... | from ._distutils._modified import (
newer,
newer_pairwise,
newer_group,
newer_pairwise_group,
)
__all__ = ["newer", "newer_pairwise", "newer_group", "newer_pairwise_group"]
| data/setuptools-69.1.0/setuptools/modified.py | 133 | 72 | 256,461 |
LOAD_BUILD_CLASS
LOAD_CONST <code object TenantAdminMixin at 0x7fab70306d20, file "f.py", line 1>
LOAD_CONST 'TenantAdminMixin'
MAKE_FUNCTION
LOAD_CONST 'TenantAdminMixin'
CALL_FUNCTION
STORE_NAME TenantAdminMixin
LOAD_CONST None
RETURN_VALUE
LOAD_NAME __name__
STORE_NAME __module__
LOAD_CONST 'TenantAdminMixin'
STORE... | class TenantAdminMixin:
"""
Mixin for Tenant model:
It disables save and delete buttons when not in current or public tenant (preventing Exceptions).
"""
change_form_template = "admin/django_tenants/tenant/change_form.html"
| data/django-tenants-3.6.1/django_tenants/admin.py | 171 | 72 | 224,955 |
SETUP_EXCEPT to 18
LOAD_CONST 0
LOAD_CONST ('tqdm',)
IMPORT_NAME tqdm.auto
IMPORT_FROM tqdm
STORE_NAME tqdm
POP_TOP
POP_BLOCK
JUMP_FORWARD to 46
DUP_TOP
LOAD_NAME ImportError
COMPARE_OP exception match
POP_JUMP_IF_FALSE
POP_TOP
POP_TOP
POP_TOP
LOAD_CONST <code object tqdm at 0x7fab8019b0c0, file "f.py", line 5>
LOAD... | try:
from tqdm.auto import tqdm
except ImportError:
def tqdm(*args, **kwargs):
if args:
return args[0]
return kwargs.get("iterable", None)
__all__ = ["tqdm"]
| data/tqdm-4.66.2/examples/include_no_requirements.py | 184 | 72 | 310,489 |
LOAD_CONST 0
LOAD_CONST ('dirname', 'join')
IMPORT_NAME os.path
IMPORT_FROM dirname
STORE_NAME dirname
IMPORT_FROM join
STORE_NAME pjoin
POP_TOP
LOAD_CONST 1
LOAD_CONST ('*',)
IMPORT_NAME icecream
IMPORT_STAR
LOAD_CONST 1
LOAD_CONST ('install', 'uninstall')
IMPORT_NAME builtins
IMPORT_FROM install
STORE_NAME install
... | from os.path import dirname, join as pjoin
from .icecream import * # noqa
from .builtins import install, uninstall
from . import __version__
globals().update(dict((k, v) for k, v in __version__.__dict__.items()))
| data/icecream-2.1.3/icecream/__init__.py | 238 | 72 | 225,024 |
SETUP_EXCEPT to 18
LOAD_CONST 0
LOAD_CONST ('*',)
IMPORT_NAME joblib
IMPORT_STAR
LOAD_CONST None
STORE_NAME _top_import_error
POP_BLOCK
JUMP_FORWARD to 56
DUP_TOP
LOAD_NAME Exception
COMPARE_OP exception match
POP_JUMP_IF_FALSE
POP_TOP
STORE_NAME ex
POP_TOP
SETUP_FINALLY to 42
LOAD_NAME ex
STORE_NAME _top_import_er... | try:
from joblib import * # noqa
_top_import_error = None
except Exception as ex: # pragma: no cover
_top_import_error = ex
def test_import_joblib():
assert _top_import_error is None
| data/joblib-1.3.2/joblib/test/test_init.py | 197 | 72 | 386,835 |
LOAD_CONST 0
LOAD_CONST ('resources',)
IMPORT_NAME awxkit.api.resources
IMPORT_FROM resources
STORE_NAME resources
POP_TOP
LOAD_CONST 1
LOAD_CONST ('page',)
IMPORT_NAME
IMPORT_FROM page
STORE_NAME page
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object Subscriptions at 0x7f8ab62f56f0, file "f.py", line 5>
LOAD_CONST 'S... | from awxkit.api.resources import resources
from . import page
class Subscriptions(page.Page):
def get_possible_licenses(self, **kwargs):
return self.post(json=kwargs).json
page.register_page(resources.subscriptions, Subscriptions)
| data/awxkit-23.8.1/awxkit/api/pages/subscriptions.py | 253 | 72 | 331,831 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME os.path
STORE_NAME os
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME pytest
STORE_NAME pytest
LOAD_CONST 0
LOAD_CONST ('open_catalog',)
IMPORT_NAME intake
IMPORT_FROM open_catalog
STORE_NAME open_catalog
POP_TOP
LOAD_NAME pytest
LOAD_ATTR fixture
LOAD_CONST <code object catalog1 at... | import os.path
import pytest
from intake import open_catalog
@pytest.fixture
def catalog1():
path = os.path.dirname(__file__)
return open_catalog(os.path.join(path, "catalog1.yml"))
| data/intake-2.0.1/intake/catalog/tests/conftest.py | 181 | 72 | 141,583 |
LOAD_CONST 0
LOAD_CONST ('Enum',)
IMPORT_NAME enum
IMPORT_FROM Enum
STORE_NAME Enum
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object WindowsArchitecture at 0x7fab70027420, file "f.py", line 4>
LOAD_CONST 'WindowsArchitecture'
MAKE_FUNCTION
LOAD_CONST 'WindowsArchitecture'
LOAD_NAME str
LOAD_NAME Enum
CALL_FUNCTION
STO... | from enum import Enum
class WindowsArchitecture(str, Enum):
None_ = ("none",)
X86 = ("x86",)
X64 = ("x64",)
Arm = ("arm",)
Neutral = ("neutral",)
| data/msgraph-sdk-1.1.0/msgraph/generated/models/windows_architecture.py | 186 | 72 | 261,100 |
LOAD_CONST '\nptime.py - Precision time function made os-independent\n'
STORE_NAME __doc__
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME time
STORE_NAME systime
LOAD_NAME systime
LOAD_METHOD time
CALL_METHOD
LOAD_NAME systime
LOAD_METHOD perf_counter
CALL_METHOD
BINARY_SUBTRACT
STORE_NAME START_TIME
LOAD_CONST <code obje... | """
ptime.py - Precision time function made os-independent
"""
import time as systime
START_TIME = systime.time() - systime.perf_counter()
def time():
return START_TIME + systime.perf_counter()
| data/vispy-0.14.1/vispy/util/ptime.py | 142 | 72 | 348,453 |
LOAD_NAME __name__
LOAD_CONST '__main__'
COMPARE_OP ==
POP_JUMP_IF_FALSE
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME sys
STORE_NAME sys
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME pytest
STORE_NAME pytest
LOAD_NAME sys
LOAD_ATTR version_info
LOAD_CONST None
LOAD_CONST 2
BUILD_SLICE
BINARY_SUBSCR
LOAD_CONST (3, 10)
COMPARE... | if __name__ == "__main__":
import sys
import pytest
if sys.version_info[:2] >= (3, 10):
pytest.main(["--strict-markers"])
else:
pytest.main(["--strict"])
| data/mando-0.7.1/mando/tests/run.py | 135 | 72 | 404,564 |
LOAD_CONST '\nThis module defines decorators which Connexion uses to wrap user provided view functions.\n'
STORE_NAME __doc__
LOAD_CONST 1
LOAD_CONST ('ASGIDecorator', 'FlaskDecorator', 'StarletteDecorator', 'WSGIDecorator')
IMPORT_NAME main
IMPORT_FROM ASGIDecorator
STORE_NAME ASGIDecorator
IMPORT_FROM FlaskDecorator... | """
This module defines decorators which Connexion uses to wrap user provided view functions.
"""
from .main import ( # noqa
ASGIDecorator,
FlaskDecorator,
StarletteDecorator,
WSGIDecorator,
)
| data/connexion-3.0.6/connexion/decorators/__init__.py | 137 | 72 | 89,474 |
LOAD_CONST 'Generated API for package: tensorflow_examples.lite.model_maker.third_party.efficientdet.backbone.efficientnet_lite_builder.'
STORE_NAME __doc__
LOAD_CONST 0
LOAD_CONST ('*',)
IMPORT_NAME tensorflow_examples.lite.model_maker.third_party.efficientdet.backbone.efficientnet_lite_builder
IMPORT_STAR
LOAD_CONST... | """Generated API for package: tensorflow_examples.lite.model_maker.third_party.efficientdet.backbone.efficientnet_lite_builder."""
from tensorflow_examples.lite.model_maker.third_party.efficientdet.backbone.efficientnet_lite_builder import *
| data/tflite-model-maker-nightly-0.4.4.dev202402210609/src/tflite_model_maker/python/third_party/efficientdet/backbone/efficientnet_lite_builder.py | 92 | 72 | 389,364 |
LOAD_CONST 0
LOAD_CONST ('FalconOpenAPIRequest',)
IMPORT_NAME openapi_core.contrib.falcon.requests
IMPORT_FROM FalconOpenAPIRequest
STORE_NAME FalconOpenAPIRequest
POP_TOP
LOAD_CONST 0
LOAD_CONST ('FalconOpenAPIResponse',)
IMPORT_NAME openapi_core.contrib.falcon.responses
IMPORT_FROM FalconOpenAPIResponse
STORE_NAME F... | from openapi_core.contrib.falcon.requests import FalconOpenAPIRequest
from openapi_core.contrib.falcon.responses import FalconOpenAPIResponse
__all__ = [
"FalconOpenAPIRequest",
"FalconOpenAPIResponse",
]
| data/openapi_core-0.19.0/openapi_core/contrib/falcon/__init__.py | 127 | 72 | 271,191 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME os.path
STORE_NAME os
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME shutil
STORE_NAME shutil
LOAD_CONST 0
LOAD_CONST ('CliRunner',)
IMPORT_NAME click.testing
IMPORT_FROM CliRunner
STORE_NAME CliRunner
POP_TOP
LOAD_CONST 0
LOAD_CONST ('tidy3d_cli',)
IMPORT_NAME tidy3d.web.cli
IMPOR... | import os.path
import shutil
from click.testing import CliRunner
from tidy3d.web.cli import tidy3d_cli
from tidy3d.web.cli.constants import CONFIG_FILE
def test_tidy3d_cli():
pass
| data/tidy3d-2.5.2/tests/test_web/test_cli.py | 220 | 72 | 206,194 |
LOAD_CONST 0
LOAD_CONST ('Enum',)
IMPORT_NAME enum
IMPORT_FROM Enum
STORE_NAME Enum
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object WelcomeScreenMeetingInformation at 0x7fab701204b0, file "f.py", line 4>
LOAD_CONST 'WelcomeScreenMeetingInformation'
MAKE_FUNCTION
LOAD_CONST 'WelcomeScreenMeetingInformation'
LOAD_NAME ... | from enum import Enum
class WelcomeScreenMeetingInformation(str, Enum):
UserDefined = ("userDefined",)
ShowOrganizerAndTimeOnly = ("showOrganizerAndTimeOnly",)
ShowOrganizerAndTimeAndSubject = ("showOrganizerAndTimeAndSubject",)
| data/msgraph-sdk-1.1.0/msgraph/generated/models/welcome_screen_meeting_information.py | 190 | 72 | 260,144 |
LOAD_CONST '\nCreate a pywebview windows using QT (normally GTK is preferred)\n'
STORE_NAME __doc__
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME webview
STORE_NAME webview
LOAD_NAME __name__
LOAD_CONST '__main__'
COMPARE_OP ==
POP_JUMP_IF_FALSE
LOAD_NAME webview
LOAD_METHOD create_window
LOAD_CONST 'Qt Example'
LOAD_CON... | """
Create a pywebview windows using QT (normally GTK is preferred)
"""
import webview
if __name__ == "__main__":
webview.create_window("Qt Example", "http://flowrl.com")
webview.start(gui="qt")
| data/pywebview-4.4.1/examples/qt_test.py | 120 | 72 | 390,136 |
LOAD_CONST 1
LOAD_CONST ('UnitedStates',)
IMPORT_NAME core
IMPORT_FROM UnitedStates
STORE_NAME UnitedStates
POP_TOP
LOAD_CONST 2
LOAD_CONST ('iso_register',)
IMPORT_NAME registry_tools
IMPORT_FROM iso_register
STORE_NAME iso_register
POP_TOP
LOAD_NAME iso_register
LOAD_CONST 'US-KS'
CALL_FUNCTION
LOAD_BUILD_CLASS
LOA... | from .core import UnitedStates
from ..registry_tools import iso_register
@iso_register("US-KS")
class Kansas(UnitedStates):
"""Kansas"""
include_federal_presidents_day = False
include_columbus_day = False
| data/workalendar-17.0.0/workalendar/usa/kansas.py | 209 | 72 | 132,093 |
LOAD_CONST 'Generated API for package: tensorflow_examples.lite.model_maker.third_party.recommendation.ml.model.context_encoder.'
STORE_NAME __doc__
LOAD_CONST 0
LOAD_CONST ('*',)
IMPORT_NAME tensorflow_examples.lite.model_maker.third_party.recommendation.ml.model.context_encoder
IMPORT_STAR
LOAD_CONST None
RETURN_VAL... | """Generated API for package: tensorflow_examples.lite.model_maker.third_party.recommendation.ml.model.context_encoder."""
from tensorflow_examples.lite.model_maker.third_party.recommendation.ml.model.context_encoder import *
| data/tflite-model-maker-nightly-0.4.4.dev202402210609/src/tflite_model_maker/python/third_party/recommendation/ml/model/context_encoder.py | 92 | 72 | 389,294 |
LOAD_CONST 0
LOAD_CONST ('Path',)
IMPORT_NAME pathlib
IMPORT_FROM Path
STORE_NAME Path
POP_TOP
LOAD_CONST 0
LOAD_CONST ('setup',)
IMPORT_NAME setuptools
IMPORT_FROM setup
STORE_NAME setup
POP_TOP
LOAD_NAME Path
LOAD_NAME __file__
CALL_FUNCTION
LOAD_ATTR parent
STORE_NAME here
BUILD_MAP
STORE_NAME about
LOAD_NAME he... | from pathlib import Path
from setuptools import setup
here = Path(__file__).parent
about = {}
with (here / "asyncmock/__version__.py").open() as f:
exec(f.read(), about)
setup(version=about["__version__"])
| data/asyncmock-0.4.2/setup.py | 161 | 72 | 80,719 |
LOAD_CONST 0
LOAD_CONST ('Enum',)
IMPORT_NAME enum
IMPORT_FROM Enum
STORE_NAME Enum
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object OnlineMeetingProviderType at 0x7fab70027660, file "f.py", line 4>
LOAD_CONST 'OnlineMeetingProviderType'
MAKE_FUNCTION
LOAD_CONST 'OnlineMeetingProviderType'
LOAD_NAME str
LOAD_NAME Enum... | from enum import Enum
class OnlineMeetingProviderType(str, Enum):
Unknown = ("unknown",)
SkypeForBusiness = ("skypeForBusiness",)
SkypeForConsumer = ("skypeForConsumer",)
TeamsForBusiness = ("teamsForBusiness",)
| data/msgraph-sdk-1.1.0/msgraph/generated/models/online_meeting_provider_type.py | 192 | 72 | 261,146 |
LOAD_CONST 1
LOAD_CONST ('AuthorizationServer',)
IMPORT_NAME authorization_server
IMPORT_FROM AuthorizationServer
STORE_NAME AuthorizationServer
POP_TOP
LOAD_CONST 1
LOAD_CONST ('ResourceProtector', 'current_credential')
IMPORT_NAME resource_protector
IMPORT_FROM ResourceProtector
STORE_NAME ResourceProtector
IMPORT_F... | from .authorization_server import AuthorizationServer
from .resource_protector import ResourceProtector, current_credential
from .cache import (
register_nonce_hooks,
register_temporary_credential_hooks,
create_exists_nonce_func,
)
| data/Authlib-1.3.0/authlib/integrations/flask_oauth1/__init__.py | 192 | 72 | 116,496 |
LOAD_CONST 0
LOAD_CONST ('base',)
IMPORT_NAME QcloudApi.modules
IMPORT_FROM base
STORE_NAME base
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object Emr at 0x7f8e2ff25b70, file "f.py", line 4>
LOAD_CONST 'Emr'
MAKE_FUNCTION
LOAD_CONST 'Emr'
LOAD_NAME base
LOAD_ATTR Base
CALL_FUNCTION
STORE_NAME Emr
LOAD_CONST None
RETURN... | from QcloudApi.modules import base
class Emr(base.Base):
"""Elastic Map Reduce.
document: https://cloud.tencent.com/document/product/589
"""
requestHost = "emr.api.qcloud.com"
| data/tencentcloud-sdk-python-3.0.1092/QcloudApi/modules/emr.py | 178 | 72 | 119,777 |
LOAD_BUILD_CLASS
LOAD_CONST <code object MyDict at 0x7fab40da16f0, file "f.py", line 1>
LOAD_CONST 'MyDict'
MAKE_FUNCTION
LOAD_CONST 'MyDict'
LOAD_NAME dict
CALL_FUNCTION
STORE_NAME MyDict
LOAD_NAME MyDict
LOAD_CONST 1
LOAD_CONST 'c'
LOAD_NAME MyDict
LOAD_CONST 'e'
LOAD_NAME MyDict
LOAD_CONST 1
LOAD_CONST 2
LOAD_CONS... | class MyDict(dict):
pass
DATA = MyDict(
{"a": 1, "b": "c", "d": MyDict({"e": MyDict({"f": [1, 2, 3], "g": "GGG"})})}
)
| data/anyconfig-0.14.0/tests/res/1/loaders/python.builtin/20/360_a_nested_map.py | 182 | 72 | 390,522 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME numpy
STORE_NAME np
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME blosc2
STORE_NAME blosc2
LOAD_NAME np
LOAD_METHOD array
LOAD_CONST 'å'
LOAD_CONST 'ç'
LOAD_CONST 'ø'
BUILD_LIST
CALL_METHOD
STORE_NAME a
LOAD_NAME blosc2
LOAD_METHOD pack
LOAD_NAME a
LOAD_CONST 9
CALL_METHOD
STORE_N... | import numpy as np
import blosc2
a = np.array(["å", "ç", "ø"])
parray = blosc2.pack(a, 9)
a2 = blosc2.unpack(parray)
assert np.alltrue(a == a2)
| data/blosc2-2.5.1/examples/pack_array.py | 136 | 72 | 115,670 |
LOAD_BUILD_CLASS
LOAD_CONST <code object MyDict at 0x7fab40da1c90, file "f.py", line 1>
LOAD_CONST 'MyDict'
MAKE_FUNCTION
LOAD_CONST 'MyDict'
LOAD_NAME dict
CALL_FUNCTION
STORE_NAME MyDict
LOAD_NAME MyDict
LOAD_CONST 1
LOAD_CONST 'c'
LOAD_NAME MyDict
LOAD_CONST 'e'
LOAD_NAME MyDict
LOAD_CONST 1
LOAD_CONST 2
LOAD_CONS... | class MyDict(dict):
pass
DATA = MyDict(
{"a": 1, "b": "c", "d": MyDict({"e": MyDict({"f": [1, 2, 3], "g": "GGG"})})}
)
| data/anyconfig-0.14.0/tests/res/1/loaders/python.builtin/20/e/360_a_nested_map.py.py | 182 | 72 | 390,523 |
LOAD_CONST 0
LOAD_CONST ('unique',)
IMPORT_NAME enum
IMPORT_FROM unique
STORE_NAME unique
POP_TOP
LOAD_CONST 4
LOAD_CONST ('StrEnum',)
IMPORT_NAME _base_enum
IMPORT_FROM StrEnum
STORE_NAME StrEnum
POP_TOP
LOAD_NAME unique
LOAD_BUILD_CLASS
LOAD_CONST <code object InterestCalculationConvention at 0x7fab701ac780, file "... | from enum import unique
from ...._base_enum import StrEnum
@unique
class InterestCalculationConvention(StrEnum):
BOND_BASIS = "BondBasis"
MONEY_MARKET = "MoneyMarket"
NONE = "None"
| data/refinitiv-data-1.6.0/refinitiv/data/content/ipa/_enums/_interest_calculation_convention.py | 208 | 72 | 195,572 |
LOAD_CONST 'Generated API for package: tensorflow_examples.lite.model_maker.core.data_util.object_detector_dataloader_util.'
STORE_NAME __doc__
LOAD_CONST 0
LOAD_CONST ('*',)
IMPORT_NAME tensorflow_examples.lite.model_maker.core.data_util.object_detector_dataloader_util
IMPORT_STAR
LOAD_CONST None
RETURN_VALUE | """Generated API for package: tensorflow_examples.lite.model_maker.core.data_util.object_detector_dataloader_util."""
from tensorflow_examples.lite.model_maker.core.data_util.object_detector_dataloader_util import *
| data/tflite-model-maker-nightly-0.4.4.dev202402210609/src/tflite_model_maker/python/core/data_util/object_detector_dataloader_util.py | 92 | 72 | 389,382 |
LOAD_CONST 0
LOAD_CONST ('Any',)
IMPORT_NAME typing
IMPORT_FROM Any
STORE_NAME Any
POP_TOP
LOAD_NAME Any
LOAD_CONST None
LOAD_CONST ('ip', 'return')
BUILD_CONST_KEY_MAP
LOAD_CONST <code object load_ipython_extension at 0x7fab424aca50, file "f.py", line 4>
LOAD_CONST 'load_ipython_extension'
MAKE_FUNCTION
STORE_NAME lo... | from typing import Any
def load_ipython_extension(ip: Any) -> None: # pragma: no cover
from pip._vendor.rich.pretty import install
from pip._vendor.rich.traceback import install as tr_install
install()
tr_install()
| data/pyLDAvis-3.4.1/pyLDAvis/lib/python3.11/site-packages/pip/_vendor/rich/_extension.py | 180 | 72 | 230,545 |
LOAD_CONST '{\n "a": 1,\n "b": "c",\n "d": {\n "e": {\n "f": [\n 1,\n 2,\n 3\n ],\n "g": "GGG"\n }\n }\n}'
STORE_NAME DATA
LOAD_CONST None
RETURN_VALUE | DATA = """{
"a": 1,
"b": "c",
"d": {
"e": {
"f": [
1,
2,
3
],
"g": "GGG"
}
}
}"""
| data/anyconfig-0.14.0/tests/res/1/dumpers/json.simplejson/20/e/360_a_nested_map.py.py | 73 | 72 | 390,635 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME typer
STORE_NAME typer
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME items
STORE_NAME items
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME users
STORE_NAME users
LOAD_NAME typer
LOAD_METHOD Typer
CALL_METHOD
STORE_NAME app
LOAD_NAME app
LOAD_ATTR add_typer
LOAD_NAME users
LOAD_ATTR app... | import typer
import items
import users
app = typer.Typer()
app.add_typer(users.app, name="users")
app.add_typer(items.app, name="items")
if __name__ == "__main__":
app()
| data/typer-0.9.0/docs_src/subcommands/tutorial001/main.py | 150 | 72 | 224,577 |
LOAD_CONST 0
LOAD_CONST ('BaseCodec',)
IMPORT_NAME coreapi.codecs.base
IMPORT_FROM BaseCodec
STORE_NAME BaseCodec
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object TextCodec at 0x7fab820f46f0, file "f.py", line 4>
LOAD_CONST 'TextCodec'
MAKE_FUNCTION
LOAD_CONST 'TextCodec'
LOAD_NAME BaseCodec
CALL_FUNCTION
STORE_NAME T... | from coreapi.codecs.base import BaseCodec
class TextCodec(BaseCodec):
media_type = "text/*"
format = "text"
def decode(self, bytestring, **options):
return bytestring.decode("utf-8")
| data/coreapi-2.3.3/coreapi/codecs/text.py | 222 | 72 | 257,193 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME unittest
STORE_NAME unittest
LOAD_BUILD_CLASS
LOAD_CONST <code object Test at 0x7f8e2ff25b70, file "f.py", line 4>
LOAD_CONST 'Test'
MAKE_FUNCTION
LOAD_CONST 'Test'
LOAD_NAME unittest
LOAD_ATTR TestCase
CALL_FUNCTION
STORE_NAME Test
LOAD_CONST <code object test_suite at 0x7f8e... | import unittest
class Test(unittest.TestCase):
def test(self):
self.assertEqual(1, 0)
raise TypeError("eek")
def test_suite():
return unittest.defaultTestLoader.loadTestsFromTestCase(Test)
| data/zope.testrunner-6.3.1/src/zope/testrunner/tests/testrunner-ex/sample2/sample23/sampletests_i.py | 270 | 72 | 115,799 |
LOAD_CONST '\ntitle: "Quick test"\noutput:\n ioslides_presentation:\n widescreen: true\n smaller: true\neditor_options:\n chunk_output_type console\n'
STORE_NAME c
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME yaml
STORE_NAME yaml
LOAD_NAME print
LOAD_NAME yaml
LOAD_METHOD dump
LOAD_NAME yaml
LOAD_METHOD load
LOAD_NAME c
... | c = """
title: "Quick test"
output:
ioslides_presentation:
widescreen: true
smaller: true
editor_options:
chunk_output_type console
"""
import yaml
print(yaml.dump(yaml.load(c)))
| data/jupytext-1.16.1/tests/data/notebooks/outputs/ipynb_to_script_vscode_folding_markers/jupyter_again.py | 102 | 72 | 312,586 |
LOAD_CONST 'Generated API for package: tensorflow_examples.lite.model_maker.third_party.recommendation.ml.model.input_pipeline.'
STORE_NAME __doc__
LOAD_CONST 0
LOAD_CONST ('*',)
IMPORT_NAME tensorflow_examples.lite.model_maker.third_party.recommendation.ml.model.input_pipeline
IMPORT_STAR
LOAD_CONST None
RETURN_VALUE | """Generated API for package: tensorflow_examples.lite.model_maker.third_party.recommendation.ml.model.input_pipeline."""
from tensorflow_examples.lite.model_maker.third_party.recommendation.ml.model.input_pipeline import *
| data/tflite-model-maker-nightly-0.4.4.dev202402210609/src/tflite_model_maker/python/third_party/recommendation/ml/model/input_pipeline.py | 92 | 72 | 389,291 |
LOAD_CONST 1
LOAD_CONST ('move_item',)
IMPORT_NAME
IMPORT_FROM move_item
STORE_NAME move_item
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object CopyItem at 0x7faa75f5ea50, file "f.py", line 4>
LOAD_CONST 'CopyItem'
MAKE_FUNCTION
LOAD_CONST 'CopyItem'
LOAD_NAME move_item
LOAD_ATTR MoveItem
CALL_FUNCTION
STORE_NAME CopyI... | from . import move_item
class CopyItem(move_item.MoveItem):
"""MSDN: https://docs.microsoft.com/en-us/exchange/client-developer/web-service-reference/copyitem-operation"""
SERVICE_NAME = "CopyItem"
| data/exchangelib-5.1.0/exchangelib/services/copy_item.py | 180 | 72 | 251,237 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME argparse
STORE_NAME argparse
LOAD_CONST <code object blah at 0x7f8af13ad930, file "f.py", line 4>
LOAD_CONST 'blah'
MAKE_FUNCTION
STORE_NAME blah
LOAD_CONST None
RETURN_VALUE
LOAD_GLOBAL argparse
LOAD_ATTR ArgumentParser
LOAD_CONST "\n\n[I'm a link](http://www.google.com)\n"
... | import argparse
def blah():
parser = argparse.ArgumentParser(
description="""
[I'm a link](http://www.google.com)
"""
)
parser.add_argument("cmd", help="execute a `command`")
return parser
| data/sphinx_argparse-0.4.0/test/sample2.py | 149 | 72 | 328,620 |
LOAD_CONST '\ntitle: "Quick test"\noutput:\n ioslides_presentation:\n widescreen: true\n smaller: true\neditor_options:\n chunk_output_type console\n'
STORE_NAME c
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME yaml
STORE_NAME yaml
LOAD_NAME print
LOAD_NAME yaml
LOAD_METHOD dump
LOAD_NAME yaml
LOAD_METHOD load
LOAD_NAME c
... | c = """
title: "Quick test"
output:
ioslides_presentation:
widescreen: true
smaller: true
editor_options:
chunk_output_type console
"""
import yaml
print(yaml.dump(yaml.load(c)))
| data/jupytext-1.16.1/tests/data/notebooks/outputs/ipynb_to_script/jupyter_again.py | 102 | 72 | 312,545 |
LOAD_CONST 0
LOAD_CONST ('Enum',)
IMPORT_NAME enum
IMPORT_FROM Enum
STORE_NAME Enum
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object ChatMessageType at 0x7fab4298ec00, file "f.py", line 4>
LOAD_CONST 'ChatMessageType'
MAKE_FUNCTION
LOAD_CONST 'ChatMessageType'
LOAD_NAME str
LOAD_NAME Enum
CALL_FUNCTION
STORE_NAME Chat... | from enum import Enum
class ChatMessageType(str, Enum):
Message = ("message",)
ChatEvent = ("chatEvent",)
Typing = ("typing",)
UnknownFutureValue = ("unknownFutureValue",)
SystemEventMessage = ("systemEventMessage",)
| data/msgraph-sdk-1.1.0/msgraph/generated/models/chat_message_type.py | 185 | 72 | 259,863 |
LOAD_CONST 0
LOAD_CONST ('Enum',)
IMPORT_NAME enum
IMPORT_FROM Enum
STORE_NAME Enum
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object ConnectionOperationStatus at 0x7fab4298e660, file "f.py", line 4>
LOAD_CONST 'ConnectionOperationStatus'
MAKE_FUNCTION
LOAD_CONST 'ConnectionOperationStatus'
LOAD_NAME str
LOAD_NAME Enum... | from enum import Enum
class ConnectionOperationStatus(str, Enum):
Unspecified = ("unspecified",)
Inprogress = ("inprogress",)
Completed = ("completed",)
Failed = ("failed",)
UnknownFutureValue = ("unknownFutureValue",)
| data/msgraph-sdk-1.1.0/msgraph/generated/models/external_connectors/connection_operation_status.py | 186 | 72 | 262,309 |
LOAD_CONST 0
LOAD_CONST ('absolute_import', 'division', 'print_function')
IMPORT_NAME __future__
IMPORT_FROM absolute_import
STORE_NAME absolute_import
IMPORT_FROM division
STORE_NAME division
IMPORT_FROM print_function
STORE_NAME print_function
POP_TOP
LOAD_NAME type
STORE_NAME __metaclass__
LOAD_CONST 0
LOAD_CONST ... | from __future__ import absolute_import, division, print_function
__metaclass__ = type
from ansible_collections.community.general.plugins.modules import gconftool2
from .helper import Helper
Helper.from_module(gconftool2, __name__)
| data/ansible-9.2.0/ansible_collections/community/general/tests/unit/plugins/modules/test_gconftool2.py | 162 | 72 | 275,241 |
LOAD_CONST 0
LOAD_CONST ('Enum',)
IMPORT_NAME enum
IMPORT_FROM Enum
STORE_NAME Enum
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object PrintColorMode at 0x7fab4298e930, file "f.py", line 4>
LOAD_CONST 'PrintColorMode'
MAKE_FUNCTION
LOAD_CONST 'PrintColorMode'
LOAD_NAME str
LOAD_NAME Enum
CALL_FUNCTION
STORE_NAME PrintCo... | from enum import Enum
class PrintColorMode(str, Enum):
BlackAndWhite = ("blackAndWhite",)
Grayscale = ("grayscale",)
Color = ("color",)
Auto = ("auto",)
UnknownFutureValue = ("unknownFutureValue",)
| data/msgraph-sdk-1.1.0/msgraph/generated/models/print_color_mode.py | 186 | 72 | 260,651 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME logging
STORE_NAME logging
SETUP_EXCEPT to 26
LOAD_CONST 0
LOAD_CONST ('NullHandler',)
IMPORT_NAME logging
IMPORT_FROM NullHandler
STORE_NAME NullHandler
POP_TOP
POP_BLOCK
JUMP_FORWARD to 64
DUP_TOP
LOAD_NAME ImportError
COMPARE_OP exception match
POP_JUMP_IF_FALSE
POP_TOP
PO... | import logging
try: # Python 2.7+
from logging import NullHandler
except ImportError:
class NullHandler(logging.Handler):
def emit(self, record):
pass
LOG = logging.getLogger(__name__)
LOG.addHandler(NullHandler())
| data/impacket-0.11.0/impacket/__init__.py | 264 | 72 | 357,420 |
LOAD_CONST 'Generated API for package: tensorflow_examples.lite.model_maker.third_party.recommendation.ml.configs.model_config.'
STORE_NAME __doc__
LOAD_CONST 0
LOAD_CONST ('*',)
IMPORT_NAME tensorflow_examples.lite.model_maker.third_party.recommendation.ml.configs.model_config
IMPORT_STAR
LOAD_CONST None
RETURN_VALUE | """Generated API for package: tensorflow_examples.lite.model_maker.third_party.recommendation.ml.configs.model_config."""
from tensorflow_examples.lite.model_maker.third_party.recommendation.ml.configs.model_config import *
| data/tflite-model-maker-nightly-0.4.4.dev202402210609/src/tflite_model_maker/python/third_party/recommendation/ml/configs/model_config.py | 92 | 72 | 389,288 |
LOAD_BUILD_CLASS
LOAD_CONST <code object MyDict at 0x7fab802326f0, file "f.py", line 1>
LOAD_CONST 'MyDict'
MAKE_FUNCTION
LOAD_CONST 'MyDict'
LOAD_NAME dict
CALL_FUNCTION
STORE_NAME MyDict
LOAD_NAME MyDict
LOAD_CONST 1
LOAD_CONST 'c'
LOAD_NAME MyDict
LOAD_CONST 'e'
LOAD_NAME MyDict
LOAD_CONST 1
LOAD_CONST 2
LOAD_CONS... | class MyDict(dict):
pass
DATA = MyDict(
{"a": 1, "b": "c", "d": MyDict({"e": MyDict({"f": [1, 2, 3], "g": "GGG"})})}
)
| data/anyconfig-0.14.0/tests/res/1/loaders/json.stdlib/30/e/360_a_nested_map.json.py | 183 | 72 | 390,477 |
LOAD_CONST 'Generated API for package: tensorflow_examples.lite.model_maker.third_party.recommendation.ml.model.label_encoder.'
STORE_NAME __doc__
LOAD_CONST 0
LOAD_CONST ('*',)
IMPORT_NAME tensorflow_examples.lite.model_maker.third_party.recommendation.ml.model.label_encoder
IMPORT_STAR
LOAD_CONST None
RETURN_VALUE | """Generated API for package: tensorflow_examples.lite.model_maker.third_party.recommendation.ml.model.label_encoder."""
from tensorflow_examples.lite.model_maker.third_party.recommendation.ml.model.label_encoder import *
| data/tflite-model-maker-nightly-0.4.4.dev202402210609/src/tflite_model_maker/python/third_party/recommendation/ml/model/label_encoder.py | 92 | 72 | 389,299 |
LOAD_CONST 0
LOAD_CONST ('DataForSeoAPISearchResults', 'DataForSeoAPISearchRun')
IMPORT_NAME langchain_community.tools.dataforseo_api_search.tool
IMPORT_FROM DataForSeoAPISearchResults
STORE_NAME DataForSeoAPISearchResults
IMPORT_FROM DataForSeoAPISearchRun
STORE_NAME DataForSeoAPISearchRun
POP_TOP
LOAD_CONST 'DataFor... | from langchain_community.tools.dataforseo_api_search.tool import (
DataForSeoAPISearchResults,
DataForSeoAPISearchRun,
)
__all__ = ["DataForSeoAPISearchRun", "DataForSeoAPISearchResults"]
| data/langchain-0.1.8/langchain/tools/dataforseo_api_search/tool.py | 124 | 72 | 369,361 |
LOAD_CONST '\nNETCONF definitions used by os_ken/lib/of_config.\n'
STORE_NAME __doc__
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME os.path
STORE_NAME os
LOAD_NAME os
LOAD_ATTR path
LOAD_METHOD dirname
LOAD_NAME __file__
CALL_METHOD
STORE_NAME SCHEMA_DIR
LOAD_NAME os
LOAD_ATTR path
LOAD_METHOD join
LOAD_NAME SCHEMA_DIR
L... | """
NETCONF definitions used by os_ken/lib/of_config.
"""
import os.path
SCHEMA_DIR = os.path.dirname(__file__)
NETCONF_XSD = os.path.join(SCHEMA_DIR, "netconf.xsd")
| data/os-ken-2.8.0/os_ken/lib/netconf/__init__.py | 110 | 72 | 62,016 |
LOAD_CONST '\nmath.prod equivalent for < Python 3.8\n'
STORE_NAME __doc__
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME functools
STORE_NAME functools
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME operator
STORE_NAME operator
LOAD_CONST <code object product at 0x7faa753058a0, file "f.py", line 9>
LOAD_CONST 'product'
MAKE_FUN... | """
math.prod equivalent for < Python 3.8
"""
import functools
import operator
def product(sequence):
return functools.reduce(operator.mul, sequence)
try:
from math import prod
except ImportError:
prod = product
| data/openpyxl-3.1.2/openpyxl/compat/product.py | 199 | 72 | 444,394 |
LOAD_CONST 0
LOAD_CONST ('absolute_import', 'division', 'print_function')
IMPORT_NAME __future__
IMPORT_FROM absolute_import
STORE_NAME absolute_import
IMPORT_FROM division
STORE_NAME division
IMPORT_FROM print_function
STORE_NAME print_function
POP_TOP
LOAD_NAME type
STORE_NAME __metaclass__
LOAD_BUILD_CLASS
LOAD_CO... | from __future__ import absolute_import, division, print_function
__metaclass__ = type
class DNSConversionError(Exception):
def __init__(self, message):
super(DNSConversionError, self).__init__(message)
self.error_message = message
| data/ansible-9.2.0/ansible_collections/community/dns/plugins/module_utils/conversion/base.py | 284 | 72 | 276,248 |
LOAD_CONST 'Generated API for package: tensorflow_examples.lite.model_maker.third_party.efficientdet.dataset.create_pascal_tfrecord.'
STORE_NAME __doc__
LOAD_CONST 0
LOAD_CONST ('*',)
IMPORT_NAME tensorflow_examples.lite.model_maker.third_party.efficientdet.dataset.create_pascal_tfrecord
IMPORT_STAR
LOAD_CONST None
RE... | """Generated API for package: tensorflow_examples.lite.model_maker.third_party.efficientdet.dataset.create_pascal_tfrecord."""
from tensorflow_examples.lite.model_maker.third_party.efficientdet.dataset.create_pascal_tfrecord import *
| data/tflite-model-maker-nightly-0.4.4.dev202402210609/src/tflite_model_maker/python/third_party/efficientdet/dataset/create_pascal_tfrecord.py | 92 | 72 | 389,316 |
LOAD_CONST 1
LOAD_CONST ('TCP',)
IMPORT_NAME tcp
IMPORT_FROM TCP
STORE_NAME TCP
POP_TOP
LOAD_CONST 1
LOAD_CONST ('TCPAbridged',)
IMPORT_NAME tcp_abridged
IMPORT_FROM TCPAbridged
STORE_NAME TCPAbridged
POP_TOP
LOAD_CONST 1
LOAD_CONST ('TCPAbridgedO',)
IMPORT_NAME tcp_abridged_o
IMPORT_FROM TCPAbridgedO
STORE_NAME TCPA... | from .tcp import TCP
from .tcp_abridged import TCPAbridged
from .tcp_abridged_o import TCPAbridgedO
from .tcp_full import TCPFull
from .tcp_intermediate import TCPIntermediate
from .tcp_intermediate_o import TCPIntermediateO
| data/Pyrogram-2.0.106/pyrogram/connection/transport/tcp/__init__.py | 209 | 72 | 272,989 |
LOAD_CONST 0
LOAD_CONST ('restricted_eval',)
IMPORT_NAME tests.helper
IMPORT_FROM restricted_eval
STORE_NAME restricted_eval
POP_TOP
LOAD_CONST <code object test_Or at 0x7f8e44ccfc00, file "f.py", line 4>
LOAD_CONST 'test_Or'
MAKE_FUNCTION
STORE_NAME test_Or
LOAD_CONST <code object test_And at 0x7f8ece8a8ed0, file "f... | from tests.helper import restricted_eval
def test_Or():
assert restricted_eval("False or True") is True
def test_And():
assert restricted_eval("True and True") is True
def test_Not():
assert restricted_eval("not False") is True
| data/RestrictedPython-7.0/tests/transformer/operators/test_bool_operators.py | 284 | 72 | 115,889 |
LOAD_CONST 0
LOAD_CONST ('Enum',)
IMPORT_NAME enum
IMPORT_FROM Enum
STORE_NAME Enum
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object ParameterInType at 0x7f8e2fb9c150, file "f.py", line 4>
LOAD_CONST 'ParameterInType'
MAKE_FUNCTION
LOAD_CONST 'ParameterInType'
LOAD_NAME str
LOAD_NAME Enum
CALL_FUNCTION
STORE_NAME Para... | from enum import Enum
class ParameterInType(str, Enum):
"""The place Parameters can be put when calling an Endpoint"""
QUERY = "query"
PATH = "path"
HEADER = "header"
COOKIE = "cookie"
| data/flask_openapi3-3.0.2/flask_openapi3/models/parameter_in_type.py | 190 | 72 | 405,886 |
LOAD_CONST '\nSimple taskstats sample.\n'
STORE_NAME __doc__
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME os
STORE_NAME os
LOAD_CONST 0
LOAD_CONST ('TaskStats',)
IMPORT_NAME pyroute2
IMPORT_FROM TaskStats
STORE_NAME TaskStats
POP_TOP
LOAD_NAME os
LOAD_METHOD getpid
CALL_METHOD
STORE_NAME pid
LOAD_NAME TaskStats
CALL_FU... | """
Simple taskstats sample.
"""
import os
from pyroute2 import TaskStats
pid = os.getpid()
ts = TaskStats()
ts.bind()
ret = ts.get_pid_stat(int(pid))[0]
print(ret)
ts.close()
| data/pyroute2-0.7.12/examples/processes/taskstats.py | 149 | 72 | 137,316 |
LOAD_CONST 'The most basic example of creating a webview window.'
STORE_NAME __doc__
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME webview
STORE_NAME webview
LOAD_NAME __name__
LOAD_CONST '__main__'
COMPARE_OP ==
POP_JUMP_IF_FALSE
LOAD_NAME webview
LOAD_METHOD create_window
LOAD_CONST 'Simple browser'
LOAD_CONST 'https:... | """The most basic example of creating a webview window."""
import webview
if __name__ == "__main__":
window = webview.create_window(
"Simple browser", "https://pywebview.flowrl.com/hello"
)
webview.start()
| data/pywebview-4.4.1/examples/simple_browser.py | 108 | 72 | 390,150 |
LOAD_CONST 0
LOAD_CONST ('Optional', 'Type')
IMPORT_NAME mkdocs.config.config_options
IMPORT_FROM Optional
STORE_NAME Optional
IMPORT_FROM Type
STORE_NAME Type
POP_TOP
LOAD_CONST 0
LOAD_CONST ('Config',)
IMPORT_NAME mkdocs.config.base
IMPORT_FROM Config
STORE_NAME Config
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code obje... | from mkdocs.config.config_options import Optional, Type
from mkdocs.config.base import Config
class TagsConfig(Config):
enabled = Type(bool, default=True)
tags = Type(bool, default=True)
tags_file = Optional(Type(str))
| data/mkdocs_material-9.5.10/material/plugins/tags/config.py | 218 | 72 | 405,008 |
LOAD_BUILD_CLASS
LOAD_CONST <code object SetterProperty at 0x7f8e2fe3c0c0, file "f.py", line 1>
LOAD_CONST 'SetterProperty'
MAKE_FUNCTION
LOAD_CONST 'SetterProperty'
LOAD_NAME object
CALL_FUNCTION
STORE_NAME SetterProperty
LOAD_CONST None
RETURN_VALUE
LOAD_NAME __name__
STORE_NAME __module__
LOAD_CONST 'SetterProperty... | class SetterProperty(object):
def __init__(self, func, doc=None):
self.func = func
self.__doc__ = doc if doc is not None else func.__doc__
def __set__(self, obj, value):
return self.func(obj, value)
| data/python-intercom-3.1.0/intercom/lib/setter_property.py | 275 | 72 | 396,849 |
LOAD_CONST '\nEditor Extensions classes and manager.\n'
STORE_NAME __doc__
LOAD_CONST 1
LOAD_CONST ('CloseBracketsExtension',)
IMPORT_NAME closebrackets
IMPORT_FROM CloseBracketsExtension
STORE_NAME CloseBracketsExtension
POP_TOP
LOAD_CONST 1
LOAD_CONST ('CloseQuotesExtension',)
IMPORT_NAME closequotes
IMPORT_FROM Cl... | """
Editor Extensions classes and manager.
"""
from .closebrackets import CloseBracketsExtension
from .closequotes import CloseQuotesExtension
from .docstring import DocstringWriterExtension, QMenuOnlyForEnter
from .manager import EditorExtensionsManager
from .snippets import SnippetsExtension
| data/spyder-5.5.1/spyder/plugins/editor/extensions/__init__.py | 205 | 72 | 369,846 |
LOAD_CONST '!\n\n@brief Core module provides access to CCORE library (part of this project).\n\n@authors Andrei Novikov (pyclustering@yandex.ru)\n@date 2014-2020\n@copyright BSD-3-Clause\n\n'
STORE_NAME __doc__
LOAD_CONST None
RETURN_VALUE | """!
@brief Core module provides access to CCORE library (part of this project).
@authors Andrei Novikov (pyclustering@yandex.ru)
@date 2014-2020
@copyright BSD-3-Clause
"""
| data/pyclustering-0.10.1.2/pyclustering/core/__init__.py | 88 | 72 | 23,178 |
LOAD_CONST 'Generated API for package: tensorflow_examples.lite.model_maker.third_party.efficientdet.object_detection.argmax_matcher.'
STORE_NAME __doc__
LOAD_CONST 0
LOAD_CONST ('*',)
IMPORT_NAME tensorflow_examples.lite.model_maker.third_party.efficientdet.object_detection.argmax_matcher
IMPORT_STAR
LOAD_CONST None
... | """Generated API for package: tensorflow_examples.lite.model_maker.third_party.efficientdet.object_detection.argmax_matcher."""
from tensorflow_examples.lite.model_maker.third_party.efficientdet.object_detection.argmax_matcher import *
| data/tflite-model-maker-nightly-0.4.4.dev202402210609/src/tflite_model_maker/python/third_party/efficientdet/object_detection/argmax_matcher.py | 92 | 72 | 389,329 |
LOAD_CONST 0
LOAD_CONST ('absolute_import',)
IMPORT_NAME __future__
IMPORT_FROM absolute_import
STORE_NAME absolute_import
POP_TOP
LOAD_CONST 1
LOAD_CONST ('WafClient',)
IMPORT_NAME waf_client
IMPORT_FROM WafClient
STORE_NAME WafClient
POP_TOP
LOAD_CONST 1
LOAD_CONST ('WafClientCompositeOperations',)
IMPORT_NAME waf_... | from __future__ import absolute_import
from .waf_client import WafClient
from .waf_client_composite_operations import WafClientCompositeOperations
from . import models
__all__ = ["WafClient", "WafClientCompositeOperations", "models"]
| data/oci-2.122.0/src/oci/waf/__init__.py | 167 | 72 | 409,193 |
LOAD_CONST 'Common functions for history.'
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 ('HomeAssistant',)
IMPORT_NAME homeassistant.core
IMPORT_FROM HomeAssistant
STORE_NAME HomeAssistant
POP_TOP
LOA... | """Common functions for history."""
from __future__ import annotations
from homeassistant.core import HomeAssistant
from ... import recorder
def _schema_version(hass: HomeAssistant) -> int:
return recorder.get_instance(hass).schema_version
| data/homeassistant-2024.2.2/homeassistant/components/recorder/history/common.py | 198 | 72 | 406,538 |
LOAD_CONST 'Constants related to the APPROLE auth method.'
STORE_NAME __doc__
LOAD_CONST 'approle'
STORE_NAME DEFAULT_MOUNT_POINT
LOAD_CONST 'service'
LOAD_CONST 'batch'
LOAD_CONST 'default'
LOAD_CONST 'default-service'
LOAD_CONST 'default-batch'
BUILD_LIST
STORE_NAME ALLOWED_TOKEN_TYPES
LOAD_CONST None
RETURN_VA... | """Constants related to the APPROLE auth method."""
DEFAULT_MOUNT_POINT = "approle"
ALLOWED_TOKEN_TYPES = [
"service",
"batch",
"default",
"default-service",
"default-batch",
]
| data/hvac-2.1.0/hvac/constants/approle.py | 88 | 72 | 389,208 |
LOAD_CONST 0
LOAD_CONST ('Enum',)
IMPORT_NAME enum
IMPORT_FROM Enum
STORE_NAME Enum
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object ChatMessageActions at 0x7fab70027420, file "f.py", line 4>
LOAD_CONST 'ChatMessageActions'
MAKE_FUNCTION
LOAD_CONST 'ChatMessageActions'
LOAD_NAME str
LOAD_NAME Enum
CALL_FUNCTION
STORE_... | from enum import Enum
class ChatMessageActions(str, Enum):
ReactionAdded = ("reactionAdded",)
ReactionRemoved = ("reactionRemoved",)
ActionUndefined = ("actionUndefined",)
UnknownFutureValue = ("unknownFutureValue",)
| data/msgraph-sdk-1.1.0/msgraph/generated/models/chat_message_actions.py | 184 | 72 | 261,841 |
LOAD_CONST 0
LOAD_CONST ('Enum',)
IMPORT_NAME enum
IMPORT_FROM Enum
STORE_NAME Enum
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object ExternalActivityType at 0x7fab4298e930, file "f.py", line 4>
LOAD_CONST 'ExternalActivityType'
MAKE_FUNCTION
LOAD_CONST 'ExternalActivityType'
LOAD_NAME str
LOAD_NAME Enum
CALL_FUNCTION
... | from enum import Enum
class ExternalActivityType(str, Enum):
Viewed = ("viewed",)
Modified = ("modified",)
Created = ("created",)
Commented = ("commented",)
UnknownFutureValue = ("unknownFutureValue",)
| data/msgraph-sdk-1.1.0/msgraph/generated/models/external_connectors/external_activity_type.py | 187 | 72 | 262,324 |
LOAD_CONST <code object iterate_promise at 0x7fab41ed05d0, file "f.py", line 6>
LOAD_CONST 'iterate_promise'
MAKE_FUNCTION
STORE_NAME iterate_promise
LOAD_CONST None
RETURN_VALUE
LOAD_FAST promise
LOAD_ATTR is_fulfilled
POP_JUMP_IF_TRUE
LOAD_FAST promise
LOAD_ATTR future
GET_YIELD_FROM_ITER
LOAD_CONST None
YIELD_FROM... | if False:
from .promise import Promise
from typing import Iterator
def iterate_promise(promise):
if not promise.is_fulfilled:
yield from promise.future # type: ignore
assert promise.is_fulfilled
return promise.get()
| data/promise-2.3/promise/iterate_promise.py | 116 | 72 | 80,355 |
LOAD_CONST 'Ranking datasets.'
STORE_NAME __doc__
LOAD_CONST 0
LOAD_CONST ('Istella',)
IMPORT_NAME tensorflow_datasets.ranking.istella
IMPORT_FROM Istella
STORE_NAME Istella
POP_TOP
LOAD_CONST 0
LOAD_CONST ('MslrWeb',)
IMPORT_NAME tensorflow_datasets.ranking.mslr_web
IMPORT_FROM MslrWeb
STORE_NAME MslrWeb
POP_TOP
LO... | """Ranking datasets."""
from tensorflow_datasets.ranking.istella import Istella
from tensorflow_datasets.ranking.mslr_web import MslrWeb
from tensorflow_datasets.ranking.yahoo_ltrc import YahooLTRC
| data/tensorflow-datasets-4.9.4/tensorflow_datasets/ranking/__init__.py | 152 | 72 | 256,291 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME os.path
STORE_NAME os
LOAD_NAME os
LOAD_ATTR path
LOAD_METHOD join
LOAD_NAME os
LOAD_ATTR path
LOAD_METHOD dirname
LOAD_NAME os
LOAD_ATTR path
LOAD_METHOD dirname
LOAD_NAME __file__
CALL_METHOD
CALL_METHOD
LOAD_CONST 'pdb.py'
CALL_METHOD
STORE_NAME pdb_path
LOAD_NAME open
LOAD... | import os.path
pdb_path = os.path.join(os.path.dirname(os.path.dirname(__file__)), "pdb.py")
with open(pdb_path) as f:
exec(compile(f.read(), pdb_path, "exec"))
| data/pdbpp-0.10.3/_pdbpp_path_hack/pdb.py | 139 | 72 | 81,597 |
LOAD_CONST 'Deprecated package support.'
STORE_NAME __doc__
LOAD_CONST 0
LOAD_CONST ('warn_deprecated_package',)
IMPORT_NAME xblockutils.deprecation.warn
IMPORT_FROM warn_deprecated_package
STORE_NAME warn_deprecated_package
POP_TOP
LOAD_NAME warn_deprecated_package
LOAD_CONST 'xblockutils.studio_editable'
LOAD_CONST... | """Deprecated package support."""
from xblockutils.deprecation.warn import warn_deprecated_package
warn_deprecated_package("xblockutils.studio_editable", "xblock.utils.studio_editable")
from xblock.utils.studio_editable import *
| data/xblock-utils-4.0.0/xblockutils/studio_editable.py | 124 | 72 | 329,290 |
LOAD_CONST '\nto run this test suite, first build and install `pox`.\n\n $ python -m pip install ../..\n\n\nthen run the tests with:\n\n $ python -m pox.tests\n\n\nor, if `nose` is installed:\n\n $ nosetests \n\n'
STORE_NAME __doc__
LOAD_CONST None
RETURN_VALUE | """
to run this test suite, first build and install `pox`.
$ python -m pip install ../..
then run the tests with:
$ python -m pox.tests
or, if `nose` is installed:
$ nosetests
"""
| data/pox-0.3.4/pox/tests/__init__.py | 91 | 72 | 41,982 |
LOAD_CONST 0
LOAD_CONST ('Symbol', 'Integer')
IMPORT_NAME sympy.core
IMPORT_FROM Symbol
STORE_NAME Symbol
IMPORT_FROM Integer
STORE_NAME Integer
POP_TOP
LOAD_NAME Symbol
LOAD_CONST 'x'
CALL_FUNCTION
STORE_NAME x
LOAD_NAME Integer
LOAD_CONST 3
CALL_FUNCTION
STORE_NAME i3
LOAD_CONST <code object timeit_x_is_integer at... | from sympy.core import Symbol, Integer
x = Symbol("x")
i3 = Integer(3)
def timeit_x_is_integer():
x.is_integer
def timeit_Integer_is_irrational():
i3.is_irrational
| data/sympy-1.12/sympy/core/benchmarks/bench_assumptions.py | 235 | 72 | 228,949 |
LOAD_CONST 0
LOAD_CONST ('Enum',)
IMPORT_NAME enum
IMPORT_FROM Enum
STORE_NAME Enum
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object ThreatCategory at 0x7fab70027420, file "f.py", line 4>
LOAD_CONST 'ThreatCategory'
MAKE_FUNCTION
LOAD_CONST 'ThreatCategory'
LOAD_NAME str
LOAD_NAME Enum
CALL_FUNCTION
STORE_NAME ThreatC... | from enum import Enum
class ThreatCategory(str, Enum):
Undefined = ("undefined",)
Spam = ("spam",)
Phishing = ("phishing",)
Malware = ("malware",)
UnknownFutureValue = ("unknownFutureValue",)
| data/msgraph-sdk-1.1.0/msgraph/generated/models/threat_category.py | 186 | 72 | 261,241 |
LOAD_CONST 0
LOAD_CONST ('FastAPI',)
IMPORT_NAME fastapi
IMPORT_FROM FastAPI
STORE_NAME FastAPI
POP_TOP
LOAD_NAME FastAPI
CALL_FUNCTION
STORE_NAME app
LOAD_NAME app
LOAD_METHOD get
LOAD_CONST '/users'
CALL_METHOD
LOAD_CONST <code object read_users at 0x7fab5434ba50, file "f.py", line 6>
LOAD_CONST 'read_users'
MAKE_F... | from fastapi import FastAPI
app = FastAPI()
@app.get("/users")
async def read_users():
return ["Rick", "Morty"]
@app.get("/users")
async def read_users2():
return ["Bean", "Elfo"]
| data/fastapi-0.109.2/docs_src/path_params/tutorial003b.py | 203 | 72 | 142,302 |
LOAD_CONST 0
LOAD_CONST ('FiniteSet',)
IMPORT_NAME cvxpy.constraints.finite_set
IMPORT_FROM FiniteSet
STORE_NAME FiniteSet
POP_TOP
LOAD_CONST <code object finite_set_canon at 0x7faac0322390, file "f.py", line 4>
LOAD_CONST 'finite_set_canon'
MAKE_FUNCTION
STORE_NAME finite_set_canon
LOAD_CONST None
RETURN_VALUE
LOAD_... | from cvxpy.constraints.finite_set import FiniteSet
def finite_set_canon(expr, args):
ineq_form, id = expr.get_data()
return FiniteSet(args[0], args[1], ineq_form, id), []
| data/cvxpy-1.4.2/cvxpy/reductions/dgp2dcp/canonicalizers/finite_set_canon.py | 163 | 72 | 273,590 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME torch.nn
IMPORT_FROM nn
STORE_NAME nn
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object LambdaLayer at 0x7fa90e3bdc00, file "f.py", line 4>
LOAD_CONST 'LambdaLayer'
MAKE_FUNCTION
LOAD_CONST 'LambdaLayer'
LOAD_NAME nn
LOAD_ATTR Module
CALL_FUNCTION
STORE_NAME LambdaLayer
LOAD_CON... | import torch.nn as nn
class LambdaLayer(nn.Module):
def __init__(self, function):
super().__init__()
self._func = function
def forward(self, x, *args):
return self._func(x, *args)
| data/gluonts-0.14.4/src/gluonts/torch/modules/lambda_layer.py | 285 | 72 | 140,299 |
LOAD_CONST 2
LOAD_CONST ('test_multi_types',)
IMPORT_NAME multi_load
IMPORT_FROM test_multi_types
STORE_NAME multi
POP_TOP
LOAD_CONST 2
LOAD_CONST ('test_multi_types',)
IMPORT_NAME single_load
IMPORT_FROM test_multi_types
STORE_NAME single
POP_TOP
LOAD_CONST 1
LOAD_CONST ('common',)
IMPORT_NAME
IMPORT_FROM common
STO... | from ..multi_load import test_multi_types as multi
from ..single_load import test_multi_types as single
from . import common
class SingleTestCase(common.SingleBase, single.TestCase):
pass
class MultiTestCase(common.MultiBase, multi.TestCase):
pass
| data/anyconfig-0.14.0/tests/api/load/test_multi_types.py | 286 | 72 | 390,887 |
LOAD_CONST '\ntitle: "Quick test"\noutput:\n ioslides_presentation:\n widescreen: true\n smaller: true\neditor_options:\n chunk_output_type console\n'
STORE_NAME c
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME yaml
STORE_NAME yaml
LOAD_NAME print
LOAD_NAME yaml
LOAD_METHOD dump
LOAD_NAME yaml
LOAD_METHOD load
LOAD_NAME c
... | c = """
title: "Quick test"
output:
ioslides_presentation:
widescreen: true
smaller: true
editor_options:
chunk_output_type console
"""
import yaml
print(yaml.dump(yaml.load(c)))
| data/jupytext-1.16.1/tests/data/notebooks/outputs/ipynb_to_percent/jupyter_again.py | 102 | 72 | 312,558 |
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
from .util import test
from .util import find_nearest_neighbor
from .util import reduce_model
from .util import download_model
| data/fasttext-0.9.2/python/fasttext_module/fasttext/util/__init__.py | 244 | 72 | 81,593 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME unittest
STORE_NAME unittest
LOAD_CONST 1
LOAD_CONST ('system_information',)
IMPORT_NAME
IMPORT_FROM system_information
STORE_NAME system_information
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object TestGenerateSystemInformation at 0x7fab823a8db0, file "f.py", line 6>
LOAD_CON... | import unittest
from . import system_information
class TestGenerateSystemInformation(unittest.TestCase):
def test_generate_system_information(self):
system_information.generate()
if __name__ == "__main__":
unittest.main()
| data/humbug-0.3.2/humbug/test_system_information.py | 272 | 72 | 98,374 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.