<commit_before>import org.gradle.api.tasks.GradleBuild

fun isProjectDir(candidate: File) =
    candidate.isDirectory && File(candidate, "settings.gradle").exists()

val subProjectTasks = rootDir.listFiles().filter { isProjectDir(it) }.map { subProjectDir ->
    task<GradleBuild>("prepare-${subProjectDir.name}") {
        setDir(subProjectDir)
    }
}

setDefaultTasks(subProjectTasks.map { it.name })<commit_msg>Skip testing the `plugin-compiled-against-kotlin-1.0` for JDK 9<commit_after>import org.gradle.api.tasks.GradleBuild

fun isProjectDir(candidate: File) =
    candidate.isDirectory && File(candidate, "settings.gradle").exists()

fun isCompatibleWithJDK(candidate: File) =
    candidate.name.endsWith("kotlin-1.0") && JavaVersion.current() < JavaVersion.VERSION_1_9

val subProjectTasks = rootDir
    .listFiles()
    .filter { isProjectDir(it) }
    .filter { isCompatibleWithJDK(it) }
    .map { subProjectDir ->
    task<GradleBuild>("prepare-${subProjectDir.name}") {
        setDir(subProjectDir)
    }
}

setDefaultTasks(subProjectTasks.map { it.name })
{'fraction_non_alphanumeric': 0.13712686567164178, 'fraction_numerical': 0.0065298507462686565, 'mean_word_length': 4.707446808510638, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 7, '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': '2611492', 'n_tokens_mistral': 360, 'n_tokens_neox': 354, 'n_words': 52}