<commit_before>And(/^I should see (.*) schedule events?$/) do |num|
  expect(page).to have_css("schedule-event", count:num)
end

And(/^I should see a (.*) with text "(.*)"$/) do |elem, text|
  expect(!page.all(elem, :text => text ).empty?)
end

Then(/^I should see the (.*) with id (\d+) is selected$/) do |type, id|
  css = "#{type.downcase}[data-id='#{id}']"<commit_msg>Revised step definition to use .not_to be_empty and added definition for matching an arbitrary number of elements<commit_after>And(/^I should see (.*) schedule events?$/) do |num|
  expect(page).to have_css("schedule-event", count:num)
end

And(/^I should see (\d+) (.*) with text "(.*)"$/) do |amt, elem, text|
  expect(page.all(elem, text: text).size).to eq(amt)
end

And(/^I should see a (.*) with text "(.*)"$/) do |elem, text|
  expect(page.all(elem, text: text)).not_to be_empty
end

Then(/^I should see the (.*) with id (\d+) is selected$/) do |type, id|
  css = "#{type.downcase}[data-id='#{id}']"
{'fraction_non_alphanumeric': 0.21699078812691913, 'fraction_numerical': 0.0, 'mean_word_length': 4.344262295081967, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, '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': '3306759', 'n_tokens_mistral': 360, 'n_tokens_neox': 353, 'n_words': 108}