<commit_before>class SharedUrl
  include Capybara::DSL

  def has_value?
    value.present?
  end

  def has_focus?
    return false unless visible?
    
    evaluate_script('document.activeElement.id') == 'sharedURL'
  end

  # It's mandatory to use find with capybara with the exact selector, in
  # javascript mode, find waits for the exact element to appear on the page.
<commit_msg>switch negative call to positive call<commit_after>class SharedUrl
  include Capybara::DSL

  def has_value?
    value.present?
  end

  def has_focus?
    return false if hidden?
    
    evaluate_script('document.activeElement.id') == 'sharedURL'
  end

  # It's mandatory to use find with capybara with the exact selector, in
  # javascript mode, find waits for the exact element to appear on the page.

{'fraction_non_alphanumeric': 0.06557377049180328, 'fraction_numerical': 0.0, 'mean_word_length': 3.616279069767442, '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': '3934725', 'n_tokens_mistral': 244, 'n_tokens_neox': 227, 'n_words': 89}