<commit_before>package com.beust.kobalt.misc

import com.beust.kobalt.api.Kobalt
import com.beust.kobalt.homeDir
import com.beust.kobalt.kotlin.BuildFile
import com.beust.kobalt.SystemProperties
import java.io.File
import java.io.IOException
import java.nio.file.Files
import java.nio.file.Path
import java.nio.file.StandardCopyOption

public class KFiles {
    val kobaltJar : String
        get() {
            val jar = joinDir(distributionsDir, Kobalt.version, "kobalt/wrapper/kobalt-" + Kobalt.version + ".jar")
            val jarFile = File(jar)
            val envJar = System.getenv("KOBALT_JAR")
            if (! jarFile.exists() && envJar != null) {
                debug("Using kobalt jar $envJar")
                return File(envJar).absolutePath
            }
            if (! jarFile.exists()) {
                // Will only happen when building kobalt itself: the jar file might not be in the dist/ directory
                // yet since we're currently building it. Instead, use the classes directly
                return File(joinDir("build", "classes", "main")).absolutePath
            } else {
                return jar
            }
        }

    init {
        File(KOBALT_DOT_DIR).mkdirs()
    }
<commit_msg>File adjustment.<commit_after>package com.beust.kobalt.misc

import com.beust.kobalt.api.Kobalt
import com.beust.kobalt.homeDir
import com.beust.kobalt.kotlin.BuildFile
import com.beust.kobalt.SystemProperties
import java.io.File
import java.io.IOException
import java.nio.file.Files
import java.nio.file.Path
import java.nio.file.StandardCopyOption

public class KFiles {
    val kobaltJar : String
        get() {
            val envJar = System.getenv("KOBALT_JAR")
            if (envJar != null) {
                debug("Using kobalt jar $envJar")
                return File(envJar).absolutePath
            } else {
                val jar = joinDir(distributionsDir, Kobalt.version, "kobalt/wrapper/kobalt-" + Kobalt.version + ".jar")
                val jarFile = File(jar)
                if (! jarFile.exists()) {
                    return jarFile.absolutePath
                } else {
                    // Will only happen when building kobalt itself: the jar file might not be in the dist/ directory
                    // yet since we're currently building it. Instead, use the classes directly
                    debug("Couldn't find a kobalt.jar file, using build/classes/main")
                    return java.io.File(joinDir("build", "classes", "main")).absolutePath
                }
            }
        }

    init {
        File(KOBALT_DOT_DIR).mkdirs()
    }

{'fraction_non_alphanumeric': 0.09794207317073171, 'fraction_numerical': 0.0, 'mean_word_length': 2.0346820809248554, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '6073614', 'n_tokens_mistral': 796, 'n_tokens_neox': 757, 'n_words': 186}