<commit_before>package com.griddynamics.jagger.user;

import com.griddynamics.jagger.engine.e1.scenario.*;

import java.util.concurrent.atomic.AtomicBoolean;

/**
 * Created with IntelliJ IDEA.
 * User: evelina
 * Date: 2/16/13
 * Time: 7:18 PM
 * To change this template use File | Settings | File Templates.
 */
public class TestConfiguration {

    private WorkloadClockConfiguration clockConfiguration;
    private String id;
    private TerminateStrategyConfiguration terminateStrategyConfiguration;
    private WorkloadTask prototype;
    private int number;
    private String testGroupName;

    public void setNumber(int number) {
        this.number = number;
    }

    public void setTestGroupName(String testGroupName) {
        this.testGroupName = testGroupName;
    }

    public WorkloadTask getPrototype() {
        return prototype;
    }

    public void setPrototype(WorkloadTask prototype) {
        this.prototype = prototype;
    }

    public void setTestDescription(WorkloadTask prototype) {
        this.prototype = prototype;
    }

    public WorkloadClockConfiguration getClockConfiguration() {
        return clockConfiguration;
    }

    public void setLoad(WorkloadClockConfiguration clockConfiguration) {
        this.clockConfiguration = clockConfiguration;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public void setName(String id) {
        this.id = id;
    }

    public TerminateStrategyConfiguration getTerminateStrategyConfiguration() {
        return terminateStrategyConfiguration;
    }

    public void setTerminateStrategy(TerminateStrategyConfiguration terminateStrategyConfiguration) {
        this.terminateStrategyConfiguration = terminateStrategyConfiguration;
    }

    public String getName() {
        return String.format("%s [%s]", testGroupName, id);
    }

    public boolean isAttendant() {
        //TODO
        return terminateStrategyConfiguration instanceof InfiniteTerminationStrategyConfiguration;<commit_msg>Remove brackets when test id is empty<commit_after>package com.griddynamics.jagger.user;

import com.griddynamics.jagger.engine.e1.scenario.*;

import java.util.concurrent.atomic.AtomicBoolean;

/**
 * Created with IntelliJ IDEA.
 * User: evelina
 * Date: 2/16/13
 * Time: 7:18 PM
 * To change this template use File | Settings | File Templates.
 */
public class TestConfiguration {

    private WorkloadClockConfiguration clockConfiguration;
    private String id;
    private TerminateStrategyConfiguration terminateStrategyConfiguration;
    private WorkloadTask prototype;
    private int number;
    private String testGroupName;

    public void setNumber(int number) {
        this.number = number;
    }

    public void setTestGroupName(String testGroupName) {
        this.testGroupName = testGroupName;
    }

    public WorkloadTask getPrototype() {
        return prototype;
    }

    public void setPrototype(WorkloadTask prototype) {
        this.prototype = prototype;
    }

    public void setTestDescription(WorkloadTask prototype) {
        this.prototype = prototype;
    }

    public WorkloadClockConfiguration getClockConfiguration() {
        return clockConfiguration;
    }

    public void setLoad(WorkloadClockConfiguration clockConfiguration) {
        this.clockConfiguration = clockConfiguration;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public void setName(String id) {
        this.id = id;
    }

    public TerminateStrategyConfiguration getTerminateStrategyConfiguration() {
        return terminateStrategyConfiguration;
    }

    public void setTerminateStrategy(TerminateStrategyConfiguration terminateStrategyConfiguration) {
        this.terminateStrategyConfiguration = terminateStrategyConfiguration;
    }

    public String getName() {
        if ("".equals(id)){
            return testGroupName;
        }
        return String.format("%s [%s]", testGroupName, id);
    }

    public boolean isAttendant() {
        //TODO
        return terminateStrategyConfiguration instanceof InfiniteTerminationStrategyConfiguration;
{'fraction_non_alphanumeric': 0.07105637138796779, 'fraction_numerical': 0.004263382283278067, 'mean_word_length': 3.21036889332004, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '4630096', 'n_tokens_mistral': 1082, 'n_tokens_neox': 1029, 'n_words': 271}