<commit_before>class TokyoMetro::Factory::Seed::Static::Operator::Info < TokyoMetro::Factory::Seed::Static::MetaClass::Info

  include ::TokyoMetro::ClassNameLibrary::Static::Operator
  include ::TokyoMetro::Factory::Seed::Common::Polymorphic::TwitterAccount

  def initialize( info )
    super( info , to_get_id: true )
  end

  private

  def hash_to_db
    h = { name_ja: @info.name_ja_inspect , name_en: @info.name_en_inspect , color: @info.hex_color }

    [
      :same_as ,
      :name_ja_short ,
      # :name_hira ,
      :name_en_short ,
      :index
    ].each do | key_name |
      h[ key_name ] = @info.send( key_name )
    end

    h
  end

  def seed_optional_infos
    seed_twitter_account
    seed_code
  end

  private
<commit_msg>20150725_054719 Bug fix - TokyoMetro::Factory::Seed::Static::Operator::Info<commit_after>class TokyoMetro::Factory::Seed::Static::Operator::Info < TokyoMetro::Factory::Seed::Static::MetaClass::Info

  include ::TokyoMetro::ClassNameLibrary::Static::Operator
  include ::TokyoMetro::Factory::Seed::Common::Polymorphic::TwitterAccount

  def initialize( info )
    super( info , to_get_id: true )
  end

  private

  def hash_to_db
    h = { name_ja: @info.name_ja_inspect , name_en: @info.name_en_inspect }

    [
      :same_as ,
      :name_ja_short ,
      # :name_hira ,
      :name_en_short ,
      :index
    ].each do | key_name |
      h[ key_name ] = @info.send( key_name )
    end

    h
  end

  def seed_optional_infos
    seed_twitter_account
    seed_code
  end

  private

{'fraction_non_alphanumeric': 0.11661237785016286, 'fraction_numerical': 0.009120521172638436, 'mean_word_length': 3.5714285714285716, 'pattern_counts': {'":': 0, '<': 5, '<?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': '4148369', 'n_tokens_mistral': 561, 'n_tokens_neox': 532, 'n_words': 93}