<commit_before>package main.java.data.datahandler;

import java.io.FileNotFoundException;
import java.io.IOException;

import main.java.schema.GameBlueprint;

/**
 * Data handler specific to the Engine. Allows them
 * to translate their specific Blueprint into a Data Bundle and
 * JSON file. Separate from AuthoringDataHandler
 * because blueprint will involve game state factors authoring
 * will not/does not need to deal with.
 * @author <NAME>
 *
 */

public class EngineDataHandler extends DataHandler {

	public EngineDataHandler(){
		super();
	}	
	
	/**
	 * Method for authoring environment to
	 * take a blueprint and file location and serialize
	 * into a JSON file.
	 * @param currentBlueprint
	 * @param filePath
	 * @throws IOException 
	 */
	
	public void saveState(GameState currentGameState, String filePath) throws IOException {
		saveBundle(new DataBundle(currentGameState), filePath);
	}
	
	public DataBundle loadBundle(String filePath){
		return loadBundle(filePath);
	}
	
}<commit_msg>Went with saving data bundles from engine, if we change to only saving game state revert here<commit_after>package main.java.data.datahandler;

import java.io.FileNotFoundException;
import java.io.IOException;

import main.java.schema.GameBlueprint;

/**
 * Data handler specific to the Engine. Allows them
 * to translate their specific Blueprint into a Data Bundle and
 * JSON file. Separate from AuthoringDataHandler
 * because blueprint will involve game state factors authoring
 * will not/does not need to deal with.
 * @author <NAME>
 *
 */

public class EngineDataHandler extends DataHandler {

	public EngineDataHandler(){
		super();
	}	
	
	/**
	 * Method for authoring environment to
	 * take a blueprint and file location and serialize
	 * into a JSON file.
	 * @param currentBlueprint
	 * @param filePath
	 * @throws IOException 
	 */
	
	public void saveBundle(DataBundle currentGameState, String filePath) throws IOException {
		saveBundle(currentGameState, filePath);
	}
	
	public DataBundle loadBundle(String filePath){
		return loadBundle(filePath);
	}
	
}
{'fraction_non_alphanumeric': 0.07459095283926853, 'fraction_numerical': 0.0, 'mean_word_length': 4.3307692307692305, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '822579', 'n_tokens_mistral': 593, 'n_tokens_neox': 547, 'n_words': 207}