code
stringlengths
4
4.48k
docstring
stringlengths
1
6.45k
_id
stringlengths
24
24
class ModalBody(DWidgetT): <NEW_LINE> <INDENT> def __init__(self, body): <NEW_LINE> <INDENT> template = '<div class="modal-body">\n' ' {body}\n' '</div>\n' <NEW_LINE> super(ModalBody, self).__init__(template, {'body': body}) <NEW_LINE> return
Modal body definition :param body: Modal body :return: body HTML :rtype: unicode
6259908b283ffb24f3cf54b8
class ATM(EasyFrame): <NEW_LINE> <INDENT> def __init__(self, bank): <NEW_LINE> <INDENT> EasyFrame.__init__(self, title = "ATM") <NEW_LINE> self.bank = bank <NEW_LINE> self.account = None <NEW_LINE> self.nameLabel = self.addLabel(row = 0, column = 0, text = "Name") <NEW_LINE> self.pinLabel = self.addLabel(row = 1, colum...
Represents an ATM window. The window tracks the bank and the current account. The current account is None at startup and logout.
6259908be1aae11d1e7cf620
class LoginForm(Form): <NEW_LINE> <INDENT> card = StringField('Account', validators=[DataRequired(), Length(3, 8), Regexp('[0-9]', 0, 'Account must be numbers')]) <NEW_LINE> password = PasswordField('Password', validators=[DataRequired()]) <NEW_LINE> remember_me = BooleanField('Keep me logged in') <NEW_LINE> submit = S...
email = StringField('Email', validators=[DataRequired(), Length(1, 64), Email()])
6259908bfff4ab517ebcf42f
class TestModel_AddressIPAddress(): <NEW_LINE> <INDENT> def test_address_ip_address_serialization(self): <NEW_LINE> <INDENT> address_ip_address_model_json = {} <NEW_LINE> address_ip_address_model_json['type'] = 'ipAddress' <NEW_LINE> address_ip_address_model_json['value'] = 'testString' <NEW_LINE> address_ip_address_mo...
Test Class for AddressIPAddress
6259908bec188e330fdfa4c7
class Libdivsufsort(CMakePackage): <NEW_LINE> <INDENT> homepage = "https://github.com/y-256/libdivsufsort" <NEW_LINE> url = "https://github.com/y-256/libdivsufsort/archive/2.0.1.tar.gz" <NEW_LINE> version('2.0.1', sha256='9164cb6044dcb6e430555721e3318d5a8f38871c2da9fd9256665746a69351e0') <NEW_LINE> def cmake_args(...
libdivsufsort is a software library that implements a lightweight suffix array construction algorithm.
6259908b167d2b6e312b83a4
@endpoints.api(name='rol', version='v1') <NEW_LINE> class RolApi(remote.Service): <NEW_LINE> <INDENT> @endpoints.method(message_types.VoidMessage, RolMessage, path='rol', http_method='GET', name='rol') <NEW_LINE> def greetings_list(self, _): <NEW_LINE> <INDENT> return RolMessage(text=generate_rol())
Reflection on Learning API v1.
6259908b283ffb24f3cf54b9
class DualWiseOpKernel: <NEW_LINE> <INDENT> def get_forward_kernel_text(self): <NEW_LINE> <INDENT> raise NotImplementedError() <NEW_LINE> <DEDENT> def get_backward_A_kernel_text(self): <NEW_LINE> <INDENT> raise NotImplementedError() <NEW_LINE> <DEDENT> def get_backward_B_kernel_text(self): <NEW_LINE> <INDENT> raise Not...
Base class for kernels to use in dual_wise_op()
6259908b55399d3f0562812e
class Venues(ViewSet): <NEW_LINE> <INDENT> permission_classes= [ IsOwnerOrReadOnly ] <NEW_LINE> def list(self, request): <NEW_LINE> <INDENT> venues = Venue.objects.all() <NEW_LINE> serializer = VenueSerializer(venues, many=True, context={'request': request}) <NEW_LINE> return Response(serializer.data) <NEW_LINE> <DEDEN...
Request handler for Venues in the EconoShows platform
6259908b3346ee7daa33846f
class FanInFanOut_ABC(Initialization_ABC) : <NEW_LINE> <INDENT> def __init__(self, parameter, forceGain=None, **kwargs) : <NEW_LINE> <INDENT> super(FanInFanOut_ABC, self).__init__(parameter, **kwargs) <NEW_LINE> self.setHP("forceGain", forceGain) <NEW_LINE> self.gain = None <NEW_LINE> <DEDENT> @classmethod <NEW_LINE> d...
Abtract class for fan_in/_out inits (Glorot and He) Over the time people have introduced ways to make it work with other various activation functions by modifying a gain factor. You can force the gain using the *forceGain* argument, otherwise Mariana will choose one for you depending on the abstraction's activation. ...
6259908b4a966d76dd5f0b00
class XvfbStartException (Exception): <NEW_LINE> <INDENT> pass
Xvfb failed to start.
6259908bfff4ab517ebcf431
class OffensiveReflexAgent(ReflexCaptureAgent): <NEW_LINE> <INDENT> def chooseAction(self, gameState): <NEW_LINE> <INDENT> actions = gameState.getLegalActions(self.index) <NEW_LINE> values = [self.evaluate(gameState, a) for a in actions] <NEW_LINE> maxValue = max(values) <NEW_LINE> bestActions = [a for a, v in zip(acti...
A reflex agent that seeks food. This is an agent we give you to get an idea of what an offensive agent might look like, but it is by no means the best or only way to build an offensive agent.
6259908b3617ad0b5ee07d6c
class FormatLabel(FormatWidgetMixin, WidthWidgetMixin): <NEW_LINE> <INDENT> mapping = { 'finished': ('end_time', None), 'last_update': ('last_update_time', None), 'max': ('max_value', None), 'seconds': ('seconds_elapsed', None), 'start': ('start_time', None), 'elapsed': ('total_seconds_elapsed', _format_time), 'value':...
Displays a formatted label >>> label = FormatLabel('%(value)s', min_width=5, max_width=10) >>> class Progress(object): ... pass >>> Progress.term_width = 0 >>> label(Progress, dict(value='test')) '' >>> Progress.term_width = 5 >>> label(Progress, dict(value='test')) 'test' >>> Progress.term_width = 10 >>> label...
6259908bbe7bc26dc9252c63
class ModuleBreakpoints(dict): <NEW_LINE> <INDENT> def __init__(self, filename, lineno_cache): <NEW_LINE> <INDENT> if filename not in _modules: <NEW_LINE> <INDENT> _modules[filename] = BdbModule(filename) <NEW_LINE> <DEDENT> self.bdb_module = _modules[filename] <NEW_LINE> self.lineno_cache = lineno_cache <NEW_LINE> <DE...
The breakpoints of a module. A dictionary that maps a code firstlineno to a 'code_bps' dictionary that maps each line number of the code, where one or more breakpoints are set, to the list of corresponding Breakpoint instances. Note: A line in 'code_bps' is the actual line of the breakpoint (the line where the debugg...
6259908b4c3428357761bed6
class Entity(msrest.serialization.Model): <NEW_LINE> <INDENT> _validation = { 'text': {'required': True}, 'category': {'required': True}, 'offset': {'required': True}, 'length': {'required': True}, 'confidence_score': {'required': True}, } <NEW_LINE> _attribute_map = { 'text': {'key': 'text', 'type': 'str'}, 'category'...
Entity. All required parameters must be populated in order to send to Azure. :ivar text: Required. Entity text as appears in the request. :vartype text: str :ivar category: Required. Entity type. :vartype category: str :ivar subcategory: (Optional) Entity sub type. :vartype subcategory: str :ivar offset: Required. St...
6259908b283ffb24f3cf54bc
class StudioEditableModule(object): <NEW_LINE> <INDENT> def render_children(self, context, fragment, can_reorder=False, can_add=False, view_name='student_view'): <NEW_LINE> <INDENT> contents = [] <NEW_LINE> for child in self.descriptor.get_children(): <NEW_LINE> <INDENT> if can_reorder: <NEW_LINE> <INDENT> context['reo...
Helper methods for supporting Studio editing of xblocks/xmodules. This class is only intended to be used with an XModule, as it assumes the existence of self.descriptor and self.system.
6259908ba8370b77170f1fe8
class DeviceInterface: <NEW_LINE> <INDENT> def __init__(self, shortname, allow_logout_during_operation, automatic_logout, authorization=None, in_operation=False, **kwargs): <NEW_LINE> <INDENT> self.shortname = shortname <NEW_LINE> self.allow_logout_during_operation = allow_logout_during_operation <NEW_LINE> if type(aut...
Prototype Device Interface
6259908b4a966d76dd5f0b02
class AtsasViewer(Viewer): <NEW_LINE> <INDENT> _targets = [AtsasProtConvertPdbToSAXS] <NEW_LINE> _environments = [DESKTOP_TKINTER, WEB_DJANGO] <NEW_LINE> def __init__(self, **args): <NEW_LINE> <INDENT> Viewer.__init__(self, **args) <NEW_LINE> <DEDENT> def visualize(self, obj, **args): <NEW_LINE> <INDENT> cls = type(obj...
Wrapper to visualize Pdb to SAXS.
6259908b5fcc89381b266f6c
class AnnoyinglyVerboseCallback(vcf.callbacks.Callback): <NEW_LINE> <INDENT> def on_experiment_begin(self, info=dict()): <NEW_LINE> <INDENT> print("Started training") <NEW_LINE> print(info.keys()) <NEW_LINE> <DEDENT> def on_experiment_end(self, info=dict()): <NEW_LINE> <INDENT> print("End of training") <NEW_LINE> print...
An example callback that pretty-prints all information it has access to at each point when it gets called. It will likely print a lot.
6259908bd486a94d0ba2dbd1
class ServingManager(object): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.text_util = TextUtil(vocab_model=args.vocab_dir) <NEW_LINE> <DEDENT> def serving_model_load(self, model_dir): <NEW_LINE> <INDENT> original_path = os.listdir(model_dir)[0] <NEW_LINE> model_path = model_dir + original_path <NEW...
Serving model을 로드, 테스트, 관리 하는 Class
6259908b60cbc95b06365b76
class AccessControlEntry(vsm_client.VSMClient): <NEW_LINE> <INDENT> def __init__(self, vsm=None): <NEW_LINE> <INDENT> super(AccessControlEntry, self).__init__() <NEW_LINE> self.schema_class = 'access_control_entry_schema.AccessControlEntrySchema' <NEW_LINE> self.set_connection(vsm.get_connection()) <NEW_LINE> conn = se...
Class to assign role using acess control
6259908b099cdd3c63676208
class DictField(Field): <NEW_LINE> <INDENT> pass
Convenient class to make explicit that an attribute will store a dictionary
6259908b283ffb24f3cf54bd
class SlackNoThread(SlackError): <NEW_LINE> <INDENT> pass
Message without ts or thread_ts
6259908b4c3428357761beda
class Corpus(TimeStampedModel): <NEW_LINE> <INDENT> title = models.CharField(max_length=255, **nullable) <NEW_LINE> slug = AutoSlugField(populate_from='title', unique=True) <NEW_LINE> documents = models.ManyToManyField('corpus.Document', through='LabeledDocument', related_name='corpora') <NEW_LINE> user =...
A model that maintains a mapping of documents to estimators for use in tracking the training data that is used to fit a text classifier object.
6259908b60cbc95b06365b77
class TestEzsignbulksendResponseCompound(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 testEzsignbulksendResponseCompound(self): <NEW_LINE> <INDENT> pass
EzsignbulksendResponseCompound unit test stubs
6259908b99fddb7c1ca63bec
class RunJobMixin(UserPassesTestMixin): <NEW_LINE> <INDENT> success_url = reverse_lazy('site_status') <NEW_LINE> def test_func(self): <NEW_LINE> <INDENT> return self.request.user.is_superuser <NEW_LINE> <DEDENT> def get(self, request, *args, **kwargs): <NEW_LINE> <INDENT> self.object = self.schedule_class() <NEW_LINE> ...
View mixin to run the selected job immediately.
6259908b7cff6e4e811b7662
class PrintLR(tf.keras.callbacks.Callback): <NEW_LINE> <INDENT> def on_epoch_end(self, epoch, logs=None): <NEW_LINE> <INDENT> print( "\nLearning rate for epoch {} is {}".format( epoch + 1, model.optimizer.lr.numpy() ) )
Callback for printing the LR at the end of each epoch.
6259908bf9cc0f698b1c60db
class BinaryConfusionMatrix(tf.keras.metrics.Metric): <NEW_LINE> <INDENT> def __init__(self, model_type, name='binary_confusion_matrix', **kwargs): <NEW_LINE> <INDENT> super(BinaryConfusionMatrix, self).__init__(name=name, **kwargs) <NEW_LINE> self.model_type = model_type <NEW_LINE> self.binary_confusion_matrix = self....
metric: binary confusion matrix
6259908bbe7bc26dc9252c66
class Log: <NEW_LINE> <INDENT> @staticmethod <NEW_LINE> def getLogger(): <NEW_LINE> <INDENT> logger = logging.getLogger('logger') <NEW_LINE> handler = logging.handlers.RotatingFileHandler('/var/log/kirinki.log', maxBytes=20, backupCount=5) <NEW_LINE> logger.addHandler(handler) <NEW_LINE> return logger <NEW_LINE> <DEDEN...
This class print a message in the application log file and, if it's needed, rotate the file.
6259908b63b5f9789fe86d8a
class CheckDomainAvailabilityParameter(msrest.serialization.Model): <NEW_LINE> <INDENT> _validation = { 'subdomain_name': {'required': True}, 'type': {'required': True}, } <NEW_LINE> _attribute_map = { 'subdomain_name': {'key': 'subdomainName', 'type': 'str'}, 'type': {'key': 'type', 'type': 'str'}, 'kind': {'key': 'ki...
Check Domain availability parameter. All required parameters must be populated in order to send to Azure. :param subdomain_name: Required. The subdomain name to use. :type subdomain_name: str :param type: Required. The Type of the resource. :type type: str :param kind: The Kind of the resource. :type kind: str
6259908b50812a4eaa6219d6
class LinearEquation (Polynomial): <NEW_LINE> <INDENT> def __init__ (self, coeff0, coeff1): <NEW_LINE> <INDENT> self.coefficients = [coeff0, coeff1] <NEW_LINE> <DEDENT> def apply(self, value): <NEW_LINE> <INDENT> return(value * self.coefficients[1] + self.coefficients[0])
Subclass of Polynomial for linear equations. This implementation is three times faster, so Polynomial should be reserved for higher orders.
6259908bec188e330fdfa4cf
class Account(object): <NEW_LINE> <INDENT> def __init__(self, name, balance): <NEW_LINE> <INDENT> self.name = name <NEW_LINE> self.balance = balance <NEW_LINE> <DEDENT> def winner(self, x): <NEW_LINE> <INDENT> self.balance += x <NEW_LINE> <DEDENT> def loser(self, x): <NEW_LINE> <INDENT> self.balance -= x <NEW_LINE> <DE...
blue print for account
6259908b99fddb7c1ca63bed
class AXError(ValueError): <NEW_LINE> <INDENT> pass
Results from data that does not meet the attribute exchange 1.0 specification
6259908bd8ef3951e32c8c6e
class ProjectListHandler(BaseHandler): <NEW_LINE> <INDENT> @addslash <NEW_LINE> @session <NEW_LINE> @authenticated <NEW_LINE> def get(self): <NEW_LINE> <INDENT> uid = self.SESSION['uid'] <NEW_LINE> url = self.request.uri <NEW_LINE> if url not in self.SESSION['BSTACK']: <NEW_LINE> <INDENT> bstack = self.SESSION['BSTACK'...
项目列表
6259908b283ffb24f3cf54c2
class ParameterList(Module): <NEW_LINE> <INDENT> def __init__(self, parameters=None): <NEW_LINE> <INDENT> super(ParameterList, self).__init__() <NEW_LINE> if parameters is not None: <NEW_LINE> <INDENT> self += parameters <NEW_LINE> <DEDENT> <DEDENT> def __getitem__(self, idx): <NEW_LINE> <INDENT> if isinstance(idx, sli...
Holds parameters in a list. ParameterList can be indexed like a regular Python list, but parameters it contains are properly registered, and will be visible by all Module methods. Arguments: parameters (iterable, optional): an iterable of :class:`~torch.nn.Parameter`` to add Example:: class MyModule(nn.Modu...
6259908b5fcc89381b266f6f
class AzureFirewallNetworkRule(msrest.serialization.Model): <NEW_LINE> <INDENT> _attribute_map = { 'name': {'key': 'name', 'type': 'str'}, 'description': {'key': 'description', 'type': 'str'}, 'protocols': {'key': 'protocols', 'type': '[str]'}, 'source_addresses': {'key': 'sourceAddresses', 'type': '[str]'}, 'destinati...
Properties of the network rule. :param name: Name of the network rule. :type name: str :param description: Description of the rule. :type description: str :param protocols: Array of AzureFirewallNetworkRuleProtocols. :type protocols: list[str or ~azure.mgmt.network.v2019_11_01.models.AzureFirewallNetworkRuleProtocol]...
6259908b4a966d76dd5f0b08
class getNombreUsuarioFromId_result(object): <NEW_LINE> <INDENT> def __init__(self, success=None, e=None,): <NEW_LINE> <INDENT> self.success = success <NEW_LINE> self.e = e <NEW_LINE> <DEDENT> def read(self, iprot): <NEW_LINE> <INDENT> if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTr...
Attributes: - success - e
6259908b3617ad0b5ee07d74
class BacklinksOptions(object): <NEW_LINE> <INDENT> entry = "entry" <NEW_LINE> top = "top" <NEW_LINE> none = "none"
``backlinks`` argument choices. - ``TableOfContent.BacklinksOptions.entry``: ``"entry"`` - ``TableOfContent.BacklinksOptions.top``: ``"top"`` - ``TableOfContent.BacklinksOptions.none``: ``"none"``
6259908b23849d37ff852cdd
class Query(object): <NEW_LINE> <INDENT> def __init__(self, query, query_type='and'): <NEW_LINE> <INDENT> self.query = query <NEW_LINE> self.query_type = query_type <NEW_LINE> <DEDENT> def convert(self): <NEW_LINE> <INDENT> query_dict = self.convert_and() if self.query_type == 'and' else self.convert_or() <N...
Representation of an Elasticsearch DSL query.
6259908bd486a94d0ba2dbd7
class SetGradesCmd(OrgCommand): <NEW_LINE> <INDENT> aliases = ('@set-grades',) <NEW_LINE> syntax = '[for <org>] to <gradelist>' <NEW_LINE> arg_parsers = { 'org': match_org, 'gradelist': mudsling.parsers.StringListStaticParser, } <NEW_LINE> org_manager = True <NEW_LINE> def run(self, actor, org, gradelist): <NEW_LINE> <...
@set-grades [for <org>] to <grade1>,<grade2>,...,<gradeN> Set all grade seniorities at once, starting at seniority 1.
6259908b50812a4eaa6219d7
class Loader(object): <NEW_LINE> <INDENT> pass
Loads stuff into a state graph.
6259908b55399d3f05628138
class MyCommand(object): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.methodObject = None <NEW_LINE> self.lock = object <NEW_LINE> self.priority = 0 <NEW_LINE> self.args = [] <NEW_LINE> self.kwargs = {} <NEW_LINE> self.result = None <NEW_LINE> <DEDENT> def setCommand(self, methodObject, lock, priori...
This class is uesd to package all kinds of method objects, likes a data transfer object.
6259908bdc8b845886d551dc
class FrameSegment(object): <NEW_LINE> <INDENT> MAX_DGRAM = 2**16 <NEW_LINE> MAX_IMAGE_DGRAM = MAX_DGRAM - 64 <NEW_LINE> def __init__(self, sock, port, addr="127.0.0.1"): <NEW_LINE> <INDENT> self.s = sock <NEW_LINE> self.port = port <NEW_LINE> self.addr = addr <NEW_LINE> <DEDENT> def udp_frame(self, img): <NEW_LINE> <I...
Object to break down image frame segment if the size of image exceed maximum datagram size
6259908baad79263cf4303de
class TekSavvySensor(Entity): <NEW_LINE> <INDENT> def __init__(self, teksavvydata, sensor_type, name): <NEW_LINE> <INDENT> self.client_name = name <NEW_LINE> self.type = sensor_type <NEW_LINE> self._name = SENSOR_TYPES[sensor_type][0] <NEW_LINE> self._unit_of_measurement = SENSOR_TYPES[sensor_type][1] <NEW_LINE> self._...
Representation of TekSavvy Bandwidth sensor.
6259908bf9cc0f698b1c60dd
class Meta(object): <NEW_LINE> <INDENT> app_label = 'delivery_helper_core'
Model options for Entrega.
6259908b3346ee7daa338474
class HomeView(TemplateView): <NEW_LINE> <INDENT> template_name = 'mockstock/home.html'
Home page view.
6259908b5fc7496912d4907d
class XSredden(XSMultiplicativeModel): <NEW_LINE> <INDENT> __function__ = "xscred" <NEW_LINE> def __init__(self, name='redden'): <NEW_LINE> <INDENT> self.E_BmV = Parameter(name, 'E_BmV', 0.05, 0., 10., 0.0, hugeval, aliases=["EBV"]) <NEW_LINE> XSMultiplicativeModel.__init__(self, name, (self.E_BmV,))
The XSPEC redden model: interstellar extinction. The model is described at [1]_. .. note:: Deprecated in Sherpa 4.10.0 The ``EBV`` parameter has been renamed ``E_BmV`` to match the XSPEC definition. The name ``EBV`` can still be used to access the parameter, but this name will be removed in a future release...
6259908b167d2b6e312b83aa
class SVD(Op): <NEW_LINE> <INDENT> _numop = staticmethod(np.linalg.svd) <NEW_LINE> __props__ = ('full_matrices', 'compute_uv') <NEW_LINE> def __init__(self, full_matrices=True, compute_uv=True): <NEW_LINE> <INDENT> self.full_matrices = full_matrices <NEW_LINE> self.compute_uv = compute_uv <NEW_LINE> <DEDENT> def make_n...
Parameters ---------- full_matrices : bool, optional If True (default), u and v have the shapes (M, M) and (N, N), respectively. Otherwise, the shapes are (M, K) and (K, N), respectively, where K = min(M, N). compute_uv : bool, optional Whether or not to compute u and v in addition to s. True by...
6259908b656771135c48ae43
class InsertNodeAction (BaseAction): <NEW_LINE> <INDENT> def __init__ (self, application): <NEW_LINE> <INDENT> self._application = application <NEW_LINE> global _ <NEW_LINE> _ = get_() <NEW_LINE> <DEDENT> stringId = u"Diagrammer_InsertNode" <NEW_LINE> @property <NEW_LINE> def title (self): <NEW_LINE> <INDENT> return _(...
Описание действия
6259908bd8ef3951e32c8c70
class BasicModule(t.nn.Module): <NEW_LINE> <INDENT> def __init__(self,opt=None): <NEW_LINE> <INDENT> super(BasicModule,self).__init__() <NEW_LINE> self.model_name=str(type(self).__name__) <NEW_LINE> self.opt = opt <NEW_LINE> <DEDENT> def load(self, path,map_location=lambda storage, loc: storage): <NEW_LINE> <INDENT> ch...
封装了nn.Module
6259908b4527f215b58eb7b2
class GutenbergMonitor(Monitor): <NEW_LINE> <INDENT> def __init__(self, _db, data_directory): <NEW_LINE> <INDENT> self._db = _db <NEW_LINE> path = os.path.join(data_directory, DataSource.GUTENBERG) <NEW_LINE> if not os.path.exists(path): <NEW_LINE> <INDENT> os.makedirs(path) <NEW_LINE> <DEDENT> self.source = GutenbergA...
Maintain license pool and metadata info for Gutenberg titles. TODO: This monitor doesn't really use the normal monitor process, but since it doesn't access an 'API' in the traditional sense it doesn't matter much.
6259908bf9cc0f698b1c60de
class MemberReports(object): <NEW_LINE> <INDENT> def __init__(self, member_reports=None): <NEW_LINE> <INDENT> self.swagger_types = { 'member_reports': 'list[MemberReport]' } <NEW_LINE> self.attribute_map = { 'member_reports': 'member_reports' } <NEW_LINE> self._member_reports = member_reports <NEW_LINE> <DEDENT> @prope...
NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.
6259908b5fcc89381b266f71
class Furigana(object): <NEW_LINE> <INDENT> def __init__(self, text): <NEW_LINE> <INDENT> self.text = text
Represents a furigana string sequence
6259908ba05bb46b3848bf39
class IProcessEntity(Interface): <NEW_LINE> <INDENT> pass
Marker interface for OSProcessClass and OSProcessOrganizer
6259908bd486a94d0ba2dbdb
class FastSpeech2(nn.Module): <NEW_LINE> <INDENT> def __init__(self, use_postnet=True): <NEW_LINE> <INDENT> super(FastSpeech2, self).__init__() <NEW_LINE> self.encoder = Encoder() <NEW_LINE> self.variance_adaptor = VarianceAdaptor() <NEW_LINE> self.decoder = Decoder() <NEW_LINE> self.mel_linear = nn.Linear(hp.decoder_h...
FastSpeech2
6259908bec188e330fdfa4d5
class MarkInfo: <NEW_LINE> <INDENT> def __init__(self, name, args, kwargs): <NEW_LINE> <INDENT> self.name = name <NEW_LINE> self.args = args <NEW_LINE> self.kwargs = kwargs.copy() <NEW_LINE> self._arglist = [(args, kwargs.copy())] <NEW_LINE> <DEDENT> def __repr__(self): <NEW_LINE> <INDENT> return "<MarkInfo %r args=%r ...
Marking object created by :class:`MarkDecorator` instances.
6259908b656771135c48ae44
class TempViewer: <NEW_LINE> <INDENT> def update(self, subject): <NEW_LINE> <INDENT> print("Temperature Viewer: {} has Temperature {}".format(subject._name, subject._temp))
This is an observer class
6259908bdc8b845886d551e0
class MulticastSocket(object): <NEW_LINE> <INDENT> def __init__(self, hostport): <NEW_LINE> <INDENT> self.host, self.port = hostport <NEW_LINE> self.rsock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) <NEW_LINE> self.rsock.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1) <NEW_LINE> if hasattr(socket, 'SO_REUS...
A simple class for wrapping multicast send/receive activities.
6259908bf9cc0f698b1c60df
class AnnotateGenomeWorkflow(sl.WorkflowTask): <NEW_LINE> <INDENT> genome_fasta = sl.Parameter() <NEW_LINE> genome_name = sl.Parameter() <NEW_LINE> checkm_memory = sl.Parameter(default=64000) <NEW_LINE> checkm_threads = sl.Parameter(default=8) <NEW_LINE> base_s3_folder = sl.Parameter() <NEW_LINE> aws_job_role_arn = sl....
{genome sequence } -> [ prodigal / prokka ] -> {called peptides} -> [checkM] -> {completeness and taxID}
6259908b8a349b6b43687e86
class BStoreClosedError(Exception): <NEW_LINE> <INDENT> def __str__(self): <NEW_LINE> <INDENT> return "Backing store not open"
exception for when a backing store hasn't been opened yet
6259908b091ae3566870686c
class RegistrationForm(FlaskForm): <NEW_LINE> <INDENT> email = StringField('Email', validators=[DataRequired(), Email()]) <NEW_LINE> username = StringField('Username', validators=[DataRequired()]) <NEW_LINE> first_name = StringField('First Name', validators=[DataRequired()]) <NEW_LINE> last_name = StringField('Last Nam...
Form for user to create new account
6259908bfff4ab517ebcf43f
class Layer: <NEW_LINE> <INDENT> def __init__(self, number_of_nodes: int, bias: float, weights: np.array, activation_function: ActivationFunction) -> None: <NEW_LINE> <INDENT> self.number_of_nodes = number_of_nodes <NEW_LINE> self.bias = bias <NEW_LINE> self.activation_function = activation_function <NEW_LINE> self.wei...
Represents neural network's layer
6259908b3617ad0b5ee07d7a
class Developer(Employee): <NEW_LINE> <INDENT> raise_amount = 1.20 <NEW_LINE> def __init__(self, first_name, last_name, pay, programming_language): <NEW_LINE> <INDENT> super().__init__(first_name, last_name, pay) <NEW_LINE> self.programming_language = programming_language
customize parent class inherited variables
6259908b23849d37ff852ce3
class NeatoSensor(Entity): <NEW_LINE> <INDENT> def __init__(self, neato, robot): <NEW_LINE> <INDENT> self.robot = robot <NEW_LINE> self._available = neato.logged_in if neato is not None else False <NEW_LINE> self._robot_name = f"{self.robot.name} {BATTERY}" <NEW_LINE> self._robot_serial = self.robot.serial <NEW_LINE> s...
Neato sensor.
6259908badb09d7d5dc0c183
class AzureStackHCIClientConfiguration(Configuration): <NEW_LINE> <INDENT> def __init__( self, credential: "AsyncTokenCredential", subscription_id: str, **kwargs: Any ) -> None: <NEW_LINE> <INDENT> if credential is None: <NEW_LINE> <INDENT> raise ValueError("Parameter 'credential' must not be None.") <NEW_LINE> <DEDENT...
Configuration for AzureStackHCIClient. Note that all parameters used to create this instance are saved as instance attributes. :param credential: Credential needed for the client to connect to Azure. :type credential: ~azure.core.credentials_async.AsyncTokenCredential :param subscription_id: The ID of the target subs...
6259908b656771135c48ae45
class Event(DictionaryBase, ConvertEvent, ExportEvent): <NEW_LINE> <INDENT> pass
Default Event class for conversion
6259908b5fcc89381b266f73
class Meta: <NEW_LINE> <INDENT> model = Entry <NEW_LINE> exclude = ('internal_notes', 'published_by',)
Meta class. Because
6259908baad79263cf4303e3
class ShowCryptoPkiCertificates(ShowCryptoPkiCertificates_iosxe): <NEW_LINE> <INDENT> pass
Parser for show crypto pki certificates <WORD>
6259908badb09d7d5dc0c185
class RuleGroup(ModelSQL, ModelView): <NEW_LINE> <INDENT> _name = 'ir.rule.group' <NEW_LINE> _description = __doc__ <NEW_LINE> name = fields.Char('Name', select=True) <NEW_LINE> model = fields.Many2One('ir.model', 'Model', select=True, required=True) <NEW_LINE> global_p = fields.Boolean('Global', select=True, help="Mak...
Rule group
6259908b26068e7796d4e56d
class MessageDelay(ChatAction): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> super().__init__() <NEW_LINE> <DEDENT> def exec(self): <NEW_LINE> <INDENT> time.sleep(5)
Represents a message delay
6259908b99fddb7c1ca63bf2
class Config: <NEW_LINE> <INDENT> def __init__(self, buffer_size, buffer_timeout): <NEW_LINE> <INDENT> self.buffer_size = buffer_size <NEW_LINE> self.buffer_timeout = buffer_timeout <NEW_LINE> self.kafka_topic = "test" <NEW_LINE> self.influxdb_dbname = "mydb" <NEW_LINE> self.statistics = False
Dummy config with minimum settings to pass the tests
6259908b55399d3f05628140
class BanditUCBRequest(base_schemas.StrictMappingSchema): <NEW_LINE> <INDENT> subtype = colander.SchemaNode( colander.String(), validator=colander.OneOf(UCB_SUBTYPES), missing=DEFAULT_UCB_SUBTYPE, ) <NEW_LINE> historical_info = BanditHistoricalInfo()
A :mod:`moe.views.rest.bandit_ucb` request colander schema. **Required fields** :ivar historical_info: (:class:`moe.views.schemas.bandit_pretty_view.BanditHistoricalInfo`) object of historical data describing arm performance **Optional fields** :ivar subtype: (*str*) subtype of the UCB bandit algorithm (default: UC...
6259908b71ff763f4b5e93d9
class NoJobError(ClientRequestError): <NEW_LINE> <INDENT> pass
The request could not return any job.
6259908b283ffb24f3cf54cc
class ItemForm(FlaskForm): <NEW_LINE> <INDENT> name = StringField("name", validators=[InputRequired()]) <NEW_LINE> description = TextAreaField( "description", validators=[optional(), length(max=777)] ) <NEW_LINE> url = StringField("url", validators=[MaybeURL()]) <NEW_LINE> price = IntegerField( "price", validators=[ In...
Přidání položky
6259908b23849d37ff852ce7
class EnumSetting(SettingValue): <NEW_LINE> <INDENT> _DYNAMICALLY_ADDED_OPTIONS = {'defaultTimezone': str} <NEW_LINE> def __init__(self, config: dict): <NEW_LINE> <INDENT> super().__init__(config) <NEW_LINE> config_name = config.get('name') <NEW_LINE> if config_name in self._DYNAMICALLY_ADDED_OPTIONS: <NEW_LINE> <INDEN...
Representation of an Enum setting type.
6259908b3617ad0b5ee07d7e
class Garmin(object): <NEW_LINE> <INDENT> @staticmethod <NEW_LINE> def get_firmware(device="VIRB", version=4.00): <NEW_LINE> <INDENT> return requests.get("https://download.garmin.com/software/%s_%d.gcd" % ( device, int(version*100)))
Class to namespace any Garmin specific funtions and methods that have no direct use for any specific device information
6259908bfff4ab517ebcf443
class TheBuildOptions(BaseModel): <NEW_LINE> <INDENT> solvationOptions : TheSystemSolvationOptions = None <NEW_LINE> geometryOptions : TheGeometryOptions = None <NEW_LINE> mdMinimize : bool = Field( True, title = 'Minimize structure using MD', ) <NEW_LINE> numberStructuresHardLimit : int = None <NEW_LINE> def __init__(...
Options for building 3D models
6259908b99fddb7c1ca63bf3
class TestBranches(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 testBranches(self): <NEW_LINE> <INDENT> pass
Branches unit test stubs
6259908bd8ef3951e32c8c74
class SuperRubricAdmin(admin.ModelAdmin): <NEW_LINE> <INDENT> exclude = ('super_rubric',) <NEW_LINE> inlines = (SubRubricInline,)
Редактор надрубрик.
6259908b7cff6e4e811b7670
class WordfastHeader(object): <NEW_LINE> <INDENT> def __init__(self, header=None): <NEW_LINE> <INDENT> self._header_dict = [] <NEW_LINE> if not header: <NEW_LINE> <INDENT> self.header = self._create_default_header() <NEW_LINE> <DEDENT> elif isinstance(header, dict): <NEW_LINE> <INDENT> self.header = header <NEW_LINE> <...
A wordfast translation memory header
6259908b656771135c48ae48
class LocalDownloader(BaseDownloader): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> def download(self, package_dict, **kwargs): <NEW_LINE> <INDENT> if not package_dict: <NEW_LINE> <INDENT> raise ValueError('package_dict is required.') <NEW_LINE> <DEDENT> if 'source_directory' not...
A downloader class to copy a pacakge from source directory.
6259908b26068e7796d4e571
class ResistorForm(AddPartBase): <NEW_LINE> <INDENT> Value = forms.FloatField(label='Value', help_text='Resistor value') <NEW_LINE> Unit = forms.ChoiceField(label="Unit", choices=UnitManager.ResistorChoices) <NEW_LINE> ResistorToler = forms.ChoiceField(label='Tolerance', choices=( (0.05, "0.05%"), (0.1, "0.1%"), (0.25,...
Form for adding a resistor
6259908b99fddb7c1ca63bf4
@injectable() <NEW_LINE> @dataclass <NEW_LINE> class Greeter: <NEW_LINE> <INDENT> punctuation: str = get(SiteConfig, attr="punctuation") <NEW_LINE> greeting: str = "Hello" <NEW_LINE> def greet(self) -> str: <NEW_LINE> <INDENT> return f"{self.greeting}{self.punctuation}"
A simple greeter.
6259908b63b5f9789fe86d98
class ShortDescription(Model): <NEW_LINE> <INDENT> _attribute_map = { 'problem': {'key': 'problem', 'type': 'str'}, 'solution': {'key': 'solution', 'type': 'str'}, } <NEW_LINE> def __init__(self, problem=None, solution=None): <NEW_LINE> <INDENT> super(ShortDescription, self).__init__() <NEW_LINE> self.problem = problem...
A summary of the recommendation. :param problem: The issue or opportunity identified by the recommendation. :type problem: str :param solution: The remediation action suggested by the recommendation. :type solution: str
6259908bbf627c535bcb3101
class GameScrapyItem(scrapy.Item): <NEW_LINE> <INDENT> name = scrapy.Field() <NEW_LINE> foreign_name = scrapy.Field() <NEW_LINE> language = scrapy.Field() <NEW_LINE> tags = scrapy.Field() <NEW_LINE> company = scrapy.Field() <NEW_LINE> type = scrapy.Field() <NEW_LINE> desc = scrapy.Field()
游戏信息爬虫
6259908b283ffb24f3cf54d0
class MetisView(object): <NEW_LINE> <INDENT> def __init__(self, control): <NEW_LINE> <INDENT> self._control = control <NEW_LINE> <DEDENT> @property <NEW_LINE> def rect(self): <NEW_LINE> <INDENT> x = 0 <NEW_LINE> y = 0 <NEW_LINE> w = abs(self._control.BoundingRect.Right - self._control.BoundingRect.Left) <NEW_LINE> h = ...
各端实现的MetisView
6259908ba8370b77170f1ffc
class IOpenIdPrincipal(interface.Interface): <NEW_LINE> <INDENT> title = schema.TextLine( title = _('Title'), required = True) <NEW_LINE> identifier = interface.Attribute('OpenID Identifier')
openid principal
6259908c3617ad0b5ee07d82
class StorageStyle(object): <NEW_LINE> <INDENT> def __init__(self, key, list_elem = True, as_type = unicode, packing = None, pack_pos = 0, id3_desc = None): <NEW_LINE> <INDENT> self.key = key <NEW_LINE> self.list_elem = list_elem <NEW_LINE> self.as_type = as_type <NEW_LINE> self.packing = packing <NEW_LINE> self.pack_p...
Parameterizes the storage behavior of a single field for a certain tag format. - key: The Mutagen key used to access the field's data. - list_elem: Store item as a single object or as first element of a list. - as_type: Which type the value is stored as (unicode, int, bool, or str). - packing: If this value i...
6259908c4a966d76dd5f0b16
class ConditionalPredicateValueDefnumberArraynullExprRef(VegaLiteSchema): <NEW_LINE> <INDENT> _schema = {'$ref': '#/definitions/ConditionalPredicate<(ValueDef<(number[]|null)>|ExprRef)>'} <NEW_LINE> def __init__(self, *args, **kwds): <NEW_LINE> <INDENT> super(ConditionalPredicateValueDefnumberArraynullExprRef, self).__...
ConditionalPredicateValueDefnumberArraynullExprRef schema wrapper anyOf(Mapping(required=[test, value]), Mapping(required=[expr, test]))
6259908c656771135c48ae49
class JobHandle(_M_omero.api.StatefulServiceInterface): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> if __builtin__.type(self) == _M_omero.api.JobHandle: <NEW_LINE> <INDENT> raise RuntimeError('omero.api.JobHandle is an abstract class') <NEW_LINE> <DEDENT> <DEDENT> def ice_ids(self, current=None): <NEW_L...
See JobHandle.html
6259908c4527f215b58eb7b8
class IndexedTableUsage(ScalarTableMixin, BaseTableUsageTestCase): <NEW_LINE> <INDENT> nrows = 50 <NEW_LINE> indexed = True <NEW_LINE> def setUp(self): <NEW_LINE> <INDENT> super(IndexedTableUsage, self).setUp() <NEW_LINE> self.table.cols.c_bool.create_index(_blocksizes=small_blocksizes) <NEW_LINE> self.table.cols.c_int...
Test case for query usage on indexed tables. Indexing could be used in more cases, but it is expected to kick in at least in the cases tested here.
6259908c5fdd1c0f98e5fba8
class metaextract(Command): <NEW_LINE> <INDENT> description = "extract package metadata" <NEW_LINE> user_options = [ ("output=", "o", "output for metadata json") ] <NEW_LINE> def initialize_options(self): <NEW_LINE> <INDENT> self.output = None <NEW_LINE> <DEDENT> def finalize_options(self): <NEW_LINE> <INDENT> pass <NE...
a distutils command to extract metadata
6259908c99fddb7c1ca63bf5
class StartDoingRandomActionsWrapper(gym.Wrapper): <NEW_LINE> <INDENT> def __init__(self, env, max_random_steps, on_startup=True, every_episode=False): <NEW_LINE> <INDENT> gym.Wrapper.__init__(self, env) <NEW_LINE> self.on_startup = on_startup <NEW_LINE> self.every_episode = every_episode <NEW_LINE> self.random_steps =...
Warning: can eat info dicts, not good if you depend on them
6259908cd486a94d0ba2dbe6
class Num(Widget): <NEW_LINE> <INDENT> class SpecialDigit(enum.Enum): <NEW_LINE> <INDENT> COLON = 10 <NEW_LINE> <DEDENT> def __init__(self, name: str, x: int, digit: typing.Union[int, SpecialDigit]): <NEW_LINE> <INDENT> super().__init__(WidgetType.BIGNUM, name) <NEW_LINE> self._validate_params(x, digit) <NEW_LINE> self...
Widget representing a big decimal digit
6259908c63b5f9789fe86d9a
class IndexEntriesVerifier: <NEW_LINE> <INDENT> def __init__(self, specificindexentries=None, testindexentries=None): <NEW_LINE> <INDENT> self._specificIndexEntries = specificindexentries <NEW_LINE> self._testIndexEntries = testindexentries <NEW_LINE> self._buildLogs = { "ProjectLogs": [ ] } <NEW_LINE> return <NEW_LINE...
Handles the verification of individual index entries, w.r.t index.yml and cccp.yml, based on Engines instructions
6259908cad47b63b2c5a9482
class TestOperation(Component): <NEW_LINE> <INDENT> implements(api.ITicketActionController) <NEW_LINE> def get_ticket_actions(self, req, ticket): <NEW_LINE> <INDENT> return [(0, 'test')] <NEW_LINE> <DEDENT> def get_all_status(self): <NEW_LINE> <INDENT> return [] <NEW_LINE> <DEDENT> def render_ticket_action_control(self...
TicketActionController that directly provides an action.
6259908cf9cc0f698b1c60e4
class Particle(object): <NEW_LINE> <INDENT> scene = None <NEW_LINE> scaleX = 1000.0 <NEW_LINE> scaleY = 1000.0 <NEW_LINE> brush = QBrush(Qt.darkGreen) <NEW_LINE> pen = QPen(Qt.NoPen) <NEW_LINE> def __init__(self, p, r): <NEW_LINE> <INDENT> self._p = p <NEW_LINE> self._r = r <NEW_LINE> self.item = Particle.scene.addElli...
Particle class - Visual particle representation
6259908c656771135c48ae4a
class GrpParser(object): <NEW_LINE> <INDENT> def readLoc(self, locfiles, speciesNames = None): <NEW_LINE> <INDENT> firstLine=True <NEW_LINE> res = {} <NEW_LINE> for lf in locfiles: <NEW_LINE> <INDENT> tmpfile = open(lf,'r') <NEW_LINE> for ln in tmpfile: <NEW_LINE> <INDENT> if firstLine: <NEW_LINE> <INDENT> firstLine = ...
read .loc files. Return dictionary with locus ID as key and transcript list as value
6259908c26068e7796d4e575
class TestDeviceInnerDeviceInfo(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 testDeviceInnerDeviceInfo(self): <NEW_LINE> <INDENT> pass
DeviceInnerDeviceInfo unit test stubs
6259908c99fddb7c1ca63bf6
class Registry: <NEW_LINE> <INDENT> def __init__(self, name=None, types=None, enums=None, commands=None, features=None, extensions=None): <NEW_LINE> <INDENT> self.name = name <NEW_LINE> self.types = collections.OrderedDict(types or ()) <NEW_LINE> self.enums = collections.OrderedDict(enums or ()) <NEW_LINE> self.command...
API Registry
6259908c50812a4eaa6219df
class InvalidSpaceParameterError(Exception): <NEW_LINE> <INDENT> def __init__(self, space_type, param): <NEW_LINE> <INDENT> self.message = 'Invalid parameter for space type {}: {}.'.format( space_type, param)
An error raised if the specified experimental space parameters are missing or invalid.
6259908c71ff763f4b5e93e1