<commit_before>package uk.ac.ebi.quickgo.annotation.validation.model;

import com.google.common.base.Preconditions;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import org.springframework.batch.item.ItemWriter;

import static java.util.stream.Collectors.groupingBy;

/**
 * Aggregate ValidationEntity instances.
 *
 * @author <NAME>
 * Date: 24/11/2016
 * Time: 11:56
 * Created with IntelliJ IDEA.
 */
public class ValidationEntitiesAggregator implements ItemWriter<ValidationEntity> {

    public Map<String, List<ValidationEntity>> mappedEntities = new HashMap<>();

    @Override public void write(List<? extends ValidationEntity> items) {<commit_msg>Mapped entries can be package private.<commit_after>package uk.ac.ebi.quickgo.annotation.validation.model;

import com.google.common.base.Preconditions;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import org.springframework.batch.item.ItemWriter;

import static java.util.stream.Collectors.groupingBy;

/**
 * Aggregate ValidationEntity instances.
 *
 * @author <NAME>
 * Date: 24/11/2016
 * Time: 11:56
 * Created with IntelliJ IDEA.
 */
public class ValidationEntitiesAggregator implements ItemWriter<ValidationEntity> {

    Map<String, List<ValidationEntity>> mappedEntities = new HashMap<>();

    @Override public void write(List<? extends ValidationEntity> items) {
{'fraction_non_alphanumeric': 0.11103351955307263, 'fraction_numerical': 0.01675977653631285, 'mean_word_length': 5.34070796460177, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 15, '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': '5634215', 'n_tokens_mistral': 436, 'n_tokens_neox': 413, 'n_words': 100}