<commit_before>package voogasalad_GucciGames.gameEngine.mapObject;

import java.lang.reflect.Field;

import javax.script.ScriptEngine;
import javax.script.ScriptEngineManager;
import javax.script.ScriptException;

import voogasalad_GucciGames.gameEngine.defaultCharacteristics.AttackCharacteristic;
import voogasalad_GucciGames.gameEngine.defaultCharacteristics.HealthCharacteristic;

public abstract class AMapObjectCharacteristic implements Cloneable{

	public AMapObjectCharacteristic clone() {
		try {
			return (AMapObjectCharacteristic) super.clone();
		} catch (CloneNotSupportedException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		return null;
	}
	
	@Override
	public String toString() {
		Field[] fields = this.getClass().getDeclaredFields();
		ScriptEngineManager manager = new ScriptEngineManager();
		ScriptEngine groovy = manager.getEngineByName("groovy");
		groovy.put("prop", this);
		String result = "";
		for(Field field: fields){
			String var = field.getName();
			try {
				result += var + " = " + groovy.eval("prop.get"+var+"();") + "\n";
			} catch (ScriptException e) {
				// TODO Auto-generated catch block
				e.printStackTrace();
			}
		}
		return result.trim();
	}

	public static void main(String[] args){
		AMapObjectCharacteristic health = new HealthCharacteristic();
		System.out.println(health.toString());
		
		AMapObjectCharacteristic attack = new AttackCharacteristic(5,5,5);
		System.out.println(attack.toString());
	}
}
<commit_msg>Commented out master.<commit_after>package voogasalad_GucciGames.gameEngine.mapObject;

import java.lang.reflect.Field;

import javax.script.ScriptEngine;
import javax.script.ScriptEngineManager;
import javax.script.ScriptException;

import voogasalad_GucciGames.gameEngine.defaultCharacteristics.AttackCharacteristic;
import voogasalad_GucciGames.gameEngine.defaultCharacteristics.HealthCharacteristic;

public abstract class AMapObjectCharacteristic implements Cloneable{

	public AMapObjectCharacteristic clone() {
		try {
			return (AMapObjectCharacteristic) super.clone();
		} catch (CloneNotSupportedException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		return null;
	}
	
	@Override
	public String toString() {
		Field[] fields = this.getClass().getDeclaredFields();
		ScriptEngineManager manager = new ScriptEngineManager();
		ScriptEngine groovy = manager.getEngineByName("groovy");
		groovy.put("prop", this);
		String result = "";
		for(Field field: fields){
			String var = field.getName();
			try {
				result += var + " = " + groovy.eval("prop.get"+var+"();") + "\n";
			} catch (ScriptException e) {
				// TODO Auto-generated catch block
				e.printStackTrace();
			}
		}
		return result.trim();
	}

	/*
	public static void main(String[] args){
		AMapObjectCharacteristic health = new HealthCharacteristic();
		System.out.println(health.toString());
		
		AMapObjectCharacteristic attack = new AttackCharacteristic(5,5,5);
		System.out.println(attack.toString());
	}
	*/
}

{'fraction_non_alphanumeric': 0.11704244031830238, 'fraction_numerical': 0.001989389920424403, 'mean_word_length': 4.986111111111111, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '142138', 'n_tokens_mistral': 988, 'n_tokens_neox': 881, 'n_words': 184}