<commit_before>package filelog;

import android.os.Environment;

import java.io.File;
import java.io.FileWriter;
import java.io.IOException;
import java.util.Date;

public class Log {

    private static final String token = " : ";
    private static final long MAX_LEN = 300 * 1024;//50 Kb

    public static void d(String tag, String message) {
        try {
            boolean noClear;
            File file = new File(Environment.getExternalStorageDirectory(), "log_j2meloader.txt");
            if (file.length() > MAX_LEN) {
                noClear = false;
            } else {
                noClear = true;
            }
            FileWriter fw = new FileWriter(file, noClear);
            String msg = "\n" + new Date().toLocaleString() + token + tag + token + message;
            fw.write(msg);
            fw.flush();
            fw.close();
        } catch (IOException e) {
            android.util.Log.e("L", "err in logging", e);
        }
    }
}<commit_msg>Disable logging in file<commit_after>package filelog;

import android.os.Environment;

import java.io.File;
import java.io.FileWriter;
import java.io.IOException;
import java.util.Date;

public class Log {

    private static final String token = " : ";
    private static final long MAX_LEN = 300 * 1024;//50 Kb

    public static void d(String tag, String message) {
        /*try {
            boolean noClear;
            File file = new File(Environment.getExternalStorageDirectory(), "log_j2meloader.txt");
            if (file.length() > MAX_LEN) {
                noClear = false;
            } else {
                noClear = true;
            }
            FileWriter fw = new FileWriter(file, noClear);
            String msg = "\n" + new Date().toLocaleString() + token + tag + token + message;
            fw.write(msg);
            fw.flush();
            fw.close();
        } catch (IOException e) {
            android.util.Log.e("L", "err in logging", e);
        }*/
    }
}
{'fraction_non_alphanumeric': 0.11550151975683891, 'fraction_numerical': 0.010131712259371834, 'mean_word_length': 1.9129793510324484, 'pattern_counts': {'":': 0, '<': 3, '<?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': '1666938', 'n_tokens_mistral': 582, 'n_tokens_neox': 550, 'n_words': 155}