code
stringlengths
4
4.48k
docstring
stringlengths
1
6.45k
_id
stringlengths
24
24
class TopicQueryResponse(BaseTopicResponse): <NEW_LINE> <INDENT> def __init__(self, json_rsp=None): <NEW_LINE> <INDENT> super(TopicQueryResponse, self).__init__(json_rsp) <NEW_LINE> self._topics = json_rsp['topics'] <NEW_LINE> <DEDENT> @property <NEW_LINE> def topics(self): <NEW_LINE> <INDENT> return self._topics
{ "msg": "success", "code": "80000000", "requestId": "157466350121600008000701", "topics": [ { "name": "sports", "addDate": "2019-11-25" } ] }
62598ee8a8370b77170eeab7
class Settings(): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.screen_width = 1200 <NEW_LINE> self.screen_height = 800 <NEW_LINE> self.bg_color = (230,230,230)
Klasa przeznaczona do przechowywania wszystkich ustawień!
62598ee82c8b7c6e89bd1e93
class MockEndpoints: <NEW_LINE> <INDENT> def __init__(self, server): <NEW_LINE> <INDENT> self.server = server <NEW_LINE> self.register() <NEW_LINE> <DEDENT> def register(self): <NEW_LINE> <INDENT> self.server.add_post('track', self.h_mock_track) <NEW_LINE> <DEDENT> async def h_mock_track(self, request): <NEW_LINE> <IND...
Mocked endpoints gathered from the official client
62598ee84428ac0f6e656c25
class GroupedExamAllowancesByStudent(ProctoredAPIView): <NEW_LINE> <INDENT> @method_decorator(require_course_or_global_staff) <NEW_LINE> def get(self, request, course_id): <NEW_LINE> <INDENT> all_allowances = ProctoredExamStudentAllowance.get_allowances_for_course(course_id) <NEW_LINE> grouped_allowances = {} <NEW_LINE...
Endpoint for the StudentProctoredGroupedExamAttemptsByCourse Supports: HTTP GET: return information about learners' allowances **Expected Response** HTTP GET: The response will contain a dictionary with the allowances of a course grouped by student. For example: {{'student1': ...
62598ee891f36d47f223020d
class SmartArtistSort(Sort): <NEW_LINE> <INDENT> def __init__(self, model_cls, is_ascending=True): <NEW_LINE> <INDENT> self.model_cls = model_cls <NEW_LINE> self.is_ascending = is_ascending <NEW_LINE> <DEDENT> def select_clause(self): <NEW_LINE> <INDENT> return "" <NEW_LINE> <DEDENT> def union_clause(self): <NEW_LINE> ...
Sort Album or Item on artist sort fields, defaulting back on artist field if the sort specific field is empty.
62598ee87047854f4633daa8
@dataclass <NEW_LINE> class Link: <NEW_LINE> <INDENT> image: bool <NEW_LINE> text: str <NEW_LINE> target: str <NEW_LINE> anchor: str <NEW_LINE> title: str <NEW_LINE> def render(self): <NEW_LINE> <INDENT> img = '!' if self.image else '' <NEW_LINE> anchor = f"#{self.anchor}" if self.anchor else '' <NEW_LINE> title = f' "...
Dataclass to hold the contents required to form a complete Link.
62598ee8379a373c97d976c9
class ImageUploadForm(Form): <NEW_LINE> <INDENT> image = FileField(u'Image File') <NEW_LINE> description = TextAreaField(u'Image Description') <NEW_LINE> category_id = SelectField(u'Category', coerce=int) <NEW_LINE> def validate_image(self, field): <NEW_LINE> <INDENT> if field.data is None: <NEW_LINE> <INDENT> message...
图片上传
62598ee8e1aae11d1e7cdba9
class BuildResultProperties(msrest.serialization.Model): <NEW_LINE> <INDENT> _validation = { 'provisioning_state': {'readonly': True}, 'build_stages': {'readonly': True}, } <NEW_LINE> _attribute_map = { 'name': {'key': 'name', 'type': 'str'}, 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, 'build_pod...
Build result resource properties payload. Variables are only populated by the server, and will be ignored when sending a request. :ivar name: The name of this build result. :vartype name: str :ivar provisioning_state: Provisioning state of the KPack build result. Possible values include: "Queuing", "Building", "Succ...
62598ee85fdd1c0f98e5c677
class physsim(BaseILC): <NEW_LINE> <INDENT> def __init__(self, userInput): <NEW_LINE> <INDENT> BaseILC.__init__(self, userInput, "physsim", "physsim") <NEW_LINE> self.hasCMakeBuildSupport = False <NEW_LINE> self.hasCMakeFindSupport = False <NEW_LINE> self.download.supportedTypes = ["cvs"] <NEW_LINE> self.download.acces...
Responsible for the physsim installation.
62598ee81b99ca400228e877
class Cfdi(Facturama): <NEW_LINE> <INDENT> @classmethod <NEW_LINE> def create(cls, data, v=1): <NEW_LINE> <INDENT> return cls.build_http_request('post', 'cfdis' , data, version=v) <NEW_LINE> <DEDENT> @classmethod <NEW_LINE> def get_by_file(cls, f, t, oid): <NEW_LINE> <INDENT> return cls.build_http_request('get', '{}/{}...
Opr with Cfdi of Facturama API
62598ee8851cf427c66b69a5
class WikiDataAnswer(Answer): <NEW_LINE> <INDENT> TIME_VALUE = 'http://wikiba.se/ontology#TimeValue' <NEW_LINE> QUANTITY_VALUE = 'http://wikiba.se/ontology#QuantityValue' <NEW_LINE> def __init__(self, sparql_query, bindings=None, data=None): <NEW_LINE> <INDENT> super(WikiDataAnswer, self).__init__() <NEW_LINE> self.spa...
Answer object from WikiData source
62598ee83539df3088eca986
class Collectador(): <NEW_LINE> <INDENT> def __init__(self,my_port): <NEW_LINE> <INDENT> self.baud = 9600 <NEW_LINE> self.port = my_port <NEW_LINE> self.ser = None <NEW_LINE> self.serialConnected = False <NEW_LINE> self.position = None <NEW_LINE> self.uniqueID = "" <NEW_LINE> self.usingSnakePattern = True <NEW_LINE> se...
This class is used for control of stepper motors. A serial connection is established with the microcontroller controlling the stepper motors. Attributes: baud (int): The baud rate the serial connection is using. port (string): the microcontrollers port for the serial connection. ser (serial Object): Instan...
62598ee8f7d966606f7466c5
class CustomUserCreationForm(UserCreationForm): <NEW_LINE> <INDENT> class Meta: <NEW_LINE> <INDENT> model = User <NEW_LINE> fields = ("email", "full_name")
We need to extend the default UserCreationForm to accommodate the extra fields. This form is displayed when we create a user in admin from another model. We can also reuse the form in the UI for registration.
62598ee8cb5e8a47e493b4e3
class BannersSerializer(serializers.ModelSerializer): <NEW_LINE> <INDENT> class Meta: <NEW_LINE> <INDENT> model = Banner <NEW_LINE> fields = '__all__'
热搜词 serializer(提交数据过滤 、 返回数据显示过滤)
62598ee826068e7796d4b031
class detailAlert(forms.Form): <NEW_LINE> <INDENT> class Meta: <NEW_LINE> <INDENT> model = Alert <NEW_LINE> <DEDENT> new_subscribe = forms.BooleanField( label = "Subscribe", required = False, widget = HorizontalCheckbox( attrs = { 'class':'form-check-input position-static', 'type':'checkbox', } ), help_text = 'Check th...
Define the fields for an alert. These fields are presented when the user does NOT own this alert. The only option is to subscribe.
62598ee8cc0a2c11144796d8
class ElementBasedLigandInteractions(VersionA): <NEW_LINE> <INDENT> def __init__(self, parameters): <NEW_LINE> <INDENT> super().__init__(parameters) <NEW_LINE> _LOGGER.info('Using detailed SC model!') <NEW_LINE> return <NEW_LINE> <DEDENT> def get_hydrogen_bond_parameters(self, atom1, atom2): <NEW_LINE> <INDENT> if 'het...
TODO - figure out what this is.
62598ee8435de62698e9a4ab
class FattyLiverClsDatasetsDiff3D(Dataset): <NEW_LINE> <INDENT> def __init__(self, data_root, config_file, crop_size, phase='train'): <NEW_LINE> <INDENT> self.crop_size = crop_size <NEW_LINE> self.image_files = [] <NEW_LINE> self.labels = [] <NEW_LINE> self.masks = [] <NEW_LINE> mask_root = '../data/seg_task/renamed_ma...
输入数据的分辨率由train函数的输入统一到(512, 384, 32), 对应(x,y,z) data_format: diff, phase1, phase2 condition: raw, mask, cut(after mask)
62598ee81f037a2d8b9e27dd
class RegistroCreate(SuccessMessageMixin, CreateView): <NEW_LINE> <INDENT> model = User <NEW_LINE> form_class = RegistroForm <NEW_LINE> template_name = 'usuario.registro.html' <NEW_LINE> success_url = reverse_lazy('acceso') <NEW_LINE> success_message = REGISTRO_MESSAGE <NEW_LINE> def form_valid(self, form): <NEW_LINE> ...
! Clase que registra usuarios en el sistema @author Ing. Roldan Vargas (rvargas at cenditel.gob.ve) @copyright <a href='http://www.gnu.org/licenses/gpl-2.0.html'>GNU Public License versión 2 (GPLv2)</a> @date 25-04-2016 @version 2.0.0
62598ee84c342835776189b8
class NENonlinear(object): <NEW_LINE> <INDENT> _FUNC_TYPES = ('sigmoid', 'softmax', 'relu', 'tanh', 'softplus') <NEW_LINE> def __init__(self, func_type='sigmoid'): <NEW_LINE> <INDENT> if func_type in self._FUNC_TYPES: <NEW_LINE> <INDENT> if func_type == self._FUNC_TYPES[0]: <NEW_LINE> <INDENT> self._FUNCTION = self._FU...
Nonlinear --------- this is used to set up a non linear for a network. The idea is you can instantiate it and set what type of non linear function it will be for that particular neaural network
62598ee8460517430c430b5d
class SupplyTicket(object): <NEW_LINE> <INDENT> def __init__(self, checklist, foods, pickupInstructions = None, pickupHours = None): <NEW_LINE> <INDENT> self.checklist = checklist <NEW_LINE> self.foods = foods <NEW_LINE> self.PI = pickupInstructions <NEW_LINE> self.PH = pickupHours <NEW_LINE> self.source = None
checklist (dict of boolean variables) - {"perishables":t/f, "imperishables":t/f, "packaged":t/f, "unpackaged":t/f} foods (dict) - {"food1":units, "food2":units, etc...} Optional - organization does not have to input immediately pickupInstructions (string) - h...
62598ee821bff66bcd721328
class FileSystem(ArtSource): <NEW_LINE> <INDENT> @staticmethod <NEW_LINE> def filename_priority(filename, cover_names): <NEW_LINE> <INDENT> return [idx for (idx, x) in enumerate(cover_names) if x in filename] <NEW_LINE> <DEDENT> def get(self, path, cover_names, cautious): <NEW_LINE> <INDENT> if not os.path.isdir(path):...
Art from the filesystem
62598ee80a50d4780f703a81
class TicGenerator(QThread): <NEW_LINE> <INDENT> tic = pyqtSignal(name="Tic") <NEW_LINE> def __init__(self): <NEW_LINE> <INDENT> QThread.__init__(self) <NEW_LINE> <DEDENT> def __del__(self): <NEW_LINE> <INDENT> self.wait() <NEW_LINE> <DEDENT> def run(self): <NEW_LINE> <INDENT> while True: <NEW_LINE> <INDENT> t = int(ti...
5초마다 틱 신호를 전달
62598ee856b00c62f0fb0fa5
class TunnelstatusEnum(Enum): <NEW_LINE> <INDENT> active = 1 <NEW_LINE> destroy = 2 <NEW_LINE> @staticmethod <NEW_LINE> def _meta_info(): <NEW_LINE> <INDENT> from ydk.models.cisco_ios_xe._meta import _CISCO_IPSEC_FLOW_MONITOR_MIB as meta <NEW_LINE> return meta._meta_table['TunnelstatusEnum']
TunnelstatusEnum The status of a Tunnel. Objects of this type may be used to bring the tunnel down by setting value of this object to destroy(2). Objects of this type cannot be used to create a Tunnel. .. data:: active = 1 .. data:: destroy = 2
62598ee8adb09d7d5dc08c9d
class EmpiricalDistribution(ImplicitDistribution): <NEW_LINE> <INDENT> def get_sample(self, dataset, indices, number_samples, weights=None): <NEW_LINE> <INDENT> if not indices: <NEW_LINE> <INDENT> if weights: <NEW_LINE> <INDENT> p = np.array(weights).astype("float64") <NEW_LINE> p = p/np.sum(p) <NEW_LINE> <DEDENT> else...
Summary
62598ee8a8ecb0332586f8be
class EuropeanSocketInterface: <NEW_LINE> <INDENT> def voltage(self) -> int: <NEW_LINE> <INDENT> raise NotImplementedError() <NEW_LINE> <DEDENT> def live(self) -> int: <NEW_LINE> <INDENT> raise NotImplementedError() <NEW_LINE> <DEDENT> def neutral(self) -> int: <NEW_LINE> <INDENT> raise NotImplementedError() <NEW_LINE>...
Adaptee (source) interface
62598ee860cbc95b06362a13
class TestLocationFilterTarget(AttrCalcTestCase): <NEW_LINE> <INDENT> def testError(self): <NEW_LINE> <INDENT> tgtAttr = self.ch.attribute(attributeId=1) <NEW_LINE> srcAttr = self.ch.attribute(attributeId=2) <NEW_LINE> modifier = Modifier() <NEW_LINE> modifier.state = State.offline <NEW_LINE> modifier.context = Context...
Test location.target for filtered modifications
62598ee83cc13d1c6d463e45
class Stat(db.Model): <NEW_LINE> <INDENT> id = db.Column(db.Integer, primary_key=True) <NEW_LINE> timestamp = db.Column(db.Integer, index=True, unique=True) <NEW_LINE> request = db.Column(db.Integer) <NEW_LINE> badrequest = db.Column(db.Integer) <NEW_LINE> def __repr__(self): <NEW_LINE> <INDENT> return 'From: %r : %r :...
Model for statistic.
62598ee85fdd1c0f98e5c678
@Task.register_concrete_subclass <NEW_LINE> class SequenceTask(CompoundTask): <NEW_LINE> <INDENT> __task_type_id__ = 'sequence' <NEW_LINE> pass
Executes a list of child `Task`s in sequence.
62598ee801c39578d7f1147f
class Hygrometer(object): <NEW_LINE> <INDENT> def __init__(self, pos=(-20,-10,10), axis=(0,5,1), length=8, height=8, width=8): <NEW_LINE> <INDENT> self.zero = None <NEW_LINE> room_color = (1,1,1) <NEW_LINE> wet_color = (0,0,1) <NEW_LINE> room_opacity = ...
Create a box visualizing the relative humidity.
62598ee80c0af96317c54a73
class Crawler(): <NEW_LINE> <INDENT> def __init__(self, setting, services): <NEW_LINE> <INDENT> self.proxy_queue = HttpProxyQueue(setting['proxy_frequency_time']) <NEW_LINE> self.links_queue = PressureControlQueue(setting["frequency_time"]) <NEW_LINE> self.pages_queue = Queue() <NEW_LINE> self.download_workers = [] <NE...
Main Thread
62598ee83539df3088eca988
class Fixed(base.Expression): <NEW_LINE> <INDENT> fields = () <NEW_LINE> def evaluate_locally(self, environment={}): <NEW_LINE> <INDENT> return Lambda( Identifier('f'), Application( Lambda( Identifier('x'), Application( Identifier('f'), Application( Identifier('x'), Identifier('x')))), Lambda( Identifier('x'), Applicat...
A shortcut for the Y fixed-point combinator.
62598ee807f4c71912badb2b
class QlikLoad: <NEW_LINE> <INDENT> def __init__(self, server, client_cert=False, client_key=False, root=False,): <NEW_LINE> <INDENT> userdirectory = 'internal' <NEW_LINE> userid = 'sa_repository' <NEW_LINE> self.qrs = qs.ConnectQlik(server=server, certificate=(client_cert, client_key), root=root, userdirectory=userdir...
gets the load from a QS Engine
62598ee84428ac0f6e656c28
class CCP(object): <NEW_LINE> <INDENT> def __new__(cls, *args, **kwargs): <NEW_LINE> <INDENT> if not hasattr(CCP, "_instance"): <NEW_LINE> <INDENT> cls._instance = super(CCP, cls).__new__(cls, *args, **kwargs) <NEW_LINE> cls._instance.rest = REST(_serverIP, _serverPort, _softVersion) <NEW_LINE> cls._instance.rest.setAc...
发送短信的辅助类
62598ee87cff6e4e811b40c4
class ChartField(BaseType): <NEW_LINE> <INDENT> def validate(self, data): <NEW_LINE> <INDENT> default = self.option.get('default') <NEW_LINE> if default and not data: <NEW_LINE> <INDENT> data = default <NEW_LINE> <DEDENT> if isinstance(data, str): <NEW_LINE> <INDENT> value = data <NEW_LINE> <DEDENT> else: <NEW_LINE> <I...
字符类型
62598ee8f9cc0f698b1c4639
class TestBugTaskAdaptation(TestCase): <NEW_LINE> <INDENT> layer = DatabaseFunctionalLayer <NEW_LINE> def test_bugtask_adaptation(self): <NEW_LINE> <INDENT> login('foo.bar@canonical.com') <NEW_LINE> bugtask_four = getUtility(IBugTaskSet).get(4) <NEW_LINE> bug = IBug(bugtask_four) <NEW_LINE> self.assertEqual(bug.title, ...
Verify bugtask adaptation.
62598ee8a17c0f6771d5a92a
@iso_register('BR-SP') <NEW_LINE> class BrazilSaoPauloState(Brazil): <NEW_LINE> <INDENT> FIXED_HOLIDAYS = Brazil.FIXED_HOLIDAYS + ( (7, 9, "Constitutional Revolution of 1932"), )
Brazil São Paulo State
62598ee8435de62698e9a4ad
@attr.s(auto_attribs=True, slots=True, on_setattr=attr.setters.validate) <NEW_LINE> class Spam: <NEW_LINE> <INDENT> egg0: np.ndarray = attr.ib(validator=validate_shape(1, None, None)) <NEW_LINE> egg1: np.ndarray = attr.ib(validator=validate_shape(("egg0", 2), ("egg2", 1))) <NEW_LINE> egg2: np.ndarray = attr.ib(validato...
Just a silly class for testing validate_shape.
62598ee863b5f9789fe83834
class CommandMarkdownGenerator(MarkdownGenerator): <NEW_LINE> <INDENT> def __init__(self, command): <NEW_LINE> <INDENT> self._command = command <NEW_LINE> command.LoadAllSubElements() <NEW_LINE> self._root_command = command._TopCLIElement() <NEW_LINE> super(CommandMarkdownGenerator, self).__init__( command.GetPath(), c...
Command help markdown document generator. Attributes: _command: The CommandCommon instance for command. _root_command: The root CLI command instance. _subcommands: The dict of subcommand help indexed by subcommand name. _subgroups: The dict of subgroup help indexed by subcommand name.
62598ee899cbb53fe682f588
class Trie(object): <NEW_LINE> <INDENT> def __init__(self, filename=None): <NEW_LINE> <INDENT> if filename is not None: <NEW_LINE> <INDENT> with open(filename) as words_file: <NEW_LINE> <INDENT> self._dict = json.load(words_file) <NEW_LINE> <DEDENT> <DEDENT> else: <NEW_LINE> <INDENT> self._dict = {} <NEW_LINE> <DEDENT>...
Nested dictionaries to store every word in English.
62598ee89c8ee8231303f4c4
class XrcObject(wcodegen.XrcWidgetCodeWriter): <NEW_LINE> <INDENT> def __init__(self, klass=None): <NEW_LINE> <INDENT> wcodegen.XrcWidgetCodeWriter.__init__(self, klass) <NEW_LINE> self.properties = {} <NEW_LINE> self.children = [] <NEW_LINE> <DEDENT> def write_child_prologue(self, child, output, ntabs): <NEW_LINE> <IN...
Class to produce the XRC code for a given widget. This is a base class which does nothing
62598ee81f037a2d8b9e27df
class ScatterBuilder(XYBuilder): <NEW_LINE> <INDENT> default_attributes = {'color': ColorAttr(), 'marker': MarkerAttr()} <NEW_LINE> def yield_renderers(self): <NEW_LINE> <INDENT> for group in self._data.groupby(**self.attributes): <NEW_LINE> <INDENT> glyph = PointGlyph(x=group.get_values(self.x.selection), y=group.get_...
This is the Scatter class and it is in charge of plotting Scatter charts in an easy and intuitive way. Essentially, we provide a way to ingest the data, make the proper calculations and push the references into a source object. We additionally make calculations for the ranges. And finally add the needed glyphs (marker...
62598ee823849d37ff84f78e
class ObjectGroup(object): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.objects = [] <NEW_LINE> self.positions = [] <NEW_LINE> <DEDENT> def add(self, inObject, position): <NEW_LINE> <INDENT> self.objects.append(inObject) <NEW_LINE> self.positions.append(position) <NEW_LINE> <DEDENT> def draw(self, p...
Used to create and manage multiple objects and shapes in space for consistent rotations and draws. Has relative positions for all shapes included
62598ee885dfad0860cbedd3
class ShellItemFileEntryNameFormatterHelper( interface.CustomEventFormatterHelper): <NEW_LINE> <INDENT> IDENTIFIER = 'shell_item_file_entry_name' <NEW_LINE> def FormatEventValues(self, event_values): <NEW_LINE> <INDENT> event_values['file_entry_name'] = event_values.get('long_name', None) <NEW_LINE> if not event_values...
Windows shell item file entry formatter helper.
62598ee84e4d562566370af0
class SWRLVariable(OWLObject): <NEW_LINE> <INDENT> def __init__(self, iri): <NEW_LINE> <INDENT> super().__init__() <NEW_LINE> self.iri = iri <NEW_LINE> self._accept_fn_for_visitor_cls[OWLObjectVisitor] = accept_default <NEW_LINE> self._accept_fn_for_visitor_cls[OWLObjectVisitorEx] = accept_default_ex <NEW_LINE> self._a...
TODO: implement
62598ee856b00c62f0fb0fa7
class DailyResult(object): <NEW_LINE> <INDENT> def __init__(self, symbol, date, closePrice): <NEW_LINE> <INDENT> self.symbol = symbol <NEW_LINE> self.date = date <NEW_LINE> self.closePrice = closePrice <NEW_LINE> self.previousClose = 0 <NEW_LINE> self.tradeList = [] <NEW_LINE> self.tradeCount = 0 <NEW_LINE> self.openPo...
每日交易的结果
62598ee8adb09d7d5dc08c9f
class GcsToSFTPTestHelper(LoggingCommandExecutor): <NEW_LINE> <INDENT> def create_buckets(self): <NEW_LINE> <INDENT> self.execute_cmd(["gsutil", "mb", "gs://{}".format(BUCKET_SRC)]) <NEW_LINE> for bucket_src, object_source in product( ( BUCKET_SRC, "{}/subdir-1".format(BUCKET_SRC), "{}/subdir-2".format(BUCKET_SRC), ), ...
Helper class to perform system tests for the Google Cloud Storage service.
62598ee845492302aabfab85
class FailureWithType(TestFailure): <NEW_LINE> <INDENT> def __init__(self, test_type): <NEW_LINE> <INDENT> TestFailure.__init__(self) <NEW_LINE> self._test_type = test_type <NEW_LINE> <DEDENT> OUT_FILENAMES = [] <NEW_LINE> def output_links(self, filename, out_names): <NEW_LINE> <INDENT> links = [''] <NEW_LINE> uris = [...
Base class that produces standard HTML output based on the test type. Subclasses may commonly choose to override the ResultHtmlOutput, but still use the standard OutputLinks.
62598ee8d7e4931a7ef3a777
class RollbackTablesRequest(AbstractModel): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.ClusterId = None <NEW_LINE> self.SelectedTables = None <NEW_LINE> self.RollbackTime = None <NEW_LINE> self.Mode = None <NEW_LINE> <DEDENT> def _deserialize(self, params): <NEW_LINE> <INDENT> self.ClusterId = par...
RollbackTables请求参数结构体
62598ee8498bea3a75a56208
class FlightInputSet(InputSet): <NEW_LINE> <INDENT> def set_APIKey(self, value): <NEW_LINE> <INDENT> InputSet._set_input(self, 'APIKey', value) <NEW_LINE> <DEDENT> def set_Aircraft(self, value): <NEW_LINE> <INDENT> InputSet._set_input(self, 'Aircraft', value) <NEW_LINE> <DEDENT> def set_Airline(self, value): <NEW_LINE>...
An InputSet with methods appropriate for specifying the inputs to the Flight Choreo. The InputSet object is used to specify input parameters when executing this Choreo.
62598ee891f36d47f223020f
class CommandNotFoundException(CommandException): <NEW_LINE> <INDENT> def __init__(self, message, short='command not found'): <NEW_LINE> <INDENT> super().__init__(message, short)
Exception use when a command does not exist
62598ee816aa5153ce3febd6
class X509Certificates(Model): <NEW_LINE> <INDENT> _attribute_map = { 'primary': {'key': 'primary', 'type': 'X509CertificateWithInfo'}, 'secondary': {'key': 'secondary', 'type': 'X509CertificateWithInfo'}, } <NEW_LINE> def __init__(self, **kwargs): <NEW_LINE> <INDENT> super(X509Certificates, self).__init__(**kwargs) <N...
Primary and secondary certificates. :param primary: :type primary: ~dps.models.X509CertificateWithInfo :param secondary: :type secondary: ~dps.models.X509CertificateWithInfo
62598ee85fdd1c0f98e5c67b
class Variable: <NEW_LINE> <INDENT> def __init__(self, value): <NEW_LINE> <INDENT> self.set(value) <NEW_LINE> <DEDENT> def set(self, value): <NEW_LINE> <INDENT> self.value = value
A simple wrapper to reference an object. The reference may change using the ``set`` method. The reason for this is so that (set! ...) works, even in different environments. Also let's Python's garbage collection do the dirty work for us.
62598ee8e1aae11d1e7cdbab
class TestV1ConfigMapKeySelector(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 testV1ConfigMapKeySelector(self): <NEW_LINE> <INDENT> model = k8sv1.models.v1_config_map_key_selector.V1ConfigMapKey...
V1ConfigMapKeySelector unit test stubs
62598ee8ac7a0e7691f70bf0
class Job(JobMetaClass('JobBase', (object,), {'abstract': True})): <NEW_LINE> <INDENT> abstract = True <NEW_LINE> timeout = None <NEW_LINE> expires = None <NEW_LINE> doc_syntax = 'markdown' <NEW_LINE> can_overlap = True <NEW_LINE> def __call__(self, consumer, *args, **kwargs): <NEW_LINE> <INDENT> raise NotImplementedEr...
The Job class which is used in a distributed task queue. .. attribute:: name The unique name which defines the Job and which can be used to retrieve it from the job registry. This attribute is set to the Job class name in lower case by default, unless a ``name`` class attribute is defined. .. attribute::...
62598ee830dc7b766599df60
class Connect(Task): <NEW_LINE> <INDENT> def __init__(self, address=None, server=None, port=None): <NEW_LINE> <INDENT> super(Connect, self).__init__() <NEW_LINE> if not address and (not server or not port): <NEW_LINE> <INDENT> logging.error("Connect must define an address or (server, port) pair") <NEW_LINE> raise TaskE...
Establishes a TCP connection.
62598ee8b7558d5895461d1d
class BitbucketCloner(object): <NEW_LINE> <INDENT> def __init__(self, site, owner, login, password): <NEW_LINE> <INDENT> self.login = login <NEW_LINE> self.password = password <NEW_LINE> self.site = site <NEW_LINE> self.owner = owner <NEW_LINE> <DEDENT> def _download_path(self, path): <NEW_LINE> <INDENT> return connect...
Class to clone Bitbucket repositories.
62598ee8627d3e7fe0e05561
class CSR(): <NEW_LINE> <INDENT> def __init__(self,ir, d={}, q={}, name='?'): <NEW_LINE> <INDENT> self.ir = ir <NEW_LINE> self.name = name <NEW_LINE> self.lastQ = 0 <NEW_LINE> self.dFields = {} <NEW_LINE> self.qFields = {} <NEW_LINE> def _set_fields(items,fields): <NEW_LINE> <INDENT> for key,bitRange in items: <NEW_LIN...
UJTAG-compatible Command and Status Register
62598ee8a79ad161977686f3
class Document(Binding): <NEW_LINE> <INDENT> def bodycontent(self, method, args, kwargs): <NEW_LINE> <INDENT> wrapped = method.soap.input.body.wrapped <NEW_LINE> if wrapped: <NEW_LINE> <INDENT> pts = self.bodypart_types(method) <NEW_LINE> root = self.document(pts[0]) <NEW_LINE> <DEDENT> else: <NEW_LINE> <INDENT> root =...
The document/literal style. Literal is the only (@use) supported since document/encoded is pretty much dead. Although the SOAP specification supports multiple documents within the SOAP <body/>, it is very uncommon. As such, suds library supports presenting an I{RPC} view of service methods defined with only a single d...
62598ee88c0ade5d55dc29ee
class FirewallPolicyIntrusionDetectionBypassTrafficSpecifications(msrest.serialization.Model): <NEW_LINE> <INDENT> _attribute_map = { 'name': {'key': 'name', 'type': 'str'}, 'description': {'key': 'description', 'type': 'str'}, 'protocol': {'key': 'protocol', 'type': 'str'}, 'source_addresses': {'key': 'sourceAddresses...
Intrusion detection bypass traffic specification. :param name: Name of the bypass traffic rule. :type name: str :param description: Description of the bypass traffic rule. :type description: str :param protocol: The rule bypass protocol. Possible values include: "TCP", "UDP", "ICMP", "ANY". :type protocol: str or ~a...
62598ee8cc0a2c11144796dc
class ITSMetrics(Metrics): <NEW_LINE> <INDENT> ds = ITS
This class is the root one for all ITS metrics
62598ee83317a56b869bd8d2
class RecurrencePlots(BaseEstimator): <NEW_LINE> <INDENT> def __init__(self, dimension=1, epsilon=None, percentage=10): <NEW_LINE> <INDENT> self.dimension = dimension <NEW_LINE> self.epsilon = epsilon <NEW_LINE> self.percentage = percentage <NEW_LINE> <DEDENT> def fit(self, X, y=None): <NEW_LINE> <INDENT> pass <NEW_LIN...
Recurrence plots. Parameters ---------- dimension : int (default = 1) dimension of the trajectory. epsilon : None or 'percentage_points' or 'percentage_distance' or float (default = None) threshold for the minimum distance percentage : float (default = 10) percentage of black points if epsilon == 'percen...
62598ee81f5feb6acb16132a
class RandomApply(torch_tr.transforms.RandomTransforms): <NEW_LINE> <INDENT> def __init__(self, transforms, p=0.5): <NEW_LINE> <INDENT> super(RandomApply, self).__init__(transforms) <NEW_LINE> self.p = p <NEW_LINE> <DEDENT> def __call__(self, img,mask,mode): <NEW_LINE> <INDENT> if self.p < random.random(): <NEW_LINE> <...
Apply randomly a list of transformations with a given probability Args: transforms (list or tuple): list of transformations p (float): probability
62598ee8435de62698e9a4ae
class DepthMiddleware(depth.DepthMiddleware): <NEW_LINE> <INDENT> def process_spider_output(self, response, result, spider): <NEW_LINE> <INDENT> check_depth = [] <NEW_LINE> for req in result or []: <NEW_LINE> <INDENT> if isinstance(req, Request) and has_extension(req, 'js'): <NEW_LINE> <INDENT> yield req <NEW_LINE> <DE...
A depth middleware that exempts JS files.
62598ee8435de62698e9a4af
class TfIdfer: <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.stopwords = stopwords.words('english') <NEW_LINE> more_stops = ['method','methods','apparatus','invention','system','device', 'thereof', 'one', 'present', 'least', 'also', 'may', 'wherein', 'use','used', 'useful', 'first', 'second', 'two', ...
Build tf-ifd features for a given dataframe
62598ee830bbd7224646830c
class Memory(object): <NEW_LINE> <INDENT> def __init__(self, size=SIZE): <NEW_LINE> <INDENT> self.mem_list = [None] * size <NEW_LINE> self.size = size <NEW_LINE> <DEDENT> def read(self, addr): <NEW_LINE> <INDENT> value = self.mem_list[addr.num] <NEW_LINE> if value is None: <NEW_LINE> <INDENT> value = Value(0) <NEW_LINE...
Computer memory with a given number of addresses.
62598ee8d58c6744b42db622
class RouteFilter(Resource): <NEW_LINE> <INDENT> _validation = { 'name': {'readonly': True}, 'type': {'readonly': True}, 'provisioning_state': {'readonly': True}, 'etag': {'readonly': True}, } <NEW_LINE> _attribute_map = { 'id': {'key': 'id', 'type': 'str'}, 'name': {'key': 'name', 'type': 'str'}, 'type': {'key': 'type...
Route Filter Resource. Variables are only populated by the server, and will be ignored when sending a request. :param id: Resource ID. :type id: str :ivar name: Resource name. :vartype name: str :ivar type: Resource type. :vartype type: str :param location: Resource location. :type location: str :param tags: Resource...
62598ee885dfad0860cbedd4
class RunnerContainerService(object): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self._status = None <NEW_LINE> self._result = None <NEW_LINE> self._payload = {} <NEW_LINE> <DEDENT> def report_payload(self, name, value): <NEW_LINE> <INDENT> self._payload[name] = value <NEW_LINE> <DEDENT> def get_logger...
The RunnerContainerService class implements the interface that ActionRunner implementations use to access services provided by the Action Runner Container.
62598ee8925a0f43d25e6707
class RequestEffectTests(SynchronousTestCase): <NEW_LINE> <INDENT> def test_perform(self): <NEW_LINE> <INDENT> req = ('GET', 'http://google.com/', None, None, None, {'log': None}) <NEW_LINE> response = StubResponse(200, {}) <NEW_LINE> treq = StubTreq(reqs=[(req, response)], contents=[(response, "content")]) <NEW_LINE> ...
Tests for the effects of pure_http.Request.
62598ee8e76e3b2f99fd7110
class S3SyncDataArchive(object): <NEW_LINE> <INDENT> def __init__(self, fileobj=None, compressed=True): <NEW_LINE> <INDENT> import zipfile <NEW_LINE> if compressed: <NEW_LINE> <INDENT> compression = zipfile.ZIP_DEFLATED <NEW_LINE> <DEDENT> else: <NEW_LINE> <INDENT> compression = zipfile.ZIP_STORED <NEW_LINE> <DEDENT> i...
Simple abstraction layer for (compressed) data archives, currently based on zipfile (Python standard library). Compression additionally requires zlib to be installed (both for write and read).
62598ee88e7ae83300ee7768
class TestPhysicalProperty(unittest.TestCase): <NEW_LINE> <INDENT> def setUp(self): <NEW_LINE> <INDENT> self.error=array([2. for ignore in range(100)], dtype=float32) <NEW_LINE> self.values=arange(1., 101., 1.0, dtype=float32) <NEW_LINE> self.data=PhysicalProperty('x', '°', self.values, self.error) <NEW_LINE> <DEDENT> ...
Check the behavior of the base data holding array type.
62598ee891f36d47f2230210
class YapfLinter(base.LinterBase): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> super(YapfLinter, self).__init__("yapf", "yapf 0.21.0") <NEW_LINE> <DEDENT> def get_lint_version_cmd_args(self): <NEW_LINE> <INDENT> return ["--version"] <NEW_LINE> <DEDENT> def needs_file_diff(self): <NEW_LINE> <INDENT> retu...
Yapf linter.
62598ee8e1aae11d1e7cdbac
class AttributeDict(dict): <NEW_LINE> <INDENT> def __getattr__(self, name): <NEW_LINE> <INDENT> return self[name] <NEW_LINE> <DEDENT> def __setattr__(self, name, value): <NEW_LINE> <INDENT> self[name] = value <NEW_LINE> <DEDENT> def __delattr__(self, name): <NEW_LINE> <INDENT> del self[name]
A dictionary that allows you to acces entries like you would attributes in an object.
62598ee8f7d966606f7466cb
class MopadTestCase(unittest.TestCase): <NEW_LINE> <INDENT> def setUp(self): <NEW_LINE> <INDENT> self.path = os.path.join(os.path.dirname(__file__), 'images') <NEW_LINE> <DEDENT> def test_collection(self): <NEW_LINE> <INDENT> mt = [[0.91, -0.89, -0.02, 1.78, -1.55, 0.47], [274, 13, 55], [130, 79, 98], [264.98, 45.00, -...
Test cases for mopad.
62598ee8796e427e5384ce72
class LuisError(Exception): <NEW_LINE> <INDENT> pass
An error during language understanding with LUIS
62598ee86aa9bd52df0d358b
class WheelInstaller(NoopInstaller): <NEW_LINE> <INDENT> def __init__(self, requirement, sources, paths): <NEW_LINE> <INDENT> self.ireq = requirement.as_ireq() <NEW_LINE> self.sources = filter_sources(requirement, sources) <NEW_LINE> self.hashes = requirement.hashes or None <NEW_LINE> self.paths = paths <NEW_LINE> self...
Installer by building a wheel. The wheel is built during `prepare()`, and installed in `install()`.
62598ee88e71fb1e983ba146
class AuthorProfile(models.Model): <NEW_LINE> <INDENT> user = models.OneToOneField(User) <NEW_LINE> instagram = models.CharField(null=True, blank=True, max_length=255) <NEW_LINE> picture = models.ImageField(upload_to='user_pics', null=True, blank=True) <NEW_LINE> short_description = models.CharField(max_length=255, nul...
Description: Model Description
62598ee8435de62698e9a4b1
class CadenceConverter(tinyNotation.Converter): <NEW_LINE> <INDENT> def __init__(self, stringRep=""): <NEW_LINE> <INDENT> super(CadenceConverter, self).__init__(stringRep) <NEW_LINE> self.tokenMap = [ (r'(\d+\/\d+)', tinyNotation.TimeSignatureToken), (r'r(\S*)', CadenceRestToken), (r'(\S*)', CadenceNoteToken), ]
Subclass of Tiny Notation that calls these tokens instead of the defaults >>> dLucaGloriaIncipit = trecento.trecentoCadence.CadenceConverter("6/8 c'2. d'8 c'4 a8 f4 f8 a4 c'4 c'8").parse().stream >>> dLucaGloriaIncipit.rightBarline = 'final' >>> dLucaGloriaIncipit.elements (<music21.stream.Measure 1 offset=0.0>, ...
62598ee82eb69b55b15a06f7
class Mute(db.DatabaseObject): <NEW_LINE> <INDENT> __tablename__ = 'mutes' <NEW_LINE> id = db.Column(db.BigInteger, primary_key=True) <NEW_LINE> guild = db.Column(db.BigInteger, primary_key=True) <NEW_LINE> past_participle = "muted" <NEW_LINE> finished_callback = Moderation._unmute <NEW_LINE> type = 1
Provides a DB config to track mutes.
62598ee857b8e32f52507472
class EditChatPhoto(TLObject): <NEW_LINE> <INDENT> __slots__: List[str] = ["chat_id", "photo"] <NEW_LINE> ID = 0xca4c79d8 <NEW_LINE> QUALNAME = "functions.messages.EditChatPhoto" <NEW_LINE> def __init__(self, *, chat_id: int, photo: "raw.base.InputChatPhoto") -> None: <NEW_LINE> <INDENT> self.chat_id = chat_id <NEW_LIN...
Telegram API method. Details: - Layer: ``122`` - ID: ``0xca4c79d8`` Parameters: chat_id: ``int`` ``32-bit`` photo: :obj:`InputChatPhoto <pyrogram.raw.base.InputChatPhoto>` Returns: :obj:`Updates <pyrogram.raw.base.Updates>`
62598ee830bbd7224646830e
class Item: <NEW_LINE> <INDENT> def __init__(self, feed_name: str, uri: str, title: str = '', description: str = '', article: str = None): <NEW_LINE> <INDENT> self.feed_name = feed_name <NEW_LINE> self.uri = uri <NEW_LINE> self.title = title <NEW_LINE> self.description = description <NEW_LINE> self.article = article <N...
An RSS item
62598ee856ac1b37e63008c7
class InSkillProductTransactionsResponse(object): <NEW_LINE> <INDENT> deserialized_types = { 'results': 'list[ask_sdk_model.services.monetization.transactions.Transactions]', 'metadata': 'ask_sdk_model.services.monetization.metadata.Metadata' } <NEW_LINE> attribute_map = { 'results': 'results', 'metadata': 'metadata' }...
:param results: List of transactions of in skill products purchases :type results: (optional) list[ask_sdk_model.services.monetization.transactions.Transactions] :param metadata: :type metadata: (optional) ask_sdk_model.services.monetization.metadata.Metadata
62598ee823849d37ff84f792
@attr('UNIT', group='mi') <NEW_LINE> class TestUtil(MiUnitTest): <NEW_LINE> <INDENT> def test_dict_equal(self): <NEW_LINE> <INDENT> a='a' <NEW_LINE> b='b' <NEW_LINE> self.assertTrue(dict_equal({}, {})) <NEW_LINE> self.assertTrue(dict_equal({a:1}, {a:1})) <NEW_LINE> self.assertTrue(dict_equal({a:1, b:2}, {a:1, b:2})) <N...
Test the util functions
62598ee866656f66f7d58abb
class Abattoir(object): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.length = 16 <NEW_LINE> self.width = 4 <NEW_LINE> self.list_cattle = [] <NEW_LINE> <DEDENT> def move_cattle(self, inCattle): <NEW_LINE> <INDENT> loc = N.array([inCattle.loc_in_environ[0], inCattle.loc_in_environ[1]]) <NEW_LINE> step...
Create and manage a abattoir. As cattle location information is stored in a Cattle object, the purpose of the environment objects is to keep track of possible spatial locations.
62598ee8fff4ab517ebcbeb2
class GITComments(models.Model): <NEW_LINE> <INDENT> git_comment_id = models.IntegerField() <NEW_LINE> comment_message = models.CharField(max_length = 500) <NEW_LINE> comment_url = models.CharField(max_length=500) <NEW_LINE> commented_by = models.ForeignKey(User, max_length = 500 ,null = True, blank = True) <NEW_LINE> ...
Description: This class is for comments or reviews of github's reposities
62598ee80c0af96317c54a78
class DoExcel: <NEW_LINE> <INDENT> def __init__(self,file_name,sheet_name): <NEW_LINE> <INDENT> self.file_name=file_name <NEW_LINE> self.sheet_name = sheet_name <NEW_LINE> <DEDENT> def read_data(self): <NEW_LINE> <INDENT> wb = load_workbook(self.file_name) <NEW_LINE> sheet = wb[self.sheet_name] <NEW_LINE> test_data = [...
该类完成测试数据的读取以及测试结果的写回
62598ee84c342835776189be
class Curriculum_Phase2_Graph(TwoModel_ConvNet_Graph): <NEW_LINE> <INDENT> def _load_fc_towers(self): <NEW_LINE> <INDENT> self.dlupi_model.load_state_dict(torch.load(self.opt.curric_phase_1_model_fpath)['state']) <NEW_LINE> return self.dlupi_model <NEW_LINE> <DEDENT> def _get_learnable_params(self): <NEW_LINE> <INDENT>...
Either learn the with x tower via fine tuning (by freezing x* tower). Choose suitable fine tuning learning rate. UPDATE ONLY X TOWER. after those learned do not touch x * Assume already optimal dropout params.ignore issue of shared conv parameters Only updating x tower's fc layers.
62598ee8236d856c2adc8782
class ColumnType(IntEnum): <NEW_LINE> <INDENT> FULL_NAME = 0 <NEW_LINE> EMAIL = 2 <NEW_LINE> PHONE_NUMBER = 4 <NEW_LINE> INTEGER = 7 <NEW_LINE> DATE = 9 <NEW_LINE> def __str__(self) -> str: <NEW_LINE> <INDENT> return self.name.capitalize() <NEW_LINE> <DEDENT> def describe(self) -> Tuple: <NEW_LINE> <INDENT> return self...
Allowed column types.
62598ee83d592f4c4edb95d1
@dataclass <NEW_LINE> class OldFrenchLemmatizationProcess(LemmatizationProcess): <NEW_LINE> <INDENT> description = "Lemmatization process for Old French" <NEW_LINE> @cachedproperty <NEW_LINE> def algorithm(self): <NEW_LINE> <INDENT> return OldFrenchDictionaryLemmatizer()
The default Old French lemmatization algorithm. >>> from cltk.core.data_types import Process, Pipeline >>> from cltk.tokenizers import MultilingualTokenizationProcess >>> from cltk.languages.utils import get_lang >>> from cltk.languages.example_texts import get_example_text >>> from cltk.nlp import NLP >>> pipe = Pipe...
62598ee856b00c62f0fb0fab
@python_2_unicode_compatible <NEW_LINE> class NotRegistered(KeyError, CeleryError): <NEW_LINE> <INDENT> def __repr__(self): <NEW_LINE> <INDENT> return UNREGISTERED_FMT.format(self)
The task ain't registered.
62598ee84a966d76dd5ed5bf
class SpecificityAdjustment(object): <NEW_LINE> <INDENT> def __init__(self, selector, selector_list): <NEW_LINE> <INDENT> self.selector = selector <NEW_LINE> self.selector_list = selector_list <NEW_LINE> <DEDENT> def __repr__(self): <NEW_LINE> <INDENT> return "%s[%r:where(%s)]" % ( self.__class__.__name__, self.selecto...
Represents selector:where(selector_list) Same as selector:is(selector_list), but its specificity is always 0
62598ee86fb2d068a7693192
class CallbackOperation(CallbackOperationBase): <NEW_LINE> <INDENT> def __init__(self, method, signature, descriptor): <NEW_LINE> <INDENT> self.ensureASCIIName(method) <NEW_LINE> jsName = method.identifier.name <NEW_LINE> CallbackOperationBase.__init__(self, signature, jsName, MakeNativeName(descriptor.binaryNameFor(js...
Codegen actual WebIDL operations on callback interfaces.
62598ee8f548e778e5969c66
class Reset(BaseInput): <NEW_LINE> <INDENT> input_type = 'reset' <NEW_LINE> field_classes = 'reset resetButton'
Used to create a Hidden input descriptor for the uni_form template tag. reset = Reset('Reset This Form', 'Revert Me!') Note: The first argument is also slugified and turned into the id for the reset.
62598ee867a9b606de5446aa
class Field(object): <NEW_LINE> <INDENT> __slots__ = [ "_lo", "_hi", "_value", "_tag", "_name" ] <NEW_LINE> def __init__(self, lo, hi, value, tag=SUPPORTED_TAGS.ROUTING, name=None): <NEW_LINE> <INDENT> self._lo = lo <NEW_LINE> self._hi = hi <NEW_LINE> self._value = value <NEW_LINE> self._tag = tag <NEW_LINE> if name is...
Field object used in a field constraint for key allocation
62598ee82c8b7c6e89bd1e9c
class TCPListener(AbstractModel): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.ListenerId = None <NEW_LINE> self.ListenerName = None <NEW_LINE> self.Port = None <NEW_LINE> self.RealServerPort = None <NEW_LINE> self.RealServerType = None <NEW_LINE> self.Protocol = None <NEW_LINE> self.ListenerStatus ...
TCP类型监听器信息
62598ee899cbb53fe682f58d
class KeyQueryAPI(APIView): <NEW_LINE> <INDENT> def get(self, request): <NEW_LINE> <INDENT> keyword = check_and_get_str(request.query_params, 'key_word') <NEW_LINE> dishes = DishQueryFunctionSet.keyword(request.user, keyword) <NEW_LINE> serializer = DishWithLikeSerializer(dishes, many=True) <NEW_LINE> try: <NEW_LINE> <...
通过关键词查询菜品
62598ee8e1aae11d1e7cdbad
@override_settings(PREVIEW_MODE=True) <NEW_LINE> class PracticeAreaAdminViewTests(TestCase): <NEW_LINE> <INDENT> @classmethod <NEW_LINE> def setUpTestData(cls): <NEW_LINE> <INDENT> from django.core import management <NEW_LINE> management.call_command("installwatson") <NEW_LINE> <DEDENT> def setUp(self): <NEW_LINE> <IND...
Tests using preview mode.
62598ee8090684286d592a4e
class EnsoWavelet(OceanDiagnosticPlot): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> super(EnsoWavelet, self).__init__() <NEW_LINE> self._expectedPlots = ['ENSO.nino3.analysis', 'ENSO.nino3.4.analysis'] <NEW_LINE> self._webPlotsDict = {'Nino3':'ENSO.nino3.analysis', 'Nino3.4':'ENSO.nino3.4.analysis'} <NE...
Detailed description of the plot that will show up in help documentation
62598ee830dc7b766599df64
class DateAndTime(object): <NEW_LINE> <INDENT> __metaclass__ = Singleton <NEW_LINE> def __init__(self): <NEW_LINE> <INDENT> self.tz = pytz.timezone( Config().get('options', 'timezone') ) <NEW_LINE> <DEDENT> def duration_since_epoch(self, dt): <NEW_LINE> <INDENT> return (dt.astimezone(pytz.UTC) - datetime.datetime(1970,...
Singleton date and time functions. Mostly utility functions. All the timezone and datetime functionality is localized here.
62598ee8851cf427c66b69ad
class InvenioOpenIDConnect(object): <NEW_LINE> <INDENT> def __init__(self, app=None): <NEW_LINE> <INDENT> if app: <NEW_LINE> <INDENT> self.init_app(app) <NEW_LINE> <DEDENT> <DEDENT> def init_app(self, app): <NEW_LINE> <INDENT> app.extensions['oarepo-openid-connect'] = self
Invenio OpenID Connect extension.
62598ee8fff4ab517ebcbeb3
class GetFeedDocumentResponse(__BaseDictObject): <NEW_LINE> <INDENT> def __init__(self, data): <NEW_LINE> <INDENT> super().__init__(data) <NEW_LINE> if "payload" in data: <NEW_LINE> <INDENT> self.payload: FeedDocument = self._get_value(FeedDocument, "payload") <NEW_LINE> <DEDENT> else: <NEW_LINE> <INDENT> self.payload:...
Response schema.
62598ee807f4c71912badb31