<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 rails db:seed command (or created alongside the database with db:setup).
#
# Examples:
#
#   movies = Movie.create([{ name: 'Star Wars' }, { name: 'Lord of the Rings' }])
#   Character.create(name: 'Luke', movie: movies.first)

user = User.create!(email: '<EMAIL>', username: 'dalecooper', password: '<PASSWORD>')
user.activate!

Project.create!([
  { name: Faker::Company.catch_phrase.gsub(/\s/, '-'), user: user },
  { name: Faker::Company.catch_phrase.gsub(/\s/, '-'), user: user },
  { name: Faker::Company.catch_phrase.gsub(/\s/, '-'), user: user },
  { name: Faker::Company.catch_phrase.gsub(/\s/, '-'), user: user },
  { name: Faker::Company.catch_phrase.gsub(/\s/, '-'), user: user },
  { name: Faker::Company.catch_phrase.gsub(/\s/, '-'), user: user, started_at: 30.days.ago, due_at: 20.days.from_now },
  { name: Faker::Company.catch_phrase.gsub(/\s/, '-'), user: user, started_at: 10.days.ago, due_at: 42.days.from_now },
])

order_sequence = (0..10).to_a.shuffle
Task.create!([
  { label: Faker::TwinPeaks.quote, user: user, order: order_sequence.pop },
  { label: Faker::TwinPeaks.quote, user: user, order: order_sequence.pop },<commit_msg>tec: Fix seeds generation for tasks<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 rails db:seed command (or created alongside the database with db:setup).
#
# Examples:
#
#   movies = Movie.create([{ name: 'Star Wars' }, { name: 'Lord of the Rings' }])
#   Character.create(name: 'Luke', movie: movies.first)

user = User.create!(email: '<EMAIL>', username: 'dalecooper', password: '<PASSWORD>')
user.activate!

Project.create!([
  { name: Faker::Company.catch_phrase.gsub(/\s/, '-'), user: user },
  { name: Faker::Company.catch_phrase.gsub(/\s/, '-'), user: user },
  { name: Faker::Company.catch_phrase.gsub(/\s/, '-'), user: user },
  { name: Faker::Company.catch_phrase.gsub(/\s/, '-'), user: user },
  { name: Faker::Company.catch_phrase.gsub(/\s/, '-'), user: user },
  { name: Faker::Company.catch_phrase.gsub(/\s/, '-'), user: user, started_at: 30.days.ago, due_at: 20.days.from_now },
  { name: Faker::Company.catch_phrase.gsub(/\s/, '-'), user: user, started_at: 10.days.ago, due_at: 42.days.from_now },
])

order_sequence = (1..11).to_a.shuffle
Task.create!([
  { label: Faker::TwinPeaks.quote, user: user, order: order_sequence.pop },
  { label: Faker::TwinPeaks.quote, user: user, order: order_sequence.pop },
{'fraction_non_alphanumeric': 0.193267776096823, 'fraction_numerical': 0.00832072617246596, 'mean_word_length': 4.44238683127572, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '2516976', 'n_tokens_mistral': 940, 'n_tokens_neox': 916, 'n_words': 227}