<commit_before>require 'spec_helper'
require 'poller/timeout'

module Poller
  describe Timeout do

    context '#occured?' do

      it 'returns true if timeout period has expired' do
        Timeout.new(-1.8).occured?.should be_true
      end

      it 'returns false before timeout period has expired' do
        Timeout.new(Float::MAX).occured?.should be_false
      end

    end

  end
end<commit_msg>improve wording in timeout spec<commit_after>require 'spec_helper'
require 'poller/timeout'

module Poller
  describe Timeout do

    context '#occured?' do

      it 'returns true if timeout period has expired' do
        Timeout.new(-1.8).occured?.should be_true
      end

      it 'returns false as long as timeout period has not expired' do
        Timeout.new(Float::MAX).occured?.should be_false
      end

    end

  end
end
{'fraction_non_alphanumeric': 0.07637231503579953, 'fraction_numerical': 0.00477326968973747, 'mean_word_length': 2.8486238532110093, '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': '6858652', 'n_tokens_mistral': 259, 'n_tokens_neox': 237, 'n_words': 84}