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 ('*',) IMPORT_NAME azure.cli.core.aaz IMPORT_STAR LOAD_NAME register_command_group LOAD_CONST 'consumption usage' LOAD_CONST True LOAD_CONST ('is_preview',) CALL_FUNCTION LOAD_BUILD_CLASS LOAD_CONST <code object __CMDGroup at 0x7fab70055780, file "f.py", line 4> LOAD_CONST '__CMDGroup' MAKE_F...
from azure.cli.core.aaz import * @register_command_group( "consumption usage", is_preview=True, ) class __CMDGroup(AAZCommandGroup): """Inspect the usage of Azure resources.""" pass __all__ = ["__CMDGroup"]
data/azure-cli-2.57.0/azure/cli/command_modules/consumption/aaz/latest/consumption/usage/__cmd_group.py
196
82
376,371
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/nocuda/__init__.py
203
82
134,430
LOAD_CONST 0 LOAD_CONST ('*',) IMPORT_NAME azure.cli.core.aaz IMPORT_STAR LOAD_NAME register_command_group LOAD_CONST 'network private-dns link vnet' CALL_FUNCTION LOAD_BUILD_CLASS LOAD_CONST <code object __CMDGroup at 0x7fab823bed20, file "f.py", line 4> LOAD_CONST '__CMDGroup' MAKE_FUNCTION LOAD_CONST '__CMDGroup' ...
from azure.cli.core.aaz import * @register_command_group( "network private-dns link vnet", ) class __CMDGroup(AAZCommandGroup): """Manage virtual network links to the specified Private DNS zone.""" pass __all__ = ["__CMDGroup"]
data/azure-cli-2.57.0/azure/cli/command_modules/privatedns/aaz/latest/network/private_dns/link/vnet/__cmd_group.py
190
82
376,297
SETUP_EXCEPT to 14 LOAD_CONST 0 LOAD_CONST None IMPORT_NAME paver.tasks STORE_NAME paver POP_BLOCK JUMP_FORWARD to 84 DUP_TOP LOAD_NAME ImportError COMPARE_OP exception match POP_JUMP_IF_FALSE POP_TOP POP_TOP POP_TOP LOAD_CONST 0 LOAD_CONST ('exists',) IMPORT_NAME os.path IMPORT_FROM exists STORE_NAME exists POP_TOP...
try: import paver.tasks except ImportError: from os.path import exists if exists("paver-minilib.zip"): import sys sys.path.insert(0, "paver-minilib.zip") import paver.tasks paver.tasks.main()
data/Paver-1.3.4/setup.py
187
82
305,087
LOAD_CONST 0 LOAD_CONST ('Logger',) IMPORT_NAME pybullet_utils.logger IMPORT_FROM Logger STORE_NAME Logger POP_TOP LOAD_NAME Logger CALL_FUNCTION STORE_NAME logger LOAD_NAME logger LOAD_METHOD configure_output_file LOAD_CONST 'e:/mylog.txt' CALL_METHOD POP_TOP SETUP_LOOP to 58 LOAD_NAME range LOAD_CONST 10 CALL_FUNC...
from pybullet_utils.logger import Logger logger = Logger() logger.configure_output_file("e:/mylog.txt") for i in range(10): logger.log_tabular("Iteration", 1) Logger.print2("hello world") logger.print_tabular() logger.dump_tabular()
data/pybullet-3.2.6/examples/pybullet/gym/pybullet_utils/examples/testlog.py
168
82
128,577
LOAD_CONST 'Defines different types of exceptions that this package can raise.' STORE_NAME __doc__ LOAD_BUILD_CLASS LOAD_CONST <code object ScenarioNotSupportedException at 0x7f8e2ff25ed0, file "f.py", line 4> LOAD_CONST 'ScenarioNotSupportedException' MAKE_FUNCTION LOAD_CONST 'ScenarioNotSupportedException' LOAD_NAME...
"""Defines different types of exceptions that this package can raise.""" class ScenarioNotSupportedException(Exception): """An exception indicating that some scenario is not supported. :param exception_message: A message describing the error. :type exception_message: str """ _error_code = "Unsup...
data/interpret_community-0.31.0/interpret_community/common/exception.py
195
82
125,172
LOAD_CONST 0 LOAD_CONST ('*',) IMPORT_NAME azure.cli.core.aaz IMPORT_STAR LOAD_NAME register_command_group LOAD_CONST 'cosmosdb postgres firewall-rule' CALL_FUNCTION LOAD_BUILD_CLASS LOAD_CONST <code object __CMDGroup at 0x7fab8204a4b0, file "f.py", line 4> LOAD_CONST '__CMDGroup' MAKE_FUNCTION LOAD_CONST '__CMDGroup...
from azure.cli.core.aaz import * @register_command_group( "cosmosdb postgres firewall-rule", ) class __CMDGroup(AAZCommandGroup): """Manage Azure Cosmos DB for PostgreSQL firewall rules.""" pass __all__ = ["__CMDGroup"]
data/azure-cli-2.57.0/azure/cli/command_modules/cosmosdb/aaz/latest/cosmosdb/postgres/firewall_rule/__cmd_group.py
192
82
375,163
LOAD_CONST 1 LOAD_CONST ('*',) IMPORT_NAME __cmd_group IMPORT_STAR LOAD_CONST 1 LOAD_CONST ('*',) IMPORT_NAME _create IMPORT_STAR LOAD_CONST 1 LOAD_CONST ('*',) IMPORT_NAME _delete IMPORT_STAR LOAD_CONST 1 LOAD_CONST ('*',) IMPORT_NAME _list IMPORT_STAR LOAD_CONST 1 LOAD_CONST ('*',) IMPORT_NAME _promote IMPORT_STA...
from .__cmd_group import * from ._create import * from ._delete import * from ._list import * from ._promote import * from ._restart import * from ._show import * from ._start import * from ._stop import * from ._update import * from ._wait import *
data/azure-cli-2.57.0/azure/cli/command_modules/cosmosdb/aaz/latest/cosmosdb/postgres/cluster/__init__.py
195
82
375,127
LOAD_CONST 0 LOAD_CONST ('configure_azure_monitor',) IMPORT_NAME azure.monitor.opentelemetry IMPORT_FROM configure_azure_monitor STORE_NAME configure_azure_monitor POP_TOP LOAD_CONST 0 LOAD_CONST ('trace',) IMPORT_NAME opentelemetry IMPORT_FROM trace STORE_NAME trace POP_TOP LOAD_NAME configure_azure_monitor CALL_FUN...
from azure.monitor.opentelemetry import configure_azure_monitor from opentelemetry import trace configure_azure_monitor() tracer = trace.get_tracer(__name__) with tracer.start_as_current_span("hello"): print("Hello, World!") input()
data/azure-monitor-opentelemetry-1.2.0/samples/tracing/simple.py
173
82
443,776
LOAD_CONST './mask-rcnn_r50_fpn_2x_coco.py' STORE_NAME _base_ LOAD_NAME dict LOAD_NAME dict LOAD_CONST 101 LOAD_NAME dict LOAD_CONST 'Pretrained' LOAD_CONST 'torchvision://resnet101' LOAD_CONST ('type', 'checkpoint') CALL_FUNCTION LOAD_CONST ('depth', 'init_cfg') CALL_FUNCTION LOAD_CONST ('backbone',) CALL_FUNCTION...
_base_ = "./mask-rcnn_r50_fpn_2x_coco.py" model = dict( backbone=dict( depth=101, init_cfg=dict(type="Pretrained", checkpoint="torchvision://resnet101"), ) )
data/mmdet-3.3.0/mmdet/.mim/configs/mask_rcnn/mask-rcnn_r101_fpn_2x_coco.py
107
82
151,292
LOAD_CONST './mask-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_FUNCTION...
_base_ = "./mask-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/mask_rcnn/mask-rcnn_r101_fpn_1x_coco.py
107
82
151,293
LOAD_CONST 1 LOAD_CONST ('*',) IMPORT_NAME core IMPORT_STAR LOAD_CONST 1 LOAD_CONST ('*',) IMPORT_NAME data IMPORT_STAR LOAD_CONST 1 LOAD_CONST ('*',) IMPORT_NAME fp16 IMPORT_STAR LOAD_CONST 1 LOAD_CONST ('*',) IMPORT_NAME hook IMPORT_STAR LOAD_CONST 1 LOAD_CONST ('*',) IMPORT_NAME mixup IMPORT_STAR LOAD_CONST 1 L...
from .core import * from .data import * from .fp16 import * from .hook import * from .mixup import * from .progress import * from .schedule import * from .tracker import * from .rnn import * from .training import * from .preds import * from .channelslast import *
data/fastai-2.7.14/fastai/callback/all.py
204
82
172,304
LOAD_CONST 0 LOAD_CONST ('Entity',) IMPORT_NAME office365.entity IMPORT_FROM Entity STORE_NAME Entity POP_TOP LOAD_BUILD_CLASS LOAD_CONST <code object ManagedAppRegistration at 0x7fab81f0bc00, file "f.py", line 4> LOAD_CONST 'ManagedAppRegistration' MAKE_FUNCTION LOAD_CONST 'ManagedAppRegistration' LOAD_NAME Entity CA...
from office365.entity import Entity class ManagedAppRegistration(Entity): """ The ManagedAppEntity is the base entity type for all other entity types under app management workflow. The ManagedAppRegistration resource represents the details of an app, with management capability, used by a member of the...
data/Office365-REST-Python-Client-2.5.5/office365/intune/devices/managed_app_registration.py
195
82
189,887
LOAD_CONST 0 LOAD_CONST ('Any',) IMPORT_NAME typing IMPORT_FROM Any STORE_NAME Any POP_TOP LOAD_BUILD_CLASS LOAD_CONST <code object CircuitBreakerPipelineException at 0x7faac03add20, file "f.py", line 4> LOAD_CONST 'CircuitBreakerPipelineException' MAKE_FUNCTION LOAD_CONST 'CircuitBreakerPipelineException' LOAD_NAME E...
from typing import Any class CircuitBreakerPipelineException(Exception): pass class CircuitBreakerPollException(Exception): def __init__( self, msg: str = "Polling timed out or contains a malformed log.", *args: Any ): super().__init__(msg, *args)
data/pycarlo-0.9.2/pycarlo/features/circuit_breakers/exceptions.py
376
82
360,229
LOAD_CONST './paa_r50_fpn_ms-3x_coco.py' STORE_NAME _base_ LOAD_NAME dict LOAD_NAME dict LOAD_CONST 101 LOAD_NAME dict LOAD_CONST 'Pretrained' LOAD_CONST 'torchvision://resnet101' LOAD_CONST ('type', 'checkpoint') CALL_FUNCTION LOAD_CONST ('depth', 'init_cfg') CALL_FUNCTION LOAD_CONST ('backbone',) CALL_FUNCTION ST...
_base_ = "./paa_r50_fpn_ms-3x_coco.py" model = dict( backbone=dict( depth=101, init_cfg=dict(type="Pretrained", checkpoint="torchvision://resnet101"), ) )
data/mmdet-3.3.0/mmdet/.mim/configs/paa/paa_r101_fpn_ms-3x_coco.py
107
82
151,382
LOAD_CONST './retinanet_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_FUNCTION...
_base_ = "./retinanet_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/retinanet/retinanet_r101_fpn_1x_coco.py
107
82
151,400
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/applications/inception_v3/__init__.py
161
82
164,743
LOAD_CONST './retinanet_r50_fpn_2x_coco.py' STORE_NAME _base_ LOAD_NAME dict LOAD_NAME dict LOAD_CONST 101 LOAD_NAME dict LOAD_CONST 'Pretrained' LOAD_CONST 'torchvision://resnet101' LOAD_CONST ('type', 'checkpoint') CALL_FUNCTION LOAD_CONST ('depth', 'init_cfg') CALL_FUNCTION LOAD_CONST ('backbone',) CALL_FUNCTION...
_base_ = "./retinanet_r50_fpn_2x_coco.py" model = dict( backbone=dict( depth=101, init_cfg=dict(type="Pretrained", checkpoint="torchvision://resnet101"), ) )
data/mmdet-3.3.0/mmdet/.mim/configs/retinanet/retinanet_r101_fpn_2x_coco.py
107
82
151,420
LOAD_CONST 'retinanet_r50_fpg_crop640_50e_coco.py' STORE_NAME _base_ LOAD_NAME dict LOAD_NAME dict LOAD_CONST 128 LOAD_CONST 128 LOAD_CONST ('out_channels', 'inter_channels') CALL_FUNCTION LOAD_NAME dict LOAD_CONST 128 LOAD_CONST ('in_channels',) CALL_FUNCTION LOAD_CONST ('neck', 'bbox_head') CALL_FUNCTION STORE_NAME...
_base_ = "retinanet_r50_fpg_crop640_50e_coco.py" model = dict( neck=dict(out_channels=128, inter_channels=128), bbox_head=dict(in_channels=128) )
data/mmdet-3.3.0/mmdet/.mim/configs/fpg/retinanet_r50_fpg-chn128_crop640_50e_coco.py
113
82
151,593
LOAD_CONST './fast-rcnn_r50_fpn_2x_coco.py' STORE_NAME _base_ LOAD_NAME dict LOAD_NAME dict LOAD_CONST 101 LOAD_NAME dict LOAD_CONST 'Pretrained' LOAD_CONST 'torchvision://resnet101' LOAD_CONST ('type', 'checkpoint') CALL_FUNCTION LOAD_CONST ('depth', 'init_cfg') CALL_FUNCTION LOAD_CONST ('backbone',) CALL_FUNCTION...
_base_ = "./fast-rcnn_r50_fpn_2x_coco.py" model = dict( backbone=dict( depth=101, init_cfg=dict(type="Pretrained", checkpoint="torchvision://resnet101"), ) )
data/mmdet-3.3.0/mmdet/.mim/configs/fast_rcnn/fast-rcnn_r101_fpn_2x_coco.py
107
82
151,723
LOAD_CONST 0 LOAD_CONST ('Path',) IMPORT_NAME pathlib IMPORT_FROM Path STORE_NAME Path POP_TOP LOAD_CONST 0 LOAD_CONST ('setup',) IMPORT_NAME setuptools IMPORT_FROM setup STORE_NAME setup POP_TOP LOAD_NAME Path LOAD_NAME __file__ CALL_FUNCTION LOAD_ATTR parent STORE_NAME HERE LOAD_NAME HERE LOAD_CONST 'VERSION' BINA...
from pathlib import Path from setuptools import setup HERE = Path(__file__).parent version = (HERE / "VERSION").read_text().strip() filename = (HERE / "win32ctypes" / "version.py").write_text( f'__version__ = "{version}"\n' ) setup()
data/pywin32-ctypes-0.2.2/setup.py
157
82
427,035
LOAD_CONST './fast-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_FUNCTION...
_base_ = "./fast-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/fast_rcnn/fast-rcnn_r101_fpn_1x_coco.py
107
82
151,724
LOAD_CONST 'This module contains constants representing IANA media types.' STORE_NAME __doc__ LOAD_CONST 'application/json' STORE_NAME JSON LOAD_CONST 'text/csv' STORE_NAME CSV LOAD_CONST 'application/octet-stream' STORE_NAME OCTET_STREAM LOAD_CONST '*/*' STORE_NAME ANY LOAD_CONST 'application/x-npy' STORE_NAME NP...
"""This module contains constants representing IANA media types.""" JSON = "application/json" CSV = "text/csv" OCTET_STREAM = "application/octet-stream" ANY = "*/*" NPY = "application/x-npy" UTF8_TYPES = [JSON, CSV]
data/sagemaker_training-4.7.4/src/sagemaker_training/content_types.py
111
82
127,607
LOAD_CONST 'AUTOGENERATED. DO NOT EDIT.' STORE_NAME __doc__ LOAD_CONST 0 LOAD_CONST ('get_label_names',) IMPORT_NAME tf_keras.src.datasets.reuters IMPORT_FROM get_label_names STORE_NAME get_label_names POP_TOP LOAD_CONST 0 LOAD_CONST ('get_word_index',) IMPORT_NAME tf_keras.src.datasets.reuters IMPORT_FROM get_word_i...
"""AUTOGENERATED. DO NOT EDIT.""" from tf_keras.src.datasets.reuters import get_label_names from tf_keras.src.datasets.reuters import get_word_index from tf_keras.src.datasets.reuters import load_data
data/tf_keras-nightly-2.17.0.dev2024022110/tf_keras/datasets/reuters/__init__.py
162
82
164,786
LOAD_CONST 0 LOAD_CONST None IMPORT_NAME os STORE_NAME os LOAD_CONST 0 LOAD_CONST ('Path',) IMPORT_NAME pathlib IMPORT_FROM Path STORE_NAME Path POP_TOP LOAD_CONST 0 LOAD_CONST None IMPORT_NAME jpype STORE_NAME jpype LOAD_NAME getattr LOAD_NAME os LOAD_CONST 'fspath' LOAD_NAME str CALL_FUNCTION STORE_NAME fspath LO...
import os from pathlib import Path import jpype fspath = getattr(os, "fspath", str) jar_path = Path(jpype.__file__).parent.parent.joinpath("org.jpype.jar") datas = [[fspath(jar_path), "."]]
data/JPype1-1.5.0/jpype/_pyinstaller/hook-jpype.py
152
82
360,284
LOAD_CONST 0 LOAD_CONST ('AutoOrBoolean',) IMPORT_NAME jaxopt._src.base IMPORT_FROM AutoOrBoolean STORE_NAME AutoOrBoolean POP_TOP LOAD_CONST 0 LOAD_CONST ('IterativeSolver',) IMPORT_NAME jaxopt._src.base IMPORT_FROM IterativeSolver STORE_NAME IterativeSolver POP_TOP LOAD_CONST 0 LOAD_CONST ('LinearOperator',) IMPORT...
from jaxopt._src.base import AutoOrBoolean from jaxopt._src.base import IterativeSolver from jaxopt._src.base import LinearOperator from jaxopt._src.base import OptStep from jaxopt._src.base import StochasticSolver from jaxopt._src.base import KKTSolution
data/jaxopt-0.8.3/jaxopt/base.py
217
82
252,425
LOAD_CONST 0 LOAD_CONST ('greenlet',) IMPORT_NAME py.magic IMPORT_FROM greenlet STORE_NAME greenlet POP_TOP LOAD_CONST 0 LOAD_CONST None IMPORT_NAME sys STORE_NAME sys LOAD_CONST 0 LOAD_CONST None IMPORT_NAME types STORE_NAME types LOAD_CONST <code object emulate at 0x7faab8381c00, file "f.py", line 7> LOAD_CONST 'e...
from py.magic import greenlet import sys import types def emulate(): module = types.ModuleType("greenlet") sys.modules["greenlet"] = module module.greenlet = greenlet module.getcurrent = greenlet.getcurrent module.GreenletExit = greenlet.GreenletExit
data/eventlet-0.35.1/eventlet/support/pylib.py
193
82
361,974
LOAD_CONST 0 LOAD_CONST ('datetime',) IMPORT_NAME datetime IMPORT_FROM datetime STORE_NAME datetime POP_TOP LOAD_CONST 0 LOAD_CONST ('PlainSerializer',) IMPORT_NAME pydantic IMPORT_FROM PlainSerializer STORE_NAME PlainSerializer POP_TOP LOAD_CONST 0 LOAD_CONST ('Annotated',) IMPORT_NAME typing_extensions IMPORT_FROM ...
from datetime import datetime from pydantic import PlainSerializer from typing_extensions import Annotated DateTime = Annotated[ datetime, PlainSerializer( func=lambda dt: int(dt.timestamp()), return_type=int, when_used="json-unless-none", ), ]
data/aiogram-3.4.1/aiogram/types/custom.py
200
82
53,827
LOAD_CONST '\nApi URLs.\n' STORE_NAME __doc__ LOAD_CONST 0 LOAD_CONST ('include',) IMPORT_NAME django.conf.urls IMPORT_FROM include STORE_NAME include POP_TOP LOAD_CONST 0 LOAD_CONST ('path',) IMPORT_NAME django.urls IMPORT_FROM path STORE_NAME path POP_TOP LOAD_CONST 'completion' STORE_NAME app_name LOAD_NAME path...
""" Api URLs. """ from django.conf.urls import include from django.urls import path app_name = "completion" # pylint: disable=invalid-name urlpatterns = [ path("v1/", include("completion.api.v1.urls")), ]
data/edx-completion-4.4.0/completion/api/urls.py
125
82
421,612
LOAD_CONST 0 LOAD_CONST ('annotations',) IMPORT_NAME __future__ IMPORT_FROM annotations STORE_NAME annotations POP_TOP LOAD_CONST 1 LOAD_CONST ('TelegramObject',) IMPORT_NAME base IMPORT_FROM TelegramObject STORE_NAME TelegramObject POP_TOP LOAD_BUILD_CLASS LOAD_CONST <code object VideoChatStarted at 0x7fa6ef8196f0, ...
from __future__ import annotations from .base import TelegramObject class VideoChatStarted(TelegramObject): """ This object represents a service message about a video chat started in the chat. Currently holds no information. Source: https://core.telegram.org/bots/api#videochatstarted """
data/aiogram-3.4.1/aiogram/types/video_chat_started.py
213
82
53,853
LOAD_CONST "'lit' Testing Tool" STORE_NAME __doc__ LOAD_CONST 'Daniel Dunbar' STORE_NAME __author__ LOAD_CONST 'daniel@minormatter.com' STORE_NAME __email__ LOAD_CONST (17, 0, 6) STORE_NAME __versioninfo__ LOAD_CONST '.' LOAD_METHOD join LOAD_CONST <code object <genexpr> at 0x7fab8223f540, file "f.py", line 6> LOAD...
"""'lit' Testing Tool""" __author__ = "Daniel Dunbar" __email__ = "daniel@minormatter.com" __versioninfo__ = (17, 0, 6) __version__ = ".".join(str(v) for v in __versioninfo__) __all__ = []
data/lit-17.0.6/lit/__init__.py
182
82
299,400
LOAD_CONST 1 LOAD_CONST ('download_model', 'download_models', 'resolve_downloaded_model_path') IMPORT_NAME model_downloader IMPORT_FROM download_model STORE_NAME download_model IMPORT_FROM download_models STORE_NAME download_models IMPORT_FROM resolve_downloaded_model_path STORE_NAME resolve_downloaded_model_path POP_T...
from .model_downloader import ( download_model, download_models, resolve_downloaded_model_path, ) from .model_loader import load_model, unload_model from .models_db import get_model_info_from_db, get_models_db from .scan_models import scan_model
data/sdkit-2.0.15/sdkit/models/__init__.py
224
82
211,689
LOAD_CONST 'The klio developers' STORE_NAME __author__ LOAD_CONST '0.1.0' STORE_NAME __version__ LOAD_CONST 'opensource+klio@spotify.com' STORE_NAME __email__ LOAD_CONST 'Library for audio-related Klio transforms and helpers' STORE_NAME __description__ LOAD_CONST 'https://github.com/spotify/klio' STORE_NAME __uri__...
__author__ = "The klio developers" __version__ = "0.1.0" __email__ = "opensource+klio@spotify.com" __description__ = "Library for audio-related Klio transforms and helpers" __uri__ = "https://github.com/spotify/klio"
data/klio-audio-0.1.0/src/klio_audio/__init__.py
100
82
152,433
LOAD_CONST 0 LOAD_CONST ('setup',) IMPORT_NAME distutils.core IMPORT_FROM setup STORE_NAME setup POP_TOP LOAD_CONST 0 LOAD_CONST None IMPORT_NAME snip_basic_verify2 STORE_NAME snip_basic_verify2 LOAD_NAME setup LOAD_CONST 'snip_basic_verify2' BUILD_LIST LOAD_CONST 'snip_basic_verify2' LOAD_NAME snip_basic_verify2 ...
from distutils.core import setup import snip_basic_verify2 setup( packages=["snip_basic_verify2"], ext_package="snip_basic_verify2", ext_modules=[snip_basic_verify2.ffi.verifier.get_extension()], )
data/cffi-1.16.0/testing/cffi0/snippets/distutils_package_2/setup.py
136
82
54,125
LOAD_CONST 0 LOAD_CONST ('admin',) IMPORT_NAME django.contrib IMPORT_FROM admin STORE_NAME admin POP_TOP LOAD_CONST 1 LOAD_CONST ('Article',) IMPORT_NAME models IMPORT_FROM Article STORE_NAME Article POP_TOP LOAD_BUILD_CLASS LOAD_CONST <code object ArticleAdmin at 0x7fab8231bf60, file "f.py", line 5> LOAD_CONST 'Arti...
from django.contrib import admin from .models import Article class ArticleAdmin(admin.ModelAdmin): list_display = ("title", "slug", "created_at") list_filter = ("created_at",) search_fields = ("title",) admin.site.register(Article, ArticleAdmin)
data/django-guardian-2.4.0/example_project/articles/admin.py
212
82
127,553
LOAD_CONST 0 LOAD_CONST ('TelegramObject',) IMPORT_NAME aiogram.types IMPORT_FROM TelegramObject STORE_NAME TelegramObject POP_TOP LOAD_BUILD_CLASS LOAD_CONST <code object GeneralForumTopicUnhidden at 0x7fa6f0f65390, file "f.py", line 4> LOAD_CONST 'GeneralForumTopicUnhidden' MAKE_FUNCTION LOAD_CONST 'GeneralForumTopi...
from aiogram.types import TelegramObject class GeneralForumTopicUnhidden(TelegramObject): """ This object represents a service message about General forum topic unhidden in the chat. Currently holds no information. Source: https://core.telegram.org/bots/api#generalforumtopicunhidden """
data/aiogram-3.4.1/aiogram/types/general_forum_topic_unhidden.py
209
82
53,965
LOAD_CONST 0 LOAD_CONST None IMPORT_NAME AppKit STORE_NAME AppKit LOAD_CONST 0 LOAD_CONST ('TestCase',) IMPORT_NAME PyObjCTools.TestSupport IMPORT_FROM TestCase STORE_NAME TestCase POP_TOP LOAD_BUILD_CLASS LOAD_CONST <code object TestNSForm at 0x7fab81fc44b0, file "f.py", line 5> LOAD_CONST 'TestNSForm' MAKE_FUNCTION...
import AppKit from PyObjCTools.TestSupport import TestCase class TestNSForm(TestCase): def testMethods(self): self.assertArgIsBOOL(AppKit.NSForm.setBordered_, 0) self.assertArgIsBOOL(AppKit.NSForm.setBezeled_, 0)
data/pyobjc-framework-Cocoa-10.1/PyObjCTest/test_nsform.py
263
82
64,505
LOAD_CONST '\nThe implementation here is modified based on insightface, originally MIT license and publicly available at\nhttps://github.com/deepinsight/insightface/tree/master/detection/scrfd/mmdet/models/dense_heads\n' STORE_NAME __doc__ LOAD_CONST 1 LOAD_CONST ('SCRFDHead',) IMPORT_NAME scrfd_head IMPORT_FROM SCRFD...
""" The implementation here is modified based on insightface, originally MIT license and publicly available at https://github.com/deepinsight/insightface/tree/master/detection/scrfd/mmdet/models/dense_heads """ from .scrfd_head import SCRFDHead __all__ = ["SCRFDHead"]
data/modelscope-1.12.0/modelscope/models/cv/face_detection/scrfd/mmdet_patch/models/dense_heads/__init__.py
118
82
314,858
LOAD_CONST '\n**Beartype plugin API.**\n\nThis submodule publishes a medley of attributes enabling users to extend\n:mod:`beartype` with user-defined runtime behaviours.\n' STORE_NAME __doc__ LOAD_CONST 0 LOAD_CONST ('BeartypeHintable',) IMPORT_NAME beartype.plug._plughintable IMPORT_FROM BeartypeHintable STORE_NAME B...
""" **Beartype plugin API.** This submodule publishes a medley of attributes enabling users to extend :mod:`beartype` with user-defined runtime behaviours. """ from beartype.plug._plughintable import ( BeartypeHintable as BeartypeHintable, )
data/beartype-0.17.2/beartype/plug/__init__.py
108
82
373,093
LOAD_CONST 0 LOAD_CONST None IMPORT_NAME pytest STORE_NAME pytest LOAD_CONST 0 LOAD_CONST None IMPORT_NAME salt.modules.test IMPORT_FROM modules ROT_TWO POP_TOP IMPORT_FROM test STORE_NAME test POP_TOP LOAD_CONST <code object test_raise_exception at 0x7faad43f1300, file "f.py", line 6> LOAD_CONST 'test_raise_exceptio...
import pytest import salt.modules.test as test def test_raise_exception(): """ Add test raising an exception in test module. """ msg = "message" with pytest.raises(Exception) as err: test.exception(message=msg) assert err.match(msg)
data/salt-3006.6/tests/pytests/functional/modules/test_test.py
192
82
95,818
LOAD_CONST 0 LOAD_CONST ('RpcRequest',) IMPORT_NAME aliyunsdkcore.request IMPORT_FROM RpcRequest STORE_NAME RpcRequest POP_TOP LOAD_BUILD_CLASS LOAD_CONST <code object OpenCmsServiceRequest at 0x7fab415056f0, file "f.py", line 4> LOAD_CONST 'OpenCmsServiceRequest' MAKE_FUNCTION LOAD_CONST 'OpenCmsServiceRequest' LOAD_...
from aliyunsdkcore.request import RpcRequest class OpenCmsServiceRequest(RpcRequest): def __init__(self): RpcRequest.__init__(self, "Cms", "2019-01-01", "OpenCmsService", "cms") self.set_method("POST")
data/aliyun-python-sdk-cms-7.0.33/aliyunsdkcms/request/v20190101/OpenCmsServiceRequest.py
270
82
373,569
LOAD_CONST 'Constants for the Times of the Day integration.' STORE_NAME __doc__ LOAD_CONST 'tod' STORE_NAME DOMAIN LOAD_CONST 'after_time' STORE_NAME CONF_AFTER_TIME LOAD_CONST 'after_offset' STORE_NAME CONF_AFTER_OFFSET LOAD_CONST 'before_time' STORE_NAME CONF_BEFORE_TIME LOAD_CONST 'before_offset' STORE_NAME CON...
"""Constants for the Times of the Day integration.""" DOMAIN = "tod" CONF_AFTER_TIME = "after_time" CONF_AFTER_OFFSET = "after_offset" CONF_BEFORE_TIME = "before_time" CONF_BEFORE_OFFSET = "before_offset"
data/homeassistant-2024.2.2/homeassistant/components/tod/const.py
105
82
297,739
LOAD_CONST 0 LOAD_CONST ('absolute_import',) IMPORT_NAME __future__ IMPORT_FROM absolute_import STORE_NAME absolute_import POP_TOP LOAD_CONST 1 LOAD_CONST ('RequestID', 'current_request_id') IMPORT_NAME request_id IMPORT_FROM RequestID STORE_NAME RequestID IMPORT_FROM current_request_id STORE_NAME current_request_id P...
from __future__ import absolute_import from .request_id import RequestID, current_request_id from .filters import RequestIDLogFilter from . import parser __version__ = "0.10.1" __all__ = ["RequestID", "current_request_id", "RequestIDLogFilter", "parser"]
data/Flask-Log-Request-ID-0.10.1/flask_log_request_id/__init__.py
186
82
76,587
LOAD_CONST 0 LOAD_CONST None IMPORT_NAME socket STORE_NAME socket LOAD_CONST 0 LOAD_CONST ('cast',) IMPORT_NAME typing IMPORT_FROM cast STORE_NAME cast POP_TOP LOAD_NAME int LOAD_CONST ('return',) BUILD_CONST_KEY_MAP LOAD_CONST <code object find_port at 0x7fab8231ba50, file "f.py", line 5> LOAD_CONST 'find_port' MAKE...
import socket from typing import cast def find_port() -> int: """Return an unbound port""" with socket.socket() as s: s.bind(("127.0.0.1", 0)) port = s.getsockname()[1] return cast(int, port)
data/avro-1.11.3/avro/tether/util.py
189
82
127,774
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/applications/inception_v3/__init__.py
161
82
353,593
LOAD_CONST 0 LOAD_CONST ('*',) IMPORT_NAME azure.cli.core.aaz IMPORT_STAR LOAD_NAME register_command_group LOAD_CONST 'monitor log-analytics workspace saved-search' CALL_FUNCTION LOAD_BUILD_CLASS LOAD_CONST <code object __CMDGroup at 0x7fab416c6420, file "f.py", line 4> LOAD_CONST '__CMDGroup' MAKE_FUNCTION LOAD_CONS...
from azure.cli.core.aaz import * @register_command_group( "monitor log-analytics workspace saved-search", ) class __CMDGroup(AAZCommandGroup): """Manage saved search for log analytics workspace.""" pass __all__ = ["__CMDGroup"]
data/azure-cli-2.57.0/azure/cli/command_modules/monitor/aaz/latest/monitor/log_analytics/workspace/saved_search/__cmd_group.py
192
82
374,982
LOAD_CONST 0 LOAD_CONST ('Column',) IMPORT_NAME sqlalchemy IMPORT_FROM Column STORE_NAME Column POP_TOP LOAD_CONST 0 LOAD_CONST ('Integer',) IMPORT_NAME sqlalchemy IMPORT_FROM Integer STORE_NAME Integer POP_TOP LOAD_CONST 1 LOAD_CONST ('Base',) IMPORT_NAME base IMPORT_FROM Base STORE_NAME Base POP_TOP LOAD_BUILD_CLA...
from sqlalchemy import Column from sqlalchemy import Integer from .base import Base class One(Base): __tablename__ = "one" id = Column(Integer, primary_key=True) o1 = One(id=5) One.id.in_([1, 2])
data/SQLAlchemy-2.0.27/test/ext/mypy/incremental/ticket_6147/one.py
239
82
362,502
LOAD_CONST 0 LOAD_CONST ('*',) IMPORT_NAME azure.cli.core.aaz IMPORT_STAR LOAD_NAME register_command_group LOAD_CONST 'eventhubs georecovery-alias' CALL_FUNCTION LOAD_BUILD_CLASS LOAD_CONST <code object __CMDGroup at 0x7fab8204ac90, file "f.py", line 4> LOAD_CONST '__CMDGroup' MAKE_FUNCTION LOAD_CONST '__CMDGroup' L...
from azure.cli.core.aaz import * @register_command_group( "eventhubs georecovery-alias", ) class __CMDGroup(AAZCommandGroup): """Manage Azure EventHubs Geo Recovery configuration Alias""" pass __all__ = ["__CMDGroup"]
data/azure-cli-2.57.0/azure/cli/command_modules/eventhubs/aaz/latest/eventhubs/georecovery_alias/__cmd_group.py
191
82
374,825
LOAD_CONST 0 LOAD_CONST ('*',) IMPORT_NAME azure.cli.core.aaz IMPORT_STAR LOAD_NAME register_command_group LOAD_CONST 'eventhubs namespace private-link-resource' CALL_FUNCTION LOAD_BUILD_CLASS LOAD_CONST <code object __CMDGroup at 0x7faa53250ed0, file "f.py", line 4> LOAD_CONST '__CMDGroup' MAKE_FUNCTION LOAD_CONST '...
from azure.cli.core.aaz import * @register_command_group( "eventhubs namespace private-link-resource", ) class __CMDGroup(AAZCommandGroup): """Manage eventhubs namespace private link resources .""" pass __all__ = ["__CMDGroup"]
data/azure-cli-2.57.0/azure/cli/command_modules/eventhubs/aaz/latest/eventhubs/namespace/private_link_resource/__cmd_group.py
191
82
374,804
LOAD_CONST 0 LOAD_CONST ('*',) IMPORT_NAME azure.cli.core.aaz IMPORT_STAR LOAD_NAME register_command_group LOAD_CONST 'eventhubs namespace private-endpoint-connection' CALL_FUNCTION LOAD_BUILD_CLASS LOAD_CONST <code object __CMDGroup at 0x7fab700550c0, file "f.py", line 4> LOAD_CONST '__CMDGroup' MAKE_FUNCTION LOAD_C...
from azure.cli.core.aaz import * @register_command_group( "eventhubs namespace private-endpoint-connection", ) class __CMDGroup(AAZCommandGroup): """Manage eventhubs namespace private endpoint connection.""" pass __all__ = ["__CMDGroup"]
data/azure-cli-2.57.0/azure/cli/command_modules/eventhubs/aaz/latest/eventhubs/namespace/private_endpoint_connection/__cmd_group.py
192
82
374,793
LOAD_CONST 0 LOAD_CONST ('admin',) IMPORT_NAME django.contrib IMPORT_FROM admin STORE_NAME admin POP_TOP LOAD_CONST 0 LOAD_CONST ('ModelAdmin',) IMPORT_NAME django.contrib.admin IMPORT_FROM ModelAdmin STORE_NAME ModelAdmin POP_TOP LOAD_CONST 0 LOAD_CONST ('Article', 'Section') IMPORT_NAME cms.test_utils.project.plugi...
from django.contrib import admin from django.contrib.admin import ModelAdmin from cms.test_utils.project.pluginapp.plugins.manytomany_rel.models import ( Article, Section, ) admin.site.register(Section, ModelAdmin) admin.site.register(Article, ModelAdmin)
data/django-cms-4.1.0/cms/test_utils/project/pluginapp/plugins/manytomany_rel/admin.py
152
82
87,014
LOAD_CONST '\nVersion information for workflow package.\n\nThis file is imported by ``workflow.__init__``, and parsed by\n``setup.py`` as well as ``docs/conf.py``.\n' STORE_NAME __doc__ LOAD_CONST 0 LOAD_CONST None IMPORT_NAME autosemver STORE_NAME autosemver LOAD_NAME autosemver LOAD_ATTR packaging LOAD_ATTR get_cur...
""" Version information for workflow package. This file is imported by ``workflow.__init__``, and parsed by ``setup.py`` as well as ``docs/conf.py``. """ import autosemver __version__ = autosemver.packaging.get_current_version(project_name="workflow")
data/workflow-2.1.6/workflow/version.py
117
82
302,227
LOAD_CONST 0 LOAD_CONST ('ClientValue',) IMPORT_NAME office365.runtime.client_value IMPORT_FROM ClientValue STORE_NAME ClientValue POP_TOP LOAD_BUILD_CLASS LOAD_CONST <code object RenderListDataOverrideParameters at 0x7fab8210f0c0, file "f.py", line 4> LOAD_CONST 'RenderListDataOverrideParameters' MAKE_FUNCTION LOAD_C...
from office365.runtime.client_value import ClientValue class RenderListDataOverrideParameters(ClientValue): def __init__(self): super(RenderListDataOverrideParameters, self).__init__() @property def entity_type_name(self): return "SP.RenderListDataOverrideParameters"
data/Office365-REST-Python-Client-2.5.5/office365/sharepoint/lists/render_override_parameters.py
325
82
189,670
LOAD_CONST 0 LOAD_CONST None IMPORT_NAME pytest STORE_NAME pytest LOAD_CONST 0 LOAD_CONST ('unique',) IMPORT_NAME pytest_recording.utils IMPORT_FROM unique STORE_NAME unique POP_TOP LOAD_NAME pytest LOAD_ATTR mark LOAD_METHOD parametrize LOAD_CONST 'sequence, expected' BUILD_LIST BUILD_LIST BUILD_TUPLE LOAD_CONST 1 L...
import pytest from pytest_recording.utils import unique @pytest.mark.parametrize("sequence, expected", (([], []), ([1, 1, 3, 5], [1, 3, 5]))) def test_unique(sequence, expected): assert list(unique(sequence)) == expected
data/pytest_recording-0.13.1/tests/test_utils.py
196
82
104,745
LOAD_CONST <code object __new__ at 0x7fab4106c660, file "f.py", line 1> LOAD_CONST '__new__' MAKE_FUNCTION STORE_NAME __new__ LOAD_NAME dict LOAD_CONST <code object <listcomp> at 0x7fab4106c270, file "f.py", line 10> LOAD_CONST '<listcomp>' MAKE_FUNCTION LOAD_NAME __file__ GET_ITER CALL_FUNCTION CALL_FUNCTION STORE_NA...
def __new__(cls, value, bases, namespace): { name for name, value in namespace.items() if getattr(value, "__isabstractmethod__", False) } return _b32rev = dict([(v[0], k) for k, v in __file__])
data/xdis-6.0.5/test/simple_source/bug30/01_comprehension.py
294
82
85,363
LOAD_CONST 0 LOAD_CONST None IMPORT_NAME pytest STORE_NAME pytest LOAD_CONST 0 LOAD_CONST ('DvcException',) IMPORT_NAME dvc.exceptions IMPORT_FROM DvcException STORE_NAME DvcException POP_TOP LOAD_CONST 0 LOAD_CONST ('resolve_rev',) IMPORT_NAME dvc.scm IMPORT_FROM resolve_rev STORE_NAME resolve_rev POP_TOP LOAD_CONS...
import pytest from dvc.exceptions import DvcException from dvc.scm import resolve_rev def test_resolve_rev_empty_git_repo(scm): with pytest.raises(DvcException, match="unknown Git revision 'HEAD'"): resolve_rev(scm, "HEAD")
data/dvc-3.47.0/tests/unit/test_scm.py
230
82
317,669
LOAD_CONST 0 LOAD_CONST None IMPORT_NAME google.auth.credentials STORE_NAME google LOAD_CONST 0 LOAD_CONST None IMPORT_NAME pytest STORE_NAME pytest LOAD_NAME pytest LOAD_ATTR fixture LOAD_CONST <code object creds at 0x7faa5e13df60, file "f.py", line 5> LOAD_CONST 'creds' MAKE_FUNCTION CALL_FUNCTION STORE_NAME creds ...
import google.auth.credentials import pytest @pytest.fixture def creds(): """ Provide test creds to unit tests so that they can run without GOOGLE_APPLICATION_CREDENTIALS set. """ yield google.auth.credentials.AnonymousCredentials()
data/google-cloud-pubsub-2.19.4/tests/unit/pubsub_v1/conftest.py
121
82
374,505
LOAD_CONST 0 LOAD_CONST ('Configuration',) IMPORT_NAME aws_embedded_metrics.config.configuration IMPORT_FROM Configuration STORE_NAME Configuration POP_TOP LOAD_CONST 0 LOAD_CONST ('EnvironmentConfigurationProvider',) IMPORT_NAME aws_embedded_metrics.config.environment_configuration_provider IMPORT_FROM EnvironmentCon...
from aws_embedded_metrics.config.configuration import Configuration from aws_embedded_metrics.config.environment_configuration_provider import ( EnvironmentConfigurationProvider, ) config = EnvironmentConfigurationProvider().get_configuration() def get_config() -> Configuration: """Gets the current configura...
data/aws-embedded-metrics-3.2.0/aws_embedded_metrics/config/__init__.py
164
82
367,107
LOAD_CONST 0 LOAD_CONST ('absolute_import', 'division', 'print_function') IMPORT_NAME __future__ IMPORT_FROM absolute_import STORE_NAME absolute_import IMPORT_FROM division STORE_NAME division IMPORT_FROM print_function STORE_NAME print_function POP_TOP LOAD_NAME type STORE_NAME __metaclass__ LOAD_CONST 0 LOAD_CONST ...
from __future__ import absolute_import, division, print_function __metaclass__ = type from ansible.plugins.lookup import LookupBase class LookupModule(LookupBase): def run(self, terms, variables, **kwargs): return ["subdir_lookup_from_user_dir"]
data/ansible-core-2.16.3/test/integration/targets/collections/collection_root_user/ansible_collections/testns/testcoll/plugins/lookup/lookup_subdir/my_subdir_lookup.py
264
82
437,304
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/_v1/keras/applications/inception_v3/__init__.py
161
82
354,045
LOAD_CONST '\nraven.contrib.django.templatetags\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\n:copyright: (c) 2010-2013 by the Sentry Team, see AUTHORS for more details.\n:license: BSD, see LICENSE for more details.\n' STORE_NAME __doc__ LOAD_CONST 0 LOAD_CONST ('absolute_import',) IMPORT_NAME __future__ IMPORT_FROM absolute_...
""" raven.contrib.django.templatetags ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ :copyright: (c) 2010-2013 by the Sentry Team, see AUTHORS for more details. :license: BSD, see LICENSE for more details. """ from __future__ import absolute_import
data/raven-6.10.0/raven/contrib/django/templatetags/__init__.py
116
82
373,951
LOAD_CONST 'AUTOGENERATED. DO NOT EDIT.' STORE_NAME __doc__ LOAD_CONST 0 LOAD_CONST ('get_label_names',) IMPORT_NAME tf_keras.src.datasets.reuters IMPORT_FROM get_label_names STORE_NAME get_label_names POP_TOP LOAD_CONST 0 LOAD_CONST ('get_word_index',) IMPORT_NAME tf_keras.src.datasets.reuters IMPORT_FROM get_word_i...
"""AUTOGENERATED. DO NOT EDIT.""" from tf_keras.src.datasets.reuters import get_label_names from tf_keras.src.datasets.reuters import get_word_index from tf_keras.src.datasets.reuters import load_data
data/tf_keras-2.15.0/tf_keras/datasets/reuters/__init__.py
162
82
353,636
LOAD_CONST 0 LOAD_CONST ('Path',) IMPORT_NAME pathlib IMPORT_FROM Path STORE_NAME Path POP_TOP 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 click STORE_NAME click LOAD_BUILD_CLASS LOAD_CONST <code object RealPath at 0x7f8af1683540...
from pathlib import Path from typing import Any import click class RealPath(click.Path): """ A click.Path which uses real Path objects """ def __init__(self, *args: Any, **kwargs: Any): super().__init__(*args, path_type=Path, **kwargs)
data/ggshield-1.24.0/ggshield/utils/click/real_path.py
302
82
400,993
LOAD_CONST 0 LOAD_CONST None IMPORT_NAME os STORE_NAME os LOAD_CONST 1 LOAD_CONST ('get_storage_path',) IMPORT_NAME local_storage_path IMPORT_FROM get_storage_path STORE_NAME get_storage_path POP_TOP LOAD_CONST <code object get_conversations at 0x7f8e2fcbfa50, file "f.py", line 6> LOAD_CONST 'get_conversations' MAKE_...
import os from .local_storage_path import get_storage_path def get_conversations(): conversations_dir = get_storage_path("conversations") json_files = [f for f in os.listdir(conversations_dir) if f.endswith(".json")] return json_files
data/open_interpreter-0.2.0/interpreter/terminal_interface/utils/get_conversations.py
261
82
10,154
LOAD_CONST 0 LOAD_CONST ('annotations',) IMPORT_NAME __future__ IMPORT_FROM annotations STORE_NAME annotations POP_TOP LOAD_CONST <code object do_nothing at 0x7fab54336810, file "f.py", line 4> LOAD_CONST 'do_nothing' MAKE_FUNCTION STORE_NAME do_nothing LOAD_BUILD_CLASS LOAD_CONST <code object FilterModule at 0x7faab...
from __future__ import annotations def do_nothing(myval): return myval class FilterModule(object): """Ansible core jinja2 filters""" def filters(self): return { "filter1": do_nothing, "filter3": do_nothing, }
data/ansible-core-2.16.3/test/integration/targets/plugin_loader/file_collision/roles/r1/filter_plugins/custom.py
266
82
437,271
LOAD_CONST 0 LOAD_CONST ('*',) IMPORT_NAME azure.cli.core.aaz IMPORT_STAR LOAD_NAME register_command_group LOAD_CONST 'network application-gateway url-path-map' CALL_FUNCTION LOAD_BUILD_CLASS LOAD_CONST <code object __CMDGroup at 0x7fab54036540, file "f.py", line 4> LOAD_CONST '__CMDGroup' MAKE_FUNCTION LOAD_CONST '_...
from azure.cli.core.aaz import * @register_command_group( "network application-gateway url-path-map", ) class __CMDGroup(AAZCommandGroup): """Manage URL path maps of an application gateway.""" pass __all__ = ["__CMDGroup"]
data/azure-cli-2.57.0/azure/cli/command_modules/network/aaz/latest/network/application_gateway/url_path_map/__cmd_group.py
192
82
378,572
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/tfds-nightly-4.9.4.dev202402210044/tensorflow_datasets/text/blimp.py
125
82
211,084
LOAD_CONST 'Alex Rogozhnikov' STORE_NAME __author__ LOAD_CONST 2 LOAD_CONST ('Rearrange', 'Reduce', 'EinMix') IMPORT_NAME layers.tensorflow IMPORT_FROM Rearrange STORE_NAME Rearrange IMPORT_FROM Reduce STORE_NAME Reduce IMPORT_FROM EinMix STORE_NAME EinMix POP_TOP LOAD_NAME Rearrange LOAD_ATTR __name__ LOAD_NAME Rear...
__author__ = "Alex Rogozhnikov" from ..layers.tensorflow import Rearrange, Reduce, EinMix keras_custom_objects = { Rearrange.__name__: Rearrange, Reduce.__name__: Reduce, EinMix.__name__: EinMix, }
data/einops-0.7.0/einops/layers/keras.py
133
82
214,190
LOAD_CONST 0 LOAD_CONST ('absolute_import', 'division', 'print_function') IMPORT_NAME __future__ IMPORT_FROM absolute_import STORE_NAME absolute_import IMPORT_FROM division STORE_NAME division IMPORT_FROM print_function STORE_NAME print_function POP_TOP LOAD_NAME type STORE_NAME __metaclass__ LOAD_CONST 0 LOAD_CONST ...
from __future__ import absolute_import, division, print_function __metaclass__ = type from ansible.plugins.lookup import LookupBase class LookupModule(LookupBase): def run(self, terms, variables, **kwargs): return ["mylookup2_from_user_dir"]
data/ansible-core-2.16.3/test/integration/targets/collections/collection_root_user/ansible_collections/testns/testcoll/plugins/lookup/mylookup2.py
263
82
437,302
LOAD_CONST 0 LOAD_CONST None IMPORT_NAME logging STORE_NAME logging LOAD_NAME logging LOAD_METHOD getLogger LOAD_NAME __name__ CALL_METHOD STORE_NAME log LOAD_CONST <code object __virtual__ at 0x7faac02bea50, file "f.py", line 6> LOAD_CONST '__virtual__' MAKE_FUNCTION STORE_NAME __virtual__ LOAD_CONST <code object t...
import logging log = logging.getLogger(__name__) def __virtual__(): log.info("master tops test loaded") return "master_tops_test" def top(**kwargs): log.info("master_tops_test") return {"base": ["master_tops_test"]}
data/salt-3006.6/tests/integration/files/extension_modules/tops/master_tops_test.py
200
82
95,393
SETUP_ANNOTATIONS LOAD_CONST 0 LOAD_CONST ('Any',) IMPORT_NAME typing IMPORT_FROM Any STORE_NAME Any POP_TOP LOAD_CONST 0 LOAD_CONST ('Type',) IMPORT_NAME typing IMPORT_FROM Type STORE_NAME Type POP_TOP LOAD_CONST 0 LOAD_CONST ('ColumnElement',) IMPORT_NAME sqlalchemy.sql.elements IMPORT_FROM ColumnElement STORE_NAME...
from typing import Any from typing import Type from sqlalchemy.sql.elements import ColumnElement from sqlalchemy.sql.type_api import TypeEngine col: ColumnElement[Any] type_: Type[TypeEngine[Any]] obj: TypeEngine[Any] col.cast(type_) col.cast(obj)
data/SQLAlchemy-2.0.27/test/ext/mypy/plugin_files/issue_9156.py
220
82
362,445
LOAD_CONST 0 LOAD_CONST None IMPORT_NAME unittest STORE_NAME unittest LOAD_CONST 0 LOAD_CONST ('wtc',) IMPORT_NAME unittests IMPORT_FROM wtc STORE_NAME wtc POP_TOP LOAD_CONST 0 LOAD_CONST None IMPORT_NAME wx STORE_NAME wx LOAD_BUILD_CLASS LOAD_CONST <code object debug_Tests at 0x7fab82131a50, file "f.py", line 6> LO...
import unittest from unittests import wtc import wx class debug_Tests(wtc.WidgetTestCase): def test_debug1(self): wx.Abort wx.Trap wx.DisableAsserts if __name__ == "__main__": unittest.main()
data/wxPython-4.2.1/unittests/test_debug.py
285
82
301,955
LOAD_CONST '\n test\n ~~~~\n Flask-CORS is a simple extension to Flask allowing you to support cross\n origin resource sharing (CORS) using a simple decorator.\n\n :copyright: (c) 2016 by Cory Dolphin.\n :license: MIT, see LICENSE for more details.\n' STORE_NAME __doc__ LOAD_CONST None RETURN_VALUE
""" test ~~~~ Flask-CORS is a simple extension to Flask allowing you to support cross origin resource sharing (CORS) using a simple decorator. :copyright: (c) 2016 by Cory Dolphin. :license: MIT, see LICENSE for more details. """
data/Flask-Cors-4.0.0/tests/__init__.py
91
82
374,206
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 0x7fab54036150, 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_2020_09_01_hybrid/network/vnet_gateway/root_cert/__cmd_group.py
192
82
378,796
LOAD_CONST 0 LOAD_CONST ('path', 'include') IMPORT_NAME django.urls IMPORT_FROM path STORE_NAME path IMPORT_FROM include STORE_NAME include POP_TOP LOAD_CONST 0 LOAD_CONST ('admin',) IMPORT_NAME django.contrib IMPORT_FROM admin STORE_NAME admin POP_TOP LOAD_CONST 0 LOAD_CONST ('router',) IMPORT_NAME tests.drf IMPORT_...
from django.urls import path, include from django.contrib import admin from tests.drf import router admin.autodiscover() admin.site.enable_nav_sidebar = False urlpatterns = [path("admin/", admin.site.urls), path("api/", include(router.urls))]
data/django-ordered-model-3.7.4/tests/urls.py
171
82
304,981
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-1.1.2/suds/version.py
99
82
17,785
LOAD_CONST 0 LOAD_CONST ('BaseCommand',) IMPORT_NAME django.core.management.base IMPORT_FROM BaseCommand STORE_NAME BaseCommand POP_TOP LOAD_CONST 3 LOAD_CONST ('clear_expired',) IMPORT_NAME models IMPORT_FROM clear_expired STORE_NAME clear_expired POP_TOP LOAD_BUILD_CLASS LOAD_CONST <code object Command at 0x7fab543...
from django.core.management.base import BaseCommand from ...models import clear_expired class Command(BaseCommand): # pragma: no cover help = "Can be run as a cronjob or directly to clean out expired tokens" def handle(self, *args, **options): clear_expired()
data/django-oauth-toolkit-2.3.0/oauth2_provider/management/commands/cleartokens.py
234
82
145,744
LOAD_CONST 0 LOAD_CONST ('AppConfig',) IMPORT_NAME django.apps IMPORT_FROM AppConfig STORE_NAME AppConfig POP_TOP LOAD_CONST 0 LOAD_CONST ('base',) IMPORT_NAME django_jinja IMPORT_FROM base STORE_NAME base POP_TOP LOAD_BUILD_CLASS LOAD_CONST <code object DjangoJinjaAppConfig at 0x7fab42324a50, file "f.py", line 6> LO...
from django.apps import AppConfig from django_jinja import base class DjangoJinjaAppConfig(AppConfig): name = "django_jinja" verbose_name = "Django Jinja" def ready(self): base.patch_django_for_autoescape()
data/django-jinja-2.11.0/django_jinja/apps.py
275
82
436,211
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/resource/azure/__init__.py
243
82
159,693
LOAD_CONST 0 LOAD_CONST None IMPORT_NAME os STORE_NAME os LOAD_CONST 0 LOAD_CONST None IMPORT_NAME pytest STORE_NAME pytest LOAD_CONST 0 LOAD_CONST ('_getenv',) IMPORT_NAME faust.types._env IMPORT_FROM _getenv STORE_NAME _getenv POP_TOP LOAD_CONST <code object test_getenv_not_set at 0x7fab64181660, file "f.py", line...
import os import pytest from faust.types._env import _getenv def test_getenv_not_set(): os.environ.pop("THIS_IS_NOT_SET", None) with pytest.raises(KeyError): _getenv("THIS_IS_NOT_SET")
data/faust-streaming-0.10.22/tests/unit/cli/test_env.py
221
82
77,313
SETUP_EXCEPT to 10 LOAD_CONST 1 STORE_NAME x POP_BLOCK JUMP_FORWARD to 22 POP_TOP POP_TOP POP_TOP POP_EXCEPT JUMP_FORWARD to 22 END_FINALLY SETUP_EXCEPT to 32 LOAD_CONST 1 STORE_NAME x POP_BLOCK JUMP_FORWARD to 52 DUP_TOP LOAD_NAME ImportError COMPARE_OP exception match POP_JUMP_IF_FALSE POP_TOP POP_TOP POP_TOP ...
try: x = 1 except: pass try: x = 1 except ImportError: pass try: x = 2 except ImportError: x = 3 finally: x = 4 try: x = 1 except ImportError as e: x = 2
data/uncompyle6-3.9.0/test/simple_source/exception/01_try_except.py
266
82
442,165
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/openapi/checks/resource/v2/__init__.py
243
82
158,715
LOAD_CONST 'AUTOGENERATED. DO NOT EDIT.' STORE_NAME __doc__ LOAD_CONST 0 LOAD_CONST ('get_label_names',) IMPORT_NAME tf_keras.src.datasets.reuters IMPORT_FROM get_label_names STORE_NAME get_label_names POP_TOP LOAD_CONST 0 LOAD_CONST ('get_word_index',) IMPORT_NAME tf_keras.src.datasets.reuters IMPORT_FROM get_word_i...
"""AUTOGENERATED. DO NOT EDIT.""" from tf_keras.src.datasets.reuters import get_label_names from tf_keras.src.datasets.reuters import get_word_index from tf_keras.src.datasets.reuters import load_data
data/tf_keras-2.15.0/tf_keras/api/_v1/keras/datasets/reuters/__init__.py
162
82
354,083
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/openapi/checks/resource/v3/__init__.py
243
82
158,702
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/aws/__init__.py
242
82
159,764
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/openstack/__init__.py
242
82
159,766
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/oci/__init__.py
243
82
159,770
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/openapi/checks/resource/generic/__init__.py
242
82
158,699
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 WagtailTableBlockAppConfig at 0x7faa8c...
from django.apps import AppConfig from django.utils.translation import gettext_lazy as _ class WagtailTableBlockAppConfig(AppConfig): name = "wagtail.contrib.table_block" label = "wagtailtableblock" verbose_name = _("Wagtail table block")
data/wagtail-6.0.1/wagtail/contrib/table_block/apps.py
231
82
200,030
LOAD_CONST 0 LOAD_CONST ('current_audit_info',) IMPORT_NAME prowler.providers.aws.lib.audit_info.audit_info IMPORT_FROM current_audit_info STORE_NAME current_audit_info POP_TOP LOAD_CONST 0 LOAD_CONST ('CognitoIDP',) IMPORT_NAME prowler.providers.aws.services.cognito.cognito_service IMPORT_FROM CognitoIDP STORE_NAME C...
from prowler.providers.aws.lib.audit_info.audit_info import current_audit_info from prowler.providers.aws.services.cognito.cognito_service import CognitoIDP cognito_idp_client = CognitoIDP(current_audit_info)
data/prowler-3.14.0/prowler/providers/aws/services/cognito/cognito_idp_client.py
140
82
183,072
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/ncp/__init__.py
243
82
159,774
LOAD_CONST 0 LOAD_CONST ('Dict', 'List', 'Any', 'Optional') IMPORT_NAME typing IMPORT_FROM Dict STORE_NAME Dict IMPORT_FROM List STORE_NAME List IMPORT_FROM Any STORE_NAME Any IMPORT_FROM Optional STORE_NAME Optional POP_TOP LOAD_CONST 0 LOAD_CONST ('force_dict',) IMPORT_NAME checkov.common.util.type_forcers IMPORT_FR...
from typing import Dict, List, Any, Optional from checkov.common.util.type_forcers import force_dict def get_resource_tags(entity_config: Dict[str, List[Any]]) -> Optional[Dict[str, Any]]: return force_dict(entity_config.get("labels"))
data/checkov-3.2.23/checkov/terraform/tag_providers/gcp.py
223
82
159,777
LOAD_CONST 0 LOAD_CONST ('Dict', 'List', 'Any', 'Optional') IMPORT_NAME typing IMPORT_FROM Dict STORE_NAME Dict IMPORT_FROM List STORE_NAME List IMPORT_FROM Any STORE_NAME Any IMPORT_FROM Optional STORE_NAME Optional POP_TOP LOAD_CONST 0 LOAD_CONST ('force_dict',) IMPORT_NAME checkov.common.util.type_forcers IMPORT_FR...
from typing import Dict, List, Any, Optional from checkov.common.util.type_forcers import force_dict def get_resource_tags(entity_config: Dict[str, List[Any]]) -> Optional[Dict[str, Any]]: return force_dict(entity_config.get("tags"))
data/checkov-3.2.23/checkov/terraform/tag_providers/azure.py
222
82
159,778
LOAD_CONST 0 LOAD_CONST ('Dict', 'List', 'Any', 'Optional') IMPORT_NAME typing IMPORT_FROM Dict STORE_NAME Dict IMPORT_FROM List STORE_NAME List IMPORT_FROM Any STORE_NAME Any IMPORT_FROM Optional STORE_NAME Optional POP_TOP LOAD_CONST 0 LOAD_CONST ('force_dict',) IMPORT_NAME checkov.common.util.type_forcers IMPORT_FR...
from typing import Dict, List, Any, Optional from checkov.common.util.type_forcers import force_dict def get_resource_tags(entity_config: Dict[str, List[Any]]) -> Optional[Dict[str, Any]]: return force_dict(entity_config.get("tags"))
data/checkov-3.2.23/checkov/terraform/tag_providers/aws.py
223
82
159,779
LOAD_CONST 1 LOAD_CONST ('ArrayValue', 'Document', 'DocumentEventData', 'DocumentMask', 'MapValue', 'Value') IMPORT_NAME data IMPORT_FROM ArrayValue STORE_NAME ArrayValue IMPORT_FROM Document STORE_NAME Document IMPORT_FROM DocumentEventData STORE_NAME DocumentEventData IMPORT_FROM DocumentMask STORE_NAME DocumentMask ...
from .data import ( ArrayValue, Document, DocumentEventData, DocumentMask, MapValue, Value, ) __all__ = ( "ArrayValue", "Document", "DocumentEventData", "DocumentMask", "MapValue", "Value", )
data/google-events-0.11.0/src/google/events/cloud/firestore_v1/types/__init__.py
116
82
13,393
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/serverless/checks/function/aws/__init__.py
243
82
158,733
LOAD_CONST 'Init file.' STORE_NAME __doc__ LOAD_CONST 0 LOAD_CONST ('Connection', 'Edge', 'KibelaReader', 'NodeType', 'Note', 'PageInfo') IMPORT_NAME llama_hub.kibela.base IMPORT_FROM Connection STORE_NAME Connection IMPORT_FROM Edge STORE_NAME Edge IMPORT_FROM KibelaReader STORE_NAME KibelaReader IMPORT_FROM NodeType...
"""Init file.""" from llama_hub.kibela.base import ( Connection, Edge, KibelaReader, NodeType, Note, PageInfo, ) __all__ = ["Connection", "Edge", "KibelaReader", "NodeType", "Note", "PageInfo"]
data/llama_hub-0.0.79.post1/llama_hub/kibela/__init__.py
150
82
359,118
SETUP_ANNOTATIONS LOAD_CONST 0 LOAD_CONST ('Enum',) IMPORT_NAME enum IMPORT_FROM Enum STORE_NAME Enum POP_TOP LOAD_CONST 0 LOAD_CONST ('Set',) IMPORT_NAME typing IMPORT_FROM Set STORE_NAME Set POP_TOP LOAD_BUILD_CLASS LOAD_CONST <code object StatsType at 0x7fab41f6e1e0, file "f.py", line 5> LOAD_CONST 'StatsType' MAK...
from enum import Enum from typing import Set class StatsType(str, Enum): ROW_COUNT = "rowCount" PYARROW_TABLE_BYTES = "pyarrowTableBytes" ALL_STATS_TYPES: Set[StatsType] = {field for field in StatsType}
data/deltacat-0.2.10/deltacat/compute/stats/types.py
300
82
307,297
LOAD_CONST 0 LOAD_CONST None IMPORT_NAME sys STORE_NAME sys LOAD_CONST 0 LOAD_CONST ('UseExceptions', 'deprecation_warn') IMPORT_NAME osgeo.gdal IMPORT_FROM UseExceptions STORE_NAME UseExceptions IMPORT_FROM deprecation_warn STORE_NAME deprecation_warn POP_TOP LOAD_CONST 0 LOAD_CONST ('*',) IMPORT_NAME osgeo_utils.og...
import sys from osgeo.gdal import UseExceptions, deprecation_warn from osgeo_utils.ogrmerge import * # noqa from osgeo_utils.ogrmerge import main UseExceptions() deprecation_warn("ogrmerge") sys.exit(main(sys.argv))
data/GDAL-3.8.4/gdal-utils/scripts/ogrmerge.py
174
82
205,250
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/resource/aws/__init__.py
243
82
159,291