<commit_before>package com.arinerron.forux.core;

public class Logger {
    public static int PRINT_TO_CONSOLE = 0;
    public static int PRINT_TO_FILE = 1;
    public static int PRINT_TO_CONSOLE_AND_FILE = 2;
    
    private Game game = null;
    private int type = Logger.PRINT_TO_CONSOLE_AND_FILE;
    
    public Logger(Game game) {
        this.game = game;
    }
    
    private void log(Object o) {
        if(this.getLoggerType() % 2 == 0)
            System.out.println(o);
        if(this.getLoggerType() > 0)
            ;// make write to file later
    }
    
    public void log(String type, Object o) {
        log("[" + type.toUpperCase() + "] " + o);
    }
    
    public void info(Object o) {
        log("INFO", o);
    }
    
    public void warn(Object o) {
        log("WARN", o);
    }
    
    public void error(Object o) {
        log("ERROR", o);
    }
    
    public void error(Exception e) {
        log("ERROR", e.getMessage());
        e.printStackTrace();
    }
    
    public void setLoggerType(int type) {
        this.type = type;
    }
    
    public Game getGame() {
        return this.game;
    }
    
    public int getLoggerType() {<commit_msg>Add date and time info<commit_after>package com.arinerron.forux.core;

import java.text.SimpleDateFormat;
import java.util.Calendar;

public class Logger {
    public static int PRINT_TO_CONSOLE = 0;
    public static int PRINT_TO_FILE = 1;
    public static int PRINT_TO_CONSOLE_AND_FILE = 2;
    
    private Game game = null;
    private int type = Logger.PRINT_TO_CONSOLE_AND_FILE;    
    
    public Logger(Game game) {
        this.game = game;
    }
    
    private void log(Object o) {
        if(this.getLoggerType() % 2 == 0)
            System.out.println(o);
        if(this.getLoggerType() > 0)
            ;// make write to file later
    }
    
    public void log(String type, Object o) {
        log("[" + new SimpleDateFormat("yyyyMMdd_HHmmss").format(Calendar.getInstance().getTime()) + type.toUpperCase() + "] " + o);
    }
    
    public void info(Object o) {
        log("INFO", o);
    }
    
    public void warn(Object o) {
        log("WARN", o);
    }
    
    public void error(Object o) {
        log("ERROR", o);
    }
    
    public void error(Exception e) {
        log("ERROR", e.getMessage());
        e.printStackTrace();
    }
    
    public void setLoggerType(int type) {
        this.type = type;
    }
    
    public Game getGame() {
        return this.game;
    }
    
    public int getLoggerType() {
{'fraction_non_alphanumeric': 0.11430823807646827, 'fraction_numerical': 0.004729996058336618, 'mean_word_length': 2.0, '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': '3425385', 'n_tokens_mistral': 827, 'n_tokens_neox': 815, 'n_words': 202}