<commit_before>package com.carrotsearch.ant.tasks.junit4.tools;

import java.io.BufferedInputStream;
import java.io.BufferedOutputStream;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.OutputStream;

import com.carrotsearch.ant.tasks.junit4.events.EventType;
import com.carrotsearch.ant.tasks.junit4.events.IStreamEvent;
import com.carrotsearch.ant.tasks.junit4.events.Serializer;
import com.google.common.base.Charsets;
import com.google.common.io.Closer;
import com.google.gson.Gson;
import com.google.gson.stream.JsonReader;
import com.google.gson.stream.JsonToken;

public class DumpStreamsFromEventStream {
  public static void main(String[] args) throws Exception {
    File inputFile = new File(args[0]);

    Gson gson = Serializer.createGSon(DumpStreamsFromEventStream.class.getClassLoader());

    Closer closer = Closer.create();
    try {
      OutputStream sysout = new BufferedOutputStream(new FileOutputStream(new File(inputFile.getAbsolutePath() + ".sysout")));
      closer.register(sysout);
<commit_msg>More informative msg to DumpStreamsFromEventStream<commit_after>package com.carrotsearch.ant.tasks.junit4.tools;

import java.io.BufferedInputStream;
import java.io.BufferedOutputStream;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.OutputStream;

import com.carrotsearch.ant.tasks.junit4.events.EventType;
import com.carrotsearch.ant.tasks.junit4.events.IStreamEvent;
import com.carrotsearch.ant.tasks.junit4.events.Serializer;
import com.google.common.base.Charsets;
import com.google.common.io.Closer;
import com.google.gson.Gson;
import com.google.gson.stream.JsonReader;
import com.google.gson.stream.JsonToken;

public class DumpStreamsFromEventStream {
  public static void main(String[] args) throws Exception {
    File inputFile;

    if (args.length != 1) {
      System.err.println("Usage: [input.events]");
      System.exit(1);
      return;
    } else {
      inputFile = new File(args[0]);
    }

    Gson gson = Serializer.createGSon(DumpStreamsFromEventStream.class.getClassLoader());

    Closer closer = Closer.create();
    try {
      OutputStream sysout = new BufferedOutputStream(new FileOutputStream(new File(inputFile.getAbsolutePath() + ".sysout")));
      closer.register(sysout);

{'fraction_non_alphanumeric': 0.11124644742184328, 'fraction_numerical': 0.0048721071863581, 'mean_word_length': 5.1141439205955335, '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': '5401138', 'n_tokens_mistral': 760, 'n_tokens_neox': 756, 'n_words': 139}