<commit_before>
plugins {
    id("io.spring.dependency-management") version "1.0.6.RELEASE"
    id("com.github.johnrengelman.shadow") version "4.0.2"
    id("org.jetbrains.kotlin.jvm") version "1.2.61"
    id("org.jetbrains.kotlin.kapt") version "1.2.61"
    id("org.jetbrains.kotlin.plugin.allopen") version "1.2.61"
}

apply(plugin = "application")

version = "0.1"
group = "mifuchi"
val kotlinVersion = "1.3.21"
val spekVersion = "1.1.5"
val junitVersion = "5.1.0"

repositories {
    mavenLocal()
    mavenCentral()
    maven(url = "https://jcenter.bintray.com")
}

dependencyManagement {
    imports {
        mavenBom("io.micronaut:micronaut-bom:1.1.0.M1")
    }
}


dependencies {
    compile("io.micronaut", "micronaut-http-client")
    compile("io.micronaut", "micronaut-http-server-netty")
    compile("org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlinVersion")
    compile("org.jetbrains.kotlin:kotlin-reflect:$kotlinVersion")
    compile("io.micronaut:micronaut-runtime")
    compile("javax.annotation:javax.annotation-api")
    kapt("io.micronaut:micronaut-inject-java")
    kapt("io.micronaut:micronaut-validation")
    kaptTest("io.micronaut:micronaut-inject-java")
    runtime("ch.qos.logback:logback-classic:1.2.3")
    runtime("com.fasterxml.jackson.module:jackson-module-kotlin:2.9.7")
    testCompile("junit:junit:4.12")
    testCompile("io.micronaut:micronaut-inject-java")
    testCompile("org.hamcrest:hamcrest-all:1.3")
    testCompile("org.junit.jupiter:junit-jupiter-api:5.1.0")
    testCompile("org.jetbrains.spek:spek-api:1.1.5")
    testRuntime("org.junit.jupiter:junit-jupiter-engine:5.1.0")
    testRuntime("org.jetbrains.spek:spek-junit-platform-engine:1.1.5")
}

tasks.shadowJar {
    mergeServiceFiles()
}


tasks.test {
    useJUnitPlatform()
}

configure<ApplicationPluginConvention> {
    mainClassName = "org.benji.mifuchi.Application"
}

tasks.named<JavaExec>("run") {<commit_msg>➕ : add spek2 as test library<commit_after>
plugins {
    id("io.spring.dependency-management") version "1.0.6.RELEASE"
    id("com.github.johnrengelman.shadow") version "4.0.2"
    id("org.jetbrains.kotlin.jvm") version "1.2.61"
    id("org.jetbrains.kotlin.kapt") version "1.2.61"
    id("org.jetbrains.kotlin.plugin.allopen") version "1.2.61"
}

apply(plugin = "application")

version = "0.1"
group = "mifuchi"
val kotlinVersion = "1.3.21"
val spekVersion = "2.0.0"
val junitVersion = "5.1.0"

repositories {
    mavenLocal()
    mavenCentral()
    maven(url = "https://jcenter.bintray.com")
}

dependencyManagement {
    imports {
        mavenBom("io.micronaut:micronaut-bom:1.1.0.M1")
    }
}


dependencies {
    compile("io.micronaut", "micronaut-http-client")
    compile("io.micronaut", "micronaut-http-server-netty")
    compile("org.jetbrains.kotlin","kotlin-stdlib-jdk8", kotlinVersion)
    compile("org.jetbrains.kotlin","kotlin-reflect", kotlinVersion)
    compile("javax.annotation:javax.annotation-api")
    compile("io.micronaut:micronaut-runtime")
    kapt("io.micronaut:micronaut-inject-java")
    kapt("io.micronaut:micronaut-validation")
    kaptTest("io.micronaut:micronaut-inject-java")
    runtime("ch.qos.logback:logback-classic:1.2.3")
    runtime("com.fasterxml.jackson.module:jackson-module-kotlin:2.9.7")
    testCompile("io.micronaut:micronaut-inject-java")
    testCompile("org.hamcrest:hamcrest-all:1.3")
    testCompile("org.junit.jupiter:junit-jupiter-api:5.1.0")
    testRuntime("org.junit.jupiter:junit-jupiter-engine:5.1.0")
    testImplementation("org.jetbrains.kotlin", "kotlin-test", kotlinVersion)
    testImplementation("org.spekframework.spek2", "spek-dsl-jvm", spekVersion)
    testRuntimeOnly("org.spekframework.spek2", "spek-runner-junit5", spekVersion)
}

tasks.shadowJar {
    mergeServiceFiles()
}


tasks.test {
    useJUnitPlatform{
        includeEngines("spek2")
    }
}

configure<ApplicationPluginConvention> {
    mainClassName = "org.benji.mifuchi.Application"
}

tasks.named<JavaExec>("run") {
{'fraction_non_alphanumeric': 0.1672965482489292, 'fraction_numerical': 0.02821869488536155, 'mean_word_length': 4.386702849389416, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, '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': '6911539', 'n_tokens_mistral': 1593, 'n_tokens_neox': 1504, 'n_words': 152}