<commit_before>RSpec.shared_examples 'an admin controller' do
  RESOURCEFUL_VERB_ACTION_PAIRS ||= [
    %i[get index],
    %i[get new],
    %i[post create],
    %i[get show],
    %i[get edit],
    %i[patch update],
    %i[put update], # TODO: what happens in here if only one verb is defined?
    %i[delete destroy]
  ].freeze

  before { request.env['HTTP_REFERER'] = 'http://www.previous_page.com' }

  RESOURCEFUL_VERB_ACTION_PAIRS.each do |verb, action|
    next unless described_class.action_methods.include? action.to_s

    describe "#{verb.upcase} ##{action}" do
      before { sign_in create(:user); send(verb, action) }
      it { should redirect_to 'http://www.previous_page.com' }
    end
  end<commit_msg>Don't put two commands on one line<commit_after>RSpec.shared_examples 'an admin controller' do
  RESOURCEFUL_VERB_ACTION_PAIRS ||= [
    %i[get index],
    %i[get new],
    %i[post create],
    %i[get show],
    %i[get edit],
    %i[patch update],
    %i[put update], # TODO: what happens in here if only one verb is defined?
    %i[delete destroy]
  ].freeze

  before { request.env['HTTP_REFERER'] = 'http://www.previous_page.com' }

  RESOURCEFUL_VERB_ACTION_PAIRS.each do |verb, action|
    next unless described_class.action_methods.include? action.to_s

    describe "#{verb.upcase} ##{action}" do
      before do
        sign_in create(:user)
        send(verb, action)
      end

      it { should redirect_to 'http://www.previous_page.com' }
    end
  end
{'fraction_non_alphanumeric': 0.12955465587044535, 'fraction_numerical': 0.0, 'mean_word_length': 3.3875739644970415, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 4, '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': '6979909', 'n_tokens_mistral': 526, 'n_tokens_neox': 507, 'n_words': 127}