<commit_before>!!! 5
%html
  %head
    %meta{charset: 'utf-8'}
    %meta{content: "IE=edge,chrome=1", "http-equiv" => "X-UA-Compatible"}
    %meta{content: "yes", name: "apple-mobile-web-app-capable"}/
    %meta{content: "width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no", name: "viewport"}/
    %meta{content: "black", name: "apple-mobile-web-app-status-bar-style"}/
    %link{href: "http://fonts.googleapis.com/css?family=Patua+One", rel: "stylesheet", type: "text/css"}/
    %title= content_for?(:title) ? "#{SITE_NAME} | #{yield(:title)}" : "#{SITE_NAME}"
    = stylesheet_link_tag 'application', media: 'all'
    = csrf_meta_tags

    <!--[if IE]>
    <script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
    <![endif]-->

    -if Rails.env.production?
      / Begin Google Analytics javascript
      :javascript
        var _gaq = _gaq || [];
        _gaq.push(['_setAccount', '']);
        _gaq.push(['_setDomainName', '']);
        _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);
        })();
      / End Google Analytics script

  %body
    .row
      - if flash[:error]
        .alert-box{"data-alert" => ""}
          - flash[:error].each do |message|
            %li= message
          %a.close{:href => "#"} &times;
      - if flash[:notice]
        .alert-box.success{"data-alert" => ""}
          = flash[:notice]
          %a.close{:href => "#"} &times;

    = yield
    
    .container 
      .row
        .footer
        - if current_user && !current_page?('/')
          .user-info
            You are signed in as #{current_user.email}.
            = link_to 'Click here to sign out.', sign_out_user_path, method: :delete

    = javascript_include_tag 'application'

    - if Rails.env.production?
      :javascript
        (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
        (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
        m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
        })(window,document,'script','//www.google-analytics.com/analytics.js','ga');

        ga('create', 'UA-56134966-1', 'gopushcart.com');
        ga('require', 'displayfeatures');
        ga('send', 'pageview');<commit_msg>Move GA to head, replace old GA code<commit_after>!!! 5
%html
  %head
    %meta{charset: 'utf-8'}
    %meta{content: "IE=edge,chrome=1", "http-equiv" => "X-UA-Compatible"}
    %meta{content: "yes", name: "apple-mobile-web-app-capable"}/
    %meta{content: "width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no", name: "viewport"}/
    %meta{content: "black", name: "apple-mobile-web-app-status-bar-style"}/
    %link{href: "http://fonts.googleapis.com/css?family=Patua+One", rel: "stylesheet", type: "text/css"}/
    %title= content_for?(:title) ? "#{SITE_NAME} | #{yield(:title)}" : "#{SITE_NAME}"
    = stylesheet_link_tag 'application', media: 'all'
    = csrf_meta_tags

    <!--[if IE]>
    <script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
    <![endif]-->

    - if Rails.env.production?
      :javascript
        (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
        (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
        m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
        })(window,document,'script','//www.google-analytics.com/analytics.js','ga');

        ga('create', 'UA-56134966-1', 'gopushcart.com');
        ga('require', 'displayfeatures');
        ga('send', 'pageview');
        

  %body
    .row
      - if flash[:error]
        .alert-box{"data-alert" => ""}
          - flash[:error].each do |message|
            %li= message
          %a.close{:href => "#"} &times;
      - if flash[:notice]
        .alert-box.success{"data-alert" => ""}
          = flash[:notice]
          %a.close{:href => "#"} &times;

    = yield
    
    .container 
      .row
        .footer
        - if current_user && !current_page?('/')
          .user-info
            You are signed in as #{current_user.email}.
            = link_to 'Click here to sign out.', sign_out_user_path, method: :delete

    = javascript_include_tag 'application'
{'fraction_non_alphanumeric': 0.20513937282229966, 'fraction_numerical': 0.009364111498257839, 'mean_word_length': 2.833889816360601, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 21, 'https://': 1, 'lorem ipsum': 0, 'www.': 3, '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': '6526030', 'n_tokens_mistral': 1649, 'n_tokens_neox': 1604, 'n_words': 250}