<commit_before>package net.tsolval.poc.ql.entity;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

import net.tsolval.poc.ql.constants.ResponseType;

/**
 * This object represents a question to be asked. A Question is related to an
 * Answer.
 * 
 * @author walker.d.adams
 */
public class Question {
	private String questionId;
	private String questionString;
	private Question parent;
	private List<Question> children;
	private ResponseType responseType;
	private Response response;
	private Conditional conditional;

	public Question() {
		children = new ArrayList<Question>();
		setResponse(new Response(this));
	}

	public Question(String question) {
		this();
		setQuestionString(question);
	}

	public Question(String question, ResponseType responseType) {
		this(question);
		setResponseType(responseType);
	}

	public Question(String question, ResponseType responseType, Conditional conditional) {
		this(question, responseType);
		setConditional(conditional);
	}

	public Question(String question, Question parent) {
		this(question);
		setParent(parent);<commit_msg>Updated to insert question Id on constructors accessed by controller.<commit_after>package net.tsolval.poc.ql.entity;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

import net.tsolval.poc.ql.constants.ResponseType;

/**
 * This object represents a question to be asked. A Question is related to an
 * Answer.
 * 
 * @author walker.d.adams
 */
public class Question {
	private String questionId;
	private String questionString;
	private Question parent;
	private List<Question> children;
	private ResponseType responseType;
	private Response response;
	private Conditional conditional;

	public Question() {
		children = new ArrayList<Question>();
		setResponse(new Response(this));
	}

	public Question(String question) {
		this();
		setQuestionString(question);
	}
	
	public Question(String question, ResponseType responseType) {
		this(question);
		setResponseType(responseType);
	}
	
	public Question(String questionId, String question, ResponseType responseType) {
		this(question);
		setResponseType(responseType);
		setQuestionId(questionId);
	}

	public Question(String question, ResponseType responseType, Conditional conditional) {
		this(question, responseType);
		setConditional(conditional);
	}
	
	public Question(String questionId, String question, ResponseType responseType, Conditional conditional) {
		this(question, responseType);
		setQuestionId(questionId);
		setConditional(conditional);
	}

	public Question(String question, Question parent) {
		this(question);
		setParent(parent);
{'fraction_non_alphanumeric': 0.0928030303030303, 'fraction_numerical': 0.0, 'mean_word_length': 5.488943488943489, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '3317739', 'n_tokens_mistral': 772, 'n_tokens_neox': 724, 'n_words': 205}