<commit_before>package dreamteam.carpooling.appl.Util;

import java.nio.file.Path;
import java.nio.file.Paths;

/**
 * Created by nbirillo on 08.04.17.
 */
public class Parameters {

    //Параметры агента - стартовая вершина, конечная вершина,
    // вместимость машины, стоимость проезда за км

    private String startPath;
    private String finishPath;
    private String capacityPath;
    private String costPerKmPath;

    public Parameters() {
    }

    public Parameters(String startPath, String finishPath, String capacityPath, String costPerKmPath) {
        this.startPath = startPath;
        this.finishPath = finishPath;
        this.capacityPath = capacityPath;
        this.costPerKmPath = costPerKmPath;
    }

    public Parameters(String startPath, String finishPath) {
        this.startPath = startPath;
        this.finishPath = finishPath;
        this.capacityPath = null;
        this.costPerKmPath = null;
    }


    public boolean isComplete() {
        return startPath != null
                && finishPath != null
                && capacityPath   != null
                && costPerKmPath   != null;
    }

    public boolean havCar() {
        return capacityPath   != null
                && costPerKmPath   != null;
    }


    public final String getStartPath() {
        return startPath;
    }

    public final void setStartPath(String startPath) {
        this.startPath = startPath;
    }

    public final String getFinishPath() {
        return finishPath;
    }

    public final void setFinishPath(String finishPath) {
        this.finishPath = finishPath;
    }

    public final String getCapacityPath() {
        return capacityPath;<commit_msg>Исправлена генерация. Теперь генерируются не только водители.<commit_after>package dreamteam.carpooling.appl.Util;

import java.nio.file.Path;
import java.nio.file.Paths;

/**
 * Created by nbirillo on 08.04.17.
 */
public class Parameters {

    //Параметры агента - стартовая вершина, конечная вершина,
    // вместимость машины, стоимость проезда за км

    private String startPath;
    private String finishPath;
    private String capacityPath;
    private String costPerKmPath;

    public Parameters() {
    }

    public Parameters(String startPath, String finishPath, String capacityPath, String costPerKmPath) {
        this.startPath = startPath;
        this.finishPath = finishPath;
        this.capacityPath = capacityPath;
        this.costPerKmPath = costPerKmPath;
    }

    public Parameters(String startPath, String finishPath) {
        this.startPath = startPath;
        this.finishPath = finishPath;
        this.capacityPath = null;
        this.costPerKmPath = null;
    }


    public boolean isComplete() {
        return startPath != null
                && finishPath != null
                && capacityPath   != null
                && costPerKmPath   != null;
    }

    public boolean havCar() {
        return !capacityPath.equals("0");
    }


    public final String getStartPath() {
        return startPath;
    }

    public final void setStartPath(String startPath) {
        this.startPath = startPath;
    }

    public final String getFinishPath() {
        return finishPath;
    }

    public final void setFinishPath(String finishPath) {
        this.finishPath = finishPath;
    }

    public final String getCapacityPath() {
        return capacityPath;
{'fraction_non_alphanumeric': 0.0800942285041225, 'fraction_numerical': 0.0038280329799764428, 'mean_word_length': 2.4175050301810863, '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': '3439858', 'n_tokens_mistral': 998, 'n_tokens_neox': 976, 'n_words': 246}