<commit_before>package edu.wheaton.simulator.statistics;

import java.util.HashMap;

import com.google.common.collect.ImmutableMap;

import edu.wheaton.simulator.entity.Agent;
import edu.wheaton.simulator.entity.Prototype;
import edu.wheaton.simulator.entity.Slot;

/**
 * This class will create the Snapshots to be put into the Database
 * 
 * @author akonwi and <NAME>
 */

public class SnapshotFactory {


	public static AgentSnapshot makeAgentSnapshot(Agent agent, Integer step) {
//		Sort out with the Agent guys just wtf is up with fields. 
		return null; // TODO 
	}

	public static SlotSnapshot makeSlotSnapshot(Slot slot, Integer step) {
		return null; // TODO
	}

	public static FieldSnapshot makeFieldSnapshot(String name, String value) {
		return new FieldSnapshot(name, value);
	}
	
	public static ImmutableMap<String, FieldSnapshot> makeFieldSnapshots(HashMap<String, String> fields) { 
		ImmutableMap.Builder<String, FieldSnapshot> builder = 
				new ImmutableMap.Builder<String, FieldSnapshot>(); 
		for (String name : fields.keySet()) { 
			String value = fields.get(name); 
			builder.put(name, makeFieldSnapshot(name, value)); 
		}
		return builder.build(); 
	}

	public static PrototypeSnapshot makePrototypeSnapshot(Prototype prototype,
			Integer step) {
		return null; // TODO
	}
	
	private SnapshotFactory() {
	}
}<commit_msg>Chagned MakeFieldSnapshots to take a Map rather than HashMap.<commit_after>package edu.wheaton.simulator.statistics;

import java.util.Map;

import com.google.common.collect.ImmutableMap;

import edu.wheaton.simulator.entity.Agent;
import edu.wheaton.simulator.entity.Prototype;
import edu.wheaton.simulator.entity.Slot;

/**
 * This class will create the Snapshots to be put into the Database
 * 
 * @author akonwi and <NAME>
 */

public class SnapshotFactory {


	public static AgentSnapshot makeAgentSnapshot(Agent agent, Integer step) {
//		Sort out with the Agent guys just wtf is up with fields. 
		return null; // TODO 
	}

	public static SlotSnapshot makeSlotSnapshot(Slot slot, Integer step) {
		return null; // TODO
	}

	public static FieldSnapshot makeFieldSnapshot(String name, String value) {
		return new FieldSnapshot(name, value);
	}
	
	public static ImmutableMap<String, FieldSnapshot> makeFieldSnapshots(Map<String, String> fields) { 
		ImmutableMap.Builder<String, FieldSnapshot> builder = 
				new ImmutableMap.Builder<String, FieldSnapshot>(); 
		for (String name : fields.keySet()) { 
			String value = fields.get(name); 
			builder.put(name, makeFieldSnapshot(name, value)); 
		}
		return builder.build(); 
	}

	public static PrototypeSnapshot makePrototypeSnapshot(Prototype prototype,
			Integer step) {
		return null; // TODO
	}
	
	private SnapshotFactory() {
	}
}
{'fraction_non_alphanumeric': 0.09525547445255475, 'fraction_numerical': 0.0, 'mean_word_length': 4.460159362549801, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 13, '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': '1561136', 'n_tokens_mistral': 867, 'n_tokens_neox': 805, 'n_words': 230}