<commit_before>// This is a manifest file that'll be compiled into application.js, which will include all the files
// listed below.
//
// Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
// or vendor/assets/javascripts of plugins, if any, can be referenced here using a relative path.
//
// It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
// the compiled file.
//
// WARNING: THE FIRST BLANK LINE MARKS THE END OF WHAT'S TO BE PROCESSED, ANY BLANK LINE SHOULD
// GO AFTER THE REQUIRES BELOW.
//
//= require jquery
//= require jquery_ujs
//= require modernizr
//= require google-code-prettify/prettify
//= require twitter/bootstrap/dropdown
//= require_tree .

function resizeFix() {
  if (navigator.userAgent.match(/iPhone/i) || navigator.userAgent.match(/iPad/i)) {
    var viewportmeta = document.querySelector('meta[name="viewport"]');
    if (viewportmeta) {
      viewportmeta.content = 'width=device-width, minimum-scale=1.0, maximum-scale=1.0, initial-scale=1.0';
      document.body.addEventListener('gesturestart', function () {
        viewportmeta.content = 'width=device-width, minimum-scale=0.25, maximum-scale=1.6';
      }, false);
    }
  }
}


/*
   This is a dirty hack.
   On safari when you open the menu and close it the transform
   makes the page think that it is bigger than it really is
   in order to resolve it you need to re-render the page
*/
function dirtyHack() {
  $('.close').on('click', function() {
    $('body > .container').width($(document).width() - 1);
    setTimeout(function() {
      $('body > .container').width('100%');
    }, 500);
  });
}

$(document).ready(function() {
  prettyPrint();<commit_msg>Fixed dirty hack from screwing up the layout<commit_after>// This is a manifest file that'll be compiled into application.js, which will include all the files
// listed below.
//
// Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
// or vendor/assets/javascripts of plugins, if any, can be referenced here using a relative path.
//
// It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
// the compiled file.
//
// WARNING: THE FIRST BLANK LINE MARKS THE END OF WHAT'S TO BE PROCESSED, ANY BLANK LINE SHOULD
// GO AFTER THE REQUIRES BELOW.
//
//= require jquery
//= require jquery_ujs
//= require modernizr
//= require google-code-prettify/prettify
//= require twitter/bootstrap/dropdown
//= require_tree .

function resizeFix() {
  if (navigator.userAgent.match(/iPhone/i) || navigator.userAgent.match(/iPad/i)) {
    var viewportmeta = document.querySelector('meta[name="viewport"]');
    if (viewportmeta) {
      viewportmeta.content = 'width=device-width, minimum-scale=1.0, maximum-scale=1.0, initial-scale=1.0';
      document.body.addEventListener('gesturestart', function () {
        viewportmeta.content = 'width=device-width, minimum-scale=0.25, maximum-scale=1.6';
      }, false);
    }
  }
}


/*
   This is a dirty hack.
   On safari when you open the menu and close it the transform
   makes the page think that it is bigger than it really is
   in order to resolve it you need to re-render the page
*/
function dirtyHack() {
  $('.close').on('click', function() {
    $('body > .container').width($(document).width() - 1);
    setTimeout(function() {
      $('body > .container').removeAttr('style');
    }, 500);
  });
}

$(document).ready(function() {
  prettyPrint();
{'fraction_non_alphanumeric': 0.13573250212524796, 'fraction_numerical': 0.009351090960612072, 'mean_word_length': 3.5140664961636827, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '1196654', 'n_tokens_mistral': 1113, 'n_tokens_neox': 1058, 'n_words': 348}