<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: 'Emanuel', city: cities.first)

# User.create(
#   username: "Rob",
#   image_url: "https://secure.gravatar.com/avatar/18bb2e449dc97f0fe668484d81019402.png?r=PG&d=mm&s=150"
# )
# User.create(
#   username: "Sebastien",
#   image_url: "https://secure.gravatar.com/avatar/3220ca30faecef1688c8e23801aab58e.png?r=PG&d=mm&s=150"
# )
# User.create(
#   username: "Tania",
#   image_url: "https://secure.gravatar.com/avatar/4a534bf489347b3327c0f8a5492070c0.png?r=PG&d=mm&s=150"
# )
# User.create(
#   username: "Jonathan",
#   image_url: "https://secure.gravatar.com/avatar/53b0c49cbb13f2837215b6b0ab6ee45d.png?r=PG&d=mm&s=150"
# )


30.times do
  User.create(
    username: Faker::Internet.email,
    first_name: Faker::Name.first_name,
    last_name: Faker::Name.last_name,
    image_url: Faker::Avatar.image.gsub(/http/, "https")
  )
end

#custom seeds
issue1 = Issue.create(
  title: "Should fog be banned fron San Francisco?",
  description: "Fog can contain lots of pollution that ails the air around our beautiful San Francsico, and also cause problems with visibility - both in covering up our beautiful landmarks, and causing problems for our motorists.  Also, it's wet.",
  image_url: "golden.jpg",
  # start_date: Faker::Time.between(2.days.ago, Time.now, :all),
  # finish_date: Faker::Time.forward(23, :all),
  start_date: DateTime.now,
  finish_date: "2015-06-24 4:00:00 -0000",
  creator_id: 1,
  group_id: 1
)
issue1.voters = User.all

issue2 = Issue.create(
  title: "Should we paint the skies?",
  description: "Auroras are natural light displays in the sky.  We can allow more people to see them by painting the skies in multiple locations around the United States.  And, they're really cool.",
  image_url: "aurora.jpg",
  start_date: Faker::Time.between(2.days.ago, Time.now, :all),
  finish_date: Faker::Time.forward(23, :all),
  creator_id: 1,
  group_id: 1
)
issue2.voters = User.all

issue3 = Issue.create(<commit_msg>fixed typo in issue title<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: 'Emanuel', city: cities.first)

# User.create(
#   username: "Rob",
#   image_url: "https://secure.gravatar.com/avatar/18bb2e449dc97f0fe668484d81019402.png?r=PG&d=mm&s=150"
# )
# User.create(
#   username: "Sebastien",
#   image_url: "https://secure.gravatar.com/avatar/3220ca30faecef1688c8e23801aab58e.png?r=PG&d=mm&s=150"
# )
# User.create(
#   username: "Tania",
#   image_url: "https://secure.gravatar.com/avatar/4a534bf489347b3327c0f8a5492070c0.png?r=PG&d=mm&s=150"
# )
# User.create(
#   username: "Jonathan",
#   image_url: "https://secure.gravatar.com/avatar/53b0c49cbb13f2837215b6b0ab6ee45d.png?r=PG&d=mm&s=150"
# )


30.times do
  User.create(
    username: Faker::Internet.email,
    first_name: Faker::Name.first_name,
    last_name: Faker::Name.last_name,
    image_url: Faker::Avatar.image.gsub(/http/, "https")
  )
end

#custom seeds
issue1 = Issue.create(
  title: "Should fog be banned from San Francisco?",
  description: "Fog can contain lots of pollution that ails the air around our beautiful San Francsico, and also cause problems with visibility - both in covering up our beautiful landmarks, and causing problems for our motorists.  Also, it's wet.",
  image_url: "golden.jpg",
  # start_date: Faker::Time.between(2.days.ago, Time.now, :all),
  # finish_date: Faker::Time.forward(23, :all),
  start_date: DateTime.now,
  finish_date: "2015-06-24 4:00:00 -0000",
  creator_id: 1,
  group_id: 1
)
issue1.voters = User.all

issue2 = Issue.create(
  title: "Should we paint the skies?",
  description: "Auroras are natural light displays in the sky.  We can allow more people to see them by painting the skies in multiple locations around the United States.  And, they're really cool.",
  image_url: "aurora.jpg",
  start_date: Faker::Time.between(2.days.ago, Time.now, :all),
  finish_date: Faker::Time.forward(23, :all),
  creator_id: 1,
  group_id: 1
)
issue2.voters = User.all

issue3 = Issue.create(
{'fraction_non_alphanumeric': 0.13574261789334507, 'fraction_numerical': 0.05729396209784046, 'mean_word_length': 4.596794081381011, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 8, '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': '4278412', 'n_tokens_mistral': 1829, 'n_tokens_neox': 1671, 'n_words': 417}