<commit_before>shared_context "signed in as admin" do
  let!(:admin) { FactoryGirl.create(:stewie) }
  let!(:password) { <PASSWORD>Girl.attributes_for(:st<PASSWORD>)[:password] }

  before do
    visit new_user_session_path
    fill_in "Email", with: admin.email
    fill_in "Password", with: password
    click_button "Sign in"
    page.should have_content("Signed in")
  end
end

shared_context "signed in as a committee member" do
  let!(:membership) { FactoryGirl.create(:brian_at_quahogcc) }
  let!(:password) { FactoryGirl.attributes_for(:brian)[:password] }
  let(:current_group) { membership.group }
  let(:current_user) { membership.user }

  before do
    visit new_user_session_path
    fill_in "Email", with: current_user.email
    fill_in "Password", with: password
    click_button "Sign in"
    page.should have_content("Signed in")
  end
end<commit_msg>Refactor authentication rspec support file and add site user.<commit_after>shared_context "signs in" do
  before do
    visit new_user_session_path
    fill_in "Email", with: current_user.email
    fill_in "Password", with: password
    click_button "Sign in"
    page.should have_content("Signed in")
  end
end

shared_context "signed in as admin" do
  include_context "signs in"

  let!(:current_user) { FactoryGirl.create(:stewie) }
  let!(:password) { <PASSWORD>(:<PASSWORD>)[:password] }
end

shared_context "signed in as a committee member" do
  include_context "signs in"

  let!(:membership) { FactoryGirl.create(:brian_at_quahogcc) }
  let!(:password) { <PASSWORD>.attributes_for(:b<PASSWORD>)[:password] }
  let(:current_group) { membership.group }
  let(:current_user) { membership.user }
end

shared_context "signed in as a site user" do
  include_context "signs in"

  let!(:current_user) { FactoryGirl.create(:user) }
  let!(:password) { FactoryGirl.attributes_for(:user)[:password] }
end
{'fraction_non_alphanumeric': 0.11918760021378942, 'fraction_numerical': 0.0, 'mean_word_length': 5.038709677419355, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '2111145', 'n_tokens_mistral': 622, 'n_tokens_neox': 611, 'n_words': 147}