<commit_before><div class="row">
  <div class="col-xs-6">
    <h4><%= t('marketplace.ssh_list_title') %></h4>
    <div class="form-group">
      <select class="form-control" id="sshkeyoption">
        <option value="<%= Api::Sshkeys::NEW %>" selected="selected"><%= t('marketplace.ssh_list_create') %></option>
        <option value="<%= Api::Sshkeys::USEOLD %>"><%= t('marketplace.ssh_list_exist') %> </option>
        <option value="<%= Api::Sshkeys::IMPORT %>"><%= t('marketplace.ssh_list_import') %></option>
      </select>
    </div>
  </div>
  <div class="col-xs-6" >
    <div id="<%= Api::Sshkeys::USEOLD %>" style="display:none;">
      <h4><%= t('marketplace.ssh_exist_title') %></h4>
      <div class="form-group">
        <% if @ssh_keys != nil && @ssh_keys.length > 0 %>
          <%= select_tag "#{Api::Sshkeys::USEOLD}_name", options_for_select(@ssh_keys.map{ |c| c[:name] }, :selected=>@ssh_keys[0]), :class =>"form-control" %>
        <% else %>
          <span><%= t('marketplace.ssh_exist_content') %></span>
        <% end %>
      </div>
    </div>
    <div id="<%= Api::Sshkeys::NEW %>">
      <h4><%= t('marketplace.ssh_key_name_title') %></h4>
      <div class="form-group">
        <%= text_field_tag "#{Api::Sshkeys::NEW}_name", nil, placeholder: t('marketplace.ssh_key_name_placeholder') , :required => true, :class =>"form-control" %>
      </div>
    </div>
  </div>
</div>
<div id="<%= Api::Sshkeys::IMPORT %>" style="display:none; margin-top:10px;">
  <div class="row">
    <div class="col-xs-6">
      <div class="form-group">
        <span class="btn btn-success fileinput-button  col-md-12  col-xs-7"> <i class="icon-plus filetag"></i> <span class="filetag"><%= t('marketplace.ssh_import_privatekey') %></span> <%= file_field_tag :ssh_private_key, :required => true %> </span>
      </div>
    </div>
    <div class="col-xs-6">
      <div class="form-group">
        <span class="btn  blue fileinput-button  col-md-12  col-xs-7"> <i class="icon-plus filetag"></i> <span class="filetag"><%= t('marketplace.ssh_import_publickey') %></span> <%= file_field_tag :ssh_public_key, :required => true %> </span>
      </div>
    </div>
  </div>
</div>
<script type="text/javascript">
    $(document).ready(function() {
      $(".sshoption").val("<%= Api::Sshkeys::NEW %>")
      $('#sshkeyoption').on('change', function() {
        if (this.value == "<%= Api::Sshkeys::NEW %>") {
          $("#<%= Api::Sshkeys::NEW %>").show();
          $("#<%= Api::Sshkeys::USEOLD %>").hide();
          $("#<%= Api::Sshkeys::IMPORT %>").hide();
          $(".sshoption").val("<%= Api::Sshkeys::NEW %>");
        }
        if (this.value == "<%= Api::Sshkeys::USEOLD %>") {<commit_msg>disable useold when no sshkey<commit_after><div class="row">
  <div class="col-xs-6">
    <h4><%= t('marketplace.ssh_list_title') %></h4>
    <div class="form-group">
      <select class="form-control" id="sshkeyoption">
        <option value="<%= Api::Sshkeys::NEW %>" selected="selected"><%= t('marketplace.ssh_list_create') %></option>
<% if @ssh_keys != nil && @ssh_keys.length > 0 %>
        <option value="<%= Api::Sshkeys::USEOLD %>"><%= t('marketplace.ssh_list_exist') %> </option>
<% else %>
	<option disabled="disabled" value="<%= Api::Sshkeys::USEOLD %>"><%= t('marketplace.ssh_list_exist') %> </option>
<% end %>
        <option value="<%= Api::Sshkeys::IMPORT %>"><%= t('marketplace.ssh_list_import') %></option>
      </select>
    </div>
  </div>
  <div class="col-xs-6" >
    <div id="<%= Api::Sshkeys::USEOLD %>" style="display:none;">
      <h4><%= t('marketplace.ssh_exist_title') %></h4>
      <div class="form-group">
        <% if @ssh_keys != nil && @ssh_keys.length > 0 %>
          <%= select_tag "#{Api::Sshkeys::USEOLD}_name", options_for_select(@ssh_keys.map{ |c| c[:name] }, :selected=>@ssh_keys[0]), :class =>"form-control" %>
        <% else %>
          <span><%= t('marketplace.ssh_exist_content') %></span>
        <% end %>
      </div>
    </div>
    <div id="<%= Api::Sshkeys::NEW %>">
      <h4><%= t('marketplace.ssh_key_name_title') %></h4>
      <div class="form-group">
        <%= text_field_tag "#{Api::Sshkeys::NEW}_name", nil, placeholder: t('marketplace.ssh_key_name_placeholder') , :required => true, :class =>"form-control" %>
      </div>
    </div>
  </div>
</div>
<div id="<%= Api::Sshkeys::IMPORT %>" style="display:none; margin-top:10px;">
  <div class="row">
    <div class="col-xs-6">
      <div class="form-group">
        <span class="btn btn-success fileinput-button  col-md-12  col-xs-7"> <i class="icon-plus filetag"></i> <span class="filetag"><%= t('marketplace.ssh_import_privatekey') %></span> <%= file_field_tag :ssh_private_key, :required => true %> </span>
      </div>
    </div>
    <div class="col-xs-6">
      <div class="form-group">
        <span class="btn  blue fileinput-button  col-md-12  col-xs-7"> <i class="icon-plus filetag"></i> <span class="filetag"><%= t('marketplace.ssh_import_publickey') %></span> <%= file_field_tag :ssh_public_key, :required => true %> </span>
      </div>
    </div>
  </div>
</div>
<script type="text/javascript">
    $(document).ready(function() {
     $(".sshoption").val("<%= Api::Sshkeys::NEW %>")
      $('#sshkeyoption').on('change', function() {
        if (this.value == "<%= Api::Sshkeys::NEW %>") {
          $("#<%= Api::Sshkeys::NEW %>").show();
          $("#<%= Api::Sshkeys::USEOLD %>").hide();
          $("#<%= Api::Sshkeys::IMPORT %>").hide();
          $(".sshoption").val("<%= Api::Sshkeys::NEW %>");
        }
        if (this.value == "<%= Api::Sshkeys::USEOLD %>") {
{'fraction_non_alphanumeric': 0.2516982481229889, 'fraction_numerical': 0.007329281372899535, 'mean_word_length': 3.5935960591133007, 'pattern_counts': {'":': 0, '<': 182, '<?xml version=': 0, '>': 197, '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': '4613999', 'n_tokens_mistral': 2127, 'n_tokens_neox': 2008, 'n_words': 339}