<commit_before>
<script>
  $(function () { 
    $("[data-toggle='tooltip']").tooltip(); 
    $("#scoresTable").tablesorter();
  });

  // Function to sort the columns based on the total review score
  function col_sort(m, lesser) {

    // Swaps two columns of the table
    jQuery.moveColumn = function(table, from, to) {
      var rows = jQuery('tr', table);
      var cols;
      rows.each(function() {
        cols = jQuery(this).children('th, td');
        cols.eq(from).detach().insertBefore(cols.eq(to));
        if (from - to > 1) {
          cols.eq(to).detach().insertAfter((cols.eq(from - 1)));

        }
      });
    }

    // Gets all the table with the class "tbl_heat"
    var tables = $("table.tbl_heat");
    // Get all the rows with the class accordion-toggle
    var tbr = tables.eq(m).find('tr.accordion-toggle');
    // Get the cells from the last row of the table
    var columns = tbr.eq(tbr.length - 1).find('td');
    // Init an array to hold the review total<commit_msg>Functionality added to sort hidden rows<commit_after>
<script>
  $(function () { 
    $("[data-toggle='tooltip']").tooltip(); 
    $("#scoresTable").tablesorter();
  });

  // Function to sort the columns based on the total review score
  function col_sort(m, lesser) {

    // Swaps two columns of the table
    jQuery.moveColumn = function(table, from, to) {
      var rows = jQuery('tr', table);

      var hidden_child_row = tables.find('tr.tablesorter-childRow');

      hidden_child_row.each(function() {
        inner_table=jQuery(this).find('table.tbl_questlist')
        hidden_table=inner_table.eq(0).find('tr')


        hidden_table.eq(from-1).detach().insertBefore(hidden_table.eq(to-1));
        if (from - to > 1) {
          hidden_table.eq(to-1).detach().insertAfter((hidden_table.eq(from - 2)));

        }

      });


      var cols;
      rows.each(function() {
        cols = jQuery(this).children('th, td');
        cols.eq(from).detach().insertBefore(cols.eq(to));
        if (from - to > 1) {
          cols.eq(to).detach().insertAfter((cols.eq(from - 1)));

        }
      });
    }

    // Gets all the table with the class "tbl_heat"
    var tables = $("table.tbl_heat");
    // Get all the rows with the class accordion-toggle
    var tbr = tables.eq(m).find('tr.accordion-toggle');
    // Get the cells from the last row of the table
    var columns = tbr.eq(tbr.length - 1).find('td');
    // Init an array to hold the review total
{'fraction_non_alphanumeric': 0.1580658268996343, 'fraction_numerical': 0.004876066639577408, 'mean_word_length': 2.5889212827988337, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 8, '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': '2958402', 'n_tokens_mistral': 803, 'n_tokens_neox': 764, 'n_words': 197}