<commit_before>And /^(?:|I )click link "(.+)" for (investigation|activity) "(.+)" on the materials preview page$/ do |link, material_type, material_name|
  case material_type
    when "investigation"
      within(:xpath,"//table[@class = 'browse_material_header']") do
        click_link(link)
      end
    when "activity"
      within(:xpath,"//table[@class = 'activity_list']/tbody/tr[contains(.,'#{material_name}')]") do
        click_link(link)
      end
  end<commit_msg>html of browse page has changed<commit_after>And /^(?:|I )click link "(.+)" for (investigation|activity) "(.+)" on the materials preview page$/ do |link, material_type, material_name|
  case material_type
    when "investigation"
      within(:xpath,"//div[@class = 'browse_material_header']") do
        click_link(link)
      end
    when "activity"
      within(:xpath,"//table[@class = 'activity_list']/tbody/tr[contains(.,'#{material_name}')]") do
        click_link(link)
      end
  end
{'fraction_non_alphanumeric': 0.16494845360824742, 'fraction_numerical': 0.0, 'mean_word_length': 3.8069306930693068, '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': '5217111', 'n_tokens_mistral': 317, 'n_tokens_neox': 305, 'n_words': 68}