<commit_before><%= form_for @topic.path_variables, remote: @topic.persisted? do |t|  %>
  <div class="form-group">
    <%= t.label :name %>
    <%= t.text_field :name, class: "form-control" %>
    <%= render 'shared/forms/errors_for', model: @topic, field: :name %>
  </div>
  <div class="form-group">
    <%= t.label :content %>
    <%= t.cktext_area :content, class: "form-control", rows: 10 %>
    <%= render 'shared/forms/errors_for', model: @topic, field: :content %>
  </div>
  <%= t.submit class: "btn btn-primary" %>
  <% if @topic.persisted? %>
    <button class="btn btn-warning cancel" data-content="<%=j @topic.content%>" data-name="<%=j @topic.name%>">Cancel</button>
  <% end %>
<% end %><commit_msg>Added a cancel button to the view<commit_after><%= form_for @topic.path_variables, remote: @topic.persisted? do |t|  %>
  <div class="form-group">
    <%= t.label :name %>
    <%= t.text_field :name, class: "form-control" %>
    <%= render 'shared/forms/errors_for', model: @topic, field: :name %>
  </div>
  <div class="form-group">
    <%= t.label :content %>
    <%= t.cktext_area :content, class: "form-control", rows: 10 %>
    <%= render 'shared/forms/errors_for', model: @topic, field: :content %>
  </div>
  <%= t.submit class: "btn btn-primary" %>
  <% if @topic.persisted? %>
    <%= t.submit 'Cancel', class: 'btn btn-warning cancel' %>
  <% end %>
<% end %>
{'fraction_non_alphanumeric': 0.2198120028922632, 'fraction_numerical': 0.0028922631959508315, 'mean_word_length': 3.7889273356401385, 'pattern_counts': {'":': 0, '<': 38, '<?xml version=': 0, '>': 38, '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': '3379935', 'n_tokens_mistral': 543, 'n_tokens_neox': 493, 'n_words': 114}