<commit_before>require 'spec_helper'

module IMAPGuard
  describe Query do
    describe "#initialize" do
      it { should be_empty }
    end

    describe "#seen" do
      it "adds 'SEEN'" do
        subject.seen
        subject.last.should eq 'SEEN'
      end
    end

    describe "#unanswered" do
      it "adds 'UNANSWERED'" do
        subject.unanswered
        subject.last.should eq 'UNANSWERED'
      end
    end

    describe "#unflagged" do
      it "adds 'UNFLAGGED'" do
        subject.unflagged
        subject.last.should eq 'UNFLAGGED'
      end
    end

    describe "#subject" do
      it "adds the search value" do
        subject.subject("Hey you")
        subject.last.should eq "Hey you"
      end<commit_msg>Spec for 'or' helper<commit_after>require 'spec_helper'

module IMAPGuard
  describe Query do
    describe "#initialize" do
      it { should be_empty }
    end

    describe "#seen" do
      it "adds 'SEEN'" do
        subject.seen
        subject.last.should eq 'SEEN'
      end
    end

    describe "#unanswered" do
      it "adds 'UNANSWERED'" do
        subject.unanswered
        subject.last.should eq 'UNANSWERED'
      end
    end

    describe "#unflagged" do
      it "adds 'UNFLAGGED'" do
        subject.unflagged
        subject.last.should eq 'UNFLAGGED'
      end
    end

    describe "#or" do
      it "adds 'OR'" do
        subject.or
        subject.last.should eq 'OR'
      end
    end

    describe "#subject" do
      it "adds the search value" do
        subject.subject("Hey you")
        subject.last.should eq "Hey you"
      end
{'fraction_non_alphanumeric': 0.08432976714915041, 'fraction_numerical': 0.0, 'mean_word_length': 1.9281767955801106, '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': '1438496', 'n_tokens_mistral': 512, 'n_tokens_neox': 498, 'n_words': 153}