<commit_before># encoding: utf-8
module ApplicationHelper
  # Return the header logo
  def logo
    image_tag "jumuball.png", :id => "header-logo", :alt => "Logo von Jugend musiziert",
        :height => 120, :class => "left"
  end

  # Return an icon image path
  def icon_tag(name)
    content_tag(:i, class: "icon-#{name}") { nil }
  end

  # Convert flash class for use with Twitter Bootstrap
  def flash_class(level)
    case level
    when :alert then "alert"
    when :success then "alert alert-success"
    when :notice then "alert alert-info"
    when :error then "alert alert-error"
    end
  end<commit_msg>Updated icon helper to support options<commit_after># encoding: utf-8
module ApplicationHelper
  # Return the header logo
  def logo
    image_tag "jumuball.png", :id => "header-logo", :alt => "Logo von Jugend musiziert",
        :height => 120, :class => "left"
  end

  # Return an icon image path
  def icon_tag(name, options = {})
    options[:class] ||= "icon-#{name}"
    content_tag(:i, options) { nil }
  end

  # Convert flash class for use with Twitter Bootstrap
  def flash_class(level)
    case level
    when :alert then "alert"
    when :success then "alert alert-success"
    when :notice then "alert alert-info"
    when :error then "alert alert-error"
    end
  end
{'fraction_non_alphanumeric': 0.11, 'fraction_numerical': 0.006153846153846154, 'mean_word_length': 3.265573770491803, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 11, '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': '5810387', 'n_tokens_mistral': 415, 'n_tokens_neox': 408, 'n_words': 146}