<commit_before>/* global $ */
var React = require('react');
var rowStyle = require('./rowStyle');

var EventRow = module.exports = React.createClass({
  propTypes: {
    name: React.PropTypes.string.isRequired,
    desc: React.PropTypes.string.isRequired,
    handleInsert: React.PropTypes.func.isRequired
  },

  handleInsert: function() {
    this.props.handleInsert();
  },

  render: function() {
    var style = {
      container: $.extend({}, rowStyle.container, rowStyle.maxWidth),
      name: {
        color: '#4d575f',
        fontWeight: 'bold',
        fontSize: 15
      },
      desc: {
        color: '#949ca2',
        fontStyle: 'italic'
      }
    };

    return (
      <div style={style.container}>
        <div style={style.name}>
          {this.props.name}
        </div>
        <div style={style.desc}>
          {this.props.desc}
        </div>
        <div>
          <a onClick={this.handleInsert} className='hover-pointer'>Insert and show code</a>
        </div>
      </div>
    );
  }
});<commit_msg>code review feedback<commit_after>/* global $ */
var React = require('react');
var rowStyle = require('./rowStyle');

var EventRow = module.exports = React.createClass({
  propTypes: {
    name: React.PropTypes.string.isRequired,
    desc: React.PropTypes.string.isRequired,
    handleInsert: React.PropTypes.func.isRequired
  },

  render: function() {
    var style = {
      container: $.extend({}, rowStyle.container, rowStyle.maxWidth),
      name: {
        color: '#4d575f',
        fontWeight: 'bold',
        fontSize: 15
      },
      desc: {
        color: '#949ca2',
        fontStyle: 'italic'
      }
    };

    return (
      <div style={style.container}>
        <div style={style.name}>
          {this.props.name}
        </div>
        <div style={style.desc}>
          {this.props.desc}
        </div>
        <div>
          <a onClick={this.props.handleInsert} className='hover-pointer'>Insert and show code</a>
        </div>
      </div>
    );
  }
});
{'fraction_non_alphanumeric': 0.15614122327200397, 'fraction_numerical': 0.009945300845350571, 'mean_word_length': 2.153605015673981, 'pattern_counts': {'":': 0, '<': 23, '<?xml version=': 0, '>': 23, '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': '5145815', 'n_tokens_mistral': 638, 'n_tokens_neox': 622, 'n_words': 123}