<commit_before>Factory.define :folder do |f|
  f.sequence(:name) { |i| "test#{i}" }
  f.parent { Folder.find_or_create_by_name('Root folder') }
end

Factory.define :group do |f|
  f.sequence(:name) { |i| "test#{i}" }
end

Factory.define :user_file do |f|
  f.attachment { fixture_file }
  f.sequence(:attachment_file_name) { |i| "test#{i}.txt" }
  f.folder { Folder.find_or_create_by_name('Root folder') }
end

Factory.define :user do |f|
  f.sequence(:name) { |i| "test#{i}" }
  f.sequence(:email) { |i| "<EMAIL>" }
  f.password '<PASSWORD>'
  f.password_confirmation { |u| <PASSWORD> }
  f.password_required true
  f.reset_password_token ''
  f.dont_clear_reset_password_token false
  f.is_admin false
end

def fixture_file
  File.open("#{Rails.root}/test/fixtures/textfile.txt")
end
<commit_msg>Add remember_token to user factory<commit_after>Factory.define :folder do |f|
  f.sequence(:name) { |i| "test#{i}" }
  f.parent { Folder.find_or_create_by_name('Root folder') }
end

Factory.define :group do |f|
  f.sequence(:name) { |i| "test#{i}" }
end

Factory.define :user_file do |f|
  f.attachment { fixture_file }
  f.sequence(:attachment_file_name) { |i| "test#{i}.txt" }
  f.folder { Folder.find_or_create_by_name('Root folder') }
end

Factory.define :user do |f|
  f.sequence(:name) { |i| "test#{i}" }
  f.sequence(:email) { |i| "<EMAIL>" }
  f.password '<PASSWORD>'
  f.password_confirmation { |u| u.password }
  f.password_required true
  f.reset_password_token ''
  f.dont_clear_reset_password_token false
  f.remember_token ''
  f.is_admin false
end

def fixture_file
  File.open("#{Rails.root}/test/fixtures/textfile.txt")
end

{'fraction_non_alphanumeric': 0.16473459426479561, 'fraction_numerical': 0.0, 'mean_word_length': 4.674740484429066, 'pattern_counts': {'":': 0, '<': 8, '<?xml version=': 0, '>': 8, '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': '5478354', 'n_tokens_mistral': 633, 'n_tokens_neox': 639, 'n_words': 123}