<commit_before># frozen_string_literal: true

require "application_system_test_case"

class HomePageTest < ApplicationSystemTestCase
  test "browse to home page" do
    user = users(:existing_twitter)
    OmniAuth.config.mock_auth[:twitter] = OmniAuth::AuthHash.new("provider" => "twitter",
                                                                 "uid" => user.uid.to_s,
                                                                 "info" => { "nickname" => user.name })
    visit(root_path)
    click_on("Sign out") if has_link? "Sign out"
    click_on("Twitter")
    sleep 2<commit_msg>Get rid of last sleep.<commit_after># frozen_string_literal: true

require "application_system_test_case"

class HomePageTest < ApplicationSystemTestCase
  test "browse to home page" do
    user = users(:existing_twitter)
    OmniAuth.config.mock_auth[:twitter] = OmniAuth::AuthHash.new("provider" => "twitter",
                                                                 "uid" => user.uid.to_s,
                                                                 "info" => { "nickname" => user.name })
    visit(root_path)
    click_on("Sign out") if has_link? "Sign out"
    click_on("Twitter")
    assert_link "Sign out"
{'fraction_non_alphanumeric': 0.10522022838499184, 'fraction_numerical': 0.0008156606851549756, 'mean_word_length': 1.928400954653938, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 11, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 8, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '98696', 'n_tokens_mistral': 325, 'n_tokens_neox': 319, 'n_words': 72}