<commit_before><% title 'New job' %>

<%= form_tag api_jobs_path, class: 'form-horizontal' do %>
	
	<%#= error_messages_for @job %>
	
	<fieldset>
    <legend>Create a new job</legend>

    <div class="control-group">
      <%= label_tag :input, nil, class: 'control-label' %>
      <div class="controls">
        <%= text_field_tag :input, @job.try(:source_file), class: 'input-xlarge' %>
      </div>
    </div>

    <div class="control-group">
      <%= label_tag :output, nil, class: 'control-label' %>
      <div class="controls">
        <%= text_field_tag :output, @job.try(:destination_file), class: 'input-xlarge' %>
      </div>
    </div>

    <div class="control-group">
      <%= label_tag :preset, nil, class: 'control-label' %>
      <div class="controls">
        <%= select_tag :preset, options_for_select(Preset.all.map { |p| [p.name] }, @job.try(:preset).try(:name)), class: 'input-xlarge' %>
      </div>
    </div>

    <div class="control-group">
      <%= label_tag :notify, nil, class: 'control-label' %>
      <div class="controls">
        <%= text_area_tag :notify, nil, rows: 3, class: 'input-xlarge' %>
      </div>
    </div>

  </fieldset>
  
  <div class="form-actions"> 
    <%= submit_tag 'Create Job', class: 'btn btn-primary' %> or 
    <%= link_to 'Cancel', jobs_path %>
  </div>
  

<% end %><commit_msg>Added priority to job form<commit_after><% title 'New job' %>

<%= form_tag api_jobs_path, class: 'form-horizontal' do %>
	
	<%#= error_messages_for @job %>
	
	<fieldset>
    <legend>Create a new job</legend>

    <div class="control-group">
      <%= label_tag :input, nil, class: 'control-label' %>
      <div class="controls">
        <%= text_field_tag :input, @job.try(:source_file), class: 'input-xlarge' %>
      </div>
    </div>

    <div class="control-group">
      <%= label_tag :output, nil, class: 'control-label' %>
      <div class="controls">
        <%= text_field_tag :output, @job.try(:destination_file), class: 'input-xlarge' %>
      </div>
    </div>

    <div class="control-group">
      <%= label_tag :preset, nil, class: 'control-label' %>
      <div class="controls">
        <%= select_tag :preset, options_for_select(Preset.all.map { |p| [p.name] }, @job.try(:preset).try(:name)), class: 'input-xlarge' %>
      </div>
    </div>

    <div class="control-group">
      <%= label_tag :priority, nil, class: 'control-label' %>
      <div class="controls">
        <%= text_field_tag :priority, @job.try(:priority), class: 'input-xlarge' %>
      </div>
    </div>

    <div class="control-group">
      <%= label_tag :notify, nil, class: 'control-label' %>
      <div class="controls">
        <%= text_area_tag :notify, nil, rows: 3, class: 'input-xlarge' %>
      </div>
    </div>

  </fieldset>
  
  <div class="form-actions"> 
    <%= submit_tag 'Create Job', class: 'btn btn-primary' %> or 
    <%= link_to 'Cancel', jobs_path %>
  </div>
  

<% end %>
{'fraction_non_alphanumeric': 0.19747181414417492, 'fraction_numerical': 0.0006832934745473181, 'mean_word_length': 2.967479674796748, 'pattern_counts': {'":': 0, '<': 81, '<?xml version=': 0, '>': 81, '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': '5870888', 'n_tokens_mistral': 1103, 'n_tokens_neox': 1014, 'n_words': 220}