<% if (plugins.languages) { %>

<%= plugins.languages.unique %> Language<%= s(plugins.languages.unique) %>

<% for (const section of (plugins.languages.sections ?? ["error"])) { const languages = {"most-used":plugins.languages.favorites, "recently-used":plugins.languages.recent}[section] %>

<%= {"most-used":"Most used languages", "recently-used":"Recently used languages", error:""}[section] %>

<% if (plugins.languages.error) { %>
<%= plugins.languages.error.message %>
<% } else { const width = 460 * (1 + large) %> <% if (section === "recently-used") { %> <% if (languages.length) { %> estimation from <%= f(plugins.languages["stats.recent"]?.total) %>b of code in <%= plugins.languages["stats.recent"]?.files %> edited file<%= s(plugins.languages["stats.recent"]?.files) %> across <%= plugins.languages["stats.recent"]?.commits %> commit<%= s(plugins.languages["stats.recent"]?.commits) %> over last <%= plugins.languages["stats.recent"]?.latest ?? plugins.languages["stats.recent"]?.days %> day<%= s(plugins.languages["stats.recent"]?.latest ?? plugins.languages["stats.recent"]?.days) %> <% } else { %> No recent push activity found <% { const days = plugins.languages["stats.recent"]?.latest ?? plugins.languages["stats.recent"]?.days; if (days) { %> over last <%= days %> day<%= s(days) %> <% } } %> <% } %> <% } else if ((section === "most-used")&&(plugins.languages.indepth)) { %> <% if (languages.length) { %> estimation from <%= f(plugins.languages.total) %>b of code in <%= plugins.languages.files %> edited file<%= s(plugins.languages.files) %> across <%= plugins.languages.commits %> commit<%= s(plugins.languages.commits) %> <% } else { %> No push activity found <% } %> <% } %> <% if (languages.length) { %> <% for (const {name, value, color, x} of languages) { %> "/> <% } %> <% } %> <% if (plugins.languages.details.length) { const rows = large ? [0, 1, 2, 3] : (plugins.languages.details.length > 2) ? [0] : [0, 1] %>
<% for (const row of rows) { %>
<% for (const {name, value, lines = 0, color, size} of languages.filter((_, i) => i%rows.length === row)) { %>
" fill-rule="evenodd" d="M8 4a4 4 0 100 8 4 4 0 000-8z"> <%= name %>
<% if (plugins.languages.details.includes("lines")) { %>
<%= f(lines) %> line<%= s(lines) %>
<% } %> <% if (plugins.languages.details.includes("bytes-size")) { %>
<%= f.bytes(size) %>
<% } %> <% if (plugins.languages.details.includes("percentage")) { %>
<%= f.percentage(value) %>
<% } %>
<% } %>
<% } %>
<% } else { %>
<% for (const {name, value, color} of languages) { %>
<%= name %>
<% } %>
<% } %> <% if ((plugins.languages.verified?.signature)&&(section === "most-used")) { %>
<%= plugins.languages.verified.signature %> commit<%= s(plugins.languages.verified.signature) %> verified by GPG
<% } %> <% if ({"most-used":plugins.languages.partial?.global || plugins.languages.partial?.repositories, "recently-used":plugins.languages["stats.recent"]?.partial?.global || plugins.languages["stats.recent"]?.partial?.repositories}[section]) { %>
Reached maximum execution time for analysis, partial results are displayed
<% } %> <% } %>
<% } %> <% } %>