<commit_before><?php
/**
 * @author ofields
 */

namespace elevate\HVObjects\Thing\DataXML\Type;

use JMS\Serializer\Annotation\Type;
use JMS\Serializer\Annotation\SerializedName;
use JMS\Serializer\Annotation\XmlMap;
use JMS\Serializer\Annotation\XmlRoot;
use JMS\Serializer\Annotation\XmlAttribute;
use JMS\Serializer\Annotation\XmlList;
use JMS\Serializer\Annotation\Groups;

use elevate\HVObjects\Generic\Date\DateTime;

/** @XmlRoot("question-answer") */
class QuestionAnswerType
{

    /**
     * @Type("elevate\HVObjects\Generic\Date\DateTime")
     * @SerializedName("when")
     */
    protected $when;
    /**
     * @Type("elevate\HVObjects\Generic\CodableValue")
     * @SerializedName("question")
     */
    protected $question;
    /**
     * @var array
     * @XmlList(inline=true, entry="answer-choice")
     * @Type("array<elevate\HVObjects\Generic\CodableValue>")
     */
    protected $answerChoices;
    /**
     * @var array
     * @XmlList(inline=true, entry="answer")
     * @Type("array<elevate\HVObjects\Generic\CodableValue>")
     */
    protected $answers;

    function __construct(
        $question = NULL, $answerChoices = array(), $answers = array(), DateTime $when = NULL
    )
    {
        $this->answerChoices = $answerChoices;
        $this->answers       = $answers;
        $this->question      = $question;
        $this->when          = $when;
    }

    /**
     * @param array $answerChoices
     */
    public function setAnswerChoices($answerChoices)
    {
        $this->answerChoices = $answerChoices;
    }

    /**
     * @return array
     */
    public function getAnswerChoices()
    {
        return $this->answerChoices;
    }

    /**
     * @param array $answers
     */
    public function setAnswers($answers)
    {
        $this->answers = $answers;
    }

    /**
     * @return array
     */
    public function getAnswers()
    {
        return $this->answers;
    }

    /**
     * @param mixed $question
     */
    public function setQuestion($question)
    {
        $this->question = $question;
    }

    /**
     * @return mixed
     */
    public function getQuestion()
    {
        return $this->question;
    }

    /**
     * @param mixed $when
     */
    public function setWhen(DateTime $when)
    {
        $this->when = $when;
    }

    /**
     * @return mixed
     */
    public function getWhen()
    {
        return $this->when;
    }


}<commit_msg>Added some typehinting to QA type<commit_after><?php
/**
 * @author ofields
 */

namespace elevate\HVObjects\Thing\DataXML\Type;

use JMS\Serializer\Annotation\Type;
use JMS\Serializer\Annotation\SerializedName;
use JMS\Serializer\Annotation\XmlMap;
use JMS\Serializer\Annotation\XmlRoot;
use JMS\Serializer\Annotation\XmlAttribute;
use JMS\Serializer\Annotation\XmlList;
use JMS\Serializer\Annotation\Groups;
use elevate\HVObjects\Generic\CodableValue;

use elevate\HVObjects\Generic\Date\DateTime;

/** @XmlRoot("question-answer") */
class QuestionAnswerType
{

    /**
     * @Type("elevate\HVObjects\Generic\Date\DateTime")
     * @SerializedName("when")
     */
    protected $when;
    /**
     * @Type("elevate\HVObjects\Generic\CodableValue")
     * @SerializedName("question")
     */
    protected $question;
    /**
     * @var array
     * @XmlList(inline=true, entry="answer-choice")
     * @Type("array<elevate\HVObjects\Generic\CodableValue>")
     */
    protected $answerChoices;
    /**
     * @var array
     * @XmlList(inline=true, entry="answer")
     * @Type("array<elevate\HVObjects\Generic\CodableValue>")
     */
    protected $answers;

    function __construct(
        $question = NULL, $answerChoices = array(), $answers = array(), DateTime $when = NULL
    )
    {
        $this->answerChoices = $answerChoices;
        $this->answers       = $answers;
        $this->question      = $question;
        $this->when          = $when;
    }

    /**
     * @param array $answerChoices
     */
    public function setAnswerChoices($answerChoices)
    {
        $this->answerChoices = $answerChoices;
    }

    /**
     * @return array
     */
    public function getAnswerChoices()
    {
        return $this->answerChoices;
    }

    /**
     * @param array $answers
     */
    public function setAnswers($answers)
    {
        $this->answers = $answers;
    }

    /**
     * @return array
     */
    public function getAnswers()
    {
        return $this->answers;
    }

    /**
     * @param CodableValue $question
     */
    public function setQuestion($question)
    {
        $this->question = $question;
    }

    /**
     * @return CodableValue
     */
    public function getQuestion()
    {
        return $this->question;
    }

    /**
     * @param mixed $when
     */
    public function setWhen(DateTime $when)
    {
        $this->when = $when;
    }

    /**
     * @return mixed
     */
    public function getWhen()
    {
        return $this->when;
    }


}
{'fraction_non_alphanumeric': 0.14054927302100162, 'fraction_numerical': 0.0, 'mean_word_length': 2.2478688524590162, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 31, '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': '6540371', 'n_tokens_mistral': 1627, 'n_tokens_neox': 1531, 'n_words': 259}