<commit_before>package net.dump247.jenkins.plugins.dockerbuild;

import com.google.common.collect.ImmutableList;
import hudson.Extension;
import jenkins.model.GlobalConfiguration;
import net.sf.json.JSONObject;
import org.kohsuke.stapler.StaplerRequest;

import java.util.List;

import static com.google.common.base.Preconditions.checkNotNull;

/**
 * Global configuration options for the plugin.
 * <p/>
 * The UI for this configuration is defined in <code>resources/FULL/CLASS/NAME/config.jelly</code>.
 * The configuration shows up in the jenkins server settings page.
 */
@Extension
public class DockerGlobalConfiguration extends GlobalConfiguration {
    private List<LabeledDockerImage> _labeledImages = ImmutableList.of();
    private String _jobRepositoryName = "docker/job";

    public DockerGlobalConfiguration() {
        // Classes deriving from GlobalConfiguration must call load() in their constructor
        load();
    }

    @Override
    public boolean configure(final StaplerRequest req, final JSONObject json) throws FormException {
        req.bindJSON(this, json);
        save();
        return true;
    }

    /**
     * Load the docker configuration options registered with the current Jenkins runtime.
     * <p/>
     * See {@link jenkins.model.GlobalConfiguration#all()}
     */
    public static DockerGlobalConfiguration get() {
        return GlobalConfiguration.all().get(DockerGlobalConfiguration.class);
    }

    public List<LabeledDockerImage> getLabeledImages() {
        return _labeledImages;
    }

    public void setLabeledImages(final List<LabeledDockerImage> labeledImages) {
        checkNotNull(labeledImages);
        _labeledImages = ImmutableList.copyOf(labeledImages);
    }

    public String getJobRepositoryName() {
        return _jobRepositoryName;
    }

    public void setJobRepositoryName(String jobRepositoryName) {
        checkNotNull(jobRepositoryName);
        _jobRepositoryName = jobRepositoryName;
    }
}<commit_msg>Remove unused configuration option<commit_after>package net.dump247.jenkins.plugins.dockerbuild;

import com.google.common.collect.ImmutableList;
import hudson.Extension;
import jenkins.model.GlobalConfiguration;
import net.sf.json.JSONObject;
import org.kohsuke.stapler.StaplerRequest;

import java.util.List;

import static com.google.common.base.Preconditions.checkNotNull;

/**
 * Global configuration options for the plugin.
 * <p/>
 * The UI for this configuration is defined in <code>resources/FULL/CLASS/NAME/config.jelly</code>.
 * The configuration shows up in the jenkins server settings page.
 */
@Extension
public class DockerGlobalConfiguration extends GlobalConfiguration {
    private List<LabeledDockerImage> _labeledImages = ImmutableList.of();

    public DockerGlobalConfiguration() {
        // Classes deriving from GlobalConfiguration must call load() in their constructor
        load();
    }

    @Override
    public boolean configure(final StaplerRequest req, final JSONObject json) throws FormException {
        req.bindJSON(this, json);
        save();
        return true;
    }

    /**
     * Load the docker configuration options registered with the current Jenkins runtime.
     * <p/>
     * See {@link jenkins.model.GlobalConfiguration#all()}
     */
    public static DockerGlobalConfiguration get() {
        return GlobalConfiguration.all().get(DockerGlobalConfiguration.class);
    }

    public List<LabeledDockerImage> getLabeledImages() {
        return _labeledImages;
    }

    public void setLabeledImages(final List<LabeledDockerImage> labeledImages) {
        checkNotNull(labeledImages);
        _labeledImages = ImmutableList.copyOf(labeledImages);
    }
}
{'fraction_non_alphanumeric': 0.08574519880984582, 'fraction_numerical': 0.0016229375169055991, 'mean_word_length': 3.796368352788586, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 17, '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': '6652330', 'n_tokens_mistral': 998, 'n_tokens_neox': 947, 'n_words': 251}