<commit_before><% if session[:project_filter_qr] != nil %>
<h2>Actions</h2>
<%= @actions.size %> actions<br/>

<%= render(:file=>'actions/actions_header') %>
<%= render(:partial=>'actions/action', :collection=>@actions) %>
</table>
<% end %>

<h2>Amendments</h2>
<%= render(:file=>'amendments/amendments_header') %>
<%= render(:partial=>'amendments/amendment', :collection=>@amendments) %>
</table>


<h2>Projects</h2>
<% if current_user.has_role?('Admin') %>
<%= link_to('New', {:action=>'new'},{:class=>"btnlnk"}) %>
<%= link_to('Import', {:action=>'import'},{:class=>"btnlnk"}) %>
<%= link_to('Check', {:action=>'check'},{:class=>"btnlnk"}) %>
<% end %>
<%= link_to('Report', {:action=>'report'},{:class=>"btnlnk"}) %>
<%= link_to('Summary', {:action=>'summary'},{:class=>"btnlnk"}) %>
<%= link_to('Tickets changes', {:action=>'week_changes'}, {:class=>'btnlnk'}) %>

<div class="stats">
Last RMT update: <%= time_ago_in_words(@last_update) %> ago (<%= @last_update %>)<br/>
<%= @projects.size %> projects, <%= @wps.size %> WPs with open requests and a status
</div>
<br/>
<br/>

<div class="legend">
  <div class="milestone">
  <div class="milestone_name blank">
  No date
  </div>
  <div class="milestone_comments status-1">
  No request
  </div>
  </div>

  <div class="milestone">
  <div class="milestone_name missing">
  No date
  </div>
  <div class="milestone_comments status0">
  Some requests
  </div>
  </div>


  <div class="milestone">
  <div class="milestone_name normal">
  Date OK
  </div>
  <div class="milestone_comments status0">
  No info
  </div>
  </div>


  <div class="milestone">
  <div class="milestone_name soon">
  2 weeks
  </div>
  <div class="milestone_comments status1">
  GO
  </div>
  </div>

  <div class="milestone">
  <div class="milestone_name verysoon">
  1 w / late
  </div>
  <div class="milestone_comments status2">
  GO w/a
  </div>
  </div>

  <div class="milestone">
  <div class="milestone_name passed">
  Passed
  </div>
  <div class="milestone_comments status3">
  NO GO
  </div>
  </div>

  <div class="milestone">
  <div class="milestone_name skipped">
  Skipped
  </div>
  <div class="milestone_comments status0">
  no info
  </div>
  </div>
</div>


<%= link_to_function('filters', "$('filters').toggle();") %>
<% if(are_filtered) %><strong>filtered</strong><% end %>
<div id="filters" style="display:none;">
<% form_tag(:action=>'filter') do %>
<table>
<tr valign="top"><td>
<b>Status</b><br/>
<%= check_box_tag('st[]', 0) %> unknown<br/>
<%= check_box_tag('st[]', 1) %> green<br/>
<%= check_box_tag('st[]', 2) %> amber<br/>
<%= check_box_tag('st[]', 3) %> red<br/>
</td><td>
<b>Workstreams</b><br/>
<% for workstream in @workstreams %>
  <%= check_box_tag('ws[]',workstream) %> <%= workstream %><br/>
<% end %>
</td><td>
<b>Supervisors</b><br/>
<% for s in @supervisors %>
  <%= check_box_tag('sup[]',s.id) %> <%= s.name %><br/>
<% end %>
</td><td>
<b>QR</b><br/>
<% for s in @qr %>
  <%= check_box_tag('qr[]',s.id) %> <%= s.name %><br/>
<% end %>
</td></tr>
<tr>
<td colspan=4>
Text: <%= text_field_tag('text') %> precedence on other filters<br/>
Searches project title and description, statuses, request summary and PM names
</td>
</tr>
</table>
<%= submit_tag('Filter') %>
<% end %>
<br/>
</div>

<%= link_to_function('Toggle Frieze', "$('frieze').toggle()") %>
<div id="frieze"<%if current_user.has_role?('Admin')%> style="display:none;"<%end%> >
<% for project in @wps %>
<h3>
  <%= link_to('Open', {:action=>'show', :id=>project.id}, {:class=>'menu grey'}) %>
  <% next_m_date = project.next_milestone_date;  bool = (next_m_date and next_m_date-Date.today() <= 5); if bool %>
  <font color="red">
  <% end %>
  <%= next_m_date %>
  <%= project.full_name %>
  <% if bool %>  </font>  <% end %>
  <%= html_status(project.last_status) %>
  <% date = project.last_status_date
  if date
    days = time_ago_in_words(date) %>
    (<%= days %> - w<%= date.to_date.cweek %>)
  <% end %>
</h3>

<div class="milestone_bar">
<%= render(:partial=>'milestones/milestone', :collection=>project.sorted_milestones) %>
</div>
<% end %>
</div>

<%= link_to_function('Toggle projects', "$('projects').toggle()") %>
<div id="projects"<%if not current_user.has_role?('Admin')%> style="display:none;"<%end%> >
<ul>
<%= render(:partial=>'project', :collection=>@projects) %>
</ul>
</div>
<commit_msg>small effects<commit_after><% if session[:project_filter_qr] != nil %>
<h2>Actions</h2>
<%= @actions.size %> actions<br/>

<%= render(:file=>'actions/actions_header') %>
<%= render(:partial=>'actions/action', :collection=>@actions) %>
</table>
<% end %>

<h2>Amendments</h2>
<%= render(:file=>'amendments/amendments_header') %>
<%= render(:partial=>'amendments/amendment', :collection=>@amendments) %>
</table>


<h2>Projects</h2>
<% if current_user.has_role?('Admin') %>
<%= link_to('New', {:action=>'new'},{:class=>"btnlnk"}) %>
<%= link_to('Import', {:action=>'import'},{:class=>"btnlnk"}) %>
<%= link_to('Check', {:action=>'check'},{:class=>"btnlnk"}) %>
<% end %>
<%= link_to('Report', {:action=>'report'},{:class=>"btnlnk"}) %>
<%= link_to('Summary', {:action=>'summary'},{:class=>"btnlnk"}) %>
<%= link_to('Tickets changes', {:action=>'week_changes'}, {:class=>'btnlnk'}) %>

<div class="stats">
Last RMT update: <%= time_ago_in_words(@last_update) %> ago (<%= @last_update %>)<br/>
<%= @projects.size %> projects, <%= @wps.size %> WPs with open requests and a status
</div>
<br/>
<br/>

<div class="legend">
  <div class="milestone">
  <div class="milestone_name blank">
  No date
  </div>
  <div class="milestone_comments status-1">
  No request
  </div>
  </div>

  <div class="milestone">
  <div class="milestone_name missing">
  No date
  </div>
  <div class="milestone_comments status0">
  Some requests
  </div>
  </div>


  <div class="milestone">
  <div class="milestone_name normal">
  Date OK
  </div>
  <div class="milestone_comments status0">
  No info
  </div>
  </div>


  <div class="milestone">
  <div class="milestone_name soon">
  2 weeks
  </div>
  <div class="milestone_comments status1">
  GO
  </div>
  </div>

  <div class="milestone">
  <div class="milestone_name verysoon">
  1 w / late
  </div>
  <div class="milestone_comments status2">
  GO w/a
  </div>
  </div>

  <div class="milestone">
  <div class="milestone_name passed">
  Passed
  </div>
  <div class="milestone_comments status3">
  NO GO
  </div>
  </div>

  <div class="milestone">
  <div class="milestone_name skipped">
  Skipped
  </div>
  <div class="milestone_comments status0">
  no info
  </div>
  </div>
</div>


<%= link_to_function('filters', "Effect.toggle('filters','blind');",{:class=>"btnlnk"}) %>
<% if(are_filtered) %><strong>filtered</strong><% end %>
<div id="filters" style="display:none;">
<% form_tag(:action=>'filter') do %>
<table>
<tr valign="top"><td>
<b>Status</b><br/>
<%= check_box_tag('st[]', 0) %> unknown<br/>
<%= check_box_tag('st[]', 1) %> green<br/>
<%= check_box_tag('st[]', 2) %> amber<br/>
<%= check_box_tag('st[]', 3) %> red<br/>
</td><td>
<b>Workstreams</b><br/>
<% for workstream in @workstreams %>
  <%= check_box_tag('ws[]',workstream) %> <%= workstream %><br/>
<% end %>
</td><td>
<b>Supervisors</b><br/>
<% for s in @supervisors %>
  <%= check_box_tag('sup[]',s.id) %> <%= s.name %><br/>
<% end %>
</td><td>
<b>QR</b><br/>
<% for s in @qr %>
  <%= check_box_tag('qr[]',s.id) %> <%= s.name %><br/>
<% end %>
</td></tr>
<tr>
<td colspan=4>
Text: <%= text_field_tag('text') %> precedence on other filters<br/>
Searches project title and description, statuses, request summary and PM names
</td>
</tr>
</table>
<%= submit_tag('Filter') %>
<% end %>
<br/>
</div>
<br/>
<br/>

<%= link_to_function('Toggle Frieze', "Effect.toggle('frieze','blind')",{:class=>"btnlnk"}) %>
<div id="frieze"<%if current_user.has_role?('Admin')%> style="display:none;"<%end%> >
<% for project in @wps %>
<h3>
  <%= link_to('Open', {:action=>'show', :id=>project.id}, {:class=>'menu grey'}) %>
  <% next_m_date = project.next_milestone_date;  bool = (next_m_date and next_m_date-Date.today() <= 5); if bool %>
  <font color="red">
  <% end %>
  <%= next_m_date %>
  <%= project.full_name %>
  <% if bool %>  </font>  <% end %>
  <%= html_status(project.last_status) %>
  <% date = project.last_status_date
  if date
    days = time_ago_in_words(date) %>
    (<%= days %> - w<%= date.to_date.cweek %>)
  <% end %>
</h3>

<div class="milestone_bar">
<%= render(:partial=>'milestones/milestone', :collection=>project.sorted_milestones) %>
</div>
<% end %>
</div>
<br/>
<br/>

<%= link_to_function('Toggle projects', "Effect.toggle('projects','blind')",{:class=>"btnlnk"}) %>
<div id="projects"<%if not current_user.has_role?('Admin')%> style="display:none;"<%end%> >
<ul>
<%= render(:partial=>'project', :collection=>@projects) %>
</ul>
</div>

{'fraction_non_alphanumeric': 0.2518198362147407, 'fraction_numerical': 0.005232029117379436, 'mean_word_length': 5.209745762711864, 'pattern_counts': {'":': 0, '<': 359, '<?xml version=': 0, '>': 412, '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': '4795216', 'n_tokens_mistral': 3704, 'n_tokens_neox': 3355, 'n_words': 633}