<commit_before>.result
  - case result
  - when Conversation
    .comment_icon
    = link_to result.project, project_path(result.project)
    &rarr;
    - name = result.excerpts.name || truncate( h( sanitize( result.comments.try(:first).try(:body), :tags => [nil]) ), 80)
    = link_to name.html_safe, project_conversation_path(result.project, result)
    %span.time= time_ago_in_words result.updated_at
  - when TaskList
    .task_icon
    = link_to result.project, project_path(result.project)
    &rarr;
    = link_to result.excerpts.name.html_safe, project_task_list_path(result.project, result)
    %span.time= time_ago_in_words result.updated_at
  - when Task
    .task_icon
    = link_to result.project, project_path(result.project)
    &rarr;
    = link_to result.task_list, project_task_list_path(result.project, result.task_list)
    &rarr;
    = link_to result.excerpts.name.html_safe, project_task_path(result.project, result)
    %span.time= time_ago_in_words result.updated_at
  - when Page
    .page_icon
    = link_to result.project, project_path(result.project)
    &rarr;
    = link_to result.excerpts.name.html_safe, project_page_path(result.project, result)
    %span.time= time_ago_in_words result.updated_at<commit_msg>Fix case where conversation.excerpts.name can return empty string in search result partial<commit_after>.result
  - case result
  - when Conversation
    .comment_icon
    = link_to result.project, project_path(result.project)
    &rarr;
    - name = result.excerpts.name
    - name = !name.blank? ? name : truncate( h( sanitize( result.comments.try(:first).try(:body), :tags => [nil]) ), :length => 80)
    = link_to name.html_safe, project_conversation_path(result.project, result)
    %span.time= time_ago_in_words result.updated_at
  - when TaskList
    .task_icon
    = link_to result.project, project_path(result.project)
    &rarr;
    = link_to result.excerpts.name.html_safe, project_task_list_path(result.project, result)
    %span.time= time_ago_in_words result.updated_at
  - when Task
    .task_icon
    = link_to result.project, project_path(result.project)
    &rarr;
    = link_to result.task_list, project_task_list_path(result.project, result.task_list)
    &rarr;
    = link_to result.excerpts.name.html_safe, project_task_path(result.project, result)
    %span.time= time_ago_in_words result.updated_at
  - when Page
    .page_icon
    = link_to result.project, project_path(result.project)
    &rarr;
    = link_to result.excerpts.name.html_safe, project_page_path(result.project, result)
    %span.time= time_ago_in_words result.updated_at
{'fraction_non_alphanumeric': 0.10607225211375865, 'fraction_numerical': 0.0015372790161414297, 'mean_word_length': 4.083984375, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 6, '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': '334722', 'n_tokens_mistral': 891, 'n_tokens_neox': 886, 'n_words': 160}