<commit_before>package uk.ac.ebi.spot.goci.service;

import org.apache.poi.xssf.usermodel.XSSFSheet;
import uk.ac.ebi.spot.goci.model.AssociationUploadRow;

import java.util.Collection;

/**
 * Created by emma on 13/04/2016.
 *
 * @author emma
 *         <p>
 *         Service to read an spreadsheet of associations
 */
public interface UploadSheetProcessor {
    Collection<AssociationUploadRow> readSheetRows(XSSFSheet sheet);
}<commit_msg>Add method to process headers<commit_after>package uk.ac.ebi.spot.goci.service;

import org.apache.poi.xssf.usermodel.XSSFRow;
import org.apache.poi.xssf.usermodel.XSSFSheet;
import uk.ac.ebi.spot.goci.model.AssociationUploadRow;

import java.util.Collection;
import java.util.Map;

/**
 * Created by emma on 13/04/2016.
 *
 * @author emma
 *         <p>
 *         Service to read an spreadsheet of associations, create a map of headers in the file and process all further
 *         rows
 */
public interface UploadSheetProcessor {

    Map<Integer, String> createHeaderMap(XSSFRow row);

    Collection<AssociationUploadRow> readSheetRows(XSSFSheet sheet);
}
{'fraction_non_alphanumeric': 0.10235507246376811, 'fraction_numerical': 0.014492753623188406, 'mean_word_length': 3.86784140969163, 'pattern_counts': {'":': 0, '<': 8, '<?xml version=': 0, '>': 8, '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': '3116342', 'n_tokens_mistral': 383, 'n_tokens_neox': 358, 'n_words': 83}