<commit_before>describe "Users" do

  describe "login" do

    it "should get the user page when it logs in" do
      user = Factory(:user)

      visit root_path
      click_link "Login"

      page.should have_content("Sign in")
      fill_in "user[email]", :with => user.email
      fill_in "user[password]", :with => <PASSWORD>
      click_button "Sign in"

      page.should have_content("Signed in successfully.")
      page.should have_content("We are setting up your projects for you")
    end
  end

  describe "join" do

    before(:each)  do
      host = "circlehost:3001"
      host! host
      Capybara.app_host = "http://" + host
      # deliberately don't add to the DB - it's about to be created in the sign up form.
      @user = Factory.build(:github_user)
    end<commit_msg>Fix test after the front page changed.<commit_after>describe "Users" do

  describe "login" do

    it "should get the user page when it logs in" do
      user = Factory(:user)

      visit root_path
      click_link "Login"

      page.should have_content("Sign in")
      fill_in "user[email]", :with => user.email
      fill_in "user[password]", :with => <PASSWORD>
      click_button "Sign in"

      page.should have_content("Signed in successfully.")
      page.should have_content("Latest builds")
    end
  end

  describe "join" do

    before(:each)  do
      host = "circlehost:3001"
      host! host
      Capybara.app_host = "http://" + host
      # deliberately don't add to the DB - it's about to be created in the sign up form.
      @user = Factory.build(:github_user)
    end
{'fraction_non_alphanumeric': 0.10270951480781348, 'fraction_numerical': 0.005040957781978576, 'mean_word_length': 2.6589861751152073, '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': '1851702', 'n_tokens_mistral': 496, 'n_tokens_neox': 471, 'n_words': 165}