<commit_before>module TransamTagHelper

  def loader_panel_tag(options={})
    "<div class='ajax-loader text-center'><i class='fa fa-spinner fa-spin fa-4x'></i><span class='ajax-loader-message'> Working...</span></div>".html_safe
  end

  def image_thumbnail_tag(options={}, &block)

    # Check to see if there is any content in the block
    content = capture(&block)
    if content.nil?
      content = "<p>&nbsp;</p>"
    end

    html = "<div class='"
    html << options[:class] unless options[:class].blank?
    html << "'>"
    html << "<div class='thumbnail action-thumbnail' data-action-path='"
    html << options[:path]
    html << "'>"

    html << content

    html << "</div>"
    html << "</div>"

    html.html_safe
  end<commit_msg>Add optional message to the loader panel tag<commit_after>module TransamTagHelper

  def loader_panel_tag(options={})

    msg = (options[:message] ||= "Loading...")
    "<div class='ajax-loader text-center'><i class='fa fa-spinner fa-spin fa-4x'></i><span class='ajax-loader-message'> #{msg}</span></div>".html_safe
  end

  def image_thumbnail_tag(options={}, &block)

    # Check to see if there is any content in the block
    content = capture(&block)
    if content.nil?
      content = "<p>&nbsp;</p>"
    end

    html = "<div class='"
    html << options[:class] unless options[:class].blank?
    html << "'>"
    html << "<div class='thumbnail action-thumbnail' data-action-path='"
    html << options[:path]
    html << "'>"

    html << content

    html << "</div>"
    html << "</div>"

    html.html_safe
  end
{'fraction_non_alphanumeric': 0.1765079365079365, 'fraction_numerical': 0.0012698412698412698, 'mean_word_length': 3.2594594594594595, 'pattern_counts': {'":': 0, '<': 59, '<?xml version=': 0, '>': 27, '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': '3289635', 'n_tokens_mistral': 503, 'n_tokens_neox': 498, 'n_words': 127}