<commit_before>package com.tikal.jenkins.plugins.multijob.node;

import hudson.Extension;
import hudson.model.AbstractBuild;
import hudson.model.Action;
import hudson.model.Descriptor;
import hudson.model.TaskListener;
import hudson.plugins.parameterizedtrigger.AbstractBuildParameters;
import org.kohsuke.stapler.DataBoundConstructor;

import java.io.IOException;

/**
 * This parameter allows sub-builds of multi-job build (started after resume/rebuild) to be executed on the same node
 * that these parameters in the original build (that was resumed/rebuilded).
 */
@SuppressWarnings("unused") // used by Jenkins
public final class SameNodeAsPrevParameters extends AbstractBuildParameters {

    @DataBoundConstructor
    public SameNodeAsPrevParameters() {
    }

    @Override
    public Action getAction(AbstractBuild<?, ?> build, TaskListener listener) throws IOException, InterruptedException, DontTriggerException {
        return new SameNodeAsPrevAction();
    }

    @Extension
    public static class DescriptorImpl extends Descriptor<AbstractBuildParameters> {
        @Override
        public String getDisplayName() {
            return "Build on the same node that the previous build";
        }
    }
}<commit_msg>Fix display name<commit_after>package com.tikal.jenkins.plugins.multijob.node;

import hudson.Extension;
import hudson.model.AbstractBuild;
import hudson.model.Action;
import hudson.model.Descriptor;
import hudson.model.TaskListener;
import hudson.plugins.parameterizedtrigger.AbstractBuildParameters;
import org.kohsuke.stapler.DataBoundConstructor;

import java.io.IOException;

/**
 * This parameter allows sub-builds of multi-job build (started after resume/rebuild) to be executed on the same node
 * that these parameters in the original build (that was resumed/rebuilded).
 */
@SuppressWarnings("unused") // used by Jenkins
public final class SameNodeAsPrevParameters extends AbstractBuildParameters {

    @DataBoundConstructor
    public SameNodeAsPrevParameters() {
    }

    @Override
    public Action getAction(AbstractBuild<?, ?> build, TaskListener listener) throws IOException, InterruptedException, DontTriggerException {
        return new SameNodeAsPrevAction();
    }

    @Extension
    public static class DescriptorImpl extends Descriptor<AbstractBuildParameters> {
        @Override
        public String getDisplayName() {
            return "Build on the same node as the previous build";
        }
    }
}
{'fraction_non_alphanumeric': 0.07545638945233266, 'fraction_numerical': 0.0, 'mean_word_length': 4.372549019607843, 'pattern_counts': {'":': 0, '<': 7, '<?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': '262898', 'n_tokens_mistral': 649, 'n_tokens_neox': 627, 'n_words': 188}