<commit_before>
package test.log.in.app;

import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.OutputStream;
import java.io.OutputStreamWriter;

import android.app.Activity;
import android.os.Bundle;

/**
 * Another great log cat open source project https://github.com/cheyiliu/Catlog
 */
public class MainActivity extends Activity {

    private boolean mStop = false;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);

        new Thread(new Runnable() {

            @Override
            public void run() {
                Process mLogcatProc = null;
                BufferedReader reader = null;
                BufferedWriter writer = null;
                try {
                    mLogcatProc = Runtime.getRuntime().exec(new String[] {
                            // "logcat", "WindowManager:I *:S"
                            "logcat", ""
                    });
                    reader = new BufferedReader(new InputStreamReader(mLogcatProc.getInputStream()));
                    File tmp = new File(getCacheDir() + File.separator
                            + "tmpLogInApp");
                    if (tmp.exists()) {
                        tmp.delete();
                    }
                    tmp.createNewFile();
                    OutputStream out = new FileOutputStream(tmp);
                    writer = new BufferedWriter(new OutputStreamWriter(out));

                    String line;
                    while (true) {
                        if (mStop) {
                            break;
                        }
                        line = reader.readLine();
                        writer.newLine();
                        writer.write(line);
                    }
                } catch (Exception e) {
                    e.printStackTrace();
                } finally {

                    try {
                        if (reader != null) {
                            reader.close();
                        }
                    } catch (IOException e) {
                        e.printStackTrace();
                    }

                    try {
                        if (writer != null) {
                            writer.close();
                        }
                    } catch (IOException e) {
                        e.printStackTrace();
                    }
                }

            }
        }).start();

    }<commit_msg> adb logcat -v time -d<commit_after>
package test.log.in.app;

import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.OutputStream;
import java.io.OutputStreamWriter;

import android.app.Activity;
import android.os.Bundle;

/**
 * Another great log cat open source project https://github.com/cheyiliu/Catlog
 */
public class MainActivity extends Activity {

    private boolean mStop = false;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);

        new Thread(new Runnable() {

            @Override
            public void run() {
                Process mLogcatProc = null;
                BufferedReader reader = null;
                BufferedWriter writer = null;
                try {
                    mLogcatProc = Runtime.getRuntime().exec(new String[] {
                            // "logcat", "WindowManager:I *:S"
                            // "logcat", ""
                            "logcat", "-v", "time", "-d"
                    });
                    reader = new BufferedReader(new InputStreamReader(mLogcatProc.getInputStream()));
                    File tmp = new File(getCacheDir() + File.separator
                            + "tmpLogInApp");
                    if (tmp.exists()) {
                        tmp.delete();
                    }
                    tmp.createNewFile();
                    OutputStream out = new FileOutputStream(tmp);
                    writer = new BufferedWriter(new OutputStreamWriter(out));

                    String line;
                    while (true) {
                        if (mStop) {
                            break;
                        }
                        line = reader.readLine();
                        if (line != null) {
                            writer.newLine();
                            writer.write(line);
                        }
                    }
                } catch (Exception e) {
                    e.printStackTrace();
                } finally {

                    try {
                        if (reader != null) {
                            reader.close();
                        }
                    } catch (IOException e) {
                        e.printStackTrace();
                    }

                    try {
                        if (writer != null) {
                            writer.close();
                        }
                    } catch (IOException e) {
                        e.printStackTrace();
                    }
                }

            }
        }).start();

    }
{'fraction_non_alphanumeric': 0.08995698522536001, 'fraction_numerical': 0.0, 'mean_word_length': 1.0296015180265654, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '5815662', 'n_tokens_mistral': 1240, 'n_tokens_neox': 1132, 'n_words': 266}