<commit_before>package sg.ncl.service.experiment.web;

import sg.ncl.service.experiment.data.jpa.ExperimentEntity;
import sg.ncl.service.experiment.domain.Experiment;

/**
 * Created by Desmond.
 */
public class ExperimentInfo implements Experiment {

    private Long id;
    private String userId;
    private String teamId;
    private String teamName;
    private String name;
    private String description;
    private String nsFile;
    private String nsFileContent;
    private Integer idleSwap;
    private Integer maxDuration;

    public ExperimentInfo(final Long id,
                          final String userId,
                          final String teamId,
                          final String teamName,
                          final String name,
                          final String description,
                          final String nsFile,
                          final String nsFileContent,
                          final Integer idleSwap,
                          final Integer maxDuration) {
        this.id = id;
        this.userId = userId;
        this.teamId = teamId;
        this.teamName = teamName;
        this.name = name;
        this.description = description;
        this.nsFile = nsFile;
        this.nsFileContent = nsFileContent;
        this.idleSwap = idleSwap;
        this.maxDuration = maxDuration;
    }

    public ExperimentInfo(final Experiment experiment) {
        this(experiment.getId(),
                experiment.getUserId(),
                experiment.getTeamId(),
                experiment.getTeamName(),
                experiment.getName(),
                experiment.getDescription(),
                experiment.getNsFile(),
                experiment.getNsFileContent(),
                experiment.getIdleSwap(),
                experiment.getMaxDuration());
    }

    public ExperimentInfo(final ExperimentEntity experimentEntity) {
        this(experimentEntity.getId(),
                experimentEntity.getUserId(),
                experimentEntity.getTeamId(),
                experimentEntity.getTeamName(),
                experimentEntity.getName(),
                experimentEntity.getDescription(),
                experimentEntity.getNsFile(),
                experimentEntity.getNsFileContent(),
                experimentEntity.getIdleSwap(),
                experimentEntity.getMaxDuration());
    }

    @Override
    public Long getId() {
        return id;
    }

    @Override
    public String getUserId() {
        return userId;
    }

    @Override
    public String getTeamId() {
        return teamId;
    }

    @Override
    public String getTeamName() {
        return teamName;
    }

    @Override
    public String getName() {
        return name;
    }

    @Override
    public String getDescription() {
        return description;
    }

    @Override
    public String getNsFile() {
        return nsFile;
    }

    @Override
    public String getNsFileContent() {
        return nsFileContent;
    }

    @Override
    public Integer getIdleSwap() {
        return idleSwap;
    }

    @Override
    public Integer getMaxDuration() {
        return maxDuration;
    }

}<commit_msg>DEV-487 apply Lombok to `ExperimentInfo`<commit_after>package sg.ncl.service.experiment.web;

import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Getter;
import sg.ncl.service.experiment.domain.Experiment;

/**
 * Created by Desmond.
 */
@Getter
public class ExperimentInfo implements Experiment {

    private Long id;
    private String userId;
    private String teamId;
    private String teamName;
    private String name;
    private String description;
    private String nsFile;
    private String nsFileContent;
    private Integer idleSwap;
    private Integer maxDuration;

    @JsonCreator
    public ExperimentInfo(
            @JsonProperty("id") final Long id,
            @JsonProperty("userId") final String userId,
            @JsonProperty("teamId") final String teamId,
            @JsonProperty("teamName") final String teamName,
            @JsonProperty("name") final String name,
            @JsonProperty("description") final String description,
            @JsonProperty("nsFile") final String nsFile,
            @JsonProperty("nsFileContent") final String nsFileContent,
            @JsonProperty("idleSwap") final Integer idleSwap,
            @JsonProperty("maxDuration") final Integer maxDuration
    ) {
        this.id = id;
        this.userId = userId;
        this.teamId = teamId;
        this.teamName = teamName;
        this.name = name;
        this.description = description;
        this.nsFile = nsFile;
        this.nsFileContent = nsFileContent;
        this.idleSwap = idleSwap;
        this.maxDuration = maxDuration;
    }

    public ExperimentInfo(final Experiment experiment) {
        this(
                experiment.getId(),
                experiment.getUserId(),
                experiment.getTeamId(),
                experiment.getTeamName(),
                experiment.getName(),
                experiment.getDescription(),
                experiment.getNsFile(),
                experiment.getNsFileContent(),
                experiment.getIdleSwap(),
                experiment.getMaxDuration()
        );
    }

}
{'fraction_non_alphanumeric': 0.079445381300356, 'fraction_numerical': 0.0005621135469364812, 'mean_word_length': 1.9426681367144432, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, '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': '7154270', 'n_tokens_mistral': 1345, 'n_tokens_neox': 1325, 'n_words': 314}