<commit_before><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
       "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
  <meta http-equiv="content-type" content="text/html;charset=UTF-8" />
  <title>Charting: <%= controller_name %></title>
  <%= stylesheet_link_tag 'scaffold' %>
  <%= javascript_include_tag :defaults %>
</head>
<body>

<div id="goalmenu">
<h2><%=link_to "Charting", root_path%></h2>
<% if @current_user %>
  <h3>Your Goals</h3>
  <ul>
    <li>
    <% form_for Goal.new do |f| %>
      <%= f.text_field :name, 
                       :size => 10, 
                       :id => 'new_goal_field', 
                       :value => 'new goal', 
                       :onFocus => 'if (this.value == "new goal") {this.value = "";};',
                       :onBlur => 'if (this.value == "") {this.value = "new goal";};' %>
    <% end %>
    <br/>
    <% if ['notes', 'users', 'sources'].include? controller_name
      link_path = controller_name
      else
      link_path = "notes"
      end %>

    <% if @current_goal %>
      <li>
    <% else %>
      <li class="active-goal">
    <% end %>
      <%=link_to "all goals", "/" + link_path%>
    </li>
    <% for goal in @all_goals %>
      <% if goal == @current_goal %>
        <li class="active-goal"> 
      <% else %>
        <li>
      <%end%>
        <%=link_to goal.name, goal_path(goal) + "/" + link_path%> 
        <%= link_to '[-]', goal, :confirm => "Remove #{goal.name}?", :method => :delete %></td>
      </li>
    <% end %>
  <% else %>
    <h3>Please log in.</h3>
  </ul>
<% end %>
</div>

<div id="right">
  <%= render :partial => 'layouts/login' %>
  <div id="tabmenu">
    <div id="tabs">
      <% if @current_goal %>
        <% ["notes", "users", "sources"].each do |tab| -%><% if tab == controller_name -%><span class="active tab"><%=link_to(tab, goal_path(@current_goal) + "/" + tab)-%></span><% else -%><span class="tab"><%=link_to(tab, goal_path(@current_goal) + "/" + tab)-%></span><% end -%><% end -%>
      <% else -%><% ["notes", "users", "sources"].each do |tab| -%><% if tab == controller_name -%><span class="active tab"><%=link_to tab, "/" + tab -%></span><% else -%><span class="tab"><%=link_to tab, "/" + tab -%></span><% end -%><% end -%>
      <% end %>
    </div>
    <%= render :partial => 'layouts/search' %>
  </div>

  <div id="content">
    <p style="color: green"><%= notice %></p><commit_msg>Cleaned up tab display slightly.<commit_after><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
       "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
  <meta http-equiv="content-type" content="text/html;charset=UTF-8" />
  <title>Charting: <%= controller_name %></title>
  <%= stylesheet_link_tag 'scaffold' %>
  <%= javascript_include_tag :defaults %>
</head>
<body>

<div id="goalmenu">
<h2><%=link_to "Charting", root_path%></h2>
<% if @current_user %>
  <h3>Your Goals</h3>
  <ul>
    <li>
    <% form_for Goal.new do |f| %>
      <%= f.text_field :name, 
                       :size => 10, 
                       :id => 'new_goal_field', 
                       :value => 'new goal', 
                       :onFocus => 'if (this.value == "new goal") {this.value = "";};',
                       :onBlur => 'if (this.value == "") {this.value = "new goal";};' %>
    <% end %>
    <br/>
    <% if ['notes', 'users', 'sources'].include? controller_name
      link_path = controller_name
      else
      link_path = "notes"
      end %>

    <% if @current_goal %>
      <li>
    <% else %>
      <li class="active-goal">
    <% end %>
      <%=link_to "all goals", "/" + link_path%>
    </li>
    <% for goal in @all_goals %>
      <% if goal == @current_goal %>
        <li class="active-goal"> 
      <% else %>
        <li>
      <%end%>
        <%=link_to goal.name, goal_path(goal) + "/" + link_path%> 
        <%= link_to '[-]', goal, :confirm => "Remove #{goal.name}?", :method => :delete %></td>
      </li>
    <% end %>
  <% else %>
    <h3>Please log in.</h3>
  </ul>
<% end %>
</div>

<div id="right">
  <%= render :partial => 'layouts/login' %>
  <div id="tabmenu">
    <div id="tabs">
      <%  ["notes", "users", "sources"].each do |tab|
        tab_disp = ""
        if tab == "users"
          tab_disp = "people"
        else
          tab_disp = tab
        end
        
        if tab == controller_name
          if @current_goal
            -%><span class="active tab"><%=link_to(tab_disp, goal_path(@current_goal) + "/" + tab)-%></span><% 
          else 
            -%><span class="active tab"><%=link_to tab_disp, "/" + tab -%></span><% 
          end
        else 
          if @current_goal
            -%><span class="tab"><%=link_to(tab_disp, goal_path(@current_goal) + "/" + tab)-%></span><%
          else
            -%><span class="tab"><%=link_to tab_disp, "/" + tab -%></span><%
          end
        end
      end %>
    </div>
    <%= render :partial => 'layouts/search' %>
  </div>

  <div id="content">
    <p style="color: green"><%= notice %></p>
{'fraction_non_alphanumeric': 0.22450942670257792, 'fraction_numerical': 0.007695267410542516, 'mean_word_length': 2.257518796992481, 'pattern_counts': {'":': 0, '<': 165, '<?xml version=': 0, '>': 183, 'https://': 0, 'lorem ipsum': 0, 'www.': 4, 'xml': 4}, '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': '3386901', 'n_tokens_mistral': 2016, 'n_tokens_neox': 1812, 'n_words': 378}