<commit_before> $(function(){
  $('.entry-content a').attr('target','_blank'); 
  var headers = $('#post .entry-content :header').map(function (idx, h){
    var a = $('<a href="#">');
    a.attr('data-id',h.id);
    a.attr('href', '#' + h.id);
    a.attr('class', h.nodeName.toLowerCase());
    a.html( '<span>' + h.textContent)
    return $('<li>').append(a)[0].outerHTML;
  }).toArray().join("");
  var menu = $('<div id="dl-headers" class=""><button class="dl-btn btn btn-success">Contents</button></div>');
  if(headers.trim())
    $('body').append(menu.append($('<ul class="dl-headers" id="headers">').append(headers)));
  if($('#dl-headers .dl-btn').is(':visible')) {
    $('#dl-headers .dl-btn').on('click',function(){
      $('ul#headers').slideToggle();
    })
  }
  $('#headers a').click(function (e){
    e.preventDefault();
    console.info("scrollTo #" + $(this).attr('data-id'));
    var selector = '#'+$(this).attr('data-id');<commit_msg>make all the anchor opened in another tab<commit_after> $(function(){
  $('.entry-content a,entry a,read-more a').attr('target','_blank'); 
  var headers = $('#post .entry-content :header').map(function (idx, h){
    var a = $('<a href="#">');
    a.attr('data-id',h.id);
    a.attr('href', '#' + h.id);
    a.attr('class', h.nodeName.toLowerCase());
    a.html( '<span>' + h.textContent)
    return $('<li>').append(a)[0].outerHTML;
  }).toArray().join("");
  var menu = $('<div id="dl-headers" class=""><button class="dl-btn btn btn-success">Contents</button></div>');
  if(headers.trim())
    $('body').append(menu.append($('<ul class="dl-headers" id="headers">').append(headers)));
  if($('#dl-headers .dl-btn').is(':visible')) {
    $('#dl-headers .dl-btn').on('click',function(){
      $('ul#headers').slideToggle();
    })
  }
  $('#headers a').click(function (e){
    e.preventDefault();
    console.info("scrollTo #" + $(this).attr('data-id'));
    var selector = '#'+$(this).attr('data-id');
{'fraction_non_alphanumeric': 0.2850562947799386, 'fraction_numerical': 0.0010235414534288639, 'mean_word_length': 4.269541778975741, 'pattern_counts': {'":': 0, '<': 19, '<?xml version=': 0, '>': 19, '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': '5243706', 'n_tokens_mistral': 666, 'n_tokens_neox': 671, 'n_words': 112}