<commit_before>require 'spec_helper'

describe Beggar::Base do
  before do
    Basecamp.stub(:establish_connection!)
    Basecamp::Person.stub(me: 'x')
    Beggar::CurrentMonth.stub(to_s: 'a')
    Beggar::Hours.stub(to_s: 'b')
    Beggar::Salary.stub(to_s: 'c')
  end

  subject do
    config = double(:[] => { company: 'abc', token: 'xyz', project: { id: 1, rate: 1.0 }})
    Beggar::Base.new(config)
  end

  its(:summary) { should == %(a || b || c) }
  its(:me) { should == 'x' }
end<commit_msg>Fix testcase<commit_after>require 'spec_helper'

describe Beggar::Base do
  before do
    Basecamp.stub(:establish_connection!)
    Basecamp::Person.stub(me: 'x')
    Beggar::CurrentMonth.stub(to_s: 'a')
    Beggar::Hours.stub(to_s: 'b')
    Beggar::Salary.stub(to_s: 'c')
  end

  subject do
    config = double(:[] => { company: 'abc', token: 'xyz', project: { id: 1, rate: 1.0 }})
    Beggar::Base.new(config)
  end

  its(:summary) { should == %(a || b || c) }
  it { Beggar::Base.me.should == Basecamp::Person.me }
end
{'fraction_non_alphanumeric': 0.19196865817825662, 'fraction_numerical': 0.005876591576885406, 'mean_word_length': 3.843601895734597, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '185502', 'n_tokens_mistral': 402, 'n_tokens_neox': 405, 'n_words': 82}