<commit_before>var React = require('react');


var BadgeInstance = React.createClass({
  render: function() {
    var badge = this.props.badge,
        doiRe = /(10\.\d{3}\d+)\/(.*)\b/,
        m = doiRe.exec(badge.evidenceUrl),
        paperUrl = '/v/#/papers/' + m[1] + '/' + encodeURIComponent(m[2]) + '/badges';

    return (
      <div className="badge pure-u-1-4">
          <div className="pure-u-1-2">
            <img src={ badge.badge.imageUrl }/>
          </div>
          <h4><a href={ '/v/#/badges/' + badge.badge.slug }>{ badge.badge.name }</a></h4>
          <a href={ '/v/#/users/' + badge.orcid + '/badges'}> { badge.orcid } </a><br />
          <a href={ paperUrl } > { badge.evidenceUrl } </a>
      </div>
    );
  }
});

module.exports = BadgeInstance;<commit_msg>badge -> badgeInstance * better description for variable<commit_after>var React = require('react');


var BadgeInstance = React.createClass({
  render: function() {
    var badgeInstance = this.props.badge,
        doiRe = /(10\.\d{3}\d+)\/(.*)\b/,
        m = doiRe.exec(badgeInstance.evidenceUrl),
        paperUrl = '/v/#/papers/' + m[1] + '/' + encodeURIComponent(m[2]) + '/badges';

    return (
      <div className="badge pure-u-1-4">
          <div className="pure-u-1-2">
            <img src={ badgeInstance.badge.imageUrl }/>
          </div>
          <h4><a href={ '/v/#/badges/' + badgeInstance.badge.slug }>{ badgeInstance.badge.name }</a></h4>
          <a href={ '/v/#/users/' + badgeInstance.orcid + '/badges'}> { badgeInstance.orcid } </a><br />
          <a href={ paperUrl } > { badgeInstance.evidenceUrl } </a>
      </div>
    );
  }
});

module.exports = BadgeInstance;
{'fraction_non_alphanumeric': 0.21262656343061345, 'fraction_numerical': 0.013103037522334724, 'mean_word_length': 2.287671232876712, 'pattern_counts': {'":': 0, '<': 31, '<?xml version=': 0, '>': 32, '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': '4137878', 'n_tokens_mistral': 621, 'n_tokens_neox': 590, 'n_words': 106}