<commit_before>import { gzipSync } from "zlib";

export default function sizePrinter() {
  return {
    renderChunk(rawSource, chunk, outputOptions) {
      const buffer = Buffer.from(rawSource);
      const gzipped = gzipSync(buffer, { level: 9 });
      console.log("gzipped size:", gzipped.length);
      console.log("raw size:", buffer.length);
    }
  };
}<commit_msg>Fix size-printer<commit_after>import { gzipSync } from "zlib";

export default function sizePrinter() {
  return {
    renderChunk(rawSource, chunk, outputOptions) {
      const buffer = Buffer.from(rawSource + "\n");
      const gzipped = gzipSync(buffer, { level: 9 });
      console.log("gzipped size:", gzipped.length);
      console.log("raw size:", buffer.length);
    }
  };
}
{'fraction_non_alphanumeric': 0.14417989417989419, 'fraction_numerical': 0.0026455026455026454, 'mean_word_length': 3.6158536585365852, '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': '946601', 'n_tokens_mistral': 238, 'n_tokens_neox': 234, 'n_words': 54}