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.12.0' STORE_NAME __version__ LOAD_CONST 0 LOAD_CONST ('BluetoothServiceInfo', 'BluetoothServiceInfoBleak') IMPORT_NAME habluetooth IMPORT_FROM BluetoothServiceInfo STORE_NAME BluetoothServiceInfo IMPORT_FROM BluetoothServiceInfoBleak STORE_NAME BluetoothServiceInfoBleak POP_TOP LOAD_CONST 'local' STORE_...
__version__ = "1.12.0" from habluetooth import BluetoothServiceInfo, BluetoothServiceInfoBleak SOURCE_LOCAL = "local" __all__ = [ "BluetoothServiceInfo", "BluetoothServiceInfoBleak", "SOURCE_LOCAL", ]
data/home_assistant_bluetooth-1.12.0/src/home_assistant_bluetooth/__init__.py
131
82
243,797
LOAD_CONST 0 LOAD_CONST ('registry',) IMPORT_NAME sqlalchemy.dialects IMPORT_FROM registry STORE_NAME registry POP_TOP LOAD_NAME registry LOAD_METHOD register LOAD_CONST 'bigquery' LOAD_CONST 'pybigquery.sqlalchemy_bigquery' LOAD_CONST 'BigQueryDialect' CALL_METHOD POP_TOP LOAD_NAME registry LOAD_METHOD register LOA...
from sqlalchemy.dialects import registry registry.register("bigquery", "pybigquery.sqlalchemy_bigquery", "BigQueryDialect") registry.register( "bigquery.bigquery", "pybigquery.sqlalchemy_bigquery", "BigQueryDialect" )
data/pybigquery-0.10.2/tests/conftest.py
121
82
80,365
LOAD_CONST 0 LOAD_CONST ('TestCase',) IMPORT_NAME django.test IMPORT_FROM TestCase STORE_NAME TestCase POP_TOP LOAD_BUILD_CLASS LOAD_CONST <code object VersionTest at 0x7fab82194ed0, file "f.py", line 4> LOAD_CONST 'VersionTest' MAKE_FUNCTION LOAD_CONST 'VersionTest' LOAD_NAME TestCase CALL_FUNCTION STORE_NAME Version...
from django.test import TestCase class VersionTest(TestCase): """Test presence of package version.""" def test_version(self): import bootstrap5 version = bootstrap5.__version__ version_parts = version.split(".") self.assertTrue(len(version_parts) >= 3)
data/django-bootstrap-v5-1.0.11/tests/test_version.py
269
82
41,394
LOAD_CONST 0 LOAD_CONST ('collect_data_files',) IMPORT_NAME PyInstaller.utils.hooks IMPORT_FROM collect_data_files STORE_NAME collect_data_files POP_TOP LOAD_NAME collect_data_files LOAD_CONST 'reportlab' LOAD_CONST 'fonts/00readme.txt' LOAD_CONST 'fonts/bitstream-vera-license.txt' LOAD_CONST 'fonts/Vera*.ttf' BUI...
from PyInstaller.utils.hooks import collect_data_files datas = collect_data_files( "reportlab", includes=[ "fonts/00readme.txt", "fonts/bitstream-vera-license.txt", "fonts/Vera*.ttf", ], )
data/pyinstaller-hooks-contrib-2024.1/src/_pyinstaller_hooks_contrib/hooks/stdhooks/hook-z3c.rml.py
114
82
282,323
LOAD_CONST 0 LOAD_CONST ('annotations',) IMPORT_NAME __future__ IMPORT_FROM annotations STORE_NAME annotations POP_TOP LOAD_CONST 0 LOAD_CONST None IMPORT_NAME ibis STORE_NAME ibis LOAD_CONST 0 LOAD_CONST None IMPORT_NAME ibis.examples IMPORT_FROM examples STORE_NAME ex POP_TOP LOAD_CONST 0 LOAD_CONST ('deferred',) ...
from __future__ import annotations import ibis import ibis.examples as ex from ibis import deferred as _ from ibis import selectors as s from ibis import udf ibis.options.interactive = True __all__ = ["_", "ex", "ibis", "s", "udf"]
data/ibis_framework-8.0.0/ibis/interactive.py
195
82
161,187
LOAD_CONST "Dataset definition for blimp.\n\nDEPRECATED!\nIf you want to use the Blimp dataset builder class, use:\ntfds.builder_cls('blimp')\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 blimp. DEPRECATED! If you want to use the Blimp dataset builder class, use: tfds.builder_cls('blimp') """ from tensorflow_datasets.core import lazy_builder_import Blimp = lazy_builder_import.LazyBuilderImport("blimp")
data/tensorflow-datasets-4.9.4/tensorflow_datasets/text/blimp.py
125
82
256,127
LOAD_CONST 0 LOAD_CONST ('annotations',) IMPORT_NAME __future__ IMPORT_FROM annotations STORE_NAME annotations POP_TOP LOAD_CONST 0 LOAD_CONST None IMPORT_NAME pytest STORE_NAME pytest LOAD_CONST 0 LOAD_CONST ('FontFile',) IMPORT_NAME PIL IMPORT_FROM FontFile STORE_NAME FontFile POP_TOP LOAD_CONST <code object test_...
from __future__ import annotations import pytest from PIL import FontFile def test_save(tmp_path): tempname = str(tmp_path / "temp.pil") font = FontFile.FontFile() with pytest.raises(ValueError): font.save(tempname)
data/pillow-10.2.0/Tests/test_fontfile.py
213
82
142,990
LOAD_CONST None LOAD_CONST ('return',) BUILD_CONST_KEY_MAP LOAD_CONST <code object chart at 0x7fab703ef6f0, file "f.py", line 1> LOAD_CONST 'chart' MAKE_FUNCTION STORE_NAME chart LOAD_CONST None RETURN_VALUE LOAD_GLOBAL RuntimeError LOAD_CONST '`ui.chart` is now `ui.highchart`. Please install `nicegui[highcharts]` an...
def chart(*args, **kwargs) -> None: """Deprecated. Please use `ui.highchart` instead.""" raise RuntimeError( "`ui.chart` is now `ui.highchart`. " "Please install `nicegui[highcharts]` and use `ui.highchart` instead." )
data/nicegui-1.4.15/nicegui/elements/chart.py
111
82
223,239
LOAD_CONST 0 LOAD_CONST ('Pipeline',) IMPORT_NAME frictionless IMPORT_FROM Pipeline STORE_NAME Pipeline POP_TOP LOAD_CONST <code object test_pipeline_resource at 0x7fab429cdc00, file "f.py", line 4> LOAD_CONST 'test_pipeline_resource' MAKE_FUNCTION STORE_NAME test_pipeline_resource LOAD_CONST None RETURN_VALUE LOAD_G...
from frictionless import Pipeline def test_pipeline_resource(): report = Pipeline.validate_descriptor( { "steps": [ {"type": "cell-set", "fieldName": "population", "value": 100}, ], } ) assert report.valid
data/frictionless-5.16.1/tests/pipeline/test_validate.py
169
82
41,472
LOAD_CONST 0 LOAD_CONST ('AppConfig',) IMPORT_NAME django.apps IMPORT_FROM AppConfig STORE_NAME AppConfig POP_TOP LOAD_CONST 0 LOAD_CONST ('install_cacheops',) IMPORT_NAME cacheops.query IMPORT_FROM install_cacheops STORE_NAME install_cacheops POP_TOP LOAD_CONST 0 LOAD_CONST ('install_cacheops_transaction_support',) ...
from django.apps import AppConfig from cacheops.query import install_cacheops from cacheops.transaction import install_cacheops_transaction_support class CacheopsConfig(AppConfig): name = "cacheops" def ready(self): install_cacheops() install_cacheops_transaction_support()
data/django-cacheops-7.0.2/cacheops/apps.py
293
82
269,452
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 get_workspace IMPORT_STAR LOAD_CONST 1 LOAD_CONST ('*',) IMPORT_NAME license_association IMPORT_STAR L...
from .. import _utilities import typing from .get_workspace import * from .license_association import * from .role_association import * from .workspace import * from .workspace_api_key import * from .workspace_saml_configuration import * from ._inputs import * from . import outputs
data/pulumi_aws-6.22.2/pulumi_aws/grafana/__init__.py
202
82
226,240
LOAD_CONST 0 LOAD_CONST ('Enum',) IMPORT_NAME enum IMPORT_FROM Enum STORE_NAME Enum POP_TOP LOAD_BUILD_CLASS LOAD_CONST <code object DeviceManagementExchangeConnectorType at 0x7fae471296f0, file "f.py", line 4> LOAD_CONST 'DeviceManagementExchangeConnectorType' MAKE_FUNCTION LOAD_CONST 'DeviceManagementExchangeConnect...
from enum import Enum class DeviceManagementExchangeConnectorType(str, Enum): OnPremises = ("onPremises",) Hosted = ("hosted",) ServiceToService = ("serviceToService",) Dedicated = ("dedicated",) UnknownFutureValue = ("unknownFutureValue",)
data/msgraph-sdk-1.1.0/msgraph/generated/models/device_management_exchange_connector_type.py
212
82
260,814
LOAD_CONST 0 LOAD_CONST None IMPORT_NAME sys STORE_NAME sys LOAD_CONST 0 LOAD_CONST ('TProtocolException',) IMPORT_NAME thrift.protocol.TProtocol IMPORT_FROM TProtocolException STORE_NAME TProtocolException POP_TOP LOAD_CONST 0 LOAD_CONST ('TApplicationException', 'TException', 'TFrozenDict', 'TMessageType', 'TType')...
import sys from thrift.protocol.TProtocol import TProtocolException from thrift.Thrift import ( TApplicationException, TException, TFrozenDict, TMessageType, TType, ) from thrift.TRecursive import fix_spec from .ttypes import *
data/hive_metastore_client-1.0.9/thrift_files/libraries/thrift_facebook_service/constants.py
197
82
142,858
LOAD_CONST None LOAD_CONST None LOAD_CONST ('loader', 'errors') BUILD_CONST_KEY_MAP LOAD_CONST <code object load at 0x7fa9e2319b70, file "f.py", line 1> LOAD_CONST 'load' MAKE_FUNCTION STORE_NAME load LOAD_CONST (False,) LOAD_CONST <code object dump at 0x7fa9e2319c90, file "f.py", line 5> LOAD_CONST 'dump' MAKE_FUNCTI...
def load(fp, *, loader=None, errors=None): return fp.read() def dump(text, fp, sort_keys=False): return fp.write(text) def setup_extra_parser(parser): """for dictknife.cliutils.extraarguments""" return parser
data/dictknife-0.14.0/dictknife/loading/raw.py
199
82
154,356
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.src.applications.mobilenet_v3 IMPORT_FROM decode_predictions STORE_NAME decode_predictions POP_TOP LO...
"""DO NOT EDIT. This file was autogenerated. Do not edit it by hand, since your modifications would be overwritten. """ from keras.src.applications.mobilenet_v3 import decode_predictions from keras.src.applications.mobilenet_v3 import preprocess_input
data/keras-3.0.5/keras/applications/mobilenet_v3/__init__.py
139
82
349,119
LOAD_CONST 0 LOAD_CONST None IMPORT_NAME os STORE_NAME os LOAD_CONST 'https://telemetry-321112.ew.r.appspot.com/post_data' STORE_NAME TELEMETRY_ADDRESS LOAD_NAME os LOAD_METHOD getenv LOAD_CONST 'EVIDENTLY_DISABLE_TELEMETRY' LOAD_CONST '0' CALL_METHOD LOAD_CONST '1' COMPARE_OP == UNARY_NOT STORE_NAME TELEMETRY_ENABLE...
import os TELEMETRY_ADDRESS = "https://telemetry-321112.ew.r.appspot.com/post_data" TELEMETRY_ENABLED = not os.getenv("EVIDENTLY_DISABLE_TELEMETRY", "0") == "1"
data/evidently-0.4.15/src/evidently/_config.py
113
82
233,915
LOAD_CONST 0 LOAD_CONST ('raise_build_error',) IMPORT_NAME pmdarima.__check_build IMPORT_FROM raise_build_error STORE_NAME raise_build_error POP_TOP LOAD_CONST 0 LOAD_CONST None IMPORT_NAME pytest STORE_NAME pytest LOAD_CONST <code object test_raise_build_error at 0x7f8e44712e40, file "f.py", line 6> LOAD_CONST 'test...
from pmdarima.__check_build import raise_build_error import pytest def test_raise_build_error(): try: raise ValueError("this is a dummy err msg") except ValueError as v: with pytest.raises(ImportError): raise_build_error(v)
data/pmdarima-2.0.4/pmdarima/__check_build/tests/test_check_build.py
263
82
404,311
LOAD_CONST 'Shims for asyncio features that may be missing from older python versions' STORE_NAME __doc__ LOAD_CONST 0 LOAD_CONST None IMPORT_NAME sys STORE_NAME sys LOAD_NAME sys LOAD_ATTR version_info LOAD_CONST None LOAD_CONST 2 BUILD_SLICE BINARY_SUBSCR LOAD_CONST (3, 11) COMPARE_OP < POP_JUMP_IF_FALSE LOAD_CONS...
"""Shims for asyncio features that may be missing from older python versions""" import sys if sys.version_info[:2] < (3, 11): from async_timeout import timeout as asyncio_timeout else: from asyncio import timeout as asyncio_timeout __all__ = ["asyncio_timeout"]
data/langchain-0.1.8/langchain/utilities/asyncio.py
151
82
369,223
LOAD_CONST 0 LOAD_CONST ('Enum',) IMPORT_NAME enum IMPORT_FROM Enum STORE_NAME Enum POP_TOP LOAD_BUILD_CLASS LOAD_CONST <code object InstallState at 0x7fab4298e8a0, file "f.py", line 4> LOAD_CONST 'InstallState' MAKE_FUNCTION LOAD_CONST 'InstallState' LOAD_NAME str LOAD_NAME Enum CALL_FUNCTION STORE_NAME InstallState ...
from enum import Enum class InstallState(str, Enum): NotApplicable = ("notApplicable",) Installed = ("installed",) Failed = ("failed",) NotInstalled = ("notInstalled",) UninstallFailed = ("uninstallFailed",) Unknown = ("unknown",)
data/msgraph-sdk-1.1.0/msgraph/generated/models/install_state.py
194
82
259,712
LOAD_CONST 0 LOAD_CONST ('ApiForget',) IMPORT_NAME onelogin.paths.api_2_hooks_envs.get IMPORT_FROM ApiForget STORE_NAME ApiForget POP_TOP LOAD_CONST 0 LOAD_CONST ('ApiForpost',) IMPORT_NAME onelogin.paths.api_2_hooks_envs.post IMPORT_FROM ApiForpost STORE_NAME ApiForpost POP_TOP LOAD_BUILD_CLASS LOAD_CONST <code obje...
from onelogin.paths.api_2_hooks_envs.get import ApiForget from onelogin.paths.api_2_hooks_envs.post import ApiForpost class Api2HooksEnvs( ApiForget, ApiForpost, ): pass
data/onelogin-3.1.6/onelogin/apis/paths/api_2_hooks_envs.py
219
82
397,307
LOAD_CONST 0 LOAD_CONST ('nla',) IMPORT_NAME pyroute2.netlink IMPORT_FROM nla STORE_NAME nla POP_TOP LOAD_CONST 0 LOAD_CONST ('TC_H_ROOT',) IMPORT_NAME pyroute2.netlink.rtnl IMPORT_FROM TC_H_ROOT STORE_NAME TC_H_ROOT POP_TOP LOAD_NAME TC_H_ROOT STORE_NAME parent LOAD_BUILD_CLASS LOAD_CONST <code object options at 0x...
from pyroute2.netlink import nla from pyroute2.netlink.rtnl import TC_H_ROOT parent = TC_H_ROOT class options(nla): fields = (("limit", "i"),) def get_parameters(kwarg): return kwarg
data/pyroute2-0.7.12/pyroute2/netlink/rtnl/tcmsg/sched_pfifo.py
250
82
137,210
LOAD_CONST 1 LOAD_CONST ('EBResponse',) IMPORT_NAME responses IMPORT_FROM EBResponse STORE_NAME EBResponse POP_TOP LOAD_CONST 'https?://elasticbeanstalk\\.(?P<region>[a-zA-Z0-9\\-_]+)\\.amazonaws.com' BUILD_LIST STORE_NAME url_bases LOAD_CONST '{0}/$' LOAD_NAME EBResponse LOAD_ATTR dispatch BUILD_MAP STORE_NAME url_p...
from .responses import EBResponse url_bases = [ r"https?://elasticbeanstalk\.(?P<region>[a-zA-Z0-9\-_]+)\.amazonaws.com", ] url_paths = { "{0}/$": EBResponse.dispatch, }
data/moto-5.0.2/moto/elasticbeanstalk/urls.py
104
82
198,005
LOAD_CONST ('ClientException',) STORE_NAME __all__ LOAD_BUILD_CLASS LOAD_CONST <code object ClientException at 0x7fab802bf660, file "f.py", line 4> LOAD_CONST 'ClientException' MAKE_FUNCTION LOAD_CONST 'ClientException' LOAD_NAME Exception CALL_FUNCTION STORE_NAME ClientException LOAD_CONST None RETURN_VALUE LOAD_NAM...
__all__ = ("ClientException",) class ClientException(Exception): """The base exception for everything to do with clients.""" message = "ClientException" def __init__(self, message=None): self.message = message or self.message super(ClientException, self).__init__(self.message)
data/keystoneauth1-5.5.0/keystoneauth1/exceptions/base.py
256
82
80,255
LOAD_CONST 1 LOAD_CONST ('*',) IMPORT_NAME core IMPORT_STAR LOAD_CONST 1 LOAD_CONST ('*',) IMPORT_NAME codec IMPORT_STAR LOAD_CONST <code object ToASCII at 0x7fab703aed20, file "f.py", line 5> LOAD_CONST 'ToASCII' MAKE_FUNCTION STORE_NAME ToASCII LOAD_CONST <code object ToUnicode at 0x7fab703ae300, file "f.py", line...
from .core import * from .codec import * def ToASCII(label): return encode(label) def ToUnicode(label): return decode(label) def nameprep(s): raise NotImplementedError("IDNA 2008 does not utilise nameprep protocol")
data/oci-2.122.0/src/oci/_vendor/idna/compat.py
240
82
182,453
LOAD_CONST '\nR objects with fixed values.\n' STORE_NAME __doc__ LOAD_CONST 0 LOAD_CONST None IMPORT_NAME rpy2.rinterface IMPORT_FROM rinterface STORE_NAME rinterface POP_TOP LOAD_NAME rinterface LOAD_ATTR baseenv LOAD_CONST 'eval' BINARY_SUBSCR STORE_NAME _reval LOAD_NAME _reval LOAD_NAME rinterface LOAD_METHOD par...
""" R objects with fixed values. """ import rpy2.rinterface as rinterface _reval = rinterface.baseenv["eval"] NULL = _reval(rinterface.parse("NULL")) TRUE = _reval(rinterface.parse("TRUE")) FALSE = _reval(rinterface.parse("FALSE"))
data/rpy2-3.5.15/rpy2/robjects/constants.py
144
82
241,923
LOAD_CONST 1 LOAD_CONST ('map_styles', 'Deck', 'Layer', 'LightSettings', 'View', 'ViewState') IMPORT_NAME bindings IMPORT_FROM map_styles STORE_NAME map_styles IMPORT_FROM Deck STORE_NAME Deck IMPORT_FROM Layer STORE_NAME Layer IMPORT_FROM LightSettings STORE_NAME LightSettings IMPORT_FROM View STORE_NAME View IMPORT_F...
from .bindings import map_styles, Deck, Layer, LightSettings, View, ViewState # noqa from .nbextension import _jupyter_nbextension_paths # noqa from ._version import __version__ # noqa from .settings import settings # noqa
data/pydeck-0.8.0/pydeck/__init__.py
197
82
348,051
LOAD_CONST 0 LOAD_CONST ('argnums_partial', 'donation_vector', 'flatten_axes', 'flatten_fun', 'flatten_fun_nokwargs', 'rebase_donate_argnums', 'safe_map', 'shaped_abstractify') IMPORT_NAME jax._src.api_util IMPORT_FROM argnums_partial STORE_NAME argnums_partial IMPORT_FROM donation_vector STORE_NAME donation_vector IMP...
from jax._src.api_util import ( argnums_partial, donation_vector, flatten_axes, flatten_fun, flatten_fun_nokwargs, rebase_donate_argnums, safe_map, shaped_abstractify, )
data/jax-0.4.24/jax/api_util.py
201
82
328,678
LOAD_CONST 'Classical Methods for Quantum Time Evolution package.' STORE_NAME __doc__ LOAD_CONST 1 LOAD_CONST ('SciPyRealEvolver',) IMPORT_NAME scipy_real_evolver IMPORT_FROM SciPyRealEvolver STORE_NAME SciPyRealEvolver POP_TOP LOAD_CONST 1 LOAD_CONST ('SciPyImaginaryEvolver',) IMPORT_NAME scipy_imaginary_evolver IMP...
"""Classical Methods for Quantum Time Evolution package.""" from .scipy_real_evolver import SciPyRealEvolver from .scipy_imaginary_evolver import SciPyImaginaryEvolver __all__ = ["SciPyRealEvolver", "SciPyImaginaryEvolver"]
data/qiskit-terra-0.46.0/qiskit/algorithms/time_evolvers/classical_methods/__init__.py
157
82
430,639
LOAD_CONST 'AUTOGENERATED. DO NOT EDIT.' STORE_NAME __doc__ LOAD_CONST 0 LOAD_CONST ('InceptionV3',) IMPORT_NAME tf_keras.src.applications.inception_v3 IMPORT_FROM InceptionV3 STORE_NAME InceptionV3 POP_TOP LOAD_CONST 0 LOAD_CONST ('decode_predictions',) IMPORT_NAME tf_keras.src.applications.inception_v3 IMPORT_FROM ...
"""AUTOGENERATED. DO NOT EDIT.""" from tf_keras.src.applications.inception_v3 import InceptionV3 from tf_keras.src.applications.inception_v3 import decode_predictions from tf_keras.src.applications.inception_v3 import preprocess_input
data/tf_keras-2.15.0/tf_keras/api/_v2/keras/applications/inception_v3/__init__.py
161
82
354,109
LOAD_CONST 0 LOAD_CONST ('collect_data_files',) IMPORT_NAME PyInstaller.utils.hooks IMPORT_FROM collect_data_files STORE_NAME collect_data_files POP_TOP LOAD_CONST 0 LOAD_CONST ('is_module_satisfies',) IMPORT_NAME PyInstaller.utils.hooks IMPORT_FROM is_module_satisfies STORE_NAME is_module_satisfies POP_TOP LOAD_NAME...
from PyInstaller.utils.hooks import collect_data_files from PyInstaller.utils.hooks import is_module_satisfies if is_module_satisfies("botocore >= 1.4.36"): hiddenimports = ["html.parser"] datas = collect_data_files("botocore")
data/pyinstaller-hooks-contrib-2024.1/src/_pyinstaller_hooks_contrib/hooks/stdhooks/hook-botocore.py
151
82
282,141
LOAD_CONST 'The :mod:`nilearn.decomposition` module includes a subject level variant of the :term:`ICA` called Canonical :term:`ICA`.' STORE_NAME __doc__ LOAD_CONST 1 LOAD_CONST ('CanICA',) IMPORT_NAME canica IMPORT_FROM CanICA STORE_NAME CanICA POP_TOP LOAD_CONST 1 LOAD_CONST ('DictLearning',) IMPORT_NAME dict_learn...
"""The :mod:`nilearn.decomposition` module includes a subject level \ variant of the :term:`ICA` called Canonical :term:`ICA`.""" from .canica import CanICA from .dict_learning import DictLearning __all__ = ["CanICA", "DictLearning"]
data/nilearn-0.10.3/nilearn/decomposition/__init__.py
137
82
232,568
LOAD_CONST 1 LOAD_CONST ('functions',) IMPORT_NAME IMPORT_FROM functions STORE_NAME functions POP_TOP LOAD_CONST 1 LOAD_CONST ('factorials',) IMPORT_NAME IMPORT_FROM factorials STORE_NAME factorials POP_TOP LOAD_CONST 1 LOAD_CONST ('hypergeometric',) IMPORT_NAME IMPORT_FROM hypergeometric STORE_NAME hypergeometric PO...
from . import functions from . import factorials from . import hypergeometric from . import expintegrals from . import bessel from . import orthogonal from . import theta from . import elliptic from . import signals from . import zeta from . import rszeta from . import zetazeros from . import qfunctions
data/mpmath-1.3.0/mpmath/functions/__init__.py
321
82
444,894
LOAD_CONST 0 LOAD_CONST ('AppConfig',) IMPORT_NAME django.apps IMPORT_FROM AppConfig STORE_NAME AppConfig POP_TOP LOAD_CONST 0 LOAD_CONST ('gettext_lazy',) IMPORT_NAME django.utils.translation IMPORT_FROM gettext_lazy STORE_NAME _ POP_TOP LOAD_BUILD_CLASS LOAD_CONST <code object SiteMapsConfig at 0x7f8af04b85d0, file...
from django.apps import AppConfig from django.utils.translation import gettext_lazy as _ class SiteMapsConfig(AppConfig): default_auto_field = "django.db.models.AutoField" name = "django.contrib.sitemaps" verbose_name = _("Site Maps")
data/Django-5.0.2/django/contrib/sitemaps/apps.py
219
82
326,684
LOAD_CONST 'Using hypothesis (https://hypothesis.readthedocs.io/en/latest/index.html) to test the finder.' STORE_NAME __doc__ LOAD_CONST 0 LOAD_CONST ('given', 'settings') IMPORT_NAME hypothesis IMPORT_FROM given STORE_NAME given IMPORT_FROM settings STORE_NAME settings POP_TOP LOAD_CONST 0 LOAD_CONST ('domains', 'ur...
"""Using hypothesis (https://hypothesis.readthedocs.io/en/latest/index.html) to test the finder.""" from hypothesis import given, settings from hypothesis.provisional import domains, urls from hypothesis.strategies._internal.ipaddress import ip_addresses from ioc_finder import find_iocs
data/ioc_finder-7.3.0/tests/test_with_hypothesis.py
185
82
163,818
LOAD_CONST 'Utility functions for the Whirlpool Sixth Sense integration.' STORE_NAME __doc__ LOAD_CONST 0 LOAD_CONST ('Brand', 'Region') IMPORT_NAME whirlpool.backendselector IMPORT_FROM Brand STORE_NAME Brand IMPORT_FROM Region STORE_NAME Region POP_TOP LOAD_NAME Region LOAD_NAME Brand LOAD_CONST ('region', 'return'...
"""Utility functions for the Whirlpool Sixth Sense integration.""" from whirlpool.backendselector import Brand, Region def get_brand_for_region(region: Region) -> Brand: """Get the correct brand for each region.""" return Brand.Maytag if region == Region.US else Brand.Whirlpool
data/homeassistant-2024.2.2/homeassistant/components/whirlpool/util.py
176
82
407,162
LOAD_CONST 0 LOAD_CONST ('Path',) IMPORT_NAME pathlib IMPORT_FROM Path STORE_NAME Path POP_TOP LOAD_CONST 0 LOAD_CONST ('Optional',) IMPORT_NAME typing IMPORT_FROM Optional STORE_NAME Optional POP_TOP LOAD_CONST 0 LOAD_CONST ('BaseSettings',) IMPORT_NAME scrapy.settings IMPORT_FROM BaseSettings STORE_NAME BaseSetting...
from pathlib import Path from typing import Optional from scrapy.settings import BaseSettings def job_dir(settings: BaseSettings) -> Optional[str]: path: str = settings["JOBDIR"] if path and not Path(path).exists(): Path(path).mkdir(parents=True) return path
data/Scrapy-2.11.1/scrapy/utils/job.py
218
82
332,493
LOAD_CONST 'rekognition base URL and path.' STORE_NAME __doc__ LOAD_CONST 1 LOAD_CONST ('RekognitionResponse',) IMPORT_NAME responses IMPORT_FROM RekognitionResponse STORE_NAME RekognitionResponse POP_TOP LOAD_CONST 'https?://rekognition\\.(.+)\\.amazonaws\\.com' BUILD_LIST STORE_NAME url_bases LOAD_CONST '{0}/$' LO...
"""rekognition base URL and path.""" from .responses import RekognitionResponse url_bases = [ r"https?://rekognition\.(.+)\.amazonaws\.com", ] url_paths = { "{0}/$": RekognitionResponse.dispatch, }
data/moto-5.0.2/moto/rekognition/urls.py
113
82
198,061
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 ('load_data',) IMPORT_NAME keras_core.src.datasets.boston_housing IMPORT_FROM load_data STORE_NAME load_data POP_TOP LOAD_CONST 0 LOAD_CONST ('...
"""DO NOT EDIT. This file was autogenerated. Do not edit it by hand, since your modifications would be overwritten. """ from keras_core.src.datasets.boston_housing import load_data from keras_core.src.datasets.california_housing import load_data
data/keras-core-0.1.7/keras_core/datasets/boston_housing/__init__.py
134
82
385,639
LOAD_CONST 0 LOAD_CONST ('dirname', 'basename', 'isfile', 'join') IMPORT_NAME os.path IMPORT_FROM dirname STORE_NAME dirname IMPORT_FROM basename STORE_NAME basename IMPORT_FROM isfile STORE_NAME isfile IMPORT_FROM join STORE_NAME join POP_TOP LOAD_CONST 0 LOAD_CONST None IMPORT_NAME glob STORE_NAME glob LOAD_NAME gl...
from os.path import dirname, basename, isfile, join import glob modules = glob.glob(join(dirname(__file__), "*.py")) __all__ = [ basename(f)[:-3] for f in modules if isfile(f) and not f.endswith("__init__.py") ]
data/checkov-3.2.23/checkov/terraform/checks/provider/bridgecrew/__init__.py
243
82
159,772
LOAD_CONST 0 LOAD_CONST None IMPORT_NAME logging STORE_NAME logging LOAD_CONST 0 LOAD_CONST None IMPORT_NAME pkg_resources STORE_NAME pkg_resources LOAD_CONST 1 LOAD_CONST ('Client',) IMPORT_NAME client IMPORT_FROM Client STORE_NAME Client POP_TOP LOAD_NAME pkg_resources LOAD_METHOD get_distribution LOAD_CONST 'pytd...
import logging import pkg_resources from .client import Client __version__ = pkg_resources.get_distribution("pytd").version logger = logging.getLogger(__name__) logger.addHandler(logging.StreamHandler()) logger.setLevel(logging.INFO) __all__ = ["__version__", "Client"]
data/pytd-1.5.1/pytd/__init__.py
166
82
415,528
LOAD_CONST 0 LOAD_CONST ('RegisteredResponse', 'ResponseSet') IMPORT_NAME globus_sdk._testing.models IMPORT_FROM RegisteredResponse STORE_NAME RegisteredResponse IMPORT_FROM ResponseSet STORE_NAME ResponseSet POP_TOP LOAD_NAME ResponseSet LOAD_NAME RegisteredResponse LOAD_CONST 'auth' LOAD_CONST '/v2/oauth2/token/r...
from globus_sdk._testing.models import RegisteredResponse, ResponseSet RESPONSES = ResponseSet( default=RegisteredResponse( service="auth", path="/v2/oauth2/token/revoke", method="POST", json={"active": False}, ) )
data/globus-sdk-3.37.0/src/globus_sdk/_testing/data/auth/oauth2_revoke_token.py
131
82
217,614
LOAD_CONST 0 LOAD_CONST None IMPORT_NAME prefect.server.services.cancellation_cleanup STORE_NAME prefect LOAD_CONST 0 LOAD_CONST None IMPORT_NAME prefect.server.services.flow_run_notifications STORE_NAME prefect LOAD_CONST 0 LOAD_CONST None IMPORT_NAME prefect.server.services.late_runs STORE_NAME prefect LOAD_CONST ...
import prefect.server.services.cancellation_cleanup import prefect.server.services.flow_run_notifications import prefect.server.services.late_runs import prefect.server.services.pause_expirations import prefect.server.services.scheduler import prefect.server.services.telemetry
data/prefect-2.15.0/src/prefect/server/services/__init__.py
157
82
106,028
LOAD_CONST 0 LOAD_CONST None IMPORT_NAME json STORE_NAME json LOAD_CONST 0 LOAD_CONST None IMPORT_NAME pathlib STORE_NAME pathlib LOAD_NAME pathlib LOAD_METHOD Path LOAD_NAME __file__ CALL_METHOD LOAD_ATTR parent STORE_NAME CONFIGS LOAD_CONST <code object load_config_schema at 0x7fab8000f780, file "f.py", line 7> LO...
import json import pathlib CONFIGS = pathlib.Path(__file__).parent def load_config_schema(key): """load a keyed filename""" return json.loads( (CONFIGS / "{}.schema.json".format(key)).read_text(encoding="utf-8") )
data/jupyter-lsp-2.2.2/jupyter_lsp/specs/config/__init__.py
168
82
342,417
LOAD_CONST 0 LOAD_CONST ('main',) IMPORT_NAME json_stream_rs_tokenizer.benchmark.app IMPORT_FROM main STORE_NAME main POP_TOP LOAD_CONST <code object test_via_benchmark at 0x7fab64195c90, file "f.py", line 4> LOAD_CONST 'test_via_benchmark' MAKE_FUNCTION STORE_NAME test_via_benchmark LOAD_CONST None RETURN_VALUE LOAD...
from json_stream_rs_tokenizer.benchmark.app import main def test_via_benchmark(): """ Just check that it runs without errors """ speedup = main(json_bytes=1e5) assert speedup > 1, "no speedup - make sure it's built in release mode"
data/json-stream-rs-tokenizer-0.4.25/tests/test_via_benchmark.py
170
82
418,504
LOAD_CONST 0 LOAD_CONST ('SubmitField',) IMPORT_NAME wtforms.fields IMPORT_FROM SubmitField STORE_NAME SubmitField POP_TOP LOAD_CONST 0 LOAD_CONST ('Form',) IMPORT_NAME wtforms.form IMPORT_FROM Form STORE_NAME Form POP_TOP LOAD_BUILD_CLASS LOAD_CONST <code object F at 0x7fab82345780, file "f.py", line 5> LOAD_CONST '...
from wtforms.fields import SubmitField from wtforms.form import Form class F(Form): a = SubmitField("Label") def test_submit_field(): assert F().a() == """<input id="a" name="a" type="submit" value="Label">"""
data/wtforms-3.1.2/tests/fields/test_submit.py
270
82
16,196
LOAD_CONST 0 LOAD_CONST ('FileAdapter', 'StorageAdapter') IMPORT_NAME globus_sdk.tokenstorage.base IMPORT_FROM FileAdapter STORE_NAME FileAdapter IMPORT_FROM StorageAdapter STORE_NAME StorageAdapter POP_TOP LOAD_CONST 0 LOAD_CONST ('SimpleJSONFileAdapter',) IMPORT_NAME globus_sdk.tokenstorage.file_adapters IMPORT_FROM...
from globus_sdk.tokenstorage.base import FileAdapter, StorageAdapter from globus_sdk.tokenstorage.file_adapters import SimpleJSONFileAdapter from globus_sdk.tokenstorage.sqlite_adapter import SQLiteAdapter __all__ = ("SimpleJSONFileAdapter", "SQLiteAdapter", "StorageAdapter", "FileAdapter")
data/globus-sdk-3.37.0/src/globus_sdk/tokenstorage/__init__.py
158
82
217,481
LOAD_CONST 1 LOAD_CONST ('CheckRunHealthResult', 'LaunchRunContext', 'ResumeRunContext', 'RunLauncher', 'WorkerStatus') IMPORT_NAME base IMPORT_FROM CheckRunHealthResult STORE_NAME CheckRunHealthResult IMPORT_FROM LaunchRunContext STORE_NAME LaunchRunContext IMPORT_FROM ResumeRunContext STORE_NAME ResumeRunContext IMPO...
from .base import ( CheckRunHealthResult as CheckRunHealthResult, LaunchRunContext as LaunchRunContext, ResumeRunContext as ResumeRunContext, RunLauncher as RunLauncher, WorkerStatus as WorkerStatus, ) from .default_run_launcher import DefaultRunLauncher as DefaultRunLauncher
data/dagster-1.6.5/dagster/_core/launcher/__init__.py
134
82
54,679
LOAD_CONST ' Tests that reads a data file via path' STORE_NAME __doc__ LOAD_CONST 0 LOAD_CONST ('path',) IMPORT_NAME importlib.resources IMPORT_FROM path STORE_NAME path POP_TOP LOAD_NAME path LOAD_CONST 'some_package' LOAD_CONST 'DATA_FILE.txt' CALL_FUNCTION SETUP_WITH to 70 STORE_NAME data_path LOAD_NAME open LOAD...
""" Tests that reads a data file via path""" from importlib.resources import path with path("some_package", "DATA_FILE.txt") as data_path: with open(data_path, encoding="utf8") as data_file: print("RES", data_file.read()) print("OK.")
data/Nuitka-2.0.3/tests/programs/resource_reader37/ResourceReaderMain.py
173
82
148,291
LOAD_CONST 0 LOAD_CONST ('*',) IMPORT_NAME azure.cli.core.aaz IMPORT_STAR LOAD_NAME register_command_group LOAD_CONST 'relay namespace authorization-rule keys' CALL_FUNCTION LOAD_BUILD_CLASS LOAD_CONST <code object __CMDGroup at 0x7fab64192270, file "f.py", line 4> LOAD_CONST '__CMDGroup' MAKE_FUNCTION LOAD_CONST '__...
from azure.cli.core.aaz import * @register_command_group( "relay namespace authorization-rule keys", ) class __CMDGroup(AAZCommandGroup): """Manage Azure Authorization Rule connection strings for Namespace.""" pass __all__ = ["__CMDGroup"]
data/azure-cli-2.57.0/azure/cli/command_modules/relay/aaz/latest/relay/namespace/authorization_rule/keys/__cmd_group.py
192
82
375,629
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 TestDOMHTMLStyleElement at 0x7fab5437da50, file "f.py", line 5> LOAD_CONST 'TestDOMHTMLS...
from PyObjCTools.TestSupport import TestCase import WebKit class TestDOMHTMLStyleElement(TestCase): def testMethods(self): self.assertResultIsBOOL(WebKit.DOMHTMLStyleElement.disabled) self.assertArgIsBOOL(WebKit.DOMHTMLStyleElement.setDisabled_, 0)
data/pyobjc-framework-WebKit-10.1/PyObjCTest/test_domhtmlstyleelement.py
272
82
418,807
LOAD_CONST 'Assert no TTY is available.' STORE_NAME __doc__ LOAD_CONST 0 LOAD_CONST None IMPORT_NAME sys STORE_NAME sys LOAD_CONST 0 STORE_NAME status SETUP_LOOP to 78 LOAD_NAME sys LOAD_ATTR stdin LOAD_NAME sys LOAD_ATTR stdout LOAD_NAME sys LOAD_ATTR stderr BUILD_TUPLE GET_ITER FOR_ITER to 76 STORE_NAME handle LO...
"""Assert no TTY is available.""" import sys status = 0 for handle in sys.stdin, sys.stdout, sys.stderr: if handle.isatty(): print(f"{handle} is a TTY", file=sys.stderr) status += 1 sys.exit(status)
data/ansible-core-2.16.3/test/integration/targets/ansible-test-no-tty/ansible_collections/ns/col/tests/integration/targets/no-tty/assert-no-tty.py
163
82
437,415
LOAD_CONST 0 LOAD_CONST None IMPORT_NAME sys STORE_NAME sys LOAD_CONST 0 LOAD_CONST ('CLI',) IMPORT_NAME knack.cli IMPORT_FROM CLI STORE_NAME CLI POP_TOP LOAD_CONST 0 LOAD_CONST ('CLICommandsLoader', 'CLICommand') IMPORT_NAME knack.commands IMPORT_FROM CLICommandsLoader STORE_NAME CLICommandsLoader IMPORT_FROM CLICom...
import sys from knack.cli import CLI from knack.commands import CLICommandsLoader, CLICommand from knack.arguments import ArgumentsContext from knack.help import CLIHelp __all__ = ["CLI", "CLICommandsLoader", "CLICommand", "CLIHelp", "ArgumentsContext"]
data/knack-0.11.0/knack/__init__.py
202
82
434,122
LOAD_CONST 0 LOAD_CONST None IMPORT_NAME Cocoa STORE_NAME Cocoa LOAD_CONST 0 LOAD_CONST ('TestCase',) IMPORT_NAME PyObjCTools.TestSupport IMPORT_FROM TestCase STORE_NAME TestCase POP_TOP SETUP_EXCEPT to 34 LOAD_CONST 0 LOAD_CONST None IMPORT_NAME Quartz STORE_NAME Quartz POP_BLOCK JUMP_FORWARD to 58 DUP_TOP LOAD_NA...
import Cocoa # noqa: F401 from PyObjCTools.TestSupport import TestCase try: import Quartz # noqa: F401 except ImportError: Quartz = None # noqa: F401 class TestCarbonUtils(TestCase): pass
data/pyobjc-framework-WebKit-10.1/PyObjCTest/test_carbonutils.py
218
82
418,832
LOAD_CONST 0 LOAD_CONST ('TestCase', 'min_os_level') IMPORT_NAME PyObjCTools.TestSupport IMPORT_FROM TestCase STORE_NAME TestCase IMPORT_FROM min_os_level STORE_NAME min_os_level POP_TOP LOAD_CONST 0 LOAD_CONST None IMPORT_NAME WebKit STORE_NAME WebKit LOAD_BUILD_CLASS LOAD_CONST <code object TestWKFindResult at 0x7f...
from PyObjCTools.TestSupport import TestCase, min_os_level import WebKit class TestWKFindResult(TestCase): @min_os_level("11.0") def testMethods11_0(self): self.assertResultIsBOOL(WebKit.WKFindResult.matchFound)
data/pyobjc-framework-WebKit-10.1/PyObjCTest/test_wkfindresult.py
288
82
418,836
LOAD_CONST 0 LOAD_CONST ('annotations',) IMPORT_NAME __future__ IMPORT_FROM annotations STORE_NAME annotations POP_TOP LOAD_CONST 0 LOAD_CONST ('Schema', 'fields') IMPORT_NAME marshmallow IMPORT_FROM Schema STORE_NAME Schema IMPORT_FROM fields STORE_NAME fields POP_TOP LOAD_BUILD_CLASS LOAD_CONST <code object Version...
from __future__ import annotations from marshmallow import Schema, fields class VersionInfoSchema(Schema): """Version information schema.""" version = fields.String(dump_only=True) git_version = fields.String(dump_only=True) version_info_schema = VersionInfoSchema()
data/apache_airflow-2.8.1/airflow/api_connexion/schemas/version_schema.py
235
82
254,251
LOAD_CONST <code object test_call at 0x7fab700adf60, file "f.py", line 1> LOAD_CONST 'test_call' MAKE_FUNCTION STORE_NAME test_call LOAD_CONST None RETURN_VALUE LOAD_FAST mocker LOAD_METHOD patch LOAD_CONST 'click.launch' CALL_METHOD STORE_FAST mock LOAD_FAST hatch LOAD_CONST 'config' LOAD_CONST 'explore' CALL_FUNCTI...
def test_call(hatch, config_file, mocker): mock = mocker.patch("click.launch") result = hatch("config", "explore") assert result.exit_code == 0, result.output mock.assert_called_once_with(str(config_file.path), locate=True)
data/hatch-1.9.3/tests/cli/config/test_explore.py
171
82
183,725
LOAD_CONST "\nModule containing the library's version information.\n\n This version information has been extracted into a separate file so it can be\nread from the setup.py script without having to import the suds package itself.\nSee the setup.py script for more detailed information.\n\n" STORE_NAME __doc__ LOAD_CONS...
""" Module containing the library's version information. This version information has been extracted into a separate file so it can be read from the setup.py script without having to import the suds package itself. See the setup.py script for more detailed information. """ __version__ = "1.1.2" __build__ = ""
data/suds-community-1.1.2/suds/version.py
99
82
393,063
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 TestDOMHTMLMenuElement at 0x7fab800bced0, file "f.py", line 5> LOAD_CONST 'TestDOMHTMLMe...
from PyObjCTools.TestSupport import TestCase import WebKit class TestDOMHTMLMenuElement(TestCase): def testMethods(self): self.assertResultIsBOOL(WebKit.DOMHTMLMenuElement.compact) self.assertArgIsBOOL(WebKit.DOMHTMLMenuElement.setCompact_, 0)
data/pyobjc-framework-WebKit-10.1/PyObjCTest/test_domhtmlmenuelement.py
271
82
418,863
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 TestDOMHTMLDirectoryElement at 0x7fab82278d20, file "f.py", line 5> LOAD_CONST 'TestDOMH...
from PyObjCTools.TestSupport import TestCase import WebKit class TestDOMHTMLDirectoryElement(TestCase): def testMethods(self): self.assertResultIsBOOL(WebKit.DOMHTMLDirectoryElement.compact) self.assertArgIsBOOL(WebKit.DOMHTMLDirectoryElement.setCompact_, 0)
data/pyobjc-framework-WebKit-10.1/PyObjCTest/test_domhtmldirectoryelement.py
273
82
418,867
LOAD_CONST 0 LOAD_CONST None IMPORT_NAME io STORE_NAME io LOAD_CONST 0 LOAD_CONST None IMPORT_NAME json STORE_NAME json LOAD_BUILD_CLASS LOAD_CONST <code object UploadReportsRequest at 0x7fab640f2ed0, file "f.py", line 5> LOAD_CONST 'UploadReportsRequest' MAKE_FUNCTION LOAD_CONST 'UploadReportsRequest' LOAD_NAME obje...
import io import json class UploadReportsRequest(object): def __init__(self, agent_data, report_file): self.agentData = io.StringIO( str(json.dumps(agent_data, default=lambda m: m.__dict__)) ) self.report = report_file
data/sealights-python-agent-1.5.5/python_agent/test_listener/entities/upload_reports_request.py
310
82
156,990
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 TestDOMStyleSheet at 0x7fab82278d20, file "f.py", line 5> LOAD_CONST 'TestDOMStyleSheet'...
from PyObjCTools.TestSupport import TestCase import WebKit class TestDOMStyleSheet(TestCase): def testMethods(self): self.assertResultIsBOOL(WebKit.DOMStyleSheet.disabled) self.assertArgIsBOOL(WebKit.DOMStyleSheet.setDisabled_, 0)
data/pyobjc-framework-WebKit-10.1/PyObjCTest/test_domstylesheet.py
271
82
418,878
LOAD_CONST 0 LOAD_CONST ('pydantic',) IMPORT_NAME samtranslator.compat IMPORT_FROM pydantic STORE_NAME pydantic POP_TOP LOAD_CONST 0 LOAD_CONST ('LenientBaseModel',) IMPORT_NAME samtranslator.internal.schema_source.common IMPORT_FROM LenientBaseModel STORE_NAME LenientBaseModel POP_TOP LOAD_NAME pydantic LOAD_ATTR co...
from samtranslator.compat import pydantic from samtranslator.internal.schema_source.common import LenientBaseModel constr = pydantic.constr class Resource(LenientBaseModel): Type: constr(regex=r"^(?!AWS::Serverless::).+$") # type: ignore
data/aws-sam-translator-1.85.0/samtranslator/internal/schema_source/any_cfn_resource.py
221
82
216,937
LOAD_CONST 0 LOAD_CONST None IMPORT_NAME sys STORE_NAME sys LOAD_NAME sys LOAD_ATTR version_info LOAD_CONST 0 BINARY_SUBSCR LOAD_CONST 3 COMPARE_OP >= POP_JUMP_IF_TRUE LOAD_GLOBAL AssertionError LOAD_CONST 'To use visdom with python 2, downgrade to v0.1.8.9' CALL_FUNCTION RAISE_VARARGS LOAD_NAME __name__ LOAD_CONST '...
import sys assert sys.version_info[0] >= 3, "To use visdom with python 2, downgrade to v0.1.8.9" if __name__ == "__main__": from visdom.server.run_server import download_scripts_and_run download_scripts_and_run()
data/visdom-0.2.4/py/visdom/server/__main__.py
154
82
15,686
LOAD_CONST 2 LOAD_CONST ('WycheproofTest',) IMPORT_NAME utils IMPORT_FROM WycheproofTest STORE_NAME WycheproofTest POP_TOP LOAD_CONST <code object test_wycheproof_test_repr at 0x7f8af15c2780, file "f.py", line 4> LOAD_CONST 'test_wycheproof_test_repr' MAKE_FUNCTION STORE_NAME test_wycheproof_test_repr LOAD_CONST None ...
from ..utils import WycheproofTest def test_wycheproof_test_repr(): wycheproof = WycheproofTest({}, {}, {"tcId": 3}) assert repr(wycheproof) == "<WycheproofTest({}, {}, {'tcId': 3}, tcId=3)>"
data/cryptography-42.0.4/tests/wycheproof/test_utils.py
195
82
400,765
LOAD_CONST 0 LOAD_CONST ('*',) IMPORT_NAME azure.cli.core.aaz IMPORT_STAR LOAD_NAME register_command_group LOAD_CONST 'afd waf-log-analytic' CALL_FUNCTION LOAD_BUILD_CLASS LOAD_CONST <code object __CMDGroup at 0x7fab416c6420, file "f.py", line 4> LOAD_CONST '__CMDGroup' MAKE_FUNCTION LOAD_CONST '__CMDGroup' LOAD_NAM...
from azure.cli.core.aaz import * @register_command_group( "afd waf-log-analytic", ) class __CMDGroup(AAZCommandGroup): """Manage afd WAF related log analytic results.""" pass __all__ = ["__CMDGroup"]
data/azure-cli-2.57.0/azure/cli/command_modules/cdn/aaz/latest/afd/waf_log_analytic/__cmd_group.py
192
82
375,294
LOAD_CONST 0 LOAD_CONST ('annotations',) IMPORT_NAME __future__ IMPORT_FROM annotations STORE_NAME annotations POP_TOP LOAD_CONST None RETURN_VALUE
from __future__ import annotations """ Hazardous Materials This is a "Hazardous Materials" module. You should ONLY use it if you're 100% absolutely sure that you know what you're doing because this module is full of land mines, dragons, and dinosaurs with laser guns. """
data/cryptography-42.0.4/src/cryptography/hazmat/__init__.py
32
82
400,852
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: DOCUMENTATION = r""" options: option1: description: - Test description required: yes aliases: - alias1 type: str """
data/ansible-core-2.16.3/test/integration/targets/ansible-test-docker/ansible_collections/ns/col/plugins/doc_fragments/ps_util.py
204
82
437,357
LOAD_CONST 0 LOAD_CONST ('annotations',) IMPORT_NAME __future__ IMPORT_FROM annotations STORE_NAME annotations POP_TOP LOAD_CONST 0 LOAD_CONST ('UUID',) IMPORT_NAME uuid IMPORT_FROM UUID STORE_NAME UUID POP_TOP LOAD_CONST 0 LOAD_CONST ('BaseModel',) IMPORT_NAME langchain_core.pydantic_v1 IMPORT_FROM BaseModel STORE_N...
from __future__ import annotations from uuid import UUID from langchain_core.pydantic_v1 import BaseModel class RunInfo(BaseModel): """Class that contains metadata for a single execution of a Chain or model.""" run_id: UUID """A unique identifier for the model or chain run."""
data/langchain_core-0.1.25/langchain_core/outputs/run_info.py
225
82
434,955
LOAD_CONST 0 LOAD_CONST ('annotations',) IMPORT_NAME __future__ IMPORT_FROM annotations STORE_NAME annotations POP_TOP LOAD_CONST 0 LOAD_CONST ('openssl',) IMPORT_NAME cryptography.hazmat.bindings._rust IMPORT_FROM openssl STORE_NAME rust_openssl POP_TOP LOAD_CONST 0 LOAD_CONST ('hashes',) IMPORT_NAME cryptography.ha...
from __future__ import annotations from cryptography.hazmat.bindings._rust import openssl as rust_openssl from cryptography.hazmat.primitives import hashes __all__ = ["HMAC"] HMAC = rust_openssl.hmac.HMAC hashes.HashContext.register(HMAC)
data/cryptography-42.0.4/src/cryptography/hazmat/primitives/hmac.py
154
82
400,865
LOAD_CONST 0 LOAD_CONST ('ReadOptions', 'ParseOptions', 'ConvertOptions', 'ISO8601', 'open_csv', 'read_csv', 'CSVStreamingReader', 'write_csv', 'WriteOptions', 'CSVWriter', 'InvalidRow') IMPORT_NAME pyarrow._csv IMPORT_FROM ReadOptions STORE_NAME ReadOptions IMPORT_FROM ParseOptions STORE_NAME ParseOptions IMPORT_FROM ...
from pyarrow._csv import ( # noqa ReadOptions, ParseOptions, ConvertOptions, ISO8601, open_csv, read_csv, CSVStreamingReader, write_csv, WriteOptions, CSVWriter, InvalidRow, )
data/pyarrow-15.0.0/pyarrow/csv.py
183
82
94,481
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 TestDOMHTMLObjectElement at 0x7fab5437dc00, file "f.py", line 5> LOAD_CONST 'TestDOMHTML...
from PyObjCTools.TestSupport import TestCase import WebKit class TestDOMHTMLObjectElement(TestCase): def testMethods(self): self.assertResultIsBOOL(WebKit.DOMHTMLObjectElement.declare) self.assertArgIsBOOL(WebKit.DOMHTMLObjectElement.setDeclare_, 0)
data/pyobjc-framework-WebKit-10.1/PyObjCTest/test_domhtmlobjectelement.py
272
82
418,860
LOAD_CONST 1 LOAD_CONST ('WebSiteManagementClient',) IMPORT_NAME _web_site_management_client IMPORT_FROM WebSiteManagementClient STORE_NAME WebSiteManagementClient POP_TOP LOAD_CONST 'WebSiteManagementClient' BUILD_LIST STORE_NAME __all__ SETUP_EXCEPT to 42 LOAD_CONST 1 LOAD_CONST ('patch_sdk',) IMPORT_NAME _patch I...
from ._web_site_management_client import WebSiteManagementClient __all__ = ["WebSiteManagementClient"] try: from ._patch import patch_sdk # type: ignore patch_sdk() except ImportError: pass from ._version import VERSION __version__ = VERSION
data/azure-mgmt-web-7.2.0/azure/mgmt/web/__init__.py
180
82
427,862
LOAD_BUILD_CLASS LOAD_CONST <code object NoneArgumentError at 0x7fa725f85d20, file "f.py", line 1> LOAD_CONST 'NoneArgumentError' MAKE_FUNCTION LOAD_CONST 'NoneArgumentError' LOAD_NAME ValueError CALL_FUNCTION STORE_NAME NoneArgumentError LOAD_BUILD_CLASS LOAD_CONST <code object InvalidOperationError at 0x7fa6f68186f0...
class NoneArgumentError(ValueError): """Exception on None argument""" def __init__(self, message: str): super().__init__(message) class InvalidOperationError(Exception): """Exception on invalid operations""" def __init__(self, message: str = ""): super().__init__(message)
data/triad-0.9.5/triad/exceptions.py
428
82
51,478
LOAD_CONST <code object cf_apim_cl at 0x7faa5ec3bae0, file "f.py", line 1> LOAD_CONST 'cf_apim_cl' MAKE_FUNCTION STORE_NAME cf_apim_cl LOAD_CONST None RETURN_VALUE LOAD_CONST 0 LOAD_CONST ('get_mgmt_service_client',) IMPORT_NAME azure.cli.core.commands.client_factory IMPORT_FROM get_mgmt_service_client STORE_FAST get_...
def cf_apim_cl(cli_ctx, *_): from azure.cli.core.commands.client_factory import get_mgmt_service_client from azure.mgmt.apimanagement import ApiManagementClient return get_mgmt_service_client(cli_ctx, ApiManagementClient)
data/azure-cli-2.57.0/azure/cli/command_modules/apim/generated/_client_factory.py
181
82
376,266
LOAD_CONST 0 LOAD_CONST None IMPORT_NAME logging STORE_NAME logging LOAD_CONST 1 LOAD_CONST ('__version__',) IMPORT_NAME _version IMPORT_FROM __version__ STORE_NAME __version__ POP_TOP LOAD_CONST 1 LOAD_CONST ('all_providers',) IMPORT_NAME core IMPORT_FROM all_providers STORE_NAME all_providers POP_TOP LOAD_CONST 1 ...
import logging from ._version import __version__ from .core import all_providers from .core import get_notifier from .core import notify logging.getLogger("notifiers").addHandler(logging.NullHandler()) __all__ = ["get_notifier", "all_providers", "notify", "__version__"]
data/notifiers-1.3.3/notifiers/__init__.py
200
82
204,352
LOAD_CONST 0 LOAD_CONST ('*',) IMPORT_NAME azure.cli.core.aaz IMPORT_STAR LOAD_NAME register_command_group LOAD_CONST 'network application-gateway probe' CALL_FUNCTION LOAD_BUILD_CLASS LOAD_CONST <code object __CMDGroup at 0x7faa5e81ff60, file "f.py", line 4> LOAD_CONST '__CMDGroup' MAKE_FUNCTION LOAD_CONST '__CMDGro...
from azure.cli.core.aaz import * @register_command_group( "network application-gateway probe", ) class __CMDGroup(AAZCommandGroup): """Manage probes to gather and evaluate information on an application gateway.""" pass __all__ = ["__CMDGroup"]
data/azure-cli-2.57.0/azure/cli/command_modules/network/aaz/latest/network/application_gateway/probe/__cmd_group.py
191
82
378,489
LOAD_CONST 0 LOAD_CONST ('*',) IMPORT_NAME azure.cli.core.aaz IMPORT_STAR LOAD_NAME register_command_group LOAD_CONST 'network application-gateway frontend-ip' CALL_FUNCTION LOAD_BUILD_CLASS LOAD_CONST <code object __CMDGroup at 0x7fab82197930, file "f.py", line 4> LOAD_CONST '__CMDGroup' MAKE_FUNCTION LOAD_CONST '__...
from azure.cli.core.aaz import * @register_command_group( "network application-gateway frontend-ip", ) class __CMDGroup(AAZCommandGroup): """Manage frontend IP addresses of an application gateway.""" pass __all__ = ["__CMDGroup"]
data/azure-cli-2.57.0/azure/cli/command_modules/network/aaz/latest/network/application_gateway/frontend_ip/__cmd_group.py
192
82
378,376
LOAD_CONST 0 LOAD_CONST ('*',) IMPORT_NAME azure.cli.core.aaz IMPORT_STAR LOAD_NAME register_command_group LOAD_CONST 'network vnet-gateway ipsec-policy' CALL_FUNCTION LOAD_BUILD_CLASS LOAD_CONST <code object __CMDGroup at 0x7fab82197930, file "f.py", line 4> LOAD_CONST '__CMDGroup' MAKE_FUNCTION LOAD_CONST '__CMDGro...
from azure.cli.core.aaz import * @register_command_group( "network vnet-gateway ipsec-policy", ) class __CMDGroup(AAZCommandGroup): """Manage virtual network gateway IPSec policies.""" pass __all__ = ["__CMDGroup"]
data/azure-cli-2.57.0/azure/cli/command_modules/network/aaz/latest/network/vnet_gateway/ipsec_policy/__cmd_group.py
192
82
378,292
LOAD_CONST 0 LOAD_CONST ('*',) IMPORT_NAME azure.cli.core.aaz IMPORT_STAR LOAD_NAME register_command_group LOAD_CONST 'network vnet-gateway root-cert' CALL_FUNCTION LOAD_BUILD_CLASS LOAD_CONST <code object __CMDGroup at 0x7faa5dedbc90, file "f.py", line 4> LOAD_CONST '__CMDGroup' MAKE_FUNCTION LOAD_CONST '__CMDGroup'...
from azure.cli.core.aaz import * @register_command_group( "network vnet-gateway root-cert", ) class __CMDGroup(AAZCommandGroup): """Manage root certificates of a virtual network gateway.""" pass __all__ = ["__CMDGroup"]
data/azure-cli-2.57.0/azure/cli/command_modules/network/aaz/latest/network/vnet_gateway/root_cert/__cmd_group.py
189
82
378,288
LOAD_CONST 0 LOAD_CONST ('*',) IMPORT_NAME azure.cli.core.aaz IMPORT_STAR LOAD_NAME register_command_group LOAD_CONST 'network private-endpoint dns-zone-group' CALL_FUNCTION LOAD_BUILD_CLASS LOAD_CONST <code object __CMDGroup at 0x7fab42062db0, file "f.py", line 4> LOAD_CONST '__CMDGroup' MAKE_FUNCTION LOAD_CONST '__...
from azure.cli.core.aaz import * @register_command_group( "network private-endpoint dns-zone-group", ) class __CMDGroup(AAZCommandGroup): """Manage private endpoint dns zone group.""" pass __all__ = ["__CMDGroup"]
data/azure-cli-2.57.0/azure/cli/command_modules/network/aaz/latest/network/private_endpoint/dns_zone_group/__cmd_group.py
191
82
378,183
LOAD_CONST 0 LOAD_CONST ('ensure_supported_ccs_initialized',) IMPORT_NAME numba.cuda.testing IMPORT_FROM ensure_supported_ccs_initialized STORE_NAME ensure_supported_ccs_initialized POP_TOP LOAD_CONST 0 LOAD_CONST ('load_testsuite',) IMPORT_NAME numba.testing IMPORT_FROM load_testsuite STORE_NAME load_testsuite POP_TO...
from numba.cuda.testing import ensure_supported_ccs_initialized from numba.testing import load_testsuite import os def load_tests(loader, tests, pattern): ensure_supported_ccs_initialized() return load_testsuite(loader, os.path.dirname(__file__))
data/numba-0.59.0/numba/cuda/tests/cudadrv/__init__.py
204
82
134,325
LOAD_CONST 'AUTOGENERATED. DO NOT EDIT.' STORE_NAME __doc__ LOAD_CONST 0 LOAD_CONST ('InceptionV3',) IMPORT_NAME tf_keras.src.applications.inception_v3 IMPORT_FROM InceptionV3 STORE_NAME InceptionV3 POP_TOP LOAD_CONST 0 LOAD_CONST ('decode_predictions',) IMPORT_NAME tf_keras.src.applications.inception_v3 IMPORT_FROM ...
"""AUTOGENERATED. DO NOT EDIT.""" from tf_keras.src.applications.inception_v3 import InceptionV3 from tf_keras.src.applications.inception_v3 import decode_predictions from tf_keras.src.applications.inception_v3 import preprocess_input
data/tf_keras-nightly-2.17.0.dev2024022110/tf_keras/api/_v1/keras/applications/inception_v3/__init__.py
161
82
165,196
LOAD_CONST 0 LOAD_CONST ('*',) IMPORT_NAME azure.cli.core.aaz IMPORT_STAR LOAD_NAME register_command_group LOAD_CONST 'network vnet-gateway root-cert' CALL_FUNCTION LOAD_BUILD_CLASS LOAD_CONST <code object __CMDGroup at 0x7fab82197d20, file "f.py", line 4> LOAD_CONST '__CMDGroup' MAKE_FUNCTION LOAD_CONST '__CMDGroup'...
from azure.cli.core.aaz import * @register_command_group( "network vnet-gateway root-cert", ) class __CMDGroup(AAZCommandGroup): """Manage root certificates of a virtual network gateway.""" pass __all__ = ["__CMDGroup"]
data/azure-cli-2.57.0/azure/cli/command_modules/network/aaz/profile_2017_03_09_profile/network/vnet_gateway/root_cert/__cmd_group.py
192
82
377,665
LOAD_BUILD_CLASS LOAD_CONST <code object ManifestStatsConsumer at 0x7fab41ca7660, file "f.py", line 1> LOAD_CONST 'ManifestStatsConsumer' MAKE_FUNCTION LOAD_CONST 'ManifestStatsConsumer' CALL_FUNCTION STORE_NAME ManifestStatsConsumer LOAD_CONST None RETURN_VALUE LOAD_NAME __name__ STORE_NAME __module__ LOAD_CONST 'Man...
class ManifestStatsConsumer: def __init__(self): pass def consume(self, manifest_stats): """ Consumes stats from manifest writer to report progress to the user :param manifest_stats: Object of type ManifestStats that contains information about a manifest process """ ...
data/oci-cli-3.37.10/services/dts/src/oci_cli_appliance_export_job/manifest/manifest_stats_consumer.py
226
82
218,613
LOAD_CONST 'Collection of Austrian numbers.' STORE_NAME __doc__ LOAD_CONST 0 LOAD_CONST ('postleitzahl',) IMPORT_NAME stdnum.at IMPORT_FROM postleitzahl STORE_NAME postal_code POP_TOP LOAD_CONST 0 LOAD_CONST ('uid',) IMPORT_NAME stdnum.at IMPORT_FROM uid STORE_NAME vat POP_TOP LOAD_CONST 0 LOAD_CONST ('vnr',) IMPORT...
"""Collection of Austrian numbers.""" from stdnum.at import postleitzahl as postal_code # noqa: F401 from stdnum.at import uid as vat # noqa: F401 from stdnum.at import vnr as personalid # noqa: F401
data/python-stdnum-1.19/stdnum/at/__init__.py
112
82
417,746
LOAD_CONST 0 LOAD_CONST ('call_meta_factory', 'default_meta_factory', 'metafactory_factory', 'partial_meta_factory') IMPORT_NAME hydra_slayer.factory IMPORT_FROM call_meta_factory STORE_NAME call_meta_factory IMPORT_FROM default_meta_factory STORE_NAME default_meta_factory IMPORT_FROM metafactory_factory STORE_NAME met...
from hydra_slayer.factory import ( call_meta_factory, default_meta_factory, metafactory_factory, partial_meta_factory, ) from hydra_slayer.functional import get_factory, get_from_params, get_instance from hydra_slayer.registry import Registry
data/hydra_slayer-0.5.0/hydra_slayer/__init__.py
204
82
322,133
LOAD_CONST 0 LOAD_CONST ('hookimpl',) IMPORT_NAME hatchling.plugin IMPORT_FROM hookimpl STORE_NAME hookimpl POP_TOP LOAD_CONST 1 LOAD_CONST ('NodeJSVersionSource',) IMPORT_NAME version_source IMPORT_FROM NodeJSVersionSource STORE_NAME NodeJSVersionSource POP_TOP LOAD_CONST 1 LOAD_CONST ('NodeJSMetadataHook',) IMPORT_...
from hatchling.plugin import hookimpl from .version_source import NodeJSVersionSource from .metadata_source import NodeJSMetadataHook @hookimpl def hatch_register_version_source(): return NodeJSVersionSource @hookimpl def hatch_register_metadata_hook(): return NodeJSMetadataHook
data/hatch_nodejs_version-0.3.2/hatch_nodejs_version/hooks.py
259
82
334,958
LOAD_CONST 0 LOAD_CONST ('ReportBase',) IMPORT_NAME office365.sharepoint.search.reports.base IMPORT_FROM ReportBase STORE_NAME ReportBase POP_TOP LOAD_BUILD_CLASS LOAD_CONST <code object ReportAbandonedQueries at 0x7fab700add20, file "f.py", line 4> LOAD_CONST 'ReportAbandonedQueries' MAKE_FUNCTION LOAD_CONST 'ReportA...
from office365.sharepoint.search.reports.base import ReportBase class ReportAbandonedQueries(ReportBase): """This report shows popular search queries that receive low click-through. Use this report to identify search queries that might create user dissatisfaction and to improve the discoverability of content....
data/Office365-REST-Python-Client-2.5.5/office365/sharepoint/search/reports/abandoned_queries.py
198
82
189,468
LOAD_CONST 0 LOAD_CONST ('annotations',) IMPORT_NAME __future__ IMPORT_FROM annotations STORE_NAME annotations POP_TOP LOAD_CONST 1 LOAD_CONST ('DummyInput', 'Input', 'PipeInput') IMPORT_NAME base IMPORT_FROM DummyInput STORE_NAME DummyInput IMPORT_FROM Input STORE_NAME Input IMPORT_FROM PipeInput STORE_NAME PipeInput...
from __future__ import annotations from .base import DummyInput, Input, PipeInput from .defaults import create_input, create_pipe_input __all__ = [ "Input", "PipeInput", "DummyInput", "create_input", "create_pipe_input", ]
data/prompt_toolkit-3.0.43/src/prompt_toolkit/input/__init__.py
177
82
124,706
LOAD_BUILD_CLASS LOAD_CONST <code object BaseService at 0x7fab543e7930, file "f.py", line 1> LOAD_CONST 'BaseService' MAKE_FUNCTION LOAD_CONST 'BaseService' LOAD_NAME object CALL_FUNCTION STORE_NAME BaseService LOAD_CONST None RETURN_VALUE LOAD_NAME __name__ STORE_NAME __module__ LOAD_CONST 'BaseService' STORE_NAME __...
class BaseService(object): def __init__(self, settings): self.settings = settings def regions(self, *args, **kwargs): raise NotImplementedError(".regions() not implemented.") def list(self, *args, **kwargs): raise NotImplementedError(".list() not implemented.")
data/aws-0.2.5/aws/libaws/service.py
301
82
147,233
LOAD_CONST 0 LOAD_CONST None IMPORT_NAME os STORE_NAME os LOAD_CONST 'xslt' STORE_NAME NAME LOAD_NAME os LOAD_METHOD popen LOAD_CONST 'xslt-config --cflags' CALL_METHOD LOAD_METHOD read CALL_METHOD LOAD_METHOD rstrip CALL_METHOD LOAD_METHOD split CALL_METHOD STORE_NAME CFLAGS BUILD_LIST STORE_NAME LDFLAGS LOAD_NAME...
import os NAME = "xslt" CFLAGS = os.popen("xslt-config --cflags").read().rstrip().split() LDFLAGS = [] LIBS = os.popen("xslt-config --libs").read().rstrip().split() GCC_LIST = ["xslt"]
data/pyuwsgi-2.0.23.post0/plugins/xslt/uwsgiplugin.py
139
82
294,037
LOAD_CONST '\nA machine readable multilingual dialog corpus.\n' STORE_NAME __doc__ LOAD_CONST '1.2.0' STORE_NAME __version__ LOAD_CONST 'Gunther Cox' STORE_NAME __author__ LOAD_CONST 'gunthercx@gmail.com' STORE_NAME __email__ LOAD_CONST 'https://github.com/gunthercox/chatterbot-corpus' STORE_NAME __url__ LOAD_CONST...
""" A machine readable multilingual dialog corpus. """ __version__ = "1.2.0" __author__ = "Gunther Cox" __email__ = "gunthercx@gmail.com" __url__ = "https://github.com/gunthercox/chatterbot-corpus"
data/os_sys-2.1.4/chatterbot_corpus/__init__.py
103
82
248,205
LOAD_CONST 0 LOAD_CONST None IMPORT_NAME luigi STORE_NAME luigi LOAD_BUILD_CLASS LOAD_CONST <code object OtherModuleTask at 0x7fab700cb4b0, file "f.py", line 4> LOAD_CONST 'OtherModuleTask' MAKE_FUNCTION LOAD_CONST 'OtherModuleTask' LOAD_NAME luigi LOAD_ATTR Task CALL_FUNCTION STORE_NAME OtherModuleTask LOAD_CONST Non...
import luigi class OtherModuleTask(luigi.Task): p = luigi.Parameter() def output(self): return luigi.LocalTarget(self.p) def run(self): with self.output().open("w") as f: f.write("Done!")
data/luigi-3.5.0/test/other_module.py
306
82
69,052
LOAD_CONST 'Configs package definition.' STORE_NAME __doc__ LOAD_CONST 0 LOAD_CONST ('common',) IMPORT_NAME official.projects.qat.vision.configs IMPORT_FROM common STORE_NAME common POP_TOP LOAD_CONST 0 LOAD_CONST ('image_classification',) IMPORT_NAME official.projects.qat.vision.configs IMPORT_FROM image_classificat...
"""Configs package definition.""" from official.projects.qat.vision.configs import common from official.projects.qat.vision.configs import image_classification from official.projects.qat.vision.configs import retinanet from official.projects.qat.vision.configs import semantic_segmentation
data/tf-models-official-2.15.0/official/projects/qat/vision/configs/__init__.py
181
82
355,970
LOAD_CONST 0 LOAD_CONST None IMPORT_NAME warnings STORE_NAME warnings LOAD_BUILD_CLASS LOAD_CONST <code object UserAgentDeprecationWarning at 0x7faa7c16a8a0, file "f.py", line 4> LOAD_CONST 'UserAgentDeprecationWarning' MAKE_FUNCTION LOAD_CONST 'UserAgentDeprecationWarning' LOAD_NAME UserWarning CALL_FUNCTION STORE_NA...
import warnings class UserAgentDeprecationWarning(UserWarning): """ Warning category used to generate warning message about deprecated feature of user_agent library. """ def warn(msg, stacklevel=2): warnings.warn(msg, category=UserAgentDeprecationWarning, stacklevel=stacklevel)
data/user_agent-0.1.10/user_agent/warning.py
247
82
203,980
LOAD_CONST 0 LOAD_CONST None IMPORT_NAME pytest STORE_NAME pytest LOAD_CONST 0 LOAD_CONST ('like_num',) IMPORT_NAME spacy.lang.ms.lex_attrs IMPORT_FROM like_num STORE_NAME like_num POP_TOP LOAD_NAME pytest LOAD_ATTR mark LOAD_METHOD parametrize LOAD_CONST 'word' LOAD_CONST 'sebelas' BUILD_LIST CALL_METHOD LOAD_CONST ...
import pytest from spacy.lang.ms.lex_attrs import like_num @pytest.mark.parametrize("word", ["sebelas"]) def test_ms_lex_attrs_capitals(word): assert like_num(word) assert like_num(word.upper())
data/spacy-3.7.4/spacy/tests/lang/ms/test_text.py
213
82
147,455
LOAD_CONST 0 LOAD_CONST ('ensure_supported_ccs_initialized',) IMPORT_NAME numba.cuda.testing IMPORT_FROM ensure_supported_ccs_initialized STORE_NAME ensure_supported_ccs_initialized POP_TOP LOAD_CONST 0 LOAD_CONST ('load_testsuite',) IMPORT_NAME numba.testing IMPORT_FROM load_testsuite STORE_NAME load_testsuite POP_TO...
from numba.cuda.testing import ensure_supported_ccs_initialized from numba.testing import load_testsuite import os def load_tests(loader, tests, pattern): ensure_supported_ccs_initialized() return load_testsuite(loader, os.path.dirname(__file__))
data/numba-0.59.0/numba/cuda/tests/cudapy/__init__.py
204
82
134,418
LOAD_CONST 'A module for visualization with tensorboard\n' STORE_NAME __doc__ LOAD_CONST 1 LOAD_CONST ('RecordWriter',) IMPORT_NAME record_writer IMPORT_FROM RecordWriter STORE_NAME RecordWriter POP_TOP LOAD_CONST 1 LOAD_CONST ('TorchVis',) IMPORT_NAME torchvis IMPORT_FROM TorchVis STORE_NAME TorchVis POP_TOP LOAD_C...
"""A module for visualization with tensorboard """ from .record_writer import RecordWriter from .torchvis import TorchVis from .writer import FileWriter, SummaryWriter from .global_writer import GlobalSummaryWriter try: from ._version import __version__ except ImportError: __version__ = "unknown version"
data/tensorboardX-2.6.2.2/tensorboardX/__init__.py
232
82
177,889
LOAD_CONST 0 LOAD_CONST ('Enum',) IMPORT_NAME enum IMPORT_FROM Enum STORE_NAME Enum POP_TOP LOAD_BUILD_CLASS LOAD_CONST <code object CloseReason at 0x7fab823b5ed0, file "f.py", line 4> LOAD_CONST 'CloseReason' MAKE_FUNCTION LOAD_CONST 'CloseReason' LOAD_NAME Enum CALL_FUNCTION STORE_NAME CloseReason LOAD_BUILD_CLASS ...
from enum import Enum class CloseReason(Enum): """The reason a partition consumer is closed.""" SHUTDOWN = 0 OWNERSHIP_LOST = 1 class LoadBalancingStrategy(Enum): GREEDY = "greedy" BALANCED = "balanced"
data/azure-eventhub-5.11.6/azure/eventhub/_eventprocessor/common.py
283
82
248,480
LOAD_CONST 0 LOAD_CONST None IMPORT_NAME pytest STORE_NAME pytest LOAD_CONST 0 LOAD_CONST ('like_num',) IMPORT_NAME spacy.lang.id.lex_attrs IMPORT_FROM like_num STORE_NAME like_num POP_TOP LOAD_NAME pytest LOAD_ATTR mark LOAD_METHOD parametrize LOAD_CONST 'word' LOAD_CONST 'sebelas' BUILD_LIST CALL_METHOD LOAD_CONST ...
import pytest from spacy.lang.id.lex_attrs import like_num @pytest.mark.parametrize("word", ["sebelas"]) def test_id_lex_attrs_capitals(word): assert like_num(word) assert like_num(word.upper())
data/spacy-3.7.4/spacy/tests/lang/id/test_text.py
213
82
147,512