<commit_before>module UIComponentHelper
  def browse_as_medium
    page.driver.resize(1024, 768)
  end

  def browse_as_large
    page.driver.resize(1280, 800)
  end

  def click_login_button
    click_button "Login"
  end

  def click_signup_button
    click_button "Sign up now"
  end

  def click_reset_password_button
    click_button "Reset password"
  end

  def select_login_tab(text)
    within ".login-modal" do
      page.find("a", text: text).click
    end
    sleep 0.2
  end<commit_msg>Reimplement resize helper methods to work with Selenium<commit_after>module UIComponentHelper
  def browse_as_medium
    Capybara.current_session.current_window
      .resize_to(1024, 768)
  end

  def browse_as_large
    Capybara.current_session.current_window
      .resize_to(1280, 800)
  end

  def click_login_button
    click_button "Login"
  end

  def click_signup_button
    click_button "Sign up now"
  end

  def click_reset_password_button
    click_button "Reset password"
  end

  def select_login_tab(text)
    within ".login-modal" do
      page.find("a", text: text).click
    end
    sleep 0.2
  end
{'fraction_non_alphanumeric': 0.06272401433691756, 'fraction_numerical': 0.02867383512544803, 'mean_word_length': 3.3294573643410854, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '5001569', 'n_tokens_mistral': 408, 'n_tokens_neox': 372, 'n_words': 92}