code
stringlengths
4
4.48k
docstring
stringlengths
1
6.45k
_id
stringlengths
24
24
class ConsumptionPreferences(): <NEW_LINE> <INDENT> def __init__(self, consumption_preference_id, name, score): <NEW_LINE> <INDENT> self.consumption_preference_id = consumption_preference_id <NEW_LINE> self.name = name <NEW_LINE> self.score = score <NEW_LINE> <DEDENT> @classmethod <NEW_LINE> def _from_dict(cls, _dict):...
A consumption preference that the service inferred from the input content. :attr str consumption_preference_id: The unique, non-localized identifier of the consumption preference to which the results pertain. IDs have the form `consumption_preferences_{preference}`. :attr str name: The user-visible, locali...
62598f7250485f2cf55da7d1
class Update_Runs_From_Database(Manager): <NEW_LINE> <INDENT> __version = '0.0.1' <NEW_LINE> def hax_init(self, force_reload = False, main_data_paths = ['/project2/lgrandi/xenon1t/processed/pax_v6.8.0'], minitree_paths = ['/scratch/midway2/zhut/data/SingleScatter/data/minitrees']): <NEW_LINE> <INDENT> if (not len(hax.c...
Check the run database by calling hax
62598f7215fb5d323ce7e588
class NoOpErrorHandler(BaseErrorHandler): <NEW_LINE> <INDENT> pass
Class providing handle_error method which suppresses the error.
62598f726fece00bbaccb1ec
class Members(Resource): <NEW_LINE> <INDENT> def __init__(self, members_s): <NEW_LINE> <INDENT> super(Members, self).__init__(members_s) <NEW_LINE> self._meta_data['required_json_kind'] = 'tm:ltm:pool:members:membersstate' <NEW_LINE> self._meta_data['required_creation_parameters'].update(('partition',)) <NEW...
BIG-IP® LTM pool members sub-collection resource
62598f7266656f66f7d59c52
class Tile(APIView): <NEW_LINE> <INDENT> renderer_classes = (PNGRenderer, JPEGRenderer) <NEW_LINE> def __init__(self): <NEW_LINE> <INDENT> super().__init__() <NEW_LINE> self.data_type = None <NEW_LINE> self.bit_depth = None <NEW_LINE> <DEDENT> def get(self, request, collection, experiment, channel, orientation, tile_si...
View to handle tile interface when accessing via tile indicies * Requires authentication.
62598f7230c21e258be98065
@mock.patch('reckoner.importer.get_values') <NEW_LINE> @mock.patch('reckoner.importer.list_release') <NEW_LINE> class TestDraftRelease(unittest.TestCase): <NEW_LINE> <INDENT> def test_basic_import(self, mock_values, mock_release): <NEW_LINE> <INDENT> mock_release.return_value = {"test_value_one": "one_value_test"} <NEW...
Test importer.draft_release
62598f7223e79379d538bd58
class SystemInfoMissingJson(DiscoveryException): <NEW_LINE> <INDENT> pass
Command did not produce stdout containing JSON.
62598f7230c21e258be98066
@dataclass <NEW_LINE> class InformationContentEntity(YAMLRoot): <NEW_LINE> <INDENT> _inherited_slots: ClassVar[List[str]] = [] <NEW_LINE> class_class_uri: ClassVar[URIRef] = ALLIANCE.InformationContentEntity <NEW_LINE> class_class_curie: ClassVar[str] = "alliance:InformationContentEntity" <NEW_LINE> class_name: ClassVa...
a piece of information that typically describes some topic of discourse or is used as support. Precedence of identifiers for references is as follows: PMID if available; DOI if not; actual alternate CURIE otherwise.
62598f72a4f1c619b294de4e
class SimpleCoinbaser(object): <NEW_LINE> <INDENT> def __init__(self, bitcoin_rpc, address): <NEW_LINE> <INDENT> self.on_load = defer.Deferred() <NEW_LINE> self.address = address <NEW_LINE> self.is_valid = False <NEW_LINE> self.bitcoin_rpc = bitcoin_rpc <NEW_LINE> self._validate() <NEW_LINE> <DEDENT> def _validate(self...
This very simple coinbaser uses constant novacoin address for all generated blocks.
62598f723eb6a72ae0389ea5
class Verifier(metaclass=abc.ABCMeta): <NEW_LINE> <INDENT> def __init__(self, stmt): <NEW_LINE> <INDENT> self.stmt = stmt <NEW_LINE> <DEDENT> @abc.abstractmethod <NEW_LINE> def check_responses_consistency(self, response, response_dict=None): <NEW_LINE> <INDENT> return False <NEW_LINE> <DEDENT> def process_precommitment...
An abstract interface representing Prover used in sigma protocols
62598f72dc8b845886d52e16
class DummyMeetingUser: <NEW_LINE> <INDENT> security = ClassSecurityInfo() <NEW_LINE> def __init__(self, id): self.id = id <NEW_LINE> security.declarePublic('Title') <NEW_LINE> def Title(self): return '<Deleted user>'
Used as a replacement for a MeetingUser when it has been deleted.
62598f72d99f1b3c44d04f19
class DataType(object): <NEW_LINE> <INDENT> _singleton = True <NEW_LINE> _type_id = -1 <NEW_LINE> __slots__ = 'nullable', <NEW_LINE> def __new__(cls, *args, **kwargs): <NEW_LINE> <INDENT> if cls._singleton: <NEW_LINE> <INDENT> if not hasattr(cls, '_instance'): <NEW_LINE> <INDENT> cls._instance = object.__new__(cls) <NE...
Abstract data type
62598f72d53ae8145f917cfa
class Directory(StaticDirectory, _DocMixin): <NEW_LINE> <INDENT> internal = True <NEW_LINE> excludePatterns = utils.fileExcludePatterns + ["*/%s"%_ConfFile, "*/_*"] <NEW_LINE> def __init__(self, name, src=None, namespace=None): <NEW_LINE> <INDENT> self.stdHeaders = [] <NEW_LINE> name, self.src = self._nameSrc(name, src...
A directory that auto-constructs its contents.
62598f727b25080760ed6d02
class object_grid(object): <NEW_LINE> <INDENT> def __init__(self,nx,ny,dx=None,dy=None): <NEW_LINE> <INDENT> self.grid = np.zeros((nx,ny)) <NEW_LINE> self.dx = dx <NEW_LINE> self.dy = dy <NEW_LINE> <DEDENT> def set_grid_spacing(self,dx,dy): <NEW_LINE> <INDENT> self.dx = dx <NEW_LINE> self.dy = dy <NEW_LINE> <DEDENT> de...
An object grid class which can be used to maintain a grid of objects, which can be used to dynamically add objects to the same grid.
62598f7276d4e153a661c476
class PRAC3D(CrackProperty): <NEW_LINE> <INDENT> type = 'PRAC3D' <NEW_LINE> _field_map = { 1: 'pid', 2:'mid', 3:'gamma', 4:'phi', } <NEW_LINE> def __init__(self, pid, mid, gamma=0.5, phi=180., comment=''): <NEW_LINE> <INDENT> CrackProperty.__init__(self) <NEW_LINE> if comment: <NEW_LINE> <INDENT> self.comment = comment...
CRAC3D Element Property Defines the properties of the CRAC3D structural element.
62598f72cad5886f8bdc4b86
class MethodRequestEmptyBodyBase(MethodRequest): <NEW_LINE> <INDENT> _validation = { 'method_name': {'required': True, 'readonly': True}, 'name': {'required': True}, } <NEW_LINE> _attribute_map = { 'method_name': {'key': 'methodName', 'type': 'str'}, 'api_version': {'key': '@apiVersion', 'type': 'str'}, 'name': {'key':...
MethodRequestEmptyBodyBase. You probably want to use the sub-classes and not this class directly. Known sub-classes are: LivePipelineActivateRequest, LivePipelineDeactivateRequest, LivePipelineDeleteRequest, LivePipelineGetRequest, PipelineTopologyDeleteRequest, PipelineTopologyGetRequest, RemoteDeviceAdapterDeleteReq...
62598f72b57a9660fecd12e4
class ApiException(Exception): <NEW_LINE> <INDENT> def __init__(self, message, status=400): <NEW_LINE> <INDENT> self.message = message <NEW_LINE> self.status = status <NEW_LINE> <DEDENT> def to_result(self): <NEW_LINE> <INDENT> return ApiResult( {'message': self.message}, status=self.status )
Api Errors.
62598f729b70327d1c57e612
class Context(object): <NEW_LINE> <INDENT> def __init__(self, strategy): <NEW_LINE> <INDENT> self.__strategy = strategy <NEW_LINE> <DEDENT> def do_calculate(self): <NEW_LINE> <INDENT> self.__strategy.calculate()
上下文, 维护一个对strategy对象的引用
62598f7266673b3332c2fc25
class AccessError(HTTPError): <NEW_LINE> <INDENT> pass
Raise on HTTP access error.
62598f72d18da76e235b6d69
class CommandEnvironment(TaskEnvironment): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> super().__init__() <NEW_LINE> self.handles["commands"] = self.valid_command <NEW_LINE> <DEDENT> def valid_command( self, entry: dict, _: str, __: dict = None, deps_changed: List[str] = None, logger: logging.Logger = l...
Exposes command-line commanding capability to the environment.
62598f72711fe17d825dff4a
@gin.configurable <NEW_LINE> class QPolicy(tf_policy.Base): <NEW_LINE> <INDENT> def __init__(self, time_step_spec, action_spec, q_network, emit_log_probability=False, observation_and_action_constraint_splitter=None, name=None): <NEW_LINE> <INDENT> network_action_spec = getattr(q_network, 'action_spec', None) <NEW_LINE>...
Class to build Q-Policies.
62598f724e696a045264da30
class CycloneHTTPClient(threading.local): <NEW_LINE> <INDENT> def __init__(self, host, port, format='pickle'): <NEW_LINE> <INDENT> assert format in ('json', 'pickle', None) <NEW_LINE> self.host = host <NEW_LINE> self.port = port <NEW_LINE> self.format = format <NEW_LINE> <DEDENT> def read(self, key_names, start_time=No...
Cyclone HTTP interface client. The HTTP interface serves only read queries. This client can request data from the server in either pickle or JSON format; generally pickle is faster but harder to debug.
62598f726fece00bbaccb1f0
class RelGCNReadout(chainer.Chain): <NEW_LINE> <INDENT> def __init__(self, in_channels, out_channels, nobias=True): <NEW_LINE> <INDENT> super(RelGCNReadout, self).__init__() <NEW_LINE> with self.init_scope(): <NEW_LINE> <INDENT> self.sig_linear = GraphLinear( in_channels, out_channels, nobias=nobias) <NEW_LINE> self.ta...
RelGCN submodule for updates
62598f72167d2b6e312b67e2
class SafeExceptionReporterFilter(ExceptionReporterFilter): <NEW_LINE> <INDENT> def is_active(self, request): <NEW_LINE> <INDENT> return settings.DEBUG is False <NEW_LINE> <DEDENT> def get_cleansed_multivaluedict(self, request, payload): <NEW_LINE> <INDENT> sensitive_post_parameters = getattr(request, 'sensitive_post_p...
Use annotations made by the sensitive_post_parameters and sensitive_variables decorators to filter out sensitive information.
62598f7223e79379d538bd5c
class ArmedStatus(Enum): <NEW_LINE> <INDENT> DISARMED = "0" <NEW_LINE> ARMED_AWAY = "1" <NEW_LINE> ARMED_STAY = "2" <NEW_LINE> ARMED_STAY_INSTANT = "3" <NEW_LINE> ARMED_TO_NIGHT = "4" <NEW_LINE> ARMED_TO_NIGHT_INSTANT = "5" <NEW_LINE> ARMED_TO_VACATION = "6"
Area arming status: armed status
62598f72796e427e5384dffc
class InlineQueryResultCachedAudio(InlineQueryResult): <NEW_LINE> <INDENT> def __init__(self, id: str, audio_file_id: str, caption: str = None, reply_markup: 'ReplyMarkup' = None, input_message_content: 'InputMessageContent' = None, parse_mode: Union[str, DefaultValue] = DEFAULT_NONE, **kwargs: Any): <NEW_LINE> <INDENT...
Represents a link to an mp3 audio file stored on the Telegram servers. By default, this audio file will be sent by the user. Alternatively, you can use :attr:`input_message_content` to send a message with the specified content instead of the audio. Attributes: type (:obj:`str`): 'audio'. id (:obj:`str`): Uniqu...
62598f7230dc7b766599f0c3
class User(Endpoint): <NEW_LINE> <INDENT> url = "/users/<user>" <NEW_LINE> def handle(self, user): <NEW_LINE> <INDENT> settings = get_settings(user, self.config.storage, self.config.directory) <NEW_LINE> return {**settings, "user": user}
User settings lookup. Gets the JSON representation of the current experiment settings for a given user ID.
62598f7226238365f5fac3dc
class Multinomial(Categorical): <NEW_LINE> <INDENT> def __init__(self,weights=None,alpha_0=None,K=None,alphav_0=None,alpha_mf=None, N=1): <NEW_LINE> <INDENT> self.N = N <NEW_LINE> super(Multinomial, self).__init__(weights,alpha_0,K,alphav_0,alpha_mf) <NEW_LINE> <DEDENT> def log_likelihood(self,x): <NEW_LINE> <INDENT> a...
Like Categorical but the data are counts, so _get_statistics is overridden (though _get_weighted_statistics can stay the same!). log_likelihood also changes since, just like for the binomial special case, we sum over all possible orderings. For example, if K == 3, then a sample with n=5 might be array([2,2,1]) A ...
62598f72287bf620b627141d
class Solution: <NEW_LINE> <INDENT> def searchMatrix(self, matrix: List[List[int]], target: int) -> bool: <NEW_LINE> <INDENT> for i in matrix: <NEW_LINE> <INDENT> if target in i:return True <NEW_LINE> else:continue <NEW_LINE> <DEDENT> return False
二分:根据索引二分
62598f7223e79379d538bd5d
class BlobFetcher(Process): <NEW_LINE> <INDENT> def __init__(self, **kwargs): <NEW_LINE> <INDENT> super(BlobFetcher, self).__init__() <NEW_LINE> self._batch_size = kwargs.get('batch_size', 100) <NEW_LINE> self._partition = kwargs.get('partition', False) <NEW_LINE> if self._partition: <NEW_LINE> <INDENT> self._batch_si...
BlobFetcher is deployed to queue blobs from `DataTransformer`_. It is supported to form ``NCHW`` image blobs and ``1D`` label blobs.
62598f72b57a9660fecd12e6
class ResponseStatusError(Exception): <NEW_LINE> <INDENT> def __init__(self, status: int): <NEW_LINE> <INDENT> self.status = status <NEW_LINE> super().__init__(status) <NEW_LINE> <DEDENT> def __str__(self): <NEW_LINE> <INDENT> return f"<{self.status}>"
Indicate that the Request failed with incorrect Response's status.
62598f728e05c05ec3f6ea79
class Watchlist(object): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.name = None <NEW_LINE> self.group_name = None <NEW_LINE> self.securities = {} <NEW_LINE> <DEDENT> @classmethod <NEW_LINE> def from_list(cls, data: list): <NEW_LINE> <INDENT> inst = cls() <NEW_LINE> for item in data: <NEW_LINE> <IN...
Watchlist Class
62598f721d351010ab8f33a6
class keyword(item): <NEW_LINE> <INDENT> def __init__(self, sString): <NEW_LINE> <INDENT> item.__init__(self, sString)
unique_id = parser : keyword
62598f72dc8b845886d52e1a
class JSONDataToInsertQueryTranslator(BaseDataToInsertQueryTranslator): <NEW_LINE> <INDENT> def translate_data_to_object(self): <NEW_LINE> <INDENT> rows = [] <NEW_LINE> if isinstance(self.data_provider, str): <NEW_LINE> <INDENT> try: <NEW_LINE> <INDENT> with self.file_reader as read_file: <NEW_LINE> <INDENT> rows = jso...
A class to translate data from JSON data_provider to sql insert requests
62598f72ac7a0e7691f71d7e
class DistributionListMemberJson(object): <NEW_LINE> <INDENT> swagger_types = { 'id': 'str', 'voicemail_id': 'str', 'alias': 'str', 'display_name': 'str' } <NEW_LINE> attribute_map = { 'id': 'id', 'voicemail_id': 'voicemailId', 'alias': 'alias', 'display_name': 'displayName' } <NEW_LINE> def __init__(self, id=None, voi...
NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.
62598f721f037a2d8b9e3956
class orbiting_screen: <NEW_LINE> <INDENT> t0=0. <NEW_LINE> t1=1000. <NEW_LINE> trajectory=None <NEW_LINE> def __init__(self, **args): <NEW_LINE> <INDENT> for key in args: <NEW_LINE> <INDENT> setattr(self, key, args[key]) <NEW_LINE> <DEDENT> <DEDENT> def __call__(self, sc, k, nframes): <NEW_LINE> <INDENT> t = self.t0+k...
The screen follows an orbit, camera looks along -er members: t0 -- proper time at movie start t1 -- proper time at movie end trajectory -- a gyoto.std.Star (or anything else that provides getCoord(t, coord, proper).
62598f721f5feb6acb16249f
class ImageMsg(Msg): <NEW_LINE> <INDENT> def __init__(self, xmlData): <NEW_LINE> <INDENT> super().__init__(xmlData) <NEW_LINE> self.PicUrl = xmlData.find('PicUrl').text <NEW_LINE> self.MediaId = xmlData.find('MediaId').text
图片消息类
62598f72d53ae8145f917cfe
class FunctionalityResetCommand(FunctionalityCommand): <NEW_LINE> <INDENT> def __call__(self, args): <NEW_LINE> <INDENT> super(FunctionalityResetCommand, self).__call__(args) <NEW_LINE> act = DeleteAction() <NEW_LINE> act.init(args, self.ls, self.ls.funcs) <NEW_LINE> return act.delete([args.identifier,]) <NEW_LINE> <DE...
Reset a functionality.
62598f720383005118f6cf6b
class SuppliersRouter(object): <NEW_LINE> <INDENT> def db_for_read(self, model, **hints): <NEW_LINE> <INDENT> if model._meta.app_label == 'suppliers': <NEW_LINE> <INDENT> return 'suppliers_db' <NEW_LINE> <DEDENT> return None <NEW_LINE> <DEDENT> def db_for_write(self, model, **hints): <NEW_LINE> <INDENT> if model._meta....
A router to control all database operations on models in the suppliers application.
62598f72b57a9660fecd12e8
class Validator(common.SourceLocation): <NEW_LINE> <INDENT> def __init__(self, file_name, line, column): <NEW_LINE> <INDENT> self.gt = None <NEW_LINE> self.lt = None <NEW_LINE> self.gte = None <NEW_LINE> self.lte = None <NEW_LINE> self.callback = None <NEW_LINE> super(Validator, self).__init__(file_name, line, column)
An instance of a validator for a field. The validator must include at least one of the defined validation predicates. If more than one is included, they must ALL evaluate to true.
62598f729b70327d1c57e616
class DrmCommunicationError(Drmaa2Exception): <NEW_LINE> <INDENT> def __init__(self, error=''): <NEW_LINE> <INDENT> Drmaa2Exception.__init__(self, error=error, error_code=StatusCode.DRM_COMMUNICATION)
DRM could not be contacted. The problem may or may not be transient.
62598f728e05c05ec3f6ea7a
class SqlTableReader(SqlTableReaderGeneric): <NEW_LINE> <INDENT> def __init__(self, query, conn=None, **kwargs): <NEW_LINE> <INDENT> if conn==None: <NEW_LINE> <INDENT> conn = sqlConnection(**kwargs) <NEW_LINE> <DEDENT> self.cursor = conn.cursor() <NEW_LINE> self.rows = self.cursor.execute(query) <NEW_LINE> self.data = ...
Read rows from mysql table, will keep whole table in memory " >>> conn = MySQLdb.connect(read_default_file="~/.my.cnf") >>> p = SqlTableReader("show variables like '%protocol_version%';", conn) >>> list(p.generateRows()) [MysqlRow(Variable_name='protocol_version', Value='10')]
62598f72ac7a0e7691f71d80
class LinUCBSafePolicy(Policy): <NEW_LINE> <INDENT> def __init__(self, context_dim, num_arms, alpha=0.5): <NEW_LINE> <INDENT> self.context_dim = context_dim <NEW_LINE> self.num_arms = num_arms <NEW_LINE> self.alpha = alpha <NEW_LINE> self.reset() <NEW_LINE> <DEDENT> def reset(self): <NEW_LINE> <INDENT> self.step = 0 <N...
Exactly the same as LinUCB, except we don't allow risky exploration: - Explore high when greedy action is low, OR - Explore low when greedy action is high
62598f72c432627299fa2840
@register <NEW_LINE> class PydevdPlatformInfo(BaseSchema): <NEW_LINE> <INDENT> __props__ = { "name": { "type": "string", "description": "Name of the platform as returned by 'sys.platform'." } } <NEW_LINE> __refs__ = set() <NEW_LINE> __slots__ = list(__props__.keys()) + ['kwargs'] <NEW_LINE> def __init__(self, name=None...
This object contains python version and implementation details. Note: automatically generated code. Do not edit manually.
62598f72b57a9660fecd12e9
class TestAlgorithms: <NEW_LINE> <INDENT> @staticmethod <NEW_LINE> def test_find_index_1(): <NEW_LINE> <INDENT> arr = [1, 2, 3, 3, 4, 5, 6] <NEW_LINE> i = algorithms.find_index(arr, 0) <NEW_LINE> assert i == 0 <NEW_LINE> <DEDENT> @staticmethod <NEW_LINE> def test_find_index_2(): <NEW_LINE> <INDENT> arr = [1, 2, 3, 3, 4...
Tests for "common.algorithms" module.
62598f72be8e80087fbbe8c8
class LdapUserGroup(ldapdb.models.Model): <NEW_LINE> <INDENT> class Meta: <NEW_LINE> <INDENT> verbose_name = "Grupa użytkownika LDAP" <NEW_LINE> verbose_name_plural = "Grupy użytkowników LDAP" <NEW_LINE> <DEDENT> base_dn = "ou=usergroups," + LDAP_SUFFIX <NEW_LINE> object_classes = ['usergroups', 'top'] <NEW_LINE> name ...
Klasa reprezentująca grupę stworzoną przez danego użytkownika w bazie LDAP
62598f7230c21e258be9806e
class _ProactorEventLoop(asyncio.ProactorEventLoop): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> super().__init__(_IocpProactor()) <NEW_LINE> self.__event_signaller = _make_signaller(QtCore, list) <NEW_LINE> self.__event_signal = self.__event_signaller.signal <NEW_LINE> self.__event_signal.connect(self....
Proactor based event loop.
62598f72d4950a0f3b110a6c
class Group(models.Model): <NEW_LINE> <INDENT> slug = models.SlugField(verbose_name=_('slug'), max_length=50, unique=True) <NEW_LINE> name = models.CharField(verbose_name=_('name'), max_length=100) <NEW_LINE> about = models.TextField(verbose_name=_('description'), blank=True, null=True) <NEW_LINE> email = models.EmailF...
APM groups are used to handle permissions. They are not related to VHFFS groups (projects)
62598f726aa9bd52df0d473f
class Cp2kBsseParser(Cp2kBaseParser): <NEW_LINE> <INDENT> def _parse_stdout(self): <NEW_LINE> <INDENT> fname = self.node.get_attribute('output_filename') <NEW_LINE> if fname not in self.retrieved.list_object_names(): <NEW_LINE> <INDENT> return self.exit_codes.ERROR_OUTPUT_STDOUT_MISSING <NEW_LINE> <DEDENT> try: <NEW_LI...
Advanced AiiDA parser class for a BSSE calculation in CP2K.
62598f7250485f2cf55da7da
class ImportantText(Text): <NEW_LINE> <INDENT> def __init__(self, text, **kwargs): <NEW_LINE> <INDENT> super(ImportantText, self).__init__(**kwargs) <NEW_LINE> self.text = text <NEW_LINE> <DEDENT> def to_html(self): <NEW_LINE> <INDENT> return '<strong%s>%s%s</strong>' % ( self.html_attributes(), self.html_icon(), self....
A class to model free text in the messaging system
62598f7207d97122c421650c
class Undefined: <NEW_LINE> <INDENT> __slots__ = ( "_undefined_hint", "_undefined_obj", "_undefined_name", "_undefined_exception", ) <NEW_LINE> def __init__(self, hint=None, obj=missing, name=None, exc=UndefinedError): <NEW_LINE> <INDENT> self._undefined_hint = hint <NEW_LINE> self._undefined_obj = obj <NEW_LINE> self....
The default undefined type. This undefined type can be printed and iterated over, but every other access will raise an :exc:`UndefinedError`: >>> foo = Undefined(name='foo') >>> str(foo) '' >>> not foo True >>> foo + 42 Traceback (most recent call last): ... jinja2.exceptions.UndefinedError: 'foo' is undefined
62598f7216aa5153ce3ffd69
class TNSResponseStub(Response): <NEW_LINE> <INDENT> fake_data = { 'name': FAKE_TNS_NAME_DATA, 'object': FAKE_TNS_OBJECT_DATA, 'catalog': FAKE_TNS_CATALOG_DATA, } <NEW_LINE> @classmethod <NEW_LINE> def build(cls, endpoint: str) -> TNSResponseStub: <NEW_LINE> <INDENT> return cls.__build(cls.fake_data.get(endpoint)) <NEW...
A stub of a response holding fake data explicitly defined for the tests.
62598f7266656f66f7d59c5c
class ValueDefWithConditionMarkPropFieldDefnumber(VegaLiteSchema): <NEW_LINE> <INDENT> _schema = {'$ref': '#/definitions/ValueDefWithCondition<MarkPropFieldDef,number>'} <NEW_LINE> def __init__(self, condition=Undefined, value=Undefined, **kwds): <NEW_LINE> <INDENT> super(ValueDefWithConditionMarkPropFieldDefnumber, se...
ValueDefWithConditionMarkPropFieldDefnumber schema wrapper Mapping(required=[]) A ValueDef with Condition<ValueDef | FieldDef> where either the condition or the value are optional. Attributes ---------- condition : anyOf(:class:`ConditionalMarkPropFieldDef`, :class:`ConditionalNumberValueDef`, List(:class:`Condition...
62598f721f037a2d8b9e395a
class TestingConfig(BaseConfig): <NEW_LINE> <INDENT> TESTING = True <NEW_LINE> DEBUG = True <NEW_LINE> BCRYPT_LOG_ROUNDS = 1 <NEW_LINE> WTF_CSRF_ENABLED = False <NEW_LINE> SQLALCHEMY_DATABASE_URI = 'mysql+pymysql://root:root@127.0.0.1:3306/test?charset=utf8' <NEW_LINE> SQLALCHEMY_ECHO = True <NEW_LINE> SQLALCHEMY_COMMI...
Testing configuration.
62598f72796e427e5384e002
class Gallows(object): <NEW_LINE> <INDENT> def __init__(self, gallows_template, stages, not_built=NOT_BUILT): <NEW_LINE> <INDENT> self._template = gallows_template <NEW_LINE> self._stages = list(stages) <NEW_LINE> self._not_built = not_built <NEW_LINE> stage_indices = set(map(int, re.findall(r'\{(\d+)\}', gallows_templ...
Display a gallows using ascii art Segments of the gallows can progressively be included
62598f72d6c5a102081e19b1
class RepairInfo(models.Model): <NEW_LINE> <INDENT> id_reinfo = models.AutoField(primary_key=True) <NEW_LINE> reinfo_code = models.CharField(max_length=64) <NEW_LINE> id_idc = models.ForeignKey(IDCList,null=True,blank=False) <NEW_LINE> id_user = models.ForeignKey(User,null=True,blank=True) <NEW_LINE> re_content = model...
报修工单
62598f7276d4e153a661c47f
class GM2MRelation(ForeignObject): <NEW_LINE> <INDENT> many_to_many = True <NEW_LINE> many_to_one = False <NEW_LINE> one_to_many = False <NEW_LINE> one_to_one = False <NEW_LINE> concrete = False <NEW_LINE> related_accessor_class = RelatedGM2MDescriptor <NEW_LINE> hidden = False <NEW_LINE> def __init__(self, model, fiel...
A reverse relation for a GM2MField. Each related model has a GM2MRelation towards the source model
62598f7226238365f5fac3e2
class WebServiceTestRequest(LaunchpadWebServiceRequestTraversal, LaunchpadTestRequest): <NEW_LINE> <INDENT> def __init__(self, body_instream=None, environ=None, version=None, **kw): <NEW_LINE> <INDENT> test_environ = { 'SERVER_URL': 'http://api.launchpad.dev', 'HTTP_HOST': 'api.launchpad.dev', } <NEW_LINE> if environ i...
Test request for the webservice. It provides the WebServiceLayer and supports the getResource() web publication hook.
62598f7230c21e258be98070
class TypeElement(BasicASTNode): <NEW_LINE> <INDENT> superclass = Node
A common superclass for all type-building elements (qualifiers, modifiers, attributes, etc.).
62598f726fece00bbaccb1f7
class SecurityGroupController(wsgi.Controller): <NEW_LINE> <INDENT> def index(self, req, tenant_id): <NEW_LINE> <INDENT> LOG.debug("Index() called with %s" % (tenant_id)) <NEW_LINE> sec_groups = models.SecurityGroup().find_all(tenant_id=tenant_id, deleted=False) <NEW_LINE> rules_map = dict([(g.id, g.get_rules()) for g ...
Controller for security groups functionality.
62598f7266673b3332c2fc2d
class ConfiguratorCLI(object): <NEW_LINE> <INDENT> @classmethod <NEW_LINE> def run(cls): <NEW_LINE> <INDENT> parser = argparse.ArgumentParser() <NEW_LINE> subparsers = parser.add_subparsers(dest="subcommand") <NEW_LINE> subparser_engine_config = subparsers.add_parser('engine') <NEW_LINE> subparser_engine_config.add_arg...
CLI for future engine management and configuration options.
62598f72d10714528d69d73a
class Round(UnaryOperator): <NEW_LINE> <INDENT> XMLNAME = (core.IMSQTI_NAMESPACE, 'round') <NEW_LINE> def Evaluate(self, state): <NEW_LINE> <INDENT> value = self.Expression.Evaluate(state) <NEW_LINE> variables.CheckBaseTypes(value.baseType, variables.BaseType.float) <NEW_LINE> variables.CheckCardinalities( value.Cardin...
The round operator takes a single sub-expression which must have single cardinality and base-type float. The result is a value of base-type integer formed by rounding the value of the sub-expression. The result is the integer n for all input values in the range [n-0.5,n+0.5):: <xsd:group name="round.ContentGro...
62598f723eb6a72ae0389eaf
class Contact(BaseModel): <NEW_LINE> <INDENT> _schema = ContactSchema() <NEW_LINE> first_name = None <NEW_LINE> last_name = None <NEW_LINE> email = None <NEW_LINE> phone_number = None
Person of contact.
62598f72dc8b845886d52e20
class SimDefUniqueGenerator: <NEW_LINE> <INDENT> def __init__(self, sim_num: int, exp_output_root: str, sim_output_dir: str, cmdopts: tp.Dict[str, tp.Any]) -> None: <NEW_LINE> <INDENT> self.exp_output_root = exp_output_root <NEW_LINE> self.sim_output_dir = sim_output_dir <NEW_LINE> self.cmdopts = cmdopts <NEW_LINE> sel...
Generate XML changes unique to a simulation within an experiment. These include: - Random seeds for each simulation. - Output directories for each simulation. Attributes: sim_num: The simulation # in the experiment. sim_output_dir: Directory for simulation outputs in experiment root. cmdopts: Dictionary c...
62598f7273bcbd0ca4bc9aba
class deleteDynamicNatRule_IDL_result(object): <NEW_LINE> <INDENT> thrift_spec = ((0, TType.I32, 'success', None, None), (1, TType.STRUCT, 'e', (Shared.ttypes.ExceptionIDL, Shared.ttypes.ExceptionIDL.thrift_spec), None)) <NEW_LINE> def __init__(self, success = None, e = None): <NEW_LINE> <INDENT> self.success = success...
Attributes: - success - e
62598f725e10d32532ce3523
class PyPDFMerger(Merger): <NEW_LINE> <INDENT> type = Merger.TYPE_PACKAGE <NEW_LINE> def merge(self, slides, out_file): <NEW_LINE> <INDENT> try: <NEW_LINE> <INDENT> import PyPDF2 <NEW_LINE> output = PyPDF2.PdfFileWriter() <NEW_LINE> streams = list() <NEW_LINE> for slide in slides: <NEW_LINE> <INDENT> stream = open(slid...
Uses the PyPDF2 package to merge the PDFs.
62598f72d53ae8145f917d04
class LineStickerAnimatedFramesDownloadView(TemplateResponseMixin, View): <NEW_LINE> <INDENT> def get(self, request, pack_id, sticker_id): <NEW_LINE> <INDENT> binary_io = LineStickerUtils.get_downloaded_apng_frames(pack_id, sticker_id) <NEW_LINE> if not binary_io: <NEW_LINE> <INDENT> return HttpResponse(status=404) <NE...
View to download the frames of an animated sitcker.
62598f72cad5886f8bdc4b90
class ApproximateQAgent(PacmanQAgent): <NEW_LINE> <INDENT> def __init__(self, extractor='IdentityExtractor', **args): <NEW_LINE> <INDENT> self.featExtractor = util.lookup(extractor, globals())() <NEW_LINE> PacmanQAgent.__init__(self, **args) <NEW_LINE> self.weights = util.Counter() <NEW_LINE> <DEDENT> def getWeights(se...
ApproximateQLearningAgent You should only have to overwrite getQValue and update. All other QLearningAgent functions should work as is.
62598f728c3a8732951f5dbc
class SnippetVersion(models.Model): <NEW_LINE> <INDENT> snippet = models.ForeignKey(Snippet) <NEW_LINE> version = models.IntegerField(default = 1) <NEW_LINE> body = models.TextField() <NEW_LINE> created_date = models.DateTimeField(default=datetime.now()) <NEW_LINE> class Meta: <NEW_LINE> <INDENT> ordering = ['-version'...
History for snippets!
62598f7230c21e258be98072
class ItinerarySpider(InitSpider): <NEW_LINE> <INDENT> name = 'itinerary' <NEW_LINE> allowed_domains = ['report.aldel.org'] <NEW_LINE> login_page = 'http://report.aldel.org/parent_page.php' <NEW_LINE> start_urls = ['http://report.aldel.org/parent/itinenary_attendance_report.php'] <NEW_LINE> def __init__(self, username,...
Take screenshot of ``http://report.aldel.org/parent/itinenary_attendance_report.php`` and send it to the user via :py:class:`scraper.pipelines.ItineraryScreenshotPipeline` :param InitSpider: Base Spider with initialization facilities :type InitSpider: Spider
62598f7226238365f5fac3e4
class PerfMonIdentity(PolicyTypeIdentity): <NEW_LINE> <INDENT> _prefix = 'policy-types' <NEW_LINE> _revision = '2013-10-07' <NEW_LINE> def __init__(self): <NEW_LINE> <INDENT> PolicyTypeIdentity.__init__(self) <NEW_LINE> <DEDENT> @staticmethod <NEW_LINE> def _meta_info(): <NEW_LINE> <INDENT> from ydk.models.cisco_ios_xe...
Policy\-type PERF\-MON (performance monitoring)
62598f7238b623060ffa890a
class Gendy1(UGen): <NEW_LINE> <INDENT> _ordered_input_names = collections.OrderedDict( [ ("ampdist", 1), ("durdist", 1), ("adparam", 1), ("ddparam", 1), ("minfrequency", 440), ("maxfrequency", 660), ("ampscale", 0.5), ("durscale", 0.5), ("init_cps", 12), ("knum", None), ] ) <NEW_LINE> _valid_calculation_rates = (Calcu...
A dynamic stochastic synthesis generator. :: >>> gendy_1 = supriya.ugens.Gendy1.ar( ... adparam=1, ... ampdist=1, ... ampscale=0.5, ... ddparam=1, ... durdist=1, ... durscale=0.5, ... init_cps=12, ... knum=10, ... maxfrequency=660, ... ...
62598f72d164cc61758207e5
class TelegramInput(HttpInputComponent): <NEW_LINE> <INDENT> def __init__(self, access_token, verify, webhook_url, debug_mode=True): <NEW_LINE> <INDENT> self.access_token = access_token <NEW_LINE> self.verify = verify <NEW_LINE> self.webhook_url = webhook_url <NEW_LINE> self.debug_mode = debug_mode <NEW_LINE> <DEDENT> ...
Telegram input channel
62598f7266673b3332c2fc2f
class MachineEditView(UserPassesTestMixin,UpdateView): <NEW_LINE> <INDENT> model = Machine <NEW_LINE> template_name = os.path.join("inv", "engineering_inventory", "create_update","update_machine.html") <NEW_LINE> form_class = MachineForm <NEW_LINE> success_url = reverse_lazy("inventory:inventory-home") <NEW_LINE> login...
Machine update view
62598f72925a0f43d25e78ad
class MajorNr(object): <NEW_LINE> <INDENT> _major = None <NEW_LINE> MAJOR_NR_MAX = 0xfff <NEW_LINE> def __init__(self, major): <NEW_LINE> <INDENT> self._major = MajorNr.major_check(major) <NEW_LINE> <DEDENT> def get_value(self): <NEW_LINE> <INDENT> return self._major <NEW_LINE> <DEDENT> @classmethod <NEW_LINE> def majo...
Contains the major number of a unix device file
62598f72a4f1c619b294de5b
class FarmTile(object): <NEW_LINE> <INDENT> def __init__(self, obj=None): <NEW_LINE> <INDENT> self.water = 0.0 <NEW_LINE> self.farmobject = obj <NEW_LINE> self.posx = -1 <NEW_LINE> self.posy = -1 <NEW_LINE> <DEDENT> def __getitem__(self, name): <NEW_LINE> <INDENT> if name == "water": <NEW_LINE> <INDENT> return self.get...
Farm tile represent one tile on each farm
62598f7216aa5153ce3ffd6d
class UserShowRenderer(ObjectClassShowRenderer): <NEW_LINE> <INDENT> def __init__(self, service, commit): <NEW_LINE> <INDENT> self.service = service <NEW_LINE> self.commit = commit <NEW_LINE> self.name_generator = toucanlib.cli.names.NameGenerator() <NEW_LINE> <DEDENT> def render(self, stream, objects): <NEW_LINE> <IND...
Render information about users.
62598f7215baa723494617f9
class MemoryGenerationModel(nn.Module): <NEW_LINE> <INDENT> dtype: Dtype <NEW_LINE> encoder_name: str <NEW_LINE> encoder_config: ml_collections.FrozenConfigDict <NEW_LINE> memory_keys_feature: Optional[str] = None <NEW_LINE> memory_values_feature: str = 'target_mention_encodings' <NEW_LINE> def setup(self): <NEW_LINE> ...
Memory generation model. Attributes: encoder_name: encoder name in encoder registry. encoder_config: Mention Memory encoder hyperparameters.
62598f72b57a9660fecd12ef
class TelegramBotEventListener(hass.Hass): <NEW_LINE> <INDENT> def initialize(self): <NEW_LINE> <INDENT> self.listen_event(self.receive_telegram_callback, 'telegram_callback') <NEW_LINE> <DEDENT> def receive_telegram_callback(self, event_id, payload_event, *args): <NEW_LINE> <INDENT> self.log(payload_event) <NEW_LINE> ...
Event listener for Telegram callbacks.
62598f7215fb5d323ce7e597
class _Pore(_Shape): <NEW_LINE> <INDENT> def __init__(self, elements, coordinates, shape=False, **kwargs): <NEW_LINE> <INDENT> self._elements, self._coordinates = elements, coordinates <NEW_LINE> self.diameter, self.closest_atom = pore_diameter( elements, coordinates, **kwargs) <NEW_LINE> self.spherical_volume = sphere...
Under development.
62598f721d351010ab8f33af
class InitService(Actor): <NEW_LINE> <INDENT> def __init__(self, name, dev_list, enable_timeout=False, timeout_interval=600, topics=None): <NEW_LINE> <INDENT> super(InitService, self).__init__(name=name) <NEW_LINE> self._name = name <NEW_LINE> self.enable_timeout = enable_timeout <NEW_LINE> self.timeout_interval = time...
InitService class as an active object
62598f728c3a8732951f5dbe
class Worker(Thread): <NEW_LINE> <INDENT> def __init__(self, tasks, parent): <NEW_LINE> <INDENT> Thread.__init__(self) <NEW_LINE> self.tasks = tasks <NEW_LINE> self.parent = parent <NEW_LINE> self.daemon = True <NEW_LINE> self.stopped = threading.Event() <NEW_LINE> self.start() <NEW_LINE> <DEDENT> def run(self): <NEW_L...
Thread executing tasks from a given tasks queue
62598f7276d4e153a661c482
class ImageLoader(data.Dataset): <NEW_LINE> <INDENT> url = 'http://www.robots.ox.ac.uk/~vgg/data/fgvc-aircraft/archives/fgvc-aircraft-2013b.tar.gz' <NEW_LINE> class_types = ('variant', 'family', 'manufacturer') <NEW_LINE> splits = ('train', 'val', 'trainval', 'test') <NEW_LINE> def __init__(self, root='data/aircraft', ...
`FGVC-Aircraft <http://www.robots.ox.ac.uk/~vgg/data/fgvc-aircraft>`_ Dataset. Args: root (string): Root directory path to dataset. class_type (string, optional): The level of FGVC-Aircraft fine-grain classification to label data with (i.e., ``variant``, ``family``, or ``manufacturer``). transform (call...
62598f7276d4e153a661c483
class BoardDomain(TimestampMixin, db.Model): <NEW_LINE> <INDENT> __tablename__ = 'board_domain' <NEW_LINE> board_id = db.Column(None, db.ForeignKey('board.id'), primary_key=True, nullable=False) <NEW_LINE> domain = db.Column(db.Unicode(80), primary_key=True, nullable=False, index=True) <NEW_LINE> def __repr__(self): <N...
Domain tag for boards
62598f72d4950a0f3b110a6f
class BwaMem(luigi.Task): <NEW_LINE> <INDENT> sample = luigi.Parameter() <NEW_LINE> genome = luigi.Parameter() <NEW_LINE> paired = luigi.BoolParameter() <NEW_LINE> def requires(self): <NEW_LINE> <INDENT> return [SraToolsFastqDump(self.sample), BwaIndexBwtsw(self.genome)] <NEW_LINE> <DEDENT> def output(self): <NEW_LINE>...
Align the paired end fastq files to the reference genome
62598f726aa9bd52df0d4745
class Datastore(object): <NEW_LINE> <INDENT> def __repr__(self): <NEW_LINE> <INDENT> return "Abstract Datastore" <NEW_LINE> <DEDENT> def load_server_conf(self): <NEW_LINE> <INDENT> raise NotImplementedError <NEW_LINE> <DEDENT> def save_server_conf(self, server_conf): <NEW_LINE> <INDENT> raise NotImplementedError <NEW_L...
The FEMhub Online Lab storage abstraction layer abstract base class. Each storage abstraction layer derives from this.
62598f7238b623060ffa890c
class GraphStore(ABC): <NEW_LINE> <INDENT> def __init__(self, store): <NEW_LINE> <INDENT> self.store = store <NEW_LINE> self.client = store.client <NEW_LINE> self.bootstrap() <NEW_LINE> <DEDENT> @abstractmethod <NEW_LINE> def bootstrap(self): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> @abstractmethod <NEW_LINE> def a...
Interface for graph databases to be used with the Plenum system.
62598f72b57a9660fecd12f0
class Solution: <NEW_LINE> <INDENT> def minSubArray(self, nums): <NEW_LINE> <INDENT> minsofar = nums[0] <NEW_LINE> currsum = nums[0] <NEW_LINE> for i in range(1, len(nums)): <NEW_LINE> <INDENT> currsum = min(currsum + nums[i], nums[i]) <NEW_LINE> minsofar = min(minsofar, currsum) <NEW_LINE> <DEDENT> return minsofar
@param nums: a list of integers @return: A integer denote the sum of minimum subarray
62598f72287bf620b6271428
class Session: <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.masterSecret = bytearray(0) <NEW_LINE> self.sessionID = bytearray(0) <NEW_LINE> self.cipherSuite = 0 <NEW_LINE> self.srpUsername = "" <NEW_LINE> self.clientCertChain = None <NEW_LINE> self.serverCertChain = None <NEW_LINE> self.tackExt = No...
This class represents a TLS session. TLS distinguishes between connections and sessions. A new handshake creates both a connection and a session. Data is transmitted over the connection. The session contains a more permanent record of the handshake. The session can be inspected to determine handshake results. The...
62598f72dc8b845886d52e24
class Shell: <NEW_LINE> <INDENT> @staticmethod <NEW_LINE> def clear(): <NEW_LINE> <INDENT> command_shell = None <NEW_LINE> if sys.platform == "linux" or sys.platform == "linux2" or sys.platform == "darwin": <NEW_LINE> <INDENT> command_shell = 'clear' <NEW_LINE> <DEDENT> elif sys.platform == "win32": <NEW_LINE> <INDENT>...
Класс для работы с Shell
62598f7215baa723494617fb
class KeyList(DataStructure): <NEW_LINE> <INDENT> def __init__(self, **kwargs): <NEW_LINE> <INDENT> self.keys = [] <NEW_LINE> self.fromDict(kwargs) <NEW_LINE> <DEDENT> def toDict(self): <NEW_LINE> <INDENT> keysDict = dict() <NEW_LINE> keyList = [] <NEW_LINE> for key in self.keys: <NEW_LINE> <INDENT> keyList.append(key....
Models a API key list item
62598f7266656f66f7d59c62
class ActionMplsExpIDL(object): <NEW_LINE> <INDENT> thrift_spec = (None, (1, TType.I32, 'sense', None, None), (2, TType.I32, 'mplsExp', None, None)) <NEW_LINE> def __init__(self, sense = None, mplsExp = None): <NEW_LINE> <INDENT> self.sense = sense <NEW_LINE> self.mplsExp = mplsExp <NEW_LINE> <DEDENT> def read(self, ip...
MPLS Experimantal tag action Attributes: - sense - mplsExp
62598f726fece00bbaccb1fc
class UserStory(models.Model): <NEW_LINE> <INDENT> ESTADO_USER_STORY=( ('No asignado', 'No asignado'), ('Activo', 'Activo'), ('Pendiente', 'Pendiente'), ('Finalizado', 'Finalizado'), ('Aprobado', 'Aprobado'), ('Descartado', 'Descartado'), ) <NEW_LINE> nombre = models.CharField(max_length=15) <NEW_LINE> descripcion = mo...
Clase User Story. Crea el formulario para los User Stories para cada instancia de la user story, el cual define los campos nombre, descripcion,valor del negocio, prioridad, valor tecnico, estimacion, usuario, estado, flujo, proyecto y sprint.
62598f726e29344779affed0
class ObjectValue(object): <NEW_LINE> <INDENT> def __init__(self, object_type=None, base_obj=None): <NEW_LINE> <INDENT> self._base = None <NEW_LINE> if base_obj is not None: <NEW_LINE> <INDENT> self._base = base_obj <NEW_LINE> <DEDENT> self._object_type = object_type <NEW_LINE> self.__initialized = True <NEW_LINE> <DED...
Smartsheet ObjectValue data model.
62598f727b25080760ed6d10
class Cage: <NEW_LINE> <INDENT> cage_counter = 1 <NEW_LINE> def add_animal(self, new_animal): <NEW_LINE> <INDENT> if hasattr(new_animal, 'preys'): <NEW_LINE> <INDENT> for animal in self.animals: <NEW_LINE> <INDENT> if animal.species.lower() in new_animal.preys: <NEW_LINE> <INDENT> self.delete_animal(animal) <NEW_LINE> ...
Definition of the zoo cages. It needs a zoo for the cage
62598f7230dc7b766599f0cf
class BinOp(Instruction): <NEW_LINE> <INDENT> def __init__(self, opcode, cycle_cost, rd, rs, rt=None, imm=None): <NEW_LINE> <INDENT> super(BinOp, self).__init__(opcode, cycle_cost) <NEW_LINE> self.rd = rd <NEW_LINE> self.rs = rs <NEW_LINE> self.rt = rt <NEW_LINE> self.imm = imm
docstring for Instruction
62598f728c3a8732951f5dc1
class SafeChildWatcher(BaseChildWatcher): <NEW_LINE> <INDENT> def close(self): <NEW_LINE> <INDENT> self._callbacks.clear() <NEW_LINE> super().close() <NEW_LINE> <DEDENT> def __enter__(self): <NEW_LINE> <INDENT> return self <NEW_LINE> <DEDENT> def __exit__(self, a, b, c): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> def...
'Safe' child watcher implementation. This implementation avoids disrupting other code spawning processes by polling explicitly each process in the SIGCHLD handler instead of calling os.waitpid(-1). This is a safe solution but it has a significant overhead when handling a big number of children (O(n) each time SIGCHLD...
62598f72e76e3b2f99fd82a3
class MapsAccountUpdateParameters(Model): <NEW_LINE> <INDENT> _attribute_map = { 'tags': {'key': 'tags', 'type': '{str}'}, 'sku': {'key': 'sku', 'type': 'Sku'}, } <NEW_LINE> def __init__(self, **kwargs): <NEW_LINE> <INDENT> super(MapsAccountUpdateParameters, self).__init__(**kwargs) <NEW_LINE> self.tags = kwargs.get('t...
Parameters used to update an existing Maps Account. :param tags: Gets or sets a list of key value pairs that describe the resource. These tags can be used in viewing and grouping this resource (across resource groups). A maximum of 15 tags can be provided for a resource. Each tag must have a key no greater than 128...
62598f7226238365f5fac3e8
class SixNimmtCard(Card): <NEW_LINE> <INDENT> def __init__(self, number=-1, bullHeadsNumber=0): <NEW_LINE> <INDENT> if not isinstance(number, int): <NEW_LINE> <INDENT> raise TypeError('"number" attribute for a SixNimmtCard object must be an integer') <NEW_LINE> <DEDENT> if not isinstance(bullHeadsNumber, int): <NEW_LIN...
Define a SixNimmtCard class
62598f720383005118f6cf75
class HostTestPluginCopyMethod_STProgrammer(HostTestPluginBase): <NEW_LINE> <INDENT> name = "HostTestPluginCopyMethod_STProgrammer" <NEW_LINE> type = "CopyMethod" <NEW_LINE> capabilities = ["stprog"] <NEW_LINE> required_parameters = ["image_path"] <NEW_LINE> def __init__(self): <NEW_LINE> <INDENT> HostTestPluginBase.__...
Plugin interface adaptor for STM32CubeProgrammer.
62598f72a8ecb03325870a7b