<commit_before>package net.drewke.tdme.gui;

import java.io.IOException;

import net.drewke.tdme.os.FileSystem;
import net.drewke.tdme.utils.HashMap;

/**
 * GUI Checkbox
 * @author <NAME>
 * @version $Id$
 */
public class GUICheckbox extends GUIElement  {

	private static final String NAME = "checkbox";

	private HashMap<String, String> attributes;
	private String template;

	/**
	 * Constructor
	 */
	protected GUICheckbox() throws IOException {
		attributes = new HashMap<String, String>();
		template = FileSystem.getInstance().getContent("resources/gui/definitions/elements", "checkbox.xml");
	}

	/*
	 * (non-Javadoc)
	 * @see net.drewke.tdme.gui.GUIElement#getName()
	 */
	protected String getName() {
		return NAME;
	}

	/*
	 * (non-Javadoc)
	 * @see net.drewke.tdme.gui.GUIElement#getTemplate(net.drewke.tdme.utils.HashMap)
	 */
	protected String getTemplate() {
		return template;
	}

	/*
	 * (non-Javadoc)
	 * @see net.drewke.tdme.gui.GUIElement#getAttributes()
	 */
	protected HashMap<String, String> getAttributes() {
		attributes.clear();
		attributes.put("id", "");
		attributes.put("padding", "5");
		attributes.put("width", "100%");
		attributes.put("height", "auto");
		attributes.put("separator-width", "10");
		attributes.put("text-horizontal-align", "left");
		attributes.put("text", "");
		attributes.put("text-color", "#000000");
		return attributes;
	}

	/*
	 * (non-Javadoc)
	 * @see net.drewke.tdme.gui.GUIElement#createController(net.drewke.tdme.gui.GUINode)
	 */
	protected GUINodeController createController(GUINode node) {
		// TODO Auto-generated method stub<commit_msg>GUI::forgot about these now unnecessary attributes<commit_after>package net.drewke.tdme.gui;

import java.io.IOException;

import net.drewke.tdme.os.FileSystem;
import net.drewke.tdme.utils.HashMap;

/**
 * GUI Checkbox
 * @author <NAME>
 * @version $Id$
 */
public class GUICheckbox extends GUIElement  {

	private static final String NAME = "checkbox";

	private HashMap<String, String> attributes;
	private String template;

	/**
	 * Constructor
	 */
	protected GUICheckbox() throws IOException {
		attributes = new HashMap<String, String>();
		template = FileSystem.getInstance().getContent("resources/gui/definitions/elements", "checkbox.xml");
	}

	/*
	 * (non-Javadoc)
	 * @see net.drewke.tdme.gui.GUIElement#getName()
	 */
	protected String getName() {
		return NAME;
	}

	/*
	 * (non-Javadoc)
	 * @see net.drewke.tdme.gui.GUIElement#getTemplate(net.drewke.tdme.utils.HashMap)
	 */
	protected String getTemplate() {
		return template;
	}

	/*
	 * (non-Javadoc)
	 * @see net.drewke.tdme.gui.GUIElement#getAttributes()
	 */
	protected HashMap<String, String> getAttributes() {
		attributes.clear();
		attributes.put("id", "");
		return attributes;
	}

	/*
	 * (non-Javadoc)
	 * @see net.drewke.tdme.gui.GUIElement#createController(net.drewke.tdme.gui.GUINode)
	 */
	protected GUINodeController createController(GUINode node) {
		// TODO Auto-generated method stub
{'fraction_non_alphanumeric': 0.15237134207870837, 'fraction_numerical': 0.004036326942482341, 'mean_word_length': 4.263716814159292, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, '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': '7474236', 'n_tokens_mistral': 1079, 'n_tokens_neox': 975, 'n_words': 181}