<commit_before>Given /^I am logged in as an administrator$/ do
  @current_user = User.create!(
    :email => 'a@b.c',
    :name => 'Admin',
    :password => '<PASSWORD>'
  ) { |u| u.admin = true }

  Given "I am on the login page"
  fill_in("Email", :with => 'a@b.c') 
  fill_in("Password", :with => '<PASSWORD>') 
  click_button("Login")
  visit url_for response.redirected_to()
end

Then /^I should see a list of websites$/ do
  Then "I should see \"#{websites(:guitar_gear).name}\""
  Then "I should see \"#{websites(:website_without_analytics).name}\""<commit_msg>Use a valid email address for administrator user account in 'I am logged in as an administrator' cucumber step<commit_after>Given /^I am logged in as an administrator$/ do
  @current_user = User.create!(
    :email => '<EMAIL>',
    :name => 'Admin',
    :password => '<PASSWORD>'
  ) { |u| u.admin = true }

  Given "I am on the login page"
  fill_in("Email", :with => @current_user.email)
  fill_in("Password", :with => <PASSWORD>)
  click_button("Login")
  visit url_for response.redirected_to()
end

Then /^I should see a list of websites$/ do
  Then "I should see \"#{websites(:guitar_gear).name}\""
  Then "I should see \"#{websites(:website_without_analytics).name}\""
{'fraction_non_alphanumeric': 0.16411906677393404, 'fraction_numerical': 0.0, 'mean_word_length': 4.056910569105691, 'pattern_counts': {'":': 0, '<': 8, '<?xml version=': 0, '>': 18, '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': '6124386', 'n_tokens_mistral': 435, 'n_tokens_neox': 418, 'n_words': 131}