code
stringlengths
4
4.48k
docstring
stringlengths
1
6.45k
_id
stringlengths
24
24
class TaxonVar(TaxonCommonVar): <NEW_LINE> <INDENT> type = 'var'
Классическая переменная. Обычно объявляется в блоке. Может быть объявлена в модуле, но только private. То есть, экспортировать переменные из модуля нельзя.
625990761f5feb6acb164562
class PageAlias(models.Model): <NEW_LINE> <INDENT> page = models.ForeignKey(Page, null=True, blank=True, verbose_name=_('page')) <NEW_LINE> url = models.CharField(max_length=255, unique=True) <NEW_LINE> objects = PageAliasManager() <NEW_LINE> class Meta: <NEW_LINE> <INDENT> verbose_name_plural = _('Aliases') <NEW_LINE>...
URL alias for a :class:`Page <pages.models.Page>`
625990768a43f66fc4bf3b02
class ADataCrawling(metaclass=ABCMeta): <NEW_LINE> <INDENT> @property <NEW_LINE> def review_language(self): <NEW_LINE> <INDENT> ... <NEW_LINE> <DEDENT> @review_language.setter <NEW_LINE> @abstractmethod <NEW_LINE> def review_language(self, a_review_language): <NEW_LINE> <INDENT> ... <NEW_LINE> <DEDENT> @property <NEW_L...
Abstract class for the definition of a crawler.
625990764f6381625f19a161
class DagA: <NEW_LINE> <INDENT> def __init__(self, go_a, ancestors, go2depth, w_e, godag): <NEW_LINE> <INDENT> self.go_a = go_a <NEW_LINE> self.ancestors = ancestors <NEW_LINE> self.goids = self._init_goids() <NEW_LINE> self.go2svalue = self._init_go2svalue(go2depth, w_e, godag) <NEW_LINE> <DEDENT> def get_sv(self): <N...
A GO term, A, can be represented as DAG_a = (A, T_a, E_a), aka a GoSubDag
62599076e1aae11d1e7cf4c5
class Win7SP1x64_23418(obj.Profile): <NEW_LINE> <INDENT> _md_memory_model = '64bit' <NEW_LINE> _md_os = 'windows' <NEW_LINE> _md_major = 6 <NEW_LINE> _md_minor = 1 <NEW_LINE> _md_build = 7601 <NEW_LINE> _md_vtype_module = 'volatility.plugins.overlays.windows.win7_sp1_x64_632B36E0_vtypes' <NEW_LINE> _md_product = ["NtPr...
A Profile for Windows 7 SP1 x64 (6.1.7601.23418 / 2016-04-09)
625990767d847024c075dd47
class MagiclinkPattern(LinkInlineProcessor): <NEW_LINE> <INDENT> ANCESTOR_EXCLUDES = ('a',) <NEW_LINE> def handleMatch(self, m, data): <NEW_LINE> <INDENT> el = etree.Element("a") <NEW_LINE> el.text = md_util.AtomicString(m.group('link')) <NEW_LINE> if m.group("www"): <NEW_LINE> <INDENT> href = "http://%s" % m.group('li...
Convert html, ftp links to clickable links.
625990765fc7496912d48f20
class Key(models.Model): <NEW_LINE> <INDENT> class Meta: <NEW_LINE> <INDENT> verbose_name = _("Key") <NEW_LINE> verbose_name_plural = _("Keys") <NEW_LINE> <DEDENT> key = models.TextField() <NEW_LINE> fingerprint = models.CharField(max_length=200, blank=True, editable=False) <NEW_LINE> use_asc = models.BooleanField(defa...
Accepts a key and imports it via admin's save_model which omits saving.
6259907660cbc95b06365a24
class TrainsCollection(object): <NEW_LINE> <INDENT> headers = '车次 车站 时间 历时 商务 一等 二等 软卧 硬卧 软座 硬座 无座'.split() <NEW_LINE> def __init__(self, rows, opts): <NEW_LINE> <INDENT> self._rows = rows <NEW_LINE> self._opts = opts <NEW_LINE> <DEDENT> def __repr__(self): <NEW_LINE> <INDENT> return '<TrainsCollection size={}>'.format...
A set of raw datas from a query.
62599076fff4ab517ebcf184
class DeleteActivityInputSet(InputSet): <NEW_LINE> <INDENT> def set_AccessToken(self, value): <NEW_LINE> <INDENT> super(DeleteActivityInputSet, self)._set_input('AccessToken', value) <NEW_LINE> <DEDENT> def set_ActivityID(self, value): <NEW_LINE> <INDENT> super(DeleteActivityInputSet, self)._set_input('ActivityID', val...
An InputSet with methods appropriate for specifying the inputs to the DeleteActivity Choreo. The InputSet object is used to specify input parameters when executing this Choreo.
625990765166f23b2e244d44
class DialogController (object): <NEW_LINE> <INDENT> __metaclass__ = ABCMeta <NEW_LINE> def __init__ (self, dialog, application, initial = u""): <NEW_LINE> <INDENT> self._dialog = dialog <NEW_LINE> self._application = application <NEW_LINE> items = sorted (self.getParam (LJConfig (self._application.config))) <NEW_LINE>...
Базовый класс для диалога вставки пользователя и сообщества ЖЖ
62599076cc0a2c111447c788
class Bounds(object): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.is_empty_ = True <NEW_LINE> self.min_ = None <NEW_LINE> self.max_ = None <NEW_LINE> <DEDENT> @staticmethod <NEW_LINE> def CreateFromEvent(event): <NEW_LINE> <INDENT> bounds = Bounds() <NEW_LINE> bounds.AddEvent(event) <NEW_LINE> retu...
Represents a min-max bounds.
62599076167d2b6e312b8248
class DummyDNSDriver(DNSDriver): <NEW_LINE> <INDENT> name = "Dummy DNS Provider" <NEW_LINE> website = "http://example.com" <NEW_LINE> def __init__(self, api_key, api_secret): <NEW_LINE> <INDENT> self._zones = {} <NEW_LINE> <DEDENT> def list_record_types(self): <NEW_LINE> <INDENT> return [RecordType.A] <NEW_LINE> <DEDEN...
Dummy DNS driver. >>> from libcloud.dns.drivers.dummy import DummyDNSDriver >>> driver = DummyDNSDriver('key', 'secret') >>> driver.name 'Dummy DNS Provider'
6259907666673b3332c31d6c
class MethodNotAvailableInAPIVersion(Exception): <NEW_LINE> <INDENT> def __init__(self, current_api_version, method): <NEW_LINE> <INDENT> self.api_version = current_api_version <NEW_LINE> self.method = method <NEW_LINE> <DEDENT> def __str__(self): <NEW_LINE> <INDENT> return "Method '%s' is not available in the %s api v...
Try to call API method, which is not available.
6259907638b623060ffaa50d
class GameTieAction(Action): <NEW_LINE> <INDENT> def __init__(self, winner=None, gameName = None, other=None): <NEW_LINE> <INDENT> Action.__init__(self, AUDIT_TIE_GAME) <NEW_LINE> self.gameName = gameName <NEW_LINE> if winner is not None: <NEW_LINE> <INDENT> self.winner = '%s (%d)' % (winner.username, int(winner.score)...
Game tie action
625990762c8b7c6e89bd5157
class Optimizer(object): <NEW_LINE> <INDENT> def __init__(self, parameters, **kwargs): <NEW_LINE> <INDENT> self.parameters = parameters <NEW_LINE> self.lr = kwargs.pop('lr', 0.001) <NEW_LINE> self.l1_weight_decay = kwargs.pop('l1_weight_decay', 0.0) <NEW_LINE> self.l2_weight_decay = kwargs.pop('l2_weight_decay', 0.0) <...
Base class for all optimizers
6259907621bff66bcd7245d7
class DetailView(BaseCart): <NEW_LINE> <INDENT> def get(self, request, sku_id): <NEW_LINE> <INDENT> context = cache.get("detail_%s" % sku_id) <NEW_LINE> if context is None: <NEW_LINE> <INDENT> try: <NEW_LINE> <INDENT> sku = GoodsSKU.objects.get(id=sku_id) <NEW_LINE> <DEDENT> except GoodsSKU.DoesNotExist: <NEW_LINE> <IN...
商品详情页的视图函数
625990767cff6e4e811b73ae
class ANSIColors: <NEW_LINE> <INDENT> HEADER = '\033[95m' <NEW_LINE> OKBLUE = '\033[94m' <NEW_LINE> OKCYAN = '\033[96m' <NEW_LINE> OKGREEN = '\033[92m' <NEW_LINE> WARNING = '\033[93m' <NEW_LINE> FAIL = '\033[91m' <NEW_LINE> ENDC = '\033[0m' <NEW_LINE> BOLD = '\033[1m' <NEW_LINE> UNDERLINE = '\033[4m' <NEW_LINE> @classm...
Classe com `sequências de scape` ANSI que formatam a saída no terminal.
625990764f6381625f19a162
class Account: <NEW_LINE> <INDENT> def __init__(self, holder, created_on, account_number, account_type, balance=0.0): <NEW_LINE> <INDENT> self._holder = holder <NEW_LINE> self._created_on = created_on <NEW_LINE> self._account_number = account_number <NEW_LINE> self._account_type = account_type <NEW_LINE> self._balance ...
Implementation of a customer's bank account. Can hold and update a balance. Can process withdrawals and deposits made by the account holder.
62599076e1aae11d1e7cf4c6
class JustfixDevelopmentDefaults(JustfixEnvironment): <NEW_LINE> <INDENT> SECRET_KEY = "for development only!" <NEW_LINE> SECURE_SSL_REDIRECT = False <NEW_LINE> SESSION_COOKIE_SECURE = False <NEW_LINE> CSRF_COOKIE_SECURE = False <NEW_LINE> TWOFACTOR_VERIFY_DURATION = 0
Reasonable defaults for developing the project.
625990767d847024c075dd49
class CommentsView(generics.ListCreateAPIView): <NEW_LINE> <INDENT> lookup_field = 'article__slug' <NEW_LINE> lookup_url_kwarg = 'slug' <NEW_LINE> permission_classes = (IsAuthenticatedOrReadOnly,) <NEW_LINE> queryset = Comment.objects.select_related( 'article', 'user' ) <NEW_LINE> serializer_class = CommentSerializer <...
This is a controller for users to create, read, and alter comments.
625990768a349b6b43687bc9
class d3MapRendererDialogTest(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 test_icon_png(self): <NEW_LINE> <INDENT> path = ':/plugins/d3MapRenderer/icon.png' <NEW_LINE> icon = QIcon(path) <NEW_L...
Test rerources work.
625990767047854f46340d28
class JSONSchemaField(JSONBField): <NEW_LINE> <INDENT> format_checker = FormatChecker() <NEW_LINE> empty_values = (None, '') <NEW_LINE> def get_default(self): <NEW_LINE> <INDENT> return copy.deepcopy(super(JSONBField, self).get_default()) <NEW_LINE> <DEDENT> def schema(self, model_instance): <NEW_LINE> <INDENT> raise N...
A JSONB field that self-validates against a defined JSON schema (http://json-schema.org). This base class is intended to be overwritten by defining `self.schema`.
6259907697e22403b383c872
class AnnotationTransformEvent: <NEW_LINE> <INDENT> def __init__(self, request, annotation, annotation_dict): <NEW_LINE> <INDENT> self.request = request <NEW_LINE> self.annotation = annotation <NEW_LINE> self.annotation_dict = annotation_dict
An event fired before an annotation is indexed or otherwise needs to be transformed by third-party code. This event can be used by subscribers who wish to modify the content of an annotation just before it is indexed or in other use-cases.
625990761b99ca40022901ed
class BaseREVAEMNIST(nn.Module): <NEW_LINE> <INDENT> def __init__(self, z_c_dim, z_exc_dim): <NEW_LINE> <INDENT> super(BaseREVAEMNIST, self).__init__() <NEW_LINE> self._z_c_dim = z_c_dim <NEW_LINE> self._z_exc_dim = z_exc_dim <NEW_LINE> self.encoder = _Encoder(z_c_dim + z_exc_dim) <NEW_LINE> self.decoder = _Decoder(z_c...
A base class of the Reparameterized VAE (REVAE) for the MNIST dataset. Args: z_c_dim (int): The dimension of z_c. z_exc_dim (int): The dimension of z_\c.
625990764527f215b58eb658
class Retention(object): <NEW_LINE> <INDENT> __slots__ = ("stages",) <NEW_LINE> def __init__(self, stages): <NEW_LINE> <INDENT> prev = None <NEW_LINE> if not stages: <NEW_LINE> <INDENT> raise InvalidArgumentError("there must be at least one stage") <NEW_LINE> <DEDENT> for s in stages: <NEW_LINE> <INDENT> if prev and s....
A retention policy, made of 0 or more Stages.
6259907656ac1b37e630399a
class Anistream(Anime, sitename='anistream.xyz'): <NEW_LINE> <INDENT> sitename = 'anistream.xyz' <NEW_LINE> QUALITIES = ['360p', '480p', '720p', '1080p'] <NEW_LINE> @classmethod <NEW_LINE> def search(self, query): <NEW_LINE> <INDENT> soup = helpers.soupify(helpers.get(f"https://anistream.xyz/search?term={query}")) <NEW...
Site: http://anistream.xyz Config ------ version: One of ['subbed', 'dubbed] Selects the version of audio of anime.
6259907699fddb7c1ca63a8d
class ETandemCommandline(_EmbossCommandLine): <NEW_LINE> <INDENT> def __init__(self, cmd="etandem", **kwargs): <NEW_LINE> <INDENT> self.parameters = [ _Option(["-sequence", "sequence"], "Sequence", filename=True, is_required=True), _Option(["-minrepeat", "minrepeat"], "Minimum repeat size", is_required=True), _Option([...
Commandline object for the etandem program from EMBOSS.
6259907638b623060ffaa50e
class Discretise: <NEW_LINE> <INDENT> def __init__(self,bin_sizes,state_mins,state_maxs): <NEW_LINE> <INDENT> if isinstance(bin_sizes,types.IntType): <NEW_LINE> <INDENT> self._num_dim = 1 <NEW_LINE> <DEDENT> elif isinstance(bin_sizes,list): <NEW_LINE> <INDENT> assert len(bin_sizes) == len(state_mins) == len(state_maxs)...
Discretises multivariate continuous state array to an index. This is necessary when runing discrete RL methods on continuous state environments.
62599076379a373c97d9a992
class GameWorld: <NEW_LINE> <INDENT> def __init__( self, *, engine: Engine, map_width: int, map_height: int, max_rooms: int, room_min_size: int, room_max_size: int, max_monsters_per_room: int, max_items_per_room: int, current_floor: int = 0 ): <NEW_LINE> <INDENT> self.engine = engine <NEW_LINE> self.map_width = map_wid...
Holds the settings for the GameMap and generates new maps when moving down stairs
62599076f548e778e596ceff
@ui.register_ui( button_close=ui.Button(By.CLASS_NAME, 'inmplayer-popover-close-button')) <NEW_LINE> class WelcomeModal(ui.Block): <NEW_LINE> <INDENT> pass
Welcome modal block.
625990764428ac0f6e659e9f
class Agent(object): <NEW_LINE> <INDENT> def __init__(self, bandit, policy, prior=0, gamma=None): <NEW_LINE> <INDENT> self.policy = policy <NEW_LINE> self.k = bandit.k <NEW_LINE> self.prior = prior <NEW_LINE> self.gamma = gamma <NEW_LINE> self._value_estimates = prior * np.ones(self.k) <NEW_LINE> self.action_attempts =...
An Agent is able to take one of a set of actions at each time step. The action is chosen using a strategy based on the history of prior actions and outcome observations.
625990767c178a314d78e8a3
class KeyInfo(Model): <NEW_LINE> <INDENT> _validation = { 'start': {'required': True}, 'expiry': {'required': True}, } <NEW_LINE> _attribute_map = { 'start': {'key': 'Start', 'type': 'str', 'xml': {'name': 'Start'}}, 'expiry': {'key': 'Expiry', 'type': 'str', 'xml': {'name': 'Expiry'}}, } <NEW_LINE> _xml_map = { } <NEW...
Key information. All required parameters must be populated in order to send to Azure. :param start: Required. The date-time the key is active in ISO 8601 UTC time :type start: str :param expiry: Required. The date-time the key expires in ISO 8601 UTC time :type expiry: str
6259907663b5f9789fe86ad6
class ModelBase(caching.base.CachingMixin, models.Model): <NEW_LINE> <INDENT> created = models.DateTimeField(auto_now_add=True) <NEW_LINE> modified = models.DateTimeField(auto_now=True) <NEW_LINE> objects = ManagerBase() <NEW_LINE> class Meta: <NEW_LINE> <INDENT> abstract = True <NEW_LINE> get_latest_by = 'created' <NE...
Base class for zamboni models to abstract some common features. * Adds automatic created and modified fields to the model. * Fetches all translations in one subsequent query during initialization.
62599076aad79263cf430129
class Molecule(Mol): <NEW_LINE> <INDENT> def __init__(self, atomic_numbers=None, coords=None, atom_names=None, model=None, residue_seq=None, chain=None, sheet=None, helix=None, is_hetatm=None): <NEW_LINE> <INDENT> if atomic_numbers is None and coords is None: <NEW_LINE> <INDENT> self.Initialize() <NEW_LINE> <DEDENT> el...
Your molecule class. An object that is used to create molecules and store molecular data (e.g. coordinate and bonding data). This is a more pythonic version of ``Molecule``.
6259907697e22403b383c874
class TemplateTagTests(test.TestCase): <NEW_LINE> <INDENT> def render_template_tag(self, tag_name, tag_require=''): <NEW_LINE> <INDENT> tag_call = "{%% %s %%}" % tag_name <NEW_LINE> return self.render_template(tag_call, tag_require) <NEW_LINE> <DEDENT> def render_template(self, template_text, tag_require='', context={}...
Test Custom Template Tag.
6259907632920d7e50bc79b9
class LossyQueueHandler(handlers.QueueHandler): <NEW_LINE> <INDENT> def enqueue(self, record): <NEW_LINE> <INDENT> self.queue.appendleft(record)
Like QueueHandler, except it'll try and keep the youngest, not oldest, entries.
62599076091ae356687065ab
class PasswordForm(Form): <NEW_LINE> <INDENT> old_pwd = PasswordField(u'Old Password') <NEW_LINE> pwd = PasswordField(u'Password', [ EqualTo('confirm', message='Passwords must match'), Length(min=PWD_MIN_LENGTH, max=PWD_MAX_LENGTH) ]) <NEW_LINE> confirm = PasswordField(u'Repeat Password') <NEW_LINE> change = SubmitFiel...
Form for changing password
625990764c3428357761bc28
class SocketClosedException(Exception): <NEW_LINE> <INDENT> def __init__(self, peer): <NEW_LINE> <INDENT> log.info("Peer %s closed connection" % (str(peer.peer))) <NEW_LINE> self.peer = peer
Raised when a peer closes their socket
6259907655399d3f05627e86
class AddableJoinOp(JoinOp): <NEW_LINE> <INDENT> __slots__ = ('_parent',) <NEW_LINE> def __init__(self, *sources: Event): <NEW_LINE> <INDENT> JoinOp.__init__(self) <NEW_LINE> self._sources = deque() <NEW_LINE> self._parent = None <NEW_LINE> self._set_sources(*sources) <NEW_LINE> <DEDENT> def _set_sources(self, *sources...
Base class for join operators where new sources, produced by a parent higher-order event, can be added dynamically.
6259907699fddb7c1ca63a8e
class Menu: <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.options = []
Menu class.
6259907626068e7796d4e2ae
class SynonymStandardizationDictionary: <NEW_LINE> <INDENT> def __init__(self, syntax_file=None, syntax_directory=None): <NEW_LINE> <INDENT> self.syntax_file = syntax_file <NEW_LINE> self.syntax_directory = syntax_directory <NEW_LINE> if syntax_file == None and syntax_directory == None: <NEW_LINE> <INDENT> raise Except...
Works as an interface for the synonym standardization dictionary.
62599076dc8b845886d54f2c
class MultiLabelMarginLoss(_Loss): <NEW_LINE> <INDENT> def forward(self, input, target): <NEW_LINE> <INDENT> _assert_no_grad(target) <NEW_LINE> return F.multilabel_margin_loss(input, target, size_average=self.size_average)
创建一个标准, 用以优化多元分类问题的合页损失函数 (基于空白的损失), 计算损失值时 需要2个参数分别为输入, `x` (一个2维小批量 `Tensor`) 和输出 `y` (一个2维 `Tensor`, 其值为 `x` 的索引值). 对于mini-batch(小批量) 中的每个样本按如下公式计算损失:: loss(x, y) = sum_ij(max(0, 1 - (x[y[j]] - x[i]))) / x.size(0) 其中 `i` 的取值范围是 `0` 到 `x.size(0)`, `j` 的取值范围是 `0` 到 `y.size(0)`, `y[j] >= 0`, 并且对于所有 `i` 和 `j` 有 ...
6259907621bff66bcd7245db
class GPGKey(Base): <NEW_LINE> <INDENT> is_katello = True <NEW_LINE> delete_locator = locators['gpgkey.remove'] <NEW_LINE> def navigate_to_entity(self): <NEW_LINE> <INDENT> Navigator(self.browser).go_to_gpg_keys() <NEW_LINE> <DEDENT> def _search_locator(self): <NEW_LINE> <INDENT> return locators['gpgkey.key_name'] <NEW...
Manipulates GPG keys from UI.
6259907692d797404e389814
class Tweet(models.Model): <NEW_LINE> <INDENT> user = models.ForeignKey(User) <NEW_LINE> text = models.CharField(max_length=160) <NEW_LINE> created_date = models.DateTimeField(auto_now_add=True) <NEW_LINE> country = models.CharField(max_length=30) <NEW_LINE> is_active = models.BooleanField(default=True) <NEW_LINE> def...
Tweet Model
6259907676e4537e8c3f0ef1
class TestConnectToSequencescape(unittest.TestCase): <NEW_LINE> <INDENT> def test_returns_connection(self): <NEW_LINE> <INDENT> database_location = "dialect://HOST" <NEW_LINE> connection = connect_to_sequencescape(database_location) <NEW_LINE> self.assertIsInstance(connection, Connection)
Tests for `connect_to_sequencescape` method.
625990764e4d562566373d74
class Story(): <NEW_LINE> <INDENT> def __init__(self, name, parameters=ParameterDeclarations()): <NEW_LINE> <INDENT> self.name = name <NEW_LINE> self.acts = [] <NEW_LINE> if not isinstance(parameters,ParameterDeclarations): <NEW_LINE> <INDENT> raise TypeError('parameters input is not of type ParameterDeclarations') <NE...
The Story class creates a story of the OpenScenario Parameters ---------- name (str): name of the story parameters (ParameterDeclarations): the parameters of the Story Default: ParameterDeclarations() Attributes ---------- name (str): name of the story parameters (ParameterDeclarations)...
62599076baa26c4b54d50c22
class VideoGallery(SingletonModel, AbstractMeta): <NEW_LINE> <INDENT> def __str__(self): <NEW_LINE> <INDENT> return u"Video Gallery" <NEW_LINE> <DEDENT> def get_videos(self): <NEW_LINE> <INDENT> all_videos = (image for image in self.videogallerylink_set.filter(status=AbstractStatus.PUBLISHED)) <NEW_LINE> return all_vid...
Video Gallery
62599076283ffb24f3cf521d
class ElectronicDevice: <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.deviceAvailability= True <NEW_LINE> self.locationDevice= "not set" <NEW_LINE> self.deviceType="not set" <NEW_LINE> <DEDENT> def setDeviceAvailability(self, availability): <NEW_LINE> <INDENT> self.deviceAvailability = availability <...
Class to represent the electronic device
6259907671ff763f4b5e911e
class UpgradeNodeCommand(GraphCommand): <NEW_LINE> <INDENT> def __init__(self, graph, node, parent=None): <NEW_LINE> <INDENT> super(UpgradeNodeCommand, self).__init__(graph, parent) <NEW_LINE> self.nodeDict = node.toDict() <NEW_LINE> self.nodeName = node.getName() <NEW_LINE> self.outEdges = {} <NEW_LINE> self.setText("...
Perform node upgrade on a CompatibilityNode.
625990768a349b6b43687bcd
class TunTapInterface(SuperSocket): <NEW_LINE> <INDENT> desc = "Act as the host's peer of a tun / tap interface" <NEW_LINE> def __init__(self, iface=None, mode_tun=None, *arg, **karg): <NEW_LINE> <INDENT> self.iface = conf.iface if iface is None else iface <NEW_LINE> self.mode_tun = ("tun" in self.iface) if mode_tun is...
A socket to act as the host's peer of a tun / tap interface.
625990767d43ff24874280cd
class TestReview(TestBaseModel): <NEW_LINE> <INDENT> def __init__(self, *args, **kwargs): <NEW_LINE> <INDENT> super().__init__(*args, **kwargs) <NEW_LINE> self._class = Review <NEW_LINE> self._name = "Review" <NEW_LINE> <DEDENT> def test__class_attrs(self): <NEW_LINE> <INDENT> self.assertIsInstance(self._class.place_id...
Review Tests
62599076be8e80087fbc0a06
class Link(models.Model): <NEW_LINE> <INDENT> name = models.CharField(max_length=100) <NEW_LINE> url = models.URLField(max_length=1023) <NEW_LINE> project = models.ForeignKey('projects.Project', null=True) <NEW_LINE> user = models.ForeignKey('users.UserProfile', null=True) <NEW_LINE> subscription = models.ForeignKey(Su...
A link that can be added to a project or user. Links that have an Atom or RSS feed will be subscribed to using the declared hub or SuperFeedrs.
625990763317a56b869bf1ff
@library.register(CONCENT_MSG_BASE + 11) <NEW_LINE> class ForceGetTaskResultFailed(tasks.TaskMessage): <NEW_LINE> <INDENT> TASK_ID_PROVIDERS = ('task_to_compute', ) <NEW_LINE> EXPECTED_OWNERS = (tasks.TaskMessage.OWNER_CHOICES.concent, ) <NEW_LINE> __slots__ = [ 'task_to_compute', ] + base.Message.__slots__ <NEW_LINE> ...
Sent from the Concent to the Requestor to announce a failure to retrieve the results from the Provider. Having received this message, the Requestor can use it later on to reject any attempt at forced acceptance by proving the result could not have been downloaded in the first place.
62599076ad47b63b2c5a91c2
class GetEndpointResultSet(ResultSet): <NEW_LINE> <INDENT> def getJSONFromString(self, str): <NEW_LINE> <INDENT> return json.loads(str) <NEW_LINE> <DEDENT> def get_Response(self): <NEW_LINE> <INDENT> return self._output.get('Response', None) <NEW_LINE> <DEDENT> def get_NewAccessToken(self): <NEW_LINE> <INDENT> return s...
A ResultSet with methods tailored to the values returned by the GetEndpoint Choreo. The ResultSet object is used to retrieve the results of a Choreo execution.
62599076cc0a2c111447c78b
class SaltKey(salt.utils.parsers.SaltKeyOptionParser): <NEW_LINE> <INDENT> def run(self): <NEW_LINE> <INDENT> import salt.key <NEW_LINE> self.parse_args() <NEW_LINE> self.setup_logfile_logger() <NEW_LINE> verify_log(self.config) <NEW_LINE> key = salt.key.KeyCLI(self.config) <NEW_LINE> if check_user(self.config['user'])...
Initialize the Salt key manager
62599076bf627c535bcb2e41
class DenseLayer(FullyConnectedLayer): <NEW_LINE> <INDENT> def __init__(self, input_dim, output_dim=100, weight_scale=1e-2): <NEW_LINE> <INDENT> self.input_dim = input_dim <NEW_LINE> self.output_dim = output_dim <NEW_LINE> W = weight_scale*np.random.rand(input_dim, output_dim) <NEW_LINE> b = np.zeros(output_dim) <NEW_L...
A dense hidden layer performs an affine transform followed by ReLU. Here we use ReLU as default activation function.
62599076379a373c97d9a996
class RangeDaily(RangeDailyBase): <NEW_LINE> <INDENT> def missing_datetimes(self, finite_datetimes): <NEW_LINE> <INDENT> try: <NEW_LINE> <INDENT> cls_with_params = functools.partial(self.of, **self.of_params) <NEW_LINE> complete_parameters = self.of.bulk_complete.__func__(cls_with_params, map(self.datetime_to_parameter...
Efficiently produces a contiguous completed range of a daily recurring task that takes a single ``DateParameter``. Falls back to infer it from output filesystem listing to facilitate the common case usage. Convenient to use even from command line, like: .. code-block:: console luigi --module your.module RangeDa...
625990764428ac0f6e659ea3
class Patch(object): <NEW_LINE> <INDENT> @property <NEW_LINE> def num_cells_global(self): <NEW_LINE> <INDENT> return self.get_dim_attribute('num_cells') <NEW_LINE> <DEDENT> @property <NEW_LINE> def lower_global(self): <NEW_LINE> <INDENT> return self.get_dim_attribute('lower') <NEW_LINE> <DEDENT> @property <NEW_LINE> de...
:Global Patch information: Each patch has a value for :attr:`level` and :attr:`patch_index`.
625990768e7ae83300eeaa06
class LightObject: <NEW_LINE> <INDENT> def __eq__(self, other): <NEW_LINE> <INDENT> attr_names = dir(self) <NEW_LINE> for cur_attr in attr_names: <NEW_LINE> <INDENT> if not cur_attr.startswith('_'): <NEW_LINE> <INDENT> attr_val = getattr(self, cur_attr) <NEW_LINE> if not callable(attr_val) and attr_v...
In-memory object This class represents a POJO object which holds only simple properties stored in memory but no indirect resources.
625990763539df3088ecdc0c
class AbstractFlags(AbstractSingleton): <NEW_LINE> <INDENT> @abstractmethod <NEW_LINE> def get(self, key): ... <NEW_LINE> @abstractmethod <NEW_LINE> def set(self, key, value): ...
Abstract Flags Class This is a Abstract Singleton Class
625990767047854f46340d2d
class SealsIdentity(rf.Serializer): <NEW_LINE> <INDENT> SeaIdSEAID530 = RequiredStr(max_length=20, help_text='Seals identity')
SEAID529Type
6259907632920d7e50bc79bc
class OrderGoods(BaseModel): <NEW_LINE> <INDENT> SCORE_CHOICES = ( (0, '0分'), (1, '20分'), (2, '40分'), (3, '60分'), (4, '80分'), (5, '100分'), ) <NEW_LINE> order = models.ForeignKey(OrderInfo, related_name='skus', on_delete=models.CASCADE, verbose_name="订单") <NEW_LINE> sku = models.ForeignKey(Sku, on_delete=models.PROTECT,...
订单商品
625990768a43f66fc4bf3b0a
class CustomProgEnvToolAction (CustomToolAction): <NEW_LINE> <INDENT> def get_tool(self, value): <NEW_LINE> <INDENT> if '=' in value: <NEW_LINE> <INDENT> env, default = value.split('=', 1) <NEW_LINE> <DEDENT> else: <NEW_LINE> <INDENT> env, default = value, None <NEW_LINE> <DEDENT> return ProgEnvTool(env, default=defaul...
An action that sets ``tool`` with a custom `ProgEnvTool` instance.
62599076097d151d1a2c29e9
class VoteLedger(Ledger): <NEW_LINE> <INDENT> def __init__(self, ballots): <NEW_LINE> <INDENT> super(VoteLedger, self).__init__() <NEW_LINE> self.total_ballots = len(ballots) <NEW_LINE> for ballot in ballots: <NEW_LINE> <INDENT> self.ledger[ballot] = STATE.CREATED <NEW_LINE> <DEDENT> self.ledger[STATE.CREATED] = self.t...
Ledger that stores state of ballots, total votes for candidates as well as collective totals of created, issued, and used ballots.
6259907691f36d47f2231b49
class Logger(object): <NEW_LINE> <INDENT> _FORMAT_LOG_MSG = "%(asctime)s %(name)s %(levelname)s: %(message)s" <NEW_LINE> _FORMAT_LOG_DATE = "%Y/%m/%d %p %l:%M:%S" <NEW_LINE> def __init__(self, log_file_path=None, debug=False): <NEW_LINE> <INDENT> self.logger = logging.getLogger(type(self).__name__) <NEW_LINE> handler =...
Logger base class for this module.
625990767047854f46340d2e
class ASSArticle(ASSItem): <NEW_LINE> <INDENT> _title: str <NEW_LINE> _keywords: list <NEW_LINE> _abstract: str <NEW_LINE> _author: list <NEW_LINE> _doi: str <NEW_LINE> _issn: str <NEW_LINE> _content: str <NEW_LINE> def __init__(self, **kwargs): <NEW_LINE> <INDENT> bibentry: dict <NEW_LINE> if ass_constant.BIB_ENTRY in...
The basic item element for a corpus made of scientific articles
6259907667a9b606de54775f
class InfoObjectFamily(DingoModel): <NEW_LINE> <INDENT> name = models.SlugField(max_length=256, unique=True, help_text="Identifier for InfoObject Family") <NEW_LINE> title = models.CharField(max_length=1024, blank=True, help_text="""A human-readable title for the InfoObject Family""") <NEW_LINE> description = models.Te...
There may be several source formats of information objects, for example: - CybOx - STIX - OpenIOC - ... The 'family' associated with an Information Objects informs about the source format.
6259907699cbb53fe683285a
class RuleViolationError(CommandFailure): <NEW_LINE> <INDENT> pass
Error indicating action being against the rules of contract bridge
6259907601c39578d7f143ef
class IndexRecordHash(Base): <NEW_LINE> <INDENT> __tablename__ = 'index_record_hash' <NEW_LINE> did = Column(String, ForeignKey('index_record.did'), primary_key=True) <NEW_LINE> hash_type = Column(String, primary_key=True) <NEW_LINE> hash_value = Column(String)
Base index record hash representation.
62599076ad47b63b2c5a91c4
class HostGroupResponse(object): <NEW_LINE> <INDENT> swagger_types = { 'items': 'list[HostGroup]' } <NEW_LINE> attribute_map = { 'items': 'items' } <NEW_LINE> required_args = { } <NEW_LINE> def __init__( self, items=None, ): <NEW_LINE> <INDENT> if items is not None: <NEW_LINE> <INDENT> self.items = items <NEW_LINE> <DE...
Attributes: swagger_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition.
6259907656b00c62f0fb4247
class OutputPluginDescriptor(rdf_structs.RDFProtoStruct): <NEW_LINE> <INDENT> protobuf = output_plugin_pb2.OutputPluginDescriptor <NEW_LINE> def GetPluginClass(self): <NEW_LINE> <INDENT> if self.plugin_name: <NEW_LINE> <INDENT> plugin_cls = OutputPlugin.classes.get(self.plugin_name) <NEW_LINE> if plugin_cls is None: <N...
An rdfvalue describing the output plugin to create.
625990765166f23b2e244d4c
class DummyModelFactory(factory.DjangoModelFactory): <NEW_LINE> <INDENT> FACTORY_FOR = DummyModel <NEW_LINE> charfield = factory.Sequence(lambda n: 'charfield {0}'.format(n))
Factory for the ``DummyModel`` test model.
62599076796e427e538500ef
class Transposition_cipher_range_keys(unittest.TestCase): <NEW_LINE> <INDENT> def test_Transposition_range_keys(self): <NEW_LINE> <INDENT> for test_key in range(1, int(len(test_message) / 2)): <NEW_LINE> <INDENT> transposition_test = Transposition(test_message, key=test_key) <NEW_LINE> self.assertEqual(transposition_te...
Test Transposition cipher with keys in range of len(test_message).
6259907638b623060ffaa511
class MediaControlPlugin(QtWidgets.QGroupBox, peacock.base.MediaControlWidgetBase, PostprocessorPlugin): <NEW_LINE> <INDENT> timeChanged = QtCore.pyqtSignal(float) <NEW_LINE> def __init__(self): <NEW_LINE> <INDENT> super(MediaControlPlugin, self).__init__() <NEW_LINE> self.setEnabled(False) <NEW_LINE> self.setMainLayou...
Time controls for Postprocessor data. Args: date[list]: A list of PostprocessorDataWidget objects.
62599076ec188e330fdfa21c
class HomeController: <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> def show(self, request: Request, view: View): <NEW_LINE> <INDENT> if not Auth(request).user(): <NEW_LINE> <INDENT> request.redirect('/login') <NEW_LINE> <DEDENT> return view.render('auth/home', {'app': request.app...
Home Dashboard Controller
625990762ae34c7f260aca5b
class TestCDAtaListAttributes(SoupTest): <NEW_LINE> <INDENT> def test_single_value_becomes_list(self): <NEW_LINE> <INDENT> soup = self.soup("<a class='foo'>") <NEW_LINE> self.assertEqual(["foo"],soup.a['class']) <NEW_LINE> <DEDENT> def test_multiple_values_becomes_list(self): <NEW_LINE> <INDENT> soup = self.soup("<a cl...
Testing cdata-list attributes like 'class'.
62599076f548e778e596cf05
class Plane(object): <NEW_LINE> <INDENT> def __init__(self,normal,dvalue,color): <NEW_LINE> <INDENT> self.mNormal=normal.normalized() <NEW_LINE> self.mDistance=dvalue <NEW_LINE> self.mColor=color <NEW_LINE> <DEDENT> def rayIntersection(self,ray): <NEW_LINE> <INDENT> if self.mNormal.dot(ray.mDirection)==0: <NEW_LINE> <I...
Creates a plane object
625990764428ac0f6e659ea5
class QuadrupletDataset(Dataset): <NEW_LINE> <INDENT> def __init__(self, dataset, train=True): <NEW_LINE> <INDENT> if dataset is None: <NEW_LINE> <INDENT> return None <NEW_LINE> <DEDENT> self.dataset = dataset <NEW_LINE> self.labels = self.dataset.labels <NEW_LINE> self.labels_set = set(self.labels) <NEW_LINE> self.lab...
Train: For each sample (anchor) randomly chooses a positive and negative1 and negative2 samples Test: Creates fixed quadruplets for testing
62599076460517430c432d14
class FocalMechanism(QPCore.QPPublicObject): <NEW_LINE> <INDENT> addElements = QPElement.QPElementList(( QPElement.QPElement('publicID', 'publicID', 'attribute', unicode, 'basic'), QPElement.QPElement('triggeringOriginID', 'triggeringOriginID', 'element', unicode, 'basic'), QPElement.QPElement('nodalPlanes', 'nodalPlan...
QuakePy: FocalMechanism
625990764f6381625f19a166
class BaseAuditError(job_run_result.JobRunResult): <NEW_LINE> <INDENT> def __init__(self, message, model_or_kind, model_id=None): <NEW_LINE> <INDENT> if not isinstance(message, str): <NEW_LINE> <INDENT> raise TypeError('message must be a string') <NEW_LINE> <DEDENT> if not message: <NEW_LINE> <INDENT> raise ValueError(...
Base class for model audit errors.
62599076e1aae11d1e7cf4ca
class GreeterServicer(object): <NEW_LINE> <INDENT> def Hello(self, request, context): <NEW_LINE> <INDENT> pass <NEW_LINE> context.set_code(grpc.StatusCode.UNIMPLEMENTED) <NEW_LINE> context.set_details('Method not implemented!') <NEW_LINE> raise NotImplementedError('Method not implemented!')
定义服务的API
625990768a349b6b43687bd1
class TooOldServerVersion(Exception): <NEW_LINE> <INDENT> def __init__(self, method_name='', version='', message=None): <NEW_LINE> <INDENT> if message is None: <NEW_LINE> <INDENT> self.message = ( f'The "{method_name}" method works with versions older {version},' f' upgrade version ADCM.' ) <NEW_LINE> <DEDENT> else: <N...
Incompatible version, upgrade version ADCM.
62599076a8370b77170f1d44
class AddToGroupNode(CrowdMasterAGenTreeNode): <NEW_LINE> <INDENT> bl_idname = 'AddToGroupNodeType' <NEW_LINE> bl_label = 'Add To Group' <NEW_LINE> bl_icon = 'SOUND' <NEW_LINE> groupName = StringProperty() <NEW_LINE> def init(self, context): <NEW_LINE> <INDENT> self.inputs.new('TemplateSocketType', "Template") <NEW_LIN...
The addToGroup node
6259907667a9b606de547760
class ValidateComponent(Rule): <NEW_LINE> <INDENT> def __init__(self, uri, component: list): <NEW_LINE> <INDENT> passed = True <NEW_LINE> fail_reasons = [] <NEW_LINE> required = ["label", "from", "to", "title", "rules", "headers"] <NEW_LINE> for req in required: <NEW_LINE> <INDENT> if not req in component: <NEW_LINE> <...
Validate that the PID URI test contains the correct component keys. Arguments: Rule {[type]} -- [description]
625990763346ee7daa33831b
class NoRepeatNGramLogitsProcessor(LogitsProcessor): <NEW_LINE> <INDENT> def __init__(self, ngram_size: int): <NEW_LINE> <INDENT> if not isinstance(ngram_size, int) or ngram_size <= 0: <NEW_LINE> <INDENT> raise ValueError(f"`ngram_size` has to be a strictly positive integer, but is {ngram_size}") <NEW_LINE> <DEDENT> se...
:class:`transformers.LogitsProcessor` that enforces no repetition of n-grams. See `Fairseq <https://github.com/pytorch/fairseq/blob/a07cb6f40480928c9e0548b737aadd36ee66ac76/fairseq/sequence_generator.py#L345>`__. Args: ngram_size (:obj:`int`): All ngrams of size :obj:`ngram_size` can only occur once.
62599076627d3e7fe0e08800
class Centroid(Point): <NEW_LINE> <INDENT> gtype = libvect.GV_CENTROID <NEW_LINE> def __init__(self, area_id=None, **kargs): <NEW_LINE> <INDENT> super(Centroid, self).__init__(**kargs) <NEW_LINE> self.area_id = area_id <NEW_LINE> if self.id and self.c_mapinfo and self.area_id is None: <NEW_LINE> <INDENT> self.area_id =...
The Centroid class inherit from the Point class. Centroid contains an attribute with the C Map_info struct, and attributes with the id of the Area. :: >>> centroid = Centroid(x=0, y=10) >>> centroid Centoid(0.000000, 10.000000) >>> from grass.pygrass.vector import VectorTopo >>> geo = VectorTopo('g...
6259907638b623060ffaa512
class INT_COR_Generator(COR_Generator): <NEW_LINE> <INDENT> def execute(self, rule): <NEW_LINE> <INDENT> try: <NEW_LINE> <INDENT> if(rule.type is not CODE_STR or rule.text_type is not CODE_INT): <NEW_LINE> <INDENT> if(self.next is not None): <NEW_LINE> <INDENT> return self.next.execute(rule) <NEW_LINE> <DEDENT> <DEDENT...
The cor corresponding the int generation
625990762ae34c7f260aca5d
class Local(object): <NEW_LINE> <INDENT> def __init__(self, target_host, local_base_path, out_path): <NEW_LINE> <INDENT> self.target_host = target_host <NEW_LINE> self.base_path = local_base_path <NEW_LINE> self.cache_path = os.path.join(self.base_path, "cache") <NEW_LINE> self.conf_path = os.path.join(self.base_path, ...
Execute commands locally. All interaction with the local side should be done through this class. Directly accessing the local side from python code is a bug.
625990768a43f66fc4bf3b0e
class MakeRequests(object): <NEW_LINE> <INDENT> def __init__(self, url, apikey, method='GET'): <NEW_LINE> <INDENT> self.method = method <NEW_LINE> self.url = url <NEW_LINE> self.apikey = apikey <NEW_LINE> <DEDENT> def send_(self): <NEW_LINE> <INDENT> if self.method is 'GET': <NEW_LINE> <INDENT> headers = {'apikey': sel...
Some request helper classes
6259907632920d7e50bc79c0
@dataclass(frozen=True) <NEW_LINE> class SpotInstanceInputs(SageMakerComponentBaseInputs): <NEW_LINE> <INDENT> spot_instance: SageMakerComponentInput <NEW_LINE> max_wait_time: SageMakerComponentInput <NEW_LINE> max_run_time: SageMakerComponentInput <NEW_LINE> checkpoint_config: SageMakerComponentInput
Inputs to enable spot instance support.
62599076a17c0f6771d5d869
class DialogIcons(IconProviderInfo): <NEW_LINE> <INDENT> name = u'VistaICO.com' <NEW_LINE> url = (u'http://www.vistaico.com')
Copyright information of the icons used in the dialogs.
62599076be7bc26dc9252b11
class Plotting(unittest.TestCase): <NEW_LINE> <INDENT> def setUp(self): <NEW_LINE> <INDENT> def f(x): <NEW_LINE> <INDENT> return sin(1 * x) + 5e-1 * cos(10 * x) + 5e-3 * sin(100 * x) <NEW_LINE> <DEDENT> def u(x): <NEW_LINE> <INDENT> return np.exp(2 * np.pi * 1j * x) <NEW_LINE> <DEDENT> subinterval = Interval(-6, 10) <N...
Unit-tests for Bndfun plotting methods
625990769c8ee82313040e43
class Alias(BaseModel): <NEW_LINE> <INDENT> book = models.ForeignKey( Book, related_name='aliases') <NEW_LINE> value = models.CharField( max_length=255, db_index=True, help_text='The value of this identifier') <NEW_LINE> scheme = models.CharField( max_length=40, help_text='The scheme of identifier') <NEW_LINE> class Me...
Alternate identifiers for a given book. For example, a book can be referred to with an ISBN-10 (older, deprecated scheme), ISBN-13 (newer scheme), or any number of other aliases. In addition to the publisher-provided aliases we create an alias 'PUB_ID' for the book id they provide.
62599076f9cc0f698b1c5f88
class stock_picking(osv.osv): <NEW_LINE> <INDENT> _inherit = 'stock.picking' <NEW_LINE> PICKING_STATE = [ ('draft', 'Draft'), ('auto', 'Waiting'), ('confirmed', 'Confirmed'), ('assigned', 'Available'), ('shipped', 'Available Shipped'), ('done', 'Closed'), ('cancel', 'Cancelled'), ('import', 'Import in progress'), ('del...
add a check boolean for confirmation of delivery
62599076a8370b77170f1d46
class UserTag(models.Model): <NEW_LINE> <INDENT> name = models.CharField(max_length=10, verbose_name=u'Тег', unique=True) <NEW_LINE> slug = models.CharField(max_length=20, verbose_name=u'Slug для тега', unique=True) <NEW_LINE> author = models.ForeignKey(User, verbose_name=u'Автор тега', related_name='author_tags') <NEW...
Модель для пользовательских тегов. Один пользователь другому может их проставить
625990761b99ca40022901f2
class IMultiSelect2Widget(Interface): <NEW_LINE> <INDENT> pass
Marker interface for multi select2 widget
6259907699fddb7c1ca63a92
class FakeRunner: <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.exelines=[] <NEW_LINE> self.np=0 <NEW_LINE> self.nn=0 <NEW_LINE> self.jobname='FAKERUNNER' <NEW_LINE> self.queue='FAKEQUEUE' <NEW_LINE> self.walltime='0:00:00' <NEW_LINE> self.prefix=[] <NEW_LINE> self.postfix=[] <NEW_LINE> self.queueid=...
Object that can be used as a runner, but will ignore run commands. Useful for debugging.
625990765166f23b2e244d50
class State: <NEW_LINE> <INDENT> def handle(self, event): <NEW_LINE> <INDENT> if event.type == QUIT: <NEW_LINE> <INDENT> sys.exit() <NEW_LINE> <DEDENT> if event.type == KEYDOWN and event.key == K_ESCAPE: <NEW_LINE> <INDENT> sys.exit() <NEW_LINE> <DEDENT> <DEDENT> def firstDisplay(self, screen): <NEW_LINE> <INDENT> scre...
状态
6259907655399d3f05627e8d
class DecimalPrinter: <NEW_LINE> <INDENT> def __init__(self, nbits, name, val): <NEW_LINE> <INDENT> self.name = name <NEW_LINE> self.val = val <NEW_LINE> self.nbits = nbits <NEW_LINE> <DEDENT> def to_string(self): <NEW_LINE> <INDENT> dec = Decimal.from_bits(self.nbits, self.val) <NEW_LINE> return f"{self.name}({int(dec...
Pretty-printer for Arrow decimal values.
625990763d592f4c4edbc81a
class MetricMetadata(object): <NEW_LINE> <INDENT> __slots__ = ( "aggregator", "retention", "carbon_xfilesfactor", ) <NEW_LINE> _DEFAULT_AGGREGATOR = Aggregator.average <NEW_LINE> _DEFAULT_RETENTION = Retention.from_string("86400*1s:10080*60s") <NEW_LINE> _DEFAULT_XFILESFACTOR = 0.5 <NEW_LINE> def __init__(self, aggrega...
Represents all information about a metric except its name. Not meant to be mutated.
625990762c8b7c6e89bd5163