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

let TrackList = React.createClass({
  render: function() {
    /* jshint ignore:start */
    return (
      <div
        className={this.props.trackClassName}
        onClick={this.props.onClick}
        onContextMenu={this.props.onContextMenu}>
          <i className={this.props.iconClassName}></i>
          <img src={this.props.track.covers.medium}/>
          <div className="track-artist">{this.props.track.artist}</div>
          <div className="track-name">{this.props.track.title}</div>
      </div>
    );
    /* jshint ignore:end */
  }
});

module.exports = TrackList;
<commit_msg>rewrite src/views/components/shared/track/track-list.js with ES6 syntax<commit_after>import React from 'react';

class TrackList extends React.Component {
  constructor(props) {
    super(props);
  }

  render() {
    return (
      <div
        className={this.props.trackClassName}
        onClick={this.props.onClick}
        onContextMenu={this.props.onContextMenu}>
          <i className={this.props.iconClassName}></i>
          <img src={this.props.track.covers.medium}/>
          <div className="track-artist">{this.props.track.artist}</div>
          <div className="track-name">{this.props.track.title}</div>
      </div>
    );
  }
}

module.exports = TrackList;

{'fraction_non_alphanumeric': 0.15665399239543726, 'fraction_numerical': 0.0007604562737642585, 'mean_word_length': 2.836734693877551, 'pattern_counts': {'":': 0, '<': 21, '<?xml version=': 0, '>': 21, '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': '2228305', 'n_tokens_mistral': 410, 'n_tokens_neox': 410, 'n_words': 59}