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 ('absolute_import',) IMPORT_NAME __future__ IMPORT_FROM absolute_import STORE_NAME absolute_import POP_TOP LOAD_CONST 1 LOAD_CONST ('DataplaneClient',) IMPORT_NAME dataplane_client IMPORT_FROM DataplaneClient STORE_NAME DataplaneClient POP_TOP LOAD_CONST 1 LOAD_CONST ('DataplaneClientComposite...
from __future__ import absolute_import from .dataplane_client import DataplaneClient from .dataplane_client_composite_operations import DataplaneClientCompositeOperations from . import models __all__ = ["DataplaneClient", "DataplaneClientCompositeOperations", "models"]
data/oci-2.122.0/src/oci/identity_data_plane/__init__.py
187
84
411,096
LOAD_CONST 0 LOAD_CONST ('Enum',) IMPORT_NAME enum IMPORT_FROM Enum STORE_NAME Enum POP_TOP LOAD_BUILD_CLASS LOAD_CONST <code object PrintScaling at 0x7fab70027420, file "f.py", line 4> LOAD_CONST 'PrintScaling' MAKE_FUNCTION LOAD_CONST 'PrintScaling' LOAD_NAME str LOAD_NAME Enum CALL_FUNCTION STORE_NAME PrintScaling ...
from enum import Enum class PrintScaling(str, Enum): Auto = ("auto",) ShrinkToFit = ("shrinkToFit",) Fill = ("fill",) Fit = ("fit",) None_ = ("none",) UnknownFutureValue = ("unknownFutureValue",)
data/msgraph-sdk-1.1.0/msgraph/generated/models/print_scaling.py
200
84
261,531
LOAD_CONST 'Time series kmeans clustering module.' STORE_NAME __doc__ LOAD_CONST 'TimeSeriesKMeans' LOAD_CONST 'TimeSeriesKMeansTslearn' BUILD_LIST STORE_NAME __all__ LOAD_CONST 0 LOAD_CONST ('TimeSeriesKMeans',) IMPORT_NAME sktime.clustering.k_means._k_means IMPORT_FROM TimeSeriesKMeans STORE_NAME TimeSeriesKMeans P...
"""Time series kmeans clustering module.""" __all__ = ["TimeSeriesKMeans", "TimeSeriesKMeansTslearn"] from sktime.clustering.k_means._k_means import TimeSeriesKMeans from sktime.clustering.k_means._k_means_tslearn import TimeSeriesKMeansTslearn
data/sktime-0.26.0/sktime/clustering/k_means/__init__.py
155
84
65,986
LOAD_CONST 0 LOAD_CONST ('path',) IMPORT_NAME django.urls IMPORT_FROM path STORE_NAME path POP_TOP LOAD_CONST 2 LOAD_CONST ('GraphQLView',) IMPORT_NAME views IMPORT_FROM GraphQLView STORE_NAME GraphQLView POP_TOP LOAD_CONST 1 LOAD_CONST ('schema',) IMPORT_NAME schema_view IMPORT_FROM schema STORE_NAME schema POP_TOP ...
from django.urls import path from ..views import GraphQLView from .schema_view import schema class CustomGraphQLView(GraphQLView): schema = schema graphiql = True pretty = True urlpatterns = [path("graphql/inherited/", CustomGraphQLView.as_view())]
data/graphene-django-3.2.0/graphene_django/tests/urls_inherited.py
239
84
173,744
LOAD_CONST 0 STORE_NAME debug_disposal_code LOAD_CONST 0 STORE_NAME debug_temp_alloc LOAD_CONST 0 STORE_NAME debug_coercion LOAD_CONST 0 STORE_NAME debug_temp_code_comments LOAD_CONST 0 STORE_NAME debug_trace_code_generation LOAD_CONST 0 STORE_NAME debug_no_exception_intercept LOAD_CONST 0 STORE_NAME debug_verbos...
debug_disposal_code = 0 debug_temp_alloc = 0 debug_coercion = 0 debug_temp_code_comments = 0 debug_trace_code_generation = 0 debug_no_exception_intercept = 0 debug_verbose_pipeline = 0 debug_exception_on_error = 0
data/catboost-1.2.2/catboost_all_src/contrib/tools/cython/Cython/Compiler/DebugFlags.py
114
84
177,172
LOAD_CONST 'OAuth state parameter data store\n\nRefer to https://slack.dev/python-slack-sdk/oauth/ for details.\n' STORE_NAME __doc__ LOAD_CONST 1 LOAD_CONST ('FileOAuthStateStore',) IMPORT_NAME file IMPORT_FROM FileOAuthStateStore STORE_NAME FileOAuthStateStore POP_TOP LOAD_CONST 1 LOAD_CONST ('OAuthStateStore',) IM...
"""OAuth state parameter data store Refer to https://slack.dev/python-slack-sdk/oauth/ for details. """ from .file import FileOAuthStateStore from .state_store import OAuthStateStore __all__ = [ "FileOAuthStateStore", "OAuthStateStore", ]
data/slack_sdk-3.27.0/slack_sdk/oauth/state_store/__init__.py
141
84
206,905
LOAD_CONST 0 LOAD_CONST ('assert_type',) IMPORT_NAME typing_extensions IMPORT_FROM assert_type STORE_NAME assert_type POP_TOP LOAD_CONST 0 LOAD_CONST None IMPORT_NAME click STORE_NAME click LOAD_NAME click LOAD_METHOD command CALL_METHOD LOAD_NAME click LOAD_METHOD help_option LOAD_CONST '-h' LOAD_CONST '--help' CAL...
from typing_extensions import assert_type import click @click.command() @click.help_option("-h", "--help") def hello() -> None: """Simple program that greets NAME for a total of COUNT times.""" click.echo("Hello!") assert_type(hello, click.Command)
data/click-8.1.7/tests/typing/typing_help_option.py
180
84
117,082
LOAD_CONST 0 LOAD_CONST None IMPORT_NAME os STORE_NAME os LOAD_CONST 0 LOAD_CONST None IMPORT_NAME subprocess STORE_NAME subprocess LOAD_CONST <code object pytest_sessionfinish at 0x7fab42ab7db0, file "f.py", line 5> LOAD_CONST 'pytest_sessionfinish' MAKE_FUNCTION STORE_NAME pytest_sessionfinish LOAD_CONST None RETUR...
import os import subprocess def pytest_sessionfinish(session, exitstatus): tox_env_dir = os.environ.get("TOX_WORK_DIR") if exitstatus and tox_env_dir: subprocess.call(["bash", "./rabbitmq_logs.sh"])
data/amqp-5.2.0/t/integration/conftest.py
176
84
439,168
LOAD_CONST 0 LOAD_CONST ('*',) IMPORT_NAME azure.cli.core.aaz IMPORT_STAR LOAD_NAME register_command_group LOAD_CONST 'network route-filter rule' LOAD_CONST True LOAD_CONST ('is_preview',) CALL_FUNCTION LOAD_BUILD_CLASS LOAD_CONST <code object __CMDGroup at 0x7fab42101300, file "f.py", line 4> LOAD_CONST '__CMDGroup...
from azure.cli.core.aaz import * @register_command_group( "network route-filter rule", is_preview=True, ) class __CMDGroup(AAZCommandGroup): """Manage rules in a route filter.""" pass __all__ = ["__CMDGroup"]
data/azure-cli-2.57.0/azure/cli/command_modules/network/aaz/latest/network/route_filter/rule/__cmd_group.py
198
84
377,932
LOAD_CONST 0 LOAD_CONST ('MigrationTaskEntityData',) IMPORT_NAME office365.sharepoint.migrationcenter.common.task_entity_data IMPORT_FROM MigrationTaskEntityData STORE_NAME MigrationTaskEntityData POP_TOP LOAD_BUILD_CLASS LOAD_CONST <code object MigrationTask at 0x7fab700e4030, file "f.py", line 6> LOAD_CONST 'Migrati...
from office365.sharepoint.migrationcenter.common.task_entity_data import ( MigrationTaskEntityData, ) class MigrationTask(MigrationTaskEntityData): @property def entity_type_name(self): return "Microsoft.Online.SharePoint.MigrationCenter.Service.MigrationTask"
data/Office365-REST-Python-Client-2.5.5/office365/sharepoint/migrationcenter/common/task.py
239
84
189,694
LOAD_CONST '\nraven.contrib.django.management.commands\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\n:copyright: (c) 2010-2013 by the Sentry Team, see AUTHORS for more details\n:license: BSD, see LICENSE for more details.\n' STORE_NAME __doc__ LOAD_CONST 0 LOAD_CONST ('absolute_import', 'print_function') IMPORT_NAME __...
""" raven.contrib.django.management.commands ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ :copyright: (c) 2010-2013 by the Sentry Team, see AUTHORS for more details :license: BSD, see LICENSE for more details. """ from __future__ import absolute_import, print_function
data/raven-6.10.0/raven/contrib/django/management/commands/__init__.py
129
84
373,937
LOAD_CONST 0 LOAD_CONST ('react',) IMPORT_NAME twisted.internet.task IMPORT_FROM react STORE_NAME react POP_TOP LOAD_CONST 0 LOAD_CONST ('print_response',) IMPORT_NAME _utils IMPORT_FROM print_response STORE_NAME print_response POP_TOP LOAD_CONST 0 LOAD_CONST None IMPORT_NAME treq STORE_NAME treq LOAD_CONST <code ob...
from twisted.internet.task import react from _utils import print_response import treq def main(reactor): d = treq.post("https://httpbin.org/post", data={"form": "data"}) d.addCallback(print_response) return d react(main, [])
data/treq-23.11.0/docs/examples/basic_post.py
197
84
415,472
LOAD_CONST 1 LOAD_CONST ('LimeTabular',) IMPORT_NAME _lime IMPORT_FROM LimeTabular STORE_NAME LimeTabular POP_TOP LOAD_CONST 1 LOAD_CONST ('ShapKernel',) IMPORT_NAME _shap IMPORT_FROM ShapKernel STORE_NAME ShapKernel POP_TOP LOAD_CONST 1 LOAD_CONST ('MorrisSensitivity',) IMPORT_NAME _sensitivity IMPORT_FROM MorrisSen...
from ._lime import LimeTabular # noqa: F401 from ._shap import ShapKernel # noqa: F401 from ._sensitivity import MorrisSensitivity # noqa: F401 from ._partialdependence import PartialDependence # noqa: F401
data/interpret-core-0.5.1/interpret/blackbox/__init__.py
134
84
388,019
LOAD_CONST "Dataset definition for media_sum.\n\nDEPRECATED!\nIf you want to use the MediaSum dataset builder class, use:\ntfds.builder_cls('media_sum')\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_im...
"""Dataset definition for media_sum. DEPRECATED! If you want to use the MediaSum dataset builder class, use: tfds.builder_cls('media_sum') """ from tensorflow_datasets.core import lazy_builder_import MediaSum = lazy_builder_import.LazyBuilderImport("media_sum")
data/tensorflow-datasets-4.9.4/tensorflow_datasets/summarization/media_sum/media_sum.py
128
84
256,393
LOAD_CONST 0 LOAD_CONST None IMPORT_NAME sys STORE_NAME sys LOAD_CONST 0 LOAD_CONST ('Widget',) IMPORT_NAME widget_module IMPORT_FROM Widget STORE_NAME Widget POP_TOP LOAD_BUILD_CLASS LOAD_CONST <code object DerivedWidget at 0x7f8ece8a8ed0, file "f.py", line 6> LOAD_CONST 'DerivedWidget' MAKE_FUNCTION LOAD_CONST 'Der...
import sys from widget_module import Widget class DerivedWidget(Widget): def __init__(self, message): super(DerivedWidget, self).__init__(message) def the_answer(self): return 42 def argv0(self): return sys.argv[0]
data/onnxsim-0.4.35/third_party/pybind11/tests/test_embed/test_interpreter.py
368
84
114,103
LOAD_CONST 0 LOAD_CONST ('C_is_not_finite',) IMPORT_NAME pmdarima.arima._arima IMPORT_FROM C_is_not_finite STORE_NAME C_is_not_finite POP_TOP LOAD_CONST 0 LOAD_CONST None IMPORT_NAME numpy STORE_NAME np LOAD_CONST <code object test_not_finite at 0x7f8e44712d20, file "f.py", line 6> LOAD_CONST 'test_not_finite' MAKE_F...
from pmdarima.arima._arima import C_is_not_finite import numpy as np def test_not_finite(): assert C_is_not_finite(np.nan) assert C_is_not_finite(np.inf) assert not C_is_not_finite(5.0)
data/pmdarima-2.0.4/pmdarima/arima/tests/test_c_arima.py
210
84
404,276
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_CONST 0 LOAD_CONST None IMPORT_NAME wx.adv STORE_NAME wx LOAD_BUILD_CLASS LOAD_CONST <cod...
import unittest from unittests import wtc import wx import wx.adv class helpext_Tests(wtc.WidgetTestCase): def test_helpext1(self): hc = wx.adv.ExtHelpController() if __name__ == "__main__": unittest.main()
data/wxPython-4.2.1/unittests/test_helpext.py
305
84
302,072
LOAD_CONST 0 LOAD_CONST ('Configurator',) IMPORT_NAME pyramid.config IMPORT_FROM Configurator STORE_NAME Configurator POP_TOP LOAD_CONST <code object main at 0x7faa74756150, file "f.py", line 4> LOAD_CONST 'main' MAKE_FUNCTION STORE_NAME main LOAD_CONST None RETURN_VALUE LOAD_GLOBAL Configurator LOAD_FAST settings LO...
from pyramid.config import Configurator def main(global_config, **settings): config = Configurator(settings=settings) config.add_route("home", "/") config.add_route("hello", "/howdy") config.scan(".views") return config.make_wsgi_app()
data/pyramid-2.0.2/docs/quick_tutorial/views/tutorial/__init__.py
178
84
19,754
LOAD_CONST 0 LOAD_CONST None IMPORT_NAME pytest STORE_NAME pytest LOAD_CONST 0 LOAD_CONST ('Japanese',) IMPORT_NAME spacy.lang.ja IMPORT_FROM Japanese STORE_NAME Japanese POP_TOP LOAD_CONST <code object test_ja_morphologizer_factory at 0x7fab543e7f60, file "f.py", line 6> LOAD_CONST 'test_ja_morphologizer_factory' MA...
import pytest from spacy.lang.ja import Japanese def test_ja_morphologizer_factory(): pytest.importorskip("sudachipy") nlp = Japanese() morphologizer = nlp.add_pipe("morphologizer") assert morphologizer.cfg["extend"] is True
data/spacy-3.7.4/spacy/tests/lang/ja/test_morphologizer_factory.py
214
84
147,418
LOAD_CONST 'Google Benchmark tooling' STORE_NAME __doc__ LOAD_CONST 'Eric Fiselier' STORE_NAME __author__ LOAD_CONST 'eric@efcs.ca' STORE_NAME __email__ LOAD_CONST (0, 5, 0) STORE_NAME __versioninfo__ LOAD_CONST '.' LOAD_METHOD join LOAD_CONST <code object <genexpr> at 0x7fae471296f0, file "f.py", line 6> LOAD_CONS...
"""Google Benchmark tooling""" __author__ = "Eric Fiselier" __email__ = "eric@efcs.ca" __versioninfo__ = (0, 5, 0) __version__ = ".".join(str(v) for v in __versioninfo__) + "dev" __all__ = []
data/onnx-1.15.0/third_party/benchmark/tools/gbench/__init__.py
188
84
111,540
LOAD_CONST '\nApplication constants. All defaults can be changed when initializing a client\nvia the GraphClient or HttpClientFactory\n' STORE_NAME __doc__ LOAD_CONST 100 STORE_NAME DEFAULT_REQUEST_TIMEOUT LOAD_CONST 30 STORE_NAME DEFAULT_CONNECTION_TIMEOUT LOAD_CONST '1.0.0' STORE_NAME SDK_VERSION LOAD_CONST 'http...
""" Application constants. All defaults can be changed when initializing a client via the GraphClient or HttpClientFactory """ DEFAULT_REQUEST_TIMEOUT = 100 DEFAULT_CONNECTION_TIMEOUT = 30 SDK_VERSION = "1.0.0" MS_DEFAULT_SCOPE = "https://graph.microsoft.com/.default"
data/msgraph-core-1.0.0/src/msgraph_core/_constants.py
110
84
392,406
LOAD_CONST 'Incoming request from Slack through either HTTP request or Socket Mode connection.\n\nRefer to https://api.slack.com/apis/connections for the two types of connections.\nThis interface encapsulates the difference between the two.\n' STORE_NAME __doc__ LOAD_CONST 1 LOAD_CONST ('BoltRequest',) IMPORT_NAME req...
"""Incoming request from Slack through either HTTP request or Socket Mode connection. Refer to https://api.slack.com/apis/connections for the two types of connections. This interface encapsulates the difference between the two. """ from .request import BoltRequest __all__ = [ "BoltRequest", ]
data/slack_bolt-1.18.1/slack_bolt/request/__init__.py
114
84
171,836
LOAD_CONST 1 LOAD_CONST ('FormatColumn',) IMPORT_NAME intcolumn IMPORT_FROM FormatColumn STORE_NAME FormatColumn POP_TOP LOAD_BUILD_CLASS LOAD_CONST <code object NullColumn at 0x7f8ab7617300, file "f.py", line 4> LOAD_CONST 'NullColumn' MAKE_FUNCTION LOAD_CONST 'NullColumn' LOAD_NAME FormatColumn CALL_FUNCTION STORE_N...
from .intcolumn import FormatColumn class NullColumn(FormatColumn): ch_type = "Null" format = "B" @property def size(self): return 1 def after_read_items(self, items, nulls_map=None): return (None,) * len(items)
data/asynch-0.2.3/asynch/proto/columns/nullcolumn.py
278
84
427,530
LOAD_CONST '\nThis file contains a config object that will hold configuration options for the package.\nDefaults are set and can be overridden after package load.\n' STORE_NAME __doc__ LOAD_CONST 0 LOAD_CONST ('absolute_import',) IMPORT_NAME __future__ IMPORT_FROM absolute_import STORE_NAME absolute_import POP_TOP LO...
""" This file contains a config object that will hold configuration options for the package. Defaults are set and can be overridden after package load. """ from __future__ import absolute_import from .util import DictionaryOfStan config = DictionaryOfStan() config["asyncio_task_context_propagation"]["enabled"] = Fal...
data/instana-1.38.2/instana/configurator.py
150
84
232,802
LOAD_CONST 0 LOAD_CONST None IMPORT_NAME os STORE_NAME os LOAD_CONST 'router_basicauth' STORE_NAME NAME BUILD_LIST STORE_NAME CFLAGS BUILD_LIST STORE_NAME LDFLAGS BUILD_LIST STORE_NAME LIBS LOAD_NAME os LOAD_METHOD uname CALL_METHOD LOAD_CONST 0 BINARY_SUBSCR LOAD_CONST ('Darwin', 'OpenBSD') COMPARE_OP not in POP_...
import os NAME = "router_basicauth" CFLAGS = [] LDFLAGS = [] LIBS = [] if os.uname()[0] not in ("Darwin", "OpenBSD"): LIBS.append("-lcrypt") GCC_LIST = ["router_basicauth"]
data/uwsgi-2.0.24/plugins/router_basicauth/uwsgiplugin.py
127
84
398,299
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 ('OpaInstanceClient',) IMPORT_NAME opa_instance_client IMPORT_FROM OpaInstanceClient STORE_NAME OpaInstanceClient POP_TOP LOAD_CONST 1 LOAD_CONST ('OpaInstanceClie...
from __future__ import absolute_import from .opa_instance_client import OpaInstanceClient from .opa_instance_client_composite_operations import ( OpaInstanceClientCompositeOperations, ) from . import models __all__ = ["OpaInstanceClient", "OpaInstanceClientCompositeOperations", "models"]
data/oci-2.122.0/src/oci/opa/__init__.py
179
84
411,022
LOAD_CONST 0 LOAD_CONST ('MagicMock',) IMPORT_NAME ansible_collections.ansible.libvirt.tests.unit.compat.mock IMPORT_FROM MagicMock STORE_NAME MagicMock POP_TOP LOAD_CONST 0 LOAD_CONST ('unfrackpath',) IMPORT_NAME ansible.utils.path IMPORT_FROM unfrackpath STORE_NAME unfrackpath POP_TOP LOAD_NAME MagicMock LOAD_NAME...
from ansible_collections.ansible.libvirt.tests.unit.compat.mock import MagicMock from ansible.utils.path import unfrackpath mock_unfrackpath_noop = MagicMock( spec_set=unfrackpath, side_effect=lambda x, *args, **kwargs: x )
data/ansible-9.2.0/ansible_collections/community/libvirt/tests/unit/mock/path.py
173
84
274,262
LOAD_CONST 0 LOAD_CONST ('Resource',) IMPORT_NAME braintree.resource IMPORT_FROM Resource STORE_NAME Resource POP_TOP LOAD_CONST 0 LOAD_CONST ('Transaction',) IMPORT_NAME braintree.transaction IMPORT_FROM Transaction STORE_NAME Transaction POP_TOP LOAD_BUILD_CLASS LOAD_CONST <code object LocalPaymentCompleted at 0x7f...
from braintree.resource import Resource from braintree.transaction import Transaction class LocalPaymentCompleted(Resource): def __init__(self, gateway, attributes): Resource.__init__(self, gateway, attributes) if "transaction" in attributes: self.transaction = Transaction(gateway, at...
data/braintree-4.26.0/braintree/local_payment_completed.py
284
84
327,731
LOAD_CONST 1 LOAD_CONST ('*',) IMPORT_NAME __cmd_group IMPORT_STAR LOAD_CONST 1 LOAD_CONST ('*',) IMPORT_NAME _convert IMPORT_STAR LOAD_CONST 1 LOAD_CONST ('*',) IMPORT_NAME _deallocate IMPORT_STAR LOAD_CONST 1 LOAD_CONST ('*',) IMPORT_NAME _generalize IMPORT_STAR LOAD_CONST 1 LOAD_CONST ('*',) IMPORT_NAME _list_si...
from .__cmd_group import * from ._convert import * from ._deallocate import * from ._generalize import * from ._list_sizes import * from ._list_vm_resize_options import * from ._perform_maintenance import * from ._redeploy import * from ._start import *
data/azure-cli-2.57.0/azure/cli/command_modules/vm/aaz/profile_2018_03_01_hybrid/vm/__init__.py
177
84
376,867
LOAD_CONST 'Sub-package containing the matrix class and related functions.\n\n' STORE_NAME __doc__ LOAD_CONST 0 LOAD_CONST ('division', 'absolute_import', 'print_function') IMPORT_NAME __future__ IMPORT_FROM division STORE_NAME division IMPORT_FROM absolute_import STORE_NAME absolute_import IMPORT_FROM print_function ...
"""Sub-package containing the matrix class and related functions. """ from __future__ import division, absolute_import, print_function from .defmatrix import * __all__ = defmatrix.__all__ from numpy._pytesttester import PytestTester test = PytestTester(__name__) del PytestTester
data/catboost-1.2.2/catboost_all_src/contrib/python/numpy/py2/numpy/matrixlib/__init__.py
175
84
176,479
LOAD_CONST 0 LOAD_CONST ('Dict', 'Optional', 'Sequence') IMPORT_NAME typing IMPORT_FROM Dict STORE_NAME Dict IMPORT_FROM Optional STORE_NAME Optional IMPORT_FROM Sequence STORE_NAME Sequence POP_TOP LOAD_NAME Dict LOAD_NAME str LOAD_NAME Sequence LOAD_NAME str BINARY_SUBSCR BUILD_TUPLE BINARY_SUBSCR LOAD_NAME str LOAD...
from typing import Dict, Optional, Sequence def _first_value(query: Dict[str, Sequence[str]], name: str) -> Optional[str]: if query: values = query.get(name, []) if values and len(values) > 0: return values[0] return None
data/slack_bolt-1.18.1/slack_bolt/adapter/aws_lambda/internals.py
206
84
171,789
LOAD_CONST 0 LOAD_CONST None IMPORT_NAME io STORE_NAME io LOAD_CONST 0 LOAD_CONST None IMPORT_NAME logging STORE_NAME logging LOAD_CONST 0 LOAD_CONST None IMPORT_NAME pytest STORE_NAME pytest LOAD_CONST 0 LOAD_CONST ('default',) IMPORT_NAME traitlets IMPORT_FROM default STORE_NAME default POP_TOP LOAD_CONST 'jupyte...
import io import logging import pytest from traitlets import default pytest_plugins = ["jupyter_server.pytest_plugin"] @pytest.fixture def jp_server_config(): return {"ServerApp": {"jpserver_extensions": {"jupyter_server_mathjax": True}}}
data/jupyter_server_mathjax-0.2.6/jupyter_server_mathjax/tests/conftest.py
204
84
206,114
LOAD_CONST 0 LOAD_CONST None IMPORT_NAME numpy STORE_NAME np LOAD_CONST 0 LOAD_CONST ('Softmax',) IMPORT_NAME onnx.reference.ops.op_softmax IMPORT_FROM Softmax STORE_NAME Softmax POP_TOP LOAD_BUILD_CLASS LOAD_CONST <code object LogSoftmax at 0x7fab821a50c0, file "f.py", line 6> LOAD_CONST 'LogSoftmax' MAKE_FUNCTION L...
import numpy as np from onnx.reference.ops.op_softmax import Softmax class LogSoftmax(Softmax): def _run(self, X): # type: ignore Y = Softmax._run(self, X)[0] np.log(Y, out=Y) return (Y,)
data/onnx-1.15.0/onnx/reference/ops/op_log_softmax.py
254
84
111,105
LOAD_CONST '\npythainlp.cls\nDepreciated. Use pythainlp.classify instead.\n' STORE_NAME __doc__ LOAD_CONST 0 LOAD_CONST None IMPORT_NAME warnings STORE_NAME warnings LOAD_CONST 'GzipModel' BUILD_LIST STORE_NAME __all__ LOAD_CONST 0 LOAD_CONST ('GzipModel',) IMPORT_NAME pythainlp.classify.param_free IMPORT_FROM GzipM...
""" pythainlp.cls Depreciated. Use pythainlp.classify instead. """ import warnings __all__ = ["GzipModel"] from pythainlp.classify.param_free import GzipModel warnings.warn("Deprecated: Use pythainlp.classify instead.", DeprecationWarning)
data/pythainlp-5.0.1/pythainlp/cls/__init__.py
138
84
43,295
LOAD_CONST 0 LOAD_CONST ('Enum',) IMPORT_NAME enum IMPORT_FROM Enum STORE_NAME Enum POP_TOP LOAD_BUILD_CLASS LOAD_CONST <code object RiskDetectionTimingType at 0x7fab4298e1e0, file "f.py", line 4> LOAD_CONST 'RiskDetectionTimingType' MAKE_FUNCTION LOAD_CONST 'RiskDetectionTimingType' LOAD_NAME str LOAD_NAME Enum CALL_...
from enum import Enum class RiskDetectionTimingType(str, Enum): NotDefined = ("notDefined",) Realtime = ("realtime",) NearRealtime = ("nearRealtime",) Offline = ("offline",) UnknownFutureValue = ("unknownFutureValue",)
data/msgraph-sdk-1.1.0/msgraph/generated/models/risk_detection_timing_type.py
214
84
261,874
LOAD_CONST 1 LOAD_CONST ('MediaStoreResponse',) IMPORT_NAME responses IMPORT_FROM MediaStoreResponse STORE_NAME MediaStoreResponse POP_TOP LOAD_CONST 'https?://mediastore\\.(.+)\\.amazonaws\\.com' BUILD_LIST STORE_NAME url_bases LOAD_NAME MediaStoreResponse CALL_FUNCTION STORE_NAME response LOAD_NAME response LOAD_A...
from .responses import MediaStoreResponse url_bases = [r"https?://mediastore\.(.+)\.amazonaws\.com"] response = MediaStoreResponse() url_paths = {"{0}/$": response.dispatch, "{0}/(?P<Path>[^/.]+)$": response.dispatch}
data/moto-5.0.2/moto/mediastore/urls.py
119
84
198,137
LOAD_CONST '\nThis module contains a few classes that are only available on Windows.\n' STORE_NAME __doc__ LOAD_CONST 1 LOAD_CONST ('*',) IMPORT_NAME _msw IMPORT_STAR LOAD_CONST 0 LOAD_CONST None IMPORT_NAME wx STORE_NAME wx LOAD_NAME wx LOAD_METHOD deprecated LOAD_NAME wx LOAD_ATTR Metafile LOAD_CONST 'Metafile has...
""" This module contains a few classes that are only available on Windows. """ from ._msw import * import wx Metafile = wx.deprecated(wx.Metafile, "Metafile has moved to the core wx module.") MetafileDC = wx.deprecated(wx.MetafileDC, "MetafileDC has moved to the core wx module.")
data/wxPython-4.2.1/wx/msw.py
136
84
300,891
LOAD_CONST 0 LOAD_CONST ('MonthlyJob',) IMPORT_NAME django_extensions.management.jobs IMPORT_FROM MonthlyJob STORE_NAME MonthlyJob POP_TOP LOAD_CONST 0 LOAD_CONST ('mock',) IMPORT_NAME unittest IMPORT_FROM mock STORE_NAME mock POP_TOP LOAD_NAME mock LOAD_METHOD MagicMock CALL_METHOD STORE_NAME MONTHLY_JOB_MOCK LOAD_...
from django_extensions.management.jobs import MonthlyJob from unittest import mock MONTHLY_JOB_MOCK = mock.MagicMock() class Job(MonthlyJob): help = "My sample monthly job." def execute(self): MONTHLY_JOB_MOCK()
data/django-extensions-3.2.3/tests/testapp/jobs/monthly/test_monthly_job.py
250
84
300,200
LOAD_CONST 'Utilities for integrating Hamcrest with other libraries.' STORE_NAME __doc__ LOAD_CONST 1 LOAD_CONST ('match_equality',) IMPORT_NAME match_equality IMPORT_FROM match_equality STORE_NAME match_equality POP_TOP LOAD_CONST 'Jon Reid' STORE_NAME __author__ LOAD_CONST 'Copyright 2011 hamcrest.org' STORE_NAME ...
"""Utilities for integrating Hamcrest with other libraries.""" from .match_equality import match_equality __author__ = "Jon Reid" __copyright__ = "Copyright 2011 hamcrest.org" __license__ = "BSD, see License.txt" __all__ = ["match_equality"]
data/pyhamcrest-2.1.0/src/hamcrest/library/integration/__init__.py
128
85
439,007
LOAD_CONST '\n**Silly Walk parser**\nTest data standard library\n' STORE_NAME __doc__ LOAD_CONST 0 LOAD_CONST ('absolute_import',) IMPORT_NAME __future__ IMPORT_FROM absolute_import STORE_NAME absolute_import POP_TOP LOAD_CONST 0 LOAD_CONST ('Parser',) IMPORT_NAME tests.testdata.parents IMPORT_FROM Parser STORE_NAME ...
""" **Silly Walk parser** Test data standard library """ from __future__ import absolute_import from tests.testdata.parents import Parser class SillyWalk(Parser): """Dummy silly walk parser""" _alias_ = "sillywalk" def parse(self): return "sillywalk"
data/pluginlib-0.9.1/tests/testdata/bare/package/parsers/silly_walks.py
269
85
292,608
LOAD_CONST '\nA lower level example of how we login with authentication\n' STORE_NAME __doc__ LOAD_CONST 0 LOAD_CONST ('print_function',) IMPORT_NAME __future__ IMPORT_FROM print_function STORE_NAME print_function POP_TOP LOAD_CONST 0 LOAD_CONST ('jenkins',) IMPORT_NAME jenkinsapi IMPORT_FROM jenkins STORE_NAME jenki...
""" A lower level example of how we login with authentication """ from __future__ import print_function from jenkinsapi import jenkins J = jenkins.Jenkins("http://localhost:8080", username="sal", password="foobar") J.poll() print(J.items())
data/jenkinsapi-0.3.13/examples/low_level/login_with_auth.py
162
85
22,823
LOAD_CONST 'Define RainMachine data models.' STORE_NAME __doc__ LOAD_CONST 0 LOAD_CONST ('dataclass',) IMPORT_NAME dataclasses IMPORT_FROM dataclass STORE_NAME dataclass POP_TOP LOAD_CONST 0 LOAD_CONST ('EntityDescription',) IMPORT_NAME homeassistant.helpers.entity IMPORT_FROM EntityDescription STORE_NAME EntityDescr...
"""Define RainMachine data models.""" from dataclasses import dataclass from homeassistant.helpers.entity import EntityDescription @dataclass(frozen=True, kw_only=True) class RainMachineEntityDescription(EntityDescription): """Describe a RainMachine entity.""" api_category: str
data/homeassistant-2024.2.2/homeassistant/components/rainmachine/model.py
252
85
296,099
LOAD_CONST 'Terminal-formatted strings' STORE_NAME __doc__ LOAD_CONST '0.4.2' STORE_NAME __version__ LOAD_CONST 1 LOAD_CONST ('FullscreenWindow', 'CursorAwareWindow') IMPORT_NAME window IMPORT_FROM FullscreenWindow STORE_NAME FullscreenWindow IMPORT_FROM CursorAwareWindow STORE_NAME CursorAwareWindow POP_TOP LOAD_CO...
"""Terminal-formatted strings""" __version__ = "0.4.2" from .window import FullscreenWindow, CursorAwareWindow from .input import Input from .termhelpers import Nonblocking, Cbreak, Termmode from .formatstring import FmtStr, fmtstr from .formatstringarray import FSArray, fsarray
data/curtsies-0.4.2/curtsies/__init__.py
238
85
213,480
LOAD_CONST "Dataset definition for bool_q.\n\nDEPRECATED!\nIf you want to use the BoolQ dataset builder class, use:\ntfds.builder_cls('bool_q')\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 bool_q. DEPRECATED! If you want to use the BoolQ dataset builder class, use: tfds.builder_cls('bool_q') """ from tensorflow_datasets.core import lazy_builder_import BoolQ = lazy_builder_import.LazyBuilderImport("bool_q")
data/tensorflow-datasets-4.9.4/tensorflow_datasets/text/bool_q/bool_q.py
130
85
256,242
LOAD_CONST 0 LOAD_CONST None IMPORT_NAME typer STORE_NAME typer LOAD_CONST 0 LOAD_CONST ('Annotated',) IMPORT_NAME typing_extensions IMPORT_FROM Annotated STORE_NAME Annotated POP_TOP LOAD_CONST (0,) LOAD_NAME Annotated LOAD_NAME int LOAD_NAME typer LOAD_ATTR Option LOAD_CONST '--verbose' LOAD_CONST '-v' LOAD_CONST T...
import typer from typing_extensions import Annotated def main(verbose: Annotated[int, typer.Option("--verbose", "-v", count=True)] = 0): print(f"Verbose level is {verbose}") if __name__ == "__main__": typer.run(main)
data/typer-0.9.0/docs_src/parameter_types/number/tutorial003_an.py
210
85
224,486
LOAD_CONST 'Attempt to import GLES libraries' STORE_NAME __doc__ LOAD_CONST 0 LOAD_CONST None IMPORT_NAME os STORE_NAME os LOAD_CONST 'PYOPENGL_PLATFORM' LOAD_NAME os LOAD_ATTR environ COMPARE_OP not in POP_JUMP_IF_FALSE LOAD_CONST 'egl' LOAD_NAME os LOAD_ATTR environ LOAD_CONST 'PYOPENGL_PLATFORM' STORE_SUBSCR LOA...
"""Attempt to import GLES libraries""" import os if not "PYOPENGL_PLATFORM" in os.environ: os.environ["PYOPENGL_PLATFORM"] = "egl" from OpenGL.GLES1 import * from OpenGL.GLES2 import * from OpenGL.GLES3 import *
data/PyOpenGL-3.1.7/tests/check_gles_imports.py
152
85
58,568
LOAD_CONST 0 LOAD_CONST ('Any',) IMPORT_NAME typing IMPORT_FROM Any STORE_NAME Any POP_TOP LOAD_CONST 0 LOAD_CONST ('Iterator', 'AsyncIterator') IMPORT_NAME typing_extensions IMPORT_FROM Iterator STORE_NAME Iterator IMPORT_FROM AsyncIterator STORE_NAME AsyncIterator POP_TOP LOAD_NAME Iterator LOAD_NAME Any BINARY_SUB...
from typing import Any from typing_extensions import Iterator, AsyncIterator def consume_sync_iterator(iterator: Iterator[Any]) -> None: for _ in iterator: ... async def consume_async_iterator(iterator: AsyncIterator[Any]) -> None: async for _ in iterator: ...
data/anthropic-0.16.0/src/anthropic/_utils/_streams.py
323
85
222,023
LOAD_CONST 0 LOAD_CONST ('TestCase',) IMPORT_NAME PyObjCTools.TestSupport IMPORT_FROM TestCase STORE_NAME TestCase POP_TOP LOAD_CONST 0 LOAD_CONST None IMPORT_NAME WebKit STORE_NAME WebKit LOAD_BUILD_CLASS LOAD_CONST <code object TestDOMHTMLDListElement at 0x7fab82278c90, file "f.py", line 5> LOAD_CONST 'TestDOMHTMLD...
from PyObjCTools.TestSupport import TestCase import WebKit class TestDOMHTMLDListElement(TestCase): def testMethods(self): self.assertResultIsBOOL(WebKit.DOMHTMLDListElement.compact) self.assertArgIsBOOL(WebKit.DOMHTMLDListElement.setCompact_, 0)
data/pyobjc-framework-WebKit-10.1/PyObjCTest/test_domhtmldlistelement.py
279
85
418,835
LOAD_CONST "Dataset definition for kitti.\n\nDEPRECATED!\nIf you want to use the Kitti dataset builder class, use:\ntfds.builder_cls('kitti')\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_TO...
"""Dataset definition for kitti. DEPRECATED! If you want to use the Kitti dataset builder class, use: tfds.builder_cls('kitti') """ from tensorflow_datasets.core import lazy_builder_import Kitti = lazy_builder_import.LazyBuilderImport("kitti")
data/tensorflow-datasets-4.9.4/tensorflow_datasets/object_detection/kitti.py
128
85
255,125
LOAD_CONST '\nThe container for Endpoints\n' STORE_NAME __doc__ LOAD_CONST 0 LOAD_CONST ('dataclass',) IMPORT_NAME dataclasses IMPORT_FROM dataclass STORE_NAME dataclass POP_TOP LOAD_CONST 0 LOAD_CONST ('Any',) IMPORT_NAME typing IMPORT_FROM Any STORE_NAME Any POP_TOP LOAD_NAME dataclass LOAD_BUILD_CLASS LOAD_CONST ...
""" The container for Endpoints """ from dataclasses import dataclass from typing import Any @dataclass class EndpointsDef: """ Dataclass for containing entries of endpoints data """ LogicalResourceId: str PhysicalResourceId: str CloudEndpoint: Any Methods: Any
data/aws-sam-cli-1.109.0/samcli/lib/list/endpoints/endpoints_def.py
271
85
432,385
LOAD_CONST './detr_r50_8xb2-500e_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_FUNCTION S...
_base_ = "./detr_r50_8xb2-500e_coco.py" model = dict( backbone=dict( depth=101, init_cfg=dict(type="Pretrained", checkpoint="torchvision://resnet101"), ) )
data/mmdet-3.3.0/mmdet/.mim/configs/detr/detr_r101_8xb2-500e_coco.py
109
85
151,561
LOAD_CONST 0 LOAD_CONST ('absolute_import', 'division', 'unicode_literals') IMPORT_NAME __future__ IMPORT_FROM absolute_import STORE_NAME absolute_import IMPORT_FROM division STORE_NAME division IMPORT_FROM unicode_literals STORE_NAME unicode_literals POP_TOP LOAD_BUILD_CLASS LOAD_CONST <code object Filter at 0x7fab70...
from __future__ import absolute_import, division, unicode_literals class Filter(object): def __init__(self, source): self.source = source def __iter__(self): return iter(self.source) def __getattr__(self, name): return getattr(self.source, name)
data/bleach-6.1.0/bleach/_vendor/html5lib/filters/base.py
343
85
287,315
LOAD_CONST 'Misc decorators.' STORE_NAME __doc__ LOAD_CONST 0 LOAD_CONST ('abstractmethod',) IMPORT_NAME abc IMPORT_FROM abstractmethod STORE_NAME abstractmethod POP_TOP LOAD_CONST <code object abstract_property at 0x7f8ab73b69c0, file "f.py", line 6> LOAD_CONST 'abstract_property' MAKE_FUNCTION STORE_NAME abstract_p...
"""Misc decorators.""" from abc import abstractmethod def abstract_property(func): """ Abstract property decorator. :param func: method to decorate :type func: callable :returns: decorated function :rtype: callable """ return property(abstractmethod(func))
data/splitio_client-9.6.1/splitio/util/decorators.py
112
85
10,302
LOAD_CONST 'Module containing basis change passes.' STORE_NAME __doc__ LOAD_CONST 1 LOAD_CONST ('Decompose',) IMPORT_NAME decompose IMPORT_FROM Decompose STORE_NAME Decompose POP_TOP LOAD_CONST 1 LOAD_CONST ('UnrollCustomDefinitions',) IMPORT_NAME unroll_custom_definitions IMPORT_FROM UnrollCustomDefinitions STORE_NA...
"""Module containing basis change passes.""" from .decompose import Decompose from .unroll_custom_definitions import UnrollCustomDefinitions from .unroll_3q_or_more import Unroll3qOrMore from .basis_translator import BasisTranslator from .translate_parameterized import TranslateParameterizedGates
data/qiskit-1.0.0/qiskit/transpiler/passes/basis/__init__.py
214
85
283,016
LOAD_CONST 0 LOAD_CONST None IMPORT_NAME pickle STORE_NAME pickle LOAD_CONST 0 LOAD_CONST None IMPORT_NAME sys STORE_NAME sys LOAD_CONST 0 LOAD_CONST ('OmegaConf',) IMPORT_NAME omegaconf IMPORT_FROM OmegaConf STORE_NAME OmegaConf POP_TOP LOAD_NAME open LOAD_NAME sys LOAD_ATTR argv LOAD_CONST 1 BINARY_SUBSCR FORMAT_V...
import pickle import sys from omegaconf import OmegaConf with open(f"{sys.argv[1]}.pickle", mode="rb") as fp: cfg = pickle.load(fp) assert cfg == OmegaConf.create({"a": [{"b": 10}]})
data/omegaconf-2.3.0/tests/data/load.py
193
85
166,744
LOAD_CONST 0 LOAD_CONST ('cloud',) IMPORT_NAME openstack IMPORT_FROM cloud STORE_NAME openstack POP_TOP LOAD_NAME openstack LOAD_ATTR enable_logging LOAD_CONST True LOAD_CONST ('http_debug',) CALL_FUNCTION POP_TOP LOAD_NAME openstack LOAD_ATTR connect LOAD_CONST 'my-vexxhost' LOAD_CONST 'ca-ymq-1' LOAD_CONST ('cloud'...
from openstack import cloud as openstack openstack.enable_logging(http_debug=True) cloud = openstack.connect(cloud="my-vexxhost", region_name="ca-ymq-1") cloud.get_image("Ubuntu 16.04.1 LTS [2017-03-03]")
data/openstacksdk-2.1.0/examples/cloud/http-debug-logging.py
134
85
284,802
LOAD_CONST 'Exceptions for database connectors.' STORE_NAME __doc__ LOAD_BUILD_CLASS LOAD_CONST <code object ConnectorError at 0x7faa5f52fdb0, file "f.py", line 4> LOAD_CONST 'ConnectorError' MAKE_FUNCTION LOAD_CONST 'ConnectorError' LOAD_NAME Exception CALL_FUNCTION STORE_NAME ConnectorError LOAD_BUILD_CLASS LOAD_CO...
"""Exceptions for database connectors.""" class ConnectorError(Exception): """Base connector error""" class DumpError(ConnectorError): """Error on dump""" class RestoreError(ConnectorError): """Error on restore""" class CommandConnectorError(ConnectorError): """Failing command"""
data/django-dbbackup-4.1.0/dbbackup/db/exceptions.py
451
85
243,009
LOAD_CONST 0 LOAD_CONST None IMPORT_NAME typer STORE_NAME typer LOAD_CONST 0 LOAD_CONST ('Annotated',) IMPORT_NAME typing_extensions IMPORT_FROM Annotated STORE_NAME Annotated POP_TOP LOAD_CONST (False,) LOAD_NAME Annotated LOAD_NAME bool LOAD_NAME typer LOAD_METHOD Option LOAD_CONST '--force' CALL_METHOD BUILD_TUPLE...
import typer from typing_extensions import Annotated def main(force: Annotated[bool, typer.Option("--force")] = False): if force: print("Forcing operation") else: print("Not forcing") if __name__ == "__main__": typer.run(main)
data/typer-0.9.0/docs_src/parameter_types/bool/tutorial001_an.py
211
85
224,487
LOAD_CONST 0 LOAD_CONST ('TestBanditTrainer',) IMPORT_NAME tests.test_trainers.test_bandit_trainer IMPORT_FROM TestBanditTrainer STORE_NAME TestBanditTrainer POP_TOP LOAD_CONST 0 LOAD_CONST ('TestClassicalTrainer',) IMPORT_NAME tests.test_trainers.test_classical_trainer IMPORT_FROM TestClassicalTrainer STORE_NAME Test...
from tests.test_trainers.test_bandit_trainer import TestBanditTrainer # noqa from tests.test_trainers.test_classical_trainer import TestClassicalTrainer # noqa from tests.test_trainers.test_deep_trainer import TestDeepTrainer # noqa
data/utilmy-0.1.17078128/utilmy/recsys/bandits/genrl/tests/test_trainers/__init__.py
156
85
350,366
LOAD_CONST 0 LOAD_CONST ('Configuration',) IMPORT_NAME stripe.billing_portal._configuration IMPORT_FROM Configuration STORE_NAME Configuration POP_TOP LOAD_CONST 0 LOAD_CONST ('ConfigurationService',) IMPORT_NAME stripe.billing_portal._configuration_service IMPORT_FROM ConfigurationService STORE_NAME ConfigurationServ...
from stripe.billing_portal._configuration import Configuration as Configuration from stripe.billing_portal._configuration_service import ( ConfigurationService as ConfigurationService, ) from stripe.billing_portal._session import Session as Session from stripe.billing_portal._session_service import ( SessionSer...
data/stripe-8.3.0/stripe/billing_portal/__init__.py
138
85
12,121
LOAD_CONST 0 LOAD_CONST ('Enum',) IMPORT_NAME enum IMPORT_FROM Enum STORE_NAME Enum POP_TOP LOAD_BUILD_CLASS LOAD_CONST <code object DelegateMeetingMessageDeliveryOptions at 0x7fab4298e660, file "f.py", line 4> LOAD_CONST 'DelegateMeetingMessageDeliveryOptions' MAKE_FUNCTION LOAD_CONST 'DelegateMeetingMessageDeliveryO...
from enum import Enum class DelegateMeetingMessageDeliveryOptions(str, Enum): SendToDelegateAndInformationToPrincipal = ( "sendToDelegateAndInformationToPrincipal", ) SendToDelegateAndPrincipal = ("sendToDelegateAndPrincipal",) SendToDelegateOnly = ("sendToDelegateOnly",)
data/msgraph-sdk-1.1.0/msgraph/generated/models/delegate_meeting_message_delivery_options.py
208
85
261,844
LOAD_CONST 0 LOAD_CONST None IMPORT_NAME logging STORE_NAME logging LOAD_CONST (None,) LOAD_CONST <code object get_default_logger at 0x7fab641e7a50, file "f.py", line 4> LOAD_CONST 'get_default_logger' MAKE_FUNCTION STORE_NAME get_default_logger LOAD_CONST None RETURN_VALUE LOAD_GLOBAL logging LOAD_METHOD getLogger L...
import logging def get_default_logger(level=None): logger = logging.getLogger("falcon_cors") logger.setLevel(logging.INFO) logger.propogate = False if not logger.handlers: handler = logging.StreamHandler() logger.addHandler(handler) return logger
data/falcon-cors-1.1.7/src/falcon_cors/log.py
176
85
222,169
LOAD_BUILD_CLASS LOAD_CONST <code object Convert at 0x7fab700ad6f0, file "f.py", line 1> LOAD_CONST 'Convert' MAKE_FUNCTION LOAD_CONST 'Convert' LOAD_NAME object CALL_FUNCTION STORE_NAME Convert LOAD_CONST None RETURN_VALUE LOAD_NAME __name__ STORE_NAME __module__ LOAD_CONST 'Convert' STORE_NAME __qualname__ LOAD_CON...
class Convert(object): """ Converts image to different mode """ def __init__(self, mode): """ :param mode: Define the mode to which an image is to be converted """ self.mode = mode def process(self, img): return img.convert(self.mode)
data/pilkit-3.0/pilkit/processors/convert.py
232
85
184,099
LOAD_CONST 'Test Package set up.' STORE_NAME __doc__ LOAD_CONST 0 LOAD_CONST ('absolute_import',) IMPORT_NAME __future__ IMPORT_FROM absolute_import STORE_NAME absolute_import POP_TOP LOAD_CONST 'afshar@google.com (Ali Afshar)' STORE_NAME __author__ LOAD_CONST 0 LOAD_CONST ('_helpers',) IMPORT_NAME googleapiclient I...
"""Test Package set up.""" from __future__ import absolute_import __author__ = "afshar@google.com (Ali Afshar)" from googleapiclient import _helpers as util def setup_package(): """Run on testing package.""" util.positional_parameters_enforcement = "EXCEPTION"
data/google-api-python-client-2.118.0/tests/__init__.py
176
85
380,842
LOAD_CONST 0 LOAD_CONST None IMPORT_NAME google.protobuf STORE_NAME google LOAD_NAME google LOAD_ATTR protobuf LOAD_ATTR __version__ LOAD_CONST 0 BINARY_SUBSCR STORE_NAME protobuf_version LOAD_NAME protobuf_version LOAD_CONST '3' COMPARE_OP == POP_JUMP_IF_FALSE LOAD_CONST 0 LOAD_CONST ('*',) IMPORT_NAME wandb.proto....
import google.protobuf protobuf_version = google.protobuf.__version__[0] if protobuf_version == "3": from wandb.proto.v3.wandb_server_pb2 import * elif protobuf_version == "4": from wandb.proto.v4.wandb_server_pb2 import *
data/wandb-0.16.3/wandb/proto/wandb_server_pb2.py
147
85
360,626
LOAD_CONST None STORE_GLOBAL x LOAD_CONST <code object time_foo at 0x7fab40da1ed0, file "f.py", line 4> LOAD_CONST 'time_foo' MAKE_FUNCTION STORE_NAME time_foo LOAD_CONST <code object setup_foo at 0x7faaac3cd930, file "f.py", line 11> LOAD_CONST 'setup_foo' MAKE_FUNCTION STORE_NAME setup_foo LOAD_NAME setup_foo LOAD...
x = None def time_foo(): if x != 42: raise RuntimeError() for y in range(1000): pass def setup_foo(): global x x = 42 time_foo.setup = setup_foo time_foo.sample_time = 0.1
data/asv-0.6.2/test/benchmark/subdir/time_subdir.py
215
85
393,016
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_reduce_argmax_uint8_64_1(): raise NotImplementedError("Unable to generate any tests for kernel")
data/awkward-cpp-29/tests-cpu-kernels/test_cpuawkward_reduce_argmax_uint8_64.py
222
85
221,516
LOAD_CONST 0 LOAD_CONST None IMPORT_NAME sys STORE_NAME sys LOAD_NAME sys LOAD_ATTR argv LOAD_CONST 0 BINARY_SUBSCR LOAD_CONST '--scan' COMPARE_OP == POP_JUMP_IF_FALSE LOAD_CONST None RETURN_VALUE
import sys if True: pass if True: pass pass if sys.argv[0] == "--scan": if False: pass pass if True: pass elif False: pass if True: pass elif False: pass else: pass
data/spark_parser-1.8.9/example/python2/test/format/if.py
44
85
334,754
LOAD_CONST 1 LOAD_CONST ('*',) IMPORT_NAME base IMPORT_STAR LOAD_CONST True STORE_NAME DEBUG LOAD_CONST '{{ secret_key }}' STORE_NAME SECRET_KEY LOAD_CONST '*' BUILD_LIST STORE_NAME ALLOWED_HOSTS LOAD_CONST 'django.core.mail.backends.console.EmailBackend' STORE_NAME EMAIL_BACKEND SETUP_EXCEPT to 40 LOAD_CONST 1 L...
from .base import * DEBUG = True SECRET_KEY = "{{ secret_key }}" ALLOWED_HOSTS = ["*"] EMAIL_BACKEND = "django.core.mail.backends.console.EmailBackend" try: from .local import * except ImportError: pass
data/wagtail-6.0.1/wagtail/project_template/project_name/settings/dev.py
149
85
200,180
LOAD_BUILD_CLASS LOAD_CONST <code object ChannelMembershipType at 0x7fab7002b150, file "f.py", line 1> LOAD_CONST 'ChannelMembershipType' MAKE_FUNCTION LOAD_CONST 'ChannelMembershipType' CALL_FUNCTION STORE_NAME ChannelMembershipType LOAD_CONST None RETURN_VALUE LOAD_NAME __name__ STORE_NAME __module__ LOAD_CONST 'Cha...
class ChannelMembershipType: standard = "standard" """Channel inherits the list of members of the parent team.""" private = "private" """Channel can have members that are a subset of all the members on the parent team.""" shared = "shared" """Members can be directly added to the channel withou...
data/Office365-REST-Python-Client-2.5.5/office365/teams/channels/membership_type.py
126
85
188,706
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 0x7faa5ec3bae0, 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/profile_2018_03_01_hybrid/snapshot/__cmd_group.py
193
85
376,893
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 StateDeprecationDockerNetworkPresent at 0x7faa761eeed0, file "f.py", line 4> LOAD_CONST 'StateDeprecationDockerNetworkPresent' MAKE_FUNCT...
from saltlint.linter.rule import DeprecationRule class StateDeprecationDockerNetworkPresent(DeprecationRule): id = "911" state = "docker.network_present" deprecated_since = "2017.7.0" version_added = "v0.5.0"
data/salt-lint-0.9.2/saltlint/rules/StateDeprecationDockerNetworkPresent.py
219
85
436,341
LOAD_CONST 'Test the package' STORE_NAME __doc__ LOAD_CONST 0 LOAD_CONST ('raise_on_bad_version',) IMPORT_NAME jupyter_contrib_core.testing_utils IMPORT_FROM raise_on_bad_version STORE_NAME raise_on_bad_version POP_TOP LOAD_CONST 0 LOAD_CONST ('__version__',) IMPORT_NAME jupyter_contrib_nbextensions IMPORT_FROM __ver...
"""Test the package""" from jupyter_contrib_core.testing_utils import raise_on_bad_version from jupyter_contrib_nbextensions import __version__ def test_current_version(): """check that version string complies with pep440""" raise_on_bad_version(__version__)
data/jupyter_contrib_nbextensions-0.7.0/tests/test_misc.py
185
85
305,633
LOAD_CONST 0 LOAD_CONST None IMPORT_NAME google.protobuf STORE_NAME google LOAD_NAME google LOAD_ATTR protobuf LOAD_ATTR __version__ LOAD_CONST 0 BINARY_SUBSCR STORE_NAME protobuf_version LOAD_NAME protobuf_version LOAD_CONST '3' COMPARE_OP == POP_JUMP_IF_FALSE LOAD_CONST 0 LOAD_CONST ('*',) IMPORT_NAME wandb.proto....
import google.protobuf protobuf_version = google.protobuf.__version__[0] if protobuf_version == "3": from wandb.proto.v3.wandb_settings_pb2 import * elif protobuf_version == "4": from wandb.proto.v4.wandb_settings_pb2 import *
data/wandb-0.16.3/wandb/proto/wandb_settings_pb2.py
147
85
360,625
LOAD_CONST 1 LOAD_CONST ('*',) IMPORT_NAME test_deprecations IMPORT_STAR LOAD_CONST 1 LOAD_CONST ('*',) IMPORT_NAME test_forms IMPORT_STAR LOAD_CONST 1 LOAD_CONST ('GisTests',) IMPORT_NAME test_gis IMPORT_FROM GisTests STORE_NAME GisTests POP_TOP LOAD_CONST 1 LOAD_CONST ('*',) IMPORT_NAME test_modelforms IMPORT_STAR...
from .test_deprecations import * from .test_forms import * from .test_gis import GisTests from .test_modelforms import * from .test_layouts import * from .test_rendering import * from .test_templatetags import * from .test_widgets import * from .test_fields import *
data/django-floppyforms-1.9.0/tests/tests.py
188
85
361,510
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_CONST 0 LOAD_CONST None IMPORT_NAME wx.html STORE_NAME wx LOAD_BUILD_CLASS LOAD_CONST <co...
import unittest from unittests import wtc import wx import wx.html class htmlwinpars_Tests(wtc.WidgetTestCase): def test_htmlwinpars1(self): obj = wx.html.HtmlWinParser() if __name__ == "__main__": unittest.main()
data/wxPython-4.2.1/unittests/test_htmlwinpars.py
313
85
302,092
LOAD_CONST 0 LOAD_CONST ('TestCase',) IMPORT_NAME PyObjCTools.TestSupport IMPORT_FROM TestCase STORE_NAME TestCase POP_TOP LOAD_CONST 0 LOAD_CONST None IMPORT_NAME HealthKit STORE_NAME HealthKit LOAD_BUILD_CLASS LOAD_CONST <code object TestHKSourceQuery at 0x7fae2f37af60, file "f.py", line 5> LOAD_CONST 'TestHKSource...
from PyObjCTools.TestSupport import TestCase import HealthKit class TestHKSourceQuery(TestCase): def test_methods(self): self.assertArgIsBlock( HealthKit.HKSourceQuery.initWithSampleType_samplePredicate_completionHandler_, 2, b"v@@@", )
data/pyobjc-framework-HealthKit-10.1/PyObjCTest/test_hksourcequery.py
266
85
385,351
LOAD_CONST 0 LOAD_CONST ('ExtendedEnum',) IMPORT_NAME dbt_semantic_interfaces.enum_extension IMPORT_FROM ExtendedEnum STORE_NAME ExtendedEnum POP_TOP LOAD_BUILD_CLASS LOAD_CONST <code object SemanticManifestNodeType at 0x7fab82097a50, file "f.py", line 4> LOAD_CONST 'SemanticManifestNodeType' MAKE_FUNCTION LOAD_CONST ...
from dbt_semantic_interfaces.enum_extension import ExtendedEnum class SemanticManifestNodeType(ExtendedEnum): """Currently supported node types.""" METRIC = "metric" SAVED_QUERY = "saved_query" SEMANTIC_MODEL = "semantic_model"
data/dbt_semantic_interfaces-0.4.3/dbt_semantic_interfaces/type_enums/semantic_manifest_node_type.py
214
85
105,183
LOAD_CONST 0 LOAD_CONST ('App',) IMPORT_NAME kivy.app IMPORT_FROM App STORE_NAME App POP_TOP LOAD_CONST 0 LOAD_CONST ('Widget',) IMPORT_NAME kivy.uix.widget IMPORT_FROM Widget STORE_NAME Widget POP_TOP LOAD_BUILD_CLASS LOAD_CONST <code object MyPaintWidget at 0x7fa6dc509e40, file "f.py", line 5> LOAD_CONST 'MyPaintWi...
from kivy.app import App from kivy.uix.widget import Widget class MyPaintWidget(Widget): pass class MyPaintApp(App): def build(self): return MyPaintWidget() if __name__ == "__main__": MyPaintApp().run()
data/Kivy-2.3.0/examples/guide/firstwidget/1_skeleton.py
348
85
47,835
LOAD_CONST 0 LOAD_CONST ('admin',) IMPORT_NAME django.contrib IMPORT_FROM admin STORE_NAME admin POP_TOP LOAD_CONST 0 LOAD_CONST ('UserSession',) IMPORT_NAME allauth.usersessions.models IMPORT_FROM UserSession STORE_NAME UserSession POP_TOP LOAD_NAME admin LOAD_METHOD register LOAD_NAME UserSession CALL_METHOD LOAD_B...
from django.contrib import admin from allauth.usersessions.models import UserSession @admin.register(UserSession) class UserSessionAdmin(admin.ModelAdmin): raw_id_fields = ("user",) list_display = ("user", "created_at", "last_seen_at", "ip", "user_agent")
data/django-allauth-0.61.1/allauth/usersessions/admin.py
216
85
336,146
LOAD_CONST '\nAuto-generated protobuf class definitions.\n\nProtobuf allows us to serialize/deserialize classes across languages\n' STORE_NAME __doc__ LOAD_CONST 1 LOAD_CONST ('*',) IMPORT_NAME v0_constraints_pb2 IMPORT_STAR LOAD_CONST 1 LOAD_CONST ('*',) IMPORT_NAME v0_messages_pb2 IMPORT_STAR LOAD_CONST 1 LOAD_CON...
""" Auto-generated protobuf class definitions. Protobuf allows us to serialize/deserialize classes across languages """ from .v0_constraints_pb2 import * # noqa from .v0_messages_pb2 import * # noqa from .v0_summaries_pb2 import * # noqa
data/whylogs-1.3.24/whylogs/core/proto/v0/__init__.py
111
85
432,453
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 ModuleDocFragment(object): DOCUMENTATION = r"""options: {} notes: - For more information on using Ansible to manage network devices see the :ref:`Ansible Network Guide <network_guide>` """
data/ansible-9.2.0/ansible_collections/vyos/vyos/plugins/doc_fragments/vyos.py
214
85
279,143
LOAD_CONST 0 LOAD_CONST None IMPORT_NAME sys STORE_NAME sys LOAD_NAME sys LOAD_ATTR version_info LOAD_CONST (3, 0) COMPARE_OP > POP_JUMP_IF_FALSE LOAD_CONST 0 LOAD_CONST ('html_to_jira_wiki', 'ATX', 'ATX_CLOSED') IMPORT_NAME html2jirawiki.html2jirawiki IMPORT_FROM html_to_jira_wiki STORE_NAME html_to_jira_wiki IMPORT...
import sys if sys.version_info > (3, 0): from html2jirawiki.html2jirawiki import html_to_jira_wiki, ATX, ATX_CLOSED else: from html2jirawiki import html_to_jira_wiki, ATX, ATX_CLOSED
data/html2jirawiki-1.0.0/html2jirawiki/__init__.py
219
85
52,083
LOAD_CONST 0 LOAD_CONST None IMPORT_NAME google.protobuf STORE_NAME google LOAD_NAME google LOAD_ATTR protobuf LOAD_ATTR __version__ LOAD_CONST 0 BINARY_SUBSCR STORE_NAME protobuf_version LOAD_NAME protobuf_version LOAD_CONST '3' COMPARE_OP == POP_JUMP_IF_FALSE LOAD_CONST 0 LOAD_CONST ('*',) IMPORT_NAME wandb.proto....
import google.protobuf protobuf_version = google.protobuf.__version__[0] if protobuf_version == "3": from wandb.proto.v3.wandb_internal_pb2 import * elif protobuf_version == "4": from wandb.proto.v4.wandb_internal_pb2 import *
data/wandb-0.16.3/wandb/proto/wandb_internal_pb2.py
147
85
360,628
LOAD_CONST 0 LOAD_CONST None IMPORT_NAME CoreAudio STORE_NAME CoreAudio 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 TestHostTime at 0x7fab7014f780, file "f.py", line 5> LOAD_CONST 'TestHostTime' MAK...
import CoreAudio from PyObjCTools.TestSupport import TestCase class TestHostTime(TestCase): def testFunctions(self): CoreAudio.AudioGetCurrentHostTime CoreAudio.AudioGetHostClockFrequency CoreAudio.AudioGetHostClockMinimumTimeDelta CoreAudio.AudioConvertNanosToHostTime
data/pyobjc-framework-CoreAudio-10.1/PyObjCTest/test_hosttime.py
265
85
160,944
LOAD_CONST 'Auto-generated file, do not edit by hand. 506 metadata' STORE_NAME __doc__ LOAD_CONST 2 LOAD_CONST ('NumberFormat',) IMPORT_NAME phonemetadata IMPORT_FROM NumberFormat STORE_NAME NumberFormat POP_TOP LOAD_NAME NumberFormat LOAD_CONST '(\\d{4})(\\d{2})(\\d{2})' LOAD_CONST '\\1 \\2 \\3' LOAD_CONST ('pattern...
"""Auto-generated file, do not edit by hand. 506 metadata""" from ..phonemetadata import NumberFormat PHONE_ALT_FORMAT_506 = [ NumberFormat(pattern="(\\d{4})(\\d{2})(\\d{2})", format="\\1 \\2 \\3") ]
data/phonenumberslite-8.13.30/phonenumbers/data/alt_format_506.py
119
85
440,365
LOAD_CONST 0 LOAD_CONST ('NamedTuple',) IMPORT_NAME typing IMPORT_FROM NamedTuple STORE_NAME NamedTuple POP_TOP LOAD_BUILD_CLASS LOAD_CONST <code object FlowControlSettings at 0x7faa75f5e5d0, file "f.py", line 4> LOAD_CONST 'FlowControlSettings' MAKE_FUNCTION LOAD_CONST 'FlowControlSettings' LOAD_NAME NamedTuple CALL_...
from typing import NamedTuple class FlowControlSettings(NamedTuple): messages_outstanding: int bytes_outstanding: int _MAX_INT64 = 0x7FFFFFFFFFFFFFFF DISABLED_FLOW_CONTROL = FlowControlSettings(_MAX_INT64, _MAX_INT64)
data/google-cloud-pubsublite-1.9.0/google/cloud/pubsublite/types/flow_control_settings.py
238
85
249,862
LOAD_CONST 0 LOAD_CONST ('Optional',) IMPORT_NAME typing IMPORT_FROM Optional STORE_NAME Optional POP_TOP LOAD_CONST 0 LOAD_CONST ('Response',) IMPORT_NAME fastapi IMPORT_FROM Response STORE_NAME Response POP_TOP LOAD_CONST 0 LOAD_CONST ('StarletteOpenAPIResponse',) IMPORT_NAME openapi_core.contrib.starlette.response...
from typing import Optional from fastapi import Response from openapi_core.contrib.starlette.responses import StarletteOpenAPIResponse class FastAPIOpenAPIResponse(StarletteOpenAPIResponse): def __init__(self, response: Response, data: Optional[bytes] = None): super().__init__(response, data=data)
data/openapi_core-0.19.0/openapi_core/contrib/fastapi/responses.py
335
85
271,202
LOAD_CONST 'generate_hash' BUILD_LIST STORE_NAME __all__ LOAD_CONST 0 LOAD_CONST None IMPORT_NAME hashlib STORE_NAME hashlib LOAD_NAME int LOAD_NAME str LOAD_CONST ('length', 'return') BUILD_CONST_KEY_MAP LOAD_CONST <code object generate_hash at 0x7fae471296f0, file "f.py", line 6> LOAD_CONST 'generate_hash' MAKE_FUN...
__all__ = ["generate_hash"] import hashlib def generate_hash(*descriptors, length: int) -> str: hasher = hashlib.sha256() for descriptor in descriptors: hasher.update(str(descriptor).encode()) return hasher.hexdigest()[-length:]
data/neptune_client-1.9.1/src/neptune/internal/utils/hashing.py
194
85
128,000
LOAD_CONST 'Utility classes used by the Durable Function python library for dealing with entities.\n\n_Internal Only_\n' STORE_NAME __doc__ LOAD_CONST 1 LOAD_CONST ('RequestMessage',) IMPORT_NAME RequestMessage IMPORT_FROM RequestMessage STORE_NAME RequestMessage POP_TOP LOAD_CONST 1 LOAD_CONST ('OperationResult',) I...
"""Utility classes used by the Durable Function python library for dealing with entities. _Internal Only_ """ from .RequestMessage import RequestMessage from .OperationResult import OperationResult from .EntityState import EntityState from .Signal import Signal __all__ = ["RequestMessage", "OperationResult", "Signa...
data/azure-functions-durable-1.2.9/azure/durable_functions/models/entities/__init__.py
178
85
249,057
LOAD_CONST 0 LOAD_CONST ('OpenIDConnectTests',) IMPORT_NAME allauth.socialaccount.tests IMPORT_FROM OpenIDConnectTests STORE_NAME OpenIDConnectTests POP_TOP LOAD_CONST 0 LOAD_CONST ('TestCase',) IMPORT_NAME allauth.tests IMPORT_FROM TestCase STORE_NAME TestCase POP_TOP LOAD_BUILD_CLASS LOAD_CONST <code object OpenIDC...
from allauth.socialaccount.tests import OpenIDConnectTests from allauth.tests import TestCase class OpenIDConnectTests(OpenIDConnectTests, TestCase): provider_id = "oidc-server" class OtherOpenIDConnectTests(OpenIDConnectTests, TestCase): provider_id = "other-oidc-server"
data/django-allauth-0.61.1/allauth/socialaccount/providers/openid_connect/tests.py
311
85
336,540
LOAD_CONST 0 LOAD_CONST ('LightningWork',) IMPORT_NAME lightning.app IMPORT_FROM LightningWork STORE_NAME LightningWork POP_TOP LOAD_BUILD_CLASS LOAD_CONST <code object TemplateComponent at 0x7f8e2ff25ae0, file "f.py", line 4> LOAD_CONST 'TemplateComponent' MAKE_FUNCTION LOAD_CONST 'TemplateComponent' LOAD_NAME Lightn...
from lightning.app import LightningWork class TemplateComponent(LightningWork): def __init__(self) -> None: super().__init__() self.value = 0 def run(self): self.value += 1 print("welcome to your work component") print("this is running inside a work")
data/lightning-2.2.0.post0/src/lightning/app/cli/component-template/placeholdername/component.py
339
85
121,499
SETUP_ANNOTATIONS LOAD_CONST 0 LOAD_CONST ('List',) IMPORT_NAME typing IMPORT_FROM List STORE_NAME List POP_TOP LOAD_CONST 0 LOAD_CONST ('checkpoint_wrapper',) IMPORT_NAME fairscale.nn.checkpoint IMPORT_FROM checkpoint_wrapper STORE_NAME checkpoint_wrapper POP_TOP LOAD_CONST 1 LOAD_CONST ('FlattenParamsWrapper', '_en...
from typing import List from fairscale.nn.checkpoint import checkpoint_wrapper from .flatten_params_wrapper import ( FlattenParamsWrapper, _enable_pre_load_state_dict_hook, ) from .param_bucket import GradBucket, ParamBucket __all__: List[str] = []
data/fairscale-0.4.13/fairscale/nn/misc/__init__.py
220
85
193,821
LOAD_CONST 'Error classes for PostgreSQL error codes\n' STORE_NAME __doc__ LOAD_CONST <code object lookup at 0x7fab8227aed0, 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-binary-2.9.9/lib/errors.py
117
85
238,088
LOAD_BUILD_CLASS LOAD_CONST <code object DjangoElasticsearchDslError at 0x7f8af15c2390, file "f.py", line 1> LOAD_CONST 'DjangoElasticsearchDslError' MAKE_FUNCTION LOAD_CONST 'DjangoElasticsearchDslError' LOAD_NAME Exception CALL_FUNCTION STORE_NAME DjangoElasticsearchDslError LOAD_BUILD_CLASS LOAD_CONST <code object ...
class DjangoElasticsearchDslError(Exception): pass class VariableLookupError(DjangoElasticsearchDslError): pass class RedeclaredFieldError(DjangoElasticsearchDslError): pass class ModelFieldNotMappedError(DjangoElasticsearchDslError): pass
data/django-elasticsearch-dsl-8.0/django_elasticsearch_dsl/exceptions.py
460
85
405,681
LOAD_CONST 0 LOAD_CONST ('CommunityData', 'UsmUserData') IMPORT_NAME pysnmp.hlapi IMPORT_FROM CommunityData STORE_NAME CommunityData IMPORT_FROM UsmUserData STORE_NAME UsmUserData POP_TOP LOAD_NAME CommunityData LOAD_CONST 'public' LOAD_CONST 0 LOAD_CONST ('mpModel',) CALL_FUNCTION STORE_NAME a LOAD_NAME UsmUserData ...
from pysnmp.hlapi import CommunityData, UsmUserData a = CommunityData("public", mpModel=0) insecure = UsmUserData("securityName") auth_no_priv = UsmUserData("securityName", "authName") less_insecure = UsmUserData("securityName", "authName", "privName")
data/bandit-1.7.7/examples/snmp.py
159
85
56,725
LOAD_CONST 1 LOAD_CONST ('_GCP',) IMPORT_NAME IMPORT_FROM _GCP STORE_NAME _GCP POP_TOP LOAD_BUILD_CLASS LOAD_CONST <code object _Operations at 0x7fab81fc6030, file "f.py", line 4> LOAD_CONST '_Operations' MAKE_FUNCTION LOAD_CONST '_Operations' LOAD_NAME _GCP CALL_FUNCTION STORE_NAME _Operations LOAD_BUILD_CLASS LOAD_...
from . import _GCP class _Operations(_GCP): _type = "operations" _icon_dir = "resources/gcp/operations" class Logging(_Operations): _icon = "logging.png" class Monitoring(_Operations): _icon = "monitoring.png"
data/diagrams-0.23.4/diagrams/gcp/operations.py
352
85
205,898
LOAD_CONST 0 LOAD_CONST ('cdf', 'isf', 'logcdf', 'logpdf', 'logsf', 'pdf', 'ppf', 'sf') IMPORT_NAME jax._src.scipy.stats.cauchy IMPORT_FROM cdf STORE_NAME cdf IMPORT_FROM isf STORE_NAME isf IMPORT_FROM logcdf STORE_NAME logcdf IMPORT_FROM logpdf STORE_NAME logpdf IMPORT_FROM logsf STORE_NAME logsf IMPORT_FROM pdf STORE...
from jax._src.scipy.stats.cauchy import ( cdf as cdf, isf as isf, logcdf as logcdf, logpdf as logpdf, logsf as logsf, pdf as pdf, ppf as ppf, sf as sf, )
data/jax-0.4.24/jax/scipy/stats/cauchy.py
123
85
328,961
LOAD_CONST 1 LOAD_CONST ('Mlp', 'MultiScaleAttention', 'MultiScaleBlock') IMPORT_NAME attention IMPORT_FROM Mlp STORE_NAME Mlp IMPORT_FROM MultiScaleAttention STORE_NAME MultiScaleAttention IMPORT_FROM MultiScaleBlock STORE_NAME MultiScaleBlock POP_TOP LOAD_CONST 1 LOAD_CONST ('DropPath',) IMPORT_NAME drop_path IMPORT...
from .attention import Mlp, MultiScaleAttention, MultiScaleBlock from .drop_path import DropPath from .fusion import ConcatFusion, ReduceFusion, make_fusion_layer from .mlp import make_multilayer_perceptron from .positional_encoding import PositionalEncoding, SpatioTemporalClsPositionalEncoding
data/pytorchvideo-0.1.5/pytorchvideo/layers/__init__.py
274
85
166,834
LOAD_CONST "\nconst patchNavigator = (name, value) =>\n utils.replaceProperty(Object.getPrototypeOf(navigator), name, {\n get() {\n return value\n }\n })\n\npatchNavigator('hardwareConcurrency', opts.navigator_hardware_concurrency || 4);\n" STORE_NAME navigator_hardwareConcurrency LOAD_CONST None RETURN_VALUE
navigator_hardwareConcurrency = """ const patchNavigator = (name, value) => utils.replaceProperty(Object.getPrototypeOf(navigator), name, { get() { return value } }) patchNavigator('hardwareConcurrency', opts.navigator_hardware_concurrency || 4); """
data/TikTokApi-6.2.1/TikTokApi/stealth/js/navigator_hardwareConcurrency.py
91
85
418,306