<commit_before>import java.util.List;
import java.util.LinkedList;
import java.util.ListIterator;

/**
 * Insertion sort-class.
 *
 * @author <NAME>
 * @version 0.2
 */
public class InsertionSort<T extends Comparable<T>>{

    T value;

    /**
     * Empty Constructor.
     */
    public InsertionSort(){}

    /**
     * Sorting method, performs the insertion
     * sort algorithm.
     */
    public static <T extends Comparable<T>> List<T> insertionSort( T[] array ){
        List<T> list = new LinkedList<T>();
        for( T element : array ){
            ListIterator<T> iterator = list.listIterator(); 
            boolean foundGreater = false;
            while( iterator.hasNext() && !foundGreater )
                foundGreater |= iterator.next().compareTo( element ) > 0;
            if( foundGreater )
                iterator.previous();
            iterator.add( element );
        }
        return list;
    }
}
<commit_msg>corrected Javadoc<commit_after>import java.util.List;
import java.util.LinkedList;
import java.util.ListIterator;

/**
 * Insertion sort-class.
 *
 * @author <NAME>
 * @version 0.2
 */
public class InsertionSort<T extends Comparable<T>>{

    /**
     * Empty Constructor.
     */
    public InsertionSort(){}

    /**
     * Sorting method, performs the insertion
     * sort algorithm.
     */
    public static <T extends Comparable<T>> List<T> insertionSort( T[] array ){
        List<T> list = new LinkedList<T>();
        for( T element : array ){
            ListIterator<T> iterator = list.listIterator(); 
            boolean foundGreater = false;
            while( iterator.hasNext() && !foundGreater )
                foundGreater |= iterator.next().compareTo( element ) > 0;
            if( foundGreater )
                iterator.previous();
            iterator.add( element );
        }
        return list;
    }
}

{'fraction_non_alphanumeric': 0.12540021344717184, 'fraction_numerical': 0.0032017075773745998, 'mean_word_length': 2.1302170283806343, 'pattern_counts': {'":': 0, '<': 21, '<?xml version=': 0, '>': 23, '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': '6610554', 'n_tokens_mistral': 549, 'n_tokens_neox': 524, 'n_words': 133}