code
stringlengths
4
4.48k
docstring
stringlengths
1
6.45k
_id
stringlengths
24
24
class LogLevel: <NEW_LINE> <INDENT> FATAL = 'FATAL' <NEW_LINE> ERROR = 'ERROR' <NEW_LINE> WARN = 'WARN' <NEW_LINE> INFO = 'INFO' <NEW_LINE> DEBUG = 'DEBUG' <NEW_LINE> levels = [FATAL, ERROR, WARN, INFO, DEBUG] <NEW_LINE> @staticmethod <NEW_LINE> def normalize(level): <NEW_LINE> <INDENT> if level in LogLevel.levels: <NE...
Represents log levels.
62598fae3539df3088ecc2a0
class TestReviewDocs(unittest.TestCase): <NEW_LINE> <INDENT> @classmethod <NEW_LINE> def setUpClass(cls): <NEW_LINE> <INDENT> print('\n\n.................................') <NEW_LINE> print('..... Testing Documentation .....') <NEW_LINE> print('....... Review Class .......') <NEW_LINE> print('........................
Class for testing BaseModel docs
62598fae7c178a314d78d48b
class ofp_packet_in: <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.header = ofp_header() <NEW_LINE> self.header.type = OFPT_PACKET_IN <NEW_LINE> self.buffer_id = 0 <NEW_LINE> self.total_len = 0 <NEW_LINE> self.in_port = 0 <NEW_LINE> self.reason = 0 <NEW_LINE> self.pad = 0 <NEW_LINE> self.data= [] <NE...
Automatically generated Python class for ofp_packet_in Date 2011-06-13 Created by pylibopenflow.of.pythonize.pythonizer
62598fae7047854f4633f3c8
class HeaderRule(models.Model): <NEW_LINE> <INDENT> name = models.CharField(max_length=50) <NEW_LINE> header = models.ForeignKey(HttpHeader) <NEW_LINE> regex = models.CharField(max_length=255) <NEW_LINE> domain = models.CharField(max_length=50, blank=True) <NEW_LINE> extension_list = models.CharField(max_length=50, def...
A rule that changes the file extension and/or sets a context variable based on an HTTP header.
62598fae5fdd1c0f98e5df7b
class Article(models.Model): <NEW_LINE> <INDENT> nid = models.AutoField(primary_key=True) <NEW_LINE> title = models.CharField(verbose_name="文章标题",max_length=50) <NEW_LINE> desc = models.CharField(verbose_name="文章描述",max_length=255) <NEW_LINE> create_time = models.DateTimeField(verbose_name='创建时间', auto_now_add=True) <N...
文章
62598fae2c8b7c6e89bd37b4
class uploadBlobChunk_args: <NEW_LINE> <INDENT> thrift_spec = ( None, (1, TType.STRING, 'session', None, None, ), (2, TType.STRING, 'chunk', None, None, ), ) <NEW_LINE> def __init__(self, session=None, chunk=None,): <NEW_LINE> <INDENT> self.session = session <NEW_LINE> self.chunk = chunk <NEW_LINE> <DEDENT> def read(se...
Attributes: - session - chunk
62598fae26068e7796d4c943
class RelAxis2 (MultiEvent): <NEW_LINE> <INDENT> name = 'relaxis2' <NEW_LINE> child = RelAxis <NEW_LINE> multiple = 2 <NEW_LINE> def __init__ (self, *inps): <NEW_LINE> <INDENT> MultiEvent.__init__(self, inps) <NEW_LINE> <DEDENT> def _parse_input (self, i): <NEW_LINE> <INDENT> if isinstance(i, inputs.Input): <NEW_LINE> ...
A double :class:`RelAxis`. Callbacks are called every frame with a list of positions for each of the two relative axes.
62598faefff4ab517ebcd7d4
class JSONExporter(BaseExporter): <NEW_LINE> <INDENT> def __init__(self,*args): <NEW_LINE> <INDENT> super(JSONExporter,self).__init__(*args) <NEW_LINE> <DEDENT> def dump(self,out_file): <NEW_LINE> <INDENT> json.dump(self.repr_as_dict(self.pathname),out_file)
Export Directory Structure as JSON
62598fae1b99ca400228f527
class Problem18(Problem): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.rows = list( map(lambda x: list(map(lambda y: int(y), x.split(' '))), [ "75", "95 64", "17 47 82", "18 35 87 10", "20 04 82 47 65", "19 01 23 75 03 34", "88 02 77 73 07 63 67", "99 65 04 28 06 16 70 92", "41 41 26 56 83 40 80 70 ...
Maximum path sum I Problem 18 By starting at the top of the triangle below and moving to adjacent numbers on the row below, the maximum total from top to bottom is 23. 3 7 4 2 4 6 8 5 9 3 That is, 3 + 7 + 4 + 9 = 23. Find the maximum total from top to bottom of the triangle below: ...
62598fae3346ee7daa33763f
class ScanScanFile(ScanScan): <NEW_LINE> <INDENT> def __init__(self, filename): <NEW_LINE> <INDENT> super(ScanScanFile, self).__init__() <NEW_LINE> self.filename = filename <NEW_LINE> self.load(filename) <NEW_LINE> <DEDENT> def load(self, filename): <NEW_LINE> <INDENT> with open(filename, "r") as content_file: <NEW_LIN...
Successively apply content transformations to a file.
62598fae66673b3332c303bb
class TextAreaField(StringField): <NEW_LINE> <INDENT> widget = wg.TextArea()
This field represents an HTML ``<textarea>`` and can be used to take multi-line input.
62598fae8da39b475be031d4
class EntryDelegate: <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.callback = None <NEW_LINE> <DEDENT> def setCallback(self, callback): <NEW_LINE> <INDENT> self.callback = callback <NEW_LINE> <DEDENT> def onEnter(self, player): <NEW_LINE> <INDENT> player.stopMovingUp() <NEW_LINE> player.stopMovingDow...
Represents an action to perform when entering a Tile
62598fae236d856c2adc9435
@register_object("relay.ext.ethos-u.CompilationArtifact") <NEW_LINE> class CompilationArtifact(Object): <NEW_LINE> <INDENT> def __init__( self, function_name: str, command_stream: str, encoded_constants: str, base_addresses: List[BaseAddress], ): <NEW_LINE> <INDENT> self.__init_handle_by_constructor__( _ffi_api.Compila...
This is a structure to hold binary artifacts for the microNPU.
62598fae99cbb53fe6830ec7
class aws_logger: <NEW_LINE> <INDENT> def __init__(self, aws_operations=None): <NEW_LINE> <INDENT> if aws_operations is not None: <NEW_LINE> <INDENT> self.aws_operations = aws_operations <NEW_LINE> <DEDENT> else: <NEW_LINE> <INDENT> self.aws_operations = aws_storage_operations() <NEW_LINE> <DEDENT> <DEDENT> def log(sel...
This class shall be used for handling all the logging operations to the AWS storage. Written By: Prafful Agrawal Version: 1.0 Revisions: None
62598fae091ae35668704c0e
class SupportArtifactTest(unittest.TestCase): <NEW_LINE> <INDENT> def test_support_artifact(self): <NEW_LINE> <INDENT> support_artifact_obj = SupportArtifact() <NEW_LINE> self.assertNotEqual(support_artifact_obj, None)
NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.
62598fae30bbd72246469970
class Individual: <NEW_LINE> <INDENT> def __init__(self, phenome=None, objective_values=None): <NEW_LINE> <INDENT> self.phenome = phenome <NEW_LINE> self.objective_values = objective_values
A data structure to store objective values together with the solution. Some methods of the problem classes expect objects with the two attributes `phenome` and `objective_values`. The exact type of these objects is irrelevant, but this class would be the obvious fit. The term 'phenome' stems from biology and means the...
62598fae9c8ee82313040169
class WorkloadDeploymentRequest(object): <NEW_LINE> <INDENT> def __init__(self, node_name=None): <NEW_LINE> <INDENT> self.swagger_types = { 'node_name': 'str' } <NEW_LINE> self.attribute_map = { 'node_name': 'nodeName' } <NEW_LINE> self._node_name = node_name <NEW_LINE> <DEDENT> @property <NEW_LINE> def node_name(self)...
NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.
62598fae7b25080760ed749f
class Frame(wx.Frame, containers.Container): <NEW_LINE> <INDENT> __events__ = { 'Close': wx.EVT_CLOSE, 'Iconize': wx.EVT_ICONIZE, 'Show': wx.EVT_SHOW, 'Activate': wx.EVT_ACTIVATE, 'Idle': wx.EVT_IDLE, 'MenuHighlight': wx.EVT_MENU_HIGHLIGHT, 'MenuOpen': wx.EVT_MENU_OPEN, 'MenuClose': wx.EVT_MENU_CLOSE, } <NEW_LINE> def ...
Top-level frame (window) with built-in sizer.
62598fae8e7ae83300ee9092
class ElasticsearchConnectionManager(object): <NEW_LINE> <INDENT> def __init__(self, fqdn): <NEW_LINE> <INDENT> self.fqdn = fqdn <NEW_LINE> self.connection = None <NEW_LINE> <DEDENT> def __enter__(self): <NEW_LINE> <INDENT> _es_host = {"host": self.fqdn, "port": 9200} <NEW_LINE> self.connection = Elasticsearch(hosts=[_...
This is only a context manager for elasticsearch connection
62598faea05bb46b3848a85b
class TraceFunctionEvent(TraceEvent): <NEW_LINE> <INDENT> function = Any() <NEW_LINE> module_name = Unicode() <NEW_LINE> qual_name = Unicode() <NEW_LINE> atomic = Bool() <NEW_LINE> @property <NEW_LINE> def name(self): <NEW_LINE> <INDENT> return self.qual_name.split('.')[-1] <NEW_LINE> <DEDENT> @property <NEW_LINE> def ...
Event pertaining to a function call.
62598fae66656f66f7d5a3df
class TestConceptsApi(unittest.TestCase): <NEW_LINE> <INDENT> def setUp(self): <NEW_LINE> <INDENT> self.api = swagger_client.apis.concepts_api.ConceptsApi() <NEW_LINE> <DEDENT> def tearDown(self): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> def test_get_concept_details(self): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDEN...
ConceptsApi unit test stubs
62598faef548e778e596b594
class AlkoholhaltigeDrinks(models.Model): <NEW_LINE> <INDENT> name = models.CharField(max_length=55, null=False, blank=False) <NEW_LINE> centiliter = models.DecimalField(max_length=8, max_digits=8, decimal_places=2, default="") <NEW_LINE> beschreibung = models.TextField(blank=True, default='') <NEW_LINE> zusatzstoffe =...
Eine Klasse zur Repräsentation eines alkoholfreien Drinks ... Attributes ---------- name : charfield Name des alkoholfreien Drinks liter : decimalfield Füllmenge mit 2 Nachkommastellen in centiliter beschreibung : textfield Beschreibung des alkoholhaltigen Drinks zusatzstoffe : charfield Enthaltene Zu...
62598fae4428ac0f6e658515
class WriteConcern(object): <NEW_LINE> <INDENT> __slots__ = ("__document", "__acknowledged") <NEW_LINE> def __init__(self, w=None, wtimeout=None, j=None, fsync=None): <NEW_LINE> <INDENT> self.__document = {} <NEW_LINE> self.__acknowledged = True <NEW_LINE> if wtimeout is not None: <NEW_LINE> <INDENT> if not isinstance(...
WriteConcern :Parameters: - `w`: (integer or string) Used with replication, write operations will block until they have been replicated to the specified number or tagged set of servers. `w=<integer>` always includes the replica set primary (e.g. w=3 means write to the primary and wait until ...
62598fae99cbb53fe6830ec8
class WaitDistanceTimeout(AutoTestTimeoutException): <NEW_LINE> <INDENT> pass
Thrown when fails to attain distance
62598fae498bea3a75a57b0e
@skipUnless(issubclass(JOB_RUNNER_CLASS, LocalJobRunner), 'skip if local runner is not used') <NEW_LINE> class LocalJobRunnerTest(TestCase): <NEW_LINE> <INDENT> def setUp(self): <NEW_LINE> <INDENT> super(LocalJobRunnerTest, self).setUp() <NEW_LINE> self._job = CommonJob.objects.create() <NEW_LINE> self._runner = LocalJ...
Test Map-Reduce runner.
62598fae16aa5153ce4004f2
class SaAutoCamelSchema(SQLAlchemyAutoSchema): <NEW_LINE> <INDENT> def on_bind_field(self, field_name, field_obj): <NEW_LINE> <INDENT> field_obj.data_key = camelcase(field_obj.data_key or field_name)
For marshmallow schemas that use camelCase for its external representation and snake_case for its internal representation.
62598fae2c8b7c6e89bd37b5
class CardPriorityList(generics.ListCreateAPIView): <NEW_LINE> <INDENT> queryset = CardPriority.objects.all() <NEW_LINE> serializer_class = CardPrioritySerializer
List all cards priority.
62598fae7b180e01f3e49048
class MonoGenericInstPrinter: <NEW_LINE> <INDENT> def __init__(self, val): <NEW_LINE> <INDENT> self.val = val <NEW_LINE> <DEDENT> def to_string(self): <NEW_LINE> <INDENT> if int(self.val.cast (gdb.lookup_type ("guint64"))) == 0: <NEW_LINE> <INDENT> return "0x0" <NEW_LINE> <DEDENT> inst = self.val.dereference () <NEW_LI...
Print a MonoGenericInst structure
62598fae7c178a314d78d48d
class search_plan(LoginRequiredMixin,View): <NEW_LINE> <INDENT> def get(self,requests): <NEW_LINE> <INDENT> plan_name=requests.GET.get("plan_name") <NEW_LINE> user=requests.user <NEW_LINE> if user.is_superuser: <NEW_LINE> <INDENT> plan_objs=Plan.objects.filter(plant_name=plan_name) <NEW_LINE> <DEDENT> else: <NEW_LINE> ...
搜索测试计划试图
62598fae4e4d562566372416
class TestCreateZipUnit: <NEW_LINE> <INDENT> def test__create_zip_defaults(self, two_iterables): <NEW_LINE> <INDENT> zipped = _create_zip(*two_iterables) <NEW_LINE> assert isinstance(zipped, zip) <NEW_LINE> <DEDENT> def test__create_zip_type_longest_false(self, two_iterables): <NEW_LINE> <INDENT> zipped = _create_zip(*...
Collection for `namedzip.namedzip._create_zip`.
62598faed486a94d0ba2bfbf
class Scoreboard(): <NEW_LINE> <INDENT> def __init__(self, ai_settings, screen, stats): <NEW_LINE> <INDENT> self.screen = screen <NEW_LINE> self.screen_rect = screen.get_rect() <NEW_LINE> self.ai_settings = ai_settings <NEW_LINE> self.stats = stats <NEW_LINE> self.text_color = (30, 30, 30) <NEW_LINE> self.font = pygame...
显示得分信息的类
62598faebe8e80087fbbf054
class Device(object): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.connected = False <NEW_LINE> <DEDENT> def wait_for_connection(self, timeout): <NEW_LINE> <INDENT> total_time = 0 <NEW_LINE> while not self.connected and total_time < timeout: <NEW_LINE> <INDENT> time.sleep(1) <NEW_LINE> total_time +=...
Represents the state of a single device.
62598fae2c8b7c6e89bd37b6
class FieldSequenceComparator(Comparator): <NEW_LINE> <INDENT> any = 'any' <NEW_LINE> notany = 'notany'
Comparators for :class:`hypatia.field.FieldIndex` search index. These comparators need to be combined with a sequence of index values.
62598faecb5e8a47e493c171
class DataStream(Base): <NEW_LINE> <INDENT> __tablename__ = "datastream" <NEW_LINE> id = Column(Integer, primary_key=True) <NEW_LINE> sensor = Column(Text, ForeignKey('sensor.uuid', ondelete='CASCADE'), unique=True, index=True) <NEW_LINE> owner = Column(Integer, ForeignKey('user.id', ondelete='CASCADE')) <NEW_LINE> min...
id : int Unique identifier of this DataStream. sensor : str Used to identify a DataStream to a Sensor. owner : int Identifies the user for the datastream. Currently unused. min_value : float max_value : float name : str User-friendly (human-readable) name. Currently unused. description : str Some ...
62598fae3346ee7daa337640
class Decorator(object): <NEW_LINE> <INDENT> def __init__(self) -> None: <NEW_LINE> <INDENT> self.commands: CmdTable = [] <NEW_LINE> <DEDENT> def __call__( self, name: str, help: Optional[str], aliases: Optional[List[str]] = None ) -> Callable[[Type[Subcmd]], Type[Subcmd]]: <NEW_LINE> <INDENT> return subcmd(name, help,...
decorator() creates a new object that can act as a decorator function to help define Subcmd instances. This decorator object also maintains a list of all commands that have been defined using it. This command list can later be passed to add_subcommands() to register these commands.
62598fae167d2b6e312b6f63
class SecurityDomainObject(Model): <NEW_LINE> <INDENT> _attribute_map = { 'value': {'key': 'value', 'type': 'str'}, } <NEW_LINE> def __init__(self, *, value=None, **kwargs) -> None: <NEW_LINE> <INDENT> super(SecurityDomainObject, self).__init__(**kwargs) <NEW_LINE> self.value = value
:param value: :type value: str
62598fae10dbd63aa1c70ba5
class LineTests(unittest.TestCase): <NEW_LINE> <INDENT> records = [('LN "foo" "http://example.com/"', lncore.LN, "foo", "http://example.com/"), ('NS "foo" "http://example.com/"', lncore.NS, "foo", "http://example.com/"), ('X "foo" "http://example.com/"', lncore.X, "foo", "http://example.com/"), ('PATTERN "foo" "http://...
Test line recognition. DOC testRecordInterpretation -- test record details testLineInterpretation -- test line types
62598fae5fdd1c0f98e5df7e
class LocalTimezone(tzinfo): <NEW_LINE> <INDENT> def __init__(self, dt): <NEW_LINE> <INDENT> tzinfo.__init__(self) <NEW_LINE> self.__dt = dt <NEW_LINE> self._tzname = self.tzname(dt) <NEW_LINE> <DEDENT> def __repr__(self): <NEW_LINE> <INDENT> return smart_text(self._tzname) <NEW_LINE> <DEDENT> def __getinitargs__(self)...
Proxy timezone information from time module.
62598fae30bbd72246469971
class TestPagedRelatedEvent(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 testPagedRelatedEvent(self): <NEW_LINE> <INDENT> pass
PagedRelatedEvent unit test stubs
62598fae67a9b606de545fbe
class VF_OT_value_finder(bpy.types.Operator): <NEW_LINE> <INDENT> bl_idname = "node.vf_value_finder" <NEW_LINE> bl_label = "Value Finder" <NEW_LINE> @classmethod <NEW_LINE> def poll(cls, context): <NEW_LINE> <INDENT> space = context.space_data <NEW_LINE> return space.type == 'NODE_EDITOR' <NEW_LINE> <DEDENT> def execut...
Render the scene for the different values
62598fae090684286d5936d5
class ShowMplsInterfaceSchema(MetaParser): <NEW_LINE> <INDENT> schema = { 'vrf':{ Any():{ 'interfaces': { Any(): { Optional('ip'): str, Optional('tunnel'): str, Optional('bgp'): str, Optional('static'): str, Optional('operational'): str, Optional('type'): str, Optional('session'): str, Optional('ip_labeling_enabled'):{...
Schema for show mpls interfaces show mpls interfaces all show mpls interfaces vrf <vrf> show mpls interfaces <interface> show mpls interfaces <interface> detail show mpls interfaces detail
62598fae66656f66f7d5a3e1
class WeChatException(Exception): <NEW_LINE> <INDENT> def __init__(self, errcode, errmsg): <NEW_LINE> <INDENT> self.errcode = errcode <NEW_LINE> self.errmsg = errmsg <NEW_LINE> <DEDENT> def __str__(self): <NEW_LINE> <INDENT> if six.PY2: <NEW_LINE> <INDENT> return to_binary('Error code: {code}, message: {msg}'.format( c...
Base exception for wechatpy
62598faef548e778e596b596
class Grid: <NEW_LINE> <INDENT> def __init__(self, x, y): <NEW_LINE> <INDENT> self.x = np.asarray(x) <NEW_LINE> self.y = np.asarray(y) <NEW_LINE> self.significance = np.zeros((len(x), len(y))) <NEW_LINE> self.cls = np.zeros_like(self.significance) <NEW_LINE> <DEDENT> @classmethod <NEW_LINE> def fromfile(cls, filename):...
Class to facilitate scanning over a 2D grid. For each node of the grid, the significance and the CLs value can be attached. They are stored in 2D arrays with coordinates in the order (x, y). The grid and values of significance and CLs can be saved in an .npz file and read back from it.
62598fae16aa5153ce4004f4
class FileSystemCompCommand(sublime_plugin.EventListener): <NEW_LINE> <INDENT> def on_query_completions(self, view, prefix, locations): <NEW_LINE> <INDENT> global activated <NEW_LINE> rowcol = view.rowcol(locations[0]) <NEW_LINE> line = view.line(locations[0]) <NEW_LINE> lstr = view.substr(line) <NEW_LINE> lstr = lstr[...
Enable SublimeText2 to complete filesystem paths a la VIM:
62598fae2c8b7c6e89bd37b7
class AssociateAccessGroupsRequest(AbstractModel): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.MountPointId = None <NEW_LINE> self.AccessGroupIds = None <NEW_LINE> <DEDENT> def _deserialize(self, params): <NEW_LINE> <INDENT> self.MountPointId = params.get("MountPointId") <NEW_LINE> self.AccessGroup...
AssociateAccessGroups请求参数结构体
62598fae7b180e01f3e49049
class StoreLocation(object): <NEW_LINE> <INDENT> def __init__(self, store_specs): <NEW_LINE> <INDENT> self.specs = store_specs <NEW_LINE> if self.specs: <NEW_LINE> <INDENT> self.process_specs() <NEW_LINE> <DEDENT> <DEDENT> def process_specs(self): <NEW_LINE> <INDENT> self.scheme = self.specs.get('scheme', 'scohack') <N...
Class describing a Scohack URI
62598faea8370b77170f03ce
class DeleteGroupInputSet(InputSet): <NEW_LINE> <INDENT> def set_Email(self, value): <NEW_LINE> <INDENT> super(DeleteGroupInputSet, self)._set_input('Email', value) <NEW_LINE> <DEDENT> def set_GroupID(self, value): <NEW_LINE> <INDENT> super(DeleteGroupInputSet, self)._set_input('GroupID', value) <NEW_LINE> <DEDENT> def...
An InputSet with methods appropriate for specifying the inputs to the DeleteGroup Choreo. The InputSet object is used to specify input parameters when executing this Choreo.
62598faeac7a0e7691f724fb
class PTReader: <NEW_LINE> <INDENT> def __init__(self, path, domain='none', exclude=()): <NEW_LINE> <INDENT> self.domain = domain <NEW_LINE> self.catalogs = {} <NEW_LINE> self.path = path <NEW_LINE> self.exclude = exclude <NEW_LINE> <DEDENT> def read(self): <NEW_LINE> <INDENT> from extract import tal_strings <NEW_LINE>...
Reads in a list of page templates
62598fae99fddb7c1ca62de2
class GoogleCloudMlV1ListModelsResponse(_messages.Message): <NEW_LINE> <INDENT> models = _messages.MessageField('GoogleCloudMlV1Model', 1, repeated=True) <NEW_LINE> nextPageToken = _messages.StringField(2)
Response message for the ListModels method. Fields: models: The list of models. nextPageToken: Optional. Pass this token as the `page_token` field of the request for a subsequent call.
62598fae21bff66bcd722c59
class NormalizeTree(CythonTransform): <NEW_LINE> <INDENT> def __init__(self, context): <NEW_LINE> <INDENT> super(NormalizeTree, self).__init__(context) <NEW_LINE> self.is_in_statlist = False <NEW_LINE> self.is_in_expr = False <NEW_LINE> <DEDENT> def visit_ModuleNode(self, node): <NEW_LINE> <INDENT> self.visitchildren(n...
This transform fixes up a few things after parsing in order to make the parse tree more suitable for transforms. a) After parsing, blocks with only one statement will be represented by that statement, not by a StatListNode. When doing transforms this is annoying and inconsistent, as one can...
62598faebe8e80087fbbf056
class ExamplePipeline(object): <NEW_LINE> <INDENT> def process_item(self, item, spider): <NEW_LINE> <INDENT> return item <NEW_LINE> <DEDENT> def __del__(self): <NEW_LINE> <INDENT> self.searchIndex.finish_index()
This pipeline class object is designed for ElasticSearch client
62598fae097d151d1a2c101c
class KeyReferenceToPersistent(KeyReferenceToPersistent): <NEW_LINE> <INDENT> implements(IKeyReference) <NEW_LINE> adapts(IPersistent) <NEW_LINE> key_type_id = 'five.intid.keyreference' <NEW_LINE> def __init__(self, wrapped_obj): <NEW_LINE> <INDENT> try: <NEW_LINE> <INDENT> self.path = '/'.join(wrapped_obj.getPhysicalP...
a zope2ish implementation of keyreferences that unwraps objects that have Acquisition wrappers These references compare by _p_oids of the objects they reference. @@ cache IConnection as a property and volative attr?
62598faeff9c53063f51a640
class DocumentUpdateError(ArangoRequestError): <NEW_LINE> <INDENT> pass
Failed to update the ArangoDB document(s).
62598fae379a373c97d99006
class GetConfig(BaseService): <NEW_LINE> <INDENT> def __init__(self, connection, context, **kwargs): <NEW_LINE> <INDENT> super().__init__(connection, context, **kwargs) <NEW_LINE> self.start_state = 'enable' <NEW_LINE> self.end_state = 'enable' <NEW_LINE> self.timeout = connection.settings.EXEC_TIMEOUT <NEW_LINE> self....
Service return running configuration of the device. Returns: standby running configuration if standby is passed as input. Arguments: target: Service target, by default active Returns: running configuration on Success, raise SubCommandFailure on failure. Example: .. code-block:: python rtr.get...
62598fae442bda511e95c44a
class _ForwardRef(TypingMeta): <NEW_LINE> <INDENT> def __new__(cls, arg): <NEW_LINE> <INDENT> if not isinstance(arg, str): <NEW_LINE> <INDENT> raise TypeError('ForwardRef must be a string -- got %r' % (arg,)) <NEW_LINE> <DEDENT> try: <NEW_LINE> <INDENT> code = compile(arg, '<string>', 'eval') <NEW_LINE> <DEDENT> except...
Wrapper to hold a forward reference.
62598fae63b5f9789fe8515a
class fuzzydict(dict): <NEW_LINE> <INDENT> def __eq__(self, other): <NEW_LINE> <INDENT> if super().__eq__(other): <NEW_LINE> <INDENT> return True <NEW_LINE> <DEDENT> elif not isinstance(other, dict): <NEW_LINE> <INDENT> return NotImplemented <NEW_LINE> <DEDENT> keys_same = set(self).intersection(other) <NEW_LINE> for k...
Dictionary that ignores empty `fuzzylist` values when determining equality, e.g. fuzzydict(x=fuzzylist()) == {}
62598fae4527f215b58e9ecf
class LengthBonus(BatchScorerInterface): <NEW_LINE> <INDENT> def __init__(self, n_vocab: int): <NEW_LINE> <INDENT> self.n = n_vocab <NEW_LINE> <DEDENT> def score(self, y, state, x): <NEW_LINE> <INDENT> return torch.tensor([1.0], device=x.device, dtype=x.dtype).expand(self.n), None <NEW_LINE> <DEDENT> def batch_score( s...
Length bonus in beam search.
62598fae1b99ca400228f529
class const: <NEW_LINE> <INDENT> UNDEFINED = Undefined() <NEW_LINE> literal_types = six.integer_types + (six.text_type, six.binary_type) + (bool, float, complex, object, type(None)) <NEW_LINE> transformed_exceptions = (AssertionError, TypeError, ValueError,) <NEW_LINE> class COMPILED_TYPE: <NEW_LINE> <INDENT> LITERAL =...
Misc constants
62598fae4e4d562566372419
class Permutator: <NEW_LINE> <INDENT> def __init__(self, word: str): <NEW_LINE> <INDENT> self._word = word <NEW_LINE> if word is None or len(word) < 1 : <NEW_LINE> <INDENT> raise AppException("Word to permutate is None or 0-length") <NEW_LINE> <DEDENT> self._char_counts = find_repeats(self._word) <NEW_LINE> <DEDENT> de...
class that finds possible permutations of a word
62598fae99cbb53fe6830ecb
@ui.register_ui( item_release=ui.UI(By.CSS_SELECTOR, '[id$="action_release"]')) <NEW_LINE> class DropdownMenu(_ui.DropdownMenu): <NEW_LINE> <INDENT> pass
Dropdown menu of floating IP.
62598fae10dbd63aa1c70ba7
class GetSellerResponse(object): <NEW_LINE> <INDENT> _names = { "id":'id', "name":'name', "code":'code', "document":'document', "description":'description', "status":'Status', "created_at":'CreatedAt', "updated_at":'UpdatedAt', "address":'Address', "metadata":'Metadata', "deleted_at":'DeletedAt' } <NEW_LINE> def __init...
Implementation of the 'GetSellerResponse' model. TODO: type model description here. Attributes: id (string): Identification name (string): TODO: type description here. code (string): TODO: type description here. document (string): TODO: type description here. description (string): Description ...
62598fae7d847024c075c3b6
class IAssociationSetEvent(IAssociationChangeEvent): <NEW_LINE> <INDENT> pass
An association with [0..1] multiplicity has been changed.
62598fae5fdd1c0f98e5df80
class Population: <NEW_LINE> <INDENT> def __init__(self, id: int, chromosomes: List[Chromosome] = None): <NEW_LINE> <INDENT> if chromosomes is None: <NEW_LINE> <INDENT> chromosomes = [] <NEW_LINE> <DEDENT> self.id = id <NEW_LINE> self.chromosomes = chromosomes <NEW_LINE> self.size = self.chromosomes.__len__() <NEW_LINE...
A List of `Multi-Chromosomes as a population represents different sizes.
62598fae091ae35668704c12
class DescribeServiceReleaseVersionResponse(AbstractModel): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.Result = None <NEW_LINE> self.RequestId = None <NEW_LINE> <DEDENT> def _deserialize(self, params): <NEW_LINE> <INDENT> if params.get("Result") is not None: <NEW_LINE> <INDENT> self.Result = Servi...
DescribeServiceReleaseVersion返回参数结构体
62598faef7d966606f747fd8
class F5(BBOBNfreeFunction): <NEW_LINE> <INDENT> funId = 5 <NEW_LINE> alpha = 100. <NEW_LINE> def initwithsize(self, curshape, dim): <NEW_LINE> <INDENT> if self.dim != dim: <NEW_LINE> <INDENT> if self.zerox: <NEW_LINE> <INDENT> self.xopt = zeros(dim) <NEW_LINE> <DEDENT> else: <NEW_LINE> <INDENT> self.xopt = 5 * sign(co...
Linear slope
62598fae460517430c432057
class Task(object): <NEW_LINE> <INDENT> def __init__(self, data): <NEW_LINE> <INDENT> self.data = data <NEW_LINE> self.text = data['text'].encode("utf-8") <NEW_LINE> self.taskID = data['id'] <NEW_LINE> self.dateCreated = H.DateTime(str(data['createdAt'])) <NEW_LINE> self.priority = data['priority'] <...
Basic template for a task. There will be separate derived classes for Habits, TODOs and Dailies. Basic display facilities are described in the display function of this class. Other details are displayed by the function in the derived classes
62598fae851cf427c66b82af
class PermissionOwnershipManager(models.Manager): <NEW_LINE> <INDENT> def get_ownership(self, permission, obj_or_class, owner): <NEW_LINE> <INDENT> from expedient.common.permissions.models import Permittee <NEW_LINE> from expedient.common.permissions.models import ObjectPermission <NEW_LINE> from expedient.common.permi...
Manager for PermissionOwnership model. Adds the delete_ownership and get_ownership methods to the default manager.
62598fae67a9b606de545fc0
class FsmTsF(Fsm): <NEW_LINE> <INDENT> def __init__(self, *args, **kwargs): <NEW_LINE> <INDENT> self.cSound = kwargs.pop('cSound', None) <NEW_LINE> self.indxN = kwargs.pop('indxn', None) <NEW_LINE> self.tabN = kwargs.pop('ftable', None) <NEW_LINE> self.funct = kwargs.pop('funct', None) <NEW_LINE> super(FsmTsF, self).__...
transmit value to a csound table and perform a function
62598faea05bb46b3848a85f
class IRevSplitBlock(nn.Module): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> super(IRevSplitBlock, self).__init__() <NEW_LINE> <DEDENT> def forward(self, x, _): <NEW_LINE> <INDENT> x1, x2 = torch.chunk(x, chunks=2, dim=1) <NEW_LINE> return x1, x2 <NEW_LINE> <DEDENT> def inverse(self, x1, x2): <NEW_LINE>...
iRevNet split block.
62598fae2c8b7c6e89bd37b9
class Meta: <NEW_LINE> <INDENT> model = ContactInformation <NEW_LINE> exclude = [ 'datetime_created', 'datetime_modified', 'entity_content_type', 'entity_object_id', ] <NEW_LINE> read_only_fields = [ 'email_address_verified', 'institute_webmail_address', ]
Meta class for ContactInformationSerializer
62598faeb7558d589546361e
class ExactMatchClassifier(IntentClassifier): <NEW_LINE> <INDENT> defaults = {"case_sensitive": True} <NEW_LINE> def __init__( self, component_config: Optional[Dict[Text, Any]] = None, intent_keyword_map: Optional[Dict] = None, ): <NEW_LINE> <INDENT> super(ExactMatchClassifier, self).__init__(component_config) <NEW_LIN...
Intent classifier using simple exact matching. The classifier takes a list of keywords and associated intents as an input. A input sentence is checked for the keywords and the intent is returned.
62598faebe383301e02537ed
class LSApprovedWorkers: <NEW_LINE> <INDENT> thrift_spec = ( None, (1, TType.MAP, 'approved_workers', (TType.STRING,None,TType.I32,None), None, ), ) <NEW_LINE> def __init__(self, approved_workers=None,): <NEW_LINE> <INDENT> self.approved_workers = approved_workers <NEW_LINE> <DEDENT> def read(self, iprot): <NEW_LINE> <...
Attributes: - approved_workers
62598faeac7a0e7691f724fd
class TestPrecisEngineTaskStatusResponse(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 testPrecisEngineTaskStatusResponse(self): <NEW_LINE> <INDENT> pass
PrecisEngineTaskStatusResponse unit test stubs
62598faed58c6744b42dc2d1
class covarFunc (covariance): <NEW_LINE> <INDENT> def __init__(self,**kwargs): <NEW_LINE> <INDENT> self._dict= {} <NEW_LINE> if kwargs.has_key('logA'): <NEW_LINE> <INDENT> self.logA= kwargs['logA'] <NEW_LINE> <DEDENT> elif kwargs.has_key('A'): <NEW_LINE> <INDENT> self.logA= scipy.log(kwargs['A']) <NEW_LINE> <DEDENT> el...
covarFunc KS11multi: covariance function with a power-law structure function for band g, and linear relation between g and r (eg)
62598faed486a94d0ba2bfc3
class UnderlinedStr(str): <NEW_LINE> <INDENT> def __init__(self, u_str): <NEW_LINE> <INDENT> str.__init__(u_str) <NEW_LINE> <DEDENT> def underline(self): <NEW_LINE> <INDENT> return str.__str__(self) + '\n' + format('', '-<' + str(len(self)))
Underlined string class definition
62598fae7047854f4633f3ce
class OrphanThread(AbstractThreadCheck): <NEW_LINE> <INDENT> def check(self): <NEW_LINE> <INDENT> module = tasks.find_module(self.mods, self.mod_addrs, self.thread.StartAddress) <NEW_LINE> return ('PS_CROSS_THREAD_FLAGS_SYSTEM' in self.flags and module == None)
Detect orphan threads
62598fae2c8b7c6e89bd37ba
class QLearningAgent(ReinforcementAgent): <NEW_LINE> <INDENT> def __init__(self, **args): <NEW_LINE> <INDENT> ReinforcementAgent.__init__(self, **args) <NEW_LINE> self.qvals = util.Counter() <NEW_LINE> <DEDENT> def getQValue(self, state, action): <NEW_LINE> <INDENT> return self.qvals[(state, action)] <NEW_LINE> util.ra...
Q-Learning Agent Functions you should fill in: - computeValueFromQValues - computeActionFromQValues - getQValue - getAction - update Instance variables you have access to - self.epsilon (exploration prob) - self.alpha (learning rate) - self.discount (discount rate) Functions you should use - self.g...
62598faecb5e8a47e493c173
@pytest.mark.draft <NEW_LINE> @pytest.mark.components <NEW_LINE> @pytest.allure.story('Origins') <NEW_LINE> @pytest.allure.feature('POST') <NEW_LINE> class Test_PFE_Components(object): <NEW_LINE> <INDENT> @pytest.allure.link('https://jira.qumu.com/browse/TC-42557') <NEW_LINE> @pytest.mark.Origins <NEW_LINE> @pytest.mar...
PFE Origins test cases.
62598fae63b5f9789fe8515c
class EnvironmentHolder(Singleton): <NEW_LINE> <INDENT> projectDirectory: str <NEW_LINE> def __init__(self): <NEW_LINE> <INDENT> self.projectDirectory = self.__getProjectDirectory() <NEW_LINE> <DEDENT> def __getProjectDirectory(self) -> str: <NEW_LINE> <INDENT> if getattr(sys, 'frozen', False): <NEW_LINE> <INDENT> retu...
docstring
62598fae4e4d56256637241b
class DebugMonitor(A10BaseClass): <NEW_LINE> <INDENT> def __init__(self, **kwargs): <NEW_LINE> <INDENT> self.ERROR_MSG = "" <NEW_LINE> self.required = [ "debug_monitor"] <NEW_LINE> self.b_key = "debug-monitor" <NEW_LINE> self.a10_url="/axapi/v3/export-periodic/debug-monitor/{debug_monitor}" <NEW_LINE> self.DeviceProxy ...
Class Description:: Debug Monitor Output. Class debug-monitor supports CRUD Operations and inherits from `common/A10BaseClass`. This class is the `"PARENT"` class for this module.` :param remote_file: {"optional": true, "type": "string", "description": "profile name for remote url", "format": "url"} :param debug_moni...
62598fae8da39b475be031da
class PermissionsCreator(threading.Thread): <NEW_LINE> <INDENT> HOST = "localhost:9091" <NEW_LINE> GRPC_TIMEOUT = 10 <NEW_LINE> def __init__(self, work_q, response_q, id): <NEW_LINE> <INDENT> super(PermissionsCreator, self).__init__() <NEW_LINE> self.work_q = work_q <NEW_LINE> self.response_q = response_q <NEW_LINE> se...
Permission creating thread. It will create a new IAM client connection and start consuming permissions information from the queue to form its create request. Each thread simulates a distinct application that might be invoking IAM RPC methods.
62598faeeab8aa0e5d30bd82
class SecurityPolicyType(Enum): <NEW_LINE> <INDENT> NoSecurity = 0 <NEW_LINE> Basic128Rsa15_Sign = 1 <NEW_LINE> Basic128Rsa15_SignAndEncrypt = 2 <NEW_LINE> Basic256_Sign = 3 <NEW_LINE> Basic256_SignAndEncrypt = 4
The supported types of SecurityPolicy. "None" "Basic128Rsa15_Sign" "Basic128Rsa15_SignAndEncrypt" "Basic256_Sign" "Basic256_SignAndEncrypt"
62598fae5fcc89381b266147
class Encoder(nn.Module): <NEW_LINE> <INDENT> def __init__(self,input_size,embedded_size,hidden_size,dropout_p=0.0): <NEW_LINE> <INDENT> super(Encoder,self).__init__() <NEW_LINE> self.input_size = input_size <NEW_LINE> self.hidden_size = hidden_size <NEW_LINE> self.embedded_size = embedded_size <NEW_LINE> self.dropout_...
input_size:输入大小,跟词典的len一样 embedded_size:embedd层的size hidden_size:Encoder层输出的隐藏状态size dropout_p:输入层的dropout的比率
62598fae67a9b606de545fc2
class GetSubDomain(View): <NEW_LINE> <INDENT> def get(self, request, *args, **kwargs): <NEW_LINE> <INDENT> return HttpResponse(subdomain_from_request(request))
this view is just meant to test subdomain functionality
62598faef548e778e596b59a
class ModuleInfoArray(object): <NEW_LINE> <INDENT> thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') <NEW_LINE> __repr__ = _swig_repr <NEW_LINE> def __init__(self, *args): <NEW_LINE> <INDENT> this = _x64dbgapi64.new_ModuleInfoArray(*args) <NEW_LINE> try: self.this.a...
Proxy of C++ ModuleInfoArray class
62598fae7d847024c075c3b9
class Alias(BaseModel): <NEW_LINE> <INDENT> domain = models.ForeignKey( Domain, null=True, default=None, blank=True, on_delete=models.SET_NULL) <NEW_LINE> recipient = models.EmailField( _('Recipient Address'), max_length=100, unique=True, db_index=True) <NEW_LINE> forward = models.EmailField( _('Forward Address'), max_...
Alias - Used in :ref:`postfix.virtual_alias_maps`
62598faea8370b77170f03d2
class BrowsableAPIRendererWithoutForms(BrowsableAPIRenderer): <NEW_LINE> <INDENT> def get_rendered_html_form(self, data, view, method, request): <NEW_LINE> <INDENT> return None <NEW_LINE> <DEDENT> def get_raw_data_form(self, data, view, method, request): <NEW_LINE> <INDENT> serializer = getattr(data, 'serializer', None...
Renders the browsable api, but excludes the HTML form.
62598faed486a94d0ba2bfc4
class Action21(Action): <NEW_LINE> <INDENT> def execute(self, instance): <NEW_LINE> <INDENT> instance.objectPlayer.eventValue = self.evaluate_expression( self.get_parameter(0))
On interactive condition->Change channel name (for channel join request) Parameters: 0: New name (EXPSTRING, ExpressionParameter)
62598faee5267d203ee6b900
class Function(Definition): <NEW_LINE> <INDENT> def __init__(self, line, source): <NEW_LINE> <INDENT> Definition.__init__(self, line, '((?:virtual +|static +|)([^\(]+) +([^ \(]+\([^\)]*\)(?: +const|))(?: +override|))(.*)') <NEW_LINE> self.decl = self.matches.group(1) <NEW_LINE> self.type = self.matches.group(2) <NEW_LI...
Function branch definition. Write as a C++ function within the given scope.
62598fae4e4d56256637241c
class RAnytime(RPackage): <NEW_LINE> <INDENT> homepage = "http://dirk.eddelbuettel.com/code/anytime.html" <NEW_LINE> url = "https://cloud.r-project.org/src/contrib/anytime_0.3.9.tar.gz" <NEW_LINE> list_url = "https://cloud.r-project.org/src/contrib/Archive/anytime" <NEW_LINE> version('0.3.9', sha256='1096c15249ac7...
Anything to 'POSIXct' or 'Date' Converter Convert input in any one of character, integer, numeric, factor, or ordered type into 'POSIXct' (or 'Date') objects, using one of a number of predefined formats, and relying on Boost facilities for date and time parsing.
62598fae4f88993c371f0505
class DelimitedList(ma.fields.List): <NEW_LINE> <INDENT> delimiter: str = ',' <NEW_LINE> def __init__( self, cls_or_instance: typing.Union[ma.fields.Field, type], *, delimiter: typing.Optional[str] = None, **kwargs ): <NEW_LINE> <INDENT> self.delimiter = delimiter or __class__.delimiter <NEW_LINE> super().__init__(cls_...
A field which is similar to a List, but takes its input as a delimited string (e.g. "foo,bar,baz"). Like List, it can be given a nested field type which it will use to de/serialize each element of the list. :param Field cls_or_instance: A field class or instance. :param str delimiter: Delimiter between values.
62598fae26068e7796d4c94b
class Tfidf: <NEW_LINE> <INDENT> def __init__(self,corpus): <NEW_LINE> <INDENT> self.tf = {} <NEW_LINE> self.idf={} <NEW_LINE> self.tfidfDict={} <NEW_LINE> self.corpus = corpus <NEW_LINE> <DEDENT> def _getTf(self,docModel,isTokenized=True,normalized=True): <NEW_LINE> <INDENT> if(isTokenized == True): <NEW_LINE> <INDENT...
Classe que recebe o dicionário contendo os textos do Corpus e os modela como um Bag-of-Words Attributes: dictCorpus: Dicionário que modela o corpus.
62598fae7047854f4633f3d1
class GitVersionMixin(object): <NEW_LINE> <INDENT> def write_version_py(self, pyfile): <NEW_LINE> <INDENT> log.info("generating %s" % pyfile) <NEW_LINE> import vcs <NEW_LINE> gitstatus = vcs.GitStatus() <NEW_LINE> try: <NEW_LINE> <INDENT> with open(pyfile, 'w') as fobj: <NEW_LINE> <INDENT> gitstatus.write(fobj, author=...
Mixin class to add methods to generate version information from git.
62598fae5fc7496912d4827c
class Key(): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> pass
Iterator object to iterate over keys.
62598fae3346ee7daa337643
class StorageManager(object): <NEW_LINE> <INDENT> def __init__(self, node): <NEW_LINE> <INDENT> self._node = node <NEW_LINE> self._interface_queue = {} <NEW_LINE> self.initStorageQueues() <NEW_LINE> self._MAX_BYTE = 0 <NEW_LINE> self._cur_byte = 0 <NEW_LINE> <DEDENT> def initStorageQueues(self): <NEW_LINE> <INDENT> for...
How storage is used: 1. In BufMan.schedBuf(), * it first checks if there's chunks stored. If there is, retrieve it and return. * If there isn't, try to schedule from buffer. (with Per-If queuing) if a chunk is blocked, push it to storage. Repeat this until either a non-blocked chunk ...
62598faea8370b77170f03d3
class Alien(Sprite): <NEW_LINE> <INDENT> def __init__(self, ai_settings, screen): <NEW_LINE> <INDENT> super(Alien, self).__init__() <NEW_LINE> self.screen = screen <NEW_LINE> self.ai_settings = ai_settings <NEW_LINE> self.image = pygame.image.load('image/alien.bmp') <NEW_LINE> self.rect = self.image.get_rect() <NEW_LIN...
A class to represent a single alin in the fleet.
62598fae236d856c2adc9439
class MyMiddleware(MiddlewareMixin): <NEW_LINE> <INDENT> def process_request(self, request): <NEW_LINE> <INDENT> user = User.objects.get(id=1) <NEW_LINE> self.current_user = user
测试使用,免去登录
62598fae99cbb53fe6830ecf
class Mailed(object): <NEW_LINE> <INDENT> OFF = 0x00 <NEW_LINE> ON = 0x01 <NEW_LINE> def __init__(self, device): <NEW_LINE> <INDENT> self._device = device <NEW_LINE> config = device.get_active_configuration() <NEW_LINE> interface_number = config[(0, 0)].bInterfaceNumber <NEW_LINE> alternate_setting = usb.control.get_in...
representation of mail led
62598faeeab8aa0e5d30bd84
class CouchDBEncoder(json.JSONEncoder): <NEW_LINE> <INDENT> def default(self, obj): <NEW_LINE> <INDENT> if isinstance(obj, datetime.datetime): <NEW_LINE> <INDENT> return obj.isoformat()
Custom JSON encoder class for handling special data types
62598fae2ae34c7f260ab0d9
class JointTask(dTwistTask): <NEW_LINE> <INDENT> def __init__(self, joint, ctrl, *args, **kwargs): <NEW_LINE> <INDENT> dTwistTask.__init__(self, *args, **kwargs) <NEW_LINE> self._joint = joint <NEW_LINE> self._ctrl = ctrl <NEW_LINE> assert(isinstance(joint, Joint)) <NEW_LINE> assert(isinstance(ctrl, dTwistCtrl)) <NEW_L...
TODO.
62598faedd821e528d6d8f2c