<commit_before>import React, { Component } from 'react';


class VideoPreview extends Component {
  render() {
    return (
      <div></div>
    );
  }
}

VideoPreview.propTypes = {
  videoId: React.PropTypes.string.isRequired;
  videoTitle: React.PropTypes.string.isRequired;
  videoDescription: React.PropTypes.string.isRequired;
}

export default VideoPreview;
<commit_msg>Use props to draw content in preview<commit_after>import React, { Component } from 'react';


class VideoPreview extends Component {
  render() {
    return (
      <div className="VideoPreview">
        <h3 className="VideoPreview__Title">{this.props.videoTitle}</h3>
        <img />
        <p className="VideoPreview__Description">{this.props.videoDescription}</p>
      </div>
    );
  }
}

VideoPreview.propTypes = {
  videoId: React.PropTypes.string.isRequired;
  videoTitle: React.PropTypes.string.isRequired;
  videoDescription: React.PropTypes.string.isRequired;
}

export default VideoPreview;

{'fraction_non_alphanumeric': 0.11824668705402651, 'fraction_numerical': 0.0020387359836901123, 'mean_word_length': 4.010204081632653, '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': '5977509', 'n_tokens_mistral': 293, 'n_tokens_neox': 290, 'n_words': 57}