<commit_before>!!! Strict
%html{:lang => "en", :xmlns => "http://www.w3.org/1999/xhtml"}
  %head
    %meta{:content => "text/html; charset=utf-8", "http-equiv" => "Content-Type"}
    %title=@title || "GRC"
    -if has_feature? :BETA
      =stylesheet_link_tag 'design'
      =javascript_include_tag 'design'
      -#
        %meta{:content => "width=device-width, initial-scale=1.0", :name => "viewport"}/
        %meta{:content => "", :name => "description"}/
        %meta{:content => "", :name => "author"}/
        / The HTML5 shim, for IE6-8 support of HTML5 elements
        /[if lt IE 9] <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
    -else
      =stylesheet_link_tag 'dashboard'
      =javascript_include_tag 'dashboard'
    =csrf_meta_tag
    %link(href='/favicon.ico' rel='icon' type='image/x-icon')
    
    -#NOTE: This resource occasionally hangs and prevents page from rendering, so loaded after the fact via jquery
    :javascript
      jQuery(function($) { $('head').append("<link href='https://fonts.googleapis.com/css?family=Titillium+Web' rel='stylesheet' type='text/css'></link>"); });

  %body{ :class => "#{has_feature?(:BETA) ? 'BETA' : ''}" }

    %header.header
      .header-bar
        .container-fluid
          .row-fluid
            .span4
              .logo
                %a{:href => root_path}
                  -if CMS_CONFIG["COMPANY_LOGO"].present?
                    =image_tag(CMS_CONFIG['COMPANY_LOGO'], :alt => 'GRC', :title => 'GRC')
                  -elsif has_feature? :BETA
                    =image_tag('/images/logos/logo.png')
                  -else
                    Google GRC                
            .span8
              %ul.menu    
                %li.demo
                  -if controller_name == 'design'
                    -path = programs_dash_path
                  -else
                    -path = request.fullpath                
                  -path = path.gsub(/BETA=[^&]*&?/, '').sub(/[?&]$/, '')
                  -path += path.include?('?') ? '&' : '?'
                  -if has_feature? :BETA
                    %a.demo-hide{ :href => "#{path}BETA=0" }
                      %i.grcicon-demo
                      Hide Demo
                  -else
                    %a.demo-show{ :href => "#{path}BETA=1" }
                      %i.grcicon-demo
                      Show Demo

                  %li{:class => "#{controller.controller_name != 'programs_dash' ? '' : 'active'}"}
                    %a{:href => programs_dash_path}
                      %i.grcicon-dashboard
                      Dashboard
                  -help_path = yield(:page_help)
                  -if !help_path.blank?
                    %li
                      %a{:href => "/help/#{help_path}", :'data-toggle' => 'modal-ajax'}
                        %i.grcicon-help
                        Help
                  =yield :header_buttons
                %li.user.dropdown
                  %a{:href => "#", :class => "dropdown-toggle", :'data-toggle' =>"dropdown", :role =>"button"}
                    %i.grcicon-user
                    %strong=current_user.name || current_user.email
                  %ul.dropdown-menu{:'aria-labelledby' => 'drop1', :role =>"menu"}
                    %li
                      %a{:href =>logout_path, :tabindex =>"-1"}
                        %i.grcicon-logout
                        Logout
                %li.screen.dropdown
                  %a{:href => "#", :class => "dropdown-toggle screen-size", :'data-toggle' =>"dropdown", :role =>"button"}
                    %i.grcicon-desktop
                    %span<commit_msg>removed "name" from user<commit_after>!!! Strict
%html{:lang => "en", :xmlns => "http://www.w3.org/1999/xhtml"}
  %head
    %meta{:content => "text/html; charset=utf-8", "http-equiv" => "Content-Type"}
    %title=@title || "GRC"
    -if has_feature? :BETA
      =stylesheet_link_tag 'design'
      =javascript_include_tag 'design'
      -#
        %meta{:content => "width=device-width, initial-scale=1.0", :name => "viewport"}/
        %meta{:content => "", :name => "description"}/
        %meta{:content => "", :name => "author"}/
        / The HTML5 shim, for IE6-8 support of HTML5 elements
        /[if lt IE 9] <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
    -else
      =stylesheet_link_tag 'dashboard'
      =javascript_include_tag 'dashboard'
    =csrf_meta_tag
    %link(href='/favicon.ico' rel='icon' type='image/x-icon')
    
    -#NOTE: This resource occasionally hangs and prevents page from rendering, so loaded after the fact via jquery
    :javascript
      jQuery(function($) { $('head').append("<link href='https://fonts.googleapis.com/css?family=Titillium+Web' rel='stylesheet' type='text/css'></link>"); });

  %body{ :class => "#{has_feature?(:BETA) ? 'BETA' : ''}" }

    %header.header
      .header-bar
        .container-fluid
          .row-fluid
            .span4
              .logo
                %a{:href => root_path}
                  -if CMS_CONFIG["COMPANY_LOGO"].present?
                    =image_tag(CMS_CONFIG['COMPANY_LOGO'], :alt => 'GRC', :title => 'GRC')
                  -elsif has_feature? :BETA
                    =image_tag('/images/logos/logo.png')
                  -else
                    Google GRC                
            .span8
              %ul.menu    
                %li.demo
                  -if controller_name == 'design'
                    -path = programs_dash_path
                  -else
                    -path = request.fullpath                
                  -path = path.gsub(/BETA=[^&]*&?/, '').sub(/[?&]$/, '')
                  -path += path.include?('?') ? '&' : '?'
                  -if has_feature? :BETA
                    %a.demo-hide{ :href => "#{path}BETA=0" }
                      %i.grcicon-demo
                      Hide Demo
                  -else
                    %a.demo-show{ :href => "#{path}BETA=1" }
                      %i.grcicon-demo
                      Show Demo

                  %li{:class => "#{controller.controller_name != 'programs_dash' ? '' : 'active'}"}
                    %a{:href => programs_dash_path}
                      %i.grcicon-dashboard
                      Dashboard
                  -help_path = yield(:page_help)
                  -if !help_path.blank?
                    %li
                      %a{:href => "/help/#{help_path}", :'data-toggle' => 'modal-ajax'}
                        %i.grcicon-help
                        Help
                  =yield :header_buttons
                %li.user.dropdown
                  %a{:href => "#", :class => "dropdown-toggle", :'data-toggle' =>"dropdown", :role =>"button"}
                    %i.grcicon-user
                    %strong=current_user.email
                  %ul.dropdown-menu{:'aria-labelledby' => 'drop1', :role =>"menu"}
                    %li
                      %a{:href =>logout_path, :tabindex =>"-1"}
                        %i.grcicon-logout
                        Logout
                %li.screen.dropdown
                  %a{:href => "#", :class => "dropdown-toggle screen-size", :'data-toggle' =>"dropdown", :role =>"button"}
                    %i.grcicon-desktop
                    %span
{'fraction_non_alphanumeric': 0.15827633378932968, 'fraction_numerical': 0.005745554035567715, 'mean_word_length': 1.4248756218905472, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 75, 'https://': 2, 'lorem ipsum': 0, 'www.': 2, 'xml': 2}, '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': '4603723', 'n_tokens_mistral': 2270, 'n_tokens_neox': 2130, 'n_words': 383}