<commit_before>!!! 5
%html
  %head
    %title node.js knockout
    %meta{ name: 'viewport', content: 'width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0;' }
    %meta{ name: 'apple-mobile-web-app-capable', content: 'yes' }
    %meta{ name: 'apple-mobile-web-app-status-bar-style', content: 'black-translucent' }
    %link{ rel: 'stylesheet', type: 'text/css', href: '/application.css' }
    :javascript
      var _gaq = _gaq || [];
      _gaq.push(['_setAccount', 'UA-16773586-1']);
      _gaq.push(['_trackPageview']);
      (function() {
        var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
        ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
        var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
      })();
  %body
    #content!= body
    %script{ src: 'http://code.jquery.com/jquery.min.js', type: 'text/javascript' }
    %script{ src: '/javascripts/underscore.min.js', type: 'text/javascript' }
    %script{ src: '/application.js', type: 'text/javascript' }
    :javascript
      $(function() {
        $('a').click(function() {
          var href = this.href;
          try {
            if(/^https?:/.test(href)) {
              _gaq.push(['_trackPageview', href]);
              setTimeout('document.location = "' + href + '"', 100);
              return false;
            }
          } catch(e) {}
        });
      });<commit_msg>less obnoxious google analytics outbound link tracking<commit_after>!!! 5
%html
  %head
    %title node.js knockout
    %meta{ name: 'viewport', content: 'width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0;' }
    %meta{ name: 'apple-mobile-web-app-capable', content: 'yes' }
    %meta{ name: 'apple-mobile-web-app-status-bar-style', content: 'black-translucent' }
    %link{ rel: 'stylesheet', type: 'text/css', href: '/application.css' }
    :javascript
      var _gaq = _gaq || [];
      _gaq.push(['_setAccount', 'UA-16773586-1']);
      _gaq.push(['_trackPageview']);
      (function() {
        var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
        ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
        var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
      })();
  %body
    #content!= body
    %script{ src: 'http://code.jquery.com/jquery.min.js', type: 'text/javascript' }
    %script{ src: '/javascripts/underscore.min.js', type: 'text/javascript' }
    %script{ src: '/application.js', type: 'text/javascript' }
    :javascript
      $(function() {
        $('a').mousedown(function() {
          var href = this.href;
          try {
            if (/^https?:/.test(href)) _gaq.push(['_trackPageview', href]);
          } catch(e) {}
        });
      });
{'fraction_non_alphanumeric': 0.19715928305715252, 'fraction_numerical': 0.011836320595197836, 'mean_word_length': 2.787451984635083, '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': '2228860', 'n_tokens_mistral': 993, 'n_tokens_neox': 975, 'n_words': 186}