<commit_before>package kr.co.schoolholic.util;

import android.util.Log;

import kr.co.schoolholic.core.Global;

public class Trace {
	private final static String TAG = Global.instance.getApplicationName();

    private static enum Level {
        ERROR(0),
        WARNING(1),
        INFORMATION(2),
        DEBUG(3),
        VERBOSE(4);

        private int identity;

        Level(int identity) {
            this.identity = identity;
        }

        public boolean isAllow(Level filterLevel) {
            return filterLevel.identity <= this.identity;

        }
    }
	
	private static Level mFilterLevel = Level.VERBOSE;

    public static void setFilterLevel(Level level) {
        mFilterLevel = level;
    }

    public static Level getFilterLevel() {
        return mFilterLevel;
    }

	public static void e( String str )
	{
		if(Level.ERROR.isAllow(mFilterLevel)) {
			Exception e = new Exception();
			StackTraceElement element = e.getStackTrace()[1];
			Log.e( TAG, String.format("[%s %s] %s", element.getFileName(), element.getLineNumber(), str));
		}
	}

	public static void w( String str )
	{
		if(Level.ERROR.isAllow(mFilterLevel)) {
			Exception e = new Exception();<commit_msg>Update Trace.java<commit_after>package kr.co.schoolholic.util;

import android.util.Log;

import kr.co.schoolholic.core.Global;

public class Trace {
	private final static String TAG = Global.instance.getApplicationName();

    private static enum Level {
        ERROR(0),
        WARNING(1),
        INFORMATION(2),
        DEBUG(3),
        VERBOSE(4);

        private int identity;

        Level(int identity) {
            this.identity = identity;
        }

        public boolean isAllow(Level filterLevel) {
            return filterLevel.identity >= this.identity;

        }
    }
	
	private static Level mFilterLevel = Level.VERBOSE;

    public static void setFilterLevel(Level level) {
        mFilterLevel = level;
    }

    public static Level getFilterLevel() {
        return mFilterLevel;
    }

	public static void e( String str )
	{
		if(Level.ERROR.isAllow(mFilterLevel)) {
			Exception e = new Exception();
			StackTraceElement element = e.getStackTrace()[1];
			Log.e( TAG, String.format("[%s %s] %s", element.getFileName(), element.getLineNumber(), str));
		}
	}

	public static void w( String str )
	{
		if(Level.ERROR.isAllow(mFilterLevel)) {
			Exception e = new Exception();
{'fraction_non_alphanumeric': 0.10921926910299003, 'fraction_numerical': 0.0049833887043189366, 'mean_word_length': 2.723338485316847, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, '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': '1219315', 'n_tokens_mistral': 746, 'n_tokens_neox': 695, 'n_words': 178}