<commit_before>module Rubimas
  # Precure girl (ex. Cure Peace, Cure Rosetta, Cure Honey)
  #
  # this is record of "config/girls.yml"
  class Idol
    attr_reader :idol_id, :name, :name_kana, :age, :height, :weight, :bust, :waist, :hip,
                :birthday, :blood_type, :handedness, :hobby, :talent, :favorite
    @@cache = {}
    @@config = nil
    @@sleep_sec = 1

    def initialize(idol_id: nil, name: nil, name_kana: nil, age: nil, height: nil, weight: nil,
                   bust: nil, waist: nil, hip: nil, birthday: nil, blood_type: nil, handedness: nil,
                   hobby: [], talent: [], favorite: nil)
      @idol_id          = idol_id
      @name             = name
      @name_kana        = name_kana
      @age              = age
      @height           = height
      @weight           = weight
      @bust             = bust
      @waist            = waist
      @hip              = hip
      @birthday         = birthday
      @blood_type       = blood_type
      @handedness       = handedness
      @hobby            = hobby
      @talent           = talent
      @favorite         = favorite
    end

    # @return [Hash] content of config/girls.yml
    def self.config
      unless @@config
        config_file = "#{File.dirname(__FILE__)}/../../config/idols.yml"
        @@config = YAML.load_file(config_file).deep_symbolize_keys
      end
      @@config
    end

    # @return [Array<Symbol>]
    def self.names
      config.keys
    end

    # @param idol_name [Symbol]
    # @return [Rubimas::Idol]
    def self.find(idol_name)
      raise "unknown girl: #{idol_name}" unless valid?(idol_name)

      unless @@cache[idol_name]
        idol_config = config[idol_name] || {}
        @@cache[idol_name] = Rubimas::Idol.new(idol_config)
      end

      @@cache[idol_name]
    end<commit_msg>fix color attribute<commit_after>module Rubimas
  # Precure girl (ex. Cure Peace, Cure Rosetta, Cure Honey)
  #
  # this is record of "config/girls.yml"
  class Idol
    attr_reader :idol_id, :name, :name_kana, :age, :height, :weight, :bust, :waist, :hip,
                :birthday, :blood_type, :handedness, :hobby, :talent, :favorite, :color
    @@cache = {}
    @@config = nil
    @@sleep_sec = 1

    def initialize(idol_id: nil, name: nil, name_kana: nil, age: nil, height: nil, weight: nil,
                   bust: nil, waist: nil, hip: nil, birthday: nil, blood_type: nil, handedness: nil,
                   hobby: [], talent: [], favorite: nil, color: nil)
      @idol_id          = idol_id
      @name             = name
      @name_kana        = name_kana
      @age              = age
      @height           = height
      @weight           = weight
      @bust             = bust
      @waist            = waist
      @hip              = hip
      @birthday         = birthday
      @blood_type       = blood_type
      @handedness       = handedness
      @hobby            = hobby
      @talent           = talent
      @favorite         = favorite
      @color            = color
    end

    # @return [Hash] content of config/girls.yml
    def self.config
      unless @@config
        config_file = "#{File.dirname(__FILE__)}/../../config/idols.yml"
        @@config = YAML.load_file(config_file).deep_symbolize_keys
      end
      @@config
    end

    # @return [Array<Symbol>]
    def self.names
      config.keys
    end

    # @param idol_name [Symbol]
    # @return [Rubimas::Idol]
    def self.find(idol_name)
      raise "unknown girl: #{idol_name}" unless valid?(idol_name)

      unless @@cache[idol_name]
        idol_config = config[idol_name] || {}
        @@cache[idol_name] = Rubimas::Idol.new(idol_config)
      end

      @@cache[idol_name]
    end
{'fraction_non_alphanumeric': 0.11517761033369214, 'fraction_numerical': 0.0005382131324004305, 'mean_word_length': 1.8201820940819424, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '3699187', 'n_tokens_mistral': 1249, 'n_tokens_neox': 1180, 'n_words': 292}