<commit_before>!!! 5
%html
  %head
    %title 
      - unless @q
        Hansard Search
      - else
        = @q + ' (Hansard Search)'
    - if @request.user_agent =~ /iPhone|iPad/
      %meta{:name=>"viewport", :content=>"width=device-width, initial-scale=1"}
      %link{:rel=>"stylesheet", :href=>"http://code.jquery.com/mobile/1.0/jquery.mobile-1.0.min.css"}
      %script{:type=>"text/javascript", :src=>"http://code.jquery.com/jquery-1.6.4.min.js"}
      %script
        $(document).bind("mobileinit", function(){$.mobile.touchOverflowEnabled = true;});
      %script{:type=>"text/javascript", :src=>"http://code.jquery.com/mobile/1.0/jquery.mobile-1.0.min.js"}
    - else
      %style
        body{width:40em;margin:4em auto;font-family:Helvetica,sans-serif}
        div.result{padding:0.9em 0}
        div.result big{display:block}
        div.result span.breadcrumbs{display:block;color:green;padding-bottom:0.1em}
        div.result span.breadcrumbs a{color:green;text-decoration:none}
        div.result span.breadcrumbs a:hover{text-decoration:underline}
        div.result span.text{line-height:1.25em}
        div.result span.text em{font-weight:bold;font-style:normal}
        div.result span.citation{font-size:0.9em;display:block;color:gray;padding:0.1em 0}
        div.result span.contributors{font-size:0.9em;display:block;color:gray;padding:0.1em 0}
        nav{float:right}
        ul#facets {padding-left:0}
        ul#facets li{list-style-type:none;text-indent:0}
        li.facet-active{border-left:4pt solid crimson;color:crimson;padding:0.5em 1em;}
        li.facet-inactive{border-left:4pt solid #fff;text-decoration:none;color:#000;padding:0.5em 1em}
        li.facet-inactive a{color:#000;text-decoration:none}
        li.facet-inactive:hover{background-color:#eee;border-left:4pt solid #eee;}
        li.facet-active:hover{background-color:#eee;}
  %body
    %div{:data => {:role=>'page', :theme=>'d'}}
      %header{:data => {:role=>'header', :theme=>'d'}}
        %nav
          %a{:href=>"/"} HansardSearch
        %form{:action=>'/', :method=>'get'}
          %div{:data => {:role=>'fieldcontain'}}
            %label{:for=>"search"} Search Hansard
            %input{:name => 'q', :id => 'search', :type => 'search', :value => @q, :placeholder=>"Search"}
      %section{:data => {:role=>'content', :theme=>'d'}}
        - if @q
          
          - if @section_filter
            %ul#facets
              %li.facet-inactive
                %a{:href => "?q=#{params[:q]}"}
                  All Hansard content
              %li.facet-active
                = @section_filter
            
          - if @section_facets and @section_facets.length > 1
            %ul#facets
              %li.facet-active
                All Hansard content
              - @section_facets.each do |section|
                %li.facet-inactive
                  %a{:href => "?q=#{params[:q]}&section=#{section[:name]}",<commit_msg>reverting to previous styles for ios and hiding a couple of things<commit_after>!!! 5
%html
  %head
    %title 
      - unless @q
        Hansard Search
      - else
        = @q + ' (Hansard Search)'
    - if @request.user_agent =~ /iPhone|iPad/
      %meta{:name=>"viewport", :content=>"width=device-width, initial-scale=1"}
      %link{:rel=>"stylesheet", :href=>"http://code.jquery.com/mobile/1.0/jquery.mobile-1.0.min.css"}
      %script{:type=>"text/javascript", :src=>"http://code.jquery.com/jquery-1.6.4.min.js"}
      %script
        $(document).bind("mobileinit", function(){$.mobile.touchOverflowEnabled = true;});
      %script{:type=>"text/javascript", :src=>"http://code.jquery.com/mobile/1.0/jquery.mobile-1.0.min.js"}
    %style
      body{width:40em;margin:4em auto;font-family:Helvetica,sans-serif}
      div.result{padding:0.9em 0}
      div.result big{display:block}
      div.result span.breadcrumbs{display:block;color:green;padding-bottom:0.1em}
      div.result span.breadcrumbs a{color:green;text-decoration:none}
      div.result span.breadcrumbs a:hover{text-decoration:underline}
      div.result span.text{line-height:1.25em}
      div.result span.text em{font-weight:bold;font-style:normal}
      div.result span.citation{font-size:0.9em;display:block;color:gray;padding:0.1em 0}
      div.result span.contributors{font-size:0.9em;display:block;color:gray;padding:0.1em 0}
      - if @request.user_agent =~ /iPhone|iPad/
        nav{display:none}
        form#search label {display:none}
      - else
        nav{float:right}
      ul#facets {padding-left:0}
      ul#facets li{list-style-type:none;text-indent:0}
      li.facet-active{border-left:4pt solid crimson;color:crimson;padding:0.5em 1em;}
      li.facet-inactive{border-left:4pt solid #fff;text-decoration:none;color:#000;padding:0.5em 1em}
      li.facet-inactive a{color:#000;text-decoration:none}
      li.facet-inactive:hover{background-color:#eee;border-left:4pt solid #eee;}
      li.facet-active:hover{background-color:#eee;}
  %body
    %div{:data => {:role=>'page', :theme=>'d'}}
      %header{:data => {:role=>'header', :theme=>'d'}}
        %nav
          %a{:href=>"/"} HansardSearch
        %form#search{:action=>'/', :method=>'get'}
          %div{:data => {:role=>'fieldcontain'}}
            %label{:for=>"search"} Search
            %input{:name => 'q', :id => 'search', :type => 'search', :value => @q, :placeholder=>"Search"}
      %section{:data => {:role=>'content', :theme=>'d'}}
        - if @q
          
          - if @section_filter
            %ul#facets
              %li.facet-inactive
                %a{:href => "?q=#{params[:q]}"}
                  All Hansard content
              %li.facet-active
                = @section_filter
            
          - if @section_facets and @section_facets.length > 1
            %ul#facets
              %li.facet-active
                All Hansard content
              - @section_facets.each do |section|
                %li.facet-inactive
                  %a{:href => "?q=#{params[:q]}&section=#{section[:name]}",
{'fraction_non_alphanumeric': 0.1760318249627051, 'fraction_numerical': 0.017238521465274326, 'mean_word_length': 2.652542372881356, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 65, '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': '301624', 'n_tokens_mistral': 2127, 'n_tokens_neox': 2056, 'n_words': 282}