<commit_before># This code is free software; you can redistribute it and/or modify it under
# the terms of the new BSD License.
#
# Copyright (c) 2011, <NAME>

require 'rbzip2/decompressor'

class RBzip2::IO

  def initialize(io)
    @io           = io
    @decompressor = Decompressor.new io
  end

  def close
    @decompressor.close
  end

  def read
    @decompressor.read
  end

end<commit_msg>Added a compressor to IO<commit_after># This code is free software; you can redistribute it and/or modify it under
# the terms of the new BSD License.
#
# Copyright (c) 2011, <NAME>

require 'rbzip2/decompressor'

class RBzip2::IO

  def initialize(io)
    @io           = io
    @compressor   = Compressor.new io
    @decompressor = Decompressor.new io
  end

  def close
    @compressor.close
    @decompressor.close
  end

  def read
    @decompressor.read
  end

  def write(data)
    @compressor.write data
  end

end
{'fraction_non_alphanumeric': 0.07709011943539631, 'fraction_numerical': 0.013029315960912053, 'mean_word_length': 2.890295358649789, 'pattern_counts': {'":': 0, '<': 5, '<?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': '4178601', 'n_tokens_mistral': 323, 'n_tokens_neox': 303, 'n_words': 104}