<commit_before>module CapybaraMacros

  def office_login(user_type = nil)
    before(:each) do
      user = Factory.create(user_type || :staff)
      visit destroy_staff_session_path
      visit new_staff_session_path
      within("#staff_new") do
        fill_in 'staff[email]', :with => user.email
        fill_in 'staff[password]', :with => <PASSWORD>
      end
      click_button 'staff_submit'
    end
  end
    
end<commit_msg>button name changed with rails upgrade<commit_after>module CapybaraMacros

  def office_login(user_type = nil)
    before(:each) do
      user = Factory.create(user_type || :staff)
      visit destroy_staff_session_path
      visit new_staff_session_path
      within("#staff_new") do
        fill_in 'staff[email]', :with => user.email
        fill_in 'staff[password]', :with => <PASSWORD>
      end
      #save_and_open_page
      click_button 'Sign in'
    end
  end
    
end
{'fraction_non_alphanumeric': 0.09320175438596491, 'fraction_numerical': 0.0, 'mean_word_length': 3.0398230088495577, 'pattern_counts': {'":': 0, '<': 5, '<?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': '6488916', 'n_tokens_mistral': 290, 'n_tokens_neox': 286, 'n_words': 66}