<commit_before>def login(username, password)
  visit login_path
  fill_in 'username', with: username
  fill_in 'password', with: password
  click_button 'Logga in'
end

# *_ldap_user is used for LDAP auth with AUTH_CREDENTIALS
def create_ldap_user
  # We have only one test user in the ldap so we need to reuse it. TODO: Create stub for this
  User.where(username: AUTH_CREDENTIALS["username"]).destroy_all
  create(:user, username: AUTH_CREDENTIALS["username"])
end

def login_ldap_user
  login(AUTH_CREDENTIALS["username"], AUTH_CREDENTIALS["password"])
end

def create_feeds_for_user(user)
  feed_urls = %w[
    https://github.com/rspec/rspec/commits.atom
    https://github.com/jnicklas/capybara/commits.atom
    https://github.com/ariya/phantomjs/commits.atom
    https://github.com/jonleighton/poltergeist/commits.atom
    https://github.com/rails/rails/commits.atom
    https://github.com/jquery/jquery/commits.atom
    https://github.com/joyent/node/commits.atom
    https://github.com/capistrano/capistrano/commits.atom
    https://github.com/haml/haml/commits.atom
    https://github.com/nex3/sass/commits.atom
    https://github.com/guard/guard-rspec/commits.atom
    https://github.com/thoughtbot/factory_girl/commits.atom
    https://github.com/vcr/vcr/commits.atom
    https://github.com/malmostad/intranet-dashboard/commits.atom
    https://github.com/malmostad/intranet-assets/commits.atom
  ]

  VCR.use_cassette('feeds') do
    feed_urls.each_with_index do |feed_url, i|
      f = build(:feed,
        category: Feed::CATEGORIES.keys[i % Feed::CATEGORIES.size],
        feed_url: feed_url
      )
      f.fetch
      f.parse
      f.save(validate: false)
    end
  end<commit_msg>Removed feeds from text case<commit_after>def login(username, password)
  visit login_path
  fill_in 'username', with: username
  fill_in 'password', with: password
  click_button 'Logga in'
end

# *_ldap_user is used for LDAP auth with AUTH_CREDENTIALS
def create_ldap_user
  # We have only one test user in the ldap so we need to reuse it. TODO: Create stub for this
  User.where(username: AUTH_CREDENTIALS["username"]).destroy_all
  create(:user, username: AUTH_CREDENTIALS["username"])
end

def login_ldap_user
  login(AUTH_CREDENTIALS["username"], AUTH_CREDENTIALS["password"])
end

def create_feeds_for_user(user)
  feed_urls = %w[
    https://github.com/rspec/rspec/commits.atom
    https://github.com/jnicklas/capybara/commits.atom
    https://github.com/ariya/phantomjs/commits.atom
    https://github.com/jonleighton/poltergeist/commits.atom
    https://github.com/rails/rails/commits.atom
    https://github.com/jquery/jquery/commits.atom
    https://github.com/joyent/node/commits.atom
    https://github.com/capistrano/capistrano/commits.atom
    https://github.com/haml/haml/commits.atom
    https://github.com/nex3/sass/commits.atom
    https://github.com/guard/guard-rspec/commits.atom
    https://github.com/thoughtbot/factory_girl/commits.atom
    https://github.com/vcr/vcr/commits.atom
  ]

  VCR.use_cassette('feeds') do
    feed_urls.each_with_index do |feed_url, i|
      f = build(:feed,
        category: Feed::CATEGORIES.keys[i % Feed::CATEGORIES.size],
        feed_url: feed_url
      )
      f.fetch
      f.parse
      f.save(validate: false)
    end
  end
{'fraction_non_alphanumeric': 0.12302070645554203, 'fraction_numerical': 0.0006090133982947625, 'mean_word_length': 3.6728307254623043, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 28, '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': '5426727', 'n_tokens_mistral': 1177, 'n_tokens_neox': 1162, 'n_words': 193}