<commit_before>import React from 'react';
require('./../../public/main.css');

class Challenge extends React.Component {
  constructor(props) {
    super(props);
    this.state = {};
    console.log('props:',  props);
    // console.log(this.state)
    this.updateChallenge = this.updateChallenge.bind(this);
  }

  updateChallenge(e) {
    this.setState({
      challenge: e.target.value
    });
  }

  render() {
    return (
      <div>
        {this.props.chapter ? this.props.chapter[0].challengeText : null}
      </div>
    );
  }
}

export default Challenge;<commit_msg>Make html render on page from server<commit_after>import React from 'react';
require('./../../public/main.css');

class Challenge extends React.Component {
  constructor(props) {
    super(props);
    this.state = {};
  }

  render() {
    return (
      <div>
        <strong><p> Challenge Text </p></strong>
        <div dangerouslySetInnerHTML={{__html: this.props.chapter ? this.props.chapter[0].challengeText : null}} />
      </div>
    );
  }
}

export default Challenge;
{'fraction_non_alphanumeric': 0.16193181818181818, 'fraction_numerical': 0.001893939393939394, 'mean_word_length': 2.802158273381295, 'pattern_counts': {'":': 0, '<': 12, '<?xml version=': 0, '>': 12, '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': '903599', 'n_tokens_mistral': 339, 'n_tokens_neox': 325, 'n_words': 64}