<commit_before>package com.github.jrubygradle.jar

import groovy.transform.TupleConstructor
import org.gradle.api.GradleException
import org.gradle.api.Task

/**
 * @author <NAME>.
 *
 * @since 0.1.1
 */
@TupleConstructor
class BootstrapClassExtension {

    static final String BOOTSTRAP_TEMPLATE_PATH = 'META-INF/gradle-plugins/bootstrap.java.template'

    /** The task this extension instance is attached to.
     *
     * @since 0.1.1
     *
     */
    Task task

    /** The location of the Ruby initialisation/bootstrap script.
     * The default bootstrap class will look for a file in this relative location.
     * It is the user's responsibility that this script is added to the Jar.<commit_msg>Towards addressing #14. Register some additional properties on the task when the extension is associated.<commit_after>package com.github.jrubygradle.jar

import groovy.transform.TupleConstructor
import org.gradle.api.GradleException
import org.gradle.api.Task

/**
 * @author <NAME>.
 *
 * @since 0.1.1
 */
@TupleConstructor
class BootstrapClassExtension {

    static final String BOOTSTRAP_TEMPLATE_PATH = 'META-INF/gradle-plugins/bootstrap.java.template'

    /** During construction the inputs of Task will be updated to also look here for updates
     *
     * @param t Task this extension is associated to
     */
    BootstrapClassExtension(Task t) {
        task = t

        task.inputs.property 'jrubyInitScript', { -> this.initScript}
        task.inputs.property 'jrubyCompatMode', { -> this.compatMode}
        task.inputs.property 'jrubySource',     { -> this.getSource()}
    }

    /** The task this extension instance is attached to.
     *
     * @since 0.1.1
     *
     */
    Task task

    /** The location of the Ruby initialisation/bootstrap script.
     * The default bootstrap class will look for a file in this relative location.
     * It is the user's responsibility that this script is added to the Jar.
{'fraction_non_alphanumeric': 0.0886141164348274, 'fraction_numerical': 0.0072127769191138585, 'mean_word_length': 3.0712788259958073, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 8, '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': '7393723', 'n_tokens_mistral': 563, 'n_tokens_neox': 527, 'n_words': 179}