<commit_before>require 'test_helper'

class HomePageTest < ActionDispatch::IntegrationTest
  
  def sign_in
    sign_out    
    visit home_path
    click_link 'sign in'
    fill_in 'Email', :with => users(:one).email
    fill_in 'Password', :with => '<PASSWORD>'
    click_button 'Sign in'
  end
  
  def sign_out
    click_link 'sign out' if page.has_link? 'sign out'
  end

  describe 'home page' do
    before do
      visit home_path
    end
    it 'displays "home page"' do
      page.must_have_content 'home page'
    end
    it 'displays the main menu' do
      page.must_have_link 'Biodb'
    end
  end<commit_msg>Retire old test<commit_after>require 'test_helper'

class HomePageTest < ActionDispatch::IntegrationTest
  
  def sign_in
    sign_out    
    visit home_path
    click_link 'sign in'
    fill_in 'Email', :with => users(:one).email
    fill_in 'Password', :with => '<PASSWORD>'
    click_button 'Sign in'
  end
  
  def sign_out
    click_link 'sign out' if page.has_link? 'sign out'
  end

  describe 'home page' do
    before do
      visit home_path
    end
    it 'displays the main menu' do
      page.must_have_link 'Biodb'
    end
  end
{'fraction_non_alphanumeric': 0.08319039451114923, 'fraction_numerical': 0.0, 'mean_word_length': 2.8262295081967213, 'pattern_counts': {'":': 0, '<': 7, '<?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': '4810978', 'n_tokens_mistral': 401, 'n_tokens_neox': 394, 'n_words': 118}