<commit_before>module Infinity2008
  RSpec.describe 'Integration' do
    let(:me) { Me }
    let(:you) { You }
    let(:duration) { Song::Duration }

    it 'will take time' do
      slept = 0
      allow_any_instance_of(Kernel).to receive(:sleep) do |_, secs|
        slept += secs
        secs
      end
      me.new.infinity(you.new) 
      expect(slept).to be >= duration
    end

    context You do
      let(:infinity) { INFINITY }

      subject do
        you.new.tap do |you|
          duration.times { you.trust.in? me }
        end
      end

      it 'will find infinity' do
        expect(subject).to receive(:find).with(infinity)<commit_msg>spec: add specs for Song, reach 100% coverage<commit_after>module Infinity2008
  RSpec.describe 'Integration' do
    let(:me) { Me }
    let(:you) { You }
    let(:duration) { Song::Duration }

    context Song do
      describe '.sing' do
        it 'will take time' do
          slept = 0
          allow_any_instance_of(Kernel).to receive(:sleep) do |_, secs|
            slept += secs
            secs
          end
          Song.sing
          expect(slept).to be >= duration
        end

        it 'writes to standard output' do
          allow_any_instance_of(Kernel).to receive(:sleep)
          expect($stdout).to receive(:puts).at_least(:once)
          Song.sing
        end
      end
    end

    context You do
      let(:infinity) { INFINITY }

      subject do
        you.new.tap do |you|
          duration.times { you.trust.in? me }
        end
      end

      it 'will find infinity' do
        expect(subject).to receive(:find).with(infinity)
{'fraction_non_alphanumeric': 0.1037037037037037, 'fraction_numerical': 0.008024691358024692, 'mean_word_length': 1.8894830659536541, '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': '889137', 'n_tokens_mistral': 520, 'n_tokens_neox': 490, 'n_words': 132}