<commit_before>module ActiveAdmin::ViewHelpers::DropzoneHelper

  def render_mock_dropzone_files(dropzone_objects)
    dropzone_objects.map do |dropzone_object|
      {
        id: dropzone_object.id,
        name: dropzone_object.send(dropzone_object.class.dropzone_field(:title)).squish,
        size: dropzone_object.send(dropzone_object.class.dropzone_field(:file_size)),
        url: dropzone_object.send(dropzone_object.class.dropzone_field(:url))
      }
    end.map do |hash|
      hash.map{ |(k, v)| "#{ k }: '#{ v }'" }.join(',')
    end.map do |string|
      "{#{ string }}"
    end.join(', ').html_safe
  end

end<commit_msg>Update dropzone_helper.rb<commit_after>module ActiveAdmin::ViewHelpers::DropzoneHelper

  def render_mock_dropzone_files(dropzone_objects)
    dropzone_objects.map do |dropzone_object|
      {
        id: dropzone_object.id,
        name: dropzone_object.send(dropzone_object.class.dropzone_field(:title)).squish,
        size: dropzone_object.send(dropzone_object.class.dropzone_field(:file_size)),
        url: dropzone_object.send(dropzone_object.class.dropzone_field(:url))
      }
    end.to_json.html_safe
  end

end
{'fraction_non_alphanumeric': 0.12251941328731665, 'fraction_numerical': 0.0, 'mean_word_length': 4.065502183406114, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '1458810', 'n_tokens_mistral': 393, 'n_tokens_neox': 392, 'n_words': 50}