<commit_before>package models;

import java.util.ArrayList;
import java.util.List;

public class DataciteRecord {
    public String doi = null;
    public String identifier = null;
    public List<Pair<String, String>> creators = new ArrayList<Pair<String, String>>();
    public List<Pair<String, String>> titles = new ArrayList<Pair<String, String>>();
    public String publisher = null;
    public String publicationYear = null;
    public List<Pair<String, String>> subjects = new ArrayList<Pair<String, String>>();
    public List<Pair<String, String>> dates = new ArrayList<Pair<String, String>>();
    public String language = null;
    public List<Pair<String, String>> alternateIdentifiers = new ArrayList<Pair<String, String>>();
    public List<Pair<String, String>> sizes = new ArrayList<Pair<String, String>>();
    public List<Pair<String, String>> formats = new ArrayList<Pair<String, String>>();
    public String type = null;
<commit_msg>Prevent duplicates in creators reported to datacite<commit_after>package models;

import java.util.ArrayList;
import java.util.HashSet;
import java.util.List;
import java.util.Set;

public class DataciteRecord {
    public String doi = null;
    public String identifier = null;
    public Set<Pair<String, String>> creators = new HashSet<Pair<String, String>>();
    public List<Pair<String, String>> titles = new ArrayList<Pair<String, String>>();
    public String publisher = null;
    public String publicationYear = null;
    public List<Pair<String, String>> subjects = new ArrayList<Pair<String, String>>();
    public List<Pair<String, String>> dates = new ArrayList<Pair<String, String>>();
    public String language = null;
    public List<Pair<String, String>> alternateIdentifiers = new ArrayList<Pair<String, String>>();
    public List<Pair<String, String>> sizes = new ArrayList<Pair<String, String>>();
    public List<Pair<String, String>> formats = new ArrayList<Pair<String, String>>();
    public String type = null;

{'fraction_non_alphanumeric': 0.12431077694235589, 'fraction_numerical': 0.0, 'mean_word_length': 5.179566563467493, 'pattern_counts': {'":': 0, '<': 59, '<?xml version=': 0, '>': 59, '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': '495223', 'n_tokens_mistral': 535, 'n_tokens_neox': 527, 'n_words': 174}