input
stringlengths
28
198k
output
stringlengths
3
71k
file
stringlengths
19
330
input_tokens
int64
5
159k
output_tokens
int64
3
9.07k
__index_level_0__
int64
2
449k
LOAD_CONST 0 LOAD_CONST ('annotations',) IMPORT_NAME __future__ IMPORT_FROM annotations STORE_NAME annotations POP_TOP LOAD_CONST 0 LOAD_CONST ('setup',) IMPORT_NAME setuptools IMPORT_FROM setup STORE_NAME setup POP_TOP LOAD_NAME setup LOAD_CONST 'simple.dist' LOAD_CONST '0.1' LOAD_CONST 'A testing distribution ☃'...
from __future__ import annotations from setuptools import setup setup( name="simple.dist", version="0.1", description="A testing distribution \N{SNOWMAN}", packages=["simpledist"], extras_require={"voting": ["beaglevote"]}, )
data/wheel-0.42.0/tests/testdata/simple.dist/setup.py
138
83
321,561
LOAD_CONST 0 LOAD_CONST ('unique',) IMPORT_NAME enum IMPORT_FROM unique STORE_NAME unique POP_TOP LOAD_CONST 5 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 CompoundingType at 0x7fab7002b420, file "f.py", line 6>...
from enum import unique from ....._base_enum import StrEnum @unique class CompoundingType(StrEnum): COMPOUNDED = "Compounded" CONTINUOUS = "Continuous" DISCOUNTED = "Discounted" MONEY_MARKET = "MoneyMarket"
data/refinitiv-data-1.6.0/refinitiv/data/content/ipa/curves/_enums/_compounding_type.py
212
83
195,669
LOAD_CONST 0 LOAD_CONST ('Callable', 'List', 'Optional', 'Union') IMPORT_NAME typing IMPORT_FROM Callable STORE_NAME Callable IMPORT_FROM List STORE_NAME List IMPORT_FROM Optional STORE_NAME Optional IMPORT_FROM Union STORE_NAME Union POP_TOP LOAD_NAME Optional LOAD_NAME Union LOAD_NAME Callable LOAD_NAME List LOAD_NA...
from typing import Callable, List, Optional, Union def format_transforms( transforms: Optional[Union[Callable, List[Callable]]] ) -> List[Callable]: if transforms is None: return [] if callable(transforms): return [transforms] return transforms
data/captum-0.7.0/captum/insights/attr_vis/_utils/transforms.py
201
83
240,798
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 objc STORE_NAME objc LOAD_CONST 0 LOAD_CONST None IMPORT_NAME MediaLibrary STORE_NAME Medi...
from PyObjCTools.TestSupport import TestCase, min_os_level import objc import MediaLibrary class TestMLMediaGroup(TestCase): @min_os_level("10.9") def testClasses(self): self.assertIsInstance(MediaLibrary.MLMediaGroup, objc.objc_class)
data/pyobjc-framework-MediaLibrary-10.1/PyObjCTest/test_mlmediagroup.py
291
83
353,448
LOAD_CONST 0 LOAD_CONST ('BaseTokenizer',) IMPORT_NAME konoha.word_tokenizers.tokenizer IMPORT_FROM BaseTokenizer STORE_NAME BaseTokenizer POP_TOP LOAD_BUILD_CLASS LOAD_CONST <code object KonohaAPITokenizer at 0x7fab702a6030, file "f.py", line 4> LOAD_CONST 'KonohaAPITokenizer' MAKE_FUNCTION LOAD_CONST 'KonohaAPIToken...
from konoha.word_tokenizers.tokenizer import BaseTokenizer class KonohaAPITokenizer(BaseTokenizer): def __init__(self, tokenizer: str): super().__init__(name=f"{tokenizer} (remote)") def tokenize(self, text: str): pass
data/konoha-5.5.5/src/konoha/word_tokenizers/konoha_api_tokenizer.py
358
83
353,458
LOAD_CONST 0 LOAD_CONST ('ConsoleCallbackHandler', 'FunctionCallbackHandler', 'elapsed', 'try_json_stringify') IMPORT_NAME langchain_core.tracers.stdout IMPORT_FROM ConsoleCallbackHandler STORE_NAME ConsoleCallbackHandler IMPORT_FROM FunctionCallbackHandler STORE_NAME FunctionCallbackHandler IMPORT_FROM elapsed STORE_N...
from langchain_core.tracers.stdout import ( ConsoleCallbackHandler, FunctionCallbackHandler, elapsed, try_json_stringify, ) __all__ = [ "try_json_stringify", "elapsed", "FunctionCallbackHandler", "ConsoleCallbackHandler", ]
data/langchain-0.1.8/langchain/schema/callbacks/tracers/stdout.py
133
83
369,140
LOAD_CONST 1 LOAD_CONST ('evaljs', 'JSInterpreter') IMPORT_NAME evaljs IMPORT_FROM evaljs STORE_NAME evaljs IMPORT_FROM JSInterpreter STORE_NAME JSInterpreter POP_TOP LOAD_CONST 1 LOAD_CONST ('JSRuntimeError',) IMPORT_NAME _dukpy IMPORT_FROM JSRuntimeError STORE_NAME JSRuntimeError POP_TOP LOAD_CONST 1 LOAD_CONST ('i...
from .evaljs import evaljs, JSInterpreter from ._dukpy import JSRuntimeError from .install import install_jspackage from .coffee import coffee_compile from .babel import babel_compile, jsx_compile from .tsc import typescript_compile from .lessc import less_compile
data/dukpy-0.3.1/dukpy/__init__.py
261
83
193,562
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 MetricKit STORE_NAME MetricKit LOAD_BUILD_CLASS LOAD_CONST <code object TestMXSignpostReco...
from PyObjCTools.TestSupport import TestCase, min_os_level import MetricKit class TestMXSignpostRecord(TestCase): @min_os_level("14.0") def test_methods(self): self.assertResultIsBOOL(MetricKit.MXSignpostRecord.isInterval)
data/pyobjc-framework-MetricKit-10.1/PyObjCTest/test_mxsignpostrecord.py
290
83
175,684
LOAD_CONST 'The Chain runs a self-review of logical fallacies as determined by this paper categorizing and defining logical fallacies https://arxiv.org/pdf/2212.07425.pdf. Modeled after Constitutional AI and in same format, but applying logical fallacies as generalized rules to remove in output' STORE_NAME __doc__ LOAD...
"""The Chain runs a self-review of logical fallacies as determined by this paper \ categorizing and defining logical fallacies https://arxiv.org/pdf/2212.07425.pdf. \ Modeled after Constitutional AI and in same format, but applying logical \ fallacies as generalized rules to remove in output"""
data/langchain_experimental-0.0.52/langchain_experimental/fallacy_removal/__init__.py
84
83
193,490
LOAD_CONST 0 LOAD_CONST ('TM1pyRestException', 'TM1pyException', 'TM1pyTimeout', 'TM1pyVersionException', 'TM1pyNotAdminException', 'TM1pyWriteFailureException', 'TM1pyWritePartialFailureException') IMPORT_NAME TM1py.Exceptions.Exceptions IMPORT_FROM TM1pyRestException STORE_NAME TM1pyRestException IMPORT_FROM TM1pyExc...
from TM1py.Exceptions.Exceptions import ( TM1pyRestException, TM1pyException, TM1pyTimeout, TM1pyVersionException, TM1pyNotAdminException, TM1pyWriteFailureException, TM1pyWritePartialFailureException, )
data/TM1py-2.0.2/TM1py/Exceptions/__init__.py
195
83
204,878
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 None IMPORT_NAME t.skip STORE_NAME t LOAD_NAME pytest LOAD_METHOD importorskip LOAD_CONST 'boto3' CALL_METHO...
from __future__ import annotations import pytest import t.skip pytest.importorskip("boto3") pytest.importorskip("pycurl") @t.skip.if_pypy @pytest.mark.usefixtures("hub") class AWSCase: pass
data/kombu-5.3.5/t/unit/asynchronous/aws/case.py
237
83
25,046
LOAD_CONST 1 LOAD_CONST ('alert_return_type_cast', 'commingle_loop_vars', 'conv1d_decomposition', 'handle_return_inputs_as_outputs', 'handle_return_unused_inputs', 'handle_unused_inputs', 'mlmodel_passes') IMPORT_NAME IMPORT_FROM alert_return_type_cast STORE_NAME alert_return_type_cast IMPORT_FROM commingle_loop_vars S...
from . import ( alert_return_type_cast, commingle_loop_vars, conv1d_decomposition, handle_return_inputs_as_outputs, handle_return_unused_inputs, handle_unused_inputs, mlmodel_passes, )
data/coremltools-7.1/coremltools/converters/mil/backend/nn/passes/__init__.py
218
83
447,358
LOAD_CONST "Dataset definition for clevr.\n\nDEPRECATED!\nIf you want to use the CLEVR dataset builder class, use:\ntfds.builder_cls('clevr')\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 clevr. DEPRECATED! If you want to use the CLEVR dataset builder class, use: tfds.builder_cls('clevr') """ from tensorflow_datasets.core import lazy_builder_import CLEVR = lazy_builder_import.LazyBuilderImport("clevr")
data/tfds-nightly-4.9.4.dev202402210044/tensorflow_datasets/image/clevr.py
127
83
238,327
LOAD_CONST 0 LOAD_CONST None IMPORT_NAME time STORE_NAME time LOAD_CONST <code object application at 0x7f8b200286f0, file "f.py", line 4> LOAD_CONST 'application' MAKE_FUNCTION STORE_NAME application LOAD_CONST None RETURN_VALUE LOAD_FAST start_response LOAD_CONST '200 OK' LOAD_CONST ('Content-Type', 'text/html') BUI...
import time def application(env, start_response): start_response("200 OK", [("Content-Type", "text/html")]) for i in range(1, 1000): yield "<h1>%s at %s</h1>" % (i, str(time.time()))
data/uwsgi-2.0.24/tests/cpubound_async.py
180
83
398,170
LOAD_CONST 'A cmark implementation file.' STORE_NAME __doc__ LOAD_NAME int LOAD_NAME float LOAD_CONST ('x', 'return') BUILD_CONST_KEY_MAP LOAD_CONST <code object _cmark_HOUDINI_ESCAPED_SIZE at 0x7f8af04b8c90, file "f.py", line 4> LOAD_CONST '_cmark_HOUDINI_ESCAPED_SIZE' MAKE_FUNCTION STORE_NAME _cmark_HOUDINI_ESCAPED_...
r"""A cmark implementation file.""" def _cmark_HOUDINI_ESCAPED_SIZE(x: int) -> float: return (x * 12) / 10 def _cmark_HOUDINI_UNESCAPED_SIZE(x: int) -> int: return x
data/md_toc-8.2.3/md_toc/cmark/houdini_h.py
242
83
327,920
LOAD_CONST 1 LOAD_CONST ('GenUnifiedTransformer',) IMPORT_NAME gen_unified_transformer IMPORT_FROM GenUnifiedTransformer STORE_NAME GenUnifiedTransformer POP_TOP LOAD_CONST 1 LOAD_CONST ('SpaceGenerator',) IMPORT_NAME generator IMPORT_FROM SpaceGenerator STORE_NAME SpaceGenerator POP_TOP LOAD_CONST 1 LOAD_CONST ('Int...
from .gen_unified_transformer import GenUnifiedTransformer from .generator import SpaceGenerator from .intent_unified_transformer import IntentUnifiedTransformer from .model_base import SpaceModelBase from .tokenization_space import BasicTokenizer, SpaceTokenizer, WordpieceTokenizer from .unified_transformer import Uni...
data/modelscope-1.12.0/modelscope/models/nlp/space/model/__init__.py
237
83
314,207
LOAD_CONST 1 LOAD_CONST ('DEFAULT_ACCOUNT_ID',) IMPORT_NAME models IMPORT_FROM DEFAULT_ACCOUNT_ID STORE_NAME DEFAULT_ACCOUNT_ID POP_TOP LOAD_CONST 1 LOAD_CONST ('patch_client', 'patch_resource') IMPORT_NAME models IMPORT_FROM patch_client STORE_NAME patch_client IMPORT_FROM patch_resource STORE_NAME patch_resource POP...
from .models import DEFAULT_ACCOUNT_ID # noqa from .models import patch_client, patch_resource # noqa from .responses import ActionAuthenticatorMixin set_initial_no_auth_action_count = ( ActionAuthenticatorMixin.set_initial_no_auth_action_count )
data/moto-5.0.2/moto/core/__init__.py
155
83
198,209
LOAD_CONST 0 LOAD_CONST ('partial',) IMPORT_NAME functools IMPORT_FROM partial STORE_NAME partial POP_TOP LOAD_CONST 1 LOAD_CONST ('*',) IMPORT_NAME parquet.ttypes IMPORT_STAR LOAD_CONST <code object __getattr__ at 0x7fab7002b5d0, file "f.py", line 5> LOAD_CONST '__getattr__' MAKE_FUNCTION STORE_NAME __getattr__ LOAD...
from functools import partial from .parquet.ttypes import * def __getattr__(name): from fastparquet.cencoding import ThriftObject if name[0].isupper(): return partial(ThriftObject.from_fields, thrift_name=name) raise AttributeError(name)
data/fastparquet-2024.2.0/fastparquet/parquet_thrift/__init__.py
202
83
193,280
LOAD_CONST 'j. F Y' STORE_NAME DATE_FORMAT LOAD_CONST 'G:i' STORE_NAME TIME_FORMAT LOAD_CONST 'j. F' STORE_NAME MONTH_DAY_FORMAT LOAD_CONST 'd.m.Y' STORE_NAME SHORT_DATE_FORMAT LOAD_CONST ',' STORE_NAME DECIMAL_SEPARATOR LOAD_CONST '\xa0' STORE_NAME THOUSAND_SEPARATOR LOAD_CONST None RETURN_VALUE
DATE_FORMAT = "j. F Y" TIME_FORMAT = "G:i" MONTH_DAY_FORMAT = "j. F" SHORT_DATE_FORMAT = "d.m.Y" DECIMAL_SEPARATOR = "," THOUSAND_SEPARATOR = " " # Non-breaking space
data/os_sys-2.1.4/server/conf/locale/et/formats.py
101
83
247,752
LOAD_CONST 1 LOAD_CONST ('ECRResponse',) IMPORT_NAME responses IMPORT_FROM ECRResponse STORE_NAME ECRResponse POP_TOP LOAD_CONST 'https?://ecr\\.(.+)\\.amazonaws\\.com' LOAD_CONST 'https?://api\\.ecr\\.(.+)\\.amazonaws\\.com' BUILD_LIST STORE_NAME url_bases LOAD_CONST '{0}/$' LOAD_NAME ECRResponse LOAD_ATTR dispatch...
from .responses import ECRResponse url_bases = [ r"https?://ecr\.(.+)\.amazonaws\.com", r"https?://api\.ecr\.(.+)\.amazonaws\.com", ] url_paths = {"{0}/$": ECRResponse.dispatch}
data/moto-5.0.2/moto/ecr/urls.py
109
83
198,577
LOAD_CONST '\nEnterprise xAPI Django application initialization.\n' STORE_NAME __doc__ LOAD_CONST 0 LOAD_CONST ('AppConfig',) IMPORT_NAME django.apps IMPORT_FROM AppConfig STORE_NAME AppConfig POP_TOP LOAD_BUILD_CLASS LOAD_CONST <code object XAPIConfig at 0x7fab42638ae0, file "f.py", line 8> LOAD_CONST 'XAPIConfig' M...
""" Enterprise xAPI Django application initialization. """ from django.apps import AppConfig class XAPIConfig(AppConfig): """ Configuration for the xAPI Django application. """ name = "integrated_channels.xapi" verbose_name = "Enterprise xAPI Integration"
data/edx-enterprise-4.12.1/integrated_channels/xapi/apps.py
199
83
91,445
LOAD_CONST 1 LOAD_CONST ('*',) IMPORT_NAME boxes IMPORT_STAR LOAD_CONST 1 LOAD_CONST ('*',) IMPORT_NAME format IMPORT_STAR LOAD_CONST 'bboxes_iou' LOAD_CONST 'meshgrid' LOAD_CONST 'postprocess' LOAD_CONST 'xyxy2cxcywh' LOAD_CONST 'xyxy2xywh' LOAD_CONST 'timestamp_format' BUILD_LIST STORE_NAME __all__ LOAD_CONST ...
from .boxes import * # noqa from .format import * # noqa __all__ = [ "bboxes_iou", "meshgrid", "postprocess", "xyxy2cxcywh", "xyxy2xywh", "timestamp_format", ]
data/modelscope-1.12.0/modelscope/models/cv/stream_yolo/utils/__init__.py
99
83
315,382
LOAD_CONST 2 LOAD_CONST ('iso_register',) IMPORT_NAME registry_tools IMPORT_FROM iso_register STORE_NAME iso_register POP_TOP LOAD_CONST 1 LOAD_CONST ('UnitedStates',) IMPORT_NAME core IMPORT_FROM UnitedStates STORE_NAME UnitedStates POP_TOP LOAD_NAME iso_register LOAD_CONST 'US-IA' CALL_FUNCTION LOAD_BUILD_CLASS LOA...
from ..registry_tools import iso_register from .core import UnitedStates @iso_register("US-IA") class Iowa(UnitedStates): """Iowa""" include_thanksgiving_friday = True include_columbus_day = False include_federal_presidents_day = False
data/workalendar-17.0.0/workalendar/usa/iowa.py
222
83
132,050
LOAD_CONST 'j. F Y' STORE_NAME DATE_FORMAT LOAD_CONST 'G:i' STORE_NAME TIME_FORMAT LOAD_CONST 'j. F' STORE_NAME MONTH_DAY_FORMAT LOAD_CONST 'd.m.Y' STORE_NAME SHORT_DATE_FORMAT LOAD_CONST ',' STORE_NAME DECIMAL_SEPARATOR LOAD_CONST '\xa0' STORE_NAME THOUSAND_SEPARATOR LOAD_CONST None RETURN_VALUE
DATE_FORMAT = "j. F Y" TIME_FORMAT = "G:i" MONTH_DAY_FORMAT = "j. F" SHORT_DATE_FORMAT = "d.m.Y" DECIMAL_SEPARATOR = "," THOUSAND_SEPARATOR = " " # Non-breaking space
data/Django-5.0.2/django/conf/locale/et/formats.py
101
83
327,028
LOAD_CONST 1 LOAD_CONST ('_IBM',) IMPORT_NAME IMPORT_FROM _IBM STORE_NAME _IBM POP_TOP LOAD_BUILD_CLASS LOAD_CONST <code object _Storage at 0x7fab000a6300, file "f.py", line 4> LOAD_CONST '_Storage' MAKE_FUNCTION LOAD_CONST '_Storage' LOAD_NAME _IBM CALL_FUNCTION STORE_NAME _Storage LOAD_BUILD_CLASS LOAD_CONST <code ...
from . import _IBM class _Storage(_IBM): _type = "storage" _icon_dir = "resources/ibm/storage" class BlockStorage(_Storage): _icon = "block-storage.png" class ObjectStorage(_Storage): _icon = "object-storage.png"
data/diagrams-0.23.4/diagrams/ibm/storage.py
348
83
206,049
LOAD_CONST 'Package imports for utilities.' STORE_NAME __doc__ LOAD_CONST 1 LOAD_CONST ('cachedproperty',) IMPORT_NAME cache IMPORT_FROM cachedproperty STORE_NAME cachedproperty POP_TOP LOAD_CONST 1 LOAD_CONST ('_deprecate_args',) IMPORT_NAME deprecate_args IMPORT_FROM _deprecate_args STORE_NAME _deprecate_args POP_T...
"""Package imports for utilities.""" from .cache import cachedproperty # noqa: F401 from .deprecate_args import _deprecate_args # noqa: F401 from .snake import camel_to_snake, snake_case_keys # noqa: F401
data/praw-7.7.1/praw/util/__init__.py
151
83
205,121
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 'wagtail.test.settings' C...
import os import sys if __name__ == "__main__": os.environ.setdefault("DJANGO_SETTINGS_MODULE", "wagtail.test.settings") from django.core.management import execute_from_command_line execute_from_command_line(sys.argv)
data/wagtail-6.0.1/wagtail/test/manage.py
157
83
200,547
LOAD_CONST 0 LOAD_CONST None IMPORT_NAME hubspot.cms.performance IMPORT_FROM cms ROT_TWO POP_TOP IMPORT_FROM performance STORE_NAME api_client POP_TOP LOAD_CONST 3 LOAD_CONST ('DiscoveryBase',) IMPORT_NAME discovery_base IMPORT_FROM DiscoveryBase STORE_NAME DiscoveryBase POP_TOP LOAD_BUILD_CLASS LOAD_CONST <code obje...
import hubspot.cms.performance as api_client from ...discovery_base import DiscoveryBase class Discovery(DiscoveryBase): @property def public_performance_api(self) -> api_client.PublicPerformanceApi: return self._configure_api_client(api_client, "PublicPerformanceApi")
data/hubspot-api-client-8.2.1/hubspot/discovery/cms/performance/discovery.py
270
83
320,810
LOAD_CONST 0 LOAD_CONST ('List', 'Tuple', 'Union') IMPORT_NAME typing IMPORT_FROM List STORE_NAME List IMPORT_FROM Tuple STORE_NAME Tuple IMPORT_FROM Union STORE_NAME Union POP_TOP LOAD_CONST 3 LOAD_CONST ('Serializable',) IMPORT_NAME _serializable IMPORT_FROM Serializable STORE_NAME Serializable POP_TOP LOAD_BUILD_C...
from typing import List, Tuple, Union from ..._serializable import Serializable class Constituents(Serializable): def __init__(self): super().__init__() def _get_items(self) -> List[Tuple[str, Union[str, float, int, None]]]: return []
data/refinitiv-data-1.6.0/refinitiv/data/content/ipa/curves/_models/_constituents.py
359
83
195,645
LOAD_CONST 'PCA' LOAD_CONST 'MANOVA' LOAD_CONST 'Factor' LOAD_CONST 'FactorResults' LOAD_CONST 'CanCorr' LOAD_CONST 'factor_rotation' BUILD_LIST STORE_NAME __all__ LOAD_CONST 1 LOAD_CONST ('PCA',) IMPORT_NAME pca IMPORT_FROM PCA STORE_NAME PCA POP_TOP LOAD_CONST 1 LOAD_CONST ('MANOVA',) IMPORT_NAME manova IMPORT_FROM...
__all__ = ["PCA", "MANOVA", "Factor", "FactorResults", "CanCorr", "factor_rotation"] from .pca import PCA from .manova import MANOVA from .factor import Factor, FactorResults from .cancorr import CanCorr from . import factor_rotation
data/statsmodels-0.14.1/statsmodels/multivariate/api.py
207
83
202,706
LOAD_CONST 0 LOAD_CONST ('VERSION',) IMPORT_NAME django IMPORT_FROM VERSION STORE_NAME VERSION POP_TOP LOAD_CONST <code object get_postgres_cursor_class at 0x7fab42231270, file "f.py", line 4> LOAD_CONST 'get_postgres_cursor_class' MAKE_FUNCTION STORE_NAME get_postgres_cursor_class LOAD_CONST None RETURN_VALUE LOAD_G...
from django import VERSION def get_postgres_cursor_class(): if VERSION < (4, 2): from psycopg2.extensions import cursor as cursor_cls else: from django.db.backends.postgresql.base import Cursor as cursor_cls return cursor_cls
data/django-prometheus-2.3.1/django_prometheus/db/backends/common.py
194
83
347,442
LOAD_CONST 'Keras locally-connected layers.' STORE_NAME __doc__ LOAD_CONST 0 LOAD_CONST ('LocallyConnected1D',) IMPORT_NAME tf_keras.src.layers.locally_connected.locally_connected1d IMPORT_FROM LocallyConnected1D STORE_NAME LocallyConnected1D POP_TOP LOAD_CONST 0 LOAD_CONST ('LocallyConnected2D',) IMPORT_NAME tf_kera...
"""Keras locally-connected layers.""" from tf_keras.src.layers.locally_connected.locally_connected1d import ( LocallyConnected1D, ) from tf_keras.src.layers.locally_connected.locally_connected2d import ( LocallyConnected2D, )
data/tf_keras-nightly-2.17.0.dev2024022110/tf_keras/src/layers/locally_connected/__init__.py
134
83
164,927
LOAD_CONST 'Experimental features.\n\nNote: these are not guaranteed to be stable. Names and parameters may change or be\nremoved in future releases. Use at your own risk.\n' STORE_NAME __doc__ LOAD_CONST 1 LOAD_CONST ('button', 'guiclass', 'is_guiclass') IMPORT_NAME schema._guiclass IMPORT_FROM button STORE_NAME butt...
"""Experimental features. Note: these are not guaranteed to be stable. Names and parameters may change or be removed in future releases. Use at your own risk. """ from .schema._guiclass import button, guiclass, is_guiclass __all__ = ["guiclass", "button", "is_guiclass"]
data/magicgui-0.8.1/src/magicgui/experimental.py
143
83
328,091
LOAD_CONST 0 LOAD_CONST None IMPORT_NAME inspect STORE_NAME inspect LOAD_CONST 0 LOAD_CONST None IMPORT_NAME pytest STORE_NAME pytest LOAD_CONST 0 LOAD_CONST ('Button',) IMPORT_NAME ipywidgets IMPORT_FROM Button STORE_NAME Button POP_TOP LOAD_CONST <code object test_deprecation_fa_icons at 0x7faa5f6dba50, file "f.py...
import inspect import pytest from ipywidgets import Button def test_deprecation_fa_icons(): with pytest.deprecated_call() as record: Button(icon="fa-home") assert len(record) == 1 assert record[0].filename == inspect.stack(context=0)[1].filename
data/ipywidgets-8.1.2/ipywidgets/widgets/tests/test_widget_button.py
261
83
243,593
LOAD_CONST '# Password login\n\nA password login field widget.\n' STORE_NAME __doc__ LOAD_CONST 0 LOAD_CONST ('magicgui',) IMPORT_NAME magicgui IMPORT_FROM magicgui STORE_NAME magicgui POP_TOP LOAD_NAME magicgui LOAD_CONST 'widget_type' LOAD_CONST 'Password' BUILD_MAP LOAD_CONST ('password2',) CALL_FUNCTION LOAD_NAM...
"""# Password login A password login field widget. """ from magicgui import magicgui @magicgui(password2={"widget_type": "Password"}) def login(username: str, password: str, password2: str): """User login credentials.""" ... login.show(run=True)
data/magicgui-0.8.1/docs/examples/demo_widgets/login.py
178
83
328,085
LOAD_CONST 'Amazon Personalize primitives.' STORE_NAME __doc__ LOAD_CONST 0 LOAD_CONST ('AmazonPersonalize',) IMPORT_NAME langchain_experimental.recommenders.amazon_personalize IMPORT_FROM AmazonPersonalize STORE_NAME AmazonPersonalize POP_TOP LOAD_CONST 0 LOAD_CONST ('AmazonPersonalizeChain',) IMPORT_NAME langchain_...
"""Amazon Personalize primitives.""" from langchain_experimental.recommenders.amazon_personalize import AmazonPersonalize from langchain_experimental.recommenders.amazon_personalize_chain import ( AmazonPersonalizeChain, ) __all__ = ["AmazonPersonalize", "AmazonPersonalizeChain"]
data/langchain_experimental-0.0.52/langchain_experimental/recommenders/__init__.py
142
83
193,482
LOAD_CONST 'Keras locally-connected layers.' STORE_NAME __doc__ LOAD_CONST 0 LOAD_CONST ('LocallyConnected1D',) IMPORT_NAME tf_keras.src.layers.locally_connected.locally_connected1d IMPORT_FROM LocallyConnected1D STORE_NAME LocallyConnected1D POP_TOP LOAD_CONST 0 LOAD_CONST ('LocallyConnected2D',) IMPORT_NAME tf_kera...
"""Keras locally-connected layers.""" from tf_keras.src.layers.locally_connected.locally_connected1d import ( LocallyConnected1D, ) from tf_keras.src.layers.locally_connected.locally_connected2d import ( LocallyConnected2D, )
data/tf_keras-2.15.0/tf_keras/src/layers/locally_connected/__init__.py
134
83
353,778
LOAD_CONST 0 LOAD_CONST ('setup', 'find_packages') IMPORT_NAME setuptools IMPORT_FROM setup STORE_NAME setup IMPORT_FROM find_packages STORE_NAME find_packages POP_TOP LOAD_NAME setup LOAD_CONST 'nanolog_parser' LOAD_CONST '0.0.2' LOAD_NAME find_packages CALL_FUNCTION LOAD_CONST 'console_scripts' LOAD_CONST 'nano...
from setuptools import setup, find_packages setup( name="nanolog_parser", version="0.0.2", packages=find_packages(), entry_points={ "console_scripts": [ "nanologp=nanolog_parser.parse:main", ], }, )
data/nanolog_parser-0.0.2/setup.py
121
83
317,248
LOAD_CONST 0 LOAD_CONST ('Text',) IMPORT_NAME rich.text IMPORT_FROM Text STORE_NAME Text POP_TOP LOAD_CONST 0 LOAD_CONST ('RichLog',) IMPORT_NAME textual.widgets IMPORT_FROM RichLog STORE_NAME RichLog POP_TOP LOAD_CONST <code object test_make_renderable_expand_tabs at 0x7faa5d9dbb70, file "f.py", line 6> LOAD_CONST '...
from rich.text import Text from textual.widgets import RichLog def test_make_renderable_expand_tabs(): text_log = RichLog() renderable = text_log._make_renderable("\tfoo") assert isinstance(renderable, Text) assert renderable.plain == " foo"
data/textual-0.52.1/tests/test_textlog.py
216
83
26,026
LOAD_CONST 1 LOAD_CONST ('_Saas',) IMPORT_NAME IMPORT_FROM _Saas STORE_NAME _Saas POP_TOP LOAD_BUILD_CLASS LOAD_CONST <code object _Identity at 0x7fab81fc6b70, file "f.py", line 4> LOAD_CONST '_Identity' MAKE_FUNCTION LOAD_CONST '_Identity' LOAD_NAME _Saas CALL_FUNCTION STORE_NAME _Identity LOAD_BUILD_CLASS LOAD_CONS...
from . import _Saas class _Identity(_Saas): _type = "identity" _icon_dir = "resources/saas/identity" class Auth0(_Identity): _icon = "auth0.png" class Okta(_Identity): _icon = "okta.png"
data/diagrams-0.23.4/diagrams/saas/identity.py
348
83
206,108
LOAD_CONST "Provides predefined views\n\nThis module provides a collection of predefined views\nfor use in reports. It is separated by type (xml, json, or text).\nEach type contains a submodule called 'generic' containing\nseveral basic, universal views for that type. There is also\na predefined view that utilizes Jinj...
"""Provides predefined views This module provides a collection of predefined views for use in reports. It is separated by type (xml, json, or text). Each type contains a submodule called 'generic' containing several basic, universal views for that type. There is also a predefined view that utilizes Jinja. """
data/oslo.reports-3.2.0/oslo_reports/views/__init__.py
96
83
196,632
LOAD_CONST 1 LOAD_CONST ('_Outscale',) IMPORT_NAME IMPORT_FROM _Outscale STORE_NAME _Outscale POP_TOP LOAD_BUILD_CLASS LOAD_CONST <code object _Storage at 0x7fab70246e40, file "f.py", line 4> LOAD_CONST '_Storage' MAKE_FUNCTION LOAD_CONST '_Storage' LOAD_NAME _Outscale CALL_FUNCTION STORE_NAME _Storage LOAD_BUILD_CLA...
from . import _Outscale class _Storage(_Outscale): _type = "storage" _icon_dir = "resources/outscale/storage" class SimpleStorageService(_Storage): _icon = "simple-storage-service.png" class Storage(_Storage): _icon = "storage.png"
data/diagrams-0.23.4/diagrams/outscale/storage.py
347
83
206,033
LOAD_CONST 0 LOAD_CONST None IMPORT_NAME os STORE_NAME os LOAD_CONST '1' LOAD_NAME os LOAD_ATTR environ LOAD_CONST 'JUPYTER_PLATFORM_DIRS' STORE_SUBSCR LOAD_CONST 'pytest_jupyter' LOAD_CONST 'pytest_jupyter.jupyter_server' LOAD_CONST 'pytest_jupyter.jupyter_client' BUILD_LIST STORE_NAME pytest_plugins LOAD_CONST No...
import os os.environ["JUPYTER_PLATFORM_DIRS"] = "1" pytest_plugins = [ "pytest_jupyter", "pytest_jupyter.jupyter_server", "pytest_jupyter.jupyter_client", ]
data/pytest_jupyter-0.8.0/tests/conftest.py
106
83
346,284
LOAD_CONST '\nUtility functions used for values.\n\n.. versionadded:: 2018.3.0\n' STORE_NAME __doc__ LOAD_CONST <code object xor at 0x7faad43f14b0, file "f.py", line 8> LOAD_CONST 'xor' MAKE_FUNCTION STORE_NAME xor LOAD_CONST None RETURN_VALUE LOAD_CONST False STORE_FAST sum_ SETUP_LOOP to 30 LOAD_FAST variables GET...
""" Utility functions used for values. .. versionadded:: 2018.3.0 """ def xor(*variables): """ XOR definition for multiple variables """ sum_ = False for value in variables: sum_ = sum_ ^ bool(value) return sum_
data/salt-3006.6/salt/utils/value.py
145
83
97,366
LOAD_CONST 'Chris Griffith' STORE_NAME __author__ LOAD_CONST '4.2.3' STORE_NAME __version__ LOAD_CONST 1 LOAD_CONST ('Box',) IMPORT_NAME box IMPORT_FROM Box STORE_NAME Box POP_TOP LOAD_CONST 1 LOAD_CONST ('BoxList',) IMPORT_NAME box_list IMPORT_FROM BoxList STORE_NAME BoxList POP_TOP LOAD_CONST 1 LOAD_CONST ('Confi...
__author__ = "Chris Griffith" __version__ = "4.2.3" from .box import Box from .box_list import BoxList from .config_box import ConfigBox from .shorthand_box import SBox from .exceptions import BoxError, BoxKeyError from .from_file import box_from_file
data/dynaconf-3.2.4/dynaconf/vendor/box/__init__.py
213
83
205,550
LOAD_CONST '\nShell environment introspection, e.g. binaries in effective $PATH, etc.\n' STORE_NAME __doc__ LOAD_CONST <code object have_program at 0x7f8ab739ee40, file "f.py", line 6> LOAD_CONST 'have_program' MAKE_FUNCTION STORE_NAME have_program LOAD_CONST None RETURN_VALUE LOAD_FAST c LOAD_ATTR run LOAD_CONST 'wh...
""" Shell environment introspection, e.g. binaries in effective $PATH, etc. """ def have_program(c, name): """ Returns whether connected user has program ``name`` in their ``$PATH``. """ return c.run("which {}".format(name), hide=True, warn=True)
data/patchwork-1.0.1/patchwork/environment.py
122
83
329,047
LOAD_NAME int LOAD_NAME bytes LOAD_CONST ('value', 'return') BUILD_CONST_KEY_MAP LOAD_CONST <code object int_to_big_endian at 0x7fab703b0780, file "f.py", line 1> LOAD_CONST 'int_to_big_endian' MAKE_FUNCTION STORE_NAME int_to_big_endian LOAD_NAME bytes LOAD_NAME int LOAD_CONST ('value', 'return') BUILD_CONST_KEY_MAP L...
def int_to_big_endian(value: int) -> bytes: return value.to_bytes((value.bit_length() + 7) // 8 or 1, "big") def big_endian_to_int(value: bytes) -> int: return int.from_bytes(value, "big")
data/eth-utils-3.0.0/eth_utils/encoding.py
231
83
237,263
LOAD_CONST 0 LOAD_CONST None IMPORT_NAME numpy STORE_NAME np LOAD_CONST 0 LOAD_CONST None IMPORT_NAME matplotlib.pyplot IMPORT_FROM pyplot STORE_NAME plt POP_TOP LOAD_CONST 0 LOAD_CONST ('XTick',) IMPORT_NAME matplotlib.axis IMPORT_FROM XTick STORE_NAME XTick POP_TOP LOAD_CONST <code object test_tick_labelcolor_arra...
import numpy as np import matplotlib.pyplot as plt from matplotlib.axis import XTick def test_tick_labelcolor_array(): ax = plt.axes() XTick(ax, 0, labelcolor=np.array([1, 0, 0, 1]))
data/matplotlib-3.8.3/lib/matplotlib/tests/test_axis.py
212
83
130,205
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 objc STORE_NAME objc LOAD_CONST 0 LOAD_CONST None IMPORT_NAME MediaLibrary STORE_NAME Medi...
from PyObjCTools.TestSupport import TestCase, min_os_level import objc import MediaLibrary class TestMLMediaObject(TestCase): @min_os_level("10.9") def testClasses(self): self.assertIsInstance(MediaLibrary.MLMediaObject, objc.objc_class)
data/pyobjc-framework-MediaLibrary-10.1/PyObjCTest/test_mlmediaobject.py
291
83
353,446
LOAD_CONST 0 LOAD_CONST ('combomethod',) IMPORT_NAME eth_utils.decorators IMPORT_FROM combomethod STORE_NAME combomethod POP_TOP LOAD_CONST 0 LOAD_CONST ('import_string',) IMPORT_NAME eth_utils.module_loading IMPORT_FROM import_string STORE_NAME import_string POP_TOP LOAD_CONST <code object test_import_string at 0x7f...
from eth_utils.decorators import ( combomethod, ) from eth_utils.module_loading import ( import_string, ) def test_import_string(): imported_combomethod = import_string("eth_utils.decorators.combomethod") assert imported_combomethod is combomethod
data/eth-utils-3.0.0/tests/module-loading-utils/test_import_string.py
185
83
237,261
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 objc STORE_NAME objc LOAD_CONST 0 LOAD_CONST None IMPORT_NAME MediaLibrary STORE_NAME Medi...
from PyObjCTools.TestSupport import TestCase, min_os_level import objc import MediaLibrary class TestMLMediaSource(TestCase): @min_os_level("10.9") def testClasses(self): self.assertIsInstance(MediaLibrary.MLMediaSource, objc.objc_class)
data/pyobjc-framework-MediaLibrary-10.1/PyObjCTest/test_mlmediasource.py
289
83
353,444
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 GameplayKit STORE_NAME GameplayKit LOAD_BUILD_CLASS LOAD_CONST <code object TestGKStateMachine at 0x7fab81fc48a0, file "f.py", line 5> LOAD_CONST 'TestGKS...
from PyObjCTools.TestSupport import TestCase import GameplayKit class TestGKStateMachine(TestCase): def testMethods(self): self.assertResultIsBOOL(GameplayKit.GKStateMachine.canEnterState_) self.assertResultIsBOOL(GameplayKit.GKStateMachine.enterState_)
data/pyobjc-framework-GameplayKit-10.1/PyObjCTest/test_gkstatemachine.py
274
83
57,625
LOAD_CONST 'Helper methods for other classes.\n\nThis module should have no dependencies on other parts of\nthe SQLFluff package and each should also be free of dependencies\non each other. This is to ensure each of these methods can be used\nanywhere within the project without fear of dependency issues.\n\nMethods are...
"""Helper methods for other classes. This module should have no dependencies on other parts of the SQLFluff package and each should also be free of dependencies on each other. This is to ensure each of these methods can be used anywhere within the project without fear of dependency issues. Methods are organised by th...
data/sqlfluff-2.3.5/src/sqlfluff/core/helpers/__init__.py
97
83
351,402
LOAD_CONST '\nDVC\n----\nMake your data science projects reproducible and shareable.\n' STORE_NAME __doc__ LOAD_CONST 0 LOAD_CONST None IMPORT_NAME dvc.logger STORE_NAME dvc LOAD_CONST 0 LOAD_CONST ('PKG',) IMPORT_NAME dvc.build IMPORT_FROM PKG STORE_NAME PKG POP_TOP LOAD_CONST 0 LOAD_CONST ('__version__', 'version_...
""" DVC ---- Make your data science projects reproducible and shareable. """ import dvc.logger from dvc.build import PKG # noqa: F401 from dvc.version import __version__, version_tuple # noqa: F401 dvc.logger.setup()
data/dvc-3.47.0/dvc/__init__.py
144
83
317,885
LOAD_CONST 'Deprecated import for ipyparallel.cluster.launcher' STORE_NAME __doc__ LOAD_CONST 0 LOAD_CONST None IMPORT_NAME warnings STORE_NAME warnings LOAD_CONST 0 LOAD_CONST ('*',) IMPORT_NAME ipyparallel.cluster.launcher IMPORT_STAR LOAD_NAME warnings LOAD_METHOD warn LOAD_NAME __name__ FORMAT_VALUE LOAD_CONST ...
"""Deprecated import for ipyparallel.cluster.launcher""" import warnings from ipyparallel.cluster.launcher import * # noqa warnings.warn( f"{__name__} is deprecated in ipyparallel 7. Use ipyparallel.cluster.launcher.", DeprecationWarning, )
data/ipyparallel-8.6.1/ipyparallel/apps/launcher.py
114
83
345,692
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 app_connection IMPORT_STAR LOAD_CONST 1 LOAD_CONST ('*',) IMPORT_NAME app_connector IMPORT_STAR LOAD_C...
from .. import _utilities import typing from .app_connection import * from .app_connector import * from .app_gateway import * from .get_app_connection import * from .get_app_connector import * from .get_app_gateway import * from ._inputs import * from . import outputs
data/pulumi_gcp-7.9.0/pulumi_gcp/beyondcorp/__init__.py
203
83
445,513
LOAD_CONST '\nTODO: add a docstring.\n\n' STORE_NAME __doc__ LOAD_BUILD_CLASS LOAD_CONST <code object Delimiters at 0x7fab822eaae0, file "f.py", line 7> LOAD_CONST 'Delimiters' MAKE_FUNCTION LOAD_CONST 'Delimiters' LOAD_NAME object CALL_FUNCTION STORE_NAME Delimiters LOAD_CONST None RETURN_VALUE LOAD_NAME __name__ ST...
""" TODO: add a docstring. """ class Delimiters(object): def first(self): return "It worked the first time." def second(self): return "And it worked the second time." def third(self): return "Then, surprisingly, it worked the third time."
data/pystache-0.6.5/pystache/tests/examples/delimiters.py
297
83
366,308
LOAD_CONST 'The :mod:`imblearn.combine` provides methods which combine\nover-sampling and under-sampling.\n' STORE_NAME __doc__ LOAD_CONST 1 LOAD_CONST ('SMOTEENN',) IMPORT_NAME _smote_enn IMPORT_FROM SMOTEENN STORE_NAME SMOTEENN POP_TOP LOAD_CONST 1 LOAD_CONST ('SMOTETomek',) IMPORT_NAME _smote_tomek IMPORT_FROM SMO...
"""The :mod:`imblearn.combine` provides methods which combine over-sampling and under-sampling. """ from ._smote_enn import SMOTEENN from ._smote_tomek import SMOTETomek __all__ = ["SMOTEENN", "SMOTETomek"]
data/imbalanced-learn-0.12.0/imblearn/combine/__init__.py
147
83
395,907
LOAD_CONST 0 LOAD_CONST None IMPORT_NAME hubspot.settings.business_units IMPORT_FROM settings ROT_TWO POP_TOP IMPORT_FROM business_units STORE_NAME api_client POP_TOP LOAD_CONST 3 LOAD_CONST ('DiscoveryBase',) IMPORT_NAME discovery_base IMPORT_FROM DiscoveryBase STORE_NAME DiscoveryBase POP_TOP LOAD_BUILD_CLASS LOAD_...
import hubspot.settings.business_units as api_client from ...discovery_base import DiscoveryBase class Discovery(DiscoveryBase): @property def business_unit_api(self) -> api_client.BusinessUnitApi: return self._configure_api_client(api_client, "BusinessUnitApi")
data/hubspot-api-client-8.2.1/hubspot/discovery/settings/business_units/discovery.py
272
83
320,817
LOAD_CONST 0 LOAD_CONST ('template',) IMPORT_NAME django IMPORT_FROM template STORE_NAME template POP_TOP LOAD_NAME template LOAD_METHOD Library CALL_METHOD STORE_NAME register LOAD_NAME register LOAD_ATTR filter LOAD_CONST 'strip_db' LOAD_CONST ('name',) CALL_FUNCTION LOAD_CONST <code object strip_db at 0x7fab823bee...
from django import template register = template.Library() @register.filter(name="strip_db") def strip_db(path): """ The distributed sqlite backend provides full paths to databases. Return the path to the base directory instead. """ return path.replace("/ansible.sqlite", "")
data/ara-1.7.1/ara/ui/templatetags/strip_db.py
132
83
365,831
LOAD_CONST 0 LOAD_CONST ('find_spec',) IMPORT_NAME importlib.util IMPORT_FROM find_spec STORE_NAME find_spec POP_TOP LOAD_CONST 0 LOAD_CONST ('TestCase',) IMPORT_NAME unittest IMPORT_FROM TestCase STORE_NAME TestCase POP_TOP LOAD_BUILD_CLASS LOAD_CONST <code object TestSemanticConventions at 0x7faac0069030, file "f.p...
from importlib.util import find_spec from unittest import TestCase class TestSemanticConventions(TestCase): def test_semantic_conventions(self): if find_spec("opentelemetry.semconv") is None: self.fail("opentelemetry-semantic-conventions not installed")
data/opentelemetry_semantic_conventions-0.43b0/tests/test_semconv.py
291
83
131,838
LOAD_CONST 0 LOAD_CONST None IMPORT_NAME pytest STORE_NAME pytest LOAD_CONST 0 LOAD_CONST None IMPORT_NAME kernels STORE_NAME kernels LOAD_NAME pytest LOAD_ATTR mark LOAD_ATTR skip LOAD_CONST 'Unable to generate any tests for kernel' LOAD_CONST ('reason',) CALL_FUNCTION LOAD_CONST <code object test_pyawkward_IndexedA...
import pytest import kernels @pytest.mark.skip(reason="Unable to generate any tests for kernel") def test_pyawkward_IndexedArray64_reduce_next_nonlocal_nextshifts_fromshifts_64_1(): raise NotImplementedError("Unable to generate any tests for kernel")
data/awkward-cpp-29/tests-spec/test_pyawkward_IndexedArray64_reduce_next_nonlocal_nextshifts_fromshifts_64.py
231
84
220,511
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 ('deserialize_keras_object',) IMPORT_NAME keras.src.legacy.saving.serialization IMPORT_FROM deserialize_keras_object STORE_NAME deserialize_kera...
"""DO NOT EDIT. This file was autogenerated. Do not edit it by hand, since your modifications would be overwritten. """ from keras.src.legacy.saving.serialization import deserialize_keras_object from keras.src.legacy.saving.serialization import serialize_keras_object
data/keras-3.0.5/keras/legacy/saving/__init__.py
154
84
349,103
LOAD_CONST 0 LOAD_CONST ('Path',) IMPORT_NAME pathlib IMPORT_FROM Path STORE_NAME Path POP_TOP LOAD_CONST 'tests.test_cmdline.extensions.TestExtension' LOAD_CONST 0 BUILD_MAP STORE_NAME EXTENSIONS LOAD_CONST 'default' STORE_NAME TEST1 LOAD_NAME Path LOAD_CONST 'items.csv' CALL_FUNCTION LOAD_CONST 'csv' LOAD_CONST ...
from pathlib import Path EXTENSIONS = { "tests.test_cmdline.extensions.TestExtension": 0, } TEST1 = "default" FEEDS = { Path("items.csv"): { "format": "csv", "fields": ["price", "name"], }, }
data/Scrapy-2.11.1/tests/test_cmdline/settings.py
116
84
332,374
LOAD_CONST 0 LOAD_CONST ('*',) IMPORT_NAME azure.cli.core.aaz IMPORT_STAR LOAD_NAME register_command_group LOAD_CONST 'vmss' CALL_FUNCTION LOAD_BUILD_CLASS LOAD_CONST <code object __CMDGroup at 0x7fab82197b70, file "f.py", line 4> LOAD_CONST '__CMDGroup' MAKE_FUNCTION LOAD_CONST '__CMDGroup' LOAD_NAME AAZCommandGrou...
from azure.cli.core.aaz import * @register_command_group( "vmss", ) class __CMDGroup(AAZCommandGroup): """Manage groupings of virtual machines in an Azure Virtual Machine Scale Set (VMSS).""" pass __all__ = ["__CMDGroup"]
data/azure-cli-2.57.0/azure/cli/command_modules/vm/aaz/profile_2019_03_01_hybrid/vmss/__cmd_group.py
194
84
376,421
LOAD_CONST 0 LOAD_CONST ('base',) IMPORT_NAME ironicclient.common IMPORT_FROM base STORE_NAME base POP_TOP LOAD_BUILD_CLASS LOAD_CONST <code object Event at 0x7fab540c55d0, file "f.py", line 4> LOAD_CONST 'Event' MAKE_FUNCTION LOAD_CONST 'Event' LOAD_NAME base LOAD_ATTR Resource CALL_FUNCTION STORE_NAME Event LOAD_BU...
from ironicclient.common import base class Event(base.Resource): def __repr__(self): return "<Event: %s>" % self.name class EventManager(base.CreateManager): resource_class = Event _creation_attributes = ["events"] _resource_name = "events"
data/python-ironicclient-5.4.0/ironicclient/v1/events.py
315
84
104,987
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 ('diff', 'patch', 'file_diff', 'file_patch', 'file_patch_inplace') IMPORT_NAME bsdiff4.format IMPORT_FROM diff STORE_NAME diff IMPORT_FROM patch STORE_NAME patch IM...
from __future__ import absolute_import from bsdiff4.format import diff, patch, file_diff, file_patch, file_patch_inplace __version__ = "1.2.4" def test(verbosity=1): from .test_all import run return run(verbosity=verbosity)
data/bsdiff4-1.2.4/bsdiff4/__init__.py
229
84
384,337
LOAD_CONST 0 LOAD_CONST ('_',) IMPORT_NAME mercurial.i18n IMPORT_FROM _ STORE_NAME _ POP_TOP LOAD_CONST 0 LOAD_CONST ('changegroup', 'error', 'extensions') IMPORT_NAME mercurial IMPORT_FROM changegroup STORE_NAME changegroup IMPORT_FROM error STORE_NAME error IMPORT_FROM extensions STORE_NAME extensions POP_TOP LOAD_...
from mercurial.i18n import _ from mercurial import changegroup, error, extensions def abort(orig, *args, **kwargs): raise error.Abort(_("this is an exercise")) def uisetup(ui): extensions.wrapfunction(changegroup, "getbundler", abort)
data/mercurial-6.6.3/tests/crashgetbundler.py
238
84
365,289
LOAD_CONST "Dataset definition for media_sum.\n\nDEPRECATED!\nIf you want to use the MediaSum dataset builder class, use:\ntfds.builder_cls('media_sum')\n" STORE_NAME __doc__ LOAD_CONST 0 LOAD_CONST ('lazy_builder_import',) IMPORT_NAME tensorflow_datasets.core IMPORT_FROM lazy_builder_import STORE_NAME lazy_builder_im...
"""Dataset definition for media_sum. DEPRECATED! If you want to use the MediaSum dataset builder class, use: tfds.builder_cls('media_sum') """ from tensorflow_datasets.core import lazy_builder_import MediaSum = lazy_builder_import.LazyBuilderImport("media_sum")
data/tfds-nightly-4.9.4.dev202402210044/tensorflow_datasets/summarization/media_sum/media_sum.py
128
84
211,351
LOAD_CONST 0 LOAD_CONST ('*',) IMPORT_NAME azure.cli.core.aaz IMPORT_STAR LOAD_NAME register_command_group LOAD_CONST 'network lb inbound-nat-rule' CALL_FUNCTION LOAD_BUILD_CLASS LOAD_CONST <code object __CMDGroup at 0x7faa5e81f0c0, file "f.py", line 4> LOAD_CONST '__CMDGroup' MAKE_FUNCTION LOAD_CONST '__CMDGroup' L...
from azure.cli.core.aaz import * @register_command_group( "network lb inbound-nat-rule", ) class __CMDGroup(AAZCommandGroup): """Manage inbound NAT rules of a load balancer.""" pass __all__ = ["__CMDGroup"]
data/azure-cli-2.57.0/azure/cli/command_modules/network/aaz/profile_2020_09_01_hybrid/network/lb/inbound_nat_rule/__cmd_group.py
194
84
378,730
LOAD_CONST 'Test different server responses.' STORE_NAME __doc__ LOAD_CONST 0 LOAD_CONST None IMPORT_NAME moto.server IMPORT_FROM server STORE_NAME server POP_TOP LOAD_CONST <code object test_panorama_list at 0x7fab80295300, file "f.py", line 6> LOAD_CONST 'test_panorama_list' MAKE_FUNCTION STORE_NAME test_panorama_l...
"""Test different server responses.""" import moto.server as server def test_panorama_list(): backend = server.create_backend_app("panorama") test_client = backend.test_client() resp = test_client.get("/devices") assert resp.status_code == 200
data/moto-5.0.2/tests/test_panorama/test_server.py
192
84
197,455
LOAD_CONST 0 LOAD_CONST None IMPORT_NAME json STORE_NAME json LOAD_CONST 0 LOAD_CONST ('Model',) IMPORT_NAME chargebee.model IMPORT_FROM Model STORE_NAME Model POP_TOP LOAD_CONST 0 LOAD_CONST ('request',) IMPORT_NAME chargebee IMPORT_FROM request STORE_NAME request POP_TOP LOAD_CONST 0 LOAD_CONST ('APIError',) IMPOR...
import json from chargebee.model import Model from chargebee import request from chargebee import APIError class Hierarchy(Model): fields = [ "customer_id", "parent_id", "payment_owner_id", "invoice_owner_id", "children_ids", ]
data/chargebee-2.35.0/chargebee/models/hierarchy.py
235
84
252,724
LOAD_CONST 0 LOAD_CONST ('excel_1drive_toDict',) IMPORT_NAME excel_1drive_noPassword.excel_1drive_noPassword IMPORT_FROM excel_1drive_toDict STORE_NAME excel_1drive_toDict POP_TOP LOAD_CONST 0 LOAD_CONST ('excel_1drive_sheetnames',) IMPORT_NAME excel_1drive_noPassword.excel_1drive_noPassword IMPORT_FROM excel_1drive_s...
from excel_1drive_noPassword.excel_1drive_noPassword import excel_1drive_toDict from excel_1drive_noPassword.excel_1drive_noPassword import excel_1drive_sheetnames from excel_1drive_noPassword.excel_1drive_noPassword import excel_1dr_SingleSheet_toDF
data/excel_1drive_noPassword-1.2.4/excel_1drive_noPassword/__init__.py
187
84
222,897
LOAD_CONST 1 LOAD_CONST ('FormatColumn',) IMPORT_NAME intcolumn IMPORT_FROM FormatColumn STORE_NAME FormatColumn POP_TOP LOAD_BUILD_CLASS LOAD_CONST <code object NothingColumn at 0x7f8ab7617a50, file "f.py", line 4> LOAD_CONST 'NothingColumn' MAKE_FUNCTION LOAD_CONST 'NothingColumn' LOAD_NAME FormatColumn CALL_FUNCTIO...
from .intcolumn import FormatColumn class NothingColumn(FormatColumn): ch_type = "Nothing" format = "B" @property def size(self): return 1 def after_read_items(self, items, nulls_map=None): return (None,) * len(items)
data/asynch-0.2.3/asynch/proto/columns/nothingcolumn.py
278
84
427,513
LOAD_CONST 0 LOAD_CONST ('path',) IMPORT_NAME django.urls IMPORT_FROM path STORE_NAME path POP_TOP LOAD_CONST 0 LOAD_CONST ('views',) IMPORT_NAME users IMPORT_FROM views STORE_NAME views POP_TOP LOAD_NAME path LOAD_CONST '' LOAD_NAME views LOAD_ATTR UserList LOAD_METHOD as_view CALL_METHOD CALL_FUNCTION LOAD_NAME pa...
from django.urls import path from users import views urlpatterns = [ path("", views.UserList.as_view()), path("<int:pk>/", views.user_detail), path("<int:pk>/test_dummy", views.test_view_with_dummy_schema), ]
data/drf-yasg-1.21.7/testproj/users/urls.py
141
84
352,405
LOAD_CONST <code object test_check_and_assert at 0x7fab7002bed0, file "f.py", line 1> LOAD_CONST 'test_check_and_assert' MAKE_FUNCTION STORE_NAME test_check_and_assert LOAD_CONST None RETURN_VALUE LOAD_FAST pytester LOAD_METHOD copy_example LOAD_CONST 'examples/test_example_check_and_assert.py' CALL_METHOD POP_TOP LO...
def test_check_and_assert(pytester): pytester.copy_example("examples/test_example_check_and_assert.py") result = pytester.runpytest() result.assert_outcomes(failed=2) result.stdout.fnmatch_lines(["* 2 failed *"])
data/pytest_check-2.3.1/tests/test_check_and_assert.py
169
84
186,412
LOAD_CONST 0 LOAD_CONST ('pyqt6_library_info',) IMPORT_NAME PyInstaller.utils.hooks.qt IMPORT_FROM pyqt6_library_info STORE_NAME pyqt6_library_info POP_TOP LOAD_NAME pyqt6_library_info LOAD_ATTR version LOAD_CONST None COMPARE_OP is not POP_JUMP_IF_FALSE LOAD_CONST 'PyQt6.sip' LOAD_CONST 'pkgutil' BUILD_LIST STORE_N...
from PyInstaller.utils.hooks.qt import pyqt6_library_info if pyqt6_library_info.version is not None: hiddenimports = [ "PyQt6.sip", "pkgutil", ] binaries = pyqt6_library_info.collect_extra_binaries()
data/pyinstaller-6.4.0/PyInstaller/hooks/hook-PyQt6.py
124
84
185,210
SETUP_ANNOTATIONS LOAD_CONST 'Dataset implementation to load/save data from/to a video file.' STORE_NAME __doc__ LOAD_CONST 0 LOAD_CONST ('Any',) IMPORT_NAME typing IMPORT_FROM Any STORE_NAME Any POP_TOP LOAD_CONST 0 LOAD_CONST None IMPORT_NAME lazy_loader STORE_NAME lazy LOAD_NAME Any LOAD_NAME __annotations__ LOAD...
"""Dataset implementation to load/save data from/to a video file.""" from typing import Any import lazy_loader as lazy VideoDataset: Any __getattr__, __dir__, __all__ = lazy.attach( __name__, submod_attrs={"video_dataset": ["VideoDataset"]} )
data/kedro-datasets-2.0.0/kedro_datasets/video/__init__.py
148
84
61,451
LOAD_CONST 0 LOAD_CONST ('BytesIO',) IMPORT_NAME io IMPORT_FROM BytesIO STORE_NAME BytesIO POP_TOP LOAD_CONST 0 LOAD_CONST None IMPORT_NAME cv2 STORE_NAME cv2 LOAD_CONST 0 LOAD_CONST ('Image',) IMPORT_NAME PIL IMPORT_FROM Image STORE_NAME Image POP_TOP LOAD_CONST 0 LOAD_CONST ('from_pillow', 'libheif_info') IMPORT_N...
from io import BytesIO import cv2 # noqa from PIL import Image from pillow_heif import from_pillow, libheif_info print(libheif_info()) from_pillow(Image.linear_gradient(mode="L")).save(BytesIO(), format="HEIF")
data/pillow_heif-0.15.0/tests/opencv_bug.py
203
84
446,943
LOAD_CONST 'Google Benchmark tooling' STORE_NAME __doc__ LOAD_CONST 'Eric Fiselier' STORE_NAME __author__ LOAD_CONST 'eric@efcs.ca' STORE_NAME __email__ LOAD_CONST (0, 5, 0) STORE_NAME __versioninfo__ LOAD_CONST '.' LOAD_METHOD join LOAD_CONST <code object <genexpr> at 0x7fab4278a9c0, file "f.py", line 6> LOAD_CONS...
"""Google Benchmark tooling""" __author__ = "Eric Fiselier" __email__ = "eric@efcs.ca" __versioninfo__ = (0, 5, 0) __version__ = ".".join(str(v) for v in __versioninfo__) + "dev" __all__ = []
data/onnxoptimizer-0.3.13/third_party/onnx/third_party/benchmark/tools/gbench/__init__.py
188
84
85,993
LOAD_CONST 'Classes for using DatasetDefinition in Processing job with Amazon SageMaker.' STORE_NAME __doc__ LOAD_CONST 0 LOAD_CONST ('absolute_import',) IMPORT_NAME __future__ IMPORT_FROM absolute_import STORE_NAME absolute_import POP_TOP LOAD_CONST 0 LOAD_CONST ('DatasetDefinition', 'S3Input', 'RedshiftDatasetDefin...
"""Classes for using DatasetDefinition in Processing job with Amazon SageMaker.""" from __future__ import absolute_import from sagemaker.dataset_definition.inputs import ( # noqa: F401 DatasetDefinition, S3Input, RedshiftDatasetDefinition, AthenaDatasetDefinition, )
data/sagemaker-2.208.0/src/sagemaker/dataset_definition/__init__.py
155
84
318,745
LOAD_CONST '\nUseless IPython extension to test installing and loading extensions.\n' STORE_NAME __doc__ LOAD_CONST 'arq' LOAD_CONST 185 BUILD_MAP STORE_NAME some_vars LOAD_CONST <code object load_ipython_extension at 0x7fab640f2ae0, file "f.py", line 7> LOAD_CONST 'load_ipython_extension' MAKE_FUNCTION STORE_NAME lo...
""" Useless IPython extension to test installing and loading extensions. """ some_vars = {"arq": 185} def load_ipython_extension(ip): ip.push(some_vars) def unload_ipython_extension(ip): ip.drop_by_id(some_vars)
data/ipython-8.21.0/IPython/core/tests/daft_extension/daft_extension.py
214
84
154,674
LOAD_CONST 0 LOAD_CONST ('FastAPI',) IMPORT_NAME fastapi IMPORT_FROM FastAPI STORE_NAME FastAPI POP_TOP LOAD_CONST 0 LOAD_CONST ('GraphQLRouter',) IMPORT_NAME strawberry.fastapi IMPORT_FROM GraphQLRouter STORE_NAME GraphQLRouter POP_TOP LOAD_CONST 2 LOAD_CONST ('schema',) IMPORT_NAME schema IMPORT_FROM schema STORE_N...
from fastapi import FastAPI from strawberry.fastapi import GraphQLRouter from ..schema import schema def create_app(path="/graphql"): app = FastAPI() graphql_app = GraphQLRouter(schema) app.include_router(graphql_app, prefix=path) return app
data/schemathesis-3.25.1/test/apps/_graphql/_fastapi/__init__.py
205
84
175,126
LOAD_CONST './cascade-rcnn_r50_fpn_1x_coco.py' STORE_NAME _base_ LOAD_NAME dict LOAD_NAME dict LOAD_CONST 101 LOAD_NAME dict LOAD_CONST 'Pretrained' LOAD_CONST 'torchvision://resnet101' LOAD_CONST ('type', 'checkpoint') CALL_FUNCTION LOAD_CONST ('depth', 'init_cfg') CALL_FUNCTION LOAD_CONST ('backbone',) CALL_FUNCT...
_base_ = "./cascade-rcnn_r50_fpn_1x_coco.py" model = dict( backbone=dict( depth=101, init_cfg=dict(type="Pretrained", checkpoint="torchvision://resnet101"), ) )
data/mmdet-3.3.0/mmdet/.mim/configs/cascade_rcnn/cascade-rcnn_r101_fpn_1x_coco.py
109
84
151,184
LOAD_CONST 0 LOAD_CONST ('_dummy',) IMPORT_NAME neutron_lib.api.definitions IMPORT_FROM _dummy STORE_NAME _dummy POP_TOP LOAD_CONST 0 LOAD_CONST ('base',) IMPORT_NAME neutron_lib.tests.unit.api.definitions IMPORT_FROM base STORE_NAME base POP_TOP LOAD_BUILD_CLASS LOAD_CONST <code object _DummyDefinitionTestCase at 0x...
from neutron_lib.api.definitions import _dummy from neutron_lib.tests.unit.api.definitions import base class _DummyDefinitionTestCase(base.DefinitionBaseTestCase): extension_module = _dummy extension_resources = (_dummy.COLLECTION_NAME,) extension_subresources = ("subfoo",)
data/neutron-lib-3.10.0/neutron_lib/tests/unit/api/definitions/test__dummy.py
219
84
384,906
LOAD_CONST 0 LOAD_CONST None IMPORT_NAME sys STORE_NAME sys LOAD_CONST 0 LOAD_CONST ('Widget',) IMPORT_NAME widget_module IMPORT_FROM Widget STORE_NAME Widget POP_TOP LOAD_BUILD_CLASS LOAD_CONST <code object DerivedWidget at 0x7fab8013b0c0, file "f.py", line 6> LOAD_CONST 'DerivedWidget' MAKE_FUNCTION LOAD_CONST 'Der...
import sys from widget_module import Widget class DerivedWidget(Widget): def __init__(self, message): super(DerivedWidget, self).__init__(message) def the_answer(self): return 42 def argv0(self): return sys.argv[0]
data/onnxoptimizer-0.3.13/third_party/onnx/third_party/pybind11/tests/test_embed/test_interpreter.py
369
84
86,042
LOAD_CONST 'Build exceptions' STORE_NAME __doc__ LOAD_CONST 0 LOAD_CONST ('UserException',) IMPORT_NAME samcli.commands.exceptions IMPORT_FROM UserException STORE_NAME UserException POP_TOP LOAD_BUILD_CLASS LOAD_CONST <code object InvalidBuildDirException at 0x7f8ab684b4b0, file "f.py", line 6> LOAD_CONST 'InvalidBui...
"""Build exceptions""" from samcli.commands.exceptions import UserException class InvalidBuildDirException(UserException): """ Value provided to --build-dir is invalid """ class MissingBuildMethodException(UserException): """ Exception to be thrown when a layer is tried to build without BuildMe...
data/aws-sam-cli-1.109.0/samcli/commands/build/exceptions.py
296
84
432,040
LOAD_CONST "tetgen package version.\n\nOn the ``master`` branch, use 'dev0' to denote a development version.\nFor example:\n\nversion_info = 0, 27, 'dev0'\n\n" STORE_NAME __doc__ LOAD_CONST (0, 6, 3) STORE_NAME version_info LOAD_CONST '.' LOAD_METHOD join LOAD_NAME map LOAD_NAME str LOAD_NAME version_info CALL_FUNCTI...
"""tetgen package version. On the ``master`` branch, use 'dev0' to denote a development version. For example: version_info = 0, 27, 'dev0' """ version_info = 0, 6, 3 __version__ = ".".join(map(str, version_info))
data/tetgen-0.6.3/tetgen/_version.py
110
84
70,112
LOAD_CONST 0 LOAD_CONST None IMPORT_NAME json STORE_NAME json LOAD_CONST 0 LOAD_CONST ('Model',) IMPORT_NAME chargebee.model IMPORT_FROM Model STORE_NAME Model POP_TOP LOAD_CONST 0 LOAD_CONST ('request',) IMPORT_NAME chargebee IMPORT_FROM request STORE_NAME request POP_TOP LOAD_CONST 0 LOAD_CONST ('APIError',) IMPOR...
import json from chargebee.model import Model from chargebee import request from chargebee import APIError class ImpactedSubscription(Model): class Download(Model): fields = ["download_url", "valid_till", "mime_type"] pass fields = ["count", "download", "subscription_ids"]
data/chargebee-2.35.0/chargebee/models/impacted_subscription.py
333
84
126,361
LOAD_CONST <code object load at 0x7faa5f6e8ed0, file "f.py", line 1> LOAD_CONST 'load' MAKE_FUNCTION STORE_NAME load LOAD_CONST None RETURN_VALUE LOAD_CONST 0 LOAD_CONST None IMPORT_NAME pyomo.contrib.gdpopt.GDPopt STORE_FAST pyomo LOAD_CONST 0 LOAD_CONST None IMPORT_NAME pyomo.contrib.gdpopt.gloa STORE_FAST pyomo L...
def load(): import pyomo.contrib.gdpopt.GDPopt import pyomo.contrib.gdpopt.gloa import pyomo.contrib.gdpopt.branch_and_bound import pyomo.contrib.gdpopt.loa import pyomo.contrib.gdpopt.ric
data/Pyomo-6.7.0/pyomo/contrib/gdpopt/plugins.py
190
84
23,335
LOAD_CONST 0 LOAD_CONST None IMPORT_NAME logging STORE_NAME logging LOAD_CONST 0 LOAD_CONST None IMPORT_NAME os STORE_NAME os LOAD_NAME logging LOAD_ATTR basicConfig LOAD_CONST '%(levelname)s - %(message)s' LOAD_CONST ('format',) CALL_FUNCTION POP_TOP LOAD_NAME os LOAD_METHOD getenv LOAD_CONST 'LOG_LEVEL' LOAD_CONST...
import logging import os logging.basicConfig(format="%(levelname)s - %(message)s") level = os.getenv("LOG_LEVEL", "INFO").upper() logger = logging.getLogger(__name__) logger.setLevel(level) logger.debug("Log level: %s", logger.level)
data/pyquil-4.6.2/pyquil/api/_logger.py
155
84
351,520
LOAD_CONST 0 LOAD_CONST ('*',) IMPORT_NAME azure.cli.core.aaz IMPORT_STAR LOAD_NAME register_command_group LOAD_CONST 'vmss' 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' LOAD_NAME AAZCommandGrou...
from azure.cli.core.aaz import * @register_command_group( "vmss", ) class __CMDGroup(AAZCommandGroup): """Manage groupings of virtual machines in an Azure Virtual Machine Scale Set (VMSS).""" pass __all__ = ["__CMDGroup"]
data/azure-cli-2.57.0/azure/cli/command_modules/vm/aaz/latest/vmss/__cmd_group.py
193
84
376,571
LOAD_CONST 1 LOAD_CONST ('JsonMaster', 'Master', 'NackMessage', 'RejectMessage', 'Worker') IMPORT_NAME master IMPORT_FROM JsonMaster STORE_NAME JsonMaster IMPORT_FROM Master STORE_NAME Master IMPORT_FROM NackMessage STORE_NAME NackMessage IMPORT_FROM RejectMessage STORE_NAME RejectMessage IMPORT_FROM Worker STORE_NAME ...
from .master import JsonMaster, Master, NackMessage, RejectMessage, Worker from .rpc import RPC, JsonRPC __all__ = ( "Master", "NackMessage", "RejectMessage", "RPC", "Worker", "JsonMaster", "JsonRPC", )
data/aio_pika-9.4.0/aio_pika/patterns/__init__.py
151
84
389,718
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 sys STORE_NAME sys LOAD_NAME sys LOAD_ATTR version_info LOAD_CONST (3, 11) COMPARE_OP < POP_JUMP_IF_FALSE LOAD_CONST 0 LOAD_CONST ('load', 'loads') IMPORT_NA...
from __future__ import annotations import sys if sys.version_info < (3, 11): from tomli import load, loads else: from tomllib import load, loads __all__ = ["load", "loads"] def __dir__() -> list[str]: return __all__
data/scikit_build_core-0.8.1/src/scikit_build_core/_compat/tomllib.py
232
84
134,876
LOAD_CONST '\ngdsfactory.plugins have been moved to gplugins\n\nMake sure you have gplugins installed and use gplugins instead of gdsfactory.plugins\n\nYou can replace:\n import gdsfactory.plugins -> import gplugins\n\nYou can install gplugins with:\n pip install gplugins\n' STORE_NAME message LOAD_NAME ImportError LO...
message = """ gdsfactory.plugins have been moved to gplugins Make sure you have gplugins installed and use gplugins instead of gdsfactory.plugins You can replace: import gdsfactory.plugins -> import gplugins You can install gplugins with: pip install gplugins """ raise ImportError(message)
data/gdsfactory-7.12.0/gdsfactory/plugins/__init__.py
98
84
303,097
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 objc STORE_NAME objc LOAD_CONST 0 LOAD_CONST None IMPORT_NAME MapKit STORE_NAME MapKit LO...
from PyObjCTools.TestSupport import TestCase, min_os_level import objc import MapKit class TestMKShape(TestCase): @min_os_level("10.9") def testClasses(self): self.assertIsInstance(MapKit.MKShape, objc.objc_class)
data/pyobjc-framework-MapKit-10.1/PyObjCTest/test_mkshape.py
289
84
405,987
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 AVKit STORE_NAME AVKit LOAD_BUILD_CLASS LOAD_CONST <code object TestAVKitDefines at 0x7fab703f0f60, file "f.py", line 6> LOAD_CONST 'TestAVKitDefines' MAK...
from PyObjCTools.TestSupport import TestCase import AVKit class TestAVKitDefines(TestCase): def test_aliases(self): self.assertIs(AVKit.AVKitPlatformViewClass, AVKit.NSView) self.assertIs(AVKit.AVKitPlatformColorClass, AVKit.NSColor)
data/pyobjc-framework-AVKit-10.1/PyObjCTest/test_avkitdefines.py
278
84
171,898
LOAD_CONST 1 LOAD_CONST ('_Outscale',) IMPORT_NAME IMPORT_FROM _Outscale STORE_NAME _Outscale POP_TOP LOAD_BUILD_CLASS LOAD_CONST <code object _Compute at 0x7fab70246e40, file "f.py", line 4> LOAD_CONST '_Compute' MAKE_FUNCTION LOAD_CONST '_Compute' LOAD_NAME _Outscale CALL_FUNCTION STORE_NAME _Compute LOAD_BUILD_CLA...
from . import _Outscale class _Compute(_Outscale): _type = "compute" _icon_dir = "resources/outscale/compute" class Compute(_Compute): _icon = "compute.png" class DirectConnect(_Compute): _icon = "direct-connect.png"
data/diagrams-0.23.4/diagrams/outscale/compute.py
352
84
206,030
LOAD_CONST 0 LOAD_CONST ('estimate_foreground_cf',) IMPORT_NAME pymatting.foreground.estimate_foreground_cf IMPORT_FROM estimate_foreground_cf STORE_NAME estimate_foreground_cf POP_TOP LOAD_CONST 0 LOAD_CONST ('estimate_foreground_ml',) IMPORT_NAME pymatting.foreground.estimate_foreground_ml IMPORT_FROM estimate_foreg...
from pymatting.foreground.estimate_foreground_cf import estimate_foreground_cf from pymatting.foreground.estimate_foreground_ml import estimate_foreground_ml from pymatting.foreground.estimate_foreground_ml import ( estimate_foreground_ml as estimate_foreground, )
data/PyMatting-1.1.12/pymatting/foreground/__init__.py
158
84
10,817
LOAD_CONST 0 LOAD_CONST None IMPORT_NAME pytest STORE_NAME pytest LOAD_CONST <code object test_qtaxcontainer at 0x7fab42914780, file "f.py", line 4> LOAD_CONST 'test_qtaxcontainer' MAKE_FUNCTION STORE_NAME test_qtaxcontainer LOAD_CONST None RETURN_VALUE LOAD_GLOBAL pytest LOAD_METHOD importorskip LOAD_CONST 'qtpy.QtA...
import pytest def test_qtaxcontainer(): """Test the qtpy.QtAxContainer namespace""" QtAxContainer = pytest.importorskip("qtpy.QtAxContainer") assert QtAxContainer.QAxSelect is not None assert QtAxContainer.QAxWidget is not None
data/QtPy-2.4.1/qtpy/tests/test_qtaxcontainer.py
168
84
356,922