<commit_before>package net.contargo.iris.connection.dto;

import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;

import net.contargo.iris.connection.AbstractSubConnection;
import net.contargo.iris.connection.MainRunConnection;
import net.contargo.iris.connection.SeaportSubConnection;
import net.contargo.iris.connection.TerminalSubConnection;
import net.contargo.iris.route.RouteType;
import net.contargo.iris.seaport.Seaport;
import net.contargo.iris.terminal.Terminal;

import net.contargo.validation.bigdecimal.BigDecimalValidate;

import java.math.BigDecimal;
import java.math.BigInteger;

import java.util.List;
import java.util.function.Function;

import javax.validation.constraints.NotNull;

import static java.util.stream.Collectors.toList;


/**
 * @author  <NAME> - <EMAIL>
 */
public final class MainRunConnectionDto {

    private static final long TEN = 10L;
    private final Long id;

    @NotNull
    private final String seaportUid;

    @NotNull
    private final String terminalUid;

    @BigDecimalValidate(minValue = 0, minDecimalPlaces = 1L, maxDecimalPlaces = TEN, maxFractionalPlaces = TEN)
    @NotNull
    private final BigDecimal bargeDieselDistance;

    @BigDecimalValidate(minValue = 0, minDecimalPlaces = 1L, maxDecimalPlaces = TEN, maxFractionalPlaces = TEN)
    @NotNull
    private final BigDecimal railDieselDistance;

    @BigDecimalValidate(minValue = 0, minDecimalPlaces = 1L, maxDecimalPlaces = TEN, maxFractionalPlaces = TEN)
    @NotNull
    private final BigDecimal railElectricDistance;

    @NotNull
    private final RouteType routeType;

    @NotNull
    private final Boolean enabled;
    private final List<AbstractSubConnectionDto> subConnections;

    @JsonCreator
    public MainRunConnectionDto(@JsonProperty("id") Long id,
        @JsonProperty("seaportId") String seaportUid,<commit_msg>Remove dto constructor from sonar analysis<commit_after>package net.contargo.iris.connection.dto;

import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;

import net.contargo.iris.connection.AbstractSubConnection;
import net.contargo.iris.connection.MainRunConnection;
import net.contargo.iris.connection.SeaportSubConnection;
import net.contargo.iris.connection.TerminalSubConnection;
import net.contargo.iris.route.RouteType;
import net.contargo.iris.seaport.Seaport;
import net.contargo.iris.terminal.Terminal;

import net.contargo.validation.bigdecimal.BigDecimalValidate;

import java.math.BigDecimal;
import java.math.BigInteger;

import java.util.List;
import java.util.function.Function;

import javax.validation.constraints.NotNull;

import static java.util.stream.Collectors.toList;


/**
 * @author  <NAME> - <EMAIL>
 */
public final class MainRunConnectionDto {

    private static final long TEN = 10L;
    private final Long id;

    @NotNull
    private final String seaportUid;

    @NotNull
    private final String terminalUid;

    @BigDecimalValidate(minValue = 0, minDecimalPlaces = 1L, maxDecimalPlaces = TEN, maxFractionalPlaces = TEN)
    @NotNull
    private final BigDecimal bargeDieselDistance;

    @BigDecimalValidate(minValue = 0, minDecimalPlaces = 1L, maxDecimalPlaces = TEN, maxFractionalPlaces = TEN)
    @NotNull
    private final BigDecimal railDieselDistance;

    @BigDecimalValidate(minValue = 0, minDecimalPlaces = 1L, maxDecimalPlaces = TEN, maxFractionalPlaces = TEN)
    @NotNull
    private final BigDecimal railElectricDistance;

    @NotNull
    private final RouteType routeType;

    @NotNull
    private final Boolean enabled;
    private final List<AbstractSubConnectionDto> subConnections;

    @JsonCreator
    public MainRunConnectionDto(@JsonProperty("id") Long id, // NOSONAR dtos should be final
        @JsonProperty("seaportId") String seaportUid,
{'fraction_non_alphanumeric': 0.0820140150532053, 'fraction_numerical': 0.004152608357124318, 'mean_word_length': 4.892966360856269, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 4}, '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': '1794665', 'n_tokens_mistral': 1200, 'n_tokens_neox': 1161, 'n_words': 255}