<commit_before><div class="row-fluid">
	<div class="overview span8">
		<br/>
		<h1 class="row-fluid"><span class="icon overview"></span>Overview</h1>
		<table class="table table-striped">
			<thead>
				<tr>
					<th>My DMPs</th>
					<th>My DMPs under review</th>
				</tr>
			</thead>
			<tbody>
        <%
          #this layout is a PITA and really should NOT be a table, but since
          #the UI developer isn't going to change it, I'll do some gymnastics
          #to make things pretty within a table
           col1 = []
           col1[0] = link_to "#{current_user.owned_plans.count} plans I own", plans_path(:scope => "all_limited")
           col1[1] = link_to "#{current_user.coowned_plans.count} plans i co-own", plans_path(:scope => "coowned")
           col2 = (current_user.unique_plan_states & PlanState::REVIEW_STATES).map do |state|
             link_to "#{current_user.plans_by_state(state).count} #{state.capitalize}", review_dmps_path
           end
           if col2.length < 1
             col2[0] = "No DMPs are under review."
           end
           max_item = [col1.length, col2.length].max - 1
        %>
        <% 0.upto(max_item) do |i| %>
				<tr>
					<td><%= (col1[i].nil? ? '' : col1[i] ) %></td>
					<td><%= (col2[i].nil? ? '' : col2[i] ) %></td>
				</tr>
        <% end %>
			</tbody>
		</table>
		<div class="buttons">

			<!--The following id is used for testing purposes, please do not remove-->
			<%= link_to "Create New DMP", plan_template_information_path, :method => :get, :class => "btn btn-green", :id => "create_new_DMP", :onclick => 'return false;' %>

		</div>

		<% if defined? @pending_review %>
		<br/>
		<h1 class="row-fluid"><span class="icon review"></span>DMPs For My Review</h1>
		<table class="table table-striped">
			<tbody>
				<tr>
					<td><%= link_to "#{@pending_review} DMPs pending review", review_dmps_path(scope: "submitted") %></td>
				</tr>
				<tr>
					<td><%= link_to "#{@approved_plans} Approved DMPs", review_dmps_path(scope: "approved") %></td>
				</tr>
				<tr>
					<td><%= link_to "#{@rejected_plans} Rejected DMPs", review_dmps_path(scope: "rejected") %></td>
				</tr>
			</tbody>
		</table>
		<% end %>

	<% if defined? @requirements_templates %>
	<br/>
	<h1 class="row-fluid"><span class="icon dmp-template"></span>DMP Templates</h1>
	<table class="table table-striped">
		<thead>
			<tr>
				<th>Within my Institution</th>
				<th>Funder Requirements</th><commit_msg>Pluralizing the DMP text if count >1.<commit_after><div class="row-fluid">
	<div class="overview span8">
		<br/>
		<h1 class="row-fluid"><span class="icon overview"></span>Overview</h1>
		<table class="table table-striped">
			<thead>
				<tr>
					<th>My DMPs</th>
					<th>My DMPs under review</th>
				</tr>
			</thead>
			<tbody>
        <%
          #this layout is a PITA and really should NOT be a table, but since
          #the UI developer isn't going to change it, I'll do some gymnastics
          #to make things pretty within a table
           col1 = []
           col1[0] = link_to "#{current_user.owned_plans.count} plans I own", plans_path(:scope => "all_limited")
           col1[1] = link_to "#{current_user.coowned_plans.count} plans i co-own", plans_path(:scope => "coowned")
           col2 = (current_user.unique_plan_states & PlanState::REVIEW_STATES).map do |state|
             link_to "#{current_user.plans_by_state(state).count} #{state.capitalize}", review_dmps_path
           end
           if col2.length < 1
             col2[0] = "No DMPs are under review."
           end
           max_item = [col1.length, col2.length].max - 1
        %>
        <% 0.upto(max_item) do |i| %>
				<tr>
					<td><%= (col1[i].nil? ? '' : col1[i] ) %></td>
					<td><%= (col2[i].nil? ? '' : col2[i] ) %></td>
				</tr>
        <% end %>
			</tbody>
		</table>
		<div class="buttons">

			<!--The following id is used for testing purposes, please do not remove-->
			<%= link_to "Create New DMP", plan_template_information_path, :method => :get, :class => "btn btn-green", :id => "create_new_DMP", :onclick => 'return false;' %>

		</div>

		<% if defined? @pending_review %>
		<br/>
		<h1 class="row-fluid"><span class="icon review"></span>DMPs For My Review</h1>
		<table class="table table-striped">
			<tbody>
				<tr>
					<td><%= link_to "#{pluralize(@pending_review, 'DMP')} pending review", review_dmps_path(scope: "submitted") %></td>
				</tr>
				<tr>
					<td><%= link_to "#{pluralize(@approved_plans, 'DMP')} Approved", review_dmps_path(scope: "approved") %></td>
				</tr>
				<tr>
					<td><%= link_to "#{pluralize(@rejected_plans, 'DMP')} Rejected", review_dmps_path(scope: "rejected") %></td>
				</tr>
			</tbody>
		</table>
		<% end %>

	<% if defined? @requirements_templates %>
	<br/>
	<h1 class="row-fluid"><span class="icon dmp-template"></span>DMP Templates</h1>
	<table class="table table-striped">
		<thead>
			<tr>
				<th>Within my Institution</th>
				<th>Funder Requirements</th>
{'fraction_non_alphanumeric': 0.1805973140910002, 'fraction_numerical': 0.010222489476849068, 'mean_word_length': 2.9291338582677167, 'pattern_counts': {'":': 0, '<': 151, '<?xml version=': 0, '>': 162, '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': '7536517', 'n_tokens_mistral': 2057, 'n_tokens_neox': 1763, 'n_words': 429}