<commit_before>require 'rails_helper'

RSpec.describe QuestionsController, type: :routing do
  describe 'routing' do
    it 'routes to #index' do
      expect(get: '/users/1/questions').to route_to('questions#index', user_id: '1')
    end

    it 'routes to #new' do
      expect(get: '/users/1/questions/new').to route_to('questions#new', user_id: '1')
    end

    it 'routes to #show' do
      expect(get: '/users/1/questions/1').to route_to('questions#show', user_id: '1',
                                                                        id: '1')
    end

    it 'routes to #edit' do
      expect(get: '/users/1/questions/1/edit').to route_to('questions#edit',
                                                           user_id: '1', id: '1')
    end

    it 'routes to #create' do
      expect(post: '/users/1/questions').to route_to('questions#create', user_id: '1')
    end

    it 'routes to #update' do
      expect(put: '/users/1/questions/1').to route_to('questions#update', user_id: '1',
                                                                          id: '1')
    end

    it 'routes to #destroy' do
      expect(delete: '/users/1/questions/1').to route_to('questions#destroy', user_id: '1',
                                                                              id: '1')
    end
  end
end
<commit_msg>rubocop appeasment<commit_after>require 'rails_helper'

RSpec.describe QuestionsController, type: :routing do
  describe 'routing' do
    it 'routes to #index' do
      expect(get: '/users/1/questions').to route_to('questions#index', user_id: '1')
    end

    it 'routes to #new' do
      expect(get: '/users/1/questions/new').to route_to('questions#new', user_id: '1')
    end

    it 'routes to #show' do
      expect(get: '/users/1/questions/1').to route_to('questions#show', user_id: '1',
                                                                        id: '1')
    end

    it 'routes to #edit' do
      expect(get: '/users/1/questions/1/edit').to route_to('questions#edit',
                                                           user_id: '1', id: '1')
    end

    it 'routes to #create' do
      expect(post: '/users/1/questions').to route_to('questions#create', user_id: '1')
    end

    it 'routes to #update' do
      expect(put: '/users/1/questions/1').to route_to('questions#update', user_id: '1',
                                                                          id: '1')
    end

    it 'routes to #destroy' do
      expect(delete: '/users/1/questions/1').to route_to('questions#destroy',
                                                         user_id: '1',
                                                         id: '1')
    end
  end
end

{'fraction_non_alphanumeric': 0.13240161824200072, 'fraction_numerical': 0.016182420007355647, 'mean_word_length': 1.5046040515653776, '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': 23, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5511211', 'n_tokens_mistral': 793, 'n_tokens_neox': 766, 'n_words': 195}