code
stringlengths
4
4.48k
docstring
stringlengths
1
6.45k
_id
stringlengths
24
24
class LazyLoaderTest(TestCase): <NEW_LINE> <INDENT> module_name = 'lazyloadertest' <NEW_LINE> @classmethod <NEW_LINE> def setUpClass(cls): <NEW_LINE> <INDENT> cls.opts = salt.config.minion_config(None) <NEW_LINE> cls.opts['grains'] = salt.loader.grains(cls.opts) <NEW_LINE> if not os.path.isdir(RUNTIME_VARS.TMP): <NEW_L...
Test the loader
62598f88462c4b4f79dbb521
class EngineTest(EngineTests): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> super().__init__() <NEW_LINE> self.current_folder = os.path.dirname(__file__) <NEW_LINE> self.name = "test" <NEW_LINE> self.reactive_keyword = "test" <NEW_LINE> <DEDENT> def get_task_template(self): <NEW_LINE> <INDENT> task_templ...
The Class `EngineTests` is a toy class, used to test the core and engine architecture It simulates some task and can give a task template to the user
62598f8824f1403a9268563c
class HalMessageResponse(object): <NEW_LINE> <INDENT> def __init__(self, source = "", data = None, **kwds): <NEW_LINE> <INDENT> super().__init__(**kwds) <NEW_LINE> if not isinstance(source, str): <NEW_LINE> <INDENT> raise HalMessageException("Source is not of type 'str'") <NEW_LINE> <DEDENT> self.data = data <NEW_LINE>...
If a module wants to send some information back to the message sender then it should call the message's addResponse() method with one of the objects.
62598f88596a897236127791
class Experiment: <NEW_LINE> <INDENT> def __init__(self, algorithms, trans_file, emis_file, n_train_samples=20, n_test_samples=20, sample_length=2000, seed=1): <NEW_LINE> <INDENT> self.algorithms = algorithms <NEW_LINE> self.trans_file = trans_file <NEW_LINE> self.emis_file = emis_file <NEW_LINE> self.seed = seed <NEW_...
Class Experiment for experiment managing of hmm, samples and algorithms being tested
62598f8821bff66bcd72278a
class ManyFightsHandler(webapp2.RequestHandler): <NEW_LINE> <INDENT> @context.toplevel <NEW_LINE> def get(self, battles = 10): <NEW_LINE> <INDENT> for i in range(battles): <NEW_LINE> <INDENT> fact1 = Fact.random() <NEW_LINE> fact2 = Fact.random(exclude = [fact1]) <NEW_LINE> battle(fact1, fact2)
Does a couple random fights
62598f8850485f2cf55daa92
class DeferredThread(QThread): <NEW_LINE> <INDENT> def __init__(self, f, *args, **kwargs): <NEW_LINE> <INDENT> app = QCoreApplication.instance() <NEW_LINE> super(DeferredThread, self).__init__(app) <NEW_LINE> self.deferred = defer.Deferred() <NEW_LINE> self.f = f <NEW_LINE> self.args = args <NEW_LINE> self.kwargs = kwa...
A thread that runs a given function.
62598f88b5575c28eb712a57
class Importer(importer.ImporterProtocol): <NEW_LINE> <INDENT> def __init__(self, account_name, currency="ILS", categorizer=None): <NEW_LINE> <INDENT> self.account = account_name <NEW_LINE> self.currency = currency <NEW_LINE> self.categorizer = categorizer <NEW_LINE> <DEDENT> def identify(self, f): <NEW_LINE> <INDENT> ...
An importer for Visa CAL PDF files
62598f884e696a045264db92
class PentalopeBtn(games.Sprite): <NEW_LINE> <INDENT> def __init__(self, game, image = pygame.image.load("images/PentalopeBtn_gray.png").convert_alpha(), disabled = 1, x = 370, y = 46): <NEW_LINE> <INDENT> super(PentalopeBtn, self).__init__(image = image, x = x, y = y) <NEW_LINE> self.game = game <NEW_LINE> self.price ...
Creates new pentelope object and takes 500 coins
62598f8873bcbd0ca4bc9d71
class RHPaymentSettings(RHPaymentManagementBase): <NEW_LINE> <INDENT> def _process(self): <NEW_LINE> <INDENT> methods = get_payment_plugins() <NEW_LINE> enabled_methods = [method for method in methods.itervalues() if method.event_settings.get(self.event, 'enabled')] <NEW_LINE> return WPPaymentEventManagement.render_tem...
Display payment settings
62598f88925a0f43d25e7b53
class LinearSoftmax(nn.Module): <NEW_LINE> <INDENT> def __init__(self, d_model, vocab_size): <NEW_LINE> <INDENT> super(LinearSoftmax, self).__init__() <NEW_LINE> self.proj = nn.Linear(d_model, vocab_size) <NEW_LINE> <DEDENT> def forward(self, x, prob=True): <NEW_LINE> <INDENT> logits = self.proj(x) <NEW_LINE> return F....
Implement the final linear layer.
62598f8807d97122c42167c4
class Department(models.Model): <NEW_LINE> <INDENT> name = models.CharField('Department Name', max_length=100) <NEW_LINE> slug = models.SlugField(unique=True) <NEW_LINE> number = models.CharField(max_length=3, verbose_name = 'Department Number') <NEW_LINE> contact_name = models.CharField('Department Contact', max_lengt...
Departmenti.
62598f885f7d997b871f9168
class TaskArena(object): <NEW_LINE> <INDENT> def __init__(self, arena_name='', ldata='', rdata=''): <NEW_LINE> <INDENT> self._local_data = None <NEW_LINE> self._remote_data = None <NEW_LINE> self.tw_local = None <NEW_LINE> self.tw_remote = None <NEW_LINE> self.name = arena_name <NEW_LINE> self.local_data = ldata <NEW_L...
A project that is shared with others.
62598f881d351010ab8f3654
class SimpleBuffer(object): <NEW_LINE> <INDENT> buf = None <NEW_LINE> offset = 0 <NEW_LINE> size = 0 <NEW_LINE> def __init__(self, data=None): <NEW_LINE> <INDENT> self.buf = self._get_stringio() <NEW_LINE> if data is not None: <NEW_LINE> <INDENT> self.write(data) <NEW_LINE> <DEDENT> self.buf.seek(0, os.SEEK_END) <NEW_L...
A simple buffer that will handle storing, reading and sending strings to a socket. >>> b = SimpleBuffer("abcdef") >>> b.read_and_consume(3) 'abc' >>> b.write(None, '') >>> b.read(0) '' >>> repr(b) "<SimpleBuffer of 3 bytes, 6 total size, 'def'>" >>> str(b) "<SimpleBuffer of 3 bytes, 6 total size, 'def'>" >>> b.flush()...
62598f8863d6d428bbee22d7
class AlcaHarvest(JobFactory): <NEW_LINE> <INDENT> def algorithm(self, *args, **kwargs): <NEW_LINE> <INDENT> self.jobNamePrefix = kwargs.get('jobNamePrefix', "AlcaHarvest") <NEW_LINE> run = kwargs['runNumber'] <NEW_LINE> timeout = kwargs['timeout'] <NEW_LINE> myThread = threading.currentThread() <NEW_LINE> self.daoFact...
_AlcaHarvest_ Under normal circumstance wait until the end of processing (input fileset is closed) and then issue a single job for all files. If the timeout parameter is specified and the current time is more than the runs end_time plus timeout, issue a job for all available files, then issue another job at the end o...
62598f88b7558d5895463152
class free: <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.pos = [0.,0.,0.] <NEW_LINE> self.rot = [0.,0.,0.] <NEW_LINE> self.ori = ['x','-z','y'] <NEW_LINE> <DEDENT> def matrix(self): <NEW_LINE> <INDENT> o = orientation_matrix(*self.ori) <NEW_LINE> Ry = so3.rotation([0.,1.,0.],self.rot[0]) <NEW_LINE> ...
A free-floating camera that is controlled using a translation and euler angle rotation vector. Attributes: - pos: camera center position - rot: euler angle rotation - ori: orientation matrix type (see :func:`orientation_matrix`)
62598f888a349b6b43685d64
class Node: <NEW_LINE> <INDENT> def __init__(self, window=None, parent=None): <NEW_LINE> <INDENT> self.parent = parent <NEW_LINE> self.window = window <NEW_LINE> self.first = None <NEW_LINE> self.second = None <NEW_LINE> self.rect = None <NEW_LINE> self.split = None <NEW_LINE> self.ratio = .5 <NEW_LINE> <DEDENT> def up...
Stores all information on a window. Attributes: parent (Node): The parent Node. window (Window): The window held by this Node. first (Node): The first child. second (Node): The second child. split (Split): Direction node is split for children. rect (Rect): x, y, w, h coordinates of window r...
62598f8894891a1f408b947e
class Answer(models.Model): <NEW_LINE> <INDENT> text = models.TextField(verbose_name=_('текст ответа')) <NEW_LINE> added_at = models.DateField(auto_now_add=True, verbose_name=_('дата добавления ответа')) <NEW_LINE> question = models.ForeignKey( Question, verbose_name=_('вопрос, к которому относится ответ')) <NEW_LINE> ...
Answer model.
62598f8821a7993f00c65a93
class MetricsLogger(object): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self._logged_metrics = Queue() <NEW_LINE> self._metric_step_counter = {} <NEW_LINE> <DEDENT> def log_scalar_metric(self, metric_name, value, step=None): <NEW_LINE> <INDENT> if step is None: <NEW_LINE> <INDENT> step = self._metric_s...
MetricsLogger collects metrics measured during experiments. MetricsLogger is the (only) part of the Metrics API. An instance of the class should be created for the Run class, such that the log_scalar_metric method is accessible from running experiments using _run.metrics.log_scalar_metric.
62598f8826068e7796d4c47d
class UserChangeForm(forms.ModelForm): <NEW_LINE> <INDENT> password = ReadOnlyPasswordHashField(label= ("Password"), help_text= ("Raw passwords are not stored, so there is no way to see " "this user's password, but you can change the password " "using <a href=\"password/\">this form</a>.")) <NEW_LINE> class Meta: <NEW_...
A form for updating users. Includes all the fields on the user, but replaces the password field with admin's password hash display field.
62598f88cad5886f8bdc4e1a
class KubernetesInstaller(): <NEW_LINE> <INDENT> def __init__(self, arch, version, master, output_dir): <NEW_LINE> <INDENT> self.aliases = {'kube-proxy': 'proxy', 'kubelet': 'kubelet'} <NEW_LINE> self.arch = arch <NEW_LINE> self.version = version <NEW_LINE> self.master = master <NEW_LINE> self.output_dir = output_dir <...
This class contains the logic needed to install kuberentes binary files.
62598f88379a373c97d98b32
class DBTaskRunner(object): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.worker_name = str(os.getpid()) <NEW_LINE> <DEDENT> def schedule(self, task_name, args, kwargs, run_at=None, priority=0, action=TaskSchedule.SCHEDULE): <NEW_LINE> <INDENT> task = Task.objects.new_task(task_name, args, kwargs, ru...
Encapsulate the model related logic in here, in case we want to support different queues in the future
62598f88b5575c28eb712a58
class unboundfunction(persistent.Persistent): <NEW_LINE> <INDENT> def __init__(self, ft, **kwargs): <NEW_LINE> <INDENT> self.ft = ft <NEW_LINE> <DEDENT> def __getstate__(self): <NEW_LINE> <INDENT> return cloudpickle.dumps(self.ft) <NEW_LINE> <DEDENT> def __setstate__(self, cloudepickled_ft): <NEW_LINE> <INDENT> self.ft...
Class to hold references to functions and still be able to pickle them. To reference the function you want to bind: function_reference = boundmethod(function)
62598f888e71fb1e983bb5d0
class InstanceDefinition_ProgressPathItem(InstanceDefinition): <NEW_LINE> <INDENT> fieldNames = ( ) <NEW_LINE> @staticmethod <NEW_LINE> def itemList(): <NEW_LINE> <INDENT> raise NotImplementedError <NEW_LINE> <DEDENT> def createNew(self): <NEW_LINE> <INDENT> raise NotImplementedError
Definition of an instance of ProgressPathItem
62598f881f037a2d8b9e3bf8
class FramedMessage: <NEW_LINE> <INDENT> __slots__ = ("msg_id", "header", "payload") <NEW_LINE> def __init__(self, msg_id=None, header=None, payload=None): <NEW_LINE> <INDENT> if msg_id is None: <NEW_LINE> <INDENT> msg_id = uuid.uuid4().int <NEW_LINE> <DEDENT> self.msg_id = msg_id <NEW_LINE> self.header = header <NEW_L...
FramedMessage is a container for a header and optional payload that encapsulates serialization for transmission across the network. :param msg_id: should be an integer representation of a type4 uuid :param header: should be a mapping :param payload: if set, should be a file-like object that exposes seek() and ...
62598f88b830903b9686e202
class BookInstance(models.Model): <NEW_LINE> <INDENT> id = models.UUIDField(primary_key=True, default=uuid.uuid4, help_text="Unique ID for this particular book across whole library") <NEW_LINE> book = models.ForeignKey('Book', on_delete=models.SET_NULL, null=True) <NEW_LINE> imprint = models.CharField(max_length=200, n...
Model representing a specific copy of a book (i.e. that can be borrowed from the library).
62598f88a79ad16197769b83
class MemPerFunc: <NEW_LINE> <INDENT> def __init__(self , log = None , log_level = logging.DEBUG3 , report_period_record_ct = 1000 ): <NEW_LINE> <INDENT> self.log = log <NEW_LINE> self.log_level = log_level <NEW_LINE> self._report_period_record...
Instrumentation to report how much memory certain functions allocate.
62598f8838b623060ffa8bb7
class RecordAggregator(object): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.current_record = AggRecord() <NEW_LINE> self.callbacks = [] <NEW_LINE> <DEDENT> def on_record_complete(self, callback, execute_on_new_thread=True): <NEW_LINE> <INDENT> if not callback in self.callbacks: <NEW_LINE> <INDENT> ...
An object to ingest Kinesis user records and optimally aggregate them into aggregated Kinesis records. NOTE: This object is not thread-safe.
62598f880a50d4780f704ef3
class SendOnlineMsgResponse(AbstractModel): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.TaskId = None <NEW_LINE> self.Data = None <NEW_LINE> self.RequestId = None <NEW_LINE> <DEDENT> def _deserialize(self, params): <NEW_LINE> <INDENT> self.TaskId = params.get("TaskId") <NEW_LINE> self.Data = params...
SendOnlineMsg返回参数结构体
62598f8810dbd63aa1c706d6
class MopacMolPMn(MopacMol): <NEW_LINE> <INDENT> pm_method = '(should be defined by sub class)' <NEW_LINE> def inputFileKeywords(self, attempt): <NEW_LINE> <INDENT> assert attempt <= self.maxAttempts <NEW_LINE> if attempt > self.scriptAttempts: <NEW_LINE> <INDENT> attempt -= self.scriptAttempts <NEW_LINE> <DEDENT> mult...
Mopac PMn calculations for molecules (n undefined here) This is a parent class for MOPAC PMn calculations. Inherit it, and define the pm_method, then redefine anything you wish to do differently.
62598f8816aa5153ce400023
class DatasheetType(type): <NEW_LINE> <INDENT> def __new__(cls, name, schema, base=Datasheet, class_=None, *args, **kw): <NEW_LINE> <INDENT> cname = '%s<%s>'%(base.__name__, name) <NEW_LINE> if type(class_) is tuple: <NEW_LINE> <INDENT> bases = class_ + (base,) <NEW_LINE> <DEDENT> elif class_ is not None: <NEW_LINE> <I...
Metaclass for datasheets >>> from zope import interface, schema >>> from memphis.storage import datasheet >>> class IMyDatasheet(interface.Interface): ... title = schema.TextLine(title = u'Title') >>> class MyDatasheet(object): ... pass >>> DatasheetClass = DatasheetType( ... 'mydatasheet', IMyDatasheet, Dat...
62598f8829b78933be269e6b
class TrackingOptions(AWSProperty): <NEW_LINE> <INDENT> props: PropsDictType = { "CustomRedirectDomain": (str, False), }
`TrackingOptions <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-pinpointemail-configurationset-trackingoptions.html>`__
62598f88be383301e025331c
class BSTIterator: <NEW_LINE> <INDENT> def __init__(self, root: TreeNode): <NEW_LINE> <INDENT> self.vals = [] <NEW_LINE> self.index = 0 <NEW_LINE> def in_order(root: TreeNode) -> None: <NEW_LINE> <INDENT> if root: <NEW_LINE> <INDENT> in_order(root.left) <NEW_LINE> self.vals.append(root.val) <NEW_LINE> in_order(root.rig...
不符合空间复杂度
62598f880383005118f6d21c
class OnStartDecorator(_DecoratorClass): <NEW_LINE> <INDENT> type = HookType.on_start <NEW_LINE> def __init__(self, **kwargs): <NEW_LINE> <INDENT> super().__init__() <NEW_LINE> self.kwargs = kwargs
:type kwargs: dict[str, V]
62598f88bde94217f37073f7
class SetDescriptionResultSet(ResultSet): <NEW_LINE> <INDENT> def get_Response(self): <NEW_LINE> <INDENT> return self._output.get('Response', None)
Retrieve the value for the "Response" output from this choreography execution. ((xml) The response from Box.net.)
62598f883617ad0b5ee05c65
class InvoiceSerializer(serializers.ModelSerializer): <NEW_LINE> <INDENT> class Meta: <NEW_LINE> <INDENT> model = Invoice <NEW_LINE> fields = [ 'id', 'dt_created', 'dt_modified', 'user', 'status', 'amount', ] <NEW_LINE> ordering = ['-dt_created']
Invoice serializer
62598f881f5feb6acb162754
class ToneAnalyzerV3(WatsonService): <NEW_LINE> <INDENT> default_url = 'https://gateway.watsonplatform.net/tone-analyzer/api' <NEW_LINE> def __init__( self, version, url=default_url, username=None, password=None, iam_apikey=None, iam_access_token=None, iam_url=None, ): <NEW_LINE> <INDENT> WatsonService.__init__( self, ...
The Tone Analyzer V3 service.
62598f886aa9bd52df0d49f4
class MetaHasSource(type): <NEW_LINE> <INDENT> def __new__(cls, name, bases, nmspc): <NEW_LINE> <INDENT> return super(MetaHasSource, cls).__new__(cls, name, bases, nmspc) <NEW_LINE> <DEDENT> def __init__(cls, name, bases, nmspc): <NEW_LINE> <INDENT> super(MetaHasSource, cls).__init__(name, bases, nmspc) <NEW_LINE> if c...
Metaclass for all types that have attribute `__source__` and `__DBDocument__`
62598f88d53ae8145f917fb2
class TestProxyGetSubscriptionProductFeature(unittest.TestCase): <NEW_LINE> <INDENT> def setUp(self): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> def tearDown(self): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> def testProxyGetSubscriptionProductFeature(self): <NEW_LINE> <INDENT> pass
ProxyGetSubscriptionProductFeature unit test stubs
62598f881f037a2d8b9e3bfa
class InventoryReport(ObjectListReport): <NEW_LINE> <INDENT> title = _("Inventory Listing") <NEW_LINE> main_object_name = (_("inventory entry"), _("inventory entries")) <NEW_LINE> def get_cell(self, obj, column): <NEW_LINE> <INDENT> value = kgetattr(obj, column.attribute, None) <NEW_LINE> if column.attribute == 'is_adj...
Simple report for Inventory objs
62598f8823e79379d538c01f
class Element(object): <NEW_LINE> <INDENT> def __init__(self, displacement): <NEW_LINE> <INDENT> self.s = displacement <NEW_LINE> <DEDENT> def increment(self, e): <NEW_LINE> <INDENT> return e <NEW_LINE> <DEDENT> def get_type(self): <NEW_LINE> <INDENT> return type(self).__name__.lower()
Define matrices to modify the electron beam vector.
62598f8807d97122c42167c8
class TExtensibleAttributesDocumented_(TDocumented_): <NEW_LINE> <INDENT> c_tag = 'tExtensibleAttributesDocumented' <NEW_LINE> c_namespace = NAMESPACE <NEW_LINE> c_children = TDocumented_.c_children.copy() <NEW_LINE> c_attributes = TDocumented_.c_attributes.copy() <NEW_LINE> c_child_order = TDocumented_.c_child_order[:...
The http://schemas.xmlsoap.org/wsdl/:tExtensibleAttributesDocumented element
62598f8863b5f9789fe84c93
class FilterSubcontroller(rest.RestController): <NEW_LINE> <INDENT> @decorators.db_exceptions <NEW_LINE> @secure(checks.guest) <NEW_LINE> @wsme_pecan.wsexpose(wmodels.WorklistFilter, int, int) <NEW_LINE> def get_one(self, worklist_id, filter_id): <NEW_LINE> <INDENT> worklist = worklists_api.get(worklist_id) <NEW_LINE> ...
Manages filters on automatic worklists.
62598f8896565a6dacd2cd09
class BaseTransform(object): <NEW_LINE> <INDENT> def __init__(self, mean=MEANS, std=STD): <NEW_LINE> <INDENT> self.augment = Compose([ ConvertFromInts(), Resize(resize_gt=False), BackboneTransform(cfg.backbone.transform, mean, std, 'BGR') ]) <NEW_LINE> <DEDENT> def __call__(self, img, masks=None, boxes=None, labels=Non...
Transorm to be used when evaluating.
62598f88f7d966606f747b0b
class VDSR(nn.Module): <NEW_LINE> <INDENT> def __init__(self, in_nc, out_nc, nf, nb, norm_type='batch', upscale=4, act_type='relu', up_mode='pixelshuffle'): <NEW_LINE> <INDENT> super(VDSR, self).__init__() <NEW_LINE> fea_conv = ConvBlock(in_nc, nf, kernel_size=3, stride=1, conv_padding=1, norm_type='none', act_type='no...
VDSR class. :param in_nc: input channel,3 for RGB and 1 for grayscale :type in_nc: int :param out_nc: output channel,3 for RGB and 1 for grayscale :type out_nc: int :param nf: number of filter in conv layers :type nf: int :param nb: number of residual blocks :type nb: int :param upscale: upscale number for SR :type up...
62598f88ec188e330fdf83c1
class HeartbeatTxnRangeRequest: <NEW_LINE> <INDENT> thrift_spec = ( None, (1, TType.I64, 'min', None, None, ), (2, TType.I64, 'max', None, None, ), ) <NEW_LINE> def __init__(self, min=None, max=None,): <NEW_LINE> <INDENT> self.min = min <NEW_LINE> self.max = max <NEW_LINE> <DEDENT> def read(self, iprot): <NEW_LINE> <IN...
Attributes: - min - max
62598f88b57a9660fecd159f
class SLSQPLSQFitter(Fitter): <NEW_LINE> <INDENT> supported_constraints = SLSQP.supported_constraints <NEW_LINE> def __init__(self): <NEW_LINE> <INDENT> super(SLSQPLSQFitter, self).__init__(optimizer=SLSQP, statistic=leastsquare) <NEW_LINE> self.fit_info = {} <NEW_LINE> <DEDENT> def __call__(self, model, x, y, z=None, ...
SLSQP optimization algorithm and least squares statistic. Raises ------ ModelLinearityError A linear model is passed to a nonlinear fitter
62598f888a43f66fc4bf1ca6
class emp_phone_duplicate(unittest.TestCase): <NEW_LINE> <INDENT> def setUp(self): <NEW_LINE> <INDENT> test_data.ua_emp_insert(count=2) <NEW_LINE> self.emp = urlbase.list()[0] <NEW_LINE> self.empid1 = test_data.ua_emp_search(value='id',type='β') <NEW_LINE> test_data.ua_roleemp_insert(empid=self.empid1, roleid=1) <NEW_L...
人员手机号查重接口
62598f883eb6a72ae038a154
class ConnectionInfo(object): <NEW_LINE> <INDENT> def __init__(self, ip, arguments, cookies): <NEW_LINE> <INDENT> self.ip = ip <NEW_LINE> self.cookies = cookies <NEW_LINE> self.arguments = arguments <NEW_LINE> <DEDENT> def get_argument(self, name): <NEW_LINE> <INDENT> val = self.arguments.get(name) <NEW_LINE> if val: <...
Connection information object. Will be passed to the ``on_open`` handler of your connection class. Has few properties: `ip` Caller IP address `cookies` Collection of cookies `arguments` Collection of the query string arguments
62598f8891af0d3eaad39920
class Student(models.Model): <NEW_LINE> <INDENT> nid=models.BigAutoField(primary_key=True) <NEW_LINE> user=models.CharField(verbose_name='学生名',max_length=30) <NEW_LINE> pwd=models.CharField(max_length=32,) <NEW_LINE> grade = models.ForeignKey(verbose_name='学生与班级关系',to='Grade') <NEW_LINE> def __str__(self): <NEW_LINE> <...
学生表
62598f88b57a9660fecd15a0
class EventMonitor(object): <NEW_LINE> <INDENT> def __init__(self, event_check, handlers={}): <NEW_LINE> <INDENT> self._event_check = event_check <NEW_LINE> self.handlers = handlers <NEW_LINE> <DEDENT> def __call__(self, val): <NEW_LINE> <INDENT> if not callable(self._event_check): <NEW_LINE> <INDENT> raise EventChecke...
Checks data for user-defined bounds violations. Instance variables: handlers -- a dict of EventHandler objects indexed by name
62598f88a17c0f6771d5bd65
class TestMemoryDetailView(TestCase): <NEW_LINE> <INDENT> def test_memory_list_view_redirects_unauthenticated_users(self): <NEW_LINE> <INDENT> response = self.client.get(reverse('memory_trunk_app:memory_list', args=(1,))) <NEW_LINE> self.assertTemplateUsed('memory_list.html') <NEW_LINE> self.assertEqual(response.status...
Purpose: Tests the processing of the Memory detail view Methods: setUpTestData test_memory_detail_view_renders_properly test_private_memories_are_not_visible_to_the_public Author: Sam Phillips <samcphillips.com>
62598f88a4f1c619b294e10a
class ETFilter_Main( ETFilter ): <NEW_LINE> <INDENT> def __init__(self, my_id, num_ownship_states, world_dim, x0, P0, linear_dynamics, common_filters): <NEW_LINE> <INDENT> super(ETFilter_Main, self).__init__(my_id, num_ownship_states, world_dim, x0, P0, linear_dynamics) <NEW_LINE> self.common_filters = common_filters <...
Main filter for an asset Differs slightly from an ETFilter in its implicit measurement update because it needs access to common filters with other assets to fuse implicit measurements
62598f88a8ecb03325870d24
class UpdateFolderInputSet(InputSet): <NEW_LINE> <INDENT> def set_FolderObject(self, value): <NEW_LINE> <INDENT> InputSet._set_input(self, 'FolderObject', value) <NEW_LINE> <DEDENT> def set_AccessToken(self, value): <NEW_LINE> <INDENT> InputSet._set_input(self, 'AccessToken', value) <NEW_LINE> <DEDENT> def set_Fields(s...
An InputSet with methods appropriate for specifying the inputs to the UpdateFolder Choreo. The InputSet object is used to specify input parameters when executing this Choreo.
62598f8824f1403a9268563f
class Polalg: <NEW_LINE> <INDENT> def generateVariablesDegree(d, n): <NEW_LINE> <INDENT> if d == 0: <NEW_LINE> <INDENT> return [(0,)*n] <NEW_LINE> <DEDENT> elif d == 1: <NEW_LINE> <INDENT> variables = [] <NEW_LINE> for i in range(0, n): <NEW_LINE> <INDENT> t = [0]*n <NEW_LINE> t[i] = 1 <NEW_LINE> variables.append(tuple...
Polynomial algebra utilities. by Pavel Trutman, pavel.trutman@fel.cvut.cz
62598f881f5feb6acb162756
class ExtractSchedulerSpecTask(base.CinderTask): <NEW_LINE> <INDENT> default_provides = set(['request_spec']) <NEW_LINE> def __init__(self, db, **kwargs): <NEW_LINE> <INDENT> super(ExtractSchedulerSpecTask, self).__init__(addons=[ACTION], **kwargs) <NEW_LINE> self.db = db <NEW_LINE> <DEDENT> def _populate_request_spec(...
Extracts a spec object from a partial and/or incomplete request spec. Reversion strategy: N/A
62598f8821bff66bcd722790
class Update(FunctionalTest): <NEW_LINE> <INDENT> @classmethod <NEW_LINE> def setup_class(cls): <NEW_LINE> <INDENT> c1 = build_country(id=1, name="Canada") <NEW_LINE> build_client(id=5) <NEW_LINE> db.session.commit() <NEW_LINE> <DEDENT> @classmethod <NEW_LINE> def teardown_class(cls): <NEW_LINE> <INDENT> delete_clients...
Check with valid data
62598f88435de62698e9b914
class Client(object): <NEW_LINE> <INDENT> def __init__(self, username=None, api_key=None, project_id=None, auth_url='', insecure=False, timeout=None, tenant_id=None, proxy_tenant_id=None, proxy_token=None, region_name=None, endpoint_type='publicURL', extensions=None, service_type='volumev2', service_name=None, volume_s...
Top-level object to access the OpenStack Volume API. Create an instance with your creds:: >>> client = Client(USERNAME, PASSWORD, PROJECT_ID, AUTH_URL) Then call methods on its managers:: >>> client.volumes.list() ...
62598f88b830903b9686e204
class UserSerializer(serializers.ModelSerializer): <NEW_LINE> <INDENT> class Meta: <NEW_LINE> <INDENT> model = get_user_model() <NEW_LINE> fields = ('email', 'password', 'name') <NEW_LINE> extra_kwargs = {'password': {'write_only': True, 'min_length': 8}} <NEW_LINE> <DEDENT> def create(self, validated_data): <NEW_LINE>...
Serializer for user objects
62598f8830dc7b766599f37d
class GetWafInstanceRequest(JDCloudRequest): <NEW_LINE> <INDENT> def __init__(self, parameters, header=None, version="v1"): <NEW_LINE> <INDENT> super(GetWafInstanceRequest, self).__init__( '/regions/{regionId}/user:getWafInstance', 'GET', header, version) <NEW_LINE> self.parameters = parameters
获取实例ID及相关信息列表
62598f8896565a6dacd2cd0a
class TestEdgeSolution(TestBase, unittest.TestCase): <NEW_LINE> <INDENT> impl = Solution1
Test suite for EdgeSolution
62598f88ec188e330fdf83c3
class Session(ndb.Model): <NEW_LINE> <INDENT> name = ndb.StringProperty(required=True) <NEW_LINE> highlights = ndb.StringProperty() <NEW_LINE> speaker = ndb.StringProperty(required=True) <NEW_LINE> duration = ndb.IntegerProperty() <NEW_LINE> typeOfSession = ndb.StringProperty() <NEW_LIN...
Session -- Session object
62598f888e05c05ec3f6ebda
class GetHistogramsInputSet(InputSet): <NEW_LINE> <INDENT> def set_AppID(self, value): <NEW_LINE> <INDENT> InputSet._set_input(self, 'AppID', value) <NEW_LINE> <DEDENT> def set_CategoryID(self, value): <NEW_LINE> <INDENT> InputSet._set_input(self, 'CategoryID', value) <NEW_LINE> <DEDENT> def set_GlobalID(self, value): ...
An InputSet with methods appropriate for specifying the inputs to the GetHistograms Choreo. The InputSet object is used to specify input parameters when executing this Choreo.
62598f886fb2d068a7693bc1
class MessageReceived(models.Model): <NEW_LINE> <INDENT> user = models.ForeignKey(CustomUser, models.SET_NULL, null=True, related_name='received_user') <NEW_LINE> date = models.DateTimeField(default=now) <NEW_LINE> app = models.ForeignKey('App', models.SET_NULL, null=True) <NEW_LINE> data = models.CharField(max_length=...
Stores a message sent to the server
62598f88a4f1c619b294e10c
class _toolbar_button(object): <NEW_LINE> <INDENT> def __init__(self, index_, tb_handle): <NEW_LINE> <INDENT> self.toolbar_ctrl = tb_handle <NEW_LINE> self.index = index_ <NEW_LINE> self.info = self.toolbar_ctrl.GetButton(self.index) <NEW_LINE> <DEDENT> def Rectangle(self): <NEW_LINE> <INDENT> remote_mem = RemoteMemory...
Wrapper around Toolbar button (TBBUTTONINFO) items
62598f8821a7993f00c65a99
class TestWavelength_to_XYZ(unittest.TestCase): <NEW_LINE> <INDENT> def test_wavelength_to_XYZ(self): <NEW_LINE> <INDENT> np.testing.assert_almost_equal( wavelength_to_XYZ( 480, CMFS.get('CIE 1931 2 Degree Standard Observer')), np.array([0.09564, 0.13902, 0.81295]), decimal=7) <NEW_LINE> np.testing.assert_almost_equal(...
Defines :func:`colour.colorimetry.tristimulus.wavelength_to_XYZ` definition unit tests methods.
62598f8807f4c71912baef6a
class TestEventAttendance(TestBase): <NEW_LINE> <INDENT> _db_engine = connection.settings_dict["ENGINE"] <NEW_LINE> def setUp(self): <NEW_LINE> <INDENT> super().setUp() <NEW_LINE> self._setUpRoles() <NEW_LINE> self._setUpTags() <NEW_LINE> self._setUpUsersAndLogin() <NEW_LINE> self.slug = "2019-03-19-simple-event" <NEW_...
Make sure new (as of #1177) attendance mechanics work as expected.
62598f88c432627299fa2af7
class CustomFieldException(StreamApiException): <NEW_LINE> <INDENT> status_code = 400 <NEW_LINE> code = 5
Raised when there are missing or misconfigured custom fields
62598f8823e79379d538c023
class CommandWithCatchAll(Command): <NEW_LINE> <INDENT> capture_all_args = True <NEW_LINE> def get_options(self): <NEW_LINE> <INDENT> return (Option('--foo', dest='foo', action='store_true'),) <NEW_LINE> <DEDENT> def run(self, remaining_args, foo): <NEW_LINE> <INDENT> print(remaining_args)
command with catch all args
62598f881f037a2d8b9e3bfe
class TaviTypeError(TaviError): <NEW_LINE> <INDENT> pass
Raised when an operation or function is applied to an object of inappropriate type.
62598f88596a89723612779a
class StrBuffer(c_char_p): <NEW_LINE> <INDENT> @classmethod <NEW_LINE> def from_param(cls): <NEW_LINE> <INDENT> return c_void_p <NEW_LINE> <DEDENT> def is_none(self) -> bool: <NEW_LINE> <INDENT> return self.value is None <NEW_LINE> <DEDENT> def opt_str(self) -> Optional[str]: <NEW_LINE> <INDENT> val = self.value <NEW_L...
A string allocated by the library.
62598f8823849d37ff850be5
class PythonCharmTemplate(CharmTemplate): <NEW_LINE> <INDENT> def create_charm(self, config, output_dir): <NEW_LINE> <INDENT> self._copy_files(output_dir) <NEW_LINE> for root, dirs, files in os.walk(output_dir): <NEW_LINE> <INDENT> for outfile in files: <NEW_LINE> <INDENT> if self.skip_template(outfile): <NEW_LINE> <IN...
Creates a python-based charm
62598f8873bcbd0ca4bc9d7a
class Input01(PiFacePin): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> PiFacePin.__init__(self) <NEW_LINE> <DEDENT> value = 1002 <NEW_LINE> name = "Input 2 (SWITCH 2)"
Input pin 2 (switch 2).
62598f8830dc7b766599f37f
class OptionList(object): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self._internal_opt_list = [] <NEW_LINE> <DEDENT> def add(self, option): <NEW_LINE> <INDENT> self._internal_opt_list.append(option) <NEW_LINE> <DEDENT> append = add <NEW_LINE> def __len__(self): <NEW_LINE> <INDENT> return len(self._int...
This class represents a list of options. :author: Andres Riancho (andres.riancho@gmail.com)
62598f88b7558d589546315a
class RandomAgent(BaseAgent): <NEW_LINE> <INDENT> def __init__(self, index, **kwargs): <NEW_LINE> <INDENT> super().__init__(index) <NEW_LINE> <DEDENT> def getAction(self, state): <NEW_LINE> <INDENT> return random.choice(state.getLegalActions(self.index))
An agent that moves randomly while still obeying the rules.
62598f8845492302aabfbffb
class SanitizedTextField(models.TextField): <NEW_LINE> <INDENT> def __init__(self, cleaner=None, *args, **kwargs): <NEW_LINE> <INDENT> self.cleaner = cleaner or default_cleaner() <NEW_LINE> super(SanitizedTextField, self).__init__(*args, **kwargs) <NEW_LINE> <DEDENT> def pre_save(self, model_instance, add): <NEW_LINE> ...
Use anywhere you would use a ``TextField``. Sanitizes HTML. ``cleaner``: An instance of ``django_html_cleaner.cleaner.Cleaner()``. Provide your own instance if you want to do more than just remove JavaScript and unknown/special HTML tags.
62598f88711fe17d825e0212
class FP_Arc(bpy.types.Operator): <NEW_LINE> <INDENT> bl_idname = "fp.arc" <NEW_LINE> bl_label = "FP_Arc" <NEW_LINE> _arc = Arc() <NEW_LINE> @classmethod <NEW_LINE> def poll(cls, context): <NEW_LINE> <INDENT> return cls._arc.poll(context) <NEW_LINE> <DEDENT> def execute(self, context): <NEW_LINE> <INDENT> self._arc.cre...
Позволяет построить дугу. Требует выделенной точки.
62598f88baa26c4b54d4edda
class MultipleSubstStatement(Statement): <NEW_LINE> <INDENT> def __init__( self, prefix, glyph, suffix, replacement, forceChain=False, location=None ): <NEW_LINE> <INDENT> Statement.__init__(self, location) <NEW_LINE> self.prefix, self.glyph, self.suffix = prefix, glyph, suffix <NEW_LINE> self.replacement = replacement...
A multiple substitution statement. Args: prefix: a list of `glyph-containing objects`_. glyph: a single glyph-containing object. suffix: a list of glyph-containing objects. replacement: a list of glyph-containing objects. forceChain: If true, the statement is expressed as a chaining rule (e...
62598f88d10714528d69d9f7
class ExtendedStatusInfo(msrest.serialization.Model): <NEW_LINE> <INDENT> _attribute_map = { 'status_code': {'key': 'statusCode', 'type': 'str'}, 'message': {'key': 'message', 'type': 'str'}, } <NEW_LINE> def __init__( self, **kwargs ): <NEW_LINE> <INDENT> super(ExtendedStatusInfo, self).__init__(**kwargs) <NEW_LINE> s...
ExtendedStatusInfo. :param status_code: Possible values include: "None", "Pending", "Active", "PurchaseError", "PaymentInstrumentError", "Split", "Merged", "Expired", "Succeeded". :type status_code: str or ~azure.mgmt.reservations.models.ReservationStatusCode :param message: The message giving detailed information a...
62598f88a8ecb03325870d28
class Reports(object): <NEW_LINE> <INDENT> def __init__(self, config): <NEW_LINE> <INDENT> super(Reports, self).__init__() <NEW_LINE> self.config = config <NEW_LINE> self.database = mongodb.getDb(self.config) <NEW_LINE> self.storage = self.database["unknowns"] <NEW_LINE> <DEDENT> def reportUnknown(self, message, user_i...
docstring for Reports
62598f8823e79379d538c024
class LicenseRemovalRequested(object): <NEW_LINE> <INDENT> def __init__(self, request, license_id): <NEW_LINE> <INDENT> self.request = request <NEW_LINE> self.license = license_id
license agreement removal event.
62598f88462c4b4f79dbb52b
class BasicTrainingSampler(Sampler): <NEW_LINE> <INDENT> def __init__(self, inputs, sequence_length, time_major=False, name=None): <NEW_LINE> <INDENT> with ops.name_scope( name, "BasicTrainingSampler", [inputs, sequence_length]): <NEW_LINE> <INDENT> inputs = ops.convert_to_tensor(inputs, name="inputs") <NEW_LINE> if no...
A (non-)sampler for use during training. Only reads inputs. Returned sample_ids are the argmax of the RNN output logits.
62598f8824f1403a92685641
class simple_knn(): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> def train(self, X, y): <NEW_LINE> <INDENT> self.X_train = X <NEW_LINE> self.y_train = y <NEW_LINE> <DEDENT> def predict(self, X, k=1): <NEW_LINE> <INDENT> dists = self.compute_distances(X) <NEW_LINE> num_test = dist...
a simple kNN with L2 distance
62598f88596a89723612779b
class PressListView(ListView): <NEW_LINE> <INDENT> queryset = Press.objects.published()
Renders a list of published ``Press``.
62598f88379a373c97d98b3a
class Storage(object): <NEW_LINE> <INDENT> def __init__(self, stype=None): <NEW_LINE> <INDENT> self._type = stype <NEW_LINE> self._keys = [] <NEW_LINE> self._objects = [] <NEW_LINE> <DEDENT> def add(self, key, obj, location='_end'): <NEW_LINE> <INDENT> if not isinstance(obj, self._type): <NEW_LINE> <INDENT> msg = 'Inco...
Container for storing objects by name with the ability to insert relative to existing objects. Inputs: s_type: The type of object to store, this is provided for error checking.
62598f88009cb60464d01053
class SSAService(query.DALService): <NEW_LINE> <INDENT> def __init__(self, baseurl, resmeta=None, version="1.0"): <NEW_LINE> <INDENT> query.DALService.__init__(self, baseurl, "ssa", version, resmeta) <NEW_LINE> <DEDENT> def search(self, pos, size, format='all', **keywords): <NEW_LINE> <INDENT> q = self.create_query(pos...
a representation of an SSA service
62598f88c432627299fa2af8
class ScriptModule(Module): <NEW_LINE> <INDENT> configkey = 'main' <NEW_LINE> _default_args = () <NEW_LINE> _default_kwargs = {} <NEW_LINE> options = () <NEW_LINE> def __init__(self, server): <NEW_LINE> <INDENT> Module.__init__(self, server) <NEW_LINE> self.apiroutine = RoutineContainer(self.scheduler) <NEW_LINE> async...
Base script module
62598f884e696a045264db97
class _SixMetaPathImporter(object): <NEW_LINE> <INDENT> def __init__(self, six_module_name): <NEW_LINE> <INDENT> self.name = six_module_name <NEW_LINE> self.known_modules = {} <NEW_LINE> <DEDENT> def _add_module(self, mod, *fullnames): <NEW_LINE> <INDENT> for fullname in fullnames: <NEW_LINE> <INDENT> self.known_module...
A meta path importer to import scapy.modules.six.moves and its submodules. This class implements a PEP302 finder and loader. It should be compatible with Python 2.5 and all existing versions of Python3
62598f88dc8b845886d530e0
class DeleteUpdater(BaseUpdater): <NEW_LINE> <INDENT> def update_request(self, param_value): <NEW_LINE> <INDENT> del param_value[self.key]
Deletes a field in a Request Parameter.
62598f8826238365f5fac696
class ImageSummary(object): <NEW_LINE> <INDENT> def __init__(self, registry, repository, digest): <NEW_LINE> <INDENT> self.fully_qualified_digest = ( '{registry}/{repository}@{digest}'.format( registry=registry, repository=repository, digest=digest)) <NEW_LINE> self.registry = registry <NEW_LINE> self.repository = repo...
ImageSummary is a container class whose structure creates command output.
62598f88925a0f43d25e7b5d
@zope.interface.implementer(IContentStub) <NEW_LINE> class ContentStub(object): <NEW_LINE> <INDENT> def values(self): <NEW_LINE> <INDENT> pass
Content stub.
62598f888e71fb1e983bb5d8
class GetFormKwargsMixin: <NEW_LINE> <INDENT> def get_form_kwargs(self): <NEW_LINE> <INDENT> kwargs = super().get_form_kwargs() <NEW_LINE> sport = self.kwargs['sport'] <NEW_LINE> kwargs['sport'] = sport <NEW_LINE> return kwargs
Send sport to the form, so form choices can be rendered dynamically.
62598f88435de62698e9b918
class NullMarket(MarketBase): <NEW_LINE> <INDENT> pass
Provides a dummy market interface that is not connected to a real market. Useful for testing purposes only. Has some varied behavior built into it based on random numbers, in order to simulate a variety of different scenarios - including random failures that might be seen on a real market. In a production deployment, ...
62598f8863b5f9789fe84c99
class CellTestCase(unittest.TestCase): <NEW_LINE> <INDENT> def setUp(self): <NEW_LINE> <INDENT> path = os.path.join(testdir(), "POSCAR") <NEW_LINE> self.cell = aread(path, format="vasp") <NEW_LINE> <DEDENT> def test_atoms_distance(self): <NEW_LINE> <INDENT> dist = s.atoms_distance(self.cell, 9, 24) <NEW_LINE> self.asse...
Testcase for vasputil.supercell.Cell class.
62598f8850485f2cf55daa9d
class BaseLineage(GraphSerializable): <NEW_LINE> <INDENT> LABEL = 'Lineage' <NEW_LINE> ORIGIN_DEPENDENCY_RELATION_TYPE = 'HAS_DOWNSTREAM' <NEW_LINE> DEPENDENCY_ORIGIN_RELATION_TYPE = 'HAS_UPSTREAM' <NEW_LINE> def __init__(self) -> None: <NEW_LINE> <INDENT> self._node_iter = self._create_node_iterator() <NEW_LINE> self....
Generic Lineage Interface
62598f880a50d4780f704ef7
class InlineQueryResultDocument(InlineQueryResult): <NEW_LINE> <INDENT> def __init__(self, type: str, id: str, title: str, document_url: str, mime_type: str, caption: str = None, description: str = None, reply_markup: 'InlineKeyboardMarkup' = None, input_message_content: 'InputMessageContent' = None, thumb_url: str = N...
Represents a link to a file. By default, this file will be sent by the user with an optional caption. Alternatively, you can use input_message_content to send a message with the specified content instead of the file. Currently, only .PDF and .ZIP files can be sent using this method. :param type: (str) Type of the resul...
62598f8815baa72349461aa7
class DELVE_UPGRADE_TYPE(IntEnumOverride): <NEW_LINE> <INDENT> SULPHITE_CAPACITY = 0 <NEW_LINE> FLARE_CAPACITY = 1 <NEW_LINE> DYNAMITE_CAPACITY = 2 <NEW_LINE> LIGHT_RADIUS = 3 <NEW_LINE> FLARE_RADIUS = 4 <NEW_LINE> DYNAMITE_RADIUS = 5 <NEW_LINE> UNKNOWN = 6 <NEW_LINE> DYNAMITE_DAMAGE = 7 <NEW_LINE> DARKNESS_RESISTANCE ...
Representation of delve upgrade type ( DelveUpgradeType.dat )
62598f888e05c05ec3f6ebdc
class StateFileLocked(StateFileException): <NEW_LINE> <INDENT> pass
Another process is already using the database
62598f88be383301e0253324
class LanguageServiceServicer(object): <NEW_LINE> <INDENT> def AnalyzeSentiment(self, request, context): <NEW_LINE> <INDENT> context.set_code(grpc.StatusCode.UNIMPLEMENTED) <NEW_LINE> context.set_details('Method not implemented!') <NEW_LINE> raise NotImplementedError('Method not implemented!') <NEW_LINE> <DEDENT> def A...
Provides text analysis operations such as sentiment analysis and entity recognition.
62598f88d53ae8145f917fb9
class TestXmlNs0ChangeStringAttributeRequest(unittest.TestCase): <NEW_LINE> <INDENT> def setUp(self): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> def tearDown(self): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> def testXmlNs0ChangeStringAttributeRequest(self): <NEW_LINE> <INDENT> pass
XmlNs0ChangeStringAttributeRequest unit test stubs
62598f888da39b475be02d11
class DownloadError(bb.Union): <NEW_LINE> <INDENT> _catch_all = 'other' <NEW_LINE> unsupported_file = None <NEW_LINE> other = None <NEW_LINE> @classmethod <NEW_LINE> def path(cls, val): <NEW_LINE> <INDENT> return cls('path', val) <NEW_LINE> <DEDENT> def is_path(self): <NEW_LINE> <INDENT> return self._tag == 'path' <NEW...
This class acts as a tagged union. Only one of the ``is_*`` methods will return true. To get the associated value of a tag (if one exists), use the corresponding ``get_*`` method. :ivar files.DownloadError.unsupported_file: This file type cannot be downloaded directly; use :meth:`dropbox.dropbox_client.Dropbox...
62598f88a8ecb03325870d2a