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 ('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 WagtailStyleGuideAppConfig at 0x7fab00...
from django.apps import AppConfig from django.utils.translation import gettext_lazy as _ class WagtailStyleGuideAppConfig(AppConfig): name = "wagtail.contrib.styleguide" label = "wagtailstyleguide" verbose_name = _("Wagtail style guide")
data/wagtail-6.0.1/wagtail/contrib/styleguide/apps.py
234
82
199,931
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/openstack/__init__.py
243
82
159,327
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/gcp/__init__.py
243
82
158,974
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/digitalocean/__init__.py
243
82
159,360
LOAD_CONST 0 LOAD_CONST ('*',) IMPORT_NAME azure.cli.core.aaz IMPORT_STAR LOAD_NAME register_command_group LOAD_CONST 'network vnet-gateway ipsec-policy' CALL_FUNCTION LOAD_BUILD_CLASS LOAD_CONST <code object __CMDGroup at 0x7fab54036540, file "f.py", line 4> LOAD_CONST '__CMDGroup' MAKE_FUNCTION LOAD_CONST '__CMDGro...
from azure.cli.core.aaz import * @register_command_group( "network vnet-gateway ipsec-policy", ) class __CMDGroup(AAZCommandGroup): """Manage virtual network gateway IPSec policies.""" pass __all__ = ["__CMDGroup"]
data/azure-cli-2.57.0/azure/cli/command_modules/network/aaz/profile_2020_09_01_hybrid/network/vnet_gateway/ipsec_policy/__cmd_group.py
192
82
378,800
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/module_loading/loaders/__init__.py
243
82
158,824
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/alicloud/__init__.py
243
82
159,402
LOAD_CONST 'A module.' STORE_NAME __doc__ LOAD_CONST 0 LOAD_CONST ('AnsibleModule',) IMPORT_NAME ansible.module_utils.basic IMPORT_FROM AnsibleModule STORE_NAME AnsibleModule POP_TOP LOAD_CONST None LOAD_CONST ('return',) BUILD_CONST_KEY_MAP LOAD_CONST <code object main at 0x7fab425c39c0, file "f.py", line 6> LOAD_CO...
"""A module.""" from ansible.module_utils.basic import AnsibleModule def main() -> None: """Execute module.""" module = AnsibleModule({}) module.exit_json(msg="Hello 2!") if __name__ == "__main__": main()
data/ansible-lint-24.2.0/test/local-content/collections/ansible_collections/testns/test_collection/plugins/modules/test_module_2.py
180
82
290,558
LOAD_CONST 'A module.' STORE_NAME __doc__ LOAD_CONST 0 LOAD_CONST ('AnsibleModule',) IMPORT_NAME ansible.module_utils.basic IMPORT_FROM AnsibleModule STORE_NAME AnsibleModule POP_TOP LOAD_CONST None LOAD_CONST ('return',) BUILD_CONST_KEY_MAP LOAD_CONST <code object main at 0x7fab425c3c00, file "f.py", line 6> LOAD_CO...
"""A module.""" from ansible.module_utils.basic import AnsibleModule def main() -> None: """Execute module.""" module = AnsibleModule({}) module.exit_json(msg="Hello 3!") if __name__ == "__main__": main()
data/ansible-lint-24.2.0/test/local-content/test-roles-failed-complete/roles/role3/library/test_module_3_failed_complete.py
180
82
290,559
LOAD_CONST 'A module.' STORE_NAME __doc__ LOAD_CONST 0 LOAD_CONST ('AnsibleModule',) IMPORT_NAME ansible.module_utils.basic IMPORT_FROM AnsibleModule STORE_NAME AnsibleModule POP_TOP LOAD_CONST None LOAD_CONST ('return',) BUILD_CONST_KEY_MAP LOAD_CONST <code object main at 0x7fab425c36f0, file "f.py", line 6> LOAD_CO...
"""A module.""" from ansible.module_utils.basic import AnsibleModule def main() -> None: """Execute module.""" module = AnsibleModule({}) module.exit_json(msg="Hello 1!") if __name__ == "__main__": main()
data/ansible-lint-24.2.0/test/local-content/test-roles-failed-complete/roles/role1/library/test_module_1_failed_complete.py
180
82
290,561
LOAD_CONST 'A module.' STORE_NAME __doc__ LOAD_CONST 0 LOAD_CONST ('AnsibleModule',) IMPORT_NAME ansible.module_utils.basic IMPORT_FROM AnsibleModule STORE_NAME AnsibleModule POP_TOP LOAD_CONST None LOAD_CONST ('return',) BUILD_CONST_KEY_MAP LOAD_CONST <code object main at 0x7fab425c3c00, file "f.py", line 6> LOAD_CO...
"""A module.""" from ansible.module_utils.basic import AnsibleModule def main() -> None: """Execute module.""" module = AnsibleModule({}) module.exit_json(msg="Hello 3!") if __name__ == "__main__": main()
data/ansible-lint-24.2.0/test/local-content/test-roles-failed/roles/role3/library/test_module_3_failed.py
180
82
290,562
LOAD_CONST 'A module.' STORE_NAME __doc__ LOAD_CONST 0 LOAD_CONST ('AnsibleModule',) IMPORT_NAME ansible.module_utils.basic IMPORT_FROM AnsibleModule STORE_NAME AnsibleModule POP_TOP LOAD_CONST None LOAD_CONST ('return',) BUILD_CONST_KEY_MAP LOAD_CONST <code object main at 0x7fab425c3780, file "f.py", line 6> LOAD_CO...
"""A module.""" from ansible.module_utils.basic import AnsibleModule def main() -> None: """Execute module.""" module = AnsibleModule({}) module.exit_json(msg="Hello 1!") if __name__ == "__main__": main()
data/ansible-lint-24.2.0/test/local-content/test-roles-failed/roles/role1/library/test_module_1_failed.py
180
82
290,564
LOAD_CONST 'A module.' STORE_NAME __doc__ LOAD_CONST 0 LOAD_CONST ('AnsibleModule',) IMPORT_NAME ansible.module_utils.basic IMPORT_FROM AnsibleModule STORE_NAME AnsibleModule POP_TOP LOAD_CONST None LOAD_CONST ('return',) BUILD_CONST_KEY_MAP LOAD_CONST <code object main at 0x7fab425c3c00, file "f.py", line 6> LOAD_CO...
"""A module.""" from ansible.module_utils.basic import AnsibleModule def main() -> None: """Execute module.""" module = AnsibleModule({}) module.exit_json(msg="Hello 3!") if __name__ == "__main__": main()
data/ansible-lint-24.2.0/test/local-content/test-roles-success/roles/role3/library/test_module_3_success.py
180
82
290,565
LOAD_CONST 'A module.' STORE_NAME __doc__ LOAD_CONST 0 LOAD_CONST ('AnsibleModule',) IMPORT_NAME ansible.module_utils.basic IMPORT_FROM AnsibleModule STORE_NAME AnsibleModule POP_TOP LOAD_CONST None LOAD_CONST ('return',) BUILD_CONST_KEY_MAP LOAD_CONST <code object main at 0x7fab425c3030, file "f.py", line 6> LOAD_CO...
"""A module.""" from ansible.module_utils.basic import AnsibleModule def main() -> None: """Execute module.""" module = AnsibleModule({}) module.exit_json(msg="Hello 1!") if __name__ == "__main__": main()
data/ansible-lint-24.2.0/test/local-content/test-roles-success/roles/role1/library/test_module_1_success.py
180
82
290,567
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/panos/__init__.py
243
82
159,444
LOAD_CONST 0 LOAD_CONST ('TestCase', 'min_sdk_level') IMPORT_NAME PyObjCTools.TestSupport IMPORT_FROM TestCase STORE_NAME TestCase IMPORT_FROM min_sdk_level STORE_NAME min_sdk_level POP_TOP LOAD_CONST 0 LOAD_CONST None IMPORT_NAME CoreML STORE_NAME CoreML LOAD_BUILD_CLASS LOAD_CONST <code object TestMLDictionaryFeatu...
from PyObjCTools.TestSupport import TestCase, min_sdk_level import CoreML # noqa: F401 class TestMLDictionaryFeatureProvider(TestCase): @min_sdk_level("10.13") def testProtocols(self): self.assertProtocolExists("MLFeatureProvider")
data/pyobjc-framework-CoreML-10.1/PyObjCTest/test_mlfeatureprovider.py
274
82
220,058
LOAD_CONST 1 LOAD_CONST ('flexible_shape_utils', 'optimization_utils', 'printer', 'quantization_utils', 'spec_inspection_utils', 'update_optimizer_utils', 'utils') IMPORT_NAME IMPORT_FROM flexible_shape_utils STORE_NAME flexible_shape_utils IMPORT_FROM optimization_utils STORE_NAME optimization_utils IMPORT_FROM printe...
from . import ( flexible_shape_utils, optimization_utils, printer, quantization_utils, spec_inspection_utils, update_optimizer_utils, utils, ) from .builder import NeuralNetworkBuilder from .update_optimizer_utils import AdamParams, SgdParams
data/coremltools-7.1/coremltools/models/neural_network/__init__.py
219
82
447,095
LOAD_CONST 'LiveCheck - End-to-end testing of asynchronous systems.' STORE_NAME __doc__ LOAD_CONST 1 LOAD_CONST ('LiveCheck',) IMPORT_NAME app IMPORT_FROM LiveCheck STORE_NAME LiveCheck POP_TOP LOAD_CONST 1 LOAD_CONST ('Case',) IMPORT_NAME case IMPORT_FROM Case STORE_NAME Case POP_TOP LOAD_CONST 1 LOAD_CONST ('curre...
"""LiveCheck - End-to-end testing of asynchronous systems.""" from .app import LiveCheck from .case import Case from .locals import current_test from .runners import TestRunner from .signals import Signal __all__ = ["LiveCheck", "Case", "Signal", "TestRunner", "current_test"]
data/faust-streaming-0.10.22/faust/livecheck/__init__.py
191
82
77,451
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/api/_v1/keras/datasets/reuters/__init__.py
162
82
165,234
LOAD_CONST 0 LOAD_CONST None IMPORT_NAME random STORE_NAME random LOAD_CONST (8,) LOAD_CONST <code object rand_hex at 0x7fab822c5660, file "f.py", line 4> LOAD_CONST 'rand_hex' MAKE_FUNCTION STORE_NAME rand_hex LOAD_CONST None RETURN_VALUE LOAD_CONST '%0{}x' LOAD_METHOD format LOAD_FAST length CALL_METHOD LOAD_GLOBAL...
import random def rand_hex(length=8): """ Create a random hex string of a specific length performantly. :param int length: length of hex string to generate :return: random hex string """ return "%0{}x".format(length) % random.randrange(16**length)
data/pytutils-0.4.1/pytutils/rand.py
114
82
209,652
LOAD_CONST '\nWidgets to be used in the enterprise djangoapp.\n' STORE_NAME __doc__ LOAD_CONST 0 LOAD_CONST ('Input',) IMPORT_NAME django.forms.widgets IMPORT_FROM Input STORE_NAME Input POP_TOP LOAD_BUILD_CLASS LOAD_CONST <code object SubmitInput at 0x7fab41f12c00, file "f.py", line 8> LOAD_CONST 'SubmitInput' MAKE_...
""" Widgets to be used in the enterprise djangoapp. """ from django.forms.widgets import Input class SubmitInput(Input): """ Widget for input type field """ input_type = "submit" template_name = "django/forms/widgets/text.html"
data/edx-enterprise-4.12.1/enterprise/admin/widgets.py
198
82
91,956
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.gd...
import sys from osgeo.gdal import UseExceptions, deprecation_warn from osgeo_utils.gdalmove import * # noqa from osgeo_utils.gdalmove import main UseExceptions() deprecation_warn("gdalmove") sys.exit(main(sys.argv))
data/GDAL-3.8.4/gdal-utils/scripts/gdalmove.py
174
82
205,260
LOAD_CONST 0 LOAD_CONST ('Button',) IMPORT_NAME wagtail.admin.widgets IMPORT_FROM Button STORE_NAME Button POP_TOP LOAD_BUILD_CLASS LOAD_CONST <code object UserListingButton at 0x7faa7c16a030, file "f.py", line 4> LOAD_CONST 'UserListingButton' MAKE_FUNCTION LOAD_CONST 'UserListingButton' LOAD_NAME Button CALL_FUNCTIO...
from wagtail.admin.widgets import Button class UserListingButton(Button): def __init__(self, label, url, classname="", **kwargs): classname = f"{classname} button button-small".strip() super().__init__(label, url, classname=classname, **kwargs)
data/wagtail-6.0.1/wagtail/users/widgets.py
277
82
199,784
LOAD_CONST '\nclint.textui\n~~~~~~~~~~~~\n\nThis module provides the text output helper system.\n\n' STORE_NAME __doc__ LOAD_CONST 0 LOAD_CONST None IMPORT_NAME sys STORE_NAME sys LOAD_NAME sys LOAD_ATTR platform LOAD_METHOD startswith LOAD_CONST 'win' CALL_METHOD POP_JUMP_IF_FALSE LOAD_CONST 2 LOAD_CONST ('colorama...
""" clint.textui ~~~~~~~~~~~~ This module provides the text output helper system. """ import sys if sys.platform.startswith("win"): from ..packages import colorama colorama.init() from . import colored from . import progress from . import prompt from .core import *
data/clint-0.5.1/clint/textui/__init__.py
193
82
209,617
LOAD_CONST '\nDate and time related utilities.\n' STORE_NAME __doc__ LOAD_CONST 0 LOAD_CONST ('annotations',) IMPORT_NAME __future__ IMPORT_FROM annotations STORE_NAME annotations POP_TOP LOAD_CONST 0 LOAD_CONST ('datetime',) IMPORT_NAME datetime IMPORT_FROM datetime STORE_NAME datetime POP_TOP LOAD_CONST 0 LOAD_CON...
""" Date and time related utilities. """ from __future__ import annotations from datetime import datetime from datetime import timezone def utcnow() -> datetime: """ Return the current date and time with the timezone set to UTC. """ return datetime.now(tz=timezone.utc)
data/salt-analytics-framework-0.5.0/src/saf/utils/dt.py
185
82
416,997
LOAD_CONST 0 LOAD_CONST None IMPORT_NAME AppKit STORE_NAME AppKit LOAD_CONST 0 LOAD_CONST ('TestCase', 'min_os_level') IMPORT_NAME PyObjCTools.TestSupport IMPORT_FROM TestCase STORE_NAME TestCase IMPORT_FROM min_os_level STORE_NAME min_os_level POP_TOP LOAD_BUILD_CLASS LOAD_CONST <code object TestNSLayoutGuide at 0x7...
import AppKit from PyObjCTools.TestSupport import TestCase, min_os_level class TestNSLayoutGuide(TestCase): @min_os_level("10.12") def testMethods(self): self.assertResultIsBOOL(AppKit.NSLayoutGuide.hasAmbiguousLayout)
data/pyobjc-framework-Cocoa-10.1/PyObjCTest/test_nslayoutguide.py
282
82
64,185
LOAD_CONST 0 LOAD_CONST ('*',) IMPORT_NAME azure.cli.core.aaz IMPORT_STAR LOAD_NAME register_command_group LOAD_CONST 'network vnet-gateway root-cert' CALL_FUNCTION LOAD_BUILD_CLASS LOAD_CONST <code object __CMDGroup at 0x7faa5dedbc90, file "f.py", line 4> LOAD_CONST '__CMDGroup' MAKE_FUNCTION LOAD_CONST '__CMDGroup'...
from azure.cli.core.aaz import * @register_command_group( "network vnet-gateway root-cert", ) class __CMDGroup(AAZCommandGroup): """Manage root certificates of a virtual network gateway.""" pass __all__ = ["__CMDGroup"]
data/azure-cli-2.57.0/azure/cli/command_modules/network/aaz/profile_2018_03_01_hybrid/network/vnet_gateway/root_cert/__cmd_group.py
189
82
379,016
LOAD_CONST 0 LOAD_CONST ('ClientValueCollection',) IMPORT_NAME office365.runtime.client_value_collection IMPORT_FROM ClientValueCollection STORE_NAME ClientValueCollection POP_TOP LOAD_CONST 0 LOAD_CONST ('FieldLookupValue',) IMPORT_NAME office365.sharepoint.fields.lookup_value IMPORT_FROM FieldLookupValue STORE_NAME ...
from office365.runtime.client_value_collection import ClientValueCollection from office365.sharepoint.fields.lookup_value import FieldLookupValue class FieldMultiLookupValue(ClientValueCollection): def __init__(self): super(FieldMultiLookupValue, self).__init__(FieldLookupValue)
data/Office365-REST-Python-Client-2.5.5/office365/sharepoint/fields/multi_lookup_value.py
298
82
189,193
LOAD_CONST 0 LOAD_CONST ('DeprecationRule',) IMPORT_NAME saltlint.linter.rule IMPORT_FROM DeprecationRule STORE_NAME DeprecationRule POP_TOP LOAD_BUILD_CLASS LOAD_CONST <code object StateDeprecationDockerRunning at 0x7faa761ee780, file "f.py", line 4> LOAD_CONST 'StateDeprecationDockerRunning' MAKE_FUNCTION LOAD_CONST...
from saltlint.linter.rule import DeprecationRule class StateDeprecationDockerRunning(DeprecationRule): id = "912" state = "docker.running" deprecated_since = "2017.7.0" version_added = "v0.5.0"
data/salt-lint-0.9.2/saltlint/rules/StateDeprecationDockerRunning.py
213
82
436,334
LOAD_CONST 0 LOAD_CONST None IMPORT_NAME random STORE_NAME random LOAD_CONST 0 LOAD_CONST None IMPORT_NAME re STORE_NAME re LOAD_NAME re LOAD_METHOD compile LOAD_CONST '[\\r\\n]' CALL_METHOD STORE_NAME newline_pattern LOAD_CONST <code object CreateRandomFileName at 0x7fab7016f540, file "f.py", line 7> LOAD_CONST 'Cr...
import random import re newline_pattern = re.compile(r"[\r\n]") def CreateRandomFileName(): hash = random.getrandbits(128) return "%032x" % hash def StripNewlines(string): return newline_pattern.sub("", string)
data/PyDrive-1.3.1/pydrive/test/test_util.py
215
82
292,728
LOAD_CONST 0 LOAD_CONST None IMPORT_NAME re STORE_NAME re LOAD_CONST <code object to_snake_case at 0x7fab802488a0, file "f.py", line 4> LOAD_CONST 'to_snake_case' MAKE_FUNCTION STORE_NAME to_snake_case LOAD_CONST None RETURN_VALUE LOAD_GLOBAL re LOAD_METHOD sub LOAD_CONST '(.)([A-Z][a-z]+)' LOAD_CONST '\\1_\\2' LOAD_...
import re def to_snake_case(name): s1 = re.sub("(.)([A-Z][a-z]+)", r"\1_\2", name) return re.sub("([a-z0-9])([A-Z])", r"\1_\2", s1).lower()
data/cnvrg-0.7.55/cnvrg/helpers/string_helper.py
164
82
219,377
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.gd...
import sys from osgeo.gdal import UseExceptions, deprecation_warn from osgeo_utils.gdalcompare import * # noqa from osgeo_utils.gdalcompare import main UseExceptions() deprecation_warn("gdalcompare") sys.exit(main(sys.argv))
data/GDAL-3.8.4/gdal-utils/scripts/gdalcompare.py
174
82
205,262
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/cloudformation/checks/resource/aws/__init__.py
242
82
159,934
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/arm/checks/resource/__init__.py
241
82
160,073
LOAD_CONST 0 LOAD_CONST ('TestCase',) IMPORT_NAME django.test IMPORT_FROM TestCase STORE_NAME TestCase POP_TOP LOAD_BUILD_CLASS LOAD_CONST <code object VersionTest at 0x7fab42b03420, file "f.py", line 4> LOAD_CONST 'VersionTest' MAKE_FUNCTION LOAD_CONST 'VersionTest' LOAD_NAME TestCase CALL_FUNCTION STORE_NAME Version...
from django.test import TestCase class VersionTest(TestCase): """Test presence of package version.""" def test_version(self): import bootstrap4 version = bootstrap4.__version__ version_parts = version.split(".") self.assertTrue(len(version_parts) >= 2)
data/django-bootstrap4-24.1/tests/test_version.py
269
82
293,634
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/arm/checks/parameter/__init__.py
242
82
160,081
LOAD_CONST 0 LOAD_CONST None IMPORT_NAME basemod STORE_NAME basemod LOAD_CONST 'This is data from the RT-Hook' STORE_NAME DATA_FROM_RTHOOK LOAD_BUILD_CLASS LOAD_CONST <code object _Popen at 0x7fab700aded0, file "f.py", line 6> LOAD_CONST '_Popen' MAKE_FUNCTION LOAD_CONST '_Popen' LOAD_NAME basemod LOAD_ATTR Popen CAL...
import basemod DATA_FROM_RTHOOK = "This is data from the RT-Hook" class _Popen(basemod.Popen): def __init__(self, *args, **kw): super().__init__(*args, **kw) basemod.Popen = _Popen
data/pyinstaller-6.4.0/tests/functional/specs/several-scripts/rt-hook-script.py
247
82
184,739
LOAD_CONST 0 LOAD_CONST None IMPORT_NAME warnings STORE_NAME warnings LOAD_NAME warnings LOAD_METHOD warn LOAD_NAME __name__ FORMAT_VALUE LOAD_CONST ' is deprecated in ipyparallel 7. Use ipyparallel.controller' BUILD_STRING CALL_METHOD POP_TOP LOAD_CONST 0 LOAD_CONST ('IPController', 'main') IMPORT_NAME ipyparallel.c...
import warnings warnings.warn(f"{__name__} is deprecated in ipyparallel 7. Use ipyparallel.controller") from ipyparallel.controller.app import IPController, main IPControllerApp = IPController launch_new_instance = main if __name__ == "__main__": main()
data/ipyparallel-8.6.1/ipyparallel/apps/ipcontrollerapp.py
144
82
345,688
LOAD_BUILD_CLASS LOAD_CONST <code object CustomizedPageStatus at 0x7fab701ac780, file "f.py", line 1> LOAD_CONST 'CustomizedPageStatus' MAKE_FUNCTION LOAD_CONST 'CustomizedPageStatus' CALL_FUNCTION STORE_NAME CustomizedPageStatus LOAD_CONST None RETURN_VALUE LOAD_NAME __name__ STORE_NAME __module__ LOAD_CONST 'Customi...
class CustomizedPageStatus: """Specifies the customization (ghost) status of the SPFile.""" None_ = 0 """The page was never cached.""" Uncustomized = 1 """The page is cached and has not been customized""" Customized = 2 """The page was cached but has been customized"""
data/Office365-REST-Python-Client-2.5.5/office365/sharepoint/pages/customized_page_status.py
150
82
189,273
LOAD_CONST 0 LOAD_CONST ('ChunkSeparator',) IMPORT_NAME swarms.chunkers.chunk_seperator IMPORT_FROM ChunkSeparator STORE_NAME ChunkSeparator POP_TOP LOAD_CONST 0 LOAD_CONST ('BaseChunker',) IMPORT_NAME swarms.chunkers.base_chunker IMPORT_FROM BaseChunker STORE_NAME BaseChunker POP_TOP LOAD_CONST 0 LOAD_CONST ('TextCh...
from swarms.chunkers.chunk_seperator import ChunkSeparator from swarms.chunkers.base_chunker import BaseChunker from swarms.chunkers.text_chunker import TextChunker __all__ = ["ChunkSeparator", "BaseChunker", "TextChunker"]
data/swarms-4.1.6/swarms/chunkers/__init__.py
163
83
307,806
LOAD_CONST 0 LOAD_CONST ('Iterable', 'Optional', 'Union', 'Any') IMPORT_NAME typing IMPORT_FROM Iterable STORE_NAME Iterable IMPORT_FROM Optional STORE_NAME Optional IMPORT_FROM Union STORE_NAME Union IMPORT_FROM Any STORE_NAME Any POP_TOP LOAD_CONST (None,) LOAD_NAME Iterable LOAD_NAME Any BINARY_SUBSCR LOAD_NAME Opt...
from typing import Iterable, Optional, Union, Any def max_with_default(items: Iterable[Any], default: Optional[Any] = None) -> Union[Any]: default = default or 0 items = list(items) if not items and default is not None: return default return max(items)
data/flake8_expression_complexity-0.0.11/flake8_expression_complexity/utils/iterables.py
214
83
405,641
LOAD_CONST 'Tests for tensorflow_datasets.core.resource_utils.' STORE_NAME __doc__ LOAD_CONST 0 LOAD_CONST ('resource_utils',) IMPORT_NAME tensorflow_datasets.core.utils IMPORT_FROM resource_utils STORE_NAME resource_utils POP_TOP LOAD_CONST <code object test_tfds_path at 0x7fadb5811c00, file "f.py", line 6> LOAD_CON...
"""Tests for tensorflow_datasets.core.resource_utils.""" from tensorflow_datasets.core.utils import resource_utils def test_tfds_path(): """Test the proper suffix only, since the prefix can vary.""" assert resource_utils.tfds_path().name == "tensorflow_datasets"
data/tfds-nightly-4.9.4.dev202402210044/tensorflow_datasets/core/utils/resource_utils_test.py
168
83
210,956
LOAD_CONST 0 LOAD_CONST ('TestCase', 'min_os_level') IMPORT_NAME PyObjCTools.TestSupport IMPORT_FROM TestCase STORE_NAME TestCase IMPORT_FROM min_os_level STORE_NAME min_os_level POP_TOP LOAD_CONST 0 LOAD_CONST None IMPORT_NAME NetworkExtension STORE_NAME NetworkExtension LOAD_BUILD_CLASS LOAD_CONST <code object Test...
from PyObjCTools.TestSupport import TestCase, min_os_level import NetworkExtension class TestNEAppProxyFlow(TestCase): @min_os_level("10.11") def testConstants(self): self.assertEqual(NetworkExtension.NEFilterFlowBytesMax, (1 << 64) - 1)
data/pyobjc-framework-NetworkExtension-10.1/PyObjCTest/test_nefilterflow.py
295
83
104,258
LOAD_CONST 1 LOAD_CONST ('allowlist',) IMPORT_NAME IMPORT_FROM allowlist STORE_NAME allowlist POP_TOP LOAD_CONST 1 LOAD_CONST ('gibberish',) IMPORT_NAME IMPORT_FROM gibberish STORE_NAME gibberish POP_TOP LOAD_CONST 1 LOAD_CONST ('heuristic',) IMPORT_NAME IMPORT_FROM heuristic STORE_NAME heuristic POP_TOP LOAD_CONST ...
from . import allowlist # noqa: F401 from . import gibberish # noqa: F401 from . import heuristic # noqa: F401 from . import regex # noqa: F401 from . import wordlist # noqa: F401
data/detect_secrets-1.4.0/detect_secrets/filters/__init__.py
130
83
41,125
LOAD_CONST 0 LOAD_CONST ('version',) IMPORT_NAME importlib.metadata IMPORT_FROM version STORE_NAME __version POP_TOP LOAD_CONST 0 LOAD_CONST ('create_keyfile_json', 'decode_keyfile_json', 'extract_key_from_keyfile', 'load_keyfile') IMPORT_NAME eth_keyfile.keyfile IMPORT_FROM create_keyfile_json STORE_NAME create_keyfi...
from importlib.metadata import ( version as __version, ) from eth_keyfile.keyfile import ( create_keyfile_json, decode_keyfile_json, extract_key_from_keyfile, load_keyfile, ) __version__ = __version("eth-keyfile")
data/eth-keyfile-0.7.0/eth_keyfile/__init__.py
167
83
374,175
LOAD_CONST 0 LOAD_CONST ('Enum',) IMPORT_NAME enum IMPORT_FROM Enum STORE_NAME Enum POP_TOP LOAD_BUILD_CLASS LOAD_CONST <code object JsonProperty at 0x7fab5408fed0, file "f.py", line 4> LOAD_CONST 'JsonProperty' MAKE_FUNCTION LOAD_CONST 'JsonProperty' LOAD_NAME Enum CALL_FUNCTION STORE_NAME JsonProperty LOAD_CONST Non...
from enum import Enum class JsonProperty(Enum): """ Parent class for all json property classes. Not meant to be instantiated directly, only to have a common parent type that can be used in type hints. In general, all the child enums list the properties of the corresponding objects from the json schema...
data/spdx-tools-0.8.2/src/spdx_tools/spdx/jsonschema/json_property.py
182
83
286,067
LOAD_CONST 'Demo module.' STORE_NAME __doc__ LOAD_CONST 0 LOAD_CONST None IMPORT_NAME pandas STORE_NAME pd LOAD_CONST 'http://ctgan-demo.s3.amazonaws.com/census.csv.gz' STORE_NAME DEMO_URL LOAD_CONST <code object load_demo at 0x7fab700add20, file "f.py", line 8> LOAD_CONST 'load_demo' MAKE_FUNCTION STORE_NAME load_d...
"""Demo module.""" import pandas as pd DEMO_URL = "http://ctgan-demo.s3.amazonaws.com/census.csv.gz" def load_demo(): """Load the demo.""" return pd.read_csv(DEMO_URL, compression="gzip")
data/ctgan-0.9.0/ctgan/demo.py
149
83
190,239
LOAD_CONST 0 LOAD_CONST ('NamedTuple',) IMPORT_NAME typing IMPORT_FROM NamedTuple STORE_NAME NamedTuple POP_TOP LOAD_CONST 0 LOAD_CONST ('ArrayTree',) IMPORT_NAME blackjax.types IMPORT_FROM ArrayTree STORE_NAME ArrayTree POP_TOP LOAD_BUILD_CLASS LOAD_CONST <code object AdaptationResults at 0x7fa6efc88ae0, file "f.py"...
from typing import NamedTuple from blackjax.types import ArrayTree class AdaptationResults(NamedTuple): state: ArrayTree parameters: dict class AdaptationInfo(NamedTuple): state: NamedTuple info: NamedTuple adaptation_state: NamedTuple
data/blackjax-1.1.1/blackjax/adaptation/base.py
363
83
54,304
LOAD_CONST 0 LOAD_CONST ('AppConfig',) IMPORT_NAME django.apps IMPORT_FROM AppConfig STORE_NAME AppConfig POP_TOP LOAD_CONST 0 LOAD_CONST ('plugin_dir',) IMPORT_NAME health_check.plugins IMPORT_FROM plugin_dir STORE_NAME plugin_dir POP_TOP LOAD_BUILD_CLASS LOAD_CONST <code object HealthCheckConfig at 0x7fab7016f0c0, ...
from django.apps import AppConfig from health_check.plugins import plugin_dir class HealthCheckConfig(AppConfig): name = "health_check.contrib.migrations" def ready(self): from .backends import MigrationsHealthCheck plugin_dir.register(MigrationsHealthCheck)
data/django-health-check-3.18.1/health_check/contrib/migrations/apps.py
280
83
287,477
LOAD_CONST 'InternalError.Timeout' STORE_NAME INTERNALERROR_TIMEOUT LOAD_CONST 'InvalidParameter.Name' STORE_NAME INVALIDPARAMETER_NAME LOAD_CONST 'InvalidParameter.PhoneNumber' STORE_NAME INVALIDPARAMETER_PHONENUMBER LOAD_CONST 'ResourceNotFound' STORE_NAME RESOURCENOTFOUND LOAD_CONST 'ResourceUnavailable' STORE_N...
INTERNALERROR_TIMEOUT = "InternalError.Timeout" INVALIDPARAMETER_NAME = "InvalidParameter.Name" INVALIDPARAMETER_PHONENUMBER = "InvalidParameter.PhoneNumber" RESOURCENOTFOUND = "ResourceNotFound" RESOURCEUNAVAILABLE = "ResourceUnavailable"
data/tencentcloud-sdk-python-3.0.1092/tencentcloud/smpn/v20190822/errorcodes.py
97
83
119,659
LOAD_CONST 0 LOAD_CONST ('instance',) IMPORT_NAME google.cloud.aiplatform.v1beta1.schema.predict IMPORT_FROM instance STORE_NAME instance POP_TOP LOAD_CONST 0 LOAD_CONST ('params',) IMPORT_NAME google.cloud.aiplatform.v1beta1.schema.predict IMPORT_FROM params STORE_NAME params POP_TOP LOAD_CONST 0 LOAD_CONST ('predic...
from google.cloud.aiplatform.v1beta1.schema.predict import instance from google.cloud.aiplatform.v1beta1.schema.predict import params from google.cloud.aiplatform.v1beta1.schema.predict import prediction __all__ = ( "instance", "params", "prediction", )
data/google-cloud-aiplatform-1.42.1/google/cloud/aiplatform/v1beta1/schema/predict/__init__.py
131
83
14,104
LOAD_CONST 0 LOAD_CONST ('HyperImageAugment',) IMPORT_NAME keras_tuner.src.applications.augment IMPORT_FROM HyperImageAugment STORE_NAME HyperImageAugment POP_TOP LOAD_CONST 0 LOAD_CONST ('HyperEfficientNet',) IMPORT_NAME keras_tuner.src.applications.efficientnet IMPORT_FROM HyperEfficientNet STORE_NAME HyperEfficient...
from keras_tuner.src.applications.augment import HyperImageAugment from keras_tuner.src.applications.efficientnet import HyperEfficientNet from keras_tuner.src.applications.resnet import HyperResNet from keras_tuner.src.applications.xception import HyperXception
data/keras-tuner-1.4.6/keras_tuner/src/applications/__init__.py
182
83
404,475
LOAD_CONST 0 LOAD_CONST ('SiteScriptCreationInfo',) IMPORT_NAME office365.sharepoint.sitescripts.creation_info IMPORT_FROM SiteScriptCreationInfo STORE_NAME SiteScriptCreationInfo POP_TOP LOAD_BUILD_CLASS LOAD_CONST <code object SiteScriptUpdateInfo at 0x7fab81f0b8a0, file "f.py", line 4> LOAD_CONST 'SiteScriptUpdateI...
from office365.sharepoint.sitescripts.creation_info import SiteScriptCreationInfo class SiteScriptUpdateInfo(SiteScriptCreationInfo): @property def entity_type_name(self): return ( "Microsoft.SharePoint.Utilities.WebTemplateExtensions.SiteScriptUpdateInfo" )
data/Office365-REST-Python-Client-2.5.5/office365/sharepoint/sitescripts/update_info.py
243
83
189,729
LOAD_CONST 0 LOAD_CONST ('Enum',) IMPORT_NAME enum IMPORT_FROM Enum STORE_NAME Enum POP_TOP LOAD_BUILD_CLASS LOAD_CONST <code object UserExperienceAnalyticsHealthState at 0x7fab70027420, file "f.py", line 4> LOAD_CONST 'UserExperienceAnalyticsHealthState' MAKE_FUNCTION LOAD_CONST 'UserExperienceAnalyticsHealthState' L...
from enum import Enum class UserExperienceAnalyticsHealthState(str, Enum): Unknown = ("unknown",) InsufficientData = ("insufficientData",) NeedsAttention = ("needsAttention",) MeetingGoals = ("meetingGoals",) UnknownFutureValue = ("unknownFutureValue",)
data/msgraph-sdk-1.1.0/msgraph/generated/models/user_experience_analytics_health_state.py
213
83
259,859
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 ParseComplete(BackendMessage): message_id = b"1" def __init__(self, data): BackendMessage.__init__(self) BackendMessage.register(ParseComplete)
data/vertica-python-1.3.8/vertica_python/vertica/messages/backend_messages/parse_complete.py
293
83
287,025
LOAD_CONST 0 LOAD_CONST None IMPORT_NAME Metal STORE_NAME Metal LOAD_CONST 0 LOAD_CONST ('TestCase', 'min_sdk_level') IMPORT_NAME PyObjCTools.TestSupport IMPORT_FROM TestCase STORE_NAME TestCase IMPORT_FROM min_sdk_level STORE_NAME min_sdk_level POP_TOP LOAD_BUILD_CLASS LOAD_CONST <code object TestMTLFence at 0x7fab8...
import Metal # noqa: F401 from PyObjCTools.TestSupport import TestCase, min_sdk_level class TestMTLFence(TestCase): @min_sdk_level("10.13") def test_protocols(self): self.assertProtocolExists("MTLFence")
data/pyobjc-framework-Metal-10.1/PyObjCTest/test_mtlfence.py
277
83
343,080
LOAD_CONST 0 LOAD_CONST None IMPORT_NAME os STORE_NAME os LOAD_CONST 0 LOAD_CONST None IMPORT_NAME sys STORE_NAME sys LOAD_NAME __name__ LOAD_CONST '__main__' COMPARE_OP == POP_JUMP_IF_FALSE LOAD_NAME os LOAD_ATTR environ LOAD_METHOD setdefault LOAD_CONST 'DJANGO_SETTINGS_MODULE' LOAD_CONST 'tests.testapp.settings' ...
import os import sys if __name__ == "__main__": os.environ.setdefault("DJANGO_SETTINGS_MODULE", "tests.testapp.settings") from django.core.management import execute_from_command_line execute_from_command_line(sys.argv)
data/django-extensions-3.2.3/manage.py
156
83
300,104
LOAD_BUILD_CLASS LOAD_CONST <code object _DummyLock at 0x7faa7c1f6d20, file "f.py", line 1> LOAD_CONST '_DummyLock' MAKE_FUNCTION LOAD_CONST '_DummyLock' CALL_FUNCTION STORE_NAME _DummyLock LOAD_NAME _DummyLock CALL_FUNCTION STORE_NAME _dummy_lock LOAD_CONST <code object allocate_lock at 0x7faa7c1f6540, file "f.py", ...
class _DummyLock: def __init__(self): self.acquire = self.release = self.locked = self.__noop def __noop(self, *args): return _dummy_lock = _DummyLock() def allocate_lock(): return _dummy_lock
data/python3-xlib-0.15/Xlib/support/lock.py
328
83
209,078
LOAD_CONST 0 LOAD_CONST ('Items', 'PurchaseOrderType', 'Usaddress', 'Comment', 'PurchaseOrder') IMPORT_NAME tests.fixtures.primer.order IMPORT_FROM Items STORE_NAME Items IMPORT_FROM PurchaseOrderType STORE_NAME PurchaseOrderType IMPORT_FROM Usaddress STORE_NAME Usaddress IMPORT_FROM Comment STORE_NAME Comment IMPORT_F...
from tests.fixtures.primer.order import ( Items, PurchaseOrderType, Usaddress, Comment, PurchaseOrder, ) __all__ = [ "Items", "PurchaseOrderType", "Usaddress", "Comment", "PurchaseOrder", ]
data/xsdata-24.2.1/tests/fixtures/primer/__init__.py
132
83
112,049
LOAD_CONST 1 LOAD_CONST ('PreRecordedClient',) IMPORT_NAME client IMPORT_FROM PreRecordedClient STORE_NAME PreRecordedClient POP_TOP LOAD_CONST 1 LOAD_CONST ('AsyncPreRecordedClient',) IMPORT_NAME async_client IMPORT_FROM AsyncPreRecordedClient STORE_NAME AsyncPreRecordedClient POP_TOP LOAD_CONST 1 LOAD_CONST ('Prere...
from .client import PreRecordedClient from .async_client import AsyncPreRecordedClient from .options import PrerecordedOptions from ..enums import Sentiment from .response import ( AsyncPrerecordedResponse, PrerecordedResponse, SyncPrerecordedResponse, ) from ....options import DeepgramClientOptions
data/deepgram-sdk-3.1.4/deepgram/clients/prerecorded/v1/__init__.py
238
83
80,865
LOAD_CONST "Dataset definition for opinosis.\n\nDEPRECATED!\nIf you want to use the Opinosis dataset builder class, use:\ntfds.builder_cls('opinosis')\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_impo...
"""Dataset definition for opinosis. DEPRECATED! If you want to use the Opinosis dataset builder class, use: tfds.builder_cls('opinosis') """ from tensorflow_datasets.core import lazy_builder_import Opinosis = lazy_builder_import.LazyBuilderImport("opinosis")
data/tfds-nightly-4.9.4.dev202402210044/tensorflow_datasets/summarization/opinosis.py
127
83
211,348
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 IOBluetoothUI STORE_NAME IOBluetoothUI LOAD_BUILD_CLASS LOAD_CONST <code object TestIOBluetoothObjectPushUIController at 0x7fab821c5c00, file "f.py", line...
from PyObjCTools.TestSupport import TestCase import IOBluetoothUI class TestIOBluetoothObjectPushUIController(TestCase): def test_methods(self): self.assertResultIsBOOL( IOBluetoothUI.IOBluetoothObjectPushUIController.isTransferInProgress )
data/pyobjc-framework-IOBluetoothUI-10.1/PyObjCTest/test_iobluetoothobjectpushuicontroller.py
290
83
214,497
LOAD_CONST 0 LOAD_CONST ('dirname', 'join', 'abspath') IMPORT_NAME os.path IMPORT_FROM dirname STORE_NAME dirname IMPORT_FROM join STORE_NAME join IMPORT_FROM abspath STORE_NAME abspath POP_TOP LOAD_NAME dirname LOAD_NAME dirname LOAD_NAME dirname LOAD_NAME abspath LOAD_NAME __file__ CALL_FUNCTION CALL_FUNCTION CALL_F...
from os.path import dirname, join, abspath PROJECT_ROOT = dirname(dirname(dirname(abspath(__file__)))) DATA_BASE_DIR = join(PROJECT_ROOT, "tests", "test_data") SOURCE_BASE_DIR = join(PROJECT_ROOT, "RTFDE")
data/RTFDE-0.1.1/tests/test_utils/utils.py
154
83
356,547
LOAD_CONST 0 LOAD_CONST None IMPORT_NAME asyncio STORE_NAME asyncio LOAD_NAME hasattr LOAD_NAME asyncio LOAD_CONST 'current_task' CALL_FUNCTION POP_JUMP_IF_FALSE LOAD_CONST <code object asyncio_current_task at 0x7fab8235ac00, file "f.py", line 6> LOAD_CONST 'asyncio_current_task' MAKE_FUNCTION STORE_NAME asyncio_curr...
import asyncio if hasattr(asyncio, "current_task"): def asyncio_current_task(): try: return asyncio.current_task() except RuntimeError: return None else: def asyncio_current_task(): return asyncio.Task.current_task()
data/ddtrace-2.6.3/ddtrace/contrib/asyncio/compat.py
232
83
270,545
LOAD_CONST 0 LOAD_CONST None IMPORT_NAME numpy STORE_NAME np LOAD_CONST 1 LOAD_CONST ('OpRunUnaryNum',) IMPORT_NAME _op IMPORT_FROM OpRunUnaryNum STORE_NAME OpRunUnaryNum POP_TOP LOAD_BUILD_CLASS LOAD_CONST <code object Softsign at 0x7fab4278aa50, file "f.py", line 6> LOAD_CONST 'Softsign' MAKE_FUNCTION LOAD_CONST 'S...
import numpy as np from ._op import OpRunUnaryNum class Softsign(OpRunUnaryNum): def _run(self, X): # type: ignore tmp = np.abs(X) tmp += 1 np.divide(X, tmp, out=tmp) return (tmp,)
data/onnxoptimizer-0.3.13/third_party/onnx/onnx/reference/ops/op_softsign.py
254
83
85,629
LOAD_CONST 0 LOAD_CONST ('check',) IMPORT_NAME pytest_check IMPORT_FROM check STORE_NAME check POP_TOP LOAD_CONST <code object test_baseline at 0x7fab541051e0, file "f.py", line 4> LOAD_CONST 'test_baseline' MAKE_FUNCTION STORE_NAME test_baseline LOAD_CONST <code object test_message at 0x7fab54105810, file "f.py", li...
from pytest_check import check def test_baseline(): a, b = 1, 2 check.equal(a, b) def test_message(): a, b = 1, 2 check.equal(a, b, f"comment about a={a} != b={b}")
data/pytest_check-2.3.1/examples/test_example_message.py
236
83
186,438
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 sys LOAD_ATTR path LOAD_METHOD insert LOAD_CONST 0 LOAD_NAME os LOAD_METHOD getcwd CALL_METHOD CALL_METHOD POP_TOP LOAD_CONST 'amqp://guest:guest@localhost:5672//' STORE_NAME broker_url LO...
import os import sys sys.path.insert(0, os.getcwd()) broker_url = "amqp://guest:guest@localhost:5672//" result_backend = "amqp" result_expires = 30 * 60 imports = ("tasks",)
data/celery-5.3.6/examples/gevent/celeryconfig.py
127
83
69,843
LOAD_CONST 0 LOAD_CONST ('annotations',) IMPORT_NAME __future__ IMPORT_FROM annotations STORE_NAME annotations POP_TOP LOAD_CONST 0 LOAD_CONST ('IntEnum',) IMPORT_NAME enum IMPORT_FROM IntEnum STORE_NAME IntEnum POP_TOP LOAD_BUILD_CLASS LOAD_CONST <code object WeekDay at 0x7fab41b736f0, file "f.py", line 6> LOAD_CONS...
from __future__ import annotations from enum import IntEnum class WeekDay(IntEnum): MONDAY = 0 TUESDAY = 1 WEDNESDAY = 2 THURSDAY = 3 FRIDAY = 4 SATURDAY = 5 SUNDAY = 6
data/pendulum-3.0.0/src/pendulum/day.py
222
83
234,553
LOAD_CONST 0 LOAD_CONST ('Enum',) IMPORT_NAME enum IMPORT_FROM Enum STORE_NAME Enum POP_TOP LOAD_BUILD_CLASS LOAD_CONST <code object DayOfWeek at 0x7fab4298e1e0, file "f.py", line 4> LOAD_CONST 'DayOfWeek' MAKE_FUNCTION LOAD_CONST 'DayOfWeek' LOAD_NAME str LOAD_NAME Enum CALL_FUNCTION STORE_NAME DayOfWeek LOAD_CONST N...
from enum import Enum class DayOfWeek(str, Enum): Sunday = ("sunday",) Monday = ("monday",) Tuesday = ("tuesday",) Wednesday = ("wednesday",) Thursday = ("thursday",) Friday = ("friday",) Saturday = ("saturday",)
data/msgraph-sdk-1.1.0/msgraph/generated/models/day_of_week.py
201
83
259,626
LOAD_CONST 0 LOAD_CONST None IMPORT_NAME pytest STORE_NAME pytest LOAD_CONST 0 LOAD_CONST None IMPORT_NAME kernels STORE_NAME kernels LOAD_NAME pytest LOAD_ATTR mark LOAD_ATTR skip LOAD_CONST 'Unable to generate any tests for kernel' LOAD_CONST ('reason',) CALL_FUNCTION LOAD_CONST <code object test_pyawkward_ByteMask...
import pytest import kernels @pytest.mark.skip(reason="Unable to generate any tests for kernel") def test_pyawkward_ByteMaskedArray_reduce_next_nonlocal_nextshifts_fromshifts_64_1(): raise NotImplementedError("Unable to generate any tests for kernel")
data/awkward-cpp-29/tests-spec/test_pyawkward_ByteMaskedArray_reduce_next_nonlocal_nextshifts_fromshifts_64.py
226
83
220,749
LOAD_CONST 0 LOAD_CONST ('create_folder',) IMPORT_NAME doit.tools IMPORT_FROM create_folder STORE_NAME create_folder POP_TOP LOAD_CONST '_build' STORE_NAME BUILD_PATH LOAD_CONST <code object task_build at 0x7fab540c5930, file "f.py", line 6> LOAD_CONST 'task_build' MAKE_FUNCTION STORE_NAME task_build LOAD_CONST None ...
from doit.tools import create_folder BUILD_PATH = "_build" def task_build(): return { "actions": [(create_folder, [BUILD_PATH]), "touch %(targets)s"], "targets": ["%s/file.o" % BUILD_PATH], }
data/doit-0.36.0/doc/samples/folder.py
158
83
109,327
LOAD_CONST 0 LOAD_CONST ('Enum',) IMPORT_NAME enum IMPORT_FROM Enum STORE_NAME Enum POP_TOP LOAD_BUILD_CLASS LOAD_CONST <code object FreeBusyStatus at 0x7fab820f49c0, file "f.py", line 4> LOAD_CONST 'FreeBusyStatus' MAKE_FUNCTION LOAD_CONST 'FreeBusyStatus' LOAD_NAME str LOAD_NAME Enum CALL_FUNCTION STORE_NAME FreeBus...
from enum import Enum class FreeBusyStatus(str, Enum): Unknown = ("unknown",) Free = ("free",) Tentative = ("tentative",) Busy = ("busy",) Oof = ("oof",) WorkingElsewhere = ("workingElsewhere",)
data/msgraph-sdk-1.1.0/msgraph/generated/models/free_busy_status.py
203
83
259,683
LOAD_CONST <code object task_hello at 0x7fab540c5c00, file "f.py", line 1> LOAD_CONST 'task_hello' MAKE_FUNCTION STORE_NAME task_hello LOAD_CONST None RETURN_VALUE LOAD_CONST <code object python_hello at 0x7fab540c5150, file "f.py", line 4> LOAD_CONST 'task_hello.<locals>.python_hello' MAKE_FUNCTION STORE_FAST python_...
def task_hello(): """hello""" def python_hello(targets): with open(targets[0], "a") as output: output.write("Python says Hello World!!!\n") return { "actions": [python_hello], "targets": ["hello.txt"], }
data/doit-0.36.0/doc/samples/hello.py
210
83
109,330
LOAD_CONST 0 LOAD_CONST ('Enum',) IMPORT_NAME enum IMPORT_FROM Enum STORE_NAME Enum POP_TOP LOAD_BUILD_CLASS LOAD_CONST <code object OnboardingStatus at 0x7fab4298ec00, file "f.py", line 4> LOAD_CONST 'OnboardingStatus' MAKE_FUNCTION LOAD_CONST 'OnboardingStatus' LOAD_NAME str LOAD_NAME Enum CALL_FUNCTION STORE_NAME O...
from enum import Enum class OnboardingStatus(str, Enum): InsufficientInfo = ("insufficientInfo",) Onboarded = ("onboarded",) CanBeOnboarded = ("canBeOnboarded",) Unsupported = ("unsupported",) UnknownFutureValue = ("unknownFutureValue",)
data/msgraph-sdk-1.1.0/msgraph/generated/models/security/onboarding_status.py
200
83
262,132
LOAD_CONST 1 LOAD_CONST ('Sorter',) IMPORT_NAME sorter IMPORT_FROM Sorter STORE_NAME Sorter POP_TOP LOAD_CONST 1 LOAD_CONST ('CustomListSorter',) IMPORT_NAME custom_list_sorter IMPORT_FROM CustomListSorter STORE_NAME CustomListSorter POP_TOP LOAD_CONST 1 LOAD_CONST ('DateTimeSorter',) IMPORT_NAME date_time_sorter IMP...
from .sorter import Sorter # isort:skip from .custom_list_sorter import CustomListSorter from .date_time_sorter import DateTimeSorter from .dictionary_sorter import DictionarySorter from .lexicographic_sorter import LexicographicSorter from .numeric_sorter import NumericSorter
data/great_expectations-0.18.9/great_expectations/datasource/data_connector/sorter/__init__.py
207
83
18,662
LOAD_CONST 0 LOAD_CONST None IMPORT_NAME pytest STORE_NAME pytest LOAD_CONST 0 LOAD_CONST ('GradualRolloutRandom',) IMPORT_NAME UnleashClient.strategies IMPORT_FROM GradualRolloutRandom STORE_NAME GradualRolloutRandom POP_TOP LOAD_NAME pytest LOAD_METHOD fixture CALL_METHOD LOAD_CONST <code object strategy at 0x7fab8...
import pytest from UnleashClient.strategies import GradualRolloutRandom @pytest.fixture() def strategy(): yield GradualRolloutRandom(parameters={"percentage": 50}) def test_userwithid(strategy): assert isinstance(strategy.execute(), bool)
data/UnleashClient-5.11.1/tests/unit_tests/strategies/test_gradualrolloutrandom.py
246
83
389,635
LOAD_CONST 0 LOAD_CONST ('Enum',) IMPORT_NAME enum IMPORT_FROM Enum STORE_NAME Enum POP_TOP LOAD_BUILD_CLASS LOAD_CONST <code object IdentityUserFlowAttributeDataType at 0x7fab4298e420, file "f.py", line 4> LOAD_CONST 'IdentityUserFlowAttributeDataType' MAKE_FUNCTION LOAD_CONST 'IdentityUserFlowAttributeDataType' LOAD...
from enum import Enum class IdentityUserFlowAttributeDataType(str, Enum): String = ("string",) Boolean = ("boolean",) Int64 = ("int64",) StringCollection = ("stringCollection",) DateTime = ("dateTime",) UnknownFutureValue = ("unknownFutureValue",)
data/msgraph-sdk-1.1.0/msgraph/generated/models/identity_user_flow_attribute_data_type.py
212
83
259,730
LOAD_CONST 0 LOAD_CONST ('DailyJob',) IMPORT_NAME django_extensions.management.jobs IMPORT_FROM DailyJob STORE_NAME DailyJob POP_TOP LOAD_CONST 0 LOAD_CONST ('mock',) IMPORT_NAME unittest IMPORT_FROM mock STORE_NAME mock POP_TOP LOAD_NAME mock LOAD_METHOD MagicMock CALL_METHOD STORE_NAME DAILY_JOB_MOCK LOAD_BUILD_CL...
from django_extensions.management.jobs import DailyJob from unittest import mock DAILY_JOB_MOCK = mock.MagicMock() class Job(DailyJob): help = "My sample daily job." def execute(self): DAILY_JOB_MOCK()
data/django-extensions-3.2.3/tests/testapp/jobs/daily/test_daily_job.py
247
83
300,199
LOAD_CONST '0.7.1' STORE_NAME __version__ SETUP_EXCEPT to 22 LOAD_CONST 0 LOAD_CONST ('Program',) IMPORT_NAME mando.core IMPORT_FROM Program STORE_NAME Program POP_TOP POP_BLOCK JUMP_FORWARD to 66 DUP_TOP LOAD_NAME ImportError COMPARE_OP exception match POP_JUMP_IF_FALSE POP_TOP STORE_NAME e POP_TOP SETUP_FINALLY to...
__version__ = "0.7.1" try: from mando.core import Program except ImportError as e: # pragma: no cover e.version = __version__ raise e main = Program() command = main.command arg = main.arg parse = main.parse execute = main.execute
data/mando-0.7.1/mando/__init__.py
178
83
404,559
LOAD_CONST <code object _jupyter_nbextension_paths at 0x7fab42736db0, file "f.py", line 1> LOAD_CONST '_jupyter_nbextension_paths' MAKE_FUNCTION STORE_NAME _jupyter_nbextension_paths LOAD_CONST None RETURN_VALUE LOAD_CONST 'notebook' LOAD_CONST 'nbextension/static' LOAD_CONST 'jupyter-datawidgets' LOAD_CONST 'jupyt...
def _jupyter_nbextension_paths(): return [ { "section": "notebook", "src": "nbextension/static", "dest": "jupyter-datawidgets", "require": "jupyter-datawidgets/extension", } ]
data/ipydatawidgets-4.3.5/ipydatawidgets/nbextension/__init__.py
144
83
374,403
LOAD_CONST 0 LOAD_CONST None IMPORT_NAME Metal STORE_NAME Metal LOAD_CONST 0 LOAD_CONST ('TestCase', 'min_sdk_level') IMPORT_NAME PyObjCTools.TestSupport IMPORT_FROM TestCase STORE_NAME TestCase IMPORT_FROM min_sdk_level STORE_NAME min_sdk_level POP_TOP LOAD_BUILD_CLASS LOAD_CONST <code object TestMTLCaptureScope at ...
import Metal # noqa: F401 from PyObjCTools.TestSupport import TestCase, min_sdk_level class TestMTLCaptureScope(TestCase): @min_sdk_level("10.13") def test_protocols(self): self.assertProtocolExists("MTLCaptureScope")
data/pyobjc-framework-Metal-10.1/PyObjCTest/test_mtlcapturescope.py
278
83
343,043
LOAD_CONST 'Defines the hook endpoints for the dbt templater plugin.' STORE_NAME __doc__ LOAD_CONST 0 LOAD_CONST ('hookimpl',) IMPORT_NAME sqlfluff.core.plugin IMPORT_FROM hookimpl STORE_NAME hookimpl POP_TOP LOAD_CONST 0 LOAD_CONST ('DbtTemplater',) IMPORT_NAME sqlfluff_templater_dbt.templater IMPORT_FROM DbtTemplat...
"""Defines the hook endpoints for the dbt templater plugin.""" from sqlfluff.core.plugin import hookimpl from sqlfluff_templater_dbt.templater import DbtTemplater @hookimpl def get_templaters(): """Get templaters.""" return [DbtTemplater]
data/sqlfluff-templater-dbt-2.3.5/sqlfluff_templater_dbt/__init__.py
177
83
137,337
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 0x7fab7006dd20, 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.9/doc/__init__.py
165
83
144,966
LOAD_CONST 'amqp://guest:guest@foobar:1234//' STORE_NAME broker_url LOAD_CONST False STORE_NAME broker_connection_retry_on_startup LOAD_CONST False STORE_NAME broker_connection_retry LOAD_CONST 0 STORE_NAME broker_connection_timeout LOAD_CONST False STORE_NAME worker_log_color LOAD_CONST False STORE_NAME worker_re...
broker_url = "amqp://guest:guest@foobar:1234//" broker_connection_retry_on_startup = False broker_connection_retry = False broker_connection_timeout = 0 worker_log_color = False worker_redirect_stdouts = False
data/celery-5.3.6/t/integration/test_worker_config.py
98
83
69,545
LOAD_CONST './tood_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 S...
_base_ = "./tood_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/tood/tood_r101_fpn_ms-2x_coco.py
107
83
151,794
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 0x7fab4107cf60, 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.12/doc/__init__.py
165
83
144,876
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 activity IMPORT_STAR LOAD_CONST 1 LOAD_CONST ('*',) IMPORT_NAME alias IMPORT_STAR LOAD_CONST 1 LOAD_CO...
from .. import _utilities import typing from .activity import * from .alias import * from .get_activity import * from .get_alias import * from .get_state_machine import * from .get_state_machine_versions import * from .state_machine import * from ._inputs import * from . import outputs
data/pulumi_aws-6.22.2/pulumi_aws/sfn/__init__.py
213
83
226,762
LOAD_CONST 'Per-prefix data, mapping each prefix to a name.\n\nAuto-generated file, do not edit by hand.\n' STORE_NAME __doc__ LOAD_CONST 2 LOAD_CONST ('u',) IMPORT_NAME util IMPORT_FROM u STORE_NAME u POP_TOP BUILD_MAP STORE_NAME TIMEZONE_DATA LOAD_CONST 1 LOAD_CONST ('data',) IMPORT_NAME data0 IMPORT_FROM data STO...
"""Per-prefix data, mapping each prefix to a name. Auto-generated file, do not edit by hand. """ from ..util import u TIMEZONE_DATA = {} from .data0 import data TIMEZONE_DATA.update(data) del data TIMEZONE_LONGEST_PREFIX = 8
data/phonenumberslite-8.13.30/phonenumbers/tzdata/__init__.py
139
83
440,710
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 approval_rule_template IMPORT_STAR LOAD_CONST 1 LOAD_CONST ('*',) IMPORT_NAME approval_rule_template_as...
from .. import _utilities import typing from .approval_rule_template import * from .approval_rule_template_association import * from .get_approval_rule_template import * from .get_repository import * from .repository import * from .trigger import * from ._inputs import * from . import outputs
data/pulumi_aws-6.22.2/pulumi_aws/codecommit/__init__.py
201
83
226,862
LOAD_CONST 0 LOAD_CONST None IMPORT_NAME numpy STORE_NAME np LOAD_CONST 1 LOAD_CONST ('OpRunBinaryNumpy',) IMPORT_NAME _op IMPORT_FROM OpRunBinaryNumpy STORE_NAME OpRunBinaryNumpy POP_TOP LOAD_BUILD_CLASS LOAD_CONST <code object Add at 0x7fab4278aa50, file "f.py", line 6> LOAD_CONST 'Add' MAKE_FUNCTION LOAD_CONST 'Ad...
import numpy as np from ._op import OpRunBinaryNumpy class Add(OpRunBinaryNumpy): def __init__(self, onnx_node, run_params): # type: ignore OpRunBinaryNumpy.__init__(self, np.add, onnx_node, run_params)
data/onnxoptimizer-0.3.13/third_party/onnx/onnx/reference/ops/op_add.py
235
83
85,708
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 anomaly_monitor IMPORT_STAR LOAD_CONST 1 LOAD_CONST ('*',) IMPORT_NAME anomaly_subscription IMPORT_STAR...
from .. import _utilities import typing from .anomaly_monitor import * from .anomaly_subscription import * from .cost_allocation_tag import * from .cost_category import * from .get_cost_category import * from .get_tags import * from ._inputs import * from . import outputs
data/pulumi_aws-6.22.2/pulumi_aws/costexplorer/__init__.py
201
83
227,455
LOAD_CONST 0 LOAD_CONST ('HasTraits', 'Range', 'Trait') IMPORT_NAME traits.api IMPORT_FROM HasTraits STORE_NAME HasTraits IMPORT_FROM Range STORE_NAME Range IMPORT_FROM Trait STORE_NAME Trait POP_TOP LOAD_CONST 0 LOAD_CONST ('TraitOddInteger',) IMPORT_NAME custom_traithandler IMPORT_FROM TraitOddInteger STORE_NAME Tra...
from traits.api import HasTraits, Range, Trait from custom_traithandler import TraitOddInteger class AnOddClass(HasTraits): oddball = Trait(1, TraitOddInteger()) very_odd = Trait(-1, TraitOddInteger(), Range(-10, -1))
data/traits-6.4.3/examples/tutorials/doc_examples/examples/use_custom_th.py
255
83
286,853
LOAD_CONST "Dataset definition for placesfull.\n\nDEPRECATED!\nIf you want to use the Placesfull dataset builder class, use:\ntfds.builder_cls('placesfull')\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_builde...
"""Dataset definition for placesfull. DEPRECATED! If you want to use the Placesfull dataset builder class, use: tfds.builder_cls('placesfull') """ from tensorflow_datasets.core import lazy_builder_import Placesfull = lazy_builder_import.LazyBuilderImport("placesfull")
data/tensorflow-datasets-4.9.4/tensorflow_datasets/image_classification/placesfull/placesfull.py
127
83
255,482
LOAD_CONST 0 LOAD_CONST ('OrderedDict',) IMPORT_NAME collections IMPORT_FROM OrderedDict STORE_NAME OrderedDict POP_TOP LOAD_NAME OrderedDict LOAD_CONST ('a', 1) LOAD_CONST ('b', 'c') LOAD_CONST 'd' LOAD_NAME OrderedDict LOAD_CONST 'e' LOAD_NAME OrderedDict LOAD_CONST 'f' LOAD_CONST 1 LOAD_CONST 2 LOAD_CONST 3 BUIL...
from collections import OrderedDict DATA = OrderedDict( [ ("a", 1), ("b", "c"), ("d", OrderedDict([("e", OrderedDict([("f", [1, 2, 3]), ("g", "GGG")]))])), ] )
data/anyconfig-0.14.0/tests/res/1/loaders/yaml.ruamel/20/e/370_a_nested_map.yml.py
133
83
390,503
LOAD_CONST 0 LOAD_CONST ('Enum',) IMPORT_NAME enum IMPORT_FROM Enum STORE_NAME Enum POP_TOP LOAD_BUILD_CLASS LOAD_CONST <code object Modality at 0x7fae471296f0, file "f.py", line 4> LOAD_CONST 'Modality' MAKE_FUNCTION LOAD_CONST 'Modality' LOAD_NAME str LOAD_NAME Enum CALL_FUNCTION STORE_NAME Modality LOAD_CONST None ...
from enum import Enum class Modality(str, Enum): Audio = ("audio",) Video = ("video",) VideoBasedScreenSharing = ("videoBasedScreenSharing",) Data = ("data",) ScreenSharing = ("screenSharing",) UnknownFutureValue = ("unknownFutureValue",)
data/msgraph-sdk-1.1.0/msgraph/generated/models/call_records/modality.py
195
83
262,391
LOAD_CONST '\nDefines a custom type for YAML Path segments.\n\nCopyright 2020 William W. Kimball, Jr. MBA MSIS\n' STORE_NAME __doc__ LOAD_CONST 0 LOAD_CONST ('Tuple',) IMPORT_NAME typing IMPORT_FROM Tuple STORE_NAME Tuple POP_TOP LOAD_CONST 0 LOAD_CONST ('PathSegmentTypes',) IMPORT_NAME yamlpath.enums IMPORT_FROM Pat...
""" Defines a custom type for YAML Path segments. Copyright 2020 William W. Kimball, Jr. MBA MSIS """ from typing import Tuple from yamlpath.enums import PathSegmentTypes from yamlpath.types import PathAttributes PathSegment = Tuple[PathSegmentTypes, PathAttributes]
data/yamlpath-3.8.2/yamlpath/types/pathsegment.py
159
83
121,373
LOAD_CONST 0 LOAD_CONST ('Enum',) IMPORT_NAME enum IMPORT_FROM Enum STORE_NAME Enum POP_TOP LOAD_BUILD_CLASS LOAD_CONST <code object ConnectionStatus at 0x7fab4298e540, file "f.py", line 4> LOAD_CONST 'ConnectionStatus' MAKE_FUNCTION LOAD_CONST 'ConnectionStatus' LOAD_NAME str LOAD_NAME Enum CALL_FUNCTION STORE_NAME C...
from enum import Enum class ConnectionStatus(str, Enum): Unknown = ("unknown",) Attempted = ("attempted",) Succeeded = ("succeeded",) Blocked = ("blocked",) Failed = ("failed",) UnknownFutureValue = ("unknownFutureValue",)
data/msgraph-sdk-1.1.0/msgraph/generated/models/connection_status.py
195
83
261,423
LOAD_CONST 0 LOAD_CONST ('OrderedDict',) IMPORT_NAME collections IMPORT_FROM OrderedDict STORE_NAME OrderedDict POP_TOP LOAD_NAME OrderedDict LOAD_CONST ('a', 1) LOAD_CONST ('b', 'c') LOAD_CONST 'd' LOAD_NAME OrderedDict LOAD_CONST 'e' LOAD_NAME OrderedDict LOAD_CONST 'f' LOAD_CONST 1 LOAD_CONST 2 LOAD_CONST 3 BUIL...
from collections import OrderedDict DATA = OrderedDict( [ ("a", 1), ("b", "c"), ("d", OrderedDict([("e", OrderedDict([("f", [1, 2, 3]), ("g", "GGG")]))])), ] )
data/anyconfig-0.14.0/tests/res/1/loaders/yaml.pyyaml/20/e/370_a_nested_map.yml.py
133
83
390,533
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 0x7fab8233d780, 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.8/doc/__init__.py
166
83
145,084
LOAD_CONST 0 LOAD_CONST ('Char', 'Opt') IMPORT_NAME insights.parsr IMPORT_FROM Char STORE_NAME Char IMPORT_FROM Opt STORE_NAME Opt POP_TOP LOAD_CONST <code object test_opt at 0x7fae471296f0, file "f.py", line 4> LOAD_CONST 'test_opt' MAKE_FUNCTION STORE_NAME test_opt LOAD_CONST <code object test_opt_default at 0x7fab...
from insights.parsr import Char, Opt def test_opt(): a = Opt(Char("a")) assert a("a") == "a" assert a("b") is None def test_opt_default(): a = Opt(Char("a"), "Default") assert a("b") == "Default"
data/insights-core-3.3.9/insights/parsr/tests/test_opt.py
276
83
212,582