<commit_before><section class="skills-edit">
  <h1>Available skills</h1>

  <div class="buttons">
    <%= button "Create a new skill", to: skill_path(@conn, :new), method: :get %>
    <%= button "Create a new category", to: skill_category_path(@conn, :new), method: :get %>
  </div>

  <div class="skills-dashboard">
    <%= for {category, skills} <-
          Enum.group_by(@skills, fn skill -> skill.category end) do %>
      <div class="skill-category">
        <%= render "category_header.html", conn: @conn, category: category %>
        <table class="skills">
          <%= for skill <- skills do %>
            <tr>
              <td class="name"><%= skill.name %></td>
              <td class="description"><%= skill.description %></td>
              <td class="edit-button">
                <%= link "✎",
                      to: skill_path(@conn, :edit, skill.id),
                      class: "tooltip",
                      data: [tooltip: "Edit skill"]<commit_msg>Add a "Edit my skills" button to skill edit page<commit_after><section class="skills-edit">
  <h1>Available skills</h1>

  <div class="buttons">
    <%= button "Edit my skills", to: skill_level_path(@conn, :edit), method: :get %>
    <%= button "Create a new skill", to: skill_path(@conn, :new), method: :get %>
    <%= button "Create a new category", to: skill_category_path(@conn, :new), method: :get %>
  </div>

  <div class="skills-dashboard">
    <%= for {category, skills} <-
          Enum.group_by(@skills, fn skill -> skill.category end) do %>
      <div class="skill-category">
        <%= render "category_header.html", conn: @conn, category: category %>
        <table class="skills">
          <%= for skill <- skills do %>
            <tr>
              <td class="name"><%= skill.name %></td>
              <td class="description"><%= skill.description %></td>
              <td class="edit-button">
                <%= link "✎",
                      to: skill_path(@conn, :edit, skill.id),
                      class: "tooltip",
                      data: [tooltip: "Edit skill"]
{'fraction_non_alphanumeric': 0.17564966313763233, 'fraction_numerical': 0.0019249278152069298, 'mean_word_length': 2.274015748031496, 'pattern_counts': {'":': 0, '<': 52, '<?xml version=': 0, '>': 48, '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': '229101', 'n_tokens_mistral': 648, 'n_tokens_neox': 607, 'n_words': 167}