<commit_before>package edu.hm.hafner.analysis;

import java.io.Serializable;
import java.util.HashMap;
import java.util.Map;

import org.apache.commons.lang3.StringUtils;
import edu.umd.cs.findbugs.annotations.CheckForNull;

/**
 * Stores the additional information of a parsed issue.
 * (Severities, issueName, oldFile, newFile)
 */
public class RevapiInfoExtension implements Serializable {

    private static final long serialVersionUID = 6058160289391492934L;

    private final Map<String, String> severities = new HashMap<>();

    private String issueName = StringUtils.EMPTY;
    private String oldFile = StringUtils.EMPTY;
    private String newFile = StringUtils.EMPTY;

    public RevapiInfoExtension(@CheckForNull final String code) {
        setCode(code);
    }

    /**
     * Sets the name of the issue.
     * @param name of the issue
     */
    public void setCode(@CheckForNull final String name) {
        if (StringUtils.isBlank(this.issueName)) {
            this.issueName = StringUtils.defaultString(name);
        }
    }

    public Map<String, String> getSeverities(){
        return this.severities;
    }

    public String getIssueName() {
        return issueName;
    }

    public String getOldFile() {
        return oldFile;
    }

    public String getNewFile() {
        return newFile;
    }

    /**
     * Sets all different severities. This can be: Source, Binary, Semantic, Others.
     * @param severities of the issue
     */
    public void setSeverities(@CheckForNull final Map<String, String> severities) {

        if (severities != null && !severities.isEmpty()) {
            for (String severity : severities.keySet()) {
                this.severities.put(severity, severities.get(severity));
            }
        }
    }

    /**
     * Sets the fileName in which the new change occurred.
     * @param newFile in which the change occurred
     */
    public void setNewFile(@CheckForNull final String newFile) {
            this.newFile = StringUtils.defaultString(newFile);
    }

    /**
     * Sets the oldFile which is affected by the issue.
     * @param oldFile in which the change occurred
     */
    public void setOldFile(@CheckForNull final String oldFile) {
            this.oldFile = StringUtils.defaultString(oldFile);
    }
<commit_msg>removed space<commit_after>package edu.hm.hafner.analysis;

import java.io.Serializable;
import java.util.HashMap;
import java.util.Map;

import org.apache.commons.lang3.StringUtils;
import edu.umd.cs.findbugs.annotations.CheckForNull;

/**
 * Stores the additional information of a parsed issue.
 * (Severities, issueName, oldFile, newFile)
 */
public class RevapiInfoExtension implements Serializable {

    private static final long serialVersionUID = 6058160289391492934L;

    private final Map<String, String> severities = new HashMap<>();

    private String issueName = StringUtils.EMPTY;
    private String oldFile = StringUtils.EMPTY;
    private String newFile = StringUtils.EMPTY;

    public RevapiInfoExtension(@CheckForNull final String code) {
        setCode(code);
    }

    /**
     * Sets the name of the issue.
     * @param name of the issue
     */
    public void setCode(@CheckForNull final String name) {
        if (StringUtils.isBlank(this.issueName)) {
            this.issueName = StringUtils.defaultString(name);
        }
    }

    public Map<String, String> getSeverities(){
        return this.severities;
    }

    public String getIssueName() {
        return issueName;
    }

    public String getOldFile() {
        return oldFile;
    }

    public String getNewFile() {
        return newFile;
    }

    /**
     * Sets all different severities. This can be: Source, Binary, Semantic, Others.
     * @param severities of the issue
     */
    public void setSeverities(@CheckForNull final Map<String, String> severities) {
        if (severities != null && !severities.isEmpty()) {
            for (String severity : severities.keySet()) {
                this.severities.put(severity, severities.get(severity));
            }
        }
    }

    /**
     * Sets the fileName in which the new change occurred.
     * @param newFile in which the change occurred
     */
    public void setNewFile(@CheckForNull final String newFile) {
            this.newFile = StringUtils.defaultString(newFile);
    }

    /**
     * Sets the oldFile which is affected by the issue.
     * @param oldFile in which the change occurred
     */
    public void setOldFile(@CheckForNull final String oldFile) {
            this.oldFile = StringUtils.defaultString(oldFile);
    }

{'fraction_non_alphanumeric': 0.09187432286023835, 'fraction_numerical': 0.00866738894907909, 'mean_word_length': 2.6957566052842274, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, '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': '827070', 'n_tokens_mistral': 1343, 'n_tokens_neox': 1280, 'n_words': 367}