<commit_before>import React, { Component, PropTypes } from 'react';
import { Link } from 'react-router';

class MediaMetadataSummary extends Component {

  render() {
    const { media, data } = this.props;

    return (
      <div className='media-metadata-summary'>
        <span className='media-metadata-summary__datum'>{media.annotations_count} notes</span>
        <span className='media-metadata-summary__datum'>{media.domain}</span>
        <span className='media-metadata-summary__datum'>{data.username ? '@' + data.username : null}</span>
      </div>
    );
  }
}

export default MediaMetadataSummary;<commit_msg>Pluralize media notes count appropriately<commit_after>import React, { Component, PropTypes } from 'react';
import { Link } from 'react-router';

class MediaMetadataSummary extends Component {

  render() {
    const { media, data } = this.props;
    const annotationsCount = media.annotations_count; // TODO: filter to count of annotations displayed on timeline

    return (
      <div className='media-metadata-summary'>
        <span className='media-metadata-summary__datum'>{annotationsCount} note{annotationsCount === 1 ? '' : 's'}</span>
        <span className='media-metadata-summary__datum'>{media.domain}</span>
        <span className='media-metadata-summary__datum'>{data.username ? '@' + data.username : null}</span>
      </div>
    );
  }
}

export default MediaMetadataSummary;
{'fraction_non_alphanumeric': 0.13530655391120508, 'fraction_numerical': 0.0007047216349541931, 'mean_word_length': 4.05338078291815, 'pattern_counts': {'":': 0, '<': 19, '<?xml version=': 0, '>': 19, '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': '247456', 'n_tokens_mistral': 395, 'n_tokens_neox': 386, 'n_words': 87}