<commit_before>RSpec::Matchers.define :require_login do |attribute|
  match do |actual|
    expect(attribute).to redirect_to Rails.application.routes.url_helpers.login_path
  end

  failure_message_for_should do |actual|
    "expected to require login to access the method"
  end

  failure_message_for_should_not do |actual|
    "expected not to require login to access the method"
  end

  description do
    "redirect to the login form"
  end
end<commit_msg>fix custom matcher example<commit_after>RSpec::Matchers.define :require_login do |expected|
  match do |actual|
    expect(actual).to redirect_to Rails.application.routes.url_helpers.login_path
  end

  failure_message_for_should do |actual|
    "expected to require login to access the method"
  end

  failure_message_for_should_not do |actual|
    "expected not to require login to access the method"
  end

  description do
    "redirect to the login form"
  end
end
{'fraction_non_alphanumeric': 0.06015037593984962, 'fraction_numerical': 0.0, 'mean_word_length': 4.35632183908046, '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': '6631518', 'n_tokens_mistral': 279, 'n_tokens_neox': 274, 'n_words': 92}