<commit_before>class StringInputStream < java.io.InputStream
  
  def initialize
    @contents = []
  end
  
  def contents
    @contents
  end
  
  def contents=(string)
    @contents += (string.split << "\n")
  end
  
  def available; 0; end
  def close; end
  def mark(readlimit);end
  def markSupported; false; end
  
  def read(*arguments)
    if self.contents.size == 0 
      return -1
    else
      if arguments.size > 0
        if arguments[0] == nil
          raise java.lang.NullPointerException
        end
        
        if arguments.size == 3
          offset = arguments[1]
          bytes_to_read = arguments[2]
        else
          offset = 0
          bytes_to_read = arguments[0].size
        end
      
        if (
          offset < 0 || 
          bytes_to_read < 0 || 
          (offset + bytes_to_read) > arguments[0].size
        )
          raise java.lang.IndexOutOfBoundsException
        end
        
        require 'pp'
      
        count = 0
        bytes_to_read.times do |i|
          if self.contents.size == 0
            return count
          else
            arguments[0][offset + i] = self.contents.shift[0]
            count += 1
          end
        end
        
        pp arguments[0].join
        return count
      else<commit_msg>Removing unnecessary output from StringInputStream.<commit_after>class StringInputStream < java.io.InputStream
  
  def initialize
    @contents = []
  end
  
  def contents
    @contents
  end
  
  def contents=(string)
    @contents += (string.split << "\n")
  end
  
  def available; 0; end
  def close; end
  def mark(readlimit);end
  def markSupported; false; end
  
  def read(*arguments)
    if self.contents.size == 0 
      return -1
    else
      if arguments.size > 0
        if arguments[0] == nil
          raise java.lang.NullPointerException
        end
        
        if arguments.size == 3
          offset = arguments[1]
          bytes_to_read = arguments[2]
        else
          offset = 0
          bytes_to_read = arguments[0].size
        end
      
        if (
          offset < 0 || 
          bytes_to_read < 0 || 
          (offset + bytes_to_read) > arguments[0].size
        )
          raise java.lang.IndexOutOfBoundsException
        end
        
        count = 0
        bytes_to_read.times do |i|
          if self.contents.size == 0
            return count
          else
            arguments[0][offset + i] = self.contents.shift[0]
            count += 1
          end
        end
        
        return count
      else
{'fraction_non_alphanumeric': 0.08068938503721113, 'fraction_numerical': 0.014492753623188406, 'mean_word_length': 1.4652509652509653, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 7, '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': '7538207', 'n_tokens_mistral': 745, 'n_tokens_neox': 718, 'n_words': 191}