<commit_before>class Symbol
  class << self
    attr :uicolors
    attr :css_colors
  end

  def uicolor(alpha=nil)
    if Symbol.uicolors.has_key? self
      # iOS colors
      color = UIColor.send(sugarcube_look_in(Symbol.uicolors))

      if not alpha.nil?
        color = color.colorWithAlphaComponent(alpha.to_f)
      end
    else
      # css colors
      color = sugarcube_look_in(Symbol.css_colors).uicolor(alpha)
    end

    color
  end

  @uicolors = {<commit_msg>store CSS colors<commit_after>class Symbol
  class << self
    attr :uicolors
    attr :css_colors
  end

  def uicolor(alpha=nil)
    if Symbol.uicolors.has_key? self
      # iOS colors
      color = UIColor.send(sugarcube_look_in(Symbol.uicolors))

      if not alpha.nil?
        color = color.colorWithAlphaComponent(alpha.to_f)
      end
    else
      # css colors
      color = sugarcube_look_in(Symbol.css_colors).uicolor
      Symbol.css_colors[self] = color
      if alpha.nil?
        color
      else
        color.uicolor(alpha)
      end
    end

    color
  end

  @uicolors = {
{'fraction_non_alphanumeric': 0.07958801498127341, 'fraction_numerical': 0.0, 'mean_word_length': 2.3722397476340693, 'pattern_counts': {'":': 0, '<': 7, '<?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': '5201762', 'n_tokens_mistral': 372, 'n_tokens_neox': 360, 'n_words': 76}