<commit_before>rootProject.name = "scipamato"

pluginManagement {
    repositories {
        @Suppress("UnstableApiUsage")
        gradlePluginPortal()
    }
}

val commonProjects = listOf("test", "utils", "entity", "persistence-api", "persistence-jooq-test", "persistence-jooq", "wicket")
val coreProjects = listOf("entity", "logic", "pubmed-api", "persistence-api", "persistence-jooq", "sync", "web")
val publicProjects = listOf("entity", "persistence-api", "persistence-jooq", "web")

include(*Module.scipamatoCommonProjects(commonProjects))
include(*Module.scipamatoCoreProjects(coreProjects))
include(*Module.scipamatoPublicProjects(publicProjects))

defineProjectPaths()

fun defineProjectPaths() {
    mapOf(
            "common" to commonProjects,
            "core" to coreProjects,
            "public" to publicProjects
    ).forEach { (subDir, projects) ->
        projects.forEach { projectName ->
            project(subDir.getPath(projectName)).projectDir = file("$subDir/$projectName")
        }
    }
}

fun String.getPath(project: String): String = when (this) {
    "common" -> Module.scipamatoCommon(project)
    "core" -> Module.scipamatoCore(project)
    "public" -> Module.scipamatoPublic(project)
    else -> throw IllegalArgumentException("project $project is not handled...")
}<commit_msg>Test Commit<commit_after>rootProject.name = "scipamato"

pluginManagement {
    repositories {
        @Suppress("UnstableApiUsage")
        gradlePluginPortal()
    }
}

val commonProjects = listOf("test", "utils", "entity", "persistence-api", "persistence-jooq-test", "persistence-jooq", "wicket")
val coreProjects = listOf("entity", "logic", "pubmed-api", "persistence-api", "persistence-jooq", "sync", "web")
val publicProjects = listOf("entity", "persistence-api", "persistence-jooq", "web")

include(*Module.scipamatoCommonProjects(commonProjects))
include(*Module.scipamatoCoreProjects(coreProjects))
include(*Module.scipamatoPublicProjects(publicProjects))

defineProjectPaths()

fun defineProjectPaths() {
    mapOf(
            "common" to commonProjects,
            "core" to coreProjects,
            "public" to publicProjects
    ).forEach { (subDir, projects) ->
        projects.forEach { projectName ->
            project(subDir.getPath(projectName)).projectDir = file("$subDir/$projectName")
        }
    }
}

fun String.getPath(project: String): String = when (this) {
    "common" -> Module.scipamatoCommon(project)
    "core" -> Module.scipamatoCore(project)
    "public" -> Module.scipamatoPublic(project)
    else -> throw IllegalArgumentException("project $project is not handled...")
}

{'fraction_non_alphanumeric': 0.14378090528718143, 'fraction_numerical': 0.0, 'mean_word_length': 4.270541082164328, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 15, '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': '4813796', 'n_tokens_mistral': 803, 'n_tokens_neox': 811, 'n_words': 145}