<commit_before>When(/^I visit question page$/) do
  @question = FactoryGirl.create(:question)
  visit question_path(@question)
end

When(/^I fill out the comment form$/) do
  @comment_body = "#{Faker::Lorem.paragraph} http://bit.ly/example"
  fill_in 'comment_body', with: @comment_body
  click_on 'Post comment'
end

When(/^I fill out the comment form with "(.*?)"$/) do |arg1|
  @comment_body = arg1
  fill_in 'comment_body', with: @comment_body
  click_on 'Post comment'
end

Then(/^I should see my comment at the top of the list$/) do
  expect(page).to have_content(@comment_body)
end

Then(/^I should not see my comment in the list$/) do
  expect(page).to_not have_content(@comment_body)
end

Then(/^I should see my link is autolinked$/) do
  expect(page).to have_content("<a href=\"http://bit.ly.example\">http://bit.ly.example</a>")
end
<commit_msg>Fix test for linked comment.<commit_after>When(/^I visit question page$/) do
  @question = FactoryGirl.create(:question)
  visit question_path(@question)
end

When(/^I fill out the comment form$/) do
  @comment_body = Faker::Lorem.paragraph + " http://bit.ly/example"
  fill_in 'comment_body', with: @comment_body
  click_on 'Post comment'
end

When(/^I fill out the comment form with "(.*?)"$/) do |arg1|
  @comment_body = arg1
  fill_in 'comment_body', with: @comment_body
  click_on 'Post comment'
end

Then(/^I should see my comment at the top of the list$/) do
  expect(page).to have_content(@comment_body)
end

Then(/^I should not see my comment in the list$/) do
  expect(page).to_not have_content(@comment_body)
end

Then(/^I should see my link is autolinked$/) do
  expect(page).to have_link("http://bit.ly/example", :href => "http://bit.ly/example")
end

{'fraction_non_alphanumeric': 0.1447674418604651, 'fraction_numerical': 0.002325581395348837, 'mean_word_length': 4.56957928802589, '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': '4638837', 'n_tokens_mistral': 587, 'n_tokens_neox': 586, 'n_words': 179}