<commit_before>Species.DocumentsTooltipComponent = Ember.Component.extend
  layoutName: 'species/components/documents-tooltip'

  multipleValues: ( ->
    this.get('data').length > 1
  ).property('person')

  formattedData: ( ->
    this.get('data').join(', ')
  ).property()

  isTaxa: ( ->
    this.get('type') == 'taxa'
  ).property()<commit_msg>limit tooltips at 40 names<commit_after>Species.DocumentsTooltipComponent = Ember.Component.extend
  layoutName: 'species/components/documents-tooltip'

  multipleValues: ( ->
    this.get('data').length > 1
  ).property('person')

  formattedData: ( ->
    data = this.get('data')
    dataStr = data.slice(0,40).join(', ')

    if data.length <= 40 then dataStr else dataStr + '...'
  ).property()

  isTaxa: ( ->
    this.get('type') == 'taxa'
  ).property()
{'fraction_non_alphanumeric': 0.18170580964153277, 'fraction_numerical': 0.011124845488257108, 'mean_word_length': 3.6551724137931036, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 11, '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': '3876695', 'n_tokens_mistral': 281, 'n_tokens_neox': 262, 'n_words': 43}