-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathusages.html
145 lines (137 loc) · 5.18 KB
/
usages.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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
---
layout: default
title: They Use WRENCH
permalink: /usages
---
<script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/3.5.1/chart.min.js"
integrity="sha512-Wt1bJGtlnMtGP0dqNFH1xlkLBNpEodaiQ8ZN5JLA5wpc1sUlk/O5uuOMNgvzddzkpvZ9GLyYNa8w2s7rqiTk5Q=="
crossorigin="anonymous" referrerpolicy="no-referrer"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/semantic-ui/2.4.1/semantic.min.js"
integrity="sha512-dqw6X88iGgZlTsONxZK9ePmJEFrmHwpuMrsUChjAw1mRUhUITE5QU9pkcSox+ynfLhL15Sv2al5A0LVyDCmtUw=="
crossorigin="anonymous" referrerpolicy="no-referrer"></script>
<div id="main">
{% assign total_usage = site.data.citations | where: "usage", true | size %}
{% assign total_citations = site.data.citations | size %}
<article class="post">
<header>
<div class="title">
<h2>They Use WRENCH</h2>
Publications, Simulators, and Research enabled by WRENCH
</div>
</header>
<h2>WRENCH Citations</h2>
WRENCH has enabled research in <strong>{{total_usage}} research articles</strong>.
These articles include research outcomes produced by our own team as well as other researchers from
the distributed computing community.
<br/><br/>
<canvas id="citationsChart" style="max-height: 20em; max-width: 100%"></canvas>
<br/>
<ol reversed>
{% assign citations = site.data.citations | sort: "year" | reverse %}
{% for n in citations %}
<li>
{% if n.usage %}<span class="usage">WRENCH-Simulator</span> {% endif %}
{% unless n.self %}<span class="external">External</span> {% endunless %}
<a href="{{n.url}}" target="_blank">{{n.title}}</a>,
<span style="color: #999">{{n.authors}}, {{n.year}}.</span>
</li>
{% endfor %}
</ol>
</article>
<article class="post">
<header>
<div class="title">
<h2>Simulators</h2>
<p style="margin-bottom: 1em">If you would like to publish your WRENCH-enabled simulator
in this page, reach out to the team by sending an email to:</p>
<pre><i class="far fa-envelope"></i> [email protected]</pre>
</div>
</header>
<div class="row">
{% if site.data.usage.size > 0 %}
{% for n in site.data.usage %}
<div class="col-lg-6 col-md-6 col-sm-12 col-xs-12">
<div class="simulators">
<strong>{{ n.name }}</strong><br/>
<span>{{ n.description }}</span><br/>
<a href="{{ n.url }}" target="_blank" class="github-button">
<i class="fab fa-github"></i> GitHub Repository
</a>
{% if n.external %} <span class="external">External</span>{% endif %}
</div>
</div>
{% endfor %}
{% endif %}
</div>
</article>
</div>
<script type="text/javascript">
let entries = [
{% assign citations = site.data.citations | sort: "year" %}
{% assign citation_count = citations | size %}
{% for n in citations %}
{
year: "{{n.year}}",
type: "{{n.type}}",
title: "{{n.title}}",
self: "{{n.self}}",
usage: "{{n.usage}}"
},
{% endfor %}
]
let data = {
labels: [],
datasets: [],
}
let datasetTypes = ["Journal", "Conference", "Workshop", "PhD Thesis", "Master Thesis", "Report", "Presentation"];
let datasetColors = ["#A7226E", "#EC2049", "#F7DB4F", "#F26B38", "#2F9599", "#547980", "#FF8C94"];
for (let i = 0; i < datasetTypes.length; i++) {
data.datasets.push({
label: datasetTypes[i],
backgroundColor: datasetColors[i],
data: []
});
}
for (let i = 0; i < entries.length; i++) {
if (!data.labels.includes(entries[i].year)) {
data.labels.push(entries[i].year);
for (let j = 0; j < datasetTypes.length; j++) {
data.datasets[j].data.push(0);
}
}
let index = datasetTypes.indexOf(entries[i].type);
data.datasets[index].data[data.labels.indexOf(entries[i].year)]++;
}
console.log(data);
let ctx = document.getElementById("citationsChart");
new Chart(ctx, {
type: 'bar',
data: data,
options: {
scales: {
y: {
stacked: true,
title: {
display: true,
text: 'Number of Citations'
}
},
x: {
stacked: true,
title: {
display: true,
text: 'Years'
}
}
},
chartArea: {
backgroundColor: "#FEF8F8"
},
tooltips: {
position: 'nearest',
mode: 'point',
intersect: 'false'
}
}
});
</script>