<commit_before>define(function (require) {
  "use strict";

  var React = require('react'),
      modals = require('modals'),
      stores = require('stores');

  return React.createClass({
    renderBadgeDetail: function(e){
      e.preventDefault();
      console.log("ayy");
      modals.BadgeModals.showBadge(this.props.badge);
    },

    getInitialState: function(){
      var badgeText = this.props.badge.get('criteria')[0].description;
      return({
        text: badgeText,
        badgeSlug: this.props.badge.get('slug')
      });
    },

    render: function () {
      var badge = this.props.badge;

      return(
        <li onClick={this.renderBadgeDetail} className='badge-li'>
          <img className='badge-image' src={badge.get('imageUrl')} />
          <h4 className='badge-name'>{badge.get('name')}</h4>
          <p className='badge-text'>
          {this.state.text}
          </p>
        </li>
      );
    }


  });

});<commit_msg>removed console log<commit_after>define(function (require) {
  "use strict";

  var React = require('react'),
      modals = require('modals'),
      stores = require('stores');

  return React.createClass({
    renderBadgeDetail: function(e){
      e.preventDefault();
      modals.BadgeModals.showBadge(this.props.badge);
    },

    getInitialState: function(){
      var badgeText = this.props.badge.get('criteria')[0].description;
      return({
        text: badgeText,
        badgeSlug: this.props.badge.get('slug')
      });
    },

    render: function () {
      var badge = this.props.badge;

      return(
        <li onClick={this.renderBadgeDetail} className='badge-li'>
          <img className='badge-image' src={badge.get('imageUrl')} />
          <h4 className='badge-name'>{badge.get('name')}</h4>
          <p className='badge-text'>
          {this.state.text}
          </p>
        </li>
      );
    }


  });

});
{'fraction_non_alphanumeric': 0.16754478398314016, 'fraction_numerical': 0.003161222339304531, 'mean_word_length': 2.433996383363472, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 17, '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': '1213305', 'n_tokens_mistral': 624, 'n_tokens_neox': 612, 'n_words': 95}