<commit_before>/** @jsx React.DOM */
var GenreList = React.createClass({
  render: function() {
    var createItem = function(itemText) {
      return itemText;
    };

    var genres = this.props.items;
    var counts = {};

    for(var i = 0; i < genres.length; i++) {
        var num = genres[i];
        if (counts[num]) {
          counts[num] += 1;
        } else {
          counts[num] = 1;
        }
    }

    var returnValue = "";
    for (count in counts) {
      returnValue += " " + count + ": " + counts[count];
    }

    return <div>
      <p>{returnValue}</p>
    </div>;
  }
});<commit_msg>add styling to genre types<commit_after>/** @jsx React.DOM */
var GenreList = React.createClass({
  render: function() {
    var items = this.props.items;
    var genres = {};

    for(var i = 0; i < items.length; i++) {
        var num = items[i];
        if (genres[num]) {
          genres[num] += 1;
        } else {
          genres[num] = 1;
        }
    }

    var returnValue = [];
    for (genre in genres) {
      returnValue.push(<li><p> {genre}: {genres[genre]} </p></li>);
    }

    return <div>
      <ul>{returnValue}</ul>
    </div>;
  }
});
{'fraction_non_alphanumeric': 0.17722602739726026, 'fraction_numerical': 0.005136986301369863, 'mean_word_length': 1.9225, 'pattern_counts': {'":': 1, '<': 17, '<?xml version=': 0, '>': 15, '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': '7625464', 'n_tokens_mistral': 418, 'n_tokens_neox': 399, 'n_words': 94}