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 None
IMPORT_NAME os
STORE_NAME os
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME re
STORE_NAME re
LOAD_CONST <code object read_file at 0x7faaac227e40, file "f.py", line 5>
LOAD_CONST 'read_file'
MAKE_FUNCTION
STORE_NAME read_file
LOAD_NAME os
LOAD_ATTR path
LOAD_METHOD dirname
LOAD_NAME os
LOAD_ATT... | import os
import re
def read_file(name):
f = open(name)
res = f.read()
f.close()
return res
here = os.path.dirname(os.path.abspath(__file__))
repo = os.path.dirname(here)
| data/moderngl-5.10.0/tests/test_module_integrity.py | 174 | 78 | 235,731 |
LOAD_CONST 1
LOAD_CONST ('element_blank',)
IMPORT_NAME element_blank
IMPORT_FROM element_blank
STORE_NAME element_blank
POP_TOP
LOAD_CONST 1
LOAD_CONST ('element_line',)
IMPORT_NAME element_line
IMPORT_FROM element_line
STORE_NAME element_line
POP_TOP
LOAD_CONST 1
LOAD_CONST ('element_rect',)
IMPORT_NAME element_rect... | from .element_blank import element_blank
from .element_line import element_line
from .element_rect import element_rect
from .element_text import element_text
__all__ = (
"element_blank",
"element_line",
"element_rect",
"element_text",
)
| data/plotnine-0.13.0/plotnine/themes/elements/__init__.py | 152 | 78 | 444,081 |
LOAD_CONST 0
LOAD_CONST ('*',)
IMPORT_NAME azure.cli.core.aaz
IMPORT_STAR
LOAD_NAME register_command_group
LOAD_CONST 'afd log-analytic metric'
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'
LOAD_... | from azure.cli.core.aaz import *
@register_command_group(
"afd log-analytic metric",
)
class __CMDGroup(AAZCommandGroup):
"""Manage metric statistics for AFD profile."""
pass
__all__ = ["__CMDGroup"]
| data/azure-cli-2.57.0/azure/cli/command_modules/cdn/aaz/latest/afd/log_analytic/metric/__cmd_group.py | 188 | 78 | 375,229 |
LOAD_CONST 1
LOAD_CONST ('json_checker',)
IMPORT_NAME
IMPORT_FROM json_checker
STORE_NAME json_checker
POP_TOP
LOAD_CONST <code object validate_json_checker at 0x7fab703f0270, file "f.py", line 4>
LOAD_CONST 'validate_json_checker'
MAKE_FUNCTION
STORE_NAME validate_json_checker
LOAD_CONST None
RETURN_VALUE
LOAD_GLOBA... | from . import json_checker
def validate_json_checker(x):
"""
Property: Placement.AssociatedDevices
Property: Placement.Attributes
Property: PlacementTemplate.DefaultAttributes
Property: PlacementTemplate.DeviceTemplates
"""
return json_checker(x)
| data/troposphere-4.6.0/troposphere/validators/iot1click.py | 106 | 78 | 173,004 |
LOAD_CONST 'Plugin composites for parameter estimators.'
STORE_NAME __doc__
LOAD_CONST 'PluginParamsForecaster'
LOAD_CONST 'PluginParamsTransformer'
BUILD_LIST
STORE_NAME __all__
LOAD_CONST 0
LOAD_CONST ('PluginParamsForecaster',)
IMPORT_NAME sktime.param_est.plugin._forecaster
IMPORT_FROM PluginParamsForecaster
STO... | """Plugin composites for parameter estimators."""
__all__ = [
"PluginParamsForecaster",
"PluginParamsTransformer",
]
from sktime.param_est.plugin._forecaster import PluginParamsForecaster
from sktime.param_est.plugin._transformer import PluginParamsTransformer
| data/sktime-0.26.0/sktime/param_est/plugin/__init__.py | 137 | 78 | 65,134 |
LOAD_CONST 0
LOAD_CONST ('absolute_import',)
IMPORT_NAME __future__
IMPORT_FROM absolute_import
STORE_NAME absolute_import
POP_TOP
LOAD_CONST 1
LOAD_CONST ('PostgresqlClient',)
IMPORT_NAME postgresql_client
IMPORT_FROM PostgresqlClient
STORE_NAME PostgresqlClient
POP_TOP
LOAD_CONST 1
LOAD_CONST ('PostgresqlClientComp... | from __future__ import absolute_import
from .postgresql_client import PostgresqlClient
from .postgresql_client_composite_operations import PostgresqlClientCompositeOperations
from . import models
__all__ = ["PostgresqlClient", "PostgresqlClientCompositeOperations", "models"]
| data/oci-2.122.0/src/oci/psql/__init__.py | 175 | 78 | 179,759 |
LOAD_CONST 0
LOAD_CONST ('TestCase',)
IMPORT_NAME PyObjCTools.TestSupport
IMPORT_FROM TestCase
STORE_NAME TestCase
POP_TOP
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME GameplayKit
STORE_NAME GameplayKit
LOAD_BUILD_CLASS
LOAD_CONST <code object TestGKGoal at 0x7fab81fc4810, file "f.py", line 6>
LOAD_CONST 'TestGKGoal'
MAK... | from PyObjCTools.TestSupport import TestCase
import GameplayKit
class TestGKGoal(TestCase):
def testMethods(self):
self.assertArgIsBOOL(
GameplayKit.GKGoal.goalToFollowPath_maxPredictionTime_forward_, 2
)
| data/pyobjc-framework-GameplayKit-10.1/PyObjCTest/test_gkgoal.py | 255 | 78 | 57,631 |
LOAD_CONST 'mask-rcnn_r50-caffe_fpn_rpn-2conv_4conv1fc_syncbn-all_lsj-100e_coco.py'
STORE_NAME _base_
LOAD_NAME dict
LOAD_CONST 'AmpOptimWrapper'
LOAD_CONST ('type',)
CALL_FUNCTION
STORE_NAME optim_wrapper
LOAD_CONST None
RETURN_VALUE | _base_ = (
"mask-rcnn_r50-caffe_fpn_rpn-2conv_4conv1fc_syncbn-all_lsj-100e_coco.py" # noqa
)
optim_wrapper = dict(type="AmpOptimWrapper")
| data/mmdet-3.3.0/mmdet/.mim/configs/strong_baselines/mask-rcnn_r50-caffe_fpn_rpn-2conv_4conv1fc_syncbn-all_amp-lsj-100e_coco.py | 83 | 78 | 151,603 |
LOAD_CONST 0
LOAD_CONST ('Optimizer',)
IMPORT_NAME paramz.optimization
IMPORT_FROM Optimizer
STORE_NAME Optimizer
POP_TOP
LOAD_CONST 1
LOAD_CONST ('stochastics',)
IMPORT_NAME
IMPORT_FROM stochastics
STORE_NAME stochastics
POP_TOP
LOAD_CONST 0
LOAD_CONST ('*',)
IMPORT_NAME paramz.optimization
IMPORT_STAR
LOAD_CONST 0... | from paramz.optimization import Optimizer
from . import stochastics
from paramz.optimization import *
import sys
sys.modules["GPy.inference.optimization.stochastics"] = stochastics
sys.modules["GPy.inference.optimization.Optimizer"] = Optimizer
| data/GPy-1.13.1/GPy/inference/optimization/__init__.py | 159 | 78 | 186,171 |
LOAD_CONST 'Example of a plug-in that will crash because of an import error'
STORE_NAME __doc__
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME non_existent_package
STORE_NAME non_existent_package
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME pyplugs
STORE_NAME pyplugs
LOAD_NAME pyplugs
LOAD_ATTR register
LOAD_CONST <code objec... | """Example of a plug-in that will crash because of an import error"""
import non_existent_package # noqa
import pyplugs
@pyplugs.register
def a_plugin():
"""A plug-in that will not work, due to an import error"""
return "I wish"
| data/pyplugs-0.4.0/tests/plugin_directory/plugin_with_import_error.py | 138 | 78 | 16,331 |
LOAD_CONST '\nSettings file for building the dmg disk image.\n'
STORE_NAME __doc__
LOAD_CONST 'UDBZ'
STORE_NAME format
LOAD_CONST None
STORE_NAME size
LOAD_CONST 'Applications'
LOAD_CONST '/Applications'
BUILD_MAP
STORE_NAME symlinks
LOAD_CONST 'builtin-arrow'
STORE_NAME background
LOAD_CONST 'icon-view'
STORE_NAM... | """
Settings file for building the dmg disk image.
"""
format = "UDBZ"
size = None
symlinks = {"Applications": "/Applications"}
background = "builtin-arrow"
default_view = "icon-view"
text_size = 14
icon_size = 96
| data/spyder-5.5.1/installers/macOS/dmg_settings.py | 110 | 78 | 369,506 |
LOAD_CONST 0
LOAD_CONST ('TType', 'TMessageType', 'TFrozenDict', 'TException', 'TApplicationException')
IMPORT_NAME thrift.Thrift
IMPORT_FROM TType
STORE_NAME TType
IMPORT_FROM TMessageType
STORE_NAME TMessageType
IMPORT_FROM TFrozenDict
STORE_NAME TFrozenDict
IMPORT_FROM TException
STORE_NAME TException
IMPORT_FROM TA... | from thrift.Thrift import (
TType,
TMessageType,
TFrozenDict,
TException,
TApplicationException,
)
from thrift.protocol.TProtocol import TProtocolException
from thrift.TRecursive import fix_spec
from .ttypes import *
| data/impyla-0.19.0/impala/_thrift_gen/ExecStats/constants.py | 183 | 78 | 94,627 |
LOAD_CONST 0
LOAD_CONST ('TType', 'TMessageType', 'TFrozenDict', 'TException', 'TApplicationException')
IMPORT_NAME thrift.Thrift
IMPORT_FROM TType
STORE_NAME TType
IMPORT_FROM TMessageType
STORE_NAME TMessageType
IMPORT_FROM TFrozenDict
STORE_NAME TFrozenDict
IMPORT_FROM TException
STORE_NAME TException
IMPORT_FROM TA... | from thrift.Thrift import (
TType,
TMessageType,
TFrozenDict,
TException,
TApplicationException,
)
from thrift.protocol.TProtocol import TProtocolException
from thrift.TRecursive import fix_spec
from .ttypes import *
| data/impyla-0.19.0/impala/_thrift_gen/Metrics/constants.py | 183 | 78 | 94,637 |
LOAD_CONST '\nThis module import all slither exceptions\n'
STORE_NAME __doc__
LOAD_CONST 0
LOAD_CONST ('SlithIRError',)
IMPORT_NAME slither.slithir.exceptions
IMPORT_FROM SlithIRError
STORE_NAME SlithIRError
POP_TOP
LOAD_CONST 0
LOAD_CONST ('ParsingError', 'VariableNotFound')
IMPORT_NAME slither.solc_parsing.exceptio... | """
This module import all slither exceptions
"""
from slither.slithir.exceptions import SlithIRError
from slither.solc_parsing.exceptions import ParsingError, VariableNotFound
from slither.core.exceptions import SlitherCoreError
from slither.exceptions import SlitherException
| data/slither-analyzer-0.10.0/slither/all_exceptions.py | 189 | 78 | 213,757 |
LOAD_CONST 0
LOAD_CONST ('build_transformation_mat', 'change_coordinate_frame_of_point', 'change_source_coordinate_frame_of_transformation_matrix', 'change_target_coordinate_frame_of_transformation_matrix')
IMPORT_NAME blenderproc.python.utility.MathUtility
IMPORT_FROM build_transformation_mat
STORE_NAME build_transfor... | from blenderproc.python.utility.MathUtility import (
build_transformation_mat,
change_coordinate_frame_of_point,
change_source_coordinate_frame_of_transformation_matrix,
change_target_coordinate_frame_of_transformation_matrix,
)
| data/blenderproc-2.7.0/blenderproc/api/math/__init__.py | 190 | 78 | 349,681 |
LOAD_CONST 0
LOAD_CONST ('TType', 'TMessageType', 'TFrozenDict', 'TException', 'TApplicationException')
IMPORT_NAME thrift.Thrift
IMPORT_FROM TType
STORE_NAME TType
IMPORT_FROM TMessageType
STORE_NAME TMessageType
IMPORT_FROM TFrozenDict
STORE_NAME TFrozenDict
IMPORT_FROM TException
STORE_NAME TException
IMPORT_FROM TA... | from thrift.Thrift import (
TType,
TMessageType,
TFrozenDict,
TException,
TApplicationException,
)
from thrift.protocol.TProtocol import TProtocolException
from thrift.TRecursive import fix_spec
from .ttypes import *
| data/impyla-0.19.0/impala/_thrift_gen/beeswax/constants.py | 183 | 78 | 94,639 |
SETUP_ANNOTATIONS
LOAD_CONST 'Constants for the Pure Energie integration.'
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 ('timedelta',)
IMPORT_NAME datetime
IMPORT_FROM timedelta
STORE_NAME timedelta
PO... | """Constants for the Pure Energie integration."""
from __future__ import annotations
from datetime import timedelta
import logging
from typing import Final
DOMAIN: Final = "pure_energie"
LOGGER = logging.getLogger(__package__)
SCAN_INTERVAL = timedelta(seconds=30)
| data/homeassistant-2024.2.2/homeassistant/components/pure_energie/const.py | 193 | 78 | 296,622 |
LOAD_CONST 0
LOAD_CONST ('TType', 'TMessageType', 'TFrozenDict', 'TException', 'TApplicationException')
IMPORT_NAME thrift.Thrift
IMPORT_FROM TType
STORE_NAME TType
IMPORT_FROM TMessageType
STORE_NAME TMessageType
IMPORT_FROM TFrozenDict
STORE_NAME TFrozenDict
IMPORT_FROM TException
STORE_NAME TException
IMPORT_FROM TA... | from thrift.Thrift import (
TType,
TMessageType,
TFrozenDict,
TException,
TApplicationException,
)
from thrift.protocol.TProtocol import TProtocolException
from thrift.TRecursive import fix_spec
from .ttypes import *
| data/impyla-0.19.0/impala/_thrift_gen/RuntimeProfile/constants.py | 183 | 78 | 94,642 |
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 SocialPostDefinitionDataItem at 0x7fadb5811c00, file "f.py", line 4>
LOAD_CONST 'SocialPostDefinitionDataItem'
MAKE_FUNCTION
LOAD_CONST 'So... | from office365.runtime.client_value import ClientValue
class SocialPostDefinitionDataItem(ClientValue):
"""The SocialPostDefinitionDataItem class specifies an item to be inserted in a post by replacing a token in
the post definition. This type can only be specified in a server-to-server call."""
pass
| data/Office365-REST-Python-Client-2.5.5/office365/sharepoint/social/posts/definition_data_item.py | 193 | 78 | 189,650 |
LOAD_CONST 0
LOAD_CONST ('List',)
IMPORT_NAME typing
IMPORT_FROM List
STORE_NAME List
POP_TOP
LOAD_NAME List
LOAD_NAME List
LOAD_CONST ('list_to_unroll', 'return')
BUILD_CONST_KEY_MAP
LOAD_CONST <code object unroll at 0x7fab821c5540, file "f.py", line 4>
LOAD_CONST 'unroll'
MAKE_FUNCTION
STORE_NAME unroll
LOAD_CONST N... | from typing import List
def unroll(list_to_unroll: List) -> List:
ret = []
for x in list_to_unroll:
if not isinstance(x, list):
ret += [x]
else:
ret += unroll(x)
return ret
| data/slither-analyzer-0.10.0/slither/utils/utils.py | 184 | 78 | 213,824 |
SETUP_EXCEPT to 18
LOAD_CONST 0
LOAD_CONST ('core',)
IMPORT_NAME aws_cdk
IMPORT_FROM core
STORE_NAME cdk
POP_TOP
POP_BLOCK
JUMP_FORWARD to 46
DUP_TOP
LOAD_NAME ImportError
COMPARE_OP exception match
POP_JUMP_IF_FALSE
POP_TOP
POP_TOP
POP_TOP
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME aws_cdk
STORE_NAME cdk
POP_EXCEPT
J... | try:
from aws_cdk import core as cdk
except ImportError:
import aws_cdk as cdk
from stacks.chaliceapp import ChaliceApp
app = cdk.App()
ChaliceApp(app, "{{app_name}}")
app.synth()
| data/chalice-1.30.0/chalice/templates/6001-cdk-ddb/infrastructure/app.py | 179 | 78 | 372,753 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME sys
STORE_NAME sys
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME test_cmake_build
STORE_NAME test_cmake_build
LOAD_NAME isinstance
LOAD_NAME __file__
LOAD_NAME str
CALL_FUNCTION
POP_JUMP_IF_TRUE
LOAD_GLOBAL AssertionError
RAISE_VARARGS
LOAD_NAME test_cmake_build
LOAD_METHOD add
LO... | import sys
import test_cmake_build
assert isinstance(__file__, str) # Test this is properly set
assert test_cmake_build.add(1, 2) == 3
print(f"{sys.argv[1]} imports, runs, and adds: 1 + 2 = 3")
| data/ntgcalls-1.1.1/deps/pybind11/tests/test_cmake_build/test.py | 147 | 78 | 355,037 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME tests
STORE_NAME tests
LOAD_CONST <code object test_import at 0x7fab823dfdb0, file "f.py", line 4>
LOAD_CONST 'test_import'
MAKE_FUNCTION
STORE_NAME test_import
LOAD_CONST None
RETURN_VALUE
SETUP_EXCEPT to 14
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME OpenSSL
STORE_FAST OpenSSL... | import tests
def test_import():
try:
import OpenSSL
except ImportError:
raise tests.SkipTest("need pyopenssl")
import eventlet.green.OpenSSL.SSL
import eventlet.green.OpenSSL.crypto
import eventlet.green.OpenSSL.version
| data/eventlet-0.35.1/tests/openssl_test.py | 221 | 78 | 361,843 |
LOAD_CONST 0
LOAD_CONST ('TType', 'TMessageType', 'TFrozenDict', 'TException', 'TApplicationException')
IMPORT_NAME thrift.Thrift
IMPORT_FROM TType
STORE_NAME TType
IMPORT_FROM TMessageType
STORE_NAME TMessageType
IMPORT_FROM TFrozenDict
STORE_NAME TFrozenDict
IMPORT_FROM TException
STORE_NAME TException
IMPORT_FROM TA... | from thrift.Thrift import (
TType,
TMessageType,
TFrozenDict,
TException,
TApplicationException,
)
from thrift.protocol.TProtocol import TProtocolException
from thrift.TRecursive import fix_spec
from .ttypes import *
| data/impyla-0.19.0/impala/_thrift_gen/Status/constants.py | 183 | 78 | 94,635 |
LOAD_CONST 0
LOAD_CONST ('TType', 'TMessageType', 'TFrozenDict', 'TException', 'TApplicationException')
IMPORT_NAME thrift.Thrift
IMPORT_FROM TType
STORE_NAME TType
IMPORT_FROM TMessageType
STORE_NAME TMessageType
IMPORT_FROM TFrozenDict
STORE_NAME TFrozenDict
IMPORT_FROM TException
STORE_NAME TException
IMPORT_FROM TA... | from thrift.Thrift import (
TType,
TMessageType,
TFrozenDict,
TException,
TApplicationException,
)
from thrift.protocol.TProtocol import TProtocolException
from thrift.TRecursive import fix_spec
from .ttypes import *
| data/impyla-0.19.0/impala/_thrift_gen/ImpalaService/constants.py | 183 | 78 | 94,644 |
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_CONST 0
LOAD_CONST ('defaultTestLoader',)
IMPORT_NAME unittest2.loader
IMPORT_FROM defaultTestLoader
STORE_NAME defaultTestLoader
POP_TOP
LOAD_CONST <code object collector at 0x7fab823b56f0, fil... | import os
import sys
from unittest2.loader import defaultTestLoader
def collector():
__main__ = sys.modules["__main__"]
setupDir = os.path.abspath(os.path.dirname(__main__.__file__))
return defaultTestLoader.discover(setupDir)
| data/unittest2-1.1.0/unittest2/collector.py | 187 | 78 | 241,603 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME sys
STORE_NAME sys
LOAD_CONST 0
LOAD_CONST ('Widget',)
IMPORT_NAME widget_module
IMPORT_FROM Widget
STORE_NAME Widget
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object DerivedWidget at 0x7faac0274390, file "f.py", line 6>
LOAD_CONST 'DerivedWidget'
MAKE_FUNCTION
LOAD_CONST 'Der... | import sys
from widget_module import Widget
class DerivedWidget(Widget):
def __init__(self, message):
super().__init__(message)
def the_answer(self):
return 42
def argv0(self):
return sys.argv[0]
| data/ntgcalls-1.1.1/deps/pybind11/tests/test_embed/test_interpreter.py | 356 | 78 | 355,038 |
LOAD_CONST 0
LOAD_CONST ('TType', 'TMessageType', 'TFrozenDict', 'TException', 'TApplicationException')
IMPORT_NAME thrift.Thrift
IMPORT_FROM TType
STORE_NAME TType
IMPORT_FROM TMessageType
STORE_NAME TMessageType
IMPORT_FROM TFrozenDict
STORE_NAME TFrozenDict
IMPORT_FROM TException
STORE_NAME TException
IMPORT_FROM TA... | from thrift.Thrift import (
TType,
TMessageType,
TFrozenDict,
TException,
TApplicationException,
)
from thrift.protocol.TProtocol import TProtocolException
from thrift.TRecursive import fix_spec
from .ttypes import *
| data/impyla-0.19.0/impala/_thrift_gen/fb303/constants.py | 183 | 78 | 94,633 |
LOAD_CONST 'Zapier Tool.'
STORE_NAME __doc__
LOAD_CONST 0
LOAD_CONST ('ZapierNLAListActions', 'ZapierNLARunAction')
IMPORT_NAME langchain_community.tools.zapier.tool
IMPORT_FROM ZapierNLAListActions
STORE_NAME ZapierNLAListActions
IMPORT_FROM ZapierNLARunAction
STORE_NAME ZapierNLARunAction
POP_TOP
LOAD_CONST 'Zapier... | """Zapier Tool."""
from langchain_community.tools.zapier.tool import (
ZapierNLAListActions,
ZapierNLARunAction,
)
__all__ = [
"ZapierNLARunAction",
"ZapierNLAListActions",
]
| data/langchain_community-0.0.21/langchain_community/tools/zapier/__init__.py | 126 | 78 | 15,475 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME logging
STORE_NAME logging
LOAD_NAME logging
LOAD_METHOD getLogger
LOAD_NAME __name__
CALL_METHOD
STORE_NAME logger
LOAD_BUILD_CLASS
LOAD_CONST <code object Party at 0x7faa7455a270, file "f.py", line 6>
LOAD_CONST 'Party'
MAKE_FUNCTION
LOAD_CONST 'Party'
CALL_FUNCTION
STORE_NA... | import logging
logger = logging.getLogger(__name__)
class Party:
def __init__(self, **kwargs):
from ibm_watson_machine_learning.party_wrapper import Party
self.party = Party(**kwargs)
def start(self):
self.party.start()
| data/ibm_watson_machine_learning-1.0.347/ibmfl/party/party.py | 294 | 78 | 251,794 |
LOAD_CONST 0
LOAD_CONST ('TType', 'TMessageType', 'TFrozenDict', 'TException', 'TApplicationException')
IMPORT_NAME thrift.Thrift
IMPORT_FROM TType
STORE_NAME TType
IMPORT_FROM TMessageType
STORE_NAME TMessageType
IMPORT_FROM TFrozenDict
STORE_NAME TFrozenDict
IMPORT_FROM TException
STORE_NAME TException
IMPORT_FROM TA... | from thrift.Thrift import (
TType,
TMessageType,
TFrozenDict,
TException,
TApplicationException,
)
from thrift.protocol.TProtocol import TProtocolException
from thrift.TRecursive import fix_spec
from .ttypes import *
| data/impyla-0.19.0/impala/_thrift_gen/Types/constants.py | 183 | 78 | 94,653 |
LOAD_CONST 0
LOAD_CONST ('StripeService',)
IMPORT_NAME stripe._stripe_service
IMPORT_FROM StripeService
STORE_NAME StripeService
POP_TOP
LOAD_CONST 0
LOAD_CONST ('SessionService',)
IMPORT_NAME stripe.checkout._session_service
IMPORT_FROM SessionService
STORE_NAME SessionService
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <co... | from stripe._stripe_service import StripeService
from stripe.checkout._session_service import SessionService
class CheckoutService(StripeService):
def __init__(self, requestor):
super().__init__(requestor)
self.sessions = SessionService(self._requestor)
| data/stripe-8.3.0/stripe/_checkout_service.py | 283 | 78 | 12,076 |
LOAD_CONST '\nExceptions thrown by the IPinfo service.\n'
STORE_NAME __doc__
LOAD_BUILD_CLASS
LOAD_CONST <code object RequestQuotaExceededError at 0x7fab429cd5d0, file "f.py", line 6>
LOAD_CONST 'RequestQuotaExceededError'
MAKE_FUNCTION
LOAD_CONST 'RequestQuotaExceededError'
LOAD_NAME Exception
CALL_FUNCTION
STORE_NAM... | """
Exceptions thrown by the IPinfo service.
"""
class RequestQuotaExceededError(Exception):
"""Error indicating that users monthly request quota has been passed."""
pass
class TimeoutExceededError(Exception):
"""Error indicating that some timeout has been exceeded."""
pass
| data/ipinfo-5.0.1/ipinfo/exceptions.py | 282 | 78 | 42,073 |
LOAD_NAME DeprecationWarning
LOAD_CONST '`ListSurrogate` has been deprecated. Please use Surrogate instead, which may now utilize individual BoTorch models per outcome that will get wrapped into a ModelList as in ListSurrogate.'
CALL_FUNCTION
RAISE_VARARGS
LOAD_BUILD_CLASS
LOAD_CONST <code object ListSurrogate at 0x7... | raise DeprecationWarning(
"`ListSurrogate` has been deprecated. Please use Surrogate instead, which may now "
"utilize individual BoTorch models per outcome that will get wrapped into a "
"ModelList as in ListSurrogate."
)
class ListSurrogate:
pass
| data/ax-platform-0.3.6/ax/models/torch/botorch_modular/list_surrogate.py | 158 | 78 | 63,277 |
LOAD_CONST 1
LOAD_CONST ('wrap_future',)
IMPORT_NAME utils
IMPORT_FROM wrap_future
STORE_NAME wrap_future
POP_TOP
LOAD_CONST 2
LOAD_CONST ('Transmissions',)
IMPORT_NAME transmissions
IMPORT_FROM Transmissions
STORE_NAME SyncTransmissions
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object Transmissions at 0x7fab000a6420... | from .utils import wrap_future
from ..transmissions import Transmissions as SyncTransmissions
class Transmissions(SyncTransmissions):
def get(self, transmission_id):
results = self._fetch_get(transmission_id)
return wrap_future(results, lambda f: f["transmission"])
| data/sparkpost-1.3.10/sparkpost/tornado/transmissions.py | 296 | 78 | 203,429 |
LOAD_CONST 0
LOAD_CONST ('annotations',)
IMPORT_NAME __future__
IMPORT_FROM annotations
STORE_NAME annotations
POP_TOP
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME sys
STORE_NAME sys
LOAD_NAME sys
LOAD_ATTR version_info
LOAD_CONST (3, 9)
COMPARE_OP <
POP_JUMP_IF_FALSE
LOAD_CONST 0
LOAD_CONST ('files',)
IMPORT_NAME impor... | from __future__ import annotations
import sys
if sys.version_info < (3, 9):
from importlib_resources import files
else:
from importlib.resources import files
__all__ = ["files"]
def __dir__() -> list[str]:
return __all__
| data/scikit_build_core-0.8.1/src/scikit_build_core/_compat/importlib/resources.py | 210 | 78 | 134,877 |
LOAD_CONST '\nThis module exists only to simplify retrieving the version number of chardet\nfrom within setuptools and from chardet subpackages.\n\n:author: Dan Blanchard (dan.blanchard@gmail.com)\n'
STORE_NAME __doc__
LOAD_CONST '5.1.0'
STORE_NAME __version__
LOAD_NAME __version__
LOAD_METHOD split
LOAD_CONST '.'
CA... | """
This module exists only to simplify retrieving the version number of chardet
from within setuptools and from chardet subpackages.
:author: Dan Blanchard (dan.blanchard@gmail.com)
"""
__version__ = "5.1.0"
VERSION = __version__.split(".")
| data/pigar-2.1.3/pigar/_vendor/pip/_vendor/chardet/version.py | 102 | 78 | 241,217 |
LOAD_CONST 0
LOAD_CONST ('Variable',)
IMPORT_NAME ydata_profiling.report.presentation.core
IMPORT_FROM Variable
STORE_NAME Variable
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_CLASS
LOAD_CONS... | from ydata_profiling.report.presentation.core import Variable
from ydata_profiling.report.presentation.flavours.html import templates
class HTMLVariable(Variable):
def render(self) -> str:
return templates.template("variable.html").render(**self.content)
| data/ydata-profiling-4.6.4/src/ydata_profiling/report/presentation/flavours/html/variable.py | 255 | 78 | 190,115 |
LOAD_CONST 'Permission constants.'
STORE_NAME __doc__
LOAD_CONST 'entities'
STORE_NAME CAT_ENTITIES
LOAD_CONST 'config_entries'
STORE_NAME CAT_CONFIG_ENTRIES
LOAD_CONST 'all'
STORE_NAME SUBCAT_ALL
LOAD_CONST 'read'
STORE_NAME POLICY_READ
LOAD_CONST 'control'
STORE_NAME POLICY_CONTROL
LOAD_CONST 'edit'
STORE_NAME ... | """Permission constants."""
CAT_ENTITIES = "entities"
CAT_CONFIG_ENTRIES = "config_entries"
SUBCAT_ALL = "all"
POLICY_READ = "read"
POLICY_CONTROL = "control"
POLICY_EDIT = "edit"
| data/homeassistant-2024.2.2/homeassistant/auth/permissions/const.py | 107 | 78 | 299,010 |
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 ('DiscoverRunner',)
IMPORT_NAME django.test.runner
IMPORT_FROM DiscoverRunner
STORE_NAME DiscoverRunner
POP_TOP
LOAD_CONST 0
LOAD_CONST ('TeamcityTestRunner',)
IMP... | from __future__ import absolute_import
from django.test.runner import DiscoverRunner
from teamcity.unittestpy import TeamcityTestRunner
class TeamcityDjangoRunner(DiscoverRunner):
def run_suite(self, suite, **kwargs):
return TeamcityTestRunner().run(suite)
| data/teamcity-messages-1.32/teamcity/django.py | 286 | 78 | 10,657 |
LOAD_CONST 0
LOAD_CONST ('TestCase',)
IMPORT_NAME PyObjCTools.TestSupport
IMPORT_FROM TestCase
STORE_NAME TestCase
POP_TOP
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME WebKit
STORE_NAME WebKit
LOAD_BUILD_CLASS
LOAD_CONST <code object TestDOMImplementation at 0x7fab82278d20, file "f.py", line 5>
LOAD_CONST 'TestDOMImpleme... | from PyObjCTools.TestSupport import TestCase
import WebKit
class TestDOMImplementation(TestCase):
def testMethods(self):
self.assertResultIsBOOL(WebKit.DOMImplementation.hasFeature_version_)
self.assertResultIsBOOL(WebKit.DOMImplementation.hasFeature__)
| data/pyobjc-framework-WebKit-10.1/PyObjCTest/test_domimplementation.py | 262 | 78 | 418,884 |
LOAD_CONST 0
LOAD_CONST ('print_function', 'unicode_literals')
IMPORT_NAME __future__
IMPORT_FROM print_function
STORE_NAME print_function
IMPORT_FROM unicode_literals
STORE_NAME unicode_literals
POP_TOP
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME rest_framework
STORE_NAME rest_framework
LOAD_NAME str
LOAD_NAME rest_fra... | from __future__ import print_function, unicode_literals
import rest_framework
if str(rest_framework.__version__).startswith("2"):
from .drf2.serializers import * # noqa
else:
from .drf3.serializers import * # noqa
| data/djangorestframework-bulk-0.2.1/rest_framework_bulk/serializers.py | 150 | 78 | 236,862 |
LOAD_CONST 0
LOAD_CONST ('Flask',)
IMPORT_NAME flask
IMPORT_FROM Flask
STORE_NAME Flask
POP_TOP
LOAD_CONST 0
LOAD_CONST ('Admin',)
IMPORT_NAME flask_admin
IMPORT_FROM Admin
STORE_NAME Admin
POP_TOP
LOAD_CONST <code object setup at 0x7fab000fc150, file "f.py", line 5>
LOAD_CONST 'setup'
MAKE_FUNCTION
STORE_NAME setup
... | from flask import Flask
from flask_admin import Admin
def setup():
app = Flask(__name__)
app.config["SECRET_KEY"] = "1"
app.config["CSRF_ENABLED"] = False
admin = Admin(app)
return app, admin
| data/Flask-Admin-1.6.1/flask_admin/tests/fileadmin/__init__.py | 182 | 78 | 249,309 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME nose.tools
IMPORT_FROM tools
STORE_NAME nt
POP_TOP
LOAD_CONST 2
LOAD_CONST ('_DelayedImportError',)
IMPORT_NAME traittypes
IMPORT_FROM _DelayedImportError
STORE_NAME _DelayedImportError
POP_TOP
LOAD_NAME nt
LOAD_METHOD raises
LOAD_NAME RuntimeError
CALL_METHOD
LOAD_CONST <code... | import nose.tools as nt
from ..traittypes import _DelayedImportError
@nt.raises(RuntimeError)
def test_delayed_access_raises():
dummy = _DelayedImportError("mypackage")
dummy.asarray([1, 2, 3])
| data/traittypes-0.2.1/traittypes/tests/test_import_errors.py | 197 | 78 | 76,537 |
LOAD_CONST 5
LOAD_CONST ('PostContentClass',)
IMPORT_NAME schema_classes
IMPORT_FROM PostContentClass
STORE_NAME PostContentClass
POP_TOP
LOAD_CONST 5
LOAD_CONST ('PostContentTypeClass',)
IMPORT_NAME schema_classes
IMPORT_FROM PostContentTypeClass
STORE_NAME PostContentTypeClass
POP_TOP
LOAD_CONST 5
LOAD_CONST ('Post... | from .....schema_classes import PostContentClass
from .....schema_classes import PostContentTypeClass
from .....schema_classes import PostInfoClass
from .....schema_classes import PostTypeClass
PostContent = PostContentClass
PostContentType = PostContentTypeClass
PostInfo = PostInfoClass
PostType = PostTypeClass
| data/acryl-datahub-0.12.1.5/src/datahub/metadata/com/linkedin/pegasus2avro/post/__init__.py | 169 | 78 | 435,688 |
LOAD_CONST 'Utility functions for tests.'
STORE_NAME __doc__
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME os
STORE_NAME os
LOAD_CONST <code object using_conda at 0x7fab42914780, file "f.py", line 6>
LOAD_CONST 'using_conda'
MAKE_FUNCTION
STORE_NAME using_conda
LOAD_CONST <code object not_using_conda at 0x7fadb5811c00, f... | """Utility functions for tests."""
import os
def using_conda():
return os.environ.get("USE_CONDA", "Yes") == "Yes"
def not_using_conda():
return os.environ.get("USE_CONDA", "No") == "No"
| data/QtPy-2.4.1/qtpy/tests/utils.py | 217 | 78 | 356,931 |
LOAD_CONST 0
LOAD_CONST ('Image',)
IMPORT_NAME ydata_profiling.report.presentation.core
IMPORT_FROM Image
STORE_NAME Image
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_CLASS
LOAD_CONST <code o... | from ydata_profiling.report.presentation.core import Image
from ydata_profiling.report.presentation.flavours.html import templates
class HTMLImage(Image):
def render(self) -> str:
return templates.template("diagram.html").render(**self.content)
| data/ydata-profiling-4.6.4/src/ydata_profiling/report/presentation/flavours/html/image.py | 253 | 78 | 190,110 |
LOAD_CONST 0
LOAD_CONST ('re_path',)
IMPORT_NAME django.urls
IMPORT_FROM re_path
STORE_NAME re_path
POP_TOP
LOAD_CONST 1
LOAD_CONST ('views',)
IMPORT_NAME
IMPORT_FROM views
STORE_NAME views
POP_TOP
LOAD_NAME re_path
LOAD_CONST '^$'
LOAD_NAME views
LOAD_ATTR sample_view
LOAD_CONST 'message'
LOAD_CONST 'sample root ... | from django.urls import re_path
from . import views
urlpatterns = [
re_path(
r"^$",
views.sample_view,
{
"message": "sample root page",
},
name="sample-config-root",
),
]
| data/django-cms-4.1.0/cms/test_utils/project/sampleapp/urls_sample_config.py | 119 | 78 | 87,029 |
LOAD_CONST 1
LOAD_CONST ('SimilarityIndex', 'BRAINSTalairach', 'BRAINSTalairachMask')
IMPORT_NAME segmentation
IMPORT_FROM SimilarityIndex
STORE_NAME SimilarityIndex
IMPORT_FROM BRAINSTalairach
STORE_NAME BRAINSTalairach
IMPORT_FROM BRAINSTalairachMask
STORE_NAME BRAINSTalairachMask
POP_TOP
LOAD_CONST 1
LOAD_CONST ('H... | from .segmentation import SimilarityIndex, BRAINSTalairach, BRAINSTalairachMask
from .utilities import (
HistogramMatchingFilter,
GenerateEdgeMapImage,
GeneratePurePlugMask,
)
from .classify import BRAINSPosteriorToContinuousClass
| data/nipype-1.8.6/nipype/interfaces/semtools/brains/__init__.py | 217 | 78 | 139,276 |
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 PersonalCacheItem at 0x7fab700e41e0, file "f.py", line 4>
LOAD_CONST 'PersonalCacheItem'
MAKE_FUNCTION
LOAD_CONST 'PersonalCacheItem'
LOAD_... | from office365.runtime.client_value import ClientValue
class PersonalCacheItem(ClientValue):
"""Object representing a PersonalCache item, returned from ReadCache methods of the PersonalCache."""
@property
def entity_type_name(self):
return "SP.UserProfiles.PersonalCacheItem"
| data/Office365-REST-Python-Client-2.5.5/office365/sharepoint/userprofiles/personal_cache_item.py | 242 | 78 | 189,762 |
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 ('RowsApi',)
IMPORT_NAME hubspot.cms.hubdb.api.rows_api
IMPORT_FROM RowsApi
STORE_NAME RowsApi
POP_TOP
LOAD_CONST 0
LOAD_CONST ('RowsBatchApi',)
IMPORT_NAME hubspo... | from __future__ import absolute_import
from hubspot.cms.hubdb.api.rows_api import RowsApi
from hubspot.cms.hubdb.api.rows_batch_api import RowsBatchApi
from hubspot.cms.hubdb.api.tables_api import TablesApi
| data/hubspot-api-client-8.2.1/hubspot/cms/hubdb/api/__init__.py | 164 | 78 | 320,499 |
LOAD_CONST 1
LOAD_CONST ('get_df',)
IMPORT_NAME dynamo_pandas
IMPORT_FROM get_df
STORE_NAME get_df
POP_TOP
LOAD_CONST 1
LOAD_CONST ('keys',)
IMPORT_NAME dynamo_pandas
IMPORT_FROM keys
STORE_NAME keys
POP_TOP
LOAD_CONST 1
LOAD_CONST ('put_df',)
IMPORT_NAME dynamo_pandas
IMPORT_FROM put_df
STORE_NAME put_df
POP_TOP
LO... | from .dynamo_pandas import get_df
from .dynamo_pandas import keys
from .dynamo_pandas import put_df
__version__ = "1.3.0"
__all__ = ["get_df", "keys", "put_df", "__version__"]
| data/dynamo-pandas-1.3.0/dynamo_pandas/__init__.py | 146 | 78 | 58,382 |
LOAD_CONST '\nImplements the PathSeparators enumeration.\n\nThis is provided for compatibility with older versions,\nbefore the spelling was updated to "separator."\n\nCopyright 2019, 2020 William W. Kimball, Jr. MBA MSIS\n'
STORE_NAME __doc__
LOAD_CONST 1
LOAD_CONST ('PathSeparators',)
IMPORT_NAME pathseparators
IMPO... | """
Implements the PathSeparators enumeration.
This is provided for compatibility with older versions,
before the spelling was updated to "separator."
Copyright 2019, 2020 William W. Kimball, Jr. MBA MSIS
"""
from .pathseparators import PathSeparators as PathSeperators
| data/yamlpath-3.8.2/yamlpath/enums/pathseperators.py | 108 | 78 | 121,385 |
SETUP_LOOP to 32
LOAD_NAME __file__
POP_JUMP_IF_FALSE
SETUP_LOOP to 28
LOAD_NAME __file__
POP_JUMP_IF_FALSE
BREAK_LOOP
LOAD_NAME RuntimeError
RAISE_VARARGS
JUMP_ABSOLUTE
POP_BLOCK
JUMP_ABSOLUTE
LOAD_NAME RuntimeError
RAISE_VARARGS
JUMP_ABSOLUTE
POP_BLOCK
LOAD_CONST <code object _parseparam at 0x7fab4106c150, fil... | while 1:
if __file__:
while 1:
if __file__:
break
raise RuntimeError
else:
raise RuntimeError
def _parseparam(s, end):
while end > 0 and s.count(""):
end = s.find(";")
| data/xdis-6.0.5/test/simple_source/bug30/02_while1_if_while1.py | 168 | 78 | 85,369 |
LOAD_CONST 'Zapier Tool.'
STORE_NAME __doc__
LOAD_CONST 0
LOAD_CONST ('ZapierNLAListActions', 'ZapierNLARunAction')
IMPORT_NAME langchain_community.tools.zapier.tool
IMPORT_FROM ZapierNLAListActions
STORE_NAME ZapierNLAListActions
IMPORT_FROM ZapierNLARunAction
STORE_NAME ZapierNLARunAction
POP_TOP
LOAD_CONST 'Zapier... | """Zapier Tool."""
from langchain_community.tools.zapier.tool import (
ZapierNLAListActions,
ZapierNLARunAction,
)
__all__ = [
"ZapierNLARunAction",
"ZapierNLAListActions",
]
| data/langchain-0.1.8/langchain/tools/zapier/__init__.py | 126 | 78 | 369,356 |
LOAD_CONST 0
LOAD_CONST ('*',)
IMPORT_NAME azure.cli.core.aaz
IMPORT_STAR
LOAD_NAME register_command_group
LOAD_CONST 'servicebus migration'
CALL_FUNCTION
LOAD_BUILD_CLASS
LOAD_CONST <code object __CMDGroup at 0x7faa5ec3bae0, file "f.py", line 4>
LOAD_CONST '__CMDGroup'
MAKE_FUNCTION
LOAD_CONST '__CMDGroup'
LOAD_NAM... | from azure.cli.core.aaz import *
@register_command_group(
"servicebus migration",
)
class __CMDGroup(AAZCommandGroup):
"""Manage Azure Service Bus Migration of Standard to Premium."""
pass
__all__ = ["__CMDGroup"]
| data/azure-cli-2.57.0/azure/cli/command_modules/servicebus/aaz/latest/servicebus/migration/__cmd_group.py | 186 | 78 | 375,734 |
LOAD_CONST 0
LOAD_CONST ('current_audit_info',)
IMPORT_NAME prowler.providers.aws.lib.audit_info.audit_info
IMPORT_FROM current_audit_info
STORE_NAME current_audit_info
POP_TOP
LOAD_CONST 0
LOAD_CONST ('CloudFormation',)
IMPORT_NAME prowler.providers.aws.services.cloudformation.cloudformation_service
IMPORT_FROM Cloud... | from prowler.providers.aws.lib.audit_info.audit_info import current_audit_info
from prowler.providers.aws.services.cloudformation.cloudformation_service import (
CloudFormation,
)
cloudformation_client = CloudFormation(current_audit_info)
| data/prowler-3.14.0/prowler/providers/aws/services/cloudformation/cloudformation_client.py | 127 | 78 | 183,132 |
LOAD_CONST 'The klio developers'
STORE_NAME __author__
LOAD_CONST '22.3.0'
STORE_NAME __version__
LOAD_CONST 'opensource+klio@spotify.com'
STORE_NAME __email__
LOAD_CONST 'Core klio library for common functionality'
STORE_NAME __description__
LOAD_CONST 'https://github.com/spotify/klio'
STORE_NAME __uri__
LOAD_CONS... | __author__ = "The klio developers"
__version__ = "22.3.0"
__email__ = "opensource+klio@spotify.com"
__description__ = "Core klio library for common functionality"
__uri__ = "https://github.com/spotify/klio"
| data/klio-core-22.3.0/src/klio_core/__init__.py | 96 | 78 | 373,701 |
LOAD_CONST '6.0.2'
STORE_NAME __version__
LOAD_NAME __version__
STORE_NAME main_version
LOAD_CONST 'beta'
LOAD_NAME __version__
COMPARE_OP in
POP_JUMP_IF_FALSE
LOAD_NAME __version__
LOAD_METHOD split
LOAD_CONST '-beta'
CALL_METHOD
LOAD_CONST 0
BINARY_SUBSCR
STORE_NAME main_version
LOAD_NAME tuple
LOAD_CONST <code o... | __version__ = "6.0.2"
main_version = __version__
if "beta" in __version__:
main_version = __version__.split("-beta")[0]
version = tuple(int(x) for x in main_version.split("."))
majorVersionId = version[0]
| data/pysnmp_lextudio-6.0.2/pysnmp/__init__.py | 193 | 78 | 343,685 |
LOAD_CONST 0
LOAD_CONST ('annotations',)
IMPORT_NAME __future__
IMPORT_FROM annotations
STORE_NAME annotations
POP_TOP
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME sys
STORE_NAME sys
LOAD_NAME sys
LOAD_ATTR version_info
LOAD_CONST (3, 11)
COMPARE_OP <
POP_JUMP_IF_FALSE
LOAD_CONST 0
LOAD_CONST ('ExceptionGroup',)
IMPORT_... | from __future__ import annotations
import sys
if sys.version_info < (3, 11):
from exceptiongroup import ExceptionGroup
else:
from builtins import ExceptionGroup
__all__ = ["ExceptionGroup"]
def __dir__() -> list[str]:
return __all__
| data/scikit_build_core-0.8.1/src/scikit_build_core/_compat/builtins.py | 214 | 78 | 134,873 |
BUILD_MAP
BUILD_TUPLE
LOAD_CONST <code object start_new_thread at 0x7fab4106c4b0, file "f.py", line 1>
LOAD_CONST 'start_new_thread'
MAKE_FUNCTION
STORE_NAME start_new_thread
LOAD_CONST <code object interact at 0x7fab4106c270, file "f.py", line 10>
LOAD_CONST 'interact'
MAKE_FUNCTION
STORE_NAME interact
LOAD_CONST Non... | def start_new_thread(function, args, kwargs={}):
try:
function()
except SystemExit:
pass
except:
args()
def interact():
while 1:
try:
more = 1
except KeyboardInterrupt:
more = 0
| data/xdis-6.0.5/test/simple_source/bug30/02_try_except_except.py | 258 | 78 | 85,361 |
LOAD_CONST 1
LOAD_CONST ('*',)
IMPORT_NAME clipboardmodels
IMPORT_STAR
LOAD_CONST 1
LOAD_CONST ('*',)
IMPORT_NAME filemodels
IMPORT_STAR
LOAD_CONST 1
LOAD_CONST ('*',)
IMPORT_NAME foldermodels
IMPORT_STAR
LOAD_CONST 1
LOAD_CONST ('*',)
IMPORT_NAME imagemodels
IMPORT_STAR
LOAD_CONST 1
LOAD_CONST ('*',)
IMPORT_NAME t... | from .clipboardmodels import * # noqa
from .filemodels import * # noqa
from .foldermodels import * # noqa
from .imagemodels import * # noqa
from .thumbnailoptionmodels import * # noqa
from .virtualitems import * # noqa
| data/django-filer-3.1.1/filer/models/__init__.py | 111 | 78 | 418,718 |
LOAD_CONST 0
LOAD_CONST ('LogEntry', 'LogStreamCallbackHandler', 'RunLog', 'RunLogPatch', 'RunState')
IMPORT_NAME langchain_core.tracers.log_stream
IMPORT_FROM LogEntry
STORE_NAME LogEntry
IMPORT_FROM LogStreamCallbackHandler
STORE_NAME LogStreamCallbackHandler
IMPORT_FROM RunLog
STORE_NAME RunLog
IMPORT_FROM RunLogPat... | from langchain_core.tracers.log_stream import (
LogEntry,
LogStreamCallbackHandler,
RunLog,
RunLogPatch,
RunState,
)
__all__ = ["LogEntry", "RunState", "RunLog", "RunLogPatch", "LogStreamCallbackHandler"]
| data/langchain-0.1.8/langchain/callbacks/tracers/log_stream.py | 141 | 78 | 368,343 |
LOAD_CONST ('v4', 'v4-query', 'v4a', 's3v4', 's3v4-query', 's3v4a', 's3v4a-query')
STORE_NAME CRT_SUPPORTED_AUTH_TYPES
LOAD_CONST None
RETURN_VALUE | CRT_SUPPORTED_AUTH_TYPES = (
"v4",
"v4-query",
"v4a",
"s3v4",
"s3v4-query",
"s3v4a",
"s3v4a-query",
)
| data/botocore-1.34.46/botocore/crt/__init__.py | 67 | 78 | 166,210 |
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
import json
def main():
print(json.dumps(dict(changed=False, source="user", is_deprecated=True)))
if __name__ == "__main__":
main()
| data/ansible-core-2.16.3/test/integration/targets/collections/collection_root_user/ansible_collections/testns/testcoll/plugins/modules/deprecated_ping.py | 202 | 78 | 437,314 |
LOAD_CONST 0
LOAD_CONST ('patcher',)
IMPORT_NAME eventlet
IMPORT_FROM patcher
STORE_NAME patcher
POP_TOP
LOAD_CONST 0
LOAD_CONST ('socket',)
IMPORT_NAME eventlet.green
IMPORT_FROM socket
STORE_NAME socket
POP_TOP
LOAD_CONST 0
LOAD_CONST ('select',)
IMPORT_NAME eventlet.green
IMPORT_FROM select
STORE_NAME select
POP_T... | from eventlet import patcher
from eventlet.green import socket
from eventlet.green import select
from eventlet.green import threading
patcher.inject(
"socketserver",
globals(),
("socket", socket),
("select", select),
("threading", threading),
)
| data/eventlet-0.35.1/eventlet/green/SocketServer.py | 169 | 78 | 361,945 |
LOAD_CONST 0
LOAD_CONST ('main',)
IMPORT_NAME xmldiff
IMPORT_FROM main
STORE_NAME xml_diff
POP_TOP
LOAD_CONST (None,)
LOAD_CONST <code object assert_xml_diff at 0x7f8e2fec3c00, file "f.py", line 4>
LOAD_CONST 'assert_xml_diff'
MAKE_FUNCTION
STORE_NAME assert_xml_diff
LOAD_CONST None
RETURN_VALUE
LOAD_FAST actual
POP_... | from xmldiff import main as xml_diff
def assert_xml_diff(actual, expected, msg=None):
if actual and expected:
diff = xml_diff.diff_texts(actual, expected)
assert len(diff) == 0, msg
else:
assert actual == expected, msg
| data/pypsrp-0.8.1/tests/__init__.py | 190 | 78 | 330,978 |
LOAD_CONST 0
LOAD_CONST ('STRING',)
IMPORT_NAME flex.constants
IMPORT_FROM STRING
STORE_NAME STRING
POP_TOP
LOAD_CONST 0
LOAD_CONST ('generate_object_validator',)
IMPORT_NAME flex.validation.common
IMPORT_FROM generate_object_validator
STORE_NAME generate_object_validator
POP_TOP
LOAD_CONST 'type'
LOAD_NAME STRING
BU... | from flex.constants import (
STRING,
)
from flex.validation.common import (
generate_object_validator,
)
description_schema = {
"type": STRING,
}
description_validator = generate_object_validator(
schema=description_schema,
)
| data/flex-6.14.1/flex/loading/common/single_header/description.py | 118 | 78 | 105,458 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME sys
STORE_NAME sys
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME numpy
STORE_NAME numpy
LOAD_CONST 0
LOAD_CONST ('geos_version_string',)
IMPORT_NAME shapely.geos
IMPORT_FROM geos_version_string
STORE_NAME geos_version_string
POP_TOP
LOAD_NAME print
LOAD_CONST 'Python version: '
LO... | import sys
import numpy
from shapely.geos import geos_version_string
print("Python version: " + sys.version.replace("\n", " "))
print("GEOS version: " + geos_version_string)
print("Numpy version: " + numpy.version.version)
| data/shapely-2.0.3/shapely/tests/legacy/__init__.py | 168 | 78 | 94,924 |
LOAD_NAME __import__
LOAD_CONST 'time'
CALL_FUNCTION
STORE_NAME __time
LOAD_CONST 0
LOAD_CONST ('slurp_properties',)
IMPORT_NAME eventlet.patcher
IMPORT_FROM slurp_properties
STORE_NAME slurp_properties
POP_TOP
LOAD_CONST 'sleep'
BUILD_LIST
STORE_NAME __patched__
LOAD_NAME slurp_properties
LOAD_NAME __time
LOAD_NAME... | __time = __import__("time")
from eventlet.patcher import slurp_properties
__patched__ = ["sleep"]
slurp_properties(__time, globals(), ignore=__patched__, srckeys=dir(__time))
from eventlet.greenthread import sleep
sleep # silence pyflakes
| data/eventlet-0.35.1/eventlet/green/time.py | 151 | 78 | 361,948 |
LOAD_CONST 0
LOAD_CONST ('SearchPropertyExplorer', 'PropertyType')
IMPORT_NAME refinitiv.data.discovery._search_explorer
IMPORT_FROM SearchPropertyExplorer
STORE_NAME SearchPropertyExplorer
IMPORT_FROM PropertyType
STORE_NAME PropertyType
POP_TOP
LOAD_CONST 0
LOAD_CONST ('Suppliers', 'Customers')
IMPORT_NAME refinitiv... | from refinitiv.data.discovery._search_explorer import (
SearchPropertyExplorer,
PropertyType,
)
from refinitiv.data.discovery._stakeholders import Suppliers, Customers
__all__ = ("Suppliers", "Customers", "SearchPropertyExplorer", "PropertyType")
| data/refinitiv-data-1.6.0/refinitiv/data/early_access/discovery/__init__.py | 135 | 78 | 195,231 |
LOAD_CONST 0
LOAD_CONST ('current_audit_info',)
IMPORT_NAME prowler.providers.aws.lib.audit_info.audit_info
IMPORT_FROM current_audit_info
STORE_NAME current_audit_info
POP_TOP
LOAD_CONST 0
LOAD_CONST ('AutoScaling',)
IMPORT_NAME prowler.providers.aws.services.autoscaling.autoscaling_service
IMPORT_FROM AutoScaling
ST... | from prowler.providers.aws.lib.audit_info.audit_info import current_audit_info
from prowler.providers.aws.services.autoscaling.autoscaling_service import AutoScaling
autoscaling_client = AutoScaling(current_audit_info)
| data/prowler-3.14.0/prowler/providers/aws/services/autoscaling/autoscaling_client.py | 133 | 78 | 183,318 |
LOAD_CONST 1
LOAD_CONST ('*',)
IMPORT_NAME generated.custom
IMPORT_STAR
SETUP_EXCEPT to 22
LOAD_CONST 1
LOAD_CONST ('*',)
IMPORT_NAME manual.custom
IMPORT_STAR
POP_BLOCK
JUMP_FORWARD to 74
DUP_TOP
LOAD_NAME ImportError
COMPARE_OP exception match
POP_JUMP_IF_FALSE
POP_TOP
STORE_NAME e
POP_TOP
SETUP_FINALLY to 60
LOA... | from .generated.custom import * # noqa: F403
try:
from .manual.custom import * # noqa: F403
except ImportError as e:
if e.name.endswith("manual.custom"):
pass
else:
raise e
| data/azure-cli-2.57.0/azure/cli/command_modules/synapse/custom.py | 144 | 78 | 375,454 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME pkg_resources
STORE_NAME pkg_resources
LOAD_CONST 1
LOAD_CONST ('FakerKeywords',)
IMPORT_NAME keywords
IMPORT_FROM FakerKeywords
STORE_NAME FakerKeywords
POP_TOP
LOAD_NAME pkg_resources
LOAD_METHOD get_distribution
LOAD_CONST 'robotframework-faker'
CALL_METHOD
LOAD_ATTR versio... | import pkg_resources
from .keywords import FakerKeywords
__version__ = pkg_resources.get_distribution("robotframework-faker").version
class FakerLibrary(FakerKeywords):
""" """
ROBOT_LIBRARY_SCOPE = "GLOBAL"
| data/robotframework-faker-5.0.0/robotframework-faker/FakerLibrary/__init__.py | 213 | 78 | 169,877 |
LOAD_CONST 'The klio developers'
STORE_NAME __author__
LOAD_CONST '22.3.0'
STORE_NAME __version__
LOAD_CONST 'opensource+klio@spotify.com'
STORE_NAME __email__
LOAD_CONST 'Conventions for Python + Apache Beam '
STORE_NAME __description__
LOAD_CONST 'https://github.com/spotify/klio'
STORE_NAME __uri__
LOAD_CONST Non... | __author__ = "The klio developers"
__version__ = "22.3.0"
__email__ = "opensource+klio@spotify.com"
__description__ = "Conventions for Python + Apache Beam "
__uri__ = "https://github.com/spotify/klio"
| data/klio-22.3.0/src/klio/__init__.py | 96 | 78 | 172,343 |
LOAD_CONST 2
LOAD_CONST ('ShopifyResource',)
IMPORT_NAME base
IMPORT_FROM ShopifyResource
STORE_NAME ShopifyResource
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object ApiPermission at 0x7fab427d3c90, file "f.py", line 4>
LOAD_CONST 'ApiPermission'
MAKE_FUNCTION
LOAD_CONST 'ApiPermission'
LOAD_NAME ShopifyResource
CALL_... | from ..base import ShopifyResource
class ApiPermission(ShopifyResource):
@classmethod
def delete(cls):
cls.connection.delete(
cls.site + "/api_permissions/current." + cls.format.extension, cls.headers
)
destroy = delete
| data/ShopifyAPI-12.4.0/shopify/resources/api_permission.py | 240 | 78 | 216,732 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME unittest
STORE_NAME unittest
LOAD_CONST 0
LOAD_CONST ('ZeroMean',)
IMPORT_NAME gpytorch.means
IMPORT_FROM ZeroMean
STORE_NAME ZeroMean
POP_TOP
LOAD_CONST 0
LOAD_CONST ('BaseMeanTestCase',)
IMPORT_NAME gpytorch.test.base_mean_test_case
IMPORT_FROM BaseMeanTestCase
STORE_NAME Ba... | import unittest
from gpytorch.means import ZeroMean
from gpytorch.test.base_mean_test_case import BaseMeanTestCase
class TestZeroMean(BaseMeanTestCase, unittest.TestCase):
def create_mean(self):
return ZeroMean()
| data/gpytorch-1.11/test/means/test_zero_mean.py | 274 | 78 | 236,235 |
LOAD_CONST "\nInstall whylogs with extra [proc] for process based logging: pip install whylogs[proc]. If you can't\nbuild the faster_fifo module then you can try the alternative whylogs[proc-mp] that uses the built in\npython queue module, at the cost of performance.\n"
STORE_NAME proc_error_message
LOAD_CONST None
RET... | proc_error_message = """
Install whylogs with extra [proc] for process based logging: pip install whylogs[proc]. If you can't
build the faster_fifo module then you can try the alternative whylogs[proc-mp] that uses the built in
python queue module, at the cost of performance.
"""
| data/whylogs-1.3.24/whylogs/api/logger/experimental/logger/actor/proc_error_message.py | 86 | 78 | 432,547 |
LOAD_CONST 1
LOAD_CONST ('*',)
IMPORT_NAME atom_builder
IMPORT_STAR
LOAD_CONST 1
LOAD_CONST ('*',)
IMPORT_NAME blocked_flash
IMPORT_STAR
LOAD_CONST 1
LOAD_CONST ('*',)
IMPORT_NAME embed
IMPORT_STAR
LOAD_CONST 1
LOAD_CONST ('*',)
IMPORT_NAME linear_blocked_kv_rotary
IMPORT_STAR
LOAD_CONST 1
LOAD_CONST ('*',)
IMPORT_... | from .atom_builder import *
from .blocked_flash import *
from .embed import *
from .linear_blocked_kv_rotary import *
from .logits_gather import *
from .moe_gather import *
from .moe_scatter import *
from .top_k_gating import *
| data/deepspeed-0.13.2/deepspeed/inference/v2/kernels/ragged_ops/__init__.py | 160 | 78 | 84,871 |
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
import json
def main():
print(json.dumps(dict(changed=False, source="legacy_library_dir")))
if __name__ == "__main__":
main()
| data/ansible-core-2.16.3/test/integration/targets/collections/library/ping.py | 199 | 78 | 437,332 |
LOAD_CONST 0
LOAD_CONST ('ModelEvaluation',)
IMPORT_NAME google.cloud.aiplatform.model_evaluation.model_evaluation
IMPORT_FROM ModelEvaluation
STORE_NAME ModelEvaluation
POP_TOP
LOAD_CONST 0
LOAD_CONST ('_ModelEvaluationJob',)
IMPORT_NAME google.cloud.aiplatform.model_evaluation.model_evaluation_job
IMPORT_FROM _Model... | from google.cloud.aiplatform.model_evaluation.model_evaluation import (
ModelEvaluation,
)
from google.cloud.aiplatform.model_evaluation.model_evaluation_job import (
_ModelEvaluationJob,
)
__all__ = ("ModelEvaluation", "_ModelEvaluationJob")
| data/google-cloud-aiplatform-1.42.1/google/cloud/aiplatform/model_evaluation/__init__.py | 117 | 78 | 14,041 |
LOAD_CONST 0
LOAD_CONST ('Enum',)
IMPORT_NAME enum
IMPORT_FROM Enum
STORE_NAME Enum
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object DelegatedAdminRelationshipRequestStatus at 0x7fab822dbc00, file "f.py", line 4>
LOAD_CONST 'DelegatedAdminRelationshipRequestStatus'
MAKE_FUNCTION
LOAD_CONST 'DelegatedAdminRelationshipR... | from enum import Enum
class DelegatedAdminRelationshipRequestStatus(str, Enum):
Created = ("created",)
Pending = ("pending",)
Succeeded = ("succeeded",)
Failed = ("failed",)
UnknownFutureValue = ("unknownFutureValue",)
| data/msgraph-sdk-1.1.0/msgraph/generated/models/delegated_admin_relationship_request_status.py | 214 | 78 | 261,700 |
LOAD_CONST 0
LOAD_CONST ('CnnPolicy', 'MlpPolicy', 'MultiInputPolicy')
IMPORT_NAME sb3_contrib.qrdqn.policies
IMPORT_FROM CnnPolicy
STORE_NAME CnnPolicy
IMPORT_FROM MlpPolicy
STORE_NAME MlpPolicy
IMPORT_FROM MultiInputPolicy
STORE_NAME MultiInputPolicy
POP_TOP
LOAD_CONST 0
LOAD_CONST ('QRDQN',)
IMPORT_NAME sb3_contrib... | from sb3_contrib.qrdqn.policies import CnnPolicy, MlpPolicy, MultiInputPolicy
from sb3_contrib.qrdqn.qrdqn import QRDQN
__all__ = ["CnnPolicy", "MlpPolicy", "MultiInputPolicy", "QRDQN"]
| data/sb3_contrib-2.2.1/sb3_contrib/qrdqn/__init__.py | 158 | 78 | 193,223 |
LOAD_CONST '\nCaching utilities for waffle toggles.\n'
STORE_NAME __doc__
LOAD_CONST 0
LOAD_CONST ('RequestCache',)
IMPORT_NAME edx_django_utils.cache
IMPORT_FROM RequestCache
STORE_NAME RequestCache
POP_TOP
LOAD_CONST <code object _get_waffle_request_cache at 0x7fab8212ba50, file "f.py", line 8>
LOAD_CONST '_get_waf... | """
Caching utilities for waffle toggles.
"""
from edx_django_utils.cache import RequestCache
def _get_waffle_request_cache():
"""
Returns a request cache shared by all Waffle objects.
"""
return RequestCache("WaffleNamespace").data
| data/edx-toggles-5.1.1/edx_toggles/toggles/internal/waffle/cache.py | 147 | 78 | 169,916 |
LOAD_CONST 0
LOAD_CONST ('*',)
IMPORT_NAME azure.cli.core.aaz
IMPORT_STAR
LOAD_NAME register_command_group
LOAD_CONST 'afd log-analytic ranking'
CALL_FUNCTION
LOAD_BUILD_CLASS
LOAD_CONST <code object __CMDGroup at 0x7fab64192c00, file "f.py", line 4>
LOAD_CONST '__CMDGroup'
MAKE_FUNCTION
LOAD_CONST '__CMDGroup'
LOAD... | from azure.cli.core.aaz import *
@register_command_group(
"afd log-analytic ranking",
)
class __CMDGroup(AAZCommandGroup):
"""Manage ranking statistics for AFD profile."""
pass
__all__ = ["__CMDGroup"]
| data/azure-cli-2.57.0/azure/cli/command_modules/cdn/aaz/latest/afd/log_analytic/ranking/__cmd_group.py | 188 | 78 | 375,232 |
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 'settings'
CALL_METHOD
PO... | import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "settings")
from django.core.management import execute_from_command_line
execute_from_command_line(sys.argv)
| data/django-guardian-2.4.0/example_project/manage.py | 151 | 78 | 127,545 |
LOAD_CONST 0
LOAD_CONST ('is_initialized', 'initialize_cache', 'set_cache_dir', 'reset_cache')
IMPORT_NAME jax._src.compilation_cache
IMPORT_FROM is_initialized
STORE_NAME is_initialized
IMPORT_FROM initialize_cache
STORE_NAME initialize_cache
IMPORT_FROM set_cache_dir
STORE_NAME set_cache_dir
IMPORT_FROM reset_cache
S... | from jax._src.compilation_cache import (
is_initialized as is_initialized, # deprecated
initialize_cache as initialize_cache, # deprecated; use set_cache_dir instead
set_cache_dir as set_cache_dir,
reset_cache as reset_cache,
)
| data/jax-0.4.24/jax/experimental/compilation_cache/compilation_cache.py | 94 | 78 | 328,924 |
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
import json
def main():
print(json.dumps(dict(changed=False, source="legacy_library_dir")))
if __name__ == "__main__":
main()
| data/ansible-core-2.16.3/test/integration/targets/plugin_loader/normal/library/_underscore.py | 199 | 78 | 437,268 |
LOAD_CONST 0
LOAD_CONST ('Enum',)
IMPORT_NAME enum
IMPORT_FROM Enum
STORE_NAME Enum
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object PrintDuplexMode at 0x7fab820f4660, file "f.py", line 4>
LOAD_CONST 'PrintDuplexMode'
MAKE_FUNCTION
LOAD_CONST 'PrintDuplexMode'
LOAD_NAME str
LOAD_NAME Enum
CALL_FUNCTION
STORE_NAME Prin... | from enum import Enum
class PrintDuplexMode(str, Enum):
FlipOnLongEdge = ("flipOnLongEdge",)
FlipOnShortEdge = ("flipOnShortEdge",)
OneSided = ("oneSided",)
UnknownFutureValue = ("unknownFutureValue",)
| data/msgraph-sdk-1.1.0/msgraph/generated/models/print_duplex_mode.py | 198 | 78 | 261,628 |
LOAD_CONST 'Constants for PEGELONLINE.'
STORE_NAME __doc__
LOAD_CONST 0
LOAD_CONST ('timedelta',)
IMPORT_NAME datetime
IMPORT_FROM timedelta
STORE_NAME timedelta
POP_TOP
LOAD_CONST 'pegel_online'
STORE_NAME DOMAIN
LOAD_CONST '25'
STORE_NAME DEFAULT_RADIUS
LOAD_CONST 'station'
STORE_NAME CONF_STATION
LOAD_NAME time... | """Constants for PEGELONLINE."""
from datetime import timedelta
DOMAIN = "pegel_online"
DEFAULT_RADIUS = "25"
CONF_STATION = "station"
MIN_TIME_BETWEEN_UPDATES = timedelta(minutes=5)
| data/homeassistant-2024.2.2/homeassistant/components/pegel_online/const.py | 124 | 78 | 295,583 |
LOAD_CONST '../mask_rcnn/mask-rcnn_x101-32x4d_fpn_1x_coco.py'
STORE_NAME _base_
LOAD_NAME dict
LOAD_NAME dict
LOAD_NAME dict
LOAD_CONST 'SyncBN'
LOAD_CONST True
LOAD_CONST ('type', 'requires_grad')
CALL_FUNCTION
LOAD_CONST False
LOAD_CONST ('norm_cfg', 'norm_eval')
CALL_FUNCTION
LOAD_CONST ('backbone',)
CALL_FUNCTION... | _base_ = "../mask_rcnn/mask-rcnn_x101-32x4d_fpn_1x_coco.py"
model = dict(
backbone=dict(norm_cfg=dict(type="SyncBN", requires_grad=True), norm_eval=False)
)
| data/mmdet-3.3.0/mmdet/.mim/configs/gcnet/mask-rcnn_x101-32x4d-syncbn_fpn_1x_coco.py | 108 | 78 | 151,751 |
LOAD_CONST 0
LOAD_CONST ('mock',)
IMPORT_NAME unittest
IMPORT_FROM mock
STORE_NAME mock
POP_TOP
LOAD_CONST 0
LOAD_CONST ('base',)
IMPORT_NAME oslotest
IMPORT_FROM base
STORE_NAME base
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code object TestCase at 0x7fab82322db0, file "f.py", line 6>
LOAD_CONST 'TestCase'
MAKE_FUNCTION
... | from unittest import mock
from oslotest import base
class TestCase(base.BaseTestCase):
"""Test case base class for all unit and functional tests."""
def setUp(self):
super(TestCase, self).setUp()
self.addCleanup(mock.patch.stopall)
| data/ovsdbapp-2.5.1/ovsdbapp/tests/base.py | 274 | 78 | 69,467 |
LOAD_CONST 'Allow safety to be executable through `python -m safety`.'
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 ('cli',)
IMPORT_NAME pipenv.patched.safety.cli
IMPORT_FROM cli
STORE_NAME... | """Allow safety to be executable through `python -m safety`."""
from __future__ import absolute_import
from pipenv.patched.safety.cli import cli
if __name__ == "__main__": # pragma: no cover
cli(prog_name="safety")
| data/pipenv-2023.12.1/pipenv/patched/safety/__main__.py | 134 | 78 | 401,922 |
LOAD_CONST 0
LOAD_CONST ('StripeService',)
IMPORT_NAME stripe._stripe_service
IMPORT_FROM StripeService
STORE_NAME StripeService
POP_TOP
LOAD_CONST 0
LOAD_CONST ('SecretService',)
IMPORT_NAME stripe.apps._secret_service
IMPORT_FROM SecretService
STORE_NAME SecretService
POP_TOP
LOAD_BUILD_CLASS
LOAD_CONST <code objec... | from stripe._stripe_service import StripeService
from stripe.apps._secret_service import SecretService
class AppsService(StripeService):
def __init__(self, requestor):
super().__init__(requestor)
self.secrets = SecretService(self._requestor)
| data/stripe-8.3.0/stripe/_apps_service.py | 282 | 78 | 11,912 |
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME os
STORE_NAME os
LOAD_CONST 1
LOAD_CONST ('JupyterLanguage',)
IMPORT_NAME jupyter_language
IMPORT_FROM JupyterLanguage
STORE_NAME JupyterLanguage
POP_TOP
LOAD_CONST '1'
LOAD_NAME os
LOAD_ATTR environ
LOAD_CONST 'PYDEVD_DISABLE_FILE_VALIDATION'
STORE_SUBSCR
LOAD_CONST '1'
LOAD... | import os
from .jupyter_language import JupyterLanguage
os.environ["PYDEVD_DISABLE_FILE_VALIDATION"] = "1"
os.environ["ANSI_COLORS_DISABLED"] = "1"
class Python(JupyterLanguage):
pass
| data/open_interpreter-0.2.0/interpreter/core/computer/terminal/languages/python.py | 203 | 78 | 10,172 |
LOAD_CONST 0
LOAD_CONST ('BearlyInterpreterTool', 'BearlyInterpreterToolArguments', 'FileInfo')
IMPORT_NAME langchain_community.tools.bearly.tool
IMPORT_FROM BearlyInterpreterTool
STORE_NAME BearlyInterpreterTool
IMPORT_FROM BearlyInterpreterToolArguments
STORE_NAME BearlyInterpreterToolArguments
IMPORT_FROM FileInfo
S... | from langchain_community.tools.bearly.tool import (
BearlyInterpreterTool,
BearlyInterpreterToolArguments,
FileInfo,
)
__all__ = [
"BearlyInterpreterToolArguments",
"FileInfo",
"BearlyInterpreterTool",
]
| data/langchain-0.1.8/langchain/tools/bearly/tool.py | 126 | 78 | 369,365 |
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 alert_manager_definition
IMPORT_STAR
LOAD_CONST 1
LOAD_CONST ('*',)
IMPORT_NAME get_workspace
IMPORT_ST... | from .. import _utilities
import typing
from .alert_manager_definition import *
from .get_workspace import *
from .get_workspaces import *
from .rule_group_namespace import *
from .scraper import *
from .workspace import *
from ._inputs import *
from . import outputs
| data/pulumi_aws-6.22.2/pulumi_aws/amp/__init__.py | 197 | 78 | 226,187 |
LOAD_CONST 0
LOAD_CONST ('print_function', 'unicode_literals')
IMPORT_NAME __future__
IMPORT_FROM print_function
STORE_NAME print_function
IMPORT_FROM unicode_literals
STORE_NAME unicode_literals
POP_TOP
LOAD_CONST 0
LOAD_CONST None
IMPORT_NAME rest_framework
STORE_NAME rest_framework
LOAD_NAME str
LOAD_NAME rest_fra... | from __future__ import print_function, unicode_literals
import rest_framework
if str(rest_framework.__version__).startswith("2"):
from .drf2.mixins import * # noqa
else:
from .drf3.mixins import * # noqa
| data/djangorestframework-bulk-0.2.1/rest_framework_bulk/mixins.py | 150 | 78 | 236,861 |
LOAD_CONST '\nFlytekit SQLite3Task\n=========================================\n.. currentmodule:: flytekit.extras.sqlite3\n\n.. autosummary::\n :template: custom.rst\n :toctree: generated/\n\n ~task.SQLite3Task\n ~task.SQLite3Config\n'
STORE_NAME __doc__
LOAD_CONST None
RETURN_VALUE | """
Flytekit SQLite3Task
=========================================
.. currentmodule:: flytekit.extras.sqlite3
.. autosummary::
:template: custom.rst
:toctree: generated/
~task.SQLite3Task
~task.SQLite3Config
"""
| data/flytekit-1.10.7/flytekit/extras/sqlite3/__init__.py | 93 | 78 | 52,390 |
LOAD_CONST 1
LOAD_CONST ('*',)
IMPORT_NAME generated.action
IMPORT_STAR
SETUP_EXCEPT to 22
LOAD_CONST 1
LOAD_CONST ('*',)
IMPORT_NAME manual.action
IMPORT_STAR
POP_BLOCK
JUMP_FORWARD to 74
DUP_TOP
LOAD_NAME ImportError
COMPARE_OP exception match
POP_JUMP_IF_FALSE
POP_TOP
STORE_NAME e
POP_TOP
SETUP_FINALLY to 60
LOA... | from .generated.action import * # noqa: F403
try:
from .manual.action import * # noqa: F403
except ImportError as e:
if e.name.endswith("manual.action"):
pass
else:
raise e
| data/azure-cli-2.57.0/azure/cli/command_modules/synapse/action.py | 144 | 78 | 375,455 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.