<commit_before>package plugin

import org.gradle.api.Plugin
import org.gradle.api.Project
import org.gradle.kotlin.dsl.closureOf
import org.gradle.testing.jacoco.plugins.JacocoPluginExtension
import org.gradle.testing.jacoco.tasks.JacocoReport

class BuildSettingHelperPlugin : Plugin<Project> {

    override fun apply(project: Project) {
        project.extensions.add("isCi", System.getenv("CI")?.toBoolean() ?: false)
        addJacocoSettings(project)
    }

    private fun addJacocoSettings(project: Project) {
        project.closureOf<JacocoPluginExtension> {
            toolVersion = "0.8.0"
        }
        project.tasks.create("jacocoTestReport", JacocoReport::class.java) {
            dependsOn("testDebugUnitTest")
            reports {
                xml.isEnabled = true<commit_msg>Fix incorrect setting<commit_after>package plugin

import org.gradle.api.Plugin
import org.gradle.api.Project
import org.gradle.kotlin.dsl.getByName
import org.gradle.testing.jacoco.plugins.JacocoPluginExtension
import org.gradle.testing.jacoco.tasks.JacocoReport

class BuildSettingHelperPlugin : Plugin<Project> {

    override fun apply(project: Project) {
        project.extensions.add("isCi", System.getenv("CI")?.toBoolean() ?: false)
        addJacocoSettings(project)
    }

    private fun addJacocoSettings(project: Project) {
        project.extensions.getByName<JacocoPluginExtension>("jacoco").apply {
            toolVersion = "0.8.0"
        }
        project.tasks.create("jacocoTestReport", JacocoReport::class.java) {
            dependsOn("testDebugUnitTest")
            reports {
                xml.isEnabled = true
{'fraction_non_alphanumeric': 0.10603290676416818, 'fraction_numerical': 0.003656307129798903, 'mean_word_length': 3.3554376657824934, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, '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': '7246679', 'n_tokens_mistral': 496, 'n_tokens_neox': 461, 'n_words': 73}