<commit_before>@file:JvmName("Gwen")

package com.badlogicgames.gwen

import com.esotericsoftware.minlog.Log.*
import com.esotericsoftware.minlog.Log
import com.google.gson.Gson
import com.google.gson.stream.JsonReader
import org.java_websocket.WebSocket
import org.java_websocket.handshake.ClientHandshake
import org.java_websocket.server.WebSocketServer
import java.io.*
import java.net.NetworkInterface
import java.net.ServerSocket
import java.net.Socket
import utils.MultiplexOutputStream
import java.lang.Exception
import java.net.InetSocketAddress

val appPath: File by lazy {
    val path = File(HotwordDetector::class.java.protectionDomain.codeSource.location.toURI().path);
    val pathText = path.absolutePath.replace('\\', '/');
    when {
        pathText.endsWith("build/classes/main") -> path.parentFile.parentFile.parentFile
        pathText.endsWith("build/libs") -> path.parentFile.parentFile
        pathText.endsWith("bin") -> path.parentFile
        !path.isDirectory -> path.parentFile
        else -> path
    }
}

class Logger : Log.Logger {
    val logs = mutableListOf<Pair<Long, String>>();
<commit_msg>Use current dir for appDir instead of crazy town<commit_after>@file:JvmName("Gwen")

package com.badlogicgames.gwen

import com.esotericsoftware.minlog.Log.*
import com.esotericsoftware.minlog.Log
import com.google.gson.Gson
import com.google.gson.stream.JsonReader
import org.java_websocket.WebSocket
import org.java_websocket.handshake.ClientHandshake
import org.java_websocket.server.WebSocketServer
import java.io.*
import java.net.NetworkInterface
import java.net.ServerSocket
import java.net.Socket
import utils.MultiplexOutputStream
import java.lang.Exception
import java.net.InetSocketAddress

val appPath: File by lazy {
    File(".").canonicalFile;
}

class Logger : Log.Logger {
    val logs = mutableListOf<Pair<Long, String>>();

{'fraction_non_alphanumeric': 0.10689470871191876, 'fraction_numerical': 0.0, 'mean_word_length': 4.905362776025236, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 12, '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': '7040394', 'n_tokens_mistral': 592, 'n_tokens_neox': 575, 'n_words': 112}