<commit_before>module SignInHelpers
  def sign_in(user)
    visit '/users/sign_in'
    fill_in 'Email', :with => user.email
    fill_in 'Password', :with => 'password'
    click_button 'Sign in'
    page.should have_content("Signed in successfully")
  end

  def sign_out
    click_link 'Sign out'
    page.should have_content("Signed out successfully")
  end
end

RSpec.configure do |c|
  c.include SignInHelpers, :type => :request
end<commit_msg>Use warden helpers rather than capybara walking through signing in for sign_in<commit_after>module SignInHelpers
  def sign_in(user)
    login_as(user)
    # visit '/users/sign_in'
    # fill_in 'Email', :with => user.email
    # fill_in 'Password', :with => 'password'
    # click_button 'Sign in'
    # page.should have_content("Signed in successfully")
  end

  def sign_out
    logout
  end
end

RSpec.configure do |c|
  c.include Warden::Test::Helpers
  c.include SignInHelpers, :type => :request
end
{'fraction_non_alphanumeric': 0.10388247639034627, 'fraction_numerical': 0.0, 'mean_word_length': 3.86734693877551, 'pattern_counts': {'":': 0, '<': 3, '<?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': '7636429', 'n_tokens_mistral': 315, 'n_tokens_neox': 317, 'n_words': 89}