<commit_before><div class="gaming_object_header">
  <span><%= image_tag @gaming_object.image_path %></span>
  <h1 style="display: inline-block"><%= @gaming_object.name %></h1>
</div>


<div class="row">
  <% @tips_hash.each do |category, category_tips| %>
    <div class="col-md-4">
      <h2>Playing <%= category %> <%= @gaming_object.name %></h2>
      <div class="row <%= category %>">
        <% category_tips.each do |tip| %>
          <%= render partial: "tips/show", locals: { tip: tip } %>
        <% end %>
      </div>
      <%= render partial: 'tips/form', locals: {category: category, gaming_object: @gaming_object} %>
    </div>
  <% end %>
</div>

<script>
  $(document).ready(function(){
    
    function appendTip(data, category) {
        $('.'+category).append(data);
        $('.form-'+category+'-title').val("");
        $('.form-'+category+'-description').val("");
    }
    
    $('#form-against').on('ajax:success', function(e, data, status, xhr){
      appendTip(data, 'against');
    }).on('ajax:error',function(e, xhr, status, error){
    });
    $('#form-as').on('ajax:success', function(e, data, status, xhr){
      appendTip(data, 'as');
    }).on('ajax:error',function(e, xhr, status, error){
    });
    $('#form-with').on('ajax:success', function(e, data, status, xhr){
      appendTip(data, 'width');
    }).on('ajax:error',function(e, xhr, status, error){
    });
  });
</script><commit_msg>Fixed typo<commit_after><div class="gaming_object_header">
  <span><%= image_tag @gaming_object.image_path %></span>
  <h1 style="display: inline-block"><%= @gaming_object.name %></h1>
</div>


<div class="row">
  <% @tips_hash.each do |category, category_tips| %>
    <div class="col-md-4">
      <h2>Playing <%= category %> <%= @gaming_object.name %></h2>
      <div class="row <%= category %>">
        <% category_tips.each do |tip| %>
          <%= render partial: "tips/show", locals: { tip: tip } %>
        <% end %>
      </div>
      <%= render partial: 'tips/form', locals: {category: category, gaming_object: @gaming_object} %>
    </div>
  <% end %>
</div>

<script>
  $(document).ready(function(){
    
    function appendTip(data, category) {
        $('.'+category).append(data);
        $('.form-'+category+'-title').val("");
        $('.form-'+category+'-description').val("");
    }
    
    $('#form-against').on('ajax:success', function(e, data, status, xhr){
      appendTip(data, 'against');
    }).on('ajax:error',function(e, xhr, status, error){
    });
    $('#form-as').on('ajax:success', function(e, data, status, xhr){
      appendTip(data, 'as');
    }).on('ajax:error',function(e, xhr, status, error){
    });
    $('#form-with').on('ajax:success', function(e, data, status, xhr){
      appendTip(data, 'with');
    }).on('ajax:error',function(e, xhr, status, error){
    });
  });
</script>
{'fraction_non_alphanumeric': 0.23665730337078653, 'fraction_numerical': 0.0035112359550561797, 'mean_word_length': 3.4102167182662537, 'pattern_counts': {'":': 0, '<': 57, '<?xml version=': 0, '>': 57, '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': '115067', 'n_tokens_mistral': 1022, 'n_tokens_neox': 979, 'n_words': 182}