<commit_before>var data = [
  {author: "<NAME>", text: "This is one comment"},
  {author: "<NAME>", text: "This is *another* comment"}
];

var CommentBox = React.createClass({
  render: function() {
    return (
      <div className="commentBox">
        <h1>Comments</h1>
        <CommentList data={this.props.data} />
        <CommentForm />
      </div>
    );
  }
});
var CommentList = React.createClass({
  render: function() {
    return (
      <div className="commentList">
        <Comment author="<NAME>">This is one component</Comment>
        <Comment author="<NAME>">This is *another* component</Comment>
      </div>
    );
  }
});

var CommentForm = React.createClass({
  render: function() {<commit_msg>tutorial10.js コメントを動的にレンダリング<commit_after>var data = [
  {author: "<NAME>", text: "This is one comment"},
  {author: "<NAME>", text: "This is *another* comment"}
];

var CommentBox = React.createClass({
  render: function() {
    return (
      <div className="commentBox">
        <h1>Comments</h1>
        <CommentList data={this.props.data} />
        <CommentForm />
      </div>
    );
  }
});
var CommentList = React.createClass({
  render: function() {
    var commentNodes = this.props.data.map(function (comment) {
      return (
        <Comment author={comment.author}>
          {comment.text}
        </Comment>
      );
    });
    return (
      <div className="commentList">
        {commentNodes}
      </div>
    );
  }
});

var CommentForm = React.createClass({
  render: function() {
{'fraction_non_alphanumeric': 0.16754270696452037, 'fraction_numerical': 0.003942181340341655, 'mean_word_length': 2.732843137254902, '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': '2612022', 'n_tokens_mistral': 488, 'n_tokens_neox': 479, 'n_words': 107}