<commit_before>class TokyoMetro::Factory::Seed::Static::TrainType::Custom::Main::Hash < TokyoMetro::Factory::Seed::Static::Operator::Hash

  include ::TokyoMetro::ClassNameLibrary::Static::TrainType::Custom::Main

  def seed_instance_for_escaping_undefined
    train_type_in_api = ::Train::Type::InApi.find_by( same_as: "odpt.TrainType:TokyoMetro.Unknown" )

    h = {
      same_as: "custom.TrainType:Undefined" ,
      note: "未定義" ,
      in_api_id: train_type_in_api.id ,
      railway_line_info_id: ::Railway::Line.find_by( same_as: "odpt.Railway:Undefined" ).id ,
      color: self.class.db_instance_class_of_color_info.find_or_create_by( color: "\#ffffff" , bgcolor: "\#666666" )
    }
    self.class.db_instance_class.find_or_create_by(h)
  end

end<commit_msg>20150728_082548 Bug fix - TokyoMetro::Factory::Seed::Static::TrainType::Custom::Main::Hash<commit_after>class TokyoMetro::Factory::Seed::Static::TrainType::Custom::Main::Hash < TokyoMetro::Factory::Seed::Static::Operator::Hash

  include ::TokyoMetro::ClassNameLibrary::Static::TrainType::Custom::Main

  def seed_instance_for_escaping_undefined
    train_type_in_api = ::Train::Type::InApi.find_by( same_as: "odpt.TrainType:TokyoMetro.Unknown" )

    h = {
      same_as: "custom.TrainType:Undefined" ,
      note: "未定義" ,
      in_api_id: train_type_in_api.id ,
      railway_line_info_id: ::Railway::Line::Info.find_by( same_as: "odpt.Railway:Undefined" ).id ,
      color: self.class.db_instance_class_of_color_info.find_or_create_by( color: "\#ffffff" , bgcolor: "\#666666" )
    }
    self.class.db_instance_class.find_or_create_by(h)
  end

end
{'fraction_non_alphanumeric': 0.14515132798023472, 'fraction_numerical': 0.01605929586164299, 'mean_word_length': 5.864406779661017, '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': '5044355', 'n_tokens_mistral': 628, 'n_tokens_neox': 590, 'n_words': 66}