<commit_before>package com.fox.collections;

import java.util.List;

/**
 * Created by stephen on 4/15/15.
 */
public class ListExtension
{
    public static <T> void printContents(List<T> list)
    {
        list.forEach(System.out::println);

        System.out.println();
    }

    public static <T> int countNonNulls(List<T> list)
    {
        int count = 0;
        for ( T item : list )
        {
            if (item != null) count++;
        }
        return count;
    }
}
<commit_msg>Added in the "Lists" functionality that Google suprisingly missed. Will make additions to includes most of the Collections<commit_after>package com.fox.collections;

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

/**
 * Created by stephen on 4/15/15.
 */
public class ListExtension
{
    public static <T> void printContents(List<T> list)
    {
        list.forEach(System.out::println);

        System.out.println();
    }

    public static <T> int countNonNulls(List<T> list)
    {
        int count = 0;
        for ( T item : list )
        {
            if (item != null) count++;
        }
        return count;
    }

    public static <T> ArrayList<T> newArrayList() {
        return new ArrayList<>();
    }

    public static <T> ArrayList<T> newArrayList( Iterable<T> items ) {
        ArrayList<T> list = new ArrayList<>();
        items.forEach(list::add);

        return list;
    }

    public static <T> ArrayList<T> newArrayList( Iterator<T> iterator ) {
        ArrayList<T> list = new ArrayList<>();
        iterator.forEachRemaining(list::add);

        return list;
    }
}

{'fraction_non_alphanumeric': 0.12177121771217712, 'fraction_numerical': 0.007380073800738007, 'mean_word_length': 2.3069105691056913, 'pattern_counts': {'":': 0, '<': 24, '<?xml version=': 0, '>': 24, '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': '7546942', 'n_tokens_mistral': 501, 'n_tokens_neox': 481, 'n_words': 135}