Skip to content

Commit

Permalink
Built site for gh-pages
Browse files Browse the repository at this point in the history
  • Loading branch information
Quarto GHA Workflow Runner committed Oct 13, 2024
1 parent 7fddc19 commit 1478e6d
Show file tree
Hide file tree
Showing 9 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion .nojekyll
Original file line number Diff line number Diff line change
@@ -1 +1 @@
410b4866
ee5da248
14 changes: 7 additions & 7 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,7 @@ <h1 class="title">Glittr stats</h1>
<span></span>
<span><span class="va">tag_df</span> <span class="op">&lt;-</span> <span class="fu"><a href="https://rdrr.io/r/base/do.call.html">do.call</a></span><span class="op">(</span><span class="va">rbind</span>, <span class="va">tag_dfs</span><span class="op">)</span> <span class="op">|&gt;</span> <span class="fu"><a href="https://dplyr.tidyverse.org/reference/arrange.html">arrange</a></span><span class="op">(</span><span class="va">repositories</span><span class="op">)</span></span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
</div>
<p>Number of tags/topics: 58</p>
<p>Number of tags/topics: 59</p>
</section><section id="number-of-repositories-by-category" class="level2"><h2 class="anchored" data-anchor-id="number-of-repositories-by-category">Number of repositories by category</h2>
<p>This is figure 2A in the manuscript.</p>
<div class="cell">
Expand Down Expand Up @@ -961,13 +961,13 @@ <h1 class="title">Glittr stats</h1>
</tr>
<tr class="even">
<td style="text-align: left;">cc-by-sa-4.0</td>
<td style="text-align: right;">48</td>
<td style="text-align: right;">7.3</td>
<td style="text-align: right;">47</td>
<td style="text-align: right;">7.1</td>
</tr>
<tr class="odd">
<td style="text-align: left;">cc-by-4.0</td>
<td style="text-align: right;">40</td>
<td style="text-align: right;">6.0</td>
<td style="text-align: right;">41</td>
<td style="text-align: right;">6.2</td>
</tr>
<tr class="even">
<td style="text-align: left;">gpl-3.0</td>
Expand Down Expand Up @@ -1074,11 +1074,11 @@ <h1 class="title">Glittr stats</h1>
<tbody>
<tr class="odd">
<td style="text-align: left;">undefined</td>
<td style="text-align: right;">268</td>
<td style="text-align: right;">266</td>
</tr>
<tr class="even">
<td style="text-align: left;">United States</td>
<td style="text-align: right;">176</td>
<td style="text-align: right;">178</td>
</tr>
<tr class="odd">
<td style="text-align: left;">Canada</td>
Expand Down
Binary file modified index_files/figure-html/fig-contributors-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified index_files/figure-html/fig-country-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified index_files/figure-html/fig-license-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified index_files/figure-html/fig-tags-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 3 additions & 3 deletions search.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
"href": "index.html#parse-tag-data",
"title": "Glittr stats",
"section": "Parse tag data",
"text": "Parse tag data\nHere, we create tag_df that contains information for each tag by using the glittr.org API.\n\nparsed &lt;- request(\"https://glittr.org/api/tags\") |&gt;\n req_perform() |&gt;\n resp_body_json()\n\ntag_dfs &lt;- list()\nfor(i in seq_along(parsed)) {\n category &lt;- parsed[[i]]$category\n name &lt;- sapply(parsed[[i]]$tags, function(x) x$name)\n repositories &lt;- sapply(parsed[[i]]$tags, function(x) x$repositories)\n tag_dfs[[category]] &lt;- data.frame(name, category, repositories)\n}\n\ntag_df &lt;- do.call(rbind, tag_dfs) |&gt; arrange(repositories)\n\nNumber of tags/topics: 58"
"text": "Parse tag data\nHere, we create tag_df that contains information for each tag by using the glittr.org API.\n\nparsed &lt;- request(\"https://glittr.org/api/tags\") |&gt;\n req_perform() |&gt;\n resp_body_json()\n\ntag_dfs &lt;- list()\nfor(i in seq_along(parsed)) {\n category &lt;- parsed[[i]]$category\n name &lt;- sapply(parsed[[i]]$tags, function(x) x$name)\n repositories &lt;- sapply(parsed[[i]]$tags, function(x) x$repositories)\n tag_dfs[[category]] &lt;- data.frame(name, category, repositories)\n}\n\ntag_df &lt;- do.call(rbind, tag_dfs) |&gt; arrange(repositories)\n\nNumber of tags/topics: 59"
},
{
"objectID": "index.html#number-of-repositories-by-category",
Expand Down Expand Up @@ -74,14 +74,14 @@
"href": "index.html#number-of-repositories-per-license",
"title": "Glittr stats",
"section": "Number of repositories per license",
"text": "Number of repositories per license\nThis is figure 2E in the manuscript.\n\nlic_freq_data &lt;- table(license = repo_info$license,\n main_category = repo_info$main_category) |&gt;\n as.data.frame()\n\nlic_freq_data$main_category &lt;- factor(lic_freq_data$main_category,\n levels = names(cat_table))\n\nlic_freq_plot &lt;- lic_freq_data |&gt;\n ggplot(aes(x = reorder(license, Freq), y = Freq, fill = main_category)) +\n geom_bar(stat = \"identity\") +\n coord_flip() +\n scale_fill_manual(values = glittr_cols) +\n theme_classic() +\n ggtitle(\"License type\") +\n ylab(\"Number of repositories\") +\n theme(legend.position = \"none\",\n axis.title.y = element_blank())\n\nprint(lic_freq_plot)\n\n\n\n\n\n\nFigure 5: Number of repositories per license\n\n\n\n\nAnd a table with the actual numbers.\n\nrepo_info$license |&gt;\n table() |&gt;\n as.data.frame() |&gt;\n mutate(perc = round(Freq/nrow(repo_info)*100, 1)) |&gt;\n arrange(desc(Freq)) |&gt;\n knitr::kable()\n\n\nTable 4: Number of repositories per license\n\n\n\n\nVar1\nFreq\nperc\n\n\n\nother\n224\n33.8\n\n\nnone\n191\n28.9\n\n\nmit\n74\n11.2\n\n\ncc-by-sa-4.0\n48\n7.3\n\n\ncc-by-4.0\n40\n6.0\n\n\ngpl-3.0\n30\n4.5\n\n\ncc0-1.0\n25\n3.8\n\n\napache-2.0\n12\n1.8\n\n\nbsd-3-clause\n12\n1.8\n\n\nagpl-3.0\n2\n0.3\n\n\nartistic-2.0\n2\n0.3\n\n\nunlicense\n1\n0.2\n\n\nwtfpl\n1\n0.2"
"text": "Number of repositories per license\nThis is figure 2E in the manuscript.\n\nlic_freq_data &lt;- table(license = repo_info$license,\n main_category = repo_info$main_category) |&gt;\n as.data.frame()\n\nlic_freq_data$main_category &lt;- factor(lic_freq_data$main_category,\n levels = names(cat_table))\n\nlic_freq_plot &lt;- lic_freq_data |&gt;\n ggplot(aes(x = reorder(license, Freq), y = Freq, fill = main_category)) +\n geom_bar(stat = \"identity\") +\n coord_flip() +\n scale_fill_manual(values = glittr_cols) +\n theme_classic() +\n ggtitle(\"License type\") +\n ylab(\"Number of repositories\") +\n theme(legend.position = \"none\",\n axis.title.y = element_blank())\n\nprint(lic_freq_plot)\n\n\n\n\n\n\nFigure 5: Number of repositories per license\n\n\n\n\nAnd a table with the actual numbers.\n\nrepo_info$license |&gt;\n table() |&gt;\n as.data.frame() |&gt;\n mutate(perc = round(Freq/nrow(repo_info)*100, 1)) |&gt;\n arrange(desc(Freq)) |&gt;\n knitr::kable()\n\n\nTable 4: Number of repositories per license\n\n\n\n\nVar1\nFreq\nperc\n\n\n\nother\n224\n33.8\n\n\nnone\n191\n28.9\n\n\nmit\n74\n11.2\n\n\ncc-by-sa-4.0\n47\n7.1\n\n\ncc-by-4.0\n41\n6.2\n\n\ngpl-3.0\n30\n4.5\n\n\ncc0-1.0\n25\n3.8\n\n\napache-2.0\n12\n1.8\n\n\nbsd-3-clause\n12\n1.8\n\n\nagpl-3.0\n2\n0.3\n\n\nartistic-2.0\n2\n0.3\n\n\nunlicense\n1\n0.2\n\n\nwtfpl\n1\n0.2"
},
{
"objectID": "index.html#number-of-repositories-per-country",
"href": "index.html#number-of-repositories-per-country",
"title": "Glittr stats",
"section": "Number of repositories per country",
"text": "Number of repositories per country\nThis is figure 2F in the mansucript.\n\ncountry_freq &lt;- table(country = repo_info$country, \n main_category = repo_info$main_category) |&gt;\n as.data.frame()\n\ncountry_freq$main_category &lt;- factor(country_freq$main_category,\n levels = names(cat_table))\n\ncountry_freq_plot &lt;- country_freq |&gt;\n filter(country != \"undefined\") |&gt;\n ggplot(aes(x = reorder(country, Freq), y = Freq, fill = main_category)) +\n geom_bar(stat = \"identity\") +\n coord_flip() +\n ggtitle(\"Country\") +\n ylab(\"Number of repositories\") +\n scale_fill_manual(values = glittr_cols) +\n annotate(geom = \"text\", x = 2, y = 70,\n label = paste(\"Repos with undefined country: \",\n sum(repo_info$country == \"undefined\")),\n color=\"black\") +\n theme_classic() +\n theme(legend.position = \"none\",\n axis.title.y = element_blank())\n\nprint(country_freq_plot)\n\n\n\n\n\n\nFigure 6: Number of repositories per country colored by category\n\n\n\n\nAnd a table with the actual numbers.\n\nrepo_info$country |&gt; \n table() |&gt; \n as.data.frame() |&gt; \n arrange(desc(Freq)) |&gt; \n knitr::kable()\n\n\nTable 5: Number of repositories per country\n\n\n\n\nVar1\nFreq\n\n\n\nundefined\n268\n\n\nUnited States\n176\n\n\nCanada\n31\n\n\nSwitzerland\n30\n\n\nSweden\n23\n\n\nUnited Kingdom\n23\n\n\nAustralia\n15\n\n\nFrance\n14\n\n\nGermany\n14\n\n\nNetherlands\n12\n\n\nPortugal\n11\n\n\nBelgium\n10\n\n\nSpain\n8\n\n\nDenmark\n4\n\n\nIndia\n4\n\n\nNorway\n4\n\n\nIreland\n3\n\n\nItaly\n3\n\n\nBulgaria\n2\n\n\nArgentina\n1\n\n\nChina\n1\n\n\nFinland\n1\n\n\nLuxembourg\n1\n\n\nMexico\n1\n\n\nPoland\n1\n\n\nUkraine\n1"
"text": "Number of repositories per country\nThis is figure 2F in the mansucript.\n\ncountry_freq &lt;- table(country = repo_info$country, \n main_category = repo_info$main_category) |&gt;\n as.data.frame()\n\ncountry_freq$main_category &lt;- factor(country_freq$main_category,\n levels = names(cat_table))\n\ncountry_freq_plot &lt;- country_freq |&gt;\n filter(country != \"undefined\") |&gt;\n ggplot(aes(x = reorder(country, Freq), y = Freq, fill = main_category)) +\n geom_bar(stat = \"identity\") +\n coord_flip() +\n ggtitle(\"Country\") +\n ylab(\"Number of repositories\") +\n scale_fill_manual(values = glittr_cols) +\n annotate(geom = \"text\", x = 2, y = 70,\n label = paste(\"Repos with undefined country: \",\n sum(repo_info$country == \"undefined\")),\n color=\"black\") +\n theme_classic() +\n theme(legend.position = \"none\",\n axis.title.y = element_blank())\n\nprint(country_freq_plot)\n\n\n\n\n\n\nFigure 6: Number of repositories per country colored by category\n\n\n\n\nAnd a table with the actual numbers.\n\nrepo_info$country |&gt; \n table() |&gt; \n as.data.frame() |&gt; \n arrange(desc(Freq)) |&gt; \n knitr::kable()\n\n\nTable 5: Number of repositories per country\n\n\n\n\nVar1\nFreq\n\n\n\nundefined\n266\n\n\nUnited States\n178\n\n\nCanada\n31\n\n\nSwitzerland\n30\n\n\nSweden\n23\n\n\nUnited Kingdom\n23\n\n\nAustralia\n15\n\n\nFrance\n14\n\n\nGermany\n14\n\n\nNetherlands\n12\n\n\nPortugal\n11\n\n\nBelgium\n10\n\n\nSpain\n8\n\n\nDenmark\n4\n\n\nIndia\n4\n\n\nNorway\n4\n\n\nIreland\n3\n\n\nItaly\n3\n\n\nBulgaria\n2\n\n\nArgentina\n1\n\n\nChina\n1\n\n\nFinland\n1\n\n\nLuxembourg\n1\n\n\nMexico\n1\n\n\nPoland\n1\n\n\nUkraine\n1"
},
{
"objectID": "index.html#summary-plot",
Expand Down
2 changes: 1 addition & 1 deletion site_libs/bootstrap/bootstrap.min.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion sitemap.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<url>
<loc>https://sib-swiss.github.io/glittr-stats/index.html</loc>
<lastmod>2024-10-06T01:02:50.477Z</lastmod>
<lastmod>2024-10-13T01:02:40.685Z</lastmod>
</url>
</urlset>

0 comments on commit 1478e6d

Please sign in to comment.