<commit_before><% provide(:title, 'Institution Information') %>
<h5>Institution Information</h5>
<hr/>
<%= form_for @current_institution, html:{ :class => 'form-horizontal', multipart: true}  do |f| %>
	<% if @current_institution.errors.any? %>
	<div id="error_explanation">
		<h2><%= "#{pluralize(@current_institution.errors.count, "error")} prohibited this Institution from being saved:" %></h2>
		<ul>
  	<% @current_institution.errors.full_messages.each do |msg| %>
			<li><%= msg %></li>
		<% end %>
    </ul>
  </div>
  <% end %>
  <div class="control-group">
    <%= f.label :full_name , "Institution Full Name", :class=> "control-label required" %>
    <div class="controls">
	    <%= f.text_field :full_name, :class => "input-xxlarge required" %>
	    ( <span class="required">*</span> Required Field )
	  </div>
  </div>

  <div class="control-group">
    <%= f.label :shib_entity_id, "Entity_id", :class => "control-label required" %>
    <div class="controls">
      <%= f.text_field :shib_entity_id, :class => "required" %>
      ( <span class="required">*</span> Required Field )
    </div>
  </div>

  <div class="control-group">
    <%= f.label :shib_domain , "Shibboleth Domain", :class => "control-label required"%>
    <div class="controls">
      <%= f.text_field :shib_domain, :class => "required" %>
      ( <span class="required">*</span> Required Field )
    </div>
  </div>

  <div class="control-group">
    <%= f.label :parent_id , "Parent Institution", :class => "control-label"%>
    <div class="controls">
      <%= f.select(:parent_id, options_for_select(@categories), :prompt => 'Select', :include_blank => 'none') %>
    </div>
  </div>

  <div class="control-group">
    <%= f.label :nickname, "Institution short name, or acronym", :class => "control-label" %>
    <div class="controls">
      <%= f.text_field :nickname %>
    </div>
  </div>

  <div class="control-group">
    <%= f.label :url, "Institution URL", :class => "control-label" %>
    <div class="controls">
      <%= f.text_field :url_text, placeholder: "URL Text", :class => "input-large" %>
      <%= f.text_field :url, placeholder: "URL", :class => "input-large" %>
    </div>
  </div>

  <div class="control-group">
    <%= f.label :contact_info, "Administrator Contact", :class => "control-label" %>
    <div class="controls">
      <%= f.text_field :contact_info, placeholder: "Name", :class => "input-large" %>
      <%= f.text_field :contact_email, placeholder: "Email", :class => "input-large" %>
    </div>
  </div>

  <div class="control-group">

    <!--<p  class=" control-label tip" data-toggle="tooltip" data-placement="left" title="Suggested Logo Size 170x60">Institutional Logo  </p>-->

    <%= f.label 'Institutional Logo', :class => " control-label tip", 'data-toggle' => "tooltip", 'data-placement' => "left",  'title' => "Suggested Logo Size 170x60"  %>

    <div class="controls">
      <%= image_tag @current_institution.logo.url if @current_institution.logo? %>
      <%= f.file_field :logo %>
      <%= f.hidden_field :logo_cache %>
    </div>
  </div>

  <div class="control-group">
    <div class="controls">
      <%= f.submit "Upload", :class => "btn" %>
    </div>
  </div>

  <div class="control-group">
    <%= f.label :desc , "Descriptive Text", :class => "control-label" %>
    <div class="controls">
      <%= f.text_area :desc, rows: 5, :class => "input-xxlarge" %>
    </div>
  </div><commit_msg>refactor<commit_after><% provide(:title, 'Institution Information') %>
<h5>Institution Information</h5>
<hr/>
<%= form_for @current_institution, html:{ :class => 'form-horizontal', multipart: true}  do |f| %>
	<% if @current_institution.errors.any? %>
	<div id="error_explanation">
		<h2><%= "#{pluralize(@current_institution.errors.count, "error")} prohibited this Institution from being saved:" %></h2>
		<ul>
  	<% @current_institution.errors.full_messages.each do |msg| %>
			<li><%= msg %></li>
		<% end %>
    </ul>
  </div>
  <% end %>
  <div class="control-group">
    <%= f.label :full_name , "Institution Full Name", :class=> "control-label required" %>
    <div class="controls">
	    <%= f.text_field :full_name, :class => "input-xxlarge required" %>
	    ( <span class="required">*</span> Required Field )
	  </div>
  </div>

  <div class="control-group">
    <%= f.label :shib_entity_id, "Entity_id", :class => "control-label required" %>
    <div class="controls">
      <%= f.text_field :shib_entity_id, :class => "required" %>
      ( <span class="required">*</span> Required Field )
    </div>
  </div>

  <div class="control-group">
    <%= f.label :shib_domain , "Shibboleth Domain", :class => "control-label required"%>
    <div class="controls">
      <%= f.text_field :shib_domain, :class => "required" %>
      ( <span class="required">*</span> Required Field )
    </div>
  </div>

  <div class="control-group">
    <%= f.label :parent_id , "Parent Institution", :class => "control-label"%>
    <div class="controls">
      <%= f.select(:parent_id, options_for_select(@categories), :prompt => 'Select', :include_blank => 'none') %>
    </div>
  </div>

  <div class="control-group">
    <%= f.label :nickname, "Institution short name, or acronym", :class => "control-label" %>
    <div class="controls">
      <%= f.text_field :nickname %>
    </div>
  </div>

  <div class="control-group">
    <%= f.label :url, "Institution URL", :class => "control-label" %>
    <div class="controls">
      <%= f.text_field :url_text, placeholder: "URL Text", :class => "input-large" %>
      <%= f.text_field :url, placeholder: "URL", :class => "input-large" %>
    </div>
  </div>

  <div class="control-group">
    <%= f.label :contact_info, "Administrator Contact", :class => "control-label" %>
    <div class="controls">
      <%= f.text_field :contact_info, placeholder: "Name", :class => "input-large" %>
      <%= f.text_field :contact_email, placeholder: "Email", :class => "input-large" %>
    </div>
  </div>

  <div class="control-group">

    <%= f.label 'Institutional Logo', :class => " control-label tip", 'data-toggle' => "tooltip", 'data-placement' => "left",  'title' => "Suggested Logo Size 170x60"  %>

    <div class="controls">
      <%= image_tag @current_institution.logo.url if @current_institution.logo? %>
      <%= f.file_field :logo %>
      <%= f.hidden_field :logo_cache %>
    </div>
  </div>

  <div class="control-group">
    <div class="controls">
      <%= f.submit "Upload", :class => "btn" %>
    </div>
  </div>

  <div class="control-group">
    <%= f.label :desc , "Descriptive Text", :class => "control-label" %>
    <div class="controls">
      <%= f.text_area :desc, rows: 5, :class => "input-xxlarge" %>
    </div>
  </div>
{'fraction_non_alphanumeric': 0.20985999404229969, 'fraction_numerical': 0.0037235627047959487, 'mean_word_length': 3.6119505494505493, 'pattern_counts': {'":': 0, '<': 182, '<?xml version=': 0, '>': 230, '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': '4107631', 'n_tokens_mistral': 2470, 'n_tokens_neox': 2289, 'n_words': 503}