input
stringlengths
28
198k
output
stringlengths
3
71k
file
stringlengths
19
330
input_tokens
int64
5
159k
output_tokens
int64
3
9.07k
__index_level_0__
int64
2
449k
LOAD_CONST 0 LOAD_CONST ('Enum',) IMPORT_NAME enum IMPORT_FROM Enum STORE_NAME Enum POP_TOP LOAD_BUILD_CLASS LOAD_CONST <code object RatingNewZealandTelevisionType at 0x7fab70027660, file "f.py", line 4> LOAD_CONST 'RatingNewZealandTelevisionType' MAKE_FUNCTION LOAD_CONST 'RatingNewZealandTelevisionType' LOAD_NAME str...
from enum import Enum class RatingNewZealandTelevisionType(str, Enum): AllAllowed = ("allAllowed",) AllBlocked = ("allBlocked",) General = ("general",) ParentalGuidance = ("parentalGuidance",) Adults = ("adults",)
data/msgraph-sdk-1.1.0/msgraph/generated/models/rating_new_zealand_television_type.py
223
85
261,305
LOAD_CONST 0 LOAD_CONST ('TestCase', 'min_os_level') IMPORT_NAME PyObjCTools.TestSupport IMPORT_FROM TestCase STORE_NAME TestCase IMPORT_FROM min_os_level STORE_NAME min_os_level POP_TOP LOAD_CONST 0 LOAD_CONST None IMPORT_NAME GameCenter STORE_NAME GameCenter LOAD_BUILD_CLASS LOAD_CONST <code object TestGKEventListe...
from PyObjCTools.TestSupport import TestCase, min_os_level import GameCenter # noqa: F401 class TestGKEventListener(TestCase): @min_os_level("10.10") def testProtocols(self): self.assertProtocolExists("GKChallengeListener")
data/pyobjc-framework-GameCenter-10.1/PyObjCTest/test_gkeventlistener.py
273
85
304,950
LOAD_CONST 1 LOAD_CONST ('BasePicklerIO',) IMPORT_NAME base IMPORT_FROM BasePicklerIO STORE_NAME BasePicklerIO POP_TOP LOAD_CONST 1 LOAD_CONST ('CloudPicklerIO',) IMPORT_NAME cloudpickle IMPORT_FROM CloudPicklerIO STORE_NAME CloudPicklerIO POP_TOP LOAD_CONST 1 LOAD_CONST ('DillPicklerIO',) IMPORT_NAME dill IMPORT_FRO...
from .base import BasePicklerIO from .cloudpickle import CloudPicklerIO from .dill import DillPicklerIO from .marshal import MarshalPicklerIO from .optimized_pickle import OptimizedPicklerIO from .pickle import BuiltinPicklerIO from .registry import *
data/compress_pickle-2.1.0/compress_pickle/picklers/__init__.py
250
85
310,890
LOAD_CONST '\nedx_event_bus_redis Django application initialization.\n' STORE_NAME __doc__ 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 EdxEventBusRedisConfig at 0x7fa90fb09930, file "f.py", line 8> LOAD_CONS...
""" edx_event_bus_redis Django application initialization. """ from django.apps import AppConfig class EdxEventBusRedisConfig(AppConfig): """ Configuration for the edx_event_bus_redis Django application. """ name = "edx_event_bus_redis"
data/edx_event_bus_redis-0.3.3/edx_event_bus_redis/apps.py
214
85
127,458
LOAD_NAME bytes LOAD_METHOD maketrans LOAD_CONST b'abcdefghijklmnopqrstuvwxyz' NOP b'ABCDEFGHIJKLMNOPQRSTUVWXYZ' CALL_METHOD STORE_NAME _ascii_trans_table LOAD_CONST <code object ascii_upper at 0x7fab82334ae0, file "f.py", line 6> LOAD_CONST 'ascii_upper' MAKE_FUNCTION STORE_NAME ascii_upper LOAD_CONST None RETURN_VA...
_ascii_trans_table = bytes.maketrans( b"abcdefghijklmnopqrstuvwxyz", b"ABCDEFGHIJKLMNOPQRSTUVWXYZ" ) def ascii_upper(s): return s.translate(_ascii_trans_table)
data/PyQt5-5.15.10/pyuic/uic/port_v3/ascii_upper.py
142
85
391,781
LOAD_CONST './cascade-rcnn_r50_fpn_20e_coco.py' STORE_NAME _base_ LOAD_NAME dict LOAD_NAME dict LOAD_CONST 101 LOAD_NAME dict LOAD_CONST 'Pretrained' LOAD_CONST 'torchvision://resnet101' LOAD_CONST ('type', 'checkpoint') CALL_FUNCTION LOAD_CONST ('depth', 'init_cfg') CALL_FUNCTION LOAD_CONST ('backbone',) CALL_FUNC...
_base_ = "./cascade-rcnn_r50_fpn_20e_coco.py" model = dict( backbone=dict( depth=101, init_cfg=dict(type="Pretrained", checkpoint="torchvision://resnet101"), ) )
data/mmdet-3.3.0/mmdet/.mim/configs/cascade_rcnn/cascade-rcnn_r101_fpn_20e_coco.py
110
85
151,179
LOAD_CONST 0 LOAD_CONST ('path',) IMPORT_NAME django.urls IMPORT_FROM path STORE_NAME path POP_TOP LOAD_CONST 0 LOAD_CONST ('maintenance_mode_off', 'maintenance_mode_on') IMPORT_NAME maintenance_mode.views IMPORT_FROM maintenance_mode_off STORE_NAME maintenance_mode_off IMPORT_FROM maintenance_mode_on STORE_NAME maint...
from django.urls import path from maintenance_mode.views import maintenance_mode_off, maintenance_mode_on urlpatterns = [ path("off/", maintenance_mode_off, name="maintenance_mode_off"), path("on/", maintenance_mode_on, name="maintenance_mode_on"), ]
data/django-maintenance-mode-0.21.1/maintenance_mode/urls.py
167
85
80,941
LOAD_CONST '\nProxies for libgeos, GEOS-specific exceptions, and utilities\n' STORE_NAME __doc__ LOAD_CONST 0 LOAD_CONST None IMPORT_NAME shapely STORE_NAME shapely LOAD_NAME shapely LOAD_ATTR geos_capi_version_string STORE_NAME geos_version_string LOAD_NAME shapely LOAD_ATTR geos_version STORE_NAME geos_version LO...
""" Proxies for libgeos, GEOS-specific exceptions, and utilities """ import shapely geos_version_string = shapely.geos_capi_version_string geos_version = shapely.geos_version geos_capi_version = shapely.geos_capi_version
data/shapely-2.0.3/shapely/geos.py
119
85
94,849
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 _health IMPORT_STAR LOAD_CONST 1 LOAD_CONST ('*',) IMPORT_NAME _health_on_demand...
from .__cmd_group import * from ._create import * from ._delete import * from ._health import * from ._health_on_demand import * from ._list import * from ._show import * from ._start import * from ._stop import * from ._update import * from ._wait import *
data/azure-cli-2.57.0/azure/cli/command_modules/network/aaz/latest/network/application_gateway/__init__.py
198
85
378,349
LOAD_CONST 'A mock extension named `mockext_py` for testing purposes.\n' STORE_NAME __doc__ LOAD_CONST <code object _jupyter_server_extension_paths at 0x7f8ab77c30c0, file "f.py", line 5> LOAD_CONST '_jupyter_server_extension_paths' MAKE_FUNCTION STORE_NAME _jupyter_server_extension_paths LOAD_CONST <code object _loa...
"""A mock extension named `mockext_py` for testing purposes. """ def _jupyter_server_extension_paths(): return [{"module": "tests.extension.mockextensions.mockext_py"}] def _load_jupyter_server_extension(serverapp): pass
data/jupyter_server-2.12.5/tests/extension/mockextensions/mockext_py.py
213
85
433,273
LOAD_CONST '\nCopyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.\nSPDX-License-Identifier: MIT-0\n' STORE_NAME __doc__ LOAD_CONST 0 LOAD_CONST ('annotations',) IMPORT_NAME __future__ IMPORT_FROM annotations STORE_NAME annotations POP_TOP LOAD_CONST 0 LOAD_CONST ('Any', 'List', 'Tuple') IMPORT_NAM...
""" Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. SPDX-License-Identifier: MIT-0 """ from __future__ import annotations from typing import Any, List, Tuple from cfnlint.match import Match TransformResult = Tuple[List[Match], Any]
data/cfn-lint-0.85.2/src/cfnlint/template/transforms/_types.py
172
85
415,197
LOAD_CONST 'faster-rcnn_r50_fpn_ms-3x_coco.py' STORE_NAME _base_ LOAD_NAME dict LOAD_NAME dict LOAD_CONST 101 LOAD_NAME dict LOAD_CONST 'Pretrained' LOAD_CONST 'torchvision://resnet101' LOAD_CONST ('type', 'checkpoint') CALL_FUNCTION LOAD_CONST ('depth', 'init_cfg') CALL_FUNCTION LOAD_CONST ('backbone',) CALL_FUNCT...
_base_ = "faster-rcnn_r50_fpn_ms-3x_coco.py" model = dict( backbone=dict( depth=101, init_cfg=dict(type="Pretrained", checkpoint="torchvision://resnet101"), ) )
data/mmdet-3.3.0/mmdet/.mim/configs/faster_rcnn/faster-rcnn_r101_fpn_ms-3x_coco.py
110
85
151,087
LOAD_CONST 1 LOAD_CONST ('get_count',) IMPORT_NAME count IMPORT_FROM get_count STORE_NAME get_count POP_TOP LOAD_CONST 1 LOAD_CONST ('get_gauge',) IMPORT_NAME gauge IMPORT_FROM get_gauge STORE_NAME get_gauge POP_TOP LOAD_CONST 1 LOAD_CONST ('get_monotonic_count',) IMPORT_NAME monotonic_count IMPORT_FROM get_monotonic...
from .count import get_count from .gauge import get_gauge from .monotonic_count import get_monotonic_count from .rate import get_rate from .service_check import get_service_check from .temporal_percent import get_temporal_percent from .time_elapsed import get_time_elapsed
data/datadog_checks_base-36.1.0/datadog_checks/base/checks/windows/perf_counters/transformers/__init__.py
252
85
442,876
LOAD_CONST 0 LOAD_CONST None IMPORT_NAME warnings STORE_NAME warnings LOAD_CONST 0 LOAD_CONST ('*',) IMPORT_NAME pyro.infer.autoguide IMPORT_STAR LOAD_NAME warnings LOAD_METHOD warn LOAD_CONST 'pyro.contrib.autoguide has moved to pyro.infer.autoguide. The contrib alias will stop working in Pyro 0.5.' LOAD_NAME Depr...
import warnings from pyro.infer.autoguide import * # noqa F403 warnings.warn( "pyro.contrib.autoguide has moved to pyro.infer.autoguide. " "The contrib alias will stop working in Pyro 0.5.", DeprecationWarning, )
data/pyro-ppl-1.9.0/pyro/contrib/autoguide.py
99
85
109,902
LOAD_CONST 0 LOAD_CONST None IMPORT_NAME re STORE_NAME re LOAD_CONST <code object normalise_output at 0x7f8e2fa0f810, file "f.py", line 4> LOAD_CONST 'normalise_output' MAKE_FUNCTION STORE_NAME normalise_output LOAD_CONST None RETURN_VALUE LOAD_GLOBAL re LOAD_METHOD sub LOAD_CONST ':\\d{2,}' LOAD_CONST ':<line no>' L...
import re def normalise_output(s): s = re.sub(r":\d{2,}", ":<line no>", s) s = re.sub(r"(at 0x)\w+", r"\1<hash>", s) s = s.replace("\\", "/") return s
data/devtools-0.12.2/tests/utils.py
165
85
423,718
LOAD_CONST 0 LOAD_CONST None IMPORT_NAME sys STORE_NAME sys LOAD_CONST 0 LOAD_CONST ('load_class_extensions',) IMPORT_NAME interpret.ext.extension_utils IMPORT_FROM load_class_extensions STORE_NAME load_class_extensions POP_TOP LOAD_CONST 0 LOAD_CONST ('PERF_EXTENSION_KEY', '_is_valid_perf_explainer') IMPORT_NAME int...
import sys from interpret.ext.extension_utils import load_class_extensions from interpret.ext.extension import PERF_EXTENSION_KEY, _is_valid_perf_explainer load_class_extensions( sys.modules[__name__], PERF_EXTENSION_KEY, _is_valid_perf_explainer )
data/interpret-core-0.5.1/interpret/ext/perf/__init__.py
187
85
387,977
LOAD_CONST 0 LOAD_CONST ('*',) IMPORT_NAME azure.cli.core.aaz IMPORT_STAR LOAD_NAME register_command_group LOAD_CONST 'snapshot' CALL_FUNCTION LOAD_BUILD_CLASS LOAD_CONST <code object __CMDGroup at 0x7fab70055ed0, file "f.py", line 4> LOAD_CONST '__CMDGroup' MAKE_FUNCTION LOAD_CONST '__CMDGroup' LOAD_NAME AAZCommand...
from azure.cli.core.aaz import * @register_command_group( "snapshot", ) class __CMDGroup(AAZCommandGroup): """Manage point-in-time copies of managed disks, native blobs, or other snapshots.""" pass __all__ = ["__CMDGroup"]
data/azure-cli-2.57.0/azure/cli/command_modules/vm/aaz/latest/snapshot/__cmd_group.py
194
85
376,662
LOAD_CONST 0 LOAD_CONST ('*',) IMPORT_NAME azure.cli.core.aaz IMPORT_STAR LOAD_NAME register_command_group LOAD_CONST 'network nic ip-config inbound-nat-rule' CALL_FUNCTION LOAD_BUILD_CLASS LOAD_CONST <code object __CMDGroup at 0x7fab8204a390, file "f.py", line 4> LOAD_CONST '__CMDGroup' MAKE_FUNCTION LOAD_CONST '__C...
from azure.cli.core.aaz import * @register_command_group( "network nic ip-config inbound-nat-rule", ) class __CMDGroup(AAZCommandGroup): """Manage inbound NAT rules of an IP configuration.""" pass __all__ = ["__CMDGroup"]
data/azure-cli-2.57.0/azure/cli/command_modules/network/aaz/latest/network/nic/ip_config/inbound_nat_rule/__cmd_group.py
195
85
378,230
LOAD_CONST 0 LOAD_CONST ('*',) IMPORT_NAME azure.cli.core.aaz IMPORT_STAR LOAD_NAME register_command_group LOAD_CONST 'network security-partner-provider' LOAD_CONST True LOAD_CONST ('is_preview',) CALL_FUNCTION LOAD_BUILD_CLASS LOAD_CONST <code object __CMDGroup at 0x7fab822eaf60, file "f.py", line 4> LOAD_CONST '__...
from azure.cli.core.aaz import * @register_command_group( "network security-partner-provider", is_preview=True, ) class __CMDGroup(AAZCommandGroup): """Manage Azure security partner provider.""" pass __all__ = ["__CMDGroup"]
data/azure-cli-2.57.0/azure/cli/command_modules/network/aaz/latest/network/security_partner_provider/__cmd_group.py
198
85
377,915
LOAD_CONST 0 LOAD_CONST ('*',) IMPORT_NAME azure.cli.core.aaz IMPORT_STAR LOAD_NAME register_command_group LOAD_CONST 'network watcher connection-monitor output' LOAD_CONST True LOAD_CONST ('is_preview',) CALL_FUNCTION LOAD_BUILD_CLASS LOAD_CONST <code object __CMDGroup at 0x7fab82197930, file "f.py", line 4> LOAD_C...
from azure.cli.core.aaz import * @register_command_group( "network watcher connection-monitor output", is_preview=True, ) class __CMDGroup(AAZCommandGroup): """Manage output of connection monitor.""" pass __all__ = ["__CMDGroup"]
data/azure-cli-2.57.0/azure/cli/command_modules/network/aaz/latest/network/watcher/connection_monitor/output/__cmd_group.py
199
85
377,758
LOAD_CONST 0 LOAD_CONST ('DeprecationRule',) IMPORT_NAME saltlint.linter.rule IMPORT_FROM DeprecationRule STORE_NAME DeprecationRule POP_TOP LOAD_BUILD_CLASS LOAD_CONST <code object StateDeprecationDockerModWatch at 0x7faa761ee0c0, file "f.py", line 4> LOAD_CONST 'StateDeprecationDockerModWatch' MAKE_FUNCTION LOAD_CON...
from saltlint.linter.rule import DeprecationRule class StateDeprecationDockerModWatch(DeprecationRule): id = "909" state = "docker.mod_watch" deprecated_since = "2017.7.0" version_added = "v0.5.0"
data/salt-lint-0.9.2/saltlint/rules/StateDeprecationDockerModWatch.py
220
85
436,358
LOAD_CONST 0 LOAD_CONST None IMPORT_NAME argparse STORE_NAME argparse LOAD_CONST 0 LOAD_CONST ('contents', 'where') IMPORT_NAME pigar._vendor.pip._vendor.certifi IMPORT_FROM contents STORE_NAME contents IMPORT_FROM where STORE_NAME where POP_TOP LOAD_NAME argparse LOAD_METHOD ArgumentParser CALL_METHOD STORE_NAME par...
import argparse from pigar._vendor.pip._vendor.certifi import contents, where parser = argparse.ArgumentParser() parser.add_argument("-c", "--contents", action="store_true") args = parser.parse_args() if args.contents: print(contents()) else: print(where())
data/pigar-2.1.3/pigar/_vendor/pip/_vendor/certifi/__main__.py
167
85
241,136
LOAD_CONST 0 LOAD_CONST None IMPORT_NAME unittest STORE_NAME unittest LOAD_CONST 0 LOAD_CONST ('wtc',) IMPORT_NAME unittests IMPORT_FROM wtc STORE_NAME wtc POP_TOP LOAD_CONST 0 LOAD_CONST None IMPORT_NAME wx STORE_NAME wx LOAD_BUILD_CLASS LOAD_CONST <code object translation_Tests at 0x7fab42351f60, file "f.py", line...
import unittest from unittests import wtc import wx class translation_Tests(wtc.WidgetTestCase): def test_translation1(self): ldr = wx.FileTranslationsLoader() wx.GetTranslation("hello") if __name__ == "__main__": unittest.main()
data/wxPython-4.2.1/unittests/test_translation.py
287
85
302,191
LOAD_CONST 0 LOAD_CONST None IMPORT_NAME Pyro5.api STORE_NAME Pyro5 LOAD_CONST 0 LOAD_CONST None IMPORT_NAME Pyro5.socketutil STORE_NAME Pyro5 LOAD_CONST 0 LOAD_CONST None IMPORT_NAME bench STORE_NAME bench LOAD_NAME Pyro5 LOAD_ATTR api LOAD_ATTR serve LOAD_NAME bench LOAD_ATTR bench LOAD_CONST 'example.benchmark' ...
import Pyro5.api import Pyro5.socketutil import bench Pyro5.api.serve( {bench.bench: "example.benchmark"}, daemon=Pyro5.api.Daemon(host=Pyro5.socketutil.get_ip_address("", True)), use_ns=False, )
data/Pyro5-5.15/examples/benchmark/server.py
151
85
78,980
LOAD_CONST 0 LOAD_CONST ('shared_task',) IMPORT_NAME celery IMPORT_FROM shared_task STORE_NAME shared_task POP_TOP LOAD_CONST 0 LOAD_CONST ('import_string',) IMPORT_NAME django.utils.module_loading IMPORT_FROM import_string STORE_NAME import_string POP_TOP LOAD_CONST 1 LOAD_CONST ('app_settings',) IMPORT_NAME app_set...
from celery import shared_task from django.utils.module_loading import import_string from .app_settings import app_settings @shared_task def send(*args, **kwargs): backend = import_string(app_settings.BACKEND_FOR_QUEUE)() return backend.send(*args, **kwargs)
data/django-slack-5.19.0/django_slack/tasks.py
194
85
55,737
LOAD_CONST 0 LOAD_CONST ('DeprecationRule',) IMPORT_NAME saltlint.linter.rule IMPORT_FROM DeprecationRule STORE_NAME DeprecationRule POP_TOP LOAD_BUILD_CLASS LOAD_CONST <code object StateDeprecationDockerVolumePresent at 0x7faa761ee810, file "f.py", line 4> LOAD_CONST 'StateDeprecationDockerVolumePresent' MAKE_FUNCTIO...
from saltlint.linter.rule import DeprecationRule class StateDeprecationDockerVolumePresent(DeprecationRule): id = "915" state = "docker.volume_present" deprecated_since = "2017.7.0" version_added = "v0.5.0"
data/salt-lint-0.9.2/saltlint/rules/StateDeprecationDockerVolumePresent.py
220
85
436,354
LOAD_CONST 0 LOAD_CONST ('ModelAdmin', 'register') IMPORT_NAME django.contrib.admin IMPORT_FROM ModelAdmin STORE_NAME ModelAdmin IMPORT_FROM register STORE_NAME register POP_TOP LOAD_CONST 1 LOAD_CONST ('WebauthnDevice',) IMPORT_NAME models IMPORT_FROM WebauthnDevice STORE_NAME WebauthnDevice POP_TOP LOAD_NAME regist...
from django.contrib.admin import ModelAdmin, register from .models import WebauthnDevice @register(WebauthnDevice) class WebauthnDeviceAdmin(ModelAdmin): list_display = ["user", "name", "created_at", "last_used_at", "confirmed"] raw_id_fields = ["user"]
data/django-two-factor-auth-1.16.0/two_factor/plugins/webauthn/admin.py
243
85
61,622
LOAD_CONST 0 LOAD_CONST ('BaseOrderWithRespectToTests',) IMPORT_NAME order_with_respect_to.base_tests IMPORT_FROM BaseOrderWithRespectToTests STORE_NAME BaseOrderWithRespectToTests POP_TOP LOAD_CONST 0 LOAD_CONST ('TestCase',) IMPORT_NAME django.test IMPORT_FROM TestCase STORE_NAME TestCase POP_TOP LOAD_CONST 1 LOAD_...
from order_with_respect_to.base_tests import BaseOrderWithRespectToTests from django.test import TestCase from .models import Answer, Post, Question class OrderWithRespectToGFKTests(BaseOrderWithRespectToTests, TestCase): Answer = Answer Post = Post Question = Question
data/Django-5.0.2/tests/contenttypes_tests/test_order_with_respect_to.py
274
85
325,260
LOAD_CONST 0 LOAD_CONST None IMPORT_NAME unittest STORE_NAME unittest LOAD_CONST 0 LOAD_CONST ('wtc',) IMPORT_NAME unittests IMPORT_FROM wtc STORE_NAME wtc POP_TOP LOAD_CONST 0 LOAD_CONST None IMPORT_NAME wx STORE_NAME wx LOAD_BUILD_CLASS LOAD_CONST <code object access_Tests at 0x7fab42351c90, file "f.py", line 6> L...
import unittest from unittests import wtc import wx class access_Tests(wtc.WidgetTestCase): @unittest.expectedFailure def test_access1(self): self.fail("Unit tests for access not implemented yet.") if __name__ == "__main__": unittest.main()
data/wxPython-4.2.1/unittests/test_access.py
286
85
302,143
LOAD_CONST 1 LOAD_CONST ('Middleware', 'compose_middleware') IMPORT_NAME base IMPORT_FROM Middleware STORE_NAME Middleware IMPORT_FROM compose_middleware STORE_NAME compose_middleware POP_TOP LOAD_CONST 1 LOAD_CONST ('UserAgentMiddleware',) IMPORT_NAME ua IMPORT_FROM UserAgentMiddleware STORE_NAME UserAgentMiddleware ...
from .base import Middleware, compose_middleware from .ua import UserAgentMiddleware from .retry_domains import RetryDomainsMiddleware __all__ = [ "Middleware", "compose_middleware", "UserAgentMiddleware", "RetryDomainsMiddleware", ]
data/qiniu-7.13.0/qiniu/http/middleware/__init__.py
176
85
168,911
LOAD_CONST ('EventDispatcher', 'ObjectWithUid', 'Observable') STORE_NAME __all__ LOAD_CONST 0 LOAD_CONST None IMPORT_NAME kivy._event STORE_NAME kivy LOAD_NAME kivy LOAD_ATTR _event LOAD_ATTR __doc__ STORE_NAME __doc__ LOAD_NAME kivy LOAD_ATTR _event LOAD_ATTR EventDispatcher STORE_NAME EventDispatcher LOAD_NAME ki...
__all__ = ("EventDispatcher", "ObjectWithUid", "Observable") import kivy._event __doc__ = kivy._event.__doc__ EventDispatcher = kivy._event.EventDispatcher ObjectWithUid = kivy._event.ObjectWithUid Observable = kivy._event.Observable
data/Kivy-2.3.0/kivy/event.py
127
85
47,409
LOAD_CONST 0 LOAD_CONST None IMPORT_NAME pylibmc STORE_NAME pylibmc LOAD_CONST 1 LOAD_CONST ('TracedClient',) IMPORT_NAME client IMPORT_FROM TracedClient STORE_NAME TracedClient POP_TOP LOAD_NAME pylibmc LOAD_ATTR Client STORE_NAME _Client LOAD_CONST <code object get_version at 0x7fab81f7a6f0, file "f.py", line 9> L...
import pylibmc from .client import TracedClient _Client = pylibmc.Client def get_version(): return getattr(pylibmc, "__version__", "") def patch(): pylibmc.Client = TracedClient def unpatch(): pylibmc.Client = _Client
data/ddtrace-2.6.3/ddtrace/contrib/pylibmc/patch.py
262
85
270,378
LOAD_CONST 0 LOAD_CONST ('ToggleButton',) IMPORT_NAME pandas_profiling.report.presentation.core IMPORT_FROM ToggleButton STORE_NAME ToggleButton POP_TOP LOAD_CONST 0 LOAD_CONST ('templates',) IMPORT_NAME pandas_profiling.report.presentation.flavours.html IMPORT_FROM templates STORE_NAME templates POP_TOP LOAD_BUILD_C...
from pandas_profiling.report.presentation.core import ToggleButton from pandas_profiling.report.presentation.flavours.html import templates class HTMLToggleButton(ToggleButton): def render(self) -> str: return templates.template("toggle_button.html").render(**self.content)
data/pandas-profiling-3.6.6/src/pandas_profiling/report/presentation/flavours/html/toggle_button.py
274
85
305,469
LOAD_CONST 1 LOAD_CONST ('fill_vm_test',) IMPORT_NAME vm IMPORT_FROM fill_vm_test STORE_NAME fill_vm_test POP_TOP LOAD_CONST 1 LOAD_CONST ('fill_state_test',) IMPORT_NAME state IMPORT_FROM fill_state_test STORE_NAME fill_state_test POP_TOP LOAD_CONST 1 LOAD_CONST ('execution', 'expect', 'pre_state', 'setup_filler', '...
from .vm import ( fill_vm_test, ) from .state import ( fill_state_test, ) from .common import ( execution, expect, pre_state, setup_filler, setup_main_filler, ) from .main import ( fill_test, )
data/py-evm-0.9.0b1/eth/tools/fixtures/fillers/__init__.py
187
85
107,094
LOAD_CONST 'For backward compatibility with evidently <= 4.9' STORE_NAME __doc__ LOAD_CONST 0 LOAD_CONST None IMPORT_NAME warnings STORE_NAME warnings LOAD_CONST 0 LOAD_CONST ('RemoteWorkspace',) IMPORT_NAME evidently.ui.workspace IMPORT_FROM RemoteWorkspace STORE_NAME RemoteWorkspace POP_TOP LOAD_CONST 'RemoteWorks...
"""For backward compatibility with evidently <= 4.9""" import warnings from evidently.ui.workspace import RemoteWorkspace __all__ = ["RemoteWorkspace"] warnings.warn( "Importing RemoteWorkspace from evidently.ui.remote is deprecated. Please import from evidently.ui.workspace", DeprecationWarning, )
data/evidently-0.4.15/src/evidently/ui/remote.py
132
85
233,948
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 <code object ...
from __future__ import absolute_import, division, print_function __metaclass__ = type def testfilter2(data): return "{0}_via_testfilter2_from_userdir".format(data) class FilterModule(object): def filters(self): return {"testfilter2": testfilter2}
data/ansible-core-2.16.3/test/integration/targets/collections/collection_root_user/ansible_collections/testns/testcoll/plugins/filter/myfilters2.py
296
85
437,299
LOAD_CONST 0 LOAD_CONST ('not_in_sys_path',) IMPORT_NAME not_in_sys_path IMPORT_FROM not_in_sys_path STORE_NAME not_in_sys_path POP_TOP LOAD_CONST 0 LOAD_CONST ('not_in_sys_path_package',) IMPORT_NAME not_in_sys_path IMPORT_FROM not_in_sys_path_package STORE_NAME not_in_sys_path_package POP_TOP LOAD_CONST 0 LOAD_CONS...
from not_in_sys_path import not_in_sys_path from not_in_sys_path import not_in_sys_path_package from not_in_sys_path.not_in_sys_path_package import module not_in_sys_path.value not_in_sys_path_package.value module.value
data/jedi-0.19.1/test/examples/not_in_sys_path/pkg/module.py
181
85
421,021
LOAD_CONST 0 LOAD_CONST None IMPORT_NAME ctypes STORE_NAME ctypes LOAD_CONST 0 LOAD_CONST None IMPORT_NAME pytest STORE_NAME pytest LOAD_CONST 0 LOAD_CONST ('lib',) IMPORT_NAME awkward_cpp.cpu_kernels IMPORT_FROM lib STORE_NAME lib POP_TOP LOAD_NAME pytest LOAD_ATTR mark LOAD_ATTR skip LOAD_CONST 'Unable to generate...
import ctypes import pytest from awkward_cpp.cpu_kernels import lib @pytest.mark.skip(reason="Unable to generate any tests for kernel") def test_cpuawkward_Index_nones_as_index_64_1(): raise NotImplementedError("Unable to generate any tests for kernel")
data/awkward-cpp-29/tests-cpu-kernels/test_cpuawkward_Index_nones_as_index_64.py
222
85
221,364
LOAD_CONST 0 LOAD_CONST ('namedtuple',) IMPORT_NAME collections IMPORT_FROM namedtuple STORE_NAME namedtuple POP_TOP LOAD_CONST 0 LOAD_CONST None IMPORT_NAME cv2 STORE_NAME cv2 LOAD_NAME namedtuple LOAD_CONST 'NativeMethodPatchedResult' LOAD_CONST ('py', 'native') CALL_FUNCTION STORE_NAME NativeMethodPatchedResult L...
from collections import namedtuple import cv2 NativeMethodPatchedResult = namedtuple("NativeMethodPatchedResult", ("py", "native")) def testOverwriteNativeMethod(arg): return NativeMethodPatchedResult( arg + 1, cv2.utils._native.testOverwriteNativeMethod(arg) )
data/opencv-contrib-python-headless-4.9.0.80/opencv/modules/core/misc/python/package/utils/__init__.py
183
85
366,989
LOAD_CONST 0 LOAD_CONST ('Optional', 'Tuple') IMPORT_NAME typing IMPORT_FROM Optional STORE_NAME Optional IMPORT_FROM Tuple STORE_NAME Tuple POP_TOP LOAD_NAME Optional LOAD_NAME str BINARY_SUBSCR LOAD_NAME Tuple LOAD_NAME str LOAD_NAME str BUILD_TUPLE BINARY_SUBSCR LOAD_CONST ('authorization_header_value', 'return') ...
from typing import Optional, Tuple def get_authorization_scheme_param( authorization_header_value: Optional[str], ) -> Tuple[str, str]: if not authorization_header_value: return "", "" scheme, _, param = authorization_header_value.partition(" ") return scheme, param
data/fastapi-0.109.2/fastapi/security/utils.py
198
85
142,161
LOAD_CONST 0 LOAD_CONST ('*',) IMPORT_NAME azure.cli.core.aaz IMPORT_STAR LOAD_NAME register_command_group LOAD_CONST 'network lb inbound-nat-pool' CALL_FUNCTION LOAD_BUILD_CLASS LOAD_CONST <code object __CMDGroup at 0x7fab41e98300, file "f.py", line 4> LOAD_CONST '__CMDGroup' MAKE_FUNCTION LOAD_CONST '__CMDGroup' L...
from azure.cli.core.aaz import * @register_command_group( "network lb inbound-nat-pool", ) class __CMDGroup(AAZCommandGroup): """Manage inbound NAT address pools of a load balancer.""" pass __all__ = ["__CMDGroup"]
data/azure-cli-2.57.0/azure/cli/command_modules/network/aaz/profile_2018_03_01_hybrid/network/lb/inbound_nat_pool/__cmd_group.py
195
85
378,958
LOAD_CONST 0 LOAD_CONST ('*',) IMPORT_NAME django.conf.urls.defaults IMPORT_STAR LOAD_NAME patterns LOAD_CONST '' LOAD_CONST ('^$', 'djopenid.views.index') LOAD_CONST '^consumer/' LOAD_NAME include LOAD_CONST 'djopenid.consumer.urls' CALL_FUNCTION BUILD_TUPLE LOAD_CONST '^server/' LOAD_NAME include LOAD_CONST 'djo...
from django.conf.urls.defaults import * urlpatterns = patterns( "", ("^$", "djopenid.views.index"), ("^consumer/", include("djopenid.consumer.urls")), ("^server/", include("djopenid.server.urls")), )
data/python3-openid-3.2.0/examples/djopenid/urls.py
118
85
246,181
LOAD_CONST 0 LOAD_CONST None IMPORT_NAME anyconfig.api._load IMPORT_FROM api ROT_TWO POP_TOP IMPORT_FROM _load STORE_NAME TT POP_TOP LOAD_BUILD_CLASS LOAD_CONST <code object Basa at 0x7fab40da18a0, file "f.py", line 4> LOAD_CONST 'Basa' MAKE_FUNCTION LOAD_CONST 'Basa' CALL_FUNCTION STORE_NAME Basa LOAD_BUILD_CLASS LO...
import anyconfig.api._load as TT class Basa: @staticmethod def target_fn(*args, **kwargs): return TT.load(*args, **kwargs) class MultiBase: target: str = "load/multi" class SingleBase: target: str = "load/single"
data/anyconfig-0.14.0/tests/api/load/common.py
423
85
390,886
LOAD_CONST 0 LOAD_CONST ('unicode_literals',) IMPORT_NAME __future__ IMPORT_FROM unicode_literals STORE_NAME unicode_literals POP_TOP LOAD_CONST 0 LOAD_CONST ('*',) IMPORT_NAME js2py.internals.conversions IMPORT_STAR LOAD_CONST 0 LOAD_CONST ('*',) IMPORT_NAME js2py.internals.func_utils IMPORT_STAR LOAD_BUILD_CLASS L...
from __future__ import unicode_literals from js2py.internals.conversions import * from js2py.internals.func_utils import * class ConsoleMethods: def log(this, args): x = " ".join(to_string(e) for e in args) print(x) return undefined
data/Js2Py-0.74/js2py/internals/constructors/jsconsole.py
346
85
235,625
LOAD_CONST 0 LOAD_CONST ('annotations',) IMPORT_NAME __future__ IMPORT_FROM annotations STORE_NAME annotations POP_TOP LOAD_CONST 0 LOAD_CONST ('TypedDict',) IMPORT_NAME typing_extensions IMPORT_FROM TypedDict STORE_NAME TypedDict POP_TOP LOAD_CONST 'JobListEventsParams' BUILD_LIST STORE_NAME __all__ LOAD_BUILD_CLAS...
from __future__ import annotations from typing_extensions import TypedDict __all__ = ["JobListEventsParams"] class JobListEventsParams(TypedDict, total=False): after: str """Identifier for the last event from the previous pagination request.""" limit: int """Number of events to retrieve."""
data/openai-1.12.0/src/openai/types/fine_tuning/job_list_events_params.py
230
85
63,727
LOAD_CONST 0 LOAD_CONST ('*',) IMPORT_NAME azure.cli.core.aaz IMPORT_STAR LOAD_NAME register_command_group LOAD_CONST 'network nic ip-config inbound-nat-rule' CALL_FUNCTION LOAD_BUILD_CLASS LOAD_CONST <code object __CMDGroup at 0x7fab8204a390, file "f.py", line 4> LOAD_CONST '__CMDGroup' MAKE_FUNCTION LOAD_CONST '__C...
from azure.cli.core.aaz import * @register_command_group( "network nic ip-config inbound-nat-rule", ) class __CMDGroup(AAZCommandGroup): """Manage inbound NAT rules of an IP configuration.""" pass __all__ = ["__CMDGroup"]
data/azure-cli-2.57.0/azure/cli/command_modules/network/aaz/profile_2018_03_01_hybrid/network/nic/ip_config/inbound_nat_rule/__cmd_group.py
195
85
378,993
LOAD_CONST 'yes' LOAD_CONST 'true' LOAD_CONST 'on' LOAD_CONST '1' LOAD_CONST 'y' BUILD_LIST STORE_NAME TRUE_VALUES LOAD_CONST 'no' LOAD_CONST 'false' LOAD_CONST 'off' LOAD_CONST '0' LOAD_CONST 'n' BUILD_LIST STORE_NAME FALSE_VALUES LOAD_NAME TRUE_VALUES LOAD_NAME FALSE_VALUES BINARY_ADD STORE_NAME BOOL_VALUES LOAD_C...
TRUE_VALUES = ["yes", "true", "on", "1", "y"] FALSE_VALUES = ["no", "false", "off", "0", "n"] BOOL_VALUES = TRUE_VALUES + FALSE_VALUES REGEXES = { "email": r".+?\@.+?", }
data/strictyaml-1.7.3/strictyaml/constants.py
118
85
8,764
LOAD_CONST 0 LOAD_CONST None IMPORT_NAME pytest STORE_NAME pytest LOAD_CONST 0 LOAD_CONST ('Nav',) IMPORT_NAME mkdocs_gen_files IMPORT_FROM Nav STORE_NAME Nav POP_TOP LOAD_NAME pytest LOAD_ATTR mark LOAD_METHOD golden_test LOAD_CONST 'nav/*.yml' CALL_METHOD LOAD_CONST <code object test_nav at 0x7fadb5811c00, file "f....
import pytest from mkdocs_gen_files import Nav @pytest.mark.golden_test("nav/*.yml") def test_nav(golden): nav = Nav() exec(golden["code"], locals()) assert "".join(nav.build_literate_nav()) == golden.out["output"]
data/mkdocs_gen_files-0.5.0/tests/test_nav.py
205
85
161,690
LOAD_CONST 0 LOAD_CONST ('Dict',) IMPORT_NAME typing IMPORT_FROM Dict STORE_NAME Dict POP_TOP LOAD_CONST 0 LOAD_CONST ('Paginator',) IMPORT_NAME botocore.paginate IMPORT_FROM Paginator STORE_NAME Paginator POP_TOP LOAD_BUILD_CLASS LOAD_CONST <code object ListFragments at 0x7fab821a18a0, file "f.py", line 5> LOAD_CONS...
from typing import Dict from botocore.paginate import Paginator class ListFragments(Paginator): def paginate( self, StreamName: str, FragmentSelector: Dict = None, PaginationConfig: Dict = None, ) -> Dict: pass
data/boto3_type_annotations-0.3.1/boto3_type_annotations/kinesis_video_archived_media/paginator.py
266
85
103,533
LOAD_CONST 0 LOAD_CONST ('create_fasterrcnn_backbone',) IMPORT_NAME pl_bolts.models.detection.faster_rcnn.backbones IMPORT_FROM create_fasterrcnn_backbone STORE_NAME create_fasterrcnn_backbone POP_TOP LOAD_CONST 0 LOAD_CONST ('FasterRCNN',) IMPORT_NAME pl_bolts.models.detection.faster_rcnn.faster_rcnn_module IMPORT_FR...
from pl_bolts.models.detection.faster_rcnn.backbones import create_fasterrcnn_backbone from pl_bolts.models.detection.faster_rcnn.faster_rcnn_module import FasterRCNN __all__ = ["create_fasterrcnn_backbone", "FasterRCNN"]
data/lightning-bolts-0.7.0/src/pl_bolts/models/detection/faster_rcnn/__init__.py
150
85
294,123
LOAD_CONST 'A mock extension named `mockext_user` for testing purposes.\n' STORE_NAME __doc__ LOAD_CONST <code object _jupyter_server_extension_paths at 0x7f8aefbbba50, file "f.py", line 5> LOAD_CONST '_jupyter_server_extension_paths' MAKE_FUNCTION STORE_NAME _jupyter_server_extension_paths LOAD_CONST <code object _l...
"""A mock extension named `mockext_user` for testing purposes. """ def _jupyter_server_extension_paths(): return [{"module": "tests.extension.mockextensions.mockext_user"}] def _load_jupyter_server_extension(serverapp): pass
data/jupyter_server-2.12.5/tests/extension/mockextensions/mockext_user.py
211
85
433,271
LOAD_CONST 'Error classes for PostgreSQL error codes\n' STORE_NAME __doc__ LOAD_CONST <code object lookup at 0x7f8e2fec29c0, file "f.py", line 5> LOAD_CONST 'lookup' MAKE_FUNCTION STORE_NAME lookup LOAD_CONST None RETURN_VALUE LOAD_CONST 0 LOAD_CONST ('sqlstate_errors',) IMPORT_NAME psycopg2._psycopg IMPORT_FROM sqls...
"""Error classes for PostgreSQL error codes """ def lookup(code): """Lookup an error code and return its exception class. Raise `!KeyError` if the code is not found. """ from psycopg2._psycopg import sqlstate_errors # avoid circular import return sqlstate_errors[code]
data/psycopg2-2.9.9/lib/errors.py
118
85
430,178
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_reduce_next_nonlocal_nextshifts_fromshifts_64_1(): raise NotImplementedError("Unable to generate any tests for kernel")
data/awkward-cpp-29/tests-spec/test_pyawkward_IndexedArrayU32_reduce_next_nonlocal_nextshifts_fromshifts_64.py
234
85
220,755
LOAD_CONST 0 LOAD_CONST None IMPORT_NAME Metal STORE_NAME Metal LOAD_CONST 0 LOAD_CONST ('TestCase',) IMPORT_NAME PyObjCTools.TestSupport IMPORT_FROM TestCase STORE_NAME TestCase POP_TOP LOAD_BUILD_CLASS LOAD_CONST <code object TestMTLBlitPass at 0x7fab81f2f420, file "f.py", line 5> LOAD_CONST 'TestMTLBlitPass' MAKE_...
import Metal from PyObjCTools.TestSupport import TestCase class TestMTLBlitPass(TestCase): def test_constants(self): self.assertEqual(Metal.MTLCounterDontSample, 0xFFFFFFFFFFFFFFFF) self.assertEqual(Metal.MTLMaxBlitPassSampleBuffers, 4)
data/pyobjc-framework-Metal-10.1/PyObjCTest/test_mtlblitpass.py
296
85
343,074
LOAD_CONST 0 LOAD_CONST ('ForeignKey',) IMPORT_NAME django.db.models.fields.related IMPORT_FROM ForeignKey STORE_NAME ForeignKey POP_TOP LOAD_BUILD_CLASS LOAD_CONST <code object SortableForeignKey at 0x7fab800ceed0, file "f.py", line 4> LOAD_CONST 'SortableForeignKey' MAKE_FUNCTION LOAD_CONST 'SortableForeignKey' LOAD...
from django.db.models.fields.related import ForeignKey class SortableForeignKey(ForeignKey): """ Field simply acts as a flag to determine the class to sort by. This field replaces previous functionality where `sortable_by` was defined as a model property that specified another model class. """ ...
data/django-admin-sortable-2.3/adminsortable/fields.py
194
85
321,453
LOAD_CONST 2 LOAD_CONST ('BaseProvider', 'ElementsType') IMPORT_NAME IMPORT_FROM BaseProvider STORE_NAME BaseProvider IMPORT_FROM ElementsType STORE_NAME ElementsType POP_TOP LOAD_CONST True STORE_NAME localized LOAD_BUILD_CLASS LOAD_CONST <code object Provider at 0x7fab416efa50, file "f.py", line 6> LOAD_CONST 'Prov...
from .. import BaseProvider, ElementsType localized = True class Provider(BaseProvider): ssn_formats: ElementsType[str] = ("###-##-####",) def ssn(self) -> str: return self.bothify(self.random_element(self.ssn_formats))
data/Faker-23.2.1/faker/providers/ssn/__init__.py
270
85
16,887
SETUP_ANNOTATIONS LOAD_CONST 'Constants for the Android IP Webcam integration.' STORE_NAME __doc__ LOAD_CONST 0 LOAD_CONST ('timedelta',) IMPORT_NAME datetime IMPORT_FROM timedelta STORE_NAME timedelta POP_TOP LOAD_CONST 0 LOAD_CONST ('Final',) IMPORT_NAME typing IMPORT_FROM Final STORE_NAME Final POP_TOP LOAD_CONST...
"""Constants for the Android IP Webcam integration.""" from datetime import timedelta from typing import Final DOMAIN: Final = "android_ip_webcam" DEFAULT_PORT: Final = 8080 MOTION_ACTIVE: Final = "motion_active" SCAN_INTERVAL: Final = timedelta(seconds=10)
data/homeassistant-2024.2.2/homeassistant/components/android_ip_webcam/const.py
221
85
296,504
LOAD_CONST 0 LOAD_CONST None IMPORT_NAME Metal STORE_NAME Metal LOAD_CONST 0 LOAD_CONST ('TestCase',) IMPORT_NAME PyObjCTools.TestSupport IMPORT_FROM TestCase STORE_NAME TestCase POP_TOP LOAD_BUILD_CLASS LOAD_CONST <code object TestMTLResourceStatePass at 0x7fab81f2fc00, file "f.py", line 5> LOAD_CONST 'TestMTLResour...
import Metal from PyObjCTools.TestSupport import TestCase class TestMTLResourceStatePass(TestCase): def test_constants(self): self.assertEqual(Metal.MTLCounterDontSample, 0xFFFFFFFFFFFFFFFF) self.assertEqual(Metal.MTLMaxResourceStatePassSampleBuffers, 4)
data/pyobjc-framework-Metal-10.1/PyObjCTest/test_mtlresourcestatepass.py
295
85
343,042
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 ('CloudResourceManager',) IMPORT_NAME prowler.providers.gcp.services.cloudresourcemanager.cloudresourcemanager_service IMPORT_FROM...
from prowler.providers.gcp.lib.audit_info.audit_info import gcp_audit_info from prowler.providers.gcp.services.cloudresourcemanager.cloudresourcemanager_service import ( CloudResourceManager, ) cloudresourcemanager_client = CloudResourceManager(gcp_audit_info)
data/prowler-3.14.0/prowler/providers/gcp/services/cloudresourcemanager/cloudresourcemanager_client.py
136
85
182,894
LOAD_CONST "Dataset definition for rock_you.\n\nDEPRECATED!\nIf you want to use the RockYou dataset builder class, use:\ntfds.builder_cls('rock_you')\n" STORE_NAME __doc__ LOAD_CONST 0 LOAD_CONST ('lazy_builder_import',) IMPORT_NAME tensorflow_datasets.core IMPORT_FROM lazy_builder_import STORE_NAME lazy_builder_impor...
"""Dataset definition for rock_you. DEPRECATED! If you want to use the RockYou dataset builder class, use: tfds.builder_cls('rock_you') """ from tensorflow_datasets.core import lazy_builder_import RockYou = lazy_builder_import.LazyBuilderImport("rock_you")
data/tfds-nightly-4.9.4.dev202402210044/tensorflow_datasets/structured/rock_you.py
128
85
238,267
LOAD_CONST 2 LOAD_CONST ('iso_register',) IMPORT_NAME registry_tools IMPORT_FROM iso_register STORE_NAME iso_register POP_TOP LOAD_CONST 1 LOAD_CONST ('UnitedStates',) IMPORT_NAME core IMPORT_FROM UnitedStates STORE_NAME UnitedStates POP_TOP LOAD_NAME iso_register LOAD_CONST 'US-PA' CALL_FUNCTION LOAD_BUILD_CLASS LOA...
from ..registry_tools import iso_register from .core import UnitedStates @iso_register("US-PA") class Pennsylvania(UnitedStates): """Pennsylvania""" include_good_friday = True include_thanksgiving_friday = True include_election_day_every_year = True
data/workalendar-17.0.0/workalendar/usa/pennsylvania.py
230
85
132,039
LOAD_CONST 0 LOAD_CONST ('forms',) IMPORT_NAME django IMPORT_FROM forms STORE_NAME forms POP_TOP LOAD_CONST 0 LOAD_CONST ('URLValidator',) IMPORT_NAME django.core.validators IMPORT_FROM URLValidator STORE_NAME URLValidator POP_TOP LOAD_CONST 0 LOAD_CONST ('gettext_lazy',) IMPORT_NAME django.utils.translation IMPORT_F...
from django import forms from django.core.validators import URLValidator from django.utils.translation import gettext_lazy as _ class EmbedForm(forms.Form): url = forms.CharField( label=_("URL"), validators=[URLValidator(message=_("Please enter a valid URL"))] )
data/wagtail-6.0.1/wagtail/embeds/forms.py
251
85
200,512
SETUP_ANNOTATIONS LOAD_CONST '``AbstractDataset`` implementations for managing email messages.' STORE_NAME __doc__ LOAD_CONST 0 LOAD_CONST ('Any',) IMPORT_NAME typing IMPORT_FROM Any STORE_NAME Any POP_TOP LOAD_CONST 0 LOAD_CONST None IMPORT_NAME lazy_loader STORE_NAME lazy LOAD_NAME Any LOAD_NAME __annotations__ LO...
"""``AbstractDataset`` implementations for managing email messages.""" from typing import Any import lazy_loader as lazy EmailMessageDataset: Any __getattr__, __dir__, __all__ = lazy.attach( __name__, submod_attrs={"message_dataset": ["EmailMessageDataset"]}, )
data/kedro-datasets-2.0.0/kedro_datasets/email/__init__.py
148
85
61,470
LOAD_CONST 0 LOAD_CONST ('partial',) IMPORT_NAME functools IMPORT_FROM partial STORE_NAME partial POP_TOP LOAD_CONST <code object func1 at 0x7fab802329c0, file "f.py", line 4> LOAD_CONST 'func1' MAKE_FUNCTION STORE_NAME func1 LOAD_NAME partial LOAD_NAME func1 LOAD_CONST 1 CALL_FUNCTION STORE_NAME func2 LOAD_NAME par...
from functools import partial def func1(a, b, c): """docstring of func1""" pass func2 = partial(func1, 1) func3 = partial(func2, 2) func3.__doc__ = "docstring of func3" func4 = partial(func3, 3)
data/sphinx-7.2.6/tests/roots/test-ext-autodoc/target/partialfunction.py
153
85
381,213
LOAD_CONST 0 LOAD_CONST ('Path',) IMPORT_NAME pathlib IMPORT_FROM Path STORE_NAME Path POP_TOP LOAD_CONST <code object write_data at 0x7fab81f37030, file "f.py", line 4> LOAD_CONST 'write_data' MAKE_FUNCTION STORE_NAME write_data LOAD_CONST None RETURN_VALUE LOAD_GLOBAL Path LOAD_CONST './data' CALL_FUNCTION STORE_FA...
from pathlib import Path def write_data(fname, d): dpath = Path("./data") dpath.mkdir(exist_ok=True) fpath = dpath.joinpath(fname) with open(fpath, "w") as f: f.write(d) return fpath
data/utilmy-0.1.17078128/utilmy/recsys/bandits/genrl/tests/test_agents/test_bandit/utils.py
190
85
350,351
LOAD_CONST 0 LOAD_CONST ('login_required',) IMPORT_NAME django.contrib.auth.decorators IMPORT_FROM login_required STORE_NAME login_required POP_TOP LOAD_CONST 0 LOAD_CONST ('HttpResponse',) IMPORT_NAME django.http IMPORT_FROM HttpResponse STORE_NAME HttpResponse POP_TOP LOAD_CONST 0 LOAD_CONST ('path',) IMPORT_NAME d...
from django.contrib.auth.decorators import login_required from django.http import HttpResponse from django.urls import path urlpatterns = [ path("public/", lambda request: HttpResponse(), name="public"), path("private/", login_required(lambda request: HttpResponse()), name="private"), ]
data/django-tenants-3.6.1/dts_test_project/dts_test_project/urls.py
257
85
224,949
LOAD_CONST 0 LOAD_CONST ('DeprecationRule',) IMPORT_NAME saltlint.linter.rule IMPORT_FROM DeprecationRule STORE_NAME DeprecationRule POP_TOP LOAD_BUILD_CLASS LOAD_CONST <code object StateDeprecationDockerImagePresent at 0x7faa761ee150, file "f.py", line 4> LOAD_CONST 'StateDeprecationDockerImagePresent' MAKE_FUNCTION ...
from saltlint.linter.rule import DeprecationRule class StateDeprecationDockerImagePresent(DeprecationRule): id = "908" state = "docker.image_present" deprecated_since = "2017.7.0" version_added = "v0.5.0"
data/salt-lint-0.9.2/saltlint/rules/StateDeprecationDockerImagePresent.py
220
85
436,348
LOAD_CONST 0 LOAD_CONST ('dataclass',) IMPORT_NAME dataclasses IMPORT_FROM dataclass STORE_NAME dataclass POP_TOP LOAD_CONST 0 LOAD_CONST ('TYPE_CHECKING', 'Optional') IMPORT_NAME typing IMPORT_FROM TYPE_CHECKING STORE_NAME TYPE_CHECKING IMPORT_FROM Optional STORE_NAME Optional POP_TOP LOAD_NAME TYPE_CHECKING POP_JUM...
from dataclasses import dataclass from typing import TYPE_CHECKING, Optional if TYPE_CHECKING: from tests.fixtures.typemapping.street import Street @dataclass class House: class Meta: global_type = False number: int street: Optional["Street"] = None
data/xsdata-24.2.1/tests/fixtures/typemapping/house.py
344
85
112,040
LOAD_CONST '\nStandard network tags.\n' STORE_NAME __doc__ LOAD_CONST 'out.host' STORE_NAME TARGET_HOST LOAD_CONST 'network.destination.port' STORE_NAME TARGET_PORT LOAD_CONST 'network.destination.ip' STORE_NAME TARGET_IP LOAD_CONST 'peer.hostname' STORE_NAME PEER_HOSTNAME LOAD_CONST 'net.out.bytes' STORE_NAME BYT...
""" Standard network tags. """ TARGET_HOST = "out.host" TARGET_PORT = "network.destination.port" TARGET_IP = "network.destination.ip" PEER_HOSTNAME = "peer.hostname" BYTES_OUT = "net.out.bytes"
data/ddtrace-2.6.3/ddtrace/ext/net.py
107
85
270,234
LOAD_CONST 0 LOAD_CONST ('library',) IMPORT_NAME django_jinja IMPORT_FROM library STORE_NAME library POP_TOP LOAD_CONST 0 LOAD_CONST ('pass_context',) IMPORT_NAME jinja2 IMPORT_FROM pass_context STORE_NAME pass_context POP_TOP LOAD_CONST 0 LOAD_CONST ('url',) IMPORT_NAME subdomains.templatetags.subdomainurls IMPORT_F...
from django_jinja import library from jinja2 import pass_context from subdomains.templatetags.subdomainurls import url as subdomain_url @library.global_function @pass_context def url(context, *args, **kwargs): return subdomain_url(context, *args, **kwargs)
data/django-jinja-2.11.0/django_jinja/contrib/_subdomains/templatetags/subdomainurls.py
187
86
436,225
LOAD_CONST "Dataset definition for dsprites.\n\nDEPRECATED!\nIf you want to use the Dsprites dataset builder class, use:\ntfds.builder_cls('dsprites')\n" STORE_NAME __doc__ LOAD_CONST 0 LOAD_CONST ('lazy_builder_import',) IMPORT_NAME tensorflow_datasets.core IMPORT_FROM lazy_builder_import STORE_NAME lazy_builder_impo...
"""Dataset definition for dsprites. DEPRECATED! If you want to use the Dsprites dataset builder class, use: tfds.builder_cls('dsprites') """ from tensorflow_datasets.core import lazy_builder_import Dsprites = lazy_builder_import.LazyBuilderImport("dsprites")
data/tfds-nightly-4.9.4.dev202402210044/tensorflow_datasets/image/dsprites.py
130
86
238,320
LOAD_CONST 2 LOAD_CONST ('Provider',) IMPORT_NAME IMPORT_FROM Provider STORE_NAME BankProvider POP_TOP LOAD_BUILD_CLASS LOAD_CONST <code object Provider at 0x7faa53e70a50, file "f.py", line 4> LOAD_CONST 'Provider' MAKE_FUNCTION LOAD_CONST 'Provider' LOAD_NAME BankProvider CALL_FUNCTION STORE_NAME Provider LOAD_CONST ...
from .. import Provider as BankProvider class Provider(BankProvider): """Implement bank provider for ``uk_UA`` locale. Source for rules for bban format: https://bank.gov.ua/en/iban """ bban_format = "#" * 27 country_code = "UA"
data/Faker-23.2.1/faker/providers/bank/uk_UA/__init__.py
183
86
16,548
LOAD_CONST 0 LOAD_CONST None IMPORT_NAME inspect STORE_NAME inspect LOAD_CONST <code object test_call_chain at 0x7fab701ac1e0, file "f.py", line 4> LOAD_CONST 'test_call_chain' MAKE_FUNCTION STORE_NAME test_call_chain LOAD_CONST None RETURN_VALUE BUILD_LIST STORE_FAST modules SETUP_LOOP to 78 LOAD_GLOBAL enumerate L...
import inspect def test_call_chain(): modules = [] for idx, frame_info in enumerate(inspect.stack()): module = inspect.getmodule(frame_info[0]) assert module, f"Failed to get module for frame #{idx}: {frame_info}" modules.append(module) return modules
data/pyinstaller-6.4.0/tests/functional/modules/pyi_inspect_getmodule_from_stackframes/helper_package/helper_module.py
209
86
184,794
LOAD_CONST 0 LOAD_CONST ('AutoPipelinesRuns',) IMPORT_NAME ibm_watson_machine_learning.experiment.autoai.runs.auto_pipelines_runs IMPORT_FROM AutoPipelinesRuns STORE_NAME AutoPipelinesRuns POP_TOP LOAD_CONST 0 LOAD_CONST ('LocalAutoPipelinesRuns',) IMPORT_NAME ibm_watson_machine_learning.experiment.autoai.runs.local_a...
from ibm_watson_machine_learning.experiment.autoai.runs.auto_pipelines_runs import ( AutoPipelinesRuns, ) from ibm_watson_machine_learning.experiment.autoai.runs.local_auto_pipelines_runs import ( LocalAutoPipelinesRuns, )
data/ibm_watson_machine_learning-1.0.347/ibm_watson_machine_learning/experiment/autoai/runs/__init__.py
133
86
251,895
LOAD_CONST "Dataset definition for nsynth.\n\nDEPRECATED!\nIf you want to use the Nsynth dataset builder class, use:\ntfds.builder_cls('nsynth')\n" STORE_NAME __doc__ LOAD_CONST 0 LOAD_CONST ('lazy_builder_import',) IMPORT_NAME tensorflow_datasets.core IMPORT_FROM lazy_builder_import STORE_NAME lazy_builder_import POP...
"""Dataset definition for nsynth. DEPRECATED! If you want to use the Nsynth dataset builder class, use: tfds.builder_cls('nsynth') """ from tensorflow_datasets.core import lazy_builder_import Nsynth = lazy_builder_import.LazyBuilderImport("nsynth")
data/tfds-nightly-4.9.4.dev202402210044/tensorflow_datasets/audio/nsynth.py
130
86
238,214
LOAD_CONST 0 LOAD_CONST None IMPORT_NAME pytest STORE_NAME pytest LOAD_NAME pytest LOAD_ATTR mark LOAD_METHOD parametrize LOAD_CONST 'text' LOAD_CONST 'ہےں۔' LOAD_CONST 'کیا۔' BUILD_LIST CALL_METHOD LOAD_CONST <code object test_contractions at 0x7fab8234adb0, file "f.py", line 4> LOAD_CONST 'test_contractions' MAKE_FU...
import pytest @pytest.mark.parametrize("text", ["ہےں۔", "کیا۔"]) def test_contractions(ur_tokenizer, text): """Test specific Urdu punctuation character""" tokens = ur_tokenizer(text) assert len(tokens) == 2
data/spacy-3.7.4/spacy/tests/lang/ur/test_prefix_suffix_infix.py
161
86
147,492
LOAD_CONST 0 LOAD_CONST ('ALL_KNOWN_CONTENT_CHECKSUMS', 'SYNC_MODES', 'SYNC_CHOICES', 'TASK_STATES', 'TASK_CHOICES', 'TASK_FINAL_STATES') IMPORT_NAME pulpcore.constants IMPORT_FROM ALL_KNOWN_CONTENT_CHECKSUMS STORE_NAME ALL_KNOWN_CONTENT_CHECKSUMS IMPORT_FROM SYNC_MODES STORE_NAME SYNC_MODES IMPORT_FROM SYNC_CHOICES ST...
from pulpcore.constants import ( # noqa: F401 ALL_KNOWN_CONTENT_CHECKSUMS, SYNC_MODES, SYNC_CHOICES, TASK_STATES, TASK_CHOICES, TASK_FINAL_STATES, )
data/pulpcore-3.46.0/pulpcore/plugin/constants.py
192
86
218,310
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 ('DataCatalogClient',) IMPORT_NAME data_catalog_client IMPORT_FROM DataCatalogClient STORE_NAME DataCatalogClient POP_TOP LOAD_CONST 1 LOAD_CONST ('DataCatalogClie...
from __future__ import absolute_import from .data_catalog_client import DataCatalogClient from .data_catalog_client_composite_operations import ( DataCatalogClientCompositeOperations, ) from . import models __all__ = ["DataCatalogClient", "DataCatalogClientCompositeOperations", "models"]
data/oci-2.122.0/src/oci/data_catalog/__init__.py
179
86
412,692
LOAD_CONST "Dataset definition for nsynth.\n\nDEPRECATED!\nIf you want to use the Nsynth dataset builder class, use:\ntfds.builder_cls('nsynth')\n" STORE_NAME __doc__ LOAD_CONST 0 LOAD_CONST ('lazy_builder_import',) IMPORT_NAME tensorflow_datasets.core IMPORT_FROM lazy_builder_import STORE_NAME lazy_builder_import POP...
"""Dataset definition for nsynth. DEPRECATED! If you want to use the Nsynth dataset builder class, use: tfds.builder_cls('nsynth') """ from tensorflow_datasets.core import lazy_builder_import Nsynth = lazy_builder_import.LazyBuilderImport("nsynth")
data/tensorflow-datasets-4.9.4/tensorflow_datasets/audio/nsynth.py
130
86
255,154
LOAD_CONST 'Exceptions raised by the ce service.' STORE_NAME __doc__ 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 CostCategoryNotFound at 0x7fab823430c0, file "f.py", line 6> LOAD_CONST '...
"""Exceptions raised by the ce service.""" from moto.core.exceptions import JsonRESTError class CostCategoryNotFound(JsonRESTError): def __init__(self, ccd_id: str): super().__init__( "ResourceNotFoundException", f"No Cost Categories found with ID {ccd_id}" )
data/moto-5.0.2/moto/ce/exceptions.py
285
86
198,425
LOAD_CONST "Groove Midi Dataset (GMD).\n\nDEPRECATED!\nIf you want to use the Groove Dataset class, use:\ntfds.builder_cls('groove')\n" STORE_NAME __doc__ LOAD_CONST 0 LOAD_CONST ('lazy_builder_import',) IMPORT_NAME tensorflow_datasets.core IMPORT_FROM lazy_builder_import STORE_NAME lazy_builder_import POP_TOP LOAD_N...
"""Groove Midi Dataset (GMD). DEPRECATED! If you want to use the Groove Dataset class, use: tfds.builder_cls('groove') """ from tensorflow_datasets.core import lazy_builder_import Groove = lazy_builder_import.LazyBuilderImport("groove")
data/tfds-nightly-4.9.4.dev202402210044/tensorflow_datasets/audio/groove.py
130
86
238,213
LOAD_CONST 0 LOAD_CONST None IMPORT_NAME nox STORE_NAME nox LOAD_NAME nox LOAD_ATTR session LOAD_CONST '3.7' LOAD_CONST '3.8' LOAD_CONST '3.9' LOAD_CONST '3.10' LOAD_CONST '3.11' BUILD_LIST LOAD_CONST ('python',) CALL_FUNCTION LOAD_CONST <code object tests at 0x7fab8214d8a0, file "f.py", line 4> LOAD_CONST 'tests' MAK...
import nox @nox.session(python=["3.7", "3.8", "3.9", "3.10", "3.11"]) def tests(session): session.install("invoke", "./[test]") session.run("invoke", "pytest", "--junit", "--no-pty")
data/cmd2-2.4.3/plugins/template/noxfile.py
183
86
293,012
LOAD_CONST 0 LOAD_CONST None IMPORT_NAME sys STORE_NAME sys LOAD_CONST 0 LOAD_CONST ('getFrameInfo',) IMPORT_NAME zope.interface.advice IMPORT_FROM getFrameInfo STORE_NAME getFrameInfo POP_TOP LOAD_NAME globals CALL_FUNCTION STORE_NAME my_globals LOAD_CONST None STORE_NAME ClassicClass LOAD_BUILD_CLASS LOAD_CONST <...
import sys from zope.interface.advice import getFrameInfo my_globals = globals() ClassicClass = None class NewStyleClass: __metaclass__ = type classLevelFrameInfo = getFrameInfo(sys._getframe()) moduleLevelFrameInfo = getFrameInfo(sys._getframe())
data/zope.interface-6.2/src/zope/interface/tests/advisory_testing.py
222
86
187,529
LOAD_CONST 0 LOAD_CONST None IMPORT_NAME abc STORE_NAME abc LOAD_BUILD_CLASS LOAD_CONST <code object AsyncContextManager at 0x7f8aa4c204b0, file "f.py", line 4> LOAD_CONST 'AsyncContextManager' MAKE_FUNCTION LOAD_CONST 'AsyncContextManager' LOAD_NAME abc LOAD_ATTR ABC CALL_FUNCTION STORE_NAME AsyncContextManager LOAD...
import abc class AsyncContextManager(abc.ABC): @abc.abstractmethod async def close(self): pass async def __aenter__(self): return self async def __aexit__(self, *args): await self.close() __all__ = ["AsyncContextManager"]
data/azure-ai-ml-1.13.0/azure/ai/ml/identity/_aio/_internal/__init__.py
336
86
426,587
LOAD_CONST '\n.. codeauthor:: Tsuyoshi Hombashi <tsuyoshi.hombashi@gmail.com>\n' STORE_NAME __doc__ LOAD_CONST 2 LOAD_CONST ('TypeConversionError',) IMPORT_NAME error IMPORT_FROM TypeConversionError STORE_NAME TypeConversionError POP_TOP LOAD_CONST 1 LOAD_CONST ('AbstractValueConverter',) IMPORT_NAME _interface IMPOR...
""" .. codeauthor:: Tsuyoshi Hombashi <tsuyoshi.hombashi@gmail.com> """ from ..error import TypeConversionError from ._interface import AbstractValueConverter class BytesConverter(AbstractValueConverter): def force_convert(self): raise TypeConversionError("not inmplemented")
data/typepy-1.3.2/typepy/converter/_bytes.py
270
86
348,747
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 ('RedisClusterClient',) IMPORT_NAME redis_cluster_client IMPORT_FROM RedisClusterClient STORE_NAME RedisClusterClient POP_TOP LOAD_CONST 1 LOAD_CONST ('RedisCluste...
from __future__ import absolute_import from .redis_cluster_client import RedisClusterClient from .redis_cluster_client_composite_operations import ( RedisClusterClientCompositeOperations, ) from . import models __all__ = ["RedisClusterClient", "RedisClusterClientCompositeOperations", "models"]
data/oci-2.122.0/src/oci/redis/__init__.py
179
86
413,531
LOAD_CONST 0 LOAD_CONST ('*',) IMPORT_NAME azure.cli.core.aaz IMPORT_STAR LOAD_NAME register_command_group LOAD_CONST 'network dns dnssec-config' LOAD_CONST True LOAD_CONST ('is_experimental',) CALL_FUNCTION LOAD_BUILD_CLASS LOAD_CONST <code object __CMDGroup at 0x7faa5e81f5d0, file "f.py", line 4> LOAD_CONST '__CMD...
from azure.cli.core.aaz import * @register_command_group( "network dns dnssec-config", is_experimental=True, ) class __CMDGroup(AAZCommandGroup): """Manage DNSSEC configurations.""" pass __all__ = ["__CMDGroup"]
data/azure-cli-2.57.0/azure/cli/command_modules/network/aaz/latest/network/dns/dnssec_config/__cmd_group.py
200
86
378,329
LOAD_CONST "Dataset definition for scicite.\n\nDEPRECATED!\nIf you want to use the Scicite dataset builder class, use:\ntfds.builder_cls('scicite')\n" STORE_NAME __doc__ LOAD_CONST 0 LOAD_CONST ('lazy_builder_import',) IMPORT_NAME tensorflow_datasets.core IMPORT_FROM lazy_builder_import STORE_NAME lazy_builder_import ...
"""Dataset definition for scicite. DEPRECATED! If you want to use the Scicite dataset builder class, use: tfds.builder_cls('scicite') """ from tensorflow_datasets.core import lazy_builder_import Scicite = lazy_builder_import.LazyBuilderImport("scicite")
data/tfds-nightly-4.9.4.dev202402210044/tensorflow_datasets/text/scicite.py
130
86
211,100
LOAD_CONST 1 LOAD_CONST ('ZeroParamType',) IMPORT_NAME partition_parameters IMPORT_FROM ZeroParamType STORE_NAME ZeroParamType POP_TOP LOAD_CONST 1 LOAD_CONST ('ZeroParamStatus',) IMPORT_NAME partition_parameters IMPORT_FROM ZeroParamStatus STORE_NAME ZeroParamStatus POP_TOP LOAD_CONST 1 LOAD_CONST ('Init',) IMPORT_N...
from .partition_parameters import ZeroParamType from .partition_parameters import ZeroParamStatus from .partition_parameters import Init from .partition_parameters import GatheredParameters from .partition_parameters import register_external_parameter from .tiling import TiledLinear from .tiling import TiledLinearRetu...
data/deepspeed-0.13.2/deepspeed/runtime/zero/__init__.py
257
86
85,110
LOAD_CONST "Groove Midi Dataset (GMD).\n\nDEPRECATED!\nIf you want to use the Groove Dataset class, use:\ntfds.builder_cls('groove')\n" STORE_NAME __doc__ LOAD_CONST 0 LOAD_CONST ('lazy_builder_import',) IMPORT_NAME tensorflow_datasets.core IMPORT_FROM lazy_builder_import STORE_NAME lazy_builder_import POP_TOP LOAD_N...
"""Groove Midi Dataset (GMD). DEPRECATED! If you want to use the Groove Dataset class, use: tfds.builder_cls('groove') """ from tensorflow_datasets.core import lazy_builder_import Groove = lazy_builder_import.LazyBuilderImport("groove")
data/tensorflow-datasets-4.9.4/tensorflow_datasets/audio/groove.py
130
86
255,153
LOAD_CONST 0 LOAD_CONST ('admin',) IMPORT_NAME django.contrib IMPORT_FROM admin STORE_NAME admin POP_TOP LOAD_CONST 0 LOAD_CONST ('Client', 'Domain') IMPORT_NAME customers.models IMPORT_FROM Client STORE_NAME Client IMPORT_FROM Domain STORE_NAME Domain POP_TOP LOAD_BUILD_CLASS LOAD_CONST <code object DomainInline at ...
from django.contrib import admin from customers.models import Client, Domain class DomainInline(admin.TabularInline): model = Domain @admin.register(Client) class ClientAdmin(admin.ModelAdmin): inlines = [DomainInline] list_display = ("schema_name", "name")
data/django-tenants-3.6.1/examples/tenant_multi_types/customers/admin.py
306
86
224,888
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 ('OceInstanceClient',) IMPORT_NAME oce_instance_client IMPORT_FROM OceInstanceClient STORE_NAME OceInstanceClient POP_TOP LOAD_CONST 1 LOAD_CONST ('OceInstanceClie...
from __future__ import absolute_import from .oce_instance_client import OceInstanceClient from .oce_instance_client_composite_operations import ( OceInstanceClientCompositeOperations, ) from . import models __all__ = ["OceInstanceClient", "OceInstanceClientCompositeOperations", "models"]
data/oci-2.122.0/src/oci/oce/__init__.py
179
86
409,393
LOAD_CONST 0 LOAD_CONST ('TestCase', 'min_os_level') IMPORT_NAME PyObjCTools.TestSupport IMPORT_FROM TestCase STORE_NAME TestCase IMPORT_FROM min_os_level STORE_NAME min_os_level POP_TOP LOAD_CONST 0 LOAD_CONST None IMPORT_NAME GameCenter STORE_NAME GameCenter LOAD_BUILD_CLASS LOAD_CONST <code object TestGKVoiceChatS...
from PyObjCTools.TestSupport import TestCase, min_os_level import GameCenter class TestGKVoiceChatService(TestCase): @min_os_level("10.8") def testConstants10_8(self): self.assertIsInstance(GameCenter.GKVoiceChatServiceErrorDomain, str)
data/pyobjc-framework-GameCenter-10.1/PyObjCTest/test_gkvoicechatservice.py
303
86
304,940
LOAD_CONST 0 LOAD_CONST None IMPORT_NAME pytest STORE_NAME pytest LOAD_CONST 0 LOAD_CONST ('like_num',) IMPORT_NAME spacy.lang.ru.lex_attrs IMPORT_FROM like_num STORE_NAME like_num POP_TOP LOAD_NAME pytest LOAD_ATTR mark LOAD_METHOD parametrize LOAD_CONST 'word' LOAD_CONST 'одиннадцать' BUILD_LIST CALL_METHOD LOAD_CO...
import pytest from spacy.lang.ru.lex_attrs import like_num @pytest.mark.parametrize("word", ["одиннадцать"]) def test_ru_lex_attrs_capitals(word): assert like_num(word) assert like_num(word.upper())
data/spacy-3.7.4/spacy/tests/lang/ru/test_text.py
217
86
147,411
LOAD_CONST 'About information (version, etc) for Firebase Admin SDK.' STORE_NAME __doc__ LOAD_CONST '6.4.0' STORE_NAME __version__ LOAD_CONST 'firebase_admin' STORE_NAME __title__ LOAD_CONST 'Firebase' STORE_NAME __author__ LOAD_CONST 'Apache License 2.0' STORE_NAME __license__ LOAD_CONST 'https://firebase.google....
"""About information (version, etc) for Firebase Admin SDK.""" __version__ = "6.4.0" __title__ = "firebase_admin" __author__ = "Firebase" __license__ = "Apache License 2.0" __url__ = "https://firebase.google.com/docs/admin/setup/"
data/firebase_admin-6.4.0/firebase_admin/__about__.py
111
86
58,048
LOAD_CONST 0 LOAD_CONST ('catch_warnings', 'simplefilter') IMPORT_NAME warnings IMPORT_FROM catch_warnings STORE_NAME catch_warnings IMPORT_FROM simplefilter STORE_NAME simplefilter POP_TOP LOAD_CONST 0 LOAD_CONST None IMPORT_NAME numpy STORE_NAME np LOAD_CONST 1 LOAD_CONST ('OpRunUnaryNum',) IMPORT_NAME _op IMPORT_F...
from warnings import catch_warnings, simplefilter import numpy as np from ._op import OpRunUnaryNum class Sqrt(OpRunUnaryNum): def _run(self, x): # type: ignore with catch_warnings(): simplefilter("ignore") return (np.sqrt(x),)
data/onnxoptimizer-0.3.13/third_party/onnx/onnx/reference/ops/op_sqrt.py
299
86
85,636
LOAD_CONST "Dataset definition for bccd.\n\nDEPRECATED!\nIf you want to use the BCCD dataset builder class, use:\ntfds.builder_cls('bccd')\n" STORE_NAME __doc__ LOAD_CONST 0 LOAD_CONST ('lazy_builder_import',) IMPORT_NAME tensorflow_datasets.core IMPORT_FROM lazy_builder_import STORE_NAME lazy_builder_import POP_TOP ...
"""Dataset definition for bccd. DEPRECATED! If you want to use the BCCD dataset builder class, use: tfds.builder_cls('bccd') """ from tensorflow_datasets.core import lazy_builder_import BCCD = lazy_builder_import.LazyBuilderImport("bccd")
data/tfds-nightly-4.9.4.dev202402210044/tensorflow_datasets/image/bccd/bccd.py
130
86
238,340
LOAD_CONST 0 LOAD_CONST None IMPORT_NAME unittest STORE_NAME unittest LOAD_BUILD_CLASS LOAD_CONST <code object ImportTests at 0x7faaac2dab70, file "f.py", line 4> LOAD_CONST 'ImportTests' MAKE_FUNCTION LOAD_CONST 'ImportTests' LOAD_NAME unittest LOAD_ATTR TestCase CALL_FUNCTION STORE_NAME ImportTests LOAD_NAME __name...
import unittest class ImportTests(unittest.TestCase): def test_import_all(self): import mechanize from mechanize import __all__ for x in __all__: getattr(mechanize, x) if __name__ == "__main__": unittest.main()
data/mechanize-0.4.9/test/test_api.py
293
86
80,522
LOAD_CONST 0 LOAD_CONST ('Annotated',) IMPORT_NAME typing IMPORT_FROM Annotated STORE_NAME Annotated POP_TOP LOAD_CONST 0 LOAD_CONST ('FastAPI', 'Header') IMPORT_NAME fastapi IMPORT_FROM FastAPI STORE_NAME FastAPI IMPORT_FROM Header STORE_NAME Header POP_TOP LOAD_NAME FastAPI CALL_FUNCTION STORE_NAME app LOAD_NAME a...
from typing import Annotated from fastapi import FastAPI, Header app = FastAPI() @app.get("/items/") async def read_items( strange_header: Annotated[str | None, Header(convert_underscores=False)] = None ): return {"strange_header": strange_header}
data/fastapi-0.109.2/docs_src/header_params/tutorial002_an_py310.py
214
86
142,703
LOAD_CONST '\nSDK exception error type module.\n\nCreated on 6/15/2015\n\n@author: alex\n' STORE_NAME __doc__ LOAD_CONST 'Client' STORE_NAME ERROR_TYPE_CLIENT LOAD_CONST 'Server' STORE_NAME ERROR_TYPE_SERVER LOAD_CONST 'Throttling' STORE_NAME ERROR_TYPE_THROTTLING LOAD_CONST 'Unknown' STORE_NAME ERROR_TYPE_UNKNOWN ...
""" SDK exception error type module. Created on 6/15/2015 @author: alex """ ERROR_TYPE_CLIENT = "Client" ERROR_TYPE_SERVER = "Server" ERROR_TYPE_THROTTLING = "Throttling" ERROR_TYPE_UNKNOWN = "Unknown"
data/aliyun-python-sdk-core-v3-2.13.33/aliyunsdkcore/acs_exception/error_type.py
111
86
404,833