<commit_before>import cx from 'classnames';
import React from 'react';

export default class NowPlaying extends React.Component {
  static propTypes = {
    className: React.PropTypes.string,
    artist: React.PropTypes.string,
    title: React.PropTypes.string
  };

  render() {
    return (
      <div className={cx('NowPlaying', this.props.className)}><commit_msg>playback: only rerender now-playing bar if song changed<commit_after>import cx from 'classnames';
import isEqual from 'is-equal-shallow';
import React from 'react';

export default class NowPlaying extends React.Component {
  static propTypes = {
    className: React.PropTypes.string,
    artist: React.PropTypes.string,
    title: React.PropTypes.string
  };

  shouldComponentUpdate(nextProps, nextState) {
    return !isEqual(this.props, nextProps) ||
           !isEqual(this.state, nextState);
  }

  render() {
    return (
      <div className={cx('NowPlaying', this.props.className)}>
{'fraction_non_alphanumeric': 0.11342351716961499, 'fraction_numerical': 0.0, 'mean_word_length': 4.08994708994709, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '3421396', 'n_tokens_mistral': 284, 'n_tokens_neox': 276, 'n_words': 71}