<commit_before>Fabricator(:question) do
  question_set_id { Faker::Number.number(5) }
end

Fabricator(:attendance_question, from: :question) do
  content { { question: "Attendance Check", answer: "true" } }
  type "AttendanceQuestion"
end

Fabricator(:multi_choice_question, from: :question) do
  content { {
            question: "How many children can a node of a binary tree have?",
            answer: "D",
            choices: [
              { "A" => "0" },
              { "B" => "1" },
              { "C" => "2" },
              { "D" => "0, 1, or 2" }
            ]
          } }
  type "MultiChoiceQuestion"
end

Fabricator(:short_answer_question, from: :question) do
  content { {
            question: "What rule separates a binary search tree from a regular binary tree?",
            answer: "All children to the left of the node must be smaller than the node, and all children to the right must be larger."
          } }
  type "MultiChoiceQuestion"
end<commit_msg>Modified question fabricator to assign type as ShortAnswerQuestion, not MultiChoiceQuestion<commit_after>Fabricator(:question) do
  question_set_id { Faker::Number.number(5) }
end

Fabricator(:attendance_question, from: :question) do
  content { { question: "Attendance Check", answer: "true" } }
  type "AttendanceQuestion"
end

Fabricator(:multi_choice_question, from: :question) do
  content { {
            question: "How many children can a node of a binary tree have?",
            answer: "D",
            choices: [
              { "A" => "0" },
              { "B" => "1" },
              { "C" => "2" },
              { "D" => "0, 1, or 2" }
            ]
          } }
  type "MultiChoiceQuestion"
end

Fabricator(:short_answer_question, from: :question) do
  content { {
            question: "What rule separates a binary search tree from a regular binary tree?",
            answer: "All children to the left of the node must be smaller than the node, and all children to the right must be larger."
          } }
  type "ShortAnswerQuestion"
end
{'fraction_non_alphanumeric': 0.11323529411764706, 'fraction_numerical': 0.006862745098039216, 'mean_word_length': 2.447635135135135, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 11, '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': '5778608', 'n_tokens_mistral': 604, 'n_tokens_neox': 591, 'n_words': 202}