<commit_before>var _NEXT_PAGE_HTML = '<button type="button" class="moreLink btn btn-default btn-lg"><span class="glyphicon glyphicon-chevron-right" aria-hidden="true"></span> Next page</button>';
_NEXT_PAGE_HTML = "<tr class='dynamicrow'><td><p align='right'>" + _NEXT_PAGE_HTML + "</p></td></tr>";

function _updateSearchFromJson(response) {
  window.scrollTo(0, 0);
  $ ( "#searchResults .dynamicrow" ).remove();
  var query = jQuery.bbq.getState( 'query' );
  if ( query ) {
    $( "#searchResults tr:last" ).after( "<tr class='dynamicrow'><td class='small'>Found " + response.number_found + " results for '" + query + "'</td></tr>" );
  }
  $.each(response.results, function(index, result){
    $( "#searchResults tr:last" ).after( "<tr class='searchResultRow dynamicrow'></tr>" );
    $( "#searchResults tr:last" ).append( "<th><h1>" + result.label + "</h1></th>" );
    $( "#searchResults tr:last th" ).append( "<p>" + (result.description || "Click for details") + "</p>" );
    $( "#searchResults tr:last" ).append( "<td class='sepakeUri hiddenColumn'>" + result.uri + "</td>" );
  });
  $( "#searchResults .searchResultRow" ).on( 'click', function() {<commit_msg>Display hits on search page For #42-rank<commit_after>var _NEXT_PAGE_HTML = '<button type="button" class="moreLink btn btn-default btn-lg"><span class="glyphicon glyphicon-chevron-right" aria-hidden="true"></span> Next page</button>';
_NEXT_PAGE_HTML = "<tr class='dynamicrow'><td><p align='right'>" + _NEXT_PAGE_HTML + "</p></td></tr>";

function _updateSearchFromJson(response) {
  window.scrollTo(0, 0);
  $ ( "#searchResults .dynamicrow" ).remove();
  var query = jQuery.bbq.getState( 'query' );
  if ( query ) {
    $( "#searchResults tr:last" ).after( "<tr class='dynamicrow'><td class='small'>Found " + response.number_found + " results for '" + query + "'</td></tr>" );
  }
  $.each(response.results, function(index, result){
    $( "#searchResults tr:last" ).after( "<tr class='searchResultRow dynamicrow'></tr>" );
    $( "#searchResults tr:last" ).append( "<td><h1>" + result.label + "</h1></td>" );
    $( "#searchResults tr:last td" ).append( "<p>" + (result.description || "Click for details") + "</p>" );
    if (result.rank == 1) {
        result.rank = "0-1";
    }
    $( "#searchResults tr:last td" ).append( "<p class='small'>" + result.rank + " views by last status</p>" );
    $( "#searchResults tr:last" ).append( "<td class='sepakeUri hiddenColumn'>" + result.uri + "</td>" );
  });
  $( "#searchResults .searchResultRow" ).on( 'click', function() {
{'fraction_non_alphanumeric': 0.2244496855345912, 'fraction_numerical': 0.005110062893081761, 'mean_word_length': 4.744920993227991, 'pattern_counts': {'":': 0, '<': 53, '<?xml version=': 0, '>': 53, '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': '787242', 'n_tokens_mistral': 828, 'n_tokens_neox': 817, 'n_words': 184}