<commit_before><div class="row">
  <div class="large-7 large-centered columns">
    <div class="panel radius">
      <%= image_tag(@image.file.url, alt: '', class: 'radius') %>
    </div>
  </div>
</div>

<%= simple_form_for [:backend, @image] do |f| %>
  <fieldset class="radius">
    <%= f.input :file, as: :file %>
    <%= f.input :url, as: :string %>
    <%= f.input :caption, as: :text %>
  </fieldset>

  <%= render 'backend/form_actions', cancel_url: '#' %>
<% end %><commit_msg>Only show preview image if present.<commit_after><% if @image.file.present? %>
  <div class="row">
    <div class="large-7 large-centered columns">
      <div class="panel radius">
        <%= image_tag(@image.file.url, alt: '', class: 'radius') %>
      </div>
    </div>
  </div>
<% end %>

<%= simple_form_for [:backend, @image] do |f| %>
  <fieldset class="radius">
    <%= f.input :file, as: :file %>
    <%= f.input :url, as: :string %>
    <%= f.input :caption, as: :text %>
  </fieldset>

  <%= render 'backend/form_actions', cancel_url: '#' %>
<% end %>
{'fraction_non_alphanumeric': 0.2299618320610687, 'fraction_numerical': 0.0019083969465648854, 'mean_word_length': 3.370833333333333, 'pattern_counts': {'":': 0, '<': 35, '<?xml version=': 0, '>': 35, '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': '366452', 'n_tokens_mistral': 412, 'n_tokens_neox': 377, 'n_words': 89}