<commit_before><table>
  <tr>
    <th>Settings</th>
    <th></th>
    <th></th>
  </tr>

  <tr>
    <td>
      <% if @google_account.nil?  %>
        <%= link_to t('settings.google_drive_add_label'), new_google_account_path %> 
      <% else %>
        <%= link_to t('settings.google_drive_open_folder'), @google_account.drive_folder_link , :target => "_blank" %>
      <% end %>
    </td>
    <td>
      <% if !@google_account.nil? %>
      &#124;
      <%= link_to t('settings.google_drive_remove_label'), @google_account, :confirm => t('settings.google_drive_remove_confirm'), :method => :delete %>
      <% end %>
    </td>
    <td></td>
  </tr>

  <tr>
    <td>
      <% if @drop_box_account.nil?  %>
        <%= link_to t('settings.dropbox_add_label'), new_drop_box_accounts_path %>
      <% else %>
        <%= link_to t('settings.drop_box_open_folder'), @drop_box_account.folder_link , :target => "_blank" %> 
      <% end %>
    </td>
    <td>
      <% if !@drop_box_account.nil? %>
      &#124;
      <%= link_to t('settings.drop_box_remove_label'), @drop_box_account, :confirm => t('settings.drop_box_remove_confirm'), :method => :delete %>
      <% end %>
    </td>
    <td></td>
  </tr>

  <tr>
    <td>
    </td>
    <td>
      <% if !@drop_box_account.nil? and !@google_account.nil?  %>
        <%= form_for @setting, remote: true, html: {  :'data-type' => 'html', id: 'setting_form' }  do |f| %>
          <%= label_tag(:upload_to, t('setting.upload_to_label')) %>
          <%= f.select(:upload_to, [ t('google_accounts.google_drive'), t('drop_box_accounts.drop_box') ])  %>
        <% end %>
      <% elsif  @drop_box_account.nil? and !@google_account.nil?  %>  
        <%= form_for @setting, remote: true, html: {  :'data-type' => 'html', id: 'setting_form' }  do |f| %>
          <%= label_tag(:upload_to, t('setting.upload_to_label')) %>
          <%= f.select(:upload_to, [ t('google_accounts.google_drive') ], {}, {:class => 'disabled', :disabled=>'disabled'})  %>
        <% end %>   
      <% elsif  !@drop_box_account.nil? and @google_account.nil?  %>  
        <%= form_for @setting, remote: true, html: {  :'data-type' => 'html', id: 'setting_form', class: 'disabled' }  do |f| %>
          <%= label_tag(:upload_to, t('setting.upload_to_label')) %>
          <%= f.select(:upload_to, [ t('drop_box_accounts.drop_box') ], {}, {:class => 'disabled', :disabled=>'disabled'})  %>
        <% end %>
      <% else %>
      "Pick a Storage Service" 
      <% end %>
    </td>
    <td></td>
  </tr>

</table>

<br />

<commit_msg>Found bug with reusing previous /App/TeacherMaps folder for Google Drive. Fixed, think I made the query more optimal.<commit_after><table>
  <tr>
    <th>Settings</th>
    <th></th>
    <th></th>
  </tr>

  <tr>
    <td>
      <% if @google_account.nil?  %>
        <%= link_to t('settings.google_drive_add_label'), new_google_account_path %> 
      <% else %>
        <%= link_to t('settings.google_drive_open_folder'), @google_account.drive_folder_link , :target => "_blank" %>
      <% end %>
    </td>
    <td>
      <% if !@google_account.nil? %>
      &#124;
      <%= link_to t('settings.google_drive_remove_label'), @google_account, :confirm => t('settings.google_drive_remove_confirm'), :method => :delete %>
      <% end %>
    </td>
    <td></td>
  </tr>

  <tr>
    <td>
      <% if @drop_box_account.nil?  %>
        <%= link_to t('settings.dropbox_add_label'), new_drop_box_accounts_path %>
      <% else %>
        <%= link_to t('settings.drop_box_open_folder'), @drop_box_account.folder_link , :target => "_blank" %> 
      <% end %>
    </td>
    <td>
      <% if !@drop_box_account.nil? %>
      &#124;
      <%= link_to t('settings.drop_box_remove_label'), @drop_box_account, :confirm => t('settings.drop_box_remove_confirm'), :method => :delete %>
      <% end %>
    </td>
    <td></td>
  </tr>

  <tr>
    <td>
      <% if !@drop_box_account.nil? and !@google_account.nil?  %>
        <%= form_for @setting, remote: true, html: {  :'data-type' => 'html', id: 'setting_form' }  do |f| %>
          <%= label_tag(:upload_to, t('settings.upload_to_label')) %>
          <%= f.select(:upload_to, [ t('google_accounts.google_drive'), t('drop_box_accounts.drop_box') ])  %>
        <% end %>
      <% elsif  @drop_box_account.nil? and !@google_account.nil?  %>  
        <%= form_for @setting, remote: true, html: {  :'data-type' => 'html', id: 'setting_form' }  do |f| %>
          <%= label_tag(:upload_to, t('settings.upload_to_label')) %>
          <%= f.select(:upload_to, [ t('google_accounts.google_drive') ], {}, {:class => 'disabled', :disabled=>'disabled'})  %>
        <% end %>   
      <% elsif  !@drop_box_account.nil? and @google_account.nil?  %>  
        <%= form_for @setting, remote: true, html: {  :'data-type' => 'html', id: 'setting_form', class: 'disabled' }  do |f| %>
          <%= label_tag(:upload_to, t('settings.upload_to_label')) %>
          <%= f.select(:upload_to, [ t('drop_box_accounts.drop_box') ], {}, {:class => 'disabled', :disabled=>'disabled'})  %>
        <% end %>
      <% else %>
      "Pick a Storage Service" 
      <% end %>
    </td>
    <td></td>
    <td>
    </td>
  </tr>

</table>

<br />


{'fraction_non_alphanumeric': 0.20591057378622146, 'fraction_numerical': 0.002302820955670697, 'mean_word_length': 2.7988338192419824, 'pattern_counts': {'":': 0, '<': 139, '<?xml version=': 0, '>': 165, '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': '6323638', 'n_tokens_mistral': 2031, 'n_tokens_neox': 1883, 'n_words': 317}