<commit_before>require 'spec_helper'

# Specs in this file have access to a helper object that includes
# the LogsHelper. For example:
#
# describe LogsHelper do
#   describe "string concat" do
#     it "concats two strings with spaces" do
#       helper.concat_strings("this","that").should == "this that"
#     end
#   end
# end
describe LogsHelper do
  pending "add some examples to (or delete) #{__FILE__}"
end
<commit_msg>Adding some testing to the LogsHelper<commit_after>require 'spec_helper'

# Specs in this file have access to a helper object that includes
# the LogsHelper. For example:
#
# describe LogsHelper do
#   describe "string concat" do
#     it "concats two strings with spaces" do
#       helper.concat_strings("this","that").should == "this that"
#     end
#   end
# end
describe LogsHelper do
  it "should be able to add the time to the rest of the params" do
    existing_params = {:page => 4}
    helper.params[:log_start_date] = 'tomorrow'
    helper.time_range_params_plus(existing_params)
    existing_params[:page].should == 4
    existing_params[:log_start_date].should == 'tomorrow'
  end
end

{'fraction_non_alphanumeric': 0.0951111111111111, 'fraction_numerical': 0.0017777777777777779, 'mean_word_length': 4.004444444444444, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, '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': '7227112', 'n_tokens_mistral': 348, 'n_tokens_neox': 341, 'n_words': 123}