<commit_before>class NewAdhocCardOverlay < CardOverlay

  def self.launch(session)
    overlay = session.find('.overlay-container')
    overlay.click_button 'New Task Card'
    new overlay
  end

  def title
    find('main > h1').text
  end

  def title=(new_text)
    find('.edit-h1-icon').click
    fill_in 'title', with: new_text
    click_button 'Save'
  end

  # def body<commit_msg>Update spec selectors due to overlay component changes<commit_after>class NewAdhocCardOverlay < CardOverlay

  def self.launch(session)
    overlay = session.find('.overlay-container')
    overlay.click_button 'New Task Card'
    new overlay
  end

  def title
    find('main > div > h1').text
  end

  def title=(new_text)
    find('.inline-edit-h1-icon').click
    fill_in 'title', with: new_text
    find('.button-secondary', text: "SAVE").click
  end

  # def body
{'fraction_non_alphanumeric': 0.11098130841121495, 'fraction_numerical': 0.004672897196261682, 'mean_word_length': 3.394871794871795, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 6, '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': '1780439', 'n_tokens_mistral': 287, 'n_tokens_neox': 271, 'n_words': 70}