<commit_before>RSpec.describe Campus do
  it "should validate the presence of a name" do
    @campus = build(:campus, name: nil)
    @campus.valid?
    expect(@campus.errors[:name].size).to eq(1)
  end

  it "should validate the uniqueness of name" do
    @campus_1 = create(:campus)
    @campus_2 = build(:campus, name: @campus_1.name)
    @campus_2.valid?
    expect(@campus_2.errors[:name].size).to eq(1)
  end

  it "should validate the presence of a slug" do
    @campus = build(:campus, slug: nil)
    @campus.valid?
    expect(@campus.errors[:slug].size).to eq(1)
  end

  it "should validate the uniqueness of a slug" do
    @campus_1 = create(:campus)
    @campus_2 = build(:campus, slug: @campus_1.slug)
    @campus_2.valid?
    expect(@campus_2.errors[:slug].size).to eq(1)
  end

  it "should validate the presence of an abbreviation" do
    @campus = build(:campus, abbreviation: nil)
    @campus.valid?
    expect(@campus.errors[:abbreviation].size).to eq(1)
  end

  it "should validate the uniqueness of an abbreviation" do
    @campus_1 = create(:campus)
    @campus_2 = build(:campus, abbreviation: @campus_1.abbreviation)
    @campus_2.valid?
    expect(@campus_2.errors[:abbreviation].size).to eq(1)
  end

  it "should find a campus by slug" do
    @campus = create(:campus)
    expect(Campus.find_by(slug: @campus.slug)).to eq(@campus)
  end

  it "should find campuses by featured bit"
end<commit_msg>Remove featured bit spec test.<commit_after>RSpec.describe Campus do
  it "should validate the presence of a name" do
    @campus = build(:campus, name: nil)
    @campus.valid?
    expect(@campus.errors[:name].size).to eq(1)
  end

  it "should validate the uniqueness of name" do
    @campus_1 = create(:campus)
    @campus_2 = build(:campus, name: @campus_1.name)
    @campus_2.valid?
    expect(@campus_2.errors[:name].size).to eq(1)
  end

  it "should validate the presence of a slug" do
    @campus = build(:campus, slug: nil)
    @campus.valid?
    expect(@campus.errors[:slug].size).to eq(1)
  end

  it "should validate the uniqueness of a slug" do
    @campus_1 = create(:campus)
    @campus_2 = build(:campus, slug: @campus_1.slug)
    @campus_2.valid?
    expect(@campus_2.errors[:slug].size).to eq(1)
  end

  it "should validate the presence of an abbreviation" do
    @campus = build(:campus, abbreviation: nil)
    @campus.valid?
    expect(@campus.errors[:abbreviation].size).to eq(1)
  end

  it "should validate the uniqueness of an abbreviation" do
    @campus_1 = create(:campus)
    @campus_2 = build(:campus, abbreviation: @campus_1.abbreviation)
    @campus_2.valid?
    expect(@campus_2.errors[:abbreviation].size).to eq(1)
  end

  it "should find a campus by slug" do
    @campus = create(:campus)
    expect(Campus.find_by(slug: @campus.slug)).to eq(@campus)
  end
end
{'fraction_non_alphanumeric': 0.1301418439716312, 'fraction_numerical': 0.014893617021276596, 'mean_word_length': 3.717391304347826, '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': '6170680', 'n_tokens_mistral': 1058, 'n_tokens_neox': 1011, 'n_words': 260}