<commit_before>EC.UnitTemplateProfileActivityTable = React.createClass({
  propTypes: {
    data: React.PropTypes.object.isRequired,
    actions: React.PropTypes.object.isRequired
  },

  renderActivities: function() {
    return this.props.data.model.activities.map(function(act){
      return (
        <tr>
          <td>
            <div className={act.classification.image_class}></div>
          </td>
          <td>
            {act.name}
          </td>
          <td>
            {act.topic.topic_category.name}
          </td>
          <td>
            <a href={act.anonymous_path} className="button-green full-width preview-button">Preview Activity</a>
          </td>
        </tr>
      )
    })
  },

  render: function () {
    return (
      <table className='table activity-table activity-pack'>
        <thead>
          <tr>
          <th>App</th>
          <th>Activity</th>
          <th>Concept</th>
          <th></th>
          </tr>
        </thead>
        <tbody>
          {this.renderActivities()}
        </tbody>
      </table>
    )
  }
});<commit_msg>open activity previews in a new tab.<commit_after>EC.UnitTemplateProfileActivityTable = React.createClass({
  propTypes: {
    data: React.PropTypes.object.isRequired,
    actions: React.PropTypes.object.isRequired
  },

  renderActivities: function() {
    return this.props.data.model.activities.map(function(act){
      return (
        <tr>
          <td>
            <div className={act.classification.image_class}></div>
          </td>
          <td>
            {act.name}
          </td>
          <td>
            {act.topic.topic_category.name}
          </td>
          <td>
            <a href={act.anonymous_path} target="_blank" className="button-green full-width preview-button">Preview Activity</a>
          </td>
        </tr>
      )
    })
  },

  render: function () {
    return (
      <table className='table activity-table activity-pack'>
        <thead>
          <tr>
          <th>App</th>
          <th>Activity</th>
          <th>Concept</th>
          <th></th>
          </tr>
        </thead>
        <tbody>
          {this.renderActivities()}
        </tbody>
      </table>
    )
  }
});
{'fraction_non_alphanumeric': 0.1448619284744228, 'fraction_numerical': 0.0, 'mean_word_length': 1.6467065868263473, 'pattern_counts': {'":': 0, '<': 63, '<?xml version=': 0, '>': 63, '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': '3234935', 'n_tokens_mistral': 678, 'n_tokens_neox': 669, 'n_words': 109}