<commit_before><%= this.head({ title: 'Les exercices' }) %>
<body>
<% data.active = 'exercices' %>
<%= this.mainmenu(data) %>
<div class="row column">
<%= this.breadcrumbs({ title: 'Les exercices', last: 'Exercices' }) %>
<ol>
<% data.rows.forEach(function (row) { %>
  <li>
    <h3><%- row.title %> <small><%- row.createdAt.split('T')[0] %></small></h3>
    <ul class="menu"><%= data.userMenu(row) %></ul>
  </li>
<% }) %>
</ol>
</div>
<%= this.js() %>
</body>
</html><commit_msg>Create exercice, only for teacher (bugfix).<commit_after><%= this.head({ title: 'Les exercices' }) %>
<body>
<% data.active = 'exercices' %>
<%= this.mainmenu(data) %>
<div class="row column">
<%= this.breadcrumbs({ title: 'Les exercices', last: 'Exercices' }) %>
<% if (data.roles.indexOf('teacher') !== -1 || data.roles.indexOf('_admin') !== -1) { %>
<p><a class="button hollow" href="/new">Créer un exercice</a></p>
<% } %>
<ol>
<% data.rows.forEach(function (row) { %>
  <li>
    <h3><%- row.title %> <small><%- row.createdAt.split('T')[0] %></small></h3>
    <ul class="menu"><%= data.userMenu(row) %></ul>
  </li>
<% }) %>
</ol>
</div>
<%= this.js() %>
</body>
</html>
{'fraction_non_alphanumeric': 0.296969696969697, 'fraction_numerical': 0.006926406926406926, 'mean_word_length': 4.452830188679245, 'pattern_counts': {'":': 0, '<': 59, '<?xml version=': 0, '>': 59, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2726638', 'n_tokens_mistral': 497, 'n_tokens_neox': 458, 'n_words': 89}