-
Notifications
You must be signed in to change notification settings - Fork 124
/
benchmark.html
67 lines (61 loc) · 2.12 KB
/
benchmark.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
{#
Copyright 2024 Google LLC
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
#}{% extends 'base.html' %}
{% block content %}
<style>
td, th {
border-right: 1px #dedede solid;
padding: 5px;
text-align: left;
}
</style>
<h1>{{ benchmark }}</h1>
<table>
<tr>
<th>Sample</th>
<th>Status</th>
<th>Builds</th>
<th>Crashes</th>
<th>Bug</th>
<th>Diagnosis</th>
<th>Triage</th>
<th>Coverage</th>
<th>Line coverage diff</th>
</tr>
{% for sample in samples %}
<tr>
<td><a href="../../sample/{{ benchmark|urlencode }}/{{ sample.id }}.html">{{ sample.id }}</a></li></td>
<td>{{ sample.status }}</td>
{% if sample.result %}
<td style="color: {{ 'green' if sample.result.compiles else 'black' }}">{{ sample.result.compiles }}</td>
<td style="color: {{ 'red' if sample.result.crashes else 'black' }}">{{ sample.result.crashes }}</td>
<td style="color: {{ 'red' if sample.result.crashes and not sample.result.is_semantic_error else 'black' }}">{{ sample.result.crashes and not sample.result.is_semantic_error }}</td>
<td>{{ sample.result.semantic_error }} </td>
<td>{{ sample.result.triage }}</td>
<td>{{ sample.result.coverage |percent }}</td>
<td><a href="{{ sample.result.coverage_report_path | cov_report_link }}">{{ sample.result.line_coverage_diff|percent }}</a></td>
{% else %}
<td>N/A</td>
<td>N/A</td>
<td>N/A</td>
<td>N/A</td>
<td>N/A</td>
<td>N/A</td>
{% endif %}
</tr>
{% endfor %}
</table>
<h2>Prompt</h2>
<pre>
{{ prompt }}
</pre>
{% endblock %}