<commit_before>FactoryGirl.define do
  factory :course do
    department { Forgery(:basic).text[0...4].upcase }
    course_number { Forgery(:basic).number*100 }
    title { Forgery(:basic).text }
    description { Forgery(:basic).text }

    trait :with_prereqs do
      transient do
        number_of_prereqs 2
      end

      after :create do |course, evaluator|
        prereqs = FactoryGirl.create_list(:course, evaluator.number_of_prereqs)
        Prerequisite.create(postreq_id: course.id, prereq_ids: prereqs.map(&:id))
      end
    end

    trait :with_course_instance do
      after :create do |course, _evaluator|
        FactoryGirl.create(:course_instance, course: course)
      end
    end
  end
end<commit_msg>fix da bugs (Forgery(:basic).text has numbers by default)<commit_after>FactoryGirl.define do
  factory :course do
    department { Forgery(:basic).text(allow_numeric: false)[0...4].upcase }
    course_number { Forgery(:basic).number*100 }
    title { Forgery(:basic).text(allow_numeric: false) }
    description { Forgery(:basic).text(allow_numeric: false) }

    trait :with_prereqs do
      transient do
        number_of_prereqs 2
      end

      after :create do |course, evaluator|
        prereqs = FactoryGirl.create_list(:course, evaluator.number_of_prereqs)
        Prerequisite.create(postreq_id: course.id, prereq_ids: prereqs.map(&:id))
      end
    end

    trait :with_course_instance do
      after :create do |course, _evaluator|
        FactoryGirl.create(:course_instance, course: course)
      end
    end
  end
end
{'fraction_non_alphanumeric': 0.10051216389244558, 'fraction_numerical': 0.0076824583866837385, 'mean_word_length': 3.2016129032258065, 'pattern_counts': {'":': 0, '<': 3, '<?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': '3483774', 'n_tokens_mistral': 509, 'n_tokens_neox': 493, 'n_words': 109}