<commit_before><div class="row-fluid">
<%= form_for(@source, :html => { :class => "form-horizontal"} ) do |f| %>
  <% if @source.errors.any? %>
    <div id="error_explanation">
      <h2><%= pluralize(@source.errors.count, "error") %> <%=  t("source.destroyed.errSave") %></h2>

      <ul>
      <% @source.errors.full_messages.each do |msg| %>
        <li><%= msg %></li>
      <% end %>
      </ul>
    </div>
  <% end %>

  <div class="control-group">
    <%= f.label :uri, class: "control-label span4" %>
    <div class="controls span6">
        <%= f.text_field :uri, class: "span12" %>
    </div>
  </div>
  <div class="control-group">
    <%= f.label :label, class: "control-label span4" %>
    <div class="controls span6">
        <%= f.text_field :label, class: "span12" %>
    </div>
  </div>


    <div class="control-group">
      <label for="ajax-combo" class="control-label span4"><%=  t("source.lang") %>:</label>
      <div class="controls span6">
        <div id="ajax-container-lang"></div>
      </div>
    </div>

    <div class="control-group">
      <label for="ajax-combo" class="control-label span4"><%=  t("source.theme") %>:</label>
      <div class="controls span6">
        <div id="ajax-container-theme"></div>
      </div>
    </div>
    <div class="control-group">
    	<div class="controls span2 offset4">
        <%= f.submit t("source.new.add"), :class => 'btn btn-success span12' %>
      </div>
   	 
   	</div>
<% end %>
</div>
<script>
    $.sexyCombo.create({
        name: "theme",
        id: "source_theme",
        container: "#ajax-container-theme",
        url: "/sources/themes.json?selected=<%=@source.theme%>",
        suffix: ""
    });
    $.sexyCombo.create({
        name: "lang",
        id: "ajax-container-lang",
        container: "#ajax-container-lang",
        url: "/sources/langs.json?selected=<%=@source.lang%>",
        suffix: ""

    });
</script><commit_msg>Changed the layout of the new source<commit_after><div class="row-fluid">
<%= form_for(@source, :html => { :class => "form-horizontal"} ) do |f| %>
  <% if @source.errors.any? %>
    <div id="error_explanation">
      <h2><%= pluralize(@source.errors.count, "error") %> <%=  t("source.destroyed.errSave") %></h2>

      <ul>
      <% @source.errors.full_messages.each do |msg| %>
        <li><%= msg %></li>
      <% end %>
      </ul>
    </div>
  <% end %>

  <div class="control-group">
    <%= f.label :uri, class: "control-label span2" %>
    <div class="controls span6">
        <%= f.text_field :uri, class: "span12" %>
    </div>
  </div>
  <div class="control-group">
    <%= f.label :label, class: "control-label span2" %>
    <div class="controls span6">
        <%= f.text_field :label, class: "span12" %>
    </div>
  </div>


    <div class="control-group">
      <label for="ajax-combo" class="control-label span2"><%=  t("source.lang") %>:</label>
      <div class="controls span6">
        <div id="ajax-container-lang"></div>
      </div>
    </div>

    <div class="control-group">
      <label for="ajax-combo" class="control-label span2"><%=  t("source.theme") %>:</label>
      <div class="controls span6">
        <div id="ajax-container-theme"></div>
      </div>
    </div>
    <div class="control-group">
    	<div class="controls span2 offset2">
        <%= f.submit t("source.new.add"), :class => 'btn btn-success span12' %>
      </div>
   	 
   	</div>
<% end %>
</div>
<script>
    $.sexyCombo.create({
        name: "theme",
        id: "source_theme",
        container: "#ajax-container-theme",
        url: "/sources/themes.json?selected=<%=@source.theme%>",
        suffix: ""
    });
    $.sexyCombo.create({
        name: "lang",
        id: "ajax-container-lang",
        container: "#ajax-container-lang",
        url: "/sources/langs.json?selected=<%=@source.lang%>",
        suffix: ""

    });
</script>
{'fraction_non_alphanumeric': 0.21969501163091237, 'fraction_numerical': 0.009304729904368054, 'mean_word_length': 2.5734072022160666, 'pattern_counts': {'":': 0, '<': 119, '<?xml version=': 0, '>': 125, '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': '4220158', 'n_tokens_mistral': 1412, 'n_tokens_neox': 1323, 'n_words': 261}