<commit_before>require 'rails_helper'

describe SignUpSheet do

  describe '.add_signup_topic' do

    it 'will return an empty Hash when there are no topics' do
      assignment = double(Assignment)
      allow(assignment).to receive(:get_review_rounds) { nil }
      allow(Assignment).to receive(:find) { assignment }

      allow(SignUpTopic).to receive(:where) { nil }

      expect(SignUpSheet.add_signup_topic(2)).to eql({})
    end

    it 'will return an empty Hash when there are no topics' do
      assignment = double(Assignment)
      allow(assignment).to receive(:get_review_rounds) { nil }
      allow(Assignment).to receive(:find) { assignment }

      allow(SignUpTopic).to receive(:where) { nil }

      expect(SignUpSheet.add_signup_topic(2)).to eql({})
    end

  end
end<commit_msg>Removed accidental duplicate code<commit_after>require 'rails_helper'

describe SignUpSheet do

  describe '.add_signup_topic' do

    it 'will return an empty Hash when there are no topics' do
      assignment = double(Assignment)
      allow(assignment).to receive(:get_review_rounds) { nil }
      allow(Assignment).to receive(:find) { assignment }

      allow(SignUpTopic).to receive(:where) { nil }

      expect(SignUpSheet.add_signup_topic(2)).to eql({})
    end

  end
end
{'fraction_non_alphanumeric': 0.10366328916601715, 'fraction_numerical': 0.002338269680436477, 'mean_word_length': 3.669090909090909, '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': '952450', 'n_tokens_mistral': 396, 'n_tokens_neox': 383, 'n_words': 100}