<commit_before>require 'boucher'

describe Boucher::CLI do

  let(:hostname) { 'app001.prod' }
  let(:cli) { Boucher::CLI.new(hostname) }
  let(:meatfile) { File.join( File.dirname(__FILE__), 'fixtures/Meatfile' ) }

  context "initializing" do
    before do
      Boucher::CLI.stub(:hunt_for_meat => nil)
    end

    it "should set the hostname from the arguments" do
      cli.hostname.should == hostname
    end

    it "should try to find the meat" do
      Boucher::Meatfile.should_receive(:hunt_for_meat).and_return(meatfile)
      cli
    end
  end

end<commit_msg>ok, really fixed CLI spec this time<commit_after>require 'boucher'

describe Boucher::CLI do

  let(:hostname) { 'app001.prod' }
  let(:cli) { Boucher::CLI.new(hostname) }
  let(:meatfile) { File.join( File.dirname(__FILE__), 'fixtures/Meatfile' ) }

  context "initializing" do
    before do
      Boucher::Meatfile.should_receive(:hunt_for_meat).and_return(meatfile)
    end

    it "should set the hostname from the arguments" do
      cli.hostname.should == hostname
    end

    it "should try to find the meat" do
      cli
    end
  end

end
{'fraction_non_alphanumeric': 0.11329170383586083, 'fraction_numerical': 0.0053523639607493305, 'mean_word_length': 3.4347826086956523, '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': '6048317', 'n_tokens_mistral': 416, 'n_tokens_neox': 397, 'n_words': 95}