<commit_before><commit_msg>Added make_assessment helper method<commit_after>def make_assessment
  file = File.join(__dir__, '../fixtures/assessment.xml')
  xml = open(file).read
  user = FactoryGirl.create(:user)
  Assessment.from_xml(xml, user)
end
{'fraction_non_alphanumeric': 0.12449799196787148, 'fraction_numerical': 0.0, 'mean_word_length': 6.142857142857143, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 4}, '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': '4708814', 'n_tokens_mistral': 82, 'n_tokens_neox': 80, 'n_words': 15}