<commit_before>/*
 * Copyright 2018 Google Inc. All Rights Reserved.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

plugins {
    id("org.jetbrains.intellij") version "0.3.7"
    id("com.diffplug.gradle.spotless") version "3.14.0"

    kotlin("jvm") version "1.2.61"
}

allprojects {
    repositories {
        jcenter()
    }

    apply(plugin = "org.jetbrains.intellij")
    apply(plugin = "kotlin")
    apply(plugin = "com.diffplug.gradle.spotless")

    intellij {
        setPlugins("yaml")

        type = project.properties["ideaEdition"].toString()
        version = project.properties["ideaVersion"].toString()
        intellijRepo = project.properties["intellijRepoUrl"].toString()
    }

    spotless {
        kotlin {
            target("**/src/**/*.kt")
            // Set ktlint to follow the Android Style Guide for source files
            ktlint().userData(mapOf("android" to "true"))
        }

        kotlinGradle {
            target("**/*.gradle.kts")
            ktlint()
        }
    }
}

dependencies {
    compile(project(":skaffold"))
}<commit_msg>Changed Kotlin to compile to 1.8 bytecodes. (#42)<commit_after>import org.jetbrains.kotlin.gradle.tasks.KotlinCompile

/*
 * Copyright 2018 Google Inc. All Rights Reserved.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

plugins {
    id("org.jetbrains.intellij") version "0.3.7"
    id("com.diffplug.gradle.spotless") version "3.14.0"

    kotlin("jvm") version "1.2.61"
}

allprojects {
    repositories {
        jcenter()
    }

    apply(plugin = "org.jetbrains.intellij")
    apply(plugin = "kotlin")
    apply(plugin = "com.diffplug.gradle.spotless")

    intellij {
        setPlugins("yaml")

        type = project.properties["ideaEdition"].toString()
        version = project.properties["ideaVersion"].toString()
        intellijRepo = project.properties["intellijRepoUrl"].toString()
    }

    tasks.withType<KotlinCompile> {
        kotlinOptions.jvmTarget = "1.8"
    }

    spotless {
        kotlin {
            target("**/src/**/*.kt")
            // Set ktlint to follow the Android Style Guide for source files
            ktlint().userData(mapOf("android" to "true"))
        }

        kotlinGradle {
            target("**/*.gradle.kts")
            ktlint()
        }
    }
}

dependencies {
    compile(project(":skaffold"))
}
{'fraction_non_alphanumeric': 0.1183467142432352, 'fraction_numerical': 0.013083556348498365, 'mean_word_length': 2.7130242825607063, 'pattern_counts': {'":': 2, '<': 4, '<?xml version=': 0, '>': 4, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '5347693', 'n_tokens_mistral': 1023, 'n_tokens_neox': 964, 'n_words': 281}