<commit_before><% @title = @model.name %>
<div class="model_info">
  <div class="model_info_top">
    <% if @model.previews.nil? or @model.previews.empty? %>
      <div class="no_preview_image">No preview image</div>
    <% else %>
        <%= model_image(@model)%>
    <% end %>
    <div class="info_social_container">
      <div class="info_container">
        <div class="collaborators">
          <h3>
            <span id="collaborator_count"><%= pluralize(@model.collaborations.size, 'collaborator') %></span>
            <% if @model.people.include?(@person) %>
              <span class="smaller" id="add-collaborator"><a href="#">Add a collaborator</a></span>
            <% end %>
          </h3>
          
          <%= render :partial => "/collaborations/collaborator_list" %>
          
          <% form_for(:add_collaborator, :url => {:controller => :collaborations, :action => :create}, :html => {:class => 'popup_form'}) do |form| -%>
              <div class="left-right"><div class="left"><h1>Add Collaborator</h1></div><div class="right"><h2><a href="#" class="close_form">Close</a></h2></div></div>
              <input type="hidden" name="node_id" value="<%= @model.id %>" />
              <p>
                <input type="text" class="complete" placeholder="Collaborator name" name="person_name" size="45" />
                <select name="collaborator_type_id">
                  <% CollaboratorType.all.each do |type| %>
                    <option value="<%= type.id %>"><%= type.name %></option>
                  <% end %>
                </select>
              </p>              
              <p>
                <button id="save_collaborators">Save new collaborators</button>
              </p>
            <% end -%>
        </div>
         
        <div class="tag_cloud_container">
            <h3>Tags <span class="smaller"><a href="#" id="open_add_tag_form">Add tag</a></span></h3>
            <%= render :partial => "tags/tag_cloud", :locals => {:model => @model} %>
            <% form_for(:new_tag, :url => {:controller => :tags, :action => :create}, :html => {:class => 'add_tag_form popup_form'}) do |form| -%>
              <div class="left-right"><div class="left"><h1>Add New Tag</h1></div><div class="right"><h2><a href="#" id="close_add_tag_form">Close</a></h2></div></div>
              <%= hidden_field_tag :node_id, @model.id -%>
              <p><%= text_field_tag 'new_tag[]', "", {:class => 'complete', :placeholder => "Tag name", :size => 45} %></p>
              <p><%= text_field_tag 'new_comment[]', "", {:placeholder => "(Optional) Why tag is relevant to this model", :size => 45} %></p>
              <p><button id="add_tag">Tag this model</button></p>
            <% end -%>
        </div>
        
        <div class="family_info">
          <% if !@model.projects.empty? %>
          Part of project '<%= project_link(@model.projects.first) %>'
          <% end %>
        
          <% if @model.parent %>
          Child of model <%= model_link(@model.parent) %>
          <% end %>
          
          <% if not @model.children.empty? %>
          Parent of <%= pluralize(@model.children.size, 'model') %>: <%= @model.children.map {|child| model_link(child) }.to_sentence %>
          <% end %>
        </div>
        
        <% form_tag(url_for( :controller => :browse, :action => :set_permissions), :id => "group_permission_form") do %>
          <%= hidden_field_tag 'id', @model.id %>
          <% model_visibility_letter = @model.visibility.short_form %>
          <% model_changeability_letter = @model.changeability.short_form %>
          <% model_group_id = @model.group ? @model.group.id : 0 %>
          <% if @model.people.include?(@person) %>
            <% if @person and !@person.groups.empty? %>
              <% @options_for_select = [['No group', nil]] %>
              <% @person.groups.each {|g| @options_for_select << [g.name, g.id] } %> 
              <br />                 
              Model group <%= select_tag("group_id", options_for_select(@options_for_select, (@model.group ? @model.group.id : 0)), :id => "group_select") %>
              | 
            <% end %>
            Visible to 
            <select name="read_permission" id="read_permission_select">
              <option value="a" <% if model_visibility_letter ==  'a'%>selected="selected"<% end %>>everyone</option>
              <% if @person and !@person.groups.empty? %>
                <option value="g" <% if model_visibility_letter ==  'g'%>selected="selected"<% end %>>group members only</option>
              <% end %>
              <option value="u" <% if model_visibility_letter ==  'u'%>selected="selected"<% end %>>you only</option>
            </select>
             | Changeable by
            <select name="write_permission" id="write_permission_select">
              <option value="a" <% if model_changeability_letter ==  'a'%>selected="selected"<% end %>>everyone</option>
              <% if @person and !@person.groups.empty? %>
              <option value="g" <% if model_changeability_letter ==  'g'%>selected="selected"<% end %>>group members only</option>
              <% end %>
              <option value="u" <% if model_changeability_letter ==  'u'%>selected="selected"<% end %>>you only</option>
            </select>
          <% else %>
            <%if model_group_id != 0 %>
              <%= model_group(@model) %> | 
            <% end %>
              <%= model_visibility(@model) %> | <%= model_changeability(@model) %>
          <% end %>
        <% end %>
        
      </div>
      
      <div class="social_container"><commit_msg>Removed extraneous <br /> that screwed up layout on browse/one_model<commit_after><% @title = @model.name %>
<div class="model_info">
  <div class="model_info_top">
    <% if @model.previews.nil? or @model.previews.empty? %>
      <div class="no_preview_image">No preview image</div>
    <% else %>
        <%= model_image(@model)%>
    <% end %>
    <div class="info_social_container">
      <div class="info_container">
        <div class="collaborators">
          <h3>
            <span id="collaborator_count"><%= pluralize(@model.collaborations.size, 'collaborator') %></span>
            <% if @model.people.include?(@person) %>
              <span class="smaller" id="add-collaborator"><a href="#">Add a collaborator</a></span>
            <% end %>
          </h3>
          
          <%= render :partial => "/collaborations/collaborator_list" %>
          
          <% form_for(:add_collaborator, :url => {:controller => :collaborations, :action => :create}, :html => {:class => 'popup_form'}) do |form| -%>
              <div class="left-right"><div class="left"><h1>Add Collaborator</h1></div><div class="right"><h2><a href="#" class="close_form">Close</a></h2></div></div>
              <input type="hidden" name="node_id" value="<%= @model.id %>" />
              <p>
                <input type="text" class="complete" placeholder="Collaborator name" name="person_name" size="45" />
                <select name="collaborator_type_id">
                  <% CollaboratorType.all.each do |type| %>
                    <option value="<%= type.id %>"><%= type.name %></option>
                  <% end %>
                </select>
              </p>              
              <p>
                <button id="save_collaborators">Save new collaborators</button>
              </p>
            <% end -%>
        </div>
         
        <div class="tag_cloud_container">
            <h3>Tags <span class="smaller"><a href="#" id="open_add_tag_form">Add tag</a></span></h3>
            <%= render :partial => "tags/tag_cloud", :locals => {:model => @model} %>
            <% form_for(:new_tag, :url => {:controller => :tags, :action => :create}, :html => {:class => 'add_tag_form popup_form'}) do |form| -%>
              <div class="left-right"><div class="left"><h1>Add New Tag</h1></div><div class="right"><h2><a href="#" id="close_add_tag_form">Close</a></h2></div></div>
              <%= hidden_field_tag :node_id, @model.id -%>
              <p><%= text_field_tag 'new_tag[]', "", {:class => 'complete', :placeholder => "Tag name", :size => 45} %></p>
              <p><%= text_field_tag 'new_comment[]', "", {:placeholder => "(Optional) Why tag is relevant to this model", :size => 45} %></p>
              <p><button id="add_tag">Tag this model</button></p>
            <% end -%>
        </div>
        
        <div class="family_info">
          <% if !@model.projects.empty? %>
          Part of project '<%= project_link(@model.projects.first) %>'
          <% end %>
        
          <% if @model.parent %>
          Child of model <%= model_link(@model.parent) %>
          <% end %>
          
          <% if not @model.children.empty? %>
          Parent of <%= pluralize(@model.children.size, 'model') %>: <%= @model.children.map {|child| model_link(child) }.to_sentence %>
          <% end %>
        </div>
        
        <% form_tag(url_for( :controller => :browse, :action => :set_permissions), :id => "group_permission_form") do %>
          <%= hidden_field_tag 'id', @model.id %>
          <% model_visibility_letter = @model.visibility.short_form %>
          <% model_changeability_letter = @model.changeability.short_form %>
          <% model_group_id = @model.group ? @model.group.id : 0 %>
          <% if @model.people.include?(@person) %>
            <% if @person and !@person.groups.empty? %>
              <% @options_for_select = [['No group', nil]] %>
              <% @person.groups.each {|g| @options_for_select << [g.name, g.id] } %>                
              Model group <%= select_tag("group_id", options_for_select(@options_for_select, (@model.group ? @model.group.id : 0)), :id => "group_select") %>
              | 
            <% end %>
            Visible to 
            <select name="read_permission" id="read_permission_select">
              <option value="a" <% if model_visibility_letter ==  'a'%>selected="selected"<% end %>>everyone</option>
              <% if @person and !@person.groups.empty? %>
                <option value="g" <% if model_visibility_letter ==  'g'%>selected="selected"<% end %>>group members only</option>
              <% end %>
              <option value="u" <% if model_visibility_letter ==  'u'%>selected="selected"<% end %>>you only</option>
            </select>
             | Changeable by
            <select name="write_permission" id="write_permission_select">
              <option value="a" <% if model_changeability_letter ==  'a'%>selected="selected"<% end %>>everyone</option>
              <% if @person and !@person.groups.empty? %>
              <option value="g" <% if model_changeability_letter ==  'g'%>selected="selected"<% end %>>group members only</option>
              <% end %>
              <option value="u" <% if model_changeability_letter ==  'u'%>selected="selected"<% end %>>you only</option>
            </select>
          <% else %>
            <%if model_group_id != 0 %>
              <%= model_group(@model) %> | 
            <% end %>
              <%= model_visibility(@model) %> | <%= model_changeability(@model) %>
          <% end %>
        <% end %>
        
      </div>
      
      <div class="social_container">
{'fraction_non_alphanumeric': 0.1863161621525934, 'fraction_numerical': 0.0037174721189591076, 'mean_word_length': 2.2072097644053366, 'pattern_counts': {'":': 0, '<': 319, '<?xml version=': 0, '>': 361, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1062228', 'n_tokens_mistral': 3617, 'n_tokens_neox': 3318, 'n_words': 648}