<commit_before><div class="mod-report-builder container-fluid">
  <div class="row">
    <nav class="col-md-3 col-md-offset-1 is-unprintable">
      <% cache '#{@site.id}/reports' do %>
        <div class="mod-report-filter mod-form" id="reportFormView">

          <%= form_tag(report_generate_path(:format=>:json), :remote => true,  :method => :get) do %>

            
            <label for="main-search">Project Title</label>
            <div class="search">
              <input id="main-search" type="text" value="<%= params[:q] %>" placeholder = "Search project titles" name="q" class="main_search"/>
              <%= submit_tag '', :style => 'width: 1.5em' %>
            </div>

            <ul class="combo_search_select">
              <li class="comboselect">
                <label for="organization">ORGANIZATION</label>
                <%= select_tag :organization, options_for_select(@org_combo_values, params[:organization]), :class => :"chzn-select", :multiple => true, :size => 5, :placeholder => "Select organization" %>
              </li>

              <li class="comboselect">
                <label for="country">COUNTRY</label>
                <%= select_tag :country,
                  options_for_select(@countries_combo_values, params[:country]), :class => :"chzn-select", :multiple => true, :size => 5, :placeholder => "Select country" %>
              </li>

              <li class="comboselect">
                <label for="sector">SECTOR</label>
                <%= select_tag :sector,
                  options_for_select(@sectors_combo_values, params[:sector]), :class => :"chzn-select", :multiple => true, :size => 5, :placeholder => "Select sector" %>
              </li>

              <li class="comboselect">
                <label for="donor">DONOR</label>
                <%= select_tag :donor,
                  options_for_select(@donors_combo_values, params[:donor]), :class => :"chzn-select", :multiple => true, :size => 5, :placeholder => "Select donor"%>
              </li>

              <li>
                <label for="budget_min">Project Budget Min (USD)</label>
                <div class="budget-input-wrapper">
                    <span>$</span>
                    <%= text_field_tag :budget_min, params[:budget_min] %>
                </div>
              </li>


              <li>
                <label for="budget_max">Project Budget Max  (USD)</label>
                <div class="budget-input-wrapper">
                    <span>$</span>
                    <%= text_field_tag :budget_max, params[:budget_max] %>
                </div>
              </li>

              <li class="comboselect date" id="startDateSelector">
                <label for="start_date">Projects Active Between</label>
                <div class="select_date">
                  <%= select_date @date_start, {:prefix => :start_date, :use_short_month =>true, :start_year => Date.parse('1985-1-1').year, :end_year => Time.now.year} %>
                </div>
              </li>

              <li class="comboselect date" id="endDateSelector">
                <label for="end_date">AND</label>
                <div class="select_date">
                  <%= select_date @date_end, {:prefix => :end_date, :use_short_month =>true, :start_year => Date.parse('1985-1-1').year, :end_year => Time.now.year} %>
                </div>
              </li>

              <li class="comboselect" id="activeProjects">
                <label><%= check_box_tag 'active_projects', 'yes', params.has_key?(:active_projects) %> Show only currently active projects</label>
              </li>

              <li>
                <button class="reset" id="resetBtn" type="reset">Reset filters</button>
                <button class="apply" type="submit">Apply filters</button>
              </li>
            </ul>

          <% end %>
        </div> <!-- mod-report-filter -->
      <% end %>
    </nav>

    <section class="col-md-7 filter-results-wrapper">

      <div class="report-spinner" id="spinView"></div>

      <article class="mod-content-article">
        <div id="titleView" class="report-title text-center">
          <textarea placeholder="Your Title" autofocus=true></textarea>
          <button class="is-inline-btn is-unprintable">Edit</button>
        </div>

        <div id="introView" class="mod-report-results mod-report-intro">
          <p>Start applying some filters to generate a report.</p>
          <p><%= image_tag "arrow-reports.svg" %></p>
        </div>

        <div id="filtersView" class="mod-applied-filters is-hidden"></div>

        <div id="summaryView" class="mod-report-results mod-report-summary is-hidden"></div>

        <div id="budgetsView" class="mod-report-results mod-report-budget is-hidden"></div><commit_msg>remove autofocus for report page title<commit_after><div class="mod-report-builder container-fluid">
  <div class="row">
    <nav class="col-md-3 col-md-offset-1 is-unprintable">
      <% cache '#{@site.id}/reports' do %>
        <div class="mod-report-filter mod-form" id="reportFormView">

          <%= form_tag(report_generate_path(:format=>:json), :remote => true,  :method => :get) do %>

            
            <label for="main-search">Project Title</label>
            <div class="search">
              <input id="main-search" type="text" value="<%= params[:q] %>" placeholder = "Search project titles" name="q" class="main_search"/>
              <%= submit_tag '', :style => 'width: 1.5em' %>
            </div>

            <ul class="combo_search_select">
              <li class="comboselect">
                <label for="organization">ORGANIZATION</label>
                <%= select_tag :organization, options_for_select(@org_combo_values, params[:organization]), :class => :"chzn-select", :multiple => true, :size => 5, :placeholder => "Select organization" %>
              </li>

              <li class="comboselect">
                <label for="country">COUNTRY</label>
                <%= select_tag :country,
                  options_for_select(@countries_combo_values, params[:country]), :class => :"chzn-select", :multiple => true, :size => 5, :placeholder => "Select country" %>
              </li>

              <li class="comboselect">
                <label for="sector">SECTOR</label>
                <%= select_tag :sector,
                  options_for_select(@sectors_combo_values, params[:sector]), :class => :"chzn-select", :multiple => true, :size => 5, :placeholder => "Select sector" %>
              </li>

              <li class="comboselect">
                <label for="donor">DONOR</label>
                <%= select_tag :donor,
                  options_for_select(@donors_combo_values, params[:donor]), :class => :"chzn-select", :multiple => true, :size => 5, :placeholder => "Select donor"%>
              </li>

              <li>
                <label for="budget_min">Project Budget Min (USD)</label>
                <div class="budget-input-wrapper">
                    <span>$</span>
                    <%= text_field_tag :budget_min, params[:budget_min] %>
                </div>
              </li>


              <li>
                <label for="budget_max">Project Budget Max  (USD)</label>
                <div class="budget-input-wrapper">
                    <span>$</span>
                    <%= text_field_tag :budget_max, params[:budget_max] %>
                </div>
              </li>

              <li class="comboselect date" id="startDateSelector">
                <label for="start_date">Projects Active Between</label>
                <div class="select_date">
                  <%= select_date @date_start, {:prefix => :start_date, :use_short_month =>true, :start_year => Date.parse('1985-1-1').year, :end_year => Time.now.year} %>
                </div>
              </li>

              <li class="comboselect date" id="endDateSelector">
                <label for="end_date">AND</label>
                <div class="select_date">
                  <%= select_date @date_end, {:prefix => :end_date, :use_short_month =>true, :start_year => Date.parse('1985-1-1').year, :end_year => Time.now.year} %>
                </div>
              </li>

              <li class="comboselect" id="activeProjects">
                <label><%= check_box_tag 'active_projects', 'yes', params.has_key?(:active_projects) %> Show only currently active projects</label>
              </li>

              <li>
                <button class="reset" id="resetBtn" type="reset">Reset filters</button>
                <button class="apply" type="submit">Apply filters</button>
              </li>
            </ul>

          <% end %>
        </div> <!-- mod-report-filter -->
      <% end %>
    </nav>

    <section class="col-md-7 filter-results-wrapper">

      <div class="report-spinner" id="spinView"></div>

      <article class="mod-content-article">
        <div id="titleView" class="report-title text-center">
          <textarea placeholder="Your Title"></textarea>
          <button class="is-inline-btn is-unprintable">Edit</button>
        </div>

        <div id="introView" class="mod-report-results mod-report-intro">
          <p>Start applying some filters to generate a report.</p>
          <p><%= image_tag "arrow-reports.svg" %></p>
        </div>

        <div id="filtersView" class="mod-applied-filters is-hidden"></div>

        <div id="summaryView" class="mod-report-results mod-report-summary is-hidden"></div>

        <div id="budgetsView" class="mod-report-results mod-report-budget is-hidden"></div>
{'fraction_non_alphanumeric': 0.1633952808519524, 'fraction_numerical': 0.004385049070787221, 'mean_word_length': 2.075120385232745, 'pattern_counts': {'":': 0, '<': 215, '<?xml version=': 0, '>': 271, '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': '4531555', 'n_tokens_mistral': 2917, 'n_tokens_neox': 2682, 'n_words': 541}