<commit_before>package org.sagebionetworks.repo.util.jrjc;

import org.json.simple.JSONObject;

import java.util.Map;

public class BasicIssue {
    private String summary;
    private String projectId;
    private Long issueTypeId;
    private Map<String, String> customFields;
    private String key;

    public String getSummary() {
        return summary;
    }

    public void setSummary(String summary) {
        this.summary = summary;
    }

    public String getProjectId() {
        return projectId;
    }

    public void setProjectId(String projectId) {
        this.projectId = projectId;
    }

    public Long getIssueTypeId() {
        return issueTypeId;
    }

    public void setIssueTypeId(Long issueTypeId) {
        this.issueTypeId = issueTypeId;
    }

    public Map<String, String> getCustomFields() {
        return customFields;
    }

    public void setCustomFields(Map<String, String> customFields) {
        this.customFields = customFields;
    }

    public void setKey(String key) {this.key = key; }

    public String getKey() {return this.key; }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((summary == null) ? 0 : summary.hashCode());
        result = prime * result + ((projectId == null) ? 0 : projectId.hashCode());
        result = prime * result + ((issueTypeId == null) ? 0 : issueTypeId.hashCode());
        result = prime * result + ((customFields == null) ? 0 : customFields.hashCode());
        result = prime * result + ((key == null) ? 0 : key.hashCode());
        return result;
    }

    @Override
    public boolean equals(Object obj) {
        if (this == obj)
            return true;
        if (obj == null)
            return false;
        if (getClass() != obj.getClass())
            return false;
        BasicIssue other = (BasicIssue) obj;
        if (summary == null) {
            if (other.summary != null)
                return false;
        } else if (!summary.equals(other.summary))
            return false;
        if (projectId == null) {
            if (other.projectId != null)
                return false;
        } else if (!projectId.equals(other.projectId))
            return false;
        if (issueTypeId == null) {
            if (other.issueTypeId != null)
                return false;
        } else if (!issueTypeId.equals(other.issueTypeId))
            return false;
        if (customFields == null) {
            if (other.customFields != null)
                return false;
        } else if (!customFields.equals(other.customFields))
            return false;
        if (key == null) {
            if (other.key != null)
                return false;
        } else if (!key.equals(other.key))
            return false;
        return true;
    }

    @Override
    public String toString() {
        return "BasicIssue [summary=" + summary + ", issueTypeId=" + issueTypeId
            + ", projectId=" + projectId + ", key=" + key + ", fields=" + customFields + "]";
    }

    public JSONObject toJONObject() {
        JSONObject issue = new JSONObject();
        JSONObject issueFields = new JSONObject();
        issueFields.put("summary", this.summary);
        JSONObject o = new JSONObject();
        o.put("id", this.projectId);
        issueFields.put("project", o);
        o = new JSONObject();
        o.put("id", this.issueTypeId);
        issueFields.put("issuetype", o);
        if (customFields != null && !customFields.keySet().isEmpty()) {
            for (String k: customFields.keySet()) {
                issueFields.put(k, this.customFields.get(k));
            }
        }
        issueFields.put("key", this.key);
        issue.put("fields", issueFields);
        return issue;
    }
}<commit_msg>Forgot to remove<commit_after>package org.sagebionetworks.repo.util.jrjc;

import org.json.simple.JSONObject;

import java.util.Map;

public class BasicIssue {
    private String summary;
    private String projectId;
    private Long issueTypeId;
    private Map<String, String> customFields;

    public String getSummary() {
        return summary;
    }

    public void setSummary(String summary) {
        this.summary = summary;
    }

    public String getProjectId() {
        return projectId;
    }

    public void setProjectId(String projectId) {
        this.projectId = projectId;
    }

    public Long getIssueTypeId() {
        return issueTypeId;
    }

    public void setIssueTypeId(Long issueTypeId) {
        this.issueTypeId = issueTypeId;
    }

    public Map<String, String> getCustomFields() {
        return customFields;
    }

    public void setCustomFields(Map<String, String> customFields) {
        this.customFields = customFields;
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((summary == null) ? 0 : summary.hashCode());
        result = prime * result + ((projectId == null) ? 0 : projectId.hashCode());
        result = prime * result + ((issueTypeId == null) ? 0 : issueTypeId.hashCode());
        result = prime * result + ((customFields == null) ? 0 : customFields.hashCode());
        return result;
    }

    @Override
    public boolean equals(Object obj) {
        if (this == obj)
            return true;
        if (obj == null)
            return false;
        if (getClass() != obj.getClass())
            return false;
        BasicIssue other = (BasicIssue) obj;
        if (summary == null) {
            if (other.summary != null)
                return false;
        } else if (!summary.equals(other.summary))
            return false;
        if (projectId == null) {
            if (other.projectId != null)
                return false;
        } else if (!projectId.equals(other.projectId))
            return false;
        if (issueTypeId == null) {
            if (other.issueTypeId != null)
                return false;
        } else if (!issueTypeId.equals(other.issueTypeId))
            return false;
        if (customFields == null) {
            if (other.customFields != null)
                return false;
        } else if (!customFields.equals(other.customFields))
            return false;
        return true;
    }

    @Override
    public String toString() {
        return "BasicIssue [summary=" + summary + ", issueTypeId=" + issueTypeId
            + ", projectId=" + projectId + ", fields=" + customFields + "]";
    }

    public JSONObject toJONObject() {
        JSONObject issue = new JSONObject();
        JSONObject issueFields = new JSONObject();
        issueFields.put("summary", this.summary);
        JSONObject o = new JSONObject();
        o.put("id", this.projectId);
        issueFields.put("project", o);
        o = new JSONObject();
        o.put("id", this.issueTypeId);
        issueFields.put("issuetype", o);
        if (customFields != null && !customFields.keySet().isEmpty()) {
            for (String k: customFields.keySet()) {
                issueFields.put(k, this.customFields.get(k));
            }
        }
        issue.put("fields", issueFields);
        return issue;
    }
}
{'fraction_non_alphanumeric': 0.11677311857817273, 'fraction_numerical': 0.0020827547903360176, 'mean_word_length': 2.0430925221799745, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '22539', 'n_tokens_mistral': 2018, 'n_tokens_neox': 1953, 'n_words': 526}