code
stringlengths
4
4.48k
docstring
stringlengths
1
6.45k
_id
stringlengths
24
24
class UserSchemaN01(Schema): <NEW_LINE> <INDENT> name = fields.Str() <NEW_LINE> email = fields.Email() <NEW_LINE> created_at = fields.DateTime()
仅需要这三个字段
62598ee2a8370b77170ee9fe
class SnapshotScheduleInfo(NetAppObject): <NEW_LINE> <INDENT> _count = None <NEW_LINE> @property <NEW_LINE> def count(self): <NEW_LINE> <INDENT> return self._count <NEW_LINE> <DEDENT> @count.setter <NEW_LINE> def count(self, val): <NEW_LINE> <INDENT> if val != None: <NEW_LINE> <INDENT> self.validate('count', val) <NEW_...
Information about individual snapshot schedules
62598ee22c8b7c6e89bd1dda
class Logger: <NEW_LINE> <INDENT> def __init__(self, name="multivio", log_output_file=None, log_console=True, log_level=logging.DEBUG): <NEW_LINE> <INDENT> self.name = name <NEW_LINE> self.logger = logging.getLogger(name) <NEW_LINE> self.logger.setLevel(log_level) <NEW_LINE> formatter = logging.Formatter("%(asctime)s -...
To log several messages
62598ee23cc13d1c6d463d87
@dataclass <NEW_LINE> class CreatedBank(SlotAndTimestampBase): <NEW_LINE> <INDENT> parent: int <NEW_LINE> type: Literal["createdBank"]
Created bank update.
62598ee2462c4b4f79dba015
class DummyTestAnalyzer(analyzer.EventAnalyzer): <NEW_LINE> <INDENT> def __init__(self, name, inEventQueue, outQueue, config_dict=None, number=0): <NEW_LINE> <INDENT> analyzer.EventAnalyzer.__init__(self, name, inEventQueue, outQueue, config_dict, number) <NEW_LINE> <DEDENT> def analyze_alert(self): <NEW_LINE> <INDENT>...
Used to configre an analyzer to test against for analyzer name filter
62598ee21f037a2d8b9e2722
class ProfilePage(WebPage): <NEW_LINE> <INDENT> ui_map = { '用户名': XPath('//div[@id="name"]'), '性别': XPath('//div[@id="sex"]'), '年龄': XPath('//div[@id="age"]'), '公司': XPath('//div[@id="company"]') }
个人资料页
62598ee2a219f33f346c4e54
class ConfirmPasswordEmail(TLObject): <NEW_LINE> <INDENT> __slots__ = ["code"] <NEW_LINE> ID = 0x8fdf1920 <NEW_LINE> QUALNAME = "functions.account.ConfirmPasswordEmail" <NEW_LINE> def __init__(self, *, code: str): <NEW_LINE> <INDENT> self.code = code <NEW_LINE> <DEDENT> @staticmethod <NEW_LINE> def read(b: BytesIO, *ar...
Attributes: LAYER: ``112`` Attributes: ID: ``0x8fdf1920`` Parameters: code: ``str`` Returns: ``bool``
62598ee2d58c6744b42db5c4
class FormOne(forms.Form): <NEW_LINE> <INDENT> char_field = forms.CharField(label=u'CharField') <NEW_LINE> radio_field = forms.ChoiceField( widget=forms.RadioSelect, label=u'RadioSelect', choices=((x, 'choice %s' % x) for x in range(5)), help_text=u'Some field help text') <NEW_LINE> multiple_select_field = forms.Choice...
Exmaple form with several types of fields.
62598ee2f9cc0f698b1c45dc
class VpnClientConfiguration(Model): <NEW_LINE> <INDENT> _attribute_map = { 'vpn_client_address_pool': {'key': 'vpnClientAddressPool', 'type': 'AddressSpace'}, 'vpn_client_root_certificates': {'key': 'vpnClientRootCertificates', 'type': '[VpnClientRootCertificate]'}, 'vpn_client_revoked_certificates': {'key': 'vpnClien...
VpnClientConfiguration for P2S client. :param vpn_client_address_pool: The reference of the address space resource which represents Address space for P2S VpnClient. :type vpn_client_address_pool: ~azure.mgmt.network.v2018_02_01.models.AddressSpace :param vpn_client_root_certificates: VpnClientRootCertificate for vir...
62598ee24e4d562566370a34
class BokehJSONEncoder(json.JSONEncoder): <NEW_LINE> <INDENT> def transform_python_types(self, obj): <NEW_LINE> <INDENT> if is_datetime_type(obj): <NEW_LINE> <INDENT> return convert_datetime_type(obj) <NEW_LINE> <DEDENT> if is_timedelta_type(obj): <NEW_LINE> <INDENT> return convert_timedelta_type(obj) <NEW_LINE> <DEDEN...
A custom ``json.JSONEncoder`` subclass for encoding objects in accordance with the BokehJS protocol.
62598ee2435de62698e9a3f2
class CustomFps(bpy.types.Operator): <NEW_LINE> <INDENT> bl_idname = "object.slow_play" <NEW_LINE> bl_label = "Slow Play FPS" <NEW_LINE> bl_options = { 'REGISTER', 'UNDO' } <NEW_LINE> def execute(self, context): <NEW_LINE> <INDENT> F = context.scene.render.fps <NEW_LINE> if F == 1: <NEW_LINE> <INDENT> context.scene.ren...
Slow Play FPS
62598ee2bd1bec0571e143d9
class InvoiceListView(mixins.SuperPermissionsMixin, ListView): <NEW_LINE> <INDENT> template_name = 'super/invoice/index.html' <NEW_LINE> model = Invoice <NEW_LINE> context_object_name = 'invoices' <NEW_LINE> paginate_by = 10 <NEW_LINE> def get_queryset(self): <NEW_LINE> <INDENT> queryset = super(InvoiceListView, self)...
carpeta List View. Attributes: context_object_name (str): Description model (TYPE): Description template_name (str): Description
62598ee24428ac0f6e656b6e
class UndeleteBucketRequest(proto.Message): <NEW_LINE> <INDENT> name = proto.Field( proto.STRING, number=1, )
The parameters to ``UndeleteBucket``. Attributes: name (str): Required. The full resource name of the bucket to undelete. :: "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" ...
62598ee263b5f9789fe83781
class DeltaModel(object): <NEW_LINE> <INDENT> HEADERS = ["Well", "Surface","Grid TWT","Grid Z","Well TWT","Well Z","Delta TWT", "Delta Z"] <NEW_LINE> def __init__(self): <NEW_LINE> <INDENT> self.id = 0 <NEW_LINE> self.well = "" <NEW_LINE> self.surfaceName = None <NEW_LINE> self.gridTwt = 0 <NEW_LINE> self.gridZ = 0 <NE...
Stores calculated data
62598ee2baa26c4b54d4d8eb
class ProxyQueue(object): <NEW_LINE> <INDENT> def __init__(self, relay): <NEW_LINE> <INDENT> self.relay = relay <NEW_LINE> <DEDENT> def start(self): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> def flush(self): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> def enqueue(self, envelope): <NEW_LINE> <INDENT> try: <NEW_LINE>...
Class implementing the same interface as |Queue|, but proxies a message to a |Relay| service instead of storing and trying/retrying delivery. :param relay: |Relay| object used to attempt message deliveries.
62598ee25166f23b2e2419f2
class StdevStyle(PlotStyle): <NEW_LINE> <INDENT> lineProp = {"linestyle": "solid", "linewidth": 10, "alpha": 0.3, "color": "green", "marker": "", "zorder":-100 }
properties for drawind confidence interval for standart deviation
62598ee26aa9bd52df0d34ca
class IdentityMatrix(SquareMatrix): <NEW_LINE> <INDENT> def __init__(self, n, validate=True): <NEW_LINE> <INDENT> if validate is True: <NEW_LINE> <INDENT> assert(is_pos_integer(n)) <NEW_LINE> <DEDENT> self._array = np.identity(n)
A square matrix with ones on the main diagonal and zeros elsewhere.
62598ee2e1aae11d1e7cdb4c
class StoryElementStatusToBlackboard(Decorator): <NEW_LINE> <INDENT> def __init__( self, child, story_element_type, element_name ): <NEW_LINE> <INDENT> super(StoryElementStatusToBlackboard, self).__init__(name=child.name, child=child) <NEW_LINE> self.story_element_type = story_element_type <NEW_LINE> self.element_name ...
Reflect the status of the decorator's child story element to the blackboard. Args: child: the child behaviour or subtree story_element_type: the element type [act,scene,maneuver,event,action] element_name: the story element's name attribute
62598ee2090684286d5929ed
class UpdatePrivacy(Object): <NEW_LINE> <INDENT> ID = 0xee3b272a <NEW_LINE> def __init__(self, key, rules: list): <NEW_LINE> <INDENT> self.key = key <NEW_LINE> self.rules = rules <NEW_LINE> <DEDENT> @staticmethod <NEW_LINE> def read(b: BytesIO, *args) -> "UpdatePrivacy": <NEW_LINE> <INDENT> key = Object.read(b) <NEW_LI...
Attributes: ID: ``0xee3b272a`` Args: key: Either :obj:`PrivacyKeyStatusTimestamp <pyrogram.api.types.PrivacyKeyStatusTimestamp>`, :obj:`PrivacyKeyChatInvite <pyrogram.api.types.PrivacyKeyChatInvite>`, :obj:`PrivacyKeyPhoneCall <pyrogram.api.types.PrivacyKeyPhoneCall>` or :obj:`PrivacyKeyPhoneP2P <pyrogram.api....
62598ee2379a373c97d97617
class DefaultTranslator(OboTranslator): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> super(DefaultTranslator, self).__init__() <NEW_LINE> psiOntologyPath = aux.joinpath(os.path.dirname(aux.__file__), 'ontologies', 'psi-ms.obo' ) <NEW_LINE> unitOntologyPath = aux.joinpath(os.path.dirname(aux.__file__), 'o...
A class that provides access to OBO ontology terms used in mzML files and other file formats specified by the Proteomics Standards Initiative. Imports the files 'psi-ms.obo' and 'unit.obo' which are distributed together with maspy. Use :func:`maspy.ontology.DefaultTranslator.getNameWithId()` to get a terms 'name' by i...
62598ee22ae34c7f260a9704
class SendEmailInputSet(InputSet): <NEW_LINE> <INDENT> def set_AttachmentName(self, value): <NEW_LINE> <INDENT> InputSet._set_input(self, 'AttachmentName', value) <NEW_LINE> <DEDENT> def set_Attachment(self, value): <NEW_LINE> <INDENT> InputSet._set_input(self, 'Attachment', value) <NEW_LINE> <DEDENT> def set_BCC(self,...
An InputSet with methods appropriate for specifying the inputs to the SendEmail Choreo. The InputSet object is used to specify input parameters when executing this Choreo.
62598ee257b8e32f52507413
class ImageTransformer: <NEW_LINE> <INDENT> def __init__(self, data_augmentations: List[Tuple[str, Dict]]): <NEW_LINE> <INDENT> augmentations_list = [ self._get_augmentation(aug_name)(**params) for aug_name, params in data_augmentations] <NEW_LINE> self.data_aug = albumentations.Compose(augmentations_list) <NEW_LINE> <...
DataAugmentor for Image Classification. Args: data_augmentations: List of tuple(method: str, params :dict), each elems pass to albumentations
62598ee230bbd72246468255
class PyObjectTypeDescriptor(BaseTypeDescriptor): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> BaseTypeDescriptor.__init__(self) <NEW_LINE> <DEDENT> def generateReturnValueWrapper(self, classTypeDesc, file, userManagesMemory, needsDowncast, nesting): <NEW_LINE> <INDENT> indent(file, nesting, 'return retu...
This is a special type descriptor for a PyObject * parameter, which means a natural Python object of any type, to be passed through without molestation.
62598ee23cc13d1c6d463d89
class Bird: <NEW_LINE> <INDENT> def __init__(self, screen): <NEW_LINE> <INDENT> self.screen = screen <NEW_LINE> self.image = pygame.image.load('example_2/images/bird.png') <NEW_LINE> self.rect = self.image.get_rect() <NEW_LINE> self.screen_rect = screen.get_rect() <NEW_LINE> self.rect.centerx = self.screen_rect.centerx...
创建一个类,将该角色绘制到屏幕中央,并将该图像的背景色设置为屏幕背景色
62598ee22eb69b55b15a0698
class Invitation(object): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.swagger_types = { 'id': 'str', 'organization': 'str', 'email': 'str', 'expires_at': 'str', 'created_at': 'str', 'roles': 'list[Role]' } <NEW_LINE> self.attribute_map = { 'id': 'id', 'organization': 'organization', 'email': 'email...
NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.
62598ee207f4c71912bada71
class FigureAligner(SphinxTransform): <NEW_LINE> <INDENT> default_priority = 700 <NEW_LINE> def __init__(self, *args: Any, **kwargs: Any) -> None: <NEW_LINE> <INDENT> warnings.warn('FigureAilgner is deprecated.', RemovedInSphinx60Warning) <NEW_LINE> super().__init__(*args, **kwargs) <NEW_LINE> <DEDENT> def apply(self, ...
Align figures to center by default.
62598ee260cbc95b06362959
class LoginRequired(AxisException): <NEW_LINE> <INDENT> pass
User is logged out.
62598ee2627d3e7fe0e054a5
class MongoDBCollectionGetPropertiesOptions(OptionsResource): <NEW_LINE> <INDENT> _attribute_map = { 'throughput': {'key': 'throughput', 'type': 'int'}, 'autoscale_settings': {'key': 'autoscaleSettings', 'type': 'AutoscaleSettings'}, } <NEW_LINE> def __init__( self, **kwargs ): <NEW_LINE> <INDENT> super(MongoDBCollecti...
MongoDBCollectionGetPropertiesOptions. :param throughput: Value of the Cosmos DB resource throughput or autoscaleSettings. Use the ThroughputSetting resource when retrieving offer details. :type throughput: int :param autoscale_settings: Specifies the Autoscale settings. :type autoscale_settings: ~azure.mgmt.cosmosdb...
62598ee2851cf427c66b68ee
class UserEditForm(forms.ModelForm): <NEW_LINE> <INDENT> class Meta: <NEW_LINE> <INDENT> model = User <NEW_LINE> fields = ('first_name', 'last_name', 'email')
Allows to edit first name, last name, email.
62598ee2cb5e8a47e493b488
class Application(Flask): <NEW_LINE> <INDENT> test_client_class = clients.TestClient <NEW_LINE> request_class = Request <NEW_LINE> response_class = Response
Flask application.
62598ee216aa5153ce3feb1a
class JSONSink(BaseSink): <NEW_LINE> <INDENT> def read_config(self): <NEW_LINE> <INDENT> super().read_config() <NEW_LINE> self.set_default_config('indent', None) <NEW_LINE> <DEDENT> def run(self, path=None): <NEW_LINE> <INDENT> self.check_params(path, check_from_module=True) <NEW_LINE> outputfile = self._outputfile() <...
A module that prints the results from other modules to a file or standard output as a JSON object. Configuration: - **outfile** (str): If provided, saved to this file (absolute path) instead of standard output. CONSOLE is a special name: prints to standard output. - **file_exists** (str): If outfile exists, AP...
62598ee2fff4ab517ebcbe02
class ClaTree(object): <NEW_LINE> <INDENT> def __init__(self, root_name): <NEW_LINE> <INDENT> self.root = self.ClaNode(root_name, None, 0) <NEW_LINE> <DEDENT> def __str__(self): <NEW_LINE> <INDENT> return self.root.__str__() <NEW_LINE> <DEDENT> def add(self, name, parent_name): <NEW_LINE> <INDENT> self.root.add(name, p...
.claファイル中のクラス階層を表現するクラス
62598ee2442bda511e95aa84
class LogReturns(bt.Observer): <NEW_LINE> <INDENT> _stclock = True <NEW_LINE> lines = ('logret1',) <NEW_LINE> plotinfo = dict(plot=True, subplot=True) <NEW_LINE> params = ( ('timeframe', None), ('compression', None), ('fund', None), ) <NEW_LINE> def _plotlabel(self): <NEW_LINE> <INDENT> return [bt.TimeFrame.getname(sel...
This observer stores the *log returns* of the strategy or a Params: - ``timeframe`` (default: ``None``) If ``None`` then the complete return over the entire backtested period will be reported Pass ``TimeFrame.NoTimeFrame`` to consider the entire dataset with no time constraints - ``compression``...
62598ee245492302aabfaaca
@yorm.attr(latitude=CoordinateRange) <NEW_LINE> @yorm.attr(longitude=CoordinateRange) <NEW_LINE> class BoundingBox(AttributeDictionary): <NEW_LINE> <INDENT> def __init__(self, latitude, longitude): <NEW_LINE> <INDENT> super().__init__() <NEW_LINE> self.latitude = latitude <NEW_LINE> self.longitude = longitude
A GPS bounding box.
62598ee2e64d504609df86ce
class SqlManagedInstanceProperties(msrest.serialization.Model): <NEW_LINE> <INDENT> _validation = { 'provisioning_state': {'readonly': True}, } <NEW_LINE> _attribute_map = { 'data_controller_id': {'key': 'dataControllerId', 'type': 'str'}, 'admin': {'key': 'admin', 'type': 'str'}, 'start_time': {'key': 'startTime', 'ty...
Properties of sqlManagedInstance. Variables are only populated by the server, and will be ignored when sending a request. :param data_controller_id: null. :type data_controller_id: str :param admin: The instance admin user. :type admin: str :param start_time: The instance start time. :type start_time: str :param end_...
62598ee24e4d562566370a37
class IntentDeterminationEngine(pyee.EventEmitter): <NEW_LINE> <INDENT> def __init__(self, tokenizer=None, trie=None): <NEW_LINE> <INDENT> pyee.EventEmitter.__init__(self) <NEW_LINE> self.tokenizer = tokenizer or EnglishTokenizer() <NEW_LINE> self.trie = trie or Trie() <NEW_LINE> self.regular_expressions_entities = [] ...
IntentDeterminationEngine The IntentDeterminationEngine is a greedy and naive implementation of intent determination. Given an utterance, it uses the Adapt parsing tools to come up with a sorted collection of tagged parses. A valid parse result contains no overlapping tagged entities, and it's confidence is the sum of...
62598ee2d7e4931a7ef3a6bb
@register <NEW_LINE> class DisconnectArguments(BaseSchema): <NEW_LINE> <INDENT> __props__ = { "restart": { "type": "boolean", "description": "A value of true indicates that this 'disconnect' request is part of a restart sequence." }, "terminateDebuggee": { "type": "boolean", "description": "Indicates whether the debugg...
Arguments for 'disconnect' request. Note: automatically generated code. Do not edit manually.
62598ee2a8ecb0332586f806
class CustomArgumentParser(argparse.ArgumentParser): <NEW_LINE> <INDENT> def __init__(self, *args, **kwargs): <NEW_LINE> <INDENT> kwargs['conflict_handler'] = 'resolve' <NEW_LINE> super(CustomArgumentParser, self).__init__(*args, **kwargs) <NEW_LINE> print('Setting conflict_handler argument to \'resolve\'') <NEW_LINE> ...
Provides a wrapper around ArgumentParser to parse a configuration file along with other command-line arguments and override any configuration args with those provided via command-line. Supports nested structures (see help for methods below), and works for python3.5+.
62598ee2460517430c430aa5
class cesr_header: <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.condx = 0 <NEW_LINE> self.CERN_raw = 0 <NEW_LINE> self.CERN_scaled = 0.0
Holds CESR machine header fields
62598ee24f6381625f1987cb
class State: <NEW_LINE> <INDENT> controls = None <NEW_LINE> patterns = None <NEW_LINE> def __init__(self): <NEW_LINE> <INDENT> self.controls = {} <NEW_LINE> self.values = {} <NEW_LINE> self.loops = [] <NEW_LINE> <DEDENT> def set(self): <NEW_LINE> <INDENT> for name, value in self.values.items(): <NEW_LINE> <INDENT> self...
Encapsulates a set of commands that you couldn't possibly perform all at once.
62598ee297e22403b383950e
class VariableModelBeautifyHandler(BaseHandler): <NEW_LINE> <INDENT> REST_URL = "/platform/variable_models_beautify" <NEW_LINE> @authenticated <NEW_LINE> def post(self): <NEW_LINE> <INDENT> self.set_header('content-type', 'application/json') <NEW_LINE> body = self.request.body <NEW_LINE> try: <NEW_LINE> <INDENT> variab...
对variable进行美化输出,不进行存储
62598ee2498bea3a75a56153
class DevConfig(Config): <NEW_LINE> <INDENT> ENV = 'dev' <NEW_LINE> DEBUG = True <NEW_LINE> SQLALCHEMY_DATABASE_URI = os_env.get('DATABASE_URL', 'postgresql://recruit@localhost:5432/recruit') <NEW_LINE> WHOOSH_BASE = os.path.join(basedir, 'search.db') <NEW_LINE> ASSETS_DEBUG = True <NEW_LINE> CACHE_TYPE = 'simple'
Development configuration.
62598ee2009cb60464cffb6d
class PygameBackend(BaseBackend): <NEW_LINE> <INDENT> GL = GL <NEW_LINE> def __init__(self, win, *args, **kwargs): <NEW_LINE> <INDENT> BaseBackend.__init__(self, win) <NEW_LINE> pygame.init() <NEW_LINE> if win.allowStencil: <NEW_LINE> <INDENT> pygame.display.gl_set_attribute(pygame.locals.GL_STENCIL_SIZE, 8) <NEW_LINE>...
The pygame backend is built on SDL for cross-platform controls
62598ee27047854f4633d9f4
class ClusterRoleBindingList(_kuber_definitions.Collection): <NEW_LINE> <INDENT> def __init__( self, items: typing.List["ClusterRoleBinding"] = None, metadata: "ListMeta" = None, ): <NEW_LINE> <INDENT> super(ClusterRoleBindingList, self).__init__( api_version="rbac.authorization.k8s.io/v1alpha1", kind="ClusterRoleBindi...
ClusterRoleBindingList is a collection of ClusterRoleBindings. Deprecated in v1.17 in favor of rbac.authorization.k8s.io/v1 ClusterRoleBindings, and will no longer be served in v1.20.
62598ee2462c4b4f79dba019
class LatexBuilder(object): <NEW_LINE> <INDENT> def build_pdf(self, source, texinputs=[]): <NEW_LINE> <INDENT> raise NotImplementedError <NEW_LINE> <DEDENT> def is_available(self): <NEW_LINE> <INDENT> raise NotImplementedError
Base class for Latex builders.
62598ee2d7e4931a7ef3a6bc
class ImportLivre(Base): <NEW_LINE> <INDENT> __tablename__ = 'import' <NEW_LINE> id = Column(Integer, primary_key=True) <NEW_LINE> titre = Column(String(50), unique=False, nullable=True) <NEW_LINE> auteur = Column(String(100), unique=False, nullable=True) <NEW_LINE> isbn = Column(String(50), unique=True, nullable=True)...
Classe du modèle d'un enregistrement d'import Args: db ([type]): [description] Returns: [type]: [description]
62598ee2adb09d7d5dc08be6
class ExpResCriterion_DstResponded(ExpResCriterion): <NEW_LINE> <INDENT> CRITERION_NAME = "dst_responded" <NEW_LINE> AVAILABLE_FOR_MSM_TYPE = ["traceroute", "ping", "sslcert"] <NEW_LINE> MANDATORY_CFG_FIELDS = [] <NEW_LINE> OPTIONAL_CFG_FIELDS = [] <NEW_LINE> def __init__(self, cfg, expres): <NEW_LINE> <INDENT> ExpResC...
Criterion: dst_responded Verify if destination responded. Available for: traceroute, ping, sslcert. `dst_responded`: boolean indicating if the destination is expected to be responding or not. For ping, a destination is responding if a probe received at least one reply packet. For sslcert, a destination is respondin...
62598ee2627d3e7fe0e054a7
class DatetimeField(Field): <NEW_LINE> <INDENT> __slots__ = ('auto_now', 'auto_now_add') <NEW_LINE> def __init__(self, auto_now: bool = False, auto_now_add: bool = False, **kwargs) -> None: <NEW_LINE> <INDENT> if auto_now_add and auto_now: <NEW_LINE> <INDENT> raise ConfigurationError("You can choose only 'auto_now' or ...
Datetime field. ``auto_now`` and ``auto_now_add`` is exclusive. You can opt to set neither or only ONE of them. ``auto_now`` (bool): Always set to ``datetime.utcnow()`` on save. ``auto_now_add`` (bool): Set to ``datetime.utcnow()`` on first save only.
62598ee26e29344779afec4e
class SyncPlans(Base): <NEW_LINE> <INDENT> days = ['monday', 'tuesday', 'wednesday', 'thursday', 'friday', 'saturday', 'sunday'] <NEW_LINE> def __init__(self, cfg, org): <NEW_LINE> <INDENT> self.entity = "SyncPlan" <NEW_LINE> super().__init__(cfg, org) <NEW_LINE> <DEDENT> def next_day(self, weekday, hour): <NEW_LINE> <...
Forged SyncPlans object. Matches nailgun.entity.SyncPlans :param Base: forge.entities.Base :type Base: BaseClass :return: List of SyncPlans entities :rtype: list
62598ee27cff6e4e811b400c
class Templates: <NEW_LINE> <INDENT> @staticmethod <NEW_LINE> def options_buttons() -> List[Dict[str,str]]: <NEW_LINE> <INDENT> return [ FacebookHelper.post_back_button(messages.NEW_POST_TITLE, messages.NEW_POST_PAYLOAD), FacebookHelper.post_back_button(messages.CHECK_GROUPS_TITTLE, messages.CHECK_GROUPS_PAYLOAD), ] <N...
docstring for Templates
62598ee2cc0a2c1114479621
class SuperGroup(object): <NEW_LINE> <INDENT> def __init__(self, name, ordering = 0): <NEW_LINE> <INDENT> self.name = name <NEW_LINE> self.ordering = ordering <NEW_LINE> self.groups = list() <NEW_LINE> <DEDENT> def append(self, group): <NEW_LINE> <INDENT> if group not in self.groups: <NEW_LINE> <INDENT> self.groups.app...
Aggregates ConfigurationGroup's into super-groups that are used only for the presentation in the UI
62598ee216aa5153ce3feb1c
class FeedbackForm(FlaskForm): <NEW_LINE> <INDENT> title = StringField("Title", validators=[InputRequired(message="Title cannot be blank"), Length(max=100, message="Title must be less than 100 characters")]) <NEW_LINE> feedback = TextAreaField("Feedback", validators=[InputRequired(message="Feedback cannot be blank")])
Form for adding feedback.
62598ee2e64d504609df86cf
@_assemble(_acq480, 6) <NEW_LINE> class acq2106_acq480x6(_acq2106): <NEW_LINE> <INDENT> pass
ACQ2106 carrier with six ACQ480 modules.
62598ee267a9b606de5445ed
class Meta: <NEW_LINE> <INDENT> app_label = 'map_administrative' <NEW_LINE> verbose_name_plural = 'Districts' <NEW_LINE> ordering = ['name']
Meta Class
62598ee230bbd72246468259
class XSLTTemplateCache(Cache.FileSourcedCache): <NEW_LINE> <INDENT> def _load(self, path): <NEW_LINE> <INDENT> logger.debug(_F("requesting template at {0}", path)) <NEW_LINE> tpl = XSLTTemplate(self.site, path) <NEW_LINE> logger.debug(_F("template at {0} loaded ok", path)) <NEW_LINE> return tpl
A :class:`~PyXWF.Cache.FileSourcedCache` which is specialized for :class:`~XSLTTemplate` instances.
62598ee238b623060ffa76b6
class Stream: <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.data = deque() <NEW_LINE> self._idx = 0 <NEW_LINE> self._dataset = set() <NEW_LINE> <DEDENT> def __hash__(self): <NEW_LINE> <INDENT> return hash(id(self)) <NEW_LINE> <DEDENT> def append(self, data): <NEW_LINE> <INDENT> self.data.append((self...
Stream of data. It has an internal deque object.
62598ee22ae34c7f260a9708
class SRVResolver(object): <NEW_LINE> <INDENT> @staticmethod <NEW_LINE> def check_port(record: SRVRecord, socket_family: int, socket_type: int, timeout: int = 1) -> bool: <NEW_LINE> <INDENT> if socket_type == -1: <NEW_LINE> <INDENT> socket_type = SRVResolver.guess_socket_type(record.proto) <NEW_LINE> <DEDENT> with clos...
base srv resolver
62598ee232920d7e50bc464d
class ResetState(LambdaCallback): <NEW_LINE> <INDENT> def __init__(self, triggers=OnEveryEpoch(at=AT.END), priority=1): <NEW_LINE> <INDENT> triggers = as_list(triggers) <NEW_LINE> def reset(model: Model, _): <NEW_LINE> <INDENT> model.reset_state() <NEW_LINE> <DEDENT> super().__init__(fn=reset, triggers=triggers, priori...
ResetState Callback calls reset state on the model on the given triggers
62598ee292d797404e387e8b
class Number(object): <NEW_LINE> <INDENT> _FMT_STR = "".join([ "%(sign)s", "%(base_prefix)s", "%(left)s", "%(radix)s", "%(right)s", "%(repeating)s", "%(base_separator)s", "%(base_subscript)s" ]) <NEW_LINE> def __init__(self, config, base): <NEW_LINE> <INDENT> self.CONFIG = config <NEW_LINE> self.base = base <NEW_LINE> ...
Handle generic number display stuff. Returns modifications to the number string.
62598ee263b5f9789fe83785
class DeviceGroupPage(object): <NEW_LINE> <INDENT> swagger_types = { 'after': 'str', 'data': 'list[DeviceGroup]', 'has_more': 'bool', 'limit': 'int', 'object': 'str', 'order': 'str', 'total_count': 'int' } <NEW_LINE> attribute_map = { 'after': 'after', 'data': 'data', 'has_more': 'has_more', 'limit': 'limit', 'object':...
NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.
62598ee29c8ee8231303f468
class ThreadManager: <NEW_LINE> <INDENT> def __init__(self, maxConcurrentThreads): <NEW_LINE> <INDENT> self.maxConcurrentThreads = maxConcurrentThreads <NEW_LINE> self.fooThreads = {} <NEW_LINE> self.pendingFooThreadArgs = [] <NEW_LINE> <DEDENT> def _register_thread_completed(self, thread, *args): <NEW_LINE> <INDENT> d...
Manages many FooThreads. This involves starting and stopping said threads, and respecting a maximum num of concurrent threads limit
62598ee260cbc95b0636295d
class E20(VOTableSpecError): <NEW_LINE> <INDENT> message_template = "Data has more columns than are defined in the header ({})" <NEW_LINE> default_args = ('x',)
The table had only *x* fields defined, but the data itself has more columns than that.
62598ee2e5267d203ee69f25
class Water(Place): <NEW_LINE> <INDENT> def add_insect(self, insect): <NEW_LINE> <INDENT> game_print('added', insect, insect.watersafe) <NEW_LINE> super().add_insect( insect) <NEW_LINE> if not insect.watersafe: <NEW_LINE> <INDENT> insect.reduce_armor( insect.armor )
Water is a place that can only hold 'watersafe' insects.
62598ee2a79ad16197768639
class Provenance(domainresource.DomainResource): <NEW_LINE> <INDENT> resource_name = "Provenance" <NEW_LINE> def __init__(self, jsondict=None): <NEW_LINE> <INDENT> self.agent = None <NEW_LINE> self.entity = None <NEW_LINE> self.location = None <NEW_LINE> self.period = None <NEW_LINE> self.policy = None <NEW_LINE> self....
Who, What, When for a set of resources. Provenance of a resource is a record that describes entities and processes involved in producing and delivering or otherwise influencing that resource. Provenance provides a critical foundation for assessing authenticity, enabling trust, and allowing reproducibility. Provenance ...
62598ee23eb6a72ae0388c63
class BuildChartGroupException(ManifestException): <NEW_LINE> <INDENT> message = 'An error occurred while building chart group: %(details)s.'
An exception occurred while attempting to build the chart group for an Armada manifest. The exception will return with details as to why. **Troubleshoot:** *Coming Soon*
62598ee23c8af77a43b67243
class FlaskJsonClient(FlaskClient): <NEW_LINE> <INDENT> def open(self, path, json=None, **kwargs): <NEW_LINE> <INDENT> if json: <NEW_LINE> <INDENT> kwargs['data'] = flask.json.dumps(json) <NEW_LINE> kwargs['content_type'] = 'application/json' <NEW_LINE> kwargs.setdefault('method', 'POST') <NEW_LINE> <DEDENT> rv = super...
JSON-aware test client
62598ee24e4d562566370a3a
class BigWig(object): <NEW_LINE> <INDENT> def __init__(self, path): <NEW_LINE> <INDENT> self.bw = lib.bwOpen(path.encode(), ffi.NULL, "r") <NEW_LINE> self.path = path <NEW_LINE> <DEDENT> def close(self): <NEW_LINE> <INDENT> return lib.bwClose(self.bw) <NEW_LINE> <DEDENT> @property <NEW_LINE> def chroms(self): <NEW_LINE...
>>> b = BigWig("libBigWig/test/test.bw") >>> b BigWig('libBigWig/test/test.bw') >>> for interval in b("1", 0, 99): ... interval Interval(chrom='1', start=0, end=1, value=0.10000000149011612) Interval(chrom='1', start=1, end=2, value=0.20000000298023224) Interval(chrom='1', start=2, end=3, value=0.30000001192092896)...
62598ee266673b3332c2e9c9
class _Formatter(argparse.HelpFormatter): <NEW_LINE> <INDENT> @property <NEW_LINE> def _action_max_length(self): <NEW_LINE> <INDENT> return 16 <NEW_LINE> <DEDENT> @_action_max_length.setter <NEW_LINE> def _action_max_length(self, value): <NEW_LINE> <INDENT> pass
Format with a fixed argument width, due to bug in argparse measuring argument widths
62598ee2fff4ab517ebcbe06
class vonmises_gen(rv_continuous): <NEW_LINE> <INDENT> def _rvs(self, b): <NEW_LINE> <INDENT> return mtrand.vonmises(0.0, b, size=self._size) <NEW_LINE> <DEDENT> def _pdf(self, x, b): <NEW_LINE> <INDENT> return exp(b*cos(x)) / (2*pi*special.i0(b)) <NEW_LINE> <DEDENT> def _cdf(self, x, b): <NEW_LINE> <INDENT> return von...
A Von Mises continuous random variable. %(before_notes)s Notes ----- If `x` is not in range or `loc` is not in range it assumes they are angles and converts them to [-pi, pi] equivalents. The probability density function for `vonmises` is:: vonmises.pdf(x, b) = exp(b*cos(x)) / (2*pi*I[0](b)) for ``-pi <= x <= ...
62598ee224f1403a92684bb5
class SheetStream(object): <NEW_LINE> <INDENT> def __init__(self, name, payload): <NEW_LINE> <INDENT> self.name = name <NEW_LINE> self.payload = payload <NEW_LINE> self.colnames = [] <NEW_LINE> <DEDENT> def to_array(self): <NEW_LINE> <INDENT> return self.payload <NEW_LINE> <DEDENT> @property <NEW_LINE> def array(self):...
Memory efficient sheet representation This class wraps around the data read from pyexcel-io. Comparing with :class:`pyexcel.Sheet`, the instance of this class does not load all data into memory. Hence it performs better when dealing with big data. If you would like to do custom rendering for each row of the two dimen...
62598ee2e1aae11d1e7cdb4f
class TestGet(TestACMEAccount): <NEW_LINE> <INDENT> def test_need_acme_id(self): <NEW_LINE> <INDENT> acme = ACMEAccount(client=self.client) <NEW_LINE> self.assertRaises(TypeError, acme.get) <NEW_LINE> <DEDENT> @responses.activate <NEW_LINE> def test_acme_id(self): <NEW_LINE> <INDENT> acme_id = 1234 <NEW_LINE> api_url =...
Test the .get method.
62598ee20c0af96317c549bf
class ErrorSource(object): <NEW_LINE> <INDENT> openapi_types = { 'detail': 'str', 'status': 'str', 'source': 'dict(str, str)' } <NEW_LINE> attribute_map = { 'detail': 'detail', 'status': 'status', 'source': 'source' } <NEW_LINE> def __init__(self, detail=None, status=None, source=None): <NEW_LINE> <INDENT> self._detail...
NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech Do not edit the class manually.
62598ee2796e427e5384cdba
class RefreshThread(QThread): <NEW_LINE> <INDENT> _signal = pyqtSignal(str) <NEW_LINE> def __init__(self): <NEW_LINE> <INDENT> super(RefreshThread, self).__init__() <NEW_LINE> self.page = 1 <NEW_LINE> self.head = 'https://wallpapersite.com' <NEW_LINE> self.default_head = 'https://wallpapersite.com' <NEW_LINE> <DEDENT> ...
Refresh thread
62598ee266656f66f7d58a02
class PostSerializer(serializers.ModelSerializer): <NEW_LINE> <INDENT> class Meta: <NEW_LINE> <INDENT> model = Post <NEW_LINE> fields = ("id", "name")
专用于[FavPostDetailSerializer]的帖子序列化类
62598ee2379a373c97d9761d
class DenyOrganizationInvitationResponse(AbstractModel): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.RequestId = None <NEW_LINE> <DEDENT> def _deserialize(self, params): <NEW_LINE> <INDENT> self.RequestId = params.get("RequestId")
DenyOrganizationInvitation response structure.
62598ee2a8ecb0332586f80a
class SkliteLinearSVCClassifier(SKLiteBase): <NEW_LINE> <INDENT> @property <NEW_LINE> def class_(self): <NEW_LINE> <INDENT> return LinearSVC <NEW_LINE> <DEDENT> def build(self) -> dict: <NEW_LINE> <INDENT> data = {} <NEW_LINE> attributes = ["intercept_"] <NEW_LINE> for attr in attributes: <NEW_LINE> <INDENT> data[attr]...
LinearSVC implementation.
62598ee22ae34c7f260a9709
class ContentKeyPolicyClearKeyConfiguration(ContentKeyPolicyConfiguration): <NEW_LINE> <INDENT> _validation = { 'odatatype': {'required': True}, } <NEW_LINE> _attribute_map = { 'odatatype': {'key': '@odata\\.type', 'type': 'str'}, } <NEW_LINE> def __init__(self, **kwargs): <NEW_LINE> <INDENT> super(ContentKeyPolicyClea...
Represents a configuration for non-DRM keys. All required parameters must be populated in order to send to Azure. :param odatatype: Required. Constant filled by server. :type odatatype: str
62598ee2f548e778e5969bb7
class TagModelTests(TestCase): <NEW_LINE> <INDENT> def test_concrete_fields(self): <NEW_LINE> <INDENT> field_names = get_concrete_field_names(Tag) <NEW_LINE> expected_field_names = ["id", "name", "slug"] <NEW_LINE> self.assertEqual(field_names, expected_field_names) <NEW_LINE> <DEDENT> def test_name_uniqueness(self): <...
Tests for the Tag model
62598ee291f36d47f22301b4
class InquiryPriceScaleOutInstanceResponse(AbstractModel): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.OriginalCost = None <NEW_LINE> self.DiscountCost = None <NEW_LINE> self.Unit = None <NEW_LINE> self.PriceSpec = None <NEW_LINE> self.RequestId = None <NEW_LINE> <DEDENT> def _deserialize(self, par...
InquiryPriceScaleOutInstance返回参数结构体
62598ee2d7e4931a7ef3a6bf
class ExtendedRegexLexer(RegexLexer): <NEW_LINE> <INDENT> def get_tokens_unprocessed(self, text=None, context=None): <NEW_LINE> <INDENT> tokendefs = self._tokens <NEW_LINE> if not context: <NEW_LINE> <INDENT> ctx = LexerContext(text, 0) <NEW_LINE> statetokens = tokendefs['root'] <NEW_LINE> <DEDENT> else: <NEW_LINE> <IN...
A RegexLexer that uses a context object to store its state.
62598ee267a9b606de5445f0
class Technology(object): <NEW_LINE> <INDENT> def __init__( self, name, price, running_costs, num_scientists, level, max_level, query ): <NEW_LINE> <INDENT> self.name = name <NEW_LINE> self.price = price <NEW_LINE> self.running_costs = running_costs <NEW_LINE> self.num_scientists = num_scientists <NEW_LINE> self.level ...
Implement a piece of technology in the game. This is a base class for several other classes.
62598ee297e22403b3839512
class UniversalSet: <NEW_LINE> <INDENT> def __init__(self, universal_set): <NEW_LINE> <INDENT> self.__universal = True <NEW_LINE> self.__set = universal_set <NEW_LINE> <DEDENT> def __bool__(self): <NEW_LINE> <INDENT> return bool(self.__set) <NEW_LINE> <DEDENT> def __iter__(self): <NEW_LINE> <INDENT> return iter(self.__...
全集, 对集合进行与操作时, 避免第一次的与操作, 直接返回 other
62598ee2009cb60464cffb71
@trait <NEW_LINE> @mypyc_attr(allow_interpreted_subclasses=True) <NEW_LINE> class TypeVisitor(Generic[T]): <NEW_LINE> <INDENT> @abstractmethod <NEW_LINE> def visit_unbound_type(self, t: UnboundType) -> T: <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> @abstractmethod <NEW_LINE> def visit_any(self, t: AnyType) -> T: <NEW_...
Visitor class for types (Type subclasses). The parameter T is the return type of the visit methods.
62598ee221a7993f00c6458e
class ActorFactory(object): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.lastActorID = 0 <NEW_LINE> self.componentDict = {"SpriteRenderComponent": renderComponent.SpriteRenderComponent, "LineSegmentRenderComponent": renderComponent.LineSegmentRenderComponent, "ShapeRenderCompone...
Uses XML files to create game actors
62598ee27b25080760ed5abb
class Grid2GRUCell(GridRNNCell): <NEW_LINE> <INDENT> def __init__(self, num_units, tied=False, non_recurrent_fn=None, state_is_tuple=True, output_is_tuple=True): <NEW_LINE> <INDENT> super(Grid2GRUCell, self).__init__( num_units=num_units, num_dims=2, input_dims=0, output_dims=0, priority_dims=0, tied=tied, non_recurren...
2D LSTM cell. This creates a 2D cell which receives input and gives output in the first dimension. The first dimension can optionally be non-recurrent if `non_recurrent_fn` is specified.
62598ee244b2445a339b5c78
class JSONResponseMixin(object): <NEW_LINE> <INDENT> def render_to_json_response(self, context, **response_kwargs): <NEW_LINE> <INDENT> return HttpResponse( self.convert_context_to_json(context), content_type='application/json', **response_kwargs) <NEW_LINE> <DEDENT> @staticmethod <NEW_LINE> def convert_context_to_json...
A mixin that can be used to render a JSON response.
62598ee22eb69b55b15a069b
class ContactForm(FlaskForm): <NEW_LINE> <INDENT> name = StringField('Имя', [DataRequired()]) <NEW_LINE> email = StringField('Email', [DataRequired()]) <NEW_LINE> body = TextAreaField('Текст', [DataRequired(), Length(min=5, message='Your message is too short')]) <NEW_LINE> submit = SubmitField('Отправить')
Contact Form
62598ee299cbb53fe682f4d3
class Coord(Structure): <NEW_LINE> <INDENT> _fields_ = [ ("X", SHORT), ("Y", SHORT)]
struct in wincon.h.
62598ee27cff6e4e811b4010
class Signal: <NEW_LINE> <INDENT> def GetPDF(self, X,Y): <NEW_LINE> <INDENT> if isinstance(X, np.ndarray) and isinstance(Y, np.ndarray): <NEW_LINE> <INDENT> if X.size == Y.size: <NEW_LINE> <INDENT> print("The signal is not defined. (this is pure class) Returning zero signal for all") <NEW_LINE> return np.zeros(X.shape)...
시그널을 정의하기위한 기반 클래스 Attributes ---------- None
62598ee2d7e4931a7ef3a6c0
class EdgeConstraints: <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> pass
Represents constraints on routing of an edge on a SpiNNaker board. **TODO**: decide upon implementation and usage.
62598ee23c8af77a43b67244
class RuntimeResponseGenericRuntimeResponseTypeSuggestion( RuntimeResponseGeneric): <NEW_LINE> <INDENT> def __init__(self, response_type: str, title: str, suggestions: List['DialogSuggestion']) -> None: <NEW_LINE> <INDENT> self.response_type = response_type <NEW_LINE> self.title = title <NEW_LINE> self.suggestions = su...
An object that describes a response with response type `suggestion`. :attr str response_type: The type of response returned by the dialog node. The specified response type must be supported by the client application or channel. :attr str title: The title or introductory text to show before the response. :attr Li...
62598ee29c8ee8231303f469
class BindGroupUsers(GuardianView): <NEW_LINE> <INDENT> def get(self, request, group_id): <NEW_LINE> <INDENT> group = self.me.groups.get(id=group_id, organization=self.me.default) <NEW_LINE> users = self.me.default.users.all() <NEW_LINE> excluded = users.exclude(groups=group) <NEW_LINE> total = excluded.count() <...
The listed users are supposed to belong to the logged user default organization. It also checks if the user belongs to the group in order to list its users.
62598ee216aa5153ce3feb20
class TestContainerProjectListResult(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 testContainerProjectListResult(self): <NEW_LINE> <INDENT> pass
ContainerProjectListResult unit test stubs
62598ee224f1403a92684bb6
class Encoder(BaseRNN): <NEW_LINE> <INDENT> def __init__(self, vocab_size, max_len, word_vec_dim, hidden_size, n_layers, input_dropout_p=0., dropout_p=0., bidirectional=False, rnn_cell='lstm', variable_lengths=False, word2vec=None, fix_embedding=False): <NEW_LINE> <INDENT> super(Encoder, self).__init__(vocab_size, max_...
Encoder RNN module
62598ee266673b3332c2e9cb
class ResidualScaledDotProductAttention(keras.layers.Layer): <NEW_LINE> <INDENT> def __init__(self, return_attention=False, history_only=False, **kwargs): <NEW_LINE> <INDENT> super().__init__(**kwargs) <NEW_LINE> self.supports_masking = True <NEW_LINE> self.return_attention = return_attention <NEW_LINE> self.history_on...
The attention layer that takes three inputs representing queries, keys and values. \text{Attention}(Q, K, V, Prev) = \text{softmax}(\frac{Q K^T}{\sqrt{d_k}} + Prev) V See: https://arxiv.org/pdf/1706.03762.pdf
62598ee2097d151d1a2bf642
class DataProviderBase(object): <NEW_LINE> <INDENT> def __init__(self, extern_data, data_keys): <NEW_LINE> <INDENT> self.coord = tf.train.Coordinator() <NEW_LINE> self.extern_data = extern_data <NEW_LINE> if data_keys is None: <NEW_LINE> <INDENT> data_keys = extern_data.data.keys() <NEW_LINE> <DEDENT> self.data_keys = ...
Base class which wraps up the logic in this class. See derived classes.
62598ee2aad79263cf42ce39
class UnaryFunction0D: <NEW_LINE> <INDENT> name: str = None
Base class for Unary Functions (functors) working on Interface0DIterator. A unary function will be used by invoking __call__() on an Interface0DIterator. In Python, several different subclasses of UnaryFunction0D are used depending on the types of functors’ return values. For example, you would inherit from a UnaryFunc...
62598ee2fff4ab517ebcbe07
class DownloadButton(Filter): <NEW_LINE> <INDENT> def __init__(self, label, url, route_func): <NEW_LINE> <INDENT> opts = { "url": url, "label": label } <NEW_LINE> super(DownloadButton, self).__init__( "DownloadButton", opts, route_func)
Download Button. A simple download button. Args: label (str): label of the button. url (str): endpoint to call upon click. route_func (function): endpoint function.
62598ee2e5267d203ee69f28
class MultiValuedVariant(AbstractVariant): <NEW_LINE> <INDENT> @implicit_variant_conversion <NEW_LINE> def satisfies(self, other): <NEW_LINE> <INDENT> if other.name != self.name: <NEW_LINE> <INDENT> return False <NEW_LINE> <DEDENT> return all(v in self.value for v in other.value)
A variant that can hold multiple values at once.
62598ee2b7558d5895461c6f
class Minihummer(Robot): <NEW_LINE> <INDENT> def __init__(self, name = None, debug = True): <NEW_LINE> <INDENT> Robot.__init__(self, 'TestEnv/robots/MiniHummer.blend', name) <NEW_LINE> self.properties(classpath = "TestEnv.robots.MiniHummer.Minihummer") <NEW_LINE> self.add_default_interface('socket') <NEW_LINE> self.mot...
A template robot model for MiniHummer, with a motion controller and a pose sensor.
62598ee2090684286d5929f1