<commit_before>package com.cognifide.gradle.aem.environment.docker.base

import org.buildobjects.process.ExternalProcessFailureException
import org.buildobjects.process.ProcBuilder
import java.io.File

object CygPath {

    fun calculate(file: File) = calculate(file.toString())

    fun calculate(path: String): String {
        return try {
            ProcBuilder("cygpath")
                    .withArg(path)
                    .run()
                    .outputString.trim()
        } catch (e: ExternalProcessFailureException) {
            throw DockerException("Cannot calculate 'cygpath' for path: $path", e)
        }
    }

}<commit_msg>Minor<commit_after>package com.cognifide.gradle.aem.environment.docker.base

import java.io.File
import org.buildobjects.process.ExternalProcessFailureException
import org.buildobjects.process.ProcBuilder

object CygPath {

    fun calculate(file: File) = calculate(file.toString())

    fun calculate(path: String): String {
        return try {
            ProcBuilder("cygpath")
                    .withArg(path)
                    .run()
                    .outputString.trim()
        } catch (e: ExternalProcessFailureException) {
            throw DockerException("Cannot calculate 'cygpath' for path: $path", e)
        }
    }
}
{'fraction_non_alphanumeric': 0.09930178432893716, 'fraction_numerical': 0.0, 'mean_word_length': 2.449197860962567, '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': '2017917', 'n_tokens_mistral': 361, 'n_tokens_neox': 339, 'n_words': 70}