<commit_before>$('form').live 'submit', ->
  scenario = ["  scenario 'GENERATED' do"]
  scenario.push "    visit '#{window.location.pathname}'"
  $(this).find('input[type=text],input[type=email],input[type=url],input[type=number],input[type=search],textarea').each ->
    scenario.push "    fill_in '#{$(this).attr('id')}', :with => '#{$(this).val()}'"
  $(this).find('select').each ->
    scenario.push "    select '#{$(this).children(':selected').text()}', :from => '#{$(this).attr('id')}'"
  scenario.push "    click_button '#{$(this).find('input[type=submit]').val()}'"
  $(this).append '<textarea id="<%= HocusPocus::Recorder::SPEC %>" name="<%= HocusPocus::Recorder::SPEC %>" style="height: 0px; width: 0px;" />'
  $('#<%= HocusPocus::Recorder::SPEC %>').val(scenario.join('\n'))<commit_msg>Revert "select from select by text"<commit_after>$('form').live 'submit', ->
  scenario = ["  scenario 'GENERATED' do"]
  scenario.push "    visit '#{window.location.pathname}'"
  $(this).find('input[type=text],input[type=email],input[type=url],input[type=number],input[type=search],textarea').each ->
    scenario.push "    fill_in '#{$(this).attr('id')}', :with => '#{$(this).val()}'"
  $(this).find('select').each ->
    scenario.push "    select '#{$(this).val()}', :from => '#{$(this).attr('id')}'"
  scenario.push "    click_button '#{$(this).find('input[type=submit]').val()}'"
  $(this).append '<textarea id="<%= HocusPocus::Recorder::SPEC %>" name="<%= HocusPocus::Recorder::SPEC %>" style="height: 0px; width: 0px;" />'
  $('#<%= HocusPocus::Recorder::SPEC %>').val(scenario.join('\n'))
{'fraction_non_alphanumeric': 0.2824858757062147, 'fraction_numerical': 0.0025109855618330196, 'mean_word_length': 6.022026431718062, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 21, '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': '5538147', 'n_tokens_mistral': 571, 'n_tokens_neox': 566, 'n_words': 76}