<commit_before>package hudson.slaves;

import hudson.model.Slave;
import hudson.model.Descriptor;
import hudson.util.StreamTaskListener;
import org.kohsuke.stapler.StaplerRequest;
import net.sf.json.JSONObject;

/**
 * {@link SlaveStartMethod} via JNLP.
 *
 * @author <NAME>
 * @author <NAME>
*/
public class JNLPStartMethod extends SlaveStartMethod {

    @Override
    public boolean isLaunchSupported() {
        return false;
    }

    public void launch(Slave.ComputerImpl computer, StreamTaskListener listener) {
        // do nothing as we cannot self start
    }

    //@DataBoundConstructor
    public JNLPStartMethod() {
    }

    public Descriptor<SlaveStartMethod> getDescriptor() {
        return DESCRIPTOR;
    }

    public static final Descriptor<SlaveStartMethod> DESCRIPTOR = new Descriptor<SlaveStartMethod>(JNLPStartMethod.class) {
        public String getDisplayName() {
            return "Launch slave agents via JNLP";
        }

        public SlaveStartMethod newInstance(StaplerRequest req, JSONObject formData) throws FormException {
            return new JNLPStartMethod();
        }
    };
}<commit_msg>simplified<commit_after>package hudson.slaves;

import hudson.model.Descriptor;
import hudson.model.Slave;
import hudson.util.StreamTaskListener;
import org.kohsuke.stapler.DataBoundConstructor;

/**
 * {@link SlaveStartMethod} via JNLP.
 *
 * @author <NAME>
 * @author <NAME>
*/
public class JNLPStartMethod extends SlaveStartMethod {
    @DataBoundConstructor
    public JNLPStartMethod() {
    }

    @Override
    public boolean isLaunchSupported() {
        return false;
    }

    public void launch(Slave.ComputerImpl computer, StreamTaskListener listener) {
        // do nothing as we cannot self start
    }

    public Descriptor<SlaveStartMethod> getDescriptor() {
        return DESCRIPTOR;
    }

    public static final Descriptor<SlaveStartMethod> DESCRIPTOR = new Descriptor<SlaveStartMethod>(JNLPStartMethod.class) {
        public String getDisplayName() {
            return "Launch slave agents via JNLP";
        }
    };
}
{'fraction_non_alphanumeric': 0.08637236084452975, 'fraction_numerical': 0.0, 'mean_word_length': 3.3528183716075155, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 13, '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': '5931634', 'n_tokens_mistral': 628, 'n_tokens_neox': 593, 'n_words': 147}