code
stringlengths
4
4.48k
docstring
stringlengths
1
6.45k
_id
stringlengths
24
24
class RecordThread(threading.Thread): <NEW_LINE> <INDENT> def __init__(self, base_filename, piece_len=10, spacing=5): <NEW_LINE> <INDENT> threading.Thread.__init__(self) <NEW_LINE> self.stop_request = threading.Event() <NEW_LINE> self.frames = [] <NEW_LINE> self.audio = pyaudio.PyAudio() <NEW_LINE> self.chunks_per_writ...
Used in :func:`gen_many_tests` to record audio. See :func:`gen_many_tests` for more details on this thread.
62598ef84a966d76dd5ed7bf
class external_field_composite(_external): <NEW_LINE> <INDENT> def __init__(self, mc, fields = None): <NEW_LINE> <INDENT> _external.__init__(self); <NEW_LINE> cls = None; <NEW_LINE> if not hoomd.context.exec_conf.isCUDAEnabled(): <NEW_LINE> <INDENT> if isinstance(mc, integrate.sphere): <NEW_LINE> <INDENT> cls = _hpmc.E...
Manage multiple external fields. Args: mc (:py:mod:`hoomd.hpmc.integrate`): MC integrator (don't specify a new integrator later, external_field_composite will continue to use the old one) fields (list): List of external fields to combine together. :py:class:`external_field_composite` allows the user to create...
62598ef8f548e778e5969e72
class V1beta1LocalSubjectAccessReview(object): <NEW_LINE> <INDENT> swagger_types = { 'api_version': 'str', 'kind': 'str', 'metadata': 'V1ObjectMeta', 'spec': 'V1beta1SubjectAccessReviewSpec', 'status': 'V1beta1SubjectAccessReviewStatus' } <NEW_LINE> attribute_map = { 'api_version': 'apiVersion', 'kind': 'kind', 'metada...
NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.
62598ef867a9b606de5448b5
@total_ordering <NEW_LINE> class Vertex(object): <NEW_LINE> <INDENT> def __init__(self, label=''): <NEW_LINE> <INDENT> self.label = label <NEW_LINE> <DEDENT> def __repr__(self): <NEW_LINE> <INDENT> return '%s(%s)' % (self.__class__.__name__, repr(self.label)) <NEW_LINE> <DEDENT> __str__ = __repr__ <NEW_LINE> def __lt__...
A node in a graph.
62598ef8d486a94d0ba2a8af
class LogLevelCounterHandler(logging.Handler): <NEW_LINE> <INDENT> def __init__(self, count_dict, *args, **kwargs): <NEW_LINE> <INDENT> super().__init__(*args, **kwargs) <NEW_LINE> self.levelcount = count_dict <NEW_LINE> <DEDENT> def emit(self, record): <NEW_LINE> <INDENT> if record.levelno < PROGRESS: <NEW_LINE> <INDE...
Handler that counts the number of log messages per log level.
62598ef810dbd63aa1c6f462
class DI_FreeGas(DynamicInfo): <NEW_LINE> <INDENT> pass
Class indicating atoms for which inelastic neutron scattering should be modelled as scattering on a free gas.
62598ef821bff66bcd72153c
class QMLApp(QObject): <NEW_LINE> <INDENT> def __init__(self, *args, **kwargs): <NEW_LINE> <INDENT> super().__init__(*args, **kwargs) <NEW_LINE> self.app = QApplication(sys.argv) <NEW_LINE> self.qml_engine = QQmlApplicationEngine() <NEW_LINE> self.qml_engine.rootContext().setContextProperty("pyappview", self) <NEW_LINE...
QMLAppView ---------- Class responsible to run QML App
62598ef871ff763f4b5e6046
class SQLTableMetaClass(records.SQLRecordMetaClass): <NEW_LINE> <INDENT> def __new__(mcs, name, bases, namespace, table_name=None, version=None, schema=None, **kwds): <NEW_LINE> <INDENT> mcs.prepare_sqlrecord_namespace(mcs, namespace, INVALID_SQLTABLE_NAMES) <NEW_LINE> mcs.prepare_sqltable_namespace(mcs, namespace) <NE...
This is a metaclass that automatically identifies the SQLField and SQLConstraint member attributes added to new subclasses and creates additional private attributes to help order and access them.
62598ef8097d151d1a2bf90a
class SecureValueTypeBankStatement(TLObject): <NEW_LINE> <INDENT> __slots__ = [] <NEW_LINE> ID = 0x89137c0d <NEW_LINE> QUALNAME = "types.SecureValueTypeBankStatement" <NEW_LINE> def __init__(self, ): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> @staticmethod <NEW_LINE> def read(b: BytesIO, *args) -> "SecureValueTypeBan...
Attributes: LAYER: ``112`` Attributes: ID: ``0x89137c0d`` No parameters required.
62598ef8d268445f26639002
class AdaptiveInputNormEEGNet(DN3EEGNet): <NEW_LINE> <INDENT> def __init__(self, feat_dim: int, start_gate_iter: int, targets, samples, channels, do=0.25, pooling=8, F1=8, D=2, t_len=65, F2=16, return_features=False) -> None: <NEW_LINE> <INDENT> print("Init AdaptiveInputNormEEGNet") <NEW_LINE> super(AdaptiveInputNormEE...
EEGNet with a layer of learned normalization.
62598ef8adb09d7d5dc08ea4
class ReceiptPrinter: <NEW_LINE> <INDENT> def __init__(self) -> None: <NEW_LINE> <INDENT> self.__writer: TextIO = open("receipt.txt", "a") <NEW_LINE> self.__started: bool = False <NEW_LINE> <DEDENT> def start_receipt(self) -> None: <NEW_LINE> <INDENT> if self.__started: <NEW_LINE> <INDENT> raise RuntimeError("Receipt a...
Class to print a receipt.
62598ef83d592f4c4edb97d4
class MatchVariable(msrest.serialization.Model): <NEW_LINE> <INDENT> _validation = { 'variable_name': {'required': True}, } <NEW_LINE> _attribute_map = { 'variable_name': {'key': 'variableName', 'type': 'str'}, 'selector': {'key': 'selector', 'type': 'str'}, } <NEW_LINE> def __init__( self, **kwargs ): <NEW_LINE> <INDE...
Define match variables. All required parameters must be populated in order to send to Azure. :param variable_name: Required. Match Variable. Possible values include: "RemoteAddr", "RequestMethod", "QueryString", "PostArgs", "RequestUri", "RequestHeaders", "RequestBody", "RequestCookies". :type variable_name: str or...
62598ef87c178a314d78bd7f
class Fun(commands.Cog): <NEW_LINE> <INDENT> def __init__(self, client: commands.Bot): <NEW_LINE> <INDENT> self.client = client <NEW_LINE> <DEDENT> async def cog_check(self, ctx): <NEW_LINE> <INDENT> if str(datetime.date.today().month) == "4": <NEW_LINE> <INDENT> print("Date works") <NEW_LINE> if str(datetime.date.toda...
Fun commands
62598ef87cff6e4e811b42c8
class RobustCrossEntropyLoss(nn.CrossEntropyLoss): <NEW_LINE> <INDENT> def forward(self, input: Tensor, target: Tensor) -> Tensor: <NEW_LINE> <INDENT> if len(target.shape) == len(input.shape): <NEW_LINE> <INDENT> assert target.shape[1] == 1 <NEW_LINE> target = target[:, 0] <NEW_LINE> <DEDENT> return super().forward(inp...
this is just a compatibility layer because my target tensor is float and has an extra dimension
62598ef855399d3f05624e0d
class MatchCondition(msrest.serialization.Model): <NEW_LINE> <INDENT> _validation = { 'match_variables': {'required': True}, 'operator': {'required': True}, 'match_values': {'required': True}, } <NEW_LINE> _attribute_map = { 'match_variables': {'key': 'matchVariables', 'type': '[MatchVariable]'}, 'operator': {'key': 'o...
Define match conditions. All required parameters must be populated in order to send to Azure. :param match_variables: Required. List of match variables. :type match_variables: list[~azure.mgmt.network.v2020_06_01.models.MatchVariable] :param operator: Required. The operator to be matched. Possible values include: "IP...
62598ef863d6d428bbee10b5
class StateMatchTest(integration.ModuleCase): <NEW_LINE> <INDENT> def test_issue_2167_exsel_no_AttributeError(self): <NEW_LINE> <INDENT> ret = self.run_function('state.top', ['issue-2167-exsel-match.sls']) <NEW_LINE> self.assertNotIn( 'AttributeError: \'Matcher\' object has no ' 'attribute \'functions\'', ret ) <NEW_LI...
Validate the file state
62598ef83d592f4c4edb97d5
class ExpectimaxAgent(MultiAgentSearchAgent): <NEW_LINE> <INDENT> def getAction(self, gameState): <NEW_LINE> <INDENT> ghostNum = gameState.getNumAgents()-1 <NEW_LINE> def stop(state,depth): <NEW_LINE> <INDENT> return state.isWin() or state.isLose() or depth==self.depth <NEW_LINE> <DEDENT> def maxAgent(state,depth): <NE...
Your expectimax agent (question 4)
62598ef826068e7796d4b240
class LearningAgent(Agent): <NEW_LINE> <INDENT> def __init__(self, env, learning=False, epsilon=1.0, alpha=0.5): <NEW_LINE> <INDENT> super(LearningAgent, self).__init__(env) <NEW_LINE> self.planner = RoutePlanner(self.env, self) <NEW_LINE> self.valid_actions = self.env.valid_actions <NEW_LINE> self.learning = learning ...
An agent that learns to drive in the Smartcab world. This is the object you will be modifying.
62598ef8aad79263cf42d0f5
class CategoryViewSet(CustomPermissionMixin, viewsets.ModelViewSet): <NEW_LINE> <INDENT> queryset = Category.objects.all() <NEW_LINE> serializer_class = CategorySerializer
Processes requests for data retrieval by categories
62598ef8e1aae11d1e7cdcb5
class Record(dict): <NEW_LINE> <INDENT> def __getattr__(self, name): <NEW_LINE> <INDENT> return self[name] <NEW_LINE> <DEDENT> def __str__(self): <NEW_LINE> <INDENT> return str(self.__dict__)
Convenience class to access dict by . operator.
62598ef830bbd7224646851c
class MemberNotInVoiceChannel(BaseError): <NEW_LINE> <INDENT> def __init__(self, message): <NEW_LINE> <INDENT> super(MemberNotInVoiceChannel, self).__init__(message)
Raised when issuing a command requiring being in a voice channel
62598ef89c8ee8231303f5cf
class Solution: <NEW_LINE> <INDENT> def sortedListToBST(self, head: ListNode) -> TreeNode: <NEW_LINE> <INDENT> def convert_to_list(head): <NEW_LINE> <INDENT> res = [] <NEW_LINE> while head: <NEW_LINE> <INDENT> res.append(head.val) <NEW_LINE> head = head.next <NEW_LINE> <DEDENT> return res <NEW_LINE> <DEDENT> ls = conve...
1. find the medium node each time smaller part be the left node and larger part is right node O(nlogn) O(logn) 2. trade off space for time convert to list and build the bst O(n) O(n)
62598ef866673b3332c2ec96
class Critter(object): <NEW_LINE> <INDENT> total = 0 <NEW_LINE> @staticmethod <NEW_LINE> def status(): <NEW_LINE> <INDENT> print('the total number of critters is', Critter.total) <NEW_LINE> <DEDENT> def __init__(self, name, hunger, boredom, mood): <NEW_LINE> <INDENT> print('a new critter has been born') <NEW_LINE> self...
A virtual Pet
62598ef8460517430c430d6f
class creategameisocam(bpy.types.Operator): <NEW_LINE> <INDENT> bl_idname = "scene.create_gameisocam" <NEW_LINE> bl_label = "GameIsocam" <NEW_LINE> bl_options = {'REGISTER', 'UNDO'} <NEW_LINE> def execute(self, context): <NEW_LINE> <INDENT> bpy.ops.object.camera_add(location=(30.60861, -30.60861, 25.00000)) <NEW_LINE> ...
Creates a camera with isometric view for game needs
62598ef844b2445a339b5de1
class FinderTests(metaclass=abc.ABCMeta): <NEW_LINE> <INDENT> @abc.abstractmethod <NEW_LINE> def test_module(self): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> @abc.abstractmethod <NEW_LINE> def test_package(self): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> @abc.abstractmethod <NEW_LINE> def test_module_in_package(s...
Basic tests for a finder to pass.
62598ef832920d7e50bc4916
class _AsyncRunner(AsynchronousDeferredRunTestForBrokenTwisted): <NEW_LINE> <INDENT> def _get_log_fixture(self): <NEW_LINE> <INDENT> return _SplitEliotLogs() <NEW_LINE> <DEDENT> def _run_core(self): <NEW_LINE> <INDENT> log.msg("--> Begin: %s <--" % (self.case.id())) <NEW_LINE> super(_AsyncRunner, self)._run_core()
Runner for asynchronous tests. Extends base functionality to correctly capture logs for failed tests.
62598ef8fff4ab517ebcc0b9
class SquareButterfly(Primitive): <NEW_LINE> <INDENT> def __init__(self, position, side, **kwargs): <NEW_LINE> <INDENT> super(SquareButterfly, self).__init__(**kwargs) <NEW_LINE> validate_coordinates(position) <NEW_LINE> self.position = position <NEW_LINE> self.side = side <NEW_LINE> self._to_convert = ['position', 'si...
A square with two diagonally-opposite quadrants removed
62598ef8097d151d1a2bf90c
class DiscussionTabSingleThreadTest(UniqueCourseTest, DiscussionResponsePaginationTestMixin): <NEW_LINE> <INDENT> def setUp(self): <NEW_LINE> <INDENT> super(DiscussionTabSingleThreadTest, self).setUp() <NEW_LINE> self.discussion_id = "test_discussion_{}".format(uuid4().hex) <NEW_LINE> CourseFixture(**self.course_info)....
Tests for the discussion page displaying a single thread
62598ef8d486a94d0ba2a8b1
class Student(Person): <NEW_LINE> <INDENT> def __init__(self, name, ssn, address, courses_grades=None): <NEW_LINE> <INDENT> if courses_grades is None: <NEW_LINE> <INDENT> courses_grades = [] <NEW_LINE> <DEDENT> super(Student, self).__init__(name, ssn, address) <NEW_LINE> self.courses_grades = courses_grades <NEW_LINE> ...
Class for student
62598ef8a219f33f346c5116
class WorkerThread(threading.Thread): <NEW_LINE> <INDENT> def __init__(self, channel_layer, logger): <NEW_LINE> <INDENT> super(WorkerThread, self).__init__() <NEW_LINE> self.channel_layer = channel_layer <NEW_LINE> self.logger = logger <NEW_LINE> <DEDENT> def run(self): <NEW_LINE> <INDENT> self.logger.debug("Worker thr...
Class that runs a worker
62598ef84f88993c371ef95f
class UserLikesTuit(models.Model): <NEW_LINE> <INDENT> user = models.ForeignKey(User, blank=False, null=False) <NEW_LINE> tuit = models.ForeignKey(Tuit, blank=False, null=False) <NEW_LINE> like_date = models.DateTimeField(auto_now_add=True) <NEW_LINE> def __str__(self): <NEW_LINE> <INDENT> return "{user} liked tuit {me...
Model for user likes tuit.
62598ef9e5267d203ee6a1ed
class SKPostalCodeField(RegexField): <NEW_LINE> <INDENT> default_error_messages = { 'invalid': _('Enter a postal code in the format XXXXX or XXX XX.'), } <NEW_LINE> def __init__(self, **kwargs): <NEW_LINE> <INDENT> super().__init__(r'^\d{5}$|^\d{3} \d{2}$', **kwargs) <NEW_LINE> <DEDENT> def clean(self, value): <NEW_LIN...
A form field that validates its input as Slovak postal code. Valid form is XXXXX or XXX XX, where X represents integer.
62598ef966656f66f7d58ccd
class TCPKeepaliveGarbage(BoolOption): <NEW_LINE> <INDENT> code = 39 <NEW_LINE> key = "tcp_keepalive_garbage"
Option 39 Specifies the whether or not the client should send TCP keepalive messages with a octet of garbage for compatibility with older implementations. Option value defined as: {"tcp_keepalive_garbage": True}
62598ef932920d7e50bc4917
class Calibrator(object): <NEW_LINE> <INDENT> def __init__(self, model_content): <NEW_LINE> <INDENT> if not model_content: <NEW_LINE> <INDENT> raise ValueError("`model_content` must be specified.") <NEW_LINE> <DEDENT> try: <NEW_LINE> <INDENT> self._calibrator = (_calibration_wrapper.CalibrationWrapper .CreateWrapperCPP...
Calibrates a floating point model and then quantizes it. This is an internal class, not a public interface.
62598ef99f288636728170e7
class OneMonitorWithEvents(OneQueueApolloMonitor): <NEW_LINE> <INDENT> def __init__(self, *args, **kwargs): <NEW_LINE> <INDENT> self._history = [] <NEW_LINE> super(OneMonitorWithEvents, self).__init__(*args, **kwargs) <NEW_LINE> <DEDENT> def get_call_history(self): <NEW_LINE> <INDENT> return self._history <NEW_LINE> <D...
This is the same as a normal OneQueueApolloMonitor except that its on_queue_* methods keep track of when they've been called.
62598ef9ff9c53063f518f4a
class Executor(object): <NEW_LINE> <INDENT> STANDARD_PRIORITY = 11 <NEW_LINE> IMMEDIATE_PRIORITY= 1 <NEW_LINE> def __init__(self, num_threads, result_queue, quiet, max_queue_size, write_queue): <NEW_LINE> <INDENT> self._max_queue_size = max_queue_size <NEW_LINE> self.queue = StablePriorityQueue(maxsize=self._max_queue_...
This class is in charge of all of the threads. It starts up the threads and cleans up the threads when finished. The two type of threads the ``Executor``runs is a worker and a print thread.
62598ef93346ee7daa336adb
class classproperty(object): <NEW_LINE> <INDENT> def __init__(self, f): <NEW_LINE> <INDENT> self.f = f <NEW_LINE> <DEDENT> def __get__(self, obj, owner): <NEW_LINE> <INDENT> return self.f(owner)
@classmethod meets @property TIP: This is only a getter! Not a setter! Inspired by stackoverflow: /questions/5189699/how-can-i-make-a-class-property-in-python
62598ef999fddb7c1ca62277
class Action(object): <NEW_LINE> <INDENT> def __init__(self, rule, verb = "build", name = None): <NEW_LINE> <INDENT> typecheck(rule, Rule) <NEW_LINE> typecheck(verb, basestring) <NEW_LINE> typecheck(name, basestring) <NEW_LINE> self.rule = rule <NEW_LINE> self.verb = verb <NEW_LINE> self.__name = name <NEW_LINE> self.c...
Represents a step in the build process, which has some inputs and some outputs. Attributes: rule Rule which defined this action. verb A simple verb indicating what the action is doing, like "compile" or "link" or "test". This forms part of the message printed to the console w...
62598ef9be383301e02520c9
class Task(epc.common.scheduler.Task): <NEW_LINE> <INDENT> def __init__(self, data): <NEW_LINE> <INDENT> super(Task, self).__init__(data) <NEW_LINE> self.stop_events = [multiprocessing.Event(), multiprocessing.Event()] <NEW_LINE> self.app_handle = None <NEW_LINE> self.exitcode = multiprocessing.Value('i', -1) <NEW_LINE...
Task object
62598ef9627d3e7fe0e05776
class TestCode(object): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.test_january = 1 <NEW_LINE> self.test_year = 2015 <NEW_LINE> self.required_aysem_jan_15 = "AY 14/15 Sem 2" <NEW_LINE> self.test_july = 7 <NEW_LINE> self.required_aysem_jul_15 = "AY 14/15 Sem 2" <NEW_LINE> self.test_august = 8 <NEW_...
This class runs the test cases for getting the correct AY-Semester, given the date.
62598ef956ac1b37e6300ad5
class ProjectCategory(MPTTModel): <NEW_LINE> <INDENT> name = models.CharField(u'项目分类名称', max_length=30) <NEW_LINE> parent = TreeForeignKey('self', null=True, blank=True, related_name='children', verbose_name=u'分类父亲') <NEW_LINE> order = models.PositiveIntegerField() <NEW_LINE> def __unicode__(self): <NEW_LINE> <INDENT> ...
项目分类 model
62598ef9d486a94d0ba2a8b3
class ExpSineSquared(StationaryKernelMixin, NormalizedKernelMixin, Kernel): <NEW_LINE> <INDENT> def __init__(self, length_scale=1.0, periodicity=1.0, length_scale_bounds=(1e-5, 1e5), periodicity_bounds=(1e-5, 1e5)): <NEW_LINE> <INDENT> self.length_scale = length_scale <NEW_LINE> self.periodicity = periodicity <NEW_LINE...
Exp-Sine-Squared kernel. The ExpSineSquared kernel allows modeling periodic functions. It is parameterized by a length-scale parameter length_scale>0 and a periodicity parameter periodicity>0. Only the isotropic variant where l is a scalar is supported at the moment. The kernel given by: k(x_i, x_j) = exp(-2 sin(\pi ...
62598ef9442bda511e95ad4b
class VariableStageAnnotation(PySP_Annotation): <NEW_LINE> <INDENT> _ctypes = (Var, Expression) <NEW_LINE> _ctypes_data = (_VarData, _ExpressionData) <NEW_LINE> def __init__(self): <NEW_LINE> <INDENT> super(VariableStageAnnotation, self).__init__() <NEW_LINE> self._default = None <NEW_LINE> <DEDENT> def _declare_impl(s...
This annotation is used to identify what time-stage a variable belongs to. The declare method should be called with an additional argument that is an integer greater than or equal to one, which signifies the time-stage of the initial component argument. The optional keyword 'derived' can be set to true to imply that a...
62598ef98a349b6b43684b2c
class BaseTestEvent(unittest.TestCase): <NEW_LINE> <INDENT> def setUp(self): <NEW_LINE> <INDENT> pass
Base class for comparison tests.
62598ef9656771135c487f74
class TestMarkdown(SimpleTestCase): <NEW_LINE> <INDENT> def test_filter(self): <NEW_LINE> <INDENT> self.assertEqual(markdown(None), '<p>None</p>') <NEW_LINE> self.assertEqual(markdown(''), '') <NEW_LINE> self.assertEqual(markdown('<div>text</div>'), '<div>text</div>') <NEW_LINE> self.assertEqual(markdown('### Header ##...
Test `markdown` filter.
62598ef9283ffb24f3cf2195
class PPad(Pattern): <NEW_LINE> <INDENT> def __init__(self, pattern, length): <NEW_LINE> <INDENT> self.pattern = pattern <NEW_LINE> self.length = length <NEW_LINE> self.reset() <NEW_LINE> <DEDENT> def reset(self): <NEW_LINE> <INDENT> super().reset() <NEW_LINE> self.count = 0 <NEW_LINE> <DEDENT> def __next__(self): <NEW...
PPad: Pad `pattern` with rests until it reaches length `length`.
62598ef932920d7e50bc4919
class AddPartyList(View): <NEW_LINE> <INDENT> def post(self, request, *args, **kwargs): <NEW_LINE> <INDENT> party_id = request.POST.get('party-id', False) <NEW_LINE> party_obj = Party.objects.get(id=party_id) <NEW_LINE> list_name = request.POST.get('add-list-select', False) <NEW_LINE> if not list_name: <NEW_LINE> <INDE...
This view contains logic to add an existing shopping list to a party
62598ef9ff9c53063f518f4c
class SCPNumAromaticRings(_MinMaxScaffoldFilterRule): <NEW_LINE> <INDENT> def __init__(self, min_max): <NEW_LINE> <INDENT> super().__init__(min_max) <NEW_LINE> <DEDENT> def get_property(self, child, parent): <NEW_LINE> <INDENT> aro_r = [x.aromatic for x in parent.rings] <NEW_LINE> return aro_r.count(True)
Filter by the number of aromatic rings in the parent scaffold. Specify 'min' to prioritize scaffolds with the smallest number of aromatic rings. Specify 'max' to prioritize scaffolds with the largest number of aromatic rings. Parameters ---------- min_max : {'min', 'max'} Specify 'min' or 'max' to define the fun...
62598ef997e22403b38397db
class HelloSharpenLogic(ScriptedLoadableModuleLogic): <NEW_LINE> <INDENT> def hasImageData(self,volumeNode): <NEW_LINE> <INDENT> if not volumeNode: <NEW_LINE> <INDENT> logging.debug('hasImageData failed: no volume node') <NEW_LINE> return False <NEW_LINE> <DEDENT> if volumeNode.GetImageData() is None: <NEW_LINE> <INDEN...
This class should implement all the actual computation done by your module. The interface should be such that other python code can import this class and make use of the functionality without requiring an instance of the Widget. Uses ScriptedLoadableModuleLogic base class, available at: https://github.com/Slicer/Slice...
62598ef9aad79263cf42d0fa
@register <NEW_LINE> class DataBreakpointInfoResponseBody(BaseSchema): <NEW_LINE> <INDENT> __props__ = { "dataId": { "type": [ "string", "null" ], "description": "An identifier for the data on which a data breakpoint can be registered with the setDataBreakpoints request or null if no data breakpoint is available." }, "...
"body" of DataBreakpointInfoResponse Note: automatically generated code. Do not edit manually.
62598ef9627d3e7fe0e05778
class Ellipse(tool.Tool): <NEW_LINE> <INDENT> canvas_pre = None <NEW_LINE> x1, y1, x2, y2 = 0.0, 0.0, 0.0, 0.0 <NEW_LINE> fill_color = (0,0,0,1) <NEW_LINE> line_color = (0,0,0,1) <NEW_LINE> def select(self): <NEW_LINE> <INDENT> self.canvas_pre = graphics.get_canvas() <NEW_LINE> self.bg = tool.generate_line_selector() <...
Simple ellipse tool
62598ef932920d7e50bc491a
class TopKMaxList(object): <NEW_LINE> <INDENT> def __init__(self, size): <NEW_LINE> <INDENT> self.size = size <NEW_LINE> self.heap = [] <NEW_LINE> <DEDENT> def append(self, key, value): <NEW_LINE> <INDENT> if len(self.heap) < self.size: <NEW_LINE> <INDENT> heapq.heappush(self.heap, SentenceScore(key, value)) <NEW_LINE>...
Heap Wrapper.
62598ef921bff66bcd721541
class BadCmdSequenceError(FTPCmdError): <NEW_LINE> <INDENT> errorCode = BAD_CMD_SEQ
Raised when a client sends a series of commands in an illogical sequence.
62598ef97d847024c075acb9
class CommandContext: <NEW_LINE> <INDENT> def __init__(self, base=None, next=None): <NEW_LINE> <INDENT> self.base = base or {} <NEW_LINE> self.next = next or {} <NEW_LINE> <DEDENT> def get(self, name, default=None): <NEW_LINE> <INDENT> try: <NEW_LINE> <INDENT> return self.__getitem__(name) <NEW_LINE> <DEDENT> except Ke...
A CommandContext object is a wrapper around any object which has values to be used to render a command for execution. It looks up values by name. It's lookup order is: base[name], base.__getattr__(name), next[name], next.__getattr__(name)
62598ef9adb09d7d5dc08eaa
class MockRequest: <NEW_LINE> <INDENT> def __init__(self, headers={}, cookies={}): <NEW_LINE> <INDENT> self.headers = headers <NEW_LINE> self.cookies = cookies
Mock request for testing.
62598ef94f88993c371ef961
class GzippedIStream(_IStreamAdaptor): <NEW_LINE> <INDENT> read_size = 1024 <NEW_LINE> def __init__(self, stream): <NEW_LINE> <INDENT> super(GzippedIStream, self).__init__(stream) <NEW_LINE> self._decode = decompressobj(MAX_WBITS + 32).decompress <NEW_LINE> self._buffer = b"" <NEW_LINE> return <NEW_LINE> <DEDENT> def _...
Add gzip/zlib decompression to a text input stream. Unlike the Python gzip module, this will work with streaming data, e.g. a urlopen() stream.
62598ef9442bda511e95ad4d
class DeleteCaseGroupView(LoginRequiredMixin, View): <NEW_LINE> <INDENT> def post(self, request): <NEW_LINE> <INDENT> case_group_id = request.POST.get('form_case_group_id_d', '') <NEW_LINE> CaseGroupInfo.objects.filter(id=case_group_id).delete() <NEW_LINE> return redirect('/case_group/')
删除用例组
62598ef9377c676e912f61d9
class TestPrimitives(TestCase): <NEW_LINE> <INDENT> def test_points(self): <NEW_LINE> <INDENT> l1 = Location('a', (2,3)) <NEW_LINE> l2 = Location('a', (2,3)) <NEW_LINE> l3 = Location('b', (2,3)) <NEW_LINE> l4 = Location('a', (3,3)) <NEW_LINE> t0 = datetime(year=2000, month=1, day=1) <NEW_LINE> t1 = t0 + timedelta(secon...
Example test case.
62598ef963d6d428bbee10bb
class GiDatasetCollectionPopulator(GiHttpMixin, BaseDatasetCollectionPopulator): <NEW_LINE> <INDENT> def __init__(self, gi): <NEW_LINE> <INDENT> self._gi = gi <NEW_LINE> self.dataset_populator = GiDatasetPopulator(gi) <NEW_LINE> self.dataset_collection_populator = GiDatasetCollectionPopulator(gi) <NEW_LINE> <DEDENT> de...
Implementation of BaseDatasetCollectionPopulator backed by bioblend.
62598ef9e1aae11d1e7cdcb8
class Config(object): <NEW_LINE> <INDENT> def __init__(self, indent=0, tabstop=4): <NEW_LINE> <INDENT> self.indent = indent <NEW_LINE> self._initial_indent = indent <NEW_LINE> self.tabstop = tabstop <NEW_LINE> self.lines = [] <NEW_LINE> <DEDENT> def __str__(self): <NEW_LINE> <INDENT> if self.indent != self._initial_ind...
Config allows a configuration to be assembled easily. Configurations are automatically indented following Juniper's style. A textual representation of the config can be extracted with str(). Attributes: indent: The number of leading spaces on the current line. tabstop: The number of spaces to indent for a new lev...
62598ef9ff9c53063f518f4e
class TestTankisTrimix870_2(TestTank): <NEW_LINE> <INDENT> def setUp(self): <NEW_LINE> <INDENT> super().setUp() <NEW_LINE> self.mytank = Tank(f_o2=0.08, f_he=0.7, max_ppo2=1.4) <NEW_LINE> <DEDENT> def test_name(self): <NEW_LINE> <INDENT> assert str(self.mytank) == 'Trimix 8/70' <NEW_LINE> <DEDENT> def test_mod(self): <...
Test Tx8/70 Tank 2.
62598ef957b8e32f52507579
class SpecFilesParser(SpecSectionParser): <NEW_LINE> <INDENT> obj = SpecStFiles
Parse %files section
62598ef9851cf427c66b6bb3
class MockDecisionEngine02(Engine): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> Engine.__init__(self) <NEW_LINE> self.initialize_count = 0 <NEW_LINE> self.initialize_conf = None <NEW_LINE> self.decide_count = 0 <NEW_LINE> self.reconfigure_count = 0 <NEW_LINE> <DEDENT> def initialize(self, control, state...
Fails only
62598ef9be383301e02520cd
class TaskQueueLocust(locust.Locust): <NEW_LINE> <INDENT> LOGGERS = {} <NEW_LINE> LOGGERS_LOCK = threading.Lock() <NEW_LINE> @classmethod <NEW_LINE> def get_logger(cls): <NEW_LINE> <INDENT> pid = os.getpid() <NEW_LINE> logger_name = f'{cls.__name__}s-{pid}' <NEW_LINE> if logger_name in cls.LOGGERS: <NEW_LINE> <INDENT> ...
Base class for virtual TaskQueue users run by Locust.
62598ef9627d3e7fe0e0577a
class Alert(namedtuple("Alert", "level label desc fix check")): <NEW_LINE> <INDENT> __slots__ = () <NEW_LINE> LOW = 0 <NEW_LINE> NORMAL = 1 <NEW_LINE> HIGH = 2 <NEW_LINE> @property <NEW_LINE> def is_active(self): <NEW_LINE> <INDENT> return self.check()
Represents information about an error or issue that has arisen and requires the user's attention. Fields: level: One of the values 'LOW', 'NORMAL', or 'HIGH', denoting the severity of the issue. label: A short string used to title the alert desc: A longer text description of the issue. fix: Text...
62598ef9a8370b77170eecd2
class edit(Command): <NEW_LINE> <INDENT> def execute(self): <NEW_LINE> <INDENT> if not self.arg(1): <NEW_LINE> <INDENT> self.fm.edit_file(self.fm.thisfile.path) <NEW_LINE> <DEDENT> else: <NEW_LINE> <INDENT> self.fm.edit_file(self.rest(1)) <NEW_LINE> <DEDENT> <DEDENT> def tab(self): <NEW_LINE> <INDENT> return self._tab_...
:edit <filename> Opens the specified file in vim
62598ef960cbc95b06362c1e
class LogWaterInputSet(InputSet): <NEW_LINE> <INDENT> def set_AccessTokenSecret(self, value): <NEW_LINE> <INDENT> InputSet._set_input(self, 'AccessTokenSecret', value) <NEW_LINE> <DEDENT> def set_AccessToken(self, value): <NEW_LINE> <INDENT> InputSet._set_input(self, 'AccessToken', value) <NEW_LINE> <DEDENT> def set_Am...
An InputSet with methods appropriate for specifying the inputs to the LogWater Choreo. The InputSet object is used to specify input parameters when executing this Choreo.
62598ef9d486a94d0ba2a8b7
@parser(Specs.root_crontab) <NEW_LINE> class RootCrontab(CrontabL): <NEW_LINE> <INDENT> pass
Parses output of the ``crontab -l -u root`` command.
62598ef95fdd1c0f98e5c893
class IRReceiver(BaseDigitalSensor): <NEW_LINE> <INDENT> I2C_ADDRESS = BaseDigitalSensor.I2C_ADDRESS.copy() <NEW_LINE> I2C_ADDRESS.update({ 'm1A': (0x42, 'b'), 'm1B': (0x43, 'b'), 'm2A': (0x44, 'b'), 'm2B': (0x45, 'b'), 'm3A': (0x46, 'b'), 'm3B': (0x47, 'b'), 'm4A': (0x48, 'b'), 'm4B': (0x49, 'b'), 'all_data': (0x42, '...
Object for HiTechnic IRReceiver sensors for use with LEGO Power Functions IR Remotes. Coded to HiTechnic's specs for the sensor but not tested. Please report whether this worked for you or not!
62598ef9442bda511e95ad4f
class MyDept(models.Model): <NEW_LINE> <INDENT> name = models.CharField('名称', max_length=50) <NEW_LINE> parent_dept_id = models.IntegerField('上级部门id', default=0) <NEW_LINE> leader = models.CharField('部门leader', max_length=50, default='') <NEW_LINE> approver = models.CharField('审批人', max_length=100, default='') <NEW_LIN...
部门
62598ef98a349b6b43684b30
class Webs(BaseModel, db.Model): <NEW_LINE> <INDENT> __tablename__ = "t_base_info" <NEW_LINE> id = db.Column(db.Integer, primary_key=True) <NEW_LINE> ad_url = db.Column(db.String(250), unique=True, nullable=False) <NEW_LINE> back_url = db.Column(db.String(250), nullable=False) <NEW_LINE> login_url = db.Column(db.String...
网站
62598ef9656771135c487f78
class BaseModel(Model): <NEW_LINE> <INDENT> class Meta: <NEW_LINE> <INDENT> database = db
Um modelo que serve de base para o banco de dados postgre.
62598ef9e5267d203ee6a1f3
class FullStaticNode(static.StaticNode): <NEW_LINE> <INDENT> def url(self, context): <NEW_LINE> <INDENT> request = context["request"] <NEW_LINE> return request.build_absolute_uri(super().url(context))
Generate absolute full URL to a static file.
62598ef9283ffb24f3cf2198
@flow_base.DualDBFlow <NEW_LINE> class DummyFlowWithSingleReplyMixin(object): <NEW_LINE> <INDENT> def Start(self): <NEW_LINE> <INDENT> self.CallState(next_state="SendSomething") <NEW_LINE> <DEDENT> def SendSomething(self, responses=None): <NEW_LINE> <INDENT> del responses <NEW_LINE> self.SendReply(rdfvalue.RDFString("o...
Just emits 1 reply.
62598ef991f36d47f223031b
class NSNitroNserrNosuchcounter(NSNitroCliErrors): <NEW_LINE> <INDENT> pass
Nitro error code 1167 No such counter
62598ef93317a56b869bd9dc
class WidgetMetaclass(type): <NEW_LINE> <INDENT> def __init__(mcs, name, bases, attrs): <NEW_LINE> <INDENT> super(WidgetMetaclass, mcs).__init__(name, bases, attrs) <NEW_LINE> Factory.register(name, cls=mcs)
Metaclass to automatically register new widgets for the :class:`~kivy.factory.Factory` .. warning:: This metaclass is used by the Widget. Do not use it directly !
62598ef9cc0a2c11144798f0
class MortalWoundWeapon(RangedWeapon): <NEW_LINE> <INDENT> def __init__(self, name, weapon_range, weapon_type, strength, armor_penetration, damage, roll_condition='6+', num_mortal_wounds=1,target_condition=None, replaces_wound=True): <NEW_LINE> <INDENT> super(MortalWoundWeapon, self).__init__(name, weapon_range, weapon...
Weapons which cause mortal wound(s) under certain conditions Additional Parameters --------------------- roll_condition (default 6+) : what roll is required to trigger mortal round num_mortal_wounds (default 1) : how many mortal wounds are caused target_condition (default None) : If the target must be o...
62598ef9851cf427c66b6bb5
class RestApi(CirrusApi, AtlasApi, StatefulClient): <NEW_LINE> <INDENT> ROBOT_LIBRARY_SCOPE = 'Global'
REST API keywords
62598ef94527f215b58e87f1
class TopProductsAggregator: <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.stores_products = defaultdict(Counter) <NEW_LINE> self.stores_products_revenue = defaultdict(lambda: defaultdict(float)) <NEW_LINE> <DEDENT> def ingest(self, transaction: Dict[str, str]): <NEW_LINE> <INDENT> store_id = transac...
Ingest transactions, aggregate most popular products per store, and query top n products by store.
62598ef9956e5f7376df4af1
class PulseDoubleGenerator(object): <NEW_LINE> <INDENT> def __init__(self, *args, **kwargs): <NEW_LINE> <INDENT> super(PulseDoubleGenerator, self).__init__(*args, **kwargs) <NEW_LINE> cls = 'IviRFSigGen' <NEW_LINE> grp = 'PulseDoubleGenerator' <NEW_LINE> ivi.add_group_capability(self, cls+grp) <NEW_LINE> self._pulse_ge...
Extension IVI methods for generators with internal double pulse modulation sources
62598ef94a966d76dd5ed7c9
class PgpSignedAttestation(_messages.Message): <NEW_LINE> <INDENT> class ContentTypeValueValuesEnum(_messages.Enum): <NEW_LINE> <INDENT> CONTENT_TYPE_UNSPECIFIED = 0 <NEW_LINE> SIMPLE_SIGNING_JSON = 1 <NEW_LINE> <DEDENT> contentType = _messages.EnumField('ContentTypeValueValuesEnum', 1) <NEW_LINE> pgpKeyId = _messages....
An attestation wrapper with a PGP-compatible signature. This message only supports `ATTACHED` signatures, where the payload that is signed is included alongside the signature itself in the same file. Enums: ContentTypeValueValuesEnum: Type (for example schema) of the attestation payload that was signed. The veri...
62598ef9627d3e7fe0e0577c
class Update(TelegramObject): <NEW_LINE> <INDENT> def __init__(self, update_id, **kwargs): <NEW_LINE> <INDENT> self.update_id = int(update_id) <NEW_LINE> self.message = kwargs.get('message') <NEW_LINE> self.edited_message = kwargs.get('edited_message') <NEW_LINE> self.inline_query = kwargs.get('inline_query') <NEW_LINE...
This object represents a Telegram Update. Attributes: update_id (int): message (:class:`telegram.Message`): edited_message (:class:`telegram.Message`): inline_query (:class:`telegram.InlineQuery`): chosen_inline_result (:class:`telegram.ChosenInlineResult`): callback_query (:class:`telegram.Cal...
62598ef9a8370b77170eecd3
class ContactoForm(ModelForm): <NEW_LINE> <INDENT> def __init__(self, *args, **kwargs): <NEW_LINE> <INDENT> super(ContactoForm, self).__init__(*args, **kwargs) <NEW_LINE> self.fields['sexo'].empty_label = None <NEW_LINE> self.fields['estado_civil'].empty_label = None <NEW_LINE> <DEDENT> class Meta: <NEW_LINE> <INDENT> ...
Docstring documentación pendiente
62598ef932920d7e50bc491e
class CMFOrderedBTreeFolderBase(OrderedBTreeFolderBase, PortalFolderBase): <NEW_LINE> <INDENT> def __init__(self, id, title=''): <NEW_LINE> <INDENT> PortalFolderBase.__init__(self, id, title) <NEW_LINE> BTreeFolder2Base.__init__(self, id) <NEW_LINE> <DEDENT> def _checkId(self, id, allow_dup=0): <NEW_LINE> <INDENT> Port...
BTree folder for CMF sites, with ordering support. The ordering is done by adapter (to IOrdering), which makes the policy changeable.
62598ef97d847024c075acbd
class StatRegister(metaclass=ABCMeta): <NEW_LINE> <INDENT> @abstractmethod <NEW_LINE> def register_holder(self, holder): <NEW_LINE> <INDENT> ... <NEW_LINE> <DEDENT> @abstractmethod <NEW_LINE> def unregister_holder(self, holder): <NEW_LINE> <INDENT> ...
Base class for all statistics registers.
62598ef967a9b606de5448bf
class MisconfiguredParameters(BaseException): <NEW_LINE> <INDENT> def __init__(self, param_id, value, message=None): <NEW_LINE> <INDENT> self.parameters = [] <NEW_LINE> self._str = None <NEW_LINE> self.add_faulty_parameter(param_id, value, message) <NEW_LINE> <DEDENT> def add_faulty_parameter(self, param_id, value, mes...
An utility class for a plugin to report one or more faulty parameters to ICTV.
62598ef91f5feb6acb161544
class AgregarPoaForm(forms.ModelForm): <NEW_LINE> <INDENT> class Meta: <NEW_LINE> <INDENT> model = Poa <NEW_LINE> fields = ('nombre', 'descripcion', 'estado', 'municipio', 'parroquia')
Modelo de formulario para el formulario de agregar POA @author Angelo Osorio (danielking.321 at gmail.com)
62598ef95fdd1c0f98e5c895
class RegressionModel(Model): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> Model.__init__(self) <NEW_LINE> self.get_data_and_monitor = backend.get_data_and_monitor_regression <NEW_LINE> self.learning_rate = .15 <NEW_LINE> self.w1 = Variable(1,75) <NEW_LINE> self.b1 = Variable(75) <NEW_LINE> self.w2 = Var...
A neural network model for approximating a function that maps from real numbers to real numbers. The network should be sufficiently large to be able to approximate sin(x) on the interval [-2pi, 2pi] to reasonable precision.
62598ef9236d856c2adc8891
class PublicRecipesApiTests(TestCase): <NEW_LINE> <INDENT> def setUp(self): <NEW_LINE> <INDENT> self.client = APIClient() <NEW_LINE> <DEDENT> def test_auth_required(self): <NEW_LINE> <INDENT> res = self.client.get(RECIPES_URL) <NEW_LINE> self.assertEqual(res.status_code, status.HTTP_401_UNAUTHORIZED)
Test unauthenticated recipe API access.
62598ef93d592f4c4edb97de
@enum_unique <NEW_LINE> class PreferenceType(Enum): <NEW_LINE> <INDENT> lower = ('Lower') <NEW_LINE> as_now = ('As now') <NEW_LINE> higher = ('Higher') <NEW_LINE> def __init__(self, label): <NEW_LINE> <INDENT> self.label = label
Preference types
62598ef9656771135c487f7a
class NfaToDfa(object): <NEW_LINE> <INDENT> def __init__(self, nfa, alphabet): <NEW_LINE> <INDENT> super(NfaToDfa, self).__init__() <NEW_LINE> self.__nfa = nfa <NEW_LINE> self.__alphabet = alphabet <NEW_LINE> self.dfa = DfaGraph(alphabet) <NEW_LINE> self.__build_graph() <NEW_LINE> <DEDENT> def __build_graph(self): <NEW...
Convert a NFA graph to a DFA graph (uses the usual superset approach but does combination of states in a way that seems to fit better with the idea of character ranges).
62598ef92ae34c7f260a99d3
class IngressSpec(_kuber_definitions.Definition): <NEW_LINE> <INDENT> def __init__( self, backend: "IngressBackend" = None, ingress_class_name: str = None, rules: typing.List["IngressRule"] = None, tls: typing.List["IngressTLS"] = None, ): <NEW_LINE> <INDENT> super(IngressSpec, self).__init__( api_version="extensions/v...
IngressSpec describes the Ingress the user wishes to exist.
62598ef9796e427e5384d08a
@provides(IModel3d) <NEW_LINE> class Lorenz(HasTraits): <NEW_LINE> <INDENT> name = Str("Lorenz Attractor") <NEW_LINE> points = Property( Array, observe="prandtl, rayleigh, beta, initial_point, times" ) <NEW_LINE> prandtl = Float(10.0, auto_set=False, enter_set=True) <NEW_LINE> rayleigh = Float(28.0, auto_set=False, ent...
The model object for the Lorenz attractor.
62598ef9ff9c53063f518f52
@final <NEW_LINE> class PartialFloatViolation(TokenizeViolation): <NEW_LINE> <INDENT> code = 304 <NEW_LINE> error_template = 'Found partial float: {0}'
Forbids to use partial floats like ``.05`` or ``23.``. Reasoning: Partial numbers are hard to read and they can be confused with other numbers. For example, it is really easy to confuse ``0.5`` and ``.05`` when reading through the source code. Solution: Use full versions with leading and starting ...
62598ef997e22403b38397e1
class BoolFormatter(BasicFormatter): <NEW_LINE> <INDENT> truetext = '$\\bullet$' <NEW_LINE> falsetext = '' <NEW_LINE> def colinfo(self, builder): <NEW_LINE> <INDENT> return 1, 'c', '\\colhead' <NEW_LINE> <DEDENT> def format(self, value): <NEW_LINE> <INDENT> if value: <NEW_LINE> <INDENT> return self.truetext <NEW_LINE> ...
Format booleans. Attributes `truetext` and `falsetext` set what shows up for true and false values, respectively.
62598ef930bbd72246468526
class Net(paddle.nn.Layer): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> super(Net, self).__init__() <NEW_LINE> <DEDENT> def forward(self, inputs): <NEW_LINE> <INDENT> x = paddle.erf(inputs) <NEW_LINE> return x
simple Net
62598ef94a966d76dd5ed7cb
class UserChangeForm(forms.ModelForm): <NEW_LINE> <INDENT> password = ReadOnlyPasswordHashField() <NEW_LINE> class Meta: <NEW_LINE> <INDENT> model = get_user_model() <NEW_LINE> fields = ('email', 'password', 'date_of_birth', 'is_active', 'is_admin') <NEW_LINE> <DEDENT> def clean_password(self): <NEW_LINE> <INDENT> retu...
A form for updating users. Includes all the fields on the user, but replaces the password field with admin's password hash display field.
62598ef9cc40096d61619651
class VideoViewSocialUserTests(NeoTestCase, VideoViewWrongPermissionsMixin): <NEW_LINE> <INDENT> fixtures = ['users_testdata'] <NEW_LINE> neo_fixtures = ['videos/fixtures/neo_video_group_testdata.json'] <NEW_LINE> def setUp(self): <NEW_LINE> <INDENT> self.client.login(username='socialuser', password='admin')
User testing the views is logged in as social user and therefore lacking the required permissions.
62598ef967a9b606de5448c1
class SplitDimsLayer(_ConcatInputLayer): <NEW_LINE> <INDENT> layer_class = "split_dims" <NEW_LINE> def __init__(self, axis, dims, **kwargs): <NEW_LINE> <INDENT> super(SplitDimsLayer, self).__init__(**kwargs) <NEW_LINE> data = self.input_data <NEW_LINE> if isinstance(axis, int): <NEW_LINE> <INDENT> data = data.copy_as_b...
Splits one axis into multiple axes. E.g. if you know that your feature-dim is composed by a window, i.e. the input is (batch, time, window * feature), you can set axis="F", dims=(window, -1), and you will get the output (batch, time, window, feature).
62598ef9097d151d1a2bf916
class FailureDefinition(object,IDisposable): <NEW_LINE> <INDENT> def AddResolutionType(self,type,caption,classOfResolution): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> @staticmethod <NEW_LINE> def CreateFailureDefinition(id,severity,messageString): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> def Dispose(self): <NEW_...
Defines persistent information about a failure.
62598ef95fdd1c0f98e5c897