input
stringlengths
28
198k
output
stringlengths
3
71k
file
stringlengths
19
330
input_tokens
int64
5
159k
output_tokens
int64
3
9.07k
__index_level_0__
int64
2
449k
LOAD_CONST 1 LOAD_CONST ('_Saas',) IMPORT_NAME IMPORT_FROM _Saas STORE_NAME _Saas POP_TOP LOAD_BUILD_CLASS LOAD_CONST <code object _Social at 0x7fab81fc6b70, file "f.py", line 4> LOAD_CONST '_Social' MAKE_FUNCTION LOAD_CONST '_Social' LOAD_NAME _Saas CALL_FUNCTION STORE_NAME _Social LOAD_BUILD_CLASS LOAD_CONST <code ...
from . import _Saas class _Social(_Saas): _type = "social" _icon_dir = "resources/saas/social" class Facebook(_Social): _icon = "facebook.png" class Twitter(_Social): _icon = "twitter.png"
data/diagrams-0.23.4/diagrams/saas/social.py
342
79
206,102
LOAD_CONST '\nURLs for edx_rbac.\n' STORE_NAME __doc__ LOAD_CONST 0 LOAD_CONST ('re_path',) IMPORT_NAME django.urls IMPORT_FROM re_path STORE_NAME re_path POP_TOP LOAD_CONST 0 LOAD_CONST ('TemplateView',) IMPORT_NAME django.views.generic IMPORT_FROM TemplateView STORE_NAME TemplateView POP_TOP LOAD_NAME re_path LOAD...
""" URLs for edx_rbac. """ from django.urls import re_path from django.views.generic import TemplateView urlpatterns = [ re_path(r"", TemplateView.as_view(template_name="edx_rbac/base.html")), ]
data/edx-rbac-1.8.0/edx_rbac/urls.py
137
79
125,025
LOAD_CONST 2 LOAD_CONST ('_utilities',) IMPORT_NAME IMPORT_FROM _utilities STORE_NAME _utilities POP_TOP LOAD_CONST 0 LOAD_CONST None IMPORT_NAME typing STORE_NAME typing LOAD_CONST 1 LOAD_CONST ('*',) IMPORT_NAME connection IMPORT_STAR LOAD_CONST 1 LOAD_CONST ('*',) IMPORT_NAME connection_iam_binding IMPORT_STAR L...
from .. import _utilities import typing from .connection import * from .connection_iam_binding import * from .connection_iam_member import * from .connection_iam_policy import * from .get_connection_iam_policy import * from .repository import * from ._inputs import * from . import outputs
data/pulumi_gcp-7.9.0/pulumi_gcp/cloudbuildv2/__init__.py
199
79
445,622
LOAD_CONST 0 LOAD_CONST ('*',) IMPORT_NAME azure.cli.core.aaz IMPORT_STAR LOAD_NAME register_command_group LOAD_CONST 'network application-gateway rewrite-rule' CALL_FUNCTION LOAD_BUILD_CLASS LOAD_CONST <code object __CMDGroup at 0x7faa7486adb0, file "f.py", line 4> LOAD_CONST '__CMDGroup' MAKE_FUNCTION LOAD_CONST '_...
from azure.cli.core.aaz import * @register_command_group( "network application-gateway rewrite-rule", ) class __CMDGroup(AAZCommandGroup): """Manage rewrite rules of an application gateway.""" pass __all__ = ["__CMDGroup"]
data/azure-cli-2.57.0/azure/cli/command_modules/network/aaz/latest/network/application_gateway/rewrite_rule/__cmd_group.py
188
79
378,456
LOAD_CONST 0 LOAD_CONST ('*',) IMPORT_NAME azure.cli.core.aaz IMPORT_STAR LOAD_NAME register_command_group LOAD_CONST 'network application-gateway ssl-profile' CALL_FUNCTION LOAD_BUILD_CLASS LOAD_CONST <code object __CMDGroup at 0x7faa5dedb270, file "f.py", line 4> LOAD_CONST '__CMDGroup' MAKE_FUNCTION LOAD_CONST '__...
from azure.cli.core.aaz import * @register_command_group( "network application-gateway ssl-profile", ) class __CMDGroup(AAZCommandGroup): """Manage SSL profiles of application gateway.""" pass __all__ = ["__CMDGroup"]
data/azure-cli-2.57.0/azure/cli/command_modules/network/aaz/latest/network/application_gateway/ssl_profile/__cmd_group.py
187
79
378,445
LOAD_CONST False STORE_NAME MYPY LOAD_NAME MYPY POP_JUMP_IF_FALSE LOAD_CONST 0 LOAD_CONST ('cast',) IMPORT_NAME typing IMPORT_FROM cast STORE_NAME cast POP_TOP JUMP_FORWARD to 30 LOAD_CONST <code object cast at 0x7fab427d4db0, file "f.py", line 8> LOAD_CONST 'cast' MAKE_FUNCTION STORE_NAME cast LOAD_CONST None RETUR...
MYPY = False if MYPY: from typing import ( cast, ) # noqa # pylint: disable=unused-import,useless-suppression,import-error else: def cast(typ, obj): # pylint: disable=unused-argument return obj
data/stone-3.3.1/stone/typing_hacks.py
95
79
216,752
LOAD_CONST 0 LOAD_CONST ('azure_audit_info',) IMPORT_NAME prowler.providers.azure.lib.audit_info.audit_info IMPORT_FROM azure_audit_info STORE_NAME azure_audit_info POP_TOP LOAD_CONST 0 LOAD_CONST ('AppInsights',) IMPORT_NAME prowler.providers.azure.services.appinsights.appinsights_service IMPORT_FROM AppInsights STOR...
from prowler.providers.azure.lib.audit_info.audit_info import azure_audit_info from prowler.providers.azure.services.appinsights.appinsights_service import AppInsights appinsights_client = AppInsights(azure_audit_info)
data/prowler-3.14.0/prowler/providers/azure/services/appinsights/appinsights_client.py
136
79
183,519
LOAD_CONST 0 LOAD_CONST ('Enum',) IMPORT_NAME enum IMPORT_FROM Enum STORE_NAME Enum POP_TOP LOAD_BUILD_CLASS LOAD_CONST <code object CrossSheetReferenceStatus at 0x7fab42ba9a50, file "f.py", line 4> LOAD_CONST 'CrossSheetReferenceStatus' MAKE_FUNCTION LOAD_CONST 'CrossSheetReferenceStatus' LOAD_NAME Enum CALL_FUNCTION...
from enum import Enum class CrossSheetReferenceStatus(Enum): BLOCKED = 1 BROKEN = 2 CIRCULAR = 3 DISABLED = 4 INACCESSIBLE = 5 INVALID = 6 NOT_SHARED = 7 OK = 8
data/smartsheet-python-sdk-3.0.2/smartsheet/models/enums/cross_sheet_reference_status.py
214
79
92,966
LOAD_CONST 0 LOAD_CONST ('CollectionStore', 'EmbeddingStore', 'PGEmbedding', 'QueryResult') IMPORT_NAME langchain_community.vectorstores.pgembedding IMPORT_FROM CollectionStore STORE_NAME CollectionStore IMPORT_FROM EmbeddingStore STORE_NAME EmbeddingStore IMPORT_FROM PGEmbedding STORE_NAME PGEmbedding IMPORT_FROM Quer...
from langchain_community.vectorstores.pgembedding import ( CollectionStore, EmbeddingStore, PGEmbedding, QueryResult, ) __all__ = [ "CollectionStore", "EmbeddingStore", "QueryResult", "PGEmbedding", ]
data/langchain-0.1.8/langchain/vectorstores/pgembedding.py
124
79
368,695
LOAD_CONST 0 LOAD_CONST ('annotations',) IMPORT_NAME __future__ IMPORT_FROM annotations STORE_NAME annotations POP_TOP LOAD_CONST 0 LOAD_CONST ('main',) IMPORT_NAME jupyter_core.troubleshoot IMPORT_FROM main STORE_NAME main POP_TOP LOAD_CONST <code object test_troubleshoot at 0x7fab0039c780, file "f.py", line 6> LOAD...
from __future__ import annotations from jupyter_core.troubleshoot import main def test_troubleshoot(capsys): """Smoke test the troubleshoot function""" main() out = capsys.readouterr().out assert "pip list" in out
data/jupyter_core-5.7.1/tests/test_troubleshoot.py
178
79
444,476
LOAD_BUILD_CLASS LOAD_CONST <code object MockConnector at 0x7fab81f7a540, file "f.py", line 1> LOAD_CONST 'MockConnector' MAKE_FUNCTION LOAD_CONST 'MockConnector' CALL_FUNCTION STORE_NAME MockConnector LOAD_CONST None RETURN_VALUE LOAD_NAME __name__ STORE_NAME __module__ LOAD_CONST 'MockConnector' STORE_NAME __qualnam...
class MockConnector: data = None metadata = None def __init__(self, data): self.data = data def read(self): return self.data def write(self, metadata, config_raw): self.data = config_raw self.metadata = metadata
data/ddtrace-2.6.3/tests/internal/remoteconfig/utils.py
304
79
270,190
LOAD_CONST '1.0.2' STORE_NAME __version__ LOAD_CONST 0 LOAD_CONST None IMPORT_NAME os STORE_NAME os LOAD_CONST <code object path at 0x7fab820718a0, file "f.py", line 6> LOAD_CONST 'path' MAKE_FUNCTION STORE_NAME path LOAD_CONST <code object uri at 0x7fab82071d20, file "f.py", line 10> LOAD_CONST 'uri' MAKE_FUNCTION ...
__version__ = "1.0.2" import os def path(*parts): return os.path.normpath(os.path.join(os.path.dirname(__file__), "static", *parts)) def uri(*parts): return "file://%s" % path(*parts)
data/pygaljs-1.0.2/src/pygaljs/__init__.py
196
79
393,159
LOAD_CONST 0 LOAD_CONST ('Enum',) IMPORT_NAME enum IMPORT_FROM Enum STORE_NAME Enum POP_TOP LOAD_BUILD_CLASS LOAD_CONST <code object AlertFeedback at 0x7fab4298e150, file "f.py", line 4> LOAD_CONST 'AlertFeedback' MAKE_FUNCTION LOAD_CONST 'AlertFeedback' LOAD_NAME str LOAD_NAME Enum CALL_FUNCTION STORE_NAME AlertFeedb...
from enum import Enum class AlertFeedback(str, Enum): Unknown = ("unknown",) TruePositive = ("truePositive",) FalsePositive = ("falsePositive",) BenignPositive = ("benignPositive",) UnknownFutureValue = ("unknownFutureValue",)
data/msgraph-sdk-1.1.0/msgraph/generated/models/alert_feedback.py
197
79
259,696
LOAD_CONST 0 LOAD_CONST None IMPORT_NAME sys STORE_NAME sys LOAD_CONST 1 LOAD_CONST ('soapserver',) IMPORT_NAME app IMPORT_FROM soapserver STORE_NAME server POP_TOP LOAD_CONST 2 LOAD_CONST ('launch_background_thread',) IMPORT_NAME utils IMPORT_FROM launch_background_thread STORE_NAME launch_background_thread POP_TOP ...
import sys from .app import soapserver as server from ..utils import launch_background_thread app_thread = None if sys.version_info < (3, 7, 0) and app_thread is None: app_thread = launch_background_thread(server.serve_forever, "SoapServer")
data/instana-1.38.2/tests/apps/soap_app/__init__.py
156
79
232,775
LOAD_CONST 0 LOAD_CONST None IMPORT_NAME os STORE_NAME os LOAD_CONST 1 LOAD_CONST ('flask_server',) IMPORT_NAME app IMPORT_FROM flask_server STORE_NAME server POP_TOP LOAD_CONST 2 LOAD_CONST ('launch_background_thread',) IMPORT_NAME utils IMPORT_FROM launch_background_thread STORE_NAME launch_background_thread POP_TO...
import os from .app import flask_server as server from ..utils import launch_background_thread app_thread = None if "CASSANDRA_TEST" not in os.environ and app_thread is None: app_thread = launch_background_thread(server.serve_forever, "Flask")
data/instana-1.38.2/tests/apps/flask_app/__init__.py
157
79
232,773
LOAD_CONST 0 LOAD_CONST None IMPORT_NAME warnings STORE_NAME warnings LOAD_CONST 0 LOAD_CONST ('*',) IMPORT_NAME pytensor.tensor.variable IMPORT_STAR LOAD_NAME warnings LOAD_ATTR warn LOAD_CONST "The module 'pytensor.tensor.var' has been deprecated. Use 'pytensor.tensor.variable' instead." LOAD_NAME DeprecationWarn...
import warnings from pytensor.tensor.variable import * # noqa warnings.warn( "The module 'pytensor.tensor.var' has been deprecated. " "Use 'pytensor.tensor.variable' instead.", category=DeprecationWarning, stacklevel=2, )
data/pytensor-2.18.6/pytensor/tensor/var.py
101
79
88,362
LOAD_CONST 0 LOAD_CONST ('Table',) IMPORT_NAME pandas_profiling.report.presentation.core.table IMPORT_FROM Table STORE_NAME Table 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_CLASS LOAD_CONST...
from pandas_profiling.report.presentation.core.table import Table from pandas_profiling.report.presentation.flavours.html import templates class HTMLTable(Table): def render(self) -> str: return templates.template("table.html").render(**self.content)
data/pandas-profiling-3.6.6/src/pandas_profiling/report/presentation/flavours/html/table.py
254
79
305,472
LOAD_CONST 0 LOAD_CONST None IMPORT_NAME os STORE_NAME os LOAD_CONST 0 LOAD_CONST None IMPORT_NAME sys STORE_NAME sys LOAD_NAME __name__ LOAD_CONST '__main__' COMPARE_OP == POP_JUMP_IF_FALSE LOAD_NAME os LOAD_ATTR environ LOAD_METHOD setdefault LOAD_CONST 'DJANGO_SETTINGS_MODULE' LOAD_CONST 'tests.settings' CALL_MET...
import os import sys if __name__ == "__main__": os.environ.setdefault("DJANGO_SETTINGS_MODULE", "tests.settings") from django.core.management import execute_from_command_line execute_from_command_line(sys.argv)
data/django-cacheops-7.0.2/manage.py
153
79
269,442
LOAD_CONST 0 LOAD_CONST ('STRING',) IMPORT_NAME flex.constants IMPORT_FROM STRING STORE_NAME STRING POP_TOP LOAD_CONST 0 LOAD_CONST ('generate_object_validator',) IMPORT_NAME flex.validation.common IMPORT_FROM generate_object_validator STORE_NAME generate_object_validator POP_TOP LOAD_CONST 'type' LOAD_NAME STRING BU...
from flex.constants import ( STRING, ) from flex.validation.common import ( generate_object_validator, ) name_schema = { "type": STRING, } name_validator = generate_object_validator( schema=name_schema, )
data/flex-6.14.1/flex/loading/common/single_parameter/name.py
118
79
105,444
LOAD_CONST 2 LOAD_CONST ('DummyObject', 'requires_backends') IMPORT_NAME utils IMPORT_FROM DummyObject STORE_NAME DummyObject IMPORT_FROM requires_backends STORE_NAME requires_backends POP_TOP LOAD_BUILD_CLASS LOAD_CONST <code object TFGPT2Tokenizer at 0x7fa6f121e150, file "f.py", line 4> LOAD_CONST 'TFGPT2Tokenizer' ...
from ..utils import DummyObject, requires_backends class TFGPT2Tokenizer(metaclass=DummyObject): _backends = ["keras_nlp"] def __init__(self, *args, **kwargs): requires_backends(self, ["keras_nlp"])
data/transformers-4.37.2/src/transformers/utils/dummy_keras_nlp_objects.py
272
79
50,002
LOAD_CONST 0 LOAD_CONST None IMPORT_NAME nox STORE_NAME nox LOAD_NAME nox LOAD_ATTR session LOAD_CONST '3.6' LOAD_CONST '3.7' LOAD_CONST '3.8' LOAD_CONST '3.9' BUILD_LIST LOAD_CONST ('python',) CALL_FUNCTION LOAD_CONST <code object tests at 0x7fab8214dc90, file "f.py", line 4> LOAD_CONST 'tests' MAKE_FUNCTION CALL_FUN...
import nox @nox.session(python=["3.6", "3.7", "3.8", "3.9"]) def tests(session): session.install("invoke", "./[test]") session.run("invoke", "pytest", "--junit", "--no-pty")
data/cmd2-2.4.3/plugins/ext_test/noxfile.py
173
79
293,005
LOAD_CONST 0 LOAD_CONST ('*',) IMPORT_NAME azure.cli.core.aaz IMPORT_STAR LOAD_NAME register_command_group LOAD_CONST 'network application-gateway redirect-config' CALL_FUNCTION LOAD_BUILD_CLASS LOAD_CONST <code object __CMDGroup at 0x7fab82197d20, file "f.py", line 4> LOAD_CONST '__CMDGroup' MAKE_FUNCTION LOAD_CONST...
from azure.cli.core.aaz import * @register_command_group( "network application-gateway redirect-config", ) class __CMDGroup(AAZCommandGroup): """Manage redirect configurations of an application gateway.""" pass __all__ = ["__CMDGroup"]
data/azure-cli-2.57.0/azure/cli/command_modules/network/aaz/latest/network/application_gateway/redirect_config/__cmd_group.py
189
79
378,384
LOAD_CONST 0 LOAD_CONST ('*',) IMPORT_NAME azure.cli.core.aaz IMPORT_STAR LOAD_NAME register_command_group LOAD_CONST 'network application-gateway http-settings' CALL_FUNCTION LOAD_BUILD_CLASS LOAD_CONST <code object __CMDGroup at 0x7faa5e81ff60, file "f.py", line 4> LOAD_CONST '__CMDGroup' MAKE_FUNCTION LOAD_CONST '...
from azure.cli.core.aaz import * @register_command_group( "network application-gateway http-settings", ) class __CMDGroup(AAZCommandGroup): """Manage HTTP settings of an application gateway.""" pass __all__ = ["__CMDGroup"]
data/azure-cli-2.57.0/azure/cli/command_modules/network/aaz/latest/network/application_gateway/http_settings/__cmd_group.py
188
79
378,392
LOAD_CONST 0 LOAD_CONST ('dataclass',) IMPORT_NAME dataclasses IMPORT_FROM dataclass STORE_NAME dataclass POP_TOP LOAD_CONST 0 LOAD_CONST ('datetime',) IMPORT_NAME datetime IMPORT_FROM datetime STORE_NAME datetime POP_TOP LOAD_CONST 0 LOAD_CONST ('Optional',) IMPORT_NAME typing IMPORT_FROM Optional STORE_NAME Optiona...
from dataclasses import dataclass from datetime import datetime from typing import Optional @dataclass class FilterContext: """ ``FilterContext`` is passed as an argument to Data Source Function for time filtering. """ start_time: Optional[datetime] end_time: Optional[datetime]
data/tecton-0.8.5/tecton_core/filter_context.py
249
79
235,419
LOAD_CONST 0 LOAD_CONST ('unique',) IMPORT_NAME enum IMPORT_FROM unique STORE_NAME unique POP_TOP LOAD_CONST 4 LOAD_CONST ('StrEnum',) IMPORT_NAME _base_enum IMPORT_FROM StrEnum STORE_NAME StrEnum POP_TOP LOAD_NAME unique LOAD_BUILD_CLASS LOAD_CONST <code object ImpliedDepositDateConvention at 0x7fab700e4c90, file "f...
from enum import unique from ...._base_enum import StrEnum @unique class ImpliedDepositDateConvention(StrEnum): FX_MARKET_CONVENTION = "FxMarketConvention" MONEY_MARKET_CONVENTION = "MoneyMarketConvention"
data/refinitiv-data-1.6.0/refinitiv/data/content/ipa/_enums/_implied_deposit_date_convention.py
225
79
195,508
LOAD_NAME applyPatch LOAD_CONST '20201005-dldt-disable-unused-targets.patch' CALL_FUNCTION POP_TOP LOAD_NAME applyPatch LOAD_CONST '20200413-dldt-pdb.patch' CALL_FUNCTION POP_TOP LOAD_NAME applyPatch LOAD_CONST '20200604-dldt-disable-multidevice.patch' CALL_FUNCTION POP_TOP LOAD_CONST None RETURN_VALUE
applyPatch("20201005-dldt-disable-unused-targets.patch") applyPatch("20200413-dldt-pdb.patch") applyPatch("20200604-dldt-disable-multidevice.patch")
data/opencv-contrib-python-4.9.0.80/opencv/platforms/winpack_dldt/2021.1/patch.config.py
106
79
146,663
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 ('division',) IMPORT_NAME __future__ IMPORT_FROM division STORE_NAME division POP_TOP LOAD_CONST 0 LOAD_CONST ('algorithm_generate',) IMPORT_NAME nanoid.algorit...
from __future__ import unicode_literals from __future__ import division from nanoid.algorithm import algorithm_generate from nanoid.method import method from nanoid.resources import alphabet, size def generate(alphabet=alphabet, size=size): return method(algorithm_generate, alphabet, size)
data/nanoid-2.0.0/nanoid/generate.py
228
79
341,941
LOAD_CONST 0 LOAD_CONST ('approximate_features', 'calculate_feature_matrix') IMPORT_NAME featuretools.computational_backends.calculate_feature_matrix IMPORT_FROM approximate_features STORE_NAME approximate_features IMPORT_FROM calculate_feature_matrix STORE_NAME calculate_feature_matrix POP_TOP LOAD_CONST 0 LOAD_CONST...
from featuretools.computational_backends.calculate_feature_matrix import ( approximate_features, calculate_feature_matrix, ) from featuretools.computational_backends.utils import ( bin_cutoff_times, create_client_and_cluster, replace_inf_values, )
data/featuretools-1.29.0/featuretools/computational_backends/api.py
161
79
422,212
LOAD_CONST <code object app at 0x7f8aa425a390, file "f.py", line 1> LOAD_CONST 'app' MAKE_FUNCTION STORE_NAME app LOAD_CONST None RETURN_VALUE LOAD_CONST b'abcdef' STORE_FAST body LOAD_GLOBAL len LOAD_FAST body CALL_FUNCTION STORE_FAST cl LOAD_FAST start_response LOAD_CONST '200 OK' LOAD_CONST 'Content-Length' LOAD...
def app(environ, start_response): # pragma: no cover body = b"abcdef" cl = len(body) start_response( "200 OK", [("Content-Length", str(cl)), ("Content-Type", "text/plain")] ) return [body]
data/waitress-3.0.0/tests/fixtureapps/toolarge.py
128
79
427,828
LOAD_CONST 'The ``dask_ml.linear_model`` module implements linear models for\nclassification and regression.\n' STORE_NAME __doc__ LOAD_CONST 1 LOAD_CONST ('LinearRegression', 'LogisticRegression', 'PoissonRegression') IMPORT_NAME glm IMPORT_FROM LinearRegression STORE_NAME LinearRegression IMPORT_FROM LogisticRegress...
"""The ``dask_ml.linear_model`` module implements linear models for classification and regression. """ from .glm import LinearRegression, LogisticRegression, PoissonRegression __all__ = [ "LogisticRegression", "LinearRegression", "PoissonRegression", ]
data/dask-ml-2023.3.24/dask_ml/linear_model/__init__.py
135
79
17,997
LOAD_CONST 2 LOAD_CONST ('_utilities',) IMPORT_NAME IMPORT_FROM _utilities STORE_NAME _utilities POP_TOP LOAD_CONST 0 LOAD_CONST None IMPORT_NAME typing STORE_NAME typing LOAD_NAME typing LOAD_ATTR TYPE_CHECKING POP_JUMP_IF_FALSE LOAD_CONST 0 LOAD_CONST None IMPORT_NAME pulumi_kubernetes.meta.v1 IMPORT_FROM meta ROT...
from .. import _utilities import typing if typing.TYPE_CHECKING: import pulumi_kubernetes.meta.v1 as __v1 v1 = __v1 else: v1 = _utilities.lazy_import("pulumi_kubernetes.meta.v1")
data/pulumi_kubernetes-4.7.1/pulumi_kubernetes/meta/__init__.py
146
79
124,057
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 ('*',) IMPORT_NAME pyspark.cloudpickle.cloudpickle IMPORT_STAR LOAD_CONST 0 LOAD_CONST ('CloudPickler', 'dumps', 'dump') IMPORT_NAME pyspark.cloudpickle.cloudpickl...
from __future__ import absolute_import from pyspark.cloudpickle.cloudpickle import * # noqa from pyspark.cloudpickle.cloudpickle_fast import CloudPickler, dumps, dump # noqa __version__ = "1.5.0"
data/tecton-0.8.5/tecton/vendor/pyspark/pyspark/cloudpickle/__init__.py
143
79
235,164
LOAD_CONST 'Train an XGBoost model on dask arrays or dataframes.\n\nThis may be used for training an XGBoost model on a cluster. XGBoost\nwill be setup in distributed mode alongside your existing\n``dask.distributed`` cluster.\n' STORE_NAME __doc__ LOAD_CONST 0 LOAD_CONST ('*',) IMPORT_NAME dask_xgboost IMPORT_STAR LO...
"""Train an XGBoost model on dask arrays or dataframes. This may be used for training an XGBoost model on a cluster. XGBoost will be setup in distributed mode alongside your existing ``dask.distributed`` cluster. """ from dask_xgboost import * # noqa
data/dask-ml-2023.3.24/dask_ml/xgboost.py
97
79
17,964
LOAD_CONST 0 LOAD_CONST None IMPORT_NAME pytest STORE_NAME pytest LOAD_CONST 0 LOAD_CONST None IMPORT_NAME kernels STORE_NAME kernels LOAD_NAME pytest LOAD_ATTR mark LOAD_ATTR skip LOAD_CONST 'Unable to generate any tests for kernel' LOAD_CONST ('reason',) CALL_FUNCTION LOAD_CONST <code object test_pyawkward_ListOffs...
import pytest import kernels @pytest.mark.skip(reason="Unable to generate any tests for kernel") def test_pyawkward_ListOffsetArrayU32_rpad_and_clip_axis1_64_1(): raise NotImplementedError("Unable to generate any tests for kernel")
data/awkward-cpp-29/tests-spec/test_pyawkward_ListOffsetArrayU32_rpad_and_clip_axis1_64.py
216
79
220,501
LOAD_CONST 0 LOAD_CONST None IMPORT_NAME importlib.metadata STORE_NAME importlib SETUP_EXCEPT to 28 LOAD_NAME importlib LOAD_ATTR metadata LOAD_METHOD distribution LOAD_NAME __name__ CALL_METHOD LOAD_ATTR version STORE_NAME __version__ POP_BLOCK JUMP_FORWARD to 52 DUP_TOP LOAD_NAME Exception COMPARE_OP exception mat...
import importlib.metadata try: __version__ = importlib.metadata.distribution(__name__).version except Exception: __version__ = "unknown" if "profile" not in __builtins__: # type: ignore __builtins__["profile"] = lambda x: x # type: ignore
data/glum-2.7.0/src/glum_benchmarks/__init__.py
183
79
9,965
LOAD_CONST 0 LOAD_CONST ('include',) IMPORT_NAME django.conf.urls IMPORT_FROM include STORE_NAME include POP_TOP LOAD_CONST 0 LOAD_CONST ('path',) IMPORT_NAME django.urls IMPORT_FROM path STORE_NAME path POP_TOP LOAD_CONST 0 LOAD_CONST ('HomeView',) IMPORT_NAME tenant_subfolder_tutorial.views IMPORT_FROM HomeView STO...
from django.conf.urls import include from django.urls import path from tenant_subfolder_tutorial.views import HomeView from django.contrib import admin urlpatterns = [ path("", HomeView.as_view()), path("admin/", admin.site.urls), ]
data/django-tenants-3.6.1/examples/tenant_subfolder_tutorial/tenant_subfolder_tutorial/urls_public.py
166
79
224,911
LOAD_CONST '\nDriver package for providing an interface to a PostgreSQL database.\n' STORE_NAME __doc__ LOAD_CONST 'connect' LOAD_CONST 'default' BUILD_LIST STORE_NAME __all__ LOAD_CONST 1 LOAD_CONST ('Driver',) IMPORT_NAME pq3 IMPORT_FROM Driver STORE_NAME Driver POP_TOP LOAD_NAME Driver CALL_FUNCTION STORE_NAME de...
""" Driver package for providing an interface to a PostgreSQL database. """ __all__ = ["connect", "default"] from .pq3 import Driver default = Driver() def connect(*args, **kw): "Establish a connection using the default driver." return default.connect(*args, **kw)
data/py-postgresql-1.3.0/postgresql/driver/__init__.py
139
79
390,004
LOAD_CONST 'Package providing models that pertain to listing mixins.' STORE_NAME __doc__ LOAD_CONST 1 LOAD_CONST ('BaseListingMixin',) IMPORT_NAME base IMPORT_FROM BaseListingMixin STORE_NAME BaseListingMixin POP_TOP LOAD_CONST 1 LOAD_CONST ('RedditorListingMixin',) IMPORT_NAME redditor IMPORT_FROM RedditorListingMix...
"""Package providing models that pertain to listing mixins.""" from .base import BaseListingMixin from .redditor import RedditorListingMixin from .rising import RisingListingMixin from .submission import SubmissionListingMixin from .subreddit import SubredditListingMixin
data/praw-7.7.1/praw/models/listing/mixins/__init__.py
220
79
205,079
LOAD_CONST 0 LOAD_CONST ('ClientValue',) IMPORT_NAME office365.runtime.client_value IMPORT_FROM ClientValue STORE_NAME ClientValue POP_TOP LOAD_BUILD_CLASS LOAD_CONST <code object Refiner at 0x7fab700ad780, file "f.py", line 4> LOAD_CONST 'Refiner' MAKE_FUNCTION LOAD_CONST 'Refiner' LOAD_NAME ClientValue CALL_FUNCTION...
from office365.runtime.client_value import ClientValue class Refiner(ClientValue): """A refiner contains a list with entries, of the RefinerEntry types""" @property def entity_type_name(self): return "Microsoft.Office.Server.Search.REST.Refiner"
data/Office365-REST-Python-Client-2.5.5/office365/sharepoint/search/refiner/refiner.py
233
79
189,493
LOAD_CONST 1 LOAD_CONST ('*',) IMPORT_NAME v2018_02_01_preview.models IMPORT_STAR LOAD_CONST 1 LOAD_CONST ('*',) IMPORT_NAME v2019_04_01.models IMPORT_STAR LOAD_CONST 1 LOAD_CONST ('*',) IMPORT_NAME v2019_06_01_preview.models IMPORT_STAR LOAD_CONST 1 LOAD_CONST ('*',) IMPORT_NAME v2023_07_01.models IMPORT_STAR LOAD_...
from .v2018_02_01_preview.models import * from .v2019_04_01.models import * from .v2019_06_01_preview.models import * from .v2023_07_01.models import *
data/azure-mgmt-containerregistry-10.3.0/azure/mgmt/containerregistry/models.py
122
79
83,623
LOAD_CONST 0 LOAD_CONST ('DatadogProvider',) IMPORT_NAME aws_lambda_powertools.metrics.provider.datadog.datadog IMPORT_FROM DatadogProvider STORE_NAME DatadogProvider POP_TOP LOAD_CONST 0 LOAD_CONST ('DatadogMetrics',) IMPORT_NAME aws_lambda_powertools.metrics.provider.datadog.metrics IMPORT_FROM DatadogMetrics STORE_...
from aws_lambda_powertools.metrics.provider.datadog.datadog import DatadogProvider from aws_lambda_powertools.metrics.provider.datadog.metrics import DatadogMetrics __all__ = [ "DatadogMetrics", "DatadogProvider", ]
data/aws_lambda_powertools-2.34.0/aws_lambda_powertools/metrics/provider/datadog/__init__.py
128
79
359,893
LOAD_CONST '\nCopyright (c) 2022 Henry Schreiner. All rights reserved.\n\nscikit-build-core: PEP 517 builder for Scikit-Build\n' STORE_NAME __doc__ LOAD_CONST 0 LOAD_CONST ('annotations',) IMPORT_NAME __future__ IMPORT_FROM annotations STORE_NAME annotations POP_TOP LOAD_CONST 1 LOAD_CONST ('version',) IMPORT_NAME _v...
""" Copyright (c) 2022 Henry Schreiner. All rights reserved. scikit-build-core: PEP 517 builder for Scikit-Build """ from __future__ import annotations from ._version import version as __version__ __all__ = ["__version__"]
data/scikit_build_core-0.8.1/src/scikit_build_core/__init__.py
126
79
134,834
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_ListArra...
import pytest import kernels @pytest.mark.skip(reason="Unable to generate any tests for kernel") def test_pyawkward_ListArray32_getitem_next_range_spreadadvanced_64_1(): raise NotImplementedError("Unable to generate any tests for kernel")
data/awkward-cpp-29/tests-spec/test_pyawkward_ListArray32_getitem_next_range_spreadadvanced_64.py
216
79
220,424
LOAD_CONST 0 LOAD_CONST ('Enum',) IMPORT_NAME enum IMPORT_FROM Enum STORE_NAME Enum POP_TOP LOAD_BUILD_CLASS LOAD_CONST <code object ModelType at 0x7f8e2fc18660, file "f.py", line 4> LOAD_CONST 'ModelType' MAKE_FUNCTION LOAD_CONST 'ModelType' LOAD_NAME str LOAD_NAME Enum CALL_FUNCTION STORE_NAME ModelType LOAD_BUILD_...
from enum import Enum class ModelType(str, Enum): Document = "Document" View = "View" UnionDoc = "UnionDoc" class DetectionInterface: @classmethod def get_model_type(cls) -> ModelType: return ModelType.Document
data/beanie-1.25.0/beanie/odm/interfaces/detector.py
328
79
323,789
LOAD_NAME applyPatch LOAD_CONST '20201005-dldt-disable-unused-targets.patch' CALL_FUNCTION POP_TOP LOAD_NAME applyPatch LOAD_CONST '20200413-dldt-pdb.patch' CALL_FUNCTION POP_TOP LOAD_NAME applyPatch LOAD_CONST '20200604-dldt-disable-multidevice.patch' CALL_FUNCTION POP_TOP LOAD_CONST None RETURN_VALUE
applyPatch("20201005-dldt-disable-unused-targets.patch") applyPatch("20200413-dldt-pdb.patch") applyPatch("20200604-dldt-disable-multidevice.patch")
data/opencv-contrib-python-headless-4.9.0.80/opencv/platforms/winpack_dldt/2021.1/patch.config.py
106
79
366,669
LOAD_CONST 0 LOAD_CONST ('ClientValue',) IMPORT_NAME office365.runtime.client_value IMPORT_FROM ClientValue STORE_NAME ClientValue POP_TOP LOAD_BUILD_CLASS LOAD_CONST <code object TeamworkTagIdentity at 0x7fab7002b150, file "f.py", line 4> LOAD_CONST 'TeamworkTagIdentity' MAKE_FUNCTION LOAD_CONST 'TeamworkTagIdentity'...
from office365.runtime.client_value import ClientValue class TeamworkTagIdentity(ClientValue): """Represents a tag in Microsoft Teams. Tags allow users to quickly connect to subset of users in a team. For details about tag management in Microsoft Teams, see Manage tags in Microsoft Teams. """
data/Office365-REST-Python-Client-2.5.5/office365/teams/teamwork/tags/identity.py
191
79
188,702
LOAD_NAME applyPatch LOAD_CONST '20201005-dldt-disable-unused-targets.patch' CALL_FUNCTION POP_TOP LOAD_NAME applyPatch LOAD_CONST '20200413-dldt-pdb.patch' CALL_FUNCTION POP_TOP LOAD_NAME applyPatch LOAD_CONST '20200604-dldt-disable-multidevice.patch' CALL_FUNCTION POP_TOP LOAD_CONST None RETURN_VALUE
applyPatch("20201005-dldt-disable-unused-targets.patch") applyPatch("20200413-dldt-pdb.patch") applyPatch("20200604-dldt-disable-multidevice.patch")
data/opencv-python-4.9.0.80/opencv/platforms/winpack_dldt/2021.1/patch.config.py
106
79
321,620
LOAD_CONST 0 LOAD_CONST ('*',) IMPORT_NAME azure.cli.core.aaz IMPORT_STAR LOAD_NAME register_command_group LOAD_CONST 'monitor log-analytics workspace table' CALL_FUNCTION LOAD_BUILD_CLASS LOAD_CONST <code object __CMDGroup at 0x7faa53250ed0, file "f.py", line 4> LOAD_CONST '__CMDGroup' MAKE_FUNCTION LOAD_CONST '__CM...
from azure.cli.core.aaz import * @register_command_group( "monitor log-analytics workspace table", ) class __CMDGroup(AAZCommandGroup): """Manage tables for log analytics workspace.""" pass __all__ = ["__CMDGroup"]
data/azure-cli-2.57.0/azure/cli/command_modules/monitor/aaz/latest/monitor/log_analytics/workspace/table/__cmd_group.py
188
79
374,972
SETUP_EXCEPT to 18 LOAD_CONST 0 LOAD_CONST ('version',) IMPORT_NAME importlib.metadata IMPORT_FROM version STORE_NAME version POP_TOP POP_BLOCK JUMP_FORWARD to 60 DUP_TOP LOAD_NAME ImportError COMPARE_OP exception match POP_JUMP_IF_FALSE POP_TOP POP_TOP POP_TOP LOAD_CONST 0 LOAD_CONST ('get_distribution',) IMPORT_NA...
try: from importlib.metadata import version # New in Python 3.8 except ImportError: from pkg_resources import get_distribution # from setuptools, deprecated __version__ = get_distribution("django-axes").version else: __version__ = version("django-axes")
data/django-axes-6.3.0/axes/__init__.py
147
79
362,961
LOAD_CONST 0 LOAD_CONST None IMPORT_NAME pkg_resources STORE_NAME pkg_resources LOAD_CONST 0 LOAD_CONST None IMPORT_NAME setuptools STORE_NAME setuptools LOAD_NAME pkg_resources LOAD_METHOD parse_version LOAD_NAME setuptools LOAD_ATTR __version__ CALL_METHOD STORE_NAME setuptools_version LOAD_NAME setuptools_version...
import pkg_resources import setuptools setuptools_version = pkg_resources.parse_version(setuptools.__version__) if setuptools_version < pkg_resources.parse_version("39.2"): raise SystemExit("setuptools 39.2 or greater required for installation") setuptools.setup()
data/flatdict-4.0.1/setup.py
139
79
380,876
LOAD_BUILD_CLASS LOAD_CONST <code object Foo at 0x7fab800ab8a0, file "f.py", line 1> LOAD_CONST 'Foo' MAKE_FUNCTION LOAD_CONST 'Foo' CALL_FUNCTION STORE_NAME Foo LOAD_BUILD_CLASS LOAD_CONST <code object DocHere at 0x7fab800aba50, file "f.py", line 5> LOAD_CONST 'DocHere' MAKE_FUNCTION LOAD_CONST 'DocHere' LOAD_NAME Fo...
class Foo: pass class DocHere(Foo): pass class DocSubDir1(DocHere): pass class DocSubDir2(DocSubDir1): pass class DocMainLevel(Foo): pass class Alice(object): pass
data/sphinx-7.2.6/tests/roots/test-ext-inheritance_diagram/test.py
553
79
381,116
LOAD_CONST 0 LOAD_CONST ('*',) IMPORT_NAME azure.cli.core.aaz IMPORT_STAR LOAD_NAME register_command_group LOAD_CONST 'eventhubs namespace schema-registry' CALL_FUNCTION LOAD_BUILD_CLASS LOAD_CONST <code object __CMDGroup at 0x7fab416c6420, file "f.py", line 4> LOAD_CONST '__CMDGroup' MAKE_FUNCTION LOAD_CONST '__CMDG...
from azure.cli.core.aaz import * @register_command_group( "eventhubs namespace schema-registry", ) class __CMDGroup(AAZCommandGroup): """Manages eventhubs namespace schema registry.""" pass __all__ = ["__CMDGroup"]
data/azure-cli-2.57.0/azure/cli/command_modules/eventhubs/aaz/latest/eventhubs/namespace/schema_registry/__cmd_group.py
189
79
374,810
LOAD_CONST 0 LOAD_CONST ('annotations',) IMPORT_NAME __future__ IMPORT_FROM annotations STORE_NAME annotations POP_TOP LOAD_CONST 1 LOAD_CONST ('Client',) IMPORT_NAME _client IMPORT_FROM Client STORE_NAME Client POP_TOP LOAD_CONST 1 LOAD_CONST ('APIException', 'HCloudException') IMPORT_NAME _exceptions IMPORT_FROM AP...
from __future__ import annotations from ._client import Client as Client # noqa pylint: disable=C0414 from ._exceptions import ( # noqa pylint: disable=C0414 APIException as APIException, HCloudException as HCloudException, )
data/hcloud-1.33.2/hcloud/__init__.py
95
79
436,438
LOAD_CONST 2 LOAD_CONST ('_utilities',) IMPORT_NAME IMPORT_FROM _utilities STORE_NAME _utilities POP_TOP LOAD_CONST 0 LOAD_CONST None IMPORT_NAME typing STORE_NAME typing LOAD_CONST 1 LOAD_CONST ('*',) IMPORT_NAME domain IMPORT_STAR LOAD_CONST 1 LOAD_CONST ('*',) IMPORT_NAME domain_permissions IMPORT_STAR LOAD_CONS...
from .. import _utilities import typing from .domain import * from .domain_permissions import * from .get_authorization_token import * from .get_repository_endpoint import * from .repository import * from .repository_permissions_policy import * from ._inputs import * from . import outputs
data/pulumi_aws-6.22.2/pulumi_aws/codeartifact/__init__.py
199
79
227,669
LOAD_CONST 0 LOAD_CONST ('*',) IMPORT_NAME azure.cli.core.aaz IMPORT_STAR LOAD_NAME register_command_group LOAD_CONST 'eventhubs eventhub authorization-rule keys' CALL_FUNCTION LOAD_BUILD_CLASS LOAD_CONST <code object __CMDGroup at 0x7fab416c65d0, file "f.py", line 4> LOAD_CONST '__CMDGroup' MAKE_FUNCTION LOAD_CONST ...
from azure.cli.core.aaz import * @register_command_group( "eventhubs eventhub authorization-rule keys", ) class __CMDGroup(AAZCommandGroup): """authorization-rule keys""" pass __all__ = ["__CMDGroup"]
data/azure-cli-2.57.0/azure/cli/command_modules/eventhubs/aaz/latest/eventhubs/eventhub/authorization_rule/keys/__cmd_group.py
189
79
374,758
LOAD_CONST 0 LOAD_CONST ('*',) IMPORT_NAME azure.cli.core.aaz IMPORT_STAR LOAD_NAME register_command_group LOAD_CONST 'network private-dns record-set' CALL_FUNCTION LOAD_BUILD_CLASS LOAD_CONST <code object __CMDGroup at 0x7faa5ec3b9c0, file "f.py", line 4> LOAD_CONST '__CMDGroup' MAKE_FUNCTION LOAD_CONST '__CMDGroup'...
from azure.cli.core.aaz import * @register_command_group( "network private-dns record-set", ) class __CMDGroup(AAZCommandGroup): """Manage Private DNS records and record sets.""" pass __all__ = ["__CMDGroup"]
data/azure-cli-2.57.0/azure/cli/command_modules/privatedns/aaz/latest/network/private_dns/record_set/__cmd_group.py
188
79
376,305
LOAD_CONST 0 LOAD_CONST None IMPORT_NAME os STORE_NAME os LOAD_CONST 0 LOAD_CONST None IMPORT_NAME sys STORE_NAME sys LOAD_NAME __name__ LOAD_CONST '__main__' COMPARE_OP == POP_JUMP_IF_FALSE LOAD_NAME os LOAD_ATTR environ LOAD_METHOD setdefault LOAD_CONST 'DJANGO_SETTINGS_MODULE' LOAD_CONST 'tests.settings' CALL_MET...
import os import sys if __name__ == "__main__": os.environ.setdefault("DJANGO_SETTINGS_MODULE", "tests.settings") from django.core.management import execute_from_command_line execute_from_command_line(sys.argv)
data/django-axes-6.3.0/manage.py
153
79
362,930
LOAD_CONST 0 LOAD_CONST ('*',) IMPORT_NAME azure.cli.core.aaz IMPORT_STAR LOAD_NAME register_command_group LOAD_CONST 'eventhubs namespace authorization-rule' CALL_FUNCTION LOAD_BUILD_CLASS LOAD_CONST <code object __CMDGroup at 0x7fab42736db0, file "f.py", line 4> LOAD_CONST '__CMDGroup' MAKE_FUNCTION LOAD_CONST '__C...
from azure.cli.core.aaz import * @register_command_group( "eventhubs namespace authorization-rule", ) class __CMDGroup(AAZCommandGroup): """eventhub namespace authorization-rule""" pass __all__ = ["__CMDGroup"]
data/azure-cli-2.57.0/azure/cli/command_modules/eventhubs/aaz/latest/eventhubs/namespace/authorization_rule/__cmd_group.py
188
79
374,781
LOAD_CONST 0 LOAD_CONST None IMPORT_NAME threading STORE_NAME threading LOAD_CONST 0 LOAD_CONST None IMPORT_NAME fasteners STORE_NAME fasteners LOAD_CONST <code object test_try_lock at 0x7fab8239ab70, file "f.py", line 6> LOAD_CONST 'test_try_lock' MAKE_FUNCTION STORE_NAME test_try_lock LOAD_CONST None RETURN_VALUE ...
import threading import fasteners def test_try_lock(): lock = threading.Lock() with fasteners.try_lock(lock) as locked_1: assert locked_1 with fasteners.try_lock(lock) as locked_2: assert not locked_2
data/fasteners-0.19/tests/test_helpers.py
216
79
232,041
LOAD_CONST 1 LOAD_CONST ('ConfigurationManager',) IMPORT_NAME configuration_manager IMPORT_FROM ConfigurationManager STORE_NAME ConfigurationManager POP_TOP LOAD_CONST 1 LOAD_CONST ('ImportMapManager',) IMPORT_NAME import_map_manager IMPORT_FROM ImportMapManager STORE_NAME ImportMapManager POP_TOP LOAD_CONST 1 LOAD_C...
from .configuration_manager import ConfigurationManager from .import_map_manager import ImportMapManager from .peer_manager import PeerManager from .table_manager import TableCoreManager __all__ = [ "ImportMapManager", "TableCoreManager", "PeerManager", "ConfigurationManager", ]
data/os-ken-2.8.0/os_ken/services/protocols/bgp/core_managers/__init__.py
161
79
61,896
LOAD_CONST 0 LOAD_CONST None IMPORT_NAME sys STORE_NAME sys LOAD_CONST 0 LOAD_CONST None IMPORT_NAME shutil STORE_NAME shutil LOAD_CONST '@INPUT1@' LOAD_NAME sys LOAD_ATTR argv LOAD_CONST 1 BINARY_SUBSCR COMPARE_OP in POP_JUMP_IF_FALSE LOAD_NAME shutil LOAD_METHOD copyfile LOAD_NAME sys LOAD_ATTR argv LOAD_CONST 2 B...
import sys import shutil if "@INPUT1@" in sys.argv[1]: shutil.copyfile(sys.argv[2], sys.argv[3]) else: sys.exit('String @INPUT1@ not found in "{}"'.format(sys.argv[1]))
data/numpy-1.26.4/vendored-meson/meson/test cases/common/160 custom target template substitution/checkcopy.py
151
79
363,807
LOAD_CONST 'Exceptions file.' STORE_NAME __doc__ LOAD_BUILD_CLASS LOAD_CONST <code object LineOutOfFileBoundsError at 0x7fab823b2db0, file "f.py", line 4> LOAD_CONST 'LineOutOfFileBoundsError' MAKE_FUNCTION LOAD_CONST 'LineOutOfFileBoundsError' LOAD_NAME Exception CALL_FUNCTION STORE_NAME LineOutOfFileBoundsError LOA...
"""Exceptions file.""" class LineOutOfFileBoundsError(Exception): """Line out of bounds. Raises an exception if there was an attempt to access a non-existing line in a file. """ class NegativeLineRangeError(Exception): """Line range does not make sense."""
data/fpyutils-4.0.1/fpyutils/exceptions.py
283
79
321,466
LOAD_CONST '\nTests for Data Generation\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 DataGenerationTestsConfig at 0x7faad43f1c90, file "f.py", line 8> LOAD_CONST 'DataGenerationTestsConf...
""" Tests for Data Generation """ from django.apps import AppConfig class DataGenerationTestsConfig(AppConfig): name = "edx_django_utils.data_generation.tests" label = "data_generation_tests" # Needed to avoid App label duplication with other tests modules
data/edx-django-utils-5.10.1/edx_django_utils/data_generation/tests/apps.py
187
79
86,677
LOAD_CONST ' runpod-python version ' STORE_NAME __doc__ LOAD_CONST 0 LOAD_CONST ('version', 'PackageNotFoundError') IMPORT_NAME importlib.metadata IMPORT_FROM version STORE_NAME version IMPORT_FROM PackageNotFoundError STORE_NAME PackageNotFoundError POP_TOP LOAD_CONST <code object get_version at 0x7f8b20113c00, file...
""" runpod-python version """ from importlib.metadata import version, PackageNotFoundError def get_version(): """ Get the version of runpod-python """ "" try: return version("runpod") except PackageNotFoundError: return "unknown" __version__ = get_version()
data/runpod-1.6.2/runpod/version.py
177
79
399,697
LOAD_CONST 1 LOAD_CONST ('BufferedProducer',) IMPORT_NAME _buffered_producer IMPORT_FROM BufferedProducer STORE_NAME BufferedProducer POP_TOP LOAD_CONST 1 LOAD_CONST ('PartitionResolver',) IMPORT_NAME _partition_resolver IMPORT_FROM PartitionResolver STORE_NAME PartitionResolver POP_TOP LOAD_CONST 1 LOAD_CONST ('Buff...
from ._buffered_producer import BufferedProducer from ._partition_resolver import PartitionResolver from ._buffered_producer_dispatcher import BufferedProducerDispatcher __all__ = [ "BufferedProducer", "PartitionResolver", "BufferedProducerDispatcher", ]
data/azure-eventhub-5.11.6/azure/eventhub/_buffered_producer/__init__.py
150
79
248,489
LOAD_CONST 0 LOAD_CONST ('prompt',) IMPORT_NAME prompt_toolkit IMPORT_FROM prompt STORE_NAME prompt POP_TOP LOAD_CONST 0 LOAD_CONST ('set_title',) IMPORT_NAME prompt_toolkit.shortcuts IMPORT_FROM set_title STORE_NAME set_title POP_TOP LOAD_NAME __name__ LOAD_CONST '__main__' COMPARE_OP == POP_JUMP_IF_FALSE LOAD_NAME...
from prompt_toolkit import prompt from prompt_toolkit.shortcuts import set_title if __name__ == "__main__": set_title("This is the terminal title") answer = prompt("Give me some input: ") set_title("") print("You said: %s" % answer)
data/prompt_toolkit-3.0.43/examples/prompts/terminal-title.py
154
79
124,599
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 None IMPORT_NAME random STORE_NAME random LOAD_CONST 0 LOAD_CONST None IMPORT_NAME string STORE_NAME string LOAD_CONST (10,) LOAD_CONST <code object random_string at...
from __future__ import print_function import random import string def random_string(length=10): return "".join(random.choice(string.ascii_lowercase) for i in range(length)) if __name__ == "__main__": print(random_string())
data/jenkinsapi-0.3.13/jenkinsapi_tests/test_utils/random_strings.py
272
79
22,779
LOAD_CONST 0 LOAD_CONST None IMPORT_NAME unittest STORE_NAME unittest LOAD_CONST 0 LOAD_CONST None IMPORT_NAME torch STORE_NAME torch LOAD_CONST 0 LOAD_CONST ('SummaryWriter',) IMPORT_NAME tensorboardX IMPORT_FROM SummaryWriter STORE_NAME SummaryWriter POP_TOP LOAD_BUILD_CLASS LOAD_CONST <code object ONNXGraphTest a...
import unittest import torch from tensorboardX import SummaryWriter class ONNXGraphTest(unittest.TestCase): def test_onnx_graph(self): with SummaryWriter() as w: w.add_onnx_graph("tests/mnist-8.onnx")
data/tensorboardX-2.6.2.2/tests/test_onnx_graph.py
302
79
177,853
LOAD_CONST <code object task_tar at 0x7fab540c5270, file "f.py", line 1> LOAD_CONST 'task_tar' MAKE_FUNCTION STORE_NAME task_tar LOAD_CONST <code object task_version at 0x7fab540c59c0, file "f.py", line 9> LOAD_CONST 'task_version' MAKE_FUNCTION STORE_NAME task_version LOAD_CONST None RETURN_VALUE LOAD_CONST 'tar -cf...
def task_tar(): return { "actions": ["tar -cf foo.tar *"], "task_dep": ["version"], "targets": ["foo.tar"], } def task_version(): return {"actions": ["hg tip --template '{rev}' > revision.txt"]}
data/doit-0.36.0/doc/samples/tar.py
181
79
109,308
LOAD_CONST 0 LOAD_CONST ('ApiForget',) IMPORT_NAME onelogin.paths.api_2_api_authorizations.get IMPORT_FROM ApiForget STORE_NAME ApiForget POP_TOP LOAD_CONST 0 LOAD_CONST ('ApiForpost',) IMPORT_NAME onelogin.paths.api_2_api_authorizations.post IMPORT_FROM ApiForpost STORE_NAME ApiForpost POP_TOP LOAD_BUILD_CLASS LOAD_...
from onelogin.paths.api_2_api_authorizations.get import ApiForget from onelogin.paths.api_2_api_authorizations.post import ApiForpost class Api2ApiAuthorizations( ApiForget, ApiForpost, ): pass
data/onelogin-3.1.6/onelogin/apis/paths/api_2_api_authorizations.py
212
79
397,238
LOAD_CONST 0 LOAD_CONST None IMPORT_NAME stripe STORE_NAME stripe LOAD_CONST 0 LOAD_CONST ('util',) IMPORT_NAME stripe IMPORT_FROM util STORE_NAME util POP_TOP LOAD_CONST 0 LOAD_CONST ('ListableAPIResource',) IMPORT_NAME stripe.api_resources.abstract IMPORT_FROM ListableAPIResource STORE_NAME ListableAPIResource POP_...
import stripe from stripe import util from stripe.api_resources.abstract import ListableAPIResource from async_stripe.api_resources.abstract import patch_nested_resources nested_resources = ["refund"] patch_nested_resources(stripe.ApplicationFee, nested_resources)
data/async_stripe-6.1.0/async_stripe/api_resources/application_fee.py
170
79
391,243
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 ('Dataproc',) IMPORT_NAME prowler.providers.gcp.services.dataproc.dataproc_service IMPORT_FROM Dataproc STORE_NAME Dataproc POP_TO...
from prowler.providers.gcp.lib.audit_info.audit_info import gcp_audit_info from prowler.providers.gcp.services.dataproc.dataproc_service import Dataproc dataproc_client = Dataproc(gcp_audit_info)
data/prowler-3.14.0/prowler/providers/gcp/services/dataproc/dataproc_client.py
136
79
182,939
LOAD_CONST 'AUTOGENERATED. DO NOT EDIT.' STORE_NAME __doc__ LOAD_CONST 0 LOAD_CONST ('VGG16',) IMPORT_NAME tf_keras.src.applications.vgg16 IMPORT_FROM VGG16 STORE_NAME VGG16 POP_TOP LOAD_CONST 0 LOAD_CONST ('decode_predictions',) IMPORT_NAME tf_keras.src.applications.vgg16 IMPORT_FROM decode_predictions STORE_NAME de...
"""AUTOGENERATED. DO NOT EDIT.""" from tf_keras.src.applications.vgg16 import VGG16 from tf_keras.src.applications.vgg16 import decode_predictions from tf_keras.src.applications.vgg16 import preprocess_input
data/tf_keras-2.15.0/tf_keras/api/_v1/keras/applications/vgg16/__init__.py
158
79
354,062
LOAD_CONST 0 LOAD_CONST None IMPORT_NAME pytest STORE_NAME pytest LOAD_CONST 0 LOAD_CONST None IMPORT_NAME kernels STORE_NAME kernels LOAD_NAME pytest LOAD_ATTR mark LOAD_ATTR skip LOAD_CONST 'Unable to generate any tests for kernel' LOAD_CONST ('reason',) CALL_FUNCTION LOAD_CONST <code object test_pyawkward_ListOffs...
import pytest import kernels @pytest.mark.skip(reason="Unable to generate any tests for kernel") def test_pyawkward_ListOffsetArray_reduce_nonlocal_maxcount_offsetscopy_64_1(): raise NotImplementedError("Unable to generate any tests for kernel")
data/awkward-cpp-29/tests-spec/test_pyawkward_ListOffsetArray_reduce_nonlocal_maxcount_offsetscopy_64.py
213
79
220,368
LOAD_CONST 0 LOAD_CONST ('default_timer',) IMPORT_NAME timeit IMPORT_FROM default_timer STORE_NAME clock POP_TOP LOAD_CONST 0 LOAD_CONST ('var',) IMPORT_NAME sage.all IMPORT_FROM var STORE_NAME var POP_TOP LOAD_NAME var LOAD_CONST 'x y z w' CALL_FUNCTION POP_TOP LOAD_NAME x LOAD_NAME y BINARY_ADD LOAD_NAME z BINARY_...
from timeit import default_timer as clock from sage.all import var var("x y z w") e = (x + y + z + w) ** 60 t1 = clock() g = e.expand() t2 = clock() print("Total time:", t2 - t1, "s")
data/symengine-0.11.0/benchmarks/expand1_sage.py
162
79
135,258
LOAD_CONST 0 LOAD_CONST ('annotations',) IMPORT_NAME __future__ IMPORT_FROM annotations STORE_NAME annotations POP_TOP LOAD_CONST 0 LOAD_CONST ('Required', 'TypedDict') IMPORT_NAME typing_extensions IMPORT_FROM Required STORE_NAME Required IMPORT_FROM TypedDict STORE_NAME TypedDict POP_TOP LOAD_CONST 'ChatCompletionF...
from __future__ import annotations from typing_extensions import Required, TypedDict __all__ = ["ChatCompletionFunctionCallOptionParam"] class ChatCompletionFunctionCallOptionParam(TypedDict, total=False): name: Required[str] """The name of the function to call."""
data/openai-1.12.0/src/openai/types/chat/chat_completion_function_call_option_param.py
242
79
63,740
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_UnionArr...
import pytest import kernels @pytest.mark.skip(reason="Unable to generate any tests for kernel") def test_pyawkward_UnionArray8_U32_nestedfill_tags_index_64_1(): raise NotImplementedError("Unable to generate any tests for kernel")
data/awkward-cpp-29/tests-spec/test_pyawkward_UnionArray8_U32_nestedfill_tags_index_64.py
215
79
220,373
LOAD_CONST 'Collection of Finnish numbers.' STORE_NAME __doc__ LOAD_CONST 0 LOAD_CONST ('alv',) IMPORT_NAME stdnum.fi IMPORT_FROM alv STORE_NAME vat POP_TOP LOAD_CONST 0 LOAD_CONST ('hetu',) IMPORT_NAME stdnum.fi IMPORT_FROM hetu STORE_NAME personalid POP_TOP LOAD_CONST 0 LOAD_CONST ('ytunnus',) IMPORT_NAME stdnum.f...
"""Collection of Finnish numbers.""" from stdnum.fi import alv as vat # noqa: F401 from stdnum.fi import hetu as personalid # noqa: F401 from stdnum.fi import ytunnus as businessid # noqa: F401
data/python-stdnum-1.19/stdnum/fi/__init__.py
108
79
417,856
LOAD_CONST '\nUtility classes and methods for observability commands and functionality\n' STORE_NAME __doc__ LOAD_CONST 0 LOAD_CONST ('Enum',) IMPORT_NAME enum IMPORT_FROM Enum STORE_NAME Enum POP_TOP LOAD_BUILD_CLASS LOAD_CONST <code object OutputOption at 0x7f8aac3da810, file "f.py", line 8> LOAD_CONST 'OutputOptio...
""" Utility classes and methods for observability commands and functionality """ from enum import Enum class OutputOption(Enum): # pragma: no cover """ Used to configure how output will be presented with observability commands """ text = "text" # default json = "json"
data/aws-sam-cli-1.109.0/samcli/lib/observability/util.py
183
79
432,231
LOAD_CONST 0 LOAD_CONST ('template',) IMPORT_NAME django IMPORT_FROM template STORE_NAME template POP_TOP LOAD_CONST 0 LOAD_CONST ('Country', 'countries') IMPORT_NAME django_countries.fields IMPORT_FROM Country STORE_NAME Country IMPORT_FROM countries STORE_NAME countries POP_TOP LOAD_NAME template LOAD_METHOD Librar...
from django import template from django_countries.fields import Country, countries register = template.Library() @register.simple_tag def get_country(code): return Country(code=code) @register.simple_tag def get_countries(): return list(countries)
data/django-countries-7.5.1/django_countries/templatetags/countries.py
226
79
51,635
LOAD_CONST 2 LOAD_CONST ('_utilities',) IMPORT_NAME IMPORT_FROM _utilities STORE_NAME _utilities POP_TOP LOAD_CONST 0 LOAD_CONST None IMPORT_NAME typing STORE_NAME typing LOAD_CONST 1 LOAD_CONST ('*',) IMPORT_NAME account IMPORT_STAR LOAD_CONST 1 LOAD_CONST ('*',) IMPORT_NAME classification_export_configuration IMPO...
from .. import _utilities import typing from .account import * from .classification_export_configuration import * from .classification_job import * from .invitation_accepter import * from .member import * from .organization_admin_account import * from ._inputs import * from . import outputs
data/pulumi_aws-6.22.2/pulumi_aws/macie2/__init__.py
195
79
226,886
LOAD_CONST 0 LOAD_CONST None IMPORT_NAME warnings STORE_NAME warnings LOAD_NAME warnings LOAD_ATTR warn LOAD_CONST "Importing 'bin.aesara_cache' is deprecated. Import from 'aesara.bin.aesara_cache' instead." LOAD_NAME DeprecationWarning LOAD_CONST 2 LOAD_CONST ('message', 'category', 'stacklevel') CALL_FUNCTION POP...
import warnings warnings.warn( message="Importing 'bin.aesara_cache' is deprecated. Import from " "'aesara.bin.aesara_cache' instead.", category=DeprecationWarning, stacklevel=2, # Raise the warning on the import line )
data/aesara-2.9.3/bin/__init__.py
89
79
323,669
LOAD_CONST 0 LOAD_CONST ('*',) IMPORT_NAME azure.cli.core.aaz IMPORT_STAR LOAD_NAME register_command_group LOAD_CONST 'network application-gateway http-listener' CALL_FUNCTION LOAD_BUILD_CLASS LOAD_CONST <code object __CMDGroup at 0x7fab703a5270, file "f.py", line 4> LOAD_CONST '__CMDGroup' MAKE_FUNCTION LOAD_CONST '...
from azure.cli.core.aaz import * @register_command_group( "network application-gateway http-listener", ) class __CMDGroup(AAZCommandGroup): """Manage HTTP listeners of an application gateway.""" pass __all__ = ["__CMDGroup"]
data/azure-cli-2.57.0/azure/cli/command_modules/network/aaz/latest/network/application_gateway/http_listener/__cmd_group.py
190
80
378,414
LOAD_CONST 0 LOAD_CONST None IMPORT_NAME os STORE_NAME os LOAD_CONST 0 LOAD_CONST None IMPORT_NAME sys STORE_NAME sys LOAD_NAME __name__ LOAD_CONST '__main__' COMPARE_OP == POP_JUMP_IF_FALSE LOAD_NAME os LOAD_ATTR environ LOAD_METHOD setdefault LOAD_CONST 'DJANGO_SETTINGS_MODULE' LOAD_CONST 'testapp.settings' CALL_M...
import os import sys if __name__ == "__main__": os.environ.setdefault("DJANGO_SETTINGS_MODULE", "testapp.settings") from django.core.management import execute_from_command_line execute_from_command_line(sys.argv)
data/webargs-8.4.0/tests/apps/django_app/manage.py
154
80
405,730
LOAD_CONST 'Single table reports for sdmetrics.' STORE_NAME __doc__ LOAD_CONST 0 LOAD_CONST ('DiagnosticReport',) IMPORT_NAME sdmetrics.reports.single_table.diagnostic_report IMPORT_FROM DiagnosticReport STORE_NAME DiagnosticReport POP_TOP LOAD_CONST 0 LOAD_CONST ('QualityReport',) IMPORT_NAME sdmetrics.reports.singl...
"""Single table reports for sdmetrics.""" from sdmetrics.reports.single_table.diagnostic_report import DiagnosticReport from sdmetrics.reports.single_table.quality_report import QualityReport __all__ = [ "DiagnosticReport", "QualityReport", ]
data/sdmetrics-0.13.0/sdmetrics/reports/single_table/__init__.py
131
80
10,996
LOAD_CONST 0 LOAD_CONST None IMPORT_NAME salt.utils.kickstart IMPORT_FROM utils ROT_TWO POP_TOP IMPORT_FROM kickstart STORE_NAME kickstart POP_TOP LOAD_CONST 0 LOAD_CONST ('TestCase',) IMPORT_NAME tests.support.unit IMPORT_FROM TestCase STORE_NAME TestCase POP_TOP LOAD_BUILD_CLASS LOAD_CONST <code object KickstartTes...
import salt.utils.kickstart as kickstart from tests.support.unit import TestCase class KickstartTestCase(TestCase): def test_clean_args(self): ret = kickstart.clean_args({"foo": "bar", "baz": False}) assert ret == {"foo": "bar"}, ret
data/salt-3006.6/tests/unit/utils/test_kickstart.py
293
80
96,870
LOAD_CONST 'Test at-rule cases.' STORE_NAME __doc__ LOAD_CONST 2 LOAD_CONST ('util',) IMPORT_NAME IMPORT_FROM util STORE_NAME util POP_TOP LOAD_BUILD_CLASS LOAD_CONST <code object TestAtRule at 0x7fab41b010c0, file "f.py", line 6> LOAD_CONST 'TestAtRule' MAKE_FUNCTION LOAD_CONST 'TestAtRule' LOAD_NAME util LOAD_ATTR ...
"""Test at-rule cases.""" from .. import util class TestAtRule(util.TestCase): """Test at-rules.""" def test_at_rule(self): """Test at-rule (not supported).""" self.assert_raises("@page :left", NotImplementedError)
data/soupsieve-2.5/tests/test_level1/test_at_rule.py
243
80
69,965
LOAD_CONST 1 LOAD_CONST ('DocBin',) IMPORT_NAME _serialize IMPORT_FROM DocBin STORE_NAME DocBin POP_TOP LOAD_CONST 1 LOAD_CONST ('Doc',) IMPORT_NAME doc IMPORT_FROM Doc STORE_NAME Doc POP_TOP LOAD_CONST 1 LOAD_CONST ('MorphAnalysis',) IMPORT_NAME morphanalysis IMPORT_FROM MorphAnalysis STORE_NAME MorphAnalysis POP_TO...
from ._serialize import DocBin from .doc import Doc from .morphanalysis import MorphAnalysis from .span import Span from .span_group import SpanGroup from .token import Token __all__ = ["Doc", "DocBin", "MorphAnalysis", "Span", "SpanGroup", "Token"]
data/spacy-3.7.4/spacy/tokens/__init__.py
205
80
147,563
LOAD_BUILD_CLASS LOAD_CONST <code object VersionController at 0x7faa5f6db780, file "f.py", line 1> LOAD_CONST 'VersionController' MAKE_FUNCTION LOAD_CONST 'VersionController' LOAD_NAME object CALL_FUNCTION STORE_NAME VersionController LOAD_CONST None RETURN_VALUE LOAD_NAME __name__ STORE_NAME __module__ LOAD_CONST 'Ve...
class VersionController(object): def __init__(self, http_client): self.http_client = http_client def list(self): """List all versions.""" url = "/versions" resp, body = self.http_client.get(url) return body.get("versions", None)
data/python-glanceclient-4.4.0/glanceclient/v2/versions.py
257
80
248,745
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 ('JavaDownloadClient',) IMPORT_NAME java_download_client IMPORT_FROM JavaDownloadClient STORE_NAME JavaDownloadClient POP_TOP LOAD_CONST 1 LOAD_CONST ('JavaDownloa...
from __future__ import absolute_import from .java_download_client import JavaDownloadClient from .java_download_client_composite_operations import ( JavaDownloadClientCompositeOperations, ) from . import models __all__ = ["JavaDownloadClient", "JavaDownloadClientCompositeOperations", "models"]
data/oci-2.122.0/src/oci/jms_java_downloads/__init__.py
169
80
407,207
LOAD_CONST 1 LOAD_CONST ('textstat',) IMPORT_NAME textstat IMPORT_FROM textstat STORE_NAME textstat POP_TOP LOAD_CONST (0, 7, 2) STORE_NAME __version__ SETUP_LOOP to 74 LOAD_NAME dir LOAD_NAME textstat CALL_FUNCTION GET_ITER FOR_ITER to 72 STORE_NAME attribute LOAD_NAME callable LOAD_NAME getattr LOAD_NAME textstat ...
from .textstat import textstat __version__ = (0, 7, 2) for attribute in dir(textstat): if callable(getattr(textstat, attribute)): if not attribute.startswith("_"): globals()[attribute] = getattr(textstat, attribute)
data/textstat-0.7.3/textstat/__init__.py
142
80
300,458
LOAD_CONST 0 LOAD_CONST ('Collapse',) IMPORT_NAME pandas_profiling.report.presentation.core IMPORT_FROM Collapse STORE_NAME Collapse 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_CLASS LOAD_CO...
from pandas_profiling.report.presentation.core import Collapse from pandas_profiling.report.presentation.flavours.html import templates class HTMLCollapse(Collapse): def render(self) -> str: return templates.template("collapse.html").render(**self.content)
data/pandas-profiling-3.6.6/src/pandas_profiling/report/presentation/flavours/html/collapse.py
262
80
305,478
LOAD_CONST 0 LOAD_CONST None IMPORT_NAME sys STORE_NAME sys LOAD_CONST 0 LOAD_CONST ('logger',) IMPORT_NAME loguru IMPORT_FROM logger STORE_NAME logger POP_TOP LOAD_NAME logger LOAD_METHOD remove CALL_METHOD POP_TOP LOAD_NAME logger LOAD_ATTR add LOAD_NAME sys LOAD_ATTR stderr LOAD_CONST True LOAD_CONST '' LOAD_CON...
import sys from loguru import logger logger.remove() logger.add( sys.stderr, enqueue=True, format="", colorize=False, backtrace=True, diagnose=False ) try: 1 / 0 except ZeroDivisionError: logger.exception("Error")
data/loguru-0.7.2/tests/exceptions/source/backtrace/enqueue.py
184
80
143,272
LOAD_CONST 1 LOAD_CONST ('Framework',) IMPORT_NAME IMPORT_FROM Framework STORE_NAME Framework POP_TOP LOAD_BUILD_CLASS LOAD_CONST <code object Notification at 0x7fab40d04e40, file "f.py", line 4> LOAD_CONST 'Notification' MAKE_FUNCTION LOAD_CONST 'Notification' LOAD_NAME Framework LOAD_ATTR TestCase CALL_FUNCTION STOR...
from . import Framework class Notification(Framework.TestCase): def setUp(self): super().setUp() self.notification = self.g.get_user().get_notifications()[0] def testMarkAsRead(self): self.notification.mark_as_read()
data/PyGithub-2.2.0/tests/Notification.py
311
80
208,269
LOAD_CONST '\nIntroduction\n^^^^^^^^^^^^\n\n\n\n' STORE_NAME __doc__ LOAD_CONST 1 LOAD_CONST ('optimization',) IMPORT_NAME IMPORT_FROM optimization STORE_NAME optimization POP_TOP LOAD_CONST 1 LOAD_CONST ('latent_function_inference',) IMPORT_NAME IMPORT_FROM latent_function_inference STORE_NAME latent_function_infere...
""" Introduction ^^^^^^^^^^^^ """ from . import optimization from . import latent_function_inference from . import mcmc import sys sys.modules["GPy.inference.optimization"] = optimization sys.modules["GPy.inference.optimization.optimization"] = optimization
data/GPy-1.13.1/GPy/inference/__init__.py
183
80
186,169
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 TestDOMEventException at 0x7fab5437da50, file "f.py", line 5> LOAD_CONST 'TestDOMEventEx...
from PyObjCTools.TestSupport import TestCase import WebKit class TestDOMEventException(TestCase): def testConstants(self): self.assertIsInstance(WebKit.DOMEventException, str) self.assertEqual(WebKit.DOM_UNSPECIFIED_EVENT_TYPE_ERR, 0)
data/pyobjc-framework-WebKit-10.1/PyObjCTest/test_domeventexception.py
264
80
418,809
LOAD_CONST 'Models for wyoming.' STORE_NAME __doc__ LOAD_CONST 0 LOAD_CONST ('dataclass',) IMPORT_NAME dataclasses IMPORT_FROM dataclass STORE_NAME dataclass POP_TOP LOAD_CONST 1 LOAD_CONST ('WyomingService',) IMPORT_NAME data IMPORT_FROM WyomingService STORE_NAME WyomingService POP_TOP LOAD_CONST 1 LOAD_CONST ('Wyo...
"""Models for wyoming.""" from dataclasses import dataclass from .data import WyomingService from .satellite import WyomingSatellite @dataclass class DomainDataItem: """Domain data item.""" service: WyomingService satellite: WyomingSatellite | None = None
data/homeassistant-2024.2.2/homeassistant/components/wyoming/models.py
275
80
296,116
LOAD_BUILD_CLASS LOAD_CONST <code object DecodeError at 0x7fab417519c0, file "f.py", line 1> LOAD_CONST 'DecodeError' MAKE_FUNCTION LOAD_CONST 'DecodeError' LOAD_NAME Exception CALL_FUNCTION STORE_NAME DecodeError LOAD_BUILD_CLASS LOAD_CONST <code object NoBackendError at 0x7fab427a6c90, file "f.py", line 7> LOAD_CONS...
class DecodeError(Exception): """The base exception class for all decoding errors raised by this package. """ class NoBackendError(DecodeError): """The file could not be decoded by any backend. Either no backends are available or each available backend failed to decode the file. """
data/audioread-3.0.1/audioread/exceptions.py
263
80
347,140
LOAD_CONST 'DO NOT EDIT.\n\nThis file was autogenerated. Do not edit it by hand,\nsince your modifications would be overwritten.\n' STORE_NAME __doc__ LOAD_CONST 0 LOAD_CONST ('decode_predictions',) IMPORT_NAME keras_core.src.applications.imagenet_utils IMPORT_FROM decode_predictions STORE_NAME decode_predictions POP_...
"""DO NOT EDIT. This file was autogenerated. Do not edit it by hand, since your modifications would be overwritten. """ from keras_core.src.applications.imagenet_utils import decode_predictions from keras_core.src.applications.imagenet_utils import preprocess_input
data/keras-core-0.1.7/keras_core/applications/imagenet_utils/__init__.py
137
80
385,626
LOAD_CONST 0 LOAD_CONST ('*',) IMPORT_NAME azure.cli.core.aaz IMPORT_STAR LOAD_NAME register_command_group LOAD_CONST 'network application-gateway client-cert' CALL_FUNCTION LOAD_BUILD_CLASS LOAD_CONST <code object __CMDGroup at 0x7faa763f7c90, file "f.py", line 4> LOAD_CONST '__CMDGroup' MAKE_FUNCTION LOAD_CONST '__...
from azure.cli.core.aaz import * @register_command_group( "network application-gateway client-cert", ) class __CMDGroup(AAZCommandGroup): """Manage trusted client certificates of application gateway.""" pass __all__ = ["__CMDGroup"]
data/azure-cli-2.57.0/azure/cli/command_modules/network/aaz/latest/network/application_gateway/client_cert/__cmd_group.py
190
80
378,363