<commit_before>package gr.iti.mklab.tools;

import gr.iti.mklab.data.ImageMetadata;

import java.util.List;
import java.util.Map;

public class AbstractOrganizer {

	protected Map<String, ImageMetadata> mapOfImageIDs;
	protected Map<String,List<String>> mapOfCells;

	protected void updateMapOfImageIDs(String input){

		String[] imageInfo = input.split("\t");

		ImageMetadata image = new ImageMetadata(imageInfo[0],imageInfo[2],imageInfo[4]+","+imageInfo[3].replace("\\+",","));
		
		image.setCoord(Double.parseDouble(imageInfo[6]), Double.parseDouble(imageInfo[7]));
		
		mapOfImageIDs.put(imageInfo[0],image);
	}

	public Map<String, List<String>> getMapOfCells () {
		return mapOfCells;
	}

	public Map<String, ImageMetadata> getMapOfImageIDs () {
		return mapOfImageIDs;
	}

}
<commit_msg>Add comments on the AbstractOrganizer.java<commit_after>package gr.iti.mklab.tools;

import gr.iti.mklab.data.ImageMetadata;

import java.util.List;
import java.util.Map;

/**
 * Abstract class for organization of the images in cells
 * @author gkordo
 *
 */
public class AbstractOrganizer {

	protected Map<String, ImageMetadata> mapOfImageIDs;
	protected Map<String,List<String>> mapOfCells;

	protected void updateMapOfImageIDs(String input){

		String[] imageInfo = input.split("\t");

		ImageMetadata image = new ImageMetadata(imageInfo[0],imageInfo[2],imageInfo[4]+","+imageInfo[3].replace("\\+",","));
		
		image.setCoord(Double.parseDouble(imageInfo[6]), Double.parseDouble(imageInfo[7]));
		
		mapOfImageIDs.put(imageInfo[0],image);
	}

	public Map<String, List<String>> getMapOfCells () {
		return mapOfCells;
	}

	public Map<String, ImageMetadata> getMapOfImageIDs () {
		return mapOfImageIDs;
	}

}

{'fraction_non_alphanumeric': 0.1406799531066823, 'fraction_numerical': 0.008206330597889801, 'mean_word_length': 5.828, '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': '412920', 'n_tokens_mistral': 596, 'n_tokens_neox': 552, 'n_words': 103}