<commit_before><%= form_for [:admin, object], html: {multipart: true, class: 'upload-button'} do |f| %>
  <%= f.file_field file_attribute,
    class: 'fileupload fileupload--field', multiple: true,
    name: "#{f.object_name}[#{file_attribute}]" %>
  <%= hidden_field_tag "#{f.object_name}[upload_hash]", Time.current.hash %>
  <%= f.label file_attribute, data: {alchemy_hotkey: 'alt+n'} do %>
    <div class="button_with_label">
      <span class="icon_button"><%= render_icon :upload %></span>
      <label>
        <%= local_assigns[:label] ||
          Alchemy.t(:button_label, scope: [:uploader, object.class.model_name.i18n_key]) %>
      </label>
    </div>
  <% end %><commit_msg>Only pass :upload_hash hidden field if model responds to it<commit_after><%= form_for [:admin, object], html: {multipart: true, class: 'upload-button'} do |f| %>
  <%= f.file_field file_attribute,
    class: 'fileupload fileupload--field', multiple: true,
    name: "#{f.object_name}[#{file_attribute}]" %>
  <%= hidden_field_tag("#{f.object_name}[upload_hash]", Time.current.hash) if object.respond_to?(:upload_hash) %>
  <%= f.label file_attribute, data: {alchemy_hotkey: 'alt+n'} do %>
    <div class="button_with_label">
      <span class="icon_button"><%= render_icon :upload %></span>
      <label>
        <%= local_assigns[:label] ||
          Alchemy.t(:button_label, scope: [:uploader, object.class.model_name.i18n_key]) %>
      </label>
    </div>
  <% end %>
{'fraction_non_alphanumeric': 0.19054146675805347, 'fraction_numerical': 0.0027416038382453737, 'mean_word_length': 4.2898550724637685, 'pattern_counts': {'":': 0, '<': 29, '<?xml version=': 0, '>': 29, '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': '6607102', 'n_tokens_mistral': 532, 'n_tokens_neox': 501, 'n_words': 100}