<commit_before><%- model_class = Character.new.class -%>
<h1>
	<%=t '.title', :default => model_class.model_name.human.pluralize %>
	<small>from universe: </small><%= universe_filter %>
</h1>
<table class="table table-striped">
  <thead>
    <tr>
      <th><%= model_class.human_attribute_name(:name) %></th>
      <th><%= model_class.human_attribute_name(:role) %></th>
      <% unless @selected_universe_filter %>
	      <th><%= model_class.human_attribute_name(:universe) %></th>
      <% end %>
      <th><%=t '.actions', :default => t("helpers.actions") %></th>
    </tr>
  </thead>
  <tbody>
    <% @characters.each do |character| %>
      <tr>
        <td><%= link_to character.name, character_path(character) %></td>
        <td><%= character.role %></td>
        <% unless @selected_universe_filter %>
        	<td><%= character.universe ? character.universe.name : "" %></td>
        <% end %>
        <td>
          <%= link_to t('.view', :default => t("helpers.links.view")),
                      character_path(character), :class => 'btn btn-mini' %>
          <%= link_to t('.edit', :default => t("helpers.links.edit")),
                      character_edit_path(character), :class => 'btn btn-mini' %>
          <%= link_to t('.destroy', :default => t("helpers.links.destroy")),
                      character_path(character),
                      :method => :delete,
                      :confirm => t('.confirm', :default => t("helpers.links.confirm", :default => 'Are you sure?')),
                      :class => 'btn btn-mini btn-danger' %>
        </td><commit_msg>don't show universe filter/columns if they haven't created any universes yet<commit_after><%- model_class = Character.new.class -%>
<h1>
	<%=t '.title', :default => model_class.model_name.human.pluralize %>
	<% if Universe.where(user_id: session[:user]).length > 0 %>
		<small>from universe: </small><%= universe_filter %>
	<% end %>
</h1>
<table class="table table-striped">
  <thead>
    <tr>
      <th><%= model_class.human_attribute_name(:name) %></th>
      <th><%= model_class.human_attribute_name(:role) %></th>
      <% if Universe.where(user_id: session[:user]).length > 0 and not @selected_universe_filter  %>
	      <th><%= model_class.human_attribute_name(:universe) %></th>
      <% end %>
      <th><%=t '.actions', :default => t("helpers.actions") %></th>
    </tr>
  </thead>
  <tbody>
    <% @characters.each do |character| %>
      <tr>
        <td><%= link_to character.name, character_path(character) %></td>
        <td><%= character.role %></td>
        <% if Universe.where(user_id: session[:user]).length > 0 and not @selected_universe_filter %>
        	<td><%= character.universe ? character.universe.name : "" %></td>
        <% end %>
        <td>
          <%= link_to t('.view', :default => t("helpers.links.view")),
                      character_path(character), :class => 'btn btn-mini' %>
          <%= link_to t('.edit', :default => t("helpers.links.edit")),
                      character_edit_path(character), :class => 'btn btn-mini' %>
          <%= link_to t('.destroy', :default => t("helpers.links.destroy")),
                      character_path(character),
                      :method => :delete,
                      :confirm => t('.confirm', :default => t("helpers.links.confirm", :default => 'Are you sure?')),
                      :class => 'btn btn-mini btn-danger' %>
        </td>
{'fraction_non_alphanumeric': 0.19900787861103006, 'fraction_numerical': 0.0020426028596440037, 'mean_word_length': 2.5708333333333333, 'pattern_counts': {'":': 0, '<': 95, '<?xml version=': 0, '>': 122, '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': '7570355', 'n_tokens_mistral': 1143, 'n_tokens_neox': 1061, 'n_words': 212}