<commit_before>describe 'AssignmentTeam' do
  let(:assignment) { build(:assignment) }
  let(:team) { build(:assignment_team) }
  let(:participant) { build(:participant) }
  let(:team_without_submitted_hyperlinks) { build(:assignment_team, submitted_hyperlinks: "") }

  describe "#hyperlinks" do
    context "when current teams submitted hyperlinks" do
      it "returns the hyperlinks submitted by the team" do
        expect(team.hyperlinks).to eq(["https://www.expertiza.ncsu.edu"])
      end
    end

    context "when current teams did not submit hyperlinks" do
      it "returns an empty array" do
        expect(team_without_submitted_hyperlinks.hyperlinks).to eq([])
      end
    end
  end

  describe "#include?" do
    context "when an assignment team has one participant" do
      it "includes one participant" do
        participant.parent_id = team.parent_id
        Assignment.find(team.parent_id).add_participant(User.find(participant.user_id), true , true , true)
        expect(team.includes?(participant)).to eq true
      end
    end
  end
end<commit_msg>updates assignment team testing<commit_after>describe 'AssignmentTeam' do
  let(:team) { build(:assignment_team) }
  let(:team_without_submitted_hyperlinks) { build(:assignment_team, submitted_hyperlinks: "") }

  describe "#hyperlinks" do
    context "when current teams submitted hyperlinks" do
      it "returns the hyperlinks submitted by the team" do
        expect(team.hyperlinks).to eq(["https://www.expertiza.ncsu.edu"])
      end
    end

    context "when current teams did not submit hyperlinks" do
      it "returns an empty array" do
        expect(team_without_submitted_hyperlinks.hyperlinks).to eq([])
      end
    end
  end

  describe "#includes?" do
    let(:assignment) { build(:assignment, id: 1) }
    let(:team) { build(:assignment_team, parent_id: 1) }
    let(:user) { build(:student, id: 2) }
    let(:participant) { build(:participant, parent_id: 1, user_id: 2) }

    context "when an assignment team has one participant" do
      it "includes one participant" do
        assignment
        user
        expect(team.includes?(participant)).to eq true
      end
    end
  end
end
{'fraction_non_alphanumeric': 0.10306917086578103, 'fraction_numerical': 0.0022904260192395786, 'mean_word_length': 3.484599589322382, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 2, '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': '911907', 'n_tokens_mistral': 654, 'n_tokens_neox': 637, 'n_words': 182}