<commit_before>// Fix for iPhone viewport scale bug
// adapted from
// http://www.blog.highub.com/mobile-2/a-fix-for-iphone-viewport-scale-bug/
// https://github.com/h5bp/mobile-boilerplate/blob/master/js/helper.js

(function(){
if (/iPhone|iPad|iPod/.test(navigator.userAgent) && !/Opera Mini/.test(navigator.userAgent)) {
  var viewport = $$('meta[name="viewport"]')[0];
  viewport.content = "width=device-width, minimum-scale=1.0, maximum-scale=1.0";
  document.addEventListener("gesturestart", function () {
    viewport.content = "width=device-width, minimum-scale=0.25, maximum-scale=1.6";
  }, false);
}
})();<commit_msg>use jquery instead of prototype<commit_after>// Fix for iPhone viewport scale bug
// adapted from
// http://www.blog.highub.com/mobile-2/a-fix-for-iphone-viewport-scale-bug/
// https://github.com/h5bp/mobile-boilerplate/blob/master/js/helper.js

(function($){
  var ua = navigator.userAgent;
  if (/iPhone|iPad|iPod/.test(ua) && !/Opera Mini/.test(ua)) {
    var viewport = $('meta[name="viewport"]').first();
    viewport.attr("content", "width=device-width, minimum-scale=1.0, maximum-scale=1.0");
    document.on("gesturestart", function () {
      viewport.attr("content", "width=device-width, minimum-scale=0.25, maximum-scale=1.6");
    }, false);
  }
})(jQuery);
{'fraction_non_alphanumeric': 0.20200462606013878, 'fraction_numerical': 0.017733230531996914, 'mean_word_length': 4.341563786008231, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 2, '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': '5370341', 'n_tokens_mistral': 470, 'n_tokens_neox': 458, 'n_words': 68}