<commit_before>describe ConfigurationController do
  [[0, "12AM-1AM"],
   [7, "7AM-8AM"],
   [11, "11AM-12PM"],
   [18, "6PM-7PM"],
   [19, "7PM-8PM"],
   [23, "11PM-12AM"]].each do |io|
    context ".get_hr_str" do
      it "should return interval for #{io[0]} o'clock: #{io[1]}" do
        interval = controller.get_hr_str(io[0])
        expect(interval).to eql(io[1])
      end
    end
  end

  context "#timeprofile_get_form_vars" do
    before do
      timeprofile = FactoryGirl.create(:time_profile)
      @request.session = {:edit => {:new         => {:profile_type => 'Not a user'},
                                    :userid      => 1234,
                                    :timeprofile_id => timeprofile.id}}
    end
    it 'sets @timeprofile' do
      controller.send(:timeprofile_get_form_vars)
      expect(controller.instance_variable_get(:@timeprofile)).to be_a_kind_of(TimeProfile)
    end
  end

  describe "building tabs" do
    before(:each) do<commit_msg>Remove @edit related spec which is not applicable<commit_after>describe ConfigurationController do
  [[0, "12AM-1AM"],
   [7, "7AM-8AM"],
   [11, "11AM-12PM"],
   [18, "6PM-7PM"],
   [19, "7PM-8PM"],
   [23, "11PM-12AM"]].each do |io|
    context ".get_hr_str" do
      it "should return interval for #{io[0]} o'clock: #{io[1]}" do
        interval = controller.get_hr_str(io[0])
        expect(interval).to eql(io[1])
      end
    end
  end

  describe "building tabs" do
    before(:each) do
{'fraction_non_alphanumeric': 0.15159755268524813, 'fraction_numerical': 0.04486743711760707, 'mean_word_length': 2.616707616707617, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 8, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1881898', 'n_tokens_mistral': 544, 'n_tokens_neox': 509, 'n_words': 118}