<commit_before>require 'rails_helper'

feature 'User signs in' do
  scenario 'with valid credentials' do
    visit sign_in_path
    fill_in 'Username', with: 'joe.example'
    fill_in 'Password', with: '<PASSWORD>' 
    click_on 'Sign In'

    expect(page).to have_content('You have successfully signed in!')
  end
end


feature 'Visitor signs up' do
  scenario 'with valid email and password' do
    sign_up_with '<EMAIL>', 'password'

    expect(page).to have_content('Sign out')
  end

  scenario 'with invalid email' do
    sign_up_with 'invalid_email', 'password'

    expect(page).to have_content('Sign in')
  end

  scenario 'with blank password' do
    sign_up_with '<EMAIL>', ''

    expect(page).to have_content('Sign in')
  end

  def sign_up_with(email, password)
    visit sign_up_path
    fill_in 'Email', with: email
    fill_in 'Password', with: password
    click_button 'Sign up'
  end
end<commit_msg>Git auweiha<commit_after>require 'rails_helper'

feature 'User signs in' do

  given!(:user) { FactoryGirl.create(:user) {} }

  scenario 'with valid credentials' do
    visit  new_user_session_path
    fill_in 'Email', with: '<EMAIL>'
    fill_in 'Password', with: '<PASSWORD>' 
    click_on 'Log In'

    expect(page).to have_content('Signed in successfully.')
  end
end


# feature 'Visitor signs up' do
#   scenario 'with valid email and password' do
#     sign_up_with '<EMAIL>', 'password'

#     expect(page).to have_content('Sign out')
#   end

#   scenario 'with invalid email' do
#     sign_up_with 'invalid_email', 'password'

#     expect(page).to have_content('Sign in')
#   end

#   scenario 'with blank password' do
#     sign_up_with '<EMAIL>', ''

#     expect(page).to have_content('Sign in')
#   end

#   def sign_up_with(email, password)
#     visit sign_up_path
#     fill_in 'Email', with: email
#     fill_in 'Password', with: password
#     click_button 'Sign up'
#   end
# end
{'fraction_non_alphanumeric': 0.11614583333333334, 'fraction_numerical': 0.0, 'mean_word_length': 3.6968215158924207, 'pattern_counts': {'":': 0, '<': 10, '<?xml version=': 0, '>': 10, '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': '5267303', 'n_tokens_mistral': 643, 'n_tokens_neox': 636, 'n_words': 186}