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 '\nA module that helps solving problems in physics.\n' STORE_NAME __doc__ LOAD_CONST 1 LOAD_CONST ('units',) IMPORT_NAME IMPORT_FROM units STORE_NAME units POP_TOP LOAD_CONST 1 LOAD_CONST ('mgamma', 'msigma', 'minkowski_tensor', 'mdft') IMPORT_NAME matrices IMPORT_FROM mgamma STORE_NAME mgamma IMPORT_FROM ...
""" A module that helps solving problems in physics. """ from . import units from .matrices import mgamma, msigma, minkowski_tensor, mdft __all__ = [ "units", "mgamma", "msigma", "minkowski_tensor", "mdft", ]
data/sympy-1.12/sympy/physics/__init__.py
161
83
228,397
LOAD_CONST 1 LOAD_CONST ('ExtensionMeta',) IMPORT_NAME extension_meta IMPORT_FROM ExtensionMeta STORE_NAME ExtensionMeta POP_TOP LOAD_CONST 1 LOAD_CONST ('FunctionExtensionException',) IMPORT_NAME function_extension_exception IMPORT_FROM FunctionExtensionException STORE_NAME FunctionExtensionException POP_TOP LOAD_CO...
from .extension_meta import ExtensionMeta from .function_extension_exception import FunctionExtensionException from .app_extension_base import AppExtensionBase from .func_extension_base import FuncExtensionBase __all__ = [ "ExtensionMeta", "FunctionExtensionException", "AppExtensionBase", "FuncExtensio...
data/azure-functions-1.18.0/azure/functions/extension/__init__.py
167
83
423,901
LOAD_CONST './vfnet_r50_fpn_ms-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_ = "./vfnet_r50_fpn_ms-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/vfnet/vfnet_r101_fpn_ms-2x_coco.py
108
83
151,489
LOAD_CONST 0 LOAD_CONST ('print_function', 'division', 'absolute_import', 'annotations') IMPORT_NAME __future__ IMPORT_FROM print_function STORE_NAME print_function IMPORT_FROM division STORE_NAME division IMPORT_FROM absolute_import STORE_NAME absolute_import IMPORT_FROM annotations STORE_NAME annotations POP_TOP LOA...
from __future__ import print_function, division, absolute_import, annotations from ..message import BackendMessage class BindComplete(BackendMessage): message_id = b"2" def __init__(self, data): BackendMessage.__init__(self) BackendMessage.register(BindComplete)
data/vertica-python-1.3.8/vertica_python/vertica/messages/backend_messages/bind_complete.py
293
83
287,009
LOAD_CONST 'Unit tests for PyTables.\n\nThis package contains some modules which provide a ``suite()`` function\n(with no arguments) which returns a test suite for some PyTables\nfunctionality.\n\n' STORE_NAME __doc__ LOAD_CONST 0 LOAD_CONST ('print_versions',) IMPORT_NAME tables.tests.common IMPORT_FROM print_version...
"""Unit tests for PyTables. This package contains some modules which provide a ``suite()`` function (with no arguments) which returns a test suite for some PyTables functionality. """ from tables.tests.common import print_versions from tables.tests.test_suite import test, suite import tables.req_versions
data/tables-3.9.2/tables/tests/__init__.py
151
83
81,124
LOAD_CONST 'Constants for Airthings BLE.' STORE_NAME __doc__ LOAD_CONST 'airthings_ble' STORE_NAME DOMAIN LOAD_CONST 820 STORE_NAME MFCT_ID LOAD_CONST 'Bq/m³' STORE_NAME VOLUME_BECQUEREL LOAD_CONST 'pCi/L' STORE_NAME VOLUME_PICOCURIE LOAD_CONST 300 STORE_NAME DEFAULT_SCAN_INTERVAL LOAD_CONST None RETURN_VALUE
"""Constants for Airthings BLE.""" DOMAIN = "airthings_ble" MFCT_ID = 820 VOLUME_BECQUEREL = "Bq/m³" VOLUME_PICOCURIE = "pCi/L" DEFAULT_SCAN_INTERVAL = 300
data/homeassistant-2024.2.2/homeassistant/components/airthings_ble/const.py
108
83
297,620
LOAD_CONST 0 LOAD_CONST ('VariableInfo',) IMPORT_NAME ydata_profiling.report.presentation.core IMPORT_FROM VariableInfo STORE_NAME VariableInfo POP_TOP LOAD_CONST 0 LOAD_CONST ('templates',) IMPORT_NAME ydata_profiling.report.presentation.flavours.html IMPORT_FROM templates STORE_NAME templates POP_TOP LOAD_BUILD_CLA...
from ydata_profiling.report.presentation.core import VariableInfo from ydata_profiling.report.presentation.flavours.html import templates class HTMLVariableInfo(VariableInfo): def render(self) -> str: return templates.template("variable_info.html").render(**self.content)
data/ydata-profiling-4.6.4/src/ydata_profiling/report/presentation/flavours/html/variable_info.py
267
83
190,111
LOAD_CONST 0 LOAD_CONST ('test',) IMPORT_NAME django.core.management.commands IMPORT_FROM test STORE_NAME test POP_TOP LOAD_CONST 0 LOAD_CONST ('patch_for_test_db_setup',) IMPORT_NAME south.management.commands IMPORT_FROM patch_for_test_db_setup STORE_NAME patch_for_test_db_setup POP_TOP LOAD_BUILD_CLASS LOAD_CONST <...
from django.core.management.commands import test from south.management.commands import patch_for_test_db_setup class Command(test.Command): def handle(self, *args, **kwargs): patch_for_test_db_setup() super(Command, self).handle(*args, **kwargs)
data/South-1.0.2/south/management/commands/test.py
280
83
392,293
LOAD_CONST 0 LOAD_CONST None IMPORT_NAME sys STORE_NAME sys LOAD_CONST 0 LOAD_CONST None IMPORT_NAME unittest STORE_NAME unittest LOAD_CONST 0 LOAD_CONST None IMPORT_NAME lit.LitTestCase STORE_NAME lit LOAD_NAME sys LOAD_ATTR argv LOAD_CONST 1 BINARY_SUBSCR STORE_NAME input_path LOAD_NAME lit LOAD_ATTR LitTestCase ...
import sys import unittest import lit.LitTestCase input_path = sys.argv[1] unittest_suite = lit.LitTestCase.load_test_suite([input_path]) runner = unittest.TextTestRunner(verbosity=2) runner.run(unittest_suite)
data/lit-17.0.6/tests/unittest-adaptor.py
153
83
299,410
LOAD_CONST 0 LOAD_CONST ('Enum',) IMPORT_NAME enum IMPORT_FROM Enum STORE_NAME Enum POP_TOP LOAD_BUILD_CLASS LOAD_CONST <code object UserPurpose at 0x7fab70120420, file "f.py", line 4> LOAD_CONST 'UserPurpose' MAKE_FUNCTION LOAD_CONST 'UserPurpose' LOAD_NAME str LOAD_NAME Enum CALL_FUNCTION STORE_NAME UserPurpose LOAD...
from enum import Enum class UserPurpose(str, Enum): User = ("user",) Linked = ("linked",) Shared = ("shared",) Room = ("room",) Equipment = ("equipment",) Others = ("others",) UnknownFutureValue = ("unknownFutureValue",)
data/msgraph-sdk-1.1.0/msgraph/generated/models/user_purpose.py
205
83
261,394
LOAD_CONST 0 LOAD_CONST None IMPORT_NAME loky STORE_NAME loky LOAD_CONST 0 LOAD_CONST ('ProcessPoolExecutor',) IMPORT_NAME concurrent.futures IMPORT_FROM ProcessPoolExecutor STORE_NAME ProcessPoolExecutor POP_TOP LOAD_NAME __name__ LOAD_CONST '__main__' COMPARE_OP == POP_JUMP_IF_FALSE LOAD_NAME loky LOAD_METHOD free...
import loky from concurrent.futures import ProcessPoolExecutor if __name__ == "__main__": loky.freeze_support() e = loky.get_reusable_executor(max_workers=2) print(sum(e.map(int, range(10))))
data/loky-3.4.1/frozen_loky.py
156
83
358,046
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 ForumTopicClosed at 0x7fa72442c1e0, ...
from __future__ import annotations from .base import TelegramObject class ForumTopicClosed(TelegramObject): """ This object represents a service message about a forum topic closed in the chat. Currently holds no information. Source: https://core.telegram.org/bots/api#forumtopicclosed """
data/aiogram-3.4.1/aiogram/types/forum_topic_closed.py
222
83
53,863
LOAD_CONST 0 LOAD_CONST None IMPORT_NAME os STORE_NAME os LOAD_CONST 0 LOAD_CONST None IMPORT_NAME webbrowser STORE_NAME webbrowser LOAD_CONST <code object main at 0x7fab8234aa50, file "f.py", line 5> LOAD_CONST 'main' MAKE_FUNCTION STORE_NAME main LOAD_NAME __name__ LOAD_CONST '__main__' COMPARE_OP == POP_JUMP_IF_F...
import os import webbrowser def main(): """ Show html documentation using webbrowser """ index_html = os.path.join(os.path.dirname(__file__), "index.html") webbrowser.open(index_html) if __name__ == "__main__": main()
data/multiprocess-0.70.16/pypy3.8/doc/__init__.py
165
83
144,922
LOAD_CONST 0 LOAD_CONST None IMPORT_NAME warnings STORE_NAME warnings LOAD_CONST 0 LOAD_CONST ('dicomclient',) IMPORT_NAME apache_beam.io.gcp.healthcare IMPORT_FROM dicomclient STORE_NAME dicomclient POP_TOP LOAD_CONST 0 LOAD_CONST ('dicomio',) IMPORT_NAME apache_beam.io.gcp.healthcare IMPORT_FROM dicomio STORE_NAME ...
import warnings from apache_beam.io.gcp.healthcare import dicomclient from apache_beam.io.gcp.healthcare import dicomio warnings.warn( "Dicom Client moved to apache_beam.io.gcp.healthcare.dicomclient", DeprecationWarning, )
data/apache-beam-2.54.0/apache_beam/io/gcp/dicomclient.py
141
83
381,526
LOAD_CONST 0 LOAD_CONST None IMPORT_NAME os STORE_NAME os LOAD_CONST 0 LOAD_CONST None IMPORT_NAME webbrowser STORE_NAME webbrowser LOAD_CONST <code object main at 0x7fab8233dd20, file "f.py", line 5> LOAD_CONST 'main' MAKE_FUNCTION STORE_NAME main LOAD_NAME __name__ LOAD_CONST '__main__' COMPARE_OP == POP_JUMP_IF_F...
import os import webbrowser def main(): """ Show html documentation using webbrowser """ index_html = os.path.join(os.path.dirname(__file__), "index.html") webbrowser.open(index_html) if __name__ == "__main__": main()
data/multiprocess-0.70.16/py3.13/doc/__init__.py
165
83
144,740
LOAD_CONST 'Export to CSV.' STORE_NAME __doc__ LOAD_CONST 0 LOAD_CONST None IMPORT_NAME sys STORE_NAME sys LOAD_CONST 0 LOAD_CONST None IMPORT_NAME csv STORE_NAME csv LOAD_CONST 0 LOAD_CONST ('DBF',) IMPORT_NAME dbfread IMPORT_FROM DBF STORE_NAME DBF POP_TOP LOAD_NAME DBF LOAD_CONST 'files/people.dbf' CALL_FUNCTION...
"""Export to CSV.""" import sys import csv from dbfread import DBF table = DBF("files/people.dbf") writer = csv.writer(sys.stdout) writer.writerow(table.field_names) for record in table: writer.writerow(list(record.values()))
data/dbfread-2.0.7/examples/print_csv.py
185
83
440,967
LOAD_CONST 0 LOAD_CONST None IMPORT_NAME numpy STORE_NAME np LOAD_CONST 0 LOAD_CONST None IMPORT_NAME samplerate STORE_NAME samplerate LOAD_CONST <code object test_resize at 0x7fab427a1c90, file "f.py", line 5> LOAD_CONST 'test_resize' MAKE_FUNCTION STORE_NAME test_resize LOAD_CONST None RETURN_VALUE LOAD_GLOBAL np ...
import numpy as np import samplerate def test_resize(): np.random.seed(0) ratio = 0.9 x = np.random.randn(167) y = samplerate.resample(x, 0.9) assert y.shape[0] == 150
data/samplerate-0.2.1/tests/test_resize.py
197
83
439,127
LOAD_CONST 0 LOAD_CONST None IMPORT_NAME os STORE_NAME os LOAD_CONST 0 LOAD_CONST None IMPORT_NAME webbrowser STORE_NAME webbrowser LOAD_CONST <code object main at 0x7faa52a4d6f0, file "f.py", line 5> LOAD_CONST 'main' MAKE_FUNCTION STORE_NAME main LOAD_NAME __name__ LOAD_CONST '__main__' COMPARE_OP == POP_JUMP_IF_F...
import os import webbrowser def main(): """ Show html documentation using webbrowser """ index_html = os.path.join(os.path.dirname(__file__), "index.html") webbrowser.open(index_html) if __name__ == "__main__": main()
data/multiprocess-0.70.16/py3.10/doc/__init__.py
166
83
145,047
LOAD_CONST 1 LOAD_CONST ('PdfFileReader', 'PdfFileWriter') IMPORT_NAME pdf IMPORT_FROM PdfFileReader STORE_NAME PdfFileReader IMPORT_FROM PdfFileWriter STORE_NAME PdfFileWriter POP_TOP LOAD_CONST 1 LOAD_CONST ('PdfFileMerger',) IMPORT_NAME merger IMPORT_FROM PdfFileMerger STORE_NAME PdfFileMerger POP_TOP LOAD_CONST 1...
from .pdf import PdfFileReader, PdfFileWriter from .merger import PdfFileMerger from .pagerange import PageRange, parse_filename_page_ranges from ._version import __version__ __all__ = ["pdf", "PdfFileMerger", "PdfFileReader", "PdfFileWriter"]
data/PyPDF3-1.0.6/PyPDF3/__init__.py
214
83
420,450
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_collections.testns.testcoll.plugins.module_utils.echo_impl import do_echo def main(): do_echo() if __name__ == "__main__": main()
data/ansible-core-2.16.3/test/integration/targets/module_defaults/collections/ansible_collections/testns/othercoll/plugins/modules/other_echo1.py
201
83
437,251
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_collections.testns.testcoll.plugins.module_utils.echo_impl import do_echo def main(): do_echo() if __name__ == "__main__": main()
data/ansible-core-2.16.3/test/integration/targets/module_defaults/collections/ansible_collections/testns/testcoll/plugins/modules/echo2.py
201
83
437,249
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_collections.testns.testcoll.plugins.module_utils.echo_impl import do_echo def main(): do_echo() if __name__ == "__main__": main()
data/ansible-core-2.16.3/test/integration/targets/module_defaults/collections/ansible_collections/testns/testcoll/plugins/modules/echo1.py
199
83
437,246
LOAD_BUILD_CLASS LOAD_CONST <code object PersonalSiteCreationPriority at 0x7fab700e4a50, file "f.py", line 1> LOAD_CONST 'PersonalSiteCreationPriority' MAKE_FUNCTION LOAD_CONST 'PersonalSiteCreationPriority' CALL_FUNCTION STORE_NAME PersonalSiteCreationPriority LOAD_CONST None RETURN_VALUE LOAD_NAME __name__ STORE_NAM...
class PersonalSiteCreationPriority: """The PersonalSiteCreationPriority enumeration specifies the priority for creating personal sites""" Low = 0 """The priority for creating personal sites is low.""" Medium = 1 """The priority for creating personal sites is medium.""" High = 2 """The pri...
data/Office365-REST-Python-Client-2.5.5/office365/sharepoint/userprofiles/personal_site_creation_priority.py
157
83
189,764
LOAD_CONST './faster-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_FUNCTI...
_base_ = "./faster-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/faster_rcnn/faster-rcnn_r101_fpn_2x_coco.py
108
83
151,083
LOAD_CONST 0 LOAD_CONST None IMPORT_NAME lightning.pytorch._graveyard._torchmetrics STORE_NAME lightning LOAD_CONST 0 LOAD_CONST None IMPORT_NAME lightning.pytorch._graveyard.hpu STORE_NAME lightning LOAD_CONST 0 LOAD_CONST None IMPORT_NAME lightning.pytorch._graveyard.ipu STORE_NAME lightning LOAD_CONST 0 LOAD_CONS...
import lightning.pytorch._graveyard._torchmetrics import lightning.pytorch._graveyard.hpu import lightning.pytorch._graveyard.ipu import lightning.pytorch._graveyard.precision import lightning.pytorch._graveyard.tpu # noqa: F401
data/lightning-2.2.0.post0/src/lightning/pytorch/_graveyard/__init__.py
131
83
121,667
LOAD_CONST './faster-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_FUNCTI...
_base_ = "./faster-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/faster_rcnn/faster-rcnn_r101_fpn_1x_coco.py
108
83
151,109
LOAD_CONST 1 LOAD_CONST ('DictPage',) IMPORT_NAME dict_page IMPORT_FROM DictPage STORE_NAME DictPage POP_TOP LOAD_CONST 1 LOAD_CONST ('LimitOffsetBasedObjectCollection',) IMPORT_NAME limit_offset_based_object_collection IMPORT_FROM LimitOffsetBasedObjectCollection STORE_NAME LimitOffsetBasedObjectCollection POP_TOP L...
from .dict_page import DictPage from .limit_offset_based_object_collection import LimitOffsetBasedObjectCollection class LimitOffsetBasedDictCollection(LimitOffsetBasedObjectCollection): """Represents a limit/offset-based collection of simple dicts, which are not translated into objects.""" _page_constructor...
data/boxsdk-3.9.2/boxsdk/pagination/limit_offset_based_dict_collection.py
233
83
231,042
LOAD_CONST 0 LOAD_CONST ('Entity',) IMPORT_NAME office365.sharepoint.entity IMPORT_FROM Entity STORE_NAME Entity POP_TOP LOAD_BUILD_CLASS LOAD_CONST <code object ModernizeHomepageResult at 0x7fab700add20, file "f.py", line 4> LOAD_CONST 'ModernizeHomepageResult' MAKE_FUNCTION LOAD_CONST 'ModernizeHomepageResult' LOAD_...
from office365.sharepoint.entity import Entity class ModernizeHomepageResult(Entity): """""" @property def can_modernize_homepage(self): """ :rtype: bool or None """ return self.properties.get("CanModernizeHomepage", None)
data/Office365-REST-Python-Client-2.5.5/office365/sharepoint/webs/modernize_homepage_result.py
252
83
189,779
LOAD_CONST 'Common utility functions for LLM APIs.' STORE_NAME __doc__ LOAD_CONST 0 LOAD_CONST None IMPORT_NAME re STORE_NAME re LOAD_CONST 0 LOAD_CONST ('List',) IMPORT_NAME typing IMPORT_FROM List STORE_NAME List POP_TOP LOAD_NAME str LOAD_NAME List LOAD_NAME str BINARY_SUBSCR LOAD_NAME str LOAD_CONST ('text', 'st...
"""Common utility functions for LLM APIs.""" import re from typing import List def enforce_stop_tokens(text: str, stop: List[str]) -> str: """Cut off the text as soon as any stop words occur.""" return re.split("|".join(stop), text, maxsplit=1)[0]
data/langchain_community-0.0.21/langchain_community/llms/utils.py
188
83
15,219
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 application IMPORT_STAR LOAD_CONST 1 LOAD_CONST ('*',) IMPORT_NAME application_version IMPORT_STAR LOA...
from .. import _utilities import typing from .application import * from .application_version import * from .configuration_template import * from .environment import * from .get_application import * from .get_hosted_zone import * from .get_solution_stack import * from ._inputs import * from . import outputs
data/pulumi_aws-6.22.2/pulumi_aws/elasticbeanstalk/__init__.py
213
83
226,459
LOAD_CONST 0 LOAD_CONST None IMPORT_NAME os STORE_NAME os LOAD_CONST 0 LOAD_CONST None IMPORT_NAME webbrowser STORE_NAME webbrowser LOAD_CONST <code object main at 0x7fab5434b150, file "f.py", line 5> LOAD_CONST 'main' MAKE_FUNCTION STORE_NAME main LOAD_NAME __name__ LOAD_CONST '__main__' COMPARE_OP == POP_JUMP_IF_F...
import os import webbrowser def main(): """ Show html documentation using webbrowser """ index_html = os.path.join(os.path.dirname(__file__), "index.html") webbrowser.open(index_html) if __name__ == "__main__": main()
data/multiprocess-0.70.16/pypy3.9/doc/__init__.py
166
83
144,785
LOAD_CONST 0 LOAD_CONST ('is_module_satisfies',) IMPORT_NAME PyInstaller.utils.hooks IMPORT_FROM is_module_satisfies STORE_NAME is_module_satisfies POP_TOP LOAD_CONST 'decimal' BUILD_LIST STORE_NAME hiddenimports LOAD_NAME is_module_satisfies LOAD_CONST 'pymssql > 2.1.5' CALL_FUNCTION POP_JUMP_IF_FALSE LOAD_NAME hid...
from PyInstaller.utils.hooks import is_module_satisfies hiddenimports = ["decimal"] if is_module_satisfies("pymssql > 2.1.5"): hiddenimports += ["pymssql._mssql", "uuid"] else: hiddenimports += ["_mssql"]
data/pyinstaller-hooks-contrib-2024.1/src/_pyinstaller_hooks_contrib/hooks/stdhooks/hook-pymssql.py
149
83
282,151
LOAD_CONST 0 LOAD_CONST None IMPORT_NAME pytest STORE_NAME pytest LOAD_CONST 0 LOAD_CONST ('AIOHTTPOpenAPIWebResponse',) IMPORT_NAME openapi_core.contrib.aiohttp.responses IMPORT_FROM AIOHTTPOpenAPIWebResponse STORE_NAME AIOHTTPOpenAPIWebResponse POP_TOP LOAD_BUILD_CLASS LOAD_CONST <code object TestAIOHTTPOpenAPIWebR...
import pytest from openapi_core.contrib.aiohttp.responses import AIOHTTPOpenAPIWebResponse class TestAIOHTTPOpenAPIWebResponse: def test_type_invalid(self): with pytest.raises(TypeError): AIOHTTPOpenAPIWebResponse(None)
data/openapi_core-0.19.0/tests/unit/contrib/aiohttp/test_aiohttp_responses.py
325
83
271,144
LOAD_CONST 0 LOAD_CONST ('SdoVariable', 'SdoRecord', 'SdoArray') IMPORT_NAME canopen.sdo.base IMPORT_FROM SdoVariable STORE_NAME SdoVariable IMPORT_FROM SdoRecord STORE_NAME SdoRecord IMPORT_FROM SdoArray STORE_NAME SdoArray POP_TOP LOAD_CONST 0 LOAD_CONST ('SdoClient',) IMPORT_NAME canopen.sdo.client IMPORT_FROM SdoC...
from canopen.sdo.base import SdoVariable, SdoRecord, SdoArray from canopen.sdo.client import SdoClient from canopen.sdo.server import SdoServer from canopen.sdo.exceptions import SdoAbortedError, SdoCommunicationError from .base import Variable, Record, Array
data/canopen-2.2.0/canopen/sdo/__init__.py
240
83
379,689
LOAD_CONST 0 LOAD_CONST None IMPORT_NAME html.parser STORE_NAME html LOAD_BUILD_CLASS LOAD_CONST <code object GitLabParser at 0x7fab6400c5d0, file "f.py", line 4> LOAD_CONST 'GitLabParser' MAKE_FUNCTION LOAD_CONST 'GitLabParser' LOAD_NAME html LOAD_ATTR parser LOAD_ATTR HTMLParser CALL_FUNCTION STORE_NAME GitLabParser...
import html.parser class GitLabParser(html.parser.HTMLParser): def __init__(self): html.parser.HTMLParser.__init__(self) self.lis = [] def handle_starttag(self, tag, attrs): if tag == "li": self.lis.append(1)
data/github_heatmap-1.0.9/github_heatmap/html_parser/gitlab_parser.py
308
83
416,952
LOAD_CONST '\nSignals and SignalEmitter that gathers the signals on models Meta.\nUsed to signal receivers functions about events, i.e. post_save, pre_delete etc.\n' STORE_NAME __doc__ LOAD_CONST 0 LOAD_CONST ('Signal', 'SignalEmitter') IMPORT_NAME ormar.signals.signal IMPORT_FROM Signal STORE_NAME Signal IMPORT_FROM ...
""" Signals and SignalEmitter that gathers the signals on models Meta. Used to signal receivers functions about events, i.e. post_save, pre_delete etc. """ from ormar.signals.signal import Signal, SignalEmitter __all__ = ["Signal", "SignalEmitter"]
data/ormar-0.12.2/ormar/signals/__init__.py
131
83
281,568
LOAD_CONST 0 LOAD_CONST ('Any', 'Protocol', 'TypeVar') IMPORT_NAME typing IMPORT_FROM Any STORE_NAME Any IMPORT_FROM Protocol STORE_NAME Protocol IMPORT_FROM TypeVar STORE_NAME TypeVar POP_TOP LOAD_NAME TypeVar LOAD_CONST 'T' CALL_FUNCTION STORE_NAME T LOAD_BUILD_CLASS LOAD_CONST <code object SupportsCapabilities at ...
from typing import Any, Protocol, TypeVar T = TypeVar("T") class SupportsCapabilities(Protocol): def set_capability(self: T, name: str, value: Any) -> T: ... def get_capability(self: T, name: str) -> Any: ...
data/Appium-Python-Client-3.1.1/appium/options/common/supports_capabilities.py
338
83
146,183
LOAD_CONST (-1.5, 0, 0, None) LOAD_CONST <code object extrapolate at 0x7fa6f32ed420, file "f.py", line 1> LOAD_CONST 'extrapolate' MAKE_FUNCTION STORE_NAME extrapolate LOAD_CONST None RETURN_VALUE LOAD_GLOBAL DeprecationWarning LOAD_CONST 'The ase.utils.extrapolate module has been deprecated. Please use gpaw.utilitie...
def extrapolate(x, y, n=-1.5, plot=0, reg=0, txt=None): raise DeprecationWarning( "The ase.utils.extrapolate module has been deprecated. " "Please use gpaw.utilities.extrapolate.extrapolate() instead." )
data/ase-3.22.1/ase/utils/extrapolate.py
121
83
45,594
LOAD_CONST 1 LOAD_CONST ('DRLearner', 'LinearDRLearner', 'SparseLinearDRLearner', 'ForestDRLearner') IMPORT_NAME _drlearner IMPORT_FROM DRLearner STORE_NAME DRLearner IMPORT_FROM LinearDRLearner STORE_NAME LinearDRLearner IMPORT_FROM SparseLinearDRLearner STORE_NAME SparseLinearDRLearner IMPORT_FROM ForestDRLearner STO...
from ._drlearner import ( DRLearner, LinearDRLearner, SparseLinearDRLearner, ForestDRLearner, ) __all__ = ["DRLearner", "LinearDRLearner", "SparseLinearDRLearner", "ForestDRLearner"]
data/econml-0.15.0/econml/dr/__init__.py
156
83
236,973
LOAD_CONST '\nThe :mod:`sklearn.gaussian_process` module implements Gaussian Process\nbased regression and classification.\n' STORE_NAME __doc__ LOAD_CONST 1 LOAD_CONST ('kernels',) IMPORT_NAME IMPORT_FROM kernels STORE_NAME kernels POP_TOP LOAD_CONST 1 LOAD_CONST ('GaussianProcessClassifier',) IMPORT_NAME _gpc IMPOR...
""" The :mod:`sklearn.gaussian_process` module implements Gaussian Process based regression and classification. """ from . import kernels from ._gpc import GaussianProcessClassifier from ._gpr import GaussianProcessRegressor __all__ = ["GaussianProcessRegressor", "GaussianProcessClassifier", "kernels"]
data/scikit-learn-1.4.1.post1/sklearn/gaussian_process/__init__.py
166
83
107,757
LOAD_CONST 0 LOAD_CONST ('*',) IMPORT_NAME azure.cli.core.aaz IMPORT_STAR LOAD_NAME register_command_group LOAD_CONST 'consumption budget' LOAD_CONST True LOAD_CONST ('is_preview',) CALL_FUNCTION LOAD_BUILD_CLASS LOAD_CONST <code object __CMDGroup at 0x7fab822ea4b0, file "f.py", line 4> LOAD_CONST '__CMDGroup' MAKE_...
from azure.cli.core.aaz import * @register_command_group( "consumption budget", is_preview=True, ) class __CMDGroup(AAZCommandGroup): """Manage budgets for an Azure subscription.""" pass __all__ = ["__CMDGroup"]
data/azure-cli-2.57.0/azure/cli/command_modules/consumption/aaz/latest/consumption/budget/__cmd_group.py
196
83
376,383
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 hijack IMPORT_FROM views STORE_NAME views POP_TOP LOAD_CONST 'hijack' STORE_NAME app_name LOAD_NAME path LOAD_CONST 'acquire/' LOAD_NAME views LOAD_ATTR AcquireUserView LO...
from django.urls import path from hijack import views app_name = "hijack" urlpatterns = [ path("acquire/", views.AcquireUserView.as_view(), name="acquire"), path("release/", views.ReleaseUserView.as_view(), name="release"), ]
data/django-hijack-3.4.5/hijack/urls.py
152
83
17,514
LOAD_CONST 0 LOAD_CONST ('vizier_hyperparameter_tuner',) IMPORT_NAME vertexai.preview.hyperparameter_tuning IMPORT_FROM vizier_hyperparameter_tuner STORE_NAME vizier_hyperparameter_tuner POP_TOP LOAD_NAME vizier_hyperparameter_tuner LOAD_ATTR VizierHyperparameterTuner STORE_NAME VizierHyperparameterTuner LOAD_CONST (...
from vertexai.preview.hyperparameter_tuning import ( vizier_hyperparameter_tuner, ) VizierHyperparameterTuner = vizier_hyperparameter_tuner.VizierHyperparameterTuner __all__ = ("VizierHyperparameterTuner",)
data/google-cloud-aiplatform-1.42.1/vertexai/preview/hyperparameter_tuning/__init__.py
118
83
168,384
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 DataPolicyOperation at 0x7fab700add20, file "f.py", line 4> LOAD_CONST 'DataPolicyOperation' MAKE_FUNCTION LOAD_CONST 'DataPolicyOperation' LOAD_NAME Entity CALL_FUNCTI...
from office365.entity import Entity class DataPolicyOperation(Entity): """ Represents a submitted data policy operation. It contains necessary information for tracking the status of an operation. For example, a company administrator can submit a data policy operation request to export an employee's co...
data/Office365-REST-Python-Client-2.5.5/office365/directory/datapolicy/operation.py
189
83
188,911
LOAD_CONST 'Auto-generated file, do not edit by hand. 58 metadata' STORE_NAME __doc__ LOAD_CONST 2 LOAD_CONST ('NumberFormat',) IMPORT_NAME phonemetadata IMPORT_FROM NumberFormat STORE_NAME NumberFormat POP_TOP LOAD_NAME NumberFormat LOAD_CONST '(\\d{3})(\\d{3})(\\d{4})' LOAD_CONST '\\1 \\2 \\3' LOAD_CONST ('pattern'...
"""Auto-generated file, do not edit by hand. 58 metadata""" from ..phonemetadata import NumberFormat PHONE_ALT_FORMAT_58 = [ NumberFormat(pattern="(\\d{3})(\\d{3})(\\d{4})", format="\\1 \\2 \\3") ]
data/phonenumberslite-8.13.30/phonenumbers/data/alt_format_58.py
117
83
440,401
LOAD_CONST 0 LOAD_CONST ('absolute_import', 'division', 'print_function') IMPORT_NAME __future__ IMPORT_FROM absolute_import STORE_NAME absolute_import IMPORT_FROM division STORE_NAME division IMPORT_FROM print_function STORE_NAME print_function POP_TOP LOAD_NAME type STORE_NAME __metaclass__ LOAD_BUILD_CLASS LOAD_CO...
from __future__ import absolute_import, division, print_function __metaclass__ = type class ModuleDocFragment(object): DOCUMENTATION = r""" options: {} deprecated: alternative: Use some other module why: Test deprecation removed_in: '3.0.0' """
data/ansible-core-2.16.3/test/integration/targets/ansible-doc/collections/ansible_collections/testns/testcol2/plugins/doc_fragments/deprecation.py
211
83
437,557
LOAD_CONST 0 LOAD_CONST None IMPORT_NAME scrapy STORE_NAME scrapy LOAD_BUILD_CLASS LOAD_CONST <code object ExceptionSpider at 0x7f8af04b8390, file "f.py", line 4> LOAD_CONST 'ExceptionSpider' MAKE_FUNCTION LOAD_CONST 'ExceptionSpider' LOAD_NAME scrapy LOAD_ATTR Spider CALL_FUNCTION STORE_NAME ExceptionSpider LOAD_CONS...
import scrapy class ExceptionSpider(scrapy.Spider): name = "exception" custom_settings = { "ITEM_PIPELINES": {"test_spider.pipelines.TestSpiderExceptionPipeline": 300} } def parse(self, response): pass
data/Scrapy-2.11.1/tests/test_cmdline_crawl_with_pipeline/test_spider/spiders/exception.py
225
83
332,369
LOAD_CONST 0 LOAD_CONST ('expect',) IMPORT_NAME sure IMPORT_FROM expect STORE_NAME expect POP_TOP LOAD_CONST <code object test_issue_104 at 0x7f8ab739e780, file "f.py", line 4> LOAD_CONST 'test_issue_104' MAKE_FUNCTION STORE_NAME test_issue_104 LOAD_CONST None RETURN_VALUE SETUP_EXCEPT to 22 LOAD_GLOBAL expect LOAD_...
from sure import expect def test_issue_104(): try: expect("hello").to.contain("world") except Exception: # just to prevent syntax error because try/else does not exist pass else: raise SystemExit("Oops") expect("hello world").to.contain("world")
data/sure-2.0.1/tests/issues/test_issue_104.py
204
83
335,347
LOAD_CONST "Securesystemslib tests.\n\nNOTE: This file is only considered when running tests via aggregate_tests.py, or\nwith the '-m' flag, when invoked individually.\n\n" STORE_NAME __doc__ LOAD_CONST 0 LOAD_CONST None IMPORT_NAME securesystemslib.gpg.constants STORE_NAME securesystemslib LOAD_CONST 120 LOAD_NAME s...
"""Securesystemslib tests. NOTE: This file is only considered when running tests via aggregate_tests.py, or with the '-m' flag, when invoked individually. """ import securesystemslib.gpg.constants securesystemslib.gpg.constants.GPG_TIMEOUT = 120
data/securesystemslib-0.31.0/tests/__init__.py
115
83
418,370
LOAD_CONST 0 LOAD_CONST ('absolute_import', 'print_function', 'unicode_literals') IMPORT_NAME __future__ IMPORT_FROM absolute_import STORE_NAME absolute_import IMPORT_FROM print_function STORE_NAME print_function IMPORT_FROM unicode_literals STORE_NAME unicode_literals POP_TOP SETUP_EXCEPT to 38 LOAD_CONST 0 LOAD_CON...
from __future__ import absolute_import, print_function, unicode_literals try: from mock import mock except ImportError: # pragma: no cover try: import mock except ImportError: # pragma: no cover from unittest import mock # noqa # pragma: no cover
data/alchemy-mock-0.4.3/alchemy_mock/compat.py
220
83
222,904
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 DeleteFacet at 0x7fab640fac90, file "f.py", line 4> LOAD_CONST 'DeleteFacet' MAKE_FUNCTION LOAD_CONST 'DeleteFacet' LOAD_NAME ClientValue C...
from office365.runtime.client_value import ClientValue class DeleteFacet(ClientValue): """""" def __init__(self, name=None): self.name = name @property def entity_type_name(self): return "Microsoft.SharePoint.Activities.CreateFacet"
data/Office365-REST-Python-Client-2.5.5/office365/sharepoint/activities/facets/delete.py
292
83
189,607
LOAD_CONST 0 LOAD_CONST None IMPORT_NAME sys STORE_NAME sys LOAD_CONST 0 LOAD_CONST ('Dict', 'List', 'Tuple') IMPORT_NAME typing IMPORT_FROM Dict STORE_NAME Dict IMPORT_FROM List STORE_NAME List IMPORT_FROM Tuple STORE_NAME Tuple POP_TOP LOAD_CONST 1 LOAD_CONST ('Snippets',) IMPORT_NAME base IMPORT_FROM Snippets STOR...
import sys from typing import Dict, List, Tuple from .base import Snippets from .utils import import_recursive def collect_snippets() -> Dict[str, List[Tuple[str, str]]]: import_recursive(sys.modules[__name__]) return Snippets
data/onnxoptimizer-0.3.13/third_party/onnx/onnx/backend/test/case/__init__.py
252
83
85,768
LOAD_CONST 0 LOAD_CONST None IMPORT_NAME json STORE_NAME json LOAD_CONST 0 LOAD_CONST ('Renderer',) IMPORT_NAME pyinstrument.renderers.base IMPORT_FROM Renderer STORE_NAME Renderer POP_TOP LOAD_CONST 0 LOAD_CONST ('Session',) IMPORT_NAME pyinstrument.session IMPORT_FROM Session STORE_NAME Session POP_TOP LOAD_BUILD_...
import json from pyinstrument.renderers.base import Renderer from pyinstrument.session import Session class SessionRenderer(Renderer): output_file_extension: str = "pyisession" def render(self, session: Session) -> str: return json.dumps(session.to_json())
data/pyinstrument-4.6.2/pyinstrument/renderers/session.py
289
83
115,359
LOAD_CONST 0 LOAD_CONST ('SentrySpanProcessor',) IMPORT_NAME sentry_sdk.integrations.opentelemetry.span_processor IMPORT_FROM SentrySpanProcessor STORE_NAME SentrySpanProcessor POP_TOP LOAD_CONST 0 LOAD_CONST ('SentryPropagator',) IMPORT_NAME sentry_sdk.integrations.opentelemetry.propagator IMPORT_FROM SentryPropagato...
from sentry_sdk.integrations.opentelemetry.span_processor import ( # noqa: F401 SentrySpanProcessor, ) from sentry_sdk.integrations.opentelemetry.propagator import ( # noqa: F401 SentryPropagator, )
data/sentry-sdk-1.40.5/sentry_sdk/integrations/opentelemetry/__init__.py
101
83
45,365
LOAD_CONST 'Write back all data it receives.' STORE_NAME __doc__ LOAD_CONST 0 LOAD_CONST None IMPORT_NAME sys STORE_NAME sys LOAD_NAME sys LOAD_ATTR stdin LOAD_METHOD read LOAD_CONST 1 CALL_METHOD STORE_NAME data SETUP_LOOP to 68 LOAD_NAME data POP_JUMP_IF_FALSE LOAD_NAME sys LOAD_ATTR stdout LOAD_METHOD write LOAD...
"""Write back all data it receives.""" import sys data = sys.stdin.read(1) while data: sys.stdout.write(data) sys.stdout.flush() data = sys.stdin.read(1) sys.stderr.write("byebye") sys.stderr.flush()
data/twisted-23.10.0/src/twisted/test/process_echoer.py
159
83
384,243
LOAD_CONST 1 LOAD_CONST 2 LOAD_CONST 3 LOAD_CONST 4 LOAD_CONST 5 BUILD_LIST STORE_NAME ary LOAD_NAME ary LOAD_CONST None LOAD_CONST 2 BUILD_SLICE BINARY_SUBSCR STORE_NAME a LOAD_NAME a LOAD_CONST 1 LOAD_CONST 2 BUILD_LIST COMPARE_OP == POP_JUMP_IF_TRUE LOAD_GLOBAL AssertionError RAISE_VARARGS LOAD_NAME ary LOAD_CONS...
ary = [1, 2, 3, 4, 5] a = ary[:2] assert a == [1, 2] a = ary[2:] assert a == [3, 4, 5] a = ary[1:4:2] assert a == [2, 4]
data/uncompyle6-3.9.0/test/simple_source/slice/02_slice.py
175
83
442,169
LOAD_CONST 0 LOAD_CONST ('parser',) IMPORT_NAME jmespath IMPORT_FROM parser STORE_NAME parser POP_TOP LOAD_CONST 0 LOAD_CONST ('Options',) IMPORT_NAME jmespath.visitor IMPORT_FROM Options STORE_NAME Options POP_TOP LOAD_CONST '1.0.1' STORE_NAME __version__ LOAD_CONST <code object compile at 0x7faa5f271930, file "f.p...
from jmespath import parser from jmespath.visitor import Options __version__ = "1.0.1" def compile(expression): return parser.Parser().parse(expression) def search(expression, data, options=None): return parser.Parser().parse(expression).search(data, options=options)
data/jmespath-1.0.1/jmespath/__init__.py
219
83
439,947
LOAD_CONST 'Provide version object to compare version numbers.' STORE_NAME __doc__ 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...
"""Provide version object to compare version numbers.""" from __future__ import absolute_import, division, print_function __metaclass__ = type from ansible.module_utils.compat.version import ( LooseVersion, ) # noqa: F401, pylint: disable=unused-import
data/ansible-9.2.0/ansible_collections/community/general/plugins/module_utils/version.py
125
83
275,351
LOAD_CONST 0 LOAD_CONST None IMPORT_NAME os STORE_NAME os LOAD_CONST 0 LOAD_CONST None IMPORT_NAME webbrowser STORE_NAME webbrowser LOAD_CONST <code object main at 0x7fab7006dc90, file "f.py", line 5> LOAD_CONST 'main' MAKE_FUNCTION STORE_NAME main LOAD_NAME __name__ LOAD_CONST '__main__' COMPARE_OP == POP_JUMP_IF_F...
import os import webbrowser def main(): """ Show html documentation using webbrowser """ index_html = os.path.join(os.path.dirname(__file__), "index.html") webbrowser.open(index_html) if __name__ == "__main__": main()
data/multiprocess-0.70.16/pypy3.10/doc/__init__.py
165
83
145,003
LOAD_CONST 0 LOAD_CONST ('TestCase',) IMPORT_NAME PyObjCTools.TestSupport IMPORT_FROM TestCase STORE_NAME TestCase POP_TOP LOAD_CONST 0 LOAD_CONST None IMPORT_NAME HealthKit STORE_NAME HealthKit LOAD_BUILD_CLASS LOAD_CONST <code object TestHKQuantitySample at 0x7fab800ab150, file "f.py", line 5> LOAD_CONST 'TestHKQua...
from PyObjCTools.TestSupport import TestCase import HealthKit class TestHKQuantitySample(TestCase): def test_constants(self): self.assertIsInstance(HealthKit.HKPredicateKeyPathQuantity, str) self.assertIsInstance(HealthKit.HKPredicateKeyPathCount, str)
data/pyobjc-framework-HealthKit-10.1/PyObjCTest/test_hkquantitysample.py
279
83
385,368
LOAD_CONST <code object func at 0x7fab41751150, file "f.py", line 1> LOAD_CONST 'func' MAKE_FUNCTION STORE_NAME func LOAD_CONST 1 STORE_NAME x LOAD_CONST <code object func at 0x7fab41751540, file "f.py", line 8> LOAD_CONST 'func' MAKE_FUNCTION STORE_NAME func LOAD_CONST 1 STORE_NAME x LOAD_CONST <code object func a...
def func(): pass x = 1 def func(): pass x = 1 def func(): pass def func(): pass def func(): pass def func(): pass def func(): pass def func(): pass
data/ruff-0.2.2/crates/ruff_python_formatter/resources/test/fixtures/ruff/fmt_on_off/newlines.py
417
83
342,217
LOAD_CONST 0 LOAD_CONST ('ip_allocation',) IMPORT_NAME neutron_lib.api.definitions IMPORT_FROM ip_allocation STORE_NAME ip_allocation 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 IPAllocat...
from neutron_lib.api.definitions import ip_allocation from neutron_lib.tests.unit.api.definitions import base class IPAllocationDefinitionTestCase(base.DefinitionBaseTestCase): extension_module = ip_allocation extension_resources = () extension_attributes = (ip_allocation.IP_ALLOCATION,)
data/neutron-lib-3.10.0/neutron_lib/tests/unit/api/definitions/ip_allocation.py
223
83
385,003
LOAD_CONST 1 LOAD_CONST ('BaseDeviceParser',) IMPORT_NAME base IMPORT_FROM BaseDeviceParser STORE_NAME BaseDeviceParser POP_TOP LOAD_BUILD_CLASS LOAD_CONST <code object Bot at 0x7f8af13ad1e0, file "f.py", line 4> LOAD_CONST 'Bot' MAKE_FUNCTION LOAD_CONST 'Bot' LOAD_NAME BaseDeviceParser CALL_FUNCTION STORE_NAME Bot L...
from .base import BaseDeviceParser class Bot(BaseDeviceParser): fixture_files = [ "upstream/bots.yml", ] def is_bot(self) -> bool: return self.matched_regex is not None __all__ = [ "Bot", ]
data/device_detector-5.0.1/device_detector/parser/device/bot.py
228
83
336,774
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 rule' CALL_FUNCTION LOAD_BUILD_CLASS LOAD_CONST <code object __CMDGroup at 0x7fab82197930, file "f.py", line 4> LOAD_CONST '__CMDGroup' MAKE_FUNCTION LOAD_CON...
from azure.cli.core.aaz import * @register_command_group( "network application-gateway url-path-map rule", ) class __CMDGroup(AAZCommandGroup): """Manage the rules of a URL path map.""" pass __all__ = ["__CMDGroup"]
data/azure-cli-2.57.0/azure/cli/command_modules/network/aaz/latest/network/application_gateway/url_path_map/rule/__cmd_group.py
193
83
378,578
LOAD_CONST 0 LOAD_CONST ('RadioSelect',) IMPORT_NAME django.forms IMPORT_FROM RadioSelect STORE_NAME RadioSelect POP_TOP LOAD_BUILD_CLASS LOAD_CONST <code object RadioSelectButtonGroup at 0x7fab8214d810, file "f.py", line 4> LOAD_CONST 'RadioSelectButtonGroup' MAKE_FUNCTION LOAD_CONST 'RadioSelectButtonGroup' LOAD_NAM...
from django.forms import RadioSelect class RadioSelectButtonGroup(RadioSelect): """ Render a Bootstrap 4 set of buttons horizontally instead of typical radio buttons. Much more mobile friendly. """ template_name = "bootstrap4/widgets/radio_select_button_group.html"
data/django-bootstrap4-24.1/src/bootstrap4/widgets.py
199
83
293,642
LOAD_CONST 0 LOAD_CONST ('CompleteSet',) IMPORT_NAME visions.typesets.complete_set IMPORT_FROM CompleteSet STORE_NAME CompleteSet POP_TOP LOAD_CONST 0 LOAD_CONST ('GeometrySet',) IMPORT_NAME visions.typesets.geometry_set IMPORT_FROM GeometrySet STORE_NAME GeometrySet POP_TOP LOAD_CONST 0 LOAD_CONST ('StandardSet',) I...
from visions.typesets.complete_set import CompleteSet from visions.typesets.geometry_set import GeometrySet from visions.typesets.standard_set import StandardSet from visions.typesets.typeset import VisionsTypeset __all__ = ["VisionsTypeset", "CompleteSet", "StandardSet", "GeometrySet"]
data/visions-0.7.6/src/visions/typesets/__init__.py
177
83
78,069
LOAD_CONST 0 LOAD_CONST ('NWK', 'EUI64', 'Bool', 'PanId', 'Struct', 'KeyData', 'Channels', 'ClusterId', 'ExtendedPanId', 'CharacterString', 'SerializableBytes') IMPORT_NAME zigpy.types IMPORT_FROM NWK STORE_NAME NWK IMPORT_FROM EUI64 STORE_NAME EUI64 IMPORT_FROM Bool STORE_NAME Bool IMPORT_FROM PanId STORE_NAME PanId I...
from zigpy.types import ( # noqa: F401 NWK, EUI64, Bool, PanId, Struct, KeyData, Channels, ClusterId, ExtendedPanId, CharacterString, SerializableBytes, )
data/zigpy-znp-0.12.1/zigpy_znp/types/zigpy_types.py
168
83
85,520
LOAD_CONST 'Test conf file.' STORE_NAME __doc__ LOAD_CONST 'PyData Tests' STORE_NAME project LOAD_CONST '2020, Pydata community' STORE_NAME copyright LOAD_CONST 'Pydata community' STORE_NAME author LOAD_CONST 'index' STORE_NAME root_doc LOAD_CONST 'pydata_sphinx_theme' STORE_NAME html_theme LOAD_CONST 'navigation...
"""Test conf file.""" project = "PyData Tests" copyright = "2020, Pydata community" author = "Pydata community" root_doc = "index" html_theme = "pydata_sphinx_theme" html_theme_options = {"navigation_with_keys": False}
data/pydata_sphinx_theme-0.15.2/tests/sites/sidebars/conf.py
107
83
254,904
LOAD_CONST 0 LOAD_CONST ('*',) IMPORT_NAME azure.cli.core.aaz IMPORT_STAR LOAD_NAME register_command_group LOAD_CONST 'network application-gateway ssl-policy predefined' CALL_FUNCTION LOAD_BUILD_CLASS LOAD_CONST <code object __CMDGroup at 0x7faa5dedb5d0, file "f.py", line 4> LOAD_CONST '__CMDGroup' MAKE_FUNCTION LOAD...
from azure.cli.core.aaz import * @register_command_group( "network application-gateway ssl-policy predefined", ) class __CMDGroup(AAZCommandGroup): """Get information on predefined SSL policies.""" pass __all__ = ["__CMDGroup"]
data/azure-cli-2.57.0/azure/cli/command_modules/network/aaz/latest/network/application_gateway/ssl_policy/predefined/__cmd_group.py
191
83
378,507
LOAD_CONST 0 LOAD_CONST ('collect_data_files',) IMPORT_NAME PyInstaller.utils.hooks IMPORT_FROM collect_data_files STORE_NAME collect_data_files POP_TOP LOAD_CONST 0 LOAD_CONST ('collect_submodules',) IMPORT_NAME PyInstaller.utils.hooks IMPORT_FROM collect_submodules STORE_NAME collect_submodules POP_TOP LOAD_NAME co...
from PyInstaller.utils.hooks import collect_data_files from PyInstaller.utils.hooks import collect_submodules datas = collect_data_files("plotly", includes=["package_data/**/*.*"]) hiddenimports = collect_submodules("plotly.validators") + ["pandas", "cmath"]
data/pyinstaller-hooks-contrib-2024.1/src/_pyinstaller_hooks_contrib/hooks/stdhooks/hook-plotly.py
160
83
282,080
LOAD_CONST '0.5.2' STORE_NAME __version__ LOAD_CONST 1 LOAD_CONST ('etree_to_text', 'extract_text', 'selector_to_text', 'parse_html', 'cleaned_selector', 'cleaner', 'NEWLINE_TAGS', 'DOUBLE_NEWLINE_TAGS') IMPORT_NAME html_text IMPORT_FROM etree_to_text STORE_NAME etree_to_text IMPORT_FROM extract_text STORE_NAME extrac...
__version__ = "0.5.2" from .html_text import ( etree_to_text, extract_text, selector_to_text, parse_html, cleaned_selector, cleaner, NEWLINE_TAGS, DOUBLE_NEWLINE_TAGS, )
data/html_text-0.5.2/html_text/__init__.py
189
83
208,195
LOAD_CONST 0 LOAD_CONST ('Serialisable',) IMPORT_NAME openpyxl.descriptors.serialisable IMPORT_FROM Serialisable STORE_NAME Serialisable POP_TOP LOAD_CONST 0 LOAD_CONST ('Relation',) IMPORT_NAME openpyxl.descriptors.excel IMPORT_FROM Relation STORE_NAME Relation POP_TOP LOAD_BUILD_CLASS LOAD_CONST <code object Drawin...
from openpyxl.descriptors.serialisable import Serialisable from openpyxl.descriptors.excel import Relation class Drawing(Serialisable): tagname = "drawing" id = Relation() def __init__(self, id=None): self.id = id
data/openpyxl-3.1.2/openpyxl/worksheet/drawing.py
256
83
444,331
LOAD_CONST 0 LOAD_CONST ('Configurator',) IMPORT_NAME pyramid.config IMPORT_FROM Configurator STORE_NAME Configurator POP_TOP LOAD_CONST <code object main at 0x7faa74756390, file "f.py", line 4> LOAD_CONST 'main' MAKE_FUNCTION STORE_NAME main LOAD_CONST None RETURN_VALUE LOAD_GLOBAL Configurator LOAD_FAST settings LO...
from pyramid.config import Configurator def main(global_config, **settings): config = Configurator(settings=settings) config.add_route("home", "/") config.add_route("plain", "/plain") config.scan(".views") return config.make_wsgi_app()
data/pyramid-2.0.2/docs/quick_tutorial/request_response/tutorial/__init__.py
177
83
19,783
LOAD_CONST 0 LOAD_CONST ('VariableInfo',) IMPORT_NAME pandas_profiling.report.presentation.core IMPORT_FROM VariableInfo STORE_NAME VariableInfo POP_TOP LOAD_CONST 0 LOAD_CONST ('templates',) IMPORT_NAME pandas_profiling.report.presentation.flavours.html IMPORT_FROM templates STORE_NAME templates POP_TOP LOAD_BUILD_C...
from pandas_profiling.report.presentation.core import VariableInfo from pandas_profiling.report.presentation.flavours.html import templates class HTMLVariableInfo(VariableInfo): def render(self) -> str: return templates.template("variable_info.html").render(**self.content)
data/pandas-profiling-3.6.6/src/pandas_profiling/report/presentation/flavours/html/variable_info.py
267
83
305,476
LOAD_CONST 0 LOAD_CONST ('NaturalLanguageGenerator',) IMPORT_NAME rasa.core.nlg.generator IMPORT_FROM NaturalLanguageGenerator STORE_NAME NaturalLanguageGenerator POP_TOP LOAD_CONST 0 LOAD_CONST ('TemplatedNaturalLanguageGenerator',) IMPORT_NAME rasa.core.nlg.response IMPORT_FROM TemplatedNaturalLanguageGenerator STOR...
from rasa.core.nlg.generator import NaturalLanguageGenerator # noqa: F401 from rasa.core.nlg.response import TemplatedNaturalLanguageGenerator # noqa: F401 from rasa.core.nlg.callback import CallbackNaturalLanguageGenerator # noqa: F401
data/rasa-3.6.17/rasa/core/nlg/__init__.py
133
83
293,473
LOAD_CONST 1 LOAD_CONST ('Base',) IMPORT_NAME base IMPORT_FROM Base STORE_NAME Base POP_TOP LOAD_BUILD_CLASS LOAD_CONST <code object LDAP at 0x7fab82363ed0, file "f.py", line 4> LOAD_CONST 'LDAP' MAKE_FUNCTION LOAD_CONST 'LDAP' LOAD_NAME Base CALL_FUNCTION STORE_NAME LDAP LOAD_CONST None RETURN_VALUE LOAD_NAME __name...
from .base import Base class LDAP(Base): endpoint = "/ldap" def sync_ldap(self): return self.client.post(self.endpoint + "/sync") def test_ldap_config(self): return self.client.post(self.endpoint + "/test")
data/mattermostdriver-7.3.2/src/mattermostdriver/endpoints/ldap.py
295
83
384,669
LOAD_CONST 0 LOAD_CONST ('Annotated', 'Union') IMPORT_NAME typing IMPORT_FROM Annotated STORE_NAME Annotated IMPORT_FROM Union STORE_NAME Union POP_TOP LOAD_CONST 0 LOAD_CONST ('FastAPI', 'Query') IMPORT_NAME fastapi IMPORT_FROM FastAPI STORE_NAME FastAPI IMPORT_FROM Query STORE_NAME Query POP_TOP LOAD_NAME FastAPI C...
from typing import Annotated, Union from fastapi import FastAPI, Query app = FastAPI() @app.get("/items/") async def read_items(q: Annotated[Union[list[str], None], Query()] = None): query_items = {"q": q} return query_items
data/fastapi-0.109.2/docs_src/query_params_str_validations/tutorial011_an_py39.py
220
83
142,655
LOAD_CONST 0 LOAD_CONST None IMPORT_NAME os STORE_NAME os LOAD_NAME os LOAD_ATTR path LOAD_METHOD dirname LOAD_NAME __file__ CALL_METHOD STORE_NAME DIR LOAD_CONST <code object get_test_dirs at 0x7fabdc1d0c00, file "f.py", line 9> LOAD_CONST 'get_test_dirs' MAKE_FUNCTION STORE_NAME get_test_dirs LOAD_CONST None RETURN...
import os DIR = os.path.dirname(__file__) """ This directory and every sub directory contains tests """ def get_test_dirs(): dirs = [] for path, _, _ in os.walk(DIR): dirs.append(os.path.normpath(path)) return dirs
data/pyinstaller-hooks-contrib-2024.1/src/_pyinstaller_hooks_contrib/tests/__init__.py
180
83
282,037
LOAD_CONST 0 LOAD_CONST ('find_packages',) IMPORT_NAME setuptools IMPORT_FROM find_packages STORE_NAME find_packages POP_TOP LOAD_CONST 0 LOAD_CONST ('setup',) IMPORT_NAME setuptools IMPORT_FROM setup STORE_NAME setup POP_TOP LOAD_NAME setup LOAD_CONST 'eggsample' LOAD_CONST 'pluggy>=0.3,<1.0' LOAD_CONST 'console_...
from setuptools import find_packages from setuptools import setup setup( name="eggsample", install_requires="pluggy>=0.3,<1.0", entry_points={"console_scripts": ["eggsample=eggsample.host:main"]}, packages=find_packages(), )
data/pluggy-1.4.0/docs/examples/eggsample/setup.py
142
83
234,991
LOAD_CONST 0 LOAD_CONST ('*',) IMPORT_NAME azure.cli.core.aaz IMPORT_STAR LOAD_NAME register_command_group LOAD_CONST 'network express-route peering connection ipv6-config' CALL_FUNCTION LOAD_BUILD_CLASS LOAD_CONST <code object __CMDGroup at 0x7faad4222db0, file "f.py", line 4> LOAD_CONST '__CMDGroup' MAKE_FUNCTION L...
from azure.cli.core.aaz import * @register_command_group( "network express-route peering connection ipv6-config", ) class __CMDGroup(AAZCommandGroup): """Manage ExpressRoute circuit connection configs.""" pass __all__ = ["__CMDGroup"]
data/azure-cli-2.57.0/azure/cli/command_modules/network/aaz/latest/network/express_route/peering/connection/ipv6_config/__cmd_group.py
191
83
377,880
LOAD_CONST 0 LOAD_CONST None IMPORT_NAME numpy STORE_NAME np LOAD_CONST 0 LOAD_CONST ('OpRun',) IMPORT_NAME onnx.reference.op_run IMPORT_FROM OpRun STORE_NAME OpRun POP_TOP LOAD_BUILD_CLASS LOAD_CONST <code object Selu at 0x7fab70078540, file "f.py", line 6> LOAD_CONST 'Selu' MAKE_FUNCTION LOAD_CONST 'Selu' LOAD_NAME...
import numpy as np from onnx.reference.op_run import OpRun class Selu(OpRun): def _run(self, x, alpha=None, gamma=None): # type: ignore return (np.where(x > 0, x, np.exp(x) * alpha - alpha) * gamma,)
data/onnxoptimizer-0.3.13/third_party/onnx/onnx/reference/ops/op_selu.py
251
83
85,574
LOAD_CONST 0 LOAD_CONST ('ClientValue',) IMPORT_NAME office365.runtime.client_value IMPORT_FROM ClientValue STORE_NAME ClientValue POP_TOP LOAD_CONST 0 LOAD_CONST ('SharingLinkInfo',) IMPORT_NAME office365.sharepoint.sharing.links.info IMPORT_FROM SharingLinkInfo STORE_NAME SharingLinkInfo POP_TOP LOAD_BUILD_CLASS LO...
from office365.runtime.client_value import ClientValue from office365.sharepoint.sharing.links.info import SharingLinkInfo class SharingLinkDefaultTemplate(ClientValue): """""" def __init__(self, link_details=SharingLinkInfo()): self.linkDetails = link_details
data/Office365-REST-Python-Client-2.5.5/office365/sharepoint/sharing/links/default_template.py
274
83
189,266
LOAD_CONST 1 LOAD_CONST ('JoinQuery',) IMPORT_NAME join_query IMPORT_FROM JoinQuery STORE_NAME JoinQuery POP_TOP LOAD_CONST 1 LOAD_CONST ('RangeQuery',) IMPORT_NAME range_query IMPORT_FROM RangeQuery STORE_NAME RangeQuery POP_TOP LOAD_CONST 1 LOAD_CONST ('KNNQuery',) IMPORT_NAME knn_query IMPORT_FROM KNNQuery STORE_N...
from .join_query import JoinQuery from .range_query import RangeQuery from .knn_query import KNNQuery from .join_query_raw import JoinQueryRaw from .range_query_raw import RangeQueryRaw __all__ = ["JoinQuery", "RangeQuery", "KNNQuery", "JoinQueryRaw", "RangeQueryRaw"]
data/apache-sedona-1.5.1/sedona/core/spatialOperator/__init__.py
194
83
335,150
LOAD_CONST 'This illustrates the basic functionality of notify2 - creating and displaying\na notification message.\n' STORE_NAME __doc__ LOAD_CONST 0 LOAD_CONST None IMPORT_NAME notify2 STORE_NAME notify2 LOAD_NAME notify2 LOAD_METHOD init LOAD_CONST 'Demo application' CALL_METHOD POP_TOP LOAD_NAME notify2 LOAD_METH...
"""This illustrates the basic functionality of notify2 - creating and displaying a notification message. """ import notify2 notify2.init("Demo application") n = notify2.Notification( "Summary", "Body text goes here", "notification-message-im" ) # A stock icon name. For more icon n.show()
data/notify2-0.3.1/examples/basic.py
116
83
146,580
LOAD_CONST 0 LOAD_CONST None IMPORT_NAME time STORE_NAME time LOAD_CONST <code object application at 0x7fab5408f660, 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/pyuwsgi-2.0.23.post0/tests/cpubound_async.py
179
83
293,893
LOAD_CONST '\n**Left hook**\nTest data standard library\n' STORE_NAME __doc__ LOAD_CONST 0 LOAD_CONST ('absolute_import',) IMPORT_NAME __future__ IMPORT_FROM absolute_import STORE_NAME absolute_import POP_TOP LOAD_CONST 0 LOAD_CONST ('Hook',) IMPORT_NAME tests.testdata.parents IMPORT_FROM Hook STORE_NAME Hook POP_TOP...
""" **Left hook** Test data standard library """ from __future__ import absolute_import from tests.testdata.parents import Hook class Left(Hook): """Dummy left hook""" _alias_ = "left" def hook(self): """Throw hook""" return self._alias_
data/pluginlib-0.9.1/tests/testdata/lib/hooks/left.py
253
83
292,615
LOAD_CONST '\n**Right hook**\nTest data standard library\n' STORE_NAME __doc__ LOAD_CONST 0 LOAD_CONST ('absolute_import',) IMPORT_NAME __future__ IMPORT_FROM absolute_import STORE_NAME absolute_import POP_TOP LOAD_CONST 0 LOAD_CONST ('Hook',) IMPORT_NAME tests.testdata.parents IMPORT_FROM Hook STORE_NAME Hook POP_TO...
""" **Right hook** Test data standard library """ from __future__ import absolute_import from tests.testdata.parents import Hook class Right(Hook): """Dummy right hook""" _alias_ = "right" def hook(self): """Throw hook""" return self._alias_
data/pluginlib-0.9.1/tests/testdata/lib/hooks/right.py
253
83
292,614
LOAD_CONST 0 LOAD_CONST ('degradation_bsrgan_variant',) IMPORT_NAME ldm.modules.image_degradation.bsrgan IMPORT_FROM degradation_bsrgan_variant STORE_NAME degradation_fn_bsr POP_TOP LOAD_CONST 0 LOAD_CONST ('degradation_bsrgan_variant',) IMPORT_NAME ldm.modules.image_degradation.bsrgan_light IMPORT_FROM degradation_bs...
from ldm.modules.image_degradation.bsrgan import ( degradation_bsrgan_variant as degradation_fn_bsr, ) from ldm.modules.image_degradation.bsrgan_light import ( degradation_bsrgan_variant as degradation_fn_bsr_light, )
data/stable-diffusion-sdkit-2.1.5/ldm/modules/image_degradation/__init__.py
120
83
106,654
LOAD_CONST 'thread' STORE_NAME WORKER_THREAD LOAD_CONST 'greenlet' STORE_NAME WORKER_GREENLET LOAD_CONST 'process' STORE_NAME WORKER_PROCESS LOAD_NAME WORKER_THREAD LOAD_NAME WORKER_GREENLET LOAD_NAME WORKER_PROCESS BUILD_TUPLE STORE_NAME WORKER_TYPES LOAD_BUILD_CLASS LOAD_CONST <code object EmptyData at 0x7fabdc1d...
WORKER_THREAD = "thread" WORKER_GREENLET = "greenlet" WORKER_PROCESS = "process" WORKER_TYPES = (WORKER_THREAD, WORKER_GREENLET, WORKER_PROCESS) class EmptyData(object): pass
data/huey-2.5.0/huey/constants.py
176
83
379,472
SETUP_EXCEPT to 18 LOAD_CONST 1 LOAD_CONST ('__version__',) IMPORT_NAME version IMPORT_FROM __version__ STORE_NAME __version__ POP_TOP POP_BLOCK JUMP_FORWARD to 38 DUP_TOP LOAD_NAME ImportError COMPARE_OP exception match POP_JUMP_IF_FALSE POP_TOP POP_TOP POP_TOP POP_EXCEPT JUMP_FORWARD to 38 END_FINALLY LOAD_CONST ...
try: from .version import __version__ except ImportError: pass from . import ( constants, data, learners, models, optimization, predictor, problem_types, utils, ) from .predictor import MultiModalPredictor from .utils import download
data/autogluon.multimodal-1.0.0/src/autogluon/multimodal/__init__.py
234
83
78,620
LOAD_CONST '\nAssessment API Errors\n' STORE_NAME __doc__ LOAD_CONST 0 LOAD_CONST ('AssessmentError',) IMPORT_NAME openassessment.assessment.errors IMPORT_FROM AssessmentError STORE_NAME AssessmentError POP_TOP LOAD_BUILD_CLASS LOAD_CONST <code object InvalidStateToAssess at 0x7f8e44ccfc00, file "f.py", line 8> LOAD_...
""" Assessment API Errors """ from openassessment.assessment.errors import AssessmentError class InvalidStateToAssess(AssessmentError): pass class ReviewerMustHaveSubmittedException(InvalidStateToAssess): pass class ServerClientUUIDMismatchException(AssessmentError): pass
data/ora2-6.1.0/openassessment/xblock/apis/assessments/errors.py
395
83
116,213
LOAD_CONST 0 LOAD_CONST ('Optional',) IMPORT_NAME typing IMPORT_FROM Optional STORE_NAME Optional POP_TOP LOAD_CONST 0 LOAD_CONST ('Observable', 'abc', 'timer', 'typing') IMPORT_NAME reactivex IMPORT_FROM Observable STORE_NAME Observable IMPORT_FROM abc STORE_NAME abc IMPORT_FROM timer STORE_NAME timer IMPORT_FROM typ...
from typing import Optional from reactivex import Observable, abc, timer, typing def interval_( period: typing.RelativeTime, scheduler: Optional[abc.SchedulerBase] = None ) -> Observable[int]: return timer(period, period, scheduler) __all__ = ["interval_"]
data/reactivex-4.0.4/reactivex/observable/interval.py
211
83
143,813
LOAD_CONST 0 LOAD_CONST None IMPORT_NAME sys STORE_NAME sys LOAD_CONST 0 LOAD_CONST None IMPORT_NAME os STORE_NAME os LOAD_CONST 0 LOAD_CONST ('glob',) IMPORT_NAME glob IMPORT_FROM glob STORE_NAME glob POP_TOP LOAD_NAME glob LOAD_NAME os LOAD_ATTR path LOAD_METHOD join LOAD_NAME sys LOAD_ATTR argv LOAD_CONST 1 BINARY...
import sys, os from glob import glob files = glob(os.path.join(sys.argv[1], "*.tmp")) assert len(files) == 1 with open(files[0]) as ifile, open(sys.argv[2], "w") as ofile: ofile.write(ifile.read())
data/meson-1.3.2/test cases/common/71 ctarget dependency/gen2.py
220
83
82,033
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 'treebeard.tests.settings...
import os import sys if __name__ == "__main__": os.environ.setdefault("DJANGO_SETTINGS_MODULE", "treebeard.tests.settings") from django.core.management import execute_from_command_line execute_from_command_line(sys.argv)
data/django-treebeard-4.7.1/treebeard/tests/manage.py
157
83
82,991
LOAD_CONST 'Auto-generated file, do not edit by hand. 58 metadata' STORE_NAME __doc__ LOAD_CONST 2 LOAD_CONST ('NumberFormat',) IMPORT_NAME phonemetadata IMPORT_FROM NumberFormat STORE_NAME NumberFormat POP_TOP LOAD_NAME NumberFormat LOAD_CONST '(\\d{3})(\\d{3})(\\d{4})' LOAD_CONST '\\1 \\2 \\3' LOAD_CONST ('pattern'...
"""Auto-generated file, do not edit by hand. 58 metadata""" from ..phonemetadata import NumberFormat PHONE_ALT_FORMAT_58 = [ NumberFormat(pattern="(\\d{3})(\\d{3})(\\d{4})", format="\\1 \\2 \\3") ]
data/phonenumbers-8.13.30/phonenumbers/data/alt_format_58.py
117
83
122,688
LOAD_CONST 0 LOAD_CONST ('*',) IMPORT_NAME azure.cli.core.aaz IMPORT_STAR LOAD_NAME register_command_group LOAD_CONST 'afd log-analytic resource' CALL_FUNCTION LOAD_BUILD_CLASS LOAD_CONST <code object __CMDGroup at 0x7fab415056f0, file "f.py", line 4> LOAD_CONST '__CMDGroup' MAKE_FUNCTION LOAD_CONST '__CMDGroup' LOA...
from azure.cli.core.aaz import * @register_command_group( "afd log-analytic resource", ) class __CMDGroup(AAZCommandGroup): """Manage endpoints and custom domains available for AFD log analysis.""" pass __all__ = ["__CMDGroup"]
data/azure-cli-2.57.0/azure/cli/command_modules/cdn/aaz/latest/afd/log_analytic/resource/__cmd_group.py
193
83
375,226
LOAD_CONST (None,) LOAD_CONST <code object namespaced at 0x7fab0039c930, file "f.py", line 1> LOAD_CONST 'namespaced' MAKE_FUNCTION STORE_NAME namespaced LOAD_CONST None RETURN_VALUE LOAD_GLOBAL getattr LOAD_FAST obj LOAD_CONST 'namespace' LOAD_CONST None CALL_FUNCTION JUMP_IF_TRUE_OR_POP LOAD_FAST namespace STORE_FAS...
def namespaced(obj, tagname, namespace=None): """ Utility to create a namespaced tag for an object """ namespace = getattr(obj, "namespace", None) or namespace if namespace is not None: tagname = "{%s}%s" % (namespace, tagname) return tagname
data/openpyxl-3.1.2/openpyxl/descriptors/namespace.py
128
83
444,405
LOAD_CONST 0 LOAD_CONST None IMPORT_NAME dill STORE_NAME dill LOAD_CONST 0 LOAD_CONST None IMPORT_NAME progressbar STORE_NAME progressbar LOAD_CONST <code object test_dill at 0x7f8e447b2c90, file "f.py", line 5> LOAD_CONST 'test_dill' MAKE_FUNCTION STORE_NAME test_dill LOAD_CONST None RETURN_VALUE LOAD_GLOBAL progre...
import dill # type: ignore import progressbar def test_dill(): bar = progressbar.ProgressBar() assert bar._started is False assert bar._finished is False assert dill.pickles(bar) is False assert bar._started is False assert bar._finished is False
data/progressbar2-4.3.2/tests/test_dill_pickle.py
231
83
118,126
LOAD_CONST 0 LOAD_CONST ('cloud',) IMPORT_NAME openstack IMPORT_FROM cloud STORE_NAME openstack POP_TOP LOAD_NAME openstack LOAD_ATTR enable_logging LOAD_CONST True LOAD_CONST ('debug',) CALL_FUNCTION POP_TOP LOAD_NAME openstack LOAD_ATTR connect LOAD_CONST 'my-vexxhost' LOAD_CONST 'ca-ymq-1' LOAD_CONST ('cloud', 're...
from openstack import cloud as openstack openstack.enable_logging(debug=True) cloud = openstack.connect(cloud="my-vexxhost", region_name="ca-ymq-1") cloud.get_image("Ubuntu 16.04.1 LTS [2017-03-03]")
data/openstacksdk-2.1.0/examples/cloud/debug-logging.py
132
83
284,793
LOAD_CONST 0 LOAD_CONST None IMPORT_NAME datetime STORE_NAME datetime LOAD_BUILD_CLASS LOAD_CONST <code object DateTimeFormatter at 0x7fa6ec8a4660, file "f.py", line 4> LOAD_CONST 'DateTimeFormatter' MAKE_FUNCTION LOAD_CONST 'DateTimeFormatter' CALL_FUNCTION STORE_NAME DateTimeFormatter LOAD_CONST None RETURN_VALUE L...
import datetime class DateTimeFormatter: @staticmethod def format_datetime(date_time): if date_time is None: return None if isinstance(date_time, datetime.datetime): return date_time.isoformat() else: raise ValueError("Input is not a valid datetime o...
data/acceldata_sdk-3.0.0/acceldata_sdk/datetime_utils.py
243
83
47,246