<commit_before>import React from 'react'
import Answer from './Answer'

class Question extends React.Component {
  constructor () {
    super()
    this.state = {
      selectedAnswer: null
    }
  }

  render () {
    const { instruction, text, correct, answers } = this.props
    return (
      <div>
        <p>{instruction}</p>
        <p>{text}</p>
        <ul>
          {answers.map((a, i) => (
            <Answer key={i}
                    active={i === this.state.selectedAnswer}
                    onClick={() => this.setState({ selectedAnswer: i })}>{a}</Answer>
          ))}
        </ul>
    </div>
    )
  }<commit_msg>Use ES7 class properties<commit_after>import React from 'react'
import Answer from './Answer'

class Question extends React.Component {
  state = {
    selectedAnswer: null
  }

  render () {
    const { instruction, text, correct, answers } = this.props
    return (
      <div>
        <p>{instruction}</p>
        <p>{text}</p>
        <ul>
          {answers.map((a, i) => (
            <Answer key={i}
                    active={i === this.state.selectedAnswer}
                    onClick={() => this.setState({ selectedAnswer: i })}>{a}</Answer>
          ))}
        </ul>
    </div>
    )
  }
{'fraction_non_alphanumeric': 0.15899919289749798, 'fraction_numerical': 0.0008071025020177562, 'mean_word_length': 1.8054298642533937, 'pattern_counts': {'":': 0, '<': 23, '<?xml version=': 0, '>': 27, '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': '1017154', 'n_tokens_mistral': 385, 'n_tokens_neox': 367, 'n_words': 85}