<commit_before>package burlap.domain.singleagent.gridworld;

import java.util.List;

import burlap.oomdp.auxiliary.StateParser;
import burlap.oomdp.core.Domain;
import burlap.oomdp.core.ObjectInstance;
import burlap.oomdp.core.State;

/**
 * Simplified state parser for grid world states. Format:<br/>
 * ax ay, l1x l1y, l2x l2y, ..., lnx lny 
 * <br/>
 * where ax and ay is the agent x and y position and lix liy is the ith location objects x and y position.
 * 
 * @author <NAME>
 *
 */
public class GridWorldStateParser implements StateParser {

	protected Domain				domain;
	
	
	public GridWorldStateParser(int width, int height){
		GridWorldDomain generator = new GridWorldDomain(width, height);
		this.domain = generator.generateDomain();
	}
	
	public GridWorldStateParser(Domain domain){<commit_msg>test 1<commit_after>package burlap.domain.singleagent.gridworld;

import java.util.List;

import burlap.oomdp.auxiliary.StateParser;
import burlap.oomdp.core.Domain;
import burlap.oomdp.core.ObjectInstance;
import burlap.oomdp.core.State;

/**
 * Simplified state parser for grid world states. Format:<br/>
 * ax ay, l1x l1y, l2x l2y, ..., lnx lny 
 * <br/>
 * where ax and ay is the agent x and y position and lix liy is the ith location objects x and y position.
 * 
 * test
 * 
 * @author <NAME>
 *
 */
public class GridWorldStateParser implements StateParser {

	protected Domain				domain;
	
	
	public GridWorldStateParser(int width, int height){
		GridWorldDomain generator = new GridWorldDomain(width, height);
		this.domain = generator.generateDomain();
	}
	
	public GridWorldStateParser(Domain domain){
{'fraction_non_alphanumeric': 0.09771181199752628, 'fraction_numerical': 0.0055658627087198514, 'mean_word_length': 4.287581699346405, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '3019880', 'n_tokens_mistral': 541, 'n_tokens_neox': 500, 'n_words': 155}