<commit_before>-#   Copyright (c) 2011, Diaspora Inc.  This file is
-#   licensed under the Affero General Public License version 3 or later.  See
-#   the COPYRIGHT file.

.dropdown{:class => "hang_#{hang}"}
  .button.toggle{:class => ("in_aspects" if contact.aspects.size > 0)}
    - if contact.aspects.size == 1
      = contact.aspects.first.name
    - else
      = t('.toggle', :count => contact.aspects.size)
    &#9660;

  .wrapper
    %ul.dropdown_list{:unSelectable => 'on', 'data-person_id' => ((person.id) if person)}
      - for aspect in all_aspects
        = aspect_dropdown_list_item(aspect, contact, person)

      - if defined?(@aspect) && ( @aspect == :profile || @aspect == :tag || @aspect == :search || @aspect == :notification)
        %li.newItem
          .add_aspect
            = link_to t('contacts.index.add_a_new_aspect'), new_aspect_path(:person_id => person.id), :rel => 'facebox'<commit_msg>Put the new_aspect class on the notification page aspect dropdown, so that the focus js is triggered<commit_after>-#   Copyright (c) 2011, Diaspora Inc.  This file is
-#   licensed under the Affero General Public License version 3 or later.  See
-#   the COPYRIGHT file.

.dropdown{:class => "hang_#{hang}"}
  .button.toggle{:class => ("in_aspects" if contact.aspects.size > 0)}
    - if contact.aspects.size == 1
      = contact.aspects.first.name
    - else
      = t('.toggle', :count => contact.aspects.size)
    &#9660;

  .wrapper
    %ul.dropdown_list{:unSelectable => 'on', 'data-person_id' => ((person.id) if person)}
      - for aspect in all_aspects
        = aspect_dropdown_list_item(aspect, contact, person)

      - if defined?(@aspect) && ( @aspect == :profile || @aspect == :tag || @aspect == :search || @aspect == :notification)
        %li.newItem
          .add_aspect
            = link_to t('contacts.index.add_a_new_aspect'), new_aspect_path(:person_id => person.id), :rel => 'facebox', :class => 'new_aspect'
{'fraction_non_alphanumeric': 0.1530977982590886, 'fraction_numerical': 0.011264720942140297, 'mean_word_length': 3.175213675213675, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 20, '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': '5392034', 'n_tokens_mistral': 681, 'n_tokens_neox': 657, 'n_words': 161}