<commit_before>RSpec.shared_examples 'redirects for non-users' do
  # OPTIMIZE test actions other than 'index'

  context 'as an admin' do
    skip
  end

  context 'as a guest' do
    it 'redirects to / with an error message' do
      skip
    end
  end

  context 'as a coach' do
    it 'redirects to / with an error message' do
      skip
    end
  end

  context 'as a mentor' do
    it 'redirects to / with an error message' do
      skip
    end
  end

  context 'as a student' do
    context 'who is not poart of an accepted team' do
      it 'redirects to / with an error message' do
        skip
      end
    end

    context 'who is part of an accepted team from last season' do
      it 'redirects to / with an error message' do
        skip
      end
    end
  end

end<commit_msg>Use a shared example within a shared example. OMG!<commit_after>RSpec.shared_examples 'redirects for non-users' do
  # OPTIMIZE test actions other than 'index'

  shared_examples_for 'disallows access to students namespace' do
    skip
  end

  context 'as an admin' do
    skip
  end

  context 'as a guest' do
    it_behaves_like 'disallows access to students namespace'
  end

  context 'as a coach' do
    it_behaves_like 'disallows access to students namespace'
  end

  context 'as a mentor' do
    it_behaves_like 'disallows access to students namespace'
  end

  context 'as a student' do
    context 'who is not poart of an accepted team' do
      it_behaves_like 'disallows access to students namespace'
    end

    context 'who is part of an accepted team from last season' do
      it_behaves_like 'disallows access to students namespace'
    end
  end

end
{'fraction_non_alphanumeric': 0.046274038461538464, 'fraction_numerical': 0.0, 'mean_word_length': 2.619565217391304, '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': '1690144', 'n_tokens_mistral': 523, 'n_tokens_neox': 491, 'n_words': 230}