<commit_before># This file should contain all the record creation needed to seed the database with its default values.
# The data can then be loaded with the rake db:seed (or created alongside the db with db:setup).
#
# Examples:
#
#   cities = City.create([{ :name => 'Chicago' }, { :name => 'Copenhagen' }])
#   Mayor.create(:name => 'Daley', :city => cities.first)

users = User.create([
                      {:login => 'admin',
                       :email => '<EMAIL>',
                       :password => "password",
                       :password_confirmation => "password"}
                  ])

geos = Geo.create([
                    { :name => '北京',:latitude => '39.9046670',:longitude => '116.4081980',:zoom_level => 9 },
                    { :name => '天津',:latitude => '39.1208760',:longitude => '117.2150300',:zoom_level => 9 }
                    ])

actions = Action.create([
                    { :name => '公益旅行',:for_time => true},
                    { :name => '捐款',:for_amount => true },
                    { :name => '捐物',:for_goods => true },
                    ])<commit_msg>change behavior of seed file<commit_after># This file should contain all the record creation needed to seed the database with its default values.
# The data can then be loaded with the rake db:seed (or created alongside the db with db:setup).
#
# Examples:
#
#   cities = City.create([{ :name => 'Chicago' }, { :name => 'Copenhagen' }])
#   Mayor.create(:name => 'Daley', :city => cities.first)

User.new(:login => 'admin',
         :email => '<EMAIL>',
         :password => "password",
         :password_confirmation => "password"
        ).save


Geo.new(:name => '北京',:latitude => '39.9046670',:longitude => '116.4081980',:zoom_level => 9).save
Geo.new(:name => '天津',:latitude => '39.1208760',:longitude => '117.2150300',:zoom_level => 9).save
                    

Action.new(:name => '志愿服务',:for_time => true).save
Action.new(:name => '捐款',:for_amount => true).save
Action.new(:name => '捐物',:for_goods => true).save
{'fraction_non_alphanumeric': 0.1755424063116371, 'fraction_numerical': 0.03944773175542406, 'mean_word_length': 2.4506802721088436, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 49, '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': '166424', 'n_tokens_mistral': 696, 'n_tokens_neox': 636, 'n_words': 157}