<commit_before>require 'delegate'

module Cue
  module StringExtensions
    def each_word(&block)
      Cue.each_word(self.to_s, &block)
    end

    def each_sentence(&block)
      Cue.each_sentence(self.to_s, &block)
    end

    def each_ngram(n, &block)
      Cue.each_ngram(self.to_s, n, &block)
    end
  end

  class String < DelegateClass(::String)
    include StringExtensions

    def initialize(str)
      @target = str
      super(@target)
    end
  end
end<commit_msg>Removed unneeded constructor from Cue::String<commit_after>require 'delegate'
require 'cue'

module Cue
  module StringExtensions
    def each_word(&block)
      Cue.each_word(self.to_s, &block)
    end

    def each_sentence(&block)
      Cue.each_sentence(self.to_s, &block)
    end

    def each_ngram(n, &block)
      Cue.each_ngram(self.to_s, n, &block)
    end
  end

  class String < DelegateClass(::String)
    include StringExtensions
  end
end
{'fraction_non_alphanumeric': 0.09528907922912205, 'fraction_numerical': 0.0, 'mean_word_length': 3.1555555555555554, 'pattern_counts': {'":': 0, '<': 5, '<?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': '1146986', 'n_tokens_mistral': 340, 'n_tokens_neox': 324, 'n_words': 73}