<commit_before>$(document).ready(function(){

   $("a.newwindow").attr("target","_blank");

   $("a.topwindow").attr("target","_top");

    $('.container').on('click', 'a:not(.external-link):not([href^="#"])', function(e){

        e.preventDefault();
        var url  = window.location.href;

        if (url.indexOf("chromeless:true") >= 0) {

            var clickedLink = $(this).attr('href') + "/chromeless:true";
            window.location.href = clickedLink;

        }else {

            window.location.href = $(this).attr('href');

        }
    });

});
<commit_msg>Updated global handling of 'chromeless' and 'hidepagetitle' URL flags.<commit_after>$(document).ready(function(){
   $("a.newwindow").attr("target","_blank");
   $("a.topwindow").attr("target","_top");

  $('.container').on('click', 'a:not(.external-link):not([href^="#"])', function(e){
      e.preventDefault();
      var url  = window.location.href;
      var newurl = $(this).attr('href');

      if (url.indexOf("chromeless:true") >= 0) {
          newurl = newurl + "/chromeless:true";
      }

      if (url.indexOf("hidepagetitle:true") >= 0) {
          newurl = newurl + "/hidepagetitle:true";
      }

      window.location.href = newurl;
  });
});

{'fraction_non_alphanumeric': 0.22294022617124395, 'fraction_numerical': 0.0024232633279483036, 'mean_word_length': 3.022727272727273, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 6, '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': '7067507', 'n_tokens_mistral': 410, 'n_tokens_neox': 390, 'n_words': 57}