<commit_before>package ar.com.java.samples.acf;

import java.util.ArrayList;
import java.util.Collection;

import org.apache.commons.collections.CollectionUtils;
import org.apache.commons.collections.Predicate;

import com.google.common.collect.Collections2;
import com.google.common.collect.Iterables;
import com.google.common.collect.Lists;

public class CollectionsSamples {

	public static void main(String[] args) {
		
		ArrayList<Integer> list = Lists.newArrayList(1, 2, 3, 3, 3);

		// apache commons
		Collection<Integer> ret = CollectionUtils.select(list, new Predicate() {
			
			@Override
			public boolean evaluate(Object object) {
				return object.equals(3);
			}
		});
		System.out.println(ret);
	
		// guava
		Collection<Integer> ret2 = Collections2.filter(list, new com.google.common.base.Predicate<Integer>() {
			@Override
			public boolean apply(Integer input) {
				return input == 2;
			}
		});
		System.out.println(ret2);
		

		// guava
		Iterable<Integer> ret3 = Iterables.filter(list, new com.google.common.base.Predicate<Integer>() {
			@Override
			public boolean apply(Integer input) {
				return input == 3;
			}
			
		});
		System.out.println(ret3);
	}

}<commit_msg>Add new sample of collections<commit_after>package ar.com.java.samples.acf;

import java.util.ArrayList;
import java.util.Collection;

import org.apache.commons.collections.CollectionUtils;
import org.apache.commons.collections.Predicate;

import com.google.common.collect.Collections2;
import com.google.common.collect.Iterables;
import com.google.common.collect.Lists;

public class CollectionsSamples {

	public static void main(String[] args) {
		
		ArrayList<Integer> list = Lists.newArrayList(1, 2, 3, 3, 3);

		// apache commons
		Collection<Integer> ret = CollectionUtils.select(list, new Predicate() {
			
			@Override
			public boolean evaluate(Object object) {
				return object.equals(3);
			}
		});
		System.out.println(ret);
	
		// guava
		Collection<Integer> ret2 = Collections2.filter(list, new com.google.common.base.Predicate<Integer>() {
			@Override
			public boolean apply(Integer input) {
				return input == 2;
			}
		});
		System.out.println(ret2);
		

		// guava
		Iterable<Integer> ret3 = Iterables.filter(list, new com.google.common.base.Predicate<Integer>() {
			@Override
			public boolean apply(Integer input) {
				return input == 3;
			}
			
		});
		System.out.println(ret3);
		
		Integer ret4 = Iterables.find(list, new com.google.common.base.Predicate<Integer>() {
			@Override
			public boolean apply(Integer input) {
				System.out.println("Evaluate arg " + input);
				return input == 3;
			}
			
		});
		System.out.println(ret4);
	}

}
{'fraction_non_alphanumeric': 0.12771535580524346, 'fraction_numerical': 0.011610486891385767, 'mean_word_length': 3.7953321364452424, 'pattern_counts': {'":': 0, '<': 16, '<?xml version=': 0, '>': 16, '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': '6438625', 'n_tokens_mistral': 981, 'n_tokens_neox': 828, 'n_words': 173}