<commit_before>package es.icane.metadatos.model;

import es.icane.metadatos.adapters.DateAdapter;
import java.io.Serializable;
import java.util.Date;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;

@XmlType
public class Measure implements Serializable {

    private Integer id;
    private String code;
    private String title;
    private String unit;
    private boolean defaultMeasure = false;
    private String mapType = MAP_TYPE_CHOROPLETH;
    private Date created;
    private Date lastUpdated;
    //
    private final static String MAP_TYPE_CHOROPLETH = "choropleth";

    @XmlAttribute(required = true)
    public Integer getId() {
        return id;
    }

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

    @XmlElement(name = "dateCreated")
    @XmlJavaTypeAdapter(value = DateAdapter.class)
    public Date getCreated() {
        return created;
    }

    public void setCreated(Date created) {
        this.created = created;
    }

    @XmlJavaTypeAdapter(value = DateAdapter.class)
    public Date getLastUpdated() {
        return lastUpdated;
    }

    public void setLastUpdated(Date lastUpdated) {
        this.lastUpdated = lastUpdated;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getUnit() {
        return unit;
    }

    public void setUnit(String unit) {
        this.unit = unit;
    }

    public boolean isDefaultMeasure() {
        return defaultMeasure;
    }

    public void setDefaultMeasure(boolean defaultMeasure) {
        this.defaultMeasure = defaultMeasure;
    }

    @Override
    public int hashCode() {
        int hash = 7;
        hash = 37 * hash + (this.id != null ? this.id.hashCode() : 0);
        hash = 37 * hash + (this.code != null ? this.code.hashCode() : 0);
        hash = 37 * hash + (this.title != null ? this.title.hashCode() : 0);
        hash = 37 * hash + (this.unit != null ? this.unit.hashCode() : 0);
        hash = 37 * hash + (this.defaultMeasure ? 1 : 0);
        return hash;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final Measure other = (Measure) obj;
        if (this.id != other.id &&
                (this.id == null || !this.id.equals(other.id))) {
            return false;
        }
        if ((this.code == null) ? (other.code != null)
                : !this.code.equals(other.code)) {
            return false;
        }
        if ((this.title == null) ? (other.title != null)
                : !this.title.equals(other.title)) {
            return false;
        }
        if ((this.unit == null) ? (other.unit != null)
                : !this.unit.equals(other.unit)) {
            return false;
        }
        if (this.defaultMeasure != other.defaultMeasure) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return title;
    }

    public String getMapType() {
        if (mapType == null || mapType.isEmpty()) {
            mapType = MAP_TYPE_CHOROPLETH;
        }
        return mapType;
    }

    public void setMapType(String mapType) {
        if (mapType == null || mapType.isEmpty()) {
            this.mapType = MAP_TYPE_CHOROPLETH;
        } else {
            this.mapType = mapType;
        }
    }
}
<commit_msg>Leave mapType as null (do not set to choropleth by default)<commit_after>package es.icane.metadatos.model;

import es.icane.metadatos.adapters.DateAdapter;
import java.io.Serializable;
import java.util.Date;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;

@XmlType
public class Measure implements Serializable {

    private Integer id;
    private String code;
    private String title;
    private String unit;
    private boolean defaultMeasure = false;
    private String mapType = null;
    private Date created;
    private Date lastUpdated;

    @XmlAttribute(required = true)
    public Integer getId() {
        return id;
    }

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

    @XmlElement(name = "dateCreated")
    @XmlJavaTypeAdapter(value = DateAdapter.class)
    public Date getCreated() {
        return created;
    }

    public void setCreated(Date created) {
        this.created = created;
    }

    @XmlJavaTypeAdapter(value = DateAdapter.class)
    public Date getLastUpdated() {
        return lastUpdated;
    }

    public void setLastUpdated(Date lastUpdated) {
        this.lastUpdated = lastUpdated;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getUnit() {
        return unit;
    }

    public void setUnit(String unit) {
        this.unit = unit;
    }

    public boolean isDefaultMeasure() {
        return defaultMeasure;
    }

    public void setDefaultMeasure(boolean defaultMeasure) {
        this.defaultMeasure = defaultMeasure;
    }

    @Override
    public int hashCode() {
        int hash = 7;
        hash = 37 * hash + (this.id != null ? this.id.hashCode() : 0);
        hash = 37 * hash + (this.code != null ? this.code.hashCode() : 0);
        hash = 37 * hash + (this.title != null ? this.title.hashCode() : 0);
        hash = 37 * hash + (this.unit != null ? this.unit.hashCode() : 0);
        hash = 37 * hash + (this.defaultMeasure ? 1 : 0);
        return hash;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final Measure other = (Measure) obj;
        if (this.id != other.id &&
                (this.id == null || !this.id.equals(other.id))) {
            return false;
        }
        if ((this.code == null) ? (other.code != null)
                : !this.code.equals(other.code)) {
            return false;
        }
        if ((this.title == null) ? (other.title != null)
                : !this.title.equals(other.title)) {
            return false;
        }
        if ((this.unit == null) ? (other.unit != null)
                : !this.unit.equals(other.unit)) {
            return false;
        }
        if (this.defaultMeasure != other.defaultMeasure) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return title;
    }

    public String getMapType() {
        if (mapType != null && mapType.isEmpty()) {
            mapType = null;
        }
        return mapType;
    }

    public void setMapType(String mapType) {
        if (mapType != null && mapType.isEmpty()) {
            this.mapType = null;
        } else {
            this.mapType = mapType;
        }
    }
}

{'fraction_non_alphanumeric': 0.11102193686463349, 'fraction_numerical': 0.00454788657035848, 'mean_word_length': 1.972962226640159, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 8}, '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': '2354576', 'n_tokens_mistral': 2229, 'n_tokens_neox': 2134, 'n_words': 546}