<commit_before>class Editor
  attr_reader :page
  def initialize(page)
    @page = page
  end

  def set(text)
    page.within("#editor") do
      page.find('.ace_text-input', visible: false).set(text)
    end
  end

  def has_line?(text)
    page.has_css? '.ace_line', text: text
  end
end<commit_msg>More directly manipulate the ACE editor in tests<commit_after>class Editor
  attr_reader :page
  def initialize(page)
    @page = page
  end

  def set(text)
    page.execute_script "ace.edit('editor').setValue(#{text.to_json})"
  end

  def has_line?(text)
    page.has_css? '.ace_line', text: text
  end
end
{'fraction_non_alphanumeric': 0.11947626841243862, 'fraction_numerical': 0.0, 'mean_word_length': 3.533333333333333, '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': '7561905', 'n_tokens_mistral': 217, 'n_tokens_neox': 212, 'n_words': 54}