# This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/.
import multiprocessing from abc import ABCMeta, abstractproperty from collections import defaultdict
for task in tasks.values(): ifnot self.contains(task): continue
task = task.attributes
label = labels[self.labelfn(task)] for attr in self.attrs: if attr in task and task[attr] notin label["attrs"][attr]:
label["attrs"][attr].append(task[attr])
@register_section class Analysis(Section):
name = "analysis"
kind = "build,static-analysis-autotest,hazard"
title = "Analysis"
attrs = ["build_platform"]
def create_application(tg, queue: multiprocessing.Queue):
tasks = {l: t for l, t in tg.tasks.items() if t.kind in SUPPORTED_KINDS}
sections = [s.get_context(tasks) for s in SECTIONS]
context = { "tasks": {l: t.attributes for l, t in tasks.items()}, "sections": sections,
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.