<commit_before>package org.jboss.pnc.jenkinsbuilddriver;

import com.offbytwo.jenkins.JenkinsServer;
import com.offbytwo.jenkins.model.Build;
import com.offbytwo.jenkins.model.BuildResult;
import com.offbytwo.jenkins.model.BuildWithDetails;
import com.offbytwo.jenkins.model.JobWithDetails;
import org.jboss.pnc.model.BuildStatus;
import org.jboss.pnc.model.ProjectBuildConfiguration;
import org.jboss.pnc.spi.builddriver.exception.BuildDriverException;
import org.jboss.pnc.spi.repositorymanager.RepositoryConfiguration;

import java.io.IOException;

/**
 * Created by <a href="mailto:<EMAIL>"><NAME></a> on 2014-11-29.
 */
public class BuildJob {
    private JenkinsServer jenkinsServer;
    private BuildJobConfig buildJobConfig;
    JobWithDetails job;

    public BuildJob(JenkinsServer jenkinsServer) {
        this.jenkinsServer = jenkinsServer;
    }

    public boolean configure(ProjectBuildConfiguration projectBuildConfiguration, RepositoryConfiguration repositoryConfiguration, boolean override) throws BuildDriverException {
        String jobName = projectBuildConfiguration.getProject().getName();
<commit_msg>Use configuration identifier for jenkins job name.<commit_after>package org.jboss.pnc.jenkinsbuilddriver;

import com.offbytwo.jenkins.JenkinsServer;
import com.offbytwo.jenkins.model.Build;
import com.offbytwo.jenkins.model.BuildResult;
import com.offbytwo.jenkins.model.BuildWithDetails;
import com.offbytwo.jenkins.model.JobWithDetails;
import org.jboss.pnc.model.BuildStatus;
import org.jboss.pnc.model.ProjectBuildConfiguration;
import org.jboss.pnc.spi.builddriver.exception.BuildDriverException;
import org.jboss.pnc.spi.repositorymanager.RepositoryConfiguration;

import java.io.IOException;

/**
 * Created by <a href="mailto:<EMAIL>"><NAME></a> on 2014-11-29.
 */
public class BuildJob {
    private JenkinsServer jenkinsServer;
    private BuildJobConfig buildJobConfig;
    JobWithDetails job;

    public BuildJob(JenkinsServer jenkinsServer) {
        this.jenkinsServer = jenkinsServer;
    }

    public boolean configure(ProjectBuildConfiguration projectBuildConfiguration, RepositoryConfiguration repositoryConfiguration, boolean override) throws BuildDriverException {
        String jobName = projectBuildConfiguration.getIdentifier();

{'fraction_non_alphanumeric': 0.08939526730937773, 'fraction_numerical': 0.007011393514460999, 'mean_word_length': 5.774480712166172, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, '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': '7593339', 'n_tokens_mistral': 681, 'n_tokens_neox': 648, 'n_words': 120}