<commit_before>require 'spec_helper'
require 'custom_errors.rb'

describe CustomErrors, type: 'controller' do
  controller do
    include CustomErrors

    def raise_404
      raise ActiveRecord::RecordNotFound<commit_msg>makes anonymous controller more specific for rspec 3<commit_after>require 'spec_helper'
require 'custom_errors.rb'

describe CustomErrors, type: :controller do
  controller(ApplicationController) do
    include CustomErrors

    def raise_404
      raise ActiveRecord::RecordNotFound
{'fraction_non_alphanumeric': 0.05742574257425743, 'fraction_numerical': 0.013861386138613862, 'mean_word_length': 5.487179487179487, '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': '1662650', 'n_tokens_mistral': 138, 'n_tokens_neox': 127, 'n_words': 40}