<commit_before>import React from 'react';

var AnsweredQuestion = React.createClass({

    propTypes: {
      questionText: React.PropTypes.string.isRequired,
      userAnswer: React.PropTypes.string.isRequired,
      correctAnswer:  React.PropTypes.string.isRequired,
    },

    render: function() {

      let questionText = this.props.questionText;
      let userAnswer = this.props.userAnswer;
      let correctAnswer = this.props.correctAnswer;
      let isCorrect = (correctAnswer === userAnswer) ? true : false;
      let answerText;

      if (isCorrect) {
        answerText = (
          <p className="answered-text">
            <span className="result-correct">27</span>
          </p>
        );
      } else {
        answerText = (
          <p className="answered-text">
            <span className="result-wrong">27</span>
            <span className="correct-answer"> - the correct answer is {correctAnswer}</span>
          </p>
        );
      }

      return (
          <div className="answered-question-component">
            <p className="question-text">{questionText}</p>
            {answerText}
          </div>
      );
    }
});

export default AnsweredQuestion;
<commit_msg>Fixed some state output in AnsweredQuestion<commit_after>import React from 'react';

var AnsweredQuestion = React.createClass({

    propTypes: {
      questionText: React.PropTypes.string.isRequired,
      userAnswer: React.PropTypes.string.isRequired,
      correctAnswer:  React.PropTypes.string.isRequired,
    },

    render: function() {

      let questionText = this.props.questionText;
      let userAnswer = this.props.userAnswer;
      let correctAnswer = this.props.correctAnswer;
      let isCorrect = (correctAnswer === userAnswer) ? true : false;
      let answerText;

      if (isCorrect) {
        answerText = (
          <p className="answered-text">
            <span className="result-correct">{userAnswer}</span>
          </p>
        );
      } else {
        answerText = (
          <p className="answered-text">
            <span className="result-wrong">{userAnswer}</span>
            <span className="correct-answer"> - the correct answer is {correctAnswer}</span>
          </p>
        );
      }

      return (
          <div className="answered-question-component">
            <p className="question-text">{questionText}</p>
            {answerText}
          </div>
      );
    }
});

export default AnsweredQuestion;

{'fraction_non_alphanumeric': 0.12175324675324675, 'fraction_numerical': 0.0016233766233766235, 'mean_word_length': 2.2434210526315788, 'pattern_counts': {'":': 0, '<': 31, '<?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': '3825005', 'n_tokens_mistral': 715, 'n_tokens_neox': 661, 'n_words': 135}