<commit_before>package net.sf.jabref.util;

import java.util.ArrayList;
import java.util.regex.Matcher;
import java.util.regex.Pattern;

/**
 * Class containing method(s) for normalizing author lists to BibTeX format.
 */
public class NameListNormalizer {

    static Pattern lastFF = Pattern.compile("(\\p{javaUpperCase}[\\p{javaLowerCase}]+) (\\p{javaUpperCase}+)");
    static Pattern lastFdotF = Pattern.compile("(\\p{javaUpperCase}[\\p{javaLowerCase}]+) ([\\. \\p{javaUpperCase}]+)");
    static Pattern FFlast = Pattern.compile("(\\p{javaUpperCase}+) (\\p{javaUpperCase}[\\p{javaLowerCase}]+)");
    static Pattern FdotFlast = Pattern.compile("([\\. \\p{javaUpperCase}]+) (\\p{javaUpperCase}[\\p{javaLowerCase}]+)");
    static Pattern singleName = Pattern.compile("(\\p{javaUpperCase}[\\p{javaLowerCase}]*)");

    public static void main(String[] args) {
        System.out.println(normalizeAuthorList("Ølver MA"));
        System.out.println(normalizeAuthorList("Ø<NAME>, GG Øie, Øie GG, <NAME>ÅÅ, <NAME>, Olsen Y.Y. and Olsen Y. Y."));
        System.out.println(normalizeAuthorList("Ølver MA, GG Øie, Øie GG, <NAME>, <NAME>, Olsen Y.Y., Olsen Y. Y."));
        System.out.println(normalizeAuthorList("<NAME> and Alver, Morten O and Alfredsen, JA and Olsen, Y.Y."));
        System.out.println(normalizeAuthorList("Alver, MA; Alfredsen, JA; Olsen Y.Y."));
    }
<commit_msg>Removed some print statements.<commit_after>package net.sf.jabref.util;

import java.util.ArrayList;
import java.util.regex.Matcher;
import java.util.regex.Pattern;

/**
 * Class containing method(s) for normalizing author lists to BibTeX format.
 */
public class NameListNormalizer {

    static Pattern lastFF = Pattern.compile("(\\p{javaUpperCase}[\\p{javaLowerCase}]+) (\\p{javaUpperCase}+)");
    static Pattern lastFdotF = Pattern.compile("(\\p{javaUpperCase}[\\p{javaLowerCase}]+) ([\\. \\p{javaUpperCase}]+)");
    static Pattern FFlast = Pattern.compile("(\\p{javaUpperCase}+) (\\p{javaUpperCase}[\\p{javaLowerCase}]+)");
    static Pattern FdotFlast = Pattern.compile("([\\. \\p{javaUpperCase}]+) (\\p{javaUpperCase}[\\p{javaLowerCase}]+)");
    static Pattern singleName = Pattern.compile("(\\p{javaUpperCase}[\\p{javaLowerCase}]*)");

    /*public static void main(String[] args) {
        normalizeAuthorList("<NAME> and <NAME> and <NAME>");
        //System.out.println(normalizeAuthorList("Ølver MA"));
        //System.out.println(normalizeAuthorList("Ølver MA, GG Øie, Øie GG, Alfredsen JÅÅ, <NAME>, Olsen Y.Y. and Olsen Y. Y."));
        //System.out.println(normalizeAuthorList("Ølver MA, GG Øie, Øie GG, Alfredsen JÅÅ, <NAME>, Olsen Y.Y., Olsen Y. Y."));
        //System.out.println(normalizeAuthorList("Alver, Morten and Alver, Morten O and Alfredsen, JA and Olsen, Y.Y."));
        //System.out.println(normalizeAuthorList("Alver, MA; Alfredsen, JA; Olsen Y.Y."));
    }*/

{'fraction_non_alphanumeric': 0.18645833333333334, 'fraction_numerical': 0.0, 'mean_word_length': 4.257299270072993, 'pattern_counts': {'":': 0, '<': 14, '<?xml version=': 0, '>': 14, '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': '2363010', 'n_tokens_mistral': 987, 'n_tokens_neox': 946, 'n_words': 204}