<commit_before>package scrum.client.common;

import ilarkesto.base.Str;

import java.util.HashMap;
import java.util.Map;

/**
 * Base class for entities.
 */
public class AEntity {

	public static final String ID = "id";

	private Map<String, String> properties = new HashMap<String, String>();

	public AEntity(String id) {
		setProperty(ID, id);
	}

	public String getId() {
		return getProperty(ID);
	}

	@Override
	public String toString() {
		return getId();
	}

	protected final String getProperty(String name) {
		return properties.get(name);
	}

	protected final boolean getPropertyAsBool(String name) {
		return Str.isTrue(getProperty(name));
	}

	protected final void setProperty(String name, String value) {
		properties.put(name, value);
	}

	protected final void setProperty(String name, boolean value) {
		setProperty(name, value ? "true" : "false");
	}

	protected final void setProperties(Map<String, String> properties) {
		this.properties = properties;
	}
}<commit_msg>bugfix<commit_after>package scrum.client.common;

import java.util.HashMap;
import java.util.Map;

/**
 * Base class for entities.
 */
public class AEntity {

	public static final String ID = "id";

	private Map<String, String> properties = new HashMap<String, String>();

	public AEntity(String id) {
		setProperty(ID, id);
	}

	public String getId() {
		return getProperty(ID);
	}

	@Override
	public String toString() {
		return getId();
	}

	protected final String getProperty(String name) {
		return properties.get(name);
	}

	protected final boolean getPropertyAsBool(String name) {
		String s = getProperty(name);
		if (s == null) return false;
		return s.equals("true");
	}

	protected final void setProperty(String name, String value) {
		properties.put(name, value);
	}

	protected final void setProperty(String name, boolean value) {
		setProperty(name, value ? "true" : "false");
	}

	protected final void setProperties(Map<String, String> properties) {
		this.properties = properties;
	}
}
{'fraction_non_alphanumeric': 0.11764705882352941, 'fraction_numerical': 0.0, 'mean_word_length': 4.497237569060774, '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': '6430487', 'n_tokens_mistral': 641, 'n_tokens_neox': 606, 'n_words': 178}