<commit_before>package edu.upc.caminstech.equipstic.client;

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

/**
 * Representa una resposta del servidor d'EquipsTIC.
 * <p>
 * Els usuaris normalment no haurien d'accedir a aquesta classe, però pot ser
 * útil per depurar errors.
 */
public class Response<T> {

    public static final String STATUS_SUCCESS = "success";

    public static final String STATUS_FAILURE = "fail";

    private final String status;
    private final String success;
    private final String message;
    private final T data;

    @JsonCreator
    public Response(@JsonProperty("status") String status, @JsonProperty("success") String success,
            @JsonProperty("message") String message, @JsonProperty("data") T data) {
        this.status = status;
        this.success = success;
        this.message = message;
        this.data = data;
    }

    public String getStatus() {
        return status;
    }

    public String getSuccess() {
        return success;
    }

    public String getMessage() {
        return message;
    }

    public T getData() {
        return data;
    }<commit_msg>change: "data" is not mandatory<commit_after>package edu.upc.caminstech.equipstic.client;

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

/**
 * Representa una resposta del servidor d'EquipsTIC.
 * <p>
 * Els usuaris normalment no haurien d'accedir a aquesta classe, però pot ser
 * útil per depurar errors.
 */
public class Response<T> {

    public static final String STATUS_SUCCESS = "success";

    public static final String STATUS_FAILURE = "fail";

    private final String status;
    private final String success;
    private final String message;
    private final T data;

    @JsonCreator
    public Response(@JsonProperty("status") String status, @JsonProperty("success") String success,
            @JsonProperty("message") String message, @JsonProperty(value = "data", required = false) T data) {
        this.status = status;
        this.success = success;
        this.message = message;
        this.data = data;
    }

    public String getStatus() {
        return status;
    }

    public String getSuccess() {
        return success;
    }

    public String getMessage() {
        return message;
    }

    public T getData() {
        return data;
    }
{'fraction_non_alphanumeric': 0.09180327868852459, 'fraction_numerical': 0.0, 'mean_word_length': 2.9626623376623376, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '3955477', 'n_tokens_mistral': 705, 'n_tokens_neox': 679, 'n_words': 211}