<commit_before>require 'spec_helper'

module SmartlingRails
  describe 'helpers' do
    
    describe 'print_msg' do
      it 'calls puts when padding not asked for' do
        allow($stdout).to receive(:puts) { "mock puts" }
        SmartlingRails.print_msg 'hello world'
        expect($stdout).to have_received(:puts).once
        expect($stdout).to have_received(:puts).with('hello world')
      end
      it 'calls puts twice when padding asked for' do
        allow($stdout).to receive(:puts) { "mock puts" }
        SmartlingRails.print_msg 'hello world', true
        expect($stdout).to have_received(:puts).twice
        expect($stdout).to have_received(:puts).with()
        expect($stdout).to have_received(:puts).with('hello world')
      end
    end
    
  end
end
 <commit_msg>call cleanup for no args<commit_after>require 'spec_helper'

module SmartlingRails
  describe 'helpers' do
    
    describe 'print_msg' do
      it 'calls puts when padding not asked for' do
        allow($stdout).to receive(:puts) { "mock puts" }
        SmartlingRails.print_msg 'hello world'
        expect($stdout).to have_received(:puts).once
        expect($stdout).to have_received(:puts).with('hello world')
      end
      it 'calls puts twice when padding asked for' do
        allow($stdout).to receive(:puts) { "mock puts" }
        SmartlingRails.print_msg 'hello world', true
        expect($stdout).to have_received(:puts).twice
        expect($stdout).to have_received(:puts).with
        expect($stdout).to have_received(:puts).with('hello world')
      end
    end
    
  end
end
 
{'fraction_non_alphanumeric': 0.11439346323067254, 'fraction_numerical': 0.0, 'mean_word_length': 2.970074812967581, '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': '6525511', 'n_tokens_mistral': 479, 'n_tokens_neox': 473, 'n_words': 124}